started op table

This commit is contained in:
radumaco
2025-04-19 22:26:59 +02:00
parent d26e6b7436
commit 28243ac5d5
11 changed files with 246 additions and 1 deletions

15
cpu/operations/load.go Normal file
View File

@@ -0,0 +1,15 @@
package operations
import "radu.macocian.me/goboy/memory"
func LD(r1 *byte, val byte) {
*r1 = val
}
func LDFromMem(r1 *byte, r2 uint) {
*r1 = memory.Read8(r2)
}
func LDInMemory8(addr uint16, val byte) {
memory.Write8(uint(addr), val)
}