home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / ixemulsrc.lha / ixemul / library / debugstub.c < prev    next >
Text File  |  1996-12-11  |  1KB  |  57 lines

  1. /*
  2.  *  This file is part of ixemul.library for the Amiga.
  3.  *  Copyright (C) 1994 Rafael W. Luebbert
  4.  *
  5.  *  This library is free software; you can redistribute it and/or
  6.  *  modify it under the terms of the GNU Library General Public
  7.  *  License as published by the Free Software Foundation; either
  8.  *  version 2 of the License, or (at your option) any later version.
  9.  *
  10.  *  This library is distributed in the hope that it will be useful,
  11.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  *  Library General Public License for more details.
  14.  *
  15.  *  You should have received a copy of the GNU Library General Public
  16.  *  License along with this library; if not, write to the Free
  17.  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  *  $Id: debugstub.s,v 1.1 1994/06/19 15:09:38 rluebbert Exp $
  20.  *
  21.  *  $Log: debugstub.s,v $
  22. # Revision 1.1  1994/06/19  15:09:38  rluebbert
  23. # Initial revision
  24. #
  25.  */
  26.  
  27. asm("
  28.     .globl    KPutChar
  29.     .globl    KPutFmt
  30.     .globl    _KPrintF
  31.     .globl    KDoFmt
  32.  
  33. KPutChar:
  34.     movel    a6,sp@-
  35.     movel    4:W,a6
  36.     jsr    a6@(-516:W)
  37.     movel    sp@+,a6
  38.     rts
  39.  
  40. KDoFmt:
  41.     movel    a6,sp@-
  42.     movel    4:W,a6
  43.     jsr    a6@(-522:W)
  44.     movel    sp@+,a6
  45.     rts
  46.  
  47. _KPrintF:
  48.     lea    sp@(4),a1
  49.     movel    a1@+,a0
  50. KPutFmt:
  51.     movel    a2,sp@-
  52.     lea    KPutChar,a2
  53.     jbsr    KDoFmt
  54.     movel    sp@+,a2
  55.     rts
  56. ");
  57.