diff options
author | Ian C <ianc@noddybox.co.uk> | 2016-04-25 15:54:06 +0100 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2016-04-25 15:54:06 +0100 |
commit | f05ec1b1da3b29a2ff82eec3bbf69b7fe4ffa4b6 (patch) | |
tree | 249ff512be84a699ae5f79e97aec150ace1fdc4c /src/casm.c | |
parent | 6ca71dd7a7f10fa6857f1a1bc586059cd78e275a (diff) |
Further changes for 65c816 (still broken build)
Diffstat (limited to 'src/casm.c')
-rw-r--r-- | src/casm.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -151,6 +151,15 @@ static CommandStatus ORG(const char *label, int argc, char *argv[], CMD_ARGC_CHECK(2); CMD_EXPR(argv[1], result); + /* See if a bank was added + */ + if (result > 0xffff) + { + int bank = (result >> 16); + SetAddressBank(bank); + result &= 0xffff; + } + SetPC(result); /* If there was a label, set that as well |