First post, by superfury
Usually the 80386 or compatible is used to supply paging, but can the 80286 'simulate' paging as well? So simply mark an operating-system defined 'paging' table in the OS's memory, then when a #NP(Not Present Segment) is fired, check that 'paging' table. If the entry isn't in there, it's an actual #NP exception, thus handle it as such. If the entry exists(valid 'page'), load the data from the harddisk and mark the segment descriptor as present(and point it to the allocated RAM block)?
Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io