"Fossies" - the Fresh Open Source Software Archive

Member "alec64-1.13/src/int10.S" (27 Apr 1996, 1261 Bytes) of package /linux/misc/old/alec64-1.13.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PowerPC Assembler source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /* This is file INT10.S */
    2 #ifdef __GO32__ /* { */
    3 
    4     .file   "int10.s"
    5 /*  .version    "02.01" */
    6     .data
    7     .comm   _int10_bp_save_area,4
    8     .text
    9     .align  4
   10 /*  .def    _int10; .val    _int10; .scl    2;  .type   044;    .endef  */
   11     .globl  _int10
   12 
   13 _int10:
   14     pushl   %ebp
   15     movl    %esp,%ebp
   16     movl    %ebp,_int10_bp_save_area
   17     pushl   %ebx
   18     pushl   %ecx
   19     pushl   %edx
   20     pushl   %esi
   21     pushl   %edi
   22 
   23     movl    8(%ebp),%eax
   24 
   25     pushl   (%eax)      /* EAX */
   26     pushl   4(%eax)     /* EBX */
   27     pushl   8(%eax)     /* ECX */
   28     pushl   12(%eax)    /* EDX */
   29     pushl   16(%eax)    /* ESI */
   30     pushl   20(%eax)    /* EDI */
   31     pushl   24(%eax)    /* EBP */
   32 /*  pushl   28(%eax)*/  /* ES */
   33 /*  popw    %es*/
   34     popl    %ebp
   35     popl    %edi
   36     popl    %esi
   37     popl    %edx
   38     popl    %ecx
   39     popl    %ebx
   40     popl    %eax
   41     int $0x10
   42     pushl   %eax
   43     pushl   %ebx
   44     pushl   %ecx
   45     pushl   %edx
   46     pushl   %esi
   47     pushl   %edi
   48     pushl   %ebp
   49 /*  pushw   %es */
   50     movl    _int10_bp_save_area,%ebp
   51     movl    8(%ebp),%eax
   52 
   53 /*  popl    28(%eax)*/  /* ES */
   54 /*  andl    $0xffff,28(%eax) */
   55     popl    24(%eax)    /* EBP */
   56     popl    20(%eax)    /* EDI */
   57     popl    16(%eax)    /* ESI */
   58     popl    12(%eax)    /* EDX */
   59     popl    8(%eax)     /* ECX */
   60     popl    4(%eax)     /* EBX */
   61     popl    (%eax)      /* EAX */
   62     mov 28(%eax),%eax   /* return flags */
   63 
   64     popl    %edi
   65     popl    %esi
   66     popl    %edx
   67     popl    %ecx
   68     popl    %ebx
   69     leave   
   70     ret 
   71 
   72     .align  4
   73 /*  .def    _int10; .val    .;  .scl    -1; .endef  */
   74     .data
   75     .text
   76 #endif  /* } __GO32__ */