ppu.memory.h 818 B

1234567891011121314151617181920212223242526
  1. /*
  2. * PPU Memory manager - The peTI-NESulator Project
  3. * ppu.memory.h - Inspired from the memory manager of the Quick6502 Project.
  4. *
  5. * Created by Manoël Trapier on 12/04/07.
  6. * Copyright (c) 2002-2019 986-Studio.
  7. *
  8. */
  9. #ifdef __TINES_PPU_INTERNAL__
  10. int ppu_initMemory();
  11. void ppu_setPagePtr(uint8_t page, uint8_t *ptr);
  12. void ppu_setPagePtr1k(uint8_t page, uint8_t *ptr);
  13. void ppu_setPagePtr2k(uint8_t page, uint8_t *ptr);
  14. void ppu_setPagePtr4k(uint8_t page, uint8_t *ptr);
  15. void ppu_setPagePtr8k(uint8_t page, uint8_t *ptr);
  16. void ppu_memoryDumpState(FILE *fp);
  17. uint8_t ppu_readMemory(uint8_t page, uint8_t addr);
  18. void ppu_writeMemory(uint8_t page, uint8_t addr, uint8_t value);
  19. void ppu_setPageGhost(uint8_t page, uint8_t value, uint8_t ghost);
  20. #else
  21. #error Must only be included inside the PPU code
  22. #endif