Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match gs_008,9 #4

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ def build_35():
add_lib_263(etc_srcs, "build/3.5/etc", "./psy-q/3.5/PSX/LIB/LIBETC.LIB", "-DVERSION=35", "3.5")

gs_srcs = [
'src/gs/gs_007.c'
'src/gs/gs_007.c',
'src/gs/gs_008.c',
'src/gs/gs_009.c'
]

add_lib_263(gs_srcs, "build/3.5/gs", "./psy-q/3.5/PSX/LIB/LIBGS.LIB", "-DVERSION=35", "3.5")
Expand Down
19 changes: 19 additions & 0 deletions src/gs/gs_008.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include "../types.h"
#include "KERNEL.H"
#include "gs_007.h"

s32 PSDOFSX;
s32 PSDOFSY;
s32 CLIP2[2];
s32 PSDBASEX;
s32 PSDBASEY;
s32 POSITION;
s16 GsDISPENV[10];
s16 PSDGPU;
s16 GsORGOFSX;
s16 GsORGOFSY;
s16 PSDIDX;
s32 PSDCNT;
u8 GsDRAWENV[92];

long GsGetVcount() { return GetRCnt(RCntCNT1); }
19 changes: 19 additions & 0 deletions src/gs/gs_009.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include "../types.h"
#include "KERNEL.H"
#include "gs_007.h"

s32 PSDOFSX;
s32 PSDOFSY;
s32 CLIP2[2];
s32 PSDBASEX;
s32 PSDBASEY;
s32 POSITION;
s16 GsDISPENV[10];
s16 PSDGPU;
s16 GsORGOFSX;
s16 GsORGOFSY;
s16 PSDIDX;
s32 PSDCNT;
u8 GsDRAWENV[92];

void GsClearVcount() { return ResetRCnt(RCntCNT1); }
Loading