Generating a machine code using SPIM - hexdump

I have to do an assignment which consists of developing a simulator for MIPS instructions.
To test this simulator I need as inputs a code machine or a hedump code of an assembly file.
I tried to use SPIM on Linux but when I check the help menu I can t find the way to generate these kind of files.
Any suggestions or answers would be very appreciated.
Thanks in advance.

try this link it gonna help your needs for now, It always good to write your own test file
https://github.com/eliottwiener/MIPS-Simulator/blob/master/test.hexdump

Related

How do I change the pin mode on the BeagleBone Green?

I'm looking to set the mode to 7 for a lot of the pins since I need more GPIOs. I've tried downloading different python scripts from github to help with it, and I've also looked into using bonescript, but that's not working on my board. Any ideas are welcome.
Edit: the other question mentioned in the comments doesn't work for me. I tried the solution and I get to the point where you need to modify slots. Then, when I try to do that, it says operation no such file or directory

Integrate ffmpeg to unity via plugin OS X and Linux

I need to use a ffmpeg wrapper (so we can use it in unity) for a lecture.
Unfortunately the teachers only provide a solution to do this for Windows.
They are referring to https://github.com/Ruslan-B/FFmpeg.AutoGen which we should use to generate a wrapper for our OS.
That's where my problems begin: I have downloaded ffmpeg via macport, but I have no idea what to do next?
They only provide the following information:
Run dump-expots.cmd to create exports map Run
FFmpeg.AutoGen.CppSharpUnsafeGenerator;
All files with extension *.g.cs in FFmpeg.AutoGen project will be regenerated.
dump-expots.cmd is clearly not useable on other OS than Windows.
I and also many of my colleagues would be very grateful to get tips how to create the wrapper on OS X and Linux.
One of my colleagues found a solution based on an answer in the unity forum:
http://answers.unity3d.com/questions/23615/how-to-make-unity-find-dylib-files.html
The trick is to install ffmpeg (MacPort/Homebrew) and rename the *.dylib files to *.bundle.
It is a really strange solution but it seems to work. changing the format of a picture and encoding a video worked just fine.

How do I bring up the page where I write Python program, compile and run it, and see the output?

Sorry if my questions are extremely stupid, but I'm quite at a loss while trying to use Python from Ubuntu Linux. My friend installed the Pycharm for me. I can go without using any commands, to files-->Pycharm projects---> click on one project and see the files, which I can open.
But I'm lost as of how to compile and run the files and see the output at this step? The .py files saved before (written with hello world and some really simple ones) are opening, but how can I see the output?
Also, when I go to the programs by files-->Pycharm projects---> file1.py, file 2.py...etc., do we code and run them from the terminal, using the Linux features? If not, how can I do all of the coding and running from the terminal?
Many thanks!!!
I'm not sure what you mean but "how can I do all of the coding and running from the terminal?" you can use nano to edit to code and run the code on the terminal too
see this link to know more about nano : HERE

Create PDF reports on Linux

I'm facing the following situation at moment:
I need to generate a PDF report containing some parameters and graphs. I'm running a C daemon (on Arch Linux, Raspberry PI) which receives the data and should then generate such a report. My first version was using the library libharu and simply painted everything into the PDF.
This actually worked great but it's not a damn good solution, since I have to recompile the whole daemon if I want to change the style of the generated report.
I was thinking about using some kind of template, which I can load by my code and then render into the PDF. Does anyone know a library or something I could use for that?
I'm also open for other good ideas to solve my problem :-)

Matlab UI program works unproperly after deploytool

this is the first time I'm encountering this kind of issue.
I have a perfectly working code that runs without any issue under 3 different platforms (Win/Linux/OS X).
However after the deploytool compilation a part of it stops working. How can I get the error once the code is compiled!? It seems that it has some problems in loading and reading .mat files. Is that possible?
I hope someone can help me.
Thanks
edit:
I've solved the problem! Unfortunately was all addpath fault!
I have a lot of folders with files and functions that are needed for running the code, after the compilation matlab does a mess with all of that folders.
Good hint: do not use addpath for the compilation! Thank you anyway!
You can try to catch the error and write it to a text file. Or build in a check that prints text to the screen.
A bit more in general: You can try to isolate the part of the code that has the problem, and then basically cut out half of the functionality in this part repeatedly until you have exactly found the source of the error.

Resources