100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

Chapter 3

Rating
-
Sold
-
Pages
2
Uploaded on
29-08-2023
Written in
2023/2024

This is a documentation of chapter 3 questions of computer architecture.









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
August 29, 2023
Number of pages
2
Written in
2023/2024
Type
Other
Person
Unknown

Content preview

Chapter 3 (Assembly Language Fundamentals) –Assessment
Question 1

True-False
Please indicate whether each statement is True (T) or False (F).

1.1 A string literal must be enclosed in double quotes.
1.2 An identifier in assembly language may only contain letters and digits.
1.3 Identifiers are by default, case sensitive.
1.4 The PROC directive marks both the beginning and ending of a procedure.
1.5 A code name must end with a colon (:).
1.6 The SDWORD directive is used when defining signed 32-bit integers.
1.7 The .DATA directive must always occur before the .CODE directive.
1.8 In the following statement, EAX is called the source operand:
mov EBX,EAX
1.9 If the source code for an assembly language program is modified, you must run both the assembler
and linker to update the program's executable code.
1.10 An object file is commonly read as input by the linker.
1.11 A listing file contains a copy of the program’s source code, with line numbers, the numeric
address of each instruction, and a symbol table. Optionally, it may display the machine code bytes
for the program.
1.12 The listing file is generated by the linker.
1.13 The following is a valid data definition statement:
varX WORD 100h, 65536
1.14 The following is a valid data definition statement:
helloStr SWORD -32768
1.15 The EQU directive permits a constant to be redefined at any point in a program.

Question 2


2.1 Using the value -35, write it as binary and hexadecimal formats.
2.2 Yes/No: is A5h a valid hexadecimal literal?
2.3 Yes/No: Does the multiplication operator have a higher precedence than the
division operator in integer expressions?
2.4 Yes/No: must string literals be enclosed in single quotes?
2.5 What is the maximum length of an identifier?
2.6 What types of files are produced by the assembler?


Irvine, Kip R. Assembly Language for x86 Processors, 7 th Edition 1
R163,00
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
ritomakhongela

Get to know the seller

Seller avatar
ritomakhongela University of Limpopo
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
3
Last sold
-

0,0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions