Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

User exception handler in C (Developers)

posted by Rugxulo Homepage, Usono, 23.08.2020, 17:32

> No. SMSW is correct.
>
> 1) LMSW is privilegged, SMSW not

Those date from 286 era, no? So before CR0 was made user-accessible.

> 2) SMSW AX is MOV AX,CR0 and LMSW AX is MOV CR0,AX

Your "mov eax,0" confused me. Apparently you're clearing the top bits of the return value in advance, right?

FPC started as a 386 compiler for DOS (GO32V1), so this is probably some relic of that history. In FPC's case, I don't think CR0 is very useful overall, at least not directly.

 

Complete thread:

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