Fix addresses being truncated

This commit is contained in:
Jeffrey Pfau 2014-10-01 03:23:16 -07:00
parent 14b6393b51
commit 56a105e3da
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
}
#define LOAD_16(DEST, ADDR, ARR) { \
uint16_t _tmp = (ADDR); \
uint32_t _tmp = (ADDR); \
asm("lhbrx %0, %1, %2" : "=r"(DEST) : "r"(_tmp), "p"(ARR)); \
}
@ -33,7 +33,7 @@
}
#define STORE_16(SRC, ADDR, ARR) { \
uint16_t _tmp = (ADDR); \
uint32_t _tmp = (ADDR); \
asm("sthbrx %0, %1, %2" : : "r"(SRC), "r"(_tmp), "p"(ARR)); \
}
#else