Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Directives:
Which tell the assembler to perform specific action, such as define a data item.
Calculation Operators: Arithmetic, index, logic, shift and structure field name.
Record Operators: MASK and WIDTH
Relational Operators: EQ, GE, GT, LE, LT and NE
Segment Operators: OffSET, SEG, and segment override
Type (or attribute) HIGH, HIGHWORD, LENGTH, LOW, LOWWORD, PTR,
operators) SHORT, SIZE THIS and TYPE.
Arithmetic Operators
These operators include the familiar arithmetic signs and perform arithmetic during the
assembly. In most cases, you could perform the calculation yourself, although the advantage of
using these operators is that every time you change the program and reassemble it, the assembler
automatically recalculate with an example or their use.
7.5 Materials/Equipment
7.7 Procedure/s
2. Write the following program using SK’s notepad or any of your text editor using the
filename sam7.asm
.model small
.code
org 100h
end start
7. Input other set of single digit numbers which will give a sum above nine. What do you
observed?
- It adds the two input numbers
8. Modify the program so that it will be able to display the sum of two input numbers even
if their sum is double-digit.
1. Given the sample output coming from your instructor, write down and compile the
required program that will provide the expected sample output using expt7.com as
the filename.
num.asm
ASM FILE
5. From your ASCII table, write the ASCII code for the following characters.
6. Compare the arrangement of the ASCII codes of numbers and letters. What have you
observe?
7. What method is used in getting the actual value of the input number?
add ch, cl
7.8.3 Observations
We’ve been observing that we can perform such task like mathematical addition to
out computer and it’s in a matter millisecond to get result, even though we just perform
simple mathematical programs it proves the capability of our system or cpu.
7.8.4 Conclusion/s
In conclusion with the help of our computer along with our systems and others, we can
achieve or even solve complicated mathematical programs in flexible way.
Total Score