Home » Archimedes archive » Acorn User » AU 1998-13 (Christmas).adf » Regulars » StarInfo/Stirling/!MityMouse/MightySWI

StarInfo/Stirling/!MityMouse/MightySWI

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 1998-13 (Christmas).adf » Regulars
Filename: StarInfo/Stirling/!MityMouse/MightySWI
Read OK:
File size: 0BF1 bytes
Load address: 0000
Exec address: 0000
File contents
Documentation for SWIs supported by MightyMouse module v1.01 - SUN 16/08/1998

NOTE: No changes have been made to these calls since v1.00


MightyMouse_Buttons (SWI &5FFC0)

FUNCTION

Read or write the mouse buttons normal/swapped setting and their CMOS
configuration.

ON ENTRY

R0 = new bits in field
R1 = field mask

Flags are ignored


ON EXIT

R0 = previous bits in field
R1 = preserved

V is set if an error occurred
NZC are preserved


INTERRUPTS

Interrupts are undefined
Fast interrupts are enabled


PROCESSOR MODE

Processor is in SVC mode


RE-ENTRANCY

SWI is not re-entrant


USE

Intended for use in a boot file or desktop management utility that wishes to
swap the select & adjust mouse buttons for left-handed users.

To allow the programming of individual bits, the call takes a field and a
mask. The new buttons settings are:

New buttons = (Old buttons AND NOT R1) OR (R0 AND R1)
R0          =  Old buttons
R0 bit field definition:

Bit 0     Read/write normal/swapped buttons state
Bit 1     Read/write normal/swapped configuration status

Bit = 0   Read/write normal  buttons
Bit = 1   Read/write swapped buttons
Bits 2-31 Must be 0 for future compatibility

To read a bit, clear the required bit in R1, the corresponding bit in R0
will reflect the current status. To write a bit, set the required bit in R1,
the corresponding bit in R0 will be written.
NOTE: When reading, the value of the corresponding bit in R0 is redundant.

The call always returns the pre-modified states of bits 0 & 1 and preserves
bits 2-31.

Related SWIs:    OS_Mouse
Related vectors: MouseV

****************************************************************************

MightyMouse_CmosAccess (SWI &5FFC1)

FUNCTION

Read or write the CMOS RAM

ON ENTRY

R1 = RAM location
R3 = Value to read/write
R4 = Mask

Flags are ignored


ON EXIT

R0 = Original contents of location
R1 = Preserved
R2 = Modified contents of location
R3 = Preserved
R4 = Preserved

V cleared: generates no errors
NZC are preserved


INTERRUPTS

Interrupts are undefined
Fast interrupts are enabled


PROCESSOR MODE

Processor is in SVC mode


RE-ENTRANCY

SWI is not re-entrant


USE

Allows the programming of individual bits in any location of the CMOS RAM,
which the Risc OS SWIs 161 & 162 cannot do. Note that location 0 can only be
read. This SWI was originally written as an internal function of the
MightyMouse module, but has been given external access as it is potentially
useful to other programs.

To allow the programming of individual bits, the call takes a field and a
mask. The new value is:

New value = (Old value AND NOT R1) OR (R0 AND R1)
R0        =  Old value

Bits 8-31 passed in R0-R4 are ignored and preserved across the call.

To read a bit, clear the required bit in R1, the corresponding bit in R0
will reflect the current CMOS value. To write a bit, set the required bit in
R1, the corresponding bit in R0 will be written.
NOTE: When reading, the value of the corresponding bit in R0 is redundant.


