From: cuz Date: Thu, 8 Apr 2004 17:43:28 +0000 (+0000) Subject: Added a comment X-Git-Tag: V2.12.0~849 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d8aa8c7d85f6c6eff6360f7b9447c583bcbf8cc;p=cc65 Added a comment git-svn-id: svn://svn.cc65.org/cc65/trunk@2976 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/_6522.h b/include/_6522.h index c68d268da..d5dbc5f75 100644 --- a/include/_6522.h +++ b/include/_6522.h @@ -35,7 +35,11 @@ -/* Define a structure with the via register offsets */ +/* Define a structure with the 6522 register offsets. + * NOTE: The timer registers are not declared as 16 bit registers, because + * the order in which the two 8 bit halves are written is important, and + * the compiler doesn't guarantee any order when writing 16 bit values. + */ struct __6522 { unsigned char prb; /* Port register B */ unsigned char pra; /* Port register A */ diff --git a/include/_6526.h b/include/_6526.h index 2e72aec48..c04b26d68 100644 --- a/include/_6526.h +++ b/include/_6526.h @@ -38,7 +38,11 @@ -/* Define a structure with the 6526 register offsets */ +/* Define a structure with the 6526 register offsets. + * NOTE: The timer registers are not declared as 16 bit registers, because + * the order in which the two 8 bit halves are written is important, and + * the compiler doesn't guarantee any order when writing 16 bit values. + */ struct __6526 { unsigned char pra; /* Port register A */ unsigned char prb; /* Port register B */