예제 #1
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def stor_s_alt(self, amx):
     offs = amx._getparam_p()
     addr = amx.FRM + offs
     val = cell(amx.ALT)
     amx._writeheap(addr, val)
     # Keep our Python stack list updated
     amx._stack_set(addr, val)
예제 #2
0
 def stor_s_alt(self, amx):
     offs = amx._getparam_p()
     addr = amx.FRM + offs
     val = cell(amx.ALT)
     amx._writeheap(addr, val)
     # Keep our Python stack list updated
     amx._stack_set(addr, val)
예제 #3
0
 def fill(self, amx):
     # TODO: verify addresses
     offs = amx._getparam()
     i = amx.ALT
     while offs >= sizeof(cell):
         amx._writeheap(i, cell(amx.PRI))
         i += sizeof(cell)
         offs -= sizeof(cell)
예제 #4
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def fill(self, amx):
     # TODO: verify addresses
     offs = amx._getparam()
     i = amx.ALT
     while offs >= sizeof(cell):
         amx._writeheap(i, cell(amx.PRI))
         i += sizeof(cell)
         offs -= sizeof(cell)
예제 #5
0
 def sref_s_pri(self, amx):
     offs = amx._getparam()
     offs = amx._getdatacell(amx.FRM + offs)
     amx._writeheap(offs, cell(amx.PRI))
예제 #6
0
 def stor_alt(self, amx):
     offs = amx._getparam()
     amx._writeheap(offs, cell(amx.ALT))
예제 #7
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def stor_alt(self, amx):
     offs = amx._getparam()
     amx._writeheap(offs, cell(amx.ALT))
예제 #8
0
 def dec_s(self, amx):
     offs = amx._getparam_p()
     addr = amx.FRM + offs
     val = cell(amx._getheapcell(addr) - 1)
     amx._writeheap(addr, val)
     amx._stack_set(addr, val)
예제 #9
0
 def zero_s(self, amx):
     offs = amx._getparam()
     amx._writeheap(amx.FRM + offs, cell(0))
예제 #10
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def dec_s(self, amx):
     offs = amx._getparam_p()
     addr = amx.FRM + offs
     val = cell(amx._getheapcell(addr) - 1)
     amx._writeheap(addr, val)
     amx._stack_set(addr, val)
예제 #11
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def dec(self, amx):
     offs = cast_value(cell, amx._getparam())
     val = amx._getheapcell(offs)
     amx._writeheap(cell(val - 1))
예제 #12
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def zero_s(self, amx):
     offs = amx._getparam()
     amx._writeheap(amx.FRM + offs, cell(0))
예제 #13
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def stor_i(self, amx):
     # TODO: verify address
     amx._writeheap(amx.ALT, cell(amx.PRI))
예제 #14
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def sref_s_alt(self, amx):
     offs = amx._getparam()
     offs = amx._getdatacell(amx.FRM + offs)
     amx._writeheap(offs, cell(amx.ALT))
예제 #15
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def sref_s_pri(self, amx):
     offs = amx._getparam()
     offs = amx._getdatacell(amx.FRM + offs)
     amx._writeheap(offs, cell(amx.PRI))
예제 #16
0
 def sref_s_alt(self, amx):
     offs = amx._getparam()
     offs = amx._getdatacell(amx.FRM + offs)
     amx._writeheap(offs, cell(amx.ALT))
예제 #17
0
 def stor_i(self, amx):
     # TODO: verify address
     amx._writeheap(amx.ALT, cell(amx.PRI))
예제 #18
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def dec_i(self, amx):
     offs = cast_value(cell, amx.PRI)
     val = amx._getheapcell(offs)
     amx._writeheap(offs, cell(val - 1))
예제 #19
0
 def dec(self, amx):
     offs = cast_value(cell, amx._getparam())
     val = amx._getheapcell(offs)
     amx._writeheap(cell(val - 1))
예제 #20
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def const_s(self, amx):
     offs = amx._getparam()
     val = amx._getparam()
     amx._writeheap(amx.FRM + offs, cell(val))
예제 #21
0
 def dec_i(self, amx):
     offs = cast_value(cell, amx.PRI)
     val = amx._getheapcell(offs)
     amx._writeheap(offs, cell(val - 1))
예제 #22
0
 def stor_pri(self, amx):
     offs = amx._getparam()
     amx._writeheap(offs, cell(amx.PRI))
예제 #23
0
 def const_s(self, amx):
     offs = amx._getparam()
     val = amx._getparam()
     amx._writeheap(amx.FRM + offs, cell(val))
예제 #24
0
파일: pawn.py 프로젝트: jaredballou/pysmx
 def stor_pri(self, amx):
     offs = amx._getparam()
     amx._writeheap(offs, cell(amx.PRI))