spim
spim simulator pcspim : error setting value at an address
Hi I am using spim simulator pcspim and I am trying to set a value at an address using the set value option under the simulator menu.[详细]
2023-04-09 18:30 分类:问答Accessing one character in a string
I am using something like SPIMS or MARS with syscall functions. I am reading in a string (and it works because I can print it out) as follows:[详细]
2023-04-08 22:27 分类:问答Reading an integer into a local variable in MIPS
How can I read an integer into a local varia开发者_如何学Pythonble in MIPS? The problem asks me to use the concept of assigning integer variables as local variables. (A question from my text book.)li[详细]
2023-03-25 15:08 分类:问答Converting Decimal to Binary and Printing in MIPS
I\'m writing a simple snippet of code for an assignment and I need to convert a decimal number to binary, octal, and hexadecimal. 开发者_运维知识库 I have it working, but I realized afterwards that be[详细]
2023-01-19 22:34 分类:问答ELF File Format
I\'m attempting to manually load the hexdump of an elf file that I compiled using g++ into a processor simulation I designed. There are 30 sections to a standard elf file and I am loading all 3开发者_[详细]
2023-01-04 06:53 分类:问答How can I convert hex string to binary?
My problem is getting a 64-bit key from user. For this I need to get 16 characters as string which contains hexadecimal characters (123456789ABCDEF). I got the string from user and I reached character[详细]
2023-01-01 01:53 分类:问答Declaring more than one SPIM array causes a syntax error
Below is the beginning of a chunk of SPIM code: .data a:.space20 b:.space20 .text set_all: sw $ra,0($sp) li $t0,0[详细]
2022-12-29 02:29 分类:问答MIPS (or SPIM): Loading floating point numbers
I am working on a little mini compiler while trying to learn some MIPS here.Here\'s my issue: MIPS has an instruction li (load immediate) which would work like this[详细]
2022-12-26 12:33 分类:问答C to MIPS translation
Trying to convert this c code into MIPS and run it in SPIM. int A[100], B[100]; for(i=1; i<100; 1++){[详细]
2022-12-21 06:31 分类:问答