diff options
| author | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-02-01 12:14:48 +0100 |
|---|---|---|
| committer | Xavi Del Campo <xavi.dcr@tutanota.com> | 2020-02-01 12:14:48 +0100 |
| commit | e769a8ab058f89cfe1233060bb931b355d706f93 (patch) | |
| tree | 12963225037f6fec47d16aaa8d7447e2e0e67d6c | |
| parent | 55e4700bc7588f4e9775941ab150887c3ab93422 (diff) | |
Solved issue with pads under real hw
| -rw-r--r-- | libpsx/src/pad.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpsx/src/pad.c b/libpsx/src/pad.c index b3dd151..284b9f4 100644 --- a/libpsx/src/pad.c +++ b/libpsx/src/pad.c @@ -48,11 +48,11 @@ int querypad_rxrdy = 1; void QueryPAD(int pad_n, unsigned char *in, unsigned char *out, int len) { - int x; + volatile int x; volatile int y; // specified as volatile to not make busy loops get optimized out - int i; - unsigned char TempData; - int EmuFlag = 0; + volatile int i; + volatile unsigned char TempData; + volatile int EmuFlag = 0; PADSIO_MODE(0) = 0xD; PADSIO_BAUD(0) = 0x88; |
