예제 #1
0
        // "If registers D and E contain 38H and FFH respectively,
        // the instruction: INX D will cause register D to contain 39H and register E to contain OOH."
        private int INX(IWordOperandStrategy rp)
        {
            var i = rp.Read(this);

            i++;
            rp.Write(this, i);
            return(5);
        }
 private int LXI(IWordOperandStrategy rp, byte lo, byte hi)
 {
     rp.Write(this, (hi << 8) | lo);
     return(10);
 }