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:
15
cpu/operations/load.go
Normal file
15
cpu/operations/load.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user