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:
14
cpu/operations/inc.go
Normal file
14
cpu/operations/inc.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package operations
|
||||
|
||||
func INC(r1 *byte) {
|
||||
*r1++
|
||||
}
|
||||
|
||||
func INC16(r1 *byte, r2 *byte) {
|
||||
if *r2 == 0xFF {
|
||||
*r2 = 0
|
||||
*r1++
|
||||
return
|
||||
}
|
||||
*r2++
|
||||
}
|
||||
Reference in New Issue
Block a user