mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
renamed fd_table, fd_index to __fd_table and __fd_index (C naming)
git-svn-id: svn://svn.cc65.org/cc65/trunk@122 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
9468b05231
commit
695f260449
@ -14,15 +14,15 @@
|
||||
.export newfd
|
||||
.export getfd
|
||||
|
||||
.export _fd_table,_fd_index ; for test purposes
|
||||
.export ___fd_table,___fd_index ; for test(debug purposes only
|
||||
|
||||
.data
|
||||
MAX_FD_INDEX = 12
|
||||
_fd_index:
|
||||
___fd_index:
|
||||
fd_index: ; fd number is index into this table, entry's value specifies the fd_table entry
|
||||
.res MAX_FD_INDEX,$ff
|
||||
|
||||
_fd_table:
|
||||
___fd_table:
|
||||
fd_table: ; each entry represents an open iocb
|
||||
.byte 0,0,'E',0 ; system console, app starts with opened iocb #0 for E:
|
||||
.byte 0,$ff,0,0
|
||||
|
@ -24,14 +24,14 @@
|
||||
extern int getsp(void); /* is provided in getsp.s */
|
||||
|
||||
#ifdef __ATARI__ /* Atari's fd indirection table */
|
||||
extern char fd_index[];
|
||||
extern char __fd_index[];
|
||||
struct fd_t {
|
||||
char usage;
|
||||
char iocb;
|
||||
char dev;
|
||||
char flag;
|
||||
};
|
||||
extern struct fd_t fd_table[];
|
||||
extern struct fd_t __fd_table[];
|
||||
#endif /* #ifdef __ATARI__ */
|
||||
|
||||
int main(int argc,char **argv)
|
||||
@ -74,13 +74,13 @@ int main(int argc,char **argv)
|
||||
printf("open success -- handle = $%x, sp = %d\n",fd,csp);
|
||||
#ifdef __ATARI__
|
||||
printf("fd_index:\n ");
|
||||
for (i=0; i<12; i++) printf("%02X ",fd_index[i]);
|
||||
for (i=0; i<12; i++) printf("%02X ",__fd_index[i]);
|
||||
printf("\nfd_table:\n");
|
||||
for (i=0; i<8; i++) {
|
||||
printf(" usa: %d, iocb: %02X, dev: %02X\n",
|
||||
fd_table[i].usage,
|
||||
fd_table[i].iocb,
|
||||
fd_table[i].dev);
|
||||
__fd_table[i].usage,
|
||||
__fd_table[i].iocb,
|
||||
__fd_table[i].dev);
|
||||
}
|
||||
#endif /* #ifdef __ATARI__ */
|
||||
lr = read(fd,buf,16); /* read first 16 bytes */
|
||||
|
Loading…
Reference in New Issue
Block a user