Home » Archimedes archive » Acorn User » AU 1993-06.adf » !ArmCode_ArmCode » Arm6

Arm6

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 » Archimedes archive » Acorn User » AU 1993-06.adf » !ArmCode_ArmCode
Filename: Arm6
Read OK:
File size: 018B bytes
Load address: 0000
Exec address: 0000
File contents
   10REM     >Arm6
   20REM By  Dave Lawrence
   30REM For 32-bit machines
   40REM (c) BAU June 1993
   50:
   60DIM code 200
   70link=14:pc=15
   80FOR pass=0 TO 2 STEP 2:P%=code
   90[OPT pass
  100        MOVS    R0,#0
  110
  120
  130        MOV     R0,PC,LSR #28
  140        MOV     pc,link
  150
  160]NEXT
  170bits=USR(code)
  180IF bits AND 8 PRINT"N ";
  190IF bits AND 4 PRINT"Z ";
  200IF bits AND 2 PRINT"C ";
  210IF bits AND 1 PRINT"V ";
  220IF bits=0 PRINT"Nothing" ELSE PRINT

�     >Arm6
� By  Dave Lawrence
� For 32-bit machines
(� (c) BAU June 1993
2:
<� code 200
Flink=14:pc=15
P� pass=0 � 2 � 2:P%=code
Z
[OPT pass
d        MOVS    R0,#0
n
x
�!        MOV     R0,PC,LSR #28
�        MOV     pc,link
�
�]�
�bits=�(code)
�� bits � 8 �"N ";
�� bits � 4 �"Z ";
�� bits � 2 �"C ";
�� bits � 1 �"V ";
�� bits=0 �"Nothing" � �
�
00000000  0d 00 0a 0f f4 20 20 20  20 20 3e 41 72 6d 36 0d  |.....     >Arm6.|
00000010  00 14 17 f4 20 42 79 20  20 44 61 76 65 20 4c 61  |.... By  Dave La|
00000020  77 72 65 6e 63 65 0d 00  1e 19 f4 20 46 6f 72 20  |wrence..... For |
00000030  33 32 2d 62 69 74 20 6d  61 63 68 69 6e 65 73 0d  |32-bit machines.|
00000040  00 28 17 f4 20 28 63 29  20 42 41 55 20 4a 75 6e  |.(.. (c) BAU Jun|
00000050  65 20 31 39 39 33 0d 00  32 05 3a 0d 00 3c 0e de  |e 1993..2.:..<..|
00000060  20 63 6f 64 65 20 32 30  30 0d 00 46 11 6c 69 6e  | code 200..F.lin|
00000070  6b 3d 31 34 3a 70 63 3d  31 35 0d 00 50 1c e3 20  |k=14:pc=15..P.. |
00000080  70 61 73 73 3d 30 20 b8  20 32 20 88 20 32 3a 50  |pass=0 . 2 . 2:P|
00000090  25 3d 63 6f 64 65 0d 00  5a 0d 5b 4f 50 54 20 70  |%=code..Z.[OPT p|
000000a0  61 73 73 0d 00 64 19 20  20 20 20 20 20 20 20 4d  |ass..d.        M|
000000b0  4f 56 53 20 20 20 20 52  30 2c 23 30 0d 00 6e 04  |OVS    R0,#0..n.|
000000c0  0d 00 78 04 0d 00 82 21  20 20 20 20 20 20 20 20  |..x....!        |
000000d0  4d 4f 56 20 20 20 20 20  52 30 2c 50 43 2c 4c 53  |MOV     R0,PC,LS|
000000e0  52 20 23 32 38 0d 00 8c  1b 20 20 20 20 20 20 20  |R #28....       |
000000f0  20 4d 4f 56 20 20 20 20  20 70 63 2c 6c 69 6e 6b  | MOV     pc,link|
00000100  0d 00 96 04 0d 00 a0 06  5d ed 0d 00 aa 10 62 69  |........].....bi|
00000110  74 73 3d ba 28 63 6f 64  65 29 0d 00 b4 15 e7 20  |ts=.(code)..... |
00000120  62 69 74 73 20 80 20 38  20 f1 22 4e 20 22 3b 0d  |bits . 8 ."N ";.|
00000130  00 be 15 e7 20 62 69 74  73 20 80 20 34 20 f1 22  |.... bits . 4 ."|
00000140  5a 20 22 3b 0d 00 c8 15  e7 20 62 69 74 73 20 80  |Z ";..... bits .|
00000150  20 32 20 f1 22 43 20 22  3b 0d 00 d2 15 e7 20 62  | 2 ."C ";..... b|
00000160  69 74 73 20 80 20 31 20  f1 22 56 20 22 3b 0d 00  |its . 1 ."V ";..|
00000170  dc 1b e7 20 62 69 74 73  3d 30 20 f1 22 4e 6f 74  |... bits=0 ."Not|
00000180  68 69 6e 67 22 20 8b 20  f1 0d ff                 |hing" . ...|
0000018b