noft Manual (G06.26+)
Table Of Contents
- What’s New in This Manual
- About This Manual
- 1 Introduction
- 2 noft Utility
- 3 noft Options
- Break Key
- ! (Exclamation Point)
- CD
- COMMENT
- DUMPADDRESS or DA
- DUMPOFFSET or DO
- DUMPPROC or DP
- DYNSTR2
- ENV
- EXIT or E
- FC
- FILE or F
- HELP or ?
- HISTORY or H
- LAYOUT
- LIBLIST
- LISTATTRIBUTE or LA
- LISTCOMPILERS or LC
- LISTOPTIMIZE or LO
- LISTPROC or LP
- LISTSOURCE or LS
- LISTSRLEXPORTS or LLE
- LISTSRLFIXUPS or LLF
- LISTSRLINFO or LLI
- LISTUNREFERENCED or LUR
- LISTUNRESOLVED or LU
- LOG
- OBEY
- OUT
- QUIT or Q
- RESET
- SET
- SHOW
- SYSTEM or VOLUME
- XREFPROC or XP
- 4 noft Diagnostic Messages
- 5 ar Utility
- 6 ar Diagnostic Messages
- A Sample nld and noft Session
- B Converting From Binder to noft
- C Native Object File Structure
- Glossary
- Index

noft Options
noft Manual—528273-001
3-12
DUMPPROC or DP
Example 3-4. DUMPPROC Option
noft> dumpproc rollem in innerlist
******** Innerlist Dump Of Procedure: rollem ********
Procedure Src Line Address Long Word Instructions
-------------------------------------------------------------------------
Source File: $GUEST.GAMES.DICE
83 int rollem (void)
[rollem 83000] 0x700005a0 0x27bdffd0 addiu sp,sp,0xffffffd0
[rollem 83000] 0x700005a4 0xafbf001c sw ra,0x1c(sp)
[rollem 83000] 0x700005a8 0xafb10018 sw s1,0x18(sp)
84 {
85 /* roll two die, print each die, print and return total */
86 int die1, die2;
87 die1 = ((unsigned) rand() %6) +1;
[rollem 87000] 0x700005ac 0x0d81015c jal 0x76040570
-[rollem 83000] 0x700005b0 0xafb00014 sw s0,0x14(sp)
[rollem 87000] 0x700005b4 0x00408025 move s0,v0
[rollem 87000] 0x700005b8 0x24010006 li at,0x6
[rollem 87000] 0x700005bc 0x0201001b divu s0,at
[rollem 87000] 0x700005c0 0x00007010 mfhi t6
[rollem 87000] 0x700005c4 0x25cf0001 addiu t7,t6,0x1
88 die2 = ((unsigned) rand() %6) +1;
[rollem 88000] 0x700005c8 0x0d81015c jal 0x76040570
-[rollem 87000] 0x700005cc 0xafaf002c sw t7,0x2c(sp)
[rollem 88000] 0x700005d0 0x00408825 move s1,v0
[rollem 88000] 0x700005d4 0x24010006 li at,0x6
[rollem 88000] 0x700005d8 0x0221001b divu s1,at
89 printf ("YOU ROLLED A %i AND A %i FOR A TOTAL OF %i\n",
[rollem 89000] 0x700005dc 0x8fa8002c lw t0,0x2c(sp)
[rollem 89000] 0x700005e0 0x3c017000 lui at,0x7000
[rollem 89000] 0x700005e4 0x24240f44 addiu a0,at,0xf44
[rollem 89000] 0x700005e8 0x01002825 move a1,t0
-[rollem 88000] 0x700005ec 0x0000c010 mfhi t8
[rollem 88000] 0x700005f0 0x27190001 addiu t9,t8,0x1
[rollem 88000] 0x700005f4 0xafb90028 sw t9,0x28(sp)
[rollem 89000] 0x700005f8 0x03203025 move a2,t9
[rollem 89000] 0x700005fc 0x0d838250 jal 0x760e0940
[rollem 89000] 0x70000600 0x01193821 addu a3,t0,t9
90 die1,die2,die1+die2);
91 return die1+die2;
[rollem 91000] 0x70000604 0x8fa9002c lw t1,0x2c(sp)
[rollem 91000] 0x70000608 0x8faa0028 lw t2,0x28(sp)
92 }
[rollem 92000] 0x7000060c 0x8fb00014 lw s0,0x14(sp)
[rollem 92000] 0x70000610 0x8fb10018 lw s1,0x18(sp)
[rollem 92000] 0x70000614 0x8fbf001c lw ra,0x1c(sp)
-[rollem 91000] 0x70000618 0x012a1021 addu v0,t1,t2
[rollem 92000] 0x7000061c 0x03e00008 jr ra
[rollem 92000] 0x70000620 0x27bd0030 addiu sp,sp,0x30