diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-01 13:08:08 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-01 13:13:40 -0400 |
| commit | e6f75432928ccd915016162a68df43b0adf6ce04 (patch) | |
| tree | 8b3efc7441195cb12dcdbd34442da00f45e2fdcc /engine/printer | |
| parent | 534863abe1d7c57707135574ef8bb1094aa5be22 (diff) | |
Identify more labels, and use the jumptable macro when possible
Diffstat (limited to 'engine/printer')
| -rw-r--r-- | engine/printer/printer_serial.asm | 11 |
1 files changed, 1 insertions, 10 deletions
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 |
