Ignore:
Timestamp:
Mar 27, 2003, 3:13:11 PM (22 years ago)
Author:
sandervl
Message:

memory map updates

File:
1 edited

Legend:

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

    r8415 r9946  
    1 ; $Id: asmutil.asm,v 1.2 2002-05-15 10:57:44 sandervl Exp $
     1; $Id: asmutil.asm,v 1.3 2003-03-27 14:13:10 sandervl Exp $
    22
    33;/*
     
    2020        assume  cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT
    2121
     22extrn   Dos32TIB:abs
     23
    2224CODE32          SEGMENT DWORD PUBLIC USE32 'CODE'
    2325
     
    99101        PUBLIC RestoreOS2FS
    100102RestoreOS2FS proc near
    101         push    150bh
     103        push    Dos32TIB
    102104        mov     ax, fs
    103105        pop     fs
     
    189191
    190192
     193        align 4h
     194
     195        public _set_bit
     196;void CDECL set_bit(int bitnr, void *addr);
     197_set_bit proc near
     198    push esi
     199
     200    mov  esi, [esp+12]
     201    mov  eax, [esp+8]
     202
     203    bts  dword ptr [esi], eax
     204
     205    pop  esi
     206    ret
     207_set_bit endp
     208
     209        align 4h
     210
     211        public _test_bit
     212;int CDECL test_bit(int bitnr, void *addr);
     213_test_bit proc near
     214    push esi
     215
     216    mov  esi, [esp+12]
     217    mov  eax, [esp+8]
     218
     219    bt   dword ptr [esi], eax
     220    setc al
     221    movzx eax, al
     222
     223    pop  esi
     224    ret
     225_test_bit endp
     226
     227        public _clear_bit
     228;void CDECL clear_bit(int bitnr, void *addr);
     229_clear_bit proc near
     230    push esi
     231
     232    mov  esi, [esp+12]
     233    mov  eax, [esp+8]
     234
     235    btr  dword ptr [esi], eax
     236
     237    pop  esi
     238    ret
     239_clear_bit endp
     240
    191241CODE32          ENDS
    192242
Note: See TracChangeset for help on using the changeset viewer.