Mail Archives: djgpp/1998/12/20/04:37:15
On Fri, 18 Dec 1998, Mauro Da Ros wrote:
> void Dmempoke ( int ofs , unsigned char c) {
> _farsetsel (_dos_ds);
> _farnspokeb ( RAMTAMPONE + (long) ofs, c);
> }
A minor remark: it doesn't make sense to use _farsetsel if you only
need to peek/poke a single byte. Use _farpeekb(_dos_ds, RAMTAMPONE+ofs)
instead.
This isn't a bug, so it is not the reason for whatever problems you
have.
> it works. If i enclose in my allegro application (780 K) it, it
> DOESN'T WORK :((((
> I think there are problems on that _dos_ds, but I don't know
> WHAT to use !!!
The code you posted is perfectly valid, and the use of _dos_ds is okay
as well. Most probably, the problem is elsewhere.
- Raw text -