dasm-assembler / dasm

Macro assembler with support for several 8-bit microprocessors

Home Page:https://dasm-assembler.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for 'mul' instructions on for 68HC705

gtjennings1 opened this issue · comments

Hi there,

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

Is mul supported?

Thanks for your help

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)?

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.

Ok; thank you. I'll try it.

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.

That works great; thanks again.