mirror of
https://github.com/dschmenk/VM02.git
synced 2024-06-09 16:29:34 +00:00
17 lines
271 B
Java
Executable File
17 lines
271 B
Java
Executable File
package apple2;
|
|
|
|
public class OutputSSC extends java.io.OutputStream
|
|
{
|
|
private int sscSlot, sscWrite;
|
|
|
|
public OutputSSC(int slot)
|
|
{
|
|
sscWrite = 0x80 + (slot << 1);
|
|
sscSlot = slot << 16;
|
|
}
|
|
|
|
public void write(byte b)
|
|
{
|
|
vm02.call(sscSlot | b , sscWrite);
|
|
}
|
|
} |