Re: A86: help with getky


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

Re: A86: help with getky




what is the purpose of this program?  to display getky codes?  if so, why not
just use this:

	call _ZeroOP1
keyloop:
	call _getky
	call _cpOP1OP2
	jr z,keyloop
	call _OP2TOOP1
	call _formReal
	ld hl,_OP3
	ld bc,$0000		;wherever on the screen to put it
	ld (_penCol),bc
	call _vputs


there's no need to convert to individual digits

In a message dated 10/2/98 21:42:07 Eastern Daylight Time, BrncAvFan2@aol.com
writes:

> 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