Ignore:
Timestamp:
Sep 8, 2000, 8:07:52 PM (25 years ago)
Author:
sandervl
Message:

exception changes, implemented enumresourcelanguages + put back some old code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptutil.asm

    r4189 r4224  
    1 ; $Id: exceptutil.asm,v 1.10 2000-09-04 18:24:42 sandervl Exp $
     1; $Id: exceptutil.asm,v 1.11 2000-09-08 18:07:49 sandervl Exp $
    22
    33;/*
     
    5353
    5454_RtlUnwind@16 proc near
     55        ; fudge return address
     56        push eax
     57        mov  eax, dword ptr [esp+12]
     58        mov  dword ptr [esp+4], eax
     59        pop  eax
     60
    5561        push dword ptr [esp+4]  ;PWINEXCEPTION_FRAME  pEndFrame
    5662        push dword ptr [esp+12] ;LPVOID unusedEip
     
    135141        PUBLIC getEAX
    136142        PUBLIC getEBX
    137 getEAX  proc near
    138         ret
    139 getEAX  endp
    140 
    141 getEBX  proc near
     143getEAX  proc near
     144        ret
     145getEAX  endp
     146
     147getEBX  proc near
    142148        mov  eax, ebx
    143149        ret
    144 getEBX  endp
     150getEBX  endp
    145151
    146152        PUBLIC GetFS
    147 GetFS   proc near
    148         mov     eax, fs
    149         ret
    150 GetFS   endp
     153GetFS   proc near
     154        mov     eax, fs
     155        ret
     156GetFS   endp
    151157
    152158        PUBLIC SetFS
    153 SetFS   proc near
    154         mov     eax, [esp+4]
    155         mov     fs, eax
    156         ret
    157 SetFS   endp
     159SetFS   proc near
     160        mov     eax, [esp+4]
     161        mov     fs, eax
     162        ret
     163SetFS   endp
    158164
    159165        PUBLIC getCS
    160 getCS   proc near
    161         mov     eax, cs
    162         ret
    163 getCS   endp
     166getCS   proc near
     167        mov     eax, cs
     168        ret
     169getCS   endp
    164170
    165171        PUBLIC getDS
    166 getDS   proc near
    167         mov     eax, ds
    168         ret
    169 getDS   endp
    170 
    171         PUBLIC SetReturnFS
     172getDS   proc near
     173        mov     eax, ds
     174        ret
     175getDS   endp
     176
     177        PUBLIC SetReturnFS
    172178SetReturnFS proc near
    173         push    fs
    174         mov     eax, [esp+8]
    175         mov     fs, eax
    176         pop     eax
    177         ret
     179        push    fs
     180        mov     eax, [esp+8]
     181        mov     fs, eax
     182        pop     eax
     183        ret
    178184SetReturnFS endp
    179185
    180186        PUBLIC getSS
    181 getSS   proc near
    182         mov     ax, ss
    183         ret
    184 getSS   endp
     187getSS   proc near
     188        mov     ax, ss
     189        ret
     190getSS   endp
    185191
    186192        PUBLIC getES
    187 getES   proc near
    188         mov     eax, es
    189         ret
    190 getES   endp
     193getES   proc near
     194        mov     eax, es
     195        ret
     196getES   endp
    191197
    192198        PUBLIC getGS
    193 getGS   proc near
    194         mov     eax, gs
    195         ret
    196 getGS   endp
    197 
    198         PUBLIC getESP
     199getGS   proc near
     200        mov     eax, gs
     201        ret
     202getGS   endp
     203
     204        PUBLIC getESP
    199205getESP  proc near
    200         mov     eax, esp
    201         ret
    202 getESP  endp
    203 
    204         PUBLIC RestoreOS2FS
     206        mov     eax, esp
     207        ret
     208getESP  endp
     209
     210        PUBLIC RestoreOS2FS
    205211RestoreOS2FS proc near
    206         push    150bh
    207         mov     ax, fs
    208         pop     fs
    209         ret
     212        push    150bh
     213        mov     ax, fs
     214        pop     fs
     215        ret
    210216RestoreOS2FS endp
    211217
    212         PUBLIC _Mul32x32to64
     218        PUBLIC _Mul32x32to64
    213219_Mul32x32to64 proc near
    214         push    ebp
    215         mov     ebp, esp
    216         push    eax
    217         push    edx
    218         push    edi
    219 
    220         mov     edi, [ebp+8]    ;64 bits result
    221         mov     eax, [ebp+12]   ;op1
    222         mov     edx, [ebp+16]   ;op2
    223         mul     edx
    224         mov     [edi], eax
    225         mov     [edi+4], edx
    226 
    227         pop     edi
    228         pop     edx
    229         pop     eax
    230         pop     ebp
    231         ret
     220        push    ebp
     221        mov     ebp, esp
     222        push    eax
     223        push    edx
     224        push    edi
     225
     226        mov     edi, [ebp+8]    ;64 bits result
     227        mov     eax, [ebp+12]   ;op1
     228        mov     edx, [ebp+16]   ;op2
     229        mul     edx
     230        mov     [edi], eax
     231        mov     [edi+4], edx
     232
     233        pop     edi
     234        pop     edx
     235        pop     eax
     236        pop     ebp
     237        ret
    232238_Mul32x32to64 endp
    233239
Note: See TracChangeset for help on using the changeset viewer.