Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Undocumented Z80 Documented

Undocumented Z80 Documented

Ratings: (0)|Views: 44 |Likes:
Published by CubemanPDX
Commodore Computer Book
Commodore Computer Book

More info:

Published by: CubemanPDX on May 13, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/13/2011

pdf

text

original

 
The Undocumented Z80 Documented
Sean YoungVersion 0.6, 20th November, 2003
 
Copyright Statement
Copyrightc
1997, 1998, 2001, 2003 Sean Young.Permission is granted to copy, distribute and/or modify this document underthe terms of the GNU Free Documentation License, Version 1.1 or any laterversion published by the Free Software Foundation; with no Invariant Sections,with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the licenseis included in the section entitled “GNU Free Documentation License”.i
 
Contents
1 Introduction 1
1.1 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Where to get this document . . . . . . . . . . . . . . . . . . . . . 11.3 Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.4 ChangeLog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Overview 3
2.1 History of the Z80 . . . . . . . . . . . . . . . . . . . . . . . . . . 32.2 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32.3 Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42.4 Power on defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . 52.5 Pin Descriptions [7] . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 Undocumented Opcodes 8
3.1 CB Prex [5] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.2 DD Prex [5] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.3 FD Prex [5] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.4 ED Prex [5] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.5 DDCB Prex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.6 FDCB Prexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.7 Combinations of Prexes . . . . . . . . . . . . . . . . . . . . . . . 12
4 Undocumented Eects 13
4.1 BIT instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . 134.2 Memory Block Instructions [1] . . . . . . . . . . . . . . . . . . . 144.3 I/O Block Instructions . . . . . . . . . . . . . . . . . . . . . . . . 144.4 16 Bit I/O ports . . . . . . . . . . . . . . . . . . . . . . . . . . . 154.5 Block Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . 154.6 16 Bit Additions . . . . . . . . . . . . . . . . . . . . . . . . . . . 154.7 DAA Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5 Interrupts 17
5.1 Non-Maskable Interrupts (NMI) . . . . . . . . . . . . . . . . . . . 175.2 Maskable Interrupts (INT) . . . . . . . . . . . . . . . . . . . . . . 175.3 Things affecting the Interrupt flip-flops . . . . . . . . . . . . . . . 185.4 HALT instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . 195.5 Where interrupts are accepted . . . . . . . . . . . . . . . . . . . . 19ii

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->