Home » Archimedes archive » Acorn User » AU 1996-02.adf » Regulars » StarInfo/Fletcher/SetBit

StarInfo/Fletcher/SetBit

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 1996-02.adf » Regulars
Filename: StarInfo/Fletcher/SetBit
Read OK:
File size: 017E bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >SetBit
   20
   30PRINT "Set NoObscure bit? (Y/N) ";
   40REPEAT
   50 g$=CHR$(GET AND &DF)
   60UNTIL g$="Y" OR g$="N"
   61PRINT g$
   70obscure%=g$="Y"
   80
   90obscure_byte%=28
  100obscure_bit% =1<<4
  110
  120SYS "OS_Byte",161,obscure_byte% TO ,,v%
  140v%=v% AND (NOT obscure_bit%)
  151IF obscure% THEN v%=v% OR obscure_bit%
  153SYS "OS_Byte",162,obscure_byte%,v%
  154
  155PRINT"NoObscure bit ";
  156IF obscure% PRINT"set" ELSE PRINT"cleared"
  157END


� >SetBit

"� "Set NoObscure bit? (Y/N) ";
(�
2 g$=�(� � &DF)
<� g$="Y" � g$="N"
=� g$
Fobscure%=g$="Y"
P
Zobscure_byte%=28
dobscure_bit% =1<<4
n
x)ș "OS_Byte",161,obscure_byte% � ,,v%
�v%=v% � (� obscure_bit%)
�%� obscure% � v%=v% � obscure_bit%
�%ș "OS_Byte",162,obscure_byte%,v%
�
��"NoObscure bit ";
�"� obscure% �"set" � �"cleared"
��
�
00000000  0d 00 0a 0d f4 20 3e 53  65 74 42 69 74 0d 00 14  |..... >SetBit...|
00000010  04 0d 00 1e 22 f1 20 22  53 65 74 20 4e 6f 4f 62  |....". "Set NoOb|
00000020  73 63 75 72 65 20 62 69  74 3f 20 28 59 2f 4e 29  |scure bit? (Y/N)|
00000030  20 22 3b 0d 00 28 05 f5  0d 00 32 12 20 67 24 3d  | ";..(....2. g$=|
00000040  bd 28 a5 20 80 20 26 44  46 29 0d 00 3c 15 fd 20  |.(. . &DF)..<.. |
00000050  67 24 3d 22 59 22 20 84  20 67 24 3d 22 4e 22 0d  |g$="Y" . g$="N".|
00000060  00 3d 08 f1 20 67 24 0d  00 46 13 6f 62 73 63 75  |.=.. g$..F.obscu|
00000070  72 65 25 3d 67 24 3d 22  59 22 0d 00 50 04 0d 00  |re%=g$="Y"..P...|
00000080  5a 14 6f 62 73 63 75 72  65 5f 62 79 74 65 25 3d  |Z.obscure_byte%=|
00000090  32 38 0d 00 64 16 6f 62  73 63 75 72 65 5f 62 69  |28..d.obscure_bi|
000000a0  74 25 20 3d 31 3c 3c 34  0d 00 6e 04 0d 00 78 29  |t% =1<<4..n...x)|
000000b0  c8 99 20 22 4f 53 5f 42  79 74 65 22 2c 31 36 31  |.. "OS_Byte",161|
000000c0  2c 6f 62 73 63 75 72 65  5f 62 79 74 65 25 20 b8  |,obscure_byte% .|
000000d0  20 2c 2c 76 25 0d 00 8c  1c 76 25 3d 76 25 20 80  | ,,v%....v%=v% .|
000000e0  20 28 ac 20 6f 62 73 63  75 72 65 5f 62 69 74 25  | (. obscure_bit%|
000000f0  29 0d 00 97 25 e7 20 6f  62 73 63 75 72 65 25 20  |)...%. obscure% |
00000100  8c 20 76 25 3d 76 25 20  84 20 6f 62 73 63 75 72  |. v%=v% . obscur|
00000110  65 5f 62 69 74 25 0d 00  99 25 c8 99 20 22 4f 53  |e_bit%...%.. "OS|
00000120  5f 42 79 74 65 22 2c 31  36 32 2c 6f 62 73 63 75  |_Byte",162,obscu|
00000130  72 65 5f 62 79 74 65 25  2c 76 25 0d 00 9a 04 0d  |re_byte%,v%.....|
00000140  00 9b 16 f1 22 4e 6f 4f  62 73 63 75 72 65 20 62  |...."NoObscure b|
00000150  69 74 20 22 3b 0d 00 9c  22 e7 20 6f 62 73 63 75  |it ";...". obscu|
00000160  72 65 25 20 f1 22 73 65  74 22 20 8b 20 f1 22 63  |re% ."set" . ."c|
00000170  6c 65 61 72 65 64 22 0d  00 9d 05 e0 0d ff        |leared".......|
0000017e