2013-07-05 21:37:13 -07:00
|
|
|
/*
|
2013-06-11 00:08:15 -07:00
|
|
|
* Apple // emulator for Linux: Common definitions
|
|
|
|
*
|
|
|
|
* Copyright 1994 Alexander Jean-Claude Bottema
|
|
|
|
* Copyright 1995 Stephen Lee
|
|
|
|
* Copyright 1997, 1998 Aaron Culliney
|
|
|
|
* Copyright 1998, 1999, 2000 Michael Deutschmann
|
|
|
|
*
|
|
|
|
* This software package is subject to the GNU General Public License
|
2013-07-05 21:37:13 -07:00
|
|
|
* version 2 or later (your choice) as published by the Free Software
|
2013-06-11 00:08:15 -07:00
|
|
|
* Foundation.
|
|
|
|
*
|
2013-07-05 21:37:13 -07:00
|
|
|
* THERE ARE NO WARRANTIES WHATSOEVER.
|
2013-06-11 00:08:15 -07:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef A2_H
|
|
|
|
#define A2_H
|
|
|
|
|
2013-07-05 21:37:13 -07:00
|
|
|
#define BANK2 0x10000
|
2013-06-11 00:08:15 -07:00
|
|
|
|
|
|
|
/* Code alignment */
|
|
|
|
#if defined(__i486__) || defined(__i586__)
|
2013-07-05 21:37:13 -07:00
|
|
|
#define ALIGN .balign 16
|
2013-06-11 00:08:15 -07:00
|
|
|
#else /* !(__i486__ || __i586__) */
|
2013-07-05 21:37:13 -07:00
|
|
|
#define ALIGN .balign 4
|
2013-06-11 00:08:15 -07:00
|
|
|
#endif /* !(__i486__ || __i586__) */
|
|
|
|
|
|
|
|
/* Symbol naming issues */
|
|
|
|
#ifdef NO_UNDERSCORES
|
2013-07-05 21:37:13 -07:00
|
|
|
#define SN(foo) foo
|
|
|
|
#define E(foo) .globl foo; ALIGN; foo##:
|
2013-06-11 00:08:15 -07:00
|
|
|
#else /* !NO_UNDERSCORES */
|
2013-07-05 21:37:13 -07:00
|
|
|
#define SN(foo) _##foo
|
|
|
|
#define E(foo) .globl _##foo; ALIGN; _##foo##:
|
2013-06-11 00:08:15 -07:00
|
|
|
#endif /* !NO_UNDERSCORES */
|
|
|
|
|
2013-07-05 21:37:13 -07:00
|
|
|
#endif /* A2_H */
|