; Bootloader %include "boot.asm" section KERNEL follows=BOOTSECTOR vstart=1000h %macro mod 2 push ax push cx mov cx, %2 xor dx, dx mov ax, %1 div cx pop cx pop ax %endmacro main: call gfx_init_vga13 ; Important for mouse stuff definitely jmp 0x000:.setcs .setcs: call mouse_initialize call mouse_enable lp: ; mov cx, 0 ; mov al, 0 ; mov dx, 320 ; mov bl, 200 ; mov bh, 0 ;call gfx_rect cli mov bx, [mouseX] mov ax, [mouseY] sti mov dx, 0 mov cx, 320 mul cx add ax, bx mov di, ax mov si, gfxd_cursor mov ax, 11 mov bl, 18 call _gfx_blit0 jmp lp jmp $ ; Halt ; Libs %include "print_util.asm" %include "mouse_util.asm" ;%include "time_util.asm" %include "gfx_util.asm" ; Data HELLO_WORLD: db 'Hello, world! :D', 0 No: db 'No.', 0 %include "gfx/gfxd_cursor.asm"