Replace Line 10
Address 0xC525 initially holds the token for the EXEC part of line 10's EXEC &HE164
- 0x8E - Token for the N60 BASIC REM statement
The code from 0xE243 to 0xE254 copies the ASCII company name string after the REM token in the BASIC line 10.
The Zilog Z-80 microprocessor is a “little-Endian” design, like the Intel.
The “ASCII” company name after REM is encoded into memory from 0xC526 to 0xC52B as 0x41, 0x20, 0x43, 0x53, 0x49, 0x49 (A, ,C,S,I,I).
- 0x4120 - capital A (0x41) and a space (20)
- 0x4353 - capital C (0x43) and a capital S (0x53)
- 0x4949 - capital I (0x49) repeated
; * Start change line 10 REM ASCII 8E=REM token ; E17B 3E 8E LD A,0x8E ; E17D C3 40 E2 JP 0xE240 ASME240: ; * Rest of code to change line 10 to REM ASCII ; E240 32 25 C5 LD (0xC525),A ; E243 21 20 41 LD HL,0x4120 ; E246 22 26 C5 LD (0xC526),HL ; E249 21 53 43 LD HL,0x4353 ; E24C 22 28 C5 LD (0xC528),HL ; E24F 21 49 49 LD HL,0x4949 ; E252 22 2A C5 LD (0xC52A),HL ; E255 C9 RET
Return to Nostromo