home *** CD-ROM | disk | FTP | other *** search
- ;Test correct assembly all instructions with all adressing modes
- ;From the examples provided with Matthew Dillon's DASM
- ;
- ;Updated for asm6502 and modified by Alain BROBECKER, on 25-Aug-1998
-
- #name TestAsm2X
- #list
-
- #set byte 0
- #set word 256
-
- adc #byte
- adc z,byte
- adc z,byte,x
- adc word
- adc word,x
- adc word,y
- adc (byte,x)
- adc (byte),y
-
- and #byte
- and z,byte
- and z,byte,x
- and word
- and word,x
- and word,y
- and (byte,x)
- and (byte),y
-
- asl:asl a
- asl z,byte
- asl z,byte,x
- asl word
- asl word,x
-
- bcc byte
- bcs byte
- beq byte
- bit z,byte
- bit word
- bmi byte
- bne byte
- bpl byte
- brk
- bvc byte
- bvs byte
- clc
- cld
- cli
- clv
-
- cmp #byte
- cmp z,byte
- cmp z,byte,x
- cmp word
- cmp word,x
- cmp word,y
- cmp (byte,x)
- cmp (byte),y
-
- cpx #byte
- cpx z,byte
- cpx word
-
- cpy #byte
- cpy z,byte
- cpy word
-
- dec z,byte
- dec z,byte,x
- dec word
- dec word,x
-
- dex
- dey
-
- eor #byte
- eor z,byte
- eor z,byte,x
- eor word
- eor word,x
- eor word,y
- eor (byte,x)
- eor (byte),y
-
- inc z,byte
- inc z,byte,x
- inc word
- inc word,x
-
- inx
- iny
-
- jmp word
- jmp (word)
-
- jsr word
-
- lda #byte
- lda z,byte
- lda z,byte,x
- lda word
- lda word,x
- lda word,y
- lda (byte,x)
- lda (byte),y
-
- ldx #byte
- ldx z,byte
- ldx z,byte,y
- ldx word
- ldx word,y
-
- ldy #byte
- ldy z,byte
- ldy z,byte,x
- ldy word
- ldy word,x
-
- lsr:lsr a
- lsr z,byte
- lsr z,byte,x
- lsr word
- lsr word,x
-
- nop
-
- ora #byte
- ora z,byte
- ora z,byte,x
- ora word
- ora word,x
- ora word,y
- ora (byte,x)
- ora (byte),y
-
- pha
- php
- pla
- plp
-
- rol:rol a
- rol z,byte
- rol z,byte,x
- rol word
- rol word,x
-
- ror:ror a
- ror z,byte
- ror z,byte,x
- ror word
- ror word,x
-
- rti
- rts
-
- sbc #byte
- sbc z,byte
- sbc z,byte,x
- sbc word
- sbc word,x
- sbc word,y
- sbc (byte,x)
- sbc (byte),y
-
- sec
- sed
- sei
-
- sta z,byte
- sta z,byte,x
- sta word
- sta word,x
- sta word,y
- sta (byte,x)
- sta (byte),y
-
- stx z,byte
- stx z,byte,y
- stx word
-
- sty z,byte
- sty z,byte,x
- sty word
-
- tax
- tay
- tsx
- txa
- txs
- tya
-