From f16ce2228183a686303cf7e8681e1f35ba2dd8e2 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Wed, 15 May 2019 12:02:42 +0300 Subject: [PATCH] doc: Rename aux member to data --- doc/cc65.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 24634ea3f..ed3386294 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -1448,7 +1448,7 @@ Or, to access a struct member of a static variable: unsigned char x; unsigned char y; unsigned char color; - unsigned char aux[32]; + unsigned char data[32]; } pixel_t; static pixel_t pixel; __asm__ ("ldy #%b", offsetof(pixel_t, color)); @@ -1457,7 +1457,7 @@ Or, to access a struct member of a static variable: /* or to access an array member */ static unsigned char i; __asm__ ("ldy %v", i); - __asm__ ("lda %v+%b,y", pixel, offsetof(pixel_t, aux)); + __asm__ ("lda %v+%b,y", pixel, offsetof(pixel_t, data));

The next example shows how to use global variables to exchange data between C