mirror of
https://github.com/Ed94/pikuma_ps1.git
synced 2026-06-01 18:41:13 -07:00
minor correction to asm
This commit is contained in:
@@ -69,13 +69,13 @@ typedef def_struct(PolyTag) {
|
||||
* Primitive Handling Macros
|
||||
*/
|
||||
|
||||
#define set_len( p, _len) (((PolyTag*)(p))->len = (B1)(_len))
|
||||
#define set_addr(p, _addr) (((PolyTag*)(p))->addr = (U4)(_addr))
|
||||
#define set_code(p, _code) (((PolyTag*)(p))->code = (B1)(_code))
|
||||
#define set_len( p, _len) (((PolyTag*R_)(p))->len = (B1)(_len))
|
||||
#define set_addr(p, _addr) (((PolyTag*R_)(p))->addr = (U4)(_addr))
|
||||
#define set_code(p, _code) (((PolyTag*R_)(p))->code = (B1)(_code))
|
||||
|
||||
#define get_len(p) (B1)(((PolyTag*)(p))->len)
|
||||
#define get_code(p) (B1)(((PolyTag*)(p))->code)
|
||||
#define get_addr(p) (U4)(((PolyTag*)(p))->addr)
|
||||
#define get_len(p) (B1)(((PolyTag*R_)(p))->len)
|
||||
#define get_code(p) (B1)(((PolyTag*R_)(p))->code)
|
||||
#define get_addr(p) (U4)(((PolyTag*R_)(p))->addr)
|
||||
|
||||
#define orderingtbl_add_primitive(ot, p) set_addr(p, get_addr(ot)), set_addr(ot, p)
|
||||
#define orderingtbl_add_primitives(ot, p0, p1) set_addr(p1, get_addr(ot)), set_addr(ot, p0)
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
.equ DrawEnv_Packed_tag, 0
|
||||
.equ DrawEnv_Packed_code, DrawEnv_Packed_tag + U4
|
||||
.equ DrawEnv_Packed, 64
|
||||
# DrawEnv { Rect_S16 clip; Vec_2S16 ofs; Rect_S16 tw; U16 tpage; U8 dtd; U8 dfe; U8 tme; U8 r0,g0,b0; DR_ENV dr_env; }
|
||||
# DrawEnv { Rect_S2 clip; V2_S2 ofs; Rect_S2 tw; U2 tpage; U8 dtd; U8 dfe; U8 tme; U8 r0,g0,b0; DR_ENV dr_env; }
|
||||
.equ DrawEnv_clip_area, /* 0 */ Rect_S2 * 0
|
||||
.equ DrawEnv_drawing_offset, /* 8 */ A2_S2 * 0 + Rect_S2
|
||||
.equ DrawEnv_drawing_offset, /* 8 */ V2_S2 * 0 + Rect_S2
|
||||
.equ DrawEnv_texture_window, /* 12 */ Rect_S2 * 0 + A2_S2 + DrawEnv_drawing_offset
|
||||
.equ DrawEnv_texture_page, /* 20 */ S1 * 0 + Rect_S2 + DrawEnv_texture_window
|
||||
.equ DrawEnv_flag_dither, /* 22 */ B1 * 0 + S2 + DrawEnv_texture_page
|
||||
|
||||
Reference in New Issue
Block a user