mirror of
https://github.com/felipecsl/6502Android.git
synced 2024-06-01 06:41:32 +00:00
9 lines
191 B
Kotlin
9 lines
191 B
Kotlin
|
package android.emu6502
|
||
|
|
||
|
infix fun Byte.shr(other: Int): Byte {
|
||
|
return this.toInt().shr(other).toByte()
|
||
|
}
|
||
|
|
||
|
infix fun Byte.shl(other: Int): Byte {
|
||
|
return this.toInt().shr(other).toByte()
|
||
|
}
|