Want to see what people are talking about? See the latest forum posts.

View \MNEMTEST.ASM

Motorola 6805 cross-assembler

Submitted By: WEBMASTER
Rating: (Not rated) (Rate It)


.org 0
         brset0 h'00,reltst1
         brset0 h'
ff,reltst1
         brset1 h'00,reltst1
         brset1 h'
ff,reltst1
         brset2 h'00,reltst1
         brset2 h'
ff,reltst1
         brset3 h'00,reltst1
         brset3 h'
ff,reltst1
         brset4 h'00,reltst1
         brset4 h'
ff,reltst1
         brset5 h'00,reltst1
         brset5 h'
ff,reltst1
         brset6 h'00,reltst1
         brset6 h'
ff,reltst1
         brset7 h'00,reltst1
         brset7 h'
ff,reltst1
reltst1: brclr0 h'00,reltst1
         brclr0 h'
ff,reltst1
         brclr1 h'00,reltst1
         brclr1 h'
ff,reltst1
         brclr2 h'00,reltst1
         brclr2 h'
ff,reltst1
         brclr3 h'00,reltst1
         brclr3 h'
ff,reltst1
         brclr4 h'00,reltst1
         brclr4 h'
ff,reltst1
         brclr5 h'00,reltst1
         brclr5 h'
ff,reltst1
         brclr6 h'00,reltst1
         brclr6 h'
ff,reltst1
         brclr7 h'00,reltst1
         brclr7 h'
ff,reltst1
         bset0 h'00
         bset0 h'
ff
         bset1 h'00
         bset1 h'
ff
         bset2 h'00
         bset2 h'
ff
         bset3 h'00
         bset3 h'
ff
         bset4 h'00
         bset4 h'
ff
         bset5 h'00
         bset5 h'
ff
         bset6 h'00
         bset6 h'
ff
         bset7 h'00
         bset7 h'
ff
         bclr0 h'00
         bclr0 h'
ff
         bclr1 h'00
         bclr1 h'
ff
         bclr2 h'00
         bclr2 h'
ff
         bclr3 h'00
         bclr3 h'
ff
         bclr4 h'00
         bclr4 h'
ff
         bclr5 h'00
         bclr5 h'
ff
         bclr6 h'00
         bclr6 h'
ff
         bclr7 h'00
         bclr7 h'
ff
         add #h'00
         add #h'
ff
         add 100
         add h'00,x
         add h'
ff,x
         add 1000
         add h'00,x1
         add h'
ff,x1
         add 1000,x
         add h'00,x2
         add h'
ff,x2
         add 1000,x2
         adc #h'00
         adc #h'
ff
         adc 100
         adc h'00,x
         adc h'
ff,x
         adc 1000
         and #h'00
         and #h'
ff
         and 100
         and h'00,x
         and h'
ff,x
         and 1000
         bit #h'00
         bit #h'
ff
         bit 100
         bit h'00,x
         bit h'
ff,x
         bit 1000
         cmp #h'00
         cmp #h'
ff
         cmp 100
         cmp h'00,x
         cmp h'
ff,x
         cmp 1000
         eor #h'00
         eor #h'
ff
         eor 100
         eor h'00,x
         eor h'
ff,x
         eor 1000
         lda #h'00
         lda #h'
ff
         lda 100
         lda h'00,x
         lda h'
ff,x
         lda 1000
         ora #h'00
         ora #h'
ff
         ora 100
         ora h'00,x
         ora h'
ff,x
         ora 1000
         sta 100
         sta h'00,x
         sta h'
ff,x
         sta 1000
         sub #h'00
         sub #h'
ff
         sub 100
         sub h'00,x
         sub h'
ff,x
         sub 1000
         sbc #h'00
         sbc #h'
ff
         sbc 100
         sbc h'00,x
         sbc h'
ff,x
         sbc 1000
         clra
         clrx
         clr 100
         clr h'00,x
         clr h'
ff,x
         clr 0,x
         coma
         comx
         com 100
         com h'00,x
         com h'
ff,x
         com 0,x
         nega
         negx
         neg 100
         neg h'00,x
         neg h'
ff,x
         neg 0,x
         deca
         decx
         dec 100
         dec h'00,x
         dec h'
