[A83] Re: just two simple questions


[Prev][Next][Index][Thread]

[A83] Re: just two simple questions




reply to the first question:
you could run through the sting till you reach 0(end of string,universal) and 
subtract by '0'
so it would be something like this:
:Strtonum
ld hl,string
ld a,(hl)
:strtonumloop
dec '0'     ; makes the string a num
;do calculations to make it in the correct place(ew yeah i know)
inc hl
ld a,(hl)
cp 0
jp nz,strtonumloop
ret

I don't know how to help with the second one. sorry i hope I helped!