Build a computer online and compile assembly code

[ad_1]

  

Part 1: 1–2 pages; Part 2: 1–2 pages

Part 1 Tasks: Week 4 IP Final Draft

Using any national known computer manufacturer, finalize the outline of a computer configuration for your use. 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.
  • Click here (http://notepad-plus-plus.org/download/v6.6.3.html)      for a computer configuration worksheet you can use to help evaluate      various computers.

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 here 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 here (http://www.compileonline.com/compile_assembly_online.php) to compile and execute assembly code.

  1. Compile and execute the existing      Assembly code on the left side of the screen. The following is the code      that should be displayed: (Complineonline, n.d.) 

section .text

global _start ;must be declared for using gcc

_start: ;tell linker entry point

mov edx, len ;message length

mov ecx, msg ;message to write

mov ebx, 1 ;file descriptor (stdout)

mov eax, 4 ;system call number (sys_write)

int 0x80 ;call kernel

mov eax, 1 ;system call number (sys_exit)

int 0x80 ;call kernel

section .data

msg db ‘Hello, world!’,0xa ;our dear string

len equ $ – 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.asm source code….
$nasm -f elf main.asm 2>&1

Linking the program….
$ld -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!

CTU is a great University!

I love the USA!

Part 3 Tasks: Week 5

  1. 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

Barak Obama

01000010

01100001

01110010

01100001

01101011

00100000

01001111

01100010

01100001

01101101

01100001

Show your work.

  1. What are the advantages of using      Fixed-Length number representation in Assembly in contrast to JAVA?      Explain, and give examples.
  2. 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.
  3. Compile this assembly code that uses      arrays. (Tutorialspoint, n.d.)

section .text

global _start ;must be declared for linker (ld)

_start:

mov eax,3 ;number bytes to be summed

mov ebx,0 ;EBX will store the sum

mov ecx, x ;ECX will point to the current element to be summed

top: add ebx, [ecx]

add ecx,1 ;move pointer to next element

dec eax ;decrement counter

jnz top ;if counter not 0, then loop again

done:

add ebx, ‘0’

mov [sum], ebx ;done, store result in “sum”

display:

mov edx,1 ;message length

mov ecx, sum ;message to write

mov ebx, 1 ;file descriptor (stdout)

mov eax, 4 ;system call number (sys_write)

int 0x80 ;call kernel

mov eax, 1 ;system call number (sys_exit)

int 0x80 ;call kernel

section .data

global x

x:

db 2

db 4

db 3

sum:

db 0

Click here to compile and execute assembly code.

Change the program to display F as a sum of the array.

References

Compileonline.com. (n.d.). Compile and execute assembly online (NASM 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

Tutorialspoint. (n.d.). Assembly – Environment setup. Retrieved from http://www.tutorialspoint.com/assembly_programming/assembly_environment_setup.htm

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Australia Assessments
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Business and administrative studies
As I expected.
Customer 460551, December 15th, 2021
Statistics
super professional
Customer 462485, May 17th, 2022
Business and administrative studies
Always format your paper as instructed.
Customer 458115, April 7th, 2022
Business and administrative studies
Excellent.
Customer 460073, June 15th, 2022
Human Resources Management (HRM)
Adequate.
Customer 462499, May 21st, 2022
Nursing
I received my paper early and it is very well written. Thank you!!
Customer 462821, April 6th, 2022
Military
very good job
Customer 456821, August 3rd, 2022
Psychology
This week's paper was written really well; however, I could immediately ascertain that a different writer had written this paper because there was some minor formatting errors that needed to be corrected. Also, I had to re-write a couple of sentences, but it was not anything major to request a revision for. Overall, the paper was good, but I would like to see consistency in the papers regardless of different writers.
Customer 452455, April 29th, 2023
Business and administrative studies
Excellent analysis.
Customer 459667, April 2nd, 2022
Environmental studies and Forestry
Good work.
Customer 458115, May 29th, 2022
Military
Good work.
Customer 456821, June 20th, 2022
Public Administration
Be keen on plagiarism.
Customer 462779, March 31st, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat