summaryrefslogtreecommitdiff
path: root/z180
diff options
context:
space:
mode:
authorLeo C2018-09-12 22:23:55 +0200
committerLeo C2018-09-12 22:23:55 +0200
commit1ffa84bd778a4112b9e8e1cfb3de71108fb1a977 (patch)
tree538f7d5afa00a761a95196fb39111add94eb1191 /z180
parent9403f93922ea096bfdea4a81f1c34c5c044fcbbb (diff)
downloadz180-stamp-1ffa84bd778a4112b9e8e1cfb3de71108fb1a977.zip
Disable Refresh Cycles, pulse I/O 040h when loaded.
Diffstat (limited to 'z180')
-rw-r--r--z180/cpuinfo.18017
1 files changed, 15 insertions, 2 deletions
diff --git a/z180/cpuinfo.180 b/z180/cpuinfo.180
index 8629aa5..7d25dc2 100644
--- a/z180/cpuinfo.180
+++ b/z180/cpuinfo.180
@@ -167,6 +167,9 @@ nxt_base:
base_found:
inc e ; HD64180
+ ld l,RCR ; Disable Refresh Controller
+ xor a ;
+ call reg_out ;
ld l,omcr ; Check, if CPU has OMCR register
ld d,M_IOC ;
call chk_reg ;
@@ -192,8 +195,18 @@ start:
ld (hl),e
dec hl
ld (hl),0ffH
- halt
- jp $-1
+ out (040H),a
+
+; ld a,(wstates)
+; out0 (DCNTL),a
+ ;Z80 Z180(0W) Z180(MaxW)
+loop: ;--------------------------
+ in a,(050h) ;11 10 +3*3 19
+ jp loop ;10 9 +3*3 18
+ ;--------------------------
+ ;21 19 37
+
+; jr loop ;12 8 +2*3 14
rept 8
dw 0