[Coco] Extended basic 1.1 command?
Bill Pierce
ooogalapasooo at aol.com
Tue Nov 20 19:15:21 EST 2012
Charlie,
You have to use PEEKs in CB & CEB for the firebuttons.
"BUT=PEEK(&HFF00) OR &H80"
"IF BUT=&HFF" = no button
"IF BUT = &HFE" = right button
"IF BUT = &HFD" = left button
I think that's right,
Hope it helps
Bill P
Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Bill Pierce
ooogalapasooo at aol.com
-----Original Message-----
From: Charlie <chazbeenhad at hotmail.com>
To: coco list <coco at maltedmedia.com>
Sent: Tue, Nov 20, 2012 6:42 pm
Subject: [Coco] Extended basic 1.1 command?
I am trying to edit one of my old programs written on the Coco3 to run on my
Coco1.
The program reads
120 IF BUTTON(0)=1 THEN 140
130 GOTO120
This detects if Joystick 0 button is pressed, if so goto 140...
I see that BUTTON is not a valid command in Extended Basic 1.1 in my coco1.
Can someone give me a simple example how to do the equal of these two program
lines in the older Extended Basic?
Thanks.
Charlie
--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list