Re: Software for MS-DOS 1.25

From: Spiro Trikaliotis <ml-cbmhackers_at_trikaliotis.net>
Date: Sat, 21 Oct 2017 13:00:38 +0200
Message-ID: <20171021110038.GA12817@hermes.local.trikaliotis.net>
Hello,

* On Sat, Oct 21, 2017 at 06:01:03AM +0200 Michał Pleban wrote:
> Mia Magnusson wrote:
> 
> > Well, AFAIK you can't REP more than one instruction. The question is
> > will the 8088 throw away the result of one CMP when the next one runs
> > in the REP loop? Or is it possible to break out of the REP loop if CMP
> > sets the condition codes to "the data differs"?
> 
> Right. It would probably be necessary to do something like this:
> 
> loop:
> CMPSW
> JNE ...
> LOOP loop

Perhaps I am missing the point, but:

Shouldn't

  REPNE CMPSW
  JNE ...

do what you want to achieve?

Regards,
Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/

       Message was sent through the cbm-hackers mailing list
Received on 2017-10-21 12:00:02

Archive generated by hypermail 2.2.0.