User manual
149
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
Prototype
function LoWord(val : longint) : word;
Description The function returns low word of val. The function does not interpret bit patterns of val – it merely
returns 16 bits as found in register.
Parameters:
- val: input value
Parameters
number
Returns Low word of val, bits 15..0.
Requires Nothing.
Example
d := 0x12345678;
tmp := LoWord(d); // Equals 0x5678
LoWord(d) := 0xAAAA; // d equals 0x1234AAAA
Notes None.
Prototype
function HiWord(val : longint) : word;
Description The function returns high word of val. The function does not interpret bit patterns of val – it merely
returns 16 bits as found in register.
Parameters:
- val: input value
Parameters
number
Returns High word of val, bits 31..16.
Requires Nothing.
Example
d := 0x12345678;
tmp := HiWord(d); // Equals 0x1234
HiWord(d) := 0xAAAA; // d equals 0xAAAA5678
Notes None.
LoWord
HiWord