File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 sbc COLCRS
4040 bcs ok
4141rep :
42- adc tmp2
42+ adc PRINT_ARG
4343 bcc rep
4444
4545ok:
5252.endproc
5353
5454.proc EXE_PRINT_TAB ; PRINT TAB up to column N
55- sta tmp2
55+ sta PRINT_ARG
5656 jsr do_tab
5757 jmp next_instruction
5858.endproc
6161 sta tmp1 ; Save AX (string address)
6262 stx tmp1 + 1
6363
64- lda stack_l , y ; Get TAB position
65- sta tmp2
66-
6764 ldy # 0
6865 sec
66+ lda PRINT_ARG ; Get TAB position
6967 sbc (tmp1) , y ; subtract string length
7068
7169 jsr do_tab
7270
73- inc sptr
7471 ldy # 0 ; Print color = 0
7572 sty PRINT_ARG
7673 jmp print_str_tmp1 ; Print string in tmp1
Original file line number Diff line number Diff line change @@ -290,8 +290,7 @@ PRINT_SEP_EOL:
290290 " Tab" T_EXPR emit TOK_PRINT_TAB
291291 # Right-TAB is complicated because we need to apply it to the *next*
292292 # parameter, so we read that parameter and the next optional separator:
293- " RTab" T_EXPR emit TOK_PUSH \
294- PRINT_ONE emit { TOK_PRINT_RTAB } PRINT_SEP_EOL
293+ " RTab" T_EXPR emit { TOK_BYTE_POKE, PRINT_ARG } PRINT_ONE emit { TOK_PRINT_RTAB } PRINT_SEP_EOL
295294 " ," emit { TOK_BYTE, 10, TOK_PRINT_TAB }
296295 " ;"
297296 E_EOL emit { TOK_BYTE_PUT, ATEOL }
You can’t perform that action at this time.
0 commit comments