1 / 172
文档名称:

L. A. Leventhal - z80 Assembly Language Programming.pdf

格式:pdf   页数:172
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

L. A. Leventhal - z80 Assembly Language Programming.pdf

上传人:bolee65 2014/3/7 文件大小:0 KB

下载得到文件列表

L. A. Leventhal - z80 Assembly Language Programming.pdf

文档介绍

文档介绍:Scanned and converted to PDF by HansO, 2001

Chapter 3 page 1-42
In this PDF: Chapter 3 page 1-42
CPU REGISTERS AND STATUS FLAGS
The CPU registers and status flags for the 280 may be illustrated as follows:
Zero
Auxiliary Carry
Pariry/OverNow
-Subtract
7 v T v
S 1 Z lAcl ]P/~] N 1
A
S-ndav { Secondary Data Counters
Accumulators
Ill}Primary Data Counter
S' Z' Ac' P/O, N' C' Alternate Flags
A' Alternate Accumulator
C'
Alternate B' Alternate Secondary
Data Counters
Secondan/ D' E'
Accumulators H' L' Alternate Pnmaty Data Counter
SP Stack Pointer
PC Program Counter
IX lndex Register
IY Index Reaster
I Interrupt Vector Register
1 R Refresh Reg~ster
The Accumulator is the primary source and destination for one-operand and two-
operand instructions. For example, the shortest and fastest data transfers between the
CPU and 1/0 devices are performed through the Accumulator. In addition, more Memo-
ry Reference ~nstructionsmove data between the Accumulator and memory than bet-
ween any other register and memory All 8-bit arithmetic and Boolean instructions take
one of the operands from the Accumulator and return the result to the Accumulator. An
instruct~onmust therefore load the Accumulator before the 280 can perform any 8-
bit arithmetic or Boolean operations.
The B, C, 0, E, H, and L registers are all secondary registers. Data stored in any of
these six registers may be accessed with equal ease: such data can be moved to any
other reglster or can be used as the second operand In two-operand instructions.
There are, however, some ~mportantdifferences in the functions of Reg~stersB. C. D. E.
H. and L
Registers H and L are the primary Data Pointer for the 280. That is to say. you will
normally use these two registers to hold the 16-bit memory address of data being ac-
cessed. Data may be transferred between any registers and the memory location ad-
dressed by H and L S