6.1.1. bug

Beta Testing discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
Zork
Posts: 2
Joined: 13 Jan 2016 11:49
Location: Russia

6.1.1. bug

#1 Post by Zork » 13 Jan 2016 20:07

Привет разработчикам 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.
Attachments
Bug2.PNG
Bug2.PNG (30.57 KiB) Viewed 2858 times
Bug1.PNG
Bug1.PNG (28.13 KiB) Viewed 2858 times
Power_button.zip
(44.74 KiB) Downloaded 144 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: 6.1.1. bug

#2 Post by filip » 15 Jan 2016 13:03

Hi,

Why would you declare the variables as RX, since the RX space is used for the compiler's internal purposes only ?

Regards,
Filip.

Zork
Posts: 2
Joined: 13 Jan 2016 11:49
Location: Russia

Re: 6.1.1. bug

#3 Post by Zork » 15 Jan 2016 14:54

Для экономии памяти программы.
Переменная "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.

Post Reply

Return to “mikroPascal PRO for AVR Beta Testing”