A86: help with getky
[Prev][Next][Index][Thread]
A86: help with getky
I am having a problem with getky. Here is the program I have:
#include "ti86asm.inc"
#include "asm86.h"
.org _asm_exec_ram
top:
call _clrLCD
call _runindicoff
ld hl,$1010
ld (_penCol),hl
loop:
call _getky
jr z,loop
call $426f ;op2->op1
call $5577 ;op1->a
cp 22
jp z,Exit
jp c,loop2
loop2:
call Display3dNum
call $4d43
jr top
Exit:
ret
Display3dNum:
ld h,0
ld l,a
call UNPACK_HL
add a,48
ld c,a
call UNPACK_HL
add a,48
ld b,a
call UNPACK_HL
add a,48
call _vputmap
ld a,b
call _vputmap
ld a,c
call _vputmap
ret
.end
This little program waits for the user to push a key, then gives the number
for the keycode (i.e. 2nd=21). My problem is that it will not work for any of
the bottom keys (i.e. 0,.,-,ENTER). Does anybody know why this is?
THANX
Dan