summaryrefslogtreecommitdiff
path: root/lib/ultralib/src/vimodes/vimodentsclaf2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ultralib/src/vimodes/vimodentsclaf2.c')
-rw-r--r--lib/ultralib/src/vimodes/vimodentsclaf2.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/ultralib/src/vimodes/vimodentsclaf2.c b/lib/ultralib/src/vimodes/vimodentsclaf2.c
new file mode 100644
index 0000000..fd15f40
--- /dev/null
+++ b/lib/ultralib/src/vimodes/vimodentsclaf2.c
@@ -0,0 +1,35 @@
+#include "PR/os.h"
+#include "PR/rcp.h"
+#include "../io/viint.h"
+
+OSViMode osViModeNtscLaf2 = {
+ OS_VI_NTSC_LAF2, // type
+ { // comRegs
+ VI_CTRL_TYPE_32 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON |
+ VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON | VI_CTRL_PIXEL_ADV_3, // ctrl
+ WIDTH(320), // width
+ BURST(57, 34, 5, 62), // burst
+ VSYNC(524), // vSync
+ HSYNC(3093, 0), // hSync
+ LEAP(3093, 3093), // leap
+ HSTART(108, 748), // hStart
+ SCALE(2, 0), // xScale
+ VCURRENT(0), // vCurrent
+ },
+ { // fldRegs
+ { // [0]
+ ORIGIN(1280), // origin
+ SCALE(1, 0.25), // yScale
+ HSTART(35, 509), // vStart
+ BURST(4, 2, 14, 0), // vBurst
+ VINTR(2), // vIntr
+ },
+ { // [1]
+ ORIGIN(1280), // origin
+ SCALE(1, 0.75), // yScale
+ HSTART(37, 511), // vStart
+ BURST(4, 2, 14, 0), // vBurst
+ VINTR(2), // vIntr
+ }
+ }
+};