MOUSE CURSORRRRR

This commit is contained in:
maelstrom 2024-07-26 00:47:09 +03:00
parent 750e9a73f5
commit 83c6f1e7b3
2 changed files with 15 additions and 7 deletions

View file

@ -7,7 +7,7 @@ OS_SEGMENT equ 0x100
boot:
; Load from disk
mov ah, 0x02 ; read
mov al, 0x01 ; No of sectors (1)
mov al, 0x02 ; No of sectors (1)
mov cl, 0x02 ; Sector start (1 = boot sector, 2 = OS)
mov ch, 0x00 ; Cylinder 0
mov dh, 0x00 ; Head 0

View file

@ -22,7 +22,7 @@ main:
mov ax, 0x13
int 0x10
; Important for mouse stuff maybe????
; Important for mouse stuff definitely
jmp 0x000:.setcs
.setcs:
@ -33,12 +33,20 @@ main:
cli
mov bx, [mouseX]
mov ax, [mouseY]
sti
call print_sint
call print_nl
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
@ -48,7 +56,7 @@ jmp $ ; Halt
%include "print_util.asm"
%include "mouse_util.asm"
;%include "time_util.asm"
;%include "gfx_util.asm"
%include "gfx_util.asm"
; Data
HELLO_WORLD:
@ -56,4 +64,4 @@ HELLO_WORLD:
No:
db 'No.', 0
;%include "gfx/gfxd_cursor.asm"
%include "gfx/gfxd_cursor.asm"