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:
@@ -16,11 +16,8 @@ int main(void)
|
||||
printf("clocks per second: %d\n", CLOCKS_PER_SEC);
|
||||
printf("current clock: %ld\n", clock());
|
||||
|
||||
#ifdef __ATARI__
|
||||
/* Atari DOS 2.x clears the screen after program termination, so wait... */
|
||||
printf("hit <return> to exit...");
|
||||
cgetc();
|
||||
#endif
|
||||
printf("\n");
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -31,10 +31,8 @@ int main(void) {
|
||||
test(-40, -3);
|
||||
if (t)
|
||||
printf("\nThe div() function made a wrong result!\n");
|
||||
#ifdef __ATARI__
|
||||
/* Atari DOS 2 clears the screen after program-termination, so wait. */
|
||||
|
||||
printf("\nTap a key, to exit. ");
|
||||
getchar();
|
||||
#endif
|
||||
return (int)t;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -18,7 +18,7 @@ static const unsigned char small_bar[8] = {
|
||||
' ', 0xa5, 0xb4, 0xb5, 0xa1, 0xb6, 0xaa, 0xa7
|
||||
};
|
||||
|
||||
#elif defined(__ATARI__)
|
||||
#elif defined(__ATARI__) || defined(__ATARIXL__)
|
||||
#endif
|
||||
|
||||
/* Screen co-ordinates for the progress meter */
|
||||
@@ -39,7 +39,7 @@ static void ProgressMeter (unsigned Val)
|
||||
revers (revers_bar[Val]);
|
||||
cputc (small_bar[Val]);
|
||||
|
||||
#elif defined(__ATARI__)
|
||||
#elif defined(__ATARI__) || defined(__ATARIXL__)
|
||||
#endif
|
||||
|
||||
revers (0);
|
||||
@@ -162,12 +162,8 @@ Done:
|
||||
" %u.%03u seconds.\n", Days, Hours, Minu, Sec, Milli);
|
||||
#endif
|
||||
|
||||
#ifdef __ATARI__
|
||||
if (_dos_type != SPARTADOS && _dos_type != OSADOS) {
|
||||
cprintf ("\rTap a key, to exit. ");
|
||||
cgetc();
|
||||
}
|
||||
#endif
|
||||
cprintf ("\rTap a key, to exit. ");
|
||||
cgetc();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#ifdef __ATARI__
|
||||
#include <atari.h>
|
||||
#include <conio.h>
|
||||
#endif
|
||||
|
||||
static int do_test(const char *s1, const char *s2, size_t n)
|
||||
{
|
||||
@@ -70,11 +67,6 @@ int main(void)
|
||||
else
|
||||
printf("OK (%d)\n", ret);
|
||||
|
||||
#ifdef __ATARI__
|
||||
if (_dos_type != 1) {
|
||||
cgetc();
|
||||
}
|
||||
#endif
|
||||
|
||||
cgetc();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user