annotate level1/cmds/build.asm @ 0:6641a883d6b0

Initial revision
author boisy
date Thu, 04 Apr 2002 16:34:12 +0000
parents
children fad2545d83fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
1 ********************************************************************
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2 * Build - Simple text file creation utility
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
3 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4 * $Id$
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 * Ed. Comments Who YY/MM/DD
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
7 * ------------------------------------------------------------------
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 * 5 Original Tandy distribution version
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
10 nam Build
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
11 ttl Simple text file creation utility
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
12
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13 * Disassembled 98/09/10 23:19:12 by Disasm v1.6 (C) 1988 by RML
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 ifp1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16 use defsfile
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 endc
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
19 tylg set Prgrm+Objct
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
20 atrv set ReEnt+rev
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
21 rev set $01
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
22 edition set 5
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 mod eom,name,tylg,atrv,start,size
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 FPath rmb 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 LineBuff rmb 578
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 size equ .
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 name fcs /Build/
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 fcb edition
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 start ldd #(WRITE.*256)+PREAD.+UPDAT.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 os9 I$Create
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 bcs Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 sta <FPath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 InpLoop lda #1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 leax <Prompt,pcr
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 ldy #PromptL
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 clra
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 leax LineBuff,u
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 ldy #128
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 os9 I$ReadLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 bcs Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 cmpy #$0001
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
47 beq Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48 lda <FPath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 os9 I$WritLn
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 bcc InpLoop
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 bra Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 Close lda <FPath
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 os9 I$Close
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 bcs Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 clrb
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 Exit os9 F$Exit
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 Prompt fcc "? "
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 PromptL equ *-Prompt
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 emod
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 eom equ *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 end
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64