A86: sqrtPARSE revealed!
[Prev][Next][Index][Thread]
A86: sqrtPARSE revealed!
I just did a little disassembly now that i found out about the alt_ret
thingy. I now understand how to use sqrtPARSE and make it work
correctly! Here goes:
This is a sample sqrtPARSE program:
_alt_ret_status equ 0D2F9h
_alt_ret_jmp_page equ 0D2FAh
_alt_ret_jmp_addr equ 0D2FBh
ld a,$11
ld (_alt_ret_status),a
ld a,$3
ld (_alt_ret_jmp_page),a ;this could be combined with the 1st but i
didn't for clarity
ld hl,$5851
ld (_alt_ret_jmp_addr),hl
ld hl,ParseIn
rst 20h
rst 10h
ld a,b
ex de,hl
;ahl now points to the parsed command-line.
;you can do whatever you want with this.
ret ;ret back to normal parser!
ParseIn:
.db $12,$01,"#"
--
Stephen Hicks
mailto:shicks@mindspring.com
ICQ:5453914
IRC/AIM:Kupopo
Hopemage:http://www.mindspring.com/~shicks/
Follow-Ups: