? Memory tester ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Memory tester

Submitted
Updated
Author
Shelly
Public Key
REMOVED
Min. Compat.
All
Version
1.0
Rating
3 votes
Description A program which tests SmileBASIC for any irregular memory locations. Changelog: Version 1: Initial release. Version 2: ARYOP implemented to allow for improved performance for people with the Advanced Sound Processing DLC. Version 3.0: Fixed the error caused by the IF statement. Instructions Launch the program, and follow the instructions. If you get a message other than the one telling you not to end the program, please post the values of L% and I% in the comments, since those values will help replicate it, and figure out what is causing the value to be changed.
Categories
Keywords
  • memory
  • tester
  • crash
  • brick
  • luma
9 Comment(s) DFrost DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength an integer is 32 bits and FREEMEM returns the amount of free bytes, so 1 int = 4 FREEMEM. if you CLEAR memory and make an array with a length of FREEMEM/4, you should use all of the memory(if there is no leaks) so basically, you can literally find the amount of leakage by PUSHing an int array until you get an out of memory error.Then just PRINT FREEMEM to get the amount of leaked bytes: [direct] CLEAR [slot 1] DIM MEM%[0] WHILE 1 PUSH MEM%,0 WEND [direct] PRINT FREEMEM BOOM! the amount of leaked bytes. MZ952 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies I think what Shelly was trying to do was find a place in memory where stored values aren't what they ought to be. For example, say you store 124 in A[87021], and then you read A[87021] and it returns something like -460552. RGamesOffical RGamesOffical Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Minecraft Is Awesome! I love Minecraft! Express Yourself Video Games I like to play video games! Hobbies Why the removal? Shelly Shelly It was a useless program. RGamesOffical RGamesOffical Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Minecraft Is Awesome! I love Minecraft! Express Yourself Video Games I like to play video games! Hobbies Just to think that I have the only surviving copy DFrost DFrost Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Execute until it works Out of memory in 0:4 [HOMEBRU]OK ?I% 0 [HOMEBRU]OK ?L% 0 [HOMEBRU]OK that's what I'm getting MZ952 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies The code is missing an ENDIF which gives an error. Edit: for the non-ARYOP version. Edit 2: btw, integers only go up to POW(2,31)-1 Shelly Shelly I fixed both problems, and updated the page. This project would be greatly benefited by anyone with a new3ds and the Advanced Sound Processing DLC, since it would allow for each value to be tested in less than 25 seconds (25 is the amount of time for old 3DS with DLC). Shelly Shelly I just got the Advanced Sound Processing DLC, so I'll be able to release a version for people with DLC very soon.