943,948 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 502
  • Assembly RSS
Dec 10th, 2008
0

rotates

Expand Post »
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.
Similar Threads
Reputation Points: 5
Solved Threads: 1
Unverified User
carson myers is offline Offline
33 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: long jump in tasm
Next Thread in Assembly Forum Timeline: Arrays help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC