align writes in Promote, fix Championship Lode Runner

This commit is contained in:
Peter Ferrie 2019-06-27 13:04:00 -07:00
parent 6a966d6dc6
commit 1785bf0dfb
2 changed files with 14 additions and 3 deletions

View File

@ -612,12 +612,23 @@ ProDOS_enter
rts rts
@imp_read @imp_read
lda #cmdread clc
!byte $2c
@imp_write @imp_write
lda #cmdwrite php
lda #cmdread
adc #0
sta reqcmd sta reqcmd
jsr @set_rdwrbuff jsr @set_rdwrbuff
plp
bcc @skip_align
lda sizelo
adc #$fe
lda sizehi
adc #1
and #$fe
sta sizehi
@skip_align
jsr hddrdwrpart jsr hddrdwrpart
ldy #6 ldy #6
lda sizelo2 lda sizelo2