Paper tape format with all opcodes

Discuss software for the Micro-KIM and KIM-1

Paper tape format with all opcodes

Postby AartBik » Nov Mon 17, 2014 1:33 am

For testing purposes, I used my cross-assembler to generate the following paper tape format that contains all documented opcodes (assuming I made no typos in the original assembler input; the program itself does not do anything useful).

Code: Select all
;18C0006912651275126D34127D34127934126112711229122512350623
;18C018122D34123D3412393412211231120A061216120E34121E3403DD
;18C0301290FEB0FCF0FA24122C341230FED0FC10FA0050FE70FC180DBC
;18C048D858B8C912C512D512CD3412DD3412D93412C112D112E0120B9E
;18C060E412EC3412C012C412CC3412C612D612CE3412DE3412CA880B64
;18C0784912451255124D34125D341259341241125112E612F612EE07E2
;18C0903412FE3412E8C84C97C06C34122097C0A912A512B512AD340B88
;18C0A812BD3412B93412A112B112A212A612B612AE3412BE3412A009D6
;18C0C012A412B412AC3412BC34124A461256124E34125E3412EA09084F
;18C0D812051215120D34121D341219341201121112480868282A26047B
;18C0F01236122E34123E34126A661276126E34127E34124060E9120797
;18C108E512F512ED3412FD3412F93412E112F11238F878851295120B70
;18C1208D34129D341299341281129112861296128E3412841294120814
;18C1388C3412AAA8BA8A9A98A941A941A952A954A920A942A949A90CC6
;01C1504B015D
;00000F000F

A dissembler should yield output similar to the one shown below.

Code: Select all
$ lin2c64 -Pd all.ptf
**** MOS Technology 6510 Assembler
**** for the Commodore 64 (v2.0.4)
**** (C) 2005-2011   Aart J.C. Bik

