;
; Sega CD / Mega CD Sub CPU register definitions
;

.DEFINE REG_MCD_SUB_RESET         $FFFF8000
.DEFINE REG_MCD_SUB_MEMMODE       $FFFF8002
.DEFINE REG_MCD_SUB_CDCMODE       $FFFF8004
.DEFINE REG_MCD_SUB_HINT          $FFFF8006
.DEFINE REG_MCD_SUB_COMFLAGS      $FFFF800E
.DEFINE REG_MCD_SUB_COM0          $FFFF8010
.DEFINE REG_MCD_SUB_COM2          $FFFF8012
.DEFINE REG_MCD_SUB_COM4          $FFFF8014
.DEFINE REG_MCD_SUB_COM6          $FFFF8016
.DEFINE REG_MCD_SUB_COM8          $FFFF8018
.DEFINE REG_MCD_SUB_COM10         $FFFF801A
.DEFINE REG_MCD_SUB_COM12         $FFFF801C
.DEFINE REG_MCD_SUB_COM14         $FFFF801E
.DEFINE REG_MCD_SUB_CDC_DATA      $FFFF8022

.DEFINE REG_MCD_PCM_ENV           $FF0001
.DEFINE REG_MCD_PCM_PAN           $FF0003
.DEFINE REG_MCD_PCM_FDL           $FF0005
.DEFINE REG_MCD_PCM_FDH           $FF0007
.DEFINE REG_MCD_PCM_LSL           $FF0009
.DEFINE REG_MCD_PCM_LSH           $FF000B
.DEFINE REG_MCD_PCM_ST            $FF000D
.DEFINE REG_MCD_PCM_CTRL          $FF000F

.MACRO MCD_SUB_SET_COMFLAGS
  move.w #\1, REG_MCD_SUB_COMFLAGS
.ENDM
