1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-30 20:28:05 +11:00
collapseos/blk/609

16 lines
432 B
Plaintext
Raw Normal View History

2020-04-24 03:55:00 +10:00
( cmd arg1 arg2 -- r )
( Send a command that expects a R1 response, handling CS. )
: SDCMDR1 (spie) _cmd (spid) ;
2020-04-24 03:55:00 +10:00
( cmd arg1 arg2 -- r arg1 arg2 )
( Send a command that expects a R7 response, handling CS. A R7
is a R1 followed by 4 bytes. arg1 contains bytes 0:1, arg2
has 2:3 )
: SDCMDR7
(spie)
2020-04-24 03:55:00 +10:00
_cmd ( r )
2020-05-08 05:40:10 +10:00
_idle 8 LSHIFT _idle + ( r arg1 )
_idle 8 LSHIFT _idle + ( r arg1 arg2 )
(spid)
2020-04-24 03:55:00 +10:00
;