Re: A86: Please help, made mistake somewhere.
[Prev][Next][Index][Thread]
Re: A86: Please help, made mistake somewhere.
At 09:44 AM 9/18/97 -0500, you wrote:
>I need help, I have a problem, but I do not know where, would appreciate
>any help.
>Here is the source, whenever I run it all I get are a buch of hex
>characters on the screen. It is probably something really simple.
>
>Do not blame me if this crashes your calc, I am a beginner at asm
>pregramming. You can probably tell by the source.
>
>Thanx
>
>#include "asm86.h"
>#INCLUDE "TI86ASM.INC"
>
> call _clrLCD
> ld hl,$0000
> ld (_curRow),hl
> ld hl,menu
> call _puts
> jp key
>
>key:
> halt
> call $5371
> cp 0
> jr z,key
> cp 55
> jr nz,key
> ret z
>
>menu: .db "1. DEBUT---a first pub"
> .db "lic appearance, as of "
> .db "an actor: a formal ent"
> .db "rance into society ",0
>
>.end
>
>
>
I know where you got that program. ;)
Why you use 55 in place of $37 i don't know, but here is an easier way to
make that same loop:
key:
halt
call $5371
cp $37 ;equal to 55d
jr nz,key
ret
If you use Asm86 _2.0_, you can make it look like this:
key:
halt
call GET_KEY
cp K_EXIT
jr nz,key
ret
you also don't need that jp key in there.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Alan Bailey mailto:bailela@charlie.cns.iit.edu
IRC:Abalone Web:http://www.iit.edu/~bailela/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
References: