[A83] Re: Yup, More Problems With Ion
[Prev][Next][Index][Thread]
[A83] Re: Yup, More Problems With Ion
You can use _getkey in ion, but the ram gets cleared if you turn it off.
The alternative to _Getkey:
waitkey:
ei
WKA_loop:
HALT
bcall(_getcsc)
or a
jr z, WKA_loop
ret
This code when CALLed, waits for a key to be pressed and the pressed key is
returned into register A.
>From: "Emir Sakic" <saka@hotmail.com>
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Re: Yup, More Problems With Ion
>Date: Wed, 14 Mar 2001 03:58:47 +0100
>
>
>The only problem you have in this code is on line 7.
>Replace with:
> .org progstart-2
If compiled with the proper #DEFINE added, wouldn't this have been done
already?
>
>Also assure that you saved your file as *.z80 or *.asm
>Use TASM compiler, Devpac83 or Devpac8x as linker and batch file included
>with ION or Devpac8x.
>
>I assembled the program (with change above) and it works perfectly both in
>ION and TI-OS.
>
>Another thing: you should never use _getkey call in ION, but that's another
>story.
>
>
> >From: "Steve Watson" <fif_freak00@hotmail.com>
> >Reply-To: assembly-83@lists.ticalc.org
> >To: assembly-83@lists.ticalc.org
> >Subject: [A83] Re: Yup, More Problems With Ion
> >Date: Tue, 13 Mar 2001 18:51:46 -0700
> >
> >
> >OK, here's the new source, AND IT DIDN'T WORK! There's still a problem
> >SOMEHWERE, and I KNOW there's nothing wrong with my calculator!
> >
> > .nolist
> > #include "ion.inc"
> > .list
> >
> >#ifdef TI83P
> > org progstart-2
> > .db $BB,$6D
> >#else
> > .org progstart
> >#endif
> > xor a
> > jr nc,start
> > .db "Test Detect",0
> >start:
> > bcall(_clrlcdf)
> > bcall(_homeup)
> > ld hl,txt
> > bcall(_puts)
> > bcall(_getkey)
> > ret
> >txt:
> > .db "Hey!",0
> >.end
> >.end
> >
> >_________________________________________________________________
> >Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> >
> >
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com