Skip to content

Commit 8938d3a

Browse files
Added MOS header block for MOS 1.02
1 parent 09c173f commit 8938d3a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

init.asm

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
; Initialisation Code
44
; Author: Dean Belfield
55
; Created: 03/05/2022
6-
; Last Updated: 15/10/2022
6+
; Last Updated: 22/11/2022
77
;
88
; Modinfo:
99
; 14/07/2022: Modified to run in MOS
1010
; 15/10/2022: Added RST_08 and RST_10 handlers
11+
; 22/11/2022: Added MOS header block
1112

1213
SEGMENT __VECTORS
1314
@@ -55,7 +56,15 @@ RST_30: DS 8
5556
RST_38: EI
5657
RETI
5758
;
58-
; This where the fun starts
59+
; The header stuff is from byte 64 onwards
60+
;
61+
ALIGN 64
62+
63+
DB "MOS" ; Flag for MOS - to confirm this is a valid MOS command
64+
DB 00h ; MOS header version 0
65+
DB 00h ; Flag for run mode (0: Z80, 1: ADL)
66+
;
67+
; And the code follows on immediately after the header
5968
;
6069
_START: EI ; Enable the MOS interrupts
6170
JP COLD ; Start BBC Basic for Z80

0 commit comments

Comments
 (0)