3.1.2汇编语言指令举例:LD命令 Opcode 1: 1514131211109 8 654 321 指令代码 0 001000D 2: 151413 1211109 8 7 54321 6 0 0 0 01 01 0 D A A AA AA 3: 15 141312 1110 9 8 7 6 54 321 0 0 1 0 00 1 0 D A A 4: 151413121110 9 8 7 6 54321 0 0 11 0111 1 AA 0 0 0 0 1 1 0 D 0 1 0 S H T 5: 151413121110987654321( 0 1 0 0 1 0 10 X X X SH 1F17T
3.1.2 汇编语言指令举例: LD命令 17 指令代码
3.1.2汇编语言指令举例:LD命令 6: 指令代码 15 141312 1110 9 8 7 6 5 43 21 0 1 1 0 1 0 0 D K K K K K 7: 15 1413 12 11 10 9 8 7 6 5 4 3 2 1 0 1 1 1 1 0 0 0 D 0 0 1 0 S H F T 16-bit constant 8: 15 141312 11 10 9 8 7 6 5 4 3 2 1 0 1 1 1 1 0 0 0 D 0 1 1 0 0 0 0 16-bit constant 9: 15 1413 12 11 10 9 8 7 6 5 4 3 2 1 0 1 1 1 1 0 1S D 10 0 0 0 0 1 0 10: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 1 1 1 1 0 1 s D 0 1 0 s H F 18
3.1.2 汇编语言指令举例: LD命令 18 指令代码
3.1.2汇编语言指令举例:LD命令 Execution 1: (Smem)→dst 1: Smem,dst 2: (Smem)<<TS→dst 2: LD Smem,TS.dst 执行 3: (Smem)<16→dst 3: LD Smem,16,dst 4: (Smem)<<SHIFT→dst4: LD Smem [SHIFT],dst 5: (Xmem)<SHFT→dst 5: LD Xmem,SHFT,dst 6: K→dst 6: LD #K,dst 7: Ik<SHFT→dst 7: LD #lk [SHFT],dst 8: Ik<<16→dst 8: LD #lk,16,dst 9: (src)<ASM→dst 9 LD src,ASM [dst 10:(src)<<SHIFT→dst 10: LD src [SHIFT],dst Status Bits Affected by SXM in all accumulator loads 状态位 Affected by OVM in loads with SHIFT or ASM shift Affects OVdst(or OVsrc,when dst src)in loads with SHIFT or ASM shift Description This instruction loads the accumulator(dst,or src if dst is not specified)with 说明 a data-memory value or an immediate value,supporting different shift quanti- ties.Additionally,the instruction supports accumulator-to-accumulator moves with shift
3.1.2 汇编语言指令举例: LD命令 19 执行 状态位 说明
3.1.2汇编语言指令举例:LD命令 Notes: 注意事项 The following syntaxes are assembled as a different syntax in certain cases. Syntax 4:If SHIFT=0,the instruction opcode is assembled as syntax 1. Syntax 4:If 0<SHIFT 15 and Smem indirect addressing mode is included in Xmem,the instruction opcode is assembled as syntax 5. Syntax 5:If SHFT=0,the instruction opcode is assembled as syntax 1. Syntax7:If SHFT=0and0≤k≤255,the instruction opcode is assembled as syntax 6. 20
3.1.2 汇编语言指令举例: LD命令 20 注意事项
3.1.2汇编语言指令举例:LD命令 Words Syntaxes 1,2,3,5,6,9,and 10:1 word Syntaxes 4,7,and 8:2 words 指令字长 Add 1 word when using long-offset indirect addressing or absolute addressing with an Smem. Cycles Syntaxes 1,2,3,5,6,9,and 10:1 cycle Syntaxes 4,7,and 8:2 cycles 周期数 Add 1 cycle when using long-offset indirect addressing or absolute addressing with an Smem. 1 LD Smem,dst 2: LD Smem,TS,dst Classes Syntaxes 1,2,3,and 5:Class 3A(3: LD Smem,16,dst 类型 Syntaxes 1,2,and 3:Class 3B(se 4: LD Smem[,SHIFT],dst Syntax 4:Class 4A(see page 3-7) 56 LD Xmem,SHFT,dst Syntax 4:Class 4B(see page 3-8) LD #K,dst Syntaxes 6,9,and 10:Class 1(se8: LD #Ik[,SHFT],dst LD #lk,16,dst Syntaxes 7 and 8:Class 2(see pa9: LD src,ASM [dst 10: LD src [SHIFT],dst
3.1.2 汇编语言指令举例: LD命令 21 指令字长 周期数 类型