Re: INC or ADD?


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

Re: INC or ADD?



To my knowledge INC takes only one clock cycle, so therefore it must be
either faster or equal in speed to ADD. (I'm not sure about how many
clock cycles an add instruction needs.)


Thomas J. Hruska wrote:
>
> 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

--
Joe Davison
mailto:lithuania@geocities.com

Perhaps a children's play toy of the mid-80s said it best:
     "Transformers-- more than meets the eye."


References: