dreamcast/example/interrupt.cpp
Zack Buhman 3338b611c1 aica: initial working example
This plays 10 seconds of PCM audio via the AICA ARM CPU.
2024-02-29 16:51:25 +08:00

18 lines
210 B
C++

#include <cstdint>
#include "serial.hpp"
#include "sh7095.hpp"
#include "sh7095_bits.hpp"
void main()
{
uint32_t vbr;
asm ("stc vbr,%0" : "=r" (vbr));
serial::integer<uint32_t>(vbr);
while (1);
}