[retroforth] Re: ztype in assembler

  • From: "Helmar Wodtke" <helmwo@xxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Thu, 27 Jan 2005 00:52:57 +0100

retroforth@xxxxxxxxxxxxx schrieb am 27.01.05 00:42:25:
> 
> This is slightly smaller and faster:
But does not work correctly when a zero-length string is there... That will 
happen when interfacing C-libraries.
In old "real 8086" times,  there was a trick to hide unneeded instructions at 
the beginning of a loop:

> code 'ztc', _ztc
>  dup
***   db 0xB2 ; code for MOV DL,...
> .a: inc eax
>  cmp byte [eax], 0
>  jnz .a
>  sub eax, [esi]
> next

But I dont think this is a good thing today :) Could confuse the processor more 
than it helps.

> I would be interested to test on my Intel CPU at home...

Let me hear if you have results.

Bis dann,
Helmar
helmwo@xxxxxx

> -- 
> My GPG public key is at http://ronware.org/
> fingerprint: 8130 734C 69A3 6542 0853  CB42 3ECF 9259 AD29 415D
> 
> 
> 
> 



-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-pkcs7-signature
-- File: smime.p7s
-- Desc: S/MIME Cryptographic Signature



Other related posts: