Lines Matching refs:value

105 static void make_expression(expression_t *immed, int value);
117 u_int value; member
126 %token <value> T_CONST
144 %token <value> T_ADDRESS
160 %token <value> T_MODE
174 %token <value> T_NUMBER
182 %token <value> T_SHR T_SHL T_ROR T_ROL
184 %token <value> T_MVI T_MOV T_CLR T_BMOV
186 %token <value> T_JMP T_JC T_JNC T_JE T_JNE T_JNZ T_JZ T_CALL
188 %token <value> T_ADD T_ADC
190 %token <value> T_INC T_DEC
192 %token <value> T_STC T_CLC
194 %token <value> T_CMP T_NOT T_XOR
196 %token <value> T_TEST T_AND
198 %token <value> T_OR
222 %type <value> export ret f1_opcode f2_opcode jmp_jc_jnc_call jz_jnz je_jne
224 %type <value> mode_value mode_list macro_arglist
462 if (symbol->info.cinfo->value > 4) {
467 $$ = (0x1 << symbol->info.cinfo->value);
481 process_field(FIELD, $2, $3.value);
484 enum_increment = 0x01 << (ffs($3.value) - 1);
489 process_field(FIELD, $2, $3.value);
503 process_field(ENUM, $2, $3.value);
506 enum_increment = 0x01 << (ffs($3.value) - 1);
524 process_field(ENUM_ENTRY, $1, $2.value);
525 enum_next_value = $2.value + enum_increment;
532 process_field(MASK, $2, $3.value);
625 $$.value = $1.value | $3.value;
632 $$.value = $1.value & $3.value;
639 $$.value = $1.value + $3.value;
646 $$.value = $1.value - $3.value;
653 $$.value = $1.value * $3.value;
660 $$.value = $1.value / $3.value;
667 $$.value = $1.value << $3.value;
674 $$.value = $1.value >> $3.value;
686 $$.value = (~$$.value) & 0xFF;
691 $$.value = -$$.value;
695 $$.value = $1;
709 $$.value = symbol->info.rinfo->address;
715 $$.value = symbol->info.finfo->value;
719 $$.value = symbol->info.cinfo->value;
747 $2->info.cinfo->value = $3.value;
763 $2->info.cinfo->value = download_constant_count++;
900 if (($3->info.cinfo->value + 1) > $1->info.rinfo->size) {
906 $$.offset = $3->info.cinfo->value;
946 if ($1.value == 0 && is_download_const(&$1) == 0) {
961 $$.value = 0;
1264 if ($4.value == 0
1426 process_field(int field_type, symbol_t *sym, int value)
1438 sym->info.finfo->value = value;
1440 if (field_type != MASK && value == 0) {
1444 sym->info.finfo->value = value;
1445 sym->info.finfo->mask = value;
1447 sym->info.finfo->mask = field_symbol->info.finfo->value;
1455 } else if (value != sym->info.finfo->value) {
1677 f1_instr->immediate = immed->value; in format_1_instr()
1700 dst_value = src_value & immed->value; in format_1_instr()
1703 dst_value = src_value ^ immed->value; in format_1_instr()
1706 dst_value = (src_value + immed->value) & 0xFF; in format_1_instr()
1709 dst_value = src_value | immed->value; in format_1_instr()
1750 if (places->value > 8 || places->value <= 0) { in format_2_instr()
1756 if (places->value == 8) in format_2_instr()
1759 shift_control = (places->value << 4) | places->value; in format_2_instr()
1762 if (places->value == 8) { in format_2_instr()
1765 shift_control = (places->value << 4) in format_2_instr()
1766 | (8 - places->value) in format_2_instr()
1771 shift_control = places->value & 0x7; in format_2_instr()
1774 shift_control = (8 - places->value) | 0x08; in format_2_instr()
1814 f3_instr->immediate = immed->value; in format_3_instr()
1863 int8_t value, mask; in type_check() local
1880 value = (int8_t)expression->value; in type_check()
1882 if (and_op == FALSE && (mask & value) != 0 ) { in type_check()
1885 (mask & value), in type_check()
1917 make_expression(expression_t *immed, int value) in make_expression() argument
1920 immed->value = value & 0xff; in make_expression()