Difference between revisions of "Tokens"

From The Dragon Archive
(add missing 0xff80: "SGN" for coco)
(update CoCo tokens: https://github.com/jedie/DragonPy/commit/ba643b9efb0b4d46448450d5448c67a4aeae4846)
Line 4: Line 4:
  
  
 +
 +
* "CoCo A": - Tokens from Color BASIC 1.3
 +
* "CoCo B": - Additional tokens from Extended Color BASIC 1.1 only
 
{| class="wikitable" style="font-family: monospace; background-color:#ffffcc;" cellpadding="10"
 
{| class="wikitable" style="font-family: monospace; background-color:#ffffcc;" cellpadding="10"
 
|-
 
|-
Line 9: Line 12:
 
! Dragon
 
! Dragon
 
token
 
token
! CoCo
+
! CoCo A
 +
token
 +
! CoCo B
 
token
 
token
  
Line 16: Line 21:
 
| FOR
 
| FOR
 
| FOR
 
| FOR
 +
|
 
|-
 
|-
 
| $81
 
| $81
 
| GO
 
| GO
 
| GO
 
| GO
 +
|
 
|-
 
|-
 
| $82
 
| $82
 
| REM
 
| REM
 
| REM
 
| REM
 +
|
 
|-
 
|-
 
| $83
 
| $83
 
| '
 
| '
 
| '
 
| '
 +
|
 
|-
 
|-
 
| $84
 
| $84
 
| ELSE
 
| ELSE
 
| ELSE
 
| ELSE
 +
|
 
|-
 
|-
 
| $85
 
| $85
 
| IF
 
| IF
 
| IF
 
| IF
 +
|
 
|-
 
|-
 
| $86
 
| $86
 
| DATA
 
| DATA
 
| DATA
 
| DATA
 +
|
 
|-
 
|-
 
| $87
 
| $87
 
| PRINT
 
| PRINT
 
| PRINT
 
| PRINT
 +
|
 
|-
 
|-
 
| $88
 
| $88
 
| ON
 
| ON
 
| ON
 
| ON
 +
|
 
|-
 
|-
 
| $89
 
| $89
 
| INPUT
 
| INPUT
 
| INPUT
 
| INPUT
 +
|
 
|-
 
|-
 
| $8a
 
| $8a
 
| END
 
| END
 
| END
 
| END
 +
|
 
|-
 
|-
 
| $8b
 
| $8b
 
| NEXT
 
| NEXT
 
| NEXT
 
| NEXT
 +
|
 
|-
 
|-
 
| $8c
 
| $8c
 
| DIM
 
| DIM
 
| DIM
 
| DIM
 +
|
 
|-
 
|-
 
| $8d
 
| $8d
 
| READ
 
| READ
 
| READ
 
| READ
 +
|
 
|-
 
|-
 
| $8e
 
| $8e
 
| LET
 
| LET
 
| RUN
 
| RUN
 +
|
 
|-
 
|-
 
| $8f
 
| $8f
 
| RUN
 
| RUN
 
| RESTORE
 
| RESTORE
 +
|
 
|-
 
|-
 
| $90
 
| $90
 
| RESTORE
 
| RESTORE
 
| RETURN
 
| RETURN
 +
|
 
|-
 
|-
 
| $91
 
| $91
 
| RETURN
 
| RETURN
 
| STOP
 
| STOP
 +
|
 
|-
 
|-
 
| $92
 
| $92
 
| STOP
 
| STOP
 
| POKE
 
| POKE
 +
|
 
|-
 
|-
 
| $93
 
| $93
 
| POKE
 
| POKE
 
| CONT
 
| CONT
 +
|
 
|-
 
|-
 
| $94
 
| $94
 
| CONT
 
| CONT
 
| LIST
 
| LIST
 +
|
 
|-
 
|-
 
| $95
 
| $95
 
| LIST
 
| LIST
 
| CLEAR
 
| CLEAR
 +
|
 
|-
 
|-
 
| $96
 
| $96
 
| CLEAR
 
| CLEAR
 
| NEW
 
| NEW
 +
|
 
|-
 
|-
 
| $97
 
| $97
 
| NEW
 
| NEW
 
| CLOAD
 
| CLOAD
 +
|
 
|-
 
|-
 
| $98
 
| $98
 
| DEF
 
| DEF
 
| CSAVE
 
| CSAVE
 +
|
 
|-
 
|-
 
| $99
 
| $99
 
| CLOAD
 
| CLOAD
 
| OPEN
 
| OPEN
 +
|
 
|-
 
|-
 
| $9a
 
| $9a
 
| CSAVE
 
| CSAVE
 
| CLOSE
 
| CLOSE
 +
|
 
|-
 
|-
 
| $9b
 
| $9b
 
| OPEN
 
| OPEN
 
| LLIST
 
| LLIST
 +
|
 
|-
 
|-
 
| $9c
 
| $9c
 
| CLOSE
 
| CLOSE
 
| SET
 
| SET
 +
|
 
|-
 
|-
 
| $9d
 
| $9d
 
| LLIST
 
| LLIST
 
| RESET
 
| RESET
 +
|
 
|-
 
|-
 
| $9e
 
| $9e
 
| SET
 
| SET
 
| CLS
 
| CLS
 +
|
 
|-
 
|-
 
| $9f
 
| $9f
 
| RESET
 
| RESET
 
| MOTOR
 
| MOTOR
 +
|
 
|-
 
|-
 
| $a0
 
| $a0
 
| CLS
 
| CLS
 
| SOUND
 
| SOUND
 +
|
 
|-
 
|-
 
| $a1
 
| $a1
 
| MOTOR
 
| MOTOR
 
| AUDIO
 
| AUDIO
 +
|
 
|-
 
|-
 
| $a2
 
| $a2
 
| SOUND
 
| SOUND
 
| EXEC
 
| EXEC
 +
|
 
|-
 
|-
 
| $a3
 
| $a3
 
| AUDIO
 
| AUDIO
 
| SKIPF
 
| SKIPF
 +
|
 
|-
 
|-
 
| $a4
 
| $a4
 
| EXEC
 
| EXEC
 
| TAB(
 
| TAB(
 +
|
 
|-
 
|-
 
| $a5
 
| $a5
 
| SKIPF
 
| SKIPF
 
| TO
 
| TO
 +
|
 
|-
 
|-
 
| $a6
 
| $a6
 
| DEL
 
| DEL
 
| SUB
 
| SUB
 +
|
 
|-
 
|-
 
| $a7
 
| $a7
 
| EDIT
 
| EDIT
 
| THEN
 
| THEN
 +
|
 
|-
 
|-
 
| $a8
 
| $a8
 
| TRON
 
| TRON
 
| NOT
 
| NOT
 +
|
 
|-
 
|-
 
| $a9
 
| $a9
 
| TROFF
 
| TROFF
 
| STEP
 
| STEP
 +
|
 
|-
 
|-
 
| $aa
 
| $aa
 
| LINE
 
| LINE
 
| OFF
 
| OFF
 +
|
 
|-
 
|-
 
| $ab
 
| $ab
 
| PCLS
 
| PCLS
 
| +
 
| +
 +
|
 
|-
 
|-
 
| $ac
 
| $ac
 
| PSET
 
| PSET
 
| -
 
| -
 +
|
 
|-
 
|-
 
| $ad
 
| $ad
 
| PRESET
 
| PRESET
 
| *
 
| *
 +
|
 
|-
 
|-
 
| $ae
 
| $ae
 
| SCREEN
 
| SCREEN
 
| /
 
| /
 +
|
 
|-
 
|-
 
| $af
 
| $af
 
| PCLEAR
 
| PCLEAR
 
| ^
 
| ^
 +
|
 
|-
 
|-
 
| $b0
 
| $b0
 
| COLOR
 
| COLOR
 
| AND
 
| AND
 +
|
 
|-
 
|-
 
| $b1
 
| $b1
 
| CIRCLE
 
| CIRCLE
 
| OR
 
| OR
 +
|
 
|-
 
|-
 
| $b2
 
| $b2
 
| PAINT
 
| PAINT
 
| >
 
| >
 +
|
 
|-
 
|-
 
| $b3
 
| $b3
 
| GET
 
| GET
 
| =
 
| =
 +
|
 
|-
 
|-
 
| $b4
 
| $b4
 
| PUT
 
| PUT
 
| <
 
| <
 +
|
 
|-
 
|-
 
| $b5
 
| $b5
 
| DRAW
 
| DRAW
 
|  
 
|  
 +
| DEL
 
|-
 
|-
 
| $b6
 
| $b6
 
| PCOPY
 
| PCOPY
 
|  
 
|  
 +
| EDIT
 
|-
 
|-
 
| $b7
 
| $b7
 
| PMODE
 
| PMODE
 
|  
 
|  
 +
| TRON
 
|-
 
|-
 
| $b8
 
| $b8
 
| PLAY
 
| PLAY
 
|  
 
|  
 +
| TROFF
 
|-
 
|-
 
| $b9
 
| $b9
 
| DLOAD
 
| DLOAD
 
|  
 
|  
 +
| DEF
 
|-
 
|-
 
| $ba
 
| $ba
 
| RENUM
 
| RENUM
 
|  
 
|  
 +
| LET
 
|-
 
|-
 
| $bb
 
| $bb
 
| TAB(
 
| TAB(
 
|  
 
|  
 +
| LINE
 
|-
 
|-
 
| $bc
 
| $bc
 
| TO
 
| TO
 
|  
 
|  
 +
| PCLS
 
|-
 
|-
 
| $bd
 
| $bd
 
| SUB
 
| SUB
 
|  
 
|  
 +
| PSET
 
|-
 
|-
 
| $be
 
| $be
 
| FN
 
| FN
 
|  
 
|  
 +
| PRESET
 
|-
 
|-
 
| $bf
 
| $bf
 
| THEN
 
| THEN
 
|  
 
|  
 +
| SCREEN
 
|-
 
|-
 
| $c0
 
| $c0
 
| NOT
 
| NOT
 
|  
 
|  
 +
| PCLEAR
 
|-
 
|-
 
| $c1
 
| $c1
 
| STEP
 
| STEP
 
|  
 
|  
 +
| COLOR
 
|-
 
|-
 
| $c2
 
| $c2
 
| OFF
 
| OFF
 
|  
 
|  
 +
| CIRCLE
 
|-
 
|-
 
| $c3
 
| $c3
 
| +
 
| +
 
|  
 
|  
 +
| PAINT
 
|-
 
|-
 
| $c4
 
| $c4
 
| -
 
| -
 
|  
 
|  
 +
| GET
 
|-
 
|-
 
| $c5
 
| $c5
 
| *
 
| *
 
|  
 
|  
 +
| PUT
 
|-
 
|-
 
| $c6
 
| $c6
 
| /
 
| /
 
|  
 
|  
 +
| DRAW
 
|-
 
|-
 
| $c7
 
| $c7
 
| ^
 
| ^
 
|  
 
|  
 +
| PCOPY
 
|-
 
|-
 
| $c8
 
| $c8
 
| AND
 
| AND
 
|  
 
|  
 +
| PMODE
 
|-
 
|-
 
| $c9
 
| $c9
 
| OR
 
| OR
 
|  
 
|  
 +
| PLAY
 
|-
 
|-
 
| $ca
 
| $ca
 
| >
 
| >
 
|  
 
|  
 +
| DLOAD
 
|-
 
|-
 
| $cb
 
| $cb
 
| =
 
| =
 
|  
 
|  
 +
| RENUM
 
|-
 
|-
 
| $cc
 
| $cc
 
| <
 
| <
 
|  
 
|  
 +
| FN
 
|-
 
|-
 
| $cd
 
| $cd
 
| USING
 
| USING
 
|  
 
|  
 +
| USING
 
|-
 
|-
 
| $ff80
 
| $ff80
 
| SGN
 
| SGN
 
| SGN
 
| SGN
 +
|
 
|-
 
|-
 
| $ff81
 
| $ff81
 
| INT
 
| INT
 
| INT
 
| INT
 +
|
 
|-
 
|-
 
| $ff82
 
| $ff82
 
| ABS
 
| ABS
 
| ABS
 
| ABS
 +
|
 
|-
 
|-
 
| $ff83
 
| $ff83
 
| POS
 
| POS
 
| USR
 
| USR
 +
|
 
|-
 
|-
 
| $ff84
 
| $ff84
 
| RND
 
| RND
 
| RND
 
| RND
 +
|
 
|-
 
|-
 
| $ff85
 
| $ff85
 
| SQR
 
| SQR
 
| SIN
 
| SIN
 +
|
 
|-
 
|-
 
| $ff86
 
| $ff86
 
| LOG
 
| LOG
 
| PEEK
 
| PEEK
 +
|
 
|-
 
|-
 
| $ff87
 
| $ff87
 
| EXP
 
| EXP
 
| LEN
 
| LEN
 +
|
 
|-
 
|-
 
| $ff88
 
| $ff88
 
| SIN
 
| SIN
 
| STR$
 
| STR$
 +
|
 
|-
 
|-
 
| $ff89
 
| $ff89
 
| COS
 
| COS
 
| VAL
 
| VAL
 +
|
 
|-
 
|-
 
| $ff8a
 
| $ff8a
 
| TAN
 
| TAN
 
| ASC
 
| ASC
 +
|
 
|-
 
|-
 
| $ff8b
 
| $ff8b
 
| ATN
 
| ATN
 
| CHR$
 
| CHR$
 +
|
 
|-
 
|-
 
| $ff8c
 
| $ff8c
 
| PEEK
 
| PEEK
 
| EOF
 
| EOF
 +
|
 
|-
 
|-
 
| $ff8d
 
| $ff8d
 
| LEN
 
| LEN
 
| JOYSTK
 
| JOYSTK
 +
|
 
|-
 
|-
 
| $ff8e
 
| $ff8e
 
| STR$
 
| STR$
 
| LEFT$
 
| LEFT$
 +
|
 
|-
 
|-
 
| $ff8f
 
| $ff8f
 
| VAL
 
| VAL
 
| RIGHT$
 
| RIGHT$
 +
|
 
|-
 
|-
 
| $ff90
 
| $ff90
 
| ASC
 
| ASC
 
| MID$
 
| MID$
 +
|
 
|-
 
|-
 
| $ff91
 
| $ff91
 
| CHR$
 
| CHR$
 
| POINT
 
| POINT
 +
|
 
|-
 
|-
 
| $ff92
 
| $ff92
 
| EOF
 
| EOF
 
| INKEY$
 
| INKEY$
 +
|
 
|-
 
|-
 
| $ff93
 
| $ff93
 
| JOYSTK
 
| JOYSTK
 
| MEM
 
| MEM
 +
|
 
|-
 
|-
 
| $ff94
 
| $ff94
 
| FIX
 
| FIX
 
|  
 
|  
 +
| ATN
 
|-
 
|-
 
| $ff95
 
| $ff95
 
| HEX$
 
| HEX$
 
|  
 
|  
 +
| COS
 
|-
 
|-
 
| $ff96
 
| $ff96
 
| LEFT$
 
| LEFT$
 
|  
 
|  
 +
| TAN
 
|-
 
|-
 
| $ff97
 
| $ff97
 
| RIGHT$
 
| RIGHT$
 
|  
 
|  
 +
| EXP
 
|-
 
|-
 
| $ff98
 
| $ff98
 
| MID$
 
| MID$
 
|  
 
|  
 +
| FIX
 
|-
 
|-
 
| $ff99
 
| $ff99
 
| POINT
 
| POINT
 
|  
 
|  
 +
| LOG
 
|-
 
|-
 
| $ff9a
 
| $ff9a
 
| INKEY$
 
| INKEY$
 
|  
 
|  
 +
| POS
 
|-
 
|-
 
| $ff9b
 
| $ff9b
 
| MEM
 
| MEM
 
|  
 
|  
 +
| SQR
 
|-
 
|-
 
| $ff9c
 
| $ff9c
 
| VARPTR
 
| VARPTR
 
|  
 
|  
 +
| HEX$
 
|-
 
|-
 
| $ff9d
 
| $ff9d
 
| INSTR
 
| INSTR
 
|  
 
|  
 +
| VARPTR
 
|-
 
|-
 
| $ff9e
 
| $ff9e
 
| TIMER
 
| TIMER
 
|  
 
|  
 +
| INSTR
 
|-
 
|-
 
| $ff9f
 
| $ff9f
 
| PPOINT
 
| PPOINT
 
|  
 
|  
 +
| TIMER
 
|-
 
|-
 
| $ffa0
 
| $ffa0
 
| STRING$
 
| STRING$
 
|  
 
|  
 +
| PPOINT
 
|-
 
|-
 
| $ffa1
 
| $ffa1
 
| USR
 
| USR
 
|  
 
|  
 +
| STRING$
 
|-
 
|-
 
|}
 
|}

Revision as of 10:18, 27 August 2014

Dragon 32 / CoCo tokens

(Generated with a Python script: https://github.com/jedie/DragonPy/blob/master/dragonlib/CoCo/basic_tokens.py )


  • "CoCo A": - Tokens from Color BASIC 1.3
  • "CoCo B": - Additional tokens from Extended Color BASIC 1.1 only
value Dragon

token

CoCo A

token

CoCo B

token

$80 FOR FOR
$81 GO GO
$82 REM REM
$83 ' '
$84 ELSE ELSE
$85 IF IF
$86 DATA DATA
$87 PRINT PRINT
$88 ON ON
$89 INPUT INPUT
$8a END END
$8b NEXT NEXT
$8c DIM DIM
$8d READ READ
$8e LET RUN
$8f RUN RESTORE
$90 RESTORE RETURN
$91 RETURN STOP
$92 STOP POKE
$93 POKE CONT
$94 CONT LIST
$95 LIST CLEAR
$96 CLEAR NEW
$97 NEW CLOAD
$98 DEF CSAVE
$99 CLOAD OPEN
$9a CSAVE CLOSE
$9b OPEN LLIST
$9c CLOSE SET
$9d LLIST RESET
$9e SET CLS
$9f RESET MOTOR
$a0 CLS SOUND
$a1 MOTOR AUDIO
$a2 SOUND EXEC
$a3 AUDIO SKIPF
$a4 EXEC TAB(
$a5 SKIPF TO
$a6 DEL SUB
$a7 EDIT THEN
$a8 TRON NOT
$a9 TROFF STEP
$aa LINE OFF
$ab PCLS +
$ac PSET -
$ad PRESET *
$ae SCREEN /
$af PCLEAR ^
$b0 COLOR AND
$b1 CIRCLE OR
$b2 PAINT >
$b3 GET =
$b4 PUT <
$b5 DRAW DEL
$b6 PCOPY EDIT
$b7 PMODE TRON
$b8 PLAY TROFF
$b9 DLOAD DEF
$ba RENUM LET
$bb TAB( LINE
$bc TO PCLS
$bd SUB PSET
$be FN PRESET
$bf THEN SCREEN
$c0 NOT PCLEAR
$c1 STEP COLOR
$c2 OFF CIRCLE
$c3 + PAINT
$c4 - GET
$c5 * PUT
$c6 / DRAW
$c7 ^ PCOPY
$c8 AND PMODE
$c9 OR PLAY
$ca > DLOAD
$cb = RENUM
$cc < FN
$cd USING USING
$ff80 SGN SGN
$ff81 INT INT
$ff82 ABS ABS
$ff83 POS USR
$ff84 RND RND
$ff85 SQR SIN
$ff86 LOG PEEK
$ff87 EXP LEN
$ff88 SIN STR$
$ff89 COS VAL
$ff8a TAN ASC
$ff8b ATN CHR$
$ff8c PEEK EOF
$ff8d LEN JOYSTK
$ff8e STR$ LEFT$
$ff8f VAL RIGHT$
$ff90 ASC MID$
$ff91 CHR$ POINT
$ff92 EOF INKEY$
$ff93 JOYSTK MEM
$ff94 FIX ATN
$ff95 HEX$ COS
$ff96 LEFT$ TAN
$ff97 RIGHT$ EXP
$ff98 MID$ FIX
$ff99 POINT LOG
$ff9a INKEY$ POS
$ff9b MEM SQR
$ff9c VARPTR HEX$
$ff9d INSTR VARPTR
$ff9e TIMER INSTR
$ff9f PPOINT TIMER
$ffa0 STRING$ PPOINT
$ffa1 USR STRING$

Links