diff options
author | Marcus Comstedt | 2004-03-13 15:26:36 +0000 |
---|---|---|
committer | Marcus Comstedt | 2004-03-13 15:26:36 +0000 |
commit | 3cf400ebddf25b020d9532353b29c79becc2914c (patch) | |
tree | 20088cc9e24508d6be057ae436d37291b57e7632 | |
parent | 60a7d376e2f3c4b0d557a07e953df5249729991d (diff) | |
download | scummvm-rg350-3cf400ebddf25b020d9532353b29c79becc2914c.tar.gz scummvm-rg350-3cf400ebddf25b020d9532353b29c79becc2914c.tar.bz2 scummvm-rg350-3cf400ebddf25b020d9532353b29c79becc2914c.zip |
Less strange.
svn-id: r13256
-rw-r--r-- | backends/dc/label.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/backends/dc/label.cpp b/backends/dc/label.cpp index 0a368c44ca..c9dab67edd 100644 --- a/backends/dc/label.cpp +++ b/backends/dc/label.cpp @@ -25,14 +25,20 @@ #include "label.h" -static void *get_romfont_address() -{ - void *ret; - __asm__("jsr @%1; mov #0,r1; mov r0,%0" : - "=r" (ret) : "r" (*(void **)0x8c0000b4) : - "pr", "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7"); - return ret; -} + +static void *get_romfont_address() __asm__(".get_romfont_address"); +__asm__("\ + \n\ +.get_romfont_address: \n\ + mov.l 1f,r0 \n\ + mov.l @r0,r0 \n\ + jmp @r0 \n\ + mov #0,r1 \n\ + .align 2 \n\ +1: .long 0x8c0000b4 \n\ + \n\ +"); + static void draw_char(unsigned short *dst, int mod, int c, void *font_base) { |