An emulator, assembler, and disassembler for the Sega Game Gear
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

60 lines
931 B

  1. /* Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
  2. Released under the terms of the MIT License. See LICENSE for details. */
  3. #include "z80.h"
  4. /*
  5. Initialize a MMU object.
  6. Return true if initialization was successful, or false if the required
  7. amount of memory could not be allocated.
  8. */
  9. bool mmu_init(MMU *mmu)
  10. {
  11. // TODO
  12. return true;
  13. }
  14. /*
  15. Free memory previously allocated by the MMU.
  16. */
  17. void mmu_free(MMU *mmu)
  18. {
  19. // TODO
  20. }
  21. /*
  22. Load a block ROM into the MMU.
  23. size should be a power of two.
  24. */
  25. void mmu_load_rom(MMU *mmu, const uint8_t *data, size_t size)
  26. {
  27. // TODO
  28. }
  29. /*
  30. Power on the MMU, setting initial memory values.
  31. */
  32. void mmu_power(MMU *mmu)
  33. {
  34. // TODO
  35. }
  36. /*
  37. Read a byte of memory.
  38. */
  39. uint8_t mmu_read_byte(MMU *mmu, uint16_t addr)
  40. {
  41. // TODO
  42. return 0x00;
  43. }
  44. /*
  45. ...
  46. */
  47. void mmu_write_byte(MMU *mmu, uint16_t addr, uint8_t value)
  48. {
  49. // TODO
  50. }