Skip to content

Commit 98389ce

Browse files
committed
more ASM parser improvements
1 parent 811b8d8 commit 98389ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

TODO

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ definition([
2020
])
2121

2222
// project files
23+
// check palette is loading correctly in s1
2324
// provide custom art function
2425

2526
/* https://unix.stackexchange.com/questions/585645/launch-an-application-by-a-double-click */

app/formats/scripts/parse-asm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const sizes = {
2323
export function parseASM(text) {
2424
const comment = regex(/^;.*$/m).map(() => [ignore]);
2525
const even = str('even').map(() => [ignore]);
26-
const label = regex(/^[A-Z0-9_@]+(\s+)?:/i).map(t => [lbl, t.replace(':', '')]);
26+
const label = regex(/^[A-Z0-9_@$.]+(\s+)?:/i).map(t => [lbl, t.replace(':', '')]);
2727
const hex = regex(/^\$[A-F0-9]+/i).map(t => [data, parseInt(t.slice(1), 16)]);
28-
const address = regex(/^[A-Z0-9_@]+-[A-Z0-9_@]+/i).map(t => [addr, t]);
28+
const address = regex(/^[A-Z0-9_@$.]+-[A-Z0-9_@$.]+/i).map(t => [addr, t]);
2929

3030
const value = choice([
3131
digits.map(t => [data, t]),

0 commit comments

Comments
 (0)