Sie sind hier Quick Reference

# QUICK REFERENCE

Commands
Statements
Operator - Dual Operand
Operator - Single Operand
Operator - Special Function
Stored Constant

## COMMANDS

COMMAND | FUNCTION | EXAMPLE(S)
RUN | Execute a program | RUN
CONT | CONTinue after a STOP or control-C | CONT
LIST | LIST program to the console device | LIST LIST 10-50
LIST# | LIST program to serial printer | LIST# LIST# 50
LIST@ | LIST program to user driver | LIST@ 50
NEW | erase the program stored in RAM | NEW
NULL | set NULL count after carriage return-line feed | NULL NULL 4
RAM | evoke RAM mode, current program in READ/WRITE memory | RAM
ROM | evoke ROM mode, current program in ROM/EPROM memory | ROM ROM 3
XFER | transfer a program from ROM/EPROM to RAM | XFER
PROG | save the current program in EPROM | PROG

## STATEMENTS:

STATEMENT | FUNCTION | EXAMPLE(S)
BAUD | set baud rate for line printer port | BAUD 1200
CALL | CALL assembly language program | CALL 9000H
CLEAR | CLEAR variables, interrupts and Strings | CLEAR
CLEARS | CLEAR Stacks | CLEARS
CLEARI | CLEAR Interrupts | CLEARI
CLOCK1 | enable REAL TIME CLOCK | CLOCK1
CLOCK0 | disable REAL TIME CLOCK | CLOCK0
DATA | DATA to be read by READ statement | DATA 100
READ | READ data in DATA statement | READ A
RESTORE | RESTORE READ pointer | RESTORE
DIM | allocate memory for arrayed variables | DIM A(20)
DO | set up loop for WHILE or UNTIL | DO
UNTIL | test DO loop condition (loop if false) | UNTIL A=10
WHILE | test DO loop condition (loop if true) | WHILE A=B
END | terminate program execution | END
FOR-TO-{STEP} | set up FOR-NEXT loop | FOR A=1 TO 5
NEXT | test FOR-NEXT loop condition | NEXT A
GOSUB | execute subroutine | GOSUB 1000
RETURN | RETURN from subroutine | RETURN
GOTO | GOTO program line number | GOTO 500
ON GOTO | conditional GOTO | ON A GOTO 5,20
ON GOSUB | conditional GOSUB | ON A GOSUB 2,6
IF-THEN-{ELSE} | conditional test | IF A<B THEN A=0
INPUT | INPUT a string or variable | INPUT A
LET | assign a variable or string a value(LET is optional) | LET A=10
ONERR | ONERRor GOTO line number | ONERR 1000
ONTIME | generate an interrupt when TIME is equal to or greater than ONTIME argument-line number is after comma | ONTIME 10, 1000
ONEX1 | GOSUB to line number following ONEX1 when INT1 pin is pulled low | ONEX1 1000
PRINT | PRINT variables, strings or literals P. is shorthand for PRINT | PRINT A
PRINT# | PRINT to software serial port | PRINT# A
PH0. | PRINT HEX mode with zero suppression | PH0. A
PH1. | PRINT HEX mode with no zero suppression | PH1. A
PH0.# | PH0. to line printer | PH0.# A
PH1.# | PH1.# to line printer | PH1.# A
PRINT@ | PRINT to user defined driver (version 1.1 only) | PRINT@ 5*5
PH0.@ | PH0. to user defined driver (version 1.1 only) | PH0. @ XBY(5EH)
PH1.@ | PH1. to user defined driver (version 1.1 only) | PH1.@ A
PGM | Program an EPROM (version 1.1 only) | PGM
PUSH | PUSH expressions on argument stack | PUSH 10, A
POP | POP argument stack to variables | POP A, B, C
PWM | Pulse Width Modulation | PWM 50, 50, 100
REM | REMark | REM DONE
RETI | RETurn from Interrupt | RETI
STOP | break program execution | STOP
STRING | allocate memory for STRlNGS | STRING 50, 10
UI1 | evoke User console Input routine | UI1
UI0 | evoke BASIC console Input routine | UI0
UO1 | evoke User console Output routine | UO1
UO0 | evoke BASIC console Output routine | UO0
ST@ | store top of stack at user specified location | ST@ 1000H ST@ A
LD@ | load top of stack from user specified location | LD@ 1000H LD@ A
IDLE | wait for interrupt (version 1.1 only) | IDLE
RROM | run a program in EP(ROM) (version 1.1 only) | RROM 3

## OPERATORS-DUAL OPERAND:

OPERATOR | FUNCTION | EXAMPLE(S)
+ | ADDITION | 1+1
/ | DIVISION | 10/2
** | EXPONENTATION | 2**4
* | MULTIPLICATION | 4*4
- | SUBSTRACTION | 8-4
.AND. | LOGICAL AND | 10.AND.5
.OR. | LOGICAL OR | 2.0R.1
.XOR. | LOGICAL EXCLUSIVE OR | 3.XOR.2

## OPERATORS-SINGLE OPERAND:

ABS( ) | ABSOLUTE VALUE | ABS(-3)
NOT( ) | ONE’S COMPLEMENT | NOT(0)
INT( ) | INTEGER | INT(3.2)
SGN( ) | SIGN | SGN(-5)
SQR( ) | SQUARE ROOT | SQR(100)
RND | RANDOM NUMBER | RND
LOG( ) | NATURAL LOG | LOG(10)
EXP( ) | "e" (2.7182818) TO THE X | EXP(10)
SIN( ) | RETURNS THE SINE OF ARGUMENT | SIN(3.14)
COS( ) | RETURNS THE COSINE OF ARGUMENT | COS(0)
TAN( ) | RETURNS THE TANGENT OF ARGUMENT | TAN(.707)
ATN( ) | RETURNS ARCTANGENT OF ARGUMENT | ATN(1)

## OPERATORS-SPECIAL FUNCTION:

CBY( ) | READ PROGRAM MEMORY | P. CBY(4000)
DBY( ) | READ/ASSIGN INTERNAL DATA MEMORY | DBY(99)=10
XBY( ) | READ/ASSIGN EXTERNAL DATA MEMORY | P. XBY(10)
GET | READ CONSOLE | P. GET
IE | READ/ASSIGN IE REGISTER | IE=82H
IP | READ/ASSIGN IP REGISTER | IP=0
PORT1 | READ/ASSIGN l/O PORT 1 (P1) | PORT1=0FFH
PCON | READ/ASSIGN PCON REGISTER | PCON=0
RCAP2 | READ/ASSIGN RCAP2 (RCAP2H:RCAP2L) | RCAP2=100
T2CON | READ/ASSIGN T2CON REGISTER | P. T2CON
TCON | READ/ASSIGN TCON REGISTER | TCON=10H
TMOD | READ/ASSIGN TMOD REGISTER | P. TMOD
TIME | READ/ASSIGN THE REAL TIME CLOCK | P. TIME
TIMER0 | READ/ASSIGN TIMER0 (TH0: TL0) | TIMER0=0
TIMER1 | READ/ASSIGN TIMER1 (TH1: TL1) | P. TIMER1
TIMER2 | READ/ASSIGN TIMER2 (TH2: TL2) | TIMER2=0FFH

## STORED CONSTANT:

PI | PI - 3.1415926 | PI