; System interrupt 0x32 ;\r
;--------------------------;\r
\r
- isr32_str_1 db "ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»", 0\r
- isr32_str_2 db "º \10 INT 32 CALLED!! º", 0\r
- isr32_str_3 db "º \ 2 \ 1 º", 0\r
- isr32_str_4 db "ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ", 0\r
+ isr32_str_1 db "ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»", 0\r
+ isr32_str_2 db "º \10 INT 32 CALLED!! º", 0\r
+ isr32_str_3 db "º \ 2 \ 1 º", 0\r
+ isr32_str_4 db "ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ", 0\r
\r
- isr32_str_5 db "CTRL+ALT+DEL was pressed!", 0\r
+ isr32_str_5 db "CTRL+ALT+DEL was pressed!", 0\r
\r
interrupt_32:\r
\r
;-----------------;\r
; get char ;\r
;-----------------;\r
- cmp ax, 0x0001 ; get character int..\r
- jne .cade\r
+ cmp ax, 0x0001 ; get character int..\r
+ jne .cade\r
\r
- call getc\r
+ call getc\r
\r
- jmp .end\r
+ jmp .end\r
\r
;-----------------------------;\r
; ctrl+alt+delete function ;\r
;-----------------------------;\r
.cade:\r
- cmp ax, 0xCADE ; CTRL+ALT+DEL was pressed\r
- jne .ordinary\r
+ cmp ax, 0xCADE ; CTRL+ALT+DEL was pressed\r
+ jne .ordinary\r
\r
- push bx\r
- push cx\r
- push dx\r
+ push bx\r
+ push cx\r
+ push dx\r
\r
- call getcursor\r
- mov cx, bx\r
+ call getcursor\r
+ mov cx, bx\r
\r
- mov dl, 0x0C\r
- mov dh, 0x1B\r
- call setcursorxy\r
+ mov dl, 0x0C\r
+ mov dh, 0x1B\r
+ call setcursorxy\r
\r
- mov esi, isr32_str_5\r
- mov al, 0x40\r
- call print\r
+ mov esi, isr32_str_5\r
+ mov al, 0x40\r
+ call print\r
\r
- mov bx, cx\r
- call setcursor\r
+ mov bx, cx\r
+ call setcursor\r
\r
- pop dx\r
- pop cx\r
- pop bx\r
+ pop dx\r
+ pop cx\r
+ pop bx\r
\r
- jmp .end\r
+ jmp .end\r
\r
;-----------------------------;\r
; no selected function.. ;\r
;-----------------------------;\r
- .ordinary: ; print that int 0x32 was called...\r
- push bx\r
- push cx\r
- push dx\r
+ .ordinary: ; print that int 0x32 was called...\r
+ push bx\r
+ push cx\r
+ push dx\r
\r
- mov dl, 0x0B\r
- mov dh, 0x1A\r
- call setcursorxy\r
+ mov dl, 0x0B\r
+ mov dh, 0x1A\r
+ call setcursorxy\r
\r
- mov esi, isr32_str_1\r
- mov bl, 0x40\r
- call print\r
+ mov esi, isr32_str_1\r
+ mov bl, 0x40\r
+ call print\r
\r
- mov dl, 0x0C\r
- mov dh, 0x1A\r
- call setcursorxy\r
+ mov dl, 0x0C\r
+ mov dh, 0x1A\r
+ call setcursorxy\r
\r
- mov esi, isr32_str_2\r
- mov bl, 0x40\r
- call print\r
+ mov esi, isr32_str_2\r
+ mov bl, 0x40\r
+ call print\r
\r
- mov dl, 0x0D\r
- mov dh, 0x1A\r
- call setcursorxy\r
+ mov dl, 0x0D\r
+ mov dh, 0x1A\r
+ call setcursorxy\r
\r
- mov esi, isr32_str_3\r
- mov bl, 0x40\r
- call print\r
+ mov esi, isr32_str_3\r
+ mov bl, 0x40\r
+ call print\r
\r
- mov dl, 0x0E\r
- mov dh, 0x1A\r
- call setcursorxy\r
+ mov dl, 0x0E\r
+ mov dh, 0x1A\r
+ call setcursorxy\r
\r
- mov esi, isr32_str_4\r
- mov bl, 0x40\r
- call print\r
+ mov esi, isr32_str_4\r
+ mov bl, 0x40\r
+ call print\r
\r
- pop dx\r
- pop cx\r
- pop bx\r
+ pop dx\r
+ pop cx\r
+ pop bx\r
\r
- .end:\r
- ret\r
+ .end:\r
+ ret\r