View Single Post
Old 2017-03-05, 15:13   #6
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

5·1,217 Posts
Default

Quote:
Originally Posted by wombatman View Post
Here's a few of the errors (there are ~2 dozen, so I won't put them all):

Code:
pt64.s:7: Error: unknown mnemonic `movq' -- `movq %r11,%rax'
pt64.s:8: Error: unknown mnemonic `mulq' -- `mulq %r11'
pt64.s:9: Error: unknown mnemonic `movq' -- `movq %rdx,%r11'
pt64.s:10: Error: unknown mnemonic `mulq' -- `mulq %r8'
pt64.s:11: Error: unknown mnemonic `mulq' -- `mulq %rdi'
pt64.s:12: Error: unknown mnemonic `xorq' -- `xorq %rax,%rax'
pt64.s:13: Error: unknown mnemonic `subq' -- `subq %rdx,%r11'
I'm thinking you're right that it's x86-64 code that will need to be converted, but I'll have a look a bit later.
Yes indeed. rax, rdx, rdi. Definitely not AArch64. You'll need x0, x1, w0, w1, ...
retina is offline   Reply With Quote