Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw out IF DOS5 statements? #27

Closed
boeckmann opened this issue Jan 16, 2024 · 2 comments
Closed

Throw out IF DOS5 statements? #27

boeckmann opened this issue Jan 16, 2024 · 2 comments
Labels
question Further information is requested

Comments

@boeckmann
Copy link
Collaborator

My impression is that the kernel does not work anyway when compiling without the DOS5 definition. Something like the following looks wrong when compiling without DOS5 definition. At least it is not obvious to me that the high byte of DDSC_NFATRECS contains zero if the low byte gets assigned only AL.

edrdos/drdos/funcs.fdo

Lines 2047 to 2055 in e85d927

if DOS5
mov es:DDSC_NFATRECS[di],ax ; set FAT size
else
mov es:DDSC_NFATRECS[di],al ; set FAT size
endif
; mov es:word ptr DDSC_BFATRECS[di],ax ; FAT size (32-bit)
; mov es:word ptr DDSC_BFATRECS+2[di],0
mov ax,es:word ptr DDSC_NFATRECS[di]

@boeckmann boeckmann added the question Further information is requested label Jan 16, 2024
@boeckmann
Copy link
Collaborator Author

DOS5 definition is removed from the current DRBIO source. I will also remove it from DRDOS when porting it to JWasm.

@boeckmann
Copy link
Collaborator Author

All DOS5 ifdefs are gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant