-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathincBASICByeBye.asm
26 lines (23 loc) · 1.03 KB
/
incBASICByeBye.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;*******************************************************************************
;* ByeBye Routine *
;*******************************************************************************
VEC_BYEBYE
jsr bas_CHRGET$ ; Get next character
cmp #$CC ; lower that our "Program" command range
bcc BYERTS
cmp #$FE ; Above our "Program" command range
bcs BYERTS
jsr BYEGO ; Execute our Command
jmp bas_NewStatement$ ; Got to gext BASIC Statement
BYEGO
sbc #$CB ; subtract out Tokan Base Value
asl ; x 2
tay ; transfer to index
lda Command_ADDR + 1,y ; Command Hi Location
pha
lda Command_ADDR,y ; Command Lo Location
pha
jmp bas_CHRGET$ ; Get Next Character
BYERTS
jsr bas_CHRGOT$ ; Get Current Character
jmp bas_GONE$ + 3 ; BASIC Execution system