Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape13a_acorn_eu_1990_july.wav » Lstninj

Lstninj

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape13a_acorn_eu_1990_july.wav
Filename: Lstninj
Read OK:
File size: 050C bytes
Load address: 2000
Exec address: 1900
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
   10REM The Last Ninja cheat
   20REM Electron version
   30:
   40MODE4:PRINT'"The Last Ninja cheat"'
   50lives=FNnum("Number of lives",1,255,"001","255")
   60level=FNnum("Starting level",1,6,"001","006")
   70PROCmc
   80PROCask("Infinite lives",inlives)
   90PROCask("No power loss in combat",inpower)
  100IF ?inpower<>&60 THEN ?lesspower=&60:GOTO120
  110PROCask("Less power loss in combat",lesspower)
  120PROCask("Walk over rivers",walk)
  130PRINT'"OK - Insert The Last Ninja tape and          press play ..."'
  140VDU7,21:*FX18
  150*K.1 PAGE=&E00|MLOAD"LAST-NJA1"|F|M200!&C0=RND:CALL&D00|MRUN|F|M
  160*FX138,0,129
  170END
  180DEFPROCask(A$,A%)
  190PRINT;A$;STRING$(26-LENA$," ");"(Y/N) : ";:A$=GET$:IF A$="Y" THEN PRINT;"Yes" ELSE PRINT;"No":?A%=&60
  200ENDPROC
  210DEFFNnum(A$,L%,M%,L$,M$)
  220PRINT;A$;STRING$(22-LENA$," ");"("+L$+"-"+M$+") : ";
  230INPUT""a%:IF a%<L% OR a%>M% THEN GOTO220 ELSE =a%
  240DEFPROCmc
  250FORI%=0 TO 2 STEP2
  260P%=&D00
  270[OPTI%
  280LDA#i MOD 256:STA&220:LDA#i DIV 256:STA&221
  290LDA#14:LDX#4:JSR&FFF4
  300LDY#load DIV 256:LDX#load MOD 256
  310JSR&FFF7
  320LDA#13:LDX#4:JSR&FFF4
  330LDA#lives:STA&239F
  340LDA#level+&30:STA&226D:STA&227A
  350LDA#level-1:STA&22DD
  360JSRinlives:JSRinpower
  370JSRlesspower:JSRwalk
  380JMP&22DC
  390.inlives LDA#&A9:STA&24BD:RTS
  400.inpower LDA#0:STA&246F:RTS
  410.lesspower LDA#1:STA&246F:RTS
  420.walk LDA#0:STA&18FF:RTS
  430.i LDA&3CA:AND#254:STA&3CA:RTS
  440.load
  450]:$P%="LOAD NINJA-3"+CHR$13:NEXT
  460ENDPROC

� The Last Ninja cheat
� Electron version
:
( �4:�'"The Last Ninja cheat"'
23lives=�num("Number of lives",1,255,"001","255")
<0level=�num("Starting level",1,6,"001","006")
F�mc
P"�ask("Infinite lives",inlives)
Z+�ask("No power loss in combat",inpower)
d*� ?inpower<>&60 � ?lesspower=&60:�Dx@
n/�ask("Less power loss in combat",lesspower)
x!�ask("Walk over rivers",walk)
�D�'"OK - Insert The Last Ninja tape and          press play ..."'
��7,21:*FX18
�D*K.1 PAGE=&E00|MLOAD"LAST-NJA1"|F|M200!&C0=RND:CALL&D00|MRUN|F|M
�*FX138,0,129
��
���ask(A$,A%)
�J�;A$;�26-�A$," ");"(Y/N) : ";:A$=�:� A$="Y" � �;"Yes" � �;"No":?A%=&60
��
�ݤnum(A$,L%,M%,L$,M$)
�+�;A$;�22-�A$," ");"("+L$+"-"+M$+") : ";
�'�""a%:� a%<L% � a%>M% � �d\@ � =a%
���mc
��I%=0 � 2 �2
P%=&D00

