Programming in BASIC on the Color Computer chapter 13 "More Basics"
ogStevieStrow
Chapter 13 is called "More Basics" and it introduces us to some more logical operations of BASIC programming.
We learn how to use the command STOP to force our program to halt at any point.
We can then type in CONT to continue from where the program left off.
We learn If ON... GOSUB, which will go to a series of predetermined subroutines based on the value of a variable.
We also learned how to combine IF... THEN... ELSE commands, to make comparisons and then decisions based on them, some may call this "branching"
Then we learn about operators AND and OR, a way to compare multiple variables, and determine if they are all the same, or just some are the same.. We can combine this comparison with THEN and ELSE as well and further branch our responses to the comparison.
We learn how to use SGN which tells you if a number is positive, zero, or negative
We learned ABS, which gives you the absolute value of a number, whether it's positive or negative.
We learn to use STR$ which converts a numeric variable into a string variable, this is actually the opposite of VAL which converts a string to a number.
We learned how to track how much MEM your computer has, this is useful when knowing if you will run out of RAM memory.
And lastly, we learned how the computer deals with Exponents, which I find rather confusing :)
Thanks for watching, don't forget to like, comment, and subscribe!
Merchandise: http://8bit256.com Facebook: https://www.facebook.com/ogsteviestrow/ Twitter: https://twitter.com/ogsteviestrow Instagram: https://www.instagram.com/ogsteviestrow/ Website: http://ogsteviestrow.com
Pixel art and logos created by Joel M. Adams: https://www.instagram.com/artistjoelmadams/
OG Theme Song by the Gimp of Hallowed Ground Records: https://www.reverbnation.com/gordy669 ... https://www.youtube.com/watch?v=uuE_JTA7iDQ
143484820 Bytes