;*********************************************************************
;* Title: ax2-cocopsg-v00.asm
;*********************************************************************
;* Author: R. Allen Murphey
;*
;* License: Copyright (c) 2020-2023 R. Allen Murphey. All Rights Reserved.
;*
;* Description: Driver for Ed "Zippster" Snider's CoCoPSG
;*
;* Documentation: CoCoPSG Users Manual
;*
;* Include Files: none
;*
;* Assembler: lwasm for lwtools 4.21
;*
;* Revision History:
;* Rev #     Date      Who     Comments
;* -----  -----------  ------  ---------------------------------------
;* 00     2020-2023    RAM     Initial CoCoPSG driver
;*********************************************************************

COCOPSGA:   equ   $FF5A       ; $FF5A COCOPSG MEMORY BANK 0 $C000-$DFFF
                              ; REGISTERS 00-63 FLASH, 128-191 SRAM

COCOPSGB:   equ   $FF5B       ; $FF5B COCOPSG MEMORY BANK 1 $E000-$FDFF
                              ; REGISTERS 00-63 FLASH, 128-191 SRAM

COCOPSGC:   equ   $FF5C       ; $FF5D COCOPSG CONTROL REGISTER
                              ; Bit 7 unused
                              ; Bit 6 unused
                              ; Bit 5 FLASH programming 0=disable, 1=enable
                              ; Bit 4 AUTOSTART ROM 0=enable, 1=disable
                              ; Bit 3 WRITE (FLASH/SRAM) 0=disable, 1=enable
                              ; Bit 2 GAMEBSEL signal = pin 7 of game port B
                              ; Bit 1 GAMEASEL signal = pin 7 of game port A
                              ; Bit 0 YM MASTER CLOCK 0=2MHz, 1=1MHz

COCOPSGE:   equ   $FF5E       ; YM2149 SSG Register Select $00-$0F

COCOPSGF:   equ   $FF5F       ; YM2149 SSG Data Port - See ax2-ssg-v00.asm

;*********************************************************************
; DETECT_COCOPSG
;*********************************************************************

DETECT_COCOPSG:               ; Detect the COCOPSG
            rts               ; Go back where we came from

;*********************************************************************
; INIT_COCOPSG
;*********************************************************************

INIT_COCOPSG:                 ; Initialize the COCOPSG
            rts               ; Go back where we came from

;*********************************************************************
; TEST_COCOPSG
;*********************************************************************

TEST_COCOPSG:                 ; Test the COCOPSG
            rts               ; Go back where we came from

;*********************************************************************
; GET_COCOPSG
;*********************************************************************

GET_COCOPSG:                  ; Get COCOPSG status or settings
            rts               ; Go back where we came from

;*********************************************************************
; SET_COCOPSG
;*********************************************************************

SET_COCOPSG:                  ; Set COCOPSG status or settings
            rts               ; Go back where we came from

;*********************************************************************
; READ_COCOPSG
;*********************************************************************

READ_COCOPSG:                 ; Read from COCOPSG
            rts               ; Go back where we came from

;*********************************************************************
; WRITE_COCOPSG
;*********************************************************************

WRITE_COCOPSG:                ; Write to COCOPSG
            rts               ; Go back where we came from

;*********************************************************************
; TERM_COCOPSG
;*********************************************************************

TERM_COCOPSG:                 ; Terminate the COCOPSG
            rts               ; Go back where we came from

;*********************************************************************
;* end of ax2-cocopsg-v00.asm
;*********************************************************************