Re: INC or ADD?


[Prev][Next][Index][Thread]

Re: INC or ADD?



INC A takes 4 clock ticks, ADD A, 1 takes 7.

INC A is smaller and faster.

Jim Reardon
jim.reardon@juno.com
Viva La Mexico
http://www.geocities.com/TimesSquare/Arcade/8210/
Always be nice to your enemies, just in case your friends turn out to be
a bunch of bastards.

On Thu, 17 Jul 1997 21:06:20 -0400 "Thomas J. Hruska" <thruska@TIR.COM>
writes:
>Okay, I need to know which code is faster (I don't care about
>size...just
>speed):
>
>INC A
>
>or
>
>ADD A,1
>
>
>
>                 Thomas J. Hruska -- thruska@tir.com
>Shining Light Productions -- "Meeting the needs of fellow programmers"
>         http://www.geocities.com/SiliconValley/Heights/8504
>                    http://shinelight.home.ml.org
>


References: