
PETCAT version 2.11 PL 1					16 Oct 2005


  Listed below are keywords and token codes for all CBM Basic versions
  supported on petcat v2.11 PL 1. They include the following:
 
	Basic 1.0
	Basic 2.0
	Basic 2.0 with Super Expander
	Basic 2.0 and Simon's Basic
	Basic 2.0 with Speech Basic v2.7
	Basic 2.0 with AtBasic
	Basic 2.0 with Final Cartridge III
	Basic 2.0 with Ultrabasic-64
	Basic 2.0 with Graphics basic
	Basic 2.0 with WS basic
	Basic 2.0 with Turtle basic
	Basic 2.0 with Mighty basic
	Basic 2.0 with Pegasus basic 4.0
	Basic 2.0 with Xbasic
	Basic 2.0 with Drago basic 2.2
	Basic 2.0 with REU-basic
	Basic 2.0 with Basic Lightning
	Basic 4.0
	Basic 4.0 extension for C64
	Basic 3.5
	Basic 7.0
	Basic 10.0


	COMMODORE BASIC KEYWORDS

  Common Keywords (Tokens 80 - CB)

  Tokens 80 to A2 represent action keywords, while codes B4 trough CA
  are function keywords. AA - B3 are BASIC operators.

  There is no GO (CB) on Basic 1.0.


Token	Keyword

80	end
81	for
82	next
83	data
84	input#
85	input
86	dim
87	read

88	let
89	goto
8a	run
8b	if
8c	restore
8d	gosub
8e	return
8f	rem

90	stop
91	on
92	wait
93	load
94	save
95	verify
96	def
97	poke

98	print#
99	print
9a	cont
9b	list
9c	clr
9d	cmd
9e	sys
9f	open

