// simple platform with Text User Interface only
simple platform with Text User Interface only
// simple platform with Text User Interface only
func (platform *Platform) InitTUI() {
	bus, _		:= bus.New()
	platform.CPU, _  = cpu65c816.New(bus)
	console, _	:= netconsole.NewNetConsole()
	platform.Console = console
	ram, _	        := memory.New(0x400000, 0x000000)
	platform.GPU, _	 = vicky.New()
	vram, _		:= memory.New(0x400000, 0xb00000)		   
	platform.CPU.Bus.Attach(ram,            "ram", 0x000000, 0x3FFFFF) 
	platform.CPU.Bus.Attach(console, "netconsole", 0x000EF0, 0x000FFF)
	platform.CPU.Bus.Attach(platform.GPU, "vicky", 0xAF0000, 0xAFFFFF)
	platform.CPU.Bus.Attach(vram,          "vram", 0xB00000, 0xEFFFFF)
	platform.CPU.Bus.EaWrite(0xAF070B, 0x01)			   
        platform.CPU.Bus.EaWrite(0xFFFC, 0x00)
        platform.CPU.Bus.EaWrite(0xFFFD, 0x10)
	platform.CPU.Reset()
	mylog.Logger.Log("platform: initialized")
}
func ( platform * Platform ) InitTUI ( ) { bus , _ := bus . New ( ) platform . CPU , _ = cpu65c816 . New ( bus ) console , _ := netconsole . NewNetConsole ( ) platform . Console = console ram , _ := memory . New ( 0x400000 , 0x000000 ) platform . GPU , _ = vicky . New ( ) vram , _ := memory . New ( 0x400000 , 0xb00000 ) platform . CPU . Bus . Attach ( ram , " " , 0x000000 , 0x3FFFFF ) platform . CPU . Bus . Attach ( console , " " , 0x000EF0 , 0x000FFF ) platform . CPU . Bus . Attach ( platform . GPU , " " , 0xAF0000 , 0xAFFFFF ) platform . CPU . Bus . Attach ( vram , " " , 0xB00000 , 0xEFFFFF ) platform . CPU . Bus . EaWrite ( 0xAF070B , 0x01 ) platform . CPU . Bus . EaWrite ( 0xFFFC , 0x00 ) platform . CPU . Bus . EaWrite ( 0xFFFD , 0x10 ) platform . CPU . Reset ( ) mylog . Logger . Log ( " " ) }
simple platform with Text User Interface only
simple platform with Text User Interface only
// XXX - placeholder // xxx - 1: ram.offset, ram.size 2: get rid that? // fake platform version, my HW ha 43 here IDE has 00