In SCSICmd() count is short, so use move.w

This commit is contained in:
Laurent Vivier 2014-05-08 20:51:58 +02:00
parent bd1790c47f
commit 5d0c15c516
No known key found for this signature in database
GPG Key ID: 34A4F6C9ABF36C53

View File

@ -46,10 +46,9 @@ static inline OSErr SCSICmd(void* buffer, short count)
{
register OSErr ret asm("%%d0");
asm("move.l %2, %%d0\n"
" clr.w -(%%sp)\n"
asm(" clr.w -(%%sp)\n"
" move.l %1, -(%%sp)\n"
" move.w %d0, -(%%sp)\n"
" move.w %2, -(%%sp)\n"
SCSIDispatch(_SCSICmd)
: "=d" (ret) : "g" (buffer), "g" (count) : UNPRESERVED_REGS );