Search results

  1. M

    PNG decoder

    Here is my Saturn PNG decoding example (includes prebuilt versions of libpng and zlib): http://jiggawatt.org/badc0de/dpngsat.zip And here are the libpng and zlib sources for Saturn/32X: http://jiggawatt.org/badc0de/lpng_lz-32x_sat.zip There's a file named README_32X_SATURN.TXT in both the zlib...
  2. M

    JPEG decoder

    Since I recently ported libjpeg and libpng to the 32X I figured I should cook up some Saturn versions as well. The JPEG decoding example is already done and you can get it here: http://jiggawatt.org/badc0de/djpegsat.zip The above zip includes a test binary that you can run from 0x6004000, as...
  3. M

    Timer IRQ on the 68k

    I'm trying to get a function being executed at a regular interval on the 68k by using the interrupt control on the SCSP, but it's not working properly right now. Here's basically the way I'm setting it up: I put my interrupt vector at address 0x78 in the 68k binary. // Set level 6 for the...
  4. M

    SCSP slots with multiple inputs in FM mode

    The SCSP manual isn't very clear on this (or anything else for that matter :rant2:)... It's possible to use more than one slot as input for another slot, as shown in the example. Since each slot only has a single MDXSL/MDYSL pair, how would you actually go about setting more than one slot as...
  5. M

    FRT input capture

    I was poking around again at some dual SH2 experiments on the Saturn and actually got it to work this time (on HW too). Then I added syncing using the same method of polling the FRT control status register as used in the SBL. This also appeared to work, until I tested it on my Saturn and...
  6. M

    Two-way cache in yabause

    I was using 0.9.7 when testing this, so you can ignore my comment if the problem has already been fixed.. What I was trying to do was this: Set up a two-way cache by writing 0x19 to the cache control register (0xFFFFFE92). Copy some code/data to the explicitly cached region at...
  7. M

    Starting execution on the slave SH2

    So I want to run some of my code on the slave SH2. I don't care about being able to send commands to it and whatnot, I just want it to enter a specific function that contains an endless loop where it fills up a VDP1 list every frame. Anyway, it's not working properly (neither in Yabause or on a...
  8. M

    Yabause mesh processing

    I've extended the shader I added to do Gouraud shading so that it now also handles mesh processing (Windows binary plus the modified source files: http://jiggawatt.org/badc0de/yabamesh.zip) I haven't tested it all that much, so there could be cases where it's not working properly. It does...
  9. M

    Yabause Gouraud shading

    This thread may concern mainly the Yabause developers.. I went ahead and added support for Gouraud shading to Yabause's OpenGL renderer (based on 0.9.7). You can get the source files that I modified from http://jiggawatt.org/badc0de/yagourau.zip My implementation is based on a shader, so it'll...
  10. M

    Packing binaries

    http://jiggawatt.org/badc0de/lzsscube.zip I wrote a small LZSS decoder in SH2 assembly that lets you run compressed binaries on your Saturn. It basically works like this: * Build your binary as normal, but with an altered base address (I use 06008000, which works fine as long as the compressed...
  11. M

    Tiny Saturn demo

    Size optimization on the SH can be a bit tricky, but I thought I'd give it a go and you can find the result here: http://jiggawatt.org/badc0de/satgegga.zip It's a variation of a 256-byte DOS demo that I wrote earlier this year, and the Saturn version is currently 484 bytes, which I think is...
  12. M

    Saturn Forth compiler

    Continuing on my SEGA console theme, I wrote an SH codegen for my Forth compiler, so that I would be able to use it to program the Saturn :looney Even though it still probably has a lot of bugs, it can now generate some working output, as can be seen in these images: The compiler...
  13. M

    Genesis Forth compiler

    The other day I got the idea to make the Forth compiler I had previously written output M68000 code so I could use it to program the Megadrive (Genesis). Said and done - it's now at the point where it can output working code for a decent subset of the Forth langauge. Here are some demos I wrote...
  14. M

    SGCC JAS macros

    I've got SGCC, and it works fine. But now I'm at the point where I'd like to write to macros to use in my assembly code, but I don't know the syntax (if there even is one). I've already tried macro name, .macro name, name macro and name .macro. None of those worked..
Back
Top