Skip to content

Commit

Permalink
solve for the case where the loaded program stopped exactly before $9F00
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur committed Mar 22, 2024
1 parent 34deb9e commit e003e67
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions kernal/cbm/channel/load.s
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,13 @@ ld80 ldx eal
rts
ld81 lda verck
dec
beq ld64 ; loading to VRAM
jsr untlk ; close channel
jsr clsei ; close file
jsr prnto ; print end of load (should always say $9F00)
jmp error16 ;"out of memory", tried to load or verify into I/O space
beq ld64 ; loading to VRAM
bit status ; eoi?
bvc ld70 ; yes...exit normally
jsr untlk ; close channel
jsr clsei ; close file
jsr prnto ; print end of load (should always say $9F00)
jmp error16 ; "out of memory", tried to load or verify into I/O space

;subroutine to print to console:
;
Expand Down

0 comments on commit e003e67

Please sign in to comment.