]> wirehaze git hosting - BOS.git/blobdiff - kernel/system/services.asm

wirehaze git hosting

new indentation style
[BOS.git] / kernel / system / services.asm
index 3bd5b989da3b2b6bb506e4d860a04bbc461ecc0a..f275e0aba703b4e4b4f5ceb3566d4574d2d6afc1 100755 (executable)
 ;  System interrupt 0x32   ;\r
 ;--------------------------;\r
 \r
 ;  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
 \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
 \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
 \r
-         call    getc\r
+        call   getc\r
 \r
 \r
-         jmp     .end\r
+        jmp    .end\r
 \r
     ;-----------------------------;\r
     ;  ctrl+alt+delete function   ;\r
     ;-----------------------------;\r
     .cade:\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
 \r
-         push    bx\r
-         push    cx\r
-         push    dx\r
+        push   bx\r
+        push   cx\r
+        push   dx\r
 \r
 \r
-         call    getcursor\r
-         mov     cx, bx\r
+        call   getcursor\r
+        mov    cx, bx\r
 \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
 \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
 \r
-         mov     bx, cx\r
-         call    setcursor\r
+        mov    bx, cx\r
+        call   setcursor\r
 \r
 \r
-         pop     dx\r
-         pop     cx\r
-         pop     bx\r
+        pop    dx\r
+        pop    cx\r
+        pop    bx\r
 \r
 \r
-         jmp     .end\r
+        jmp    .end\r
 \r
     ;-----------------------------;\r
     ;   no selected function..    ;\r
     ;-----------------------------;\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
 \r
-         mov     dl, 0x0B\r
-         mov     dh, 0x1A\r
-         call    setcursorxy\r
+        mov    dl, 0x0B\r
+        mov    dh, 0x1A\r
+        call   setcursorxy\r
 \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
 \r
-         mov     dl, 0x0C\r
-         mov     dh, 0x1A\r
-         call    setcursorxy\r
+        mov    dl, 0x0C\r
+        mov    dh, 0x1A\r
+        call   setcursorxy\r
 \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
 \r
-         mov     dl, 0x0D\r
-         mov     dh, 0x1A\r
-         call    setcursorxy\r
+        mov    dl, 0x0D\r
+        mov    dh, 0x1A\r
+        call   setcursorxy\r
 \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
 \r
-         mov     dl, 0x0E\r
-         mov     dh, 0x1A\r
-         call    setcursorxy\r
+        mov    dl, 0x0E\r
+        mov    dh, 0x1A\r
+        call   setcursorxy\r
 \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
 \r
-         pop     dx\r
-         pop     cx\r
-         pop     bx\r
+        pop    dx\r
+        pop    cx\r
+        pop    bx\r
 \r
 \r
-     .end:\r
-         ret\r
+    .end:\r
+        ret\r