1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-04 22:39:02 -08:00

update debug printing

render to the HUD dlist and clean out some code
This commit is contained in:
Connor Olding 2016-04-15 08:34:25 -07:00
parent c8dbc6dd98
commit e50dd330b8
4 changed files with 5 additions and 9 deletions

View file

@ -5,7 +5,7 @@
[global_context]: 0x80212020
// offset from first pointer in global context
[dlist_offset]: 0x2C0
[dlist_offset]: 0x2B0
[SetTextRGBA]: 0x800FB3AC
[SetTextXY]: 0x800FB41C
@ -19,14 +19,14 @@
[ObjectIndex]: 0x8009812C
push 4, 1, ra
// draw some nonsense text
// draw the debug text
li a0, 0x00010001 // xy
li a1, 0x88CCFFFF // rgba
la a2, fmt
la a3, buffer
jal simple_text
nop
// reset buffer position in our per-frame hook
// reset buffer position
la t0, buffer
sw t0, buffer_pos
// and set the string to null
@ -36,9 +36,6 @@
fmt:
.asciiz "%s"
.align
str:
.asciiz "hey"
.align
.include "simple text.asm"

View file

@ -58,4 +58,3 @@ simple_text:
sw v0, @dlist_offset(s1)
jpop 4, 1, s0, s1, ra

View file

@ -19,7 +19,7 @@
[upgrades_offset]: 0xB8
[upgrades_2_offset]: 0xBA
[dlist_offset]: 0x2C0
[dlist_offset]: 0x2B0
[SetTextRGBA]: 0x800859BC
[SetTextXY]: 0x80085A2C

View file

@ -19,7 +19,7 @@
[upgrades_offset]: 0xA0
[upgrades_2_offset]: 0xA2
[dlist_offset]: 0x2C0
[dlist_offset]: 0x2B0
[SetTextRGBA]: 0x800CBE58
[SetTextXY]: 0x800CBEC8