•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 401,465 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,070 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 573 | Replies: 2
![]() |
•
•
Join Date: May 2008
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
Anyone can guide me or send me links, or whatever helpful with the following project? Thank you
Materialise in symbolic language (assembly- MIPS) and execute in the SPIM, a program that would process unsigned
integer numbers of 64 bit. Each moment the program maintains stored the two unsigned integer (64 bit) Sum and Last
in the registered pairs ($s0>, $s1)=Sum and ($s2>, $s3)=Last ($s0 and $s2 store the higher 32 bit and $s1 and $s3
the lower 32 bit of Sum and Last respectively).
The Sum keeps the sum of numbers that has been added up to the given moment (initial price of Sum=0) and the Last
keeps the last number of 64 bit that has been given by the user.
The program should contain the following routines - subprograms:
<> read64 - Reading by the console of unsigned entire number and his storage in the pair of register price ($v0,
$v1). The reading by the console should become with string reading which then be changed in number of 64 bit and be
stored in the pair ($v0, $v1). Does all the controls of error (negative number - number that does not fit in 64 bit
- import of character that is not numerical digit).
<> print64 - Printing in the console of content of the 64 bit number that is found in the pair of registers $a0,
$a1.
<> accumulate64 - Addition of 64 bit numbers that find in the pairs ($a0, $a1) and ($a2, $a3) and storage of sum in
the pair ($v0, $v1) - in case of overflow the program print out message of error and are terminated. The user can
ask via one of simple menu of choices (you materialise as you wish) is executed one of following operations what
naturally will use the routines:
import of new unsigned number of 64 bit and storage in the Last .
printing of Last or Sum accumulation (accumulation) .the last valid Last that imported the user in the Sum .
finish the program .
Materialise in symbolic language (assembly- MIPS) and execute in the SPIM, a program that would process unsigned
integer numbers of 64 bit. Each moment the program maintains stored the two unsigned integer (64 bit) Sum and Last
in the registered pairs ($s0>, $s1)=Sum and ($s2>, $s3)=Last ($s0 and $s2 store the higher 32 bit and $s1 and $s3
the lower 32 bit of Sum and Last respectively).
The Sum keeps the sum of numbers that has been added up to the given moment (initial price of Sum=0) and the Last
keeps the last number of 64 bit that has been given by the user.
The program should contain the following routines - subprograms:
<> read64 - Reading by the console of unsigned entire number and his storage in the pair of register price ($v0,
$v1). The reading by the console should become with string reading which then be changed in number of 64 bit and be
stored in the pair ($v0, $v1). Does all the controls of error (negative number - number that does not fit in 64 bit
- import of character that is not numerical digit).
<> print64 - Printing in the console of content of the 64 bit number that is found in the pair of registers $a0,
$a1.
<> accumulate64 - Addition of 64 bit numbers that find in the pairs ($a0, $a1) and ($a2, $a3) and storage of sum in
the pair ($v0, $v1) - in case of overflow the program print out message of error and are terminated. The user can
ask via one of simple menu of choices (you materialise as you wish) is executed one of following operations what
naturally will use the routines:
import of new unsigned number of 64 bit and storage in the Last .
printing of Last or Sum accumulation (accumulation) .the last valid Last that imported the user in the Sum .
finish the program .
http://www.daniweb.com/forums/announcement125-2.html
You've posted your assignment, but nothing of what you've achieved so far.
Even if you think you're completely stuck, look back at previous assignments and course notes. At the very least, begin with something to use the provided functions to read an int, then just print it out again.
You've posted your assignment, but nothing of what you've achieved so far.
Even if you think you're completely stuck, look back at previous assignments and course notes. At the very least, begin with something to use the provided functions to read an int, then just print it out again.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
•
•
Join Date: May 2008
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
http://www.daniweb.com/forums/announcement125-2.html
You've posted your assignment, but nothing of what you've achieved so far.
Even if you think you're completely stuck, look back at previous assignments and course notes. At the very least, begin with something to use the provided functions to read an int, then just print it out again.
ok my friend. thank you
![]() |
•
•
•
•
•
•
•
•
DaniWeb Assembly Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- pseudo-random numbers; printing the number of even numbers between 0 and 10 (C++)
- converting numbers (C++)
- C++ Random Numbers (C++)
- Numbers (C++)
- Help in program (C++)
- Validating a double type variable to ensure it is an integer (C)
- adding numbers of binary output (C)
- special keys as inputs (Game Development)
Other Threads in the Assembly Forum
- Previous Thread: file problem
- Next Thread: Program to read a line and count occurence of each letter and punctuation



Linear Mode