Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #67

Re: Odd problem with int 0x21, ah = 0x4A

From Freedom on the Oceans <alex.buell@munted.org.uk>
Newsgroups comp.os.msdos.programmer
Subject Re: Odd problem with int 0x21, ah = 0x4A
Date 2011-04-28 19:30 +0100
Organization One very high maintenance cat
Message-ID <0coo88-leq.ln1@nntp.local.net> (permalink)
References <ci9o88-tf01.ln1@nntp.local.net> <0a735866-aa6d-4d72-ac5d-9662a2558bf8@v36g2000prm.googlegroups.com>

Show all headers | View raw


On Thu, 2011-04-28 at 10:58 -0700, Jim Leonard wrote:
> On Apr 28, 9:18 am, Freedom on the Oceans <alex.bu...@munted.org.uk>
> wrote:
> >         mov     ah, 0x4A
> >         int     0x21
> >         ret
> >
> > In the debugger, all segment registers all point to the same segment of
> > memory which is OK. After the call, DS gets trashed but everything looks
> > OK. I checked with the Ralf Brown's interrupt lists but it doesn't
> > mention anything about DS getting trashed. Any ideas why?
> 
> In a quick debug session right now in windows, DS was preserved.
> Maybe you should trace into the int to see where DS is getting trashed
> in your environment.  For that matter, mention what your environment
> is.

I'm running under MS-DOS 6.22. I'm also using insight 1.24 to debug as
DOS's debug is too old to decode the newer instructions that I'm using.
-- 
Tactical Nuclear Kittens

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Odd problem with int 0x21, ah = 0x4A Freedom on the Oceans <alex.buell@munted.org.uk> - 2011-04-28 15:18 +0100
  Re: Odd problem with int 0x21, ah = 0x4A Jim Leonard <mobygamer@gmail.com> - 2011-04-28 10:58 -0700
    Re: Odd problem with int 0x21, ah = 0x4A Freedom on the Oceans <alex.buell@munted.org.uk> - 2011-04-28 19:30 +0100
  Re: Odd problem with int 0x21, ah = 0x4A "R.Wieser" <address@not.available> - 2011-04-28 22:57 +0200
    Re: Odd problem with int 0x21, ah = 0x4A Ross Ridge <rridge@csclub.uwaterloo.ca> - 2011-04-30 01:02 -0400
      Re: Odd problem with int 0x21, ah = 0x4A Freedom on the Oceans <alex.buell@munted.org.uk> - 2011-05-01 08:48 +0100
        Re: Odd problem with int 0x21, ah = 0x4A "R.Wieser" <address@not.available> - 2011-05-01 13:43 +0200

csiph-web