Copy Right ©Aug. 1984 by N.A. Pashtoon
As most of us have noticed , machine code (MC) programs written for the Spectrum rarely work on the TS2068 . TIMEX Corp. in an attempt to upgrade the Spectrum’s performance, included extra Basic commands , sound chip support , joystick support and more importantly bankswitching capability , which resulted in a redesign of the machine . As a consequence software enhancements and embellishments were put in the Read Only Memory (ROM) . Because of these enhancements the code would not filt the original 16K ROM . As such all the cassette handling routines and the bank switching code had to be relegared to the 8K Extension ROM (EXROM ).
To facilitate software conversion between the two computers , a diassembly of the ROMs of the two computers must be on hand . An excellent disassembly of the Spectrum ROM as well as a step-by-step explanation of every MC instruction is available in the superb book ” The Complete Spectrum ROM Disassembly” by IAN Logan and Frank O’Hara . The book is available from both Melbourne House and Zebra Systems .
I worked on the TS2068 ROM-EXROM disassembly and prepared a ROM Atlas , establishing the cross correlation of the various ROM routines, in July 1984 . In August ’84 I sent a copy to SYNTAX for publication , which was accepted for publication . As to what issue will it appear in I am not sure . Any way , starting with this issue of LIST we will start publishing the ROM Atlas serially . So hold on to your copies of LIST . The header reader in the Nov. ’84 issue is part of this series of articles .
ROM ATLAS , COPY RIGHT N.A.PASHTOON
© AUG. 1984
SPECTRUM TS 2068
LABEL, ROM ROM LABEL,
NAME Addr Addr NAME
START 0000 0000 PLUGIN
ERROR-1 0008 0008
PRINT-A-1 0010 0010 WRCH
GET-CHAR 0018 0018
NEXT-CHAR 0020 0020
FP-CALC 0028 0028
BC-SPACES 0030 0030
MASK-INT 0038 0030
004F 004F PHLAF
ERROR-2 0053 0053
ERROR-3 0055 0055 LE3
RESET 0066 0066
NO-RESET 0070 0070
CH-ADD+1 0074 0074 NEXTCH
TEMP-PTR1 0077 0077 NC-HL
TEMP-PTR2 0078 0078 TC-HL
SKIP-OVER 007D 007D
TOKENS 0095 0098 TOKENS
KEYTBL 0227 0245
KEY-SCAN 028E 02B0 K-SCAN
KEYBOARD 02BF 02E1 UPD-K
K-REPEAT 0310 0336
K-TEST 031E 035C K-BASE
K-DECODE 0333 0371 CHCODE
BEEPER 03B5 03F3 PARP
BEEP 03F8 0436 BEEP
PRINT-OUT 09F4 0500 SEND-TV
PO-BACK-1 0A23 053A P-LFT
PO-RIGHT 0A3D 0554 P-RT
PO-ENTER 0A4F 0566 P-NL
PO-COMMA 0A5F 0576
PO-QUEST 0A69 0580
PO-TV-2 0A6D 0584
0A9B 05B2 SET-AT
PO-ABLE 0AD9 05F0
PO-STORE 0ADC 05F3 STTVCU
PO-FETCH 0B03 061A LDTVCU
PO-ANY 0B24 063B
PO-ALL 0B7F 06B4
PO-ATTR 0BDB 0710 ATTBYT
PO-MSG 0C0A 073F PUTMES
PO-SAVE 0C3B 0776 PR-TV2
PO-SEARCH 0C41 077C
PO-SCR 0C55 0790 TVFUL?
REPORT-5 0C86 07C1 ERR5
TEMPS 0D4D 0888 R-ATTS
CLS 0D6B 08A6 K-CLS
CLS-LOWER 0D6E 08A9 CLLHS
CL-ALL 0DAF 08EA CLS
CL-SET 0DD9 0914 SET-CUR
CL-SC-ALL 0DFE 0939 SCRL
CL-LINE 0E44 097F CLS-B
CL-ATR 0E88 09C3
CL-ADDR 0E9B 09D6
COPY 0EAC 0A02 K-DUMP
COPY-BUFF 0ECD 0A23 DUMPPR
CLEAR-PRB 0EDF 0A35 CLPR
COPY-LINE 0EF4 0A4A PRSCAN
EDITOR 0F2C 0A82 EDIT-K
ADD-CHAR 0F81 0AE7 INSA
ED-EDIT 0FA9 0B12
ED-DOWN 0FF3 0B59
ED-LEFT 1007 0B6B
ED-RIGHT 100C 0B73
ED-DELETE 1015 0B7B DELSYM
ED-ENTER 1024 0B8A
ED-EDGE 1031 0B97
ED-UP 1059 0BBF
ED-SYMBOL 1076 0BDC
ED-ERROR 107F 0BE9
CLEAR-SP 1097 0BFE DEL-K
KEY-INPUT 10A8 0C0E IN-K
ED-COPY 111D 0C83 ECHO
REMOVE-FP 11A7 0D0D DESLUG
NEW 11B7 0D1D K-NEW
START/NEW 11CB 0D31 INIT
RAM-SET 1219 0D7F NEW
MAIN-EXEC 12A2 0E28
MAIN-1 12A9 0E2F LED18
MAIN-4 1303 0ED8 LED4
REPORT-MSG 1391 0F65
MAIN-ADD 155D 1158
CH-INFO 15AF 11AA CHINIT
INIT-STR 15C6 11C1 SMINIT
WAIT-KEY 15D4 11CF RDCH
INPUT-AD 15E6 11E1 INCH
OUT-CODE 15EF 11EA PUTDIG
PRINT-A-2 15F2 11ED SENDCH
CHAN-OPEN 1601 1230 SELECT
REPORT-0 160E 123D ERR0
CHAN-FLAG 1615 1248 SEL-HL
CHAN-K 1634 129A
CHAN-s 1642 12A8
CHAN-P 164D 12B3
ONE-SPACE 1652 12B8 INS1
MAKE-ROOM 1655 12BB INSERT
POINTERS 1664 12CA REMGSZ
LINE-ZERO 168F 131E
LINE-NO 1695 1324 GET-LN
RESERVE 169E 132D LCU2
SET-MIN 16B0 133F CLEL
SET-WORK 16BF 134E X-CALC
REC-EDIT 16D4 1363 X-T-HL
SET-STK 16C5 1354 RESET
Transcription note: The atlas is typed as printed, including MASK-INT 0038/0030, TOKENS 0095/0098, SET-STK out of address order and the spellings CL-ATR and CLLHS.