home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Programming
/
cfasm
/
Codetest
/
test.s
Wrap
Text File
|
2000-04-27
|
1KB
|
69 lines
; Simple extended code test for cfasm
org $f8000000
structure test1,0
fixed ts_value1
float ts_value2
ulong ts_value3
label ts_SIZEOF
; MAC Accumulator
move.l ACC,d0
move.l d0,ACC
move.l #12345678,ACC
; MAC Mask
move.l MASK,d0
move.l d0,MASK
move.l #12345678,MASK
; MAC SR
move.l MACSR,d0
move.l d0,MACSR
move.l #12345678,MACSR
; Move MACSR to CCR
move.l MACSR,CCR
; MAC
mac.w d0,d1<<1
mac.l d0,d1
msac.w d0,d1
msac.l d0,d1
mac.w d0.u,d1.u>>1
msac.w d0,d1>>1
msac.w d0,d1<<1
macl.w d0,d1,(a0),d2
macl.w d0,d1,(a4),d6
macl.w d0.u,d1.u<<1,(a0),d2
macl.w d0.u,d1.u>>1,(a4),d6
macl.l d0,d1,(a0),d2
;
macl.w d0,d1,(a2),d6
macl.w d0,d1,(a2)+,d6
macl.w d0,d1,-(a2),d6
macl.w d0,d1,(10,a2),d6
macl.w d0,d1<<1,(10,a2),d6
macl.w d0,d1,(a2)&,d6
macl.w d0,d1,-(a2)&,d6
macl.w d0,d1,(a2)+&,d6
macl.w d0,d1,(8,a2)&,d6
macl.w d0,d1>>1,(a2)&,d6
macl.w d0,d1>>1,-(a2)&,d6
macl.w d0,d1>>1,(a2)+&,d6
macl.w d0,d1>>1,(8,a2)&,d6
move.l #ts_value1,d0
move.l #ts_value2,d0
move.l #ts_value3,d0