<?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>9th Part: &#x22;Nostalgia&#x22; &#x22;Old&#x22; Basic Language interpreters, Commodore 64 Basic Interpreter # 1.</title>
		<link>/blogentry/53248</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/53248" rel="self" type="application/rss+xml" />
		<description>LANTERN's Blog: 9th 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: 9th Part: &#x22;Nostalgia&#x22; &#x22;Old&#x22; Basic Language interpreters, Commodore 64 Basic Interpreter # 1.</title>
			<link>/blogentry/53248</link>
			<guid isPermaLink="true">/blogentry/53248</guid>
			<pubDate>Wed, 13 Apr 2011 17:27:04 GMT</pubDate>
			<dc:creator>LANTERN</dc:creator>
			<description><![CDATA[<p>Numbers and strings can also be printed close or near to each other.<br /><br />The Semicolon ; is used between data.<br /><br />1 PRINT 1;2;3;7;23;19;874<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />1 PRINT 1;2;3;7;23;19;874<br /><br />RUN<br /><br />1 2 3 7 23 19 874<br /><br />READY.<br /><br />--------<br /><br />The computer prints 2 spaces between the numbers.<br /><br />-------<br /><br />To print 2 Strings:<br /><br />10 PRINT HOT ; DOG<br /><br />---<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 PRINT HOT ; DOG<br /><br />RUN<br /><br />HOTDOG<br /><br />READY.<br /><br />In that way no spaces were printed between HOT and DOG.<br /><br />-----------<br /><br />10 PRINT HOT ; DOG<br /><br />-------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 PRINT HOT ; DOG<br /><br />RUN<br /><br />HOT DOG<br /><br />READY.<br /><br />-------------------<br /><br />To print 4 numeric variables:<br /><br />10 W=10:X=15:Y=20:Z=25<br /><br />20 PRINT W;X;Y;Z<br /><br />---------------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 W=10:X=15:Y=20:Z=25<br /><br />20 PRINT W;X;Y;Z<br /><br />RUN<br /><br />10 15 20 25<br /><br />READY.<br /><br />-----------------------<br /><br />To PRINT 3 String Variables:<br /><br />10 A$= TICK :B$= TOCK :C$=<br /><br />20 PRINT A$;C$;B$<br /><br />TheC$ is also a string.<br /><br />Numbers and strings can also be mixed.<br /><br />----------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 A$= TICK :B$= TOCK :C$=<br /><br />20 PRINT A$;C$;B$<br /><br />RUN<br /><br />TICK TOCK<br /><br />READY.<br /><br />------------------<br /><br />10 X=2*3<br /><br />20 PRINT THE ANSWER= ;X<br /><br />-------------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 X=2*3<br /><br />20 PRINT THE ANSWER= ;X<br /><br />RUN<br /><br />THE ANSWER= 6<br /><br />READY.<br /><br />--------------<br /><br />10 PRINT 10;20;30;40<br /><br />20 PRINT 100;200;300;400<br /><br />30 PRINT 1000;2000;3000;4000<br /><br />-------------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 PRINT 10;20;30;40<br /><br />20 PRINT 100;200;300;400<br /><br />30 PRINT 1000;2000;3000;4000<br /><br />RUN<br /><br />10 20 30 40<br /><br />100 200 300 400<br /><br />1000 2000 3000 4000<br /><br />READY.<br /><br />In this way data doesn&#x27;t line up right as when you use standard columns.<br /><br />---------------------<br /><br />--------------------<br /><br />To print data with spaces you can use the SPC keyword.<br /><br />SPC(X) the (X) stand for the number of spaces.<br /><br />For example:<br /><br />10 PRINT A SPC(6) B<br /><br />It should skip 6 spaces between A and B.<br /><br />--------------------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 PRINT A SPC(6) B<br /><br />RUN<br /><br />A B<br /><br />READY.<br /><br />------------------<br /><br />Variables can be used to represent the spaces:<br /><br />10 S1=7<br /><br />20 S2=11<br /><br />30 PRINT A SPC(S1) B SPC(S2) C<br /><br />-------------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 S1=7<br /><br />20 S2=11<br /><br />30 PRINT A SPC(S1) B SPC(S2) C<br /><br />RUN<br /><br />A B C<br /><br />READY.<br /><br />--------------<br /><br />The TAB keyword.<br /><br />TAB(X), X = 0 up to 255<br /><br />----------<br /><br />10 PRINT TAB(20) ABC TAB(30) DEF<br /><br />----------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 PRINT TAB(20) ABC TAB(30) DEF<br /><br />RUN<br /><br />ABC DEF<br /><br />READY.<br /><br />-----------------<br /><br />Numeric variables can also be used:<br /><br />10 A1=20<br /><br />11 A2=30<br /><br />12 PRINT TAB(A1) 200 TAB(A2) BANANAS<br /><br />-------------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />10 A1=20<br /><br />11 A2=30<br /><br />12 PRINT TAB(A1) 200 TAB(A2) BANANAS<br /><br />RUN<br /><br />200 BANANAS<br /><br />READY.<br /><br />--------------------------<br /><br />Printing reverse characters is just printing with reverse colors, the font and the background of the characters will be reversed that is their colors only.<br /><br />That is for an emulator or for a Comodore 64, so I will skip on that here at least for now.<br /><br />-----------------<br /><br />On a Commodore there are cursor control keys CRSR and they can also be used with the PRINT command, but here on a Pc like this that casn&#x27;t be done other than with an emulator so I have to skip on that.<br /><br />------------------<br /><br />On an emulator and on the C-64 there are other ways in which the key words can be entered like using ? for the PRINT keyword, let us see if that will work here with this interpreter or not:<br /><br />1 ? Hello<br /><br />-------<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />1 ? Hello<br /><br />RUN<br /><br />Hello<br /><br />READY.<br /><br />--------<br /><br />It worked so that can be used.<br /><br />I think that all the keywords have such things, for more info look at the books that you downloaded from my links on the C-64 guides maybe at the very end of them they are there.<br /><br />Such things do save on having to do a lot of typing, long ago when I took a look at Commodore basic and was typing a lot of programs&#x27; lines by hand I was using them.<br /><br />--------------<br /><br />So here ? = PRINT<br /><br />==============<br /><br />Well that is it for this post.<br /><br />-----------------<br /><br />Are we learning some yet?<br /><br />Programming is so hard and complicated and takes so very long to code and to think how to code in order to do what you want done and it might take a lot of Math knowledge to do things that might be of some use, that it might not be a thing that many or most of us want or should do.<br /><br />And not because a person knows what the keywords do, that doesn&#x27;t mean that a person can make programs with them, things are complicated and convoluted.<br /><br />As Andrew said about WinHunter (His Lottery Program): Not For The Faint Of Heart .<br /><br />... &#x5b;&#xa0;<a href="/blogentry/53248">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>LANTERN</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/53248</wfw:comment>
		</item>
	</channel>
</rss>

