aboutsummaryrefslogtreecommitdiff
path: root/src/casm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/casm.c')
-rw-r--r--src/casm.c9
1 files changed, 9 insertions, 0 deletions
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