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

RVOG emits wrong code for Texts.OpenWriter in RVOG.Mod #6

Open
sam-falvo opened this issue Feb 13, 2016 · 0 comments
Open

RVOG emits wrong code for Texts.OpenWriter in RVOG.Mod #6

sam-falvo opened this issue Feb 13, 2016 · 0 comments

Comments

@sam-falvo
Copy link

Last line of the module's body is:

    Texts.OpenWriter(W);
END RVOG.

This line emits the following code:

 00008060    03018413 : ADDI    8, 3, 48
 00008064    1FFFF825 : WORD    1FFFF825H
 00008068    00518493 : ADDI    9, 3, 5
 0000806C    1FF40026 : WORD    1FF40026H

Note the ADDI 9, 3, 5 line; the 5 is a byte offset from SB (which points into Texts). X9 in this case will hold the address of a type-descriptor, which are never allocated on odd boundaries like this.

What is not known: is this due to the compiler loading a .smb file from RISC5's code generator? This needs to be researched.

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