*h8300-tdep.c: Add additional CCR flags (I,UI,H,U)

This commit is contained in:
Andrey Volkov 2002-05-17 18:52:58 +00:00
parent 3b02cf9281
commit 906709f48c
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-05-17 Andrey Volkov <avolkov@transas.com>
* h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2002-05-17 Andrey Volkov <avolkov@transas.com>
* h8300-tdep.c: Change literal regnums to REGNO.

View File

@ -838,8 +838,10 @@ h8300_print_register_hook (int regno)
frame_register_read (selected_frame, regno, b);
l = b[REGISTER_VIRTUAL_SIZE (CCR_REGNUM) - 1];
printf_unfiltered ("\t");
printf_unfiltered ("I-%d - ", (l & 0x80) != 0);
printf_unfiltered ("H-%d - ", (l & 0x20) != 0);
printf_unfiltered ("I-%d ", (l & 0x80) != 0);
printf_unfiltered ("UI-%d ", (l & 0x40) != 0);
printf_unfiltered ("H-%d ", (l & 0x20) != 0);
printf_unfiltered ("U-%d ", (l & 0x10) != 0);
N = (l & 0x8) != 0;
Z = (l & 0x4) != 0;
V = (l & 0x2) != 0;