Skip to content

Commit ab9ff3f

Browse files
committed
Update zxnext PRINT library
1 parent 3913d0e commit ab9ff3f

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/arch/zxnext/library-asm/print.asm

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)