Content deleted Content added
Typo |
No edit summary |
||
Line 4:
==Background==
Color BASIC 1.0 was released with the original 4k TRS-80 Color Computer in 1980. It resides on 8k bytes of ROM, and is responsible for all 'housekeeping' duties on the system. This includes hardware initialization, memory management, etc. Like most implementations of BASIC, each line of code starts with a line number and consists of one or more statements with variables and operators. 16k of memory is required for the next level of BASIC, Extended Color BASIC. ("ECB") Extended BASIC is required for the floppy disk controller, which then gives you Disk Extended Color BASIC. ("DECB")
==Russian roulette==
a color BASIC program from the original Color BASIC manual gives the commands for a Russian roulette game
<source lang="sdlbasic">
10 PRINT "CHOOSE YOUR CHAMBER(1 TO 10)"
20 INPUT X
30 IF X = RND(10) THEN 100
40 SOUND 200, 1
50 PRINT --CLICK--
60 GOTO 10
100 PRINT "SORRY, YOUR DEAD."
</source>
==Variables==
|