3 bytes (x,y,z), data, return (Chr 13)
x,y: line number = x*256+y
z: length of data (return included)
End of program Chr (255)
If a byte in the data of a line has an ASCII code above 127 it will appear as a BASIC command.
7 bytes (a,b,c,d,e,f,g), Data
In PEEK 28423+256* PEEK 28424 the start address of the variables is stored.
Variables are written from behind, this means that a new variable is written before the older variables. The start address points to the header of the newest variable.
You can rename variables using POKE!
7 bytes lengthy
Example:
G$(5,5)*3
a: 71 = G: variable name
b: 160 = String
c: 0 = 1.Byte * 256
d: 111 = + 2.Byte = Overall length + 3 (because of following DIM values)
e: 5 = Dim 5
f: 5 = , 5
g: 3 = * 3
DATA: 71 = 1. character data
1-26 = Stringarray, 2 character name with second character = Chr (Byte+64)
193-218 = Number array, 2 character name with second char = Chr (Byte-128)
129-154 = String, 2 character name [Chr (Byte-64)] variable (like NE$="test") always 16 bytes lengthy
65-90 = Number, 2 character name [Chr (Byte)] (like AA=0) always 8 byte lengthy
128: One character name number array
160: One character name string array
Strings contain each character as a byte in ASCII code, Chr(0) is the end of a string. The Chr(0) is not used when the text is as long as the variable is dimensioned.
Numbers are stored in the BCD format. Each number needs 7 bytes.
In an array the single variables are following without any divider character. The position of such a variable is calculated using the header data.
In a twodimensional array the arrays are following in a similar way: DIM B$(1,2)*1: B$(0,0) B$(0,1) B$(0,2) B$(1,0) B$(1,1) B$(1,2).
There are 5 columns with each 30 pixels width in 4 lines á 8 pixels. Each stripe of 8 pixel is like a "GPRINT" byte, the value 1 will set the top pixel and 128 the bottom pixel!
The distance of the memory locations of each column is 512 bytes.
SHARP POCKET COMPUTER PC-1350
|
The symbols RUN, PRO, SHIFT, SML are set in byte 30780:
Bit | Symbol |
---|---|
0 | Shift |
1 | Def |
2 | - |
3 | - |
4 | Run |
5 | Pro |
6 | Japan. symbols left: Makes the keys work odd! |
7 | Sml |
- | System variables (each 8 bytes long):
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | Reserve mode data: 28527:A:first reserve entry, Chr (alphabetical number) marks beginning (A=1,S=19,D=4,...,' '=27,'='=28), then data without any ending code. Example: [1,254,34],[19,...],... Order:ASDFGHJKL'='' 'MNBVCXZ, empty entries are not stored (not even the start code 1-28!). End of reserve mode area: 28671 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | System addresses:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | The ROM:
The PC-1350 has a ROM, which contains the operating system.
The ROM of the CPU is at &0000 to &1FFF, the external ROM at &8000 to &FFFF.
If you know the system calls you can use functions of the system in your programs!
The token is the value of the byte which represents this command in a BASIC line. CALL addresses
|