Some optimizations that pop (no pun intended) out:
Code:
[/quote]
Code:
.nolist
#include "ti83plus.inc"
.list
.org $9D93
.db t2ByteTok, tAsmCmp
b_call(_ClrLCDFull) ; Clear Screen
ld hl, $0000 ; Random coordinates to test printing location
call numInput ; My Input Routine
ret
numInput:
ld (CurRow),hl
ld hl, $0000
top:
b_call(_GetKey); Get first key
ld b, a ; // ------ Check within numeric range ------
ld a, 152
cp b
jr c, top
ld a, b
cp 5
jr z, finish ; // End input if enter pressed
ld a, 141
cp b
jr nc, top ; // ------ End numeric check ------
ld a, b
sub 94
b_call(_PutC) ; // this bcall automatically advances CurRow/CurCol
sub 48
ld d, h
ld e, l
add hl, hl
add hl, hl
add hl, de
add hl, hl
ld b, 0
ld c, a
add hl, bc
jr top ; // Goto top
finish:
ld de, $0504
ld (CurRow), de
b_call(_DispHL)
ret
.end
.end