module
17

FMTBL, at 0282h in MOS 1.2: 85 two-byte addresses. Entry k is the routine for call 128 + k, and for the monitor command letter A + k (S8). The routine address is the word stored in the entry; where the routine has an original name in the course's source, it is given.
The last column says what the routine does where this course describes it. Where it is blank, the routine is there to read in the source.
| Call | Hex | Letter | Entry at | Routine | Name | What it does |
|---|---|---|---|---|---|---|
| 128 | 80h | A | 0282h | 032Ch | ARITH | arithmetic: sum, difference, offset |
| 129 | 81h | B | 0284h | 0349h | ||
| 130 | 82h | C | 0286h | 039Dh | COPY | copy memory |
| 131 | 83h | D | 0288h | 03B9h | DECIML | hexadecimal to decimal |
| 132 | 84h | E | 028Ah | 0402h | ||
| 133 | 85h | F | 028Ch | 03ECh | MFILL | fill memory |
| 134 | 86h | G | 028Eh | 03FEh | ||
| 135 | 87h | H | 0290h | 0434h | HEX | decimal to hexadecimal |
| 136 | 88h | I | 0292h | 01F5h | ERROR | prints Error! |
| 137 | 89h | J | 0294h | 01F5h | ERROR | prints Error! |
| 138 | 8Ah | K | 0296h | 01F5h | ERROR | prints Error! |
| 139 | 8Bh | L | 0298h | 01F5h | ERROR | prints Error! |
| 140 | 8Ch | M | 029Ah | 045Ch | MODIFY | modify memory |
| 141 | 8Dh | N | 029Ch | 01F5h | ERROR | prints Error! |
| 142 | 8Eh | O | 029Eh | 01F5h | ERROR | prints Error! |
| 143 | 8Fh | P | 02A0h | 01F5h | ERROR | prints Error! |
| 144 | 90h | Q | 02A2h | 01F5h | ERROR | prints Error! |
| 145 | 91h | R | 02A4h | 0489h | ||
| 146 | 92h | S | 02A6h | 01F5h | ERROR | prints Error! |
| 147 | 93h | T | 02A8h | 054Dh | TBLATE | tabulate memory |
| 148 | 94h | U | 02AAh | 01F5h | ERROR | prints Error! |
| 149 | 95h | V | 02ACh | 01F5h | ERROR | prints Error! |
| 150 | 96h | W | 02AEh | 0491h | ||
| 151 | 97h | X | 02B0h | 0587h | ||
| 152 | 98h | Y | 02B2h | 058Ch | ||
| 153 | 99h | Z | 02B4h | 0593h | REGSTR | register display |
| 154 | 9Ah | 02B6h | 015Dh | |||
| 155 | 9Bh | 02B8h | 06D7h | |||
| 156 | 9Ch | 02BAh | 065Eh | KEYIN | call: waits for a key, returns its code in A | |
| 157 | 9Dh | 02BCh | 0614h | GETLN | call: reads a line into memory at (DE) | |
| 158 | 9Eh | 02BEh | 0F1Ah | OUTC | call: prints the character in A | |
| 159 | 9Fh | 02C0h | 0F5Ch | |||
| 160 | A0h | 02C2h | 0F48h | |||
| 161 | A1h | 02C4h | 0F52h | |||
| 162 | A2h | 02C6h | 1CEBh | |||
| 163 | A3h | 02C8h | 1CEEh | |||
| 164 | A4h | 02CAh | 04E8h | |||
| 165 | A5h | 02CCh | 04F8h | |||
| 166 | A6h | 02CEh | 0F14h | |||
| 167 | A7h | 02D0h | 0F0Fh | |||
| 168 | A8h | 02D2h | 0F18h | |||
| 169 | A9h | 02D4h | 0E9Dh | |||
| 170 | AAh | 02D6h | 0EA1h | |||
| 171 | ABh | 02D8h | 0EA5h | |||
| 172 | ACh | 02DAh | 0EE4h | |||
| 173 | ADh | 02DCh | 0ED1h | |||
| 174 | AEh | 02DEh | 1E1Bh | |||
| 175 | AFh | 02E0h | 1DDCh | |||
| 176 | B0h | 02E2h | 0EFDh | |||
| 177 | B1h | 02E4h | FB14h | call: reads the byte at (HL) from the RAM under the ROM | ||
| 178 | B2h | 02E6h | FB1Ah | |||
| 179 | B3h | 02E8h | FB21h | |||
| 180 | B4h | 02EAh | 0F6Ah | |||
| 181 | B5h | 02ECh | 076Fh | KSCAN | call: returns a key code in A, or 0 if no key, without waiting | |
| 182 | B6h | 02EEh | 1E8Dh | |||
| 183 | B7h | 02F0h | 1EA2h | |||
| 184 | B8h | 02F2h | 1EA7h | |||
| 185 | B9h | 02F4h | 1EACh | |||
| 186 | BAh | 02F6h | 1EB1h | |||
| 187 | BBh | 02F8h | 1ECDh | |||
| 188 | BCh | 02FAh | 0FAEh | |||
| 189 | BDh | 02FCh | 1E72h | |||
| 190 | BEh | 02FEh | 0DC7h | |||
| 191 | BFh | 0300h | 0E7Bh | |||
| 192 | C0h | 0302h | 0F92h | |||
| 193 | C1h | 0304h | 0020h | |||
| 194 | C2h | 0306h | 0BE1h | |||
| 195 | C3h | 0308h | 0030h | |||
| 196 | C4h | 030Ah | 1893h | |||
| 197 | C5h | 030Ch | 186Dh | |||
| 198 | C6h | 030Eh | 190Ah | |||
| 199 | C7h | 0310h | 1904h | |||
| 200 | C8h | 0312h | 1919h | call: draws a line | ||
| 201 | C9h | 0314h | 1B1Ah | |||
| 202 | CAh | 0316h | 18F6h | |||
| 203 | CBh | 0318h | 18BAh | |||
| 204 | CCh | 031Ah | 1A45h | |||
| 205 | CDh | 031Ch | 19B6h | |||
| 206 | CEh | 031Eh | 0E60h | |||
| 207 | CFh | 0320h | 0F26h | |||
| 208 | D0h | 0322h | 0ACEh | |||
| 209 | D1h | 0324h | 0C45h | |||
| 210 | D2h | 0326h | 4004h | |||
| 211 | D3h | 0328h | 0E0Bh | |||
| 212 | D4h | 032Ah | 0D41h |
Routine 0020h (call 193) and 0030h (call 195) are the same code as RST 20h and RST 30h; 4004h (call 210) is outside the ROM.
This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.