forum-msg-id-134919-edit

Original date:2020-05-22 18:42:18 Edited by: Icy_Viking Subject: Re: Basic Statistics with OpenEuphoria

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  
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu