diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-10-04 18:30:49 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-10-04 18:30:49 -0700 |
commit | ce305a4705829579e52900d6626e5d02457c2e14 (patch) | |
tree | 1f9ff101010a3b8be221b645573715dc3088135d /jaguar.h | |
parent | 1b5d64873657d3a36c1d67c8006d22715140926c (diff) |
Some initial work on Atari Jaguar emulation
Diffstat (limited to 'jaguar.h')
-rw-r--r-- | jaguar.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/jaguar.h b/jaguar.h new file mode 100644 index 0000000..2d0b4de --- /dev/null +++ b/jaguar.h @@ -0,0 +1,31 @@ +#ifndef JAGUAR_H_ +#define JAGUAR_H_ + +#define DRAM_WORDS (4*1024*1024) +#define LINEBUFFER_WORDS 720 +#define GPU_RAM_BYTES 4096 +#define DSP_RAM_BYTES 8192 + +typedef struct { + m68k_context *m68k; + uint16_t *bios; + uint16_t *cart; + uint32_t bios_size; + uint32_t cart_size; + uint32_t memcon; + uint16_t write_latch; + uint8_t write_pending; + + uint16_t dram[DRAM_WORDS]; + uint32_t gpu_local[GPU_RAM_BYTES / sizeof(uint32_t)]; + uint32_t dsp_local[DSP_RAM_BYTES / sizeof(uint32_t)]; + uint16_t clut[256]; + uint16_t line_buffer_a[LINEBUFFER_WORDS]; + uint16_t line_buffer_b[LINEBUFFER_WORDS]; + uint16_t *write_line_buffer; + uint16_t *read_line_buffer; + +} jaguar_context; + + +#endif //JAGUAR_H_ |