Skip to content

Commit

Permalink
add check for large load starting after $9D00
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur committed Dec 20, 2024
1 parent 8027d70 commit 50cf4c4
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions kernal/cbm/channel/load.s
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ ld27 jsr acptr ;get first byte
ld30 jsr loding ;tell user loading
;
ldy verck ;load/verify/vram?
beq ld40 ;verify
bpl ld35 ;loading into vram
bne :+
jmp ld40 ;verify
: bpl ld35 ;loading into vram

;
;block-wise load into RAM
Expand All @@ -110,11 +111,10 @@ bld10
jsr stop ;stop key?
beq break2
lda verck
clc
bmi bld11 ; check load into RAM/VRAM
sec ; RAM
bmi bld11 ; check load into RAM/VRAM
sec ; VRAM
ldx #<VERA_DATA0 ; use data0 for call to MACPTR instead of VRAM address
ldy eah ; store VRAM address as EAH instead of data0 address.
ldy eah ; store VRAM address as EAH instead of data0 address.
phy
ldy #>VERA_DATA0
bra bld12
Expand All @@ -123,7 +123,14 @@ break2
bld11:
ldx eal
ldy eah
cpy #$9d
bcc @cont
cpy #$a0
bcs @cont
jmp ld40
@cont
phy ;save address hi
clc
bld12:
lda #0 ;load as many bytes as device wants
jsr macptr
Expand Down

0 comments on commit 50cf4c4

Please sign in to comment.