From e6f75432928ccd915016162a68df43b0adf6ce04 Mon Sep 17 00:00:00 2001 From: Rangi Date: Wed, 1 Jul 2020 13:08:08 -0400 Subject: Identify more labels, and use the jumptable macro when possible --- engine/printer/printer_serial.asm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'engine/printer') diff --git a/engine/printer/printer_serial.asm b/engine/printer/printer_serial.asm index d047418e..9d0bd907 100644 --- a/engine/printer/printer_serial.asm +++ b/engine/printer/printer_serial.asm @@ -16,16 +16,7 @@ Printer_StartTransmission: ret PrinterJumptableIteration: - ld a, [wJumptableIndex] - ld e, a - ld d, 0 - ld hl, .Jumptable - add hl, de - add hl, de - ld a, [hli] - ld h, [hl] - ld l, a - jp hl + jumptable .Jumptable, wJumptableIndex .Jumptable: dw Print_InitPrinterHandshake ; 00 -- cgit v1.2.3