diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-09 21:55:42 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-09 21:55:42 +0000 |
commit | 0a3787a7a258ab3de0af459827f83dd598c22b92 (patch) | |
tree | da8f2be3e3484f44f0086041ba045f5b3613f79b | |
parent | 88a928e25b11194c257bc29f735406acee106101 (diff) |
Print OE and RC fields of the instructions if they are set in the instruction.
-rw-r--r-- | sys/arch/macppc/macppc/db_disasm.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/macppc/macppc/db_disasm.c b/sys/arch/macppc/macppc/db_disasm.c index 5a56ba66bb4..0327f2b7b32 100644 --- a/sys/arch/macppc/macppc/db_disasm.c +++ b/sys/arch/macppc/macppc/db_disasm.c @@ -1,5 +1,5 @@ /* $NetBSD: db_disasm.c,v 1.8 2001/06/12 05:31:44 simonb Exp $ */ -/* $OpenBSD: db_disasm.c,v 1.4 2001/09/09 21:48:51 drahn Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.5 2001/09/09 21:55:41 drahn Exp $ */ /* * Copyright (c) 1996 Dale Rahn. All rights reserved. * @@ -768,10 +768,14 @@ disasm_process_field(u_int32_t addr, instr_t instr, char **ppfmt, char **ppoutpu } break; case Opf_OE: - *pstr++ = 'o'; + if (instr & (1 << (31-21))) { + *pstr++ = 'o'; + } break; case Opf_RC: - *pstr++ = '.'; + if (instr & 0x1) { + *pstr++ = '.'; + } break; case Opf_S: case Opf_D: |