mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@997 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -790,7 +790,7 @@ Or, to access a struct member of a static variable:
|
|||||||
unsigned char color;
|
unsigned char color;
|
||||||
} pixel_t;
|
} pixel_t;
|
||||||
static pixel_t pixel;
|
static pixel_t pixel;
|
||||||
__asm__ ("ldy #%b", offsetof(pixel, color));
|
__asm__ ("ldy #%b", offsetof(pixel_t, color));
|
||||||
__asm__ ("lda %v,y", pixel);
|
__asm__ ("lda %v,y", pixel);
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
<p>
|
<p>
|
||||||
|
Reference in New Issue
Block a user