Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape28a_acorn_eu_1991_october.wav » TCHRSRC » Compare

Compare TCHRSRC with BBC/GCHRSRC

File: Personal collection » Acorn tapes » Electron_User » Electron_User_tape28a_acorn_eu_1991_october.wav » TCHRSRC
Compared with: Archimedes archive » Micro User » MU 1991-10.adf » Listings » BBC/GCHRSRC
Similarity: 59% of bytes duplicated

17 of 39 lines (57.6%) are identical in the two listings. Duplicated Different

Line numbers are ignored when comparing lines, so that renumbered programs still match.

TCHRSRC BBC/GCHRSRC
10REM Keyboard Graphics 10REM Keyboard Graphics
20REM listing two 20REM listing one
30REM By Peter Harris 30REM By Peter Harris
40REM (C) The Micro User 40REM (C) The Micro User
50oldvec=&230:newvec=&20E 50oldvec=&20E:newvec=&230
60FORI%=0TO2STEP2 60FORI%=0TO2STEP2
70P%=&A60 70P%=&A60
80[OPTI% 80[OPTI%
85.init 85.init
90LDA oldvec 90LDA oldvec
100STA newvec 100STA newvec
110LDA oldvec+1 110LDA oldvec+1
120STA newvec+1 120STA newvec+1
130LDA#start MOD &100
140STA oldvec
150LDA#start DIV &100
160STA oldvec+1
130RTS 170RTS
180.start
190PHA
200LDA&D0
210AND#1
220CMP#1
230BNE restore
240PLA
250CMP#33
260BCCold
270ADC#127
275.old
280JMP(newvec)
290.restore
300PLA
310JMP old
140] 320]
150P%=P%+1 330P%=P%+1
160NEXT 340NEXT
170x$="SAVE TCHRS "+STR$~init+" "+STR$~P% 350x$="SAVE GCHRS "+STR$~init+" "+STR$~P%
180DIM B 30:$B=x$:X%=B MOD &100:Y%=B DIV &100 360DIM B 30:$B=x$:X%=B MOD &100:Y%=B DIV &100
190CALL &FFF7 370CALL &FFF7