Skip to content

Commit

Permalink
made @foo.bar work when bar is a label
Browse files Browse the repository at this point in the history
  • Loading branch information
totalspectrum committed Dec 24, 2023
1 parent 2321846 commit 263772f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.txt
Expand Up @@ -3,6 +3,7 @@ Version 6.8.0
- Added locking for host file system I/O
- Added `--compress` flag to compress binaries (courtesy of Ada)
- Fixed incorrect inline assembly for `#outb` and other hw registers
- Made `@foo.bar` work when `bar` is a label
- Supported PNut v43 `{Spin2_vNN}` version comments

Version 6.7.2
Expand Down
3 changes: 3 additions & 0 deletions backends/asm/outasm.c
Expand Up @@ -4049,6 +4049,9 @@ doGetAddress(IRList *irl, AST *expr, bool isField)
res = GetLea(irl, tmp);
} else if (sym->kind == SYM_FUNCTION) {
CompileGetFunctionInfo(irl, expr, NULL, NULL, &res, NULL);
} else if (sym->kind == SYM_LABEL) {
Operand *tmp = LabelRef(irl, sym);
res = GetLea(irl, tmp);
}
}
if (!res) {
Expand Down

0 comments on commit 263772f

Please sign in to comment.