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
@B9D9 |
LOGIN |
@9DB6 |
|
@A791 |
LOGOUT |
@976C |
|
@AB06 |
@8F85 |
||
@A96B |
@9DC2 |
||
|
@ADAC |
||
@9FD0 |
|
||
@8D96 |
@90AA |
||
@AEF3 |
MSG |
@8E79 |
|
@9DF8 |
@9633 |
||
@AB03 |
@AC7B |
||
@B5E1 |
@9ED8 |
||
@A2FB |
@839E |
||
@B6D8 |
@A7DF |
||
@B2ED |
PGREAD |
@8E73 |
|
@BFF7 |
@A6E2 |
||
@A700 |
@8E8B |
||
@8E8E |
@F190 |
||
DREAD |
@AFDF |
@AEC1 |
|
@9542 |
@B301 |
||
DWRITE |
@AFD9 |
@953F |
|
@8E91 |
@BFFA |
||
@9400 |
@BD6C |
||
@9EC9 |
@ADF9 |
||
@AFB9 |
@A400 |
||
@AFB6 |
@A2EF |
||
@BFAF |
@ACAB |
||
@AB09 |
RFLN |
@94F5 |
|
@ABE7 |
@A600 |
||
@AC00 |
@A076 |
||
@A200 |
|
||
@ACF3 |
SEND |
@8E85 |
|
@A78E |
@95F4 |
||
@ACB7 |
@A699 |
||
@AF2A |
@AB00 |
||
@B033 |
SPY |
@8E7F |
|
INP |
@96C3 |
@AB0F |
|
@AD74 |
|
||
@A000 |
|
||
@A903 |
@9797 |
||
@906E |
@AEE0 |
||
@AE04 |
@A96E |
||
@A300 |
@A3DA |
||
@9868 |
WFLN |
@976C |
|
@8FD5 |
WRITE |
@8E6D |
|
@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
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 |