Цитата(AndreyS @ Sep 4 2012, 11:58)

Вот только как заставить Кеил для процедур сохранить используемые регистры в стек?
Вероятно, никак, поскольку:
Цитата
Assembler functions may change all register contents in the currently selected register bank as well as the contents of the ACC, B, DPTR, and PSW registers. When invoking a C function from assembly, assume that these registers are destroyed by the C function that is called.