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

11
cpu/operations/add.go Normal file
View File

@@ -0,0 +1,11 @@
package operations
import "radu.macocian.me/goboy/memory"
func ADD(r1 *byte, r2 *byte) {
*r1 += *r2
}
func ADDFromMem(r1 *byte, r2 uint) {
*r1 += memory.Read8(r2)
}