Changeset 717


Ignore:
Timestamp:
Sep 24, 2003, 1:42:11 AM (22 years ago)
Author:
bird
Message:

Fixed thunking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/innidmdll/innidmdllthunks.asm

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r716 r717  
    7070    ASSUME ss:FLAT
    7171
     72    ; DS / ES
     73    push    ds
     74    push    es
     75    mov     ds, edx
     76    mov     es, edx
     77
     78    ; ebp high
     79    mov     edx, esp
     80    mov     dx, bp
     81    mov     ebp, edx
    7282
    7383    ;
     
    7585    ;
    7686    mov     eax, [ebp + 08h]            ; psInitParms
    77     mov     eax, edx
     87    mov     edx, eax
    7888    shr     eax, 3
    7989    mov     ax, dx
     
    8292    add     esp, 04h
    8393
     94    ; ES / DS
     95    pop     es
     96    pop     ds
     97
    8498    ;
    8599    ; Switch the stack back to 16 bit.
    86100    ;
     101    movzx   ebp, bp
    87102    lss     esp, ss:[esp]
    88103    ASSUME ss:NOTHING
     
    93108INITDEMANGLEID_16bit::
    94109
    95     leave
    96     ret
     110    mov     sp, bp
     111    pop     ebp
     112    ret 04h
    97113INITDEMANGLEID endp
    98114
     
    127143    ASSUME ss:FLAT
    128144
     145    ; DS / ES
     146    push    ds
     147    push    es
     148    mov     ds, edx
     149    mov     es, edx
     150
     151    ; ebp high
     152    mov     edx, esp
     153    mov     dx, bp
     154    mov     ebp, edx
     155
    129156
    130157    ;
     
    135162
    136163    mov     eax, [ebp + 0ch]            ; pszPrototype
    137     mov     eax, edx
     164    mov     edx, eax
    138165    shr     eax, 3
    139166    mov     ax, dx
     
    141168
    142169    mov     eax, [ebp + 10h]            ; psMangledName
    143     mov     eax, edx
     170    mov     edx, eax
    144171    shr     eax, 3
    145172    mov     ax, dx
     
    148175    add     esp, 0ch
    149176
     177    ; ES / DS
     178    pop     es
     179    pop     ds
     180
    150181    ;
    151182    ; Switch the stack back to 16 bit.
    152183    ;
     184    movzx   ebp, bp
    153185    lss     esp, ss:[esp]
    154186    ASSUME ss:NOTHING
     
    159191DEMANGLEID_16bit::
    160192
    161     leave
    162     ret
     193    mov     sp, bp
     194    pop     ebp
     195    ret 0ch
    163196DEMANGLEID endp
    164197
Note: See TracChangeset for help on using the changeset viewer.