C variables and assembly

All C identifiers are available in assembly language sections, though you will have to identify which byte of a long value you require. The COP8 microcontroller is little-endian.

Creating variables in C can be done with the assembly define space directive:

variable_name     DS number_of_bytes

All variables created in assembly are global in scope.