440ea43a88
Initially, I used the same letters as those used in the z80 ref docs, but it makes the different assemblers harder to use than they should. Having consistent "argtype" rules across assemblers should help.
13 lines
214 B
Plaintext
13 lines
214 B
Plaintext
( Initiate SPI exchange with the SD card. n is the data to
|
|
send. )
|
|
CODE _sdcSR ( n -- n )
|
|
HL POP,
|
|
chkPS,
|
|
A L LDrr,
|
|
SDC_SPI OUTiA,
|
|
NOP, NOP,
|
|
SDC_SPI INAi,
|
|
L A LDrr,
|
|
HL PUSH,
|
|
;CODE
|