mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-10 23:29:43 +00:00
Move x86-specific assembly alignment macros and add __i686__
This commit is contained in:
parent
fa03fb3d48
commit
b10593796c
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user