From 5d0c15c51675becb9cee107b3e5e45db505a5e29 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Thu, 8 May 2014 20:51:58 +0200 Subject: [PATCH] In SCSICmd() count is short, so use move.w --- libmacos/macos/scsi.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libmacos/macos/scsi.h b/libmacos/macos/scsi.h index 28470b5..88bda19 100644 --- a/libmacos/macos/scsi.h +++ b/libmacos/macos/scsi.h @@ -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 );