- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
#define atfl_calc_opcode_(op) \
((op) == (ATFL_OP_PAGE_STORE|ATFL_BUF1|ATFL_PAGE_ERASE) ? 0x83 : (\
(op) == (ATFL_OP_PAGE_STORE|ATFL_BUF2|ATFL_PAGE_ERASE) ? 0x86 : (\
(op) == (ATFL_OP_PAGE_STORE|ATFL_BUF1|ATFL_PAGE_NO_ERASE) ? 0x88 : (\
(op) == (ATFL_OP_PAGE_STORE|ATFL_BUF2|ATFL_PAGE_NO_ERASE) ? 0x89 : (\
(op) == (ATFL_OP_PAGE_LOAD|ATFL_BUF1) ? 0x53 : (\
(op) == (ATFL_OP_PAGE_LOAD|ATFL_BUF2) ? 0x55 : (\
(op) == (ATFL_OP_BUF_READ|ATFL_BUF1) ? 0xD4 : (\
(op) == (ATFL_OP_BUF_READ|ATFL_BUF2) ? 0xD6 : (\
(op) == (ATFL_OP_BUF_WRITE|ATFL_BUF1) ? 0x84 : (\
(op) == (ATFL_OP_BUF_WRITE|ATFL_BUF2) ? 0x87 : (\
(op) == (ATFL_OP_PAGE_ERASE) ? 0x81 : (\
(op) == (ATFL_OP_PAGE_ERASE|ATFL_PAGE_ERASE) ? 0x81 : (\
0)))))))))))))
guest 07.05.2010 19:25 # 0
dmzlj.livejournal.com 07.05.2010 19:26 # 0
guest 07.05.2010 19:26 # −2
dmzlj.livejournal.com 07.05.2010 19:33 # 0
guest 07.05.2010 19:50 # +1
guest 07.05.2010 19:27 # 0
dmzlj.livejournal.com 07.05.2010 19:32 # 0
guest 08.05.2010 15:55 # +2
guest 08.05.2010 16:03 # 0
haskell 08.05.2010 17:24 # 0
Говногость 08.05.2010 17:42 # 0
haskell 08.05.2010 17:48 # 0
guest 07.05.2010 19:45 # 0
dmzlj.livejournal.com 07.05.2010 19:59 # 0
TarasB 07.05.2010 23:13 # +3
TarasB 07.05.2010 23:16 # 0
Думаю, от нехер делать.
Или это писалось для какого-то хитрого аппарата, на котором делать вызов функции почему-то западло.
dmzlj.livejournal.com 08.05.2010 04:35 # 0
guest 08.05.2010 05:27 # 0
guest 08.05.2010 05:27 # 0
самопочин
cfdev 08.05.2010 17:43 # +1