;
; PC Engine / TurboGrafx-16 HuC6280 hardware definitions
;

.DEFINE PCE_IO_PAGE                  $FF

.DEFINE PCE_REG_VDC_SELECT          $0000
.DEFINE PCE_REG_VDC_STATUS          $0000
.DEFINE PCE_REG_VDC_DATA_LO         $0002
.DEFINE PCE_REG_VDC_DATA_HI         $0003

.DEFINE PCE_REG_VCE_CONTROL         $0400
.DEFINE PCE_REG_VCE_ADDRESS_LO      $0402
.DEFINE PCE_REG_VCE_ADDRESS_HI      $0403
.DEFINE PCE_REG_VCE_DATA_LO         $0404
.DEFINE PCE_REG_VCE_DATA_HI         $0405

.DEFINE PCE_REG_PSG_CHANNEL_SELECT  $0800
.DEFINE PCE_REG_PSG_MAIN_VOLUME     $0801
.DEFINE PCE_REG_PSG_FREQ_LO         $0802
.DEFINE PCE_REG_PSG_FREQ_HI         $0803
.DEFINE PCE_REG_PSG_CONTROL         $0804
.DEFINE PCE_REG_PSG_BALANCE         $0805
.DEFINE PCE_REG_PSG_WAVE_DATA       $0806
.DEFINE PCE_REG_PSG_NOISE           $0807
.DEFINE PCE_REG_PSG_LFO_FREQ        $0808
.DEFINE PCE_REG_PSG_LFO_CONTROL     $0809

.DEFINE PCE_REG_TIMER_COUNTER       $0C00
.DEFINE PCE_REG_TIMER_CONTROL       $0C01

.DEFINE PCE_REG_IO_PORT             $1000

.DEFINE PCE_REG_IRQ_DISABLE         $1402
.DEFINE PCE_REG_IRQ_STATUS          $1403