fbpx

Build a computer online and compile assembly code

  

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

Paper Writing Center
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.