1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-23 23:17:45 +00:00

Introduced target 'atarixl'.

The target 'atarixl' is to be used for Atari XL (and better) machines.
It will disable the OS ROM and enable the Shadow RAM available on
those machine.

Note: This commit is only the inital step towards for this goal that just
replicates the target 'atari' as a starting point!
This commit is contained in:
Oliver Schmidt
2013-05-28 21:56:37 +02:00
parent 2e8a65bda4
commit 98c47d1877
19 changed files with 138 additions and 35 deletions
+5 -4
View File
@@ -24,7 +24,8 @@
extern int getsp(void); /* is provided in getsp.s */
#ifdef __ATARI__ /* Atari's fd indirection table */
/* Atari's fd indirection table */
#if defined(__ATARI__) || defined(__ATARIXL__)
extern char __fd_index[];
struct fd_t {
char usage;
@@ -33,7 +34,7 @@ struct fd_t {
char flag;
};
extern struct fd_t __fd_table[];
#endif /* #ifdef __ATARI__ */
#endif
int main(int argc,char **argv)
{
@@ -73,7 +74,7 @@ int main(int argc,char **argv)
return(0);
}
printf("open success -- handle = $%x, sp = %d\n",fd,csp);
#ifdef __ATARI__
#if defined(__ATARI__) || defined(__ATARIXL__)
printf("fd_index:\n ");
for (i=0; i<12; i++) printf("%02X ",__fd_index[i]);
printf("\nfd_table:\n");
@@ -83,7 +84,7 @@ int main(int argc,char **argv)
__fd_table[i].iocb,
__fd_table[i].dev);
}
#endif /* #ifdef __ATARI__ */
#endif
lr = read(fd,buf,16); /* read first 16 bytes */
csp = getsp();
if (lr == -1) {