Home » Archimedes archive » Acorn User » AU 1997-01 B.adf » Regulars » Rambles/!Split/Resources/Toggle3D

Rambles/!Split/Resources/Toggle3D

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 1997-01 B.adf » Regulars
Filename: Rambles/!Split/Resources/Toggle3D
Read OK:
File size: 00D7 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM Toggle state of '3D look' bit in CMOS
   20
   30REM Read byte
   40SYS "OS_Byte",161,140 TO ,,byte%
   50REM EOR byte with mask for bit 0
   60byte% = byte% EOR 1
   70REM Write byte back again
   80SYS "OS_Byte",162,140,byte%
   90END
+� Toggle state of '3D look' bit in CMOS

� Read byte
("ș "OS_Byte",161,140 � ,,byte%
2"� EOR byte with mask for bit 0
<byte% = byte% � 1
F� Write byte back again
Pș "OS_Byte",162,140,byte%
Z�
�
00000000  0d 00 0a 2b f4 20 54 6f  67 67 6c 65 20 73 74 61  |...+. Toggle sta|
00000010  74 65 20 6f 66 20 27 33  44 20 6c 6f 6f 6b 27 20  |te of '3D look' |
00000020  62 69 74 20 69 6e 20 43  4d 4f 53 0d 00 14 04 0d  |bit in CMOS.....|
00000030  00 1e 0f f4 20 52 65 61  64 20 62 79 74 65 0d 00  |.... Read byte..|
00000040  28 22 c8 99 20 22 4f 53  5f 42 79 74 65 22 2c 31  |(".. "OS_Byte",1|
00000050  36 31 2c 31 34 30 20 b8  20 2c 2c 62 79 74 65 25  |61,140 . ,,byte%|
00000060  0d 00 32 22 f4 20 45 4f  52 20 62 79 74 65 20 77  |..2". EOR byte w|
00000070  69 74 68 20 6d 61 73 6b  20 66 6f 72 20 62 69 74  |ith mask for bit|
00000080  20 30 0d 00 3c 15 62 79  74 65 25 20 3d 20 62 79  | 0..<.byte% = by|
00000090  74 65 25 20 82 20 31 0d  00 46 1b f4 20 57 72 69  |te% . 1..F.. Wri|
000000a0  74 65 20 62 79 74 65 20  62 61 63 6b 20 61 67 61  |te byte back aga|
000000b0  69 6e 0d 00 50 1e c8 99  20 22 4f 53 5f 42 79 74  |in..P... "OS_Byt|
000000c0  65 22 2c 31 36 32 2c 31  34 30 2c 62 79 74 65 25  |e",162,140,byte%|
000000d0  0d 00 5a 05 e0 0d ff                              |..Z....|
000000d7