Re: A83: Re: Re: Re: Joe Wingerbermuhle?
[Prev][Next][Index][Thread]
Re: A83: Re: Re: Re: Joe Wingerbermuhle?
I was in one of those moods that night. But it was just an example, anyway.
If you want to pass it with B, here's SCaBBy's version: (and it works, too!)
dec b
ret z
xor a
loop:
ld c,-1
cpir
djnz loop
ret
-----Original Message-----
From: Joe Wingbermuehle <joewing@usmo.com>
To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Date: Saturday, November 07, 1998 9:57 PM
Subject: Re: A83: Re: Re: Re: Joe Wingerbermuhle?
>
>While we're on the optimization craze...
>btw, you're program really needs help if you need to optimize a string
>finder for speed...
>
>; input: hl->strings, b=string
>; output: hl->string(b)
>getString:
> xor a
> ld c,a
> or b
> ret z
>getStringL1:
> push bc
> cpir
> pop bc
> djnz getStringL1
> ret
>
>Joe Wingbermuehle
>http://www.usmo.com/~joewing/
>
>-----Original Message-----
>From: David Phillips <electrum@tfs.net>
>To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
>Date: Saturday, November 07, 1998 9:24 PM
>Subject: Re: A83: Re: Re: Re: Joe Wingerbermuhle?
>
>
>>
>>Yeah, probably do. But I'm getting good at writting small and fast z80
>>assembler. Incidentally, SCaBBy showed me how to make the routine even
>>faster/smaller.
>>
>>-----Original Message-----
>>From: Master M <benjamin99@juno.com>
>>To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
>>Date: Saturday, November 07, 1998 9:09 PM
>>Subject: Re: A83: Re: Re: Re: Joe Wingerbermuhle?
>>
>>
>>>
>>>You have _way_ too much time on your hands
>>>
>>>On Fri, 6 Nov 1998 23:28:34 -0600 "David Phillips" <electrum@tfs.net>
>>>writes:
>>>>
>>>>But they _are_ the same size, 13 bytes each. :)
>>>>
>>>>The only difference is that mine destroys DE, but that's not bad for
>>>>saving
>>>>21 t-states per loop iteration...
>>>>
>>>>-----Original Message-----
>>>>From: Joe Wingbermuehle <joewing@usmo.com>
>>>>To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
>>>>Date: Friday, November 06, 1998 3:40 PM
>>>>Subject: A83: Re: Re: Joe Wingerbermuhle?
>>>>
>>>>
>>>>>
>>>>>True, but I was writing the code to be small (so what else is new
>>>>hehe).
>>>>
>>>>>
>>>>>> Bytes: T-States:
>>>>>>=======================================================
>>>>>>Original routine: | 13 | 62 (23)
>>>>>>Preloaded byte counter: | 14 | 59 (30)
>>>>>>Preloaded byte counter w/o reload: | 13 | 55 (30)
>>>>>>Saved counters w/ registers: | 14 | 46 (30)
>>>>>>Final routine: | 13 | 41 (30)
>>>>
>>>>
>>>>
>>>
>>><<<<<<<<<<<<<<<<<<<<<<<<<+>>>>>>>>>>>>>>>>>>>>>>>>>
>>> See ya,
>>> Mastermind
>>>
>>> http://www.bigfoot.com/~mastermind5
>>>
>>>___________________________________________________________________
>>>You don't need to buy Internet access to use free Internet e-mail.
>>>Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
>>>or call Juno at (800) 654-JUNO [654-5866]
>>