# HG changeset patch # User boisy # Date 1086357095 0 # Node ID 90cb94c964d99df9070998b3a500ae7d5289f006 # Parent cc2d2a033ced471e2f67f1b3b25d3d1b647b71f6 Rodney's fixes diff -r cc2d2a033ced -r 90cb94c964d9 level2/cmds/pmap.asm --- a/level2/cmds/pmap.asm Fri Jun 04 13:50:24 2004 +0000 +++ b/level2/cmds/pmap.asm Fri Jun 04 13:51:35 2004 +0000 @@ -18,6 +18,9 @@ * Revised for NitrOS-9/OS9Tools compatibility. * Revised to build for either 8K or 4K blocksize * based on DAT parameters in SysType file. +* +* 4 2004/06/03 Rodney Hamilton +* Added test for DEAD processes. nam PMap ttl Show process map information @@ -29,10 +32,11 @@ Type set Prgrm+Objct Revs set ReEnt+0 Bufsiz set 512 -edition set 3 +Edition set 4 -stdout set 1 -maxnam set 30 +Stdout set 1 +Maxnam set 30 +Buflen set 80 pag *************************************************** @@ -40,21 +44,20 @@ mod PrgSiz,Name,Type,Revs,Entry,DatSiz Name fcs /PMap/ - fcb edition + fcb Edition * Data Equates umem rmb 2 -sysImg rmb 2 pointer to sysprc datimg datimg rmb 2 datimg for copymem lineptr rmb 2 number rmb 3 leadflag rmb 1 pid rmb 1 hdr rmb 12 -outbuf rmb 80 -buffer rmb bufsiz*2 working proc. desc. +outbuf rmb Buflen +buffer rmb Bufsiz working proc. desc. stack rmb 200 -datsiz equ . +DatSiz equ . ************************************************* * @@ -74,14 +77,16 @@ Hdrcr fcb C$CR SysNam fcs "SYSTEM" -syslen equ *-Sysnam +Syslen equ *-SysNam +DeadNam fcs "DEAD" +Deadlen equ *-DeadNam spc 3 *************************************************** * -Entry stu Umem +Entry stu = 255 --> exit - lda Pid get proc id - leax Buffer,u set destination + lda sysnam,pcr point at name - ldy lineptr - ldb #syslen + sty DeadNam,pcr + ldb #Deadlen + bra Copy0 yes, print "DEAD" + +Undead ldx P$PModul,x x=offset in map + bne Doname + leax >SysNam,pcr point at name + ldb #Syslen +Copy0 ldy