File tree Expand file tree Collapse file tree
src/arch/zxnext/library-asm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -218,12 +218,12 @@ __PRINT_EOL2:
218218
219219__PRINT_AT1_END:
220220 ld hl , (MAXY)
221- cp l
221+ cp h
222222 jr c , __PRINT_EOL_END ; Carry if (MAXY) < d
223223#ifndef DISABLE_SCROLL
224224 ld hl , __TVFLAGS
225225 set 1 , (hl)
226- ld a , d
226+ dec a
227227#else
228228 xor a
229229#endif
@@ -249,13 +249,13 @@ __PRINT_COM:
249249
250250__PRINT_TAB:
251251 ld hl , __PRINT_TAB1
252- jp __PRINT_SET_STATE
252+ jr __PRINT_SET_STATE
253253
254254__PRINT_TAB1:
255- ld (MEM0) , a
255+ ld (MEM0) , a
256+ exx
256257 ld hl , __PRINT_TAB2
257- ld (PRINT_JUMP_STATE) , hl
258- ret
258+ jr __PRINT_SET_STATE
259259
260260__PRINT_TAB2:
261261 ld a , (MEM0) ; Load tab code (ignore the current one)
@@ -273,7 +273,7 @@ __PRINT_TAB2:
273273__PRINT_NOP:
274274__PRINT_RESTART:
275275 ld hl , __PRINT_START
276- jp __PRINT_SET_STATE
276+ jr __PRINT_SET_STATE
277277
278278__PRINT_ AT :
279279 ld hl , __PRINT_AT1
@@ -288,7 +288,7 @@ __PRINT_AT1: ; Jumps here if waiting for 1st parameter
288288 ld hl , __PRINT_AT2
289289 ld (PRINT_JUMP_STATE) , hl ; Saves next entry call
290290 call __LOAD_S_POSN
291- jp __PRINT_AT1_END
291+ jr __PRINT_AT1_END
292292
293293__PRINT_AT2:
294294 exx
@@ -297,7 +297,7 @@ __PRINT_AT2:
297297 call __LOAD_S_POSN
298298 ld e , a
299299 ld hl , (MAXX)
300- cp (hl)
300+ cp l
301301 jr c , __PRINT_AT2_END
302302 jr __PRINT_EOL1
303303
You can’t perform that action at this time.
0 commit comments