Skip to content

Commit

Permalink
refact: optimize PRINT routine
Browse files Browse the repository at this point in the history
  • Loading branch information
boriel committed Oct 9, 2022
1 parent ea28070 commit d69cdbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/arch/zx48k/library-asm/print.asm
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@ INVERSE_MODE: ; 00 -> NOP -> INVERSE 0
ld (DFCC), hl

ld hl, (DFCCL) ; current ATTR Pos
push hl
call __SET_ATTR
pop hl
inc hl
ld (DFCCL),hl
ld (DFCCL), hl
dec hl
call __SET_ATTR
exx
ret

Expand Down
7 changes: 3 additions & 4 deletions src/arch/zxnext/library-asm/print.asm
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@ INVERSE_MODE: ; 00 -> NOP -> INVERSE 0
ld (DFCC), hl

ld hl, (DFCCL) ; current ATTR Pos
push hl
call __SET_ATTR
pop hl
inc hl
ld (DFCCL),hl
ld (DFCCL), hl
dec hl
call __SET_ATTR
exx
ret

Expand Down

0 comments on commit d69cdbb

Please sign in to comment.