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

 

 

 

 

 

 

 

 

 

 

 

 

Floating Point BASIC 2.2

Commands

All Floating Point BASIC 2.2 Commands including some of the start addresses of these commands are listed below. Click on the command itself to get a description of command format and usage.

ABS

@3200

LEN

@31BB

ASC

@3300

LET

@2D81

ATN

@1C82

LIST

@2F70

CALL

@2162

LNPRINTOFF

@1CFB

CHR$

 

LNPRINTON

@1CF7

CLC

@20D3

LOG

@1C8A

CLD

@31E9

MEM

@28BA

CLS

@1BDC

MID$

 

COLOR

@131E

NEW

@32B9

COS

@1C7E

NEXT

@3400

DATA

@34ED

PEEK

@22DE

DEFINT

@3420

PI

@18E2

DEFUS

@34BC

PLOAD

@14FE

DIM

@2B00

PLOT

@1982

DISPLAY

@2063

POKE

@19E1

DLOAD

@1501

PRINT / PR

@2C00

DSAVE

@1507

PSAVE

@1504

END

@1C6E

PT=

@1F43

EOD

@34D9

READ

@306E

EOP

@27F8

REM

@34E1

EXIT

@21DB

RESTORE

@26F4

EXP

@1C86

RETURN

@34E8

FIXED

@33F0

RND

@106A

FNUM

@1D78

RUN

 

FOR TO STEP

@2600

SGN

@1E70

FREQ

@20C2

SHOW

@1A00

GET

@1DF1

SIN

@1C7A

GOKEY

@1FE2

SQR

@1C8E

GOSUB

@1DCB

STORE

@1FF3

GOTO

@20A6

TAB

 

HIT

@13EC

TIME

@1BF1

IF THEN

@2E00

TIMER

@1EF0

INPUT

@2599

TONE

@1CE7

INT

 

TVOFF

@1B7D

INUM

@1904

TVON

@1B6A

KEY

@17E6

USR

@2165

 

 

WAIT

@33D4

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:<=

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

System Parameters

Memory @4000-@4200 in the Floating Point BASIC 2.2 is used by BASIC for storing data, usage for some of the addresses is explained below.

4000 - 405F Line buffer
4081 - 4082 DEFUS value
4083 - 4084 EOP (End Of Program) value
408A - 408D In hook, call to input routine
408E - 4091 Out hook, call to output routine
4092 - 4093 End array/start string value
4094 - 4095 Start array value
4099 - 409A EOD (End Of Data) and end string value
409B X value TAB
409D Flags
409E Start address user RAM
409F - 40A2 Call to BASIC functions
40A3 - 40A6 Call to BASIC functions
40B1 - 40B2 DATA pointer
4100 - 4168 Storage A, B, C.... Z, 4 bytes per variable