Last active
September 24, 2016 03:19
-
-
Save toptensoftware/58bbc81d269458f2df44932ca565614c to your computer and use it in GitHub Desktop.
Protected Mode Addressing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Selector | |
{ | |
public byte[] memory; | |
} | |
Selector[] _selectorTable; | |
public byte ReadByte(ushort seg, ushort offset) | |
{ | |
var sel = _selectorTable[seg >> 3]; | |
return sel.memory[offset]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment