home *** CD-ROM | disk | FTP | other *** search
-
-
- var num, I, J = integer
- var abyte, cursor, fill, tabs = char
- var indent, clock, ldelay = char
- var hdelay, fsize = char
- files D, D, S[1], S[1]
- create "B:PW.SWP"
- open #3; "A:PW.SWP"
- open #2; "B:PW.SWP"
-
- rem GET USER PREFERENCES************
- print "File size in K [64 is normal]";
- input num
- let fsize = chr[num]
- print "Cursor start line [10 is normal]";
- input num
- let cursor = chr[num]
- print "Fill column [65 is normal]";
- input num
- let fill = chr[num]
- print "Tab spacing [8 is normal]";
- input num
- let tabs = chr[num]
- print "Indent column [0 is normal]";
- input num
- let indent = chr[num]
- print "CPU clock speed [4 is normal]";
- input num
- let clock = chr[num]
- print "Delay count [300 is normal]";
- input num
- let ldelay = chr[num-[int[num/256]*256]]
- let hdelay = chr[int[num/256]]
-
- rem COPY FIRST 117 BYTES*********
- for I = 0H to 74H
- read #3; abyte
- write #2; abyte
- next I
- rem CHANGE PARAMETER BYTES**********
- for I = 75H to 7CH
- read #3; abyte
- next I
- write #2; cursor, fill, tabs, indent
- write #2; clock, ldelay, hdelay, fsize
- rem COPY REMAINDER OF FIRST 1K**********
- for I = 7DH to 3FFH
- read #3; abyte
- write #2; abyte
- next I
- rem PAD FILE TO SIZE*******
- let abyte = chr[0]
- for I = 1 to fsize
- for J = 0H to 3FFH
- write #2; abyte
- next J
- print I;"K";chr[0DH];
- next I
- close #2
- close #3
- end
-
- r[num]
- print "Cursor start line [10 is normal]";
- input num
- let c