View Single Post
Old 12.11.2005, 23:09   #29
StaticVoid
Архивный участник
 
Join Date: Oct 2005
Posts: 18
Default

Quote:
Originally Posted by kvoxi
Quote:
Originally Posted by dinesat4
More tutorial plz
what to do this code?

push_const 111
push_const 222
push_reg_sp
push_reg_sp
push_reg_sp
sub
add
fetch_i
is that a real example? the above code makes some operations with the stack pointer so that you can get the value 111 on top of 222 since after the execution the stack looks like :

111
222
111

but you can have the same result using :
push_const 111
push_const 222
push_reg_sp
push_const 1
sub
fetch_i

There is a more powerfull way of manipulating the stack that i will present it in the next update of the tutorial, as soon as i find some time.
StaticVoid is offline