Questions tagged [mips64]

118 questions
0
votes
0 answers

Trying to work strcpy in a linked list in mips

So I have created a linked list in which each node is 72 bytes with first 64 bytes for string, next 4 for integer and the last 4 for address in which the number are arranged in a sorted order. The first 64 bytes are reserved for the string and now I…
Paras Pandey
  • 37
  • 1
  • 4
0
votes
1 answer

Return to the caller function MIPS assembly

I've just started learning MIPS assembly and I can't figure out, how to conditionally return to the caller procedure. An example will make my question clearer. I have a procedure caller, which does something before calling multiply, I want this…
Misho Tek
  • 624
  • 2
  • 11
  • 22
0
votes
1 answer

Difference between store word,load word and move

I am new to mips assembly. I cant get what exactly those instructions do so I try to test it. This a code to switch values of the registers t0 and t1. # Perform swap. lw $t3, 0($t0) lw $t4, 0($t1) sw $t3, 0($t1) sw $t4,…
Ben Bitdiddle
  • 25
  • 1
  • 4
0
votes
0 answers

Writing load word without using load word instruction

I want to write .text main: lw $t2, c .data c: .word 1 without using lw, on mars I tried add $t2,$t2,c and also addi $t2,$t2,0($c) but they dont work How do I do this
Ben Bitdiddle
  • 25
  • 1
  • 4
0
votes
0 answers

How to expand the pseudocde la

How can I convert .text la $t2, b .data b: .word 1, 2, 3 into lui and ori? I use MARS assembler and I have tried: lui $t2, b ori $t2, $t2, b and lui $t2, 0($b) ori $t2, $t2, 0($b) but they did not work.
Ben Bitdiddle
  • 25
  • 1
  • 4
0
votes
1 answer

Symbolic machine instruction,Pseudo instruction difference

What is the difference between Symbolic machine instruction and Pseudo instruction? For example are li $t0,5 addi $t5,$t3,2 move $a0,$t0 symbolic machine instructions are pseudo instructions? Can you give examples of them?
Ben Bitdiddle
  • 25
  • 1
  • 4
0
votes
0 answers

Division in MIPS

im tasked with creating a code that calls a sub program. this is the sub program .data msg1: .asciiz "Enter 4 integers A,B,C,D respectively:\n" msg2: .asciiz "f_ten=" msg3: .asciiz "\nf_two=" msg4: .asciiz "\ng_ten=" msg5: .asciiz…
0
votes
1 answer

Trying to understand the SYSCALL 5 example, the order of the literals % placeholder is confusing

I'm learning MIPS64 and using EduMIPS64 simulator. I understand the instructions of the following example, I tried to execute it cycle after cycle but I don't get how the compiler knows which number or string matches to corresponding placeholder and…
Asaf
  • 107
  • 1
  • 12
0
votes
2 answers

Buildroot - menuconfig creates config, but won't make

I'm trying to use buildroot to create a cross-compiler toolchain for MIPS64 (little endian). I have run make menuconfig and have set the target to MIPS64 (little endian). Also I am being told that the config file has been generated and I can run…
0
votes
0 answers

floating point division in WinMips64

I am learning about pipelining in WinMips64 and in an example, I am trying to divide two floating point numbers. Before asking this question I searched thoroughly on Stackoverflow However, WinMIPS64 don't have much content on StackOverflow. So I…
0
votes
0 answers

Is there a formal way to return True or False in MIPS assembly language?

Or is printing 1 when a function evaluates to True and printing -1 when a function is false acceptable?
0
votes
1 answer

MIPS double point

I'm editing this program so it will print out values in double point precision format. I was told to use two words to define the numbers in the double precision format. However, that's not working. The result I get is 0.0, 0.0, 0.0, 0.0. What am I…
jdgo12
  • 59
  • 1
  • 4
0
votes
1 answer

How to calculate the remainder of a division in WinMIPS64

The MIPS ISA supports DIV, having the quotient stored in $LO and the remainder in $HI. However, WinMIPS64 does not appear to support the DIV operation, and instead has (for example) DDIV. From the documentation it remains unclear if DDIV only…
David
  • 453
  • 3
  • 7
  • 20
0
votes
1 answer

Does pf sense support mips architecture?

if so then how to cross compile it from src using build.sh script given at pf sense GitHub repository Any link to a related (cross compile pfsense for MIPS) documentation would be helpful
PI_ED
  • 59
  • 8
0
votes
0 answers

MIPS64 Error on line 1

This code is supposed to calculate the number e. And when I execute it in WinMips64 it gives me an error in line 1 that I am not able to see. Can you help me please? .data res: .float 1 rang: .float 10 i: .float 1 resultatactual: .float…
raultds
  • 23
  • 4