Minor cleanup, use macros from gba.h

This commit is contained in:
Phillip Stephens 2022-10-15 23:01:20 -07:00
parent 68e2da3ccb
commit 8a35c9640a
4 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ typedef struct GBA {
extern GBA __GBA[4];
extern BOOL __GBAReset;
// void __GBAHandler(s32 chan, s32 ret);
void __GBAHandler(s32 chan, u32 sr, OSContext* context);
void __GBASyncCallback(s32 chan, s32 ret);
s32 __GBASync(s32 chan);
OSTime __GBASetDelay(s32 chan, OSTime delay);

View File

@ -24,7 +24,7 @@ void ShortCommandProc(s32 chan) {
return;
}
gba->status[0] = gba->dst[2] & 0x3a;
gba->status[0] = gba->dst[2] & GBA_JSTAT_MASK;
}
void GBAInit() {

View File

@ -6,7 +6,7 @@ void ReadProc(s32 chan) {
if (gba->result == 0) {
memcpy(gba->buffer, &gba->dst, 4);
gba->status[0] = gba->_09 & 0x3a;
gba->status[0] = gba->_09 & GBA_JSTAT_MASK;
}
}

View File

@ -8,7 +8,7 @@ void WriteProc(s32 chan) {
return;
}
gba->status[0] = gba->dst[0] & 0x3a;
gba->status[0] = gba->dst[0] & GBA_JSTAT_MASK;
}
s32 GBAWriteAsync(s32 chan, u8* src, u8* status, GBACallback callback) {