Advertisement
BigETI

Memory access test

Jul 15th, 2013
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. From http://pastebin.com/mW6GT6mq
  2.  
  3. Getting the pointer of the current AMX:
  4. [17:58:38] AMX pointer: 0x1432658
  5.  
  6. Allocating memory:
  7. [17:58:38] Allocated memory is located at 0x1F02EA0
  8.  
  9. Testing for values independently for each struct item:
  10. [17:58:38] MEM_EX::get_val_i(foo->TEST_1) = 10 | MEM_EX::get_val_i(foo->TEST_2) = 9 | MEM_EX::get_val_i(foo->TEST_3) = 8 | MEM_EX::get_val_i(foo->TEST_4) = 7
  11.  
  12. Testing MEM::foreach:
  13. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA0 | value = 10 )
  14. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA4 | value = 9 )
  15. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA8 | value = 8 )
  16. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EAC | value = 7 )
  17.  
  18. Sorting blocks of memory and testing with MEM::foreach:
  19. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA0 | value = 7 )
  20. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA4 | value = 8 )
  21. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA8 | value = 9 )
  22. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EAC | value = 10 )
  23.  
  24. Reverse sorting blocks of memory and testing with MEM::foreach again:
  25. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA0 | value = 10 )
  26. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA4 | value = 9 )
  27. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA8 | value = 8 )
  28. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EAC | value = 7 )
  29.  
  30. Randomly mixing blocks of memory and testing with MEM::foreach again:
  31. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA0 | value = 7 )
  32. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA4 | value = 9 )
  33. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EA8 | value = 8 )
  34. [17:58:38] MEM_EX::foreach test: ( address = 0x1F02EAC | value = 10 )
  35.  
  36. Testing a PAWN sided variable for its address and return its value by using its address:
  37. [17:58:38] "test_var" address: 0x1477518 | "test_var" value by address: 1337
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement