Reference Tables Appendix; Assembly Syntax Expressions; Operand Constant Formats - Cypress PSoC DESIGNER ImageCraft M8C Manual

Assembly language guide
Table of Contents

Advertisement

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
bler Directives chapter on page
A.1

Assembly Syntax Expressions

Table A-1. Assembly Syntax Expressions
Precedence
1
2
3
4
5
6
7
8
A.2

Operand Constant Formats

Table A-2. Constants Formats
Radix
127
ASCII Character
16
Hexadecimal
10
Decimal
8
Octal
2
Binary
ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
75.
Expression
Bitwise Complement
Multiplication/Division/Modulo
Addition / Subtraction
Bitwise AND
Bitwise XOR
Bitwise OR
High Byte of an Address
Low Byte of an Address
Name
Formats
'J'
0x4A
4Ah
$4A
74
0112
0b01001010
%01001010
Instruction Set Summary on page 14
Symbol
~
*, /, %
+, -
&
^
|
>
<
.
Example
mov
A, 'J'
mov
A, '\''
mov
A, '\\'
mov
A, 0x4A
mov
A, 4Ah
mov
A, $4A
mov
A, 74
mov
A, 0112
mov
A, 0b01001010 ;bin--"0b" prefix
mov
A, %01001010
and the
Assem-
Form
(~a)
(a*b), (a/b), (a%b)
(a+b), (a-b)
(a&b)
(a^b)
(a|b)
(>a)
(<a)
;character constant
;use "\" to escape "'"
;use "\" to escape "\"
;hex--"0x" prefix
;hex--append "h"
;hex--"$" prefix
;decimal--no prefix
;octal--zero prefix
;bin--"%" prefix
99
[+] Feedback

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PSoC DESIGNER ImageCraft M8C and is the answer not in the manual?

Questions and answers

Table of Contents