From 30d6fdb16b6765e4e168d6871fff4f1af765bc3f Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 10 Nov 2019 22:07:44 -0500 Subject: [PATCH] ti/lcd: use brand new support for IX in SRL and RR --- kernel/ti/lcd.asm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/kernel/ti/lcd.asm b/kernel/ti/lcd.asm index 2d976b0..e501b83 100644 --- a/kernel/ti/lcd.asm +++ b/kernel/ti/lcd.asm @@ -258,17 +258,12 @@ lcdSendGlyph: ret z ; zero? nothing to do push bc ; --> lvl 1 xor a - ld b, a - ld a, (ix) - ; TODO: support SRL (IX) and RR (IX) in zasm + ld (ix+FNT_HEIGHT), a .shiftLoop: - srl a - rr b + srl (ix) + rr (ix+FNT_HEIGHT) dec c jr nz, .shiftLoop - ld (ix), a - ld a, b - ld (ix+FNT_HEIGHT), a pop bc ; <-- lvl 1 ret