コード例 #1
0
        override protected void ExecuteInternal(IExecutionContext context)
        {
            // AC set if lower nibble of h was zero prior to dec
            ushort offset = BinaryHelper.Combine(context.Registers.L, context.Registers.H);

            context.Memory[offset] = ExtraData1;
        }
コード例 #2
0
        override protected void ExecuteInternal(IExecutionContext context)
        {
            byte first  = context.Stack.Pop();
            byte second = context.Stack.Pop();

            ushort destination = BinaryHelper.Combine(first, second);

            context.Memory.MoveTo(destination);
        }
コード例 #3
0
        override protected void ExecuteInternal(IExecutionContext context)
        {
            ushort offset = BinaryHelper.Combine(context.Registers.E, context.Registers.D);

            context.Registers.A = context.Memory[offset];
        }