EMMA 02

BASIC

  • Home
  • Download
  • Change Log
  • Help
  • Compilation
    • Windows
    • OS X
    • Ubuntu
    • Fedora
    • openSUSE
  • Forums
  • Tape Conversion
  • Machine Code
    • SYSTEM00
    • CDP1801
    • CDP1802
    • CDP1804
    • CDP1805
    • Differences
  • Pseudo Code
    • AMVBAS
    • AM4KBAS
    • CARDTRAN
    • Chip-8, 8X, ETI-660 & Elf
    • FEL-1
    • FPA-1
    • FPL-2
    • FPL-4
    • GPL-2
    • GPL-3
    • GPL-4
    • GPL-A (2K RAM)
    • GPL-A (2K ROM)
    • ST2
    • ST4
    • STK
    • Test-Word
    • Super-chip
  • XML Code
    • Main Elements
    • I/O
    • System
    • A/D Convertor
    • BASIC
    • Batch wav
    • Bootstrap
    • Cassette
    • CD4536B
    • CDP1851
    • CDP1852
    • CDP1854
    • CDP1855
    • CDP1877
    • CDP1878
    • CDP1879
    • Debugger
    • COMX Diagnostic
    • Dip switch
    • Disk
    • EF Buttons
    • Flip Flop
    • Front Panel
    • GUI
    • HEX Modem
    • I/O Group
    • Keyboard
    • Keyfile
    • Locations
    • Memory
    • MM57109
    • Printer
    • RTC
    • Sound
    • Splash
    • USB
    • Video
    • Videodump
    • vt
    • X Modem
  • BASIC
    • General Information
    • COMX BASIC V1.00
    • Floating Point BASIC 2.2
    • Pecom 32 BASIC
    • Pecom 64 BASIC 1.0 & 4.0
    • Quest Super BASIC 1.4
    • Quest Super BASIC 3.0
    • Quest Super BASIC 5.0
    • Quest Super BASIC 6.0
    • RCA BASIC3 V1.1
    • Telmac SBASIC v24.3
    • Error Messages
  • Computer List

 

 

 

 

 

 

 

 

 

 

 

 

Pecom 64 BASIC 1.0 & 4.0

Commands

All Pecom 64 BASIC 1.0 and 4.0 Commands including some of the start addresses of these commands are listed below. Try for example CALL (@B301)"HELLO"; this will do the same as the PRINT command. Click on the command itself to get a description of command format and usage.

I guess two interesting routines for people from Serbia:
CALL (&CE00): Switch to Cyrilic character set
CALL (&CE70): Switch to Latin character set

ABS

@B9D9

LOGIN

@9DB6

ASC

@A791

LOGOUT

@976C

ATN

@AB06

LPRINT

@8F85

CALL

@A96B

M+

@9DC2

CHR$

 

MEM

@ADAC

CLD

@9FD0

MID$

 

CHRGEN

@8D96

MOD

@90AA

CLS

@AEF3

MSG

@8E79

COLOR

@9DF8

NEW

@9633

COS

@AB03

NEXT

@AC7B

CPOS

@B5E1

NOT

@9ED8

DATA

@A2FB

OB

@839E

DEFINT

@B6D8

PEEK

@A7DF

DEFUS

@B2ED

PGREAD

@8E73

DEG

@BFF7

PI

@A6E2

DIM

@A700

PLOAD

@8E8B

DLOAD

@8E8E

PLOT

@F190

DREAD

@AFDF

POKE

@AEC1

DSAVE

@9542

PRINT / PR

@B301

DWRITE

@AFD9

PSAVE

@953F

ED

@8E91

RAD

@BFFA

EDIT

@9400

READ

@BD6C

END

@9EC9

REM

@ADF9

EOD

@AFB9

RENUMBER

@A400

EOP

@AFB6

RESTORE

@A2EF

EXIT

@BFAF

RETURN

@ACAB

EXP

@AB09

RFLN

@94F5

FIXED

@ABE7

RND

@A600

FNUM

@AC00

RUN

@A076

FOR TO STEP

@A200

RUN+

 

FORMAT

@ACF3

SEND

@8E85

FVAL

@A78E

SCR

@95F4

GOSUB

@ACB7

SGN

@A699

GOTO

@AF2A

SIN

@AB00

IF THEN

@B033

SPY

@8E7F

INP

@96C3

SQR

@AB0F

INPUT

@AD74

STR$

 

INT

@A000

TAB

 

INUM

@A903

TONE

@9797

KEY

@906E

TRACE

@AEE0

LEN

@AE04

USR

@A96E

LET

@A300

WAIT

@A3DA

LIST

@9868

WFLN

@976C

LLIST

@8FD5

WRITE

@8E6D

LOG

@AB0C

 

 

Operators

Arithmetic operators
Unary minus - (first priority)
Exponentiation ↑ (first priority)
Multiply * (second priority)
Divide / (second priority)
Add + (third priority)
Subtract - (third priority)
Assignment operator

The assignment symbol is the equal sign ‘=‘.

Relational operators

Equality: =
Inequality: <>
Greater than: >
Less than: <
Greater than or equal to: >=
Less than or equal to: <=

Logical operators

AND
XOR
OR
NOT

Miscellaneous operators
: separates statements on the same line
; PRINT delimiter
, PRINT delimiter
“ string delimiter
( group terms
) group terms
%...% 8 bit binary values
# 8 bit hexadecimal values
& 16 bit hexadecimal values

System Parameters

Memory @0000-@0200 in the Pecom 64 is used by the BASIC ROM for storing data, usage for some of the addresses is explained below.

0000 - 005F Line buffer
0081 - 0082 DEFUS value
0083 - 0084 EOP (End Of Program) value
008A - 008D In hook, call to input routine
008E - 0091 Out hook, call to output routine
0092 - 0093 End array/start string value
0094 - 0095 Start array value
0099 - 009A EOD (End Of Data) and end string value
009B X value TAB
009D Flags
009E Start address user RAM
009F - 00A2 Call to BASIC functions
00A3 - 00A6 Call to BASIC functions
00B1 - 00B2 DATA pointer
0100 - 0168 Storage A, B, C.... Z, 4 bytes per variable