0000H - Reset Entry and Frank Durda IV's Initials
The Z80 starts here after power-on or RESET with the boot ROM switched in at 0000H-0FFFH. The first byte disables interrupts; the next four bytes are the ASCII letters FDIV, the initials of Frank Durda IV, which the CPU executes as four harmless register loads before the JR at 0005H skips the RST vectors.
0000
DI F3
Disable maskable interrupts. The boot ROM never executes an EI, so interrupts stay off until the booted program turns them on.
0001
LD B,(HL) 46
The byte 46H, the letter F of FDIV. As an instruction it loads Register B with the byte at the address in Register Pair HL; Register B is set again at 0045H before it is used.
0002
LD B,H 44
The byte 44H, the letter D of FDIV. As an instruction it copies Register H into Register B; Register B is set again at 0045H.
0003
LD C,C 49
The byte 49H, the letter I of FDIV. As an instruction it copies Register C into Register C, which changes nothing.
0004
LD D,(HL) 56
The byte 56H, the letter V of FDIV. As an instruction it loads Register D with the byte at the address in Register Pair HL; Register D is set again at 004AH.
0005
JUMP over the RST vectors to the power-up code at 003EH.
0007
DEFB 00H 00
A 00H byte between the JR at 0005H and the RST 08H vector at 0008H; the JR passes it and nothing reads it.
0008H - RST Vectors
Each RST instruction jumps to a three byte vector in RAM at 4000H-4014H. The loop at 0045H fills those seven vectors at power-up by copying the JP that follows each RST entry (000BH, 0013H ... 003BH), so a RST reaches the ROM routine unless a program changes the vector in RAM; the RS-232 boot does that for RST 20H (0C38H). The two 00H bytes after each of the six JPs are not copied; the two after the RET at 003BH are, as the last two bytes of 4012H-4014H.
0008
RST 08H (disk I/O) enters here: JUMP to the vector in RAM at 4000H, which holds the copy of the JP 08B5H at 000BH.
000B
The instruction copied to RAM 4000H-4002H: JUMP to 08B5H, the disk I/O routine (Register A = 01H floppy disk, 02H hard disk; Register B = function). It runs from RAM; nothing in the ROM jumps to 000BH itself.
000E-000F
DEFB 00H x 2 00 x 2
Two 00H bytes after the JP at 000BH. The copy loop at 0045H moves only the three bytes of the JP, so these are never copied or executed.
0010
RST 10H (display a text) enters here: JUMP to the vector in RAM at 4003H, which holds the copy of the JP 0249H at 0013H.
0013
The instruction copied to RAM 4003H-4005H: JUMP to 0249H, which shows the text at Register Pair HL (ended by 00H) at the screen offset in Register Pair DE.
0016-0017
DEFB 00H x 2 00 x 2
Two 00H bytes after the JP at 0013H, not copied by the loop at 0045H and never executed.
0018
RST 18H (display a message list) enters here: JUMP to the vector in RAM at 4006H, which holds the copy of the JP 0255H at 001BH.
001B
The instruction copied to RAM 4006H-4008H: JUMP to 0255H, which shows the message list at Register Pair HL (the Z FLAG set: start at the offset in Register Pair DE; NZ: the list's first word is the offset).
001E-001F
DEFB 00H x 2 00 x 2
Two 00H bytes after the JP at 001BH, not copied by the loop at 0045H and never executed.
0020
RST 20H (get the next byte of a file) enters here: JUMP to the vector in RAM at 4009H, which holds the copy of the JP 0B74H at 0023H, or JP 0CA4H after the RS-232 boot changes it.
0023
The instruction copied to RAM 4009H-400BH: JUMP to 0B74H, which returns the next byte of the file being read from floppy disk in Register A. The RS-232 boot stores 0CA4H in 400AH-400BH so RST 20H then reads the RS-232 port.
0026-0027
DEFB 00H x 2 00 x 2
Two 00H bytes after the JP at 0023H, not copied by the loop at 0045H and never executed.
0028
RST 28H (load a program file) enters here: JUMP to the vector in RAM at 400CH, which holds the copy of the JP 0B48H at 002BH.
002B
The instruction copied to RAM 400CH-400EH: JUMP to 0B48H, which reads a program file in load module format through RST 20H, stores its load blocks and returns its transfer address in Register Pair HL.
002E-002F
DEFB 00H x 2 00 x 2
Two 00H bytes after the JP at 002BH, not copied by the loop at 0045H and never executed.
0030
RST 30H (scan the keyboard) enters here: JUMP to the vector in RAM at 400FH, which holds the copy of the JP 083EH at 0033H.
0033
The instruction copied to RAM 400FH-4011H: JUMP to 083EH, which scans the keyboard the number of times in Register Pair BC and returns the code of a boot key in Register A.
0036-0037
DEFB 00H x 2 00 x 2
Two 00H bytes after the JP at 0033H, not copied by the loop at 0045H and never executed.
0038
RST 38H, the entry of a mode 1 maskable interrupt: JUMP to the vector in RAM at 4012H, which holds the copy of the RET at 003BH. Interrupts stay disabled in the boot ROM, so this is reached only if the booted program enables them before it sets its own vector.
003B
RET C9
The instruction copied to RAM 4012H: RETURN, so an interrupt through the RAM vector returns at once. The copy loop also moves the two 00H bytes after it to 4013H-4014H.
003C-003D
DEFB 00H x 2 00 x 2
The two 00H bytes after the RET at 003BH. The copy loop moves them to 4013H-4014H as the last two bytes of the seventh vector (RST 38H, 4012H-4014H); they are never executed.
003EH - Power-Up: NMI Mask, Clock and RAM Vectors
Turns off every NMI source, sets the CPU clock to 4 MHz with the external I/O bus enabled, then copies the seven RST vectors to RAM 4000H-4014H.
003E
XOR A AF
Set Register A to 00H (XOR A), the value for the NMI mask port.
003F
OUT (E4H),A D3 E4
OUTput Register A (00H) to port E4H, the NMI mask: no NMI is enabled until the floppy disk sector read at 0A22H turns on the one for the end of a command.
| Port E4H (NMI Mask): 00H (00000000) | | Function Description |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | Bit 7 = 0: no NMI on INTRQ Bit 6 = 0: the second NMI source of the port off Bits 5-0: not used |
0041
LD A,50H 3E 50
Load Register A with 50H, the value for port ECH: bits 6 and 4 set, all other bits clear.
0043
OUT (ECH),A D3 EC
OUTput Register A (50H) to port ECH: the CPU clock goes to 4 MHz and the external I/O bus is enabled.
| Port ECH: 50H (01010000) | | Function Description |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | | Bit 6 = 1: CPU clock 4 MHz Bit 5 = 0: video waits off Bit 4 = 1: external I/O bus enabled Bit 3 = 0: standard character set Bit 2 = 0: normal width characters Bit 1 = 0: cassette motor bit |
0045H - Copy the Seven RST Vectors to RAM 4000H-4014H
An outer loop of 7 (Register B) and an inner loop of 3 (Register C) copy the three bytes at 000BH, 0013H, 001BH, 0023H, 002BH, 0033H and 003BH (every eighth address) to the consecutive RAM addresses 4000H-4014H.
0045
LD B,07H 06 07
Load Register B with 07H, the number of vectors to copy, the count of the DJNZ at 005AH.
0047
LD HL,000BH 21 0B 00
Load Register Pair HL with 000BH, the first byte to copy (the JP 08B5H that becomes the RST 08H vector).
004A
LD DE,4000H 11 00 40
Load Register Pair DE with 4000H, the RAM address of the first vector.
004D
LD C,03H 0E 03
Load Register C with 03H, the number of bytes in one vector, the count of the inner loop.
004F
LD A,(HL) 7E
Fetch the byte at the address in Register Pair HL (the ROM copy of the vector) into Register A.
0050
LD (DE),A 12
Store Register A at the address in Register Pair DE (the RAM vector).
0051
INC DE 13
INCrement Register Pair DE to the next RAM byte; the seven vectors lie end to end at 4000H-4014H.
0052
INC HL 23
INCrement Register Pair HL to the next ROM byte of the vector.
0053
DEC C 0D
DECrement Register C, the bytes left in this vector.
0054
If the NZ FLAG is set (Register C is not yet 00H), LOOP back to 004FH for the next byte of the vector.
0056
LD A,L 7D
Copy Register L (the low byte of the address just past the three bytes copied, 0EH, 16H ... 3EH) into Register A.
0057
ADD A,05H C6 05
ADD 05H to Register A, so it points eight bytes past the start of the vector just copied, at the next JP in the ROM (0013H, 001BH ... 003BH).
0059
LD L,A 6F
Copy Register A back into Register L; Register H stays 00H, so Register Pair HL = the address of the next vector to copy.
005A
DECrement Register B, the vectors left to copy, and LOOP back to 004DH until all seven are in RAM.
005C
LD SP,40A0H 31 A0 40
Load the Stack Pointer with 40A0H: the stack grows down from 409FH, below the directory entry copy at 40A2H.
005F
LD C,88H 0E 88
Load Register C with 88H, the CRT controller address port, the port the OUT (C),B at 00CDH writes the register number to.
0061
JUMP to 00C1H, skipping the NMI entry at 0066H and the data the ROM keeps before it.
0063-0065
DEFM "III" 49 49 49
The text III, the extension of the ROM image file MODEL%/III. The directory search at 0B09H compares the three bytes at 0063H with the file extension in each directory entry.
0066H - NMI Entry
The Z80 goes to 0066H on a non-maskable interrupt. The only NMI the boot ROM enables is the one the floppy disk controller raises at the end of a sector read (port E4H = 80H at 0A22H); its vector in RAM at 4015H holds the copy of the JP 0A48H at 0069H.
0066
JUMP to the NMI vector in RAM at 4015H, which the LDIR at 00F3H loads with the JP 0A48H at 0069H: the end of a floppy disk sector read goes to 0A48H.
0069H - Block Copied to RAM 4015H-4047H
The LDIR at 00F3H copies the 51 bytes 0069H-009BH to 4015H-4047H, so every byte here also has a RAM address 3FACH higher, shown in the comments. The block holds the NMI vector (4015H), the name of the ROM image file (4018H), the exit to the booted program (4020H), Frank Durda IV's initials as a halt routine (4027H), the version text (402CH) and the routine that reads the ROM image with the boot ROM switched out (403EH). The code in it runs from RAM.
0069
Runs at 4015H-4017H, the NMI vector the entry at 0066H jumps to: JUMP to 0A48H, the end of a floppy disk sector read. Nothing in the ROM jumps to 0069H itself.
006C-0073
DEFM "MODEL% " 4D 4F 44 45 4C 25 20 20
Copied to 4018H-401FH: the name of the ROM image file, MODEL% padded with two spaces to eight characters. The directory search at 0AF6H compares it with each file name; % (25H) matches any character (0BF7H), and a letter key A-G held at reset is stored over it at 401DH (0854H) to ask for MODELA ... MODELG.
0074H - Exit to the Booted Program (Runs at 4020H)
The last code the boot ROM runs, from RAM. 01BDH jumps to 4020H after setting the memory map; the boot ROM is switched out and the program starts. The JP operand at 4024H-4025H is 4300H (the boot sector) unless 01A2H has stored the transfer address of the ROM image there.
0074
XOR A AF
Runs at 4020H: set Register A to 00H (XOR A), the value that switches the boot ROM out at port 9CH.
0075
OUT (9CH),A D3 9C
Runs at 4021H: OUTput Register A (00H) to port 9CH, bit 0 = 0: the boot ROM is switched out, so 0000H-0FFFH now reads RAM (the ROM image when one is loaded). This code keeps running because it is in RAM.
0077
JP 4300H C3 00 43
Runs at 4023H: JUMP to the address held at 4024H-4025H. The copy holds 4300H, the boot sector the drive boot read into RAM; 01A2H replaces it with the ROM image's transfer address (or 3015H for an image already in RAM).
007A
DEFB 00H 00
Copied to 4026H: a 00H byte between the exit routine and the halt routine. Nothing executes or reads it.
007BH - Halt with the Initials fdiv (Runs at 4027H)
The four bytes 66H 64H 69H 76H are the letters fdiv, Frank Durda IV's initials in lower case. In RAM at 4027H they run as three register loads and a HALT: 0160H jumps to 4027H to stop the machine after an error message or the version display.
007B
LD H,(HL) 66
Runs at 4027H: the byte 66H, the letter f. It loads Register H with the byte at the address in Register Pair HL; the value is not used, since the HALT follows.
007C
LD H,H 64
Runs at 4028H: the byte 64H, the letter d. It copies Register H into Register H, which changes nothing.
007D
LD L,C 69
Runs at 4029H: the byte 69H, the letter i. It copies Register C into Register L; the value is not used.
007E
HALT 76
Runs at 402AH: the byte 76H, the letter v, the HALT instruction. Interrupts are disabled and normally no NMI is enabled (a floppy read that ends through 0A37H leaves port E4H at 80H), so the CPU stays halted until RESET.
007F
DEFB 00H 00
Copied to 402BH: a 00H byte after the halt routine, before the version text. Nothing executes or reads it.
0080-008F
DEFM "1(16) 18-Oct-83",00H 31 28 31 36 29 20 31 38 2D 4F 63 74 2D 38 33 00
Copied to 402CH-403BH: the version text 1(16) 18-Oct-83 and its 00H terminator. The V key display at 0144H shows it from the ROM after the text at 009CH; the copy at 402CH stays in RAM for the booted program. In version 1(15) the text is 1(15) 11-Oct-83 (only the bytes at 0083H, 35H, and 0087H, 31H, differ).
0090-0091
DEFB 00H x 2 00 x 2
Copied to 403CH-403DH: two 00H bytes between the version text and the routine at 0092H. Nothing executes or reads them.
0092H - Read the Word at 000BH of the RAM Image (Runs at 403EH)
Called as CALL 403EH from 01F9H. With the boot ROM switched out, 000BH-000CH reads the RAM under it, where a loaded Model III ROM image holds E1H E9H; the routine switches the ROM back in and returns the word in Register Pair HL. It must run from RAM, since it switches the ROM it would otherwise be fetched from.
0092
XOR A AF
Runs at 403EH: set Register A to 00H (XOR A), the value that switches the boot ROM out at port 9CH.
0093
OUT (9CH),A D3 9C
Runs at 403FH: OUTput Register A (00H) to port 9CH, bit 0 = 0: the boot ROM is switched out and 0000H-0FFFH reads RAM.
0095
LD HL,(000BH) 2A 0B 00
Runs at 4041H: load Register Pair HL with the two bytes at 000BH-000CH of the RAM image. A Model III ROM image has E1H E9H there, so Register Pair HL = E9E1H when the image is present.
0098
INC A 3C
Runs at 4044H: INCrement Register A to 01H, the value that switches the boot ROM back in.
0099
OUT (9CH),A D3 9C
Runs at 4045H: OUTput Register A (01H) to port 9CH, bit 0 = 1: the boot ROM is switched back in at 0000H-0FFFH.
009B
RET C9
Runs at 4047H: RETURN to 01FCH with Register Pair HL = the word read from 000BH of the RAM image and Register A = 01H.
009C-00B0
DEFM "Boot ROM Version Is ",00H 42 6F 6F 74 20 52 4F 4D 20 56 65 72 73 69 6F 6E 20 49 73 20 00
The text Boot ROM Version Is and its 00H terminator. The V key display at 0140H shows it at the top left of the screen, followed by the version text at 0080H.
00B1H - CRT Controller Table
The loop at 00C7H writes 15 bytes to the CRT controller, the byte at 00BFH to register R15 down to the byte at 00B1H to register R1. Every byte of the table is 00H; R0 is not written.
00B1-00BF
DEFB 00H x 15 00 x 15
The values for CRT controller registers R1 (00B1H) to R15 (00BFH), all 00H. The loop at 00CCH reads them from 00BFH downward and writes each to port 89H after selecting its register at port 88H.
00C0
DEFB 00H 00
A 00H byte after the CRT controller table, before the code at 00C1H. The table loop starts at 00BFH, so nothing reads it.
00C1H - Interrupt Mode, Floppy Controller Reset, CRT Controller
Reached from 0061H with Register C = 88H. Sets interrupt mode 1, stops any command in the floppy disk controller and writes the 15 bytes of the table at 00B1H-00BFH to CRT controller registers R15 down to R1.
00C1
IM 1 ED 56
Set the Z80 to interrupt mode 1 (IM 1), where a maskable interrupt restarts at 0038H. Interrupts stay disabled; the booted program decides when to enable them.
00C3
LD A,D0H 3E D0
Load Register A with D0H, the Force Interrupt command for the floppy disk controller.
00C5
OUT (F0H),A D3 F0
OUTput Register A (D0H) to port F0H, the floppy disk controller's command register: any command still running is ended without an interrupt.
| 1793 FDC Command: D0H (11010000) | | Function Description |
| 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | | Command=Force Interrupt (bits 7-4 = 1101) I3-I0 = 0000: end the command without an interrupt |
00C7
LD B,0FH 06 0F
Load Register B with 0FH, the number of the highest CRT controller register written (R15) and the count of the DJNZ at 00D2H.
00C9
LD HL,00BFH 21 BF 00
Load Register Pair HL with 00BFH, the last byte of the CRT controller table, the value for register R15.
00CC
LD A,(HL) 7E
Fetch the byte at the address in Register Pair HL (the table value for the register in Register B, 00H) into Register A.
00CD
OUT (C),B ED 41
OUTput Register B (the register number, 0FH down to 01H) to the port in Register C (88H, the CRT controller address port), selecting the register.
00CF
OUT (89H),A D3 89
OUTput Register A (the table value) to port 89H, the CRT controller data port, writing the selected register.
00D1
DEC HL 2B
DECrement Register Pair HL to the table value for the next lower register.
00D2
DECrement Register B and LOOP back to 00CCH until registers R15 down to R1 are written; Register B = 00H at the end, so R0 is not written.
00D4H - Period Key: RAM Test
If the period key is held during reset, the ROM runs the dynamic RAM test at 0CF2H instead of booting.
00D4
LD A,(3820H) 3A 20 38
Fetch keyboard row 3820H (keys 8 9 : ; , - . / in bits 0-7, a bit is 1 while its key is down) into Register A.
00D7
BIT 6,A CB 77
Test bit 6 of Register A, the period key: the Z FLAG is clear when it is down.
00D9
If the NZ FLAG is set (the period key is down), JUMP to 0CF2H, the dynamic RAM test, which runs until RESET.
00DCH - Clear Both Video Pages
Port 84H bit 7 selects which 1K page of video RAM is mapped at 3C00H-3FFFH in the 64 x 16 mode. Both pages are filled with spaces, page 1 first, and page 0 is left selected.
00DC
LD A,80H 3E 80
Load Register A with 80H for port 84H: bit 7 set (video page 1), bits 1-0 = 00 (memory map mode 0), 64 x 16 display, no reverse video, no page mapping.
00DE
OUT (84H),A D3 84
OUTput Register A (80H) to port 84H, the operation register: video page 1 is now mapped at 3C00H-3FFFH.
00E0
GOSUB to 0206H to fill 3C00H-3FFFH (video page 1) with spaces.
00E3
LD A,00H 3E 00
Load Register A with 00H for port 84H: bit 7 clear (video page 0), memory map mode 0, 64 x 16 display.
00E5
OUT (84H),A D3 84
OUTput Register A (00H) to port 84H: video page 0 is mapped at 3C00H-3FFFH; it stays selected from here on.
00E7
GOSUB to 0206H to fill 3C00H-3FFFH (video page 0) with spaces.
00EAH - Copy 0069H-009BH to RAM 4015H-4047H
Puts the NMI vector, the ROM image file name, the exit routine, the halt routine, the version text and the routine at 0092H into RAM (see 0069H).
00EA
LD DE,4015H 11 15 40
Load Register Pair DE with 4015H, the RAM address the block goes to.
00ED
LD HL,0069H 21 69 00
Load Register Pair HL with 0069H, the first byte of the block in the ROM.
00F0
LD BC,0033H 01 33 00
Load Register Pair BC with 0033H (51), the length of the block 0069H-009BH.
00F3
LDIR ED B0
Copy the 51 bytes at Register Pair HL (0069H) to Register Pair DE (4015H), counting Register Pair BC down to 0000H: RAM 4015H-4047H now holds the block.
00F5H - Clear the Boot Variables 4055H-406AH and Scan the Keyboard
Zeroes the 22 bytes of RAM the boot uses for its variables, scans the keyboard 32767 times for a boot key, then resets floppy disk drive 0. Also reached from 014FH when a key held at reset has no action, which starts the wait again.
00F5
LD HL,4055H 21 55 40
Load Register Pair HL with 4055H, the first boot variable (the boot type, set later at 01D3H or 0C1CH).
00F8
LD (HL),00H 36 00
Store 00H at the address in Register Pair HL (4055H).
00FA
LD D,H 54
Copy Register H (40H) into Register D, the high byte of the destination of the LDIR.
00FB
LD E,L 5D
Copy Register L (55H) into Register E: Register Pair DE = 4055H.
00FC
INC DE 13
INCrement Register Pair DE to 4056H, one byte past Register Pair HL, so the LDIR copies each zero one byte forward.
00FD
LD BC,0015H 01 15 00
Load Register Pair BC with 0015H (21), the number of bytes still to clear, 4056H-406AH.
0100
LDIR ED B0
Copy the byte at Register Pair HL to Register Pair DE 21 times, counting Register Pair BC down to 0000H: 4055H-406AH are all 00H.
0102
LD BC,7FFFH 01 FF 7F
Load Register Pair BC with 7FFFH (32767), the number of keyboard scans RST 30H makes.
0105
RST 30H F7
RST 30H: scan the keyboard Register Pair BC times (083EH). It returns Register A = the code of the last boot key seen (also stored at 4059H), or 00H for none, with the flags of OR A, and sets 401DH, 405BH, 4064H, 4065H and 4066H for the keys that only change options.
0106
PUSH AF F5
Save Register Pair AF (the key code and its Z FLAG) on the stack while floppy drive 0 is reset.
0107
LD A,01H 3E 01
Load Register A with 01H, the RST 08H device code for the floppy disk.
0109
LD B,04H 06 04
Load Register B with 04H, the RST 08H function: restore (for the floppy disk every function below 05H is a restore to track 0, 0982H).
010B
RST 08H CF
RST 08H: restore floppy disk drive 0 (08B5H). Register A returns 00H with the Z FLAG set on success, or an error code with NZ.
010C
If the Z FLAG is set (drive 0 restored), JUMP to 0115H.
010E
LD (4067H),A 32 67 40
Store Register A (the error code of the restore) at 4067H, the floppy error. A nonzero 4067H stops the floppy boot at 01CAH and the ROM image load at 0180H and 0A72H.
0111
CP 06H FE 06
Compare Register A against 06H, the error code for The Floppy Disk Drive Is Not Available.
0113
If the Z FLAG is set (no floppy drive answered), JUMP to 011AH and skip the restore of drives 1-3.
0115
LD B,32H 06 32
Load Register B with 32H, the special floppy function that restores drives 1, 2 and 3 (09A2H).
0117
LD A,01H 3E 01
Load Register A with 01H, the RST 08H device code for the floppy disk.
0119
RST 08H CF
RST 08H: function 32H, restore floppy drives 1, 2 and 3 (09A6H). Its result is not tested.
011A
POP AF F1
Restore Register Pair AF from the stack: Register A = the key code from RST 30H, the Z FLAG set when no key was held.
011B
If the Z FLAG is set (no boot key), JUMP to 0163H to try the ARCNET board, the hard disk, the floppy disk and the ROM image in turn.
011DH - Act on the Key Held at Reset
4059H holds the code 083EH stored for the last boot key seen: 86H for F1 or 1 (hard disk), 87H for F2 or 2 (floppy disk), 88H for F3 or 3 (ROM image), 80H for V (show the version), 83H for the right SHIFT key (RS-232 boot); the left SHIFT, CTRL and CAPS keys (82H, 84H, 85H) have no action and restart the wait at 00F5H.
011D
LD A,(4059H) 3A 59 40
Fetch the key code at 4059H (stored by the keyboard scan at 08A8H) into Register A.
0120
CP 86H FE 86
Compare Register A against 86H, the code of the F1 and 1 keys.
0122
If the NZ FLAG is set (not F1 or 1), JUMP to 0129H.
0124
GOSUB to 01C0H to boot from the hard disk. It returns only when the hard disk does not boot: Register A = 00H when the boot sector needs the ROM image, or an error code.
0127
JUMP to 0130H to act on Register A (00H: load the ROM image; otherwise an error code).
0129
CP 87H FE 87
Compare Register A against 87H, the code of the F2 and 2 keys.
012B
If the NZ FLAG is set (not F2 or 2), JUMP to 0135H.
012D
GOSUB to 01CAH to boot from floppy disk drive 0. It returns only when the floppy does not boot: Register A = 00H when the boot sector needs the ROM image, or an error code.
0130
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set when Register A is 00H (the boot sector needs the ROM image).
0131
If the Z FLAG is set, JUMP to 0137H, where the Z FLAG takes the jump to the ROM image load at 0175H.
0133
Register A holds an error code: JUMP to 0151H to show its message and halt.
0135
CP 88H FE 88
Compare Register A against 88H, the code of the F3 and 3 keys.
0137
If the Z FLAG is set (F3 or 3, or a boot sector that needs the ROM image), JUMP to 0175H to start the ROM image.
0139
CP 80H FE 80
Compare Register A against 80H, the code of the V key.
013B
If the NZ FLAG is set (not V), JUMP to 014AH.
013D
LD DE,0000H 11 00 00
Load Register Pair DE with 0000H, the screen offset of row 0, column 0, for RST 10H.
0140
LD HL,009CH 21 9C 00
Load Register Pair HL with 009CH, the text Boot ROM Version Is.
0143
RST 10H D7
RST 10H: show the text at Register Pair HL (009CH) at the screen offset in Register Pair DE (0249H); it returns with Register Pair DE just past the text and Register A = 00H.
0144
LD HL,0080H 21 80 00
Load Register Pair HL with 0080H, the version text 1(16) 18-Oct-83.
0147
RST 10H D7
RST 10H: show the version text at Register Pair HL right after the first text, at the offset left in Register Pair DE (Register A returns 00H).
0148
JUMP to 0160H to halt the CPU with the version on the screen.
014A
CP 83H FE 83
Compare Register A against 83H, the code of the right SHIFT key.
014C
If the Z FLAG is set (right SHIFT), JUMP to 0C1AH to boot over the RS-232 port.
014F
Any other key code (82H left SHIFT, 84H CTRL, 85H CAPS): JUMP back to 00F5H to clear the variables and wait for a key again.
0151H - Show an Error Message and Halt
Entered with an error code 00H-0CH in Register A (from 0133H, 0184H, 019BH or 0C17H). The code selects a message list in the table at 0273H; RST 18H shows it from the top left of the screen in English, German and French, and the CPU halts.
0151
ADD A,A 87
Double Register A (ADD A,A), the error code, to make it the offset of its word in the table at 0273H.
0152
LD HL,0273H 21 73 02
Load Register Pair HL with 0273H, the table of message list addresses.
0155
LD D,00H 16 00
Load Register D with 00H, the high byte of the offset.
0157
LD E,A 5F
Copy Register A (the offset) into Register E: Register Pair DE = the offset of the error's word.
0158
ADD HL,DE 19
ADD Register Pair DE to Register Pair HL: Register Pair HL = the address of the error's word in the table.
0159
LD A,(HL) 7E
Fetch the low byte of the message list address (at Register Pair HL) into Register A.
015A
INC HL 23
INCrement Register Pair HL to the high byte of the word.
015B
LD H,(HL) 66
Load Register H with the high byte of the message list address (at Register Pair HL).
015C
LD L,A 6F
Copy Register A (the low byte) into Register L: Register Pair HL = the address of the message list.
015D
XOR A AF
Set Register A to 00H (XOR A); this also sets the Z FLAG, which tells RST 18H to start at the offset in Register Pair DE.
015E
LD E,A 5F
Copy Register A (00H) into Register E: Register Pair DE = 0000H (Register D is 00H from 0155H), row 0, column 0.
015F
RST 18H DF
RST 18H: show the message list at Register Pair HL starting at the offset in Register Pair DE (0255H), the English line first, then the German and French lines at the offsets the list gives.
0160H - Halt
Reached after an error message (0151H) and after the version display (0148H). The halt routine runs from RAM at 4027H (the copy of 007BH).
0160
JUMP to 4027H, the RAM copy of the bytes fdiv at 007BH-007EH, which end with a HALT: the machine stops until RESET.
0163H - No Key Held: ARCNET Board, Hard Disk, Floppy Disk
With no boot key the ROM tests for an ARCNET board at port B6H (it writes 55H and reads it back); this ROM version cannot boot from one and stops with error 1. Otherwise it tries the hard disk, then the floppy disk if the hard disk gave an error, and goes on to the ROM image at 0175H if neither booted.
0163
LD A,55H 3E 55
Load Register A with 55H (0101 0101), the test pattern for the ARCNET board.
0165
LD B,A 47
Copy Register A (55H) into Register B, to compare with what port B6H returns.
0166
OUT (B6H),A D3 B6
OUTput Register A (55H) to port B6H, the ARCNET board port.
0168
IN A,(B6H) DB B6
INput port B6H into Register A: an ARCNET board returns the 55H written; without the board the value read differs.
016A
CP B B8
Compare Register A (the byte read from port B6H) against Register B (55H).
016B
If the Z FLAG is set (an ARCNET board answered), GOSUB to 0C15H, which shows error 1, Arcnet Boot Is Not Available, and halts.
016E
GOSUB to 01C0H to boot from the hard disk. It returns only if the hard disk does not boot: Register A = 00H when the boot sector needs the ROM image, or an error code.
0171
OR A B7
Set the flags from Register A (OR A): NZ when the hard disk gave an error code.
0172
If the NZ FLAG is set (hard disk error), GOSUB to 01CAH to boot from floppy disk drive 0. When it returns too, its result (Register A) is not shown: the code goes on to the ROM image at 0175H either way.
0175H - Start the ROM Image
Reached for F3 or 3, for a boot sector that needs the ROM image, and when nothing else booted. Unless the L key was held, a ROM image already in RAM is started at once (01EBH checks for it). Otherwise MODEL%/III is read from floppy disk drive 0 into RAM 0000H-37FFH; a floppy error found at 010BH stops the load with that error's message.
0175
LD A,(4066H) 3A 66 40
Fetch 4066H into Register A: nonzero when the L key was held at reset (0873H), which asks for the ROM image to be loaded again even if one is in RAM.
0178
OR A B7
Set the flags from Register A (OR A): NZ when the L key was held.
0179
If the NZ FLAG is set (L held), JUMP to 0180H to load the image from disk.
017B
GOSUB to 01EBH to look for a ROM image in RAM. It returns the Z FLAG set when one is there, with Register Pair HL = 3015H, the image's entry.
017E
If the Z FLAG is set (an image is in RAM), JUMP to 01A2H to make 3015H the address the exit routine jumps to.
0180
LD A,(4067H) 3A 67 40
Fetch 4067H into Register A, the error code of the floppy restore at 010BH (00H when drive 0 restored).
0183
OR A B7
Set the flags from Register A (OR A): NZ when floppy drive 0 failed; the Z FLAG set here is also the one RST 18H uses at 0190H.
0184
If the NZ FLAG is set (no usable floppy drive), JUMP to 0151H to show the floppy error and halt.
0186
LD A,01H 3E 01
Load Register A with 01H for port 84H: memory map mode 1, video page 0, 64 x 16 display.
0188
OUT (84H),A D3 84
OUTput Register A (01H) to port 84H: in mode 1 with the boot ROM switched in, writes to 0000H-0FFFH go to the RAM under the ROM and 1000H-37FFH is RAM, so the ROM image can be loaded at 0000H-37FFH.
018A
LD DE,0000H 11 00 00
Load Register Pair DE with 0000H, the screen offset of row 0, column 0, for RST 18H.
018D
LD HL,0491H 21 91 04
Load Register Pair HL with 0491H, the Loading ROM Image message list.
0190
RST 18H DF
RST 18H: show the message list at Register Pair HL from the offset in Register Pair DE (the Z FLAG is set from 0183H): Loading ROM Image - Please Wait in English, German and French.
0191
GOSUB to 0A72H to read MODEL%/III from floppy disk drive 0 into RAM. It returns the Z FLAG set and Register Pair HL = the file's transfer address, or NZ and an error code in Register A.
0194
PUSH AF F5
Save Register Pair AF (the result and its flags) on the stack while the screen is cleared.
0195
PUSH HL E5
Save Register Pair HL (the transfer address) on the stack.
0196
GOSUB to 0206H to fill the screen 3C00H-3FFFH with spaces, removing the Loading message.
0199
POP HL E1
Restore Register Pair HL (the transfer address) from the stack.
019A
POP AF F1
Restore Register Pair AF (the result of 0A72H) from the stack.
019B
If the NZ FLAG is set (the load failed), JUMP to 0151H to show the message for the error code in Register A and halt.
019D
LD A,01H 3E 01
Load Register A with 01H, the flag value for a ROM image loaded from disk.
019F
LD (4058H),A 32 58 40
Store Register A (01H) at 4058H, the image loaded flag. The ROM does not read it again; it is left in RAM for the booted program.
01A2H - Set the Exit Address, Optional Pause, Boot
Stores the start address in the exit routine's JP operand at 4024H. With the P key held at reset the ROM first shows a ROM image loaded message and waits for ENTER or BREAK, so the disk can be changed. Then the memory map is set for the Model III mode and the exit routine at 4020H switches the boot ROM out and jumps.
01A2
LD (4024H),HL 22 24 40
Store Register Pair HL at 4024H-4025H, the operand of the JP at 4023H (the copy of 0077H): the ROM image's transfer address from 0A72H, or 3015H for an image already in RAM.
01A5
LD A,(4065H) 3A 65 40
Fetch 4065H into Register A: nonzero when the P key was held at reset (0883H).
01A8
OR A B7
Set the flags from Register A (OR A): NZ when the P key was held.
01A9
If the Z FLAG is set (no P key), JUMP to 01B6H to boot at once.
01AB
LD HL,0443H 21 43 04
Load Register Pair HL with 0443H, the ROM image loaded message list (The ROM Image Has Been Loaded - Switch Disks And Press <Enter> Or <Break> When You Are Ready).
01AE
RST 18H DF
RST 18H: show the message list at Register Pair HL. The NZ FLAG (from 01A8H) makes 0255H load Register Pair DE from the list's first word (0000H), so the value Register Pair DE held is not used.
01AF
LD A,(3840H) 3A 40 38
Fetch keyboard row 3840H (bit 0 ENTER, bit 1 CLEAR, bit 2 BREAK, bits 3-6 the arrow keys, bit 7 SPACE) into Register A.
01B2
AND 05H E6 05
Keep bit 0 (ENTER) and bit 2 (BREAK) of Register A (AND 05H): the Z FLAG is set while neither key is down.
01B4
If the Z FLAG is set (neither ENTER nor BREAK), LOOP back to 01AFH; both keys go on the same way.
01B6
XOR A AF
Set Register A to 00H (XOR A), the value for port 84H. Also reached from 01E6H when a boot sector is to run.
01B7
OUT (84H),A D3 84
OUTput Register A (00H) to port 84H: memory map mode 0 (0000H-37FFH read-only RAM once the boot ROM is out, then the printer status, keyboard and video areas), video page 0, 64 x 16 display.
01B9
LD A,10H 3E 10
Load Register A with 10H, the value for port ECH: only bit 4 set.
01BB
OUT (ECH),A D3 EC
OUTput Register A (10H) to port ECH: the CPU clock goes back to 2 MHz, the external I/O bus stays enabled.
| Port ECH: 10H (00010000) | | Function Description |
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | | Bit 6 = 0: CPU clock 2 MHz Bit 5 = 0: video waits off Bit 4 = 1: external I/O bus enabled Bit 3 = 0: standard character set Bit 2 = 0: normal width characters Bit 1 = 0: cassette motor bit |
01BD
JUMP to 4020H, the RAM copy of the exit routine at 0074H: it switches the boot ROM out and jumps to the address at 4024H (4300H, the boot sector, unless 01A2H stored another).
01C0H - Boot from the Hard Disk
Resets the hard disk controller and restores drive 0, then joins the common drive boot at 01D0H with device code 02H. Returns with an error code (NZ) if the hard disk is not there or not ready.
01C0
LD A,02H 3E 02
Load Register A with 02H, the RST 08H device code for the hard disk.
01C2
LD B,01H 06 01
Load Register B with 01H, the RST 08H function: reset the hard disk controller, then restore (08BCH).
01C4
RST 08H CF
RST 08H: reset the hard disk controller and restore drive 0 (08B5H). Register A returns 00H with the Z FLAG set, or an error code with NZ.
01C5
RET NZ C0
If the NZ FLAG is set (the hard disk failed), RETURN to the caller with the error code in Register A.
01C6
LD A,02H 3E 02
Load Register A with 02H, the device code of the hard disk, for the read at 01DCH and the boot type at 4055H.
01C8
JUMP to 01D0H, the drive boot shared with the floppy disk.
01CAH - Boot from Floppy Disk Drive 0
Returns at once with the error of the restore at 010BH if drive 0 failed; otherwise falls into the common drive boot with device code 01H.
01CA
LD A,(4067H) 3A 67 40
Fetch 4067H into Register A, the error code of the floppy restore at 010BH.
01CD
OR A B7
Set the flags from Register A (OR A): NZ when the restore failed.
01CE
RET NZ C0
If the NZ FLAG is set, RETURN with that error code in Register A.
01CF
INC A 3C
INCrement Register A from 00H to 01H, the RST 08H device code for the floppy disk.
01D0H - Read the Boot Sector and Decide
Reads cylinder 0, sector 1 of the drive into 4300H. A boot sector of 256 bytes is checked at 0215H and, unless it needs the ROM image, run at once through the exit at 01B6H. A sector of 512 bytes, or one that calls into the first 256 bytes of the ROM area, returns Register A = 00H so the caller loads the ROM image.
01D0
LD BC,0C01H 01 01 0C
Load Register Pair BC with 0C01H: Register B = 0CH, the RST 08H read function; Register C = 01H, sector 1.
01D3
LD (4055H),A 32 55 40
Store Register A (01H floppy disk or 02H hard disk) at 4055H, the boot type. The ROM does not read it again; it is left in RAM for the booted program, and the RS-232 boot stores 04H there.
01D6
LD DE,0000H 11 00 00
Load Register Pair DE with 0000H, cylinder 0.
01D9
LD HL,4300H 21 00 43
Load Register Pair HL with 4300H, the RAM address the boot sector is read to and where the exit routine jumps.
01DC
RST 08H CF
RST 08H: read cylinder 0 (Register Pair DE), sector 1 (Register C) of the drive in Register A to Register Pair HL (4300H). It returns Register E = the number of 256-byte blocks read and the Z FLAG set, or an error code in Register A with NZ.
01DD
RET NZ C0
If the NZ FLAG is set (the read failed), RETURN with the error code in Register A.
01DE
LD A,E 7B
Copy Register E (1 for a 256-byte sector, 2 for a 512-byte sector) into Register A.
01DF
LD (4056H),A 32 56 40
Store Register A at 4056H, the boot sector size in 256-byte blocks. The ROM does not read it again; it is left in RAM for the booted program.
01E2
DEC A 3D
DECrement Register A: the Z FLAG is set for a 256-byte boot sector.
01E3
If the Z FLAG is set (256 bytes), GOSUB to 0215H, which returns the Z FLAG set when the boot sector can run without the ROM image.
01E6
If the Z FLAG is set, JUMP to 01B6H to run the boot sector at 4300H.
01E8
LD A,00H 3E 00
Load Register A with 00H: the boot sector needs the ROM image (or is 512 bytes long). The flags stay NZ.
01EA
RET C9
RETURN to the caller with Register A = 00H, which it takes as the request to load the ROM image.
01EBH - Is a Model III ROM Image in RAM?
An image is taken as present when the ten bytes at 3000H, 3003H ... 301BH (its jump table) are all C3H, the JP opcode, and the word at 000BH of the RAM image is E9E1H. Returns the Z FLAG set when present, NZ when not, and Register Pair HL = 3015H.
01EB
LD HL,3000H 21 00 30
Load Register Pair HL with 3000H, the first entry of the jump table of a Model III ROM image.
01EE
LD B,0AH 06 0A
Load Register B with 0AH (10), the number of jump table entries checked, the count of the DJNZ at 01F7H.
01F0
LD A,C3H 3E C3
Load Register A with C3H, the opcode of a three byte JP instruction.
01F2
CP (HL) BE
Compare Register A (C3H) against the byte at the address in Register Pair HL.
01F3
RET NZ C0
If the NZ FLAG is set (no JP opcode there), RETURN with NZ: there is no ROM image in RAM.
01F4
INC HL 23
INCrement Register Pair HL, the first of three steps over the three byte entry.
01F5
INC HL 23
INCrement Register Pair HL, the second of three steps over the entry.
01F6
INC HL 23
INCrement Register Pair HL, the third: it points to the opcode of the next entry.
01F7
DECrement Register B and LOOP back to 01F2H until the ten entries 3000H-301BH are checked.
01F9
All ten bytes tested were C3H (the JP table at 3000H of the image is in place), so GOSUB to 403EH, the RAM copy of the routine at 0092H on this page. It switches the boot ROM out, loads Register Pair HL with the word at 000BH of the RAM image, switches the boot ROM back in (port 9CH = 01H) and returns with Register A = 01H.
01FC
XOR A AF
Set Register A to 00H (XOR A), which also clears the CARRY FLAG for the SBC.
01FD
LD DE,E9E1H 11 E1 E9
Load Register Pair DE with E9E1H, the word a Model III ROM image holds at 000BH-000CH (E1H E9H).
0200
SBC HL,DE ED 52
Subtract Register Pair DE (E9E1H) and the CARRY FLAG (0) from Register Pair HL (the word read at 000BH): the Z FLAG is set when the image is present.
0202
LD HL,3015H 21 15 30
Load Register Pair HL with 3015H, the entry of the image's jump table the boot uses as the start address of an image already in RAM. The flags of the SBC are unchanged.
0205
RET C9
RETURN with the Z FLAG set when an image is present and Register Pair HL = 3015H.
0206H - Clear the Screen
Fills the 1024 bytes of video RAM at 3C00H-3FFFH with spaces. Changes Register A, Register Pair BC, Register Pair DE and Register Pair HL.
0206
LD A,20H 3E 20
Load Register A with 20H, the space character.
0208
LD HL,3C00H 21 00 3C
Load Register Pair HL with 3C00H, the first byte of video RAM.
020B
LD BC,03FFH 01 FF 03
Load Register Pair BC with 03FFH (1023), the number of bytes after the first.
020E
LD (HL),A 77
Store Register A (a space) at the address in Register Pair HL (3C00H).
020F
LD D,H 54
Copy Register H (3CH) into Register D, the high byte of the destination of the LDIR.
0210
LD E,L 5D
Copy Register L (00H) into Register E: Register Pair DE = 3C00H.
0211
INC DE 13
INCrement Register Pair DE to 3C01H, one byte past Register Pair HL.
0212
LDIR ED B0
Copy the byte at Register Pair HL to Register Pair DE 1023 times, counting Register Pair BC down to 0000H, which carries the space through 3C01H-3FFFH.
0214
RET C9
RETURN with the screen blank, Register A = 20H and Register Pair HL = 3FFFH.
0215H - Does the Boot Sector Need the ROM Image?
Called from 01E3H for a 256-byte boot sector at 4300H. Unless the N key was held at reset, the sector is searched for a CALL (CDH) whose target is in 0000H-00FFH, a call into the ROM area: such a sector needs the ROM image (returns NZ). Otherwise the sector runs without the image (returns Z); a ROM image still in RAM is first spoiled by clearing its jump table at 3000H-301EH.
0215
LD A,(4064H) 3A 64 40
Fetch 4064H into Register A: nonzero when the N key was held at reset (086CH), which skips the search.
0218
OR A B7
Set the flags from Register A (OR A): NZ when the N key was held.
0219
If the NZ FLAG is set (N held), JUMP to 0228H: the boot sector runs without the ROM image.
021B
LD HL,4300H 21 00 43
Load Register Pair HL with 4300H, the first byte of the boot sector.
021E
LD B,FEH 06 FE
Load Register B with FEH (254), the number of bytes searched, 4300H-43FDH.
0220
LD A,CDH 3E CD
Load Register A with CDH, the opcode of CALL.
0222
CP (HL) BE
Compare Register A (CDH) against the byte at the address in Register Pair HL.
0223
If the Z FLAG is set (a CDH byte), JUMP to 023FH to look at the high byte of the call's target.
0225
INC HL 23
INCrement Register Pair HL to the next byte of the boot sector.
0226
DECrement Register B and LOOP back to 0220H until 254 bytes are searched.
0228
No call into the ROM area: GOSUB to 01EBH to see whether a ROM image is in RAM (the Z FLAG set when it is).
022B
If the NZ FLAG is set (no image in RAM), JUMP to 023DH to return the Z FLAG.
022D
LD A,01H 3E 01
Load Register A with 01H for port 84H: memory map mode 1, where 1000H-37FFH is RAM that can be written.
022F
OUT (84H),A D3 84
OUTput Register A (01H) to port 84H, so the image's jump table at 3000H can be overwritten.
0231
LD HL,3000H 21 00 30
Load Register Pair HL with 3000H, the start of the ROM image's jump table.
0234
LD D,H 54
Copy Register H (30H) into Register D, the high byte of the destination of the LDIR.
0235
LD E,L 5D
Copy Register L (00H) into Register E: Register Pair DE = 3000H.
0236
LD (HL),L 75
Store Register L (00H) at the address in Register Pair HL (3000H).
0237
INC DE 13
INCrement Register Pair DE to 3001H, one byte past Register Pair HL.
0238
LD BC,001EH 01 1E 00
Load Register Pair BC with 001EH (30), the number of bytes after 3000H to clear.
023B
LDIR ED B0
Copy the byte at Register Pair HL to Register Pair DE 30 times, counting Register Pair BC down to 0000H: 3000H-301EH are 00H, so 01EBH no longer finds an image.
023D
XOR A AF
Set Register A to 00H (XOR A): the Z FLAG is set, the boot sector runs without the ROM image.
023E
RET C9
RETURN with the Z FLAG set and Register A = 00H: run the boot sector without the image.
023F
INC HL 23
A CDH byte was found: INCrement Register Pair HL to the low byte of the call's target.
0240
DEC B 05
DECrement Register B, since that byte is skipped by the search.
0241
INC HL 23
INCrement Register Pair HL to the high byte of the call's target.
0242
DEC B 05
DECrement Register B for that byte as well, so the search normally ends at 43FDH. A CDH at 43FCH or 43FDH takes Register B to 00H or FFH here; if that call's high byte is not 00H, the DJNZ at 0226H wraps Register B and the search runs on past the sector, up to 256 more bytes.
0243
LD A,(HL) 7E
Fetch the high byte of the call's target (at Register Pair HL) into Register A.
0244
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set when the target is in 0000H-00FFH.
0245
If the NZ FLAG is set (the call goes elsewhere), JUMP to 0225H to go on searching after it.
0247
OR L B5
OR Register L into Register A (00H): Register L is the low byte of the address of the call's high byte, 02H-FFH for a call found in 4300H-43FDH, so the NZ FLAG is set (only a call found past the sector by the overrun noted at 0242H could leave Register L = 00H).
0248
RET C9
RETURN with the NZ FLAG set: the boot sector calls into the ROM area and needs the ROM image.
0249H - RST 10H: Show a Text
The routine RST 10H reaches through 4003H. Shows the text at Register Pair HL, ended by a 00H byte, at the screen offset in Register Pair DE. 3CH is ORed into the high byte, so an offset 0000H-03FFH becomes the video RAM address 3C00H-3FFFH (an address already in 3C00H-3FFFH is unchanged). Returns with Register Pair DE just past the text, Register Pair HL on the 00H byte and Register A = 00H.
0249
LD A,D 7A
Copy Register D, the high byte of the screen offset, into Register A.
024A
OR 3CH F6 3C
OR 3CH (0011 1100) into Register A, turning offset 00H-03H into video RAM page 3CH-3FH.
024C
LD D,A 57
Copy Register A back into Register D: Register Pair DE = the video RAM address.
024D
LD A,(HL) 7E
Fetch the next character of the text (at Register Pair HL) into Register A.
024E
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set at the 00H terminator.
024F
RET Z C8
If the Z FLAG is set (the end of the text), RETURN with Register A = 00H.
0250
LD (DE),A 12
Store Register A (the character) in video RAM at the address in Register Pair DE.
0251
INC HL 23
INCrement Register Pair HL to the next character of the text.
0252
INC DE 13
INCrement Register Pair DE to the next position on the screen.
0253
LOOP back to 024DH for the next character of the text at Register Pair HL.
0255H - RST 18H: Show a Message List
The routine RST 18H reaches through 4006H. Register Pair HL points to a list of words: each word is the address of a text shown by RST 10H after the one before it; FFFEH means the next word is a new screen offset; FFFFH ends the list. With the Z FLAG set the list starts with a text address and Register Pair DE holds the first offset; with NZ the first word of the list is the offset.
0255
If the Z FLAG is set (Register Pair DE already holds the offset), JUMP to 025BH.
0257
LD E,(HL) 5E
Load Register E with the low byte of the next word of the list (at Register Pair HL), a screen offset.
0258
INC HL 23
INCrement Register Pair HL to the high byte of the word.
0259
LD D,(HL) 56
Load Register D with the high byte of the screen offset (at Register Pair HL).
025A
INC HL 23
INCrement Register Pair HL past the word, to the next entry of the list.
025B
LD B,H 44
Copy Register H, the high byte of the list pointer, into Register B.
025C
LD C,L 4D
Copy Register L into Register C: Register Pair BC = the address of the next entry, freeing Register Pair HL for the text address.
025D
LD A,(BC) 0A
Fetch the low byte of the entry (at Register Pair BC) into Register A.
025E
INC BC 03
INCrement Register Pair BC to the high byte of the entry.
025F
LD L,A 6F
Copy Register A (the low byte of the entry) into Register L.
0260
LD A,(BC) 0A
Fetch the high byte of the entry (at Register Pair BC) into Register A.
0261
INC BC 03
INCrement Register Pair BC to the next entry.
0262
LD H,A 67
Copy Register A into Register H: Register Pair HL = the entry.
0263
INC A 3C
INCrement Register A, the high byte: it becomes 00H and sets the Z FLAG only for FFxxH.
0264
If the NZ FLAG is set (an ordinary text address), JUMP to 0270H to show the text.
0266
LD A,L 7D
Copy Register L, the low byte of the FFxxH entry, into Register A.
0267
INC A 3C
INCrement Register A: the Z FLAG is set for FFFFH.
0268
RET Z C8
If the Z FLAG is set (FFFFH, the end of the list), RETURN with Register A = 00H.
0269
INC A 3C
INCrement Register A again: the Z FLAG is set for FFFEH.
026A
If the NZ FLAG is set (another FFxxH value), JUMP to 0270H to use it as a text address.
026C
PUSH BC C5
FFFEH: save Register Pair BC (the address of the word after the marker) on the stack.
026D
POP HL E1
Restore it into Register Pair HL, which now points to the new screen offset.
026E
JUMP to 0257H to load the new screen offset into Register Pair DE and go on with the list.
0270
RST 10H D7
RST 10H: show the text at Register Pair HL at the screen position in Register Pair DE (0249H); Register Pair DE moves past the text, so the next text follows it, and Register A returns 00H.
0271
LOOP back to 025DH for the next entry of the list.
0273H - Error Message Table
The routine at 0151H doubles the error code in Register A and indexes this table of 13 words, one per error code 00H-0CH; each word is the address of that error's message list, which the RST 18H routine at 0255H displays. Every message is shown in English, German and French at once (errors 11 and 12 only in English), each language on its own screen rows.
0273-0274
DEFW 028DH 8D 02
Error code 0 (00H), "The ROM Image Was Not Found On Drive 0": the address of its message list, 028DH.
0275-0276
DEFW 02B7H B7 02
Error code 1 (01H), "Arcnet Boot Is Not Available": the address of its message list, 02B7H.
0277-0278
DEFW 02DBH DB 02
Error code 2 (02H), "ROM Image Can't Be Loaded - Too Many Extents": the address of its message list, 02DBH.
0279-027A
DEFW 0303H 03 03
Error code 3 (03H), "The Hard Disk Drive Is Not Ready": the address of its message list, 0303H.
027B-027C
DEFW 0325H 25 03
Error code 4 (04H), "The Floppy Disk Drive Is Not Ready": the address of its message list, 0325H.
027D-027E
DEFW 0349H 49 03
Error code 5 (05H), "The Hard Disk Drive Is Not Available": the address of its message list, 0349H.
027F-0280
DEFW 036FH 6F 03
Error code 6 (06H), "The Floppy Disk Drive Is Not Available": the address of its message list, 036FH.
0281-0282
DEFW 0397H 97 03
Error code 7 (07H), "Close The Floppy Drive Door And Try Again": the address of its message list, 0397H.
0283-0284
DEFW 03B1H B1 03
Error code 8 (08H), "CRC Error, Try Again Or Use Another Disk": the address of its message list, 03B1H.
0285-0286
DEFW 03D5H D5 03
Error code 9 (09H), "Seek Error, Try Again Or Use Another Disk": the address of its message list, 03D5H.
0287-0288
DEFW 03F7H F7 03
Error code 10 (0AH), "The ROM Image Can't Be Loaded - Floppy Disk Drive Is Not Ready": the address of its message list, 03F7H.
0289-028A
DEFW 0437H 37 04
Error code 11 (0BH), "Lost Data Error": the address of its message list, 0437H.
028B-028C
DEFW 043DH 3D 04
Error code 12 (0CH), "ID Error": the address of its message list, 043DH.
028DH - Message List: Error 0
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "The ROM Image Was Not Found On Drive 0"; German at row 3, column 0 (offset 00C0H): "ROM Image Nicht Gefunden Auf Laufwerk 0"; French at row 6, column 0 (offset 0180H): "Image ROM Absente Du Disque Dans l'Unité 0".
028D-028E
DEFW 04B7H B7 04
Error 0 message, English line: the address of the text "The " at 04B7H.
028F-0290
DEFW 04C5H C5 04
Error 0 message, English line: the address of the text "ROM Image " at 04C5H.
0291-0292
DEFW 04D0H D0 04
Error 0 message, English line: the address of the text "Was Not " at 04D0H.
0293-0294
DEFW 04D9H D9 04
Error 0 message, English line: the address of the text "Found On Drive " at 04D9H.
0295-0296
DEFW 04E9H E9 04
Error 0 message, English line: the address of the text "0" at 04E9H.
0297-0298
DEFW FFFEH FE FF
Error 0 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0299-029A
DEFW 00C0H C0 00
Error 0 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
029B-029C
DEFW 04C5H C5 04
Error 0 message, German line: the address of the text "ROM Image " at 04C5H.
029D-029E
DEFW 05EAH EA 05
Error 0 message, German line: the address of the text "Nicht " at 05EAH, the last 6 characters of the text "Ist Nicht " at 05E6H.
029F-02A0
DEFW 05F1H F1 05
Error 0 message, German line: the address of the text "Gefunden Auf " at 05F1H.
02A1-02A2
DEFW 0609H 09 06
Error 0 message, German line: the address of the text "Laufwerk " at 0609H, the last 9 characters of the text "Disketten-Laufwerk " at 05FFH.
02A3-02A4
DEFW 04E9H E9 04
Error 0 message, German line: the address of the text "0" at 04E9H.
02A5-02A6
DEFW FFFEH FE FF
Error 0 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
02A7-02A8
DEFW 0180H 80 01
Error 0 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
02A9-02AA
DEFW 04C9H C9 04
Error 0 message, French line: the address of the text "Image " at 04C9H, the last 6 characters of the text "ROM Image " at 04C5H.
02AB-02AC
DEFW 07DDH DD 07
Error 0 message, French line: the address of the text "ROM " at 07DDH, the last 4 characters of the text "Du ROM " at 07DAH.
02AD-02AE
DEFW 0700H 00 07
Error 0 message, French line: the address of the text "Absent" at 0700H.
02AF-02B0
DEFW 0707H 07 07
Error 0 message, French line: the address of the text "e Du " at 0707H.
02B1-02B2
DEFW 0771H 71 07
Error 0 message, French line: the address of the text "Disque" at 0771H, the last 6 characters of the text "Ou Utilisez Une Autre Disque" at 075BH.
02B3-02B4
DEFW 070DH 0D 07
Error 0 message, French line: the address of the text " Dans l'Unité 0" at 070DH.
02B5-02B6
DEFW FFFFH FF FF
Error 0 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
02B7H - Message List: Error 1
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "Arcnet Boot Is Not Available "; German at row 3, column 0 (offset 00C0H): "Arcnet Boot Ist Nicht Im System"; French at row 6, column 0 (offset 0180H): "Boot Arcnet Absent Du Système ".
02B7-02B8
DEFW 04EBH EB 04
Error 1 message, English line: the address of the text "Arcnet " at 04EBH.
02B9-02BA
DEFW 04F3H F3 04
Error 1 message, English line: the address of the text "Boot " at 04F3H.
02BB-02BC
DEFW 04F9H F9 04
Error 1 message, English line: the address of the text "Is Not " at 04F9H.
02BD-02BE
DEFW 0501H 01 05
Error 1 message, English line: the address of the text "Available " at 0501H.
02BF-02C0
DEFW FFFEH FE FF
Error 1 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
02C1-02C2
DEFW 00C0H C0 00
Error 1 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
02C3-02C4
DEFW 04EBH EB 04
Error 1 message, German line: the address of the text "Arcnet " at 04EBH.
02C5-02C6
DEFW 04F3H F3 04
Error 1 message, German line: the address of the text "Boot " at 04F3H.
02C7-02C8
DEFW 05E6H E6 05
Error 1 message, German line: the address of the text "Ist Nicht " at 05E6H.
02C9-02CA
DEFW 06F0H F0 06
Error 1 message, German line: the address of the text "Im System" at 06F0H.
02CB-02CC
DEFW FFFEH FE FF
Error 1 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
02CD-02CE
DEFW 0180H 80 01
Error 1 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
02CF-02D0
DEFW 04F3H F3 04
Error 1 message, French line: the address of the text "Boot " at 04F3H.
02D1-02D2
DEFW 04EBH EB 04
Error 1 message, French line: the address of the text "Arcnet " at 04EBH.
02D3-02D4
DEFW 0700H 00 07
Error 1 message, French line: the address of the text "Absent" at 0700H.
02D5-02D6
DEFW 0708H 08 07
Error 1 message, French line: the address of the text " Du " at 0708H, the last 4 characters of the text "e Du " at 0707H.
02D7-02D8
DEFW 071DH 1D 07
Error 1 message, French line: the address of the text "Système " at 071DH.
02D9-02DA
DEFW FFFFH FF FF
Error 1 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
02DBH - Message List: Error 2
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "ROM Image Can't Be Loaded - Too Many Extents"; German at row 3, column 0 (offset 00C0H): "ROM Image Kann Nicht Geladen Werden - Zu Viele Bereiche"; French at row 6, column 0 (offset 0180H): "Image ROM Non Chargeable - Segments Trop Numbreux".
02DB-02DC
DEFW 04C5H C5 04
Error 2 message, English line: the address of the text "ROM Image " at 04C5H.
02DD-02DE
DEFW 050CH 0C 05
Error 2 message, English line: the address of the text "Can't Be Loaded - " at 050CH.
02DF-02E0
DEFW 051FH 1F 05
Error 2 message, English line: the address of the text "Too Many Extents" at 051FH.
02E1-02E2
DEFW FFFEH FE FF
Error 2 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
02E3-02E4
DEFW 00C0H C0 00
Error 2 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
02E5-02E6
DEFW 04C5H C5 04
Error 2 message, German line: the address of the text "ROM Image " at 04C5H.
02E7-02E8
DEFW 0613H 13 06
Error 2 message, German line: the address of the text "Kann " at 0613H.
02E9-02EA
DEFW 05EAH EA 05
Error 2 message, German line: the address of the text "Nicht " at 05EAH, the last 6 characters of the text "Ist Nicht " at 05E6H.
02EB-02EC
DEFW 061DH 1D 06
Error 2 message, German line: the address of the text "Geladen " at 061DH, the last 8 characters of the text "Ist Geladen " at 0619H.
02ED-02EE
DEFW 0653H 53 06
Error 2 message, German line: the address of the text "Werden " at 0653H.
02EF-02F0
DEFW 051CH 1C 05
Error 2 message, German line: the address of the text "- " at 051CH, the last 2 characters of the text "Can't Be Loaded - " at 050CH.
02F1-02F2
DEFW 065BH 5B 06
Error 2 message, German line: the address of the text "Zu Viele Bereiche" at 065BH.
02F3-02F4
DEFW FFFEH FE FF
Error 2 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
02F5-02F6
DEFW 0180H 80 01
Error 2 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
02F7-02F8
DEFW 04C9H C9 04
Error 2 message, French line: the address of the text "Image " at 04C9H, the last 6 characters of the text "ROM Image " at 04C5H.
02F9-02FA
DEFW 07DDH DD 07
Error 2 message, French line: the address of the text "ROM " at 07DDH, the last 4 characters of the text "Du ROM " at 07DAH.
02FB-02FC
DEFW 0726H 26 07
Error 2 message, French line: the address of the text "Non Chargeable " at 0726H.
02FD-02FE
DEFW 051CH 1C 05
Error 2 message, French line: the address of the text "- " at 051CH, the last 2 characters of the text "Can't Be Loaded - " at 050CH.
02FF-0300
DEFW 0736H 36 07
Error 2 message, French line: the address of the text "Segments Trop Numbreux" at 0736H.
0301-0302
DEFW FFFFH FF FF
Error 2 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
0303H - Message List: Error 3
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "The Hard Disk Drive Is Not Ready "; German at row 3, column 0 (offset 00C0H): "Die Festplatte Ist Nicht Bereit "; French at row 6, column 0 (offset 0180H): "Unité Disque-Dur Non Prête ".
0303-0304
DEFW 04B7H B7 04
Error 3 message, English line: the address of the text "The " at 04B7H.
0305-0306
DEFW 0538H 38 05
Error 3 message, English line: the address of the text "Hard Disk " at 0538H.
0307-0308
DEFW 04E2H E2 04
Error 3 message, English line: the address of the text "Drive " at 04E2H, the last 6 characters of the text "Found On Drive " at 04D9H.
0309-030A
DEFW 04F9H F9 04
Error 3 message, English line: the address of the text "Is Not " at 04F9H.
030B-030C
DEFW 0550H 50 05
Error 3 message, English line: the address of the text "Ready " at 0550H, the last 6 characters of the text "When You Are Ready " at 0543H.
030D-030E
DEFW FFFEH FE FF
Error 3 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
030F-0310
DEFW 00C0H C0 00
Error 3 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
0311-0312
DEFW 0643H 43 06
Error 3 message, German line: the address of the text "Die Festplatte " at 0643H.
0313-0314
DEFW 05E6H E6 05
Error 3 message, German line: the address of the text "Ist Nicht " at 05E6H.
0315-0316
DEFW 066DH 6D 06
Error 3 message, German line: the address of the text "Bereit " at 066DH.
0317-0318
DEFW FFFEH FE FF
Error 3 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0319-031A
DEFW 0180H 80 01
Error 3 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
031B-031C
DEFW 074DH 4D 07
Error 3 message, French line: the address of the text "Unité " at 074DH.
031D-031E
DEFW 0771H 71 07
Error 3 message, French line: the address of the text "Disque" at 0771H, the last 6 characters of the text "Ou Utilisez Une Autre Disque" at 075BH.
031F-0320
DEFW 0781H 81 07
Error 3 message, French line: the address of the text "-Dur " at 0781H.
0321-0322
DEFW 0787H 87 07
Error 3 message, French line: the address of the text "Non Prête " at 0787H.
0323-0324
DEFW FFFFH FF FF
Error 3 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
0325H - Message List: Error 4
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "The Floppy Disk Drive Is Not Ready "; German at row 3, column 0 (offset 00C0H): "Disketten-Laufwerk Nicht Bereit "; French at row 6, column 0 (offset 0180H): "Unité Disque-Souple Non Prête ".
0325-0326
DEFW 04B7H B7 04
Error 4 message, English line: the address of the text "The " at 04B7H.
0327-0328
DEFW 0530H 30 05
Error 4 message, English line: the address of the text "Floppy " at 0530H.
0329-032A
DEFW 053DH 3D 05
Error 4 message, English line: the address of the text "Disk " at 053DH, the last 5 characters of the text "Hard Disk " at 0538H.
032B-032C
DEFW 04E2H E2 04
Error 4 message, English line: the address of the text "Drive " at 04E2H, the last 6 characters of the text "Found On Drive " at 04D9H.
032D-032E
DEFW 04F9H F9 04
Error 4 message, English line: the address of the text "Is Not " at 04F9H.
032F-0330
DEFW 0550H 50 05
Error 4 message, English line: the address of the text "Ready " at 0550H, the last 6 characters of the text "When You Are Ready " at 0543H.
0331-0332
DEFW FFFEH FE FF
Error 4 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0333-0334
DEFW 00C0H C0 00
Error 4 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
0335-0336
DEFW 05FFH FF 05
Error 4 message, German line: the address of the text "Disketten-Laufwerk " at 05FFH.
0337-0338
DEFW 05EAH EA 05
Error 4 message, German line: the address of the text "Nicht " at 05EAH, the last 6 characters of the text "Ist Nicht " at 05E6H.
0339-033A
DEFW 066DH 6D 06
Error 4 message, German line: the address of the text "Bereit " at 066DH.
033B-033C
DEFW FFFEH FE FF
Error 4 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
033D-033E
DEFW 0180H 80 01
Error 4 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
033F-0340
DEFW 074DH 4D 07
Error 4 message, French line: the address of the text "Unité " at 074DH.
0341-0342
DEFW 0771H 71 07
Error 4 message, French line: the address of the text "Disque" at 0771H, the last 6 characters of the text "Ou Utilisez Une Autre Disque" at 075BH.
0343-0344
DEFW 0778H 78 07
Error 4 message, French line: the address of the text "-Souple " at 0778H.
0345-0346
DEFW 0787H 87 07
Error 4 message, French line: the address of the text "Non Prête " at 0787H.
0347-0348
DEFW FFFFH FF FF
Error 4 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
0349H - Message List: Error 5
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "The Hard Disk Drive Is Not Available "; German at row 3, column 0 (offset 00C0H): "Die Festplatte Ist Nicht Im System"; French at row 6, column 0 (offset 0180H): "Unité Disque-Dur Absent Du Système ".
0349-034A
DEFW 04B7H B7 04
Error 5 message, English line: the address of the text "The " at 04B7H.
034B-034C
DEFW 0538H 38 05
Error 5 message, English line: the address of the text "Hard Disk " at 0538H.
034D-034E
DEFW 04E2H E2 04
Error 5 message, English line: the address of the text "Drive " at 04E2H, the last 6 characters of the text "Found On Drive " at 04D9H.
034F-0350
DEFW 04F9H F9 04
Error 5 message, English line: the address of the text "Is Not " at 04F9H.
0351-0352
DEFW 0501H 01 05
Error 5 message, English line: the address of the text "Available " at 0501H.
0353-0354
DEFW FFFEH FE FF
Error 5 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0355-0356
DEFW 00C0H C0 00
Error 5 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
0357-0358
DEFW 0643H 43 06
Error 5 message, German line: the address of the text "Die Festplatte " at 0643H.
0359-035A
DEFW 05E6H E6 05
Error 5 message, German line: the address of the text "Ist Nicht " at 05E6H.
035B-035C
DEFW 06F0H F0 06
Error 5 message, German line: the address of the text "Im System" at 06F0H.
035D-035E
DEFW FFFEH FE FF
Error 5 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
035F-0360
DEFW 0180H 80 01
Error 5 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
0361-0362
DEFW 074DH 4D 07
Error 5 message, French line: the address of the text "Unité " at 074DH.
0363-0364
DEFW 0771H 71 07
Error 5 message, French line: the address of the text "Disque" at 0771H, the last 6 characters of the text "Ou Utilisez Une Autre Disque" at 075BH.
0365-0366
DEFW 0781H 81 07
Error 5 message, French line: the address of the text "-Dur " at 0781H.
0367-0368
DEFW 0700H 00 07
Error 5 message, French line: the address of the text "Absent" at 0700H.
0369-036A
DEFW 0708H 08 07
Error 5 message, French line: the address of the text " Du " at 0708H, the last 4 characters of the text "e Du " at 0707H.
036B-036C
DEFW 071DH 1D 07
Error 5 message, French line: the address of the text "Système " at 071DH.
036D-036E
DEFW FFFFH FF FF
Error 5 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
036FH - Message List: Error 6
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "The Floppy Disk Drive Is Not Available "; German at row 3, column 0 (offset 00C0H): "Disketten-Laufwerk Ist Nicht Im System"; French at row 6, column 0 (offset 0180H): "Unité Disque-Souple Absent Du Système ".
036F-0370
DEFW 04B7H B7 04
Error 6 message, English line: the address of the text "The " at 04B7H.
0371-0372
DEFW 0530H 30 05
Error 6 message, English line: the address of the text "Floppy " at 0530H.
0373-0374
DEFW 053DH 3D 05
Error 6 message, English line: the address of the text "Disk " at 053DH, the last 5 characters of the text "Hard Disk " at 0538H.
0375-0376
DEFW 04E2H E2 04
Error 6 message, English line: the address of the text "Drive " at 04E2H, the last 6 characters of the text "Found On Drive " at 04D9H.
0377-0378
DEFW 04F9H F9 04
Error 6 message, English line: the address of the text "Is Not " at 04F9H.
0379-037A
DEFW 0501H 01 05
Error 6 message, English line: the address of the text "Available " at 0501H.
037B-037C
DEFW FFFEH FE FF
Error 6 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
037D-037E
DEFW 00C0H C0 00
Error 6 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
037F-0380
DEFW 05FFH FF 05
Error 6 message, German line: the address of the text "Disketten-Laufwerk " at 05FFH.
0381-0382
DEFW 05E6H E6 05
Error 6 message, German line: the address of the text "Ist Nicht " at 05E6H.
0383-0384
DEFW 06F0H F0 06
Error 6 message, German line: the address of the text "Im System" at 06F0H.
0385-0386
DEFW FFFEH FE FF
Error 6 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0387-0388
DEFW 0180H 80 01
Error 6 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
0389-038A
DEFW 074DH 4D 07
Error 6 message, French line: the address of the text "Unité " at 074DH.
038B-038C
DEFW 0771H 71 07
Error 6 message, French line: the address of the text "Disque" at 0771H, the last 6 characters of the text "Ou Utilisez Une Autre Disque" at 075BH.
038D-038E
DEFW 0778H 78 07
Error 6 message, French line: the address of the text "-Souple " at 0778H.
038F-0390
DEFW 0700H 00 07
Error 6 message, French line: the address of the text "Absent" at 0700H.
0391-0392
DEFW 0708H 08 07
Error 6 message, French line: the address of the text " Du " at 0708H, the last 4 characters of the text "e Du " at 0707H.
0393-0394
DEFW 071DH 1D 07
Error 6 message, French line: the address of the text "Système " at 071DH.
0395-0396
DEFW FFFFH FF FF
Error 6 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
0397H - Message List: Error 7
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "Close The Floppy Drive Door And Try Again "; German at row 3, column 0 (offset 00C0H): "Disketten-Laufwerk Schließen Und Erneut Starten"; French at row 6, column 0 (offset 0180H): "Fermez Porte d'Unité Et Réessayez ".
0397-0398
DEFW 0557H 57 05
Error 7 message, English line: the address of the text "Close " at 0557H.
0399-039A
DEFW 04B7H B7 04
Error 7 message, English line: the address of the text "The " at 04B7H.
039B-039C
DEFW 0530H 30 05
Error 7 message, English line: the address of the text "Floppy " at 0530H.
039D-039E
DEFW 04E2H E2 04
Error 7 message, English line: the address of the text "Drive " at 04E2H, the last 6 characters of the text "Found On Drive " at 04D9H.
039F-03A0
DEFW 055EH 5E 05
Error 7 message, English line: the address of the text "Door And Try Again " at 055EH.
03A1-03A2
DEFW FFFEH FE FF
Error 7 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
03A3-03A4
DEFW 00C0H C0 00
Error 7 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
03A5-03A6
DEFW 05FFH FF 05
Error 7 message, German line: the address of the text "Disketten-Laufwerk " at 05FFH.
03A7-03A8
DEFW 0675H 75 06
Error 7 message, German line: the address of the text "Schließen Und Erneut Starten" at 0675H.
03A9-03AA
DEFW FFFEH FE FF
Error 7 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
03AB-03AC
DEFW 0180H 80 01
Error 7 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
03AD-03AE
DEFW 0792H 92 07
Error 7 message, French line: the address of the text "Fermez Porte d'Unité Et Réessayez " at 0792H.
03AF-03B0
DEFW FFFFH FF FF
Error 7 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
03B1H - Message List: Error 8
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "CRC Error, Try Again Or Use Another Disk "; German at row 3, column 0 (offset 00C0H): "CRC Fehler, Neu Starten Oder Eine Andere Platte Benutzen"; French at row 6, column 0 (offset 0180H): "Erreur CRC, Réessayez Ou Utilisez Une Autre Disque".
03B1-03B2
DEFW 057DH 7D 05
Error 8 message, English line: the address of the text "CRC " at 057DH.
03B3-03B4
DEFW 0587H 87 05
Error 8 message, English line: the address of the text "Error" at 0587H, the last 5 characters of the text "Seek Error" at 0582H.
03B5-03B6
DEFW 058DH 8D 05
Error 8 message, English line: the address of the text ", " at 058DH.
03B7-03B8
DEFW 0567H 67 05
Error 8 message, English line: the address of the text "Try Again " at 0567H, the last 10 characters of the text "Door And Try Again " at 055EH.
03B9-03BA
DEFW 0590H 90 05
Error 8 message, English line: the address of the text "Or Use Another " at 0590H.
03BB-03BC
DEFW 053DH 3D 05
Error 8 message, English line: the address of the text "Disk " at 053DH, the last 5 characters of the text "Hard Disk " at 0538H.
03BD-03BE
DEFW FFFEH FE FF
Error 8 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
03BF-03C0
DEFW 00C0H C0 00
Error 8 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
03C1-03C2
DEFW 057DH 7D 05
Error 8 message, German line: the address of the text "CRC " at 057DH.
03C3-03C4
DEFW 0698H 98 06
Error 8 message, German line: the address of the text "Fehler, " at 0698H.
03C5-03C6
DEFW 06A1H A1 06
Error 8 message, German line: the address of the text "Neu Starten Oder Eine Andere Platte Benutzen" at 06A1H.
03C7-03C8
DEFW FFFEH FE FF
Error 8 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
03C9-03CA
DEFW 0180H 80 01
Error 8 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
03CB-03CC
DEFW 07BBH BB 07
Error 8 message, French line: the address of the text "Erreur " at 07BBH.
03CD-03CE
DEFW 07B5H B5 07
Error 8 message, French line: the address of the text "CRC, " at 07B5H.
03CF-03D0
DEFW 07AAH AA 07
Error 8 message, French line: the address of the text "Réessayez " at 07AAH, the last 10 characters of the text "Fermez Porte d'Unité Et Réessayez " at 0792H.
03D1-03D2
DEFW 075BH 5B 07
Error 8 message, French line: the address of the text "Ou Utilisez Une Autre Disque" at 075BH.
03D3-03D4
DEFW FFFFH FF FF
Error 8 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
03D5H - Message List: Error 9
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "Seek Error, Try Again Or Use Another Disk "; German at row 3, column 0 (offset 00C0H): "Such Fehler, Neu Starten Oder Eine Andere Platte Benutzen"; French at row 6, column 0 (offset 0180H): "Erreur De Chercher, Réessayez Ou Utilisez Une Autre Disque".
03D5-03D6
DEFW 0582H 82 05
Error 9 message, English line: the address of the text "Seek Error" at 0582H.
03D7-03D8
DEFW 058DH 8D 05
Error 9 message, English line: the address of the text ", " at 058DH.
03D9-03DA
DEFW 0567H 67 05
Error 9 message, English line: the address of the text "Try Again " at 0567H, the last 10 characters of the text "Door And Try Again " at 055EH.
03DB-03DC
DEFW 0590H 90 05
Error 9 message, English line: the address of the text "Or Use Another " at 0590H.
03DD-03DE
DEFW 053DH 3D 05
Error 9 message, English line: the address of the text "Disk " at 053DH, the last 5 characters of the text "Hard Disk " at 0538H.
03DF-03E0
DEFW FFFEH FE FF
Error 9 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
03E1-03E2
DEFW 00C0H C0 00
Error 9 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
03E3-03E4
DEFW 06FAH FA 06
Error 9 message, German line: the address of the text "Such " at 06FAH.
03E5-03E6
DEFW 0698H 98 06
Error 9 message, German line: the address of the text "Fehler, " at 0698H.
03E7-03E8
DEFW 06A1H A1 06
Error 9 message, German line: the address of the text "Neu Starten Oder Eine Andere Platte Benutzen" at 06A1H.
03E9-03EA
DEFW FFFEH FE FF
Error 9 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
03EB-03EC
DEFW 0180H 80 01
Error 9 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
03ED-03EE
DEFW 07BBH BB 07
Error 9 message, French line: the address of the text "Erreur " at 07BBH.
03EF-03F0
DEFW 07C3H C3 07
Error 9 message, French line: the address of the text "De Chercher, " at 07C3H.
03F1-03F2
DEFW 07AAH AA 07
Error 9 message, French line: the address of the text "Réessayez " at 07AAH, the last 10 characters of the text "Fermez Porte d'Unité Et Réessayez " at 0792H.
03F3-03F4
DEFW 075BH 5B 07
Error 9 message, French line: the address of the text "Ou Utilisez Une Autre Disque" at 075BH.
03F5-03F6
DEFW FFFFH FF FF
Error 9 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
03F7H - Message List: Error 10
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "The ROM Image Can't Be Loaded - Floppy Disk Drive Is Not Ready "; German at row 3, column 0 (offset 00C0H): "ROM Image Kann Nicht Geladen Werden - Disketten-Laufwerk "; German at row 4, column 0 (offset 0100H): "Ist Nicht Bereit "; French at row 6, column 0 (offset 0180H): "Image ROM Non Chargeable - Unité Disque-Souple Non Prête ".
03F7-03F8
DEFW 04B7H B7 04
Error 10 message, English line: the address of the text "The " at 04B7H.
03F9-03FA
DEFW 04C5H C5 04
Error 10 message, English line: the address of the text "ROM Image " at 04C5H.
03FB-03FC
DEFW 050CH 0C 05
Error 10 message, English line: the address of the text "Can't Be Loaded - " at 050CH.
03FD-03FE
DEFW 0530H 30 05
Error 10 message, English line: the address of the text "Floppy " at 0530H.
03FF-0400
DEFW 053DH 3D 05
Error 10 message, English line: the address of the text "Disk " at 053DH, the last 5 characters of the text "Hard Disk " at 0538H.
0401-0402
DEFW 04E2H E2 04
Error 10 message, English line: the address of the text "Drive " at 04E2H, the last 6 characters of the text "Found On Drive " at 04D9H.
0403-0404
DEFW 04F9H F9 04
Error 10 message, English line: the address of the text "Is Not " at 04F9H.
0405-0406
DEFW 0550H 50 05
Error 10 message, English line: the address of the text "Ready " at 0550H, the last 6 characters of the text "When You Are Ready " at 0543H.
0407-0408
DEFW FFFEH FE FF
Error 10 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0409-040A
DEFW 00C0H C0 00
Error 10 message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
040B-040C
DEFW 04C5H C5 04
Error 10 message, German line: the address of the text "ROM Image " at 04C5H.
040D-040E
DEFW 0613H 13 06
Error 10 message, German line: the address of the text "Kann " at 0613H.
040F-0410
DEFW 05EAH EA 05
Error 10 message, German line: the address of the text "Nicht " at 05EAH, the last 6 characters of the text "Ist Nicht " at 05E6H.
0411-0412
DEFW 061DH 1D 06
Error 10 message, German line: the address of the text "Geladen " at 061DH, the last 8 characters of the text "Ist Geladen " at 0619H.
0413-0414
DEFW 0653H 53 06
Error 10 message, German line: the address of the text "Werden " at 0653H.
0415-0416
DEFW 051CH 1C 05
Error 10 message, German line: the address of the text "- " at 051CH, the last 2 characters of the text "Can't Be Loaded - " at 050CH.
0417-0418
DEFW 05FFH FF 05
Error 10 message, German line: the address of the text "Disketten-Laufwerk " at 05FFH.
0419-041A
DEFW FFFEH FE FF
Error 10 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
041B-041C
DEFW 0100H 00 01
Error 10 message, German line: screen offset 0100H, row 4, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D00H).
041D-041E
DEFW 05E6H E6 05
Error 10 message, German line: the address of the text "Ist Nicht " at 05E6H.
041F-0420
DEFW 066DH 6D 06
Error 10 message, German line: the address of the text "Bereit " at 066DH.
0421-0422
DEFW FFFEH FE FF
Error 10 message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0423-0424
DEFW 0180H 80 01
Error 10 message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
0425-0426
DEFW 04C9H C9 04
Error 10 message, French line: the address of the text "Image " at 04C9H, the last 6 characters of the text "ROM Image " at 04C5H.
0427-0428
DEFW 07DDH DD 07
Error 10 message, French line: the address of the text "ROM " at 07DDH, the last 4 characters of the text "Du ROM " at 07DAH.
0429-042A
DEFW 0726H 26 07
Error 10 message, French line: the address of the text "Non Chargeable " at 0726H.
042B-042C
DEFW 051CH 1C 05
Error 10 message, French line: the address of the text "- " at 051CH, the last 2 characters of the text "Can't Be Loaded - " at 050CH.
042D-042E
DEFW 074DH 4D 07
Error 10 message, French line: the address of the text "Unité " at 074DH.
042F-0430
DEFW 0771H 71 07
Error 10 message, French line: the address of the text "Disque" at 0771H, the last 6 characters of the text "Ou Utilisez Une Autre Disque" at 075BH.
0431-0432
DEFW 0778H 78 07
Error 10 message, French line: the address of the text "-Souple " at 0778H.
0433-0434
DEFW 0787H 87 07
Error 10 message, French line: the address of the text "Non Prête " at 0787H.
0435-0436
DEFW FFFFH FF FF
Error 10 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
0437H - Message List: Error 11
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "Lost Data Error".
0437-0438
DEFW 0572H 72 05
Error 11 message, English line: the address of the text "Lost Data " at 0572H.
0439-043A
DEFW 0587H 87 05
Error 11 message, English line: the address of the text "Error" at 0587H, the last 5 characters of the text "Seek Error" at 0582H.
043B-043C
DEFW FFFFH FF FF
Error 11 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
043DH - Message List: Error 12
The routine at 0151H shows it with Register Pair DE = 0000H and the Z FLAG set, then halts. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "ID Error".
043D-043E
DEFW 05E2H E2 05
Error 12 message, English line: the address of the text "ID " at 05E2H.
043F-0440
DEFW 0587H 87 05
Error 12 message, English line: the address of the text "Error" at 0587H, the last 5 characters of the text "Seek Error" at 0582H.
0441-0442
DEFW FFFFH FF FF
Error 12 message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
0443H - ROM Image Loaded Message
The routine at 01ABH shows it (with the P key held at reset) after the ROM image is loaded; its first word is the screen position, since the flags are NZ when RST 18H is called. Lines: English at row 0, column 0 (offset 0000H): "The ROM Image Has Been Loaded - Switch Disks And "; English at row 1, column 0 (offset 0040H): "Press <Enter> Or <Break> When You Are Ready "; German at row 3, column 0 (offset 00C0H): "ROM Image Ist Geladen - Disketten Wechseln Und Dann <Enter> "; German at row 4, column 0 (offset 0100H): "Oder <Break> Drücken "; French at row 6, column 0 (offset 0180H): "l'Image Du ROM Chargée - Changez De Disque Et Appuyez Sur "; French at row 7, column 0 (offset 01C0H): "<Enter> Ou <Break> Pour Continuer".
0443-0444
DEFW 0000H 00 00
ROM image loaded message, English line: screen offset 0000H, row 0, column 0, where the message starts (0249H ORs 3CH into the high byte, so the text goes to video RAM 3C00H).
0445-0446
DEFW 04B7H B7 04
ROM image loaded message, English line: the address of the text "The " at 04B7H.
0447-0448
DEFW 04C5H C5 04
ROM image loaded message, English line: the address of the text "ROM Image " at 04C5H.
0449-044A
DEFW 05A0H A0 05
ROM image loaded message, English line: the address of the text "Has Been" at 05A0H.
044B-044C
DEFW 0514H 14 05
ROM image loaded message, English line: the address of the text " Loaded - " at 0514H, the last 10 characters of the text "Can't Be Loaded - " at 050CH.
044D-044E
DEFW 05A9H A9 05
ROM image loaded message, English line: the address of the text "Switch Disks And " at 05A9H.
044F-0450
DEFW FFFEH FE FF
ROM image loaded message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0451-0452
DEFW 0040H 40 00
ROM image loaded message, English line: screen offset 0040H, row 1, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3C40H).
0453-0454
DEFW 05C7H C7 05
ROM image loaded message, English line: the address of the text "Press <Enter> " at 05C7H.
0455-0456
DEFW 05D6H D6 05
ROM image loaded message, English line: the address of the text "Or <Break> " at 05D6H.
0457-0458
DEFW 0543H 43 05
ROM image loaded message, English line: the address of the text "When You Are Ready " at 0543H.
0459-045A
DEFW FFFEH FE FF
ROM image loaded message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
045B-045C
DEFW 00C0H C0 00
ROM image loaded message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
045D-045E
DEFW 04C5H C5 04
ROM image loaded message, German line: the address of the text "ROM Image " at 04C5H.
045F-0460
DEFW 0619H 19 06
ROM image loaded message, German line: the address of the text "Ist Geladen " at 0619H.
0461-0462
DEFW 051CH 1C 05
ROM image loaded message, German line: the address of the text "- " at 051CH, the last 2 characters of the text "Can't Be Loaded - " at 050CH.
0463-0464
DEFW 0626H 26 06
ROM image loaded message, German line: the address of the text "Disketten Wechseln Und Dann " at 0626H.
0465-0466
DEFW 05CDH CD 05
ROM image loaded message, German line: the address of the text "<Enter> " at 05CDH, the last 8 characters of the text "Press <Enter> " at 05C7H.
0467-0468
DEFW FFFEH FE FF
ROM image loaded message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0469-046A
DEFW 0100H 00 01
ROM image loaded message, German line: screen offset 0100H, row 4, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D00H).
046B-046C
DEFW 06D7H D7 06
ROM image loaded message, German line: the address of the text "Oder " at 06D7H.
046D-046E
DEFW 05D9H D9 05
ROM image loaded message, German line: the address of the text "<Break> " at 05D9H, the last 8 characters of the text "Or <Break> " at 05D6H.
046F-0470
DEFW 06CEH CE 06
ROM image loaded message, German line: the address of the text "Drücken " at 06CEH.
0471-0472
DEFW FFFEH FE FF
ROM image loaded message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0473-0474
DEFW 0180H 80 01
ROM image loaded message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
0475-0476
DEFW 07D1H D1 07
ROM image loaded message, French line: the address of the text "l'Image " at 07D1H.
0477-0478
DEFW 07DAH DA 07
ROM image loaded message, French line: the address of the text "Du ROM " at 07DAH.
0479-047A
DEFW 07E2H E2 07
ROM image loaded message, French line: the address of the text "Chargée " at 07E2H.
047B-047C
DEFW 051CH 1C 05
ROM image loaded message, French line: the address of the text "- " at 051CH, the last 2 characters of the text "Can't Be Loaded - " at 050CH.
047D-047E
DEFW 07EBH EB 07
ROM image loaded message, French line: the address of the text "Changez De " at 07EBH.
047F-0480
DEFW 0771H 71 07
ROM image loaded message, French line: the address of the text "Disque" at 0771H, the last 6 characters of the text "Ou Utilisez Une Autre Disque" at 075BH.
0481-0482
DEFW 07F7H F7 07
ROM image loaded message, French line: the address of the text " Et Appuyez Sur " at 07F7H.
0483-0484
DEFW FFFEH FE FF
ROM image loaded message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
0485-0486
DEFW 01C0H C0 01
ROM image loaded message, French line: screen offset 01C0H, row 7, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3DC0H).
0487-0488
DEFW 05CDH CD 05
ROM image loaded message, French line: the address of the text "<Enter> " at 05CDH, the last 8 characters of the text "Press <Enter> " at 05C7H.
0489-048A
DEFW 0808H 08 08
ROM image loaded message, French line: the address of the text "Ou " at 0808H.
048B-048C
DEFW 05D9H D9 05
ROM image loaded message, French line: the address of the text "<Break> " at 05D9H, the last 8 characters of the text "Or <Break> " at 05D6H.
048D-048E
DEFW 080CH 0C 08
ROM image loaded message, French line: the address of the text "Pour Continuer" at 080CH.
048F-0490
DEFW FFFFH FF FF
ROM image loaded message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
0491H - Loading ROM Image Message
The routine at 018DH shows it while the ROM image is read from the floppy disk; RST 18H is called with the Z FLAG set and Register Pair DE = 0000H. Lines: English at row 0, column 0 (the caller sets Register Pair DE to 0000H): "Loading ROM Image - Please Wait"; German at row 3, column 0 (offset 00C0H): "ROM Image Wird Geladen - Bitte Warten"; French at row 6, column 0 (offset 0180H): "Chargement De l'Image ROM - Veuillez Patienter ".
0491-0492
DEFW 04BCH BC 04
Loading message, English line: the address of the text "Loading " at 04BCH. In version 1(15) this word is 04BAH, the single text Loading ROM Image, and the word at 0493H is not there.
0493-0494
DEFW 04C5H C5 04
Loading message, English line: the address of the text "ROM Image " at 04C5H. Version 1(15) has no such word: its text at 0491H already ends with ROM Image. From here to 04C3H every address is 2 higher than in 1(15), from 04C4H on 3 higher.
0495-0496
DEFW 051CH 1C 05
Loading message, English line: the address of the text "- " at 051CH, the last 2 characters of the text "Can't Be Loaded - " at 050CH.
0497-0498
DEFW 05BBH BB 05
Loading message, English line: the address of the text "Please Wait" at 05BBH.
0499-049A
DEFW FFFEH FE FF
Loading message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
049B-049C
DEFW 00C0H C0 00
Loading message, German line: screen offset 00C0H, row 3, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3CC0H).
049D-049E
DEFW 04C5H C5 04
Loading message, German line: the address of the text "ROM Image " at 04C5H.
049F-04A0
DEFW 06DDH DD 06
Loading message, German line: the address of the text "Wird " at 06DDH.
04A1-04A2
DEFW 061DH 1D 06
Loading message, German line: the address of the text "Geladen " at 061DH, the last 8 characters of the text "Ist Geladen " at 0619H.
04A3-04A4
DEFW 051CH 1C 05
Loading message, German line: the address of the text "- " at 051CH, the last 2 characters of the text "Can't Be Loaded - " at 050CH.
04A5-04A6
DEFW 06E3H E3 06
Loading message, German line: the address of the text "Bitte Warten" at 06E3H.
04A7-04A8
DEFW FFFEH FE FF
Loading message: FFFEH, the marker at 026CH-026EH that makes RST 18H load the next word into Register Pair DE as a new screen position.
04A9-04AA
DEFW 0180H 80 01
Loading message, French line: screen offset 0180H, row 6, column 0 (0249H ORs 3CH into the high byte, so the line starts at video RAM 3D80H).
04AB-04AC
DEFW 081BH 1B 08
Loading message, French line: the address of the text "Chargement De " at 081BH.
04AD-04AE
DEFW 07D1H D1 07
Loading message, French line: the address of the text "l'Image " at 07D1H.
04AF-04B0
DEFW 07DDH DD 07
Loading message, French line: the address of the text "ROM " at 07DDH, the last 4 characters of the text "Du ROM " at 07DAH.
04B1-04B2
DEFW 051CH 1C 05
Loading message, French line: the address of the text "- " at 051CH, the last 2 characters of the text "Can't Be Loaded - " at 050CH.
04B3-04B4
DEFW 082AH 2A 08
Loading message, French line: the address of the text "Veuillez Patienter " at 082AH.
04B5-04B6
DEFW FFFFH FF FF
Loading message: FFFFH, the end of the list. The test at 0266H-0268H returns when it reads this word.
04B7H - Message Texts
The texts the message lists point to, each ended by a 00H byte. A list may point into the middle of a text to use its last characters (04C9H is the Image of ROM Image). The German and French texts use five codes below 20H for accented letters: 03H for é, 04H for ß, 0AH for ü, 0CH for è and 12H for ê. The texts Durda (0692H) and Frank (0754H) are never pointed to; they spell the name Frank Durda, whose initials FDIV are the bytes at 0001H-0004H.
04B7-04BB
DEFM "The ",00H 54 68 65 20 00
The text "The " and its 00H terminator, 5 bytes at 04B7H-04BBH. Used whole by the messages of errors 0, 3, 4, 5, 6, 7 and 10 and the ROM image loaded message. In version 1(15) this text is at 04B5H.
04BC-04C4
DEFM "Loading ",00H 4C 6F 61 64 69 6E 67 20 00
The text "Loading " and its 00H terminator, 9 bytes at 04BCH-04C4H. Used whole by the loading message and the RS-232 boot at 0C7EH. In version 1(15) the text at this place is Loading ROM Image, one text at 04BAH-04CCH; 1(16) ends Loading with the 00H at 04C4H and makes ROM Image a text of its own, so the RS-232 boot (0C7EH) shows Loading alone.
04C5-04CF
DEFM "ROM Image ",00H 52 4F 4D 20 49 6D 61 67 65 20 00
The text "ROM Image " and its 00H terminator, 11 bytes at 04C5H-04CFH. Used whole by the messages of errors 0, 2 and 10, the loading message and the ROM image loaded message. Its last 6 characters, "Image ", from 04C9H: used by the messages of errors 0, 2 and 10. In version 1(15) ROM Image is the end of the text Loading ROM Image, at 04C2H.
04D0-04D8
DEFM "Was Not ",00H 57 61 73 20 4E 6F 74 20 00
The text "Was Not " and its 00H terminator, 9 bytes at 04D0H-04D8H. Used whole by the message of error 0. Its last 4 characters, "Not ", from 04D4H: used by the RS-232 Not Ready list at 0CD4H.
04D9-04E8
DEFM "Found On Drive ",00H 46 6F 75 6E 64 20 4F 6E 20 44 72 69 76 65 20 00
The text "Found On Drive " and its 00H terminator, 16 bytes at 04D9H-04E8H. Used whole by the message of error 0. Its last 6 characters, "Drive ", from 04E2H: used by the messages of errors 3, 4, 5, 6, 7 and 10.
04E9-04EA
DEFM "0",00H 30 00
The text "0" and its 00H terminator, 2 bytes at 04E9H-04EAH. Used whole by the message of error 0. It is the drive number in the English and German lines of error 0, which always name drive 0.
04EB-04F2
DEFM "Arcnet ",00H 41 72 63 6E 65 74 20 00
The text "Arcnet " and its 00H terminator, 8 bytes at 04EBH-04F2H. Used whole by the message of error 1.
04F3-04F8
DEFM "Boot ",00H 42 6F 6F 74 20 00
The text "Boot " and its 00H terminator, 6 bytes at 04F3H-04F8H. Used whole by the message of error 1.
04F9-0500
DEFM "Is Not ",00H 49 73 20 4E 6F 74 20 00
The text "Is Not " and its 00H terminator, 8 bytes at 04F9H-0500H. Used whole by the messages of errors 1, 3, 4, 5, 6 and 10.
0501-050B
DEFM "Available ",00H 41 76 61 69 6C 61 62 6C 65 20 00
The text "Available " and its 00H terminator, 11 bytes at 0501H-050BH. Used whole by the messages of errors 1, 5 and 6.
050C-051E
DEFM "Can't Be Loaded - ",00H 43 61 6E 27 74 20 42 65 20 4C 6F 61 64 65 64 20 2D 20 00
The text "Can't Be Loaded - " and its 00H terminator, 19 bytes at 050CH-051EH. Used whole by the messages of errors 2 and 10. Its last 10 characters, " Loaded - ", from 0514H: used by the ROM image loaded message. Its last 2 characters, "- ", from 051CH: used by the messages of errors 2 and 10, the loading message and the ROM image loaded message.
051F-052F
DEFM "Too Many Extents",00H 54 6F 6F 20 4D 61 6E 79 20 45 78 74 65 6E 74 73 00
The text "Too Many Extents" and its 00H terminator, 17 bytes at 051FH-052FH. Used whole by the message of error 2.
0530-0537
DEFM "Floppy ",00H 46 6C 6F 70 70 79 20 00
The text "Floppy " and its 00H terminator, 8 bytes at 0530H-0537H. Used whole by the messages of errors 4, 6, 7 and 10.
0538-0542
DEFM "Hard Disk ",00H 48 61 72 64 20 44 69 73 6B 20 00
The text "Hard Disk " and its 00H terminator, 11 bytes at 0538H-0542H. Used whole by the messages of errors 3 and 5. Its last 5 characters, "Disk ", from 053DH: used by the messages of errors 4, 6, 8, 9 and 10.
0543-0556
DEFM "When You Are Ready ",00H 57 68 65 6E 20 59 6F 75 20 41 72 65 20 52 65 61 64 79 20 00
The text "When You Are Ready " and its 00H terminator, 20 bytes at 0543H-0556H. Used whole by the ROM image loaded message. Its last 6 characters, "Ready ", from 0550H: used by the messages of errors 3, 4 and 10 and the RS-232 Not Ready list at 0CD4H.
0557-055D
DEFM "Close ",00H 43 6C 6F 73 65 20 00
The text "Close " and its 00H terminator, 7 bytes at 0557H-055DH. Used whole by the message of error 7.
055E-0571
DEFM "Door And Try Again ",00H 44 6F 6F 72 20 41 6E 64 20 54 72 79 20 41 67 61 69 6E 20 00
The text "Door And Try Again " and its 00H terminator, 20 bytes at 055EH-0571H. Used whole by the message of error 7. Its last 10 characters, "Try Again ", from 0567H: used by the messages of errors 8 and 9.
0572-057C
DEFM "Lost Data ",00H 4C 6F 73 74 20 44 61 74 61 20 00
The text "Lost Data " and its 00H terminator, 11 bytes at 0572H-057CH. Used whole by the message of error 11.
057D-0581
DEFM "CRC ",00H 43 52 43 20 00
The text "CRC " and its 00H terminator, 5 bytes at 057DH-0581H. Used whole by the message of error 8.
0582-058C
DEFM "Seek Error",00H 53 65 65 6B 20 45 72 72 6F 72 00
The text "Seek Error" and its 00H terminator, 11 bytes at 0582H-058CH. Used whole by the message of error 9. Its last 5 characters, "Error", from 0587H: used by the messages of errors 8, 11 and 12 and the RS-232 error list at 0CE8H and the RS-232 error report at 0C99H.
058D-058F
DEFM ", ",00H 2C 20 00
The text ", " and its 00H terminator, 3 bytes at 058DH-058FH. Used whole by the messages of errors 8 and 9 and the RS-232 error list at 0CE8H.
0590-059F
DEFM "Or Use Another ",00H 4F 72 20 55 73 65 20 41 6E 6F 74 68 65 72 20 00
The text "Or Use Another " and its 00H terminator, 16 bytes at 0590H-059FH. Used whole by the messages of errors 8 and 9.
05A0-05A8
DEFM "Has Been",00H 48 61 73 20 42 65 65 6E 00
The text "Has Been" and its 00H terminator, 9 bytes at 05A0H-05A8H. Used whole by the ROM image loaded message.
05A9-05BA
DEFM "Switch Disks And ",00H 53 77 69 74 63 68 20 44 69 73 6B 73 20 41 6E 64 20 00
The text "Switch Disks And " and its 00H terminator, 18 bytes at 05A9H-05BAH. Used whole by the ROM image loaded message.
05BB-05C6
DEFM "Please Wait",00H 50 6C 65 61 73 65 20 57 61 69 74 00
The text "Please Wait" and its 00H terminator, 12 bytes at 05BBH-05C6H. Used whole by the loading message.
05C7-05D5
DEFM "Press <Enter> ",00H 50 72 65 73 73 20 3C 45 6E 74 65 72 3E 20 00
The text "Press <Enter> " and its 00H terminator, 15 bytes at 05C7H-05D5H. Used whole by the ROM image loaded message. Its last 8 characters, "<Enter> ", from 05CDH: used by the ROM image loaded message.
05D6-05E1
DEFM "Or <Break> ",00H 4F 72 20 3C 42 72 65 61 6B 3E 20 00
The text "Or <Break> " and its 00H terminator, 12 bytes at 05D6H-05E1H. Used whole by the ROM image loaded message. Its last 8 characters, "<Break> ", from 05D9H: used by the ROM image loaded message.
05E2-05E5
DEFM "ID ",00H 49 44 20 00
The text "ID " and its 00H terminator, 4 bytes at 05E2H-05E5H. Used whole by the message of error 12.
05E6-05F0
DEFM "Ist Nicht ",00H 49 73 74 20 4E 69 63 68 74 20 00
The text "Ist Nicht " and its 00H terminator, 11 bytes at 05E6H-05F0H. Used whole by the messages of errors 1, 3, 5, 6 and 10. Its last 6 characters, "Nicht ", from 05EAH: used by the messages of errors 0, 2, 4 and 10.
05F1-05FE
DEFM "Gefunden Auf ",00H 47 65 66 75 6E 64 65 6E 20 41 75 66 20 00
The text "Gefunden Auf " and its 00H terminator, 14 bytes at 05F1H-05FEH. Used whole by the message of error 0.
05FF-0612
DEFM "Disketten-Laufwerk ",00H 44 69 73 6B 65 74 74 65 6E 2D 4C 61 75 66 77 65 72 6B 20 00
The text "Disketten-Laufwerk " and its 00H terminator, 20 bytes at 05FFH-0612H. Used whole by the messages of errors 4, 6, 7 and 10. Its last 9 characters, "Laufwerk ", from 0609H: used by the message of error 0.
0613-0618
DEFM "Kann ",00H 4B 61 6E 6E 20 00
The text "Kann " and its 00H terminator, 6 bytes at 0613H-0618H. Used whole by the messages of errors 2 and 10.
0619-0625
DEFM "Ist Geladen ",00H 49 73 74 20 47 65 6C 61 64 65 6E 20 00
The text "Ist Geladen " and its 00H terminator, 13 bytes at 0619H-0625H. Used whole by the ROM image loaded message. Its last 8 characters, "Geladen ", from 061DH: used by the messages of errors 2 and 10 and the loading message.
0626-0642
DEFM "Disketten Wechseln Und Dann ",00H 44 69 73 6B 65 74 74 65 6E 20 57 65 63 68 73 65 6C 6E 20 55 6E 64 20 44 61 6E 6E 20 00
The text "Disketten Wechseln Und Dann " and its 00H terminator, 29 bytes at 0626H-0642H. Used whole by the ROM image loaded message.
0643-0652
DEFM "Die Festplatte ",00H 44 69 65 20 46 65 73 74 70 6C 61 74 74 65 20 00
The text "Die Festplatte " and its 00H terminator, 16 bytes at 0643H-0652H. Used whole by the messages of errors 3 and 5.
0653-065A
DEFM "Werden ",00H 57 65 72 64 65 6E 20 00
The text "Werden " and its 00H terminator, 8 bytes at 0653H-065AH. Used whole by the messages of errors 2 and 10.
065B-066C
DEFM "Zu Viele Bereiche",00H 5A 75 20 56 69 65 6C 65 20 42 65 72 65 69 63 68 65 00
The text "Zu Viele Bereiche" and its 00H terminator, 18 bytes at 065BH-066CH. Used whole by the message of error 2.
066D-0674
DEFM "Bereit ",00H 42 65 72 65 69 74 20 00
The text "Bereit " and its 00H terminator, 8 bytes at 066DH-0674H. Used whole by the messages of errors 3, 4 and 10.
0675-0691
DEFM "Schlie",04H,"en Und Erneut Starten",00H 53 63 68 6C 69 65 04 65 6E 20 55 6E 64 20 45 72 6E 65 75 74 20 53 74 61 72 74 65 6E 00
The text "Schließen Und Erneut Starten" and its 00H terminator, 29 bytes at 0675H-0691H. Used whole by the message of error 7. 04H stands for ß.
0692-0697
DEFM "Durda",00H 44 75 72 64 61 00
The text "Durda" and its 00H terminator, 6 bytes at 0692H-0697H. No list and no instruction points to it; with the text at 0754H it spells the name Frank Durda, whose initials FDIV are the bytes at 0001H-0004H and, in lower case, 007BH-007EH.
0698-06A0
DEFM "Fehler, ",00H 46 65 68 6C 65 72 2C 20 00
The text "Fehler, " and its 00H terminator, 9 bytes at 0698H-06A0H. Used whole by the messages of errors 8 and 9.
06A1-06CD
DEFM "Neu Starten Oder Eine Andere Platte Benutzen",00H 4E 65 75 20 53 74 61 72 74 65 6E 20 4F 64 65 72 20 45 69 6E 65 20 41 6E 64 65 72 65 20 50 6C 61 74 74 65 20 42 65 6E 75 74 7A 65 6E 00
The text "Neu Starten Oder Eine Andere Platte Benutzen" and its 00H terminator, 45 bytes at 06A1H-06CDH. Used whole by the messages of errors 8 and 9.
06CE-06D6
DEFM "Dr",0AH,"cken ",00H 44 72 0A 63 6B 65 6E 20 00
The text "Drücken " and its 00H terminator, 9 bytes at 06CEH-06D6H. Used whole by the ROM image loaded message. 0AH stands for ü.
06D7-06DC
DEFM "Oder ",00H 4F 64 65 72 20 00
The text "Oder " and its 00H terminator, 6 bytes at 06D7H-06DCH. Used whole by the ROM image loaded message.
06DD-06E2
DEFM "Wird ",00H 57 69 72 64 20 00
The text "Wird " and its 00H terminator, 6 bytes at 06DDH-06E2H. Used whole by the loading message.
06E3-06EF
DEFM "Bitte Warten",00H 42 69 74 74 65 20 57 61 72 74 65 6E 00
The text "Bitte Warten" and its 00H terminator, 13 bytes at 06E3H-06EFH. Used whole by the loading message.
06F0-06F9
DEFM "Im System",00H 49 6D 20 53 79 73 74 65 6D 00
The text "Im System" and its 00H terminator, 10 bytes at 06F0H-06F9H. Used whole by the messages of errors 1, 5 and 6.
06FA-06FF
DEFM "Such ",00H 53 75 63 68 20 00
The text "Such " and its 00H terminator, 6 bytes at 06FAH-06FFH. Used whole by the message of error 9.
0700-0706
DEFM "Absent",00H 41 62 73 65 6E 74 00
The text "Absent" and its 00H terminator, 7 bytes at 0700H-0706H. Used whole by the messages of errors 0, 1, 5 and 6.
0707-070C
DEFM "e Du ",00H 65 20 44 75 20 00
The text "e Du " and its 00H terminator, 6 bytes at 0707H-070CH. Used whole by the message of error 0. Its last 4 characters, " Du ", from 0708H: used by the messages of errors 1, 5 and 6.
070D-071C
DEFM " Dans l'Unit",03H," 0",00H 20 44 61 6E 73 20 6C 27 55 6E 69 74 03 20 30 00
The text " Dans l'Unité 0" and its 00H terminator, 16 bytes at 070DH-071CH. Used whole by the message of error 0. 03H stands for é.
071D-0725
DEFM "Syst",0CH,"me ",00H 53 79 73 74 0C 6D 65 20 00
The text "Système " and its 00H terminator, 9 bytes at 071DH-0725H. Used whole by the messages of errors 1, 5 and 6. 0CH stands for è.
0726-0735
DEFM "Non Chargeable ",00H 4E 6F 6E 20 43 68 61 72 67 65 61 62 6C 65 20 00
The text "Non Chargeable " and its 00H terminator, 16 bytes at 0726H-0735H. Used whole by the messages of errors 2 and 10.
0736-074C
DEFM "Segments Trop Numbreux",00H 53 65 67 6D 65 6E 74 73 20 54 72 6F 70 20 4E 75 6D 62 72 65 75 78 00
The text "Segments Trop Numbreux" and its 00H terminator, 23 bytes at 0736H-074CH. Used whole by the message of error 2.
074D-0753
DEFM "Unit",03H," ",00H 55 6E 69 74 03 20 00
The text "Unité " and its 00H terminator, 7 bytes at 074DH-0753H. Used whole by the messages of errors 3, 4, 5, 6 and 10. 03H stands for é.
0754-075A
DEFM "Frank ",00H 46 72 61 6E 6B 20 00
The text "Frank " and its 00H terminator, 7 bytes at 0754H-075AH. No list and no instruction points to it; with the text at 0692H it spells the name Frank Durda, whose initials FDIV are the bytes at 0001H-0004H and, in lower case, 007BH-007EH.
075B-0777
DEFM "Ou Utilisez Une Autre Disque",00H 4F 75 20 55 74 69 6C 69 73 65 7A 20 55 6E 65 20 41 75 74 72 65 20 44 69 73 71 75 65 00
The text "Ou Utilisez Une Autre Disque" and its 00H terminator, 29 bytes at 075BH-0777H. Used whole by the messages of errors 8 and 9. Its last 6 characters, "Disque", from 0771H: used by the messages of errors 0, 3, 4, 5, 6 and 10 and the ROM image loaded message.
0778-0780
DEFM "-Souple ",00H 2D 53 6F 75 70 6C 65 20 00
The text "-Souple " and its 00H terminator, 9 bytes at 0778H-0780H. Used whole by the messages of errors 4, 6 and 10.
0781-0786
DEFM "-Dur ",00H 2D 44 75 72 20 00
The text "-Dur " and its 00H terminator, 6 bytes at 0781H-0786H. Used whole by the messages of errors 3 and 5.
0787-0791
DEFM "Non Pr",12H,"te ",00H 4E 6F 6E 20 50 72 12 74 65 20 00
The text "Non Prête " and its 00H terminator, 11 bytes at 0787H-0791H. Used whole by the messages of errors 3, 4 and 10. 12H stands for ê.
0792-07B4
DEFM "Fermez Porte d'Unit",03H," Et R",03H,"essayez ",00H 46 65 72 6D 65 7A 20 50 6F 72 74 65 20 64 27 55 6E 69 74 03 20 45 74 20 52 03 65 73 73 61 79 65 7A 20 00
The text "Fermez Porte d'Unité Et Réessayez " and its 00H terminator, 35 bytes at 0792H-07B4H. Used whole by the message of error 7. Its last 10 characters, "Réessayez ", from 07AAH: used by the messages of errors 8 and 9. 03H stands for é.
07B5-07BA
DEFM "CRC, ",00H 43 52 43 2C 20 00
The text "CRC, " and its 00H terminator, 6 bytes at 07B5H-07BAH. Used whole by the message of error 8.
07BB-07C2
DEFM "Erreur ",00H 45 72 72 65 75 72 20 00
The text "Erreur " and its 00H terminator, 8 bytes at 07BBH-07C2H. Used whole by the messages of errors 8 and 9.
07C3-07D0
DEFM "De Chercher, ",00H 44 65 20 43 68 65 72 63 68 65 72 2C 20 00
The text "De Chercher, " and its 00H terminator, 14 bytes at 07C3H-07D0H. Used whole by the message of error 9.
07D1-07D9
DEFM "l'Image ",00H 6C 27 49 6D 61 67 65 20 00
The text "l'Image " and its 00H terminator, 9 bytes at 07D1H-07D9H. Used whole by the loading message and the ROM image loaded message.
07DA-07E1
DEFM "Du ROM ",00H 44 75 20 52 4F 4D 20 00
The text "Du ROM " and its 00H terminator, 8 bytes at 07DAH-07E1H. Used whole by the ROM image loaded message. Its last 4 characters, "ROM ", from 07DDH: used by the messages of errors 0, 2 and 10 and the loading message.
07E2-07EA
DEFM "Charg",03H,"e ",00H 43 68 61 72 67 03 65 20 00
The text "Chargée " and its 00H terminator, 9 bytes at 07E2H-07EAH. Used whole by the ROM image loaded message. 03H stands for é.
07EB-07F6
DEFM "Changez De ",00H 43 68 61 6E 67 65 7A 20 44 65 20 00
The text "Changez De " and its 00H terminator, 12 bytes at 07EBH-07F6H. Used whole by the ROM image loaded message.
07F7-0807
DEFM " Et Appuyez Sur ",00H 20 45 74 20 41 70 70 75 79 65 7A 20 53 75 72 20 00
The text " Et Appuyez Sur " and its 00H terminator, 17 bytes at 07F7H-0807H. Used whole by the ROM image loaded message.
0808-080B
DEFM "Ou ",00H 4F 75 20 00
The text "Ou " and its 00H terminator, 4 bytes at 0808H-080BH. Used whole by the ROM image loaded message.
080C-081A
DEFM "Pour Continuer",00H 50 6F 75 72 20 43 6F 6E 74 69 6E 75 65 72 00
The text "Pour Continuer" and its 00H terminator, 15 bytes at 080CH-081AH. Used whole by the ROM image loaded message.
081B-0829
DEFM "Chargement De ",00H 43 68 61 72 67 65 6D 65 6E 74 20 44 65 20 00
The text "Chargement De " and its 00H terminator, 15 bytes at 081BH-0829H. Used whole by the loading message.
082A-083D
DEFM "Veuillez Patienter ",00H 56 65 75 69 6C 6C 65 7A 20 50 61 74 69 65 6E 74 65 72 20 00
The text "Veuillez Patienter " and its 00H terminator, 20 bytes at 082AH-083DH. Used whole by the loading message.
083EH - RST 30H: Scan the Keyboard for Boot Keys
The routine RST 30H reaches through 400FH. It waits until ENTER is released, then scans the keyboard Register Pair BC times, or until ENTER is pressed. Each pass records the keys that change options (a letter A-G for the file name at 401DH, BREAK at 405BH, N at 4064H, L at 4066H, P at 4065H) and stores the code of a boot key at 4059H: 80H V, 82H left SHIFT, 83H right SHIFT, 84H CTRL, 85H CAPS, 86H F1 or 1, 87H F2 or 2, 88H F3 or 3. Returns Register A = the code at 4059H with the flags of OR A. In the keyboard rows a bit is 1 while its key is down.
083E
LD A,(3840H) 3A 40 38
Fetch keyboard row 3840H (bit 0 ENTER, bit 1 CLEAR, bit 2 BREAK, bits 3-6 the arrow keys, bit 7 SPACE) into Register A.
0841
RRCA 0F
Rotate Register A right (RRCA): bit 0, the ENTER key, goes into the CARRY FLAG.
0842
If the CARRY FLAG is set (ENTER is down), LOOP back to 083EH until it is released.
0844H - One Pass of the Scan
Repeated from 08AEH until Register Pair BC counts down to 0000H.
0844
LD A,(3801H) 3A 01 38
Fetch keyboard row 3801H (keys @ A B C D E F G in bits 0-7) into Register A.
0847
AND FEH E6 FE
Clear bit 0 of Register A, the @ key (AND FEH), keeping the letters A-G: the Z FLAG is set when none of them is down.
0849
If the Z FLAG is set (no letter A-G), JUMP to 0857H.
084B
LD D,FFH 16 FF
Load Register D with FFH, so the first INC D makes it 00H.
084D
INC D 14
INCrement Register D, the number of the bit being tested.
084E
RRCA 0F
Rotate Register A right (RRCA): the next bit goes into the CARRY FLAG.
084F
If the NO CARRY FLAG is set (that key is up), LOOP back to 084DH; the loop ends at the lowest key that is down, with Register D = its bit number, 1 for A up to 7 for G.
0851
LD A,40H 3E 40
Load Register A with 40H, the character before A.
0853
ADD A,D 82
ADD Register D (1-7) to Register A, giving the letter of the key, 41H (A) to 47H (G).
0854
LD (401DH),A 32 1D 40
Store Register A (the letter) at 401DH, the sixth character of the file name MODEL% at 4018H: the % becomes the letter, so the ROM image loaded is MODELA/III to MODELG/III.
0857
LD A,(3840H) 3A 40 38
Fetch keyboard row 3840H (bit 0 ENTER, bit 1 CLEAR, bit 2 BREAK, bits 3-6 the arrow keys, bit 7 SPACE) into Register A.
085A
BIT 2,A CB 57
Test bit 2 of Register A, the BREAK key: the Z FLAG is set while it is up.
085C
If the Z FLAG is set (BREAK is up), JUMP to 0861H.
085E
LD (405BH),A 32 5B 40
Store Register A (the row, nonzero) at 405BH, the BREAK flag. The ROM does not read it again; it is left in RAM for the booted program.
0861
BIT 0,A CB 47
Test bit 0 of Register A (row 3840H), the ENTER key: the Z FLAG is clear when it is down.
0863
If the NZ FLAG is set (ENTER is down), JUMP to 08B0H to end the scan at once.
0865
LD A,(3802H) 3A 02 38
Fetch keyboard row 3802H (keys H I J K L M N O in bits 0-7) into Register A.
0868
BIT 6,A CB 77
Test bit 6 of Register A, the N key: the Z FLAG is set while it is up.
086A
If the Z FLAG is set (N is up), JUMP to 086FH.
086C
LD (4064H),A 32 64 40
Store Register A (the row, nonzero) at 4064H, the N key flag: 0215H then runs a boot sector without the ROM image.
086F
BIT 4,A CB 67
Test bit 4 of Register A (row 3802H), the L key: the Z FLAG is set while it is up.
0871
If the Z FLAG is set (L is up), JUMP to 0876H.
0873
LD (4066H),A 32 66 40
Store Register A (the row, nonzero) at 4066H, the L key flag: 0175H then loads the ROM image from disk even when one is in RAM.
0876
LD D,80H 16 80
Load Register D with 80H, the boot key code of the V key.
0878
LD A,(3804H) 3A 04 38
Fetch keyboard row 3804H (keys P Q R S T U V W in bits 0-7) into Register A.
087B
BIT 6,A CB 77
Test bit 6 of Register A, the V key: the Z FLAG is clear when it is down.
087D
If the NZ FLAG is set (V is down), JUMP to 08A7H to store the code 80H (Register D) at 4059H.
087F
BIT 0,A CB 47
Test bit 0 of Register A (row 3804H), the P key: the Z FLAG is set while it is up.
0881
If the Z FLAG is set (P is up), JUMP to 0886H.
0883
LD (4065H),A 32 65 40
Store Register A (the row, nonzero) at 4065H, the P key flag: 01A5H then pauses after the ROM image is loaded.
0886
INC D 14
INCrement Register D from 80H to 81H, the first of two steps to the code of the left SHIFT key.
0887
INC D 14
INCrement Register D to 82H, the boot key code of the first key of row 3880H.
0888
LD A,(3880H) 3A 80 38
Fetch keyboard row 3880H (bit 0 left SHIFT, bit 1 right SHIFT, bit 2 CTRL, bit 3 CAPS, bit 4 F1, bit 5 F2, bit 6 F3) into Register A.
088B
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set when none of these keys is down.
088C
If the Z FLAG is set (no key in row 3880H), JUMP to 0894H.
088E
RRCA 0F
Rotate Register A right (RRCA): the next bit of the row goes into the CARRY FLAG.
088F
If the CARRY FLAG is set (that key is down), JUMP to 08A7H with Register D = its code, 82H for bit 0 up to 88H for bit 6.
0891
INC D 14
INCrement Register D to the code of the next key of the row.
0892
LOOP back to 088EH to test the next bit. A key is down, so the loop ends at it.
0894
LD A,(3810H) 3A 10 38
Fetch keyboard row 3810H (keys 0 1 2 3 4 5 6 7 in bits 0-7) into Register A.
0897
LD D,86H 16 86
Load Register D with 86H, the code the 1 key shares with F1.
0899
BIT 1,A CB 4F
Test bit 1 of Register A, the 1 key: the Z FLAG is clear when it is down.
089B
If the NZ FLAG is set (1 is down), JUMP to 08A7H to store 86H (Register D).
089D
INC D 14
INCrement Register D to 87H, the code the 2 key shares with F2.
089E
BIT 2,A CB 57
Test bit 2 of Register A (row 3810H), the 2 key: the Z FLAG is clear when it is down.
08A0
If the NZ FLAG is set (2 is down), JUMP to 08A7H to store 87H (Register D).
08A2
INC D 14
INCrement Register D to 88H, the code the 3 key shares with F3.
08A3
BIT 3,A CB 5F
Test bit 3 of Register A (row 3810H), the 3 key: the Z FLAG is set while it is up.
08A5
If the Z FLAG is set (3 is up, so no boot key in this pass), JUMP to 08ABH.
08A7
LD A,D 7A
Copy Register D (the boot key code) into Register A.
08A8
LD (4059H),A 32 59 40
Store Register A at 4059H, the boot key code; a later pass that finds another boot key replaces it.
08AB
DEC BC 0B
DECrement Register Pair BC, the number of scans left to make.
08AC
LD A,B 78
Copy Register B (the high byte of the scans left) into Register A.
08AD
OR C B1
OR Register C into Register A: the Z FLAG is set when Register Pair BC is 0000H.
08AE
If the NZ FLAG is set (scans left), LOOP back to 0844H for the next pass.
08B0
LD A,(4059H) 3A 59 40
Fetch 4059H, the boot key code (00H when no boot key was seen), into Register A.
08B3
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set when there is no boot key.
08B4
RET C9
RETURN with Register A = the boot key code and the flags of the OR A.
08B5H - RST 08H: Disk I/O
The routine RST 08H reaches through 4000H. Register A selects the device (01H floppy disk drive 0, 02H hard disk drive 0), Register B the function, Register C the sector, Register Pair DE the cylinder and Register Pair HL the buffer. For the hard disk: 01H resets the controller and restores, 04H restores, 0CH seeks and reads one sector, any other value seeks. Returns Register A = 00H with the Z FLAG set on success, or an error code with NZ; after a read Register E = the number of 256-byte blocks read.
08B5
DEC A 3D
DECrement Register A, the device code: it becomes 00H, with the Z FLAG set, for the floppy disk (01H).
08B6
If the Z FLAG is set (floppy disk), JUMP to 096FH.
08B9
LD A,B 78
Hard disk: copy Register B, the function, into Register A.
08BA
CP 01H FE 01
Compare Register A against 01H, the function that resets the controller first.
08BC
If the NZ FLAG is set (another function), JUMP to 08C3H.
08BE
GOSUB to 0956H to reset the hard disk controller through port C1H.
08C1
LD B,04H 06 04
Load Register B with 04H, so function 01H goes on as a restore.
08C3H - Is a Hard Disk Controller There? Set the Task File
Writes the sector number to port CBH and reads it back; without a controller the value differs and the routine returns error 05H (The Hard Disk Drive Is Not Available). Then sets 256-byte sectors on drive 0, head 0, and the cylinder.
08C3
LD A,C 79
Copy Register C, the sector number, into Register A.
08C4
OUT (CBH),A D3 CB
OUTput Register A (the sector number) to port CBH, the hard disk controller's sector number register.
08C6
IN A,(CBH) DB CB
INput port CBH into Register A: a controller returns the sector number just written.
08C8
CP C B9
Compare Register A (the byte read back) against Register C (the sector number).
08C9
LD A,05H 3E 05
Load Register A with 05H, the error code for The Hard Disk Drive Is Not Available. The flags of the CP are unchanged.
08CB
If the NZ FLAG is set (the value did not read back, no controller), JUMP to 08EEH to return error 05H.
08CD
XOR A AF
Set Register A to 00H (XOR A), the value for the size, drive and head register.
08CE
OUT (CEH),A D3 CE
OUTput Register A (00H) to port CEH, the size, drive and head register: CRC mode (bit 7 = 0), 256-byte sectors (bits 6-5 = 00), drive 0 (drive select bits 4-3 = 00), head 0 (bits 2-0).
08D0
LD A,D 7A
Copy Register D, the high byte of the cylinder number, into Register A.
08D1
OUT (CDH),A D3 CD
OUTput Register A to port CDH, the cylinder number high register.
08D3
LD A,E 7B
Copy Register E, the low byte of the cylinder number, into Register A.
08D4
OUT (CCH),A D3 CC
OUTput Register A to port CCH, the cylinder number low register.
08D6H - Wait for the Drive to Be Ready
Reads the status register up to 8 x 65536 times for bit 6, drive ready. If it never sets, the routine returns error 03H (The Hard Disk Drive Is Not Ready).
08D6
PUSH BC C5
Save Register Pair BC (Register B the function, Register C the sector) on the stack; the wait loop uses Register Pair BC as its counter.
08D7
LD D,08H 16 08
Load Register D with 08H, the count of the outer loop.
08D9
LD BC,0000H 01 00 00
Load Register Pair BC with 0000H, so the inner loop runs 65536 times.
08DC
IN A,(CFH) DB CF
INput port CFH, the hard disk controller's status register, into Register A.
08DE
BIT 6,A CB 77
Test bit 6 of Register A, drive ready: the Z FLAG is clear when the drive is ready.
08E0
If the NZ FLAG is set (the drive is ready), JUMP to 08F0H.
08E2
DEC BC 0B
DECrement Register Pair BC, the count of the inner wait loop.
08E3
LD A,B 78
Copy Register B (the high byte of the inner count) into Register A.
08E4
OR C B1
OR Register C into Register A: the Z FLAG is set when Register Pair BC is 0000H.
08E5
If the NZ FLAG is set, LOOP back to 08DCH to read the status again.
08E7
DEC D 15
DECrement Register D, the count of the outer wait loop (8 down to 0).
08E8
If the NZ FLAG is set, LOOP back to 08D9H for another 65536 reads.
08EA
POP BC C1
The drive never became ready: restore Register Pair BC from the stack.
08EB
LD D,03H 16 03
Load Register D with 03H, the error code for The Hard Disk Drive Is Not Ready.
08ED
LD A,D 7A
Copy Register D (the error code) into Register A. Also the common exit of the error tests at 093CH-094AH.
08EE
OR A B7
Set the flags from Register A (OR A): NZ for an error code.
08EF
RET C9
RETURN with the error code in Register A and the NZ FLAG set.
08F0H - Restore or Seek, Then Read
The drive is ready. Function 04H issues a Restore (16H), any other a Seek (70H) to the cylinder in the task file; function 0CH then reads the sector. A sector that is not found as 256 bytes is read again as a 512-byte sector.
08F0
POP BC C1
Restore Register Pair BC from the stack: Register B = the function, Register C = the sector number.
08F1
LD A,B 78
Copy Register B (the function) into Register A.
08F2
LD D,16H 16 16
Load Register D with 16H (0001 0110), the Restore command with a step rate of 3.0 ms (bits 3-0 = 0110, 0.5 ms steps).
08F4
CP 04H FE 04
Compare Register A against 04H, the restore function.
08F6
If the Z FLAG is set (restore), JUMP to 08FAH with the command in Register D.
08F8
LD D,70H 16 70
Load Register D with 70H (0111 0000), the Seek command with the fastest step rate, 35 microseconds (bits 3-0 = 0000).
08FA
LD A,D 7A
Copy Register D (the command) into Register A.
08FB
OUT (CFH),A D3 CF
OUTput Register A (16H Restore or 70H Seek) to port CFH, the hard disk controller's command register.
08FD
GOSUB to 0962H to wait until the controller is not busy and the seek is complete; it returns NZ when bit 0 of the status (error) is set.
0900
If the NZ FLAG is set (the restore or seek failed), JUMP to 0935H to work out the error code.
0902
LD A,B 78
Copy Register B (the function) into Register A.
0903
CP 0CH FE 0C
Compare Register A against 0CH, the read function.
0905
If the NZ FLAG is set (restore or seek only), JUMP to 0933H to return with success.
0907
LD A,20H 3E 20
Load Register A with 20H (0010 0000), the Read Sector command: one sector, interrupt request on data request.
0909
LD E,00H 1E 00
Load Register E with 00H, the count of 256-byte blocks read.
090B
OUT (CFH),A D3 CF
OUTput Register A (20H) to port CFH, the command register: read the sector in Register C of the cylinder set at 08D0H-08D4H.
090D
GOSUB to 0962H to wait until the controller is not busy with the seek complete; NZ when the error bit is set.
0910
If the Z FLAG is set (the sector was found), JUMP to 092DH to take its 256 bytes from the data register.
0912
LD D,C 51
The read failed: copy Register C (the sector number) into Register D, since 094CH loads Register C.
0913
GOSUB to 094CH: Register A and Register C = the error register (port C9H), Register B = the status.
0916
BIT 4,C CB 61
Test bit 4 of Register C, ID not found: the Z FLAG is set when the error is another one.
0918
If the Z FLAG is set (not ID not found), JUMP to 0938H to work out the error code from Register A.
091A
LD A,20H 3E 20
Load Register A with 20H for the size, drive and head register: 512-byte sectors (bits 6-5 = 01), drive 0 (drive select bits 4-3 = 00), head 0.
091C
OUT (CEH),A D3 CE
OUTput Register A (20H) to port CEH, the size, drive and head register.
091E
LD A,D 7A
Copy Register D (the sector number saved at 0912H) into Register A.
091F
OUT (CBH),A D3 CB
OUTput Register A to port CBH, the sector number register.
0921
LD A,20H 3E 20
Load Register A with 20H, the Read Sector command again.
0923
OUT (CFH),A D3 CF
OUTput Register A (20H) to port CFH: read the sector again as a 512-byte sector.
0925
GOSUB to 0962H to wait until the controller is not busy with the seek complete; NZ when the error bit is set.
0928
If the NZ FLAG is set (the read failed again), JUMP to 0935H to work out the error code.
092A
GOSUB to 092DH to take the first 256 bytes of the sector; it returns here only to fall into 092DH for the second 256.
092D
LD BC,00C8H 01 C8 00
Load Register Pair BC with 00C8H: Register B = 00H, so the INIR moves 256 bytes; Register C = C8H, the hard disk data register.
0930
INIR ED B2
INIR: INput 256 bytes from the port in Register C (C8H) to the address in Register Pair HL and up, counting Register B down to 00H.
0932
INC E 1C
INCrement Register E, the number of 256-byte blocks read (1 or 2).
0933
XOR A AF
Set Register A to 00H (XOR A), which sets the Z FLAG: success.
0934
RET C9
RETURN with Register A = 00H and the Z FLAG set.
0935H - Hard Disk Error Codes
Turns the controller's error register into an error code: 08H (CRC Error) for a CRC error in the data or the ID field, 0CH (ID Error) for ID not found, 09H (Seek Error) for anything else.
0935
GOSUB to 094CH: Register A and Register C = the error register (port C9H), Register B = the status.
0938
LD D,08H 16 08
Load Register D with 08H, the error code for a CRC error.
093A
BIT 6,A CB 77
Test bit 6 of Register A (the error register), CRC error in the data field.
093C
If the NZ FLAG is set, JUMP to 08EDH to return error 08H (Register D).
093E
BIT 5,A CB 6F
Test bit 5 of Register A, CRC error in the ID field.
0940
If the NZ FLAG is set, JUMP to 08EDH to return error 08H (Register D).
0942
LD D,0CH 16 0C
Load Register D with 0CH, the error code for an ID error.
0944
BIT 4,A CB 67
Test bit 4 of Register A (the error register), ID not found.
0946
If the NZ FLAG is set, JUMP to 08EDH to return error 0CH (Register D).
0948
LD D,09H 16 09
Load Register D with 09H, the error code for a seek error, for every other error.
094A
JUMP to 08EDH to return the error code in Register D.
094CH - Read the Error Register
Entered with Register A = the controller's status. If bit 1 (command in progress) is set, the controller is reset first. Returns Register A and Register C = the error register, Register B = the status.
094C
BIT 1,A CB 4F
Test bit 1 of Register A (the status), command in progress: the Z FLAG is clear when a command is still running.
094E
LD B,A 47
Copy Register A (the status) into Register B. The flags of the BIT are unchanged.
094F
If the NZ FLAG is set (a command is still in progress), GOSUB to 0959H to reset the controller.
0952
IN A,(C9H) DB C9
INput port C9H, the hard disk controller's error register, into Register A.
0954
LD C,A 4F
Copy Register A (the error register) into Register C.
0955
RET C9
RETURN with Register A and Register C = the error register.
0956H - Reset the Hard Disk Controller
Writes port C1H, the controller board's control port: 00H (from 0956H only), 10H (bit 4, reset the controller), then 0CH (bit 3 enable the controller, bit 2 wait states).
0956
XOR A AF
Set Register A to 00H (XOR A), the value for port C1H.
0957
OUT (C1H),A D3 C1
OUTput Register A (00H) to port C1H, the hard disk controller board's control port: every bit off.
0959
LD A,10H 3E 10
Load Register A with 10H (0001 0000), bit 4 set, the reset bit of port C1H. Also the entry from 094FH.
095B
OUT (C1H),A D3 C1
OUTput Register A (10H) to port C1H: reset the hard disk controller.
095D
LD A,0CH 3E 0C
Load Register A with 0CH (0000 1100), bits 3 and 2 set: enable the controller and its wait states.
095F
OUT (C1H),A D3 C1
OUTput Register A (0CH) to port C1H: the controller leaves reset and is enabled.
0961
RET C9
RETURN to the caller with Register A = 0CH, the last value written to port C1H.
0962H - Wait for the Hard Disk Controller
Reads the status register until bit 7 (busy) is clear and bit 4 (seek complete) is set, with no time limit. Returns the status in Register A with the Z FLAG clear when bit 0 (error) is set.
0962
IN A,(CFH) DB CF
INput port CFH, the hard disk controller's status register, into Register A.
0964
BIT 7,A CB 7F
Test bit 7 of Register A, busy: the Z FLAG is clear while the controller is busy.
0966
If the NZ FLAG is set (busy), LOOP back to 0962H.
0968
BIT 4,A CB 67
Test bit 4 of Register A, seek complete: the Z FLAG is set while the heads are still moving.
096A
If the Z FLAG is set (seek not complete), LOOP back to 0962H.
096C
BIT 0,A CB 47
Test bit 0 of Register A, error: the Z FLAG is clear when the command ended with an error.
096E
RET C9
RETURN with the status in Register A and the Z FLAG set when there was no error.
096FH - Floppy Disk I/O
RST 08H with Register A = 01H comes here. Floppy disk drive 0 is selected in double density. Functions below 05H restore the drive to track 0; 32H restores drives 1, 2 and 3; any other function seeks to the cylinder in Register E, and 0CH then reads the sector in Register C (0-17 side 0, 18-35 side 1) to Register Pair HL. Returns Register A = 00H with the Z FLAG set, or an error code with NZ.
096F
LD A,D0H 3E D0
Load Register A with D0H, the Force Interrupt command.
0971
OUT (F0H),A D3 F0
OUTput Register A (D0H) to port F0H, the floppy disk controller's command register: any command still running ends without an interrupt.
| 1793 FDC Command: D0H (11010000) | | Function Description |
| 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | | Command=Force Interrupt (bits 7-4 = 1101) I3-I0 = 0000: end the command without an interrupt |
0973
GOSUB to 0A58H for a delay of 256 DJNZ passes while the controller settles.
0976
LD A,81H 3E 81
Load Register A with 81H (1000 0001) for port F4H: bit 7 double density, bit 0 drive 0.
0978
OUT (F4H),A D3 F4
OUTput Register A (81H) to port F4H, the drive select latch: floppy drive 0 in double density, side 0.
| Port F4H: Drive Select and Options | | Function Description |
| D | W | P | S | d3 | d2 | d1 | d0 | | D (bit 7): 1 = double density (MFM), 0 = single density (FM) W (bit 6): 1 = wait states while the controller has no data ready P (bit 5): 1 = write precompensation S (bit 4): 0 = side 0, 1 = side 1 d3-d0: one bit per drive, 1 = selected |
097A
LD A,C 79
Copy Register C, the sector number, into Register A.
097B
OUT (F2H),A D3 F2
OUTput Register A (the sector number) to port F2H, the floppy disk controller's sector register. A read takes it from there at 0A08H.
097D
LD A,B 78
Copy Register B, the function, into Register A.
097E
CP 05H FE 05
Compare Register A against 05H: the CARRY FLAG is set for the restore functions 00H-04H.
0980
If the NO CARRY FLAG is set (function 05H or higher), JUMP to 09A2H.
0982H - Floppy Restore of Drive 0
Issues a Restore with verify and waits. If the drive is not ready at the end, the last status seen while the command was busy (Register C) tells the code: 06H (The Floppy Disk Drive Is Not Available) when it shows nothing, 04H (Not Ready) when it shows only track 0 and index, 07H (Close The Floppy Drive Door) otherwise. Any other ending is tested at 09EEH.
0982
LD A,0CH 3E 0C
Load Register A with 0CH, the Restore command with head load and verify.
0984
OUT (F0H),A D3 F0
OUTput Register A (0CH) to port F0H, the command register: restore drive 0 to track 0.
| 1793 FDC Command: 0CH (00001100) | | Function Description |
| 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | | Command=Restore (bits 7-4 = 0000) h = 1: head load at the start V = 1: verify the track ID r1 r0 = 00: 6 ms stepping rate |
0986
GOSUB to 0A64H to wait until the controller is not busy or the drive is not ready. Register A returns the last status, Register C the last status read while busy and ready (or Register C unchanged if there was none).
0989
LD B,A 47
Copy Register A (the status) into Register B, for the tests at 09EEH.
098A
AND DFH E6 DF
Clear bit 5 of Register A, head loaded (AND DFH).
098C
CP 81H FE 81
Compare Register A against 81H: the Z FLAG is set when the drive went not ready (bit 7) while the command was still busy (bit 0), with no other bit.
098E
If the NZ FLAG is set (any other ending), JUMP to 09E2H to test the status for errors.
0990
LD A,C 79
Copy Register C (the last status seen while busy and ready, or the value Register C held on entry) into Register A.
0991
AND 9EH E6 9E
Keep bits 7, 4, 3, 2 and 1 of Register A (AND 9EH): the Z FLAG is set when none of them is set.
0993
LD D,06H 16 06
Load Register D with 06H, the error code for The Floppy Disk Drive Is Not Available. The flags of the AND are unchanged.
0995
If the Z FLAG is set (no bit), JUMP to 099FH to return error 06H.
0997
LD D,04H 16 04
Load Register D with 04H, the error code for The Floppy Disk Drive Is Not Ready.
0999
CP 06H FE 06
Compare Register A against 06H, bits 2 (track 0) and 1 (index) alone.
099B
If the Z FLAG is set, JUMP to 099FH to return error 04H.
099D
LD D,07H 16 07
Load Register D with 07H, the error code for Close The Floppy Drive Door And Try Again.
099F
LD A,D 7A
Copy Register D (the error code) into Register A. Also the common exit of the tests at 09E6H-09FCH.
09A0
OR A B7
Set the flags from Register A (OR A): NZ for an error code.
09A1
RET C9
RETURN with the error code in Register A and the NZ FLAG set.
09A2H - Function 32H: Restore Drives 1, 2 and 3
Called once at power-up (0119H). Each of drives 1, 2 and 3 is selected in turn; when bit 5 of its status (head loaded) is set, it is restored to track 0 without verify and the routine waits until the command is no longer busy or track 0 is reached.
09A2
CP 32H FE 32
Compare Register A (the function) against 32H.
09A4
If the NZ FLAG is set (any other function), JUMP to 09CDH to seek.
09A6
LD B,03H 06 03
Load Register B with 03H, the number of drives, the count of the DJNZ at 09CAH.
09A8
LD D,02H 16 02
Load Register D with 02H, the drive select bit of drive 1.
09AA
LD A,D0H 3E D0
Load Register A with D0H, the Force Interrupt command.
09AC
OUT (F0H),A D3 F0
OUTput Register A (D0H) to port F0H: end any command without an interrupt.
| 1793 FDC Command: D0H (11010000) | | Function Description |
| 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | | Command=Force Interrupt (bits 7-4 = 1101) I3-I0 = 0000: end the command without an interrupt |
09AE
GOSUB to 0A58H for a delay of 256 DJNZ passes.
09B1
LD A,D 7A
Copy Register D (02H, 04H or 08H, the select bit of drive 1, 2 or 3) into Register A.
09B2
OUT (F4H),A D3 F4
OUTput Register A to port F4H, the drive select latch: that drive alone, single density, side 0.
09B4
RLCA 07
Rotate Register A left (RLCA), giving the select bit of the next drive.
09B5
LD D,A 57
Copy Register A into Register D for the next pass.
09B6
IN A,(F0H) DB F0
INput port F0H, the floppy disk controller's status register, into Register A.
09B8
AND 20H E6 20
Keep bit 5 of Register A (AND 20H), head loaded in the status after Force Interrupt: the Z FLAG is set when it is clear.
09BA
If the Z FLAG is set, JUMP to 09CAH to go on with the next drive.
09BC
XOR A AF
Set Register A to 00H (XOR A), the Restore command with no head load, no verify and the 6 ms step rate.
09BD
OUT (F0H),A D3 F0
OUTput Register A (00H) to port F0H, the command register: restore the selected drive to track 0.
| 1793 FDC Command: 00H (00000000) | | Function Description |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | Command=Restore (bits 7-4 = 0000) h = 0: no head load V = 0: no verify r1 r0 = 00: 6 ms stepping rate |
09BF
GOSUB to 0A5DH for a delay of 18 DJNZ passes before the status is read.
09C2
IN A,(F0H) DB F0
INput port F0H, the status register, into Register A.
09C4
XOR 01H EE 01
Flip bit 0 of Register A, busy (XOR 01H), so it is 1 when the command is finished.
09C6
AND 05H E6 05
Keep bit 2 (track 0) and the flipped bit 0 of Register A (AND 05H): the Z FLAG is set while the command is busy and track 0 is not reached.
09C8
If the Z FLAG is set (still busy, not at track 0), LOOP back to 09C2H.
09CA
DECrement Register B and LOOP back to 09AAH for the next drive.
09CC
RET C9
RETURN after drives 1, 2 and 3. The caller (0119H) does not test the result.
09CDH - Seek, Then Read
Any function other than 00H-04H and 32H seeks drive 0 to the cylinder in Register E with verify. Function 0CH then reads the sector at 0A00H; other functions return the result of the seek.
09CD
LD A,E 7B
Copy Register E, the cylinder number, into Register A.
09CE
OUT (F3H),A D3 F3
OUTput Register A (the cylinder) to port F3H, the data register, where the Seek command takes its destination.
09D0
LD A,1CH 3E 1C
Load Register A with 1CH, the Seek command with head load and verify.
09D2
OUT (F0H),A D3 F0
OUTput Register A (1CH) to port F0H, the command register: seek to the cylinder in the data register.
| 1793 FDC Command: 1CH (00011100) | | Function Description |
| 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | | Command=Seek (bits 7-4 = 0001) h = 1: head load at the start V = 1: verify the track ID r1 r0 = 00: 6 ms stepping rate |
09D4
GOSUB to 0A64H to wait until the controller is not busy or the drive is not ready; Register A returns the status.
09D7
LD D,A 57
Copy Register A (the status) into Register D.
09D8
AND 98H E6 98
Keep bits 7 (not ready), 4 (seek error) and 3 (CRC error) of Register A (AND 98H): the NZ FLAG is set for an error.
09DA
If the NZ FLAG is set (the seek failed), JUMP to 09E1H to make the error code.
09DC
LD A,B 78
Copy Register B (the function) into Register A.
09DD
CP 0CH FE 0C
Compare Register A against 0CH, the read function.
09DF
If the Z FLAG is set (read), JUMP to 0A00H to read the sector.
09E1
LD B,D 42
Copy Register D (the status of the seek) into Register B, for the tests at 09EEH.
09E2
LD D,09H 16 09
Load Register D with 09H, the error code for a seek error, used when bit 4 of the status is set.
09E4
JUMP to 09EEH to test the status bits in Register B.
09E6H - Floppy Error Codes
Tests the status in Register B. After a read (entry 09E6H): bit 2 lost data gives 0BH (Lost Data Error) and bit 4 record not found 0CH (ID Error). After a restore or seek (entry 09EEH with Register D = 09H): bit 4 seek error gives 09H (Seek Error). Then bit 3 (CRC error) gives 08H and bit 7 (not ready) 04H. No bit set: success.
09E6
LD D,0BH 16 0B
Load Register D with 0BH, the error code for a Lost Data Error.
09E8
BIT 2,B CB 50
Test bit 2 of Register B (the status), lost data.
09EA
If the NZ FLAG is set, JUMP to 099FH to return error 0BH (Register D).
09EC
LD D,0CH 16 0C
Load Register D with 0CH, the error code for an ID Error, used for bit 4 after a read.
09EE
BIT 4,B CB 60
Test bit 4 of Register B, record not found (read) or seek error (restore, seek).
09F0
If the NZ FLAG is set, JUMP to 099FH to return the error code in Register D (0CH or 09H).
09F2
LD D,08H 16 08
Load Register D with 08H, the error code for a CRC Error.
09F4
BIT 3,B CB 58
Test bit 3 of Register B (the status), CRC error.
09F6
If the NZ FLAG is set, JUMP to 099FH to return error 08H (Register D).
09F8
LD D,04H 16 04
Load Register D with 04H, the error code for The Floppy Disk Drive Is Not Ready.
09FA
BIT 7,B CB 78
Test bit 7 of Register B (the status), drive not ready.
09FC
If the NZ FLAG is set, JUMP to 099FH to return error 04H (Register D).
09FE
XOR A AF
Set Register A to 00H (XOR A), which sets the Z FLAG: success.
09FF
RET C9
RETURN with Register A = 00H and the Z FLAG set.
0A00H - Read a Floppy Sector
The sector number in the sector register is the logical sector: 0-17 on side 0, 18-35 on side 1. 405CH (00H or 01H, the number of the first sector on a track, set by the ROM image loader) is added to make the physical sector number. The bytes are taken with wait states; the NMI at the end of the command (0066H, 0A48H) ends the loop, so a 256-byte or 512-byte sector is read whole. Returns Register E = the number of 256-byte blocks read.
0A00
LD A,(405CH) 3A 5C 40
Fetch 405CH, the number of the first sector on a track (00H unless the loader set 01H), into Register A.
0A03
LD B,A 47
Copy Register A (the first sector number) into Register B for the ADD at 0A14H.
0A04
LD D,81H 16 81
Load Register D with 81H for port F4H: double density, drive 0, side 0.
0A06
LD C,86H 0E 86
Load Register C with 86H, the Read Sector command: one sector, 15 ms delay, side compare on, side 0.
0A08
IN A,(F2H) DB F2
INput port F2H, the sector register (the sector number from 097BH), into Register A.
0A0A
CP 12H FE 12
Compare Register A against 12H (18): the CARRY FLAG is set for sectors 0-17, on side 0.
0A0C
If the CARRY FLAG is set (side 0), JUMP to 0A14H.
0A0E
SUB 12H D6 12
SUBtract 12H (18) from Register A, giving the sector's number on side 1.
0A10
SET 4,D CB E2
Set bit 4 of Register D, which selects side 1 at port F4H.
0A12
SET 3,C CB D9
Set bit 3 of Register C: the Read Sector command compares side 1 (8EH).
0A14
ADD A,B 80
ADD Register B (the first sector number, 00H or 01H) to Register A, giving the physical sector number.
0A15
OUT (F2H),A D3 F2
OUTput Register A (the physical sector) to port F2H, the sector register.
0A17
LD A,D 7A
Copy Register D (the drive select value) into Register A.
0A18
OUT (F4H),A D3 F4
OUTput Register A (81H or 91H) to port F4H: drive 0, double density, the side in bit 4.
0A1A
LD B,00H 06 00
Load Register B with 00H, so the INI loop takes 256 bytes before Register E is counted.
0A1C
LD E,B 58
Copy Register B (00H) into Register E, the number of 256-byte blocks read.
0A1D
LD A,C 79
Copy Register C (the Read Sector command, 86H or 8EH) into Register A.
0A1E
LD C,F3H 0E F3
Load Register C with F3H, the data register, the port the INI instructions read.
0A20
OUT (F0H),A D3 F0
OUTput Register A to port F0H, the command register: read the sector.
| 1793 FDC Command: 86H (10000110) | | Function Description |
| 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | | Command=Read Sector (bits 7-5 = 100) m = 0: one sector S = 0: side to compare (used only when C = 1) E = 1: 15 ms delay C = 1: side compare on |
0A22
LD A,80H 3E 80
Load Register A with 80H for port E4H, the NMI mask.
0A24
OUT (E4H),A D3 E4
OUTput Register A (80H) to port E4H: an NMI comes when the controller ends the command (INTRQ).
| Port E4H (NMI Mask): 80H (10000000) | | Function Description |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | Bit 7 = 1: NMI on the controller's interrupt request (INTRQ), the end of a command Bit 6 = 0: the second NMI source of the port off Bits 5-0: not used |
0A26
GOSUB to 0A5DH for a delay of 18 DJNZ passes before the status is read.
0A29
LD A,D 7A
Copy Register D (the drive select value) into Register A.
0A2A
OUT (F4H),A D3 F4
OUTput Register A to port F4H again, drive 0 with the side and double density.
0A2C
IN A,(F0H) DB F0
INput port F0H, the status register, into Register A.
0A2E
BIT 1,A CB 4F
Test bit 1 of Register A, data request: the Z FLAG is clear when the first byte is ready.
0A30
If the NZ FLAG is set (a byte is ready), JUMP to 0A39H to start taking the data.
0A33
RLCA 07
Rotate Register A left (RLCA): bit 7, not ready, goes into the CARRY FLAG.
0A34
If the NO CARRY FLAG is set (the drive is ready), LOOP back to 0A2CH. A record not found also ends here, through the NMI at the end of the command.
0A37
The drive went not ready: JUMP to 0A4DH to read the status and make the error code.
0A39
INI ED A2
INI: INput the first byte from the port in Register C (F3H) to the address in Register Pair HL, INCrement Register Pair HL and DECrement Register B (00H to FFH).
0A3B
LD A,D 7A
Copy Register D (the drive select value) into Register A.
0A3C
OR 40H F6 40
Set bit 6 of Register A (OR 40H), the wait state bit of port F4H: from now on an IN from the data register makes the CPU wait until the controller has the byte.
0A3E
OUT (F4H),A D3 F4
OUTput Register A to port F4H: drive 0, the side, double density and wait states.
0A40
INI ED A2
INI: INput the next byte from port F3H (Register C) to the address in Register Pair HL, INCrement Register Pair HL and DECrement Register B.
0A42
If the NZ FLAG is set (Register B not 00H), LOOP back to 0A3EH.
0A44
INC E 1C
256 bytes read: INCrement Register E, the number of 256-byte blocks.
0A45
JUMP back to 0A3EH for the next 256 bytes. The loop has no exit of its own: the NMI at the end of the command leaves it through 0066H, 4015H and 0A48H.
0A48H - End of a Floppy Read (NMI)
The NMI vector at 4015H jumps here when the controller ends the Read Sector command. The address the NMI pushed is dropped, the NMI is turned off and the status is tested. 0A37H joins at 0A4DH when the drive goes not ready.
0A48
POP IY FD E1
POP the address the NMI pushed (a point inside the INI loop) into Index Register IY and drop it; the RETURN at the end goes back to the caller of RST 08H instead.
0A4A
XOR A AF
Set Register A to 00H (XOR A), the value for the NMI mask.
0A4B
OUT (E4H),A D3 E4
OUTput Register A (00H) to port E4H: the NMI from the controller is turned off.
| Port E4H (NMI Mask): 00H (00000000) | | Function Description |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | Bit 7 = 0: no NMI on INTRQ Bit 6 = 0: the second NMI source of the port off Bits 5-0: not used |
0A4D
IN A,(F0H) DB F0
INput port F0H, the status register at the end of the read, into Register A.
0A4F
LD B,A 47
Copy Register A (the status) into Register B, for the tests at 09E6H.
0A50
LD C,B 48
Copy Register B (the status) into Register C as well.
0A51
GOSUB to 0A56H, which is a RETN: it returns at once to 0A54H and copies IFF2 into IFF1, as the end of an NMI requires.
0A54
JUMP to 09E6H to make the error code from the status in Register B, or return success.
0A56
RETN ED 45
RETN: RETURN from the NMI to 0A54H (the address the CALL at 0A51H pushed), copying IFF2 into IFF1.
0A58H - Delays
0A58H runs 256 DJNZ passes (3323 T-states, about 0.83 ms at 4 MHz); 0A5DH runs 18 (229 T-states, about 57 microseconds). Register Pair BC is saved and restored.
0A58
PUSH BC C5
Save Register Pair BC on the stack; the delay loop uses Register B.
0A59
LD B,00H 06 00
Load Register B with 00H, so the DJNZ at 0A60H makes 256 passes.
0A5B
JUMP to 0A60H, the delay loop, with Register B = 00H (256 passes).
0A5D
PUSH BC C5
Save Register Pair BC on the stack; the delay loop uses Register B.
0A5E
LD B,12H 06 12
Load Register B with 12H (18), the number of passes of the DJNZ at 0A60H.
0A60
DECrement Register B and LOOP to 0A60H itself until Register B is 00H: the delay.
0A62
POP BC C1
Restore Register Pair BC from the stack, as the caller had it.
0A63
RET C9
RETURN after the delay, with Register Pair BC as it was.
0A64H - Wait for a Floppy Command
After the short delay at 0A5DH, reads the status until bit 0 (busy) is clear or bit 7 (not ready) is set. Returns the last status in Register A; each status read while busy and ready is kept in Register C.
0A64
GOSUB to 0A5DH for a delay of 18 DJNZ passes, so the controller has set busy before the status is read.
0A67
IN A,(F0H) DB F0
INput port F0H, the floppy disk controller's status register, into Register A.
0A69
BIT 0,A CB 47
Test bit 0 of Register A, busy: the Z FLAG is set when the command is finished.
0A6B
RET Z C8
If the Z FLAG is set (not busy), RETURN with the status in Register A.
0A6C
BIT 7,A CB 7F
Test bit 7 of Register A, not ready: the Z FLAG is clear when the drive is not ready.
0A6E
RET NZ C0
If the NZ FLAG is set (not ready), RETURN with the status in Register A while the command is still busy.
0A6F
LD C,A 4F
Copy Register A (a status read while busy and ready) into Register C.
0A70
LOOP back to 0A67H to read the floppy disk controller's status again.
0A72H - Load the ROM Image MODEL%/III from Floppy Drive 0
Called from 0191H. Reads the boot sector to learn the disk's layout, finds MODEL%/III in the directory and loads it with RST 28H. Two layouts are handled, told apart by the data mark of cylinder 0, sector 1. With the deleted data mark: directory cylinder at byte 1 of that sector, sectors numbered from 1, 3 sectors per granule, one side, 48-byte directory entries, extents whose granule count is stored as is. With the normal data mark: directory cylinder at byte 2, sectors numbered from 0, 6 sectors per granule, the number of sides from the directory's first sector, 32-byte entries, granule count stored less 1. Returns the Z FLAG set and Register Pair HL = the transfer address, or NZ with an error code in Register A.
0A72
LD A,(4067H) 3A 67 40
Fetch 4067H, the error code of the floppy restore at 010BH, into Register A.
0A75
OR A B7
Set the flags from Register A (OR A): NZ when drive 0 failed to restore.
0A76
If the NZ FLAG is set, JUMP to 0AD8H to return that error (04H becomes 0AH there).
0A78
LD A,01H 3E 01
Load Register A with 01H, sector 1, the sector the boot sector is in.
0A7A
LD E,00H 1E 00
Load Register E with 00H, cylinder 0, for the read at 0A7CH.
0A7C
GOSUB to 0C0BH to read cylinder 0 (Register E), sector 1 (Register A) into 4300H. Register C returns the status of the read, Register E the number of 256-byte blocks.
0A7F
If the NZ FLAG is set (the read failed), JUMP to 0AD8H to return the error code.
0A81
LD A,E 7B
Copy Register E (the number of 256-byte blocks) into Register A.
0A82
CP 01H FE 01
Compare Register A against 01H, a 256-byte sector.
0A84
If the NZ FLAG is set (a 512-byte sector), JUMP to 0A8EH to return error 00H.
0A86
LD A,(4300H) 3A 00 43
Fetch the first byte of the boot sector (4300H) into Register A.
0A89
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set when it is 00H.
0A8A
If the Z FLAG is set (first byte 00H), JUMP to 0A91H.
0A8C
CP FEH FE FE
Compare Register A against FEH, the other first byte accepted.
0A8E
LD A,00H 3E 00
Load Register A with 00H, the error code for The ROM Image Was Not Found On Drive 0. The flags are unchanged.
0A90
RET NZ C0
If the NZ FLAG is set (first byte neither 00H nor FEH, or a 512-byte sector from 0A84H), RETURN with error 00H.
0A91
LD A,C 79
Copy Register C (the status of the read of sector 1) into Register A.
0A92
AND 20H E6 20
Keep bit 5 of Register A (AND 20H), the record type: set when the sector was written with the deleted data mark F8H.
0A94
LD C,01H 0E 01
Load Register C with 01H, the number of the first sector on a track for the deleted mark layout. The flags of the AND are unchanged.
0A96
LD B,03H 06 03
Load Register B with 03H, the sectors per granule of that layout.
0A98
LD HL,(4301H) 2A 01 43
Load Register Pair HL with the two bytes at 4301H-4302H of the boot sector: Register L = byte 1, Register H = byte 2.
0A9B
LD A,L 7D
Copy Register L (byte 1) into Register A, the directory cylinder of the deleted mark layout.
0A9C
If the NZ FLAG is set (the deleted data mark), JUMP to 0AA2H with Register A = byte 1, Register C = 01H, Register B = 03H.
0A9E
LD A,H 7C
Normal data mark: copy Register H (byte 2 of the boot sector) into Register A, the directory cylinder.
0A9F
DEC C 0D
DECrement Register C to 00H, the number of the first sector on a track.
0AA0
LD B,06H 06 06
Load Register B with 06H, the sectors per granule.
0AA2
LD (405DH),A 32 5D 40
Store Register A (the directory cylinder) at 405DH.
0AA5
LD E,A 5F
Copy Register A (the directory cylinder) into Register E for the read at 0AB5H.
0AA6
LD A,B 78
Copy Register B (the sectors per granule) into Register A.
0AA7
LD (4063H),A 32 63 40
Store Register A at 4063H, the sectors per granule.
0AAA
LD A,C 79
Copy Register C (the first sector number) into Register A.
0AAB
LD (405CH),A 32 5C 40
Store Register A at 405CH, the number of the first sector on a track, which 0A00H adds to every sector read from here on.
0AAE
LD A,(405CH) 3A 5C 40
Fetch 405CH (the value just stored) into Register A.
0AB1
OR A B7
Set the flags from Register A (OR A): NZ for the deleted mark layout.
0AB2
If the NZ FLAG is set, JUMP to 0AC4H with Register A = 01H, one side.
0AB4
XOR A AF
Set Register A to 00H (XOR A), sector 0 of the directory cylinder.
0AB5
GOSUB to 0C0BH to read sector 0 (Register A) of the directory cylinder (Register E) into 4300H.
0AB8
If the NZ FLAG is set (the read failed), JUMP to 0AD8H to return the error code.
0ABA
LD A,(43CDH) 3A CD 43
Fetch byte CDH of that sector (43CDH) into Register A.
0ABD
AND 20H E6 20
Keep bit 5 of Register A (AND 20H): set for a two-sided disk.
0ABF
LD A,01H 3E 01
Load Register A with 01H, one side. The flags of the AND are unchanged.
0AC1
If the Z FLAG is set (bit 5 clear), JUMP to 0AC4H with one side.
0AC3
INC A 3C
INCrement Register A from 01H to 02H: the disk has two sides.
0AC4
LD (405FH),A 32 5F 40
Store Register A (1 or 2) at 405FH, the number of sides; 0B96H makes 18 or 36 sectors per cylinder of it.
0AC7
LD A,02H 3E 02
Load Register A with 02H, the first directory sector to search (sectors 0 and 1 of the directory cylinder are skipped).
0AC9
LD (405EH),A 32 5E 40
Store Register A at 405EH, the directory sector to read next.
0ACCH - Read the Next Directory Sector
Reads sector (405EH) of the directory cylinder (405DH). When that read fails the search ends with error 00H, The ROM Image Was Not Found On Drive 0: the search reads on until a sector cannot be read, so a disk without MODEL%/III ends here. 0AD8H is also the exit for the errors of 0A76H, 0A7FH and 0AB8H, where error 04H (not ready) becomes 0AH (The ROM Image Can't Be Loaded - Floppy Disk Drive Is Not Ready).
0ACC
LD HL,(405DH) 2A 5D 40
Load Register Pair HL with the two bytes at 405DH-405EH: Register L = the directory cylinder, Register H = the sector to read.
0ACF
LD E,L 5D
Copy Register L (the directory cylinder) into Register E.
0AD0
LD A,H 7C
Copy Register H (the sector) into Register A.
0AD1
GOSUB to 0C0BH to read that sector (Register A) of the directory cylinder (Register E) into 4300H.
0AD4
LD A,00H 3E 00
Load Register A with 00H, the error code for The ROM Image Was Not Found On Drive 0, which replaces the code of a failed read. The flags of the read are unchanged.
0AD6
If the Z FLAG is set (the sector was read), JUMP to 0AE0H to search its entries.
0AD8
CP 04H FE 04
Compare Register A (the error code; 00H when coming from 0AD6H) against 04H, The Floppy Disk Drive Is Not Ready.
0ADA
If the NZ FLAG is set (another code), JUMP to 0ADFH to return it.
0ADC
LD A,0AH 3E 0A
Load Register A with 0AH, the error code for The ROM Image Can't Be Loaded - Floppy Disk Drive Is Not Ready.
0ADE
OR A B7
Set the flags from Register A (OR A): NZ, since Register A is 0AH.
0ADF
RET C9
RETURN with the error code in Register A and the NZ FLAG set.
0AE0H - Search the Directory Sector for MODEL%/III
Index Register IX walks the entries of the sector at 4300H. An entry is checked when bit 4 of its first byte (in use) is set and bit 7 (an extension entry) is clear; its name at +05H is compared with MODEL% at 4018H and its extension at +0DH with III at 0063H.
0AE0
LD IX,4300H DD 21 00 43
Load Index Register IX with 4300H, the first entry of the directory sector.
0AE4
LD A,(IX+00H) DD 7E 00
Fetch the first byte of the entry, +00H (at Index Register IX), into Register A.
0AE7
BIT 7,A CB 7F
Test bit 7 of Register A: the Z FLAG is clear for an extension entry.
0AE9
If the NZ FLAG is set, JUMP to 0B11H to go to the next entry.
0AEB
BIT 4,A CB 67
Test bit 4 of Register A: the Z FLAG is set when the entry is not in use.
0AED
If the Z FLAG is set, JUMP to 0B11H to go to the next entry.
0AEF
PUSH IX DD E5
Push Index Register IX (the entry) on the stack.
0AF1
POP HL E1
Pop the entry's address into Register Pair HL, so the offset can be added.
0AF2
LD DE,0005H 11 05 00
Load Register Pair DE with 0005H, the offset of the file name in the entry.
0AF5
ADD HL,DE 19
ADD Register Pair DE to Register Pair HL: Register Pair HL = the entry's file name.
0AF6
LD DE,4018H 11 18 40
Load Register Pair DE with 4018H, the RAM copy of MODEL% (from 006CH), where 401DH may hold a letter A-G.
0AF9
LD B,08H 06 08
Load Register B with 08H, the length of a file name.
0AFB
GOSUB to 0BF6H to compare the 8 bytes at Register Pair DE and Register Pair HL; a % matches any character. The Z FLAG returns set when they match.
0AFE
If the NZ FLAG is set (another name), JUMP to 0B11H to go to the next entry.
0B00
PUSH IX DD E5
Push Index Register IX (the entry) on the stack.
0B02
POP HL E1
Pop the entry's address into Register Pair HL, so the offset can be added.
0B03
LD DE,000DH 11 0D 00
Load Register Pair DE with 000DH, the offset of the extension in the entry.
0B06
ADD HL,DE 19
ADD Register Pair DE to Register Pair HL: Register Pair HL = the entry's extension.
0B07
LD B,03H 06 03
Load Register B with 03H, the length of an extension.
0B09
LD DE,0063H 11 63 00
Load Register Pair DE with 0063H, the text III.
0B0C
GOSUB to 0BF6H to compare the 3 bytes at Register Pair DE (III) with the extension at Register Pair HL.
0B0F
If the Z FLAG is set (MODEL%/III found), JUMP to 0B36H.
0B11
PUSH IX DD E5
Push Index Register IX (the entry) on the stack.
0B13
POP HL E1
Pop the entry's address into Register Pair HL, so the length can be added.
0B14
LD DE,0020H 11 20 00
Load Register Pair DE with 0020H (32), the length of an entry in the normal mark layout.
0B17
ADD HL,DE 19
ADD Register Pair DE to Register Pair HL: Register Pair HL = the next 32-byte entry.
0B18
LD A,(405CH) 3A 5C 40
Fetch 405CH, the first sector number (01H for the deleted mark layout), into Register A.
0B1B
OR A B7
Set the flags from Register A (OR A): NZ for the deleted mark layout.
0B1C
If the Z FLAG is set (32-byte entries), JUMP to 0B22H.
0B1E
LD DE,0010H 11 10 00
Load Register Pair DE with 0010H, the 16 more bytes of a 48-byte entry.
0B21
ADD HL,DE 19
ADD Register Pair DE to Register Pair HL: Register Pair HL = the next 48-byte entry.
0B22
PUSH HL E5
Push Register Pair HL (the next entry) on the stack.
0B23
POP IX DD E1
Pop the next entry's address into Index Register IX.
0B25
LD A,L 7D
Copy Register L (the low byte of the next entry's address) into Register A.
0B26
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set at 4400H, after eight 32-byte entries.
0B27
If the Z FLAG is set (the end of the sector), JUMP to 0B2DH.
0B29
CP F0H FE F0
Compare Register A against F0H: the Z FLAG is set at 43F0H, after five 48-byte entries.
0B2B
If the NZ FLAG is set (more entries), LOOP back to 0AE4H to check the next one.
0B2D
LD A,(405EH) 3A 5E 40
Fetch 405EH, the directory sector just searched, into Register A.
0B30
INC A 3C
INCrement Register A to the next directory sector.
0B31
LD (405EH),A 32 5E 40
Store Register A (the next directory sector) at 405EH.
0B34
JUMP to 0ACCH to read the next directory sector and search it.
0B36H - Found: Copy the Entry and Load the File
The 48 bytes from the entry's start are copied to 40A2H-40D1H and FEH is stored at 40D2H, after them, so the extent list always ends. Index Register IX is set to 40B6H, two bytes before the first extent at 40B8H (entry +16H); 0BB7H steps it by two before each extent. Then the code falls into RST 28H to load the file.
0B36
LD DE,40A2H 11 A2 40
Load Register Pair DE with 40A2H, the RAM copy of the directory entry.
0B39
PUSH IX DD E5
Push Index Register IX (the entry found) on the stack.
0B3B
POP HL E1
Pop the address of the entry found into Register Pair HL, the source of the LDIR.
0B3C
LD BC,0030H 01 30 00
Load Register Pair BC with 0030H (48), the number of bytes copied.
0B3F
LDIR ED B0
Copy the 48 bytes at Register Pair HL (the entry) to Register Pair DE (40A2H), counting Register Pair BC down to 0000H; Register Pair DE ends at 40D2H.
0B41
LD A,FEH 3E FE
Load Register A with FEH, the end of extents marker that 0BC1H tests for.
0B43
LD (DE),A 12
Store Register A (FEH) at the address in Register Pair DE (40D2H), after the copied entry.
0B44
LD IX,40B6H DD 21 B6 40
Load Index Register IX with 40B6H, two bytes before the entry's first extent at 40B8H (entry +16H).
0B48H - RST 28H: Load a Program File
The routine RST 28H reaches through 400CH; the ROM image loader falls into it from 0B44H. Reads the file a byte at a time with RST 20H as records: type 01H a load block (length byte, two address bytes, then length - 2 data bytes, where a length of 00H, 01H or 02H gives 254, 255 or 256), type 02H the transfer address (a length byte, then the address), any other type a record that is skipped (a length byte, then that many bytes, 256 for 00H). Returns the Z FLAG set with Register Pair HL = the transfer address, or NZ when RST 20H fails.
0B48
LD E,00H 1E 00
Load Register E with 00H. For the floppy RST 20H, Register E is the low byte of the pointer into the sector buffer, and 00H makes it read the first sector of the file.
0B4A
RST 20H E7
RST 20H: get the next byte of the file, the record type, in Register A (the Z FLAG set on success).
0B4B
RET NZ C0
If the NZ FLAG is set (the read failed), RETURN with the error code in Register A.
0B4C
DEC A 3D
DECrement Register A: the Z FLAG is set for type 01H.
0B4D
If the Z FLAG is set (a load block), JUMP to 0B5AH.
0B4F
DEC A 3D
DECrement Register A again: the Z FLAG is set for type 02H.
0B50
If the Z FLAG is set (the transfer address), JUMP to 0B6BH.
0B52
RST 20H E7
Any other record type: RST 20H, get its length byte in Register A.
0B53
LD B,A 47
Copy Register A (the length) into Register B, the count of bytes to skip (00H skips 256).
0B54
RST 20H E7
RST 20H: get one byte of the record in Register A and drop it.
0B55
RET NZ C0
If the NZ FLAG is set (the read failed), RETURN with the error code in Register A.
0B56
DECrement Register B and LOOP back to 0B54H until the record is skipped.
0B58
JUMP to 0B4AH to read the type of the next record of the file.
0B5A
RST 20H E7
Load block: RST 20H, get its length byte in Register A.
0B5B
RET NZ C0
If the NZ FLAG is set (the read failed), RETURN with the error code in Register A.
0B5C
DEC A 3D
DECrement Register A, the length byte of the load block.
0B5D
DEC A 3D
DECrement Register A again, leaving the number of data bytes (the length less the two address bytes).
0B5E
LD B,A 47
Copy Register A into Register B, the count of the DJNZ at 0B67H (00H gives 256).
0B5F
GOSUB to 0B6DH to get the load address in Register Pair HL (low byte first).
0B62
RET NZ C0
If the NZ FLAG is set (the read failed), RETURN with the error code in Register A.
0B63
RST 20H E7
RST 20H: get the next data byte of the block in Register A.
0B64
RET NZ C0
If the NZ FLAG is set (the read failed), RETURN with the error code in Register A.
0B65
LD (HL),A 77
Store Register A (the data byte) at the address in Register Pair HL.
0B66
INC HL 23
INCrement Register Pair HL to the next load address.
0B67
DECrement Register B and LOOP back to 0B63H until the block is stored.
0B69
JUMP to 0B4AH to read the type of the next record of the file.
0B6B
RST 20H E7
Transfer address: RST 20H, get its length byte in Register A, which is not used.
0B6C
RET NZ C0
If the NZ FLAG is set (the read failed), RETURN with the error code in Register A.
0B6D
RST 20H E7
RST 20H: get the low byte of an address in Register A. Also the subroutine 0B5FH calls for a load address.
0B6E
RET NZ C0
If the NZ FLAG is set (the read failed), RETURN with the error code in Register A.
0B6F
LD L,A 6F
Copy Register A (the low byte) into Register L.
0B70
RST 20H E7
RST 20H: get the high byte of the address in Register A.
0B71
RET NZ C0
If the NZ FLAG is set (the read failed), RETURN with the error code in Register A.
0B72
LD H,A 67
Copy Register A (the high byte) into Register H: Register Pair HL = the address.
0B73
RET C9
RETURN with the Z FLAG set and Register Pair HL = the address; for the transfer record this ends the load.
0B74H - RST 20H: Get the Next Byte of the File from Floppy Disk
The routine RST 20H reaches through 4009H while the vector holds 0B74H. Register Pair DE points into the 256-byte sector buffer at 4300H-43FFH; when Register E is 00H (the start of the file, or after the last byte of the buffer) the next sector of the file is read first. Returns Register A = the byte with the Z FLAG set, or an error code with NZ. Register Pair BC and Register Pair HL are kept.
0B74
PUSH BC C5
Save Register Pair BC on the stack; the sector read changes it.
0B75
PUSH HL E5
Save Register Pair HL on the stack; the sector read changes it.
0B76
LD A,E 7B
Copy Register E, the low byte of the buffer pointer, into Register A.
0B77
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set when the buffer is used up.
0B78
If the NZ FLAG is set (bytes left in the buffer), JUMP to 0B82H.
0B7A
GOSUB to 0B88H to read the next sector of the file into 4300H (the Z FLAG is always set here).
0B7D
If the NZ FLAG is set (the read failed), JUMP to 0B85H to return the error code in Register A.
0B7F
LD DE,4300H 11 00 43
Load Register Pair DE with 4300H, the first byte of the sector just read.
0B82
XOR A AF
Set Register A to 00H (XOR A), which sets the Z FLAG for the return.
0B83
LD A,(DE) 1A
Fetch the byte at the address in Register Pair DE (the buffer) into Register A.
0B84
INC DE 13
INCrement Register Pair DE to the next byte of the buffer; Register E becomes 00H after 43FFH.
0B85
POP HL E1
Restore Register Pair HL from the stack, as the caller had it.
0B86
POP BC C1
Restore Register Pair BC from the stack, as the caller had it.
0B87
RET C9
RETURN with the byte (or the error code) in Register A.
0B88H - Read the Next Sector of the File
4060H counts the sectors left in the current extent; at 00H the next extent is set up at 0BB7H. 405EH is the next sector within the cylinder (0-17, or 0-35 on a two-sided disk) and 4062H the cylinder.
0B88
LD HL,4060H 21 60 40
Load Register Pair HL with 4060H, the number of sectors left in the extent.
0B8B
LD A,(HL) 7E
Fetch it (at Register Pair HL) into Register A.
0B8C
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set when the extent is used up.
0B8D
If the NZ FLAG is set (sectors left), JUMP to 0B93H.
0B8F
GOSUB to 0BB7H to set up the next extent of the file.
0B92
RET NZ C0
If the NZ FLAG is set (no more extents), RETURN with error 02H in Register A.
0B93
DEC (HL) 35
DECrement the count at 4060H (Register Pair HL) for the sector about to be read.
0B94
LD B,12H 06 12
Load Register B with 12H (18), the sectors per cylinder of a one-sided disk.
0B96
LD A,(405FH) 3A 5F 40
Fetch 405FH, the number of sides, into Register A.
0B99
DEC A 3D
DECrement Register A: the Z FLAG is set for one side.
0B9A
If the Z FLAG is set, JUMP to 0B9EH with Register B = 18.
0B9C
LD B,24H 06 24
Load Register B with 24H (36), the sectors per cylinder of a two-sided disk.
0B9E
LD A,(405EH) 3A 5E 40
Fetch 405EH, the next sector within the cylinder, into Register A.
0BA1
CP B B8
Compare Register A against Register B (the sectors per cylinder): the Z FLAG is set past the last sector.
0BA2
If the NZ FLAG is set, JUMP to 0BACH with Register A = the sector.
0BA4
LD A,(4062H) 3A 62 40
Fetch 4062H, the cylinder of the sector just read, into Register A.
0BA7
INC A 3C
INCrement Register A to the next cylinder of the extent.
0BA8
LD (4062H),A 32 62 40
Store Register A (the next cylinder) at 4062H.
0BAB
XOR A AF
Set Register A to 00H (XOR A), sector 0 of the new cylinder.
0BAC
LD C,A 4F
Copy Register A (the sector) into Register C for the read.
0BAD
INC A 3C
INCrement Register A to the sector after the one to be read.
0BAE
LD (405EH),A 32 5E 40
Store Register A at 405EH, the next sector within the cylinder.
0BB1
LD A,(4062H) 3A 62 40
Fetch 4062H, the cylinder to read, into Register A.
0BB4
LD E,A 5F
Copy Register A (the cylinder) into Register E.
0BB5
JUMP to 0C0CH to read sector Register C of cylinder Register E into 4300H; its RETURN goes back to 0B7DH.
0BB7H - Set Up the Next Extent
Index Register IX steps two bytes to the next extent of the copied entry. Its first byte is the cylinder (FEH or FFH: no more extents, error 02H, ROM Image Can't Be Loaded - Too Many Extents). In the second byte, bits 7-5 give the first granule within the cylinder and bits 4-0 the number of granules (stored less 1 when 405CH is 00H). The extent's first sector goes to 405EH and its length in sectors to 4060H.
0BB7
INC IX DD 23
INCrement Index Register IX, the first of two steps to the next extent.
0BB9
INC IX DD 23
INCrement Index Register IX again: it points to the next extent.
0BBB
LD A,(IX+00H) DD 7E 00
Fetch the extent's first byte, +00H (at Index Register IX), the cylinder, into Register A.
0BBE
LD B,A 47
Copy Register A (the extent's cylinder byte) into Register B.
0BBF
AND FEH E6 FE
Clear bit 0 of Register A (AND FEH), so FEH and FFH both become FEH.
0BC1
CP FEH FE FE
Compare Register A against FEH: the Z FLAG is set for FEH and FFH, the ends of the extent list.
0BC3
If the NZ FLAG is set (an extent), JUMP to 0BC9H.
0BC5
LD A,02H 3E 02
Load Register A with 02H, the error code for ROM Image Can't Be Loaded - Too Many Extents.
0BC7
OR A B7
Set the flags from Register A (OR A): NZ, since Register A is 02H.
0BC8
RET C9
RETURN with error 02H in Register A and the NZ FLAG set.
0BC9
LD A,B 78
Copy Register B (the cylinder) into Register A.
0BCA
LD (4062H),A 32 62 40
Store Register A at 4062H, the cylinder of the extent.
0BCD
LD A,(IX+01H) DD 7E 01
Fetch the extent's second byte, +01H (at Index Register IX), into Register A.
0BD0
LD E,A 5F
Copy Register A (the extent's second byte) into Register E for the granule count at 0BE0H.
0BD1
AND E0H E6 E0
Keep bits 7-5 of Register A (AND E0H), the first granule.
0BD3
RLCA 07
Rotate Register A left (RLCA), the first of three: bit 7 moves to bit 0.
0BD4
RLCA 07
Rotate Register A left (RLCA), the second of three: bit 6 moves to bit 0.
0BD5
RLCA 07
Rotate Register A left (RLCA) a third time: bits 7-5 are now bits 2-0, the granule number 0-7.
0BD6
LD B,A 47
Copy Register A (the granule number) into Register B.
0BD7
LD A,(4063H) 3A 63 40
Fetch 4063H, the sectors per granule, into Register A.
0BDA
GOSUB to 0C02H: Register A = Register A x Register B, the first sector of the extent within the cylinder.
0BDD
LD (405EH),A 32 5E 40
Store Register A at 405EH, the next sector within the cylinder.
0BE0
LD A,E 7B
Copy Register E (the second byte of the extent) into Register A.
0BE1
AND 1FH E6 1F
Keep bits 4-0 of Register A (AND 1FH), the granule count field.
0BE3
LD B,A 47
Copy Register A (the granule count field) into Register B.
0BE4
LD A,(405CH) 3A 5C 40
Fetch 405CH (00H for the normal mark layout, 01H for the deleted mark layout) into Register A.
0BE7
XOR 01H EE 01
Flip bit 0 of Register A (XOR 01H): 01H when 405CH is 00H, 00H when it is 01H.
0BE9
ADD A,B 80
ADD Register B (the granule count field) to Register A: the number of granules in the extent.
0BEA
LD B,A 47
Copy Register A (the granules) into Register B.
0BEB
LD A,(4063H) 3A 63 40
Fetch 4063H, the sectors per granule, into Register A.
0BEE
GOSUB to 0C02H: Register A = Register A x Register B, the number of sectors in the extent.
0BF1
LD (4060H),A 32 60 40
Store Register A at 4060H, the sectors left in the extent.
0BF4
XOR A AF
Set Register A to 00H (XOR A), which sets the Z FLAG: success.
0BF5
RET C9
RETURN with the Z FLAG set: the extent is set up.
0BF6H - Compare Names
Compares Register B bytes at Register Pair DE with those at Register Pair HL. A % (25H) at Register Pair DE matches any character. Returns the Z FLAG set when all match.
0BF6
LD A,(DE) 1A
Fetch the next byte of the pattern (at Register Pair DE) into Register A.
0BF7
CP 25H FE 25
Compare Register A against 25H, the % character.
0BF9
If the Z FLAG is set (%), JUMP to 0BFDH: any character matches.
0BFB
CP (HL) BE
Compare Register A against the byte of the name at Register Pair HL.
0BFC
RET NZ C0
If the NZ FLAG is set (they differ), RETURN with the NZ FLAG set.
0BFD
INC DE 13
INCrement Register Pair DE to the next pattern byte.
0BFE
INC HL 23
INCrement Register Pair HL to the next name byte.
0BFF
DECrement Register B and LOOP back to 0BF6H until all bytes are compared.
0C01
RET C9
RETURN with the Z FLAG set: the names at Register Pair DE and Register Pair HL match.
0C02H - Multiply
Returns Register A = Register A x Register B by adding Register A to itself Register B times (Register C keeps the multiplicand). Register B = 00H returns 00H.
0C02
LD C,A 4F
Copy Register A (the multiplicand) into Register C.
0C03
LD A,B 78
Copy Register B (the multiplier) into Register A.
0C04
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set when Register B is 00H.
0C05
RET Z C8
If the Z FLAG is set, RETURN with Register A = 00H.
0C06
XOR A AF
Set Register A to 00H (XOR A), the sum the loop adds to.
0C07
ADD A,C 81
ADD Register C (the multiplicand) to Register A.
0C08
DECrement Register B and LOOP back to 0C07H until it is 00H.
0C0A
RET C9
RETURN with Register A = the product (the low 8 bits).
0C0BH - Read a Floppy Sector into 4300H
Reads sector Register A (or Register C when entered at 0C0CH) of cylinder Register E from floppy disk drive 0 into 4300H with RST 08H function 0CH.
0C0B
LD C,A 4F
Copy Register A (the sector) into Register C.
0C0C
LD HL,4300H 21 00 43
Load Register Pair HL with 4300H, the sector buffer.
0C0F
LD B,0CH 06 0C
Load Register B with 0CH, the RST 08H read function.
0C11
LD A,01H 3E 01
Load Register A with 01H, the device code for the floppy disk.
0C13
RST 08H CF
RST 08H: read sector Register C of cylinder Register E into Register Pair HL (4300H). Register A returns 00H with the Z FLAG set, or an error code with NZ; Register C the status of the read.
0C14
RET C9
RETURN with the result of RST 08H in Register A and the flags.
0C15H - ARCNET Board Found
Called from 016BH when port B6H returns the 55H written to it. This ROM version has no ARCNET boot, so it shows error 1 and halts.
0C15
LD A,01H 3E 01
Load Register A with 01H, the error code for Arcnet Boot Is Not Available.
0C17
JUMP to 0151H to show the error message and halt.
0C1AH - Boot over the RS-232 Port (Right SHIFT)
Sets the UART for 8 data bits, shows Not Ready until bit 5 of port E8H reads 0, then points RST 20H at the RS-232 receive routine. It tries the 16 baud rates from the fastest down until it receives eleven bytes of 55H in a row, shows and sends Found Baud Rate, waits for a byte of FFH, shows and sends Loading, and loads a program file with RST 28H, which it runs at its transfer address. A receive error shows Error and a letter for the error bits, sends Error, and starts again.
0C1A
LD A,04H 3E 04
Load Register A with 04H, the boot type of the RS-232 boot.
0C1C
LD (4055H),A 32 55 40
Store Register A (04H) at 4055H, the boot type. The ROM does not read it again; it is left in RAM for the booted program.
0C1F
LD A,64H 3E 64
Load Register A with 64H (0110 0100) for the UART control register: bits 6-5 = 11 (8 data bits), bit 4 = 0 (1 stop bit), bit 3 = 0 (the parity bit of the port, 0 = parity on), bit 7 = 0 (odd parity), bit 2 = 1 (no break), bits 1-0 = 00 (RTS and DTR on). Also the restart point after an error (0CA1H).
0C21
OUT (EAH),A D3 EA
OUTput Register A (64H) to port EAH, the UART control register.
0C23
OR A B7
Set the flags from Register A (OR A): NZ, so RST 18H takes the list's first word as the screen offset.
0C24
LD HL,0CD4H 21 D4 0C
Load Register Pair HL with 0CD4H, the Not Ready list.
0C27
RST 18H DF
RST 18H: show the list at Register Pair HL; the NZ FLAG makes 0255H load Register Pair DE from its first word (0000H), so Not Ready is shown at the top left of the screen.
0C28
IN A,(E8H) DB E8
INput port E8H, the RS-232 status, into Register A.
0C2A
AND 20H E6 20
Keep bit 5 of Register A (AND 20H), the Carrier Detect line: the Z FLAG is set when it reads 0.
0C2C
If the NZ FLAG is set (bit 5 reads 1), LOOP back to 0C28H.
0C2E
LD DE,0000H 11 00 00
Load Register Pair DE with 0000H, the screen offset of row 0, column 0.
0C31
LD HL,0CDCH 21 DC 0C
Load Register Pair HL with 0CDCH, three spaces.
0C34
RST 10H D7
RST 10H: show the text at Register Pair HL (three spaces) at the offset in Register Pair DE, which covers Not and leaves Ready on the screen. Register A returns 00H.
0C35
LD HL,0CA4H 21 A4 0C
Load Register Pair HL with 0CA4H, the RS-232 receive routine.
0C38
LD (400AH),HL 22 0A 40
Store Register Pair HL (0CA4H) at 400AH-400BH, the operand of the RST 20H vector at 4009H: RST 20H now gets its bytes from the RS-232 port.
0C3B
LD HL,4057H 21 57 40
Load Register Pair HL with 4057H, the baud rate code.
0C3EH - Find the Baud Rate
Starts at code FFH (the fastest rate for both transmit and receive) and steps down by 11H to 00H, then wraps to FFH. At each rate it reads up to ten bytes; a byte of 55H moves to 0C57H, which needs ten more 55H bytes in a row or starts again at FFH. The receive routine waits for a byte without a time limit.
0C3E
LD A,FFH 3E FF
Load Register A with FFH, the first baud rate code: 0FH for transmit (bits 7-4) and receive (bits 3-0).
0C40
LD (HL),A 77
Store Register A (the baud rate code) at the address in Register Pair HL (4057H). The ROM does not read it back after the search; it is left in RAM for the booted program.
0C41
OUT (E9H),A D3 E9
OUTput Register A to port E9H, the baud rate generator: transmit and receive at the same rate.
0C43
OUT (E8H),A D3 E8
OUTput Register A to port E8H: any write resets the UART.
0C45
LD B,0AH 06 0A
Load Register B with 0AH (10), the number of bytes tried at this rate.
0C47
RST 20H E7
RST 20H: get a byte from the RS-232 port (0CA4H) in Register A, or NZ for a receive error.
0C48
If the NZ FLAG is set (a receive error), JUMP to 0C4EH to count the try.
0C4A
CP 55H FE 55
Compare Register A (the byte received) against 55H (0101 0101), the byte the sender repeats.
0C4C
If the Z FLAG is set (55H), JUMP to 0C57H to check for nine more.
0C4E
DECrement Register B and LOOP back to 0C47H until ten bytes are tried.
0C50
LD A,(HL) 7E
Fetch the baud rate code (at Register Pair HL, 4057H) into Register A.
0C51
SUB 11H D6 11
SUBtract 11H from Register A, one step slower for both transmit and receive; below 00H the CARRY FLAG is set.
0C53
If the NO CARRY FLAG is set, JUMP to 0C40H to try that rate.
0C55
JUMP to 0C3EH to start again at the fastest rate.
0C57
LD B,0AH 06 0A
Load Register B with 0AH (10), the number of further 55H bytes that must follow the one just received (eleven in a row in all).
0C59
RST 20H E7
RST 20H: get a byte from the RS-232 port in Register A, or NZ for a receive error.
0C5A
If the NZ FLAG is set (a receive error), JUMP to 0C3EH to start the search again.
0C5C
CP 55H FE 55
Compare Register A (the byte received) against 55H.
0C5E
If the NZ FLAG is set (another byte), JUMP to 0C3EH to start the search again.
0C60
DECrement Register B and LOOP back to 0C59H for the next byte.
0C62
LD A,(HL) 7E
Fetch the baud rate code (at Register Pair HL, 4057H) into Register A.
0C63
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the receive rate code 00H-0FH.
0C65
GOSUB to 0CBEH to store the letter A-P for the code at 4068H.
0C68
LD HL,0CE0H 21 E0 0C
Load Register Pair HL with 0CE0H, the Found Baud Rate list.
0C6B
RST 18H DF
RST 18H: show the list at Register Pair HL; the NZ FLAG from 0CBEH makes 0255H load Register Pair DE from its first word (0184H, row 6, column 4): Found Baud Rate and the letter at 4068H.
0C6C
LD HL,0CC4H 21 C4 0C
Load Register Pair HL with 0CC4H, the text Found Baud Rate.
0C6F
GOSUB to 0CB0H to send the text at Register Pair HL (Found Baud Rate) over the RS-232 port.
0C72
IN A,(EBH) DB EB
INput port EBH, the UART data register, into Register A, dropping any byte received meanwhile.
0C74
RST 20H E7
RST 20H: get a byte from the RS-232 port in Register A, or NZ for a receive error.
0C75
If the NZ FLAG is set (a receive error), JUMP to 0C8BH to report it.
0C77
CP FFH FE FF
Compare Register A against FFH, the byte that starts the file.
0C79
If the NZ FLAG is set (another byte), LOOP back to 0C74H.
0C7B
LD DE,0244H 11 44 02
Load Register Pair DE with 0244H, the screen offset of row 9, column 4.
0C7E
LD HL,04BCH 21 BC 04
Load Register Pair HL with 04BCH, the text Loading. In version 1(15) this instruction is at 0C7BH and loads 04BAH, the text Loading ROM Image, so that version shows and sends Loading ROM Image for an RS-232 boot.
0C81
PUSH HL E5
Save Register Pair HL (04BCH) on the stack; RST 10H moves it past the text.
0C82
RST 10H D7
RST 10H: show the text at Register Pair HL (Loading) at the offset in Register Pair DE (0244H); Register A returns 00H.
0C83
POP HL E1
Restore Register Pair HL (04BCH) from the stack.
0C84
GOSUB to 0CB0H to send the text at Register Pair HL (Loading) over the RS-232 port.
0C87
RST 28H EF
RST 28H: load the program file through RST 20H, which now reads the RS-232 port (0B48H). Register Pair HL returns the transfer address with the Z FLAG set, or NZ on a receive error.
0C88
If the NZ FLAG is set (a receive error), JUMP to 0C8BH to report it.
0C8A
JP (HL) E9
JUMP to the address in Register Pair HL, the program's transfer address. The boot ROM is still switched in and the CPU runs at 4 MHz.
0C8BH - RS-232 Receive Error
Entered with Register A = the error bits of the UART status (port EAH bits 5-3, kept by 0CAAH). They are shifted to bits 2-0 and turned into a letter: B parity, C framing, E overrun (D, F, G or H for more than one). The screen shows Error and the letter at row 15, Error is sent, the keyboard is scanned for a while and the RS-232 boot starts again.
0C8B
RRCA 0F
Rotate Register A right (RRCA), the first of three.
0C8C
RRCA 0F
Rotate Register A right (RRCA), the second of three.
0C8D
RRCA 0F
Rotate Register A right (RRCA) a third time: bit 3 parity error is now bit 0, bit 4 framing error bit 1, bit 5 overrun error bit 2.
0C8E
GOSUB to 0CBEH to store the letter for the value in Register A at 4068H.
0C91
GOSUB to 0206H to clear the screen before the error line is shown.
0C94
PUSH BC C5
Save Register Pair BC on the stack, the count for the keyboard scan at 0CA0H. The LDIR of 0206H has just left it at 0000H, so RST 30H makes 65536 scans.
0C95
LD HL,0CE8H 21 E8 0C
Load Register Pair HL with 0CE8H, the error list.
0C98
RST 18H DF
RST 18H: show the list at Register Pair HL; the NZ FLAG from 0CBEH makes 0255H load Register Pair DE from its first word (03C4H, row 15, column 4): Error, the comma and the letter at 4068H.
0C99
LD HL,0587H 21 87 05
Load Register Pair HL with 0587H, the text Error.
0C9C
GOSUB to 0CB0H to send the text at Register Pair HL (Error) over the RS-232 port.
0C9F
POP BC C1
Restore Register Pair BC (0000H) from the stack, the count for RST 30H.
0CA0
RST 30H F7
RST 30H: scan the keyboard the number of times in Register Pair BC (0000H, so 65536 scans; 083EH); ENTER ends the scan at once.
0CA1
JUMP to 0C1FH to start the RS-232 boot again.
0CA4H - Receive a Byte from the RS-232 Port
RST 20H comes here once 0C38H has changed its vector. Waits without a time limit until the UART has a byte, then returns NZ with Register A = the error bits (5 overrun, 4 framing, 3 parity) if any is set, or the byte with the Z FLAG set.
0CA4
IN A,(EAH) DB EA
INput port EAH, the UART status, into Register A.
0CA6
BIT 7,A CB 7F
Test bit 7 of Register A, data received: the Z FLAG is set while no byte has arrived.
0CA8
If the Z FLAG is set (no byte yet), LOOP back to 0CA4H.
0CAA
AND 38H E6 38
Keep bits 5, 4 and 3 of Register A (AND 38H), the overrun, framing and parity error bits.
0CAC
RET NZ C0
If the NZ FLAG is set (an error), RETURN with the error bits in Register A.
0CAD
IN A,(EBH) DB EB
INput port EBH, the UART data register, into Register A: the byte received. The Z FLAG from 0CAAH stays set.
0CAF
RET C9
RETURN with the byte in Register A and the Z FLAG set.
0CB0H - Send a Text over the RS-232 Port
Sends the bytes at Register Pair HL up to the 00H terminator (which is not sent), waiting before each one until the UART's transmit buffer is empty.
0CB0
IN A,(EAH) DB EA
INput port EAH, the UART status, into Register A.
0CB2
AND 40H E6 40
Keep bit 6 of Register A (AND 40H), transmit buffer empty: the Z FLAG is set while the UART is still sending.
0CB4
If the Z FLAG is set (still sending), LOOP back to 0CB0H.
0CB6
LD A,(HL) 7E
Fetch the next byte of the text (at Register Pair HL) into Register A.
0CB7
OR A B7
Set the flags from Register A (OR A): the Z FLAG is set at the 00H terminator.
0CB8
RET Z C8
If the Z FLAG is set, RETURN: the whole text is sent.
0CB9
OUT (EBH),A D3 EB
OUTput Register A (the byte) to port EBH, the UART data register, to send it.
0CBB
INC HL 23
INCrement Register Pair HL to the next byte of the text.
0CBC
LOOP back to 0CB0H to wait for the UART and send the next byte.
0CBEH - Make a Letter of a Code
Adds 41H to Register A (00H gives A, 0FH gives P) and stores it at 4068H, where the lists at 0CE0H and 0CE8H show it; 4069H is 00H (cleared at 00F5H), which ends it as a text. The ADD leaves the NZ FLAG set for the RST 18H calls that follow.
0CBE
ADD A,41H C6 41
ADD 41H (the letter A) to Register A, making the code 00H-0FH a letter A-P; the result is not zero, so the NZ FLAG is set.
0CC0
LD (4068H),A 32 68 40
Store Register A (the letter A-P) at 4068H, ended as a text by the 00H at 4069H.
0CC3
RET C9
RETURN with the NZ FLAG set for the RST 18H call that follows.
0CC4-0CD4
DEFM "Found Baud Rate ",00H 46 6F 75 6E 64 20 42 61 75 64 20 52 61 74 65 20 00
The text Found Baud Rate (with a trailing space) and its 00H terminator. 0C6CH sends it over the RS-232 port and the list at 0CE0H shows it before the letter of the rate.
0CD5H - RS-232 Boot Message Lists
Three lists for RST 18H called with the NZ FLAG, so each starts with its screen offset. The Not Ready list at 0CD5H is entered at 0CD4H: its offset word is 0000H, made of the terminator of Found Baud Rate at 0CD4H and the byte at 0CD5H.
0CD5
DEFB 00H 00
The high byte of the offset word 0000H at 0CD4H-0CD5H (its low byte is the terminator of Found Baud Rate): the Not Ready list (0C24H) starts at row 0, column 0.
0CD6-0CD7
DEFW 04D4H D4 04
Not Ready list: the address of the text Not at 04D4H, the last 4 characters of the text Was Not at 04D0H.
0CD8-0CD9
DEFW 0550H 50 05
Not Ready list: the address of the text Ready at 0550H, the last 6 characters of the text When You Are Ready at 0543H.
0CDA-0CDB
DEFW FFFFH FF FF
Not Ready list: FFFFH, the end of the list, where RST 18H returns.
0CDC-0CDF
DEFM " ",00H 20 20 20 00
Three spaces and a 00H terminator. 0C31H shows them at the top left of the screen over Not, leaving Ready, once bit 5 of port E8H reads 0.
0CE0-0CE1
DEFW 0184H 84 01
Found Baud Rate list (0C68H): screen offset 0184H, row 6, column 4 (video RAM 3D84H).
0CE2-0CE3
DEFW 0CC4H C4 0C
Found Baud Rate list: the address of the text Found Baud Rate at 0CC4H.
0CE4-0CE5
DEFW 4068H 68 40
Found Baud Rate list: the address 4068H in RAM, where 0CBEH stored the letter A-P of the receive rate, ended by the 00H at 4069H.
0CE6-0CE7
DEFW FFFFH FF FF
Found Baud Rate list: FFFFH, the end of the list.
0CE8-0CE9
DEFW 03C4H C4 03
Error list (0C95H): screen offset 03C4H, row 15, column 4 (video RAM 3FC4H).
0CEA-0CEB
DEFW 0587H 87 05
Error list: the address of the text Error at 0587H, the last 5 characters of the text Seek Error at 0582H.
0CEC-0CED
DEFW 058DH 8D 05
Error list: the address of the text at 058DH, a comma and a space.
0CEE-0CEF
DEFW 4068H 68 40
Error list: the address 4068H in RAM, where 0CBEH stored the letter for the receive error bits, ended by the 00H at 4069H.
0CF0-0CF1
DEFW FFFFH FF FF
Error list: FFFFH, the end of the list, where RST 18H returns.
0CF2H - Dynamic RAM Test (Period Key)
Reached from 00D9H when the period key is held at reset. It tests all of RAM 4000H-FFFFH again and again until RESET: fill with 55H and check, fill with AAH and check, then 256 passes of a modified address test that writes the value (pattern XOR low byte XOR high byte) at each address. The stack is at the bottom right of the screen (3FFEH), in video RAM, since the test overwrites all of main RAM; the label Stack at row 15, column 52 marks it. Index Register IX holds the address to resume at after the screen clear (0D04H) and after an error display (0E0AH), and Index Register IY the screen row of the last error.
0CF2
LD SP,3FFEH 31 FE 3F
Load the Stack Pointer with 3FFEH, the last two bytes of video RAM: the RAM under test (4000H-FFFFH) holds no stack.
0CF5
LD IY,3C80H FD 21 80 3C
Load Index Register IY with 3C80H, the screen row above the first error line; 0E0AH adds 40H (one row) before each error, so the first goes to row 3 (3CC0H).
0CF9
LD A,08H 3E 08
Load Register A with 08H for port ECH: only bit 3 set.
0CFB
OUT (ECH),A D3 EC
OUTput Register A (08H) to port ECH: the CPU clock goes to 2 MHz and the external I/O bus is disabled.
| Port ECH: 08H (00001000) | | Function Description |
| 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | | Bit 6 = 0: CPU clock 2 MHz Bit 5 = 0: video waits off Bit 4 = 0: external I/O bus disabled Bit 3 = 1: alternate character set Bit 2 = 0: normal width characters Bit 1 = 0: cassette motor bit |
0CFD
XOR A AF
Set Register A to 00H (XOR A), the value for port 84H.
0CFE
OUT (84H),A D3 84
OUTput Register A (00H) to port 84H: memory map mode 0, video page 0, 64 x 16 display.
0D00
LD IX,0D14H DD 21 14 0D
Load Index Register IX with 0D14H, where the screen clear at 0D04H goes when it is done.
0D04H - Clear the Screen and Go to Index Register IX
Fills video RAM 3C00H-3FFFH with spaces without a CALL (the stack is in video RAM) and jumps to the address in Index Register IX.
0D04
LD A,20H 3E 20
Load Register A with 20H, the space character. Also the entry from 0D3AH.
0D06
LD DE,3C00H 11 00 3C
Load Register Pair DE with 3C00H, the first byte of video RAM.
0D09
LD (DE),A 12
Store Register A (a space) at the address in Register Pair DE (3C00H).
0D0A
LD H,D 62
Copy Register D (3CH) into Register H, the high byte of the source of the LDIR.
0D0B
LD L,E 6B
Copy Register E (00H) into Register L: Register Pair HL = 3C00H, the source of the LDIR.
0D0C
LD BC,03FFH 01 FF 03
Load Register Pair BC with 03FFH (1023), the bytes after the first.
0D0F
INC DE 13
INCrement Register Pair DE to 3C01H, one byte past Register Pair HL.
0D10
LDIR ED B0
Copy the byte at Register Pair HL to Register Pair DE 1023 times, counting Register Pair BC down to 0000H: the screen is blank.
0D12
JP (IX) DD E9
JUMP to the address in Index Register IX (0D14H or 0D3DH).
0D14H - Show the Title and Wait for ENTER
Shows Dynamic RAM Test, Press <Enter> To Begin And RESET To Exit and Any Errors Detected Will Be Displayed, then waits until ENTER is the only key down in row 3840H.
0D14
LD HL,0ED2H 21 D2 0E
Load Register Pair HL with 0ED2H, the text Dynamic RAM Test.
0D17
LD DE,3C00H 11 00 3C
Load Register Pair DE with 3C00H, row 0, column 0.
0D1A
GOSUB to 0249H to show the text at Register Pair HL at the screen address in Register Pair DE.
0D1D
LD HL,0EE3H 21 E3 0E
Load Register Pair HL with 0EE3H, the text Press <Enter> To Begin And RESET To Exit.
0D20
LD DE,3C40H 11 40 3C
Load Register Pair DE with 3C40H, row 1, column 0.
0D23
GOSUB to 0249H to show the text at Register Pair HL at the screen address in Register Pair DE.
0D26
LD HL,0F0CH 21 0C 0F
Load Register Pair HL with 0F0CH, the text Any Errors Detected Will Be Displayed.
0D29
LD DE,00C0H 11 C0 00
Load Register Pair DE with 00C0H, the screen offset of row 3, column 0. The display routine at 0249H ORs 3CH into Register D, so the text goes to video RAM 3CC0H.
0D2C
GOSUB to 0249H to show the text at Register Pair HL at the screen offset in Register Pair DE.
0D2F
LD A,(3840H) 3A 40 38
Fetch keyboard row 3840H (bit 0 ENTER, bit 1 CLEAR, bit 2 BREAK, bits 3-6 the arrow keys, bit 7 SPACE) into Register A.
0D32
CP 01H FE 01
Compare Register A against 01H: the Z FLAG is set when ENTER is the only key of the row that is down.
0D34
If the NZ FLAG is set (ENTER is not the only key down), LOOP back to 0D2FH.
0D36
LD IX,0D3DH DD 21 3D 0D
Load Index Register IX with 0D3DH, where the screen clear goes next.
0D3A
JUMP to 0D04H to clear the screen; it goes on at 0D3DH through Index Register IX.
0D3DH - The Column Headings and the Stack Label
Row 2 gets the headings of the error lines, Address Retry Read Written Mask; row 15, column 52 gets Stack, next to the stack bytes at the end of video RAM.
0D3D
LD HL,0F32H 21 32 0F
Load Register Pair HL with 0F32H, the text Address Retry Read Written Mask.
0D40
LD DE,3C80H 11 80 3C
Load Register Pair DE with 3C80H, row 2, column 0.
0D43
GOSUB to 0249H to show the text at Register Pair HL at the screen address in Register Pair DE.
0D46
LD HL,0F92H 21 92 0F
Load Register Pair HL with 0F92H, the text Stack.
0D49
LD DE,03F4H 11 F4 03
Load Register Pair DE with 03F4H, the screen offset of row 15, column 52; 0249H makes it 3FF4H.
0D4C
GOSUB to 0249H to show the text at Register Pair HL at the screen offset in Register Pair DE.
0D4FH - Round 1: Pattern 55H
Shows Test Pattern Is 55h on row 1, fills 4000H-FFFFH with 55H and reads back 4000H-FFFEH (the LDIR writes FFFFH but the check loop runs BFFFH times). Each byte that differs is shown by 0E0AH, which comes back through Index Register IX. 0E07H jumps back here after the modified address test, so the whole test repeats until RESET.
0D4F
LD HL,0F56H 21 56 0F
Load Register Pair HL with 0F56H, the text Test Pattern Is 55h. Also the restart point from 0E07H.
0D52
LD DE,3C40H 11 40 3C
Load Register Pair DE with 3C40H, row 1, column 0.
0D55
GOSUB to 0249H to show the text at Register Pair HL at the screen address in Register Pair DE.
0D58
LD HL,4000H 21 00 40
Load Register Pair HL with 4000H, the first byte of RAM tested.
0D5B
LD D,H 54
Copy Register H (40H) into Register D, the high byte of the destination.
0D5C
LD E,L 5D
Copy Register L (00H) into Register E: Register Pair DE = 4000H.
0D5D
LD BC,BFFFH 01 FF BF
Load Register Pair BC with BFFFH, the number of bytes after 4000H, so the fill reaches FFFFH.
0D60
LD A,55H 3E 55
Load Register A with 55H (0101 0101), the first test pattern.
0D62
LD (DE),A 12
Store Register A (55H) at the address in Register Pair DE (4000H).
0D63
INC DE 13
INCrement Register Pair DE to 4001H, one byte past Register Pair HL.
0D64
LDIR ED B0
Copy the byte at Register Pair HL to Register Pair DE BFFFH times, counting Register Pair BC down to 0000H: 55H is carried through 4001H-FFFFH. Register Pair DE ends at 0000H, so Register D = 00H, the Mask column of any error in this round.
0D66
LD HL,4000H 21 00 40
Load Register Pair HL with 4000H, the first byte to check.
0D69
LD BC,BFFFH 01 FF BF
Load Register Pair BC with BFFFH, the number of bytes checked, 4000H-FFFEH.
0D6C
LD A,55H 3E 55
Load Register A with 55H, the value each byte should hold.
0D6E
LD E,(HL) 5E
Fetch the byte at the address in Register Pair HL into Register E.
0D6F
CP E BB
Compare Register A (55H) against Register E (the byte read).
0D70
LD IX,0D77H DD 21 77 0D
Load Index Register IX with 0D77H, where the error display comes back to. The flags of the CP are unchanged.
0D74
If the NZ FLAG is set (the byte differs), JUMP to 0E0AH to show the error line (Register Pair HL the address, Register E the byte read, Register A the pattern).
0D77
DEC BC 0B
DECrement Register Pair BC, the bytes left to check.
0D78
INC HL 23
INCrement Register Pair HL to the next address.
0D79
LD A,C 79
Copy Register C (the low byte of the count) into Register A.
0D7A
OR B B0
OR Register B into Register A: the Z FLAG is set when Register Pair BC is 0000H.
0D7B
If the NZ FLAG is set, LOOP back to 0D6CH to check the next byte.
0D7DH - Round 2: Pattern AAH
Changes the pattern shown on row 1 to AAh, fills 4000H-FFFFH with AAH and reads back 4000H-FFFEH in the same way.
0D7D
LD HL,0F6AH 21 6A 0F
Load Register Pair HL with 0F6AH, the text AAh.
0D80
LD DE,3C50H 11 50 3C
Load Register Pair DE with 3C50H, row 1, column 16, where 55h stands after Test Pattern Is.
0D83
GOSUB to 0249H to show the text at Register Pair HL at the screen address in Register Pair DE.
0D86
LD HL,4000H 21 00 40
Load Register Pair HL with 4000H, the first byte of RAM tested.
0D89
LD D,H 54
Copy Register H (40H) into Register D, the high byte of the destination.
0D8A
LD E,L 5D
Copy Register L (00H) into Register E: Register Pair DE = 4000H.
0D8B
LD BC,BFFFH 01 FF BF
Load Register Pair BC with BFFFH, the number of bytes after 4000H.
0D8E
LD A,AAH 3E AA
Load Register A with AAH (1010 1010), the second test pattern.
0D90
LD (DE),A 12
Store Register A (AAH) at the address in Register Pair DE (4000H).
0D91
INC DE 13
INCrement Register Pair DE to 4001H, one byte past Register Pair HL.
0D92
LDIR ED B0
Copy the byte at Register Pair HL to Register Pair DE BFFFH times, counting Register Pair BC down to 0000H: AAH is carried through 4001H-FFFFH, and Register D ends at 00H.
0D94
LD HL,4000H 21 00 40
Load Register Pair HL with 4000H, the first byte to check.
0D97
LD BC,BFFFH 01 FF BF
Load Register Pair BC with BFFFH, the number of bytes checked, 4000H-FFFEH.
0D9A
LD A,AAH 3E AA
Load Register A with AAH, the value each byte should hold.
0D9C
LD E,(HL) 5E
Fetch the byte at the address in Register Pair HL into Register E.
0D9D
CP E BB
Compare Register A (AAH) against Register E (the byte read).
0D9E
LD IX,0DA5H DD 21 A5 0D
Load Index Register IX with 0DA5H, where the error display comes back to. The flags of the CP are unchanged.
0DA2
If the NZ FLAG is set (the byte differs), JUMP to 0E0AH to show the error line.
0DA5
DEC BC 0B
DECrement Register Pair BC, the bytes left to check.
0DA6
INC HL 23
INCrement Register Pair HL to the next address.
0DA7
LD A,C 79
Copy Register C (the low byte of the count) into Register A.
0DA8
OR B B0
OR Register B into Register A: the Z FLAG is set when Register Pair BC is 0000H.
0DA9
If the NZ FLAG is set, JUMP back to 0D9AH to check the next byte.
0DACH - Round 3: Modified Address Test
For each value of Register D from 00H to FFH: shows Modified Address Test ld (hl),mask and two digits on row 1, writes (Register D XOR L XOR H) at every address HL from 4000H to FFFEH, then reads every address back. The first of the two digits comes from Register A, which is 00H after 0249H returns, so it always shows 0; only the low digit of Register D is shown. Every fourth pass (bits 1-0 of Register D zero) port F4H is written with 40H between the write and the check.
0DAC
LD D,00H 16 00
Load Register D with 00H, the first pattern of the modified address test.
0DAE
LD B,D 42
Copy Register D (the pattern) into Register B, since the call to 0249H changes Register D. Also the start of each pass, from 0E05H.
0DAF
LD HL,0F6EH 21 6E 0F
Load Register Pair HL with 0F6EH, the text Modified Address Test ld (hl),mask.
0DB2
LD DE,3C40H 11 40 3C
Load Register Pair DE with 3C40H, row 1, column 0.
0DB5
GOSUB to 0249H to show the text at Register Pair HL at the screen address in Register Pair DE. It returns Register Pair DE = 3C63H, just past the 35 characters, and Register A = 00H.
0DB8
LD H,D 62
Copy Register D (3CH) into Register H, the high byte of the screen position.
0DB9
LD L,E 6B
Copy Register E (63H) into Register L: Register Pair HL = 3C63H, the screen position after the text.
0DBA
LD D,B 50
Copy Register B (the pattern) back into Register D.
0DBB
INC HL 23
INCrement Register Pair HL to 3C64H, leaving one space after mask.
0DBC
RRA 1F
Rotate Register A right (RRA), the first of four, to bring its high digit to bits 3-0. Register A is 00H here (0249H returned on the terminator), not the pattern in Register D.
0DBD
RRA 1F
Rotate Register A right (RRA), the second of four.
0DBE
RRA 1F
Rotate Register A right (RRA), the third of four.
0DBF
RRA 1F
Rotate Register A right (RRA), the fourth: Register A is still 00H.
0DC0
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0DC2
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0DC4
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0DC5
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0DC7
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0DC8
LD (HL),A 77
Store Register A (the digit, always 0) at the screen address in Register Pair HL (3C64H).
0DC9
INC HL 23
INCrement Register Pair HL to 3C65H, the position of the second digit.
0DCA
LD A,D 7A
Copy Register D (the pattern) into Register A.
0DCB
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character. Here it is the low digit of the pattern in Register D.
0DCD
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0DCF
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0DD0
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0DD2
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0DD3
LD (HL),A 77
Store Register A (the low digit of the pattern) at the screen address in Register Pair HL (3C65H).
0DD4
LD HL,4000H 21 00 40
Load Register Pair HL with 4000H, the first byte of RAM written.
0DD7
LD BC,BFFFH 01 FF BF
Load Register Pair BC with BFFFH, the number of bytes written, 4000H-FFFEH.
0DDA
LD A,D 7A
Copy Register D (the pattern) into Register A.
0DDB
XOR L AD
XOR Register L (the low byte of the address) into Register A.
0DDC
XOR H AC
XOR Register H (the high byte of the address) into Register A: the value for this address.
0DDD
LD (HL),A 77
Store Register A at the address in Register Pair HL.
0DDE
INC HL 23
INCrement Register Pair HL to the next address.
0DDF
DEC BC 0B
DECrement Register Pair BC, the bytes left to write.
0DE0
LD A,C 79
Copy Register C (the low byte of the count) into Register A.
0DE1
OR B B0
OR Register B into Register A: the Z FLAG is set when Register Pair BC is 0000H.
0DE2
If the NZ FLAG is set, LOOP back to 0DDAH for the next address.
0DE4
LD A,D 7A
Copy Register D (the pattern) into Register A.
0DE5
AND 03H E6 03
Keep bits 1-0 of Register A (AND 03H): the Z FLAG is set on every fourth pattern (00H, 04H, 08H ... FCH).
0DE7
If the NZ FLAG is set, JUMP to 0DEDH to check the RAM.
0DE9
LD A,40H 3E 40
Load Register A with 40H (0100 0000) for port F4H: bit 6 (wait states) set, no drive select bit.
0DEB
OUT (F4H),A D3 F4
OUTput Register A (40H) to port F4H, the drive select latch, which selects no drive.
0DED
LD HL,4000H 21 00 40
Load Register Pair HL with 4000H, the first byte to check.
0DF0
LD BC,BFFFH 01 FF BF
Load Register Pair BC with BFFFH, the number of bytes checked, 4000H-FFFEH.
0DF3
LD A,D 7A
Copy Register D (the pattern) into Register A.
0DF4
XOR L AD
XOR Register L (the low byte of the address) into Register A.
0DF5
XOR H AC
XOR Register H (the high byte of the address) into Register A: the value this address should hold.
0DF6
LD E,(HL) 5E
Fetch the byte at the address in Register Pair HL into Register E.
0DF7
CP E BB
Compare Register A (the value written) against Register E (the byte read).
0DF8
LD IX,0DFEH DD 21 FE 0D
Load Index Register IX with 0DFEH, where the error display comes back to. The flags of the CP are unchanged.
0DFC
If the NZ FLAG is set (the byte differs), JUMP to 0E0AH to show the error line.
0DFE
INC HL 23
INCrement Register Pair HL to the next address.
0DFF
DEC BC 0B
DECrement Register Pair BC, the bytes left to check.
0E00
LD A,C 79
Copy Register C (the low byte of the count) into Register A.
0E01
OR B B0
OR Register B into Register A: the Z FLAG is set when Register Pair BC is 0000H.
0E02
If the NZ FLAG is set, LOOP back to 0DF3H to check the next address.
0E04
INC D 14
INCrement Register D to the next pattern; it becomes 00H after FFH.
0E05
If the NZ FLAG is set (patterns left), JUMP to 0DAEH for the next pass.
0E07
All 256 patterns done: JUMP to 0D4FH to start the whole test again with 55H.
0E0AH - Show a RAM Error
Entered by a JUMP with Register Pair HL = the failing address, Register E = the byte read, Register A = the value written, Register D = the pattern (00H in rounds 1 and 2) and Index Register IX = the address to go back to. The line goes one row below the last (Index Register IY); from row 15 on, every error is written on row 15. The columns: 1-4 the address, 10-11 the byte read again now (Retry), 17-18 the byte read first (Read), 23-24 the value written (Written), 32-33 the pattern (Mask). The alternate Register Pair AF holds the value written, the alternate Register Pair BC does the row arithmetic and Register I holds a byte while it is converted, since there is no stack to use.
0E0A
EX AF,AF' 08
Exchange Register Pair AF with the alternate AF': the value written and its flags are kept in AF' until 0E95H.
0E0B
EXX D9
EXX: switch to the alternate Register Pair BC, DE and HL, so the count in Register Pair BC and the address in Register Pair HL are kept.
0E0C
LD BC,0040H 01 40 00
Load the alternate Register Pair BC with 0040H, the length of one screen row.
0E0F
ADD IY,BC FD 09
ADD the alternate Register Pair BC (0040H) to Index Register IY: the next row.
0E11
LD BC,C040H 01 40 C0
Load the alternate Register Pair BC with C040H, the same as subtracting 3FC0H.
0E14
ADD IY,BC FD 09
ADD the alternate Register Pair BC (C040H) to Index Register IY: the CARRY FLAG is set when Index Register IY was 3FC0H or more (past row 14).
0E16
If the NO CARRY FLAG is set (still within rows 3-14), JUMP to 0E1CH, which adds 3FC0H back.
0E18
LD IY,0000H FD 21 00 00
Past row 14: load Index Register IY with 0000H, so the ADD at 0E1FH makes it 3FC0H, row 15.
0E1C
LD BC,3FC0H 01 C0 3F
Load the alternate Register Pair BC with 3FC0H.
0E1F
ADD IY,BC FD 09
ADD the alternate Register Pair BC (3FC0H) to Index Register IY: the row the error is written on.
0E21
EXX D9
EXX: switch back from the alternate registers to the main Register Pair BC, DE and HL (the count, the byte read and the pattern, the failing address).
0E22
LD A,H 7C
Copy Register H (the high byte of the failing address) into Register A.
0E23
RRA 1F
Rotate Register A right (RRA), the first of four, to bring the high digit of Register H to bits 3-0.
0E24
RRA 1F
Rotate Register A right (RRA), the second of four.
0E25
RRA 1F
Rotate Register A right (RRA), the third of four.
0E26
RRA 1F
Rotate Register A right (RRA), the fourth: the high digit of Register H is in bits 3-0.
0E27
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0E29
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0E2B
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0E2C
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0E2E
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0E2F
LD (IY+01H),A FD 77 01
Store Register A (the first digit of the address) at column 1 of the error row, +01H (Index Register IY).
0E32
LD A,H 7C
Copy Register H (the high byte of the failing address) into Register A again, for its low digit.
0E33
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0E35
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0E37
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0E38
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0E3A
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0E3B
LD (IY+02H),A FD 77 02
Store Register A (the second digit of the address) at column 2 of the error row, +02H (Index Register IY).
0E3E
LD A,L 7D
Copy Register L (the low byte of the failing address) into Register A.
0E3F
RRA 1F
Rotate Register A right (RRA), the first of four, to bring the high digit of Register L to bits 3-0.
0E40
RRA 1F
Rotate Register A right (RRA), the second of four.
0E41
RRA 1F
Rotate Register A right (RRA), the third of four.
0E42
RRA 1F
Rotate Register A right (RRA), the fourth: the high digit of Register L is in bits 3-0.
0E43
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0E45
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0E47
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0E48
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0E4A
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0E4B
LD (IY+03H),A FD 77 03
Store Register A (the third digit of the address) at column 3 of the error row, +03H (Index Register IY).
0E4E
LD A,L 7D
Copy Register L (the low byte of the failing address) into Register A again, for its low digit.
0E4F
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0E51
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0E53
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0E54
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0E56
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0E57
LD (IY+04H),A FD 77 04
Store Register A (the fourth digit of the address) at column 4 of the error row, +04H (Index Register IY).
0E5A
LD A,(HL) 7E
Fetch the byte at the failing address (Register Pair HL) into Register A again, the Retry value.
0E5B
LD I,A ED 47
Copy Register A (the Retry value) into Register I, which keeps it while its high digit is converted.
0E5D
RRA 1F
Rotate Register A right (RRA), the first of four, to bring the high digit of the Retry value to bits 3-0.
0E5E
RRA 1F
Rotate Register A right (RRA), the second of four.
0E5F
RRA 1F
Rotate Register A right (RRA), the third of four.
0E60
RRA 1F
Rotate Register A right (RRA), the fourth: the high digit of the Retry value is in bits 3-0.
0E61
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0E63
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0E65
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0E66
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0E68
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0E69
LD (IY+0AH),A FD 77 0A
Store Register A (the high digit of the Retry value) at column 10 of the error row, +0AH (Index Register IY).
0E6C
LD A,I ED 57
Copy Register I (the Retry value) back into Register A, for its low digit.
0E6E
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0E70
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0E72
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0E73
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0E75
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0E76
LD (IY+0BH),A FD 77 0B
Store Register A (the low digit of the Retry value) at column 11 of the error row, +0BH (Index Register IY).
0E79
LD A,E 7B
Copy Register E (the byte read when the error was found) into Register A.
0E7A
RRA 1F
Rotate Register A right (RRA), the first of four, to bring the high digit of Register E to bits 3-0.
0E7B
RRA 1F
Rotate Register A right (RRA), the second of four.
0E7C
RRA 1F
Rotate Register A right (RRA), the third of four.
0E7D
RRA 1F
Rotate Register A right (RRA), the fourth: the high digit of Register E is in bits 3-0.
0E7E
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0E80
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0E82
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0E83
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0E85
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0E86
LD (IY+11H),A FD 77 11
Store Register A (the high digit of the byte read) at column 17 of the error row, +11H (Index Register IY).
0E89
LD A,E 7B
Copy Register E (the byte read) into Register A again, for its low digit.
0E8A
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0E8C
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0E8E
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0E8F
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0E91
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0E92
LD (IY+12H),A FD 77 12
Store Register A (the low digit of the byte read) at column 18 of the error row, +12H (Index Register IY).
0E95
EX AF,AF' 08
Exchange Register Pair AF with the alternate AF': Register A = the value written, kept there at 0E0AH.
0E96
LD I,A ED 47
Copy Register A (the value written) into Register I, which keeps it while its high digit is converted.
0E98
RRA 1F
Rotate Register A right (RRA), the first of four, to bring the high digit of the value written to bits 3-0.
0E99
RRA 1F
Rotate Register A right (RRA), the second of four.
0E9A
RRA 1F
Rotate Register A right (RRA), the third of four.
0E9B
RRA 1F
Rotate Register A right (RRA), the fourth: the high digit of the value written is in bits 3-0.
0E9C
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0E9E
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0EA0
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0EA1
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0EA3
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0EA4
LD (IY+17H),A FD 77 17
Store Register A (the high digit of the value written) at column 23 of the error row, +17H (Index Register IY).
0EA7
LD A,I ED 57
Copy Register I (the value written) back into Register A, for its low digit.
0EA9
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0EAB
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0EAD
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0EAE
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0EB0
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0EB1
LD (IY+18H),A FD 77 18
Store Register A (the low digit of the value written) at column 24 of the error row, +18H (Index Register IY).
0EB4
LD A,D 7A
Copy Register D (the pattern) into Register A.
0EB5
RRA 1F
Rotate Register A right (RRA), the first of four, to bring the high digit of Register D to bits 3-0.
0EB6
RRA 1F
Rotate Register A right (RRA), the second of four.
0EB7
RRA 1F
Rotate Register A right (RRA), the third of four.
0EB8
RRA 1F
Rotate Register A right (RRA), the fourth: the high digit of Register D is in bits 3-0.
0EB9
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0EBB
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0EBD
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0EBE
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0EC0
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0EC1
LD (IY+20H),A FD 77 20
Store Register A (the high digit of the pattern) at column 32 of the error row, +20H (Index Register IY).
0EC4
LD A,D 7A
Copy Register D (the pattern) into Register A again, for its low digit.
0EC5
AND 0FH E6 0F
Keep bits 3-0 of Register A (AND 0FH), the hex digit 0-F to convert to a character.
0EC7
ADD A,90H C6 90
ADD 90H to Register A, the first step of the hex digit conversion.
0EC9
DAA 27
Decimal adjust Register A: 90H-99H for 0-9, 00H-05H with the CARRY FLAG set for A-F.
0ECA
ADC A,40H CE 40
ADD 40H and the CARRY FLAG (set for the digits A-F) to Register A.
0ECC
DAA 27
Decimal adjust Register A again: the ASCII digit, 30H-39H (0-9) or 41H-46H (A-F).
0ECD
LD (IY+21H),A FD 77 21
Store Register A (the low digit of the pattern) at column 33 of the error row, +21H (Index Register IY).
0ED0
JP (IX) DD E9
JUMP to the address in Index Register IX (0D77H, 0DA5H or 0DFEH) to go on with the test after the failing byte.
0ED2H - RAM Test Texts, Unused Bytes, Copyright
The texts of the RAM test, 83 unused 00H bytes and the copyright notice in the last 21 bytes of the ROM.
0ED2-0EE2
DEFM "Dynamic RAM Test",00H 44 79 6E 61 6D 69 63 20 52 41 4D 20 54 65 73 74 00
The text Dynamic RAM Test and its 00H terminator, the title the RAM test shows at row 0 (0D14H).
0EE3-0F0B
DEFM "Press <Enter> To Begin And RESET To Exit",00H 50 72 65 73 73 20 3C 45 6E 74 65 72 3E 20 54 6F 20 42 65 67 69 6E 20 41 6E 64 20 52 45 53 45 54 20 54 6F 20 45 78 69 74 00
The text Press <Enter> To Begin And RESET To Exit and its 00H terminator, shown at row 1 (0D1DH) while the test waits for ENTER.
0F0C-0F31
DEFM "Any Errors Detected Will Be Displayed",00H 41 6E 79 20 45 72 72 6F 72 73 20 44 65 74 65 63 74 65 64 20 57 69 6C 6C 20 42 65 20 44 69 73 70 6C 61 79 65 64 00
The text Any Errors Detected Will Be Displayed and its 00H terminator, shown at row 3 (0D26H) before the test starts.
0F32-0F55
DEFM "Address Retry Read Written Mask",00H 41 64 64 72 65 73 73 20 20 52 65 74 72 79 20 20 52 65 61 64 20 20 57 72 69 74 74 65 6E 20 20 4D 61 73 6B 00
The column headings of the error lines and their 00H terminator, shown at row 2 (0D3DH). The headings start at columns 0, 9, 16, 22 and 31; 0E0AH writes the values at columns 1-4, 10-11, 17-18, 23-24 and 32-33.
0F56-0F69
DEFM "Test Pattern Is 55h",00H 54 65 73 74 20 50 61 74 74 65 72 6E 20 49 73 20 35 35 68 00
The text Test Pattern Is 55h and its 00H terminator, shown at row 1 (0D4FH) for the first round.
0F6A-0F6D
DEFM "AAh",00H 41 41 68 00
The text AAh and its 00H terminator, written at row 1, column 16 (0D7DH) over the 55h of the text at 0F56H for the second round.
0F6E-0F91
DEFM "Modified Address Test ld (hl),mask",00H 4D 6F 64 69 66 69 65 64 20 41 64 64 72 65 73 73 20 54 65 73 74 20 20 6C 64 20 28 68 6C 29 2C 6D 61 73 6B 00
The text Modified Address Test ld (hl),mask and its 00H terminator, 35 characters, shown at row 1 (0DAFH) for the third round; the two digits after it are written at 3C64H-3C65H.
0F92-0F97
DEFM "Stack",00H 53 74 61 63 6B 00
The text Stack and its 00H terminator, shown at row 15, column 52 (0D46H), next to the stack the RAM test keeps at the end of video RAM (3FFEH down).
0F98-0FEA
DEFB 00H x 83 00 x 83
83 unused 00H bytes between the last text and the copyright notice. Nothing reads them. In version 1(15) the run is three bytes longer, 0F95H-0FEAH, since that version's texts end three bytes earlier.
0FEB-0FFF
DEFM "(c) 1983, Tandy Corp." 28 63 29 20 31 39 38 33 2C 20 54 61 6E 64 79 20 43 6F 72 70 2E
The copyright notice (c) 1983, Tandy Corp. in the last 21 bytes of the ROM, with no terminator. Nothing reads it.