Ignore:
Timestamp:
Feb 18, 2000, 8:27:31 PM (26 years ago)
Author:
bird
Message:

Unfinised stuff! Don't work. Don't even compile!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/misc/buffer.asm

    r2819 r2823  
    1 ; $Id: buffer.asm,v 1.1 2000-02-18 14:55:08 bird Exp $
     1; $Id: buffer.asm,v 1.2 2000-02-18 19:27:31 bird Exp $
    22;
    33; Simple resident buffer for use when overloading tkExecPgm.
     
    1919    public AcquireBuffer
    2020    public ReleaseBuffer
    21     public cbBuffer
     21    public QueryBufferSegmentOffset
     22;    public cbBuffer
    2223
    2324
     
    2526;   Global Variables
    2627;
    27 DATA32 segment
     28DATA16 SEGMENT
     29;DATA32 SEGMENT
     30achBuffer   db 4096 dup(?)
     31DATA16 ENDS
     32;DATA32 ENDS
     33
     34;DATA16 SEGMENT
     35DATA32 SEGMENT
    2836fBuffer     db 0            ;Access "semaphore"
    29 cbBuffer    db 4096
    30 achBuffer   db 4096 dup(?)
    31 DATA32 ends
     37DATA32 ENDS
    3238
    3339
     
    5359AcquireBuffer PROC NEAR
    5460    push    ds
    55     mov     ax, FLAT
    56     mov     ds, ax
     61    ;mov     ax,
     62;    push    FLAT
     63    pop     ds
     64    ;mov     ds, ax
    5765    ASSUME  DS:FLAT
    5866    mov     al, 0
     
    8997    ASSUME  DS:NOTHING
    9098    push    ds
    91     mov     ax, FLAT
    92     mov     ds, ax
     99;    mov     ax, DATA16
     100;    mov     ds, ax
     101;    push    FLAT
     102    pop     ds
    93103    ASSUME  DS:FLAT
    94104    cmp     eax, offset achBuffer
     
    122132    ASSUME  DS:NOTHING
    123133    push    ds
    124     mov     ax, FLAT
    125     mov     ds, ax
     134;    mov     ax, DATA16
     135;    mov     ds, ax
     136;    push    FLAT
     137    pop     ds
    126138    ASSUME  DS:FLAT
    127139    cmp     eax, offset achBuffer
     
    152164; Jumps back to GetBufferOffset32
    153165GetBufferSegmentOffset16:
    154     ASSUME CS:CODE16, DS:FLAT
     166    ASSUME CS:CODE16, DS:NOTHING
    155167    mov     ax, seg achBuffer
    156168    mov     es, ax
Note: See TracChangeset for help on using the changeset viewer.