include "m8c.inc"
include "memory.inc"

include "QP0A.inc"
include "QP0B.inc"
include "QP1A.inc"
include "QP1B.inc"

export _QP0A_readDirect
export _QP0B_readDirect
export _QP1A_readDirect
export _QP1B_readDirect

_QP0A_readDirect:
   RAM_PROLOGUE RAM_USE_CLASS_1
   mov   A, reg[QP0A_COUNTER_REG]
   mov   A, reg[QP0A_COMPARE_REG]
   RAM_EPILOGUE RAM_USE_CLASS_1
   ret

_QP0B_readDirect:
   RAM_PROLOGUE RAM_USE_CLASS_1
   mov   A, reg[QP0B_COUNTER_REG]
   mov   A, reg[QP0B_COMPARE_REG]
   RAM_EPILOGUE RAM_USE_CLASS_1
   ret

_QP1A_readDirect:
   RAM_PROLOGUE RAM_USE_CLASS_1
   mov   A, reg[QP1A_COUNTER_REG]
   mov   A, reg[QP1A_COMPARE_REG]
   RAM_EPILOGUE RAM_USE_CLASS_1
   ret

_QP1B_readDirect:
   RAM_PROLOGUE RAM_USE_CLASS_1
   mov   A, reg[QP1B_COUNTER_REG]
   mov   A, reg[QP1B_COMPARE_REG]
   RAM_EPILOGUE RAM_USE_CLASS_1
   ret
