Skip to content

Commit a3490b0

Browse files
authored
Match almost all functions in reg_mgr (#54)
* Match as1/call_as0 * Add the actual file... * Update callas0.c * Improve parse_extsyms_file's match * Start reg_mgr.p * Match more funcs in reg_mgr.p * Just one function left in reg_mgr.p * xr$ -> gpr_reg * Fix build * Add 'ugen_regdef.h'
1 parent 412a07e commit a3490b0

File tree

7 files changed

+1086
-142
lines changed

7 files changed

+1086
-142
lines changed

src/ugen/emit_dw.p

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "tree_utils.h"
44
#include "emit.h"
55
#include "reg_mgr.h"
6+
#include "ugen_regdef.h"
67

78
var
89
lsb_first: boolean;
@@ -646,7 +647,7 @@ var
646647
emit_rri_(zsltiu, arg1, arg1, 1, franone);
647648
end else begin
648649
emit_rrr(zor, arg1, arg1, xr1);
649-
emit_rrr(zsltu, arg1, xr0, arg1);
650+
emit_rrr(zsltu, arg1, gpr_zero, arg1);
650651
end;
651652
emit_dir0(iset, ord(set_at));
652653
end;
@@ -940,7 +941,7 @@ var
940941
emit_rri_(zsltiu, arg1, arg1, 1, franone);
941942
end else begin
942943
emit_rrr(zor, arg1, arg1, xr1);
943-
emit_rrr(zsltu, arg1, xr0, arg1);
944+
emit_rrr(zsltu, arg1, gpr_zero, arg1);
944945
end;
945946
emit_dir0(iset, ord(set_at));
946947
end;
@@ -1066,13 +1067,13 @@ begin
10661067
if lsb_first then begin
10671068
emit_rri_(arg0, arg1, arg2, arg4, franone);
10681069
if arg3 = 0 then begin
1069-
emit_rr(zmove, succ(arg1), xr0);
1070+
emit_rr(zmove, succ(arg1), gpr_zero);
10701071
end else begin
10711072
emit_rri_(arg0, succ(arg1), succ(arg2), arg3, franone);
10721073
end;
10731074
end else begin
10741075
if arg3 = 0 then begin
1075-
emit_rr(zmove, arg1, xr0);
1076+
emit_rr(zmove, arg1, gpr_zero);
10761077
end else begin
10771078
emit_rri_(arg0, arg1, arg2, arg3, franone);
10781079
end;

0 commit comments

Comments
 (0)