Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
1
0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for shahab03

I have written a program that multiplies 2 decimals. My multiplication output is fine. However I would like to do multiplication by passing in two parameters via command line. So far e.g. lets say if I just put '3 4' in the command line without the quotes.. nothing happens... however …

Member Avatar for wildgoose
0
3K
Member Avatar for shahab03

I need to write a MIPS program will let the user to enter strings one per line representing valid decimal integers in the range 0 to 999999999999. I need to use 64 bits for each integer. and use some method to convert ascii to integer. here is an example that …

Member Avatar for shahab03
0
83
Member Avatar for shahab03

what is READ_FLT? any thoughts on the question? If a program employs a READ_FLT syscall to input the floating point value 999999999999.0, by how much would the value returned by the syscall differ from the actual value typed in? Explain the error, if any.

Member Avatar for wildgoose
0
110
Member Avatar for shahab03

anyone got any idea how does the CPU determines which register should receive the result produced by an instruction? thanks

Member Avatar for shahab03
-1
60
Member Avatar for shahab03

here is an example of floating point representation ... I am unable to understand whats going on. book isnt much help except that I know the bias part and that the matissa is 23 bit and exponent is 8 bits. however I don't understand how the conversion is being done …

0
55
Member Avatar for shahab03

Write a main program for the MIPS machine that uses syscall to repeatedly prompt the user to enter strings one per line representing valid decimal integers in the range 0 to 999999999999. Use 64 bits for each integer. Valid strings may only contain the characters ‘0’ through ‘9’. All strings …

0
48
Member Avatar for shahab03

so i have this following code which does this simple thing in mips mult $t0, $t1 $t0 = -763 $t1 = 29 when I move the values from hi and lo registers to $t2 and $t3 i get following values for each $t2 = -1 and $t3 = -22127 is …

Member Avatar for wildgoose
0
60
Member Avatar for shahab03

hi.. can someone help me with this question Write down a sequence of instructions that would implement the synthetic instruction addd $t0,$t2 to produce a double precision sum (i.e. 64-bit sum) of two unsigned 64-bit integers. The first 64-bit integer is in the register pair $t0 and $t1, while the …

Member Avatar for shahab03
0
96
Member Avatar for shahab03

I have following code which reverses any input provided using recursion. I am trying to understand what each line of code does. so I can have a better understanding. so I have some questions, wondering if someone can help me understand whats happening in the code. I have commented each …

Member Avatar for wildgoose
0
164
Member Avatar for shahab03

I am trying to do towers of hanoi recursively below is the code. my problem is that i am not getting out of the cycle at the right time so code keeps on running... can someone tell me what I may be doing wrong? [CODE] .data msg0: .asciiz "Enter number …

0
46
Member Avatar for shahab03

I believe I can read string using li $v0, 8 syscall how can I take what was read and check if it was a specific value. e.g. if input was Y then jump to loop label. if it was N then jump to exit label. thanks

Member Avatar for wildgoose
-1
118
Member Avatar for shahab03

I have write a assembly program using SPIM simulator. Wondering if someone can guide me on how to start on this. Program will take number from 1 to 365 as input and print month and date. For example you input: 2 program will say : its January 2 if your …

Member Avatar for wildgoose
-1
100
Member Avatar for shahab03

so here is what my program does Please enter a number: (lets say I enter 5 store in $01) Please enter a another number: lets say I enter 3 (store in $s02 next condition is beq $s01,$s02, end bne $s01,$s02, loop and loop needs to provide user upto five opportunites …

Member Avatar for shahab03
0
68
Member Avatar for shahab03

hi there.. wondering if someone can provide me a sample that takes a number from the console as user input and prompts the user to enter another number. if the second number matches the first one then prints something if not then let the user try for another 5 times.

Member Avatar for wildgoose
0
30