Motorola MVME2700 Series Manuel d'utilisateur Page 151

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 508
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 150
Debugger Commands
http://www.motorola.com/computer/literature 3-75
3
GN - Go to Next Instruction
Command Input
GN
Command Input
The GN command sets a temporary breakpoint at the address of the next
instruction (the instruction that follows the current instruction), and starts
target code execution. After setting the temporary breakpoint, the
sequence of events is similar to that of the GO command.
GN is especially helpful when debugging modular code because it allows
you to trace through a subroutine call as if it were a single instruction.
Example
The following section of code resides at address $20000.
PPC1-Bug>DS 20000:6 <Return>
00020000 3C600004 ADDIS R3,R0,$4
00020004 60631000 ORI R3,R3,$1000
00020008 3C800000 ADDIS R4,R0,$0
0002000C 608400FE ORI R4,R4,$FE
00020010 4800FFF1 BL $00030000
00020014 80620000 LWZ R3,$0(R2) ($FFF0178C)
PPC1-Bug>
The following simple routine resides at address $30000.
PPC1-Bug>DS 30000 <Return>
00030000 3CA00000 ADDIS R5,R0,$0
00030004 2B040000 CMPLI CRF6,0,R4,$0
00030008 419A0014 BC 12,26,$0003001C
0003000C 98A30000 STB R5,$0(R3) ($00000000)
00030010 3884FFFF ADDI R4,R4,$FFFFFFFF
00030014 38630001 ADDI R3,R3,$1
00030018 4BFFFFEC B $00030004
0003001C 4E800020 BCLR 20,0
PPC1-Bug>
Vue de la page 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 507 508

Commentaires sur ces manuels

Pas de commentaire