1whatleytay / saturn

A modern MIPS interpreter and assembler.
MIT License
32 stars 5 forks source link

Allow for .word directive to store the address of a label #3

Closed armonjam closed 1 year ago

armonjam commented 1 year ago

Hello! I've been using Saturn for my Csc258 project this semester and it's AMAZING. Thank you for freeing us from MARS hell. I'm trying to use virtual lookup tables for functions, and also state logic, things that would require me to store a pointer to a function. I believe this is not currently supported. The syntax of a possible implementation may look something like this:

Screenshot 2023-03-22 045751

I believe this would be useful for many other OOP purposes. Thanks again for this awesome software!!

1whatleytay commented 1 year ago

Hey! I just saw this right about now- thanks for filing this! This is totally doable with the current assembler setup. I've gone ahead and implemented this in 0.1.5 latest.

Screenshot 2023-03-23 at 9 16 57 PM

When you have a chance, can you redownload the latest pre-release build and give it a try https://github.com/1whatleytay/saturn/releases/tag/app-v0.1.5

armonjam commented 1 year ago

Works perfectly, been using it for 2 days with no issues :) thank you so much!

1whatleytay commented 1 year ago

Closing with the release of v0.1.5