summaryrefslogtreecommitdiff
path: root/compiler/riscv/aasmcpu.pas
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/riscv/aasmcpu.pas')
-rw-r--r--compiler/riscv/aasmcpu.pas9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/riscv/aasmcpu.pas b/compiler/riscv/aasmcpu.pas
index 01eb202ce7..2a5a6ce6e6 100644
--- a/compiler/riscv/aasmcpu.pas
+++ b/compiler/riscv/aasmcpu.pas
@@ -47,6 +47,7 @@ uses
constructor op_reg(op : tasmop;_op1 : tregister);
constructor op_const(op : tasmop;_op1 : aint);
+ constructor op_ref(op : tasmop;_op1 : treference);
constructor op_reg_reg(op : tasmop;_op1,_op2 : tregister);
constructor op_reg_ref(op : tasmop;_op1 : tregister;const _op2 : treference);
@@ -144,6 +145,14 @@ uses cutils, cclasses;
end;
+ constructor taicpu.op_ref(op : tasmop;_op1 : treference);
+ begin
+ inherited create(op);
+ ops:=1;
+ loadref(0,_op1);
+ end;
+
+
constructor taicpu.op_const(op : tasmop;_op1 : aint);
begin
inherited create(op);