Fundamentals of Assembly Language: Julius Bancud
Fundamentals of Assembly Language: Julius Bancud
Fundamentals of Assembly Language: Julius Bancud
Assembly Language
Julius Bancud
Programming Language
Language Translator
- it is known as language processor. Language
translator is a software that accepts source program
coded in high/mid-level language as input and
produces the equivalent machine language
instruction.
Types of Language Translator
1. Compiler
-a compiler is a translator program that transform and entire
source program composed of high/mid-level language statements
into an object program consisting of machine language
executable code.
High/Mid-level language machine language
Compiler
source program instruction
Types of Language Translator
2. Interpreter
- an interpreter processes the source program on a statement-
by-statement basis. It translates high/mid-level languages
statements and then executes it one statement at a time.
3. Assembler
-an assembler is a language translator that transforms
assembly language to machine language instruction
AH = 01h KEYBOARD INPUT. This function waits for you to type a character on
the keyboard. It echoes the character to the screen and returns the ASCII
character in the AL register
AH = 02h DISPLAY OUTPUT. This function displays one character on the screen.
DL = character to display on screen
AH = 08h KEYBOARD INPUT WITHOT ECHO. This function reads a character from
the keyboard but doesn’t display the character on the screen.
AL = Character read from the keyboard.
AH = 09h DISPLAY STRING. This function displays the string pointed to by the
DS:DX pair of registers.
The end of the string should be marked with the $ symbol.
AH = 0AH READ STRING. This function reads the string from the keyboard.
AH = 4Ch EXIT DOS. This function allows you to go back to DOS environment.
AL Return Code
- normally sets to zero (0)