Related SWIs:    OS_Byte 161 & 162
Related vectors: ByteV
00000000  44 6f 63 75 6d 65 6e 74  61 74 69 6f 6e 20 66 6f  |Documentation fo|
00000010  72 20 53 57 49 73 20 73  75 70 70 6f 72 74 65 64  |r SWIs supported|
00000020  20 62 79 20 4d 69 67 68  74 79 4d 6f 75 73 65 20  | by MightyMouse |
00000030  6d 6f 64 75 6c 65 20 76  31 2e 30 31 20 2d 20 53  |module v1.01 - S|
00000040  55 4e 20 31 36 2f 30 38  2f 31 39 39 38 0a 0a 4e  |UN 16/08/1998..N|
00000050  4f 54 45 3a 20 4e 6f 20  63 68 61 6e 67 65 73 20  |OTE: No changes |
00000060  68 61 76 65 20 62 65 65  6e 20 6d 61 64 65 20 74  |have been made t|
00000070  6f 20 74 68 65 73 65 20  63 61 6c 6c 73 20 73 69  |o these calls si|
00000080  6e 63 65 20 76 31 2e 30  30 0a 0a 0a 4d 69 67 68  |nce v1.00...Migh|
00000090  74 79 4d 6f 75 73 65 5f  42 75 74 74 6f 6e 73 20  |tyMouse_Buttons |
000000a0  28 53 57 49 20 26 35 46  46 43 30 29 0a 0a 46 55  |(SWI &5FFC0)..FU|
000000b0  4e 43 54 49 4f 4e 0a 0a  52 65 61 64 20 6f 72 20  |NCTION..Read or |
000000c0  77 72 69 74 65 20 74 68  65 20 6d 6f 75 73 65 20  |write the mouse |
000000d0  62 75 74 74 6f 6e 73 20  6e 6f 72 6d 61 6c 2f 73  |buttons normal/s|
000000e0  77 61 70 70 65 64 20 73  65 74 74 69 6e 67 20 61  |wapped setting a|
000000f0  6e 64 20 74 68 65 69 72  20 43 4d 4f 53 0a 63 6f  |nd their CMOS.co|
00000100  6e 66 69 67 75 72 61 74  69 6f 6e 2e 0a 0a 4f 4e  |nfiguration...ON|
00000110  20 45 4e 54 52 59 0a 0a  52 30 20 3d 20 6e 65 77  | ENTRY..R0 = new|
00000120  20 62 69 74 73 20 69 6e  20 66 69 65 6c 64 0a 52  | bits in field.R|
00000130  31 20 3d 20 66 69 65 6c  64 20 6d 61 73 6b 0a 0a  |1 = field mask..|
00000140  46 6c 61 67 73 20 61 72  65 20 69 67 6e 6f 72 65  |Flags are ignore|
00000150  64 0a 0a 0a 4f 4e 20 45  58 49 54 0a 0a 52 30 20  |d...ON EXIT..R0 |
00000160  3d 20 70 72 65 76 69 6f  75 73 20 62 69 74 73 20  |= previous bits |
00000170  69 6e 20 66 69 65 6c 64  0a 52 31 20 3d 20 70 72  |in field.R1 = pr|
00000180  65 73 65 72 76 65 64 0a  0a 56 20 69 73 20 73 65  |eserved..V is se|
00000190  74 20 69 66 20 61 6e 20  65 72 72 6f 72 20 6f 63  |t if an error oc|
000001a0  63 75 72 72 65 64 0a 4e  5a 43 20 61 72 65 20 70  |curred.NZC are p|
000001b0  72 65 73 65 72 76 65 64  0a 0a 0a 49 4e 54 45 52  |reserved...INTER|
000001c0  52 55 50 54 53 0a 0a 49  6e 74 65 72 72 75 70 74  |RUPTS..Interrupt|
000001d0  73 20 61 72 65 20 75 6e  64 65 66 69 6e 65 64 0a  |s are undefined.|
000001e0  46 61 73 74 20 69 6e 74  65 72 72 75 70 74 73 20  |Fast interrupts |
000001f0  61 72 65 20 65 6e 61 62  6c 65 64 0a 0a 0a 50 52  |are enabled...PR|
00000200  4f 43 45 53 53 4f 52 20  4d 4f 44 45 0a 0a 50 72  |OCESSOR MODE..Pr|
00000210  6f 63 65 73 73 6f 72 20  69 73 20 69 6e 20 53 56  |ocessor is in SV|
00000220  43 20 6d 6f 64 65 0a 0a  0a 52 45 2d 45 4e 54 52  |C mode...RE-ENTR|
00000230  41 4e 43 59 0a 0a 53 57  49 20 69 73 20 6e 6f 74  |ANCY..SWI is not|
00000240  20 72 65 2d 65 6e 74 72  61 6e 74 0a 0a 0a 55 53  | re-entrant...US|
00000250  45 0a 0a 49 6e 74 65 6e  64 65 64 20 66 6f 72 20  |E..Intended for |
00000260  75 73 65 20 69 6e 20 61  20 62 6f 6f 74 20 66 69  |use in a boot fi|
00000270  6c 65 20 6f 72 20 64 65  73 6b 74 6f 70 20 6d 61  |le or desktop ma|
00000280  6e 61 67 65 6d 65 6e 74  20 75 74 69 6c 69 74 79  |nagement utility|
00000290  20 74 68 61 74 20 77 69  73 68 65 73 20 74 6f 0a  | that wishes to.|
000002a0  73 77 61 70 20 74 68 65  20 73 65 6c 65 63 74 20  |swap the select |
000002b0  26 20 61 64 6a 75 73 74  20 6d 6f 75 73 65 20 62  |& adjust mouse b|
000002c0  75 74 74 6f 6e 73 20 66  6f 72 20 6c 65 66 74 2d  |uttons for left-|
000002d0  68 61 6e 64 65 64 20 75  73 65 72 73 2e 0a 0a 54  |handed users...T|
000002e0  6f 20 61 6c 6c 6f 77 20  74 68 65 20 70 72 6f 67  |o allow the prog|
000002f0  72 61 6d 6d 69 6e 67 20  6f 66 20 69 6e 64 69 76  |ramming of indiv|
00000300  69 64 75 61 6c 20 62 69  74 73 2c 20 74 68 65 20  |idual bits, the |
00000310  63 61 6c 6c 20 74 61 6b  65 73 20 61 20 66 69 65  |call takes a fie|
00000320  6c 64 20 61 6e 64 20 61  0a 6d 61 73 6b 2e 20 54  |ld and a.mask. T|
00000330  68 65 20 6e 65 77 20 62  75 74 74 6f 6e 73 20 73  |he new buttons s|
00000340  65 74 74 69 6e 67 73 20  61 72 65 3a 0a 0a 4e 65  |ettings are:..Ne|
00000350  77 20 62 75 74 74 6f 6e  73 20 3d 20 28 4f 6c 64  |w buttons = (Old|
00000360  20 62 75 74 74 6f 6e 73  20 41 4e 44 20 4e 4f 54  | buttons AND NOT|
00000370  20 52 31 29 20 4f 52 20  28 52 30 20 41 4e 44 20  | R1) OR (R0 AND |
00000380  52 31 29 0a 52 30 20 20  20 20 20 20 20 20 20 20  |R1).R0          |
00000390  3d 20 20 4f 6c 64 20 62  75 74 74 6f 6e 73 0a 52  |=  Old buttons.R|
000003a0  30 20 62 69 74 20 66 69  65 6c 64 20 64 65 66 69  |0 bit field defi|
000003b0  6e 69 74 69 6f 6e 3a 0a  0a 42 69 74 20 30 20 20  |nition:..Bit 0  |
000003c0  20 20 20 52 65 61 64 2f  77 72 69 74 65 20 6e 6f  |   Read/write no|
000003d0  72 6d 61 6c 2f 73 77 61  70 70 65 64 20 62 75 74  |rmal/swapped but|
000003e0  74 6f 6e 73 20 73 74 61  74 65 0a 42 69 74 20 31  |tons state.Bit 1|
000003f0  20 20 20 20 20 52 65 61  64 2f 77 72 69 74 65 20  |     Read/write |
00000400  6e 6f 72 6d 61 6c 2f 73  77 61 70 70 65 64 20 63  |normal/swapped c|
00000410  6f 6e 66 69 67 75 72 61  74 69 6f 6e 20 73 74 61  |onfiguration sta|
00000420  74 75 73 0a 0a 42 69 74  20 3d 20 30 20 20 20 52  |tus..Bit = 0   R|
00000430  65 61 64 2f 77 72 69 74  65 20 6e 6f 72 6d 61 6c  |ead/write normal|
00000440  20 20 62 75 74 74 6f 6e  73 0a 42 69 74 20 3d 20  |  buttons.Bit = |
00000450  31 20 20 20 52 65 61 64  2f 77 72 69 74 65 20 73  |1   Read/write s|
00000460  77 61 70 70 65 64 20 62  75 74 74 6f 6e 73 0a 42  |wapped buttons.B|
00000470  69 74 73 20 32 2d 33 31  20 4d 75 73 74 20 62 65  |its 2-31 Must be|
00000480  20 30 20 66 6f 72 20 66  75 74 75 72 65 20 63 6f  | 0 for future co|
00000490  6d 70 61 74 69 62 69 6c  69 74 79 0a 0a 54 6f 20  |mpatibility..To |
000004a0  72 65 61 64 20 61 20 62  69 74 2c 20 63 6c 65 61  |read a bit, clea|
000004b0  72 20 74 68 65 20 72 65  71 75 69 72 65 64 20 62  |r the required b|
000004c0  69 74 20 69 6e 20 52 31  2c 20 74 68 65 20 63 6f  |it in R1, the co|
000004d0  72 72 65 73 70 6f 6e 64  69 6e 67 20 62 69 74 20  |rresponding bit |
000004e0  69 6e 20 52 30 0a 77 69  6c 6c 20 72 65 66 6c 65  |in R0.will refle|
000004f0  63 74 20 74 68 65 20 63  75 72 72 65 6e 74 20 73  |ct the current s|
00000500  74 61 74 75 73 2e 20 54  6f 20 77 72 69 74 65 20  |tatus. To write |
00000510  61 20 62 69 74 2c 20 73  65 74 20 74 68 65 20 72  |a bit, set the r|
00000520  65 71 75 69 72 65 64 20  62 69 74 20 69 6e 20 52  |equired bit in R|
00000530  31 2c 0a 74 68 65 20 63  6f 72 72 65 73 70 6f 6e  |1,.the correspon|
00000540  64 69 6e 67 20 62 69 74  20 69 6e 20 52 30 20 77  |ding bit in R0 w|
00000550  69 6c 6c 20 62 65 20 77  72 69 74 74 65 6e 2e 0a  |ill be written..|
00000560  4e 4f 54 45 3a 20 57 68  65 6e 20 72 65 61 64 69  |NOTE: When readi|
00000570  6e 67 2c 20 74 68 65 20  76 61 6c 75 65 20 6f 66  |ng, the value of|
00000580  20 74 68 65 20 63 6f 72  72 65 73 70 6f 6e 64 69  | the correspondi|
00000590  6e 67 20 62 69 74 20 69  6e 20 52 30 20 69 73 20  |ng bit in R0 is |
000005a0  72 65 64 75 6e 64 61 6e  74 2e 0a 0a 54 68 65 20  |redundant...The |
000005b0  63 61 6c 6c 20 61 6c 77  61 79 73 20 72 65 74 75  |call always retu|
000005c0  72 6e 73 20 74 68 65 20  70 72 65 2d 6d 6f 64 69  |rns the pre-modi|
000005d0  66 69 65 64 20 73 74 61  74 65 73 20 6f 66 20 62  |fied states of b|
000005e0  69 74 73 20 30 20 26 20  31 20 61 6e 64 20 70 72  |its 0 & 1 and pr|
000005f0  65 73 65 72 76 65 73 0a  62 69 74 73 20 32 2d 33  |eserves.bits 2-3|
00000600  31 2e 0a 0a 52 65 6c 61  74 65 64 20 53 57 49 73  |1...Related SWIs|
00000610  3a 20 20 20 20 4f 53 5f  4d 6f 75 73 65 0a 52 65  |:    OS_Mouse.Re|
00000620  6c 61 74 65 64 20 76 65  63 74 6f 72 73 3a 20 4d  |lated vectors: M|
00000630  6f 75 73 65 56 0a 0a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |ouseV..*********|
00000640  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000680  2a 2a 2a 0a 0a 4d 69 67  68 74 79 4d 6f 75 73 65  |***..MightyMouse|
00000690  5f 43 6d 6f 73 41 63 63  65 73 73 20 28 53 57 49  |_CmosAccess (SWI|
000006a0  20 26 35 46 46 43 31 29  0a 0a 46 55 4e 43 54 49  | &5FFC1)..FUNCTI|
000006b0  4f 4e 0a 0a 52 65 61 64  20 6f 72 20 77 72 69 74  |ON..Read or writ|
000006c0  65 20 74 68 65 20 43 4d  4f 53 20 52 41 4d 0a 0a  |e the CMOS RAM..|
000006d0  4f 4e 20 45 4e 54 52 59  0a 0a 52 31 20 3d 20 52  |ON ENTRY..R1 = R|
000006e0  41 4d 20 6c 6f 63 61 74  69 6f 6e 0a 52 33 20 3d  |AM location.R3 =|
000006f0  20 56 61 6c 75 65 20 74  6f 20 72 65 61 64 2f 77  | Value to read/w|
00000700  72 69 74 65 0a 52 34 20  3d 20 4d 61 73 6b 0a 0a  |rite.R4 = Mask..|
00000710  46 6c 61 67 73 20 61 72  65 20 69 67 6e 6f 72 65  |Flags are ignore|
00000720  64 0a 0a 0a 4f 4e 20 45  58 49 54 0a 0a 52 30 20  |d...ON EXIT..R0 |
00000730  3d 20 4f 72 69 67 69 6e  61 6c 20 63 6f 6e 74 65  |= Original conte|
00000740  6e 74 73 20 6f 66 20 6c  6f 63 61 74 69 6f 6e 0a  |nts of location.|
00000750  52 31 20 3d 20 50 72 65  73 65 72 76 65 64 0a 52  |R1 = Preserved.R|
00000760  32 20 3d 20 4d 6f 64 69  66 69 65 64 20 63 6f 6e  |2 = Modified con|
00000770  74 65 6e 74 73 20 6f 66  20 6c 6f 63 61 74 69 6f  |tents of locatio|
00000780  6e 0a 52 33 20 3d 20 50  72 65 73 65 72 76 65 64  |n.R3 = Preserved|
00000790  0a 52 34 20 3d 20 50 72  65 73 65 72 76 65 64 0a  |.R4 = Preserved.|
000007a0  0a 56 20 63 6c 65 61 72  65 64 3a 20 67 65 6e 65  |.V cleared: gene|
000007b0  72 61 74 65 73 20 6e 6f  20 65 72 72 6f 72 73 0a  |rates no errors.|
000007c0  4e 5a 43 20 61 72 65 20  70 72 65 73 65 72 76 65  |NZC are preserve|
000007d0  64 0a 0a 0a 49 4e 54 45  52 52 55 50 54 53 0a 0a  |d...INTERRUPTS..|
000007e0  49 6e 74 65 72 72 75 70  74 73 20 61 72 65 20 75  |Interrupts are u|
000007f0  6e 64 65 66 69 6e 65 64  0a 46 61 73 74 20 69 6e  |ndefined.Fast in|
00000800  74 65 72 72 75 70 74 73  20 61 72 65 20 65 6e 61  |terrupts are ena|
00000810  62 6c 65 64 0a 0a 0a 50  52 4f 43 45 53 53 4f 52  |bled...PROCESSOR|
00000820  20 4d 4f 44 45 0a 0a 50  72 6f 63 65 73 73 6f 72  | MODE..Processor|
00000830  20 69 73 20 69 6e 20 53  56 43 20 6d 6f 64 65 0a  | is in SVC mode.|
00000840  0a 0a 52 45 2d 45 4e 54  52 41 4e 43 59 0a 0a 53  |..RE-ENTRANCY..S|
00000850  57 49 20 69 73 20 6e 6f  74 20 72 65 2d 65 6e 74  |WI is not re-ent|
00000860  72 61 6e 74 0a 0a 0a 55  53 45 0a 0a 41 6c 6c 6f  |rant...USE..Allo|
00000870  77 73 20 74 68 65 20 70  72 6f 67 72 61 6d 6d 69  |ws the programmi|
00000880  6e 67 20 6f 66 20 69 6e  64 69 76 69 64 75 61 6c  |ng of individual|
00000890  20 62 69 74 73 20 69 6e  20 61 6e 79 20 6c 6f 63  | bits in any loc|
000008a0  61 74 69 6f 6e 20 6f 66  20 74 68 65 20 43 4d 4f  |ation of the CMO|
000008b0  53 20 52 41 4d 2c 0a 77  68 69 63 68 20 74 68 65  |S RAM,.which the|
000008c0  20 52 69 73 63 20 4f 53  20 53 57 49 73 20 31 36  | Risc OS SWIs 16|
000008d0  31 20 26 20 31 36 32 20  63 61 6e 6e 6f 74 20 64  |1 & 162 cannot d|
000008e0  6f 2e 20 4e 6f 74 65 20  74 68 61 74 20 6c 6f 63  |o. Note that loc|
000008f0  61 74 69 6f 6e 20 30 20  63 61 6e 20 6f 6e 6c 79  |ation 0 can only|
00000900  20 62 65 0a 72 65 61 64  2e 20 54 68 69 73 20 53  | be.read. This S|
00000910  57 49 20 77 61 73 20 6f  72 69 67 69 6e 61 6c 6c  |WI was originall|
00000920  79 20 77 72 69 74 74 65  6e 20 61 73 20 61 6e 20  |y written as an |
00000930  69 6e 74 65 72 6e 61 6c  20 66 75 6e 63 74 69 6f  |internal functio|
00000940  6e 20 6f 66 20 74 68 65  0a 4d 69 67 68 74 79 4d  |n of the.MightyM|
00000950  6f 75 73 65 20 6d 6f 64  75 6c 65 2c 20 62 75 74  |ouse module, but|
00000960  20 68 61 73 20 62 65 65  6e 20 67 69 76 65 6e 20  | has been given |
00000970  65 78 74 65 72 6e 61 6c  20 61 63 63 65 73 73 20  |external access |
00000980  61 73 20 69 74 20 69 73  20 70 6f 74 65 6e 74 69  |as it is potenti|
00000990  61 6c 6c 79 0a 75 73 65  66 75 6c 20 74 6f 20 6f  |ally.useful to o|
000009a0  74 68 65 72 20 70 72 6f  67 72 61 6d 73 2e 0a 0a  |ther programs...|
000009b0  54 6f 20 61 6c 6c 6f 77  20 74 68 65 20 70 72 6f  |To allow the pro|
000009c0  67 72 61 6d 6d 69 6e 67  20 6f 66 20 69 6e 64 69  |gramming of indi|
000009d0  76 69 64 75 61 6c 20 62  69 74 73 2c 20 74 68 65  |vidual bits, the|
000009e0  20 63 61 6c 6c 20 74 61  6b 65 73 20 61 20 66 69  | call takes a fi|
000009f0  65 6c 64 20 61 6e 64 20  61 0a 6d 61 73 6b 2e 20  |eld and a.mask. |
00000a00  54 68 65 20 6e 65 77 20  76 61 6c 75 65 20 69 73  |The new value is|
00000a10  3a 0a 0a 4e 65 77 20 76  61 6c 75 65 20 3d 20 28  |:..New value = (|
00000a20  4f 6c 64 20 76 61 6c 75  65 20 41 4e 44 20 4e 4f  |Old value AND NO|
00000a30  54 20 52 31 29 20 4f 52  20 28 52 30 20 41 4e 44  |T R1) OR (R0 AND|
00000a40  20 52 31 29 0a 52 30 20  20 20 20 20 20 20 20 3d  | R1).R0        =|
00000a50  20 20 4f 6c 64 20 76 61  6c 75 65 0a 0a 42 69 74  |  Old value..Bit|
00000a60  73 20 38 2d 33 31 20 70  61 73 73 65 64 20 69 6e  |s 8-31 passed in|
00000a70  20 52 30 2d 52 34 20 61  72 65 20 69 67 6e 6f 72  | R0-R4 are ignor|
00000a80  65 64 20 61 6e 64 20 70  72 65 73 65 72 76 65 64  |ed and preserved|
00000a90  20 61 63 72 6f 73 73 20  74 68 65 20 63 61 6c 6c  | across the call|
00000aa0  2e 0a 0a 54 6f 20 72 65  61 64 20 61 20 62 69 74  |...To read a bit|
00000ab0  2c 20 63 6c 65 61 72 20  74 68 65 20 72 65 71 75  |, clear the requ|
00000ac0  69 72 65 64 20 62 69 74  20 69 6e 20 52 31 2c 20  |ired bit in R1, |
00000ad0  74 68 65 20 63 6f 72 72  65 73 70 6f 6e 64 69 6e  |the correspondin|
00000ae0  67 20 62 69 74 20 69 6e  20 52 30 0a 77 69 6c 6c  |g bit in R0.will|
00000af0  20 72 65 66 6c 65 63 74  20 74 68 65 20 63 75 72  | reflect the cur|
00000b00  72 65 6e 74 20 43 4d 4f  53 20 76 61 6c 75 65 2e  |rent CMOS value.|
00000b10  20 54 6f 20 77 72 69 74  65 20 61 20 62 69 74 2c  | To write a bit,|
00000b20  20 73 65 74 20 74 68 65  20 72 65 71 75 69 72 65  | set the require|
00000b30  64 20 62 69 74 20 69 6e  0a 52 31 2c 20 74 68 65  |d bit in.R1, the|
00000b40  20 63 6f 72 72 65 73 70  6f 6e 64 69 6e 67 20 62  | corresponding b|
00000b50  69 74 20 69 6e 20 52 30  20 77 69 6c 6c 20 62 65  |it in R0 will be|
00000b60  20 77 72 69 74 74 65 6e  2e 0a 4e 4f 54 45 3a 20  | written..NOTE: |
00000b70  57 68 65 6e 20 72 65 61  64 69 6e 67 2c 20 74 68  |When reading, th|
00000b80  65 20 76 61 6c 75 65 20  6f 66 20 74 68 65 20 63  |e value of the c|
00000b90  6f 72 72 65 73 70 6f 6e  64 69 6e 67 20 62 69 74  |orresponding bit|
00000ba0  20 69 6e 20 52 30 20 69  73 20 72 65 64 75 6e 64  | in R0 is redund|
00000bb0  61 6e 74 2e 0a 0a 0a 52  65 6c 61 74 65 64 20 53  |ant....Related S|
00000bc0  57 49 73 3a 20 20 20 20  4f 53 5f 42 79 74 65 20  |WIs:    OS_Byte |
00000bd0  31 36 31 20 26 20 31 36  32 0a 52 65 6c 61 74 65  |161 & 162.Relate|
00000be0  64 20 76 65 63 74 6f 72  73 3a 20 42 79 74 65 56  |d vectors: ByteV|
00000bf0  0a                                                |.|
00000bf1