A86: Some more confusion
[Prev][Next][Index][Thread]
A86: Some more confusion
This simple bit of code is designed to display 
the contents of "a" (received from the GET_KEY call) at the top of the 
screen. Since it's going so fast, you should only see a byte when you're holding 
down a key. I'm not getting anything. Can someone see the problem?
 
-------------------------------------------
#include "ti86asm.inc"
#include 
"asm86.h"
 
.org _asm_exec_ram
 
 ld hl,$FC00
 call _clrLCD
loop: 
 call _clrLCD
 call GET_KEY
 cp $37
 ret 
z
 ld (hl),a
 jp loop
 
.end
----------------------------------------
Thanks
 
Mark L.