determining the level of granularity I have with asm symbolic debugging.

This commit is contained in:
2025-08-06 08:44:20 -04:00
parent c052253b0e
commit b9494d219f
15 changed files with 574 additions and 15 deletions
+23
View File
@@ -0,0 +1,23 @@
.include "./toolchain/pcsx-redux/src/mips/common/crt0/crt0.s"
.include "./asmdd/dsl.asm"
.include "./asmdd/io.asm"
.include "./asmdd/gp.asm"
#.section .text.gp, "ax, @progbits"
#.align 2
.global gp_screen_init
.type gp_screen_init, @function
gp_screen_init:
.equiv rio_offset, rtmp_0
load_imm rtmp_0, IO_BASE_ADDR
#define gp0 gpio_port0(rio_offset)
#define gp1 gpio_port1(rio_offset)
gcmd_push gp1, rtmp_1, gp_Reset
nop; nop;
gcmd_push gp1, rtmp_1, gp_DisplayEnabled
jump_reg rret_addr; nop
.Lgp_screen_init_end:
.size gp_screen_init, . - gp_screen_init
+15 -1
View File
@@ -1,6 +1,20 @@
#include <stdlib.h>
// #include <stdlib.h>
#include "duffle/dsl.h"
#include "duffle/gp.h"
#define ScreenRes_X 320
#define ScreenRes_Y 240
#define ScreenRes_CenterX (ScreenRes_X >> 1)
#define ScreenRes_CenterY (ScreenRes_Y >> 1)
int main(void)
{
gp_screen_init();
while (1)
{
};
return 0;
}
-1
View File
@@ -1 +0,0 @@
.include "./toolchain/pcsx-redux/src/mips/common/crt0/crt0.s"