mirror of
https://github.com/macocianradu/goboy.git
synced 2026-03-18 21:10:07 +00:00
basic memory and cpu
This commit is contained in:
22
journal/Day 1 - 2025.04.17.md
Normal file
22
journal/Day 1 - 2025.04.17.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# First wrote a brief overview of the first milestone of the project:
|
||||
- load files form the os
|
||||
- create the memory struct with read/write functions on the memory
|
||||
- create a cpu state with registers
|
||||
|
||||
# For the day:
|
||||
- Setup goland
|
||||
- Disable autocomplete on space because it doesn't work
|
||||
- Find ways to store memory state in go
|
||||
- Write memory module with read, write, writeall functions
|
||||
- Reading or writing outside of memory bounds will close app
|
||||
- Write cpu module with registers, PC, SP
|
||||
- Are registers only 8bits?
|
||||
- Where are instructions stored?
|
||||
|
||||
# Conclusion
|
||||
- Can read roms from external files
|
||||
- Have a 64kb memory with functions to read and write to it
|
||||
- Have a cpu which reads instructions from the memory and increments the PC
|
||||
|
||||
# References:
|
||||
[Game Boy: Complete Technical Reference](https://gekkio.fi/files/gb-docs/gbctr.pdf)
|
||||
Reference in New Issue
Block a user