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) all: $(APP)
SOURCES=$(EMUSD).c \ SOURCES=$(EMUSD).c \
cookie.c \ cookie.c
xhdi.c
OBJECTS=$(SOURCES:.c=.o) OBJECTS=$(SOURCES:.c=.o)

View File

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