home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / internal / m68k / m68k-emul / forbid.s < prev    next >
Encoding:
Text File  |  1996-07-16  |  345 b   |  14 lines

  1.     TDNestCnt   =    0x127
  2.  
  3.     .globl    _Exec_Forbid
  4. _Exec_Forbid:
  5.     | increment nesting count and return
  6.     | this seems to be a very unspectacular call and a good job for a C
  7.     | routine - but nothing in C can guarantee to preserve all registers
  8.     | and to increment atomically - so better use this simple assembly
  9.     | routine
  10.     addqb    #1,a6@(TDNestCnt)
  11.     rts
  12.  
  13.  
  14.