From 8d53bd7c238aa60cd8050a1972cfbfec338aebbd Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 14 Jun 2020 20:56:02 +0200 Subject: libc-freestanding - added a memcpy asm-i386: - fixed address calculation for dd and multiple operands - added support for register indirect moved (writing only at the moment, needed for array assignments) ec: - added support for array assignments - removed "variable not initialized" check, too hard to implement correctly and besides we initialize static variables always) --- ecomp-c/test1.e | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ecomp-c/test1.e') diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e index 83090ec..656d634 100644 --- a/ecomp-c/test1.e +++ b/ecomp-c/test1.e @@ -28,6 +28,7 @@ var i : integer; j : character := C; s : array 10 of character := S; + s1 : array 10 of character; s2 : array 10 of character := "hello"; a1 : array 10 of integer; @@ -60,7 +61,13 @@ begin end; j := 'B'; - a1[0] := 'c'; + a1[4] := 42; + s1[0] := 'a'; s[0] := 'H'; - j := s2[1]; + i := 0; + while i < 10 do + a1[i] := i; + i := i + 1; + end; + //j := s2[1]; end -- cgit v1.2.3-54-g00ecf