Skip to content

aksommerville/akz26

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

akz26

z26 Atari 2600 emulator, tweaked to run with my Emuhost framework.

Original source was acquired here: https://www.whimsey.com/z26/

...first try, splitting up for a piecemeal build. disaster. There are some very tricky bits here, like static members shared across C files, and arrays where we need to determine the length.

Go back to building it all in one pass, work from there.

  • OK it's working, and it's exactly as written except we link in a separate pass.
  • Eliminate z26 main().
  • Replace SDL with Emuhost.
  • Remove unused files.
  • linux_startup_audio_kludge, what's this all about?
  • Where's the audio?
  • c_soundq.c resamples from 31400 to 43960. We can eliminate this and output at the natural 31400.
  • Right-player input
  • Console switches (difficulty, color)
  • Audio is pretty bad. Look at c_soundq.c:QueueSoundBytes(), I bet we're coming up a little short.

2023-11-29 Revamp input. I just commented out most of src/z26/controls.c in order to build for my Pi without SDL headers. Now clean it all up, and take the opportunity to ensure it works correctly this time.

  • Cleanup.
  • Check all console switches, compare to hardware.
  • Left and right joysticks.
  • Paddles. My preference is to emulate with the Atari Modern Joystick's twist.
    • 0x00030007 absolute value in 0..999
    • Considered adding a concept of Axis to Emuhost input, but that's a heavy lift, and probably only useful for this one thing.
  • controls.c is now completely no-op -- remove it once we're done, just keeping for reference
    • ...don't remove; keep it for reference

Hardware:

  • Sticky Power, don't emulate.
  • Sticky Color
  • Sticky Left Difficulty
  • Sticky Right Difficulty
  • Hold Select
  • Hold Reset

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors