rotates

Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2007
Posts: 33
Reputation: carson myers has a little shameless behaviour in the past 
Solved Threads: 1
carson myers carson myers is offline Offline
Light Poster

rotates

 
0
  #1
Dec 10th, 2008
I'm trying to output a hex value and TASM won't let me use any count on rotates and shifts other than 1. If I put rol dx,1h it works fine but if I put rol dx,4h it generates an error. So I have to call rol dx,1h four times...it's a pain. But if I don't use an operand it tells me there are too few operands. Why would it require an operand if the only one that works is 1? I don't understand

---edit---
nevermind, I just put CL in as an operand instead. Worked fine.
Last edited by carson myers; Dec 10th, 2008 at 12:46 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



Tag cloud for Assembly
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC