From 6fabd23125b23c2a309300172a0e0bcce7546b62 Mon Sep 17 00:00:00 2001 From: Byron Lathi Date: Wed, 25 Oct 2023 18:56:15 -0700 Subject: [PATCH] Change boot2 to use new offsets as well --- sw/bios/boot2.s | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sw/bios/boot2.s b/sw/bios/boot2.s index c80291b..7a03670 100644 --- a/sw/bios/boot2.s +++ b/sw/bios/boot2.s @@ -159,9 +159,12 @@ _start: sec sbc #$02 ; don't handle carry, assume low byte is not 0 or 1 ldx data_start + 1 ; load x as high data start - asl ; multiply cluster num (minus 2) by 8 - asl - asl + phx + ldx sectors_per_cluster ; multiply cluster num (minus 2) by sectors_per_cluster +@4: adc tmp1 + dex + bne @4 + plx clc adc data_start ; add that to low data start bcc @5 ; handle carry