mov ax, 1687h int 2Fh test ax, ax ; DPMI host installed? jnz nohost push es ; save DPMI entry address push di test si, si ; host requires client-specific DOS memory? jz .nomemneeded ; no --> mov bx, si mov ah, 48h int 21h ; allocate memory jc nomemory mov es, ax .nomemneeded: mov si, msg.debuginfo call printstring int3 mov bp, sp mov ax, 0001h ; start a 32-bit client call far [bp] ; initial switch to protected-mode jnc initsuccessful initfailed: