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

Assembler: duplicate labels in conditional IF...ELSE...ENDIF blocks + Fix #7

Open
Merilix opened this issue Apr 11, 2023 · 0 comments

Comments

@Merilix
Copy link

Merilix commented Apr 11, 2023

Example

test	equ	0
	org	100h
	ld	de,msg1
	ld	c,9
	call	5
	jp	0
	if	test
msg1	db	'Hello Test$'
	else
msg1	db	'Hello World$'
	endif

The assembler complain about double label msg1 but shouldn't.
This fix works for me:
In Z80Assembler.java method parseLine (line #672)
replace
if( labelName != null ) {
with
if( labelName != null && isAssemblingEnabled()) {

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