コード例 #1
0
        public Long68k ToLong(Word68k other, bool direction = false)
        {
            byte[] bytes = new byte[4];

            if (direction)
            {
                byte[] b = other.GetBytes();
                bytes[0] = b[0];
                bytes[1] = b[1];

                b        = GetBytes();
                bytes[2] = b[0];
                bytes[3] = b[1];
            }
            else
            {
                byte[] b = GetBytes();
                bytes[0] = b[0];
                bytes[1] = b[1];

                b        = other.GetBytes();
                bytes[2] = b[0];
                bytes[3] = b[1];
            }

            return(new Long68k(BitConverter.ToUInt32(bytes, 0)));
        }
コード例 #2
0
 public Word68k(Word68k w)
 {
     this.w = w.w;
 }