Tiny

The tiny addressing mode is used to access only the first 16 bytes of the memory map (addresses from $0000 to $000F). The instructions using this addressing mode are encoded using one byte only. This addressing mode is available for INC, DEC, ADD and SUB instructions.

Example:

             XDEF Entry

  MyData:    SECTION RS08_TINY

  data:      DS.B 1

  MyCode:    SECTION

  Entry:

  main:      
  ADD data

             BRA main

  

In this example, the value of the variable data is added to the accumulator. The data is located in the tiny memory area, so the encoding of the ADD instruction will be one byte long. Note that the tiny section has to be placed into the tiny memory area at link time.