1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-05-18 13:23:23 -07:00
This commit is contained in:
Connor Olding 2015-05-01 11:48:49 -07:00
parent 6c89f9306b
commit 736804be40
4 changed files with 7 additions and 9 deletions

View File

@ -327,7 +327,7 @@ local function runwrap(now)
end
event.onloadstate(wipe, 'actor wipe')
while true do
while oot or mm do
local now = emu.framecount()
runwrap(now)
emu.frameadvance()

View File

@ -51,6 +51,7 @@ return {
[575] = true,
[576] = true,
[578] = true,
[583] = true,
[584] = true,
[591] = true,
[592] = true,
@ -114,8 +115,10 @@ return {
[1939] = true,
[1940] = true,
[1941] = true,
[1942] = true,
[1943] = true,
[1944] = true,
[1945] = true,
[1965] = true,
[1967] = true,
[1968] = true,

View File

@ -25,12 +25,7 @@ end
ShortMonitor = Class(Monitor)
function ShortMonitor:init(name, a)
self.name = name
self.begin = a.addr
self.len = a.type
self.once = false
self.old_bytes = {}
Monitor.init(self, name, a)
self.modified = {}
self.dirty = false
end
@ -51,7 +46,7 @@ function ShortMonitor:dump()
local ih = i
local block, page, row = distribute_index(ih)
local mod = self.modified[ih]
local value = R2(self.begin + ih)
local value = R2(self.begin + ih*2)
local vs = mod and 'n/a' or ('%04X'):format(value)
local name = ('%s%02i'):format(blocknames[block+1], page*16 + row)
local s = ('%s\t%i\t%i\t%s\n'):format(name, page+1, row+1, vs)

View File

@ -5,7 +5,7 @@ local anim_addr = addrs.link_actor.animation_id.addr
local fn = 'data/_anims_seen.lua'
local anims_seen = deserialize(fn) or {}
while true do
while mm do
local anim_id = mainmemory.read_u16_be(anim_addr)
local actor_loaded = mainmemory.read_u8(anim_addr - 2) == 4
local hexid = ('%04X'):format(anim_id)