]> git.sur5r.net Git - cc65/blobdiff - include/6502.h
New strtoimax and strtoumax standard functions as aliases for strtol/strtoul.
[cc65] / include / 6502.h
index 6b8b5632c6189150143ab1f6851d315074bc4b2b..99641b21e137d1f22233cdd36c8f1b38f305e508 100644 (file)
@@ -49,9 +49,9 @@ unsigned char getcpu (void);
 
 
 /* Macros for CPU instructions */
-#define        BRK()   __asm__ ("\tbrk")
-#define CLI()  __asm__ ("\tcli")
-#define SEI()  __asm__ ("\tsei")
+#define        BRK()   __asm__ ("brk")
+#define CLI()  __asm__ ("cli")
+#define SEI()  __asm__ ("sei")
 
 
 
@@ -65,6 +65,7 @@ struct regs {
 };
 
 /* Defines for the flags in the regs structure */
+#ifdef __OBSOLETE_FLAGS__
 #define F_NEG          0x80    /* N flag */
 #define F_OVF          0x40    /* V flag */
 #define F_BRK          0x10    /* B flag */
@@ -72,11 +73,21 @@ struct regs {
 #define F_IEN                  0x04    /* I flag */
 #define F_ZERO         0x02    /* Z flag */
 #define F_CARRY                0x01    /* C flag */
+#endif
+
+/* Defines for the flags in the regs structure */
+#define F6502_N                0x80    /* N flag */
+#define F6502_V                0x40    /* V flag */
+#define F6502_B        0x10    /* B flag */
+#define F6502_D        0x08    /* D flag */
+#define F6502_I        0x04    /* I flag */
+#define F6502_Z        0x02    /* Z flag */
+#define F6502_C         0x01   /* C flag */
 
 /* Function to call any machine language subroutine. All registers in the
  * regs structure are passed into the routine and the results are passed
- * out. Some of the flags are ignored on input. The called routine must
- * end with an RTS.
+ * out. The B flag is ignored on input. The called routine must end with
+ * an RTS.
  */
 void __fastcall__ _sys (struct regs* r);