Advertisement
Little0Wen

BRITAIN FLAG in TASM (Graphics.h)

Dec 8th, 2022
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Clear's the Screen and enter video mode.
  2. Video_Mode macro res
  3.    mov ah, 00h
  4.    mov al, res
  5.    int 10h
  6. endM
  7.  
  8. fill_bg macro color, width, height
  9.    mov cx, width
  10.        mov al, 254
  11.        mov bl, color
  12.        Flag_bg:
  13.            mov ah, 2h
  14.            int 10h
  15.            mov ah, 9h
  16.            int 10h
  17.            inc dh
  18.            cmp dh, height
  19.            jne Flag_bg
  20. endM
  21.  
  22. cursor_to macro x, y
  23.    mov dl, x
  24.    mov dh, y
  25.    mov ah, 2h
  26.    int 10h
  27. endM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement