home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / ST_NEWS / STN_01_C.MSA / DATA_DOC14 < prev    next >
Text File  |  1994-03-14  |  4KB  |  89 lines

  1. üGEMDOS FUNCTIONS Çby Richard Karsmakers
  2.  
  3. Originally  published in üST NEWSÇ Volume 1 Issue  4,  launched  on 
  4. September 7th, 1986.
  5.  
  6. The  GEMDOS functions in the Atari ST look very much  like  MS-DOS 
  7. routines.  Especially the UNIX functions of MS-DOS can be found in 
  8. GEMDOS, whereas the hardware-specific functions - ofcourse - won't 
  9. be found.
  10. All GEMDOS functions can be supplied with parameters on the  stack 
  11. and  can be called from assembler using the TRAP #1  command.  You 
  12. must  know that D0 and A0 will be changed at any time if  you  use 
  13. GEMDOS functions. The return value will be found in D0, whereas A0 
  14. contains  the pointer to the stack-address on which  the  function 
  15. number is located - most of the time, anyway.
  16. You  can  read  most specific things about  the  GEMDOS  functions 
  17. (detailed  decriptions) can be found in the book "ST Intern"  from 
  18. Data Becker (Merowingestraße 30,  4000 Düsseldorf,  West-Germany). 
  19. The  authors are Klaus Gerits,  Lothar English and Rolf  Brückmann 
  20. (ST Intern,  ISBN 3-89011-119-X, price about DM 80,-), but here we 
  21. have just included a small summary of GEMDOS  functions,  together 
  22. with a very brief description.
  23. Number:     Name:          Brief description:
  24. ------------------------------------------------------------------
  25.  
  26.  00         TERM           Terminate program
  27.  01         CONIN          Get character from console
  28.  02         CONOUT         Output character to screen
  29.  03         AUXILIARY
  30.               INPUT        Get character from RS232
  31.  04         AUXILIARY
  32.               OUTPUT       Send character to RS232
  33.  05         PRINTER OUTPUT Send character to Centronics
  34.  06         RAWCONIO       Get character and send it to screen
  35.  07         DIRECT CON IN
  36.               WITHOUT ECHO Get character from console
  37.  08         CON IN WITHOUT
  38.               ECHO         Get character from console
  39.  09         PRINT LINE     Output several characters to screen
  40.  0A         READLINE       Input several characters from console
  41.  0B         CONSTAT        Check if keyboard buffer is filled
  42.  0E         SETDRV         Define current drive
  43.  10         CONOUT START   Give console status
  44.  11         PRTOUT STAT    Give Centronics status
  45.  12         AUXIN STAT     Check for character availability on
  46.                              RS232
  47.  13         AUXOUT STAT    Check if RS232 is able to send or not
  48.  19         CURRENT DISK   What is the current drive?
  49.  1A         SET DISK
  50.               TRANSFER
  51.               ADDRESS      Set buffer for disk operations
  52.  20         SUPER          Toggle supervisor mode
  53.  2A         GET DATE       Get the system date
  54.  2B         SET DATE       Set the system date
  55.  2C         GET TIME       Get the system time
  56.  2D         SET TIME       Set the system time
  57.  2F         GET DTA        Get buffer for disk operations
  58.  30         GET VERSION
  59.               NUMBER       Get the TOS version number
  60.  31         KEEP PROCESS   Terminate program. Read the exact
  61.                              difference with 01 in ST Intern
  62.  36         GET DISK FREE
  63.               SPACE        Get free space on disk
  64.  39         MKDIR          Create a folder
  65.  3A         RMDIR          Remove (delete) a folder
  66.  3B         CHDIR          Change current directory (folder)
  67.  3C         CREATE         Create file
  68.  3D         OPEN           Open file
  69.  3E         CLOSE          Close file
  70.  3F         READ           Read file
  71.  40         WRITE          Write file
  72.  41         UNLINK         Delete file
  73.  42         LSEEK          Move filepointer
  74.  43         CHMOD          Change mode (file attributes)
  75.  45         DUP            Get handlenumber
  76.  46         FORCE          Manipulate handlenumber
  77.  47         GETDIR         Set current directory
  78.  48         MALLOC         Allocate memory
  79.  49         MFREE          Free memory that was allocated
  80.  4A         SETBLOCK       Allocate specific memory
  81.  4B         EXEC           Load a program
  82.  4C         TERM           Terminate program
  83.  4E         SFIRST         Check for filename
  84.  4F         SNEXT          Check for filename continued
  85.  56         RENAME         Rename a file
  86.  57         GSDTOF         Check date/time
  87.  
  88.  
  89.