Beispiel #1
0
        public void CfMemberPointerSelector()
        {
            Identifier ds = new Identifier("ds", PrimitiveType.SegmentSelector, null);
            Identifier bx = new Identifier("bx", PrimitiveType.Word16, null);
            Expression e  = new MemberPointerSelector(PrimitiveType.Byte, ds, bx);

            e.Accept(cf);
            Assert.AreEqual("ds.*bx", sw.ToString());
        }
Beispiel #2
0
        public void CfSegmentedAccess()
        {
            var es = new Identifier("es", PrimitiveType.SegmentSelector, RegisterStorage.None);
            var ds = new Identifier("ds", PrimitiveType.SegmentSelector, RegisterStorage.None);
            var bx = new Identifier("bx", PrimitiveType.SegmentSelector, RegisterStorage.None);
            var e  = new MemberPointerSelector(
                PrimitiveType.Word16,
                m.Deref(es),
                new MemberPointerSelector(
                    PrimitiveType.Word16,
                    m.Deref(ds),
                    bx));

            e.Accept(cf);
            Assert.AreEqual("es->*(ds->*bx)", sw.ToString());
        }
 public void CfSegmentedAccess()
 {
     var es = new Identifier("es", PrimitiveType.SegmentSelector, RegisterStorage.None);
     var ds = new Identifier("ds", PrimitiveType.SegmentSelector, RegisterStorage.None);
     var bx = new Identifier("bx", PrimitiveType.SegmentSelector, RegisterStorage.None);
     var e =  new MemberPointerSelector(
         PrimitiveType.Word16,
         m.Deref(es),
         new MemberPointerSelector(
             PrimitiveType.Word16,
             m.Deref(ds),
             bx));
     e.Accept(cf);
     Assert.AreEqual("es->*(ds->*bx)", sw.ToString());
 }
		public void CfMemberPointerSelector()
		{
			Identifier ds = new Identifier("ds", PrimitiveType.SegmentSelector, null);
			Identifier bx = new Identifier("bx", PrimitiveType.Word16, null);
			Expression e = new MemberPointerSelector(PrimitiveType.Byte, ds, bx);
			e.Accept(cf);
			Assert.AreEqual("ds.*bx", sw.ToString());
		}