Привет разработчикам mP!
Мой проект не работает после того как добавил операнд "rx" в описании переменных для экономии памяти программы Tiny13.
В процедуре Press_PButton значения регистра r3 заменяются другими значениями.
--------------- translate.google.ru -----------------------
Hi developers mP!
My project does not work after adding the operand "rx" in the description of the variables to save memory Tiny13.
The procedure Press_PButton value of register r3 replaced by other values.
6.1.1. bug
6.1.1. bug
- Attachments
-
- Bug2.PNG (30.57 KiB) Viewed 2857 times
-
- Bug1.PNG (28.13 KiB) Viewed 2857 times
-
- Power_button.zip
- (44.74 KiB) Downloaded 144 times
Re: 6.1.1. bug
Hi,
Why would you declare the variables as RX, since the RX space is used for the compiler's internal purposes only ?
Regards,
Filip.
Why would you declare the variables as RX, since the RX space is used for the compiler's internal purposes only ?
Regards,
Filip.
Re: 6.1.1. bug
Для экономии памяти программы.
Переменная "i" в процедуре "Press_PButton" должна была сохраниться в SRAM при отсутствии свободных регистров Rx.
----------- translate.google.ru ------------
To save the program memory.
The variable "i" in process "Press Button" had to be saved in the SRAM in the absence of available registers Rx.
Excerpt from the Help:
Note: In most of the cases, there will be enough space left for the user variables in the Rx space. However, since compiler uses Rx space for storing temporary variables, it might happen that user variables will be stored in the internal data SRAM, when writing complex programs.
Переменная "i" в процедуре "Press_PButton" должна была сохраниться в SRAM при отсутствии свободных регистров Rx.
----------- translate.google.ru ------------
To save the program memory.
The variable "i" in process "Press Button" had to be saved in the SRAM in the absence of available registers Rx.
Excerpt from the Help:
Note: In most of the cases, there will be enough space left for the user variables in the Rx space. However, since compiler uses Rx space for storing temporary variables, it might happen that user variables will be stored in the internal data SRAM, when writing complex programs.