•
Description
The #asm and #endasm are the inline assembly preprocessor directives.
The #asm directive inserts Holtek’s assembly instruction(s) after this
directive (or within the directive #asm and directive #endasm) into the
output file directly.
•
Example
#asm // convert low nibble value in the accumulator to ASCII
and
a, 0fh
sub
a, 09h
sz
c
add
a, 40h-30h-9
add
a, 30h+9
#endasm
→
#line
•
Syntax
#line
constant ["filename"]
•
Description
The #line directive sets the predefined macro __LINE__, for the purpose
of error diagnostics or symbolic debugging, such that the line number of
the next source line is considered to be the given constant, which must be
a decimal number. If the filename is given, __FILE__ is set to the file
named. If filename is absent the remembered file name is not changed.
•
Example
#line 20 "ht48c10.asm"
→
Machine dependence : #pragma
•
Syntax
#pragma
Token-String
#pragma
vector Symbol @ Address
•
Description
The #pragma directive causes machine-dependent behavior when the
Token-String is of a form recognized by the C compiler. The #pragma
directive must end with a semicolon. An unrecognized pragma will be
ignored. The vector is a valid pragma which sets up the location, Address,
of an interrupt vector and assigns Symbol as the name of the vector. If a
function of name Symbol is defined, that function executes when the
corresponding interrupt occurs.
Chapter 9 Holtek C Language
107
Summary of Contents for HT-IDE
Page 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Page 12: ...HT IDE User s Guide 2 ...
Page 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Page 24: ...HT IDE User s Guide 14 ...
Page 70: ...HT IDE User s Guide 60 ...
Page 76: ...HT IDE User s Guide 66 ...
Page 92: ...HT IDE User s Guide 82 ...
Page 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Page 94: ...HT IDE User s Guide 84 ...
Page 148: ...HT IDE User s Guide 138 ...
Page 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Page 154: ...HT IDE User s Guide 144 ...
Page 192: ...HT IDE User s Guide 182 ...
Page 194: ...HT IDE User s Guide 184 ...
Page 218: ...HT IDE User s Guide 208 ...
Page 235: ...P a r t V Appendix Part V Appendix 225 ...
Page 236: ...HT IDE User s Guide 226 ...
Page 250: ...HT IDE User s Guide 240 ...