[an error occurred while processing this directive]
|
69 unsigned char CreateByte (void)
70 {
71 DBYTE db;
72 db.by = 0;
73 db.b7 = 1;
74 db.b0 = (PORTB&1) != 0;
\ __nearfunc unsigned char CreateByte();
\ CreateByte:
\ 00000000 9BC0 SBIS 0x18,0x00
\ 00000002 C002 RJMP ??CreateByte_0
\ 00000004 E001 LDI R16,1
\ 00000006 C001 RJMP ??CreateByte_1
\ ??CreateByte_0:
\ 00000008 E000 LDI R16,0
\ ??CreateByte_1:
\ 0000000A 7001 ANDI R16,0x01
\ 0000000C 6800 ORI R16,0x80
75 return db.by;
\ 0000000E 9508 RET
76 }
E-mail: info@telesys.ru