1 [1] , , , Intel 8085A (182185).
2 (. ).
3 .
1 Intel 8085A ( ). , , .
2 ().
3 Ready.
,
1 ().
2 Sim8085 Microprocessor Simulator.
3 .
4 Intel 8085A.
1 .
2 - .
3 .
4 Sim8085. :
4.1 Sim8085 FileNew ( 13.1).
13.1 Sim8085 Microprocessor Simulator
. , , .
( 13.2), ToolsBase Converter.
, , HEX DEC. 13.2 , FE(16) 254(10) ( 13.3).
13.2
, , , LXI HL, 200Ch. , .
13.3 D FE(16) = 254(10) HL 200(16) = 8204(10).
13.3 D FE h HL 200C h
4.2 ( 13.4), ProjectDebug Mode.
|
|
13.4 Sim8085 Microprocessor Simulator
. . , 13.5 , MVI D, FE h LXI HL, 200C h .
13.5 Sim8085 Microprocessor Simulator
D FE(16) = 254(10) HL
200C h = 8204(10) ( 13.6).
, 2000 h D FE(16) = 254(10), 2002 h HL
200(16) = 8204(16). , , .
2000 h, (OptionsDebugger Options) ( 13.7).
13.6 Sim8085 Microprocessor Simulator
13.7 Sim8085 Microprocessor Simulator
4.3 ,
( 13.1).
13.1
MVI | D, FE h | ; . ; FE h . D | ||
MVI | C, 08 h | ; . . C ; | ||
MOV | A, D | ; A(D) | ||
MVI | B, 00 h | ; . B,; | ||
M2: | RAR | ; , ; . | ||
JNC | M1 | ; (Tc) = 0, ; | ||
200B | INR | B | ; ; | |
200C | M1: | DCR | C | ; () 1, ; |
200D | JNZ | M2 | ; ; . | |
HLT | ; |
. 13.8. , . D FE(16) = 254(10). (ProjectDebug Mode). ProjectTerminate. . ProjectRun ( 13.9).
13.8 ,
13.9 ,
:
- HLT;
|
|
- B ( FE(16) = 1111 1110(2) );
- , , SP, PC, ( S, Z, , P, ).
4.4 .
5 13.1. , 12, 12.1. , 4.14.3 . 13.2 .
13.2 13.1
( = 16) | ( = 16) | |||||||||||||||
(M1) | (M2) | (A) | (B) | (C) | (D) | (E) | (H) | (L) | (SP) | (PC) | S | Z | A | P | C | |
, Sim8085 .
6 .
7 .
:
1 .
2 ( 13.1).
3 13.1 ( 13.2) , .
4 .
1 , ( 13.1)?
2 , 13.9?
3
( 13.9) Z = 1?