annotate 3rdparty/utils/winfo/witestb.b09 @ 1163:5cbcbfd738ae

Added
author boisy
date Thu, 08 May 2003 20:50:59 +0000
parents 00b1c751fad7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
396
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
1 PROCEDURE witestb
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
2
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
3 (* Witestb
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
4 (* Copyright November 1987 by Ron Lammardo
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
5 (* This program placed into the Public Domain as demonstration
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
6 (* detailing use of the WInfo subroutine from a Basic09 calling
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
7 (* program
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
8 (*
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
9
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
10 TYPE winf=buff1(7):BYTE; buff2(10):BYTE; bpr:INTEGER; buff3(11):
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
11 BYTE; drcrx,drcry:INTEGER; edtn:BYTE; weadr,devm:INTEGER; filler:
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
12 STRING[33]; pregs(16):BYTE; ermsg:STRING[40]
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
13 DIM wi:winf
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
14 DIM wname:STRING[32]
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
15 DIM minedition:BYTE
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
16 DIM indx1:INTEGER
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
17 PRINT
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
18 INPUT "Window name :",wname
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
19 PRINT
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
20 RUN winfo(wname,wi)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
21 IF wi.buff1(1)=$FF THEN
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
22 PRINT "The Buffer size is to small for WInfo"
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
23 END
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
24 ENDIF
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
25 minedition=1
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
26 IF wi.edtn<minedition THEN
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
27
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
28 PRINT "You must have WInfo edition #";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
29 PRINT USING "h2"; minedition;
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
30 PRINT " or higher"
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
31 PRINT
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
32 END
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
33 ENDIF
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
34 PRINT "WI$Stat : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
35 PRINT USING "h2"; wi.buff1(1);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
36 PRINT " WI$VDG : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
37 PRINT USING "h2"; wi.buff1(2)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
38 PRINT "WI$Sty : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
39 PRINT USING "h2"; wi.buff1(3);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
40 PRINT " WI$Block : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
41 PRINT USING "h2"; wi.buff1(4)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
42 PRINT "WI$BlCnt : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
43 PRINT USING "h2"; wi.buff1(5);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
44 PRINT " WI$Offst :";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
45 PRINT USING "h4"; wi.buff1(6)*256+wi.buff1(7)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
46 PRINT "WI$Cpx : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
47 PRINT USING "h2"; wi.buff2(1);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
48 PRINT " WI$Cpy : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
49 PRINT USING "h2"; wi.buff2(2)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
50 PRINT "WI$Szx : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
51 PRINT USING "h2"; wi.buff2(3);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
52 PRINT " WI$Szy : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
53 PRINT USING "h2"; wi.buff2(4)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
54 PRINT "WI$CWCpx : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
55 PRINT USING "h2"; wi.buff2(5);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
56 PRINT " WI$CWCpy : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
57 PRINT USING "h2"; wi.buff2(6)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
58 PRINT "WI$CWSzx : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
59 PRINT USING "h2"; wi.buff2(7);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
60 PRINT " WI$CWSzy : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
61 PRINT USING "h2"; wi.buff2(8)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
62 PRINT "WI$Curx : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
63 PRINT USING "h2"; wi.buff2(9);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
64 PRINT " WI$Cury : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
65 PRINT USING "h2"; wi.buff2(10)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
66 PRINT "WI$BPR :";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
67 PRINT USING "h4"; wi.bpr;
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
68 PRINT " WI$CBsw : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
69 PRINT USING "h2"; wi.buff3(1)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
70 PRINT "WI$FGPRN : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
71 PRINT USING "h2"; wi.buff3(2);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
72 PRINT " WI$BGPRN : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
73 PRINT USING "h2"; wi.buff3(3)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
74 PRINT "WI$BDPRN : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
75 PRINT USING "h2"; wi.buff3(4);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
76 PRINT " WI$Lset : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
77 PRINT USING "h2"; wi.buff3(5)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
78 PRINT "WI$FntGr : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
79 PRINT USING "h2"; wi.buff3(6);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
80 PRINT " WI$FntBf : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
81 PRINT USING "h2"; wi.buff3(7)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
82 PRINT "WI$PstGr : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
83 PRINT USING "h2"; wi.buff3(8);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
84 PRINT " WI$PstBf : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
85 PRINT USING "h2"; wi.buff3(9)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
86 PRINT "WI$GcrGr : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
87 PRINT USING "h2"; wi.buff3(10);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
88 PRINT " WI$GcrBf : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
89 PRINT USING "h2"; wi.buff3(11)
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
90 PRINT "WI$DrCrx :";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
91 PRINT USING "h4"; wi.drcrx;
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
92 PRINT " WI$DrCry :";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
93 PRINT USING "h4"; wi.drcry
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
94 PRINT "WI$Edtn : ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
95 PRINT USING "h2"; wi.edtn;
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
96 PRINT " WI$WEAdr :";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
97 PRINT USING "h4"; wi.weadr
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
98 PRINT "WI$Devm :";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
99 PRINT USING "h4"; wi.devm
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
100 PRINT "WI$PRegs :";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
101 FOR indx1=1 TO 16
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
102 PRINT USING "h2"; wi.pregs(indx1);
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
103 PRINT " ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
104 IF indx1=8 THEN
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
105 PRINT
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
106 PRINT " ";
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
107 ENDIF
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
108 NEXT indx1
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
109 PRINT
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
110 PRINT wi.ermsg
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
111 END
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
112
00b1c751fad7 Added WInfo
boisy
parents:
diff changeset
113