=== page 1 === TOSHIBA TLCS-900/H CPU Appendix A: Details of Instructions | Instruction List @® Load LD PUSH POP LDA LDAR @ Exchange EX MIRR @ Load Increment/Decrement & Compare Increment/Decrement LDI LDIR LDD LDDR CPI CPIR CPD CPDR @ Arithmetic operations ADD ADC SUB SBC cP INC DEC NEG EXTZ EXTS DAA PAA MUL MULS DIV DIVS MULA MINC MDEC © Logical operations AND OR XOR CPL © Bit operations LDCF STCF ANDCF ORCF XORCF RCF SCF CCF ZCF BIT RES SET CHG TSET BS1 @® Special operations and CPU control NOP El DI PUSH_SR POP.SR_ SWI HALT LDC LDX LINK UNLK LDF INCF DECF scc Rotate and shift RLC RRC RL RR SLA SRA SLL SRL RLD RRD © Jump, call, and return JP JR JRL CALL CALR DJNZ RET RETD RETI CPU900H-40 2001-03-16 === page 2 === TOSHIBA TLCS-900/H CPU | Explanations of symbols used in this document dst Destination: destination of data transfer or operation result load. src Source: source of data transfer or operation data read. num Number: numerical value. condition Condition: based on flag status. R Eight general-purpose registers including 8/16/32-bit current bank registers. 8-bit registers :W,A,B,C,D,E,H, L (only eight registers) 16-bit registers : WA, BC, DE, HL, IX, IY, IZ, SP (only eight registers) 32-bit registers : XWA, XBC, XDE, XHL, XIX, XIY, XIZ, XSP_ (only eight registers) r 8/16/32-bit general-purpose registers \ , ; , r16—_| 16-bit general-purpose registers (Please referito register map r32_ | 32-bit general-purpose registers on page CPUS00H-45, 46.) cr All 8/16/32-bit CPU control registers DMASO to 3, DMADO to 3, DMACO to 3, DMAM0 to 3, INTNEST A A register (8 bits) F Flag registers (8 bits) F’ Inverse flag registers (8 bits) SR Status registers (16 bits) PC Program counter (in minimum mode, 16 bits; in maximum mode, 32 bits) (mem) | 8/16/32-bit memory data mem Effective address value When the operand size is a word, W must be specified. [ ] Operands enclosed in square brackets can be omitted. # 8/16/32-bit immediate data. #3 3-bit immediate data : Oto 7or1to8... for abbreviated codes. #4 4-bitimmediate data : Oto 150r1 to 16 d8 8-bit displacement : -80H to + 7FH d16 16-bit displacement : -8000H to + 7FFFH cc Condition code CY Carry flag Z Zero flag (#8) Direct addressing: (00H) to (OFFH) ... 256-byte area (#16) 64K-byte area addressing: (O000H) to (OFFFFH) (-r32) Pre-decrement addressing (r32+) Post-increment addressing $ Start address of instruction CPU900H-41 2001-03-16 === page 3 === TOSHIBA TLCS-900/H CPU | Explanations of symbols in object codes [ere | word [svn 2Z Operand size specify code hata ae Post — | of tt i ify r | ooo | ow | wa | xu | os | «| oc | vc | Poo fe | oe | we | ron fe | «| me | aco fo | mm | Pan [= |» | mw | Po f «| | a | pas fe | se | se | Note: In addition to the above, all registers can be specified by “r” using extension codes. In this case, the number of execution states increases by 1. The format is shown below. First op code Yo \1\1\1 Sets the lower 4 bits to 0111. Inserts the register code specified g y 8 bits between the first an Second op code YY), second op codes. The code value in “r” must be: Multiple of 2, if accessed as a word register. Multiple of 4 ,if accessed as a long word. For registers specified by 8 bits, see Register Maps. CPU900H-42 2001-03-16 === page 4 === TOSHIBA TLCS-900/H CPU Memory addressing mode specify code (XWA) = <7:0>= Indicates the data bit range. (XHL) = (xsp) = (xiLeas) = (XIX+d8) = (XIY+d8) = (XIZ+d8) = (xsPeas) = (#8) = (#16) = (92) = (razed16) = (r32+r8 ) = (r32+r]6) = (-r82) (r32+) t t zz= Code used to specify the value of r32: 32-bit register increments or decrements. r16: Signed 16-bit register 00: +1 r8: Signed 8-bit register 0: 11: (Notdefined) r32’ = Upper 6 bits of register code CPU900H-43 2001-03-16 === page 5 === TOSHIBA TLCS-900/H CPU cc Condition codes 0000 Fl/always False - 1000 (none)|always True - 0110 Z| Zero Z=1 1110 NZ|Not Zero Z=0 0111 C|}Carry C=1 1111 NC |Not Carry c=0 1101 | PL or P|PLus S=0 0101 | MI or M/MInus $=1 1110 NE |Not Equal Z=0 0110 EQ] EQual Z=1 0100 OV | OVerf low P/V=1 1100 NOV|No OVerflow P/V=0 0100 PE|Parity is Even P/V=1 1100 PO|Parity is Odd P/V=0 1001 GE|Greater than or Equal (signed)| (S xor P/V) =0 0001 LT|Less Than (signed) (S xor P/V) =1 1010 GT|}Greater Than (signed) [Z or (S xor P/V) ]=0 0010 LE|Less than or Equal (signed) [Z or (S xor P/V) ]=1 1111 UGE |Unsigned Greater than or Equal} C=0 0111 ULT|Unsigned Less Than C=1 1011 UGT|Unsigned Greater Than (C or Z) =0 0011 ULE|Unsigned Less than or Equal (C or Z) =1 CPU900H-44 2001-03-16 === page 6 === TOSHIBA TLCS-900/H CPU | Register map “r” +3 +2 +1 +0 00H 04H ee ee Bank 0 08H OCH 10H 14H Bank 1 18H 1CH 20H 24H Bank 2 28H 2CH 30H 34H ee eee Bank 3 38H 3CH 40H [SO CC C—iC CO 44H [SN ed ASH DN tt rr ach [ON Sd 50H [OC OO aOSOSCSC~*r 54H [eT 58H [OC ee BCH [OO NOOO Sd 60H [OL ON 64H | ee a A 6CH |S 70H [OS 74H ft 78H tN WH [7 DOH D4H ; D8H -— Bee ee Previous bank DCH EOH E4H Current bank ESH ECH FOH F4H F8H FCH () : Word register name (16 bits) < > : Long word register name (32 bits) CPU900H-45 2001-03-16 === page 7 === TOSHIBA TLCS-900/H CPU | Control register map “cr” +3 +2 +1 +0 00H ! I 04H ! ! ‘eM 08H register OCH ) 10H DMA 14H I 1 : . 18H } Beh 1CH H H 20H H DMAMO I DMA (CO DMA 24H 28H 1__DMAM2____1 DMA 1C2 oer 2CH I DMAM3 1 DMA'C3 3CH INT 'NEST Interrupt Nesting Counter. Q) : Word register name (16 bits) < > : Long word register name (32 bits) CPU900H-46 2001-03-16 === page 8 === TOSHIBA TLCS-900/H CPU ADC dst, src < Add with Carry > Operation : dst (mem,# —— [Tfm [ols [mm mm CPU900H-47 2001-03-16 === page 9 === TOSHIBA TLCS-900/H CPU Flags: S Z H V N C S = MSB value of the result is set. Z = lissetifthe result is 0, otherwise 0. H = 1 is set if a carry from bit 3 to bit 4 occurs as a result of the operation; otherwise, 0. If the operand is 32-bit, an undefined value is set. V = 1issetifan overflow occurs as a result of the operation; otherwise, 0. N = Cleared to zero. C = 1lissetifacarry occurs from the MSB, otherwise 0. Execution example: ADC HL,IX When the HL register = 2000H, the IX register = 3456H, and the carry flag = 1, execution sets the HL register to 5457H. 2000 HL register o——| 1 Carry flag CPU900H-48 2001-03-16 === page 10 === TOSHIBA TLCS-900/H CPU ADD dst, sre < Add > Operation : dst (mem),# [i ]m[o] Jom mmm] CPU900H-49 2001-03-16 === page 11 === TOSHIBA TLCS-900/H CPU Flags : S Z H V N C S = MSB value of the result is set. Z = lissetifthe result is 0, otherwise 0. H = 1 is set if a carry from bit 3 to bit 4 occurs as a result of the operation, otherwise 0. If the operand is 32-bit, an undefined value is set. V = 1issetifan overflow occurs as a result of the operation, otherwise 0. N = Cleared to zero. C = 1lissetifacarry occurs from the MSB, otherwise 0. Execution example: ADD HL,IX When the HL register = 2000H and the IX register = 3456H, execution sets the HL register to 5456H. 2000 HL register ) IX register CPU900H-50 2001-03-16 === page 12 === TOSHIBA TLCS-900/H CPU AND dst, sre < And > Operation : dst (mem,# — E]e[o [mam ml CPU900H-51 2001-03-16 === page 13 === TOSHIBA TLCS-900/H CPU Flags : S Z H V N C P+ f+ fit +fofo. S = MSB value of the result is set. Z = lissetifthe result is 0, otherwise 0. H = lisset. V = 1isset ifa parity of the result is even, 0 if odd. If the operand is 32 bits, an undefined value is set. N = Cleared to zero. C = Cleared to zero. Execution example: AND HL,IX When the HL register = 7350H and the IX register = 3456H, execution sets the HL register to 3050H. 0111 0011 0101 0000 < MHLregister (before execution) AND) 0011 0100 0101 0110 < [IX register (before execution) 0011 0000 0101 0000 < HLregister (after execution) CPU900H-52 2001-03-16 === page 14 === TOSHIBA TLCS-900/H CPU ANDCF num, sre < And Carry Flag > Operation : CY Description : Ands the contents of the carry flag and bit num of src, and transfers the result to the carry flag. Details : Size Mnemonic Code Byte Word Long word O 0 x ANDER #42 Te py ys | O OO x ANDOF As ERE) Ed ere O x x ANDCF #8, (mem) fifm]1,1[m,m,;m,m O x x ANDOF = Aytmem) [Jem], [mm mm] Notes : When bit num is specified by the A register, the value of the lower 4 bits of the A register is used as bit num. When the operand is a byte and the value of the lower 4 bits of bit num is from 8 to 15, the result is undefined. Flags : S Z H V N C S = Nochange Z = Nochange H = Nochange V = Nochange N = Nochange C = The value obtained by anding the contents of the carry flag and the bit num of src is set. Execution example: ANDCF 6,(100H) When the contents of memory address 100 = 01000000B (binary) and the carry flag = 1, execution sets the carry flag to 1. 76543210 [0 }1}0}0}0]0}0]0| Address 100 @NnD Carry flag (before execution) [1] Carry flag (after execution) CPU900H-53 2001-03-16 === page 15 === TOSHIBA TLCS-900/H CPU BIT num, src < Bit test > Operation : Zflag inverted value of sre Description : Transfers the inverted value of the bit num of src to the Z flag. Details : Size Mnemonic Code Byte Word Long word 0 OO x Br #42 pls | Ox x BI #8,(mem) [En Yin om Flags : S Z H V N C x-fi] xo} - S = Anundefined value is set. Z = The inverted value of src is set. H = lisset. V = Anundefined value is set. N = Reset to 0. C = Nochange Execution example: BIT 5,(100H) When the contents of memory address 100 = 00100000B (binary), execution sets the Z flag to 0. 76543210 fo }0{1{0/0]0]0}0| Address 100 Inverted 0 | Z flag CPU900H-54 2001-03-16 === page 16 === TOSHIBA TLCS-900/H CPU BSI1B dst, sre < Bit Search 1 Backward > Operation : dst Operation : dst Operation : Ifccis true, then XSP — XSP—4,(XSP) < 32-bit PC,PC < dst. Description : Ifthe operand condition is true, saves the contents of the program counter to the stack area and jumps to the program address specified by dst. Details : Mnemonic Code CALL #16 CALL #24 CALL ee,] mem Pe Yon fm mm Flags : S Z H V N C S = Nochange Z = Nochange H = Nochange V = Nochange N = Nochange C = Nochange Execution example: CALL 9000H When the stack pointer XSP is 100H, executing this instruction at memory address 8000H writes the return address 8003H (long word data) to memory address OFCH, sets the stack pointer XSP to OFCH, and jumps to address 9000H. CPU900H-57 2001-03-16 === page 19 === TOSHIBA TLCS-900/H CPU CALR dst < Call Relative > Operation : XSP Operation : CY Operation : dst < Inverted value of dst Description : Inverts the value of bit num of dst. Details : Size Mnemonic Code Byte Word Long word 0 0 x CHE #42 Sper ere O x x CHG #8,(mem) [En 1 inom Flags : § ZH VNC S = Nochange Z = Nochange H = Nochange V = Nochange N = Nochange C = Nochange Execution example: CHG 5,(100H) When the contents of memory address 100 = 00100111B (binary), execution sets the contents to 00000111B (binary). 7_ 6 4,3 2 1 0 fofofifolo}1}1]1| Address 100 (before execution) Inverted fo}ofofo]o]1]1]| 1] Address 100 (after execution) CPU900H-60 2001-03-16 === page 22 === TOSHIBA TLCS-900/H CPU CP srel, src2 < Compare > Operation : srcel—src2 Description : Compares the contents of srcl with those of src2 and indicates the results in flag register F. Details : Size Mnemonic Code Byte Word Long word Oo 0 OO © Rs ERCUETEIEn ra ayy to, 4k, | 0 OO x © 1 #3 ERreted Ea eri Oo 0 OO @ ri Tilly, | 0 0 OO @ R,(mem) [UJ], # om mmm arto, Ry O O O cP (mem), R 2 fm] 2 yz [mpm mm atta] Ry | O 0 x crews (mem), # = [m0 # Jom mmm] Note: #3 in operands indicates from 0 to 7. CPU900H-61 2001-03-16 === page 23 === TOSHIBA TLCS-900/H CPU Flags : S Z H V N C P+ t+]+ f+ [te S = MSB value of the result is set. Z = 1issetifthe result is 0, otherwise 0. H = 1 is set if a borrow from bit 3 to bit 4 occurs as a result of the operation, otherwise 0. If the operand is 32 bits, an undefined value is set. V = 1issetif an overflow occurs as a result of the operation, otherwise 0. N = Lisset. C = 1 is set if a borrow occurs from the MSB bit as a result of the operation, otherwise 0. Execution example: CP HL,IX When the HL register = 1234H and the IX register = 1234H, execution sets the Z and N flags to 1 and clears the §, H, V, and C flags to zero. 1234 HL register ] 1234 IX register 0000 (Not loaded) CPU900H-62 2001-03-16 === page 24 === TOSHIBA TLCS-900/H CPU CPD srcl, src2 < Compare Decrement > Operation : srcel—sre2, BC Operation : srcl—src2, BC —BC-—1, Repeat until srel =srce2 or BC=0 Description : Compares the contents of srcl with those of src2. Then decrements the contents of the BC register by 1. Repeats until srcl = src2 or BC = 0. srcl must be the A or WA register. src2 must be in post-decrement register indirect addressing mode. Details : Size Mnemonic Code Byte Word Long word O OO x cppR awa] [oo eJoT (RY Note: Omitting operands in square brackets [] specifies A, XHL—). Flags : S Z H V N C Pett] ta] -| S = MSB value of the result of srcl - src2 is set. Z = lissetifthe result of srcl - sre2 is 0, otherwise 0. H = 1 is set if a borrow from bit 3 to bit 4 occurs as a result of srel - src2, otherwise 0. V = Oissetifthe BC register value is 0 after execution, otherwise 1. N = lLisset. C = Nochange Execution example: CPDR A,(XIX—) Under the following conditions, execution reads the contents of memory addresses 123456H, 123455H, and 123454H. The instruction ends with condition BC = 0 and sets the XIX register to 00123453H and the BC register to OOOOH. Conditions: A register = 55H XIX register = 00123456H BC register = 0003H Memory address 123456H = 11H Memory address 123455H = 22H Memory address 123454H = 33H CPU900H-64 2001-03-16 === page 26 === TOSHIBA TLCS-900/H CPU CPI srel, src2 < Compare Increment > Operation : srcl-src2, BC Operation : srcel-src2, BC —BC—1, repeat until srcl =sre2 or BC=0 Description : Compares the contents of srcl with those of src2. Then decrements the contents of the BC register by 1. Repeats until srcl = src2 or BC = 0. srcl must be the A or WA register. src2 must be in post-increment register indirect addressing mode. Details : Size Mnemonic Code Byte Word Long word OO x CPR [AWA] [2,0,0]7]0] (8, | Note: Omitting operands in square brackets[ ] specifies A,XHL+). Flags : S Z H V N C pete te]e ft f- S = MSB value of the result of srcl-src2 is set. Z = lissetifthe result of srcl-src2 is 0, otherwise 0. H = 1issetifa borrow from bit 3 to bit 4 occurs as a result of srcl-src2, otherwise 0. V = Oissetifthe BC register value is 0 after execution, otherwise 1. N = lisset. C = Nochange Execution example: CPIR A,(XIX+) Under the following conditions, execution reads memory addresses 123456H, 123457H, and 123458H. The instruction ends with condition srcl = src2, sets the XIX register to 00123459H and the BC register to 01FDH. Conditions: A register = 33H XIX register = 00123456H BC register = 0200H Memory address 123456H = 11H Memory address 123457H = 22H Memory address 123458H = 33H CPU900H-66 2001-03-16 === page 28 === TOSHIBA TLCS-900/H CPU CPL dst < Complement > Operation : dst< Ones complement of dst Description : Transfers the value of ones complement (inverted bit of 0/1) of dst to dst. Details : Size Mnemonic Code Byte Word Long word Oo OO ™%K chs aah, | Flags : S Z H V N C }=-[-|1]-[1 | -| S = Nochange Z = Nochange H = lLisset. V = Nochange N = lisset. C = Nochange Execution example: CPL WA When the WA register = 1234H, execution sets the WA register to EDCBH. 0001 0010 0011 0100 WA register (before execution) Sy Inverted 1110 1101 1100 1011 WA register (after execution) CPU900H-67 2001-03-16 === page 29 === TOSHIBA TLCS-900/H CPU DAA dst < Decimal Adjust Accumulator > Operation : dst Operation : dst #3,(mem) [i [m|0]z|m_m_m ml Note: #3 in operands indicates from 1 to 8; object codes correspond from 1 to 7,0. Flags : S Z H V N C P= t*f- f= {1} - S = MSB value of the result is set. Z = lissetifthe result is 0, otherwise 0. H = 1 is set if a borrow from bit 3 to bit 4 occurs as a result of the operation, otherwise 0. V = 1issetif an overflow occurs as a result of the operation, otherwise 0. N = lisset. C = Nochange Note: With the DEC #3, r instruction, if the operand is a word or a long word, no flags change. Execution example: DEC 4,HL When the HL register = 5678H, execution sets the HL register to 5674H. CPU900H-70 2001-03-16 === page 32 === TOSHIBA TLCS-900/H CPU < Decrement Register File Pointer > Operation : RFP<2:0><—RFP<2:0>-1 Description : Decrements the contents of register file pointer RFP <2:0> in the status register by 1. RFP2 is fixed to 0. Details : Mnemonic Code DBCF Flags : S Z H V N C S = Nochange Z = Nochange H = Nochange V = Nochange N = Nochange C = Nochange Execution example: DECF When the contents of RFP<2:0> = 2, execution sets the contents of RFP<2:0> tol. CPU900H-71 2001-03-16 === page 33 === TOSHIBA TLCS-900/H CPU < Disable Interrupt > Operation : IFF<2:0> <7 Description : Sets the contents of the interrupt enable flag (IFF) <2:0> in status register to 7. After execution, only non-maskable interrupts (interrupt level 7) can be received. Details : Mnemonic Code DI Flags : § ZH VN C S = Nochange Z = Nochange H = Nochange V = Nochange N = Nochange C = Nochange CPU900H-72 2001-03-16 === page 34 === TOSHIBA TLCS-900/H CPU DIV dst, sre < Divide > Operation : dst < remainder (unsigned) Description : Divides unsigned the contents of dst by those of src and transfers the quotient to the lower half of dst, the remainder to the upper half of dst. Details : Size Mnemonic Code Byte Word Long word OO x DV RR: ERErC) Eee ere 0,10, 1,0[ {Ry | 0 OO ™%. DV mF ERretes Ea eri O O x DIV RR,(mem) — [1 |m]0 | « [my mm) m| Ot0,0,0, (Ry *For RR, see the following page. Notes : When the operation is in bytes, dst (lower byte) < dst (word) +src (byte), dst (upper byte) <— remainder. When the operation is in words, dst (lower word) < dst (long word) + src (word), dst (upper word) < remainder. Match coding of the operand dst with the size of the dividend. Flags : S Z H V N C |-[-|-]*[-|-| S = Nochange Z = Nochange H = Nochange V = 1isset when divided by 0 or the quotient exceeds the numerals which can be expressed in bits of dst for load; otherwise, 0 is set. N = Nochange C = Nochange CPU900H-73 2001-03-16 === page 35 === TOSHIBA TLCS-900/H CPU Executionexample: DIV XIX,IY When the XIX register = 12345678H and the IY register = 89ABH, execution results in a quotient of 21DAH and a remainder of OFDAH, and sets the XIX register to OFDA21DAH. Note: “RR” of the DIV RR,r and DIV RR,(mem) instruction is as listed below. Operation size in bytes Operation size in words (8 bits — 16 bits +8 bits) (16 bits — 32 bits + 16 bits) [ak cone [ak cone | WA 001 XWA 000 BC 011 XBC 001 DE 101 XDE 010 IX XIX 100 lY specifica: XlY 101 IZ J possible! xIZ 110 SP XSP 111 “rr” of the DIV rr,# instruction is as listed below. Operation size in bytes Operation size in words (8 bits — 16 bits + 8 bits) (16 bits — 32 bits + 16 bits) pr | coder WA 001 XWA 000 BC 011 XBC 001 DE 101 XDE 010 IX C7H : FOH XIX 100 IY C7H : F4H XIY 101 IZ C7H : F8H XIZ 110 SP C7H : FCH xsP 111 Ist byte 2nd byte Note: Any other long word registers can be Note: Any other word registers can be specified specified in the extension coding. in the same extension coding as |X to SP. CPU900H-74 2001-03-16 === page 36 === TOSHIBA TLCS-900/H CPU DIVS dst, sre < Divide Signed > Operation : dst < remainder (signed) Description : Divides signed the contents of dst by those of src and transfers the quotient to the lower half of dst, the remainder to the upper half of dst. Details : Size Mnemonic Code Byte Word Long word 0 O x DIS RR: TPE | ot 0,11] {Ry | O OO ™ DVS mf ERretes Ea eri O O x DIVS RR,(mem) [1 | mJ 0[z|mymjmjm/ oj1,0,1;1] Ry | * For RR, see the following page. Notes : When the operation is in bytes, dst (lower byte) <— dst (word) +src (byte), dst (upper byte) <— remainder. When the operation is in words,dst (lower word) < dst (long word) + sre (word), dst (upper word) < remainder. Match coding of the operand dst with the size of the dividend. The sign of the remainder is the same as that of the dividend. Flags : S Z H V N C S = Nochange Z = Nochange H = Nochange V = 1 is set when divided by 0, or the quotient exceeds the value which can be expressed in bits of the dst used for loading, otherwise 0. N = Nochange C = Nochange CPU900H-75 2001-03-16 === page 37 === TOSHIBA TLCS-900/H CPU Execution example: DIVS XIX,IY When the XIX register = 12345678H and the IY register = 89ABH, execution results in the quotient as 16EEH and the remainder as D89EH, and sets the XIX register to 1GEED89EH. Note: “RR” of the DIVS RR,r and DIVS RR,(mem) instruction is as listed below. Operation size in bytes Operation size in words (8 bits — 16 bits + 8 bits) (16 bits < 32 bits + 16 bits) [ak Gone e ee WA 001 XWA 000 BC 011 XBC 001 DE 101 XDE 010 HL 111 XHL 011 lY | spect XIY 101 IZ possible! XIZ 110 SP ) XSP 111 “rr” of the DIVS rr,# instruction is as listed below. Operation size in bytes Operation size in words (8 bits — 16 bits + 8 bits) (16 bits — 32 bits + 16 bits) WA 001 XWA 000 BC 011 XBC 001 DE 101 XDE 010 HL 111 XHL 011 IY C7H : F4H XIY 101 IZ C7H : F8H XIZ 110 SP C7H : FCH XSP 111 Istbyte 2nd byte Note: Any other long word registers can be Note: Any other word registers can be specified specified in the extension coding. in the same extension coding as those for IX to SP. CPU900H-76 2001-03-16 === page 38 === TOSHIBA TLCS-900/H CPU DJNZ dstl, dst2 < Decrement and Jump if Non Zero > Operation : dstl Operation : IFF <2:0> in the status register to num. After execution, the CPU interrupt receive level becomes num. Details : Mnemonic Code EI [#3] Note: A value from 0 to 7 can be specified as the operand value. If the operand is omitted, the default value is “0” (EI 0). Flags : § ZH VN C S = Nochange Z = Nochange H = Nochange V = Nochange N = Nochange C = Nochange CPU900H-78 2001-03-16 === page 40 === TOSHIBA TLCS-900/H CPU EX dst, sre < Exchange > Operation : dst Operation : dst < signed bit of dst Description : Transfers (copies) the signed bit (bit 7 when the operand size is a word, bit 15 when a long word) of the lower half of dst to all bits of the upper half of dst. Details : Size Mnemonic Code Byte Word Long word x OO O | EXTS x ERC rea ere Flags : S Z H V N C S = Nochange Z = Nochange H = Nochange V = Nochange N = Nochange C = Nochange Execution example: EXTS HL When the HL register = 6789H, execution sets the HL register to FF89H. 15 8 7 0 fo{1}ifojo}i1j1{1}1jofojoli1jojo{1| HL register (before execution) 15 8 7 0 Fiafafta{af[ratrfrfafrfolofo}1fofo].| HL register (after execution) CPU900H-80 2001-03-16 === page 42 === TOSHIBA TLCS-900/H CPU EXTZ dst < Extend Zero> Operation : dst <0 Description : Clears the upper half of dst to zero. Used for making the operand sizes the same when they are different. Details : Size Mnemonic Code Byte Word Long word x OO O | EXMm ENCE ere Flags : S Z H V N C S = Nochange Z = Nochange H = Nochange V = Nochange N = Nochange C = Nochange Execution example: EXTZ HL When the HL register = 6789H, execution sets the HL register to 0089H. EXTZ XIX When the XIX register = 12345678H, execution sets the XIX register to 00005678H. CPU900H-81 2001-03-16