| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| X-Recipient: | djgpp AT delorie DOT com |
| X-Original-DKIM-Signature: | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; |
| s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: | |
| mime-version; bh=tiEK74gaBd+E5WMGh5Gt7880HmyySdD7wNSn2bKdQAI=; b=TBQWD7p58gP6 | |
| HumM1fNT9AqOIBnpgqVzCy0lXa5Rty+9zA0UYusHU/pCApCKgU+2alGnfvv4Rr4UmOw4diwPU1Txa | |
| BhMEBDMxliEZoYVgRN1rJBuOgCCtRMy2gv+6xiyhG+oLYDjFqKCjnck690mgXZZ4z9o8Wd38BcU2w | |
| kaWFhT6qqTBmMU4/NP9PJB9KyBJnbOSYFqWzgUYL7BV0/kLt4+3xsBZivqGoFhaVZC7okYtyNk/vY | |
| 05C6nmUi4oYxQTCI8jMrYxqmRNAetHj8OIWNmXbz/2wiM//ey03yR29ahttdxlz5WXJl+drXfDdT9 | |
| OTVBZe0yIDj0MYLgdF3ytQ==; | |
| Date: | Sat, 24 Feb 2024 12:08:05 +0200 |
| Message-Id: | <86cysmyy2i.fsf@gnu.org> |
| From: | "Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> |
| To: | djgpp AT delorie DOT com |
| In-Reply-To: | |
| <CAA2C=vCiD_Uq25grxhsz+A_T_eTdFpO3x6jxQkme+tqqUEyTFA AT mail DOT gmail DOT com> | |
| (djgpp AT delorie DOT com) | |
| Subject: | Re: checking int2d amis appstring with djgpp |
| References: | <CAA2C=vB8ZicddhV9vbcu9RELueGs8o5_=OQdy0gejtPzFaYeJw AT mail DOT gmail DOT com> |
| <fb540633-1a6d-4a7b-8dd0-74b774ad8733 AT gmail DOT com> <CAA2C=vAMR_eEmGd01jZDe3013inxvtEM-0qB-yoCzsTF0Cx2zw AT mail DOT gmail DOT com> | |
| <86y1baz6o0 DOT fsf AT gnu DOT org> <CAA2C=vCiD_Uq25grxhsz+A_T_eTdFpO3x6jxQkme+tqqUEyTFA AT mail DOT gmail DOT com> | |
| Reply-To: | djgpp AT delorie DOT com |
> From: "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com> > Date: Sat, 24 Feb 2024 11:56:28 +0300 > > > > appstring = (char *)real2ptr(r_addr); > [...] > > You cannot access conventional (below 1MB) memory like that. You need > > to use one of the techniques described in the node "Xfer" in the > > DJGPPFAQ Info manual, to fetch the 5 bytes to protected-mode memory > > first. In your case, _dosmemget seems to be the best method. > > Thanks. So: is the following correct? Does it match the intention at > https://github.com/wbcbz7/sndlib-watcom/blob/master/sndlib.cpp#L41-L71 LGTM, but of course it needs to be tested ;-)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |