]> git.sur5r.net Git - cc65/blobdiff - include/_6522.h
New entry point setoserror
[cc65] / include / _6522.h
index c68d268da160eeba01ea28a281bfb215e3533da3..d5dbc5f75d448ed4474cd8b74dfb5d0b5298db73 100644 (file)
 
 
 
-/* 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 */