diff options
| author | vin <git@vineetk.net> | 2024-08-31 22:25:12 -0400 |
|---|---|---|
| committer | vin <git@vineetk.net> | 2024-09-01 01:49:40 -0400 |
| commit | f591b4adf2cfe5d7cde5ecccf95879bfe09cf57a (patch) | |
| tree | 857e5f66e4472b42dfd2c8c673b99fc47c23399b /ppu.c | |
| parent | 279478f16f8ea4fcc3c8765ff964954368664106 (diff) | |
start working on ppu
Diffstat (limited to 'ppu.c')
| -rw-r--r-- | ppu.c | 13 |
1 files changed, 13 insertions, 0 deletions
| @@ -13,3 +13,16 @@ ppu_tick(void) | |||
| 13 | if (ppu.scanlines >= 262) | 13 | if (ppu.scanlines >= 262) |
| 14 | ppu.scanlines -= 262; | 14 | ppu.scanlines -= 262; |
| 15 | } | 15 | } |
| 16 | |||
| 17 | uint8_t | ||
| 18 | ppu_read(uint16_t addr) | ||
| 19 | { | ||
| 20 | } | ||
| 21 | |||
| 22 | void | ||
| 23 | ppu_write(uint16_t addr, uint8_t byte) | ||
| 24 | { | ||
| 25 | static uint8_t prev; | ||
| 26 | |||
| 27 | prev = byte; | ||
| 28 | } | ||
