flat assembler
Message board for the users of flat assembler.

Index > DOS > EDR-DOS WIP 2009-03-28 GetFileInformationByHandle

Author
Thread Post new topic Reply to topic
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 30 Mar 2009, 01:41
.

Yesterday King Udo released a new "WIP" version of EDR-DOS Smile

The most important new feature is support of the GetFileInformationByHandle
- INT $21 /AX=$71A6 function that no other DOS has so far.

http://drdosprojects.de
http://www.ctyme.com/intr/rb-3216.htm
http://msdn.microsoft.com/en-us/library/aa364952(loband).aspx
http://msdn.microsoft.com/en-us/library/aa363788(VS.85,loband).aspx
http://msdn.macrosoft.com/en-us/library/aa364952(loband).aspx
http://msdn.macrosoft.com/en-us/library/aa363788(VS.85,loband).aspx

heh, 2 middle links ^^^ are broken, guess why Laughing

The returned attribute value seems to be buggy, though.

Code:
  les     bx,es:[bx]          ; go to next driver in chain
        jmp     get_colour10
get_colour30:
   mov     ax,es:24[bx]                ; get current COLOUR parameters
     mov     dl,es:26[bx]
get_colour40:
       mov     bx,4[bp]                ; and store them in variables
       mov     ds:[bx],ax
      mov     ds:2[bx],dl
     pop     es
  pop     bp
  ret
    


Code:
      push    bx
  push    ax
  db      0fh,31h                 ; RDTSC
     db      66h                     ; MOV ECX,lasttsc+4
 mov     cx,lasttsc+4
        db      66h                     ; MOV EBX,lasttsc
   mov     bx,lasttsc
  db      66h                     ; SUB EAX,EBX
       sub     ax,bx
       db      66h                     ; SBB EDX,ECX
       sbb     dx,cx
       cmp     tscsel,0
    je      diff_tsc10
  db      66h
 push    dx
  db      66h
 push    ax
  mov     dx,tscsel
   call    output_hex
    


And his assembler ^^^ seems a bit historical Laughing I'll upload some "related" FASM code later.

@Revolution: thanks, fixed Smile


Last edited by DOS386 on 30 Mar 2009, 01:58; edited 4 times in total
Post 30 Mar 2009, 01:41
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.