Commodore Trivia
Home  Weblog  Research Kitchen  Contact 
All You Ever Wanted To Know About Commodore Main Menu
Home > Trivia #32A

Resources
C64 Chronology
  A comprehensive chronology of the Commodore 64
Zzap! 64
  Fan site for the classic C64 mag
Lemon 64
  Awesome 64 games site
CCS64
  A C64 on your desktop
RKO C64 Remixes
  Amazing site of C64 SID remixes
   

Who wrote this stuff?
This trivia was originally written by Jim Brain as part of the now long defunct C= Hacking Magazine, but happily Jim has kindly agreed to let me reproduce it in HTML-ized format for retro computing fans everywhere.

If you are interested in seeing the Commodore Trivia digests in their original form, take a look at this website.

For those who are interested, these pages were generated from the original text files using Perl and Velocity (and a nice template originally found here)

 
TRIVIA 32A

$1F0)
	Commodore BASIC tokens start at what number?

	$80, or 128.
    	

Top
$1F1)
	BASIC 2.0 defines tokens without gaps up to $ca. What keyword
        is represented by $cb?
    			    				

	GO.
     	

Top
$1F2)
	Why is the token for PI strange?
    	

	It is token $ff, or 255.
     	

Top
$1F3)
	All versions of Commodore BASIC contain at least a subset of
        tokens.  At what number does this subset end?
    	

	$ca.
     	

Top
$1F4)
	BASIC 4.0 defines tokens beyond $cb.  What is the last token
        included in BASIC 4.0?
    	

	$da.
     	

Top
$1F5)
	There was a BASIC 4.0+ included in the B series.  It extends the
        BASIC with some new commands not in 4.0.  What token range are
        these new commands at?
        

	$db-$e8.
     	

Top
$1F6)
	When a user plugs a Super Expander into a Commodore 64, he or 
        she gains access to 25 new BASIC commands.  The tokens for these
        commands are defined differently from the previous tokens.  What
        is the difference?
    	    

	They are two byte tokens of the form: $fe XX, where XX ranges from
        $80 to $9e.
    	

Top
$1F7)
	When the Plus/4 and C-16 was developed, new commands were added
        to BASIC.  In addition, many commands from BASIC 4.0 were also
        included.  Unfortunately, the tokens for BASIC 4.0 commands included
        in these new machines differed from those in the older BASIC 4.0.
        If a user lists a program written in BASIC 4.0 on a Plus/4, what 
        will the BASIC 4.0 CONCAT command show up as?
    	

	CONCAT is $cc in BASIC 4.0, and is RGR in BASIC 3.5.
     	

Top
$1F8)
	What is the last token used in the Plus/4 line?
    	 

	$fd.
     

Top
$1F9)
	If you list a program written on the Plus/4 with the keyword
        SCALE on a BASIC 4.0/4.0+ machine, what happens?
         

	SCALE on BASIC 3.5 is token $e9, which is not in the BASIC 4.0(+)
        list.  The PET will crash.  Interstingly, tokens above $e9 do not
        crash the PET.
    	

Top
$1FA)
	When the C128 was released, it shared many tokens with the Plus/4.
        However, at $ce, the 128 differs from the Plus/4.  The Plus/4 token
        $ce corresponds to RLUM, but the C128 uses the token another way.
        What is peculiar about the C128 usage?
    	

	The C128 uses $ce as a prefix byte for a range of two-byte tokens
        that range from $02 to $0a.
    	

Top
$1FB)
	The C128 shares many keywords with the Super Expander cartridge
        for the C64.  As with the Plus/4, though, keywords don't map to
        the same token.  To what token does the C128 keyword SPRITE
        (token: $fe $07) correspond to on the Super Expander equipped 64?
    		  		     

	$fe $93.
     	

Top
$1FC)
	What keyword was not included in BASIC v1, but was included in
        BASIC v2?
    	

	GO, token $cb.
     	

Top
$1FD)
	The C128 defines all the tokens from $fe $02 to $fe $26, with the
        exception of two tokens.  Name one of them.

	$fe $20 and $fe $22.
     	

Top
$1FE)
	The Plus/4 line had the ability to add keywords dynamically when
        running cartridges.  At what point in the token list do these
        "added" keywords show up in the Plus/4 line?
          

	They use $fe as a prefix byte for two-byte tokens.
     	

Top
$1FF)
	If a programmer want to write a single program to run on a
        B128, a plus/4, and a C128, what version of BASIC is the lowest
        common denominator?
        

	Unfortunately, BASIC 2.0 is it.
     	
    	 					    		     
The information in this between the lines marked by (BEGIN) and (END)
is copyright 1996 by Jim Brain.  Provided that the information
between the (BEGIN) and (END) lines is not changed except to correct
typographical errors, the so marked copyrighted information may be
reproduced in its entirety on other networks or in other mediums.  For 
more information about using this file, please contact the address 
shown below.
Jim Brain
j.brain@ieee.org
		
Some are easy, some are hard, try your hand at:
-------------Commodore Trivia Edition #32 Questions (END)---------------
				       	
The information in this between the lines marked by (BEGIN) and (END)
is copyright 1996 by Jim Brain.  Provided that the information
between the (BEGIN) and (END) lines is not changed except to correct
typographical errors, the so marked copyrighted information may be
reproduced in its entirety on other networks or in other mediums.  For 
more information about using this file, please contact the address 
shown below.
Jim Brain
j.brain@ieee.org
10710 Bruhn Avenue
Bennington, NE  68007
(402) 431-7754
--------Commodore Trivia Edition #32 Questions and Answers (END)---------
				   


Top


This site 2005 The Research Kitchen and Jim Brain.
Page generated: Sat Oct 14 14:06:37 BST 2006