Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

some modern UEFI/CSM leaves CR0.WP set at boot (Developers)

posted by Japheth Homepage, Germany (South), 24.01.2024, 07:23

> Curious as to why you put a redundant ".286" at the beginning and then
> almost immediately change it to ".386p" (which admittedly is necessary).

because a coding of

    .386p
    .model tiny


would actually init a "32-bit tiny" memory model ( the one used by djgpp ), which definitely is wrong and would cause a crash. So this slightly "complicated" way used in ResWP.asm seems quite appropriate to me.

> Why .EXE instead of .COM?

Because i like MZ binaries more.

> Why "mov ah,4Ch int 21h" when (IIRC) MASM v5 supports ".exit"?

Because I don't like ".exit".

> Wouldn't "ResetWP.exe" be more descriptive?

Definitely!

:-D

---
MS-DOS forever!

 

Complete thread:

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