예제 #1
0
파일: svga.go 프로젝트: ThunderPuppy/tinygo
func bgaReadRegister(index uint16) uint16 {
	syscall.Outw(VBE_DISPI_IOPORT_INDEX, index)
	return syscall.Inw(VBE_DISPI_IOPORT_DATA)
}
예제 #2
0
파일: svga.go 프로젝트: ThunderPuppy/tinygo
func bgaWriteRegister(index, word uint16) {
	syscall.Outw(VBE_DISPI_IOPORT_INDEX, index)
	syscall.Outw(VBE_DISPI_IOPORT_DATA, word)
}