From a5e8c200c762eec112659ded92e1ea79c0d6e1ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Izaguirre?= Date: Sat, 26 Nov 2022 22:24:15 +0100 Subject: [PATCH] Parallel Printer Card works with PrintShopPro --- cardParallelPrinter.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cardParallelPrinter.go b/cardParallelPrinter.go index ff22e42..eb73734 100644 --- a/cardParallelPrinter.go +++ b/cardParallelPrinter.go @@ -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}) }