Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Assembler optimisation - variant 3, sbb (Developers)

posted by cm(R) Homepage E-mail, Düsseldorf, Germany, 14.05.2012, 18:22

> VARIANT 3:
> sub edx,ecx
> sbb eax,eax
> and eax,edx
> add ecx,eax

Oh yeah, I forgot about sbb for that.

> Difference between V2 and V3 is only borderly significant, maybe V3 is
> sligtly faster but measurement would be must done in pure DOS, not in Win98
> I am running just now.

Hmm, even if variant 3 is only a little faster or about equally fast, it's less code and makes the source easier to understand.

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
15317 Postings in 1383 Threads, 254 registered users, 19 users online (0 registered, 19 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum