summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2011-12-02 12:30:39 +0000
committerPeter Wu <lekensteyn@gmail.com>2011-12-02 12:30:39 +0000
commitf1eece6b17e37a8db60c4ddcb49dd93ce1422f10 (patch)
treef3a87a0bcb3aead31d5ed3d998f64b1cd3c8513f
parent8f71ab7cfe0a2dca5a55cb835dbb8ac18d775daa (diff)
downloadpp2cc-f1eece6b17e37a8db60c4ddcb49dd93ce1422f10.tar.gz
Fix array initializer
-rwxr-xr-xpp2cc.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/pp2cc.py b/pp2cc.py
index ad50cd4..95809e3 100755
--- a/pp2cc.py
+++ b/pp2cc.py
@@ -953,7 +953,6 @@ class Parse(object):
reg_array = "R1"
# store the address of the first array element in the pointer
init_vals.append(self.asm.binary_op("LOAD", reg_array, var_reg))
- init_vals.append(self.asm.binary_op("ADD", reg_array, var_arr))
# in this particular case, it happens that the array values are
# next to the pointer to the array
init_vals.append(self.asm.binary_op("ADD", reg_array, 1))