make emusd.prg work again

This commit is contained in:
Markus Fröschle
2013-05-04 21:09:23 +00:00
parent 375f1235af
commit b144b1263b
2 changed files with 3 additions and 4 deletions

View File

@@ -18,8 +18,7 @@ APP=$(EMUSD).prg
all: $(APP)
SOURCES=$(EMUSD).c \
cookie.c \
xhdi.c
cookie.c
OBJECTS=$(SOURCES:.c=.o)

View File

@@ -47,13 +47,13 @@ cookie_fun bas_sd_vector(cookie_fun old_vector)
{
register long retvalue __asm__("d0");
__asm__ __volatile(
__asm__ __volatile__(
"move.l %[retvalue],-(sp)\n\t"
"trap #0\n\t"
"addq.l #4,sp\n\t"
: [retvalue]"=r"(retvalue)
: "g"(old_vector)
:
: "d1","d2","d3","a0","a1","a2"
);
return retvalue;
}