forked from pdewacht/project-norebo
-
Notifications
You must be signed in to change notification settings - Fork 3
RVOG emits wrong code for Texts.OpenWriter in RVOG.Mod #6
Copy link
Copy link
Open
Description
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 1FF40026HNote 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels