Re: A85: Bad Program?


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

Re: A85: Bad Program?




does "ROM_CALL(D_HL_DECI)" destroy hl??  and i think for these lines
of code:
> push hl
> ld hl,0
> ld (CURSOR_ROW),hl
> pop hl
you could be using registers de and not have to do the push/pop of hl.


On Sat, 12 Sep 1998 21:11:47 PDT, you wrote:

>
>Why does this program get stuck on 1 and not move? (Beware, it locks a 
>TI-85 into an infinite loop.)
>#include "ti-85.h"
>
> .org 0
> .db "Count: A 2nd Test Prog",0
>
> ROM_CALL(CLEARLCD)
> ld hl,0
>StartLoop:
> push hl
> ld hl,0
> ld (CURSOR_ROW),hl
> pop hl
> inc hl
> ROM_CALL(D_HL_DECI)
> ld a,h
> or l
> jr nz,StartLoop
>WaitKey:
> call GET_KEY
> cp K_EXIT
> jr nz,WaitKey
> ret
>
>.end
>
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>


References: