More work on m68k.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-08-24 20:48:09 +02:00
parent 0de32a5edc
commit 59283d1164
12 changed files with 1205 additions and 2500 deletions
+8 -17
View File
@@ -35,17 +35,7 @@
#include "linker.h"
static const
#include "stub/m68k-atari.tos-nrv2b.h"
static const
#include "stub/m68k-atari.tos-nrv2b.small.h"
static const
#include "stub/m68k-atari.tos-nrv2d.h"
static const
#include "stub/m68k-atari.tos-nrv2d.small.h"
static const
#include "stub/m68k-atari.tos-nrv2e.h"
static const
#include "stub/m68k-atari.tos-nrv2e.small.h"
#include "stub/m68k-atari.tos.h"
// #define TESTING
@@ -89,17 +79,18 @@ int PackTos::buildLoader(const Filter *ft)
const unsigned char *p = NULL;
size_t l = 0;
p = nrv_loader;
if (M_IS_NRV2B(ph.method)) {
p = opt->small ? nrv2b_loader_small : nrv2b_loader;
l = opt->small ? sizeof(nrv2b_loader_small) : sizeof(nrv2b_loader);
// p = opt->small ? nrv2b_loader_small : nrv2b_loader;
// l = opt->small ? sizeof(nrv2b_loader_small) : sizeof(nrv2b_loader);
}
if (M_IS_NRV2D(ph.method)) {
p = opt->small ? nrv2d_loader_small : nrv2d_loader;
l = opt->small ? sizeof(nrv2d_loader_small) : sizeof(nrv2d_loader);
// p = opt->small ? nrv2d_loader_small : nrv2d_loader;
// l = opt->small ? sizeof(nrv2d_loader_small) : sizeof(nrv2d_loader);
}
if (M_IS_NRV2E(ph.method)) {
p = opt->small ? nrv2e_loader_small : nrv2e_loader;
l = opt->small ? sizeof(nrv2e_loader_small) : sizeof(nrv2e_loader);
// p = opt->small ? nrv2e_loader_small : nrv2e_loader;
// l = opt->small ? sizeof(nrv2e_loader_small) : sizeof(nrv2e_loader);
}
initLoader(p, l);