Eda PDF
Eda PDF
Computer Organization
Bscpe-701
Part 1
1. Search for two (2) free online assemblers available on the Internet. For each
assembler, answer the following questions:
OneCompiler
- Link: https://onecompiler.com/assembl
c. Take a screenshot of the initial content of the code editor of the assembler.
This study source was downloaded by 100000864127622 from CourseHero.com on 03-17-2023 06:33:19 GMT -05:00
https://www.coursehero.com/file/117299058/ComOrg02TP1Ruedapdf/
d. Run the initial codes in the editor and take a screenshot of the output/result.
- CodingGround
- https://www.tutorialspoint.com/compile_assembly_online.php
This study source was downloaded by 100000864127622 from CourseHero.com on 03-17-2023 06:33:19 GMT -05:00
https://www.coursehero.com/file/117299058/ComOrg02TP1Ruedapdf/
c. Take a screenshot of the initial content of the code editor of the assembler.
d. Run the initial codes in the editor and take a screenshot of the output/result.
This study source was downloaded by 100000864127622 from CourseHero.com on 03-17-2023 06:33:19 GMT -05:00
https://www.coursehero.com/file/117299058/ComOrg02TP1Ruedapdf/
e. Does the assembler support an x86 architecture? Elaborate on your answer.
- Yes, because it is an assembler for the x86 CPU architecture portable to nearly
every modern platform, and with code generation for many platforms old and
new.
Part 2
Online Assembler – NASM Compiler IDE
a. What does the program do?
- Finding the sum of the x and y
b. Is the result of the program, correct?
- Yes, because the output is exact to the given number
c. How much memory was utilized in the program execution?
- 340 kilobyte(s)
d. How long did it take to execute the program?
- 0.00 sec(s)
e. Under what section were the x and y initialized?
- Data
INPUT: OUTPUT:
This study source was downloaded by 100000864127622 from CourseHero.com on 03-17-2023 06:33:19 GMT -05:00
https://www.coursehero.com/file/117299058/ComOrg02TP1Ruedapdf/
a. What does the program do?
- It contains three (3) sections that are text, data and bss.
- The program used mov, sub, and div to execute the given code.
d. Identify at least three (3) operands that were used in the program.
- The 3 main operands that are used in the program are 9, 3, and 0.
e. In the program above, which lines of codes indicate the storage space
allocation for the message and message length?
- In the section data, because data section contains the initialized data and static
variable. Also, it is the segment that will update, insert, and delete the changes
in the program.
This study source was downloaded by 100000864127622 from CourseHero.com on 03-17-2023 06:33:19 GMT -05:00
https://www.coursehero.com/file/117299058/ComOrg02TP1Ruedapdf/
Powered by TCPDF (www.tcpdf.org)