Professional Documents
Culture Documents
2021 Chapter 3 CU Lecture 3
2021 Chapter 3 CU Lecture 3
Ex:
ORG N
Hexadecimal number N is the memory loc. for the instruction or
operand listed in the following line
END
Denotes the end of symbolic program
DEC N
Signed decimal number N to be converted to binary
HEX N
Hexadecimal number N to be converted to binary
MIN = 106, SUB = 107, DIF = 108
Dep’t Of ECENG Comparc PPt
For 3rd Year Students
Compiled By Instructors.
Dep’t Of ECENG Comparc PPt
For 3rd Year Students
Compiled By Instructors.
Assembly Language
The rules for writing assembly language program Field
Each line of an assembly language program is arranged in three columns
» 1) Label field :may be empty or it may specify symbolic address.
» 2) Instruction field : machine instruction or pseudo instruction. Label Instruction Comment
» 3) Comment field : may be empty or it may include comment.
Symbolic Address(Label field)
» One, two, or three, but not more than three alphanumeric characters
» The first character must be a letter; the next two may be letters or numerals
» A symbolic address is terminated by a comma(recognized as a label by the assembler)
Instruction Field
» 1) A memory-reference instruction(MRI)
Ex) ADD OPR(direct address MRI), ADD PTR I(indirect address MRI)
An Example Program
83 - 23 = 83 + ( 2’s Complement of -23)
Dep’t Of ECENG Comparc PPt
For 3rd Year Students
Compiled By Instructors.
Dep’t Of ECENG Comparc PPt
For 3rd Year Students
Compiled By Instructors.