the LOW/HIGH operator will take the values of the low/high byte of the
program count of this label.
•
Operator precedence
Precedence
Operators
1 (Highest)
2
3
4
5
6
7
8
9 (Lowest)
( ), []
+, – (unary), LOW, MID, HIGH, OFFSET
*, /, %, SHL, SHR
+, – (binary)
>, <=, <, <=
==, !=
! (bitwise NOT)
& (bitwise AND)
|(bitwise OR), ^(bitwise XOR)
Miscellaneous
Forward references
The assembler allows reference to labels, variable names, and other sym-
bols before they are declared in the source code (forward named references).
But symbols to the right of EQU are not allowed to be forward referenced.
Local labels
A local label is a label with a fixed form such as $digit. The digit can be ’0’,
’1’ ... to ’9’. The function of a local label is the same as a label except that the
local label can be used repeatedly. The local label should be used between
any two consecutive labels and the same local label name may used
between other two consecutive labels. The assembler will transfer every
local label into a unique label before assembling the source file. At most 10
local labels can be defined between two consecutive labels. The following is
an example.
Label1:
; label
$1:
;; local label
mov a, 1
jmp $3
$2:
;; local label
mov a, 2
jmp $1
$3:
;; local labe
jmp $2
Label2:
;; label
jmp $1
HT-IDE User’s Guide
130
Содержание HT-IDE
Страница 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Страница 12: ...HT IDE User s Guide 2 ...
Страница 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Страница 24: ...HT IDE User s Guide 14 ...
Страница 70: ...HT IDE User s Guide 60 ...
Страница 76: ...HT IDE User s Guide 66 ...
Страница 92: ...HT IDE User s Guide 82 ...
Страница 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Страница 94: ...HT IDE User s Guide 84 ...
Страница 148: ...HT IDE User s Guide 138 ...
Страница 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Страница 154: ...HT IDE User s Guide 144 ...
Страница 192: ...HT IDE User s Guide 182 ...
Страница 194: ...HT IDE User s Guide 184 ...
Страница 218: ...HT IDE User s Guide 208 ...
Страница 235: ...P a r t V Appendix Part V Appendix 225 ...
Страница 236: ...HT IDE User s Guide 226 ...
Страница 250: ...HT IDE User s Guide 240 ...