summaryrefslogtreecommitdiff
path: root/src/arch/operands/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/operands/target.c')
-rw-r--r--src/arch/operands/target.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/arch/operands/target.c b/src/arch/operands/target.c
index d921200..9b93548 100644
--- a/src/arch/operands/target.c
+++ b/src/arch/operands/target.c
@@ -40,6 +40,7 @@
#include "../../format/format.h"
#include "../../format/strsym.h"
#include "../../glibext/gbinarycursor.h"
+#include "../../gtkext/gtkblockdisplay.h"
@@ -301,20 +302,20 @@ static void g_target_operand_print(const GTargetOperand *operand, GBufferLine *l
if (operand->symbol != NULL && label != NULL)
{
if (operand->diff > 0)
- g_buffer_line_append_text(line, BLC_MAIN, "<", 1, RTT_LTGT, NULL);
+ g_buffer_line_append_text(line, DLC_ASSEMBLY, "<", 1, RTT_LTGT, NULL);
- g_buffer_line_append_text(line, BLC_MAIN, label, strlen(label), RTT_LABEL, G_OBJECT(operand));
+ g_buffer_line_append_text(line, DLC_ASSEMBLY, label, strlen(label), RTT_LABEL, G_OBJECT(operand));
if (operand->diff > 0)
{
- g_buffer_line_append_text(line, BLC_MAIN, "+", 1, RTT_SIGNS, G_OBJECT(operand));
+ g_buffer_line_append_text(line, DLC_ASSEMBLY, "+", 1, RTT_SIGNS, G_OBJECT(operand));
init_vmpa(&tmp, operand->diff, VMPA_NO_VIRTUAL);
vmpa2_phys_to_string(&tmp, MDS_4_BITS, value, &len);
- g_buffer_line_append_text(line, BLC_MAIN, value, len, RTT_LABEL, G_OBJECT(operand));
+ g_buffer_line_append_text(line, DLC_ASSEMBLY, value, len, RTT_LABEL, G_OBJECT(operand));
- g_buffer_line_append_text(line, BLC_MAIN, ">", 1, RTT_LTGT, NULL);
+ g_buffer_line_append_text(line, DLC_ASSEMBLY, ">", 1, RTT_LTGT, NULL);
}
@@ -323,7 +324,7 @@ static void g_target_operand_print(const GTargetOperand *operand, GBufferLine *l
{
vmpa2_to_string(&operand->addr, operand->size, value, &len);
- g_buffer_line_append_text(line, BLC_MAIN, value, len, RTT_LABEL, G_OBJECT(operand));
+ g_buffer_line_append_text(line, DLC_ASSEMBLY, value, len, RTT_LABEL, G_OBJECT(operand));
}