From 5f2615a1345cd8b150c82c70c51e8a5a3d6b116d Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 29 Dec 2019 21:02:04 -0500 Subject: [PATCH] at28w: don't use lib/args --- apps/at28w/glue.asm | 1 - apps/at28w/main.asm | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/at28w/glue.asm b/apps/at28w/glue.asm index c8b5d82..d21cd55 100644 --- a/apps/at28w/glue.asm +++ b/apps/at28w/glue.asm @@ -22,6 +22,5 @@ jp at28wMain .inc "core.asm" .inc "lib/util.asm" .inc "lib/parse.asm" -.inc "lib/args.asm" .inc "at28w/main.asm" USER_RAMSTART: diff --git a/apps/at28w/main.asm b/apps/at28w/main.asm index 62802e2..9c22f7a 100644 --- a/apps/at28w/main.asm +++ b/apps/at28w/main.asm @@ -11,15 +11,15 @@ ; *** Code *** at28wMain: - ld de, .argspecs - ld ix, AT28W_MAXBYTES - call parseArgs + ld de, AT28W_MAXBYTES + ld a, (hl) + or a + jr z, at28wInner ; no arg + call parseHexadecimal ; --> DE jr z, at28wInner ; bad args ld a, SHELL_ERR_BAD_ARGS ret -.argspecs: - .db 0b111, 0b101, 0 at28wInner: ; Reminder: words in parseArgs aren't little endian. High byte is first.