ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
41
M8C Instruction Set
4.4
Arithmetic Shift Left
ASL
Shifts all bits of the instruction’s argument one bit to the left. Bit 7 is loaded into the Carry Flag and bit
0 is loaded with a zero.
Instructions
Operation
Opcode
Cycles Bytes
Mnemonic
Argument
ASL
A
0x64
4
1
ASL
[expr]
0x65
7
2
ASL
[X+expr]
0x66
8
2
Conditional
Flags:
CF
ZF
Set equal to the initial argument’s bit 7 value.
Set if the result is zero; cleared otherwise.
Example 1:
mov
A, 0x7F
;initialize A with 127
asl
A
;A=0xFE, CF=0, ZF=0
Example 2:
mov
0xEB], AA
;initialize RAM @ 0xEB with 0
asl
0xEB]
;ram[0xEB]=54, CF=1, ZF=0
7
4
5
2
3
0
1
CF
0
6
A
CF
A:7
A:7
A:6
A:6
A:5
A:5
A4
A:4
A:3
A:3
A:2
A:2
A:1
A:1
A:0
A:0
0
ram k
CF
ram k
:7
ram k
:7
ram k
:6
ram k
:6
ram k
:5
ram k
:5
ram k
:4
ram k
:4
ram k
:3
ram k
:3
ram k
:2
ram k
:2
ram k
:1
ram k
:1
ram k
:0
ram k
:0
0
ram X k
+
CF
ram X k
+
:7
ram X k
+
:7
ram X k
+
:6
ram X k
+
:6
ram X k
+
:5
ram X k
+
:5
ram X k
+
:4
ram X k
+
:4
ram X k
+
:3
ram X k
+
:3
ram X k
+
:2
ram X k
+
:2
ram X k
+
:1
ram X k
+
:1
ram X k
+
:0
ram X k
+
:0
0
Summary of Contents for PSoC DESIGNER ImageCraft M8C
Page 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Page 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Page 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Page 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Page 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Page 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Page 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...