PETCAT version 2.17 PL 1 1 Jan 2008 Listed below are keywords and token codes for all CBM Basic versions supported on petcat v2.17 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 WS basic final 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 2.0 with Magic Basic Basic 2.0 with Easy Basic Basic 2.0 with Blarg Basic 2.0 with Game Basic Basic 4.0 Basic 4.0 extension for C64 Basic 4.0 extension for VIC20 Basic 5.0 extension for VIC20 Basic 3.5 Basic 7.0 Basic 7.1 extension 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 4.0 (VIC20) 5.0 3.5/7.0/7.1 10.0 cc key concat concat concat rgr rgr 2) cd graphic dopen dopen dopen rclr rclr 2) ce scnclr dclose dclose dclose rlum/*prefix* *prefix* cf circle record record record joy joy d0 draw header header header rdot rdot 2) d1 region collect collect collect dec dec d2 color backup backup backup hex$ hex$ d3 point copy copy copy err$ err$ d4 sound append append append instr instr d5 char dsave dsave dsave else else d6 paint dload dload dload resume resume d7 rpot catalog catalog catalog trap trap d8 rpen rename rename rename tron tron d9 rsnd scratch scratch scratch troff troff da rcolr directory directory directory sound sound db rgr ieee dverify vol vol dc rjoy serial monitor auto auto dd rdot parallel repeat pudef pudef de monitor bell graphic graphic df modem commands paint paint 2) e0 renew char char e1 ` box box e2 key circle circle e3 auto gshape paste 2) e4 off sshape cut 2) e5 draw line e6 merge locate locate 2) e7 color color color e8 mem scnclr scnclr e9 enter scale scale 2) ea delete help help eb find do do ec number loop loop ed else exit exit ee call directory 4) dir ef graphic dsave dsave 4) f0 alpha dload dload 4) f1 dmerge 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, 7.1 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 7.0 7.1 10.0 Keyword Keyword Keyword fe00 fe01 fe02 bank bank bank fe03 filter filter filter fe04 play play play fe05 tempo tempo tempo fe06 movspr movspr movspr fe07 sprite sprite sprite fe08 sprcolor sprcolor sprcolor fe09 rreg rreg rreg fe0a envelope envelope envelope fe0b sleep sleep sleep fe0c catalog 4) catalog 4) catalog 4) fe0d dopen 4) dopen 4) dopen 4) fe0e append 4) append 4) append 4) fe0f dclose 4) dclose 4) dclose 4) fe10 bsave bsave bsave fe11 bload bload bload fe12 record 4) record 4) record 4) fe13 concat 4) concat 4) concat 4) fe14 dverify dverify dverify fe15 dclear dclear dclear fe16 sprsav sprsav sprsav fe17 collision collision collision fe18 begin begin begin fe19 bend bend bend fe1a window window window fe1b boot boot boot fe1c width width width 2) fe1d sprdef sprdef sprdef 2) fe1e quit 1) quit 1) quit 2) fe1f stash stash dma fe20 fe21 fetch fetch dma fe22 fe23 swap swap dma fe24 off 1) off 1) off 2) fe25 fast fast fe26 slow slow fe27 cwind type fe28 sscrn bverify fe29 lscrn ectory (diRectorY) fe2a hide erase fe2b show find fe2c sfont change fe2d lfont set 3) fe2e view screen fe2f fcopy polygon fe30 esave ellipse fe31 send viewport 2) fe32 check gcopy 2) fe33 esc pen fe34 old palette fe35 find dmode fe36 dump dpat fe37 merge pic 2) fe38 genlock fe39 foreground fe3a fe3b background fe3c border fe3d highlight Notes: 1) Gives "unimplemented command error" on BASIC 7.0 and 7.1 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, 7.1 and 10.0. -----------------------------------------------------------------------...
Amiga7878