Move x86-specific assembly alignment macros and add __i686__

This commit is contained in:
Aaron Culliney 2014-06-07 13:02:22 -07:00
parent fa03fb3d48
commit b10593796c
2 changed files with 8 additions and 6 deletions

View File

@ -21,12 +21,6 @@
#include "config.h"
#endif
/* Code alignment */
#if defined(__i486__) || defined(__i586__)
#define ALIGN .balign 16
#else /* !(__i486__ || __i586__) */
#define ALIGN .balign 4
#endif /* !(__i486__ || __i586__) */
/* Symbol naming issues */
#ifdef NO_UNDERSCORES

View File

@ -11,6 +11,14 @@
#include "cpu.h"
#if defined(__LP64__)
# error TBD
#elif defined(__i486__) || defined(__i586__) || defined(__i686__)
# define ALIGN .balign 16
#else
# define ALIGN .balign 4
#endif
#define X_Reg %bl /* 6502 X register in %bl */
#define Y_Reg %bh /* 6502 Y register in %bh */
#define A_Reg %cl /* 6502 A register in %cl */