projects
/
gba_blender
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
suzanne
[gba_blender]
/
src
/
debug.c
1
#include <stdio.h>
2
#include <stdarg.h>
3
#include "debug.h"
4
5
__attribute__((target("arm")))
6
void emuprint(const char *fmt, ...)
7
{
8
char buf[128];
9
va_list arg_list;
10
11
va_start(arg_list, fmt);
12
vsnprintf(buf, 128, fmt, arg_list);
13
va_end(arg_list);
14
15
__asm__ __volatile__(
16
"mov r0, %0\n\t"
17
"swi 0xff0000\n\t" :
18
: "r" (buf)
19
: "r0"
20
);
21
}