RE: A86: Re: _getkey


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

RE: A86: Re: _getkey





>I think the problem may (NOTE: may) be that you do not have spaces before
>your ASM directives. e.g.:<snip>

Actually, other programs I've written have assembled just fine using the
layout I've been using. I use TASM as my assembler.

Taking another look at my program, I assume if _getkey were to return
anything, it would be a value in the accumulator to compare to the label
(i.e. cp K_ENTER ;if a-K_ENTER=0) then jump if zero (jp z, ENTER). In other
words, K_ENTER would equal 1, and _getkey would return 1 in the accumulator
if enter was pressed. Again, I assume that this is not the correct behavior.
_getkey returns no such value, based on the assembly errors. Does _getkey
even contain these function labels? Is there a document that describes all
of the ROM routines anywhere?

>ASM Studio might work for you, but TASM will screw up if you don't do that.
>Otherwise, should work, though I recommend putting a HALT instruction in
the
>key loop to save battery power.

Thanks for the advise.

Brian



Follow-Ups: References: