By: Choirul Azim (09091402020) Nys. Ristya Anditha (09091402010) 06/06/22 (Present To the Assembly Project of Informatics Bilingual UNSRI 2009,Year of 2010) Lecturer: Ma’am Tresna Dewi, M.Eng
By: Choirul Azim (09091402020)
Nys. Ristya Anditha (09091402010)
04/08/23
(Present To the Assembly Project of Informatics Bilingual UNSRI 2009,Year of
2010)Lecturer: Ma’am Tresna Dewi, M.Eng
(Present To the Assembly Project of Informatics Bilingual UNSRI 2009,Year of
2010)Lecturer: Ma’am Tresna Dewi, M.Eng
PROGRAM colors
04/08/23
04/08/23
04/08/23
04/08/23
How the Result?
04/08/23
THE RESULT OF PROGRAMTHE RESULT OF PROGRAM
Describing of Program (Attributes)This program prints 16x16 color with ‘a’ char, and ’x’. It uses all
possible colors.MOV = Copy operand2 to operand1. The MOV instruction cannot: set the value of the CS
and IP registers. copy value of one segment register to another
segment register (should copy to general register
first).copy immediate value to segment register (should copy to
general register first). INT = do the interruptions to processor directly JMP = jump to next label JE = jump if equal. Its use when conditional instruction INC = increment for loop. Operand1=operand1+operand2RET = return back to process.
04/08/23
Program Colors in 8086org 100h
mov ax, 3int 10h
mov ax, 1003hmov bx, 0 int 10h mov dl, 0 mov dh, 0
mov bl, 0
jmp next_char
next_row:inc dhcmp dh, 16je stop_printmov dl, 0
next_char:mov ah, 02hint 10h
mov al, 'a'mov bh, 0mov cx, 1mov ah, 09hint 10h
inc bl
inc dlcmp dl, 16je next_rowjmp next_char
stop_print:
mov dl, 10 mov dh, 5 mov ah, 02hint 10h
mov al, 'x'mov ah, 0ehint 10h
mov ah, 0int 16h
ret
04/08/23
The Explanationorg 100h
mov ax, 3int 10h
mov ax, 1003hmov bx, 0 int 10h mov dl, 0 mov dh, 0
mov bl, 0
jmp next_char
next_row:inc dhcmp dh, 16je stop_printmov dl, 0
04/08/23
04/08/23
next_char:mov ah, 02hint 10h
mov al, 'a'mov bh, 0mov cx, 1mov ah, 09hint 10h
inc bl
inc dlcmp dl, 16je next_rowjmp next_char
stop_print:
04/08/23
mov dl, 10 mov dh, 5 mov ah, 02hint 10h
mov al, 'x'mov ah, 0ehint 10h
mov ah, 0int 16h
ret
THANKS FOR YOUR GREAT ATTENTION
IF BIL ‘09
04/08/23(acim-tea)(acim-tea)