[an error occurred while processing this directive]
|
#pragma warn- // this will prevent warnings
char get_high_byte(int a)
{
//a = get_high_byte(Addr);
// input in DataStack
// LSB a <-- y
// MSB a <-- y +1
// Output R30 for char
#asm
ldd r30,y+1 ;R30=MSB a
#endasm
}
//****************************************
char get_low_byte(int a)
{
#asm
ld r30,y ;R30=LSB a
#endasm
}
E-mail: info@telesys.ru