Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [BITS 16]
- [ORG 0000h]
- jmp OSMain
- %include "Hardware/monitor.inc"
- %include "Hardware/disk.inc"
- %include "Hardware/wmemory.inc"
- OSMain:
- call ConfigSegment
- call ConfigStack
- call VGA.SetVideoMode
- call DrawBackground
- call EffectInit
- call GraphicInterface
- jmp END
- GraphicInterface:
- mov byte[Window_Bar], 0
- mov word[Window_Pos_X], 5
- mov word[window_Pos_Y], 5
- mov word[Window_Width], 100
- mov word[Window_Height], 150
- mov byte[Window_Border_Color], 42
- mov byte[Sector], 3
- mov byte[Drive], 80h
- mov byte[NumSectors], 1
- mov word[SegmentAddr], 0800h
- mov word[OffsetAddr], 0500h
- call ReadDisk
- call WindowAdress
- ret
- ; Kernel Funcs
- ConfigSegment:
- mov ax, es
- mov ds, ax
- ret
- ConfigStack:
- mov ax, 7D00h
- mov ss, ax
- mov sp, 03FEh
- ret
- END:
- jmp $
Advertisement
Add Comment
Please, Sign In to add comment