re: Re: LBAcache devel BUGFIX and improved release

Eric Auer <[email protected]> Mon, 11 Nov 2002 12:33:32 +0100 (MET)
Newsgroups gmane.os.freedos.devel
Message-ID <[email protected]>
Too late, Arkady. The DOS way was not hard to do either:

        push ax
        push bx
        mov ah,0x62     ; *** get current PSP segment
        int 0x21        ; *** probably equal CS of our comcache part
        mov [cs:oldpsp],bx      ; *** save it
                pop bx  ; *** restore the PSP address of "our victim"
                push bx
        mov ah,0x50     ; *** SET your process ID / PSP address
                        ; *** ... to segment BX
        int 0x21        ; *** "be the instance that is resized"
        pop bx
        pop ax

... change memory consumption of "our victim" ... then: ...

        push ax
        push bx
        mov bx,[cs:oldpsp]      ; *** back to original value
        mov ah,0x50     ; *** SET your process ID / PSP address
                        ; *** ... to segment BX
        int 0x21        ; *** "be yourself" again (for int 21.4c...)
        pop bx
        pop ax

Already implemented in the current lbacache-11nov02.zip

PS: France has a free day, too, but Germany has not. So everybody
that does have a free day should feel free to implement things like
XECHO (kernel, FreeCOM), SCREEN (kernel, FreeCOM), or for example
fix the annoying FIND findfirst bug that makes it not accept drive
or directory names in the file argument... Have fun ;-).

PPS: Or contribute clever "newbin" and "findbin" for my binsel.asm
in LBAcache, but please do not change anything else in binsel.asm ...

Cheers, Eric.