1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +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:
cuz 2001-10-02 17:20:06 +00:00
parent 93c80bc5d5
commit 9f3af1c09d

View File

@ -790,7 +790,7 @@ Or, to access a struct member of a static variable:
unsigned char color;
} pixel_t;
static pixel_t pixel;
__asm__ ("ldy #%b", offsetof(pixel, color));
__asm__ ("ldy #%b", offsetof(pixel_t, color));
__asm__ ("lda %v,y", pixel);
</verb></tscreen>
<p>