cqo instruction

20 views
Skip to first unread message

itre...@gmail.com

unread,
Oct 17, 2013, 3:01:14 AM10/17/13
to asmji...@googlegroups.com
Hi all, 

I'm trying to do an idiv with a quadword and keep running into EXC_ARITHMETIC. I think RDX hasn't been sign extended and is causing the trouble. Is there any way to issue the cqo instruction?

Thanks!

Petr Kobalíček

unread,
Oct 17, 2013, 3:51:50 AM10/17/13
to asmjit-dev
Hi,

isn't that signal caused by division by zero? If that's the case there should be condition to prevent it before the idiv instruction is executed.

I'm not sure about the availability of cqo instruction in the old asmjit, but I added it already to the new version I'm preparing.

Best
Petr

--
 
---
You received this message because you are subscribed to the Google Groups "asmjit-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asmjit-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

itre...@gmail.com

unread,
Oct 17, 2013, 4:44:51 AM10/17/13
to asmji...@googlegroups.com
Manually clearing rdx to 0 worked, so I'm still working under the assumption that that's the problem. Of course, proper sign extension is better. I'd be happy to try cqo when it's available!

Thanks so much!
Reply all
Reply to author
Forward
0 new messages