[OPTI%
+LDA#i � 256:STA&220:LDA#i � 256:STA&221
"LDA#14:LDX#4:JSR&FFF4
,!LDY#load � 256:LDX#load � 256
6JSR&FFF7
@LDA#13:LDX#4:JSR&FFF4
JLDA#lives:STA&239F
T#LDA#level+&30:STA&226D:STA&227A
^LDA#level-1:STA&22DD
hJSRinlives:JSRinpower
rJSRlesspower:JSRwalk
|JMP&22DC
�!.inlives LDA#&A9:STA&24BD:RTS
�.inpower LDA#0:STA&246F:RTS
�!.lesspower LDA#1:STA&246F:RTS
�.walk LDA#0:STA&18FF:RTS
� .i LDA&3CA:�#254:STA&3CA:RTS
�	.load
�]:$P%="LOAD NINJA-3"+�13:�
��
�
00000000  0d 00 0a 1a f4 20 54 68  65 20 4c 61 73 74 20 4e  |..... The Last N|
00000010  69 6e 6a 61 20 63 68 65  61 74 0d 00 14 16 f4 20  |inja cheat..... |
00000020  45 6c 65 63 74 72 6f 6e  20 76 65 72 73 69 6f 6e  |Electron version|
00000030  0d 00 1e 05 3a 0d 00 28  20 eb 34 3a f1 27 22 54  |....:..( .4:.'"T|
00000040  68 65 20 4c 61 73 74 20  4e 69 6e 6a 61 20 63 68  |he Last Ninja ch|
00000050  65 61 74 22 27 0d 00 32  33 6c 69 76 65 73 3d a4  |eat"'..23lives=.|
00000060  6e 75 6d 28 22 4e 75 6d  62 65 72 20 6f 66 20 6c  |num("Number of l|
00000070  69 76 65 73 22 2c 31 2c  32 35 35 2c 22 30 30 31  |ives",1,255,"001|
00000080  22 2c 22 32 35 35 22 29  0d 00 3c 30 6c 65 76 65  |","255")..<0leve|
00000090  6c 3d a4 6e 75 6d 28 22  53 74 61 72 74 69 6e 67  |l=.num("Starting|
000000a0  20 6c 65 76 65 6c 22 2c  31 2c 36 2c 22 30 30 31  | level",1,6,"001|
000000b0  22 2c 22 30 30 36 22 29  0d 00 46 07 f2 6d 63 0d  |","006")..F..mc.|
000000c0  00 50 22 f2 61 73 6b 28  22 49 6e 66 69 6e 69 74  |.P".ask("Infinit|
000000d0  65 20 6c 69 76 65 73 22  2c 69 6e 6c 69 76 65 73  |e lives",inlives|
000000e0  29 0d 00 5a 2b f2 61 73  6b 28 22 4e 6f 20 70 6f  |)..Z+.ask("No po|
000000f0  77 65 72 20 6c 6f 73 73  20 69 6e 20 63 6f 6d 62  |wer loss in comb|
00000100  61 74 22 2c 69 6e 70 6f  77 65 72 29 0d 00 64 2a  |at",inpower)..d*|
00000110  e7 20 3f 69 6e 70 6f 77  65 72 3c 3e 26 36 30 20  |. ?inpower<>&60 |
00000120  8c 20 3f 6c 65 73 73 70  6f 77 65 72 3d 26 36 30  |. ?lesspower=&60|
00000130  3a e5 8d 44 78 40 0d 00  6e 2f f2 61 73 6b 28 22  |:..Dx@..n/.ask("|
00000140  4c 65 73 73 20 70 6f 77  65 72 20 6c 6f 73 73 20  |Less power loss |
00000150  69 6e 20 63 6f 6d 62 61  74 22 2c 6c 65 73 73 70  |in combat",lessp|
00000160  6f 77 65 72 29 0d 00 78  21 f2 61 73 6b 28 22 57  |ower)..x!.ask("W|
00000170  61 6c 6b 20 6f 76 65 72  20 72 69 76 65 72 73 22  |alk over rivers"|
00000180  2c 77 61 6c 6b 29 0d 00  82 44 f1 27 22 4f 4b 20  |,walk)...D.'"OK |
00000190  2d 20 49 6e 73 65 72 74  20 54 68 65 20 4c 61 73  |- Insert The Las|
000001a0  74 20 4e 69 6e 6a 61 20  74 61 70 65 20 61 6e 64  |t Ninja tape and|
000001b0  20 20 20 20 20 20 20 20  20 20 70 72 65 73 73 20  |          press |
000001c0  70 6c 61 79 20 2e 2e 2e  22 27 0d 00 8c 0f ef 37  |play ..."'.....7|
000001d0  2c 32 31 3a 2a 46 58 31  38 0d 00 96 44 2a 4b 2e  |,21:*FX18...D*K.|
000001e0  31 20 50 41 47 45 3d 26  45 30 30 7c 4d 4c 4f 41  |1 PAGE=&E00|MLOA|
000001f0  44 22 4c 41 53 54 2d 4e  4a 41 31 22 7c 46 7c 4d  |D"LAST-NJA1"|F|M|
00000200  32 30 30 21 26 43 30 3d  52 4e 44 3a 43 41 4c 4c  |200!&C0=RND:CALL|
00000210  26 44 30 30 7c 4d 52 55  4e 7c 46 7c 4d 0d 00 a0  |&D00|MRUN|F|M...|
00000220  10 2a 46 58 31 33 38 2c  30 2c 31 32 39 0d 00 aa  |.*FX138,0,129...|
00000230  05 e0 0d 00 b4 10 dd f2  61 73 6b 28 41 24 2c 41  |........ask(A$,A|
00000240  25 29 0d 00 be 4a f1 3b  41 24 3b c4 32 36 2d a9  |%)...J.;A$;.26-.|
00000250  41 24 2c 22 20 22 29 3b  22 28 59 2f 4e 29 20 3a  |A$," ");"(Y/N) :|
00000260  20 22 3b 3a 41 24 3d be  3a e7 20 41 24 3d 22 59  | ";:A$=.:. A$="Y|
00000270  22 20 8c 20 f1 3b 22 59  65 73 22 20 8b 20 f1 3b  |" . .;"Yes" . .;|
00000280  22 4e 6f 22 3a 3f 41 25  3d 26 36 30 0d 00 c8 05  |"No":?A%=&60....|
00000290  e1 0d 00 d2 19 dd a4 6e  75 6d 28 41 24 2c 4c 25  |.......num(A$,L%|
000002a0  2c 4d 25 2c 4c 24 2c 4d  24 29 0d 00 dc 2b f1 3b  |,M%,L$,M$)...+.;|
000002b0  41 24 3b c4 32 32 2d a9  41 24 2c 22 20 22 29 3b  |A$;.22-.A$," ");|
000002c0  22 28 22 2b 4c 24 2b 22  2d 22 2b 4d 24 2b 22 29  |"("+L$+"-"+M$+")|
000002d0  20 3a 20 22 3b 0d 00 e6  27 e8 22 22 61 25 3a e7  | : ";...'.""a%:.|
000002e0  20 61 25 3c 4c 25 20 84  20 61 25 3e 4d 25 20 8c  | a%<L% . a%>M% .|
000002f0  20 e5 8d 64 5c 40 20 8b  20 3d 61 25 0d 00 f0 08  | ..d\@ . =a%....|
00000300  dd f2 6d 63 0d 00 fa 10  e3 49 25 3d 30 20 b8 20  |..mc.....I%=0 . |
00000310  32 20 88 32 0d 01 04 0b  50 25 3d 26 44 30 30 0d  |2 .2....P%=&D00.|
00000320  01 0e 0a 5b 4f 50 54 49  25 0d 01 18 2b 4c 44 41  |...[OPTI%...+LDA|
00000330  23 69 20 83 20 32 35 36  3a 53 54 41 26 32 32 30  |#i . 256:STA&220|
00000340  3a 4c 44 41 23 69 20 81  20 32 35 36 3a 53 54 41  |:LDA#i . 256:STA|
00000350  26 32 32 31 0d 01 22 19  4c 44 41 23 31 34 3a 4c  |&221..".LDA#14:L|
00000360  44 58 23 34 3a 4a 53 52  26 46 46 46 34 0d 01 2c  |DX#4:JSR&FFF4..,|
00000370  21 4c 44 59 23 6c 6f 61  64 20 81 20 32 35 36 3a  |!LDY#load . 256:|
00000380  4c 44 58 23 6c 6f 61 64  20 83 20 32 35 36 0d 01  |LDX#load . 256..|
00000390  36 0c 4a 53 52 26 46 46  46 37 0d 01 40 19 4c 44  |6.JSR&FFF7..@.LD|
000003a0  41 23 31 33 3a 4c 44 58  23 34 3a 4a 53 52 26 46  |A#13:LDX#4:JSR&F|
000003b0  46 46 34 0d 01 4a 16 4c  44 41 23 6c 69 76 65 73  |FF4..J.LDA#lives|
000003c0  3a 53 54 41 26 32 33 39  46 0d 01 54 23 4c 44 41  |:STA&239F..T#LDA|
000003d0  23 6c 65 76 65 6c 2b 26  33 30 3a 53 54 41 26 32  |#level+&30:STA&2|
000003e0  32 36 44 3a 53 54 41 26  32 32 37 41 0d 01 5e 18  |26D:STA&227A..^.|
000003f0  4c 44 41 23 6c 65 76 65  6c 2d 31 3a 53 54 41 26  |LDA#level-1:STA&|
00000400  32 32 44 44 0d 01 68 19  4a 53 52 69 6e 6c 69 76  |22DD..h.JSRinliv|
00000410  65 73 3a 4a 53 52 69 6e  70 6f 77 65 72 0d 01 72  |es:JSRinpower..r|
00000420  18 4a 53 52 6c 65 73 73  70 6f 77 65 72 3a 4a 53  |.JSRlesspower:JS|
00000430  52 77 61 6c 6b 0d 01 7c  0c 4a 4d 50 26 32 32 44  |Rwalk..|.JMP&22D|
00000440  43 0d 01 86 21 2e 69 6e  6c 69 76 65 73 20 4c 44  |C...!.inlives LD|
00000450  41 23 26 41 39 3a 53 54  41 26 32 34 42 44 3a 52  |A#&A9:STA&24BD:R|
00000460  54 53 0d 01 90 1f 2e 69  6e 70 6f 77 65 72 20 4c  |TS.....inpower L|
00000470  44 41 23 30 3a 53 54 41  26 32 34 36 46 3a 52 54  |DA#0:STA&246F:RT|
00000480  53 0d 01 9a 21 2e 6c 65  73 73 70 6f 77 65 72 20  |S...!.lesspower |
00000490  4c 44 41 23 31 3a 53 54  41 26 32 34 36 46 3a 52  |LDA#1:STA&246F:R|
000004a0  54 53 0d 01 a4 1c 2e 77  61 6c 6b 20 4c 44 41 23  |TS.....walk LDA#|
000004b0  30 3a 53 54 41 26 31 38  46 46 3a 52 54 53 0d 01  |0:STA&18FF:RTS..|
000004c0  ae 20 2e 69 20 4c 44 41  26 33 43 41 3a 80 23 32  |. .i LDA&3CA:.#2|
000004d0  35 34 3a 53 54 41 26 33  43 41 3a 52 54 53 0d 01  |54:STA&3CA:RTS..|
000004e0  b8 09 2e 6c 6f 61 64 0d  01 c2 1e 5d 3a 24 50 25  |...load....]:$P%|
000004f0  3d 22 4c 4f 41 44 20 4e  49 4e 4a 41 2d 33 22 2b  |="LOAD NINJA-3"+|
00000500  bd 31 33 3a ed 0d 01 cc  05 e1 0d ff              |.13:........|
0000050c
Lstninj.m0
Lstninj.m1
Lstninj.m2
Lstninj.m4
Lstninj.m5