1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-02-05 23:54:41 +00:00
Files
mist-devel.mist-board/tests/tg68k/bfins.s
2016-01-23 21:06:06 +01:00

34 lines
637 B
ArmAsm

;; http://oldwww.nvg.ntnu.no/amiga/MC680x0_Sections/bfins.HTML
;; http://68k.hax.com/BFINS
dc.l 0
dc.l start
test: dc.l @l
dc.l @l
dc.l @l
start:
move.l #@l,d0
move.l #@l,d2
move #@b,ccr
bfins d0,test+@b<0,3>{@b<0,31>:@b<1,32>}
move ccr,$c0ffee42+64
move #@b,ccr
bfins d0,d3{@b<0,31>:@b<1,32>}
move ccr,$c0ffee42+64
move.l test,d0
move.l test+4,d1
move.l test+8,d2
;; the following will write the register contents to stdout which will
;; then be used for the comparison
move.l d0,$c0ffee42
move.l d1,$c0ffee42+4
move.l d2,$c0ffee42+8
move.l d3,$c0ffee42+12
move.b #0,$beefed