mirror of
https://github.com/notwa/mm
synced 2024-11-05 00:39:02 -08:00
update debug printing
render to the HUD dlist and clean out some code
This commit is contained in:
parent
c8dbc6dd98
commit
e50dd330b8
4 changed files with 5 additions and 9 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -58,4 +58,3 @@ simple_text:
|
|||
sw v0, @dlist_offset(s1)
|
||||
|
||||
jpop 4, 1, s0, s1, ra
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
[upgrades_offset]: 0xB8
|
||||
[upgrades_2_offset]: 0xBA
|
||||
|
||||
[dlist_offset]: 0x2C0
|
||||
[dlist_offset]: 0x2B0
|
||||
|
||||
[SetTextRGBA]: 0x800859BC
|
||||
[SetTextXY]: 0x80085A2C
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
[upgrades_offset]: 0xA0
|
||||
[upgrades_2_offset]: 0xA2
|
||||
|
||||
[dlist_offset]: 0x2C0
|
||||
[dlist_offset]: 0x2B0
|
||||
|
||||
[SetTextRGBA]: 0x800CBE58
|
||||
[SetTextXY]: 0x800CBEC8
|
||||
|
|
Loading…
Reference in a new issue