Jump to content
IGNORED

POKEY variable definitions / address mappings for $0450?


Propane13

Recommended Posts

Hi folks,

 

In moving my POKEY address from $4000 to $0450, I was curious if the equates below would change much (outside of the POKEY_START indicator I'm using):

 

;==================================
; POKEY equates for the Atari 7800
;==================================

        processor 6502

;=====================
; Set our magic start
;=====================
POKEY_START     equ     $0450

;================================
AUDF2   equ     POKEY_START+$00 ; extra audio channels and frequencies
AUDC2   equ     POKEY_START+$01
AUDF3   equ     POKEY_START+$02
AUDC3   equ     POKEY_START+$03
AUDF4   equ     POKEY_START+$04
AUDC4   equ     POKEY_START+$05
AUDF5   equ     POKEY_START+$06
AUDC5   equ     POKEY_START+$07
AUDCTL  equ     POKEY_START+$08 ; Audio Control
RANDOM  equ     POKEY_START+$0A ; Random number (read-only)
SKCTL   equ     POKEY_START+$0F ; Serial Port control
;================================

 

The file I'm using is way ancient; there's probably a better / newer / more portable header file out there with more usable variables than what I had from eons ago.  Any assistance would be appreciated.

 

Thanks!

Link to comment
Share on other sites

You'd just change the POKEY_START, and everything else would stay the same.

 

We haven't discovered any extra ram for variables or anything like that. I put together my own 7800.h file a while back when I first released 7800basic, and have tried to keep it up to date - though most of the additions are comments, since the hardware doesn't change. My pokey register equates are a bit non-standard, so if you use the header you'll likely want to substitute your own. (7800basic uses indirect access for pokey because XM was once going to be a thing, so a rom that might have used pokey@4000 could also use XM's pokey@450)

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...