ff,x
         dec 0,x
         inca
         incx
         inc 100
         inc h'00,x
         inc h'
ff,x
         inc 0,x
         rola
         rolx
         rol 100
         rol h'00,x
         rol h'
ff,x
         rol 0,x
         rora
         rorx
         ror 100
         ror h'00,x
         ror h'
ff,x
         ror 0,x
         lsla
         lslx
         lsl 100
         lsl h'00,x
         lsl h'
ff,x
         lsl 0,x
         asra
         asrx
         asr 100
         asr h'00,x
         asr h'
ff,x
         asr 0,x
         lsra
         lsrx
         lsr 100
         lsr h'00,x
         lsr h'
ff,x
         lsr 0,x
         tsta
         tstx
         tst 100
         tst h'00,x
         tst h'
ff,x
         tst 0,x
         jmp x
         jmp 0,x
         jmp 100,x
         jmp 1000,x
         jmp 100,x1
         jmp 0,x1
         jmp 100
         jmp 1000
         jsr x
         jsr 0,x
         jsr 100,x
         jsr 1000,x
         jsr 100,x1
         jsr 0,x1
         jsr 100
         jsr 1000
         ldx #h'00
         ldx #h'
ff
         ldx x
         ldx 0,x
         ldx 100,x
         ldx 1000,x
         ldx 100,x1
         ldx 0,x1
         ldx 100
         ldx 1000
         cpx #h'00
         cpx #h'
ff
         cpx x
         cpx 0,x
         cpx 100,x
         cpx 1000,x
         cpx 100,x1
         cpx 0,x1
         cpx 100
         cpx 1000
         stx x
         stx 0,x
         stx 100,x
         stx 1000,x
         stx 100,x1
         stx 0,x1
         stx 100
         stx 1000
         tax
         txa
         nop
         rti
         rts
         swi
         wait
         clc
         cli
         rsp
         sec
         sei
         stop
         bra reltst
         brn reltst
         bhi reltst
         bls reltst
         bcc reltst
         bcs reltst
reltst:  bne reltst
         beq reltst
         bhcc reltst
         bhcs reltst
         bpl reltst
         bmi reltst
         bmc reltst
         bms reltst
         bil reltst
         bih reltst
         bsr reltst
synctst1:
         brset0 forward1,reltst2
         brset0 forward2,reltst2
         brset1 forward1,reltst2
         brset1 forward2,reltst2
         brset2 forward1,reltst2
         brset2 forward2,reltst2
         brset3 forward1,reltst2
         brset3 forward2,reltst2
         brset4 forward1,reltst2
         brset4 forward2,reltst2
         brset5 forward1,reltst2
         brset5 forward2,reltst2
         brset6 forward1,reltst2
         brset6 forward2,reltst2
         brset7 forward1,reltst2
         brset7 forward2,reltst2
