Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [BITS 16]
- [ORG 0500h]
- pusha
- call DefineWindow
- popa
- jmp ReturnKernel
- %include "Hardware/wmemory.inc"
- DefineWindow:
- mov ah, 0Ch
- mov al, 55
- mov cx, 50
- mov dx, 50
- cmp byte[Window_Bar], 0
- je WindowNoBar
- jmp Rets
- WindowNoBar:
- mov bx, word[Window_Width]
- add bx, cx
- LineUp:
- int 10h
- inc cx
- cmp cx, bx
- jne LineUp
- mov bx, word[Window_Height]
- add bx, dx
- LineRight:
- int 10h
- inc dx
- cmp dx, bx
- jne LineRight
- mov bx, word[Window_Pos_X]
- LineDown:
- int 10h
- dec cx
- cmp cx, bx
- jne LineDown
- mov bx, word[window_Pos_Y]
- LineLeft:
- int 10h
- dec dx
- cmp dx, bx
- jne LineLeft
- Rets:
- ret
- ReturnKernel:
- ret
Add Comment
Please, Sign In to add comment