1.1 --- a/switcher.oph Sat Jun 27 17:51:51 2015 +0200
1.2 +++ b/switcher.oph Sat Jun 27 18:28:12 2015 +0200
1.3 @@ -53,14 +53,12 @@
1.4 ; obtain the stack location of the stored PC MSB
1.5 tsx
1.6 txa
1.7 - clc
1.8 - adc #6 ; offset of MSB (<empty>, Y, X, A, F, LSB, MSB)
1.9 sta $70
1.10 lda #$01 ; $01xx
1.11 sta $71
1.12
1.13 - ldx #0
1.14 - lda ($70, x)
1.15 + ldy #6 ; offset of MSB (<empty>, Y, X, A, F, LSB, MSB)
1.16 + lda ($70), y
1.17
1.18 ; reference the stack location and compute PC MSB & $80
1.19 and #$80