Re: Switch from protected mode to real mode



gerotica wrote:

Ok... let´s keep it simple...
How can I call my int 61h from a protected mode 32-bit program, and
inside the isr go to real mode again, do file ops and return to
protected mode before returning to the program?

Why do you multi-post to so many groups? Better cross-post
so the reader of one group can also see the replies made in
other groups.

Are you sure you asking the correct questions?

Why do you want to call your subroutine by an INT
instruction instead of an "CALL" instruction? When you
use the call, you don't have to modify the interrupt
table.

Why do you want to switch to real mode? Write your
subroutine as protected mode routine and "call" it.

Why do you want to do file io? Write your data to the
serial or parallel port (only a few io instruction, no
support of an OS needed) and use a second PC to store
the sent data stream.
.



Relevant Pages

  • Real mode int from protected mode and back
    ... I don´t have any experience in protected mode programming, ... This int should check to see if the ... words to copy from protected mode to real mode stack ... START OF FUNCTION CHUNK FOR sub_CF2F0 ...
    (comp.os.msdos.programmer)
  • Real mode int from protected mode and back
    ... I don´t have any experience in protected mode programming, ... This int should check to see if the ... words to copy from protected mode to real mode stack ... START OF FUNCTION CHUNK FOR sub_CF2F0 ...
    (comp.lang.asm.x86)
  • =?ISO-8859-1?Q?Real_mode_int_from_protected_mode_and_back_Op=E7=F5es?=
    ... I don´t have any experience in protected mode programming, ... This int should check to see if the ... words to copy from protected mode to real mode stack ... START OF FUNCTION CHUNK FOR sub_CF2F0 ...
    (alt.lang.asm)
  • Real mode int from protected mode and back
    ... I don´t have any experience in protected mode programming, ... This int should check to see if the ... words to copy from protected mode to real mode stack ... START OF FUNCTION CHUNK FOR sub_CF2F0 ...
    (comp.os.msdos.misc)
  • Re: Using DPMI
    ... "To terminate a protected mode program execute an Int 21h with ... AH=4Ch in protected mode. ... about the value in AL when calling int 21h with AH=4Ch. ... I wouldn't take that error message too literally. ...
    (alt.lang.asm)