Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

another bug in doslfn (Announce)

posted by Japheth Homepage, Germany (South), 20.03.2022, 08:10

> Please provide the test case, in my testing the code was never executed. I
> did set CL, but I don't know why EAX would be wrong, since it comes
> directly from CurSector.

Just in case the error is hard to find, there's a simple workaround:


@@l1_:  jns     @@l1            ;(clears bit 3 of DL, tests sign of DH)

;--- since the directory's size has been increased already when this code
;--- is reached, it might be sufficient to just restart the command???
        jmp make_free_dirent_space
if 0
        call    Calc_Next_Cluster       ;there was no room for the longname
        jc      mfde_retx               ; so need to point to the new cluster
        call    _set_cur
        mov     bx,[Sektorp]
        jmp     @@l1_           ;Calc_Next_Cluster will clear sign
endif


It works, AFAICS, and since this situation occurs not too often ... I'm no purist :-P

---
MS-DOS forever!

 

Complete thread:

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