-
Notifications
You must be signed in to change notification settings - Fork 0
/
platform_NY.h
95 lines (65 loc) · 2.35 KB
/
platform_NY.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
*
PUBLIC DOMAIN 2022
THIS CODE IS A HACKY MESS - READ IT AT YOUR OWN RISK!
https://github.com/gwald/yarmico
*
*/
#ifndef TARGET_HW
#define TARGET_HW
// 4bit title screen looses some brightness, make it brighter then normal
#define YARMICO_TITLE_BRIGHTNESS_LEVEL 255 // max u8 brightness - normal is 127
// ticks to hold title screen for
#define YARMICO_TITLE_HOLD_COUNT 10 //because it's really bright, do diming quickly
#include <r3000.h>
#include <asm.h>
#include <libps.h>
#include <sys/file.h>
#include "DATA.H" // similar to build.h
//Playstation BIOS info: version/date/region
#define PLAYSTATION_BIOS_INFO() ( ((volatile char *)0xBFC7FF32+0x13) )
// Auto detect BIOS region
// https://problemkaputt.de/psx-spx.htm#biosversions
// from the Bootmenu/Intro Versions
// The System ROM Version string can be found at BFC7FF32h (except in v1.0).
// BIOS Memory Map: BFC7FF32h GUI Version/Copyright Strings (if any) (separated by one 00h byte)
#define PLAYSTATION_REGION_CHECK() ( *((volatile char *)0xBFC7FF52) ) // returns 'E' for EU regions, based on BIOS information... 'A' for US, 'I' or something else for JPN
#define HARDWARE_TARGET HARDWARE_TARGET_NET_YAROZE
// NY_TITLE_DATA is the RAM addresstitle splash like the demo disc but 255x255 TIM 4bit, displayed at hi res.
// it's defined in dataman.txt, run dataman in the command line, it generates a header and siocons batch file.
// if NY_TITLE_DATA is not defined, it wont show anything.
/*
* Copyright (C) 1996 by Sony Computer Entertainment Inc.
* All rights Reserved
*
* pad.h: PadRead() accsess macro
*/
#define PADLup 4096
#define PADLdown 16384
#define PADLleft 32768
#define PADLright 8192
#define PADLtriangle 16
#define PADLcircle 32
#define PADLcross 64
#define PADLsquare 128
#define PADLL1 4
#define PADLL2 1
#define PADLR1 8
#define PADLR2 2
#define PADLstart 2048
#define PADLselect 256
#define PADRup 268435456
#define PADRdown 1073741824
#define PADRleft 2147483648
#define PADRright 536870912
#define PADRtriangle 1048576
#define PADRcircle 2097152
#define PADRcross 4194304
#define PADRsquare 8388608
#define PADRL1 262144
#define PADRL2 65536
#define PADRR1 524288
#define PADRR2 131072
#define PADRstart 134217728
#define PADRselect 16777216
#endif //#ifndef TARGET_HW