ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
99
A. Reference Tables Appendix
The tables in this appendix are intended to serve as a quick reference to the M8C assembler direc-
tives. The tables are also found in the body of this guide. For detailed information on the instruction
set and the assembler directives, refer to the
Instruction Set Summary on page 14
and the
bler Directives chapter on page 75
.
A.1
Assembly Syntax Expressions
A.2
Operand Constant Formats
.
Table A-1. Assembly Syntax Expressions
Precedence
Expression
Symbol
Form
1
Bitwise Complement
~
(~a)
2
Multiplication/Division/Modulo
*, /, %
(a*b), (a/b), (a%b)
3
Addition / Subtraction
+, -
(a+b), (a-b)
4
Bitwise AND
&
(a&b)
5
Bitwise XOR
^
(a^b)
6
Bitwise OR
|
(a|b)
7
High Byte of an Address
>
(>a)
8
Low Byte of an Address
<
(<a)
Table A-2. Constants Formats
Radix
Name
Formats
Example
127
ASCII Character
‘J’
mov
A, ‘J’
;character constant
mov
A, ‘\’’
;use “\” to escape “‘”
mov
A, ‘\\’
;use “\” to escape “\”
16
Hexadecimal
0x4A
4Ah
$4A
mov
A, 0x4A
;hex--”0x” prefix
mov
A, 4Ah
;hex--append “h”
mov
A, $4A
;hex--”$” prefix
10
Decimal
74
mov
A, 74
;decimal--no prefix
8
Octal
0112
mov
A, 0112
;octal--zero prefix
2
Binary
0b01001010
%01001010
mov
A, 0b01001010 ;bin--“0b” prefix
mov
A, %01001010
;bin--”%” prefix
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 ...