<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
	<channel>
		<title>6th Part: &#x22;Nostalgia&#x22; &#x22;Old&#x22; Basic Language interpreters, Commodore 64 Basic Interpreter # 1.</title>
		<link>/blogentry/53112</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/53112" rel="self" type="application/rss+xml" />
		<description>LANTERN's Blog: 6th Part: &#x22;Nostalgia&#x22; &#x22;Old&#x22; Basic Language interpreters, Commodore 64 Basic Interpreter # 1.</description>
		<dc:language>en-us</dc:language>
		<generator>Lottery Post RSS Generator</generator>
		<item>
			<title>Original Blog Entry: 6th Part: &#x22;Nostalgia&#x22; &#x22;Old&#x22; Basic Language interpreters, Commodore 64 Basic Interpreter # 1.</title>
			<link>/blogentry/53112</link>
			<guid isPermaLink="true">/blogentry/53112</guid>
			<pubDate>Sun, 10 Apr 2011 05:04:01 GMT</pubDate>
			<dc:creator>LANTERN</dc:creator>
			<description><![CDATA[<p>Commodore basic is not exactly the same as that of all other old and new basics, so beware of problems if you try these with other basic interpreters, emulators, languages or programs.<br /><br />COMMODORE 64 PROGRAMMER&#x27;S REFERENCE GUIDE<br /><br />Strings or string constants<br /><br />Pages 4<br /><br />Letters = JOE<br /><br />Numbers = 860<br /><br />Symbols = $^*<br /><br />Or a mix of any of those such as: 6K)<br /><br />Strings are inside quotes X<br /><br />------------<br /><br />Data can be numbers 48923 or strings /?9F<br /><br />-----------<br /><br />Numeric Variables<br /><br />Represent numbers<br /><br />2 LEM = 25<br /><br />4 PRINT LEM<br /><br />Type RUN<br /><br />Type Enter-Return<br /><br />Get<br /><br />25<br /><br />-----<br /><br />LEM = Numeric Variable<br /><br />25 = Numeric Constant<br /><br />---------------------------<br /><br />String Variables<br /><br />A string variable represents strings<br /><br />2 FRUIT$ = BANANA<br /><br />4 PRINT FRUIT$<br /><br />RUN<br /><br />BANANA<br /><br />-------------------<br /><br />FRUIT$ = String Variable<br /><br />BANANA = String Constant<br /><br />----------------------<br /><br />Names must start with a letter<br /><br />String variables must end with $<br /><br />Different variables must not have the same 2 characters<br /><br />You may not use variables that have in them basic commands<br /><br />So we must get familiar first with the names of basic commands.<br /><br />--------<br /><br />It is also ok:<br /><br />DOK = 6+4<br /><br />-----<br /><br />2 Y=96<br /><br />4 AGE=Y<br /><br />6 PRINT AGE<br /><br />RUN<br /><br />96<br /><br />------------<br /><br />NAME$ = JOE<br /><br />-----<br /><br />2 D$ = JOE<br /><br />4 C$ = D$<br /><br />------------<br /><br />Beware of mistakes verify info yourself<br /><br />----------------<br /><br />LET DOG = 3<br /><br />LET TH$ = MAY<br /><br />In that case the LET command is optional it doesn&#x27;t have to be used it can just be:<br /><br />DOG = 3<br /><br />TH$ = MAY<br /><br />-----<br /><br />Type in direct mode or with numbers if in a program:<br /><br />X = 250 + 50<br /><br />PRINT X<br /><br />-----------<br /><br />5 X = 250 - 50<br /><br />10 PRINT X<br /><br />------------<br /><br />To multiply use *<br /><br />Y = 3*2<br /><br />PRINT Y<br /><br />------------<br /><br />To divide<br /><br />J = 100/4<br /><br />PRINT J<br /><br />----------------<br /><br />Exponents or Powers:<br /><br />2^2 = 4<br /><br />9^2 = 81<br /><br />2^3= 8<br /><br />Beware of mistakes<br /><br />1 LE = 3^3<br /><br />2 PRINT LE<br /><br />--------<br /><br />2 Y = [2^3] - 5<br /><br />4 PRINT Y<br /><br />--------------<br /><br />Order of Math operations it is best to put the operations in parentheses otherwise:<br /><br />Powers-Exponents are done first, then:<br /><br />Multiplications and divisions are second, then:<br /><br />Additions and substractions are last.<br /><br />Read the C-64&#x27;s Guide.<br /><br />Using parenthesis you can do like this:<br /><br />C = ((2^3)+15)*6<br /><br />Maybe much better than trying to guess how it will be computed by the program or the Pc.<br /><br />------------<br /><br />PRINT MOTOR + CAR<br /><br />MOTORCAR<br /><br />-----------<br /><br />PRINT MOTOR + + CAR<br /><br />MOTOR CAR<br /><br />--------------<br /><br />10 X$ = JOE<br /><br />15 K$ =<br /><br />20 Y$ = BROWN<br /><br />30 PRINT X$ + K$ + Y$<br /><br />RUN<br /><br />JOE BROWN<br /><br />------------<br /><br />No more of these posts for a few days (1 to 3 or so ) then I will continue them.<br /><br />You might want to try the examples with the C-64 Interpreter or with a C-64 Emulator or with some other old basic interpreter and make sure that there are no mistakes if there are mistakes make sure that a C-64 interpreter or emulator is used and also read the C-64 guides that you might have downloaded or some other basic tutorial(s) or guide(s).<br /><br />---------------<br /><br />Beware of mistakes, so read basic guides or tutorials, other than what I post on here.<br /><br />... &#x5b;&#xa0;<a href="/blogentry/53112">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>LANTERN</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/53112</wfw:comment>
		</item>
	</channel>
</rss>

