Skip to content

Commit

Permalink
-Split RDP and RSP commands.
Browse files Browse the repository at this point in the history
-Split custom commands and original commands.
-Rework how commands are processed so custom commands, and RDP commands are always run regardless of which ucode is loaded
  • Loading branch information
louist103 committed Apr 2, 2024
1 parent 86567ac commit bd8cb86
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 130 deletions.
20 changes: 10 additions & 10 deletions include/libultraship/libultra/gbi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2283,17 +2283,17 @@ typedef union {
_SHIFTL(G_LOAD_UCODE, 24, 8) | _SHIFTL((int)(uc_dsize)-1, 0, 16), (uintptr_t)(uc_start), \
}

#define gSPLoadUcode(pkt, uc_index) \
_DW({ \
Gfx* _g = (Gfx*)(pkt); \
_g->words.w0 = _SHIFTL(G_LOAD_UCODE, 24, 8) | _SHIFTL(uc_index, 0, 16); \
}) \
#define gSPLoadUcode(pkt, uc_index) \
_DW({ \
Gfx* _g = (Gfx*)(pkt); \
_g->words.w0 = _SHIFTL(G_LOAD_UCODE, 24, 8) | _SHIFTL(uc_index, 0, 16); \
})

#define gSPLoadUcodeL(pkt, uc_index) \
_DW({ \
Gfx* _g = (Gfx*)(pkt); \
_g->words.w0 = _SHIFTL(G_LOAD_UCODE, 24, 8) | _SHIFTL(uc_index, 0, 16); \
}) \
#define gSPLoadUcodeL(pkt, uc_index) \
_DW({ \
Gfx* _g = (Gfx*)(pkt); \
_g->words.w0 = _SHIFTL(G_LOAD_UCODE, 24, 8) | _SHIFTL(uc_index, 0, 16); \
})

#if 0
#define gSPLoadUcode(pkt, uc_start, uc_dstart) gSPLoadUcodeEx((pkt), (uc_start), (uc_dstart), SP_UCODE_DATA_SIZE)
Expand Down
Loading

0 comments on commit bd8cb86

Please sign in to comment.