Here's a screenshot of the ProgPad Oncalc Assembler I talked about in the Mosaic forum...
It's still a little glitchy with opening text files from the desktop. I found out that the screw up with the FileSaveAs command was a DoorsCS7 glitch and not my own. It should open DocDE texts when finished.
I also managed to find from Convert-From-Any-Base routine...
Code:
Tell me what you think.
It's still a little glitchy with opening text files from the desktop. I found out that the screw up with the FileSaveAs command was a DoorsCS7 glitch and not my own. It should open DocDE texts when finished.
I also managed to find from Convert-From-Any-Base routine...
Code:
;-----> GetBase
;input: hl=zero terminated ascii string
; c=base
;output: hl=value
GetBase:
ex de,hl
ld hl,0
GBLoop:
ld a,c
call MultHLA
ld a,(de)
or a
ret z
sub "0"
ret c
cp 10
jr c,GBCont
sub "A"-"0"-10
ret c
GBcont:
cp c
ccf
ret c
push de
ld d,0
ld e,a
add hl,de
pop de
inc de
ld a,(de)
or a
ret z
jr GBLoop
;-----> MultHLA
;multiply HL by A
MultHLA:
push de
ex de,hl
ld hl,0
MHLALoop:
or a
jr z,MHLAEnd
add hl,de
dec a
jr MHLALoop
MHLAEnd:
pop de
ret
Tell me what you think.