mirror of https://github.com/PrimeDecomp/prime.git
Minor cleanup, use macros from gba.h
This commit is contained in:
parent
68e2da3ccb
commit
8a35c9640a
|
@ -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);
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue