Parallel Printer Card works with PrintShopPro

This commit is contained in:
Iván Izaguirre 2022-11-26 22:24:15 +01:00
parent e7ba568149
commit a5e8c200c7
1 changed files with 7 additions and 1 deletions

View File

@ -37,12 +37,18 @@ func (c *CardParallelPrinter) assign(a *Apple2, slot int) {
c.printByte(value)
}, "PARALLELDEVW")
c.addCardSoftSwitchR(4, func() uint8 {
return 0xff // TODO: What are the bit values?
}, "PARALLELSTATUSR")
c.cardBase.assign(a, slot)
}
const printerFile = "printer.out"
func (c *CardParallelPrinter) printByte(value uint8) {
value = value & 0x7f // Remove the MSB bit
// As text the MSB has to be removed, but if done, graphics modes won't work
//value = value & 0x7f // Remove the MSB bit
c.file.Write([]byte{value})
}