a0	close
a1	get
a2	new
------------------ misc functions
a3	tab(
a4	to
a5	fn
a6	spc(
a7	then

a8	not
a9	step
------------------ operators
aa	+
ab	-
ac	*
ad	/
ae	^
af	and

b0	or
b1	>
b2	=
b3	<
------------------ functions
b4	sgn
b5	int
b6	abs
b7	usr

b8	fre
b9	pos
ba	sqr
bb	rnd
bc	log
bd	exp
be	cos
bf	sin

c0	tan
c1	atn
c2	peek
c3	len
c4	str$
c5	val
c6	asc
c7	chr$

c8	left$
c9	right$
ca	mid$
------------------
cb	go	(Basic 2.0 and higher only)

ff	pi



  Extension Keywords (Tokens CC - FE)

  The following codes are defined differently in each Basic version.
  The leftmost column shows VIC Super Expander commands (CC trough DD).
  Basic 3.5 and 7.0 differ in codes CE and FE, which are prefixes in 7.0,
  whereas in 3.5 CE = rlum and FE is unused.

  Codes CC to D4 (3.5, 7.0 and 10.0) are function keywords, and D5 trough
  FA are action keywords.


Token	Keyword
	2.0 Super	4.0		3.5/7.0		10.0

cc	key		concat		rgr		rgr  2)
cd	graphic		dopen		rclr		rclr 2)
ce	scnclr		dclose		rlum/*prefix*	*prefix*
cf	circle		record		joy		joy

d0	draw		header		rdot		rdot 2)
d1	region		collect		dec		dec
d2	color		backup		hex$		hex$
d3	point		copy		err$		err$
d4	sound		append		instr		instr
d5	char		dsave		else		else
d6	paint		dload		resume		resume
d7	rpot		catalog		trap		trap

d8	rpen		rename		tron		tron
d9	rsnd		scratch		troff		troff
da	rcolr		directory	sound		sound
db	rgr				vol		vol
dc	rjoy				auto		auto
dd	rdot				pudef		pudef
de					graphic		graphic
df					paint		paint 2)

e0					char		char
e1					box		box
e2					circle		circle
e3					gshape		paste 2)
e4					sshape		cut  2)
e5					draw		line
e6					locate		locate 2)
e7					color		color

e8					scnclr		scnclr
e9					scale		scale 2)
ea					help		help
eb					do		do
ec					loop		loop
ed					exit		exit
ee					directory 4)	dir
ef					dsave		dsave 4)

f0					dload		dload 4)
f1					header		header 4)
f2					scratch		scratch 4)
f3					collect 4)	collect 4)
f4					copy		copy 4)
f5					rename		rename 4)
f6					backup		backup 4)
f7					delete		delete

f8					renumber	renumber
f9					key		key
fa					monitor		monitor
					--------------------------
fb					using		using
fc					until		until
fd					while		while
fe					*prefix* 	*prefix*



  Prefixed Extension Keywords (Tokens CE02 - CE0A)

  The following codes implement function keywords. Basics 7.0 and 10.0 only.


Token	Keyword

ce00
ce01
ce02	pot
ce03	bump
ce04	pen
ce05	rsppos
ce06	rsprite
ce07	rspcolor

ce08	xor
ce09	rwindow
ce0a	pointer



  Prefixed Extension Keywords (Tokens FE02 - FE26)

  The following codes are for 7.0 and 10.0 only. Keywords in the
  middle are commom.


Token		Keyword
	 7.0		   10.0

fe00
fe01
fe02		bank
fe03		filter
fe04		play
fe05		tempo
fe06		movspr
fe07		sprite

fe08		sprcolor
fe09		rreg
fe0a		envelope
fe0b		sleep
fe0c		catalog 4)
fe0d		dopen 4)
fe0e		append 4)
fe0f		dclose 4)

fe10		bsave
fe11		bload
fe12		record 4)
fe13		concat 4)
fe14		dverify
fe15		dclear
fe16		sprsav
fe17		collision

fe18		begin
fe19		bend
fe1a		window
fe1b		boot
fe1c		width  2)
fe1d		sprdef 2)
fe1e		quit 1) 2)
fe1f	 stash		 dma

fe20
fe21	 fetch		 dma
fe22
fe23	 swap		 dma
fe24		off 1) 2)
fe25		fast
fe26		slow
fe27			 type

fe28			 bverify
fe29			 ectory (diRectorY)
fe2a			 erase
fe2b			 find
fe2c			 change
fe2d			 set  3)
fe2e			 screen
fe2f			 polygon

fe30			 ellipse
fe31			 viewport 2)
fe32			 gcopy 2)
fe33			 pen
fe34			 palette
fe35			 dmode
fe36			 dpat
fe37			 pic  2)

fe38			 genlock
fe39			 foreground
fe3a
fe3b			 background
fe3c			 border
fe3d			 highlight


 Notes:
  1)	Gives "unimplemented command error" on BASIC 7.0
  2)	Gives "unimplemented command error" on BASIC 10.0 v0.9
  3)	Only 'set def' is implemented.
  4)	Command also available on PET Basic 4.0, but the Token Code is
	 different from that of V3.5, 7.0 and 10.0.

 -----------------------------------------------------------------------------

 Third party products for VIC-20


 Turtle Basic v1.0 Keywords (Tokens CC - ED)
 Mighty Basic      Keywords (Tokens CC - FE)

        Turtle   Mighty

cc	graphic  delete
cd	old      old
ce	turn     renumber
cf	pen      help

d0	draw     header
d1	move     move
d2	point    trace
d3	kill     kill
d4	write    dump
d5	repeat   dsave
d6	screen   dload
d7	doke     dverify

d8	reloc    dresave
d9	fill     scratch
da	rtime    directory
db	base     key
dc	pause    send
dd	pop      pop
de	color    off
df	merge    bsave

e0	char     bload
e1	take     find
e2	sound    auto
e3	vol      pprint
e4	put      accept
e5	place    reset
e6	cls      else
e7	accept   color

e8	reset    take
e9	grab     pause
ea	rdot     base
eb	plr$     copychr
ec	deek     char
ed	joy      beep
ee               cls
ef               fill

f0               merge
f1               sound
f2               give
f3               plist
f4               put
f5               volume
f6               rtime
f7               msb

f8               lsb
f9               vector
fa               joy
fb               dec
fc               hex$
fd               grab
fe               ds$


 -----------------------------------------------------------------------------

 Third party products for C=64


  Basic 4.0 Expansion for C64 defines codes CC trough DA like 4.0 above,
  but also a few more:

Token	Keyword

db	color
dc	cold
dd	key
de	dverify
df	delete
e0	auto
e1	merge
e2	old
e3	monitor



  Speech Basic v2.7 Keywords (Tokens CC - E6)
  @Basic (Atbasic)  Keywords (Tokens CC - F6)
  Final Cartridge 3 Keywords (Tokens CC - E8)
  Ultrabasic-64     Keywords (Tokens CC - FE)
  Graphics basic    Keywords (Tokens CC - FE)
  WS basic          Keywords (Tokens CC - FE)
  Pegasus basic 4.0 Keywords (Tokens CC - EC)


Token  Speech  AtBasic    FC3      Ultra   Graph       WS      Peg

cc     reset   trace      off      dot     background  copy    off
cd     basic   delete     auto     draw    border      old     asc(
ce     help    auto       del      box     dir         port    sin(
cf     key     old        renum    tic     disk        doke    cos(

d0     himem   dump       ?ERROR?  copy    fill        vpoke   tan(
d1     disk    find       find     sprite  key         fill    atn(
d2     dir     renumber   old      off     circle      error   deg(
d3     bload   dload      dload    mode    procedure   send    rad(
d4     bsave   dsave      dverify  norm    dot         call    frac(
d5     map     dverify    dsave    graph   find        bit     mod(
d6     mem     directory  append   dump    change      dir     round(
d7     pause   catalog    dappend  gread   ren         bload   dec(

d8     block   scratch    dos      char    else        bsave   bin(
d9     hear    collect    kill     place   copy        find    deek(
da     record  rename     mon      multi   scroll      speed   instr(
db     play    copy       pdir     hires   roll        pitch   joy(
dc     voldef  backup     plist    hex     box         say     pot(
dd     coldef  disk       bar      bit     scale       fast    screen(
de     hex     header     desktop  colors  do          slow    test(
df     dez     append     dump     pixel   line        talk    using

e0     screen  merge      array    fill    sprite      shutup  ds$
e1     exec    mload      mem      circle  color       stash   hex$(
e2     mon     mverify    trace    block   hires       fetch   bin$(
e3     <-      msave      replace  sdata   clear       swap    space$(
e4     from    key        order    vol     text        off     ucase$(
e5     speed   basic      pack     gen     window      screen  string$(
e6     off     reset      unpack   scoll   off         device  input$(
e7             exit       mread    bcoll   at          object  time$

e8             enter      mwrite   joy     shape       vstash  spritex(
e9             doke                paddle  xysize      vfetch  spritey(
ea             set                 pen     speed       quiet   turtlex(
eb             help                sound   from        color   turtley(
ec             screen              tune    setorigin   cls     turtleang
ed             lomem               tdata   animate     curpos
ee             himem               set     multi       monitor
ef             colour              turnto  eze         subend

f0             type                turn    move        do
f1             time                tup     under       loop
f2             deek                tdown   edit        exit
f3             hex$                tcolor  reset       deek
f4             bin$                turtle  xpos        rsc
f5             off                 move    gprint      rsm
f6             alarm               bye     voice       dec
f7                                 rotate  adsr        hex$

f8                                 tpos    wave        hi
f9                                 ctr     ne          lo
fa                                 sctr    volume      ds$
fb                                 [       play        line
fc                                 ]       ypos        vpeek
fd                                 hard    sound       row
fe                                 exit    joy         joy



  Xbasic            Keywords (Tokens CC - EC)
  Drago basic 2.2   Keywords (Tokens CC - D8)
  REU-basic         Keywords (Tokens CC - DA)
  Basic Lightning   Keywords (Tokens CC - FE)

Token  Xbasic    Drago    REU    Light

cc     sprat     punkt    push   else
cd     brdr      linia    pull   hex$
ce     screen    rysuj    flip   deek
cf     quit      param    rec    true

d0     sprmult   kontur   stash  import
d1     move      anim     fetch  cfn
d2     sprite    kolor    swap   size
d3     asprite   puwid    reu    false
d4     dsprite   ryselip  size   ver$
d5     sid       koguma   dir    lpx
d6     envelope  fiut     @      lpy
d7     gate      figura   kill   common%

d8     frq       figuma   rom    crow
d9     wave               ram    ccol
da     vol                move   atr
db     fcut                      inc
dc     fmode                     num
dd     filter                    row2
de     frsn                      col2
df     cset                      spn2

e0     multi                     hgt
e1     extnd                     wid
e2     locate                    row
e3     center                    col
e4     hires                     spn
e5     line                      task
e6     hprnt                     halt
e7     plot                      repeat

e8     text                      until
e9     clear                     while
ea     colr                      wend
eb     stick                     cif
ec     btn                       celse
ed                               cend
ee                               label
ef                               doke

f0                               exit
f1                               allocate
f2                               disable
f3                               pull
f4                               dload
f5                               dsave
f6                               var
f7                               local

f8                               procend
f9                               proc
fa                               casend
fb                               of
fc                               case
fd                               rpt
fe                               setatr


 Simon's Basic Keywords

Token	Keyword

6400
6401	hires
6402	plot
6403	line
6404	block
6405	fchr
6406	fcol
6407	fill

6408	rec
6409	rot
640a	draw
640b	char
640c	hi col
640d	inv
640e	frac
640f	move

6410	place
6411	upb
6412	upw
6413	leftw
6414	leftb
6415	downb
6416	downw
6417	rightb

6418	rightw
6419	multi
641a	colour
641b	mmob
641c	bflash
641d	mob set
641e	music
641f	flash

6420	repeat
6421	play
6422	>>
6423	centre
6424	envelope
6425	cgoto
6426	wave
6427	fetch

6428	at(
6429	until
642a	>>
642b	>>
642c	use
642d	>>
642e	global
642f	>>

6430	reset
6431	proc
6432	call
6433	exec
6434	end proc
6435	exit
6436	end loop
6437	on key

6438	disable
6439	resume
643a	loop
643b	delay
643c	>>
643d	>>
643e	>>
643f	>>

6440	secure
6441	disapa
6442	circle
6443	on error
6444	no error
6445	local
6446	rcomp
6447	else

6448	retrace
6449	trace
644a	dir
644b	page
644c	dump
644d	find
644e	option
644f	auto

6450	old
6451	joy
6452	mod
6453	div
6454	>>
6455	dup
6456	inkey
6457	inst

6458	test
6459	lin
645a	exor
645b	insert
645c	pot
645d	penx
645e	>>
645f	peny

6460	sound
6461	graphics
6462	design
6463	rlocmob
6464	cmob
6465	bckgnds
6466	pause
6467	nrm

6468	mob off
6469	off
646a	angl
646b	arc
646c	cold
646d	scrsv
646e	scrld
646f	text

6470	cset
6471	vol
6472	disk
6473	hrdcpy
6474	key
6475	paint
6476	low col
6477	copy

6478	merge
6479	renumber
647a	mem
647b	detect
647c	check
647d	display
647e	err
647f	out

