Re: You mean like this? Message #9 Posted by Jeff on 26 Apr 2003, 8:46 a.m., in response to message #8 by Vieira, Luiz C. (Brazil)
Thanks to all who posted responses on this thread. I have taken the liberty of compiling all the responses into a list and will be trying each one out for byte/time. I have been working on this routine for a while and thought that there surely was a better method to complete what I needed to have done. This is the reason that I posted this challenge. Below is the list. I will post the byte counts and input/outputs sometime this weekend. Again thanks to all.
E X<>Y X<=Y? GTO 01 2.5 X<>Y X<=Y? GTO 02 3.125 X<>Y X<=Y? GTO 03 1.08 * RTN LBL 01 .1 + RTN LBL 01 1.1 + RTN LBL 03 .2 + RTN "Jeff" my original program.
1 - X<=0? GTO 00 1.5 - X<=0? GTO 01 0.625 - X<=0? GTO 02 3.125 + 1.08 * GTO 03 LBL 00 2 + GTO 03 LBL 01 2.5 + 1.1 * GTO 03 LBL 02 3.325 + LBL 03
1 - X<=0? GTO 00 1.5 - X<=0? GTO 01 0.625 - X<=0? GTO 02 3.125 + 1.08 * GTO 03 LBL 00 2 + GTO 03 LBL 01 2.5 + 1.1 * GTO 03 LBL 02 3.325 + LBL 03
1 - X<=0? GTO 00 1.5 - X<=0? GTO 01 0.625 - X<=0? GTO 02 3.125 + 1.08 * RTN LBL 00 2 + RTN LBL 01 2.5 + 1.1 * RTN LBL 02 3.325 + RTN
1 X<Y? GTO 01 + RTN LBL 01 CLX 2.5 X<Y? GTO 01 CLX 1.1 * RTN LBL 01 CLX 3.125 X<Y? GTO 01 CLX .2 + RTN LBL 01 CLX 1.08 * RTN
3.125 x<>y x>y? GTO 00 2.0 x<>y x>y? GTO 01 1.0 x<>y x>y GTO 02 0.1 + GTO 03 LBL 00 1.08 * GTO 03 LBL 01 0.2 + GTO 03 LBL 02 1.1 * LBL 03
3.125 x<>y x>y? GTO 00 2.0 x<>y x>y? GTO 01 1.0 x<>y x>y GTO 02 0.1 + GTO 03 LBL 00 1.08 * GTO 03 LBL 01 0.2 + GTO 03 LBL 02 1.1 * LBL 03
|