How do you print an image in mips?

  • Thread starter Thread starter cjj
  • Start date Start date
  • Tags Tags
    Image Mips
AI Thread Summary
Printing an image in MIPS assembly is significantly different from printing basic data types like pixels or integers due to the low-level nature of MIPS, which lacks built-in APIs for image handling. The discussion highlights the need for clarity regarding the specific printing goals, such as whether the program should be compatible with various printer brands or focused on a specific one. Resources suggested include exploring Postscript conversion programs and studying HP Printer Command Language for more advanced printing tasks. The user expresses a desire for code examples and guidance on outputting bitmap images in the console using MIPS assembly. Overall, the complexity of printing images in MIPS requires a deeper understanding of both the language and the printing process.
cjj
Messages
2
Reaction score
0
hi guys I have been having a bit of trouble with this one and I am a bit all over the place. I know the things like setting up pointers, 2-d array, reserving stack frame space, having offsets. but is printing an image very different from printing a pixel or printing an integer? Also if I need to show some sort of code for this let me know and I wwill attempt it.

I'm really a newbie at it, any other helpful resources aimed at printing bitmap images are welcome.
 
Technology news on Phys.org
It depends on your operating system. Windows has all the tools and APIs necessary (but the last time I looked, the basic documentation filled 5 thick books). I do not know about Linux, but I think you want to study the Trolltech libraries. Android - I haven't a clue.
 
cjj said:
I'm really a newbie at it, any other helpful resources aimed at printing bitmap images are welcome.

You should explain the goal more clearly. Do you want to print an image only on a particular brand of printer? Or do you want a brand-independent program?

Glancing at the web, there are various programs that convert bitmap images to Postscript. You could use various programs that handle Postscript to print the images. If your goal is to write a program that handles all the details, you could study HP Printer Command Language. http://en.wikipedia.org/wiki/Printer_Command_Language
 
hi sorry for not explaining i just want a code a program to output a bitmap image in the console for mips assembly like qtspim. but having diifficulty finding the guidelines to do this.
 
cjj said:
hi guys I have been having a bit of trouble with this one and I am a bit all over the place. I know the things like setting up pointers, 2-d array, reserving stack frame space, having offsets. but is printing an image very different from printing a pixel or printing an integer?
Yes, it's very different. MIPS is a very low -level programming language that doesn't even have an API that I'm aware of for printing something even as simple as a text file. let alone a bitmap image.
cjj said:
Also if I need to show some sort of code for this let me know and I wwill attempt it.

I'm really a newbie at it, any other helpful resources aimed at printing bitmap images are welcome.
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
I am trying to run an .ipynb file and have installed Miniconda as well as created an environment as such -conda create -n <env_name> python=3.7 ipykernel jupyter I am assuming this is successful as I can activate this environment via the anaconda prompt and following command -conda activate <env_name> Then I downloaded and installed VS code and I am trying to edit an .ipynb file. I want to select a kernel, via VS Code but when I press the button on the upper right corner I am greeted...
Back
Top