+++ title = "LegUp local memory support" author = "Yann Herklotz" tags = [] categories = [] backlinks = ["1b9"] forwardlinks = ["1b9b"] zettelid = "1b9a" +++ LegUp supports local memories in functions by declaring the RAM's once with their initial values. The main problem with this is that if the function is called multiple times, but is using the same RAM underneath to model it, it needs to be reset to the initial state whenever the function is called. Therefore only using the RAM initialisation to set the initial value is not enough, and it therefore has to be initialised everytime the function is called. This is done in LegUp by copying the memory from another RAM over everytime.