diff --git a/src/stub/Makefile b/src/stub/Makefile index 14c1fce7..89f18c00 100644 --- a/src/stub/Makefile +++ b/src/stub/Makefile @@ -80,7 +80,6 @@ APP_I386 = perl -w $(srcdir)/scripts/app_i386.pl BIN2H = perl -w $(srcdir)/scripts/bin2h.pl BRANDELF = perl -w $(srcdir)/scripts/brandelf.pl O2BIN = perl -w $(srcdir)/scripts/o2bin.pl -##SETFOLD = /bin/sh $(srcdir)/scripts/setfold.sh ##STRIPELF = perl -w $(srcdir)/scripts/stripelf.pl STRIPELF = ./util/sstrip/sstrip @@ -94,25 +93,23 @@ CC_LINUX = gcc -Os -march=i386 -mcpu=i386 -malign-functions=0 -malign-jumps=0 # Specifying -mcpu=i586 inhibits use of 'leave', which costs 2 bytes per subr #CC_LINUX = gcc -Os -march=i386 -mcpu=i586 -malign-functions=0 -malign-jumps=0 -malign-loops=0 $(CC_LINUX_CFLAGS) +# Motorola 68000 +CPP_M68K = gcc -I$(UCL_UPX) -I$(srcdir) -E -x assembler-with-cpp -Wall -Wp,-P,-C,-traditional +APP_M68K = perl -w $(srcdir)/scripts/app_m68k.pl ifeq (1,1) -# Preprocessor for the a68k 68000-assembler. -CPP_M68K = gcc -I$(UCL_UPX) -E -x assembler-with-cpp -Wall -Wp,-P,-C,-traditional -D__A68K__ -##CPP_M68K = cpp -I$(UCL_UPX) -x assembler-with-cpp -P -C -traditional -nostdinc -D__A68K__ -APP_M68K = perl -w $(srcdir)/scripts/app_m68k.pl -ASM_M68K = a68k -q -x + # a68k 68000-assembler + CPP_M68K += -D__A68K__ + ASM_M68K = a68k -q -x else -# Preprocessor for the asl 68000-assembler. -CPP_M68K = gcc -I$(UCL_UPX) -E -x assembler-with-cpp -Wall -Wp,-P,-C,-traditional -D__ASL__ -APP_M68K = perl -w $(srcdir)/scripts/app_m68k.pl -ASM_M68K = sh $(srcdir)/scripts/asl_m68k.sh + # asl 68000-assembler + CPP_M68K += -D__ASL__ + ASM_M68K = sh $(srcdir)/scripts/asl_m68k.sh endif # MIPS R3000 CPP_MR3K = gcc -I$(UCL_UPX) -I$(srcdir) -E -x assembler-with-cpp -Wall -Wp,-P,-C,-traditional APP_MR3K = perl -w $(srcdir)/scripts/app_mr3k.pl ASM_MR3K = asm5900 --nologo -q -#APP_MR3K = perl -w $(srcdir)/scripts/app_mr3k.pl -#ASM_MR3K = asm5900 --nologo -q -I$(UCL_UPX) -I$(srcdir) # /*********************************************************************** diff --git a/src/stub/l_ps1.asm b/src/stub/l_ps1.asm index 9ffc6511..a4f10dd8 100644 --- a/src/stub/l_ps1.asm +++ b/src/stub/l_ps1.asm @@ -30,7 +30,7 @@ ; -#include "mr3k/macros.ash" +#include do_regs MACRO _w _w at,0(sp) @@ -104,13 +104,13 @@ copyloop: ; __PSXDECO0__ ; __PSXDECOZ__ ; __PSXN2BD0__ -#include "mr3k/n2b_d.ash" +#include ; __PSXN2BDZ__ ; __PSXN2DD0__ -#include "mr3k/n2d_d.ash" +#include ; __PSXN2DDZ__ ; __PSXN2ED0__ -#include "mr3k/n2e_d.ash" +#include ; __PSXN2EDZ__ diff --git a/src/stub/l_tos.s b/src/stub/l_tos.s index 368598b9..df37c858 100644 --- a/src/stub/l_tos.s +++ b/src/stub/l_tos.s @@ -470,11 +470,11 @@ cutpoint: #define d2 D3 #if defined(NRV2B) -# include "m68k/n2b_d.ash" +# include #elif defined(NRV2D) -# include "m68k/n2d_d.ash" +# include #elif defined(NRV2E) -# include "m68k/n2e_d.ash" +# include #else # error #endif