Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the machine code from Mars simulator

I have written a MIPS assembly program with Mars simulator and I want to save every instruction address and machine code in a file, I know that Mars simulator does this work in "Execute" section, How can I get a copy of these in a file? And if it is not possible, are there any websites that do the same thing and provide machine code?

I mean I want to have a copy of the following part:

enter image description here

like image 219
b.j Avatar asked Mar 28 '26 04:03

b.j


1 Answers

It's quite simple.
First Assemble your code, then click the button dump the machine code or data in available format. Or just simply press Ctrl+D to save the dump file.
enter image description here

then you can chose Text/Data Segment Window
enter image description here
Store the file, then you exactly what you want.
enter image description here

like image 194
Oasis Avatar answered Mar 29 '26 22:03

Oasis