Fix in INIT

This commit is contained in:
Florian Reitz 2021-08-24 19:44:49 +02:00
parent 285c53ae67
commit f866c3f66e

View File

@ -224,10 +224,10 @@ INIT: STZ CTRL,X ; reset SPI controller
LDA #SS0 ; set CS high
STA SS,X
LDY #10
LDA #DUMMY
@LOOP: STA DATA,X
@WAIT: BIT CTRL,X
@LOOP: LDA #DUMMY
STA DATA,X
@WAIT: LDA CTRL,X ; wait for TC (bit 7) to get high
BPL @WAIT
DEY
BNE @LOOP ; do 10 times