Part 1 Tasks: In a written document, answer the following questions in relationship to the topics covered by this unit: What is the classical concept of a Von Neumann machine architecture? Describe...


Part 1 Tasks:

In a written document, answer the following questions in relationship to the topics covered by this unit:

  • What is the classical concept of a Von Neumann machine architecture?

  • Describe the components of a CPU and what each one does.

  • Describe 3 special purpose registers found in the Von Neumann machine architecture.



Part 2 Tasks:


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.

Clickhereto 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 ; This must be here to tell the compiler

; where Program’s instructions start

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 the kernel

mov eax, 1 ; System call number (sys_exit)

int 0x80 ; Call the kernel

section .data ; This must be here to tell the compiler

; where Program’s data starts

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!



  • Capture screenshots of your source code compiling and executing

  • Include a line-by-line explanation of the code; i.e. what each instruction is doing and why

  • Name the document "yourname_CE242_IP1.doc."

  • Submit for grading



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here