sm64pc/actors/power_meter/model.s
2019-08-25 00:46:40 -04:00

112 lines
4.8 KiB
ArmAsm

# Power Meter HUD
# ???
.word 0
.word 0
power_meter_seg3_texture_030233E0: # 0x030233E0
.incbin "actors/power_meter/power_meter_left_side.rgba16"
power_meter_seg3_texture_030243E0: # 0x030243E0
.incbin "actors/power_meter/power_meter_right_side.rgba16"
power_meter_seg3_texture_030253E0: # 0x030253E0
.incbin "actors/power_meter/power_meter_full.rgba16"
power_meter_seg3_texture_03025BE0: # 0x03025BE0
.incbin "actors/power_meter/power_meter_seven_segments.rgba16"
power_meter_seg3_texture_030263E0: # 0x030263E0
.incbin "actors/power_meter/power_meter_six_segments.rgba16"
power_meter_seg3_texture_03026BE0: # 0x03026BE0
.incbin "actors/power_meter/power_meter_five_segments.rgba16"
power_meter_seg3_texture_030273E0: # 0x030273E0
.incbin "actors/power_meter/power_meter_four_segments.rgba16"
power_meter_seg3_texture_03027BE0: # 0x03027BE0
.incbin "actors/power_meter/power_meter_three_segments.rgba16"
power_meter_seg3_texture_030283E0: # 0x030283E0
.incbin "actors/power_meter/power_meter_two_segments.rgba16"
power_meter_seg3_texture_03028BE0: # 0x03028BE0
.incbin "actors/power_meter/power_meter_one_segment.rgba16"
glabel power_meter_seg3_health_icons_030293E0 # 0x030293E0
.word power_meter_seg3_texture_03028BE0
.word power_meter_seg3_texture_030283E0
.word power_meter_seg3_texture_03027BE0
.word power_meter_seg3_texture_030273E0
.word power_meter_seg3_texture_03026BE0
.word power_meter_seg3_texture_030263E0
.word power_meter_seg3_texture_03025BE0
.word power_meter_seg3_texture_030253E0
power_meter_seg3_vertex_03029400: # 0x03029400
vertex -32, -32, 0, 0, 2016, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, -32, 0, 992, 2016, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, 32, 0, 992, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -32, 32, 0, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, -32, 0, 1, 2016, 0xFF, 0xFF, 0xFF, 0xFF
vertex 32, -32, 0, 1024, 2016, 0xFF, 0xFF, 0xFF, 0xFF
vertex 32, 32, 0, 1024, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex 0, 32, 0, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF
glabel power_meter_seg3_dl_03029480 # 0x03029480 - 0x03029530
gsDPPipeSync
gsSPClearGeometryMode G_LIGHTING
gsDPSetCombineModeLERP1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_TEXEL0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_TEXEL0
# There were multiple matching pairs, so I don't know if this is correct or not.
gsDPSetRenderMode G_RM_TEX_EDGE, G_RM_TEX_EDGE2
# It could also be one of these:
# G_RM_OPA_SURF, G_RM_TEX_EDGE2; G_RM_TEX_EDGE, G_RM_OPA_SURF2; G_RM_RA_ZB_OPA_SURF, G_RM_TEX_EDGE, G_RM_OPA_CI2;
# G_RM_OPA_CI, G_RM_TEX_EDGE2; G_G_RM_PASS, G_RM_TEX_EDGE2;
gsDPSetTextureFilter G_TF_POINT
gsSPTexture -1, -1, 0, 0, 1
gsSPVertex power_meter_seg3_vertex_03029400, 8, 0
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD
gsDPTileSync
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 124, 252
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, power_meter_seg3_texture_030233E0
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x7FF, 0x100
gsSP2Triangles 0, 1, 2, 0x0, 0, 2, 3, 0x0
gsDPSetTextureImage G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, power_meter_seg3_texture_030243E0
gsDPLoadSync
gsDPLoadBlock 7, 0, 0, 0x7FF, 0x100
gsSP2Triangles 4, 5, 6, 0x0, 4, 6, 7, 0x0
gsSPEndDisplayList
power_meter_seg3_vertex_03029530: # 0x03029530
vertex -16, -16, 0, 0, 992, 0xFF, 0xFF, 0xFF, 0xFF
vertex 15, -16, 0, 992, 992, 0xFF, 0xFF, 0xFF, 0xFF
vertex 15, 16, 0, 992, 0, 0xFF, 0xFF, 0xFF, 0xFF
vertex -16, 16, 0, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF
glabel power_meter_seg3_dl_03029570 # 0x03029570 - 0x030295A0
gsDPPipeSync
gsSPVertex power_meter_seg3_vertex_03029530, 4, 0
gsDPTileSync
gsDPSetTile G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP | G_TX_NOMIRROR, 5, G_TX_NOLOD
gsDPSetTileSize 0, 0, 0, 124, 124
gsSPEndDisplayList
glabel power_meter_seg3_dl_030295A0 # 0x030295A0 - 0x030295D8
gsDPPipeSync
gsSPTexture -1, -1, 0, 0, 0
gsSPSetGeometryMode G_LIGHTING
# There were multiple matching pairs, so I don't know if this is correct or not.
gsDPSetRenderMode G_RM_OPA_SURF, G_RM_OPA_SURF2
# It could also be one of these:
# G_RM_OPA_SURF, G_RM_OPA_CI2; G_RM_OPA_CI, G_RM_OPA_SURF2; G_RM_PASS, G_RM_OPA_SURF2;
gsDPSetCombineModeLERP1Cycle G_CCMUX_0, G_CCMUX_0, G_CCMUX_0, G_CCMUX_SHADE, G_ACMUX_0, G_ACMUX_0, G_ACMUX_0, G_ACMUX_SHADE
gsDPSetTextureFilter G_TF_BILERP
gsSPEndDisplayList