Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
Japheth

Homepage

Germany (South),
22.05.2026, 08:02
 

Small bug in XCDROM32 that may also be found in UIDE/UDVD2 (Developers)

Hello,

recently a small bug was fixed in xcdrom32 that affected game "Tempest 2000":

https://github.com/Baron-von-Riedesel/Jemm/issues/44

The fix is rather trivial:


ReqMCS:
    call DoIOCmd        ;Issue "Test Unit Ready" command.
    mov edi,[AudAP]     ;Get media-change flag from table.
    mov al,[edi-1]
    mov [esi+1],al      ;Return media-change flag to user.
;--- v1.6: set audio status busy flag
;    ret
    jmp ReadAudioSt


Since xcdrom32 is based on one of J.R. Ellis' drivers (~ 20 years ago), those drivers may also benefit from a fix.

---
MS-DOS forever!

mceric

Germany,
22.05.2026, 09:30

@ Japheth

Small bug in XCDROM32 that may also be found in UIDE/UDVD2

> Hello,
>
> recently a small bug was fixed in xcdrom32 that affected game "Tempest
> 2000":
>
> https://github.com/Baron-von-Riedesel/Jemm/issues/44
>
> The fix is rather trivial:
>
>
> ReqMCS:
> call DoIOCmd        ;Issue "Test Unit Ready" command.
> mov edi,[AudAP]     ;Get media-change flag from table.
> mov al,[edi-1]
> mov [esi+1],al      ;Return media-change flag to user.
> ;--- v1.6: set audio status busy flag
> ;    ret
> jmp ReadAudioSt
>

>
> Since xcdrom32 is based on one of J.R. Ellis' drivers (~ 20 years ago),
> those drivers may also benefit from a fix.

The latest FreeDOS package gathered by Mercury13 in 2021 indeed needs the fix:


;
; CD/DVD IOCTL Input "Media-Change Status" handler.
;
ReqMCS: call    DoCmd           ;Issue "Test Unit Ready" command.
        mov     di,[bx+AudAP-@] ;Get media-change flag from table.
        mov     al,cs:[di-1]
        mov     es:[si+1],al    ;Return media-change flag to user.
        ret                     ;Exit.

---
FreeDOS / DOSEMU2 / ...

Back to the board
Thread view  Mix view  Order
23399 Postings in 2207 Threads, 406 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum