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

Compare BrainB with Arc/BrainU

File: Personal collection » Acorn tapes » Electron_User » Electron_User_tape28a_acorn_eu_1991_october.wav » BrainB
Compared with: Archimedes archive » Micro User » MU 1991-10.adf » Listings » Arc/BrainU
Similarity: 82% of bytes duplicated

27 of 34 lines (81.8%) are identical in the two listings. Duplicated Different

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

BrainB Arc/BrainU
10REM >IIC.BRAINB 10REM >IIC.BrainU
11REM BBC MODEL B AND MASTER VERSION 20DIM PBK% 3
20PBK%=&FE60 30SYS "OS_Byte",151,&60,0
30?&FE62=0
50MODE 1 50MODE 1
60PRINT"BRAIN SURGEON" 60PRINT"BRAIN SURGEON"
70PRINT" By Mike Cook" 70PRINT" By Mike Cook"
80PRINT"Using the IIC interface card" 80PRINT"Using the User Port"
90PRINT TAB(0,14)"Score" 90PRINT TAB(0,14)"Score"
100REPEAT:REPEAT 100REPEAT:REPEAT
110PRINT TAB(0,23)"Put in place all the pieces of Brain" 110PRINT TAB(0,23)"Put in place all the pieces of Brain"
120 REPEAT 120 REPEAT
130 SYS "OS_Byte",150,&60 TO ,,?PBK%
140 UNTIL ?PBK%=&80 140 UNTIL ?PBK%=&80
150 PRINT TAB(0,23)"Now begin to remove the Brain Tumours" 150 PRINT TAB(0,23)"Now begin to remove the Brain Tumours"
160 PRINTTAB(0,17);SPC(39) 160 PRINTTAB(0,17);SPC(39)
170 PRINTTAB(0,19);SPC(39) 170 PRINTTAB(0,19);SPC(39)
180 TIME=0 180 TIME=0
190 REPEAT UNTIL TIME > 200 190 REPEAT UNTIL TIME > 200
200 SYS "OS_Byte",150,&60 TO ,,?PBK%
210UNTIL ?PBK%=&80 210UNTIL ?PBK%=&80
220SCORE=0:T%=0 220SCORE=0:T%=0
230REPEAT 230REPEAT
240SYS "OS_Byte",150,&60 TO ,,?PBK%
250A%=?PBK%:V%=1 250A%=?PBK%:V%=1
260FOR B%=0 TO 6 260FOR B%=0 TO 6
270IF (A% AND V%)<>0 AND (T% AND V%)=0 THEN T%=T% OR V%:SCORE+=1 270IF (A% AND V%)<>0 AND (T% AND V%)=0 THEN T%=T% OR V%:SCORE+=1
280V%=V%*2 280V%=V%*2
290NEXT 290NEXT
300PRINT TAB(0,14);"Score ",SCORE 300PRINT TAB(0,14);"Score ",SCORE
310UNTIL (A% AND &80)=0 OR (T%=&7F) 310UNTIL (A% AND &80)=0 OR (T%=&7F)
320TM%=TIME 320TM%=TIME
330IF T%=&7F THEN PRINT TAB(0,17)"Congratulations! Your patient survived. " ELSE:PRINT TAB(0,17)"Sorry - your patient died" 330IF T%=&7F THEN PRINT TAB(0,17)"Congratulations! Your patient survived. " ELSE:PRINT TAB(0,17)"Sorry - your patient died"
340PRINTTAB(0,19);"You took ";TM%/100;" Seconds" 340PRINTTAB(0,19);"You took ";TM%/100;" Seconds"
350UNTIL FALSE 350UNTIL FALSE