MOUSE CURSORRRRR
This commit is contained in:
parent
750e9a73f5
commit
83c6f1e7b3
2 changed files with 15 additions and 7 deletions
2
boot.asm
2
boot.asm
|
@ -7,7 +7,7 @@ OS_SEGMENT equ 0x100
|
||||||
boot:
|
boot:
|
||||||
; Load from disk
|
; Load from disk
|
||||||
mov ah, 0x02 ; read
|
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 cl, 0x02 ; Sector start (1 = boot sector, 2 = OS)
|
||||||
mov ch, 0x00 ; Cylinder 0
|
mov ch, 0x00 ; Cylinder 0
|
||||||
mov dh, 0x00 ; Head 0
|
mov dh, 0x00 ; Head 0
|
||||||
|
|
20
main.asm
20
main.asm
|
@ -22,7 +22,7 @@ main:
|
||||||
mov ax, 0x13
|
mov ax, 0x13
|
||||||
int 0x10
|
int 0x10
|
||||||
|
|
||||||
; Important for mouse stuff maybe????
|
; Important for mouse stuff definitely
|
||||||
jmp 0x000:.setcs
|
jmp 0x000:.setcs
|
||||||
.setcs:
|
.setcs:
|
||||||
|
|
||||||
|
@ -33,12 +33,20 @@ main:
|
||||||
|
|
||||||
|
|
||||||
cli
|
cli
|
||||||
|
|
||||||
mov bx, [mouseX]
|
mov bx, [mouseX]
|
||||||
|
mov ax, [mouseY]
|
||||||
sti
|
sti
|
||||||
|
|
||||||
call print_sint
|
mov dx, 0
|
||||||
call print_nl
|
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 lp
|
||||||
|
|
||||||
|
@ -48,7 +56,7 @@ jmp $ ; Halt
|
||||||
%include "print_util.asm"
|
%include "print_util.asm"
|
||||||
%include "mouse_util.asm"
|
%include "mouse_util.asm"
|
||||||
;%include "time_util.asm"
|
;%include "time_util.asm"
|
||||||
;%include "gfx_util.asm"
|
%include "gfx_util.asm"
|
||||||
|
|
||||||
; Data
|
; Data
|
||||||
HELLO_WORLD:
|
HELLO_WORLD:
|
||||||
|
@ -56,4 +64,4 @@ HELLO_WORLD:
|
||||||
No:
|
No:
|
||||||
db 'No.', 0
|
db 'No.', 0
|
||||||
|
|
||||||
;%include "gfx/gfxd_cursor.asm"
|
%include "gfx/gfxd_cursor.asm"
|
Loading…
Add table
Reference in a new issue