Ed. note: The following was submitted as an aid to John Conger‘s machine code class. It is printed here because I feel that it has a more general appeal. Other versions of this list have appeared before: Mike Morris of CATS worked this out, and the LIST group, and Syntax, have both run versions. To my knowledge, this is the first version to be run in one installment. MF
I find it particularly interesting and useful to call the routines stored in the ROM. There is some information on this in the 2068 technical manual, but the most useful source is Logan and O’Hara‘s book on the Spectrum ROM disassembly.
Of course Logan/O’Hara cannot be used directly, because the memory references only apply to the Spectrum. Consequently, I have prepared the attached “ROM Index.” This provides direct reference from most of the routines mentioned in the Technical Manual to the Spectrum routines.
I find the index useful in two ways: First, if I wish to learn more about the contents or use of a routine listed in the Technical Manual, I can look up the corresponding routine in Logan/O’Hara. In many cases the routines are slightly different, because the jumps and calls are to different memory locations. In some cases there are other differences, but in each case the intended use seems to be the same.
Second, if I find a routine in Logan/O’Hara which looks useful, I can usually find it in the 2068 by interpolating in the index. For example, if I wish to use the routine called “GO_TO_2” at 1E73h in Logan/O’Hara, I find in the index “JUMP” and “FIX_U1” which are below and above the desired location. By interpolation I conclude that the routine must be at or near 7933h in the 2068.
While I cannot attend your machine code class, I am attaching the index with the hope that it may be useful to some of those in the class.
ROM INDEX
2068 SPECTRUM ------------------------ -------- HEX DEC NAME HEX 0000 0 PLUGIN 0000 0010 16 URCH 0010 004F 79 PHLAF 004F 0055 85 LE3 0055 0074 116 NEXTCH 0074 0077 119 NC_HL 0077 0078 120 TC_HL 0078 0098 152 TOKENS 0095 0227 551 KSCAN 0205 02B0 688 K_SCAN 028E 02E1 737 UPD_K 02BF 035C 860 K_BASE 031E 0371 881 CHCODE 0333 03F3 1011 PARP 0385 0436 1078 BEEP 03F8 0500 1280 SENDTV 09F4 053A 1338 P_LFT 0A23 0554 1364 P_RT 0A3D 0566 1382 P_NL 0A4F 05B2 1458 SET_AT 0A9B 05F3 1523 STTVCU 0ADC 061A 1562 LDTVCU 0B03 0710 1808 ATTBYT 0BDB 073F 1855 PUTMES 0C0A 0776 1910 PR_TV2 0C3B 0790 1936 TVFUL? 0C55 07C1 1985 ERR5 0C86 0888 2184 R_ATTS 0D4D 08A6 2214 K_CLS 0D6B 08A9 2217 CLLHS 0D6E 08EA 2282 CLS 0DAF 0914 2324 SETCUR 0DD9 0914 2324 SETTVC 0DD9 0939 2361 SCRL 0DFE 097F 2431 CLS_B 0E44 0A02 2562 K_DUMP 0EAC 0A23 2595 DUMPPR 0ECD 0A35 2613 CLPR 0EDF 0A4A 2634 PRSCAN 0EF4 0A82 2690 EDIT_K 0F2C 0AE7 2791 INSA 0F81 0B7E 2942 DELSYM 1016 0BFD 3069 DEL_K 1097 0C0E 3086 IN_K 10A8 0C83 3203 ECHO 111D 0D0D 3341 DESLUG 11A7 0D1D 3357 K_NEW 11B7 0D31 3377 INIT 11CB 0D82 3458 NEW 1219 0E2F 3631 LED18 12A9 0E8D 3725 LED4 1303 11AA 4522 CHINIT 15AF 11C1 4545 SMINIT 15C6 11CF 4559 RDCH 15D4 11E1 4577 INCH 15E6 11EA 4586 PUTDIG 15EF 11ED 4589 SENDCH 15F2 1230 4656 SELECT 1601 123D 4669 ERRO 160E 1248 4680 SEL_HL 1615 12B8 4792 INS1 1652 12BB 4795 INSERT 1655 12CA 4810 REMGSZ 1664 1324 4900 GET_LN 1695 132D 4909 LCU2 169E 133F 4927 CLEL 16B0 134E 4942 X_CALC 16BF 1354 4948 RESET 16C5 1363 4963 X_T_HL 16D4 136B 4971 SEARCH 16DC 139F 5023 CLOSE 16E5 13A8 5032 RSTSTR 16EE 13BE 5054 CLCHAN 1701 142A 5162 OPEN 1736 1465 5221 OPCHAN 175D 14E1 5345 LIST 1795 1541 5441 K_LLST 17F5 1545 5445 K_LIST 17F9 15A1 5537 PUT_SR 1855 15AC 5548 LPO 1860 15C9 5577 PUT 187D 160D 5645 FLASHA 18C1 162D 5677 PR_CUR 18E1 165B 5723 NEXT_L 190F 1668 5736 DE_HL 191C 16D6 5846 FIND_L 196E 16E8 5864 CP_BC 1980 16F0 5872 SUBLIN 1988 16F3 5875 SUBLN1 198B 1720 5920 RECLEN 19B8 174D 5965 DEL_DE 19E5 1750 5968 DELREC 19E8 1768 5992 LINENO 19FB 1788 6024 PUT_BC 1A1B 1795 6037 PUT_LN 1A28 1945 6469 SYNTAX 1A48 19E0 6624 TEMP38 1ADF 19E1 6625 TEMP39 1AE0 1A27 6695 SYNTAx 1B17 1A44 6724 LS4 1B28 1AB9 6841 ENDSTT 1B76 1AD8 6872 EXCUTE 1B8A 1B44 6980 END? 1BEE 1B4A 6986 ENDTEM 1BF4 1B82 7042 TEM1 1C1F 1B91 7057 ERR2 1C2E 1BBC 7100 LT22 1C59 1BDC 7132 DYADIC 1C79 1BE5 7141 TEM6 1C82 1BED 7149 SYNERR 1C8A 1BEF 7151 TEM10 1C8C 1C49 7241 OPTNO 1CDE 1C51 7249 STK_O 1CE6 1C59 7257 STOP 1CEE 1C78 7288 FOR 1D03 1D28 7464 SKIP 1D86 1D55 7509 NEXT 1DAB 1D97 7575 READ 1DED 1E82 7810 DATA 1E27 1ECA 7882 RESTBC 1E45 1ED4 7892 RAND 1E4F 1EE4 7908 CONT 1E5F 1EF1 7921 JUMP 1E67 1F1E 7966 FIX_U1 1E94 1F23 7971 FIX_U 1E99 1F29 7977 ERRB 1E9F 1F36 7990 CLEAR 1EAC 1F39 7993 CLR_BC 1EAF 1F99 8089 GO_SUB 1EED 1FBB 8123 CHK_SZ 1F05 1FCF 8143 ERR4 1F15 1FD4 8148 RETURN 1F23 1FEB 8171 PAUSE 1F3A 2009 8201 BREAK? 1F54 201D 8221 DEF 1F60 214F 8527 SYNTWO 1FC3 2155 8533 K_LPR 1FC9 2159 8537 K_PRIN 1FCD 217E 8574 P_SEQ 1FDF 21E7 8679 TERM? 2048 220F 8719 STRITO 2070 222B 8747 INPUT 208E 226B 8811 I_SEQ 20C1 237E 9086 ERRH 21D4 2380 9088 NOTKB? 21D6 238C 9100 GR_COL 21E2 23A6 9126 COLITM 21FC 23BB 9147 TV_COL 2211 23DE 9182 COLOUR 2234 241D 9245 HIFLSH 2273 243E 9278 BORDER 2294 2603 9731 SCRMBL 22AA 2624 9764 F_PNT 22CB 2635 9781 PLOT 22DC 263E 9790 PLOTBC 22E5 2660 9824 GET_XY 2307 2679 9849 CIRCLE 2320 26DB 9947 DRAW 2382 2810 10256 DRAW_L 24B7 2813 10259 DRAWLN 24BA 2854 10324 EXPRN 24FB 2889 10377 INTPT? 2530 288E 10382 F_SCRN 2535 28D7 10455 F_ATTR 2580 29B6 10678 RND 25F8 29E5 10725 F_PI 2627 29F2 10738 F_INKY 2634 2C69 11369 NXT_HL 28AB 2C70 11376 FIND_N 28B2 2D54 11604 GET_EL 2996 2E10 11792 SLICER 2A52 2E70 11888 PSHSTR 2AB2 2E74 11892 PAEDCB 2AB6 2EBD 11965 LET 2AFF 2FAF 12207 POPSTR 2BF1 2FC0 12224 DIM 2C02 3046 12358 ALNUM? 2C88 304B 12363 ALPHA? 2C8D 3059 12377 STKUSN 2C9B 30D9 12505 DIGIT? 2D1B 30E6 12518 STK_A 2D28 30E9 12521 STK_BC 2D2B 30F9 12537 ININT 2D3B 310D 12557 XEY 2D4F 313D 12605 LDDE 2D7F 314A 12618 STDE_U 2D8C 314C 12620 STDE_S 2D8E 3160 12640 FP2BC 2DA2 3193 12691 FP2A 2DD5 31A1 12705 OUTPUT 2DE3 335A 13146 SUMS 2F9B 3379 13177 SUMSLD 2FBA 339C 13212 SHIFT 2FDD 33CE 13262 SUB 300F 33D3 13267 ADD 3014 3468 13416 MULT 30A9 3489 13449 TIMES 30CA 356C 13676 ERR6 31AD 356E 13678 DIVIDE 31AF 35D3 13779 TRUNC 3214 3656 13910 FLOAT 3297 3684 13956 CALC 3254 371A 14106 CTRO 335B 3768 14184 ROOM? 33A9 3773 14195 STK_M 33B4 377F 14207 RAMNO 33C0 37C5 14277 ARRAY 3406 382D 14381 NEGATE 346E 3904 14596 TESTO 34E9 3926 14630 STBOOL 350B 3ABB 15035 INTDIV 36A0 3ACA 15050 INT 36AF 3ADF 15071 EXP 36C4 3B2E 15150 LN 3713 3B9E 15262 ANGLE 3783 3BC5 15301 COS 37AA 3BD0 15312 SIN 37B5 3BF5 15349 TAN 37DA 3BFD 15357 ATN 37E2 3C4E 15438 ASN 3833 3C5E 15454 ACS 3843 3C65 15461 ROOT 384A 3C6C 15468 TO_THE 3851 3C89 15497 SEPRMT 09A1 3CA8 15528 LDMES 09C1
OF INTEREST BUT NOT LISTED IN 2068 TECH MANUAL: 0F65 3941 RPTMSG 1391 1EFD 7933 GOTO_2 1E73 266D 9837 GET_A 2314 2F17 12055 L_NUM 2B59
EXROM: 0068x 104x W_TAPE 04C2 00E5x 229x W_BORD 053F 00FCx 252x R_TAPE 0556 0189x 393x RD_BIT 05E3 018Dx 397x R_EDGE 05E7 01ABx 427x SLVM 0605 05CCx 1484x LOAD 0808 06E5x 1765x MERGE 08B6 0851x 2129x SAVE 0970
H.E.WEPPLER
Thanks to Edward & Tony for using Bold print on their 2040’s! MF