1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-06-25 19:47:12 -07:00
This commit is contained in:
Connor Olding 2015-03-25 11:27:38 -07:00
parent 3f397ea904
commit fb9ff50c70

View File

@ -33,9 +33,11 @@ function dump_room(start, addr)
if cmd == 0x14 then if cmd == 0x14 then
local unk = R4(addr+4) local unk = R4(addr+4)
if unk > 0 then if unk > 0 then
printf("# end unknown: %08X", unk) -- odds are someone meant to type 0x16 instead of 0x14
-- the game lets this slide and keeps reading
else
break
end end
break
end end
local dumpy = function() local dumpy = function()
@ -90,6 +92,9 @@ function dump_room(start, addr)
elseif cmd == 0x13 then elseif cmd == 0x13 then
printf("exits:") printf("exits:")
dumpy() dumpy()
elseif cmd == 0x14 then
printf("faulty end command:")
dump_half_row(addr)
elseif cmd == 0x16 then elseif cmd == 0x16 then
printf("echo: %2i", R1(addr+7)) printf("echo: %2i", R1(addr+7))
elseif cmd == 0x17 then elseif cmd == 0x17 then
@ -170,7 +175,7 @@ while true do
local addr = deref(addrs.room_ptr()) local addr = deref(addrs.room_ptr())
if addr and addr ~= last_addr then if addr and addr ~= last_addr then
console.clear() console.clear()
print('# setup: 00 #') print('# setup: 00')
dump_room(addr) dump_room(addr)
print('') print('')
end end
@ -178,5 +183,5 @@ while true do
gui.clearGraphics() gui.clearGraphics()
emu.yield() emu.frameadvance()
end end