Reserved Words

The inline assembler knows a couple of reserved words, which must not collide with user defined identifiers such as variable names. These reserved words are:

Table 1. Fixup Identifiers
Name Address Kind Description
%HIGH_6_13 Logical Address Returns the page number corresponding to a given RS08 14-bit address.
%MAP_ADDR_6 Logical Address Returns the offset within the paging window corresponding to a given RS08 address.

For these reserved words, the inline assembler is not case sensitive, that is JSR is the same as jsr or even JsR. For all other identifiers (labels, variable names and so on) the inline assembler is case sensitive. The following example shows the syntax of the fixup specification:

  __asm MOV   #%HIGH_6_13(var),__PAGESEL