Post by Kurt LidlPost by Anders MagnussonAnyone know of PIC docs for m68k? Google do not find anything useful
for me...
"Principles of Computer Hardware", but Alan Clements has a section
about PIC code in chapter 6, that describes in detail some of the
limitations of PIC code on the m68k. (Around page 250, according
to Google Books.)
As I recall, the branch relative operations only have a 16bit
displacement on the 68000/68010. On the 68020/68030/68040,
there's a 32bit offset variant for BRA, in addition to the
8bit and 16bit versions of the instruction. (Presumably
the 68060 is like the 68040, but I've never used one of those.)
I did. the 060 is like 040 except it needs to emulate the hard stuff
floating math (sin,cos and so on), 32:32=>64 bit MUL/DIVs, MOVEP (which
noone uses ;)
It also has two ALUs or whatever, so it can execute two instructions in
paralell if god is good.
Post by Kurt LidlThe MOVE instruction only has 16 bit displacement for the
address register indirect addressing, which is what drives
the +/- 32K limitation for PIC code. At least as I understand it.
I think on 020+ you can do 32-bit offsets with the address register
indirect addressing.
MOVE.W #1234,(PC,A0.L) or how you wrote that on amiga, dunno how it looks
in gas.
http://www.chemie.fu-berlin.de/chemnet/use/info/gas/gas_15.html
that mentions .w or .l as a size for the displacement.
--
May the most significant bit of your life be positive.