bebbo / binutils-gdb

Unofficial mirror of sourceware binutils-gdb repository. Updated daily.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git
GNU General Public License v2.0
3 stars 3 forks source link

FEATURE REQUEST: Please add support for Apollo 68080 instruction MOVE2.L #40

Closed GunnarVB closed 9 months ago

GunnarVB commented 9 months ago

Hello Stefan,

Could you please be so kind and add to binutils, support for the Apollo 68080 instruction MOVE2.L

To file: projects/binutils/opcodes/m68k-opc.c please add these 2 lines:

{"move2l", 4,   two(0007200, 000021), two(0177700, 006077), "$sR1R2", m68080 }, // APOLLO 68080 
{"move2l", 4,   two(0007200, 004021), two(0177700, 006077), "R1R2$s", m68080 }, // APOLLO 68080

The move2.l instruction can be used to load 2 32bit values to 2 register with 1 instruction - needing 1 cycle.

Example:

move2.l  4(A2),D0:A0

does the same as

move.l  4(A2),D0
move.l  8(A2),A0

--

The instruction can both read and write to memory

move.l  D2,10(A2)
move.l  D3,14(A2)

=>

move2.l D2:D3,10(A2)

The instruction does support any EA.

Many thanks in advance!!