delorie.com/archives/browse.cgi | search |
From: | "Stefan Viljoen" <rylan AT intekom DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: rep stosb generates a gpf:-( |
Date: | Sun, 19 Sep 1999 20:01:52 +0300 |
Organization: | The South African Internet Exchange |
Lines: | 45 |
Message-ID: | <7s3ite$mn1$1@ctb-nnrp2.saix.net> |
References: | <Pine DOT SOL DOT 3 DOT 96 DOT 990915144809 DOT 14092B-100000 AT giasbgb> <37E29DEB DOT 3961CD69 AT hmc DOT edu> <7s0rvn$mbs$4 AT ctb-nnrp2 DOT saix DOT net> |
NNTP-Posting-Host: | pc36-01-p09.nt.saix.net |
X-Trace: | ctb-nnrp2.saix.net 937774830 23265 155.239.194.9 (19 Sep 1999 21:00:30 GMT) |
X-Complaints-To: | abuse AT saix DOT net |
NNTP-Posting-Date: | 19 Sep 1999 21:00:30 GMT |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2014.211 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Stefan Viljoen <rylan AT intekom DOT com> wrote in message news:7s0rvn$mbs$4 AT ctb-nnrp2 DOT saix DOT net... > > Nate Eldredge <neldredge AT hmc DOT edu> wrote in message > news:37E29DEB DOT 3961CD69 AT hmc DOT edu... > > "Santosh H." wrote: > > > > > > Hi, > > > I was trying today to port some of my graphics functions I'd written > for > > > borland C to DJGPP(why prot mode u knucklehead!sorry:-)).Right , So i > have > > > a procedure which i converted from TASM to NASM syntax.the procedure is > as > > > below > > > > > > _Drawhorizline: I correct myself: > I encountered EXACTLY the same problem in converting TASM code to NASM code. > Stosb stores the value in al (? was it ah?) to es:di right? I broke this > down to its components, doing something like > > mov [es:di],al > inc di The whole point of breaking down a composite instruction like stosb is to use different segment registers... - to make a stosb breakdown useful you need to replace ES with DS for example... Sorry! -- This message courtesy of RylanNet rylan AT intekom DOT co DOT za http://home.intekom.com/rylan/ -- StarWars for ever!.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |