This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
collapseos
mirror of
https://github.com/hsoft/collapseos.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
at28w: don't use lib/args
pull/85/head
Virgil Dupras
4 years ago
parent
346bcc3d3d
commit
5f2615a134
2 changed files
with
5 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
apps/at28w/glue.asm
+5
-5
apps/at28w/main.asm
+ 0
- 1
apps/at28w/glue.asm
View File
@@ -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:
+ 5
- 5
apps/at28w/main.asm
View File
@@ -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.
Write
Preview
Loading…
Cancel
Save