Professional Documents
Culture Documents
Computer Organization TP Prelim - Taro
Computer Organization TP Prelim - Taro
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.
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”.