mirror of
https://github.com/macocianradu/goboy.git
synced 2026-03-18 21:10:07 +00:00
added half carry flags
This commit is contained in:
10
cpu/operations/read_byte.go
Normal file
10
cpu/operations/read_byte.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package operations
|
||||
|
||||
func GetLowerByte(value uint16) byte {
|
||||
return (byte)(value)
|
||||
}
|
||||
|
||||
func GetHigherByte(value uint16) byte {
|
||||
return (byte)(value >> 8)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user