# HG changeset patch # User boisy # Date 1030368325 0 # Node ID 00b1c751fad712d2156e6aef8a0aab9fe9dbc86b # Parent 35d038fa4f85afdff0b63e82dcdb7904c1cfe30a Added WInfo diff -r 35d038fa4f85 -r 00b1c751fad7 3rdparty/utils/winfo/defsfile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/3rdparty/utils/winfo/defsfile Mon Aug 26 13:25:25 2002 +0000 @@ -0,0 +1,3 @@ +Level equ 2 + use os9defs + use scfdefs diff -r 35d038fa4f85 -r 00b1c751fad7 3rdparty/utils/winfo/makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/3rdparty/utils/winfo/makefile Mon Aug 26 13:25:25 2002 +0000 @@ -0,0 +1,19 @@ +include ../../../Makefile.rules + +DEPENDS = ./Makefile + +CMDS = witesta +SUBS = winfo + +ALLOBJS = $(CMDS) $(SUBS) + +all: $(ALLOBJS) $(DEPENDS) + @$(ECHO) "*********************************************" + @$(ECHO) "* *" + @$(ECHO) "* WInfo Utility *" + @$(ECHO) "* *" + @$(ECHO) "*********************************************" + +clean: + $(RM) $(ALLOBJS) + diff -r 35d038fa4f85 -r 00b1c751fad7 3rdparty/utils/winfo/winfo.asm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/3rdparty/utils/winfo/winfo.asm Mon Aug 26 13:25:25 2002 +0000 @@ -0,0 +1,734 @@ + nam WInfo + ttl OS9 Level II sub to get window information - Ron Lammardo + +* +* 11/22/87 - Edition #1 - for OS9 Level II V02.00.01 +* 12/22/95 - Edition #2 - for ALL versions of OS-9 by Alan DeKok +* + + ifp1 + use defsfile + endc + +typelang set sbrtn+objct +attrev set reent+revision +revision set 1 + + mod Eom,Mname,Typelang,Attrev,Start,Datend + +mname fcs /WInfo/ +edition fcb 2 edition + + org 0 + use winfodefs + + org 0 +stackadr rmb 2 stack address for return +de rmb 1 device table entry # +sctype rmb 1 screen type +offset rmb 2 screen start offset in block +datimg rmb 2 address of sys DAT image in sysprc +datadr rmb 2 address of sys DAT in system +entry rmb 2 address of currently proccessed window entry +wnum rmb 1 window entry number +scrblock rmb 1 block # containing screen mem +blockcnt rmb 1 # of blocks in screen +wstart rmb 2 x,y coordinates of window start on screen +wsize rmb 2 x,y size of window +cwstart rmb 2 x,y coordinates of current working area +cwsize rmb 2 x,y size of current working area +paramadr rmb 2 address of window name to dump +paramln. rmb 1 +paramln rmb 1 size of window name to dump +vdgadr rmb 2 address of vdg screen +vdgflag rmb 1 vdg screen flag (1=yes) +scrnaddr rmb 2 address of screen +d$devtbl rmb 2 address of device table +mdname rmb 2 adress of module name +drvnam rmb 2 address of device driver name +buffaddr rmb 2 address of return packet +buffln. rmb 1 dummy byte +buffln rmb 1 length of return packet..must be > WI$size +weaddr rmb 2 logical address of window entry insys map (debugging only) +devmaddr rmb 2 device static storage entry in sys map (debugging only) +fgc rmb 1 foreground color +bgc rmb 1 background color +bdc rmb 1 border color +curx rmb 1 x coordinate of cursor +cury rmb 1 y coordinate of cursor +bpr rmb 2 bytes per row +stymark rmb 1 screen type marker byte +paltaddr rmb 2 address of palette registers +msb rmb 1 working field - msb for 2 digit mults +lsb rmb 1 working field - lsb for 2 digit mults +lset rmb 1 logic set # +psetgb rmb 2 pset group/buffer +fontgb rmb 2 font group/buffer +gcurgb rmb 2 gfx cursor group/buffer +minidat rmb 2 temp dat for cpymem +bfngrp rmb 2 buffer #/group return +drawcrsr rmb 4 draw cursor position - xxyy +sysdat rmb 16 system DAT image +devname rmb 5 device descriptor name +devtable rmb 9 device table entry +devmem equ . device memory copy +sc rmb 32 screen table +we rmb 64 window entry + rmb 32 filler so we got 128 bytes for dev memory +datend equ . + +E$Param equ $38 bad Parameter error + +cc3io fcs /CC3IO/ used to compare device driver name + +tmpdat fcb 0,0 mini-dat image for block 0 data fetches + +blnkpalt fcb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff + fcb $ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff + +stytable fcb $01,$03,$03,$0f +blktable fcb 1,1,0,0,2,2,4,4 + +errmsg1 equ * + fcc /Requested device not in device table/ +errm1ln equ *-errmsg1 +errmsg2 fcc /Requested device is not CC3IO/ +errm2ln equ *-errmsg2 +errmsg3 fcc /Can not access window until written to/ +errm3ln equ *-errmsg3 + +start equ * + pshs u,dp save registers + tfr s,d put in 'd' for computations + clrb clear lsb + suba #1 bump down page to make sure we don't conflict + tfr a,dp now set direct page + tfr d,u and set u register + sts +* + ifp1 + use defsfile + endc + +typelang set prgrm+objct +attrev set reent+revision +revision set 1 + +zeroadr equ * + + mod Eom,Mname,Typelang,Attrev,Start,Datend + +mname fcs /WItesta/ + fcb 1 + org 0 +window rmb 2 +nameln rmb 2 +current rmb 2 +bytect rmb 1 +hexbuff rmb 6 +dispcnt rmb 1 + rmb 252 + use winfodefs +buffer rmb 2000 + rmb 256 +datend equ . + +minedtn set 1 lowest edition Winfo we can use + +winfo fcc /winfo/ subroutine module name + fcb $0d + +errmsg1 fcb $0d,$0a + fcc /You must use WInfo edition #/ +err1sz equ *-errmsg1 +errmsg2 fcc / or higher/ + fcb $0d +err2sz equ *-errmsg2 + +msg1 fcc /WI$Stat :/ + fcb 1 + fcc /WI$VDG :/ + fcb 1 + fcc /WI$Sty :/ + fcb 1 + fcc /WI$Block :/ + fcb 1 + fcc /WI$BlCnt :/ + fcb 1 + fcc /WI$Offst :/ + fcb 2 + fcc /WI$Cpx :/ + fcb 1 + fcc /WI$Cpy :/ + fcb 1 + fcc /WI$Szx :/ + fcb 1 + fcc /WI$Szy :/ + fcb 1 + fcc /WI$CWCpx :/ + fcb 1 + fcc /WI$CWCpy :/ + fcb 1 + fcc /WI$CWSzx :/ + fcb 1 + fcc /WI$CWSy :/ + fcb 1 + fcc /WI$Curx :/ + fcb 1 + fcc /WI$Cury :/ + fcb 1 + fcc /WI$BPR :/ + fcb 2 + fcc /WI$CBsw :/ + fcb 1 + fcc /WI$FGPRN :/ + fcb 1 + fcc /WI$BGPRN :/ + fcb 1 + fcc /WI$BDPRN :/ + fcb 1 + fcc /WI$Lset :/ + fcb 1 + fcc /WI$FntGr :/ + fcb 1 + fcc /WI$FntBf :/ + fcb 1 + fcc /WI$PstGr :/ + fcb 1 + fcc /WI$PstBf :/ + fcb 1 + fcc /WI$GcrGr :/ + fcb 1 + fcc /WI$GcrBf :/ + fcb 1 + fcc /WI$DrCrx :/ + fcb 2 + fcc /WI$DrCry :/ + fcb 2 + fcc /WI$Edtn :/ + fcb 1 + fcc /WI$WEAdr :/ + fcb 2 + fcc /WI$Devm :/ + fcb 2 + fcc / / + fcb 5 +palreg fcc /WI$PRegs :/ + fcb 16 + +spaces fcc / / +creturn fcb $0d + + +start equ * + stx + std