Change boot2 to use new offsets as well
This commit is contained in:
@@ -159,9 +159,12 @@ _start:
|
|||||||
sec
|
sec
|
||||||
sbc #$02 ; don't handle carry, assume low byte is not 0 or 1
|
sbc #$02 ; don't handle carry, assume low byte is not 0 or 1
|
||||||
ldx data_start + 1 ; load x as high data start
|
ldx data_start + 1 ; load x as high data start
|
||||||
asl ; multiply cluster num (minus 2) by 8
|
phx
|
||||||
asl
|
ldx sectors_per_cluster ; multiply cluster num (minus 2) by sectors_per_cluster
|
||||||
asl
|
@4: adc tmp1
|
||||||
|
dex
|
||||||
|
bne @4
|
||||||
|
plx
|
||||||
clc
|
clc
|
||||||
adc data_start ; add that to low data start
|
adc data_start ; add that to low data start
|
||||||
bcc @5 ; handle carry
|
bcc @5 ; handle carry
|
||||||
|
|||||||
Reference in New Issue
Block a user