LZ: routine help


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

LZ: routine help



Can anybody tell me if this will work? 


I want to store a 2 or 3 digit number in "a".  Then I want to extract
the digit in the one's place and compare it to a number.  Here's what I
hope will work:


ld a,39


ld hl,a
ROM_CALL(UNPACK_HL)
cp $9
jr z, loop
ret


If this won't work, can somebody give me a routine that will?


BTW: is there a demand for a new version of minehunt?  Diagonal keys,
smaller size, ability to choose mines?  Opinions would be appreciated.


Thanks


 _
(_
|_)teve
|eterson


mailto:stevep@comso.com
http://www.geocities.com/SiliconValley/Park/2636


Follow-Ups: