mirror of
https://github.com/macocianradu/goboy.git
synced 2026-03-18 21:10:07 +00:00
started op table
This commit is contained in:
11
cpu/operations/add.go
Normal file
11
cpu/operations/add.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user