We planned to upgrade GitLab and Mattermost to the latest version this Friday morning (early). You may experience some downtime!

Verified Commit 2aedbe2e authored by Camil Staps's avatar Camil Staps 🚀

Add support for new .ai ABC directive

parent abf772bf
Pipeline #18373 passed with stages
in 17 minutes and 57 seconds
......@@ -338,6 +338,7 @@ void load_instruction_table(void) {
put_instruction_name("updates4_a", parse_instruction_n_n_n_n_n, code_updates4_a );
put_instruction_name(".a", parse_directive_a, code_a );
put_instruction_name(".ai", parse_directive_ai, code_a );
put_instruction_name(".algtype", parse_instruction_n, code_algtype );
put_instruction_name(".caf", parse_instruction_a_n_n, code_caf );
put_instruction_name(".code", parse_directive_n_n_n, code_dummy );
......
......@@ -3892,6 +3892,10 @@ void code_a(int n_apply_args,char *ea_label_name) {
}
}
void code_ai(int n_apply_args,char *ea_label_name,char *instance_member_code_name) {
code_a(n_apply_args,ea_label_name);
}
void code_algtype(int n_constructors) {
}
......
......@@ -316,6 +316,7 @@ void code_updates3pop_b(int b_offset_1, int b_offset_2, int b_offset_3, int b_of
void code_updates4_a(int a_offset_1, int a_offset_2, int a_offset_3, int a_offset_4, int a_offset_5);
void code_a(int n_apply_args, char *ea_label_name);
void code_ai(int n_apply_args,char *ea_label_name,char *instance_member_code_name);
void code_algtype(int n_constructors);
void code_caf(char *label_name, int a_size, int b_size);
void code_comp(int version, char *options);
......
......@@ -1412,6 +1412,21 @@ int parse_directive_a (instruction *instruction)
return 1;
}
int parse_directive_ai (instruction *instruction)
{
int64_t n;
STRING s1,s2;
if (!parse_integer (&n))
return 0;
parse_label (s1);
parse_label (s2);
instruction->code_function ((int)n,s1,s2);
return 1;
}
int parse_directive_depend (instruction *instruction)
{
STRING a;
......
......@@ -49,6 +49,7 @@ int parse_instruction_s2(struct instruction*);
int parse_instruction_s2_n_a(struct instruction*);
int parse_directive(struct instruction*);
int parse_directive_a(struct instruction*);
int parse_directive_ai(struct instruction*);
int parse_directive_depend(struct instruction*);
int parse_directive_desc(struct instruction*);
int parse_directive_desc0(struct instruction*);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment