Stack-allocate the table

This commit is contained in:
simon.kagstrom 2010-03-07 14:12:31 +00:00
parent ec924bafeb
commit 3193548985

View File

@ -918,7 +918,7 @@ uint8 C64::poll_joystick(int port)
bool has_event = false;
uint8 out = 0xff;
static uint8 last_table_ports[2][0xff];
static uint8 table_ports[2][0xff];
uint8 table_ports[2][0xff];
uint8 *last_table = last_table_ports[port];
uint8 *table = table_ports[port];