<?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>8th Part: &#x22;Nostalgia&#x22; &#x22;Old&#x22; Basic Language interpreters, Commodore 64 Basic Interpreter # 1.</title>
		<link>/blogentry/53230</link>
		<atom:link href="https://www.lotterypost.com/rss/blogcomments/53230" rel="self" type="application/rss+xml" />
		<description>LANTERN's Blog: 8th 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: 8th Part: &#x22;Nostalgia&#x22; &#x22;Old&#x22; Basic Language interpreters, Commodore 64 Basic Interpreter # 1.</title>
			<link>/blogentry/53230</link>
			<guid isPermaLink="true">/blogentry/53230</guid>
			<pubDate>Wed, 13 Apr 2011 04:45:37 GMT</pubDate>
			<dc:creator>LANTERN</dc:creator>
			<description><![CDATA[<p>Well, by now we have already seen some of the PRINT keyword.<br /><br />Data can be PRINTed into standard columns, there being in the screen 4 such of them, at the very least on a Commodore 64.<br /><br />Data items can be printed near each other.<br /><br />Data can be printed a given number of spaces apart, you tell the computer how many spaces apart to print them.<br /><br />You can also print data at TAB settings.<br /><br />On the Commodore you can also print reversed characters their colors will be reversed.<br /><br />In Commodore BASIC you can also print cursor movements so that the program is able to move the curson to particular point on the screen before you PRINT.<br /><br />With the PRINT command you can also Clear the screen.<br /><br />On a Commodore 64 to clear the screen you hold down the Shift and then press the CLR/Home key, the same kind be done in a program with line numbers:<br /><br />10 PRINT SHIFT CLR/HOME<br /><br />If there was something on the screen from before, it would be cleared after doing this.<br /><br />----------------<br /><br />There are some Commodore characters that can&#x27;t be printed on a Windows Pc unless a Commodore emulator or something like it is used.<br /><br />------------------<br /><br />There are many Commodore characters that can be PRINTed using the PRINT keyword, but not on a Windows Pc, unless a special program like an emulator is used.<br /><br />That makes it very hard or impossible to show a lot of Commodore programming, in a regular way or maybe in any way.<br /><br />----------------------<br /><br />To show how to print on standard columns try this:<br /><br />10 PRINT SHIFT CLR/HOME<br /><br />20 PRINT 5,6,7,8<br /><br />30 PRINT 1,7,6,4<br /><br />40 PRINT 4,3,1,20<br /><br />I guess that I will now try that on the DOS interpreter, but only lines 20 to 40 as the Pc&#x27;s keyboard and the interpreter can&#x27;t handle line # 10.<br /><br />This is what I got:<br /><br />**** COMMODORE 64 BASIC V2 ****<br /><br />64K RAM SYSTEM 38911 BASIC BYTES FREE<br /><br />READY.<br /><br />20 PRINT 5,6,7,8<br /><br />30 PRINT 1,7,6,4<br /><br />40 PRINT 4,3,1,20<br /><br />RUN<br /><br />5 6 7 8<br /><br />1 7 6 4<br /><br />4 3 1 20<br /><br />READY.<br /><br />------------------<br /><br />Very nice, it worked O.K.<br /><br />I already showed you how to copy and paste to and also from on a DOS box, Do you remember how?<br /><br />If you don&#x27;t remember go back to the beginning of this new thread here on BASIC programming and reread &#x27;till you find the info there, it is very easy to do and saves a lot of time.<br /><br />---------------<br /><br />A Commodore 64 can print up to 40 character on each line so the 40 characters are divided into the 4 standard PRINT columns.<br /><br />Each column is 10 charcters long.<br /><br />Column 1 starts at position 1<br /><br />Column 2 Starts at position 11<br /><br />Column 3 starts at position 21<br /><br />Column 4 starts at position 31<br /><br />As seen from before use PRINT and put a comma between the data that you want printed.<br /><br />Try:<br /><br />PRINT 1<br /><br />-------<br /><br />PRINT 1,2<br /><br />----------<br /><br />PRINT 1,2,3<br /><br />-----------<br /><br />PRINT 1,2,3,4<br /><br />--------<br /><br />You can use any kind of data I guess such as<br /><br />PRINT HOUSE<br /><br />------<br /><br />PRINT HOUSE , CAR<br /><br />--------<br /><br />Etc.<br /><br />------------<br /><br />To PRINT values of Numeric Variable you might try this:<br /><br />10 W=10:X=15:Y=20:Z=25<br /><br />20 PRINT W,X,Y,Z<br /><br />-----------<br /><br />For String Variables:<br /><br />10 A$= HAT :B$= COAT :c$= GLOVES<br /><br />20 PRINT A$,B$,C$<br /><br />----------<br /><br />Numeric and string variables can be mixed:<br /><br />10 N=5:A$= GIRLS<br /><br />20 PRINT THERE ARE ,N,A$<br /><br />-------<br /><br />If you try to print more than 4 columns the rest will show-up on the next line, try to print more than 4 and you will see.<br /><br />-----<br /><br />Take your time and try to RUN all the examples given, it is easier to learn in that way.<br /><br />---------------<br /><br />The longest single number that you can print in a standard columns is 7 digits such as 1234567.<br /><br />-------<br /><br />The longest single string that can be printed on a column is 9 characters long such as ABCDEFGHI.<br /><br />-----------<br /><br />This is a long lesson the rest will be posted little by little in parts.<br /><br />------------<br /><br />... &#x5b;&#xa0;<a href="/blogentry/53230">More</a>&#xa0;&#x5d;</p>]]></description>
			<category>Blog Entry</category>
			<category>LANTERN</category>
			<wfw:comment>https://www.lotterypost.com/blogentry/53230</wfw:comment>
		</item>
	</channel>
</rss>

