basic memory and cpu

This commit is contained in:
radumacocian
2025-04-17 18:02:33 +02:00
parent e955649be0
commit 6948e84b32
8 changed files with 138 additions and 2 deletions

View 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)

BIN
journal/assets/day1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB