Home » CEEFAX disks » telesoftware10.adl » 04-11-88/CREATE

04-11-88/CREATE

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 » telesoftware10.adl
Filename: 04-11-88/CREATE
Read OK:
File size: 05AA bytes
Load address: 0800
Exec address: 8023
File contents
   10REM: CREATE
   20ON ERROR GOTO 850
   30VDU15
   40DIM mcode &100
   50DIM byte(3)
   60temp=&70
   70osbyte=&FFF4
   80FORpass=0TO2STEP2
   90P%=mcode
  100[OPT pass
  110.read
  120LDA #&9F
  130LDY #&10
  140JSR osbyte
  150LDA #&9E
  160JSR osbyte
  170TYA
  180STA temp
  190ROL temp
  200ROR A
  210ROL temp
  220ROR A
  230ROL temp
  240ROR A
  250ROL temp
  260ROR A
  270ROL temp
  280ROR A
  290ROL temp
  300ROR A
  310ROL temp
  320ROR A
  330ROL temp
  340ROR A
  350RTS
  360]
  370NEXT
  380REPEAT
  390INPUT'"Start address &"start$
  400start=EVAL("&"+start$)
  410UNTIL start > &250 AND start < &3FFF
  420REPEAT
  430INPUT"End address   &"end$
  440end=EVAL("&"+end$)
  450UNTIL end >= start AND end < &3FFF
  460INPUT"First line number = "line
  470INPUT"Line nummber inc. = "inc
  480INPUT"Label = ."label$
  490INPUT"Filename = "filename$
  500INPUT"Byte count? (Y/N) "yes$
  510yes$=LEFT$(yes$,1)
  520IF yes$="Y" THEN yes=TRUE ELSE yes=FALSE
  530A%=&9F
  540X%=0
  550Y%=&40+(start AND &F)
  560CALL osbyte
  570Y%=&40+(start AND &F0)DIV &10
  580CALL osbyte
  590Y%=&40+(start AND &F00)DIV &100
  600CALL osbyte
  610Y%=&4C+(start AND &F000)DIV &1000
  620CALL osbyte
  630Y%=&43
  640CALL osbyte
  650OSCLI("SPOOL "+filename$)
  660ON ERROR OSCLI("SPOOL"):REPORT:END
  670PRINT"AUTO ";line;",";inc
  680PRINT".";label$
  690PRINT"\ Start address = &";start$;" (&0)"
  700PRINT"\ End address = &";end$;" (&";~end-start;")"
  710FOR block=start TO end STEP 4
  720count=block-start
  730FOR memory=0 TO 3
  740byte(memory)=USR(read)AND &FF
  750NEXT
  760PRINT;"EQUD &";
  770FOR memory=3TO0STEP-1
  780A%=byte(memory)
  790IF A% < &10 VDU48
  800PRINT;~A%;
  810NEXT
  820IF yes PRINT;" \ &";~count+3;" - &";~count ELSE PRINT
  830NEXT
  840*SPOOL
  850INPUT'"Another (Y/N) "yes$
  860IF LEFT$(yes$,1)="Y" THEN RUN
  870END


�: CREATE
� � � �DRC
�15
(� mcode &100
2
� byte(3)
<temp=&70
Fosbyte=&FFF4
P�pass=0�2�2
ZP%=mcode
d
[OPT pass
n	.read
xLDA #&9F
�LDY #&10
�JSR osbyte
�LDA #&9E
�JSR osbyte
�TYA
�STA temp
�ROL temp
�	ROR A
�ROL temp
�	ROR A
�ROL temp
�	ROR A
�ROL temp
	ROR A
ROL temp
	ROR A
"ROL temp
,	ROR A
6ROL temp
@	ROR A
JROL temp
T	ROR A
^RTS
h]
r�
|�
��'"Start address &"start$
�start=�("&"+start$)
�"� start > &250 � start < &3FFF
��
��"End address   &"end$
�end=�("&"+end$)
� � end >= start � end < &3FFF
��"First line number = "line
��"Line nummber inc. = "inc
��"Label = ."label$
��"Filename = "filename$
��"Byte count? (Y/N) "yes$
�yes$=�yes$,1)
� yes$="Y" � yes=� � yes=�

