/* CRC16 ------------------------------------- This macro transmits a message from the send dialog and appends two bytes with CRC at the end */ var CRCValue; main() { var i,s; for(i = 0; i < get_message_count(); i=i+1) { sleep(get_delay_before_message()); inner_cycle(i); CRCValue = not(CRCValue); putx(CRCValue&0xFF); putx(shr(CRCValue,8)&0xFF); flush(); } } inner_cycle(i) { var j,t; CRCValue=0xFFFF; for(j=0; j