Skip to content

Commit 777dfa1

Browse files
authored
Merge pull request #38 from davidgiven/z8e
Make Z8E work on the NC200.
2 parents 4acc42d + a344a3d commit 777dfa1

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

arch/nc200/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ What you don't get:
3333
- sysgen, format etc
3434
- no bugs
3535

36+
**Important note:** the NC200 runs in `im 1` mode, which means that all
37+
interrupts go through rst 0x38. Unfortunately this is the default system call
38+
used by debuggers like DDT and SID, so you'll need to patch them to use a
39+
different one. The supplied copy of `z8e` has been preconfigured for the NC200
40+
and will work out of the box.
41+
3642

3743
How to use it
3844
-------------

third_party/z8e/nc200/config.inc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
z180 equ false
2-
conterm equ adm3a
3-
auxterm equ none
4-
CPM3 equ false
5-
SCRHT equ 18
1+
z180 equ false
2+
conterm equ adm3a
3+
auxterm equ none
4+
CPM3 equ false
5+
SCRHT equ 18
6+
DFLTRSTVEC equ 30h
67

third_party/z8e/src/z8e.z80

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ getSCB equ 49
463463

464464
export rstVec
465465
;rstVec:
466-
defb 38h ;Default (but patchable) breakpoint vector
466+
defb DFLTRSTVEC ; fault (but patchable) breakpoint vector
467467

468468
export coMask
469469
;coMask:
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
z180 equ true
2-
conterm equ adm3a
3-
auxterm equ none
4-
CPM3 equ false
5-
SCRHT equ 26
1+
z180 equ true
2+
conterm equ adm3a
3+
auxterm equ none
4+
CPM3 equ false
5+
SCRHT equ 26
6+
DFLTRSTVEC equ 38h
67

0 commit comments

Comments
 (0)