skip to Main Content
The smarter way
to do assignments.

Please note that this is just a preview of a school assignment posted on our website by one of our clients. If you need assistance with this question too, please click on the Order button at the bottom of the page to get started.

Question description

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. Clickhere 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 compilerClick here to compile and execute assembly code.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 .textglobal _start ;must be declared for using gcc_start: ;tell linker entry pointmov edx, len ;message lengthmov ecx, msg ;message to writemov ebx, 1 ;file descriptor (stdout)mov eax, 4 ;system call number (sys_write)int 0x80 ;call kernelmov eax, 1 ;system call number (sys_exit)int 0x80 ;call kernelsection .datamsg db ‘Hello, world!’,0xa ;our dear stringlen equ $ – msg ;length of our dear stringWhen 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>&1Linking the program….$ld -m elf_i386 -s -o demo *.o 2>&1Executing the program….$demoHello, 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 5Convert 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 01010101Write your full name in Binary code separated in bytes. For example, the name of the president of the USA in binary code isBarak Obama0100001001100001011100100110000101101011001000000100111101100010011000010110110101100001Show 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. (Tutorialspoint, n.d.)section .textglobal _start ;must be declared for linker (ld)_start:mov eax,3 ;number bytes to be summedmov ebx,0 ;EBX will store the summov ecx, x ;ECX will point to the current element to be summedtop: add ebx, [ecx]add ecx,1 ;move pointer to next elementdec eax ;decrement counterjnz top ;if counter not 0, then loop againdone:add ebx, ‘0’mov [sum], ebx ;done, store result in “sum”display:mov edx,1 ;message lengthmov ecx, sum ;message to writemov ebx, 1 ;file descriptor (stdout)mov eax, 4 ;system call number (sys_write)int 0x80 ;call kernelmov eax, 1 ;system call number (sys_exit)int 0x80 ;call kernelsection .dataglobal xx:db 2db 4db 3sum:db 0Click here to compile and execute assembly code.Change the program to display F as a sum of the array.

GET HELP WITH THIS ASSIGNMENT TODAY

Clicking on this button will take you to our custom assignment page. Here you can fill out all the additional details for this particular paper (grading rubric, academic style, number of sources etc), after which your paper will get assigned to a course-specific writer. If you have any issues/concerns, please don't hesitate to contact our live support team or email us right away.

How It Works        |        About Us       |       Contact Us

© 2018 | Intelli Essays Homework Service®

Back To Top