Questions tagged [mips64]
118 questions
0
votes
1 answer
How to know whether address is virtual or physical?
Is there any way to know whether the address is physical or virtual if address length of virtual is equal to physical,like 64-bit.
For example, my mips processor is 64 bit and it is using 4GB of virtual memory.

Chinna
- 3,930
- 4
- 25
- 55
0
votes
1 answer
Is there any simple way or macro to load 64bit address into mips64 GPR
I want to load 64 bit address into MIPS64 General Purpose Register(GPR). I can do it by
lui $at, LabelAddr[63:48]
ori $at, $at, LabelAddr[47:32]
sll $at, 16
ori $at, $at, LabelAddr[31:16]
sll $at, 16
ori $at, $at, LabelAddr[15:0]
But, Is there any…

Chinna
- 3,930
- 4
- 25
- 55
0
votes
1 answer
How to print an array at the WinMips64?
How can I print an array in Mips64? I've succeeded in printing the array in QtSPIM (MIPS32), with this code:
.data
array: .word 10 20 30 40 50
.text
#load base address of array
la $t1,array
#load number of elements
ld $t2,num
loop:
#load…

Chris
- 3,619
- 8
- 44
- 64
0
votes
1 answer
How to return a value to a label in MIPS64?
If I had an immediate value like:
.data
sum: .word 0
made some calculations in the code, and wanted to put the result back into "sum" in main memory, how would I do that? I've been going over the manual for the command, but I must not be…

twoxmachine
- 517
- 2
- 7
- 16
0
votes
2 answers
Convert C to MIPS64 Assembly
I have written some code in C and need to convert this to MIPS 64, with and without optimisation. I have been trying to convert this with gcc but this converts it to x86 which is far more complex. Furthermore, I have been trying to find a cross…

Alex van Rijs
- 803
- 5
- 17
- 39
0
votes
1 answer
the set of all bit patterns that can be placed in a desired register using a single instruction
Given the following set of MiniMIPS instructions:
Load upper immediate
Add
Subtract
Set less than
Add immediate
Set less than immediate
Add
OR
XOR
NOR
AND immediate
OR immediate
XOR immediate
Load word
Store word
In MiniMips instructions, It's…

Traveling Salesman
- 2,209
- 11
- 46
- 83
-1
votes
1 answer
How would I write a MIPS behavioral simulator for the machine code created using the assembler code provided?
This MIPS simulator will read in a text file consisting of LC3100 machine code instructions (represented as decimal values), and execute the program, then display the values of register files and memory after each instruction is completed.
I do not…
-1
votes
1 answer
Is there any way to create a counter by self-modifying in MIPS?
I want to create a subroutine like this:
first time call: return 0
second time call: return 1
third time call: return 2
...
but we should not use register and memory to save the current number. we have to solve this by changing the code…

mh hssoleyman
- 1
- 3
-1
votes
1 answer
replace "and" with shift and rotate registers with the result and input staying the same
.text
.globl __start
__start:
li $t1,9
li $t2,7
addi $t1,$t1,3
addi $t2,$t2,3
li $t3,0xFFFFFFFF
srl $t3,$t3,$t1
sll $t3,$t3,$t1
sll $t3,$t3,$t2
srl $t3,$t3,$t2
not $t3,$t3
li…

Cons
- 1
-1
votes
1 answer
Substring question on mips assembly language
Please help as soon as possible...
Write a MIPS assembly language program that prompts the user to input two strings (each should be no longer than 50 characters including the null terminator). Your program should determine whether the second string…
-1
votes
1 answer
GCD in MIPS assembly
I am having trouble with getting this code to work 100% correctly. If the user enters a larger number as the first number, then the program gives the correct Greatest Common Denominator.
However, If a Smaller number is entered at first, then the…

JustHuman
- 1
- 1
- 3
-2
votes
1 answer
How many cycles will it take to execute in Single Cycle datapath
add $s1, $s2, $s3
add $s5, $s2, $s3
sub $s3, $s3, $s2
lw $s2, 100 ($s3)
How many cycles will it take to execute above mips code in single cycle datapath..?

user3326613
- 17
- 3
-5
votes
1 answer
Can anyone help explain me the answers to this mips question?
Given the following MIPS assembly program:
data
byte 2
word 9 10 17 18 20 22
word 4 8
-text
global
start
la Ss0, h
la Ssl, 6 (Ss0)
la $s2, s 1w $s3, -20 (Ss2)
sub $s4, $s2, $s3
li Svo, 10
syscall
(editor's note: this is not an…

Adwaith Rajeev
- 69
- 5