disassembling paper tape format (text)
$c000 69 12   adc #$12
$c002 65 12   adc $12
$c004 75 12   adc $12, x
$c006 6d 34 12   adc $1234
$c009 7d 34 12   adc $1234, x
$c00c 79 34 12   adc $1234, y
$c00f 61 12   adc ($12, x)
$c011 71 12   adc ($12), y
$c013 29 12   and #$12
$c015 25 12   and $12
$c017 35 12   and $12, x
$c019 2d 34 12   and $1234
$c01c 3d 34 12   and $1234, x
$c01f 39 34 12   and $1234, y
$c022 21 12   and ($12, x)
$c024 31 12   and ($12), y
$c026 0a   asl
$c027 06 12   asl $12
$c029 16 12   asl $12, x
$c02b 0e 34 12   asl $1234
$c02e 1e 34 12   asl $1234, x
$c031 90 fe   bcc $c031
$c033 b0 fc   bcs $c031
$c035 f0 fa   beq $c031
$c037 24 12   bit $12
$c039 2c 34 12   bit $1234
$c03c 30 fe   bmi $c03c
$c03e d0 fc   bne $c03c
$c040 10 fa   bpl $c03c
$c042 00   brk
$c043 50 fe   bvc $c043
$c045 70 fc   bvs $c043
$c047 18   clc
$c048 d8   cld
$c049 58   cli
$c04a b8   clv
$c04b c9 12   cmp #$12
$c04d c5 12   cmp $12
$c04f d5 12   cmp $12, x
$c051 cd 34 12   cmp $1234
$c054 dd 34 12   cmp $1234, x
$c057 d9 34 12   cmp $1234, y
$c05a c1 12   cmp ($12, x)
$c05c d1 12   cmp ($12), y
$c05e e0 12   cpx #$12
$c060 e4 12   cpx $12
$c062 ec 34 12   cpx $1234
$c065 c0 12   cpy #$12
$c067 c4 12   cpy $12
$c069 cc 34 12   cpy $1234
$c06c c6 12   dec $12
$c06e d6 12   dec $12, x
$c070 ce 34 12   dec $1234
$c073 de 34 12   dec $1234, x
$c076 ca   dex
$c077 88   dey
$c078 49 12   eor #$12
$c07a 45 12   eor $12
$c07c 55 12   eor $12, x
$c07e 4d 34 12   eor $1234
$c081 5d 34 12   eor $1234, x
$c084 59 34 12   eor $1234, y
$c087 41 12   eor ($12, x)
$c089 51 12   eor ($12), y
$c08b e6 12   inc $12
$c08d f6 12   inc $12, x
$c08f ee 34 12   inc $1234
$c092 fe 34 12   inc $1234, x
$c095 e8   inx
$c096 c8   iny
$c097 4c 97 c0   jmp $c097
$c09a 6c 34 12   jmp ($1234)
$c09d 20 97 c0   jsr $c097
$c0a0 a9 12   lda #$12
$c0a2 a5 12   lda $12
$c0a4 b5 12   lda $12, x
$c0a6 ad 34 12   lda $1234
$c0a9 bd 34 12   lda $1234, x
$c0ac b9 34 12   lda $1234, y
$c0af a1 12   lda ($12, x)
$c0b1 b1 12   lda ($12), y
$c0b3 a2 12   ldx #$12
$c0b5 a6 12   ldx $12
$c0b7 b6 12   ldx $12, y
$c0b9 ae 34 12   ldx $1234
$c0bc be 34 12   ldx $1234, y
$c0bf a0 12   ldy #$12
$c0c1 a4 12   ldy $12
$c0c3 b4 12   ldy $12, x
$c0c5 ac 34 12   ldy $1234
$c0c8 bc 34 12   ldy $1234, x
$c0cb 4a   lsr
$c0cc 46 12   lsr $12
$c0ce 56 12   lsr $12, x
$c0d0 4e 34 12   lsr $1234
$c0d3 5e 34 12   lsr $1234, x
$c0d6 ea   nop
$c0d7 09 12   ora #$12
$c0d9 05 12   ora $12
$c0db 15 12   ora $12, x
$c0dd 0d 34 12   ora $1234
$c0e0 1d 34 12   ora $1234, x
$c0e3 19 34 12   ora $1234, y
$c0e6 01 12   ora ($12, x)
$c0e8 11 12   ora ($12), y
$c0ea 48   pha
$c0eb 08   php
$c0ec 68   pla
$c0ed 28   plp
$c0ee 2a   rol
$c0ef 26 12   rol $12
$c0f1 36 12   rol $12, x
$c0f3 2e 34 12   rol $1234
$c0f6 3e 34 12   rol $1234, x
$c0f9 6a   ror
$c0fa 66 12   ror $12
$c0fc 76 12   ror $12, x
$c0fe 6e 34 12   ror $1234
$c101 7e 34 12   ror $1234, x
$c104 40   rti
$c105 60   rts
$c106 e9 12   sbc #$12
$c108 e5 12   sbc $12
$c10a f5 12   sbc $12, x
$c10c ed 34 12   sbc $1234
$c10f fd 34 12   sbc $1234, x
$c112 f9 34 12   sbc $1234, y
$c115 e1 12   sbc ($12, x)
$c117 f1 12   sbc ($12), y
$c119 38   sec
$c11a f8   sed
$c11b 78   sei
$c11c 85 12   sta $12
$c11e 95 12   sta $12, x
$c120 8d 34 12   sta $1234
$c123 9d 34 12   sta $1234, x
$c126 99 34 12   sta $1234, y
$c129 81 12   sta ($12, x)
$c12b 91 12   sta ($12), y
$c12d 86 12   stx $12
$c12f 96 12   stx $12, y
$c131 8e 34 12   stx $1234
$c134 84 12   sty $12
$c136 94 12   sty $12, x
$c138 8c 34 12   sty $1234
$c13b aa   tax
$c13c a8   tay
$c13d ba   tsx
$c13e 8a   txa
$c13f 9a   txs
$c140 98   tya
$c141 a9 41   lda #$41
$c143 a9 41   lda #$41
$c145 a9 52   lda #$52
$c147 a9 54   lda #$54
$c149 a9 20   lda #$20
$c14b a9 42   lda #$42
$c14d a9 49   lda #$49
$c14f a9 4b   lda #$4b
User avatar
AartBik
 
Posts: 24
Joined: Nov Thu 03, 2011 11:20 pm
Location: Mountain View, CA, USA

Re: Paper tape format with all opcodes

Postby cappy2112 » Nov Mon 17, 2014 3:57 pm

Thanks for that.
My disassembler is passing all opcodes, but I want to compare its output to yours.
cappy2112
 
Posts: 48
Joined: Sep Fri 26, 2014 12:28 am


Return to Software

Who is online

Users browsing this forum: No registered users and 2 guests

cron