home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.msdos.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!agate!dog.ee.lbl.gov!news!humu!pilikia!pegasus!tleylan
- From: tleylan@pegasus.com (Tom Leylan)
- Subject: Re: This is strange, div doesn't work....
- Message-ID: <1992Dec20.073420.12968@pegasus.com>
- Organization: Pegasus, Honolulu
- References: <1gp6q9INNgdd@aludra.usc.edu>
- Date: Sun, 20 Dec 92 07:34:20 GMT
- Lines: 23
-
- mduffy@aludra.usc.edu (Michael Duffy) writes:
-
- >The following code gives me a divide error:
- >
- > mov ax,0035h
- > mov dx,01h
- > div dx
- >
- >It should work. I don't know why it doesn't. Could some assembly language
- >genius please show me the light?
-
- I believe you want:
-
- mov dl, 01h
- div dl
-
- The problem disappears and hopefully you get the right answer.
-
- tom
-
- <email coming your way also>
-
-
-