mirror of
https://github.com/Klaus2m5/VTL02.git
synced 2024-11-22 03:30:55 +00:00
fixed load does not clear stack and label array
This commit is contained in:
parent
d8ddf31ac3
commit
bc79ed5c12
@ -341,8 +341,9 @@ dma_dat = io_area+$f8 ;dma data register
|
||||
sta star ; {*} -> top of user RAM
|
||||
lda #hi(himem)
|
||||
sta star+1
|
||||
reset:
|
||||
lda #0 ; clear label array & gosub stack
|
||||
ldx #95
|
||||
ldx #$5f
|
||||
reset1:
|
||||
sta lblary,x
|
||||
dex
|
||||
@ -452,7 +453,7 @@ jskp2:
|
||||
lda lblary+62 ; label array clear ?
|
||||
beq skp2 ; then skip clearing it
|
||||
lda #0 ; clear label array & gosub stack
|
||||
ldx #95
|
||||
ldx #$5f
|
||||
clr_ls:
|
||||
sta lblary,x
|
||||
dex
|
||||
@ -1862,7 +1863,7 @@ load:
|
||||
sta ampr
|
||||
lda dma_dat
|
||||
sta ampr+1
|
||||
jmp start
|
||||
jmp reset ; clear label array and gosub stack
|
||||
; - - - - - - - - - - - - - - - - - - - - - - - - - - ;
|
||||
; Save a program to EEPROM by number in x
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user