A83: Re: How to equ key groups?
[Prev][Next][Index][Thread]
A83: Re: How to equ key groups?
other than the "k" error
this is your error...
<inside>
----- Original Message -----
From: Marc Puts <marcputs@hetnet.nl>
To: <assembly-83@lists.ticalc.org>
Sent: Tuesday, February 29, 2000 7:45 AM
Subject: A83: How to equ key groups?
>
> How can I equ key groups?
>
> This is a piece of my code:
>
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> .NOLIST
> #define equ .equ
> #define EQU .equ
> #define end .end
> #include "ti83asm.inc"
> #include "tokens.inc"
> kGroup7 .equ 0bfh ;Group with Clear in it
> kClear .equ 191 ; Key Constants
> .LIST
>
> .org 9327h
>
> ; -- some stuff that works --
>
> WaitForKey:
> ld a,0ffh ;Reset keyboard
> out (1),a
> ld a,Group7
> out (1),a
> in a,(1)
> cp kClear
> jp ClearPressed
needs to be "jp z,ClearPressed"
> ret
>
> ClearPressed:
> ; some commands
> ret
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> When compiling this, tasm gives the error "Label Not Found: Group7".
>
> I know I can solve this by doing ld a,0bfh instead, but isn't
> it possible to do this using an equate?
>
> Thanx, Marc
>
References: