Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
171 views
16 pages
8085 Instruction Set With T States PDF
Uploaded by
Divya Krishnan
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save 8085 Instruction Set with T states.pdf For Later
Download
Save
Save 8085 Instruction Set with T states.pdf For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
171 views
16 pages
8085 Instruction Set With T States PDF
Uploaded by
Divya Krishnan
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save 8085 Instruction Set with T states.pdf For Later
Carousel Previous
Carousel Next
Download
Save
Save 8085 Instruction Set with T states.pdf For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 16
Search
Fullscreen
8085A Instruction Set Reference Encyclopedia’ * Courtesy of Intel Corporation. 467THE INSTRUCTION SET INSTRUCTION SET ENCYCLOPEDIA In the ensuing dozen pages, the complete 8085A instruction set is described, grouped in order under five different functional headings, as follows: 1. Data Transfer Group — Moves data be- tween registers or between memory locations and registers. includes moves, Toads, stores, and exchanges. 2. Arithmetic Group — Adds, subtracts, in- crements, or decrements data’ in registers or memory. 3. Logic Group — ANDs, ORs, XORs, com- partes, rotates, or complements data in registers or between memory and a register. 4, Branch Group — Initiates conditional or unconditional jumps, calls, returns, and restarts. 5. Stack, VO, and Machine Control Group — Includes instructions for maintaining the stack, reading from input ports, writing to output ports, setting and feading interrupt masks, and setting and clearing flags. ‘The formats described in the encyclopedia feflect the assembly language processed by Intel-supplied assembler, used with the intellec® development systems. Dota Transfer Group ‘This group of instructions transters data to and from registers and memory. Condition flags not affected by any instruction in this group. MOV rt, 72 y= ‘The content of register 12 is moved to register 11 (Move Register) MOV1,M_ (Move from memory) (GH) L) ‘The content of the memory location, whose address is in registers H and L, is moved to register F. reg. indirect MOV M,r (Move to memory) HY) — 40) The content of register r is moved to the memory location whose address is in registers H and L. TTT TTT o 1 1 1 o]s ss Cycles: 2 States: 7 Addressing: reg. indirect Flags: none MVIr, data (Move Immediate) (f) — @yte 2) ‘The content of byte 2 of the instruction is moved to register T Team lal o o}o dv o]1 14 0 data Cycles: 2 States: 7 Addressing: immediate Flags: none MVIM,data (Move to memory immediate) HY (L) ~ (byte 2) The content of byte 2 of the instruction is moved to the memory location whose ad- dress is in registers H and L. T a naa o 1/0 do v]s ss ToT Tt oo 41 1°04 1 °0 Cycles: 1 States: 4 (8085), 5 (6080) Addressing: register Flags: none AM moemonies eopysighted Ine! Corporation 176 data Cycles: 3 States: 10 Addressing: immed Jreg. indirect Flags: noneTHE INSTRUCTION SET LXI rp, data 16 (Load register pair immediate) (ch) — (byte 3), (e) — (byte 2) Byte 3 of the instruction is moved into the high-order register (rh) of the register pair fp. Byte 2 of the instruction is moved into the low-order register (1) of the ragister pair 'P. LHLD addr (Load H and L direct) (L)=((byte 3ybyte 2) (H)—(oyte 3Nbyte 2)+-1) ‘The content of the memory Igcation, whose address is specified in byte 2 and byte 3 of the instruction, is moved to register L. The content of the memory location at the suc> ceeding address is moved to register H. T T7711 o o}/R Pj}o 0 0 1 aa o 0 10 1 0 1 0 low-order data loworder addr LDA addr high-order data high-order addr Cycles: 3) Gyles: 5 States: 10 States: 16 Addressing: immediate Addressing: direct Flags: none (Load Accumulator direct) (A) — ((oyte 3ybyte 2) The content of the memory location, whose address Is specified in byte 2 and byte 3 of moyed to register A. TTT _T 1 0 410 low-order addr high-order addr STA addr cycles: 4 States: 13 Addressing: direct Flags: none (Store Accumulator direct) (byte Sybyte 2) ~ (A) ‘The content of the accumulator is moved to the memory location whose address is specified in byte 2 and byte Sof the instruc- tion, a oo 1 1 0 0 4 0 low-order addr SHLD addr LDAX rp Flags: none. (Store H and L direct) (byte SNbyte 2))—(L) (byte 3ybyte 2)+1)—(H) The content of register L is moved to the memory location whose address is specified in byte 2 and byte 3. The content of register H Is moved to the succeeding memory location. o°0 10 0 0 1 0 low-order addr high-order addr Cycles: 5 States: 16 Addressing: direct Flags) none (Load accumulator indirect) (A) — (ep) The content of the memory location, whose address is in the register pair ¢p, is moved to register A. Note: only register pairs (p=B (registers B and ©) or m=D (egisters D and E) may be specified high-order addr ia eee alee o ofr pP}]1 0 4 0 Cycles: 4 States) 13, Addressing: direct Flags: none “AN anamonics copyrighted ate Corparation 1976 Cycles: 2 States: 7 Addressing: reg. indirect Flags: noneTHE INSTRUCTION SET PCHL (Qump H and L indirect — move H and L to PC) (PCH) ~ (H) (PCL) ~ (L) The content of register H Is moved to the high-order eight bits of register PC. The content of register L is moved to the low- order eight bits of register PC. Cycles: 1 States: 6 (8085), 5 (8080) Addressing: register Flags: none Stack, VO, and Machine Control Group ‘This group of instructions performs VO, manipu- lates the Stack, and alters internal controt flags. Unless otherwise specified, condition flags are not affected by any Instructions in this group. PUSH rp (Push) (SP) — 1) - (eh) (SP) - 2) ~ (ol) (SP) — (SP) - 2 The content of the high-order register of register pair rp is moved to the memory location whose address is one less than the content of register SP. The content of the low-order register of register pair 1p is moved to the memory tocation whose ad. dress is two less than the content of register SP. The content of register SP is decremented by 2. Note: Register palr rp = SP may not be specified. Tre Sasa le 1 t{rR plo 1 04 Cyolos: 3 States: 12 (8085), 11 (8080) Addressing: reg. indirect Flags: none PUSH PSW (Push processor status word) (SP) - 1) - A) (SP) = 2p — (GY), (SP) — 2, — X MSP) - 2p ~ (P), (SP) — Ze ~ X (SP) ~ 2e ~ (AC) (SP) — 25 — X (SP) ~ 2, ~ 2), (SP) ~ 27 ~ 8) (SP) ~ (SP) - 2 X: Undetined. “ha mnemonics copyrighted inte Corporation 1976. The content of register A is moved to the memory location whose address is one Jess than register SP. The contents of the Condition flags are assembled into a pro- cessor status word and the word is moved to the memory location whose address is two less than the content of register SP. ‘The content of register SP is decremented by two. Cycles: 3 States: 12 (8085), 11 (8080) Addressing: reg. indirect, Flags: none FLAG WORD Dy Dy Ds Dy Dy Dz Dy Dp s|[z|x fac} x] P| x |or X: undefined POP ip (Pop) (0) ~ «SPD (om) — (SP) +) (SP) (SP) +2 The content of the memory location, whose address is specified by the content of register SP, is moved to the low-order register of register pair rp. The content of the memory location, whose address is one more than the content of register SP, is moved to the high-order rogister of register fp. The content of register SP is in- T T lS a yo1}R Plo oO 0 4 Gycles: 3 States: 10 Addressing: reg.indirect Flags: oneTHE INSTRUCTION SET STAX rp (Store accumulator indirect) rp) — (A) The content of register A is moved to the memory location whose address is in the register pair rp. Note: only register pairs (registers B and C) or rp=D (egisters D and E) may be specified. TTT 7 TTT o ofR Pio o 1 0 Gyoles: 2 States: 7 Addressing: reg. indirect Flags: none XCHG (€xchange H and L with D and ) (H) ~ (0) O-68 The contents of registers H and L are ex. changed with the contents of registers D and E. a toto 40 1 0°44 Gyotes: 4 States: 4 Addressing: register Flags: none Arithmetic Group This group of instructions performs arithmetic operations on data in registers and memory. Unless indicated otherwise, all instructions in this group affect the Zero, Sign, Parity, Carry, according to the stan: and Auxiliary Carry fla dard rules. All subtraction operations are performed via two's complement arithmetic and set the carry flag to one to indicate a borrow and clear it to indicate no borrow. ADD r (Add Register) A) +0 ‘The content of register r is added to the content of the accumulator. The result is placed in the accumulator. ADD M (Add memory) (A) = (A) (4) (D) The content of the memory location whose address is contained in the H and L registers is added to the content of the ac- cumulator. The result is placed in the ac ‘cumulator. ADI data Cycles: 2 States. 7 Addressing: reg. indirect Flags: Z,3,P,CY,AC (Add immediate) (A) — (A) + (byte 2) The content of the second byte of the struction is added to the content of the ac- cumulator. The result is placed in the ac- cumulator. cycles: 2 States: 7 Addressing: immediate Flags: Z,S,P,CY.AC ape r (Add Register with carry) (A) — A) + (9) + (CY) ‘The content of register r and the content of the carry bit are added to the content of the accumulator. The result is placed in the ac- cumulator. ia TT 1 0 0 0 o|s ss Cycles: 1 States: 4 Addressing: register Flags: 2,S,P,CY,AC “A maomonios copyrighted intel Corpora Cycles: 1 States. 4 Addressing: register Flags: Z.S,P,CY,AC‘THE INSTRUCTION SET Ac Mm (Add memory with carry) (A) — (A) + ((H) (L) + (CY) The content of the memory location whose address. is contained ‘in the H and L registers and the content of the CY flag are added to the accumulator. The result is placed in the accumulator. SUB M (Subtract memory) (a) =~ (A) =H) () The content of the memory location whose address is contained in the H and L registers is subtracted from the content of the accumulator. The result is placed in the accumulator. Cycles: 2 States: 7 Addressing: reg. indirect Flags: Z.5,,CY,AC ACI data (Add immediate with carry) (A) — (A) + (byte 2) + (CY) The content of the second byte of the in: struction and the content of the CY flag are added to the contents of the accumulator. The result is placed in the accumulator. Cycles: 2 States: 7 Addressing: reg. indirect Flags: Z.S,P,CY,AC SUI data (Subtract immediate) (A) ~ (A) ~ (byte 2) The content of the second byte of the struction is subtracted from the content of the accumulator. The result is placed in the accumulator. data data Gyoles: 2 Cycles: 2 States! 7 States: 7 Addressing: immediate Addressing: immediate Flags: Z,S,P,CY,AC suBr (Subtract Register) ~~ (0 ‘The content of register is subtracted from the content of the accumulator. The result is placed in the accumulator. Flags: Z,S,P,CY,AC SBBr Gubtract Register with borrow) (a) ~ (A) - (9 — (CY) ‘The content of register r and the content of the CY flag are both subtracted from the accumulator. The result is placed in the ac- ‘cumutator. Cycles: 1 States: 4 Addressing: register Flags: Z.S,P,CY,AC ‘Ai mnemonics copyrighted Inte! Corperatan 1976 Cycles: 1 States) 4 Addressing: register Flags: Z.S,P,CY,AC‘THE INSTRUCTION SET SBBM (Subtract memory with borrow) (A) — (A) — ((H) (L) — (CY) ‘The content of the memory location whose address is contained in the H and L registers and the content of the CY flag are both subtracted from the accumulator. The result is placed in the accumulator. eg. indirect ZSP,CYAC SBIdata_ (Subtract immediate with borrow) (A) ~ (A) ~ (oyte 2) — (CY), The contents of the second byte of the in- struction and the contents of the CY flag are both subtracted from the accumulator. The result is placed in the accumulator. 7 immediate ,8,P,C {increment Register) +4 Content of register ris incremented by ‘one. Note: All condition flags except CY are affected INR M (Increment memory) AH) = HY) +1 ‘The content of ine memory location whose address is contained in the H and L registers is incremented by one. Note-All condition flags except CY are affected Cycles: 3 States: 10 Addressing: reg. indirect Flags: Z,S,P,AC per r (Decrement Register) -@—4 ‘The content of register r is decremented by ane. Note: All condition flags except CY are affected. Cycles: 1 States: 4 (6085), (6080) Addressing: register Flags: Z,5,P,AC DcRM (Decrement memory) (UH) (U) = (HY (Q) = 1 ‘The content of the memory location whose address is contained in the H and L registers is decremented by one. Note: All condition flags except CY are affected. Au mnemonics copyrighted intel Corporation 1876 Gyles: 3 States 10, Addressing: reg. indirect Flags; ZS,P,ACTHE INSTRUCTION SET INX 1p (Increment register pair) ()(e) — (eR) (e) # The content of the register pair rp is in- ‘cremented by one. Note: No condition flags are affected. oycles: 1 Slates: 6 6085), 5 (6060) Addressing: register Flags: none DCX rp (Decrement register pair) (eh) (el) — (eh) (ot) — 1 ‘The content of the register pair rp is decremented by one. Note: No condition flags are affected. Cycles: 1 States: 6 (8085), 5 (6080) Addressing: register Flags: none DAD rp (Add register pair to H and L) HY ~ HL) + ‘The content of the register pair rp is added to the content of the register pair H and L. ‘The result Is placed in the register pair H and L. Note: Only the CY flag is affected. It is set if there is a carry out of the double precision add; otherwise it is reset. DAA (Decimal Adjust Accumulator) ‘The eight-bit number in the accumulator is adjusted to form two four-bit Binary-Coded- Decimal digits by the following process: 1. Ifthe value of the least significant 4 bits of the accumulator is greater than 9 or if the AC flag Is set, 6 is added to the ac- ‘cumulator. 2. If the value of the most significant 4 bits of the accumulator is now greater than 9, or if the CY flag is set, 6 Is added to the most significant 4 bits of the ac ‘cumulator. NOTE: All flags are affected. Cycles: 1 States: 4 Flags: Z.S,P,CY,AC Logieal Group This group of instructions performs logical (Boolean) operations on data in registers and memory and on condition flags. Unless indicated otherwise, all instructions in this group affect the Zero, Sign, Parity, Auxiliary Carry, and Carry flags according to the stan- dard rules. ANAT {AND Register) WA 00 The content of registers logically ANDed with the content of the accumulator. The result is placed in the accumulator, The CY fag Is cleared and AC Is sot (8085) The CY flag Is cleared and AG Is set to the OR'ing of Bits 3 of the operands (8080). Cycles: 3 States: 10 Addressing: register Flags: CY “Aut moamonis copnighed intel Corporation 1876 Cycles: 1 ad register Flags: Z,8,P,CY.AC‘THE INSTRUCTION SET ANAM (AND memory) (a) — (A) (IH) L) The contents of the memory location whose address is contained in the H and L registers is logically ANDed with the con- tent of the accumulator. The result is placed in the accumulator. The CY flag is 1d and AC is set (8085). The CY flag is and AC is set to the OR’ing of bits 3 of the operands (8080). Cycles: | 2 States: 7 Addressing: reg. indirect Flags: 2,8,P,CY,AC ANI data (AND immediate) (A) = (A) A byte 2) ‘The content of the second byte of the in: struction is logically ANDed with the con. tents of the accumulator. The result is placed in the accumulator. The CY flag is Cleared and AC is set (8085), The CY flag is Cleared and AC is set to the OR’'ing of bits 3 of the operands (8080). 1 1°10 0 4 4 0 data Cycles: 2 States: 7 Addressing: immediate Flags: 2,S,P,CY,AC XRAr (Exclusive OR Register) A) Av ‘The content of register r is exclusive-OR'd with the content of the accumulator. The result is placed in the accumulator, The CY XRAM (Exclusive OR Memory) (A) — A) (H) (0) The content of the memory location whose address is contained in the H and L registers is exclusive-OR'd with the con- tent of the accumulator. The result is placed in the accumulator. The CY and AC lags are cleared. pee cycles: 2 States: 7 Addressing: reg. indirect Flags: CY,AC XAldata (Exclusive OR immediate) (A) — (A) ¥ (byte 2) ‘The content of the second byte of the in- struction Is exclusiveOR'd with the con: tent of the accumulator. The result is placed in the accumulator. The CY and AC flags are cleared. data Cycles: 2 States: 7 Addressing: immediate Flags: Z,S,P,CY,AC onAr (OR Register) A) (V0, ‘The content of register r is inclusive-OR'd with the content of the accumulator. The result is placed in the accumulator. The CY and AC flags are cleared. Cycles: 1 States: 4 Addressing: register Flags: Z.S,P,CY,AC “AN mnemonics copyighee ite Corporation 1976, Cycles: 1 States: 4 Addressing: register Flags: ZS,P,CY,AC‘THE INSTRUCTION SET ORAM (OR memory) (A) — (A) V (HY (L) ‘The content of the memory location whose address is contained in the H and L registers is inclusive-OR'd with the content of the accumulator. The result is placed in the accumulator. The CY and AC flags are cleared. Cycles: 2 States: 7 Addressing: reg. indirect Flags: 2,S,P,CY,AC ORI data (OR immediate) A) — AV oyte 2) ‘The content of the second byte of the in: struction is inclusive-OR'd with the content of the accumulator. The result is placed in the accumulator. The CY and AG tags are data Cycles: 2 States: 7 Addressing: immediate Flags: Z,S,P,CY,AC cmp r (Compare Register) W - © The content of register ris subtracted from the accumulator. The accumulator remains unchanged. The condition flags are set as a result of the subtraction. The Z flag is set (A) = (0) The CY flag is set to 1 i (A) Cycles: 1 States: 4 Addressing: register Flags: Z,S,P,CY,AC cmp M {Compare memory) (4) - (HO) The content of the memory location whose address is contained in the H and L Fegisters is subtracted from the ac: cumulator. The accumulator remains un- changed. The condition flags are set as a result of the subtraction. The Z flag is set to 1 if (A)=(H)(L). The CY flag is set to 1 it (A)< UH) (L) Addressing: reg. indirect Flags: Z.8,P,C¥,AC CPidata (Compare immediate) (A) ~ (byte 2) The content of the second byte of the in- struction is subtracted. from the ac- cumulator. The condition flags are set by the result of the subtraction. The 2 flag is. set to 1 if (A)= (byte 2). The CY flag is set to TIt(A)<(oyte2). data 2 7 Addressing: immediate Flags: Z,S,P,CY,AC RLC (Rotate left) (Ag) — (Ag) (Aa) — (Ar) () ~ (An) ‘The content of the accumulator is rotated left one position. The low order bit and the CY flag are both set to the value shifted out of the high order bit position. Only the CY flag is affected. Cycles: 1 States: 4 Flags: CY‘THE INSTRUCTION SET RRC (Rotate right) (a) — (An 1h (Ar) ~ (Ao) (ch) ~ ed ‘The content of the accumulator is rotated right one position. The high order bit and the GY flag are both set to the value shifted ut of the low order bit position. Only the CY flag is affected. Cycles: 1 States) 4 Flags: CY RAL (Rotate Jett through carry) (Ans) —(Anks (CY) (Ar) (Aa—(C¥) The content of the accumulator is rotated left one position through the CY flag. The low order bit is set equal to the CY flag and the CY flag is set to the value shifted out of the high order bit. Only the CY flag is af- fected. Cycles: 1 States: 4 Flags: CY RAR (Rotate right through carry) (Br) — (oe sH{C¥) ~ (Ao) (a) ~ (¥) ‘The content of the accumulator is rotated right one position through the CY flag. The high order bit is set to the CY flag and the CY flag is set to the value shifted out of the low order bit. Only the CY flag is affected. Cycles: 1 States: 4 Flags; CY “AN mnemonics copyrighted lee! Corporation 176 CMA = (Complement accumulator) (4) ~ ®) ‘The contents of the accumulator are com- plemented (zero bits become 1, one bits, Cycles: 1 States: 4 Flags: none me (Complement carry) (on = (CF) ‘The CY flag is complemented. No other flags are affected. [aoe te Tete] Cycles: 1 States: 4 Flag: ste (Set carry) ey-1 The CY flag is set to 1. No other flags are alfected.‘THE INSTRUCTION SET Branch Group This group of instructions alter normal sequen- tial program flow. Condition flags are not affected by any instruc- tion in this group. ‘The two types of branch instructions are uncon- ditional and conditional. Unconditional transfers simply perform the specified opera- tion on register PC (the program counter). Con: ditional transfers examine the status of one of the four processor flags to determine if the specified branch is to be executed. The condi- tions that may be specified are as follows: CONDITION ccc NZ— not zero Z=0) 00 Z— ze Z=1) 001 NG — no carry (GY =0) o10 C= carry (CY =1) on PO — parity odd (P=0) 100 PE — parity even (P 101 P— plus (S=0) 110 M— minus (8=1) 1m IMP addr (Jump) (PC) — (byte 3) (oyte 2) Control is. transferred to the instruction whose address is specified in byte 3 and byte 2 of the current instruction. low-order addr high-order addr Cycles: 2 States: 10 Addressing: immediate Flags: none “A mnemonics copyrighted Intl Corporation 1878, Jeondition addr (Conditional jump) WW (CCC), (PC) ~ (byte 3) (byte 2) If the specified condition is true, control is transferred to the instruction whose ad- dress is specified in byte 3 and byte 2 of the current instruction; otherwise, control con- tinues sequentially. 71 —1 TT 1 1]/e c clo 10 low-order addr high-order addr Gycles: 2/3 (6085), 3 (6080) States: 7/10 (8085), 10 (8080) Addressing: immediate Flags: none CALL addr (Call) (PC) ~ (byte 3) (byte 2) The high-order eight bits of the next i struction address are moved to the memory location whose address is one less than the content of register SP. The low-order eight bits of the next instruction address are moved to the memory location whose address is two less than the content of register SP. The content of register SP is. decremented by 2. Control is transferred to the instruction whose address is specified in byte 3 and byte 2 of the current instruc- tion, low-order addr high-order addr Gycles: 5 States: 18 (8085), 17 (8080) immediate! ‘Addressing: req. indirect Flags: noneTHE INSTRUCTION SET Condition addr (Condition call) W (cco, (SP) ~~ (PCH) (GP) ~ 2) — (PCL) (SP) — GP) — 2 (Po) ~ (byte 3) (oyte 2) If the specified condition is true, the ac- tions specified in the CALL instruction (see above} are performed; otherwise, control ‘continues sequentially. low-order addr high-order addr Cycles: 25 (8088), 315 (8080) States: 9/16 (8085), 11/17 (8080) jing. immediate! Addressing: 7g" indirect Flags: none RET (Return) (Pcl) ~ (SP) (PCH) — (SP) + 1; (SP) ~ (SP) + 2 The content of the memory location whose address is specified in register SP is moved to the low order eight bits of register PC. The content cf the memory location whose address is one more than the content of register SP is moved to the high-order eight bits of register PC. The content of register SP is incremented by 2. Cycles: 3 States: 10 Addressing: reg. indirect Flags: none “Aa mnemonics copyrightes Inet Corporation 1976. Reondition (Conditional return) MW (CCO), (PCL) ~ (SP) (PCH) — SP) + 1) (SP) — (SP) + 2 If the specified condition is true, the ac: tions specified in the RET instruction (see above) are performed; otherwise, control continues sequentially. Gycles: 13 States: 6/12 (8085), 5/11 (6060) Addressing: reg. indirect, Flags: none RST a (Restart) (SP) ~ 1) — PCH) (GP) ~ 2 — Cy (SP) — (SP) — 2 (PC) — 8* (NNN) The high-order eight bits of the next in struction address are moved to. the momory location whose address is one less than the content of register SP. The low-order eight bits of the next instruction address are moved to the memory location hase address is two less than the content of register SP. The content of register SP is Secremented by two. Control is transferred to the instruction whose address Is eight times the content of NNN Cycles: 3 States: 12 (8085), 11 (8080) Addressing: reg. indirect Flags: none 1614131211109 87 6543210 0}0]0/0}0]oJo/o]/o/0/n|n}n}o| 0/0 Program Counter After RestartTHE INSTRUCTION SET Pop PSW (Pop processor status word) (CY) ~ (SPip ® (Ss) (AO)~ (SPig @ (SPs (8) - (SPI (a) — (SP) + 1) (SP) ~ (SP) +2 ‘The content of the memory location whose address is specified by the content of ‘fogister SP is used to restore the condition flags. The content of the memory location whose address is one more than the con- tent of register SP is moved to register A {The content of regster SP 1s incremented y Cycles: 3 States: 10 scdressing: rg. Indirect Flags: P,CY,AC XTHL (Exchange stack top with H and L) Wy ~ (Se) (Hh) ~ (GP) + 1) The content of the L register is exchanged with the content of the memory location whose address is specified by the content of register SP. The content of the H register is exchanged with the content of the memory location whose address is one ‘more than the content of register SP. SPHL (Move HL to SP) (SP) - HL) ‘The contents of registers H and L (16 bits) are moved to register SP. Gycles: 1 States: 6 (6085), 5 (6060) Addressing: register Flags: none IN port (nput) (A)—(data) ‘The data placed on the eight bit bir directionat data bus by the specified port is moved to register A. Cycles: 9 States: 10 Addressing: direct Flags: none OUT port —_ (Output) (data) — (A) ‘The content of register A is placed on the eight bit bi-directional data bus for transmission to the specified port. tala. Ts obs be rote 4 0 0/0 4°14 port 5. Cycles: 3 “16 (6085), 18 (6080) States: 10 Addressing: reg. indirect, Addressing: direct Flags: none Flags: none‘THE INSTRUCTION SET el (Enable interrupts) The interrupt system is enabled following the execution of the next instruction. Int fupte are not recognized during the El instruction, Cycles: 1 States: 4 Flags: none NOTE: Placing an El instruction on the bus in response to INTA during an INA cycle is pro: hibited. (6085) o (Disable interrupts) ‘The interrupt system is disabled immedi- ly following the execution of the DI in- struction. Interrupts are not recognized during the DI instruction. Cycles: 1 States: 4 Flags: none NOTE: Placing a 01 instruction on the bus in response to INTA during an INA cycle is pro- hibited. (8085) HUT. (Halt) The processor is stopped. The registers ‘and flags are unaffected. (8080) A second ALE is generated during the execution of HLT to strobe out the Halt cycle status in- formation. (6085) Gycles: 14 (8085), 1 (8080) States: 5 (8085), 7 (6080) Flags: none NOP (No op) No operation is performed. The registers and flags are unaffected “All mnemonics copyrighted intl Corporation 1878 epi tT TT 0 0 0 0 0 00 0 Gycles: 1 States: 4 Flags: none RIM (Read Interrupt Masks) (8085 only) The RIM instruction loads data into the ac- cumulator relating to interrupts and the serial input. This data contains the follow: ing information: * Current interrupt mask status for the RST 55, 65, and 7.5 hardware inter- rupts (1 = mask disabled) © Current interrupt enable flag status (1 = interrupts enabled) except im: mediately following a TRAP interrupt (Gee below.) * Hardware interrupts pending (Le. signal received but not yet serviced), on the RST 5.5, 65, and 7.5 lines. * Serial input data. Immediately following a TRAP interrupt, the RIM instruction must be executed as a part of the service routine if you need to fetrieve current interrupt status later. Bit 3 of the accumulator is (in this special case only) loaded with the interrupt enable (IE) flag status that existed prior to the TRAP Interrupt. Following an RST 8.5, 6.5, 7.5, or INTR interrupt, the interrupt flag flip-flop reflects the current interrupt enable status. Bit 6 of the accumulator (17.5) is loaded with the status of the RST 7.5 flip-flop, which is always set (edgetriggered) by an Input on the IST 7.8 input line, even when that interrupt has been previously masked. (See SIM Instruction.) Content drorrin|sio [irs] i695] 1 furs|uospuss| Tit ura Cycles: 1 States: 4 Flags: noneTHE INSTRUCTION SET SIM (Set Interrupt Masks) (8085 only) The execution of the SIM instruction uses the contents of the accumulator (which must be previously loaded) to perform tne following functions: © Program the interrupt mask for the AST 55, 65, and 7.5 hardware inter- rupts: ‘© Reset the edge-triggered RST 7.5 in put latch. ‘+ Load the SOD output laten. To program the interrupt masks, first set ac cumulator bit 3 to 1 and set to 1 any bits 0, 1, and 2, which disable interrupts RST 5. 65, and 7.5, respectively. Then do a SIM in: struction. If accumulator bit 31s Owhen the SIM instruction is executed, the interrupt mask register will not change, If ac- Ccumulator bit 4 is 1 when the SIM instruc. tion is executed, the RST 7.5 latch is then reset. AST 7.5 is distinguished by the fact that its latch is always sot by a rising edge on the AST 7.5 input pin, even if the jump to service routine is inhibited by masking This latch remains high until cleared by @ RESET IN, by a SIM Instruction with ac: ‘cumulator bit 4 high, or by an internal pro- ‘cessor acknowledge to an RST 7.5 interrupt Subsequent to the removal of the mask (by 4 SIM instruction), The RESET IN signal always sets all three RST mask bits. If accumulator bit 6 is at the 1 level when the SIM instruction Is executed, the state ‘of accumulator bit 7 is loaded into the SOD latch and thus becomes available for inter: face to an external device. The SOD latch is unaffected by the SIM instruction if bit 6 is 0. SOD is always reset by the RESET IN signal. sae [eoo]soe] x [ars[use|uns]woz]uss | ] T Testes wane ‘ast 66 Maak | cee tet Cycles; 1 States: 4 Flags: none
You might also like
Verilog One Stop Solution
PDF
No ratings yet
Verilog One Stop Solution
283 pages
8051 Microcontroller Special Function Registers (SFRs)
PDF
No ratings yet
8051 Microcontroller Special Function Registers (SFRs)
14 pages
UNIT 3-Timing Diagram
PDF
No ratings yet
UNIT 3-Timing Diagram
7 pages
All Instructions
PDF
No ratings yet
All Instructions
30 pages
Instructions Set of Microprocessor
PDF
No ratings yet
Instructions Set of Microprocessor
13 pages
Vtu 4th Sem Microprocessor and Microcontroller Module - 5
PDF
0% (1)
Vtu 4th Sem Microprocessor and Microcontroller Module - 5
17 pages
VLSI-PPT (1)
PDF
No ratings yet
VLSI-PPT (1)
31 pages
MC module-4 ppt
PDF
No ratings yet
MC module-4 ppt
74 pages
Lecture14-8085 Memory Interfacing
PDF
No ratings yet
Lecture14-8085 Memory Interfacing
18 pages
8085 Instruction Set
PDF
No ratings yet
8085 Instruction Set
14 pages
Flag Register in 8085 Microprocessor
PDF
100% (1)
Flag Register in 8085 Microprocessor
11 pages
Block Diagram of 8085
PDF
No ratings yet
Block Diagram of 8085
32 pages
Inderjit Singh Dhanjal Se Iii Edc 1 2017
PDF
100% (1)
Inderjit Singh Dhanjal Se Iii Edc 1 2017
51 pages
Nmos Inverter
PDF
No ratings yet
Nmos Inverter
9 pages
Timing Diagrams 8085
PDF
100% (1)
Timing Diagrams 8085
67 pages
thermalandelectricalconductivityofmetals-131121115911-phpapp02
PDF
No ratings yet
thermalandelectricalconductivityofmetals-131121115911-phpapp02
34 pages
Control Systems- Gate Class Day 1
PDF
No ratings yet
Control Systems- Gate Class Day 1
16 pages
04 The CMOS Inverter Annotated
PDF
No ratings yet
04 The CMOS Inverter Annotated
83 pages
8051 Pin Diagram & IO Ports
PDF
No ratings yet
8051 Pin Diagram & IO Ports
42 pages
superconductors-170427131638
PDF
No ratings yet
superconductors-170427131638
25 pages
Module 2_Design Thinking_part 1
PDF
No ratings yet
Module 2_Design Thinking_part 1
27 pages
2011 Set B
PDF
No ratings yet
2011 Set B
11 pages
wind turbine design
PDF
No ratings yet
wind turbine design
9 pages
16 - Channel 8 - Bit Adc Interface: User Manual
PDF
No ratings yet
16 - Channel 8 - Bit Adc Interface: User Manual
60 pages
Unit Iv Pic Microcontroller
PDF
100% (1)
Unit Iv Pic Microcontroller
68 pages
dielectric constant
PDF
No ratings yet
dielectric constant
14 pages
Electronic Communication
PDF
No ratings yet
Electronic Communication
117 pages
Microprocessors and Microcontrollers Module 1 - 5
PDF
0% (1)
Microprocessors and Microcontrollers Module 1 - 5
260 pages
8to1 Mux Using 4to1 Mux
PDF
100% (1)
8to1 Mux Using 4to1 Mux
5 pages
Colouttvfundamentals 160425132024
PDF
No ratings yet
Colouttvfundamentals 160425132024
105 pages
Data, Array Subsystems
PDF
No ratings yet
Data, Array Subsystems
114 pages
Umera Anjum - M.Tech
PDF
No ratings yet
Umera Anjum - M.Tech
61 pages
8085 and 8051 Presentation
PDF
100% (3)
8085 and 8051 Presentation
54 pages
8051 Lab Memory Transfer
PDF
No ratings yet
8051 Lab Memory Transfer
4 pages
8085 Instruction Set
PDF
No ratings yet
8085 Instruction Set
16 pages
Class 2-Introduction To 8085 Microprocessor PDF
PDF
100% (1)
Class 2-Introduction To 8085 Microprocessor PDF
46 pages
Sheet
PDF
100% (1)
Sheet
3 pages
Register Organization of 8086
PDF
No ratings yet
Register Organization of 8086
4 pages
UNIT-1: TOPIC: MOS Process, NMOS Process, CMOS Process
PDF
No ratings yet
UNIT-1: TOPIC: MOS Process, NMOS Process, CMOS Process
36 pages
Satellite Communication: by Ravikiran S. Anande Assistant Professor
PDF
100% (1)
Satellite Communication: by Ravikiran S. Anande Assistant Professor
35 pages
PDF 1
PDF
No ratings yet
PDF 1
17 pages
Chapter: CABLE TV: Constructional Details, Working and Radiation Pattern of Dish Antenna
PDF
No ratings yet
Chapter: CABLE TV: Constructional Details, Working and Radiation Pattern of Dish Antenna
19 pages
MIPS Green Sheet
PDF
No ratings yet
MIPS Green Sheet
2 pages
4.chapter4 CMOS Multistages Differential Amplifier
PDF
No ratings yet
4.chapter4 CMOS Multistages Differential Amplifier
60 pages
Read Chapter 3, The 8051 Microcontroller Architecture, Programming and Applications by Kenneth .J.Ayala
PDF
No ratings yet
Read Chapter 3, The 8051 Microcontroller Architecture, Programming and Applications by Kenneth .J.Ayala
32 pages
Introduction To Television
PDF
No ratings yet
Introduction To Television
27 pages
Page 1 of 2
PDF
No ratings yet
Page 1 of 2
2 pages
CCTV System.: C.Sagevan. JF/BST/F/17/1/0019
PDF
No ratings yet
CCTV System.: C.Sagevan. JF/BST/F/17/1/0019
28 pages
FM Transmitters Crosby
PDF
No ratings yet
FM Transmitters Crosby
4 pages
Design 2nd Key
PDF
No ratings yet
Design 2nd Key
1 page
An Application of 8085 Register Interfacing With Led
PDF
No ratings yet
An Application of 8085 Register Interfacing With Led
13 pages
Unit-1 (1) Draw and Explain The Internal Architecture of 8085
PDF
No ratings yet
Unit-1 (1) Draw and Explain The Internal Architecture of 8085
11 pages
19EC405 - Linear Integrated Circuits
PDF
No ratings yet
19EC405 - Linear Integrated Circuits
5 pages
Lecture006. Introduction Systolic Array
PDF
No ratings yet
Lecture006. Introduction Systolic Array
36 pages
Memory Interface
PDF
No ratings yet
Memory Interface
22 pages
Q. 8086 Programmer's Model: Register Organization (IMP)
PDF
No ratings yet
Q. 8086 Programmer's Model: Register Organization (IMP)
6 pages
PIC Program For Division
PDF
No ratings yet
PIC Program For Division
4 pages
HDTV T: Echnology
PDF
No ratings yet
HDTV T: Echnology
26 pages
Programming of 8085 PPT 1
PDF
No ratings yet
Programming of 8085 PPT 1
17 pages
RP Jain Adc Dac
PDF
No ratings yet
RP Jain Adc Dac
27 pages
Presented by Hrudya
PDF
No ratings yet
Presented by Hrudya
10 pages
Expt No. 10 (B)
PDF
No ratings yet
Expt No. 10 (B)
3 pages
MP & DSP Lab Manual
PDF
No ratings yet
MP & DSP Lab Manual
122 pages
Matched Filter - Haykin
PDF
No ratings yet
Matched Filter - Haykin
3 pages
Vlsi Mtech Jntu Kakinada Syllabus
PDF
No ratings yet
Vlsi Mtech Jntu Kakinada Syllabus
11 pages
Class 08: NMOS, Pseudo-NMOS
PDF
No ratings yet
Class 08: NMOS, Pseudo-NMOS
6 pages
Basic Vlsi Design (Modified)
PDF
No ratings yet
Basic Vlsi Design (Modified)
2 pages
Vlsi Lab 1
PDF
No ratings yet
Vlsi Lab 1
11 pages
EE401 Electronic Communication
PDF
No ratings yet
EE401 Electronic Communication
2 pages
ECE312 Lec03 PDF
PDF
No ratings yet
ECE312 Lec03 PDF
46 pages
Addressing Modes in 8085 - ComputerSC PDF
PDF
No ratings yet
Addressing Modes in 8085 - ComputerSC PDF
6 pages
8085 Memory Interfacing
PDF
No ratings yet
8085 Memory Interfacing
8 pages
8085 Microprocessor PPT and PDF Report
PDF
No ratings yet
8085 Microprocessor PPT and PDF Report
7 pages
VLSI Fabrication Process
PDF
No ratings yet
VLSI Fabrication Process
6 pages
Listing Bug
PDF
50% (2)
Listing Bug
9 pages
ARM7 Based LPC2148 Microcontroller
PDF
No ratings yet
ARM7 Based LPC2148 Microcontroller
4 pages
Experiment 1 PDF
PDF
No ratings yet
Experiment 1 PDF
3 pages
Combinational Logic With MSI and LSI: Basic Device (Diode, Resistor, Transistor Etc) SSI MSI
PDF
No ratings yet
Combinational Logic With MSI and LSI: Basic Device (Diode, Resistor, Transistor Etc) SSI MSI
13 pages
Electronic Devices (Ec-301)
PDF
No ratings yet
Electronic Devices (Ec-301)
3 pages
The Avr Instruction Set
PDF
No ratings yet
The Avr Instruction Set
4 pages