; Quasi 64-bit dos extender

ExampleCALL:
        push    0       ;GetInformations
        syscall
        jmp     r8      ;Exit to OS

GetInformations ;0
;  bl  - 1GB pages
;  rcx - transfer buffer
;  edx - ptr to memory above 4GB
;  esi - ptr to int 08h/23h/24h/33h/75h
;  r8  - exit to OS
;  r9  - ptr to CPUID caps
;  r11 - ptr to MouseEventHandler32
;  r12 - max memory address
;  r15 - ptr to WriteProcs
GetNewInterrupt ;1
;   bl - interrupt number
;  rax - procedure address
SetNewInterrupt ;2
;   bl - interrupt number
;  rax - procedure address
SetBaseFS       ;3
;  eax - base
SetBaseGS       ;4
;  eax - base
GetNewException ;5
;   bl - interrupt number
;  rax - procedure address
SetNewException ;6
;   bl - interrupt number
;  rax - procedure address
SetExitProc     ;7
;  rax - ExitProc after return to OS
AllocMem64      ;8
;  ebx - size of block
;  ebx - linear address of block
