home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / diskutil / tapebios / tapebind.cpp < prev    next >
Encoding:
Text File  |  1993-08-06  |  706 b   |  41 lines

  1. |
  2. | tapebind.cpp definitions for the library. 
  3. | With these it is now compatible with 16 bit integers
  4. |
  5. #ifdef __MSHORT__
  6.     .globl    _tapebios
  7.  
  8.     .text
  9.     .even
  10.  
  11. _tapebios:
  12.     lea    sp@(20), a0    | 4 bytes for ret addr + 16 for parameters
  13.     moveml    d2/a2, sp@-    | save registers that TOS clobbers
  14.     movel    a0@-, sp@-    
  15.     movel    a0@-, sp@-
  16.     movel    a0@-, sp@-
  17.     movel    a0@-, sp@-
  18.     trap    #10
  19.     addl    #16, sp
  20.     moveml    sp@+, d2/a2
  21.     rts
  22. #else
  23.     .globl    _trap_10_wwll
  24.  
  25. _trap_10_wwll:
  26.     moveml    d2/a2, sp@-
  27.     movel    sp@(28), a1 
  28.     movel    sp@(24), a0
  29.     movel    sp@(20), d1
  30.     movel    sp@(16), d0
  31.     movel    a1, sp@-
  32.     movel    a0, sp@-
  33.     movew    d1, sp@-
  34.     movew    d0, sp@-
  35.     trap    #10
  36.     addl    #12,sp
  37.     moveml    sp@+, d2/a2
  38.     rts
  39. #endif
  40.     
  41.