<commit_before>#include "vgsasm.h"

int parse_acu(struct line_data* line, int i, int acu)
{
    unsigned char acu_op[10] = {VGSCPU_OP_ADD_A_1, VGSCPU_OP_SUB_A_1, VGSCPU_OP_MUL_A_1, VGSCPU_OP_DIV_A_1, VGSCPU_OP_MOD_A_1, VGSCPU_OP_AND_A_1, VGSCPU_OP_OR_A_1, VGSCPU_OP_XOR_A_1, VGSCPU_OP_CMP_A_1, VGSCPU_OP_CMP2_A_1};
    if (line[i].toknum < 3) {
        sprintf(line[i].error, "syntax error: required argument was not specified");
        return -1;
    }
    if (3 < line[i].toknum) {
        sprintf(line[i].error, "syntax error: extra argument was specified: %s", line[i].token[3]);
        return -1;
    }
    switch (check_GR(line[i].token[1])) {
        case A4:
            return _parse_arl(line, i, A4, acu_op[acu]);
        case B4:
            if (_parse_arl(line, i, B4, acu_op[acu])) return -1;
            line[i].oplen++;
            memmove(&line[i].op[0], &line[i].op[1], sizeof(line[i].op) - 1);
            line[i].op[0] = VGSCPU_OP_ACU_B;
            return 0;
        case C4:
            if (_parse_arl(line, i, C4, acu_op[acu])) return -1;
            line[i].oplen++;
            memmove(&line[i].op[0], &line[i].op[1], sizeof(line[i].op) - 1);
            line[i].op[0] = VGSCPU_OP_ACU_C;
            return 0;
        case D4:
            if (_parse_arl(line, i, D4, acu_op[acu])) return -1;
            line[i].oplen++;
            memmove(&line[i].op[0], &line[i].op[1], sizeof(line[i].op) - 1);<commit_msg>bugfix: acu-b, c, d の命令アセンブル結果が不正になる<commit_after>#include "vgsasm.h"

int parse_acu(struct line_data* line, int i, int acu)
{
    unsigned char acu_op[10] = {VGSCPU_OP_ADD_A_1, VGSCPU_OP_SUB_A_1, VGSCPU_OP_MUL_A_1, VGSCPU_OP_DIV_A_1, VGSCPU_OP_MOD_A_1, VGSCPU_OP_AND_A_1, VGSCPU_OP_OR_A_1, VGSCPU_OP_XOR_A_1, VGSCPU_OP_CMP_A_1, VGSCPU_OP_CMP2_A_1};
    if (line[i].toknum < 3) {
        sprintf(line[i].error, "syntax error: required argument was not specified");
        return -1;
    }
    if (3 < line[i].toknum) {
        sprintf(line[i].error, "syntax error: extra argument was specified: %s", line[i].token[3]);
        return -1;
    }
    switch (check_GR(line[i].token[1])) {
        case A4:
            return _parse_arl(line, i, A4, acu_op[acu]);
        case B4:
            if (_parse_arl(line, i, B4, acu_op[acu])) return -1;
            line[i].oplen++;
            memmove(&line[i].op[1], &line[i].op[0], sizeof(line[i].op) - 1);
            line[i].op[0] = VGSCPU_OP_ACU_B;
            return 0;
        case C4:
            if (_parse_arl(line, i, C4, acu_op[acu])) return -1;
            line[i].oplen++;
            memmove(&line[i].op[1], &line[i].op[0], sizeof(line[i].op) - 1);
            line[i].op[0] = VGSCPU_OP_ACU_C;
            return 0;
        case D4:
            if (_parse_arl(line, i, D4, acu_op[acu])) return -1;
            line[i].oplen++;
            memmove(&line[i].op[1], &line[i].op[0], sizeof(line[i].op) - 1);
{'fraction_non_alphanumeric': 0.16315243691669548, 'fraction_numerical': 0.029726927065330106, 'mean_word_length': 2.5206812652068127, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5777764', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1257, 'n_words': 221}