Mail Archives: djgpp/2002/02/22/09:02:22
MarKol (markol4 AT wp DOT pl) wrote:
: : Użytkownik "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> napisał w wiadomo¶ci
: : DS may become invalid if a signal happens, like if you press Ctrl-C
: : or run with timers. The library provides a special alias selector,
: : __djgpp_ds_alias, which is always valid and spans the same memory
: : region as the selector normally loaded into DS.
: Yes, but how do I load this __djgpp_ds_alias selector when my ds
: is invalid??
You use CS which is valid:
mov ax, cs:__djgpp_ds_alias
: But I think this will work
: and I'm able to load proper ds segment in my wrapper routine.
: I can put something like this in my wrapper:
: .
: .
: .
: mov ax, 0
: mov ds, ax
If this is in protected mode, you have an exception the moment you
access any data.
Right,
MartinS
- Raw text -