mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 19:42:45 +01:00
small printresult change (from ector)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3170 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
14f9d84e60
commit
ab1bda745f
@ -1,15 +1,18 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <arpa/inet.h>
|
|
||||||
|
|
||||||
typedef unsigned short u16;
|
typedef unsigned short u16;
|
||||||
|
|
||||||
u16 reg_in[32], reg_out[1000][32];
|
u16 reg_in[32], reg_out[1000][32];
|
||||||
|
|
||||||
|
inline u16 swap16(u16 s) {
|
||||||
|
return (s >> 8) | (s << 8);
|
||||||
|
}
|
||||||
|
|
||||||
void printRegs(u16 *lastRegs, u16 *regs) {
|
void printRegs(u16 *lastRegs, u16 *regs) {
|
||||||
for (int i = 0; i < 32; i++) {
|
for (int i = 0; i < 32; i++) {
|
||||||
if (! lastRegs || lastRegs[i] != regs[i]) {
|
if (! lastRegs || lastRegs[i] != regs[i]) {
|
||||||
printf("%02x %04x ", i, htons(regs[i]));
|
printf("%02x %04x ", i, swap16(regs[i]));
|
||||||
} else {
|
} else {
|
||||||
printf(" ");
|
printf(" ");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user