|
Nugget
Bare-metal libraries and examples for the original PlayStation
|
#include <stdint.h>#include "common/hardware/dma.h"#include "common/hardware/hwregs.h"#include "common/syscalls/syscalls.h"
Classes | |
| struct | IRes |
| struct | Arm |
Macros | |
| #define | T2_VALUE (*(volatile uint32_t *)0xbf801120) |
| #define | T2_MODE (*(volatile uint32_t *)0xbf801124) |
| #define | CHCR2 (*(volatile uint32_t *)0xbf8010a8) |
| #define | SPAD ((volatile uint32_t *)0x1f800000) |
| #define | BUSY 0x01000000u |
| #define | NWORDS 1024 |
| #define | LIMIT 200000u |
| #define | ALU_N 300 |
| #define | REPS 4 |
| #define | CHOP(dw, cw) (0x01000101u | ((dw) << 16) | ((cw) << 20)) |
Functions | |
| int | main (void) |
| #define ALU_N 300 |
| #define BUSY 0x01000000u |
| #define CHCR2 (*(volatile uint32_t *)0xbf8010a8) |
| #define CHOP | ( | dw, | |
| cw | |||
| ) | (0x01000101u | ((dw) << 16) | ((cw) << 20)) |
| #define LIMIT 200000u |
| #define NWORDS 1024 |
| #define REPS 4 |
| #define SPAD ((volatile uint32_t *)0x1f800000) |
| #define T2_MODE (*(volatile uint32_t *)0xbf801124) |
| #define T2_VALUE (*(volatile uint32_t *)0xbf801120) |
| int main | ( | void | ) |