Skip to content

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

@sam-falvo

Description

@sam-falvo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions