On 04/02/2015 21:05, Gerald Holdsworth wrote:
> Hi all,
>
> Has anyone completely disassembled Bonecruncher?
> What I'm actually looking for is where, and how, the passwords are stored.
OK, found them.
For those interested, they are in the BONE2 file at location &2409. They
are stored in reverse order (End password, followed by Level 24, etc.)
and each one is terminated by &FF. Each letter is 55 less the ASCII
character (for A-Z), or &40 for a space.
I've knocked up a quick program to reveal them (for BBC Master, but I'm
sure it'll work on a BBC B):
10MODE135
20DIM p$(25),s(25)
30*L.BONE2
40i=&2409
50FOR screen=25 TO 2 STEP-1
60 p$(screen)=""
70 s(screen)=i
80 REPEAT
90 x=?(&1E00+i)
100 y=x+55
110 IF x<>&FF AND x<>&40 THEN p$(screen)=p$(screen)+CHR$y
111 IF x=&40 THEN p$(screen)=p$(screen)+" "
120 i=i+1
130 UNTIL x=&FF
131NEXT
132FOR screen=2 TO 25
140 IF screen=25 THEN PRINT"End"; ELSE PRINT"Level ";screen;
150 PRINT":";p$(screen);" - ";~s(screen)
160NEXT