Re: Basic Statistics with OpenEuphoria
- Posted by Icy_Viking May 22, 2020
- 3274 views
rneu said...
This is very helpful.
Can you also give an example where memory allocation is also involved.
Thanks.
Here I have an example of memory allocation from my EuSDL2 SDL2 Wrapper.
Stores one or more double words, starting at a memory location. -From the Manual on poke4 function. https://openeuphoria.org/docs/std_machine.html#_5697_poke4
procedure calc_rect(atom rect,integer sx,integer sy,integer tx,integer ty) poke4(rect,sx) poke4(rect+4,sy) poke4(rect+8,tx) poke4(rect+12,ty) end procedure atom drect = allocate(10) --allocates bytes in memory calc_rect(drect,10,10,100,100) --A SDL_RECT is x,y,w,h