From 4349fb859b60a29248c02707f67e854629fd7c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Thu, 7 Nov 2013 19:49:56 +0000 Subject: [PATCH] fixed swapw() --- BaS_gcc/include/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaS_gcc/include/util.h b/BaS_gcc/include/util.h index 3adf4fa..026cd1d 100644 --- a/BaS_gcc/include/util.h +++ b/BaS_gcc/include/util.h @@ -37,9 +37,9 @@ static inline uint16_t swpw(uint16_t w) __asm__ __volatile__ ( "lea %[input],a0\n\t" \ - "mvz.b 3(a0),%[output]\n\t" \ + "mvz.b 1(a0),%[output]\n\t" \ "lsl.l #8,%[output]\n\t" \ - "move.b 2(a0),%[output]\n\t" \ + "move.b (a0),%[output]\n\t" \ : [output] "=d" (result) /* output */ : [input] "o" (w) /* input */ : "cc", "a0", "memory" /* clobbered */