Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for 'mul' instructions on for 68HC705 #127

Open
gtjennings1 opened this issue Mar 23, 2022 · 5 comments
Open

Support for 'mul' instructions on for 68HC705 #127

gtjennings1 opened this issue Mar 23, 2022 · 5 comments

Comments

@gtjennings1
Copy link

Hi there,

68705_test.asm (505): error: Unknown Mnemonic 'mul'.

Is mul supported?

Thanks for your help

@GrantMTG
Copy link

I don't see that in the data sheets. Do you have a document that indicates there is such an opcode (for the part number you are using)?

@GrantMTG
Copy link

I don't see that in the data sheets. Do you have a document that indicates there is such an opcode (for the part number you are using)?

https://www.nxp.com/docs/en/data-sheet/MC68HC705P6A.pdf

Never mind. I was thinking of the 68705 (sans HC). If you need one in a pinch you can drop a Define Constant Byte 0x42 to get you by.

@gtjennings1
Copy link
Author

Ok; thank you. I'll try it.

@andrew-davie
Copy link
Member

andrew-davie commented Mar 23, 2022

A macro would make it easy...

  MAC mul
 dc $42
  ENDM

and usage... just use "mul" and it would look identical to an implemented instruction.

@gtjennings1
Copy link
Author

That works great; thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants