MAP_ADDR_6 Operator

Syntax
  MAP_ADDR_6(<operand>)

  
Description

This operator returns the lower 6 bits for a memory location. It should be used to determine the offset in the paging window for a certain memory address.Note that the operator automatically adds the offset of the base of the paging window ($C0).

Example
  MOV    #HIGH_6_13(data), $001F

  
  STA    MAP_ADDR_6(data)

  

In this example, the S12Z PAGE register (mapped at $001F) is loaded with the memory page corresponding to data and then the value contained in the accumulator is stored at the address pointed by data.