Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to escape double quote in macro call #8

Open
gertk64 opened this issue Dec 12, 2024 · 0 comments
Open

How to escape double quote in macro call #8

gertk64 opened this issue Dec 12, 2024 · 0 comments

Comments

@gertk64
Copy link

gertk64 commented Dec 12, 2024

Hi,

Fiddling with the Zilog Z8 and the asl assembler I run into this problem:
(this is trying to assemble Z8671 tiny basic)

In the source there is this:

S14 BC PRNT, "\"" ; PRINT STRING (WITHOUT KEYWORD)

it errors out on assembly with:

> > >tb_il_z8671.asm(93) BC(6) DS7(1): error: number of opening/closing parentheses does not match

The macro itself looks like this:


;BC a "xxx"   80xxxxXx-9FxxxxXx  String Match Branch.
BC	macro	n, s
	if "n"="*"
	db	80h
	else
	db	80h + n - $ - 1
	endif
	ds7	s
	endm

Thanks in advance for your time.
Gert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant