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

get instruction does not work, if address parameter is set via register #74

Closed
hunstree opened this issue May 2, 2024 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@hunstree
Copy link

hunstree commented May 2, 2024

Description:
get instruction does not work, if address parameter is set via register. According to the wiki, and stationeer manual, the address parameter may be passed via register.

Repro steps:
r1 register is not set to the value from stack address 0

poke 0 -666742878 #iron
move r0 0
get r1 db r0
#r1 is empty

if I replace r0 with the literal 10, then r1 is set to -666742878.

poke 0 -666742878 #iron
move r0 0
get r1 db 10
#r1 is -666742878

Expected behavior:
r1 is set to the value stored in stack at the referenced address as stated in wiki and manual
image

Screenshot:
image

Additional information
https://stationeers-wiki.com/MIPS#Stack

@Traineratwot Traineratwot added the bug Something isn't working label May 2, 2024
@Traineratwot Traineratwot self-assigned this May 2, 2024
@Traineratwot Traineratwot transferred this issue from Stationeers-ic/stationeers-code-simulator May 2, 2024
@Traineratwot
Copy link
Member

Traineratwot commented May 2, 2024

Fixed :)

@Aidan647
Copy link
Member

Aidan647 commented May 2, 2024

Thank you for this issue. Please feel free to open new issues on any matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants