You are reading a single comment by @Alex and its replies. Click here to read the full conversation.
  • I tried this and it says =undefined after uploading it so I assume it was succesful.

    More verbose check:

    var success = true;
    for (var i=48;i<64;i++) {
      console.log("checking:",i);
      for (var j=0; j < 1024; j+=4) {
        var dataPointer = i * 1024 + j;
        poke32(0x20000000+dataPointer, 0xAAAAAAAA);
        var v = peek32(0x20000000+dataPointer);
        if (v != 0xAAAAAAAA) {
          console.log("Got "+v+" not 0xAAAAAAAA");
          success = false; 
        }
        poke32(0x20000000+dataPointer, 0x55555555);
        var v = peek32(0x20000000+dataPointer);
        if (v != 0x55555555) {
          console.log("Got "+v+" not 0x55555555");
          success = false; 
        }
      }
    }
    
    if (success == true) {
      console.log("check was successful");
    }
    
About

Avatar for Alex @Alex started