Home » CEEFAX disks » telesoftware3.adl » 06_11_87/B\OSB03

06_11_87/B\OSB03

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 » CEEFAX disks » telesoftware3.adl
Filename: 06_11_87/B\OSB03
Read OK:
File size: 0BE5 bytes
Load address: 1900
Exec address: 8023
File contents
   10REM  OSbits Module B/osb03
   20REM  Branching
   30REM  Version 1.0 7.9.86
   40 
   50REMEMBER:  BCS is a branch if > or = not just >
   60REMEMBER:  BCC is a branch if <
   70 
   80*KEY1MO.3|M|NL.|M
   90 
  100osrdch=&FFE0
  110osasci=&FFE3
  120DIM code% 200
  130 
  140control$="Control code pressed"+CHR$13+CHR$0
  150upper$="Upper case pressed"+CHR$13+CHR$0
  160lower$="Lower case pressed"+CHR$13+CHR$0
  170number$="Number pressed"+CHR$13+CHR$0
  180punctuation$="Punctuation pressed"+CHR$13+CHR$0
  190 
  200FOR pass%=0 TO 3 STEP 3
  210P%=code%
  220 
  230[OPT pass%
  240JSR osrdch              \ Read key pressed into A
  250BMI exit                \ Exit if the code for the key is -ve, i.e. >127
  260CMP #32                 \ ASCII code for space
  270BCS not_control         \ Branch is A is >=32
  280 
  290\    By subtracting the label for the start of all the strings
  300\    from the start of the string you want, you get its offset
  310\    into the table of strings
  320 
  330LDX #(control-text)     \ Set X to offset of the start of your string
  340JSR print_out           \ This subroutine prints out the string
  350RTS
  360 
  370.not_control            \ Here if A >= 32, i.e. not a control code
  380CMP #48                 \ ASCII code for 0
  390BCC punctuation_print   \ Branch if A < 48 i.e. punctuation
  400 
  410CMP #58                 \ ASCII code for colon
  420BCS not_number          \ Branch if A >= 58, i.e. not a number
  430 
  440LDX #(number-text)
  450JSR print_out           \ Print out number string
  460RTS
  470 
  480.not_number
  490CMP #65                 \ ASCII code for A
  500BCC punctuation_print   \ Branch of A < 65, i.e. punctuation again
  510 
  520CMP #91                 \ ASCII code for [
  530BCS not_upper           \ Branch if A >= 91, i.e. not upper case
  540 
  550LDX #(upper-text)
  560JSR print_out           \ Print out upper case string
  570RTS
  580 
  590.not_upper
  600CMP #97                 \ ASCII code for a
  610BCC punctuation_print   \ Branch if A < 97, i.e. punctuation again
  620 
  630CMP #123                \ ASCII code for {
  640BCS not_lower           \ Branch if A >= {, i.e. not lower case
  650 
  660LDX #(lower-text)
  670JSR print_out           \ Print out lower case string
  680RTS
  690 
  700.not_lower
  710JSR punctuation_print
  720RTS                     \ Final exit from sieve
  730 
  740.punctuation_print
  750LDX #(punctuation-text)
  760JSR print_out           \ Print out punctuation string
  770RTS
  780 
  790.print_out
  800LDA text, X             \ Load A with character X into the string list
  810BEQ exit                \ If it is zero stop printing and exit
  820JSR osasci              \ Send the character to the screen
  830INX                     \ Increase X by one
  840JMP print_out           \ JMP back to the start of this loop
  850 
  860.exit
  870RTS
  880 
  890.text
  900.control
  910]
  920$P%=control$
  930P%=P%+LEN(control$)
  940[OPT pass%
  950.upper
  960]
  970$P%=upper$
  980P%=P%+LEN(upper$)
  990[OPT pass%
 1000.lower
 1010]
 1020$P%=lower$
 1030P%=P%+LEN(lower$)
 1040[OPT pass%
 1050.number
 1060]
 1070$P%=number$
 1080P%=P%+LEN(number$)
 1090[OPT pass%
 1100.punctuation
 1110]
 1120$P%=punctuation$
 1130P%=P%+LEN(punctuation$)
 1140NEXT
 1150REPEAT
 1160CALL code%
 1170UNTIL FALSE

�  OSbits Module B/osb03
�  Branching
�  Version 1.0 7.9.86
( 
21�EMBER:  BCS is a branch if > or = not just >
<!�EMBER:  BCC is a branch if <
F 
P*KEY1MO.3|M|NL.|M
Z 
dosrdch=&FFE0
nosasci=&FFE3
x� code% 200
� 
�*control$="Control code pressed"+�13+�0
�&upper$="Upper case pressed"+�13+�0
�&lower$="Lower case pressed"+�13+�0
�#number$="Number pressed"+�13+�0
�-punctuation$="Punctuation pressed"+�13+�0
� 
�� pass%=0 � 3 � 3
�P%=code%
� 
�[OPT pass%
�5JSR osrdch              \ Read key pressed into A
�LBMI exit                \ Exit if the code for the key is -ve, i.e. >127
0CMP #32                 \ �II code for space
1BCS not_control         \ Branch is A is >=32
 
"B\    By subtracting the label for the start of all the strings
,B\    from the start of the string you want, you get its offset
6"\    into the table of strings
@ 
JILDX #(control-text)     \ Set X to offset of the start of your string
TCJSR print_out           \ This subroutine prints out the string
^RTS
h 
rF.not_control            \ Here if A >= 32, i.e. not a control code
|,CMP #48                 \ �II code for 0
�?BCC punctuation_print   \ Branch if A < 48 i.e. punctuation
� 
�0CMP #58                 \ �II code for colon
�BBCS not_number          \ Branch if A >= 58, i.e. not a number
� 
�LDX #(number-text)
�5JSR print_out           \ Print out number string
�RTS
� 
�.not_number
�,CMP #65                 \ �II code for A
�FBCC punctuation_print   \ Branch of A < 65, i.e. punctuation again
� 
,CMP #91                 \ �II code for [
DBCS not_upper           \ Branch if A >= 91, i.e. not upper case
 
&LDX #(upper-text)
09JSR print_out           \ Print out upper case string
:RTS
D 
N.not_upper
X,CMP #97                 \ �II code for a
bFBCC punctuation_print   \ Branch if A < 97, i.e. punctuation again
l 
v,CMP #123                \ �II code for {
�CBCS not_lower           \ Branch if A >= {, i.e. not lower case
� 
�LDX #(lower-text)
�9JSR print_out           \ Print out lower case string
�RTS
� 
�.not_lower
�JSR punctuation_print
�3RTS                     \ Final exit from sieve
� 
�.punctuation_print
�LDX #(punctuation-text)
�:JSR print_out           \ Print out punctuation string
RTS
 
.print_out
 JLDA text, X             \ Load A with character X into the string list
*BBEQ exit                \ If it is zero stop printing and exit
4>JSR osasci              \ Send the character to the screen
>/INX                     \ Increase X by one
H@JMP print_out           \ JMP back to the start of this loop
R 
\	.exit
fRTS
p 
z	.text
�.control
�]
�$P%=control$
�P%=P%+�(control$)
�[OPT pass%
�
.upper
�]
�$P%=upper$
�P%=P%+�(upper$)
�[OPT pass%
�
.lower
�]
�$P%=lower$
P%=P%+�(lower$)
[OPT pass%
.number
$]
.$P%=number$
8P%=P%+�(number$)
B[OPT pass%
L.punctuation
V]
`$P%=punctuation$
jP%=P%+�(punctuation$)
t�
~�
�� code%
�� �
�
00000000  0d 00 0a 1c f4 20 20 4f  53 62 69 74 73 20 4d 6f  |.....  OSbits Mo|
00000010  64 75 6c 65 20 42 2f 6f  73 62 30 33 0d 00 14 10  |dule B/osb03....|
00000020  f4 20 20 42 72 61 6e 63  68 69 6e 67 0d 00 1e 19  |.  Branching....|
00000030  f4 20 20 56 65 72 73 69  6f 6e 20 31 2e 30 20 37  |.  Version 1.0 7|
00000040  2e 39 2e 38 36 0d 00 28  05 20 0d 00 32 31 f4 45  |.9.86..(. ..21.E|
00000050  4d 42 45 52 3a 20 20 42  43 53 20 69 73 20 61 20  |MBER:  BCS is a |
00000060  62 72 61 6e 63 68 20 69  66 20 3e 20 6f 72 20 3d  |branch if > or =|
00000070  20 6e 6f 74 20 6a 75 73  74 20 3e 0d 00 3c 21 f4  | not just >..<!.|
00000080  45 4d 42 45 52 3a 20 20  42 43 43 20 69 73 20 61  |EMBER:  BCC is a|
00000090  20 62 72 61 6e 63 68 20  69 66 20 3c 0d 00 46 05  | branch if <..F.|
000000a0  20 0d 00 50 15 2a 4b 45  59 31 4d 4f 2e 33 7c 4d  | ..P.*KEY1MO.3|M|
000000b0  7c 4e 4c 2e 7c 4d 0d 00  5a 05 20 0d 00 64 10 6f  ||NL.|M..Z. ..d.o|
000000c0  73 72 64 63 68 3d 26 46  46 45 30 0d 00 6e 10 6f  |srdch=&FFE0..n.o|
000000d0  73 61 73 63 69 3d 26 46  46 45 33 0d 00 78 0f de  |sasci=&FFE3..x..|
000000e0  20 63 6f 64 65 25 20 32  30 30 0d 00 82 05 20 0d  | code% 200.... .|
000000f0  00 8c 2a 63 6f 6e 74 72  6f 6c 24 3d 22 43 6f 6e  |..*control$="Con|
00000100  74 72 6f 6c 20 63 6f 64  65 20 70 72 65 73 73 65  |trol code presse|
00000110  64 22 2b bd 31 33 2b bd  30 0d 00 96 26 75 70 70  |d"+.13+.0...&upp|
00000120  65 72 24 3d 22 55 70 70  65 72 20 63 61 73 65 20  |er$="Upper case |
00000130  70 72 65 73 73 65 64 22  2b bd 31 33 2b bd 30 0d  |pressed"+.13+.0.|
00000140  00 a0 26 6c 6f 77 65 72  24 3d 22 4c 6f 77 65 72  |..&lower$="Lower|
00000150  20 63 61 73 65 20 70 72  65 73 73 65 64 22 2b bd  | case pressed"+.|
00000160  31 33 2b bd 30 0d 00 aa  23 6e 75 6d 62 65 72 24  |13+.0...#number$|
00000170  3d 22 4e 75 6d 62 65 72  20 70 72 65 73 73 65 64  |="Number pressed|
00000180  22 2b bd 31 33 2b bd 30  0d 00 b4 2d 70 75 6e 63  |"+.13+.0...-punc|
00000190  74 75 61 74 69 6f 6e 24  3d 22 50 75 6e 63 74 75  |tuation$="Punctu|
000001a0  61 74 69 6f 6e 20 70 72  65 73 73 65 64 22 2b bd  |ation pressed"+.|
000001b0  31 33 2b bd 30 0d 00 be  05 20 0d 00 c8 15 e3 20  |13+.0.... ..... |
000001c0  70 61 73 73 25 3d 30 20  b8 20 33 20 88 20 33 0d  |pass%=0 . 3 . 3.|
000001d0  00 d2 0c 50 25 3d 63 6f  64 65 25 0d 00 dc 05 20  |...P%=code%.... |
000001e0  0d 00 e6 0e 5b 4f 50 54  20 70 61 73 73 25 0d 00  |....[OPT pass%..|
000001f0  f0 35 4a 53 52 20 6f 73  72 64 63 68 20 20 20 20  |.5JSR osrdch    |
00000200  20 20 20 20 20 20 20 20  20 20 5c 20 52 65 61 64  |          \ Read|
00000210  20 6b 65 79 20 70 72 65  73 73 65 64 20 69 6e 74  | key pressed int|
00000220  6f 20 41 0d 00 fa 4c 42  4d 49 20 65 78 69 74 20  |o A...LBMI exit |
00000230  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 5c  |               \|
00000240  20 45 78 69 74 20 69 66  20 74 68 65 20 63 6f 64  | Exit if the cod|
00000250  65 20 66 6f 72 20 74 68  65 20 6b 65 79 20 69 73  |e for the key is|
00000260  20 2d 76 65 2c 20 69 2e  65 2e 20 3e 31 32 37 0d  | -ve, i.e. >127.|
00000270  01 04 30 43 4d 50 20 23  33 32 20 20 20 20 20 20  |..0CMP #32      |
00000280  20 20 20 20 20 20 20 20  20 20 20 5c 20 97 49 49  |           \ .II|
00000290  20 63 6f 64 65 20 66 6f  72 20 73 70 61 63 65 0d  | code for space.|
000002a0  01 0e 31 42 43 53 20 6e  6f 74 5f 63 6f 6e 74 72  |..1BCS not_contr|
000002b0  6f 6c 20 20 20 20 20 20  20 20 20 5c 20 42 72 61  |ol         \ Bra|
000002c0  6e 63 68 20 69 73 20 41  20 69 73 20 3e 3d 33 32  |nch is A is >=32|
000002d0  0d 01 18 05 20 0d 01 22  42 5c 20 20 20 20 42 79  |.... .."B\    By|
000002e0  20 73 75 62 74 72 61 63  74 69 6e 67 20 74 68 65  | subtracting the|
000002f0  20 6c 61 62 65 6c 20 66  6f 72 20 74 68 65 20 73  | label for the s|
00000300  74 61 72 74 20 6f 66 20  61 6c 6c 20 74 68 65 20  |tart of all the |
00000310  73 74 72 69 6e 67 73 0d  01 2c 42 5c 20 20 20 20  |strings..,B\    |
00000320  66 72 6f 6d 20 74 68 65  20 73 74 61 72 74 20 6f  |from the start o|
00000330  66 20 74 68 65 20 73 74  72 69 6e 67 20 79 6f 75  |f the string you|
00000340  20 77 61 6e 74 2c 20 79  6f 75 20 67 65 74 20 69  | want, you get i|
00000350  74 73 20 6f 66 66 73 65  74 0d 01 36 22 5c 20 20  |ts offset..6"\  |
00000360  20 20 69 6e 74 6f 20 74  68 65 20 74 61 62 6c 65  |  into the table|
00000370  20 6f 66 20 73 74 72 69  6e 67 73 0d 01 40 05 20  | of strings..@. |
00000380  0d 01 4a 49 4c 44 58 20  23 28 63 6f 6e 74 72 6f  |..JILDX #(contro|
00000390  6c 2d 74 65 78 74 29 20  20 20 20 20 5c 20 53 65  |l-text)     \ Se|
000003a0  74 20 58 20 74 6f 20 6f  66 66 73 65 74 20 6f 66  |t X to offset of|
000003b0  20 74 68 65 20 73 74 61  72 74 20 6f 66 20 79 6f  | the start of yo|
000003c0  75 72 20 73 74 72 69 6e  67 0d 01 54 43 4a 53 52  |ur string..TCJSR|
000003d0  20 70 72 69 6e 74 5f 6f  75 74 20 20 20 20 20 20  | print_out      |
000003e0  20 20 20 20 20 5c 20 54  68 69 73 20 73 75 62 72  |     \ This subr|
000003f0  6f 75 74 69 6e 65 20 70  72 69 6e 74 73 20 6f 75  |outine prints ou|
00000400  74 20 74 68 65 20 73 74  72 69 6e 67 0d 01 5e 07  |t the string..^.|
00000410  52 54 53 0d 01 68 05 20  0d 01 72 46 2e 6e 6f 74  |RTS..h. ..rF.not|
00000420  5f 63 6f 6e 74 72 6f 6c  20 20 20 20 20 20 20 20  |_control        |
00000430  20 20 20 20 5c 20 48 65  72 65 20 69 66 20 41 20  |    \ Here if A |
00000440  3e 3d 20 33 32 2c 20 69  2e 65 2e 20 6e 6f 74 20  |>= 32, i.e. not |
00000450  61 20 63 6f 6e 74 72 6f  6c 20 63 6f 64 65 0d 01  |a control code..|
00000460  7c 2c 43 4d 50 20 23 34  38 20 20 20 20 20 20 20  ||,CMP #48       |
00000470  20 20 20 20 20 20 20 20  20 20 5c 20 97 49 49 20  |          \ .II |
00000480  63 6f 64 65 20 66 6f 72  20 30 0d 01 86 3f 42 43  |code for 0...?BC|
00000490  43 20 70 75 6e 63 74 75  61 74 69 6f 6e 5f 70 72  |C punctuation_pr|
000004a0  69 6e 74 20 20 20 5c 20  42 72 61 6e 63 68 20 69  |int   \ Branch i|
000004b0  66 20 41 20 3c 20 34 38  20 69 2e 65 2e 20 70 75  |f A < 48 i.e. pu|
000004c0  6e 63 74 75 61 74 69 6f  6e 0d 01 90 05 20 0d 01  |nctuation.... ..|
000004d0  9a 30 43 4d 50 20 23 35  38 20 20 20 20 20 20 20  |.0CMP #58       |
000004e0  20 20 20 20 20 20 20 20  20 20 5c 20 97 49 49 20  |          \ .II |
000004f0  63 6f 64 65 20 66 6f 72  20 63 6f 6c 6f 6e 0d 01  |code for colon..|
00000500  a4 42 42 43 53 20 6e 6f  74 5f 6e 75 6d 62 65 72  |.BBCS not_number|
00000510  20 20 20 20 20 20 20 20  20 20 5c 20 42 72 61 6e  |          \ Bran|
00000520  63 68 20 69 66 20 41 20  3e 3d 20 35 38 2c 20 69  |ch if A >= 58, i|
00000530  2e 65 2e 20 6e 6f 74 20  61 20 6e 75 6d 62 65 72  |.e. not a number|
00000540  0d 01 ae 05 20 0d 01 b8  16 4c 44 58 20 23 28 6e  |.... ....LDX #(n|
00000550  75 6d 62 65 72 2d 74 65  78 74 29 0d 01 c2 35 4a  |umber-text)...5J|
00000560  53 52 20 70 72 69 6e 74  5f 6f 75 74 20 20 20 20  |SR print_out    |
00000570  20 20 20 20 20 20 20 5c  20 50 72 69 6e 74 20 6f  |       \ Print o|
00000580  75 74 20 6e 75 6d 62 65  72 20 73 74 72 69 6e 67  |ut number string|
00000590  0d 01 cc 07 52 54 53 0d  01 d6 05 20 0d 01 e0 0f  |....RTS.... ....|
000005a0  2e 6e 6f 74 5f 6e 75 6d  62 65 72 0d 01 ea 2c 43  |.not_number...,C|
000005b0  4d 50 20 23 36 35 20 20  20 20 20 20 20 20 20 20  |MP #65          |
000005c0  20 20 20 20 20 20 20 5c  20 97 49 49 20 63 6f 64  |       \ .II cod|
000005d0  65 20 66 6f 72 20 41 0d  01 f4 46 42 43 43 20 70  |e for A...FBCC p|
000005e0  75 6e 63 74 75 61 74 69  6f 6e 5f 70 72 69 6e 74  |unctuation_print|
000005f0  20 20 20 5c 20 42 72 61  6e 63 68 20 6f 66 20 41  |   \ Branch of A|
00000600  20 3c 20 36 35 2c 20 69  2e 65 2e 20 70 75 6e 63  | < 65, i.e. punc|
00000610  74 75 61 74 69 6f 6e 20  61 67 61 69 6e 0d 01 fe  |tuation again...|
00000620  05 20 0d 02 08 2c 43 4d  50 20 23 39 31 20 20 20  |. ...,CMP #91   |
00000630  20 20 20 20 20 20 20 20  20 20 20 20 20 20 5c 20  |              \ |
00000640  97 49 49 20 63 6f 64 65  20 66 6f 72 20 5b 0d 02  |.II code for [..|
00000650  12 44 42 43 53 20 6e 6f  74 5f 75 70 70 65 72 20  |.DBCS not_upper |
00000660  20 20 20 20 20 20 20 20  20 20 5c 20 42 72 61 6e  |          \ Bran|
00000670  63 68 20 69 66 20 41 20  3e 3d 20 39 31 2c 20 69  |ch if A >= 91, i|
00000680  2e 65 2e 20 6e 6f 74 20  75 70 70 65 72 20 63 61  |.e. not upper ca|
00000690  73 65 0d 02 1c 05 20 0d  02 26 15 4c 44 58 20 23  |se.... ..&.LDX #|
000006a0  28 75 70 70 65 72 2d 74  65 78 74 29 0d 02 30 39  |(upper-text)..09|
000006b0  4a 53 52 20 70 72 69 6e  74 5f 6f 75 74 20 20 20  |JSR print_out   |
000006c0  20 20 20 20 20 20 20 20  5c 20 50 72 69 6e 74 20  |        \ Print |
000006d0  6f 75 74 20 75 70 70 65  72 20 63 61 73 65 20 73  |out upper case s|
000006e0  74 72 69 6e 67 0d 02 3a  07 52 54 53 0d 02 44 05  |tring..:.RTS..D.|
000006f0  20 0d 02 4e 0e 2e 6e 6f  74 5f 75 70 70 65 72 0d  | ..N..not_upper.|
00000700  02 58 2c 43 4d 50 20 23  39 37 20 20 20 20 20 20  |.X,CMP #97      |
00000710  20 20 20 20 20 20 20 20  20 20 20 5c 20 97 49 49  |           \ .II|
00000720  20 63 6f 64 65 20 66 6f  72 20 61 0d 02 62 46 42  | code for a..bFB|
00000730  43 43 20 70 75 6e 63 74  75 61 74 69 6f 6e 5f 70  |CC punctuation_p|
00000740  72 69 6e 74 20 20 20 5c  20 42 72 61 6e 63 68 20  |rint   \ Branch |
00000750  69 66 20 41 20 3c 20 39  37 2c 20 69 2e 65 2e 20  |if A < 97, i.e. |
00000760  70 75 6e 63 74 75 61 74  69 6f 6e 20 61 67 61 69  |punctuation agai|
00000770  6e 0d 02 6c 05 20 0d 02  76 2c 43 4d 50 20 23 31  |n..l. ..v,CMP #1|
00000780  32 33 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |23              |
00000790  20 20 5c 20 97 49 49 20  63 6f 64 65 20 66 6f 72  |  \ .II code for|
000007a0  20 7b 0d 02 80 43 42 43  53 20 6e 6f 74 5f 6c 6f  | {...CBCS not_lo|
000007b0  77 65 72 20 20 20 20 20  20 20 20 20 20 20 5c 20  |wer           \ |
000007c0  42 72 61 6e 63 68 20 69  66 20 41 20 3e 3d 20 7b  |Branch if A >= {|
000007d0  2c 20 69 2e 65 2e 20 6e  6f 74 20 6c 6f 77 65 72  |, i.e. not lower|
000007e0  20 63 61 73 65 0d 02 8a  05 20 0d 02 94 15 4c 44  | case.... ....LD|
000007f0  58 20 23 28 6c 6f 77 65  72 2d 74 65 78 74 29 0d  |X #(lower-text).|
00000800  02 9e 39 4a 53 52 20 70  72 69 6e 74 5f 6f 75 74  |..9JSR print_out|
00000810  20 20 20 20 20 20 20 20  20 20 20 5c 20 50 72 69  |           \ Pri|
00000820  6e 74 20 6f 75 74 20 6c  6f 77 65 72 20 63 61 73  |nt out lower cas|
00000830  65 20 73 74 72 69 6e 67  0d 02 a8 07 52 54 53 0d  |e string....RTS.|
00000840  02 b2 05 20 0d 02 bc 0e  2e 6e 6f 74 5f 6c 6f 77  |... .....not_low|
00000850  65 72 0d 02 c6 19 4a 53  52 20 70 75 6e 63 74 75  |er....JSR punctu|
00000860  61 74 69 6f 6e 5f 70 72  69 6e 74 0d 02 d0 33 52  |ation_print...3R|
00000870  54 53 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |TS              |
00000880  20 20 20 20 20 20 20 5c  20 46 69 6e 61 6c 20 65  |       \ Final e|
00000890  78 69 74 20 66 72 6f 6d  20 73 69 65 76 65 0d 02  |xit from sieve..|
000008a0  da 05 20 0d 02 e4 16 2e  70 75 6e 63 74 75 61 74  |.. .....punctuat|
000008b0  69 6f 6e 5f 70 72 69 6e  74 0d 02 ee 1b 4c 44 58  |ion_print....LDX|
000008c0  20 23 28 70 75 6e 63 74  75 61 74 69 6f 6e 2d 74  | #(punctuation-t|
000008d0  65 78 74 29 0d 02 f8 3a  4a 53 52 20 70 72 69 6e  |ext)...:JSR prin|
000008e0  74 5f 6f 75 74 20 20 20  20 20 20 20 20 20 20 20  |t_out           |
000008f0  5c 20 50 72 69 6e 74 20  6f 75 74 20 70 75 6e 63  |\ Print out punc|
00000900  74 75 61 74 69 6f 6e 20  73 74 72 69 6e 67 0d 03  |tuation string..|
00000910  02 07 52 54 53 0d 03 0c  05 20 0d 03 16 0e 2e 70  |..RTS.... .....p|
00000920  72 69 6e 74 5f 6f 75 74  0d 03 20 4a 4c 44 41 20  |rint_out.. JLDA |
00000930  74 65 78 74 2c 20 58 20  20 20 20 20 20 20 20 20  |text, X         |
00000940  20 20 20 20 5c 20 4c 6f  61 64 20 41 20 77 69 74  |    \ Load A wit|
00000950  68 20 63 68 61 72 61 63  74 65 72 20 58 20 69 6e  |h character X in|
00000960  74 6f 20 74 68 65 20 73  74 72 69 6e 67 20 6c 69  |to the string li|
00000970  73 74 0d 03 2a 42 42 45  51 20 65 78 69 74 20 20  |st..*BBEQ exit  |
00000980  20 20 20 20 20 20 20 20  20 20 20 20 20 20 5c 20  |              \ |
00000990  49 66 20 69 74 20 69 73  20 7a 65 72 6f 20 73 74  |If it is zero st|
000009a0  6f 70 20 70 72 69 6e 74  69 6e 67 20 61 6e 64 20  |op printing and |
000009b0  65 78 69 74 0d 03 34 3e  4a 53 52 20 6f 73 61 73  |exit..4>JSR osas|
000009c0  63 69 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |ci              |
000009d0  5c 20 53 65 6e 64 20 74  68 65 20 63 68 61 72 61  |\ Send the chara|
000009e0  63 74 65 72 20 74 6f 20  74 68 65 20 73 63 72 65  |cter to the scre|
000009f0  65 6e 0d 03 3e 2f 49 4e  58 20 20 20 20 20 20 20  |en..>/INX       |
00000a00  20 20 20 20 20 20 20 20  20 20 20 20 20 20 5c 20  |              \ |
00000a10  49 6e 63 72 65 61 73 65  20 58 20 62 79 20 6f 6e  |Increase X by on|
00000a20  65 0d 03 48 40 4a 4d 50  20 70 72 69 6e 74 5f 6f  |e..H@JMP print_o|
00000a30  75 74 20 20 20 20 20 20  20 20 20 20 20 5c 20 4a  |ut           \ J|
00000a40  4d 50 20 62 61 63 6b 20  74 6f 20 74 68 65 20 73  |MP back to the s|
00000a50  74 61 72 74 20 6f 66 20  74 68 69 73 20 6c 6f 6f  |tart of this loo|
00000a60  70 0d 03 52 05 20 0d 03  5c 09 2e 65 78 69 74 0d  |p..R. ..\..exit.|
00000a70  03 66 07 52 54 53 0d 03  70 05 20 0d 03 7a 09 2e  |.f.RTS..p. ..z..|
00000a80  74 65 78 74 0d 03 84 0c  2e 63 6f 6e 74 72 6f 6c  |text.....control|
00000a90  0d 03 8e 05 5d 0d 03 98  10 24 50 25 3d 63 6f 6e  |....]....$P%=con|
00000aa0  74 72 6f 6c 24 0d 03 a2  15 50 25 3d 50 25 2b a9  |trol$....P%=P%+.|
00000ab0  28 63 6f 6e 74 72 6f 6c  24 29 0d 03 ac 0e 5b 4f  |(control$)....[O|
00000ac0  50 54 20 70 61 73 73 25  0d 03 b6 0a 2e 75 70 70  |PT pass%.....upp|
00000ad0  65 72 0d 03 c0 05 5d 0d  03 ca 0e 24 50 25 3d 75  |er....]....$P%=u|
00000ae0  70 70 65 72 24 0d 03 d4  13 50 25 3d 50 25 2b a9  |pper$....P%=P%+.|
00000af0  28 75 70 70 65 72 24 29  0d 03 de 0e 5b 4f 50 54  |(upper$)....[OPT|
00000b00  20 70 61 73 73 25 0d 03  e8 0a 2e 6c 6f 77 65 72  | pass%.....lower|
00000b10  0d 03 f2 05 5d 0d 03 fc  0e 24 50 25 3d 6c 6f 77  |....]....$P%=low|
00000b20  65 72 24 0d 04 06 13 50  25 3d 50 25 2b a9 28 6c  |er$....P%=P%+.(l|
00000b30  6f 77 65 72 24 29 0d 04  10 0e 5b 4f 50 54 20 70  |ower$)....[OPT p|
00000b40  61 73 73 25 0d 04 1a 0b  2e 6e 75 6d 62 65 72 0d  |ass%.....number.|
00000b50  04 24 05 5d 0d 04 2e 0f  24 50 25 3d 6e 75 6d 62  |.$.]....$P%=numb|
00000b60  65 72 24 0d 04 38 14 50  25 3d 50 25 2b a9 28 6e  |er$..8.P%=P%+.(n|
00000b70  75 6d 62 65 72 24 29 0d  04 42 0e 5b 4f 50 54 20  |umber$)..B.[OPT |
00000b80  70 61 73 73 25 0d 04 4c  10 2e 70 75 6e 63 74 75  |pass%..L..punctu|
00000b90  61 74 69 6f 6e 0d 04 56  05 5d 0d 04 60 14 24 50  |ation..V.]..`.$P|
00000ba0  25 3d 70 75 6e 63 74 75  61 74 69 6f 6e 24 0d 04  |%=punctuation$..|
00000bb0  6a 19 50 25 3d 50 25 2b  a9 28 70 75 6e 63 74 75  |j.P%=P%+.(punctu|
00000bc0  61 74 69 6f 6e 24 29 0d  04 74 05 ed 0d 04 7e 05  |ation$)..t....~.|
00000bd0  f5 0d 04 88 0b d6 20 63  6f 64 65 25 0d 04 92 07  |...... code%....|
00000be0  fd 20 a3 0d ff                                    |. ...|
00000be5
06_11_87/B\OSB03.m0
06_11_87/B\OSB03.m1
06_11_87/B\OSB03.m2
06_11_87/B\OSB03.m4
06_11_87/B\OSB03.m5