Commit graph

15 commits

Author SHA1 Message Date
Tyler J. Stachecki
f1c7193ca0 Try to reduce component cycle overheads.
Oftentimes, many of our countrollers are just doing a
simple countdown and don't perform any real work for the
cycle. Pull those parts out into headers so that the
compiler can 'see' that and optimize accordingly.
2016-01-30 14:55:37 -05:00
Tyler J. Stachecki
2baae47d40 ai: Fix some bugs and optimize just a little. 2016-01-27 01:43:50 -05:00
Tyler J. Stachecki
e63b67f252 ai: Fire interrupts at proper time with -noaudio. 2016-01-27 00:59:21 -05:00
Tyler J. Stachecki
aeef566897 ai: Channels were backwards, swap them.
krom noticed that the channels were swapped. Good ear.

  Data comes off the RSP as:
  LH LL RH RL

  bswap 32 results in:
  RL RH LL LH

  Need to flip again to get:
  LL LH RL RH
2016-01-26 00:16:03 -05:00
Tyler J. Stachecki
384f06d369 OpenAL: Try to dynamically adjust frequency.
Most carts only seem to use one frequency. Add a dirty
hack to change the frequency on the fly so things sound
less horrendous.
2016-01-25 03:36:11 -05:00
Tyler J. Stachecki
7c1d7494bc Add a subsystem for detecting carts. 2016-01-24 19:02:39 -05:00
Tyler J. Stachecki
8122ebdaf7 Restore -nointerface functionality.
-nointerface was horribly broken when the device model was
refactored a few months ago. This commit unbreaks it and
restores functionality.
2016-01-24 16:15:56 -05:00
Derek "Turtle" Roe
c4afd44ed7 See long description
Replaced all references to simulation with emulation
Updated copyright year
Updated .gitignore to reduce chances of random files being uploaded to
the repo
Added .gitattributes to normalize all text files, and to ignore binary
files (which includes the logo and the NEC PDF)
2015-07-03 08:18:16 -04:00
Derek "Turtle" Roe
ae1309fbc2 Update registers.md 2015-07-03 08:18:12 -04:00
Tyler J. Stachecki
9340a1e0e8 Add (initial) audio support.
"It's a meeee, Mario!"

There's no resampler as of yet, so we just tell OpenAL
that everything is 44.1KHz for the time being. In the
future, a resampler thread will be created and things
won't sound as bad as they do in this commit.
2015-05-23 21:57:56 -04:00
Tyler Stachecki
e89f054674 Optimize extremely aggressively.
Tell GCC to optimize cold functions for size and stash them away in
a separate part of the binary. Put the simulate core, meanwhile, on
the hot path. Also, bump optimization to -O3 as we can now "afford"
to do so.
2014-11-05 08:39:47 -05:00
Tyler Stachecki
dfb4af315e Hack: Return audio buffer full/busy all the time. 2014-07-26 13:44:16 -04:00
Tyler Stachecki
25a6ae8431 Mask bus writes to requested type, etc. 2014-04-18 13:34:23 -04:00
Tyler Stachecki
d114038a2b Add option for debugging MMIO register access. 2014-04-18 12:44:57 -04:00
Tyler Stachecki
4560adf7a7 Populate with interfaces and devices. 2014-04-18 11:24:43 -04:00