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
|
sta star ; {*} -> top of user RAM
|
||||||
lda #hi(himem)
|
lda #hi(himem)
|
||||||
sta star+1
|
sta star+1
|
||||||
|
reset:
|
||||||
lda #0 ; clear label array & gosub stack
|
lda #0 ; clear label array & gosub stack
|
||||||
ldx #95
|
ldx #$5f
|
||||||
reset1:
|
reset1:
|
||||||
sta lblary,x
|
sta lblary,x
|
||||||
dex
|
dex
|
||||||
@ -452,7 +453,7 @@ jskp2:
|
|||||||
lda lblary+62 ; label array clear ?
|
lda lblary+62 ; label array clear ?
|
||||||
beq skp2 ; then skip clearing it
|
beq skp2 ; then skip clearing it
|
||||||
lda #0 ; clear label array & gosub stack
|
lda #0 ; clear label array & gosub stack
|
||||||
ldx #95
|
ldx #$5f
|
||||||
clr_ls:
|
clr_ls:
|
||||||
sta lblary,x
|
sta lblary,x
|
||||||
dex
|
dex
|
||||||
@ -1862,7 +1863,7 @@ load:
|
|||||||
sta ampr
|
sta ampr
|
||||||
lda dma_dat
|
lda dma_dat
|
||||||
sta ampr+1
|
sta ampr+1
|
||||||
jmp start
|
jmp reset ; clear label array and gosub stack
|
||||||
; - - - - - - - - - - - - - - - - - - - - - - - - - - ;
|
; - - - - - - - - - - - - - - - - - - - - - - - - - - ;
|
||||||
; Save a program to EEPROM by number in x
|
; Save a program to EEPROM by number in x
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user