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

Allow label one line above the associated instruction #41

Open
srid opened this issue Dec 28, 2019 · 0 comments
Open

Allow label one line above the associated instruction #41

srid opened this issue Dec 28, 2019 · 0 comments

Comments

@srid
Copy link
Member

srid commented Dec 28, 2019

From https://opensourceforu.com/2011/08/gnusim8085-review/


The label line needs to be assigned at least a line of code. For example, if you do something like the following:

mvi c, 0ah
mvi b, 05h
xra a
loop:
add b
dcr c
jnz loop

The above code would not assemble, as the line with the label “loop” does not have any code. Either you have to move the ADD B to the “loop:” label line, or simply include a NOP beside the label “loop”.


It would be worthy supporting this syntax, as long as implementing it wouldn't break the semantics otherwise.

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

No branches or pull requests

1 participant