From 78ddcf9db7cc98a42bb4f3962e731c4fbfa1d055 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Fri, 12 Apr 2019 00:58:40 +0200 Subject: [PATCH] address-of works the test program --- examples/test.p8 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/test.p8 b/examples/test.p8 index 31da717b3..5ce827bfb 100644 --- a/examples/test.p8 +++ b/examples/test.p8 @@ -23,7 +23,7 @@ pointer2 = &array2 pointer3 = &string1 - uword[4] pointers = [&array1, &array2, &string1, &string2] ; @todo make it possible to initialize array with pointers + uword[4] pointers = [&array1, &array2, &string1, &string2] ptrsubasm("moet werken") @@ -45,6 +45,13 @@ pointersub(&array2) pointersub(&string1) pointersub(&string2) + c64scr.print_uwhex(1, pointers[0]) + c64.CHROUT(',') + c64scr.print_uwhex(1, pointers[1]) + c64.CHROUT(',') + c64scr.print_uwhex(1, pointers[2]) + c64.CHROUT(',') + c64scr.print_uwhex(1, pointers[3]) }