Beispiel #1
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)
Beispiel #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)
Beispiel #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)
Beispiel #4
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)
Beispiel #5
0
 def sref_s_pri(self, amx):
     offs = amx._getparam()
     offs = amx._getdatacell(amx.FRM + offs)
     amx._writeheap(offs, cell(amx.PRI))
Beispiel #6
0
 def stor_alt(self, amx):
     offs = amx._getparam()
     amx._writeheap(offs, cell(amx.ALT))
Beispiel #7
0
 def stor_alt(self, amx):
     offs = amx._getparam()
     amx._writeheap(offs, cell(amx.ALT))
Beispiel #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)
Beispiel #9
0
 def zero_s(self, amx):
     offs = amx._getparam()
     amx._writeheap(amx.FRM + offs, cell(0))
Beispiel #10
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)
Beispiel #11
0
 def dec(self, amx):
     offs = cast_value(cell, amx._getparam())
     val = amx._getheapcell(offs)
     amx._writeheap(cell(val - 1))
Beispiel #12
0
 def zero_s(self, amx):
     offs = amx._getparam()
     amx._writeheap(amx.FRM + offs, cell(0))
Beispiel #13
0
 def stor_i(self, amx):
     # TODO: verify address
     amx._writeheap(amx.ALT, cell(amx.PRI))
Beispiel #14
0
 def sref_s_alt(self, amx):
     offs = amx._getparam()
     offs = amx._getdatacell(amx.FRM + offs)
     amx._writeheap(offs, cell(amx.ALT))
Beispiel #15
0
 def sref_s_pri(self, amx):
     offs = amx._getparam()
     offs = amx._getdatacell(amx.FRM + offs)
     amx._writeheap(offs, cell(amx.PRI))
Beispiel #16
0
 def sref_s_alt(self, amx):
     offs = amx._getparam()
     offs = amx._getdatacell(amx.FRM + offs)
     amx._writeheap(offs, cell(amx.ALT))
Beispiel #17
0
 def stor_i(self, amx):
     # TODO: verify address
     amx._writeheap(amx.ALT, cell(amx.PRI))
Beispiel #18
0
 def dec_i(self, amx):
     offs = cast_value(cell, amx.PRI)
     val = amx._getheapcell(offs)
     amx._writeheap(offs, cell(val - 1))
Beispiel #19
0
 def dec(self, amx):
     offs = cast_value(cell, amx._getparam())
     val = amx._getheapcell(offs)
     amx._writeheap(cell(val - 1))
Beispiel #20
0
 def const_s(self, amx):
     offs = amx._getparam()
     val = amx._getparam()
     amx._writeheap(amx.FRM + offs, cell(val))
Beispiel #21
0
 def dec_i(self, amx):
     offs = cast_value(cell, amx.PRI)
     val = amx._getheapcell(offs)
     amx._writeheap(offs, cell(val - 1))
Beispiel #22
0
 def stor_pri(self, amx):
     offs = amx._getparam()
     amx._writeheap(offs, cell(amx.PRI))
Beispiel #23
0
 def const_s(self, amx):
     offs = amx._getparam()
     val = amx._getparam()
     amx._writeheap(amx.FRM + offs, cell(val))
Beispiel #24
0
 def stor_pri(self, amx):
     offs = amx._getparam()
     amx._writeheap(offs, cell(amx.PRI))