Home » CEEFAX disks » telesoftware3.adl » 04_12_87/OSWORD

04_12_87/OSWORD

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: 04_12_87/OSWORD
Read OK:
File size: 05AE bytes
Load address: FFFF1900
Exec address: FFFF8023
Duplicates

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

File contents
   10REM: OSWORD
   20MODE7
   30HIMEM=&3C00
   40DIM save 50
   50diff=&8000-HIMEM
   60address=&70
   70accumulator=&EF
   80xregister=&F0
   90yregister=&F1
  100osasci=&FFE3
  110oscli=&FFF7
  120FOR pass = 0 TO 2 STEP 2
  130P%=HIMEM
  140[OPT pass
  150BRK
  160BRK
  170BRK
  180JMP service+diff
  190OPT FNequb(&82)
  200OPT FNequb((copyright+diff) MOD 256)
  210BRK
  220OPT FNequs("OSWORD")
  230.copyright
  240BRK
  250OPT FNequs("(C) Gordon Horsington 1987")
  260BRK
  270.service
  280PHA
  290CMP #8
  300BEQ newosword
  310.exit
  320PLA
  330RTS
  340.newosword
  350LDA accumulator
  360CMP #100
  370BNE exit
  380LDA address
  390PHA
  400LDA address+1
  410PHA
  420LDY #0
  430LDA (xregister),Y
  440STA address
  450INY
  460LDA (xregister),Y
  470STA address+1
  480LDA #31
  490JSR osasci
  500INY
  510LDA (xregister),Y
  520JSR osasci
  530INY
  540LDA (xregister),Y
  550JSR osasci
  560LDY #&FF
  570.printloop
  580INY
  590LDA (address),Y
  600BEQ finish
  610JSR osasci
  620CMP #13
  630BNE printloop
  640.finish
  650PLA
  660STA address+1
  670PLA
  680STA address
  690LDX xregister
  700LDY yregister
  710PLA
  720LDA #0
  730RTS
  740.lastbyte
  750]
  760NEXT
  770INPUT'"Save filename = "filename$
  780IF filename$="" END
  790$save="SAVE "+filename$+" "+STR$~(HIMEM)+" "+STR$~(lastbyte)+" FFFF8000 FFFF8000"
  800X%=save MOD 256
  810Y%=save DIV 256
  820*OPT1,2
  830CALL oscli
  840*OPT1,0
  850END
  860DEFFNequb(byte)
  870?P%=byte
  880P%=P%+1
  890=pass
  900DEFFNequw(word)
  910?P%=word MOD 256
  920P%?1=word DIV 256
  930P%=P%+2
  940=pass
  950DEFFNequd(double)
  960!P%=double
  970P%=P%+4
  980=pass
  990DEFFNequs(string$)
 1000$P%=string$
 1010P%=P%+LEN(string$)
 1020=pass


