diff options
author | Ian C <ianc@noddybox.co.uk> | 2016-05-12 15:28:32 +0100 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2016-05-12 15:28:32 +0100 |
commit | 5e6a1c3434b96ea16485b160c25732df3b00b2b8 (patch) | |
tree | c86331cb1c74fbff18a8b7ef0ebd5989a0a1f182 /src/libout.c | |
parent | e60cc5a36c148ef5ea0e38bcc848cf32f2b54a18 (diff) |
Started on SPC700
Also:
* Added offset to import command. Realised fairly useless, but may as well
keep it.
* Added setting of address space size to state for PC.
Diffstat (limited to 'src/libout.c')
-rw-r--r-- | src/libout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libout.c b/src/libout.c index f9ca74f..000b7a9 100644 --- a/src/libout.c +++ b/src/libout.c @@ -117,7 +117,7 @@ int LibOutput(const char *filename, const char *filename_bank, } -int LibLoad(const char *filename, LibLoadOption opt, +int LibLoad(const char *filename, LibLoadOption opt, int offset, char *error, size_t error_size) { char magic[CASM_LIBRARY_MAGIC_LEN + 1] = {0}; @@ -163,7 +163,7 @@ int LibLoad(const char *filename, LibLoadOption opt, fread(buff, 1, len, fp); - SetPC(min); + SetPC((min + offset)); p = buff; if (opt != LibLoadLabels) @@ -180,7 +180,7 @@ int LibLoad(const char *filename, LibLoadOption opt, if (opt != LibLoadMemory) { - LabelReadBlob(fp); + LabelReadBlob(fp, offset); } fclose(fp); |