From f05ec1b1da3b29a2ff82eec3bbf69b7fe4ffa4b6 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 25 Apr 2016 15:54:06 +0100 Subject: Further changes for 65c816 (still broken build) --- src/casm.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/casm.c') diff --git a/src/casm.c b/src/casm.c index 771a7e3..6733ad5 100644 --- a/src/casm.c +++ b/src/casm.c @@ -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 -- cgit v1.2.3