megadrive_test1

view src/misc.c @ 6:862f8a034cae

expanding the megadrive code
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 11 Feb 2017 08:56:42 +0200
parents
children
line source
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include "misc.h"
5 void panic(const char *fmt, ...)
6 {
7 va_list ap;
9 printf("~~~~ panic ~~~~\n");
10 va_start(ap, fmt);
11 vprintf(fmt, ap);
12 va_end(ap);
14 /*printf("registers:\n");*/
16 halt_cpu();
17 }