mirror of
https://github.com/dschmenk/VM02.git
synced 2024-05-29 04:41:32 +00:00
19 lines
341 B
Java
Executable File
19 lines
341 B
Java
Executable File
package apple2;
|
|
|
|
public class PrintConsole extends java.io.PrintStream {
|
|
|
|
public PrintConsole()
|
|
{
|
|
super(new OutputConsole());
|
|
vm02.call(20 << 19, 0x96); // CONCTL_TEXT80 on slot #3
|
|
}
|
|
|
|
public void print(String s)
|
|
{
|
|
vm02.call(vm02.refAsBits(s), 0x50);
|
|
}
|
|
public void println(String s)
|
|
{
|
|
vm02.call(vm02.refAsBits(s), 0x52);
|
|
}
|
|
} |