- | 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:
LB | HB | Description |
28417 | 28418 | Points to the byte 255 before the BASIC area |
28419 | 28420 | Points to the byte 255 after the BASIC area |
28423 | 28424 | Points to the defined variable area |
28503 | - | Input buffer: The last pressed key |
28426 | bis 28432 | Password in ASCII code |
28435 | - | 2: WAIT active, 6: WAIT inactive |
28436 | - | 0-31: Password inactive, 32-63 password active |
28448 | 28449 | Points to the next byte after the last executed BASIC command |
28336 | bis 28415 | In-/Outputbuffer 80 bytes |
27904 | bis 27999 | Display buffer in ASCII codes |
28166 | 28167 | 1. FOR NEXT: Points to the byte before the address of the loop variable |
28168 | bis 28174 | 1. FOR NEXT: End count of loop in BCD format |
28175 | bis 28181 | 1. FOR NEXT: STEP value in BCD format |
28182 | 28183 | 1. FOR NEXT: Points to the byte after the FOR .. TO (STEP) block |
28184 | 28185 | 2. FOR NEXT: Points to the byte before the address of the loop variable |
28186 | bis 28192 | 2. FOR NEXT: End count of loop in BCD format |
28193 | bis 28199 | 2. FOR NEXT: STEP value in BCD format |
28200 | 28201 | 2. FOR NEXT: Points to the byte after the FOR .. TO (STEP) block |
28202 | 28203 | 3. FOR NEXT: Points to the byte before the address of the loop variable |
28204 | bis 28210 | 3. FOR NEXT: End count of loop in BCD format |
28211 | bis 28217 | 3. FOR NEXT: STEP value in BCD format |
28218 | 28219 | 3. FOR NEXT: Points to the byte after the FOR .. TO (STEP) block |
28220 | 28221 | 4. FOR NEXT: Points to the byte before the address of the loop variable |
28222 | bis 28228 | 4. FOR NEXT: End count of loop in BCD format |
28229 | bis 28235 | 4. FOR NEXT: STEP value in BCD format |
28236 | 28237 | 4. FOR NEXT: Points to the byte after the FOR .. TO (STEP) block |
28238 | 28239 | 5. FOR NEXT: Points to the byte before the address of the loop variable |
28240 | bis 28246 | 5. FOR NEXT: End count of loop in BCD format |
28247 | bis 28253 | 5. FOR NEXT: STEP value in BCD format |
28254 | 28255 | 5. FOR NEXT: Points to the byte after the FOR .. TO (STEP) block |
28459 | - | Number of the running FOR..NEXT loop: 6=0, 24=1, 42=2, 60=3, 78=4, 96=5 |
28460 | - | Number of the running GOSUB..RETURN block: 144=0, 146=1, 148=2, ... 164=10 |
28816 | 28817 | Return address for the 1. GOSUB..RETURN block |
28818 | 28819 | Return address for the 1. GOSUB..RETURN block |
28820 | 28821 | Return address for the 1. GOSUB..RETURN block |
28822 | 28823 | Return address for the 1. GOSUB..RETURN block |
28824 | 28825 | Return address for the 1. GOSUB..RETURN block |
28826 | 28827 | Return address for the 1. GOSUB..RETURN block |
28828 | 28829 | Return address for the 1. GOSUB..RETURN block |
28830 | 28831 | Return address for the 1. GOSUB..RETURN block |
28832 | 28833 | Return address for the 1. GOSUB..RETURN block |
28834 | 28835 | Return address for the 1. GOSUB..RETURN block |
28851 | 28852 | WAIT interval |
30780 | - | Display symbols (see above) |
|
- | 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!
Token | Command | CALL address |
153 | ABS | 2954 |
158 | ACS | 2954 |
161 | AND | 2954 |
225 | AREAD | 50108 |
164 | ASC | 2954 |
157 | ASN | 2954 |
159 | ATN | 2954 |
236 | BASIC | 47228 |
196 | BEEP | 49403 |
204 | CALL | 49455 |
229 | CHAIN | 38348 |
168 | CHR$ | 2954 |
201 | CLEAR | 47787 |
183 | CLOAD | 38439 |
188 | CLOSE | 64131 |
206 | CLS | 55564 |
191 | CONSOLE | 34143 |
178 | CONT | 50136 |
150 | COS | 2954 |
182 | CSAVE | 38055 |
207 | CURSOR | 55441 |
220 | DATA | 50108 |
155 | DEG | 35307 |
193 | DEGREE | 49983 |
203 | DIM | 48466 |
156 | DMS | 35314 |
216 | END | 49897 |
147 | EXP | 2954 |
213 | FOR | 48612 |
230 | GCURSOR | 60134 |
224 | GOSUB | 49137 |
198 | GOTO | 49075 |
231 | GPRINT | 59439 |
195 | GRAD | 49999 |
212 | IF | 49736 |
173 | INKEY$ | 2954 |
223 | INPUT | 50168 |
152 | INT | 2954 |
171 | LEFT$ | 2954 |
166 | LEN | 2954 |
214 | LET | 49255 |
232 | LINE | 58798 |
180 | LIST | 50355 |
181 | LLIST | 50605 |
145 | LN | 2954 |
190 | LOAD | 62275 |
146 | LOG | 2954 |
226 | LPRINT | 50526 |
175 | MEM | 2954 |
184 | MERGE | 38480 |
170 | MID$ | 2954 |
177 | NEW | 48040 |
217 | NEXT | 48782 |
163 | NOT | 2954 |
211 | ON | 50007 |
187 | OPEN | 63806 |
238 | OPEN$ | 2954 |
162 | OR | 2954 |
179 | PASS | 47838 |
221 | PAUSE | 52835 |
167 | PEEK | 2954 |
174 | PI | 2954 |
233 | POINT | 2954 |
205 | POKE | 49498 |
235 | PRESET | 60044 |
222 | PRINT | 53217 |
234 | PSET | 60053 |
194 | RADIAN | 49991 |
192 | RANDOM | 49400 |
219 | READ | 49563 |
215 | REM | 49796 |
228 | RESTORE | 49695 |
227 | RETURN | 49807 |
172 | RIGHT$ | 2954 |
160 | RND | 2954 |
176 | RUN | 47664 |
189 | SAVE | 62055 |
154 | SGN | 2954 |
149 | SIN | 2954 |
148 | SQR | 2954 |
209 | STEP | 4332 |
218 | STOP | 49934 |
169 | STR$ | 2954 |
151 | TAN | 2954 |
237 | TEXT | 47434 |
210 | THEN | 4332 |
208 | TO | 4332 |
200 | TROFF | 49942 |
199 | TRON | 49938 |
202 | USING | 50481 |
165 | VAL | 2954 |
197 | WAIT | 49946 |
The token is the value of the byte which represents this command in a BASIC line.
CALL addresses
Address | Description | Changed registers | Changed int. RAM |
4618 | Getkey: If you press a key the ASCII code will be stored at 28503 and in A | P,Q,DP,I,A,B,X,Y,K,L,V | 2..23,92 |
3003 | Inkey: If you press a key the code will be stored at [++Y] | P,Q,DP,A,B,X,Y,K,L,V | 10..21,23,34,37..39,55..63,92 |
53958 | Print: Prints the ASCII characters from the display buffer like CURSOR(K,A), A=1,2 are the lower two lines and A=3,4 the upper. | P,Q,DP,A,B,X,Y,K,L,W | 2..39 |
32852 | LPrint: Prints the characters in internal RAM addresses 16..39 on the CE-126P. Chr(13) makes a new line. | P,Q,DP,A,B,K,L | 2,3,8,9,92..95 |
1240 | Off: Switches the computer off. Switch it on again with On/Brk | all | all |
2379 | Beep short: If the bit 0 in A is set, 2 kHz else 4 kHz. To stop the beeper use LIP 95, ANIM 239, OUTC | P,Q,A | 2,95 |
49430 | Beep long: Beeps with 4 kHz and doesn't need to be stopped. | unknown | unknown |
|