A89: Why are these buttons doing this?


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

A89: Why are these buttons doing this?




For some reason these keys are causing my program to crash my calc
even though they are not even being used.
Could someone tell me what is going on?  It is a program to make
sounds by hitting certain keys.  Thanks.



	include	"tios.h"
	include	"userlib.h"
	include	"graphlib.h"
	include "sndlib.h"

	xdef	_main
	xdef	_comment
	xdef	_ti89

note	MACRO
	lea	\2(pc),a0
	jsr	sndlib::PlaySong

\2
	dc.l	$40000
	dc.b	\1,4,255


	ENDM

_main:
	jsr	graphlib::clr_scr

key:
	jsr	userlib::idle_loop
	cmp.w	#264,d0		;first row
	beq	exit
	cmp.w	#258,d0
	beq	playd1
	cmp.w	#149,d0
	beq	playe1

	cmp.w	#48,d0
	beq	playc2

	bra	key

exit:
	rts

playd1:

	note	2,d1
	bra	key

playe1:

	note	4,e1
	bra	key

playc2:

	note	12,c2
	bra	key

_comment:
	dc.b	"Keyboard Composer By Bentensai",0

	end




_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com