presentasi bahasa rakitan, program emu.8086

12
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

Upload: chojim

Post on 19-Nov-2014

204 views

Category:

Documents


14 download

DESCRIPTION

Color Program in Emulator 8086

TRANSCRIPT

Page 1: Presentasi Bahasa Rakitan, program Emu.8086

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

Page 2: Presentasi Bahasa Rakitan, program Emu.8086

PROGRAM colors

04/08/23

Page 3: Presentasi Bahasa Rakitan, program Emu.8086

04/08/23

Page 4: Presentasi Bahasa Rakitan, program Emu.8086

04/08/23

Page 5: Presentasi Bahasa Rakitan, program Emu.8086

04/08/23

How the Result?

Page 6: Presentasi Bahasa Rakitan, program Emu.8086

04/08/23

THE RESULT OF PROGRAMTHE RESULT OF PROGRAM

Page 7: Presentasi Bahasa Rakitan, program Emu.8086

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

Page 8: Presentasi Bahasa Rakitan, program Emu.8086

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

Page 9: Presentasi Bahasa Rakitan, program Emu.8086

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

Page 10: Presentasi Bahasa Rakitan, program Emu.8086

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:

Page 11: Presentasi Bahasa Rakitan, program Emu.8086

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

Page 12: Presentasi Bahasa Rakitan, program Emu.8086

THANKS FOR YOUR GREAT ATTENTION

IF BIL ‘09

04/08/23(acim-tea)(acim-tea)