SummerCart64/fw/btldr/btldr.c
Polprzewodnikowy 0db5e5c59f nice
2021-08-15 21:49:02 +02:00

18 lines
338 B
C

#include "btldr.h"
int reset_handler (void) {
io8_t pointer = &RAM;
while (!(USB_SR & USB_SR_TXE));
USB_DR = '>';
while (1) {
if (USB_SR & USB_SR_RXNE) {
*pointer++ = USB_DR;
}
if ((uint32_t)pointer == (24 * 1024)) {
__asm__("call 0");
}
}
}