mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 08:36:07 +09:00
- Test InputStream() on VirtualComputer (blocking/unblocking using simple semaphore) -- no more dirty lua impl of io.read - Typealias Kotlin 1.1 - Primitive box drawing on VideoCard - Removing unnecessary fonts Former-commit-id: cece88af3a3430678e685856eec78b4a9d598b4f Former-commit-id: 22eed3a7beb9b4cb34636cbab2ff0e94989bdb31
21 lines
599 B
Kotlin
21 lines
599 B
Kotlin
package net.torvald.terrarum.virtualcomputer.peripheral
|
|
|
|
import net.torvald.terrarum.virtualcomputer.computer.TerrarumComputer
|
|
import org.luaj.vm2.Globals
|
|
import org.luaj.vm2.LuaTable
|
|
import org.luaj.vm2.LuaValue
|
|
|
|
/**
|
|
* Virtual driver for 4-track squarewave PSG, which has no ability of changing a duty cycle
|
|
* but has a volume control (you'll need some other tracker than MONOTONE)
|
|
*
|
|
* Created by minjaesong on 16-09-27.
|
|
*/
|
|
internal class PeripheralPSG(val host: TerrarumComputer)
|
|
: Peripheral("psg") {
|
|
|
|
override fun loadLib(globals: Globals) {
|
|
globals["psg"] = LuaTable()
|
|
}
|
|
|
|
} |