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 LDA #SS0 ; set CS high
STA SS,X STA SS,X
LDY #10 LDY #10
LDA #DUMMY
@LOOP: STA DATA,X @LOOP: LDA #DUMMY
@WAIT: BIT CTRL,X STA DATA,X
@WAIT: LDA CTRL,X ; wait for TC (bit 7) to get high
BPL @WAIT BPL @WAIT
DEY DEY
BNE @LOOP ; do 10 times BNE @LOOP ; do 10 times