Home » Archimedes archive » Acorn User » AU 1995-09.adf » !Regulars » Regulars/StarInfo/Stirling/!MityMouse/MitySWI

Regulars/StarInfo/Stirling/!MityMouse/MitySWI

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 1995-09.adf » !Regulars
Filename: Regulars/StarInfo/Stirling/!MityMouse/MitySWI
Read OK:
File size: 0BDB bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
Documentation for SWIs supported by module MightyMouse v1.00 (04 Mar 1995)

� Michael Stirling

Edit work area = 77


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 6d 6f 64 75  6c 65 20 4d 69 67 68 74  | by module Might|
00000030  79 4d 6f 75 73 65 20 76  31 2e 30 30 20 28 30 34  |yMouse v1.00 (04|
00000040  20 4d 61 72 20 31 39 39  35 29 0a 0a a9 20 4d 69  | Mar 1995)... Mi|
00000050  63 68 61 65 6c 20 53 74  69 72 6c 69 6e 67 0a 0a  |chael Stirling..|
00000060  45 64 69 74 20 77 6f 72  6b 20 61 72 65 61 20 3d  |Edit work area =|
00000070  20 37 37 0a 0a 0a 4d 69  67 68 74 79 4d 6f 75 73  | 77...MightyMous|
00000080  65 5f 42 75 74 74 6f 6e  73 20 28 53 57 49 20 26  |e_Buttons (SWI &|
00000090  35 46 46 43 30 29 0a 0a  46 55 4e 43 54 49 4f 4e  |5FFC0)..FUNCTION|
000000a0  0a 0a 52 65 61 64 20 6f  72 20 77 72 69 74 65 20  |..Read or write |
000000b0  74 68 65 20 6d 6f 75 73  65 20 62 75 74 74 6f 6e  |the mouse button|
000000c0  73 20 6e 6f 72 6d 61 6c  2f 73 77 61 70 70 65 64  |s normal/swapped|
000000d0  20 73 65 74 74 69 6e 67  20 61 6e 64 20 74 68 65  | setting and the|
000000e0  69 72 20 43 4d 4f 53 0a  63 6f 6e 66 69 67 75 72  |ir CMOS.configur|
000000f0  61 74 69 6f 6e 2e 0a 0a  4f 4e 20 45 4e 54 52 59  |ation...ON ENTRY|
00000100  0a 0a 52 30 20 3d 20 6e  65 77 20 62 69 74 73 20  |..R0 = new bits |
00000110  69 6e 20 66 69 65 6c 64  0a 52 31 20 3d 20 66 69  |in field.R1 = fi|
00000120  65 6c 64 20 6d 61 73 6b  0a 0a 46 6c 61 67 73 20  |eld mask..Flags |
00000130  61 72 65 20 69 67 6e 6f  72 65 64 0a 0a 0a 4f 4e  |are ignored...ON|
00000140  20 45 58 49 54 0a 0a 52  30 20 3d 20 70 72 65 76  | EXIT..R0 = prev|
00000150  69 6f 75 73 20 62 69 74  73 20 69 6e 20 66 69 65  |ious bits in fie|
00000160  6c 64 0a 52 31 20 3d 20  70 72 65 73 65 72 76 65  |ld.R1 = preserve|
00000170  64 0a 0a 56 20 69 73 20  73 65 74 20 69 66 20 61  |d..V is set if a|
00000180  6e 20 65 72 72 6f 72 20  6f 63 63 75 72 72 65 64  |n error occurred|
00000190  0a 4e 5a 43 20 61 72 65  20 70 72 65 73 65 72 76  |.NZC are preserv|
000001a0  65 64 0a 0a 0a 49 4e 54  45 52 52 55 50 54 53 0a  |ed...INTERRUPTS.|
000001b0  0a 49 6e 74 65 72 72 75  70 74 73 20 61 72 65 20  |.Interrupts are |
000001c0  75 6e 64 65 66 69 6e 65  64 0a 46 61 73 74 20 69  |undefined.Fast i|
000001d0  6e 74 65 72 72 75 70 74  73 20 61 72 65 20 65 6e  |nterrupts are en|
000001e0  61 62 6c 65 64 0a 0a 0a  50 52 4f 43 45 53 53 4f  |abled...PROCESSO|
000001f0  52 20 4d 4f 44 45 0a 0a  50 72 6f 63 65 73 73 6f  |R MODE..Processo|
00000200  72 20 69 73 20 69 6e 20  53 56 43 20 6d 6f 64 65  |r is in SVC mode|
00000210  0a 0a 0a 52 45 2d 45 4e  54 52 41 4e 43 59 0a 0a  |...RE-ENTRANCY..|
00000220  53 57 49 20 69 73 20 6e  6f 74 20 72 65 2d 65 6e  |SWI is not re-en|
00000230  74 72 61 6e 74 0a 0a 0a  55 53 45 0a 0a 49 6e 74  |trant...USE..Int|
00000240  65 6e 64 65 64 20 66 6f  72 20 75 73 65 20 69 6e  |ended for use in|
00000250  20 61 20 62 6f 6f 74 20  66 69 6c 65 20 6f 72 20  | a boot file or |
00000260  64 65 73 6b 74 6f 70 20  6d 61 6e 61 67 65 6d 65  |desktop manageme|
00000270  6e 74 20 75 74 69 6c 69  74 79 20 74 68 61 74 20  |nt utility that |
00000280  77 69 73 68 65 73 20 74  6f 0a 73 77 61 70 20 74  |wishes to.swap t|
00000290  68 65 20 73 65 6c 65 63  74 20 26 20 61 64 6a 75  |he select & adju|
000002a0  73 74 20 6d 6f 75 73 65  20 62 75 74 74 6f 6e 73  |st mouse buttons|
000002b0  20 66 6f 72 20 6c 65 66  74 2d 68 61 6e 64 65 64  | for left-handed|
000002c0  20 75 73 65 72 73 2e 0a  0a 54 6f 20 61 6c 6c 6f  | users...To allo|
000002d0  77 20 74 68 65 20 70 72  6f 67 72 61 6d 6d 69 6e  |w the programmin|
000002e0  67 20 6f 66 20 69 6e 64  69 76 69 64 75 61 6c 20  |g of individual |
000002f0  62 69 74 73 2c 20 74 68  65 20 63 61 6c 6c 20 74  |bits, the call t|
00000300  61 6b 65 73 20 61 20 66  69 65 6c 64 20 61 6e 64  |akes a field and|
00000310  20 61 0a 6d 61 73 6b 2e  20 54 68 65 20 6e 65 77  | a.mask. The new|
00000320  20 62 75 74 74 6f 6e 73  20 73 65 74 74 69 6e 67  | buttons setting|
00000330  73 20 61 72 65 3a 0a 0a  4e 65 77 20 62 75 74 74  |s are:..New butt|
00000340  6f 6e 73 20 3d 20 28 4f  6c 64 20 62 75 74 74 6f  |ons = (Old butto|
00000350  6e 73 20 41 4e 44 20 4e  4f 54 20 52 31 29 20 4f  |ns AND NOT R1) O|
00000360  52 20 28 52 30 20 41 4e  44 20 52 31 29 0a 52 30  |R (R0 AND R1).R0|
00000370  20 20 20 20 20 20 20 20  20 20 3d 20 20 4f 6c 64  |          =  Old|
00000380  20 62 75 74 74 6f 6e 73  0a 0a 52 30 20 62 69 74  | buttons..R0 bit|
00000390  20 66 69 65 6c 64 20 64  65 66 69 6e 69 74 69 6f  | field definitio|
000003a0  6e 3a 0a 42 69 74 20 30  20 20 20 20 20 52 65 61  |n:.Bit 0     Rea|
000003b0  64 2f 77 72 69 74 65 20  6e 6f 72 6d 61 6c 2f 73  |d/write normal/s|
000003c0  77 61 70 70 65 64 20 62  75 74 74 6f 6e 73 20 73  |wapped buttons s|
000003d0  74 61 74 65 0a 42 69 74  20 31 20 20 20 20 20 52  |tate.Bit 1     R|
000003e0  65 61 64 2f 77 72 69 74  65 20 6e 6f 72 6d 61 6c  |ead/write normal|
000003f0  2f 73 77 61 70 70 65 64  20 63 6f 6e 66 69 67 75  |/swapped configu|
00000400  72 61 74 69 6f 6e 20 73  74 61 74 75 73 0a 0a 42  |ration status..B|
00000410  69 74 20 3d 20 30 20 20  20 52 65 61 64 2f 77 72  |it = 0   Read/wr|
00000420  69 74 65 20 6e 6f 72 6d  61 6c 20 20 62 75 74 74  |ite normal  butt|
00000430  6f 6e 73 0a 42 69 74 20  3d 20 31 20 20 20 52 65  |ons.Bit = 1   Re|
00000440  61 64 2f 77 72 69 74 65  20 73 77 61 70 70 65 64  |ad/write swapped|
00000450  20 62 75 74 74 6f 6e 73  0a 42 69 74 73 20 32 2d  | buttons.Bits 2-|
00000460  33 31 20 4d 75 73 74 20  62 65 20 30 20 66 6f 72  |31 Must be 0 for|
00000470  20 66 75 74 75 72 65 20  63 6f 6d 70 61 74 69 62  | future compatib|
00000480  69 6c 69 74 79 0a 0a 54  6f 20 72 65 61 64 20 61  |ility..To read a|
00000490  20 62 69 74 2c 20 63 6c  65 61 72 20 74 68 65 20  | bit, clear the |
000004a0  72 65 71 75 69 72 65 64  20 62 69 74 20 69 6e 20  |required bit in |
000004b0  52 31 2c 20 74 68 65 20  63 6f 72 72 65 73 70 6f  |R1, the correspo|
000004c0  6e 64 69 6e 67 20 62 69  74 20 69 6e 20 52 30 0a  |nding bit in R0.|
000004d0  77 69 6c 6c 20 72 65 66  6c 65 63 74 20 74 68 65  |will reflect the|
000004e0  20 63 75 72 72 65 6e 74  20 73 74 61 74 75 73 2e  | current status.|
000004f0  20 54 6f 20 77 72 69 74  65 20 61 20 62 69 74 2c  | To write a bit,|
00000500  20 73 65 74 20 74 68 65  20 72 65 71 75 69 72 65  | set the require|
00000510  64 20 62 69 74 20 69 6e  20 52 31 2c 0a 74 68 65  |d bit in R1,.the|
00000520  20 63 6f 72 72 65 73 70  6f 6e 64 69 6e 67 20 62  | corresponding b|
00000530  69 74 20 69 6e 20 52 30  20 77 69 6c 6c 20 62 65  |it in R0 will be|
00000540  20 77 72 69 74 74 65 6e  2e 0a 4e 4f 54 45 3a 20  | written..NOTE: |
00000550  57 68 65 6e 20 72 65 61  64 69 6e 67 2c 20 74 68  |When reading, th|
00000560  65 20 76 61 6c 75 65 20  6f 66 20 74 68 65 20 63  |e value of the c|
00000570  6f 72 72 65 73 70 6f 6e  64 69 6e 67 20 62 69 74  |orresponding bit|
00000580  20 69 6e 20 52 30 20 69  73 20 72 65 64 75 6e 64  | in R0 is redund|
00000590  61 6e 74 2e 0a 0a 54 68  65 20 63 61 6c 6c 20 61  |ant...The call a|
000005a0  6c 77 61 79 73 20 72 65  74 75 72 6e 73 20 74 68  |lways returns th|
000005b0  65 20 70 72 65 2d 6d 6f  64 69 66 69 65 64 20 73  |e pre-modified s|
000005c0  74 61 74 65 73 20 6f 66  20 62 69 74 73 20 30 20  |tates of bits 0 |
000005d0  26 20 31 20 61 6e 64 20  70 72 65 73 65 72 76 65  |& 1 and preserve|
000005e0  73 0a 62 69 74 73 20 32  2d 33 31 2e 0a 0a 52 65  |s.bits 2-31...Re|
000005f0  6c 61 74 65 64 20 53 57  49 73 3a 20 20 20 20 4f  |lated SWIs:    O|
00000600  53 5f 4d 6f 75 73 65 0a  52 65 6c 61 74 65 64 20  |S_Mouse.Related |
00000610  76 65 63 74 6f 72 73 3a  20 4d 6f 75 73 65 56 0a  |vectors: MouseV.|
00000620  0a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |.***************|
00000630  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000660  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 0a 0a 4d  |*************..M|
00000670  69 67 68 74 79 4d 6f 75  73 65 5f 43 6d 6f 73 41  |ightyMouse_CmosA|
00000680  63 63 65 73 73 20 28 53  57 49 20 26 35 46 46 43  |ccess (SWI &5FFC|
00000690  31 29 0a 0a 46 55 4e 43  54 49 4f 4e 0a 0a 52 65  |1)..FUNCTION..Re|
000006a0  61 64 20 6f 72 20 77 72  69 74 65 20 74 68 65 20  |ad or write the |
000006b0  43 4d 4f 53 20 52 41 4d  0a 0a 4f 4e 20 45 4e 54  |CMOS RAM..ON ENT|
000006c0  52 59 0a 0a 52 31 20 3d  20 52 41 4d 20 6c 6f 63  |RY..R1 = RAM loc|
000006d0  61 74 69 6f 6e 0a 52 33  20 3d 20 56 61 6c 75 65  |ation.R3 = Value|
000006e0  20 74 6f 20 72 65 61 64  2f 77 72 69 74 65 0a 52  | to read/write.R|
000006f0  34 20 3d 20 4d 61 73 6b  0a 0a 46 6c 61 67 73 20  |4 = Mask..Flags |
00000700  61 72 65 20 69 67 6e 6f  72 65 64 0a 0a 0a 4f 4e  |are ignored...ON|
00000710  20 45 58 49 54 0a 0a 52  30 20 3d 20 4f 72 69 67  | EXIT..R0 = Orig|
00000720  69 6e 61 6c 20 63 6f 6e  74 65 6e 74 73 20 6f 66  |inal contents of|
00000730  20 6c 6f 63 61 74 69 6f  6e 0a 52 31 20 3d 20 50  | location.R1 = P|
00000740  72 65 73 65 72 76 65 64  0a 52 32 20 3d 20 4d 6f  |reserved.R2 = Mo|
00000750  64 69 66 69 65 64 20 63  6f 6e 74 65 6e 74 73 20  |dified contents |
00000760  6f 66 20 6c 6f 63 61 74  69 6f 6e 0a 52 33 20 3d  |of location.R3 =|
00000770  20 50 72 65 73 65 72 76  65 64 0a 52 34 20 3d 20  | Preserved.R4 = |
00000780  50 72 65 73 65 72 76 65  64 0a 0a 56 20 63 6c 65  |Preserved..V cle|
00000790  61 72 65 64 3a 20 67 65  6e 65 72 61 74 65 73 20  |ared: generates |
000007a0  6e 6f 20 65 72 72 6f 72  73 0a 4e 5a 43 20 61 72  |no errors.NZC ar|
000007b0  65 20 70 72 65 73 65 72  76 65 64 0a 0a 0a 49 4e  |e preserved...IN|
000007c0  54 45 52 52 55 50 54 53  0a 0a 49 6e 74 65 72 72  |TERRUPTS..Interr|
000007d0  75 70 74 73 20 61 72 65  20 75 6e 64 65 66 69 6e  |upts are undefin|
000007e0  65 64 0a 46 61 73 74 20  69 6e 74 65 72 72 75 70  |ed.Fast interrup|
000007f0  74 73 20 61 72 65 20 65  6e 61 62 6c 65 64 0a 0a  |ts are enabled..|
00000800  0a 50 52 4f 43 45 53 53  4f 52 20 4d 4f 44 45 0a  |.PROCESSOR MODE.|
00000810  0a 50 72 6f 63 65 73 73  6f 72 20 69 73 20 69 6e  |.Processor is in|
00000820  20 53 56 43 20 6d 6f 64  65 0a 0a 0a 52 45 2d 45  | SVC mode...RE-E|
00000830  4e 54 52 41 4e 43 59 0a  0a 53 57 49 20 69 73 20  |NTRANCY..SWI is |
00000840  6e 6f 74 20 72 65 2d 65  6e 74 72 61 6e 74 0a 0a  |not re-entrant..|
00000850  0a 55 53 45 0a 0a 41 6c  6c 6f 77 73 20 74 68 65  |.USE..Allows the|
00000860  20 70 72 6f 67 72 61 6d  6d 69 6e 67 20 6f 66 20  | programming of |
00000870  69 6e 64 69 76 69 64 75  61 6c 20 62 69 74 73 20  |individual bits |
00000880  69 6e 20 61 6e 79 20 6c  6f 63 61 74 69 6f 6e 20  |in any location |
00000890  6f 66 20 74 68 65 20 43  4d 4f 53 20 52 41 4d 2c  |of the CMOS RAM,|
000008a0  0a 77 68 69 63 68 20 74  68 65 20 52 49 53 43 20  |.which the RISC |
000008b0  4f 53 20 53 57 49 73 20  31 36 31 20 26 20 31 36  |OS SWIs 161 & 16|
000008c0  32 20 63 61 6e 6e 6f 74  20 64 6f 2e 20 4e 6f 74  |2 cannot do. Not|
000008d0  65 20 74 68 61 74 20 6c  6f 63 61 74 69 6f 6e 20  |e that location |
000008e0  30 20 63 61 6e 20 6f 6e  6c 79 20 62 65 0a 72 65  |0 can only be.re|
000008f0  61 64 2e 20 54 68 69 73  20 53 57 49 20 77 61 73  |ad. This SWI was|
00000900  20 6f 72 69 67 69 6e 61  6c 6c 79 20 77 72 69 74  | originally writ|
00000910  74 65 6e 20 61 73 20 61  6e 20 69 6e 74 65 72 6e  |ten as an intern|
00000920  61 6c 20 66 75 6e 63 74  69 6f 6e 20 6f 66 20 74  |al function of t|
00000930  68 65 0a 4d 69 67 68 74  79 4d 6f 75 73 65 20 6d  |he.MightyMouse m|
00000940  6f 64 75 6c 65 2c 20 62  75 74 20 68 61 73 20 62  |odule, but has b|
00000950  65 65 6e 20 67 69 76 65  6e 20 65 78 74 65 72 6e  |een given extern|
00000960  61 6c 20 61 63 63 65 73  73 20 61 73 20 69 74 20  |al access as it |
00000970  69 73 20 70 6f 74 65 6e  74 69 61 6c 6c 79 0a 75  |is potentially.u|
00000980  73 65 66 75 6c 20 74 6f  20 6f 74 68 65 72 20 70  |seful to other p|
00000990  72 6f 67 72 61 6d 73 2e  0a 0a 54 6f 20 61 6c 6c  |rograms...To all|
000009a0  6f 77 20 74 68 65 20 70  72 6f 67 72 61 6d 6d 69  |ow the programmi|
000009b0  6e 67 20 6f 66 20 69 6e  64 69 76 69 64 75 61 6c  |ng of individual|
000009c0  20 62 69 74 73 2c 20 74  68 65 20 63 61 6c 6c 20  | bits, the call |
000009d0  74 61 6b 65 73 20 61 20  66 69 65 6c 64 20 61 6e  |takes a field an|
000009e0  64 20 61 0a 6d 61 73 6b  2e 20 54 68 65 20 6e 65  |d a.mask. The ne|
000009f0  77 20 76 61 6c 75 65 20  69 73 3a 0a 0a 4e 65 77  |w value is:..New|
00000a00  20 76 61 6c 75 65 20 3d  20 28 4f 6c 64 20 76 61  | value = (Old va|
00000a10  6c 75 65 20 41 4e 44 20  4e 4f 54 20 52 31 29 20  |lue AND NOT R1) |
00000a20  4f 52 20 28 52 30 20 41  4e 44 20 52 31 29 0a 52  |OR (R0 AND R1).R|
00000a30  30 20 20 20 20 20 20 20  20 3d 20 20 4f 6c 64 20  |0        =  Old |
00000a40  76 61 6c 75 65 0a 0a 42  69 74 73 20 38 2d 33 31  |value..Bits 8-31|
00000a50  20 70 61 73 73 65 64 20  69 6e 20 52 30 2d 52 34  | passed in R0-R4|
00000a60  20 61 72 65 20 69 67 6e  6f 72 65 64 20 61 6e 64  | are ignored and|
00000a70  20 70 72 65 73 65 72 76  65 64 20 61 63 72 6f 73  | preserved acros|
00000a80  73 20 74 68 65 20 63 61  6c 6c 2e 0a 0a 54 6f 20  |s the call...To |
00000a90  72 65 61 64 20 61 20 62  69 74 2c 20 63 6c 65 61  |read a bit, clea|
00000aa0  72 20 74 68 65 20 72 65  71 75 69 72 65 64 20 62  |r the required b|
00000ab0  69 74 20 69 6e 20 52 31  2c 20 74 68 65 20 63 6f  |it in R1, the co|
00000ac0  72 72 65 73 70 6f 6e 64  69 6e 67 20 62 69 74 20  |rresponding bit |
00000ad0  69 6e 20 52 30 0a 77 69  6c 6c 20 72 65 66 6c 65  |in R0.will refle|
00000ae0  63 74 20 74 68 65 20 63  75 72 72 65 6e 74 20 43  |ct the current C|
00000af0  4d 4f 53 20 76 61 6c 75  65 2e 20 54 6f 20 77 72  |MOS value. To wr|
00000b00  69 74 65 20 61 20 62 69  74 2c 20 73 65 74 20 74  |ite a bit, set t|
00000b10  68 65 20 72 65 71 75 69  72 65 64 20 62 69 74 20  |he required bit |
00000b20  69 6e 0a 52 31 2c 20 74  68 65 20 63 6f 72 72 65  |in.R1, the corre|
00000b30  73 70 6f 6e 64 69 6e 67  20 62 69 74 20 69 6e 20  |sponding bit in |
00000b40  52 30 20 77 69 6c 6c 20  62 65 20 77 72 69 74 74  |R0 will be writt|
00000b50  65 6e 2e 0a 4e 4f 54 45  3a 20 57 68 65 6e 20 72  |en..NOTE: When r|
00000b60  65 61 64 69 6e 67 2c 20  74 68 65 20 76 61 6c 75  |eading, the valu|
00000b70  65 20 6f 66 20 74 68 65  20 63 6f 72 72 65 73 70  |e of the corresp|
00000b80  6f 6e 64 69 6e 67 20 62  69 74 20 69 6e 20 52 30  |onding bit in R0|
00000b90  20 69 73 20 72 65 64 75  6e 64 61 6e 74 2e 0a 0a  | is redundant...|
00000ba0  0a 52 65 6c 61 74 65 64  20 53 57 49 73 3a 20 20  |.Related SWIs:  |
00000bb0  20 20 4f 53 5f 42 79 74  65 20 31 36 31 20 26 20  |  OS_Byte 161 & |
00000bc0  31 36 32 0a 52 65 6c 61  74 65 64 20 76 65 63 74  |162.Related vect|
00000bd0  6f 72 73 3a 20 42 79 74  65 56 0a                 |ors: ByteV.|
00000bdb