]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 2 Oct 2001 17:20:06 +0000 (17:20 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 2 Oct 2001 17:20:06 +0000 (17:20 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@997 b7a2c559-68d2-44c3-8de9-860c34a00d81

doc/cc65.sgml

index e5785cc054263e9996d8798940429dcf5bb37570..9ddefe485a19346b153ec848d4a2c93c8cd8b519 100644 (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>