reltst2: brclr0 forward1,reltst2
         brclr0 forward2,reltst2
         brclr1 forward1,reltst2
         brclr1 forward2,reltst2
         brclr2 forward1,reltst2
         brclr2 forward2,reltst2
         brclr3 forward1,reltst2
         brclr3 forward2,reltst2
         brclr4 forward1,reltst2
         brclr4 forward2,reltst2
         brclr5 forward1,reltst2
         brclr5 forward2,reltst2
         brclr6 forward1,reltst2
         brclr6 forward2,reltst2
         brclr7 forward1,reltst2
         brclr7 forward2,reltst2
         bset0 forward1
         bset0 forward2
         bset1 forward1
         bset1 forward2
         bset2 forward1
         bset2 forward2
         bset3 forward1
         bset3 forward2
         bset4 forward1
         bset4 forward2
         bset5 forward1
         bset5 forward2
         bset6 forward1
         bset6 forward2
         bset7 forward1
         bset7 forward2
         bclr0 forward1
         bclr0 forward2
         bclr1 forward1
         bclr1 forward2
         bclr2 forward1
         bclr2 forward2
         bclr3 forward1
         bclr3 forward2
         bclr4 forward1
         bclr4 forward2
         bclr5 forward1
         bclr5 forward2
         bclr6 forward1
         bclr6 forward2
         bclr7 forward1
         bclr7 forward2
         add #forward1
         add #forward2
         add 100
         add forward1
         add forward1,x
         add forward2,x
         add 1000
         add forward1,x1
         add forward2,x1
         add 1000,x
         add forward1,x2
         add forward2,x2
         add 1000,x2
         add forward3,x
         add forward1,x1
         add forward2,x1
         add forward3,x2
         adc #forward1
         adc #forward2
         adc 100
         adc forward1,x
         adc forward2,x
         adc 1000
         and #forward1
         and #forward2
         and 100
         and forward1,x
         and forward2,x
         and 1000
         bit #forward1
         bit #forward2
         bit 100
         bit forward1,x
         bit forward2,x
         bit 1000
         cmp #forward1
         cmp #forward2
         cmp 100
         cmp forward1,x
         cmp forward2,x
         cmp 1000
         eor #forward1
         eor #forward2
         eor 100
         eor forward1,x
         eor forward2,x
         eor 1000
         lda #forward1
         lda #forward2
         lda 100
         lda forward1,x
         lda forward2,x
         lda 1000
         ora #forward1
         ora #forward2
         ora 100
         ora forward1,x
         ora forward2,x
         ora 1000
         sta 100
         sta forward1,x
         sta forward2,x
         sta 1000
         sub #forward1
         sub #forward2
         sub 100
         sub forward1,x
         sub forward2,x
         sub 1000
         sbc #forward1
         sbc #forward2
         sbc 100
         sbc forward1,x
         sbc forward2,x
         sbc 1000
         clra
         clrx
         clr 100
         clr forward1
         clr forward2
         clr forward1,x
         clr forward2,x
         clr 0,x
         coma
         comx
         com 100
         com forward1,x
         com forward2,x
         com 0,x
         nega
         negx
         neg 100
         neg forward1,x
         neg forward2,x
         neg 0,x
         deca
         decx
         dec 100
         dec forward1,x
         dec forward2,x
         dec 0,x
         inca
         incx
         inc 100
         inc forward1,x
         inc forward2,x
         inc 0,x
         rola
         rolx
         rol 100
         rol forward1,x
         rol forward2,x
         rol 0,x
         rora
         rorx
         ror 100
         ror forward1,x
         ror forward2,x
         ror 0,x
         lsla
         lslx
         lsl 100
         lsl forward1,x
         lsl forward2,x
         lsl 0,x
         asra
         asrx
         asr 100
         asr forward1,x
         asr forward2,x
         asr 0,x
         lsra
         lsrx
         lsr 100
         lsr forward1,x
         lsr forward2,x
         lsr 0,x
         tsta
         tstx
         tst 100
         tst forward1,x
         tst forward2,x
         tst 0,x
         tst 0,x1
         tst h'ff,x1
         jmp x
         jmp 0,x
         jmp 100,x
         jmp 1000,x
         jmp 100,x1
         jmp 0,x1
         jmp 100
         jmp 1000
         jsr x
         jsr 0,x
         jsr 100,x
         jsr 1000,x
         jsr 100,x1
         jsr 0,x1
         jsr 100
         jsr 1000
         ldx #forward1
         ldx #forward2
         ldx x
         ldx 0,x
         ldx 100,x
         ldx 1000,x
         ldx 100,x1
         ldx 0,x1
         ldx 100
         ldx 1000
         cpx #forward1
         cpx #forward2
         cpx x
         cpx 0,x
         cpx 100,x
         cpx 1000,x
         cpx 100,x1
         cpx 0,x1
         cpx 100
         cpx 1000
         stx x
         stx 0,x
         stx 100,x
         stx 1000,x
         stx 100,x1
         stx 0,x1
         stx 100
         stx 1000
         tax
         txa
         nop
         rti
         rts
         swi
         wait
         clc
         cli
         rsp
         sec
         sei
         stop
         bra reltst3
         brn reltst3
         bhi reltst3
         bls reltst3
         bcc reltst3
         bcs reltst3
reltst3:  bne reltst3
         beq reltst3
         bhcc reltst3
         bhcs reltst3
         bpl reltst3
         bmi reltst3
         bmc reltst3
         bms reltst3
         bil reltst3
         bih reltst3
         bsr reltst3
synctst2:
        .equ forward1,h'
00
        .equ forward2,h'ff
        .equ forward3,1000
        .org h'
1000
         .end

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.