A83: How to equ key groups?


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

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
	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


Follow-Ups: References: