[go: up one dir, main page]

0% found this document useful (0 votes)
112 views8 pages

02 - Task - Performance - 1 (5) Computer Architecture

Uploaded by

renzsantos0825
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)
112 views8 pages

02 - Task - Performance - 1 (5) Computer Architecture

Uploaded by

renzsantos0825
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/ 8

IT2104

Santos, Renz Marie Z. BE4101


Task Performance
Assembly Language Basics
Objective(s):

At the end of the exercise, the students should be able to:

 Determine the role of assembly language in computers; and


 Identify the structure of codes in assembly language.

Instructions:
Part 1 (40 points)
1. Search for two (2) free online assemblers available on the Internet. For each assembler, answer the
following items:
a. What organization/company manages the online assembler? (2 points)

b. Provide the links to the online assembler. (3 points)

02 Task Performance 1 *Property of STI


Page 1 of 8
IT2104

c. Take a screenshot of the initial content of the code editor of the assembler. (5 points)

02 Task Performance 1 *Property of STI


Page 2 of 8
IT2104

d. Run the initial codes in the editor and take a screenshot of the output/result. (5 points)

02 Task Performance 1 *Property of STI


Page 3 of 8
IT2104

e. Elaborate on your answer. (5 points)

Part 2 (30 points)


1. Go to https://www.jdoodle.com. At the right portion of the webpage you will see the list of different
programming languages (those that are underlined). Click on the Assembler (NASM). This will direct
you to the Online Assembler – NASM Compiler IDE.
 The Netwide Assembler (NASM) is an assembler that also caters to x86 architecture, such as
the Emu8086. It supports a wide range of object file formats including ELF, COFF, Linux and
NetBSD/FreeBSD, Microsoft 16-bit OBJ and Win32. It encompasses a simple and easy-to-
understand syntax, similar to Intel 8086 but with reduced complexity. NASM was mainly
designed for portability and modularity.

02 Task Performance 1 *Property of STI


Page 4 of 8
IT2104

2. Click the Full Screen button (in line with the Execute button) to maximize the assembler's interface.
Then, analyze the assembly codes in the code editor. Click the Execute button and see the output at
the Result section.

02 Task Performance 1 *Property of STI


Page 5 of 8
IT2104

3. Answer the following question regarding the initial assembly codes in the editor (5 items x 3 points):
a. What does the program do?

b. Is the result of the program correct?

c. How much memory was utilized in the program execution?

d. How long did it take to execute the program?

e. Under what section were the x and y initialized?

02 Task Performance 1 *Property of STI


Page 6 of 8
IT2104

4. Delete the content of the code editor and type the assembly codes below:

02 Task Performance 1 *Property of STI


Page 7 of 8
IT2104

5. Execute the program. Then, answer the following items (5 items x 3 points):
a. What does the program do?

b. How many sections were used in the program?

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

d. Identify at least three (3) operands that were used in the program.

e. In the program above, which lines of codes indicate the storage space allocation for the
message and message length?

Grading Rubric for Essay:


Criteria Performance Indicator Points
Content Correct ideas, concepts, and/or examples were included. 3
Organization The ideas were presented in an organized manner. 2
TOTAL 5
Note: DO NOT COPY AND PASTE. Students who copy and paste their work from any website or their classmate will automatically receive a failing mark for this assessment task.

02 Task Performance 1 *Property of STI


Page 8 of 8

You might also like