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

PC_REL without label #27

Open
nikolapeja6 opened this issue Aug 24, 2017 · 0 comments
Open

PC_REL without label #27

nikolapeja6 opened this issue Aug 24, 2017 · 0 comments

Comments

@nikolapeja6
Copy link
Owner

PC_REL without label

Overview

There is a problem with PC_REL addressing when there is no label. As there is no label, there is no relocation, but there needs to be, as the final value of the PC (after loading) is unknown.

Example

LOAD R1, $5 ; there is no label, but the PC_SECTION should be subtracted from the final offset

Solution

This should be reported as an ERROR.

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