| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
MPD78CP14KB bảng dữ liệu(PDF) 344 Page - NEC |
|
|
|||||||||||||||||||||||||||||
MPD78CP14KB bảng dữ liệu(HTML) 344 Page - NEC |
|
344 / 373 page ![]() CHAPTER 14 INSTRUCTION SET 326 14.7 Stacked Instructions If instructions in the same group, group A or group B, from among the 3 kinds of instructions shown below are "stacked" in a program (i.e. if located in two or more consecutive addresses), the instruction located at the start point among the stacked instructions is executed, and thereafter the number of states fundamentally required for execution of that instruction are expended without any operation being performed (the same state as NOP). Group A: MVI A, byte (L1 flag) Group B: MVI L, byte; LXI H, word (L0 flag) When a group A instruction is executed the L1 flag is set, and when a group B instruction is executed the L0 flag is set, and a check is made of whether instructions in the same group are stacked. Interrupts are not disabled during stacked instruction execution, but since the L1 and L0 flags are automatically saved when an interrupt is generated, it is possible, on returning from the interrupt service routine, to determine whether the next instruction is one which should be given a stacking effect. Using stacked MVI instructions, a program which clears a 4-byte register located in a specific area of memory (in this case with 10H as the upper address byte) can be written as shown below. 8 9 ABCD E F 01234567 1000 X-REG Y-REG 1008 Z-REG W-REG CLX : MVI L, 00H ; CLEAR X-REG CLY : MVI L, 04H ; CLEAR Y-REG CLZ : MVI L, 08H ; CLEAR Z-REG CLW : MVI L, 0CH ; CLEAR W-REG MVI H, 40H MVI C, 3 ; SET COUNTER XRA A, A ; CLEAR A LOOP : STAX H+ ; (HL) ← 0, HL ← HL+1 DCR C ; SKIP IF BORROW JR LOOP RET When "CLY" is called, for example, 04H is loaded into the L register and the two stacked instructions MVI L, 08H and MVI L, 0CH are replaced with an idle cycle (NOP cycle) comprising a total of 14 states, the upper byte of the address is determined by the next MVI H, 40H instruction and the Y-REG start address "4004H" is loaded into the HL register pair. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |