2016-10-29 19:58:21 +00:00
|
|
|
|
PR#3
|
|
|
|
|
PREFIX /A2OSX.SRC
|
|
|
|
|
NEW
|
|
|
|
|
INC 1
|
|
|
|
|
AUTO 6
|
|
|
|
|
.LIST OFF
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
ERR.Print >PUSHA Save EC for PrintF
|
|
|
|
|
|
|
|
|
|
ldx L.ERR.Codes
|
|
|
|
|
stx ZPPTR1
|
|
|
|
|
ldx L.ERR.Codes+1
|
|
|
|
|
stx ZPPTR1+1
|
|
|
|
|
|
|
|
|
|
ldy #0
|
|
|
|
|
|
|
|
|
|
.1 cmp (ZPPTR1),y
|
|
|
|
|
beq .2
|
|
|
|
|
iny
|
|
|
|
|
cpy #ERR.Count
|
|
|
|
|
bne .1
|
|
|
|
|
|
2017-03-19 21:47:54 +00:00
|
|
|
|
.2 lda L.ERR.Messages
|
2016-10-29 19:58:21 +00:00
|
|
|
|
sta ZPPTR1
|
|
|
|
|
lda L.ERR.Messages+1
|
|
|
|
|
sta ZPPTR1+1
|
|
|
|
|
|
2017-03-19 21:47:54 +00:00
|
|
|
|
.3 dey
|
|
|
|
|
bmi .8
|
2016-10-29 19:58:21 +00:00
|
|
|
|
|
|
|
|
|
lda (ZPPTR1)
|
|
|
|
|
sec
|
|
|
|
|
adc ZPPTR1
|
|
|
|
|
sta ZPPTR1
|
2017-03-19 21:47:54 +00:00
|
|
|
|
bcc .3
|
2016-10-29 19:58:21 +00:00
|
|
|
|
inc ZPPTR1+1
|
|
|
|
|
bra .3
|
|
|
|
|
|
|
|
|
|
.8 >PUSHW ZPPTR1
|
|
|
|
|
>LDYA L.MSG.ERROR
|
2016-11-03 16:26:02 +00:00
|
|
|
|
>SYSCALL CPrintFYA
|
2016-10-29 19:58:21 +00:00
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
|
|
|
|
SAVE SBIN/SHELL.S.ERR
|
|
|
|
|
LOAD SBIN/SHELL.S
|
|
|
|
|
ASM
|