mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-18 06:31:23 +00:00
In SCSICmd() count is short, so use move.w
This commit is contained in:
parent
bd1790c47f
commit
5d0c15c516
@ -46,10 +46,9 @@ static inline OSErr SCSICmd(void* buffer, short count)
|
|||||||
{
|
{
|
||||||
register OSErr ret asm("%%d0");
|
register OSErr ret asm("%%d0");
|
||||||
|
|
||||||
asm("move.l %2, %%d0\n"
|
asm(" clr.w -(%%sp)\n"
|
||||||
" clr.w -(%%sp)\n"
|
|
||||||
" move.l %1, -(%%sp)\n"
|
" move.l %1, -(%%sp)\n"
|
||||||
" move.w %d0, -(%%sp)\n"
|
" move.w %2, -(%%sp)\n"
|
||||||
SCSIDispatch(_SCSICmd)
|
SCSIDispatch(_SCSICmd)
|
||||||
: "=d" (ret) : "g" (buffer), "g" (count) : UNPRESERVED_REGS );
|
: "=d" (ret) : "g" (buffer), "g" (count) : UNPRESERVED_REGS );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user