aboutsummaryrefslogtreecommitdiff
path: root/src/label.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-04-06 23:37:07 +0100
committerIan C <ianc@noddybox.co.uk>2016-04-06 23:37:07 +0100
commitd99a9070450157dd8fc3e5d6ad5172af4cc0be59 (patch)
tree55d0b494d0ea1d1df8df08fe9f95495a5b7acc98 /src/label.c
parentfdef5d70c1890c7970f31061184a73e699ccd9fb (diff)
Added ZX81 output driver
Diffstat (limited to 'src/label.c')
-rw-r--r--src/label.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/label.c b/src/label.c
index c15627f..75270ef 100644
--- a/src/label.c
+++ b/src/label.c
@@ -277,17 +277,17 @@ int LabelExpand(const char *expr, int *result)
{
found = ParseBase(expr + 1, 16, result, '\0');
}
- else if (last == 'h')
+ else if (last == 'h' || last == 'H')
{
- found = ParseBase(expr, 16, result, 'h');
+ found = ParseBase(expr, 16, result, last);
}
else if (first == '%')
{
found = ParseBase(expr, 2, result, '\0');
}
- else if (last == 'b')
+ else if (last == 'b' || last == 'B')
{
- found = ParseBase(expr, 2, result, 'b');
+ found = ParseBase(expr, 2, result, last);
}
else if (first == '\'' && last == '\'' && len == 3)
{