1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-05-18 05:23:22 -07:00
mm/asm/spawn mm.asm

54 lines
1.2 KiB
NASM
Raw Normal View History

2015-12-18 23:46:30 -08:00
[actor_spawn]: 0x800BAE14
2015-12-22 14:12:20 -08:00
[object_spawn]: 0x8012F2E0
2016-01-03 04:36:14 -08:00
[object_index]: 0x8012F608
2015-12-18 23:46:30 -08:00
[max_actor_no]: 0x2B1
[global_context]: 0x803E6B20
[buttons_offset]: 0x14
[actor_spawn_offset]: 0x1CA0
2015-12-22 06:35:50 -08:00
[object_spawn_offset]: 0x17D88
2015-12-18 23:46:30 -08:00
[link_actor]: 0x803FFDB0
[actor_x]: 0x24
[actor_y]: 0x28
[actor_z]: 0x2C
[actor_horiz_angle]: 0x32
[link_save]: 0x801EF670
[rupees_offset]: 0x3A
[upgrades_offset]: 0xB8
[upgrades_2_offset]: 0xBA
[dlist_offset]: 0x2B0
2016-01-12 06:59:29 -08:00
[SetTextRGBA]: 0x800859BC
[SetTextXY]: 0x80085A2C
[SetTextString]: 0x800860D8
[TxtPrinter]: 0x80085FE4
2018-11-27 18:51:08 -08:00
[InitTxtStruct]: 0x80086010 ; unused here; we set it up inline
2016-01-12 06:59:29 -08:00
[DoTxtStruct]: 0x8008606C
[UpdateTxtStruct]: 0x800860A0
2015-12-18 23:46:30 -08:00
.include "spawn.asm"
2016-01-09 09:19:21 -08:00
2018-11-27 18:51:08 -08:00
[whatever]: 0x807D0000 ; stupid hack since i can't store/restore PC (not yet!)
2016-01-09 09:19:21 -08:00
.org @whatever
push 5, ra
lhu t0, 0(a1)
andi t0, t0, 0x07FF
bnei t0, 0x0C5, + // skip if not title screen actor
nop
jal 0x800BB2D0 // original code
nop
+:
2016-05-18 03:24:20 -07:00
ret 5, ra
2016-01-09 09:19:21 -08:00
.org 0x800B9430 // part of scene actor loading routine
jal @whatever
.org 0x8012FC18 // scene command 0x0B (objects)
// don't load any objects manually,
// since spawn.asm handles that automatically
jr
nop