A85: Bad Program?


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

A85: Bad Program?




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


Follow-Ups: