mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 20:38:05 +11:00
at28w: don't use lib/args
This commit is contained in:
parent
346bcc3d3d
commit
5f2615a134
@ -22,6 +22,5 @@ jp at28wMain
|
|||||||
.inc "core.asm"
|
.inc "core.asm"
|
||||||
.inc "lib/util.asm"
|
.inc "lib/util.asm"
|
||||||
.inc "lib/parse.asm"
|
.inc "lib/parse.asm"
|
||||||
.inc "lib/args.asm"
|
|
||||||
.inc "at28w/main.asm"
|
.inc "at28w/main.asm"
|
||||||
USER_RAMSTART:
|
USER_RAMSTART:
|
||||||
|
@ -11,15 +11,15 @@
|
|||||||
; *** Code ***
|
; *** Code ***
|
||||||
|
|
||||||
at28wMain:
|
at28wMain:
|
||||||
ld de, .argspecs
|
ld de, AT28W_MAXBYTES
|
||||||
ld ix, AT28W_MAXBYTES
|
ld a, (hl)
|
||||||
call parseArgs
|
or a
|
||||||
|
jr z, at28wInner ; no arg
|
||||||
|
call parseHexadecimal ; --> DE
|
||||||
jr z, at28wInner
|
jr z, at28wInner
|
||||||
; bad args
|
; bad args
|
||||||
ld a, SHELL_ERR_BAD_ARGS
|
ld a, SHELL_ERR_BAD_ARGS
|
||||||
ret
|
ret
|
||||||
.argspecs:
|
|
||||||
.db 0b111, 0b101, 0
|
|
||||||
|
|
||||||
at28wInner:
|
at28wInner:
|
||||||
; Reminder: words in parseArgs aren't little endian. High byte is first.
|
; Reminder: words in parseArgs aren't little endian. High byte is first.
|
||||||
|
Loading…
Reference in New Issue
Block a user