Monday, May 24, 2010

Flag Register

Carry flag is generally composed of nine pieces
  • Flow Over Flag (OF): Value 1 if there is overflow (OV) and set to 0 (NV).
  • Sign Flag (SF): Distinguishing numbers marked. Positive numbers (PL) or a negative number (NG).
  • Zero Flag (ZF): Value 0, if the result is worth one operation.
  • Carry Flag (CF): Value 1 in case (borrow) on the subtraction operation or (carry) on the addition operation.
  • Parity Flag (PF): Value 1 if an even
  • Direction Flag: Used for string operations
  • Interupst Enable Flag (IF): If the value 0, meaning no interruption of running.
  • Trap Flag (TF): Used for debugging.
  • Auxiliary Flag (AF): Used in BCD operation

B.Mnemonic

B.Mesin

Isi Register

LDA,C7H

3ec7

2105 5.A

ADD A,B

5D

2102 A.5

LD L,A

6f

2103 5.A

LD A,00H

3e20 00

2106 A.5

ADC A 00H

c620 00

2109 5.A

LD H,A

67

2110 A.5

RST 08

cf

2111 5.A


after entry into Z80 machine language, a road with a RESET command-MEM-RUN from step 0 to 7 to check the contents of registers

lets trY
GOOD LUCK

0 komentar:

Post a Comment

 
Trends K N A Copyright © 2009
Fresh Girly Blogger Template Designed by Herro | Powered By Blogger