0% found this document useful (0 votes)
37 views

Eda PDF

The document discusses two online assemblers that can be used to write and run assembly code programs. The first assembler, OneCompiler, is managed by passionate developers and does not support the x86 architecture. The second assembler, Compile and Execute Assembly Online (Nasm v2.13.01) is managed by CodingGround and does support x86. Screenshots are provided of running "Hello World" example programs on each assembler. The output of each program is also shown. Part 2 discusses an assembly program that calculates the quotient of two numbers. It identifies aspects of the program like what it does, the number of sections, mnemonics used, operands, and which lines indicate

Uploaded by

Kim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Eda PDF

The document discusses two online assemblers that can be used to write and run assembly code programs. The first assembler, OneCompiler, is managed by passionate developers and does not support the x86 architecture. The second assembler, Compile and Execute Assembly Online (Nasm v2.13.01) is managed by CodingGround and does support x86. Screenshots are provided of running "Hello World" example programs on each assembler. The output of each program is also shown. Part 2 discusses an assembly program that calculates the quotient of two numbers. It identifies aspects of the program like what it does, the number of sections, mnemonics used, operands, and which lines indicate

Uploaded by

Kim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Rueda, Mervyn Manuel M.

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

a. What organization/company manages the online assembler?

- It has no exact company or organization but they are passionate developers


working constantly to provide better online coding platform.

b. Provide the links to the online assembler.

- 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.

e. Does the assembler support an x86 architecture? Elaborate on your answer.

- No, because OneCompiler removes all these struggles & limitations by


providing an online compiler platform. It's so fast that it feels like it's running
locally. We run your code with powerful cloud servers with horizontally scalable
architecture to achieve the cutting-edge speed.

Compile and Execute Assembly Online (Nasm v2.13.01)

a. What organization/company manages the online assembler?

- CodingGround

b. Provide the links to the online assembler.

- 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?

- Getting the quotient of the 2 numbers that are 3 and 9.


- Ax is the value of 9 and bl is 3.

b. How many sections were used in the program?

- It contains three (3) sections that are text, data and bss.

c. Identify at least three (3) mnemonics (opcode/directive/macro) that were


used in the program.

- 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)

You might also like