[retroforth] Re: ztype in assembler

  • From: "Helmar Wodtke" <helmwo@xxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Wed, 26 Jan 2005 22:30:43 +0100

retroforth@xxxxxxxxxxxxx schrieb am 26.01.05 22:20:57:
With a shorter loop:

> ; ----------------------------------------------------------------------
> code 'ztype',ztype
>         push ebx                ;
>         push ecx                ;
>         upop ebx                ;
>         lea ecx, byte [ebx - 1]
> .a:     inc ecx
>         cmp byte [ecx], 0
>         jnz .a
>         sub ecx,ebx
>         jmp type.a
> ; next

Ron, expert :) Faster?

Bis dann,
Helmar
helmwo@xxxxxx


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



Other related posts: