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