Mail Archives: djgpp/1997/08/20/23:11:04
A. Sinan Unur <asu1 AT cornell DOT edu> wrote in article
<33FA2DB2 DOT 3DC3 AT cornell DOT edu>...
> assuming i have the interrupt handler written in assembly, how do i go
> about locking it? i would appreciate it if someone could tell me how it
> is done, or point me to an example.
There is a dpmi call, __dpmi_lock... something or other. Should be in the
info libc dpmi reference. Also,
the faq probaly has a bit about it. In assembly just define a label at the
end of your function, and subtract the
entry symbol from it to get the size of the function.
> also, i call a software interrupt using data structures set up in
> conventional memory (i am not using the transfer buffer.) do i need to
> lock those areas, too?
I asked this several months ago as was told that all real mode memory was
automatically locked.
> totally unrelated, but could anyone tell me where to look for how to
> access the individual bits of the flags field in the dpmi regs structs?
> i looked in the dpmi.h and go32.h files and couldn't locate any info.
I suspect you will have to define your own bitmasks to detect them.
#define CARRY_BIT 1
#define PARITY_BIT 4
#define AUX_BIT 16
#define ZERO_FLAG 64
#define SIGN_BIT 128
or sth. similar.
Andrew
- Raw text -