MCPcopy Create free account
hub / github.com/TASEmulators/fceux / memory_writebyte

Function memory_writebyte

src/lua-engine.cpp:1577–1585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1575}
1576
1577static 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
1587static int legacymemory_writebyte(lua_State *L) {
1588 FCEU_CheatSetByte(luaL_checkinteger(L,1), luaL_checkinteger(L,2));

Callers

nothing calls this directly

Calls 1

luaL_checkintegerFunction · 0.85

Tested by

no test coverage detected