Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I need to call a real mode interrupt (say int 21h), and I have to set DS:DX to the segment:offset of some data variable. How can I do that?

DS DX int interrupt mode segment
0
Posted

I need to call a real mode interrupt (say int 21h), and I have to set DS:DX to the segment:offset of some data variable. How can I do that?

0

It’s possible to emulate the real mode interrupt by means of special DPMI function, which is implemented in MsDos and Intr procedures (see our on-line help system for the DOS unit description). Just keep in mind, that you have to allocate a data block in the low memory area (1st megabyte) using AllocDosMemoryBlock or DosMemoryAlloc function from the DPMI unit.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123