Advertisement
fastman92

GTA SA SCM: NOP

Nov 15th, 2011
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.52 KB | None | 0 0
  1. :NOP
  2. {
  3.  Description:
  4.     Writes as many 0x90 at specified adress as number in second parameter
  5.  Type: PROC
  6.  
  7.  Parameters:
  8.    Passed:
  9.      0@ - adress
  10.      1@ - number of bytes
  11.  
  12.    Result:
  13.      none
  14.  
  15.  Example:                                                                                                  
  16.   0AB1: call_scm_func @NOP 2 adress 0x53C45D number_of_bytes 5
  17. }  
  18.    
  19.     for 2@ = 1 to 1@
  20.     0A8C: write_memory 0@ size 1 value 0x90 virtual_protect true
  21.     Inc(0@)
  22.     end
  23.    
  24. 0AB2: ret 0
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement