mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-11-20 02:32:28 +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"
|
#include "config.h"
|
||||||
#endif
|
#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 */
|
/* Symbol naming issues */
|
||||||
#ifdef NO_UNDERSCORES
|
#ifdef NO_UNDERSCORES
|
||||||
|
@ -11,6 +11,14 @@
|
|||||||
|
|
||||||
#include "cpu.h"
|
#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 X_Reg %bl /* 6502 X register in %bl */
|
||||||
#define Y_Reg %bh /* 6502 Y register in %bh */
|
#define Y_Reg %bh /* 6502 Y register in %bh */
|
||||||
#define A_Reg %cl /* 6502 A register in %cl */
|
#define A_Reg %cl /* 6502 A register in %cl */
|
||||||
|
Loading…
Reference in New Issue
Block a user