Results 1 to 2 of 2

Thread: Incrementing SI by a value held in register AL

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    2

    Question Incrementing SI by a value held in register AL

    i have a value in AL, and I want to increment SI by that value.

    I tried using ADD SI, AL but the assembler does not accept this (i get a wrong paramters error!)

    The work around i used is a loop, incrementing SI each time by one. But this is inefficient!

    How can this be resolved!!!??

    thanks again!

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Incrementing SI by a value held in register AL

    Move SI to another register that you can add to A, then move the result to SI.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width