hschumann2/TempleOS-Source-Code
0847
1 2/*TempleOS has a feature that allows3access to bytes and words of larger4ints.5 6See U64i union.7 8The versions with "i" are internal data types.9Use "I64" instead of "U64i" and you10will have access to subbytes and11subwords.12 13Unfortunately, byte access causes the14compiler to not use a reg for the15variable.16 17See ::/Demo/Lectures/FixedPoint.HC.18*/19 20I64 q=0xFEDCBA9876543210,q1;21 22"q\t\t=%016X\n",q;23q1=q.i16[2];24"q.i16[2]\t=%016X\n",q1;25q1=q.u8[5];26"q.u8[5]\t\t=%016X\n",q1;27q1=q.i32[1].u8[2];28"q.i32[1].u8[2]\t=%016X\n",q1;29q1=q.i32[0].i8[1];30"q.i32[0].i8[1]\t=%016X\n",q1;31 