Follow

re: 6502, ai 

@kiilas are you using an emulator (or a 65C02) that ties undefined opcodes to NOP, or a real 6502? because some of the undefined opcodes scattered around there will have very different effects on a real 6502... including a couple of instances of $02, which will kill the processor:

l8000:
. ldx 1,y
. sax $61B
. adc ($71,x)
. eor $D0CA
. sbc $285,y
. adc ($71,x)
. eor $D0CA
. asl $285,y
. lsr $8A,x
. dec $ABAE,x
. and $9C
. lsr a
. tas $BF58.y
. nop ; $DA
. arr #$71
l8023:
. lax ($1B,x)
. isc $4A6A,y
. adc ($19),y
. kil
. nop
. slo $6ACB,y
. beq l804A
. stx $D101
. eor $A059,y
. bit $C1
. dcp ($36),y
. ora ($36,x)
. slo ($90,x)
. nop
l8040:
. sbc #$F4
. lda #$5C
. eor $F459,y
. arr #3
. db $1C ; → nop $19CD,x; kil
l804A:
. cmp $219
. rol $01,x
. eor #$45
. pha
. rts

(opcodes as suggested by problemkaputt.de/pagezero.htm# )

Sign in to participate in the conversation
OldBytes Space - Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!