home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
LANGUAGES
/
xlate.lzh
/
test3.68
< prev
next >
Wrap
Text File
|
1994-08-10
|
15KB
|
325 lines
* TRANSLATION CARRIED OUT IN 68020 FULL-FORMAT MODE VIA TAB
* 6809 to 68000 test file
modes move.b #1,d0 * lda #1
move.b (a0),d0 * lda ,x
move.b (a1),d0 * lda ,y
move.b (a7),d0 * lda ,s
move.b (a6),d0 * lda ,u
move.b (0,a0),d0 * lda 0,x
move.b (2,a6),d0 * lda 2,dp
move.b ($2000,a0),d0 * lda $2000,x
move.b (a0)+,d0 * lda ,x+
move.b (a0)+,d0 * lda ,x++
move.b -(a0),d0 * lda ,-x
move.b -(a0),d0 * lda ,--x
move.b ($2000,pc),d0 * lda $2000,pcr
move.w #1,d2 * ldd #1
move.w (a0),d2 * ldd ,x
move.w (a1),d2 * ldd ,y
move.w (a7),d2 * ldd ,s
move.w (a6),d2 * ldd ,u
move.w (0,a0),d2 * ldd 0,x
move.w (2,a6),d2 * ldd 2,dp
move.w ($2000,a0),d2 * ldd $2000,x
move.w (a0)+,d2 * ldd ,x+
move.w (a0)+,d2 * ldd ,x++
move.w -(a0),d2 * ldd ,-x
move.w -(a0),d2 * ldd ,--x
move.w ($2000,pc),d2 * ldd $2000,pcr
move.b ([10,a6]),d0 * lda [10]
move.b ([a0]),d0 * lda [,x]
move.b ([a1]),d0 * lda [,y]
move.b ([a7]),d0 * lda [,s]
move.b ([a6]),d0 * lda [,u]
move.b ([0,a0]),d0 * lda [0,x]
move.b ([$2000,a0]),d0 * lda [$2000,x]
move.l (a0)+,a5 Load indirection register
move.b (a5),d0 * lda [,x++]
move.l -(a0),a5 Load indirection register
move.b (a5),d0 * lda [,--x]
move.b ([$2000,pc]),d0 * lda [$2000,pcr]
move.w ([10,a6]),d2 * ldd [10]
move.w ([a0]),d2 * ldd [,x]
move.w ([a1]),d2 * ldd [,y]
move.w ([a7]),d2 * ldd [,s]
move.w ([a6]),d2 * ldd [,u]
move.w ([0,a0]),d2 * ldd [0,x]
move.w ([$2000,a0]),d2 * ldd [$2000,x]
move.l (a0)+,a5 Load indirection register
move.w (a5),d2 * ldd [,x++]
move.l -(a0),a5 Load indirection register
move.w (a5),d2 * ldd [,--x]
move.w ([$2000,pc]),d2 * ldd [$2000,pcr]
start ext.w d1 Extend to word
lea (a0,d1.w),a0 * abx
fail Carry flag not included
add.b #1,d0 * adca #1
fail Carry flag not included
add.b #1,d1 * adcb #1
fail Carry flag not included
add.b (a0),d0 * adca ,x
fail Carry flag not included
add.b (a0),d1 * adcb ,x
add.b #1,d0 * adda #1
add.b #1,d1 * addb #1
add.w #1,d2 * addd #1
add.b (a0),d0 * adda ,x
add.b (a0),d1 * addb ,x
add.w (a0),d2 * addd ,x
and.b #1,d0 * anda #1
and.b #1,d1 * andb #1
and.b (a0),d0 * anda ,x
and.b (a0),d1 * andb ,x
andi #1,ccr * andcc #1
asl.b #1,d0 * asla
asl.b #1,d1 * aslb
asl (a0) * asl ,x
asr.b #1,d0 * asra
asr.b #1,d1 * asrb
asr (a0) * asr ,x
fail Tested register contents altered
and.b #1,d0 * bita #1
fail Tested register contents altered
and.b #1,d1 * bitb #1
fail Tested register contents altered
and.b (a0),d0 * bita ,x
fail Tested register contents altered
and.b (a0),d1 * bitb ,x
clr.b d0 * clra
clr.b d1 * clrb
clr.b (a0) * clr ,x
cmp.b #1,d0 * cmpa #1
cmp.b #1,d1 * cmpb #1
cmp.w #1,d2 * cmpd #1
cmp.l #1,a7 * cmps #1
cmp.l #1,a6 * cmpu #1
cmp.l #1,a0 * cmpx #1
cmp.l #1,a1 * cmpy #1
cmp.b (a0),d0 * cmpa ,x
cmp.b (a0),d1 * cmpb ,x
cmp.w (a0),d2 * cmpd ,x
cmp.l (a0),a7 * cmps ,x
cmp.l (a0),a6 * cmpu ,x
cmp.l (a0),a0 * cmpx ,x
cmp.l (a0),a1 * cmpy ,x
not.b d0 * coma
not.b d1 * comb
not.b (a0) * com ,x
stop * cwai
fail No 68000 equivalent
daa * daa
subq.b #1,d0 * deca
subq.b #1,d1 * decb
subq.b #1,(a0) * dec ,x
eori.b #1,d0 * eora #1
eori.b #1,d1 * eorb #1
fail 68000 eor instruction operates on memory
eor.b d0,(a0) * eora ,x
fail 68000 eor instruction operates on memory
eor.b d1,(a0) * eorb ,x
exg d0,d1 * exg a,b
exg d2,a0 * exg d,x
addq.b #1,d0 * inca
addq.b #1,d1 * incb
addq.b #1,(a0) * inc ,x
jmp (start,a6) * jmp start
jsr (start,a6) * jsr start
jmp ([a6]) * jmp [,u]
jsr ([a6]) * jsr [,u]
move.b #1,d0 * lda #1
move.b #1,d1 * ldb #1
move.w #1,d2 * ldd #1
move.l #1,a7 * lds #1
move.l #1,a6 * ldu #1
move.l #1,a0 * ldx #1
move.l #1,a1 * ldy #1
move.b (a0),d0 * lda ,x
move.b (a0),d1 * ldb ,x
move.w (a0),d2 * ldd ,x
move.l (a0),a7 * lds ,x
move.l (a0),a6 * ldu ,x
move.l (a0),a0 * ldx ,x
move.l (a0),a1 * ldy ,x
lea.l (a0),a7 * leas ,x
lea.l (a0),a6 * leau ,x
lea.l (a0),a0 * leax ,x
lea.l (a0),a1 * leay ,x
lsl.b #1,d0 * lsla
lsl.b #1,d1 * lslb
lsl (a0) * lsl ,x
lsr.b #1,d0 * lsra
lsr.b #1,d1 * lsrb
lsr (a0) * lsr ,x
ext.w d0 Extend to word
ext.w d1 Extend to word
move.w d1,d2 Move to destination register
mulu.w d0,d2 * mul
neg.b d0 * nega
neg.b d1 * negb
neg.b (a0) * neg ,x
nop * nop
or.b #1,d0 * ora #1
or.b #1,d1 * orb #1
ori #1,ccr * orcc #1
or.b (a0),d0 * ora ,x
or.b (a0),d1 * orb ,x
ori ,x,ccr * orcc ,x
movem.l d0,-(a7) * pshs a
fail Cannot push DP register
movem.l d0/d1/d2/a0/a1/a6,-(a7) * pshs a,b,d,x,y,u,dp
movem.l d0/d2,-(a7) * pshs a,d,ccr
fail Cannot push PC register
movem.l d0/d2,-(a7) * pshs a,d,pc
fail Cannot push PC register
movem.l d0,-(a6) * pshu a
fail Cannot push DP register
movem.l d0/d1/d2/a0/a1/a7,-(a6) * pshu a,b,d,x,y,s,dp
movem.l d0/d2,-(a6) * pshu a,d,ccr
fail Cannot push PC register
movem.l d0/d2,-(a6) * pshu a,d,pc
fail Cannot push PC register
movem.l (a7)+,d0 * puls a
fail Cannot pull DP register
movem.l (a7)+,d0/d1/d2/a0/a1/a6 * puls a,b,d,x,y,u,dp
movem.l (a7)+,d0/d2 * puls a,d,ccr
movem.l (a7)+,d0/d2 * puls a,d,pc
rts
rts * puls ccr,pc
movem.l (a6)+,d0 * pulu a
fail Cannot pull DP register
movem.l (a6)+,d0/d1/d2/a0/a1/a7 * pulu a,b,d,x,y,s,dp
movem.l (a6)+,d0/d2 * pulu a,d,ccr
fail Cannot pull PC register
movem.l (a6)+,d0/d2 * pulu a,d,pc
fail Cannot pull PC register
rol.b #1,d0 * rola
rol.b #1,d1 * rolb
rol (a0) * rol ,x
ror.b #1,d0 * rora
ror.b #1,d1 * rorb
ror (a0) * ror ,x
rte * rti
rts * rts
fail Carry flag not included
sub.b #1,d0 * sbca #1
fail Carry flag not included
sub.b #1,d1 * sbcb #1
fail Carry flag not included
sub.b (a0),d0 * sbca ,x
fail Carry flag not included
sub.b (a0),d1 * sbcb ,x
fail No 68000 equivalent
sex * sex
move.b d0,(a0) * sta ,x
move.b d1,(a0) * stb ,x
move.w d2,(a0) * std ,x
move.l a7,(a0) * sts ,x
move.l a6,(a0) * stu ,x
move.l a0,(a0) * stx ,x
move.l a1,(a1) * sty ,y
sub.b #1,d0 * suba #1
sub.b #1,d1 * subb #1
sub.w #1,d2 * subd #1
sub.b (a0),d0 * suba ,x
sub.b (a0),d1 * subb ,x
sub.w (a0),d2 * subd ,x
trap #0 * swi
trap #1 * swi2
trap #2 * swi3
fail No 68000 equivalent
sync * sync
move.b d0,d1 * tfr a,b
move.w d2,a0 * tfr d,x
tst.b d0 * tsta
tst.b d1 * tstb
tst.b (a0) * tst ,x
bra.s start * bra start
fail 68000 lacks brn and lbrn
nop * brn start
bcc.s start * bcc start
bcs.s start * bcs start
beq.s start * beq start
bge.s start * bge start
bgt.s start * bgt start
bhi.s start * bhi start
bhs.s start * bhs start
ble.s start * ble start
blo.s start * blo start
bls.s start * bls start
blt.s start * blt start
bmi.s start * bmi start
bne.s start * bne start
bmi.s start * bmi start
bne.s start * bne start
bpl.s start * bpl start
bvc.s start * bvc start
bvs.s start * bvs start
bra start * lbra start
fail 68000 lacks brn and lbrn
nop * lbrn start
bcc start * lbcc start
bcs start * lbcs start
beq start * lbeq start
bge start * lbge start
bgt start * lbgt start
bhi start * lbhi start
bhs start * lbhs start
ble start * lble start
blo start * lblo start
bls start * lbls start
blt start * lblt start
bmi start * lbmi start
bne start * lbne start
bmi start * lbmi start
bne start * lbne start
bpl start * lbpl start
bvc start * lbvc start
bvs start * lbvs start
bsr.s start * bsr start
bsr start * lbsr start