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

14
cpu/operations/dec.go Normal file
View 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--
}