Example

A simple example illustrates the use of the HLI-Assembler. Assume the following:

Then we can write a simple string copying function in assembly language as follows:

void _CMPS(void) {
  __asm {
       ADD        #128
       STA        _Z
       LDA        _Y
       ADD        #128
       CMP        _Z
  }
}