A%=&9F
X%=0
&Y%=&40+(start � &F)
0� osbyte
:Y%=&40+(start � &F0)� &10
D� osbyte
NY%=&40+(start � &F00)� &100
X� osbyte
b!Y%=&4C+(start � &F000)� &1000
l� osbyte
v
Y%=&43
�� osbyte
��("SPOOL "+filename$)
�� � �("SPOOL"):�:�
��"AUTO ";line;",";inc
��".";label$
�)�"\ Start address = &";start$;" (&0)"
�2�"\ End address = &";end$;" (&";~end-start;")"
�� block=start � end � 4
�count=block-start
�� memory=0 � 3
�byte(memory)=�(read)� &FF
��
��;"EQUD &";
� memory=3�0�-1
A%=byte(memory)
� A% < &10 �48
 
�;~A%;
*�
4-� yes �;" \ &";~count+3;" - &";~count � �
>�
H
*SPOOL
R�'"Another (Y/N) "yes$
\� �yes$,1)="Y" � �
f�
�
00000000  0d 00 0a 0d f4 3a 20 43  52 45 41 54 45 0d 00 14  |.....: CREATE...|
00000010  0e ee 20 85 20 e5 20 8d  44 52 43 0d 00 1e 07 ef  |.. . . .DRC.....|
00000020  31 35 0d 00 28 10 de 20  6d 63 6f 64 65 20 26 31  |15..(.. mcode &1|
00000030  30 30 0d 00 32 0d de 20  62 79 74 65 28 33 29 0d  |00..2.. byte(3).|
00000040  00 3c 0c 74 65 6d 70 3d  26 37 30 0d 00 46 10 6f  |.<.temp=&70..F.o|
00000050  73 62 79 74 65 3d 26 46  46 46 34 0d 00 50 0f e3  |sbyte=&FFF4..P..|
00000060  70 61 73 73 3d 30 b8 32  88 32 0d 00 5a 0c 50 25  |pass=0.2.2..Z.P%|
00000070  3d 6d 63 6f 64 65 0d 00  64 0d 5b 4f 50 54 20 70  |=mcode..d.[OPT p|
00000080  61 73 73 0d 00 6e 09 2e  72 65 61 64 0d 00 78 0c  |ass..n..read..x.|
00000090  4c 44 41 20 23 26 39 46  0d 00 82 0c 4c 44 59 20  |LDA #&9F....LDY |
000000a0  23 26 31 30 0d 00 8c 0e  4a 53 52 20 6f 73 62 79  |#&10....JSR osby|
000000b0  74 65 0d 00 96 0c 4c 44  41 20 23 26 39 45 0d 00  |te....LDA #&9E..|
000000c0  a0 0e 4a 53 52 20 6f 73  62 79 74 65 0d 00 aa 07  |..JSR osbyte....|
000000d0  54 59 41 0d 00 b4 0c 53  54 41 20 74 65 6d 70 0d  |TYA....STA temp.|
000000e0  00 be 0c 52 4f 4c 20 74  65 6d 70 0d 00 c8 09 52  |...ROL temp....R|
000000f0  4f 52 20 41 0d 00 d2 0c  52 4f 4c 20 74 65 6d 70  |OR A....ROL temp|
00000100  0d 00 dc 09 52 4f 52 20  41 0d 00 e6 0c 52 4f 4c  |....ROR A....ROL|
00000110  20 74 65 6d 70 0d 00 f0  09 52 4f 52 20 41 0d 00  | temp....ROR A..|
00000120  fa 0c 52 4f 4c 20 74 65  6d 70 0d 01 04 09 52 4f  |..ROL temp....RO|
00000130  52 20 41 0d 01 0e 0c 52  4f 4c 20 74 65 6d 70 0d  |R A....ROL temp.|
00000140  01 18 09 52 4f 52 20 41  0d 01 22 0c 52 4f 4c 20  |...ROR A..".ROL |
00000150  74 65 6d 70 0d 01 2c 09  52 4f 52 20 41 0d 01 36  |temp..,.ROR A..6|
00000160  0c 52 4f 4c 20 74 65 6d  70 0d 01 40 09 52 4f 52  |.ROL temp..@.ROR|
00000170  20 41 0d 01 4a 0c 52 4f  4c 20 74 65 6d 70 0d 01  | A..J.ROL temp..|
00000180  54 09 52 4f 52 20 41 0d  01 5e 07 52 54 53 0d 01  |T.ROR A..^.RTS..|
00000190  68 05 5d 0d 01 72 05 ed  0d 01 7c 05 f5 0d 01 86  |h.]..r....|.....|
000001a0  1d e8 27 22 53 74 61 72  74 20 61 64 64 72 65 73  |..'"Start addres|
000001b0  73 20 26 22 73 74 61 72  74 24 0d 01 90 17 73 74  |s &"start$....st|
000001c0  61 72 74 3d a0 28 22 26  22 2b 73 74 61 72 74 24  |art=.("&"+start$|
000001d0  29 0d 01 9a 22 fd 20 73  74 61 72 74 20 3e 20 26  |)...". start > &|
000001e0  32 35 30 20 80 20 73 74  61 72 74 20 3c 20 26 33  |250 . start < &3|
000001f0  46 46 46 0d 01 a4 05 f5  0d 01 ae 1a e8 22 45 6e  |FFF.........."En|
00000200  64 20 61 64 64 72 65 73  73 20 20 20 26 22 65 6e  |d address   &"en|
00000210  64 24 0d 01 b8 13 65 6e  64 3d a0 28 22 26 22 2b  |d$....end=.("&"+|
00000220  65 6e 64 24 29 0d 01 c2  20 fd 20 65 6e 64 20 3e  |end$)... . end >|
00000230  3d 20 73 74 61 72 74 20  80 20 65 6e 64 20 3c 20  |= start . end < |
00000240  26 33 46 46 46 0d 01 cc  1f e8 22 46 69 72 73 74  |&3FFF....."First|
00000250  20 6c 69 6e 65 20 6e 75  6d 62 65 72 20 3d 20 22  | line number = "|
00000260  6c 69 6e 65 0d 01 d6 1e  e8 22 4c 69 6e 65 20 6e  |line....."Line n|
00000270  75 6d 6d 62 65 72 20 69  6e 63 2e 20 3d 20 22 69  |ummber inc. = "i|
00000280  6e 63 0d 01 e0 16 e8 22  4c 61 62 65 6c 20 3d 20  |nc....."Label = |
00000290  2e 22 6c 61 62 65 6c 24  0d 01 ea 1b e8 22 46 69  |."label$....."Fi|
000002a0  6c 65 6e 61 6d 65 20 3d  20 22 66 69 6c 65 6e 61  |lename = "filena|
000002b0  6d 65 24 0d 01 f4 1d e8  22 42 79 74 65 20 63 6f  |me$....."Byte co|
000002c0  75 6e 74 3f 20 28 59 2f  4e 29 20 22 79 65 73 24  |unt? (Y/N) "yes$|
000002d0  0d 01 fe 11 79 65 73 24  3d c0 79 65 73 24 2c 31  |....yes$=.yes$,1|
000002e0  29 0d 02 08 1e e7 20 79  65 73 24 3d 22 59 22 20  |)..... yes$="Y" |
000002f0  8c 20 79 65 73 3d b9 20  8b 20 79 65 73 3d a3 0d  |. yes=. . yes=..|
00000300  02 12 0a 41 25 3d 26 39  46 0d 02 1c 08 58 25 3d  |...A%=&9F....X%=|
00000310  30 0d 02 26 17 59 25 3d  26 34 30 2b 28 73 74 61  |0..&.Y%=&40+(sta|
00000320  72 74 20 80 20 26 46 29  0d 02 30 0c d6 20 6f 73  |rt . &F)..0.. os|
00000330  62 79 74 65 0d 02 3a 1d  59 25 3d 26 34 30 2b 28  |byte..:.Y%=&40+(|
00000340  73 74 61 72 74 20 80 20  26 46 30 29 81 20 26 31  |start . &F0). &1|
00000350  30 0d 02 44 0c d6 20 6f  73 62 79 74 65 0d 02 4e  |0..D.. osbyte..N|
00000360  1f 59 25 3d 26 34 30 2b  28 73 74 61 72 74 20 80  |.Y%=&40+(start .|
00000370  20 26 46 30 30 29 81 20  26 31 30 30 0d 02 58 0c  | &F00). &100..X.|
00000380  d6 20 6f 73 62 79 74 65  0d 02 62 21 59 25 3d 26  |. osbyte..b!Y%=&|
00000390  34 43 2b 28 73 74 61 72  74 20 80 20 26 46 30 30  |4C+(start . &F00|
000003a0  30 29 81 20 26 31 30 30  30 0d 02 6c 0c d6 20 6f  |0). &1000..l.. o|
000003b0  73 62 79 74 65 0d 02 76  0a 59 25 3d 26 34 33 0d  |sbyte..v.Y%=&43.|
000003c0  02 80 0c d6 20 6f 73 62  79 74 65 0d 02 8a 19 ff  |.... osbyte.....|
000003d0  28 22 53 50 4f 4f 4c 20  22 2b 66 69 6c 65 6e 61  |("SPOOL "+filena|
000003e0  6d 65 24 29 0d 02 94 16  ee 20 85 20 ff 28 22 53  |me$)..... . .("S|
000003f0  50 4f 4f 4c 22 29 3a f6  3a e0 0d 02 9e 19 f1 22  |POOL"):.:......"|
00000400  41 55 54 4f 20 22 3b 6c  69 6e 65 3b 22 2c 22 3b  |AUTO ";line;",";|
00000410  69 6e 63 0d 02 a8 0f f1  22 2e 22 3b 6c 61 62 65  |inc.....".";labe|
00000420  6c 24 0d 02 b2 29 f1 22  5c 20 53 74 61 72 74 20  |l$...)."\ Start |
00000430  61 64 64 72 65 73 73 20  3d 20 26 22 3b 73 74 61  |address = &";sta|
00000440  72 74 24 3b 22 20 28 26  30 29 22 0d 02 bc 32 f1  |rt$;" (&0)"...2.|
00000450  22 5c 20 45 6e 64 20 61  64 64 72 65 73 73 20 3d  |"\ End address =|
00000460  20 26 22 3b 65 6e 64 24  3b 22 20 28 26 22 3b 7e  | &";end$;" (&";~|
00000470  65 6e 64 2d 73 74 61 72  74 3b 22 29 22 0d 02 c6  |end-start;")"...|
00000480  1b e3 20 62 6c 6f 63 6b  3d 73 74 61 72 74 20 b8  |.. block=start .|
00000490  20 65 6e 64 20 88 20 34  0d 02 d0 15 63 6f 75 6e  | end . 4....coun|
000004a0  74 3d 62 6c 6f 63 6b 2d  73 74 61 72 74 0d 02 da  |t=block-start...|
000004b0  12 e3 20 6d 65 6d 6f 72  79 3d 30 20 b8 20 33 0d  |.. memory=0 . 3.|
000004c0  02 e4 1d 62 79 74 65 28  6d 65 6d 6f 72 79 29 3d  |...byte(memory)=|
000004d0  ba 28 72 65 61 64 29 80  20 26 46 46 0d 02 ee 05  |.(read). &FF....|
000004e0  ed 0d 02 f8 0f f1 3b 22  45 51 55 44 20 26 22 3b  |......;"EQUD &";|
000004f0  0d 03 02 13 e3 20 6d 65  6d 6f 72 79 3d 33 b8 30  |..... memory=3.0|
00000500  88 2d 31 0d 03 0c 13 41  25 3d 62 79 74 65 28 6d  |.-1....A%=byte(m|
00000510  65 6d 6f 72 79 29 0d 03  16 12 e7 20 41 25 20 3c  |emory)..... A% <|
00000520  20 26 31 30 20 ef 34 38  0d 03 20 0a f1 3b 7e 41  | &10 .48.. ..;~A|
00000530  25 3b 0d 03 2a 05 ed 0d  03 34 2d e7 20 79 65 73  |%;..*....4-. yes|
00000540  20 f1 3b 22 20 5c 20 26  22 3b 7e 63 6f 75 6e 74  | .;" \ &";~count|
00000550  2b 33 3b 22 20 2d 20 26  22 3b 7e 63 6f 75 6e 74  |+3;" - &";~count|
00000560  20 8b 20 f1 0d 03 3e 05  ed 0d 03 48 0a 2a 53 50  | . ...>....H.*SP|
00000570  4f 4f 4c 0d 03 52 1a e8  27 22 41 6e 6f 74 68 65  |OOL..R..'"Anothe|
00000580  72 20 28 59 2f 4e 29 20  22 79 65 73 24 0d 03 5c  |r (Y/N) "yes$..\|
00000590  16 e7 20 c0 79 65 73 24  2c 31 29 3d 22 59 22 20  |.. .yes$,1)="Y" |
000005a0  8c 20 f9 0d 03 66 05 e0  0d ff                    |. ...f....|
000005aa
04-11-88/CREATE.m0
04-11-88/CREATE.m1
04-11-88/CREATE.m2
04-11-88/CREATE.m4
04-11-88/CREATE.m5