Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Josielyn L.

Taro
CpE 701

02 Task Performance 1
Assembly Language Basics

I. Part 1
OneCompiler Jdoodle
A. One Compiler Pvt. Ltd. Nutpan pty Ltd.
B. https://onecompiler.com/assembly https://www.jdoodle.com/
C.

D.

E. OneCompiler assembler supports an x86 Jdoodle online assembler supports an x86


architecture because base on its default or architecture because it has a Network
essential code, it has the syntax like in Emu8086, Assembler (NASM), in which it is an
so I believe that this online compiler cater such assembler that caters the x86, such as the
architecture. Emu8086.
II. Part 2
1.

2.

3.
A. The program has performed the addition of the values of x (5) and y (3) and print it
along with its sum which is 8.
B. Yes, the result of the program is correct.
C. The program execution utilized 340 kilobytes of memory.
D. It takes 0.631 seconds in executing the program.
E. In section .data, the x and y were initialized.
4.

5.
A. The program performs some of the operations or mnemonics like add, sum, and div.
In the section .text, it is where the program goes, and this allows external programs
to see the start of the code. In the data section, we have variables that were
initialized. While in the bss section, it is where we declare modifiable variable.
B. There were 3 sections used in the program.
C. Some mnemonics that were used in the program were add, sum, and div.
D. Some operands that were used in the program were “ebx, 1”; “eax, 4”; and “edx, 1”.
E. In the section .data, the indication for storage space allocation is the line “message
db”, while the message length is in the section .text, in the line “mov edx, length”.

You might also like