A86: Re: Some more confusion


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

A86: Re: Some more confusion



you are telling the program to stop if there is no key pressed (ret z) also take out ld (hl),a and replace it with: ld l,a
                                        ld h,0
                                        ld a,0
                                        call $4a33
 
-----Original Message-----
From: Mark Lippmann <kifyre@megsinet.net>
To: asm86 <assembly-86@lists.ticalc.org>
Date: Sunday, February 08, 1998 6:30 PM
Subject: 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.