Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

RDISK test - small bugfix. (Announce)

posted by Japheth Homepage, Germany (South), 19.05.2009, 12:22
(edited by Japheth on 19.05.2009, 12:41)

I tested RDISK with XMGR and HimemX. While it worked ok in Qemu, I encountered severe problems on a real machine. Usually DOS is telling that it cannot write to the ram-disk's directory.

Using WDE I saw that the ram-disk's root directory contained all 0xFFs, which isn't the proper value (should be 0x00).

I checked the RDISK.ASM source. It's supposed to clear 160 kB of memory in an XMS memory block, but actually clears 80 kB only. This modification might fix it (at least it runs on that particular machine now):

;       mov     cx,320          ;Get 256-byte block count in 160K.
        mov     cx,320*2        ;Get 256-byte block count in 160K.
        mov     si,(XMSBlk-@)   ;Point to our XMS move block.
        mov     [si+8],cs       ;Set move source-address segment.
I_ClrX: push    cx              ;Zero next 256-byte block of XMS.

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 417 users online (0 registered, 417 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum