| 1575 | } |
| 1576 | |
| 1577 | static int memory_writebyte(lua_State *L) { |
| 1578 | uint32 A = luaL_checkinteger(L, 1); |
| 1579 | uint8 V = luaL_checkinteger(L, 2); |
| 1580 | |
| 1581 | if(A < 0x10000) |
| 1582 | BWrite[A](A, V); |
| 1583 | |
| 1584 | return 0; |
| 1585 | } |
| 1586 | |
| 1587 | static int legacymemory_writebyte(lua_State *L) { |
| 1588 | FCEU_CheatSetByte(luaL_checkinteger(L,1), luaL_checkinteger(L,2)); |
nothing calls this directly
no test coverage detected