jump78:
; start/finish sending a byte to the display
-; stack parameter - 0 to disable clock (finish), 1 to enable clock (start)
+; stack parameter - 0 to disable display clock (for reading keypad), 1 to enable
; lower 8-bits of D - byte to write to display.
; bytes with bit 7 unset are characters (0-127)
; bytes with bit 7 set are control commands.
BE72 CE 10 00 ... ldx #1000
BE75 1C 00 80 .. bset 00,x, #80
-; set clock polarity
+; set SPI enable
BE78 CE 10 28 ... ldx #1028
BE7B 1C 00 40 ... bset 00,x, #40
BE93 BD BD B5 ... jsr bdb5 ;jump78
BE96 38 8 pulx
-; revert clock polarity
+; revert SPI enable
BE97 CE 10 28 ..( ldx #1028
BE9A 1D 00 40 ... bclr 00,x, #40
BE9D 39 9 rts