This is my last resort, I can't find my professor and my TA is an a-hole. So if you know the solution, please help me. I was given following data statements: .data Data: .word 8,127,983,16000,65537 Value: .byte 255,128,64,32,5 And I'm suppose to write an MIPS assembly program which displays the sum of "Data" and sum of "Value". But I have no idea how to load those vaules into the registers.(I can't change those data statements.) Any help would be appreciated.
i did a course last term called digital logic 2, where i learned DECE assembly language. is that the same? .EQU Datasum R1 .EQU Valuesum R0 .EQU i R2 .EQU j R3 .EQU Temp3 R4 here: ADDL i, NULL, 0 ADDL Datasum, NULL, 0 here1: ADDL Datasum, Datasum, Data(i) ADDL i, i, 1 SUBL NULL, i, 5 JMPLTU here1 JMP here pretty much the same with the other sum
Yeah I'm in an Assembly course right now (319K for you UT EE kids) but as of now we haven't done output to the screen, I dunno if the microcontroller that we're working with is capable of that.... and I have no idea what MIPS is.... so I'm no help...
Sorry I took Assembly using X86, but i probably wouldn't help you in either case. it's been over 5 years.
Oh man, assembly language sucks.. Luckily when we worked with the 8051 Micro-controller we used the micro-c language for the most part.. I would suggest asking here: http://groups-beta.google.com/group/comp.arch.embedded Thats where I found alot of help regarding assembly and micro-p
Well, I took care the first part, but having trouble with the .byte values, I can't located their address.
Yuck...that brings back some bad memories. I question why they still teach assembly language other than to torture students. I guess it is still used somewhere out there. I had to write my own assembly language in one of the more advanced courses back in the day. Damned if I can remember a thing about it, though.
Wow, this does bring back some memories. I took Mac assembly back in 1995. The only thing I vaguely remember is something about how the Motorola chip is big endian, while the x86 is little endian. Or maybe it was the other way around. Either way, who cares? Man, that class sucked. Good luck.
Yeah... the crappy thing about assembly is that it's heavily dependent on the architecture. Unfortunately, I've never done anything with MIPS.