Part 1 Tasks: Week 4 IP Final Draft
What are the advantages of using Fixed-Length number representation in Assembly in contrast to JAVA? Explain, and give examples. Academic Essay
Key Assignment
Part 1 Tasks: Week 4 IP Final Draft
Using any national known computer manufacturer, finalize the outline of a computer configuration for your use. Incorporate feedback from the instructor and peer review into your final draft. Your outline should include the following:
Explain in detail why you chose that specific hardware. It should have the type and speed of the central processing unit (CPU), the hard disk type, memory, cache memory, and so forth.
You should have enough configuration details to explain how you came about the desired specifications.
You can access computer configuration worksheet you can use to help evaluate various computers which will be attached in the next instruction part.
Part 2 Tasks: Week 5
The Assembly code compilation may be challenging, but the program has to be saved and submitted through a Notepad++ document. You can download notepad++ if you do not have a current copy.
Click this link https://notepad-plus-plus.org/download/v6.6.3.html to download the Notepad++ software. After you download the Notepad++ editor, type in your code and save it.
Then it can be copied and pasted and run in an online compiler
Click this link http://www.tutorialspoint.com/codingground.htm to compile and execute assembly code.
———-
Added on 15.06.2016 17:54
Compile and execute the existing Assembly code on the left side of the screen. The following is the code that should be displayed: (Noncompliance, n.d.)
section .text
global _start ;must be declared for using GCC
_start: ;tell linker entry point
mob ed, Len ;message length
mob ex, MSG ;message to write
mob ex, 1 ;file descriptor (stout)
moonbeam, 4 ;system call number (says_write)
int 0x80 ;call kernel
moonbeam, 1 ;system call number (says_exit)
int 0x80 ;call kernel
section .data
MSG db “Hello, world!”,0xa ;our dear string
Unequal $ – MSG ;length of our dear string
When you click on the compile and execute button, the following results in the right screen will display:
Compiling main.as source code….
$Nazism -f elf main.as 2>&1
Linking the program….
$ls -m elf_i386 -s -o demo *o 2>&1
Executing the program….
$demo
Hello, world!
2. Modify the code to display the following four lines:
Hello, world!
CE 242 is an awesome and fun class!
CUTis a great University!
I love the USA!
Part 3 Tasks: Week 5
Convert the following binary code into ASCII Text. Please show your work and do not use an online converter.
01001001 00100000 01101100 01101111 01110110 01100101 00100000 01000011 01010100 01010101
Write your full name in Binary code separated in bytes. For example, the name of the president of the USA in binary code is
Barack Obama
01000010
01100001
01110010
01100001
01101011
00100000
01001111
01100010
01100001
01101101
01100001
Show your work.
What are the advantages of using Fixed-Length number representation in Assembly in contrast to JAVA? Explain, and give examples.
What are the benefits and drawbacks between assigning a real number and an integer in Assembly? Why do you need either or both? Give examples.
Compile this assembly code that uses arrays. (Tutorials point, n.d.)
section .text
global _start ;must be declared for linker (ls)
_start:
mob wax,3 ;number bytes to be summed
mobbed,0 ;EX will store the sum
mob-ex, x ;EX will point to the current element to be summed
top: add ex, [ex]
add ex,1 ;move pointer to next element
DEC-wax ;decrements counter
NZ top ;if counter not 0, then loop again
done:
add ex, “0”
mob[sum], ex ;done, store result in “sum”
display:
moved,1 ;message length
mobbed, sum ;message to write
mob ex, 1 ;file descriptor (stout)
moonbeam, 4 ;system call number (says_write)
int 0x80 ;call kernel
moonbeam, 1 ;system call number (says_exit)
int 0x80 ;call kernel
section .data
global x
x:
db 2
db 4
db 3
sum:
db 0
Change the program to display F as a sum of the array.
References
Compile online.com. (n.d.). Compile and execute assembly online (NAM version 2.10.07). Retrieved from http://www.compileonline.com/compile_assembly_online.php
Notepad++. (n.d.). Download Notepad++ 6.6.3. Retrieved from http://notepad-plus-plus.org/download/v6.6.3.html
Tutorials point. (n.d.). Assembly – Environment setup. Retrieved from http://www.tutorialspoint.com/assembly_programming/assembly_environment_setup.htm
Is this question part of your Assignment?
We can help
Our aim is to help you get A+ grades on your Coursework.
We handle assignments in a multiplicity of subject areas including Admission Essays, General Essays, Case Studies, Coursework, Dissertations, Editing, Research Papers, and Research proposals
Header Button Label: Get Started NowGet Started Header Button Label: View writing samplesView writing samples