EMMA 02

BASIC

  • Home
  • Download
  • Change Log
  • Compilation
    • Windows
    • OS X
    • Linux
  • Forum
  • COMX-35
    • General Information
    • F&M
    • Did You Know...?
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
    • Expansion Box
    • Disk
    • Printers
    • Thermal
    • PL-80
    • 32K RAM
    • 80 Column
    • F&M EPROM
    • F&M Joy Card
    • Super Board
    • COMX BASIC V1.00
  • Cosmac Elf 2000
    • General Information
    • I/O Map
    • Memory
    • Video
  • Cosmicos
    • General Information
    • I/O Map
  • Cosmac Elf
    • General Information
    • I/O Map
  • Netronics Elf II
    • General Information
    • I/O Map
    • Keyboard
  • Quest Super Elf
    • General Information
    • I/O Map
  • Membership Card
    • General Information
    • I/O Map
  • VELF
    • General Information
    • I/O Map
    • BIOS
    • Video
    • Keyboard
  • Microtutor
    • General Information
    • I/O Map
  • Cosmac Vip
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
    • Floating Point BASIC 2.2
  • Cosmac Vip II
    • General Information
    • I/O Map
    • Floating Point BASIC 2.2
  • MCDS
    • General Information
    • I/O Map
  • MS2000
    • General Information
    • I/O Map
  • RCA Studio II
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard
  • RCA Studio IV
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard
    • Pseudo Code
  • Visicom COM-100
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard
  • Victory MPT-02
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard
  • Cidelsa
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
  • Telmac TMC-600
    • General Information
    • Software
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
    • Telmac SBASIC v24.3
  • Telmac 1800
    • General Information
    • I/O Map
    • Memory
    • Video
    • Keyboard
    • Cassette
  • Telmac 2000
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
  • Oscom Nano
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Casette
  • Pecom 32 and 64
    • General Information
    • Software
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Casette
    • Pecom 32 BASIC
    • Pecom 64 BASIC 1.0 & 4.0
  • ETI 660
    • General Information
    • I/O Map
    • Memory
    • Video
    • Sound
    • Keyboard
    • Cassette
  • 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

 

 

 

 

 

 

 

 

 

 

 

 

Pecom 32

Commands

All Pecom 32 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.

ABS

@B9D9

LET

@A300

ASC

@A791

LIST

@9868

ATN

@AB06

LLIST

@8FD5

CALL

@A96B

LOG

@AB0C

CHR$

 

LPRINT

@8F85

CHRGEN

@8D96

MEM

@ADAC

CLD

@9FD0

MID$

 

CLOSE

@9727

MOD

@90AA

CLS

@AEF3

NEW

@9633

COLOR

@9DF8

NEXT

@AC7B

COS

@AB03

NOT

@9ED8

CPOS

@B5E1

OB

@839E

DATA

@A2FB

OUT

@9600

DDIIN

@9FB9

PEEK

@A7DF

DEFINT

@B6D8

PI

@A6E2

DEFUS

@B2ED

PLOAD

@9324

DEG

@BFF7

POKE

@AEC1

DIM

@A700

PRINT / PR

@B301

DLOAD

@9327

PSAVE

@953F

DSAVE

@9542

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

@BEF0

SCR

@95F4

FVAL

@A78E

SGN

@A699

GOSUB

@ACB7

SIN

@AB00

GOTO

@AF2A

SQR

@AB0F

IF THEN

@B033

STR$

 

INP

@96C3

TAB

 

INPUT

@AD74

TONE

@9797

INT

@A000

TRACE

@AEE0

INUM

@A903

USR

@A96E

KEY

@906E

WAIT

@A3DA

LEN

@AE04

WFLN

@976C

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 32 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