Introduce internal and normal GPU functions

This commit is contained in:
2022-09-11 10:10:51 +02:00
parent 679899279d
commit a8f0bddc89
7 changed files with 73 additions and 12 deletions

17
include/PSX/GPU/GPU.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef __JABYENGINE_GPU_H__
#define __JABYENGINE_GPU_H__
#include "../System/IOPorts/GPU_IO.hpp"
namespace GPU {
namespace Display {
static void enable() {
Port::GP1.write(Port::Command::GP1::SetDisplayState(Port::DisplayState::On));
}
static void disable() {
Port::GP1.write(Port::Command::GP1::SetDisplayState(Port::DisplayState::Off));
}
}
}
#endif //!__JABYENGINE_GPU_H__