From: Bernhard Urban Date: Sat, 8 May 2010 19:28:26 +0000 (+0200) Subject: codea: feldzugriff auf einen 'fixen' speicherbereich X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=testub10.git;a=commitdiff_plain;h=0bbe5282fed85d2cf3ae7e90345018cfd1f54453 codea: feldzugriff auf einen 'fixen' speicherbereich --- diff --git a/codea/lewurm_11.0 b/codea/lewurm_11.0 new file mode 100644 index 0000000..f92dba8 --- /dev/null +++ b/codea/lewurm_11.0 @@ -0,0 +1,5 @@ +struct a b c end; +method w() + /* passt die addresse jedes mal? */ + return 0x600b10.c; +end; diff --git a/codea/lewurm_11.call b/codea/lewurm_11.call new file mode 100644 index 0000000..e3d8383 --- /dev/null +++ b/codea/lewurm_11.call @@ -0,0 +1,4 @@ +long w(long); +static long s[] = {5,1,1337}; +printf("addr of s: %0p\n", s); +RET(w(0xcafebabe) == 1337); diff --git a/codea/lewurm_11.instr b/codea/lewurm_11.instr new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/codea/lewurm_11.instr @@ -0,0 +1 @@ +2