A89: Re: Why are these buttons doing this?


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

A89: Re: Why are these buttons doing this?




What's c2?

-Miles Raymond      EML: m_rayman@bigfoot.com
ICQ: 13217756       IRC: Killer2        AIM: MRayMan
http://www.bigfoot.com/~m_rayman/

-----Original Message-----
From: Ben Rodgers <bentensai@yahoo.com>
To: assembly-89@lists.ticalc.org <assembly-89@lists.ticalc.org>
Date: Thursday, March 04, 1999 10:42 PM
Subject: 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