|
@@ -1166,9 +1166,9 @@ implementation
|
|
// reading back to the register
|
|
// reading back to the register
|
|
a_load_stack_reg(list, tosize, r);
|
|
a_load_stack_reg(list, tosize, r);
|
|
end
|
|
end
|
|
- else if (ref.base=NR_LOCAL_FRAME_POINTER_REG) and (ref.index=NR_NO) and not assigned(ref.symbol) then
|
|
|
|
|
|
+ else if (ref.base<>NR_NO) and (ref.index=NR_NO) and not assigned(ref.symbol) then
|
|
begin
|
|
begin
|
|
- list.Concat(taicpu.op_reg(a_get_local,NR_LOCAL_FRAME_POINTER_REG));
|
|
|
|
|
|
+ list.Concat(taicpu.op_reg(a_get_local,ref.base));
|
|
list.Concat(taicpu.op_const(a_i32_const, ref.offset));
|
|
list.Concat(taicpu.op_const(a_i32_const, ref.offset));
|
|
// todo: index?
|
|
// todo: index?
|
|
list.Concat(taicpu.op_none(a_i32_add));
|
|
list.Concat(taicpu.op_none(a_i32_add));
|