Basic
Welcome to Basic NOTE: For slower computers set turbo mode to off when asked to. Commands: - directory command format: dir looks like: dir - load command format: load "programname.prg" looks like: load "1.prg" - run command format: run looks like: run - print, format: mem# print "input text here" looks like: 0010 print "hello world" - text color change (0-7) format: mem# tcolor value; looks like: 0010 tcolor 1; - background color change (0-8) format: mem# bcolor value; looks like: 0010 bcolor 5; - goto different line format: mem# goto nextmem# looks like: 0020 goto 0010 - change color by format: mem# ccolor changecolorby#; looks like: 0010 ccolor 1; - new line when running code format: mem# nline looks like: 0010 nline - input command format: mem# input inputtype looks like: 0010 input "text" 0020 print "text" different input type: 0010 input "color" 0020 tcolor color; different input type: 0010 input "color" 0020 bcolor color; - set variable format: mem# svar "varname" = #; looks like: 0010 svar "x" = 10; 0020 print "x" different var use: 0010 svar "x" = 1; 0020 ccolor x; 0030 print "hello" different var use: 0010 svar "x" = 1; 0020 tcolor x; 0030 print "hello" - change variable (+/-) format: mem# cvar "varname" = signthen#; looks like: 0010 svar "x" = 1; 0020 tcolor x; 0030 print "hello" 0040 cvar "x" = +1; 0050 goto 0010 different var use: 0010 svar "x" = 7; 0020 tcolor x; 0030 print "hello" 0040 cvar "x" = -1; 0050 goto 0010 repeate specific code format: mem# gotr backtomem# "#oftimesrepeat" looks like: 0010 print "hello world" 0020 gotr 0010 "10" 0030 halt using vars: 0010 svar "x" = 0; 0020 tcolor x; 0030 print "hello world" 0040 cvar "x" = +1; 0050 gotr 0010 "7" 0060 halt halt command format: mem# halt looks like: 0010 print "hello world" 0020 halt -change text color format (0-7): poke # looks like: poke 0 -change background color format (1-8): poke 53281,# looks like: poke 53281,1
Created January 5, 2022
Last updated September 20, 2022
Published January 18, 2022