�: OSWORD
�7
�=&3C00
(
� save 50
2diff=&8000-�
<address=&70
Faccumulator=&EF
Pxregister=&F0
Zyregister=&F1
dosasci=&FFE3
noscli=&FFF7
x� pass = 0 � 2 � 2
�P%=�
�
[OPT pass
�BRK
�BRK
�BRK
�JMP service+diff
�OPT �equb(&82)
�%OPT �equb((copyright+diff) � 256)
�BRK
�OPT �equs("OSWORD")
�.copyright
�BRK
�+OPT �equs("(C) Gordon Horsington 1987")
BRK
.service
PHA
"
CMP #8
,BEQ newosword
6	.exit
@PLA
JRTS
T.newosword
^LDA accumulator
hCMP #100
rBNE exit
|LDA address
�PHA
�LDA address+1
�PHA
�
LDY #0
�LDA (xregister),Y
�STA address
�INY
�LDA (xregister),Y
�STA address+1
�LDA #31
�JSR osasci
�INY
�LDA (xregister),Y
JSR osasci
INY
LDA (xregister),Y
&JSR osasci
0LDY #&FF
:.printloop
DINY
NLDA (address),Y
XBEQ finish
bJSR osasci
lCMP #13
vBNE printloop
�.finish
�PLA
�STA address+1
�PLA
�STA address
�LDX xregister
�LDY yregister
�PLA
�
LDA #0
�RTS
�
.lastbyte
�]
��
!�'"Save filename = "filename$
� filename$="" �
K$save="SAVE "+filename$+" "+�~(�)+" "+�~(lastbyte)+" FFFF8000 FFFF8000"
 X%=save � 256
*Y%=save � 256
4*OPT1,2
>� oscli
H*OPT1,0
R�
\ݤequb(byte)
f?P%=byte
pP%=P%+1
z	=pass
�ݤequw(word)
�?P%=word � 256
�P%?1=word � 256
�P%=P%+2
�	=pass
�ݤequd(double)
�!P%=double
�P%=P%+4
�	=pass
�ݤequs(string$)
�$P%=string$
�P%=P%+�(string$)
�	=pass
�
00000000  0d 00 0a 0d f4 3a 20 4f  53 57 4f 52 44 0d 00 14  |.....: OSWORD...|
00000010  06 eb 37 0d 00 1e 0b d3  3d 26 33 43 30 30 0d 00  |..7.....=&3C00..|
00000020  28 0d de 20 73 61 76 65  20 35 30 0d 00 32 10 64  |(.. save 50..2.d|
00000030  69 66 66 3d 26 38 30 30  30 2d 93 0d 00 3c 0f 61  |iff=&8000-...<.a|
00000040  64 64 72 65 73 73 3d 26  37 30 0d 00 46 13 61 63  |ddress=&70..F.ac|
00000050  63 75 6d 75 6c 61 74 6f  72 3d 26 45 46 0d 00 50  |cumulator=&EF..P|
00000060  11 78 72 65 67 69 73 74  65 72 3d 26 46 30 0d 00  |.xregister=&F0..|
00000070  5a 11 79 72 65 67 69 73  74 65 72 3d 26 46 31 0d  |Z.yregister=&F1.|
00000080  00 64 10 6f 73 61 73 63  69 3d 26 46 46 45 33 0d  |.d.osasci=&FFE3.|
00000090  00 6e 0f 6f 73 63 6c 69  3d 26 46 46 46 37 0d 00  |.n.oscli=&FFF7..|
000000a0  78 16 e3 20 70 61 73 73  20 3d 20 30 20 b8 20 32  |x.. pass = 0 . 2|
000000b0  20 88 20 32 0d 00 82 08  50 25 3d 93 0d 00 8c 0d  | . 2....P%=.....|
000000c0  5b 4f 50 54 20 70 61 73  73 0d 00 96 07 42 52 4b  |[OPT pass....BRK|
000000d0  0d 00 a0 07 42 52 4b 0d  00 aa 07 42 52 4b 0d 00  |....BRK....BRK..|
000000e0  b4 14 4a 4d 50 20 73 65  72 76 69 63 65 2b 64 69  |..JMP service+di|
000000f0  66 66 0d 00 be 12 4f 50  54 20 a4 65 71 75 62 28  |ff....OPT .equb(|
00000100  26 38 32 29 0d 00 c8 25  4f 50 54 20 a4 65 71 75  |&82)...%OPT .equ|
00000110  62 28 28 63 6f 70 79 72  69 67 68 74 2b 64 69 66  |b((copyright+dif|
00000120  66 29 20 83 20 32 35 36  29 0d 00 d2 07 42 52 4b  |f) . 256)....BRK|
00000130  0d 00 dc 17 4f 50 54 20  a4 65 71 75 73 28 22 4f  |....OPT .equs("O|
00000140  53 57 4f 52 44 22 29 0d  00 e6 0e 2e 63 6f 70 79  |SWORD").....copy|
00000150  72 69 67 68 74 0d 00 f0  07 42 52 4b 0d 00 fa 2b  |right....BRK...+|
00000160  4f 50 54 20 a4 65 71 75  73 28 22 28 43 29 20 47  |OPT .equs("(C) G|
00000170  6f 72 64 6f 6e 20 48 6f  72 73 69 6e 67 74 6f 6e  |ordon Horsington|
00000180  20 31 39 38 37 22 29 0d  01 04 07 42 52 4b 0d 01  | 1987")....BRK..|
00000190  0e 0c 2e 73 65 72 76 69  63 65 0d 01 18 07 50 48  |...service....PH|
000001a0  41 0d 01 22 0a 43 4d 50  20 23 38 0d 01 2c 11 42  |A..".CMP #8..,.B|
000001b0  45 51 20 6e 65 77 6f 73  77 6f 72 64 0d 01 36 09  |EQ newosword..6.|
000001c0  2e 65 78 69 74 0d 01 40  07 50 4c 41 0d 01 4a 07  |.exit..@.PLA..J.|
000001d0  52 54 53 0d 01 54 0e 2e  6e 65 77 6f 73 77 6f 72  |RTS..T..newoswor|
000001e0  64 0d 01 5e 13 4c 44 41  20 61 63 63 75 6d 75 6c  |d..^.LDA accumul|
000001f0  61 74 6f 72 0d 01 68 0c  43 4d 50 20 23 31 30 30  |ator..h.CMP #100|
00000200  0d 01 72 0c 42 4e 45 20  65 78 69 74 0d 01 7c 0f  |..r.BNE exit..|.|
00000210  4c 44 41 20 61 64 64 72  65 73 73 0d 01 86 07 50  |LDA address....P|
00000220  48 41 0d 01 90 11 4c 44  41 20 61 64 64 72 65 73  |HA....LDA addres|
00000230  73 2b 31 0d 01 9a 07 50  48 41 0d 01 a4 0a 4c 44  |s+1....PHA....LD|
00000240  59 20 23 30 0d 01 ae 15  4c 44 41 20 28 78 72 65  |Y #0....LDA (xre|
00000250  67 69 73 74 65 72 29 2c  59 0d 01 b8 0f 53 54 41  |gister),Y....STA|
00000260  20 61 64 64 72 65 73 73  0d 01 c2 07 49 4e 59 0d  | address....INY.|
00000270  01 cc 15 4c 44 41 20 28  78 72 65 67 69 73 74 65  |...LDA (xregiste|
00000280  72 29 2c 59 0d 01 d6 11  53 54 41 20 61 64 64 72  |r),Y....STA addr|
00000290  65 73 73 2b 31 0d 01 e0  0b 4c 44 41 20 23 33 31  |ess+1....LDA #31|
000002a0  0d 01 ea 0e 4a 53 52 20  6f 73 61 73 63 69 0d 01  |....JSR osasci..|
000002b0  f4 07 49 4e 59 0d 01 fe  15 4c 44 41 20 28 78 72  |..INY....LDA (xr|
000002c0  65 67 69 73 74 65 72 29  2c 59 0d 02 08 0e 4a 53  |egister),Y....JS|
000002d0  52 20 6f 73 61 73 63 69  0d 02 12 07 49 4e 59 0d  |R osasci....INY.|
000002e0  02 1c 15 4c 44 41 20 28  78 72 65 67 69 73 74 65  |...LDA (xregiste|
000002f0  72 29 2c 59 0d 02 26 0e  4a 53 52 20 6f 73 61 73  |r),Y..&.JSR osas|
00000300  63 69 0d 02 30 0c 4c 44  59 20 23 26 46 46 0d 02  |ci..0.LDY #&FF..|
00000310  3a 0e 2e 70 72 69 6e 74  6c 6f 6f 70 0d 02 44 07  |:..printloop..D.|
00000320  49 4e 59 0d 02 4e 13 4c  44 41 20 28 61 64 64 72  |INY..N.LDA (addr|
00000330  65 73 73 29 2c 59 0d 02  58 0e 42 45 51 20 66 69  |ess),Y..X.BEQ fi|
00000340  6e 69 73 68 0d 02 62 0e  4a 53 52 20 6f 73 61 73  |nish..b.JSR osas|
00000350  63 69 0d 02 6c 0b 43 4d  50 20 23 31 33 0d 02 76  |ci..l.CMP #13..v|
00000360  11 42 4e 45 20 70 72 69  6e 74 6c 6f 6f 70 0d 02  |.BNE printloop..|
00000370  80 0b 2e 66 69 6e 69 73  68 0d 02 8a 07 50 4c 41  |...finish....PLA|
00000380  0d 02 94 11 53 54 41 20  61 64 64 72 65 73 73 2b  |....STA address+|
00000390  31 0d 02 9e 07 50 4c 41  0d 02 a8 0f 53 54 41 20  |1....PLA....STA |
000003a0  61 64 64 72 65 73 73 0d  02 b2 11 4c 44 58 20 78  |address....LDX x|
000003b0  72 65 67 69 73 74 65 72  0d 02 bc 11 4c 44 59 20  |register....LDY |
000003c0  79 72 65 67 69 73 74 65  72 0d 02 c6 07 50 4c 41  |yregister....PLA|
000003d0  0d 02 d0 0a 4c 44 41 20  23 30 0d 02 da 07 52 54  |....LDA #0....RT|
000003e0  53 0d 02 e4 0d 2e 6c 61  73 74 62 79 74 65 0d 02  |S.....lastbyte..|
000003f0  ee 05 5d 0d 02 f8 05 ed  0d 03 02 21 e8 27 22 53  |..]........!.'"S|
00000400  61 76 65 20 66 69 6c 65  6e 61 6d 65 20 3d 20 22  |ave filename = "|
00000410  66 69 6c 65 6e 61 6d 65  24 0d 03 0c 14 e7 20 66  |filename$..... f|
00000420  69 6c 65 6e 61 6d 65 24  3d 22 22 20 e0 0d 03 16  |ilename$="" ....|
00000430  4b 24 73 61 76 65 3d 22  53 41 56 45 20 22 2b 66  |K$save="SAVE "+f|
00000440  69 6c 65 6e 61 6d 65 24  2b 22 20 22 2b c3 7e 28  |ilename$+" "+.~(|
00000450  93 29 2b 22 20 22 2b c3  7e 28 6c 61 73 74 62 79  |.)+" "+.~(lastby|
00000460  74 65 29 2b 22 20 46 46  46 46 38 30 30 30 20 46  |te)+" FFFF8000 F|
00000470  46 46 46 38 30 30 30 22  0d 03 20 11 58 25 3d 73  |FFF8000".. .X%=s|
00000480  61 76 65 20 83 20 32 35  36 0d 03 2a 11 59 25 3d  |ave . 256..*.Y%=|
00000490  73 61 76 65 20 81 20 32  35 36 0d 03 34 0b 2a 4f  |save . 256..4.*O|
000004a0  50 54 31 2c 32 0d 03 3e  0b d6 20 6f 73 63 6c 69  |PT1,2..>.. oscli|
000004b0  0d 03 48 0b 2a 4f 50 54  31 2c 30 0d 03 52 05 e0  |..H.*OPT1,0..R..|
000004c0  0d 03 5c 10 dd a4 65 71  75 62 28 62 79 74 65 29  |..\...equb(byte)|
000004d0  0d 03 66 0c 3f 50 25 3d  62 79 74 65 0d 03 70 0b  |..f.?P%=byte..p.|
000004e0  50 25 3d 50 25 2b 31 0d  03 7a 09 3d 70 61 73 73  |P%=P%+1..z.=pass|
000004f0  0d 03 84 10 dd a4 65 71  75 77 28 77 6f 72 64 29  |......equw(word)|
00000500  0d 03 8e 12 3f 50 25 3d  77 6f 72 64 20 83 20 32  |....?P%=word . 2|
00000510  35 36 0d 03 98 13 50 25  3f 31 3d 77 6f 72 64 20  |56....P%?1=word |
00000520  81 20 32 35 36 0d 03 a2  0b 50 25 3d 50 25 2b 32  |. 256....P%=P%+2|
00000530  0d 03 ac 09 3d 70 61 73  73 0d 03 b6 12 dd a4 65  |....=pass......e|
00000540  71 75 64 28 64 6f 75 62  6c 65 29 0d 03 c0 0e 21  |qud(double)....!|
00000550  50 25 3d 64 6f 75 62 6c  65 0d 03 ca 0b 50 25 3d  |P%=double....P%=|
00000560  50 25 2b 34 0d 03 d4 09  3d 70 61 73 73 0d 03 de  |P%+4....=pass...|
00000570  13 dd a4 65 71 75 73 28  73 74 72 69 6e 67 24 29  |...equs(string$)|
00000580  0d 03 e8 0f 24 50 25 3d  73 74 72 69 6e 67 24 0d  |....$P%=string$.|
00000590  03 f2 14 50 25 3d 50 25  2b a9 28 73 74 72 69 6e  |...P%=P%+.(strin|
000005a0  67 24 29 0d 03 fc 09 3d  70 61 73 73 0d ff        |g$)....=pass..|
000005ae
04_12_87/OSWORD.m0
04_12_87/OSWORD.m1
04_12_87/OSWORD.m2
04_12_87/OSWORD.m4
04_12_87/OSWORD.m5