view xband.h @ 1335:26e72126f9d1

Fixes to sprite phase 2 so that sprite X reads use the exact same slot as on hardware in the case that there are fewer than the max number of sprites on each line. Re-read sprite Y from SAT cache during phase 2 and properly mask the calculated row. Fixes remaining issues with spinning cube scene in Overdrive 2.
author Michael Pavone <pavone@retrodev.com>
date Thu, 27 Apr 2017 23:08:49 -0700
parents a8313793216a
children 14a2834d010c
line wrap: on
line source

#ifndef XBAND_H_
#define XBAND_H_
#include <stdint.h>

#define XBAND_REGS 0xE0

typedef struct {
	uint16_t cart_space[0x200000];
	uint8_t regs[XBAND_REGS];
	uint8_t kill;
	uint8_t control;
} xband;

uint8_t xband_detect(uint8_t *rom, uint32_t rom_size);
rom_info xband_configure_rom(tern_node *rom_db, void *rom, uint32_t rom_size, void *lock_on, uint32_t lock_on_size, memmap_chunk const *base_map, uint32_t base_chunks);

#endif //XBAND_H_