z80: add NMOS v CMOS indicator to all the platforms
authorAlan Cox <alan@etchedpixels.co.uk>
Sun, 30 Nov 2014 15:07:15 +0000 (15:07 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Sun, 30 Nov 2014 15:07:15 +0000 (15:07 +0000)
We need to know this to cover the interrupt erratum in di() and the
flag restore code

Kernel/platform-msx1/kernel.def [new file with mode: 0644]
Kernel/platform-msx2/kernel.def
Kernel/platform-nc100/kernel.def
Kernel/platform-pcw8256/kernel.def
Kernel/platform-socz80/kernel.def
Kernel/platform-trs80/kernel.def
Kernel/platform-z80pack-lite/kernel.def
Kernel/platform-z80pack/kernel.def
Kernel/platform-z80pack32/kernel.def
Kernel/platform-zx128/kernel.def

diff --git a/Kernel/platform-msx1/kernel.def b/Kernel/platform-msx1/kernel.def
new file mode 100644 (file)
index 0000000..fb9d5ca
--- /dev/null
@@ -0,0 +1,10 @@
+; UZI mnemonics for memory addresses etc
+
+U_DATA                      .equ 0xF000       ; (this is struct u_data from kernel.h)
+U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+
+U_DATA_STASH               .equ 0x7D00       ; 0x7D00-0x7FFF
+
+; as far as I can tell either is allowed by the spec
+
+NMOS_Z80                   .equ 1
index 1189bbe..e0f4da1 100644 (file)
@@ -3,3 +3,6 @@
 U_DATA                      .equ 0xF000       ; (this is struct u_data from kernel.h)
 U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
 
+; as far as I can tell either is allowed by the spec
+
+NMOS_Z80                   .equ 1
index 1189bbe..8e6bb14 100644 (file)
@@ -3,3 +3,4 @@
 U_DATA                      .equ 0xF000       ; (this is struct u_data from kernel.h)
 U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
 
+NMOS_Z80                   .equ 0
index 7097f8e..be4a3f0 100644 (file)
@@ -2,3 +2,5 @@
 
 U_DATA                      .equ 0xF000       ; (this is struct u_data from kernel.h)
 U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+
+NMOS_Z80                   .equ 0            ; FIXME: check
index 895914c..40bc6de 100644 (file)
@@ -4,3 +4,4 @@ U_DATA                      .equ 0xf900       ; (this is struct u_data from kern
 U_DATA__PAGEOFFSET          .equ 0x0900       ; U_DATA % 0x1000
 U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
 
+NMOS_Z80                   .equ 0            ; Actually a T80
index 5342798..003a09e 100644 (file)
@@ -3,3 +3,4 @@
 U_DATA                      .equ 0xF900       ; (this is struct u_data from kernel.h)
 U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
 
+NMOS_Z80                   .equ 1
index 7097f8e..8e6bb14 100644 (file)
@@ -2,3 +2,5 @@
 
 U_DATA                      .equ 0xF000       ; (this is struct u_data from kernel.h)
 U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+
+NMOS_Z80                   .equ 0
index 95178b3..d60b6ef 100644 (file)
@@ -3,4 +3,6 @@
 U_DATA                      .equ 0xF000       ; (this is struct u_data from kernel.h)
 U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
 
-U_DATA_STASH               .equ 0xED00       ; ED00-EFFF
\ No newline at end of file
+U_DATA_STASH               .equ 0xED00       ; ED00-EFFF
+
+NMOS_Z80                   .equ 0
index d5211a9..1cbf67a 100644 (file)
@@ -5,3 +5,6 @@ U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
 
 U_STASH_HIGH               .equ 0xBD00       ; BD00-BFFF
 U_STASH_LOW                .equ 0x7D00       ; 7D00-BFFF
+
+
+NMOS_Z80                   .equ 0
index 9c1a204..7d4a50f 100644 (file)
@@ -3,4 +3,6 @@
 U_DATA                      .equ 0x5B00       ; (this is struct u_data from kernel.h)
 U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
 
-U_DATA_STASH               .equ 0xFD00       ; BD00-BFFF
\ No newline at end of file
+U_DATA_STASH               .equ 0xFD00       ; BD00-BFFF
+
+NMOS_Z80                   .equ 1