If you read about my comment... Petit Computer is pretty much an older version of smilebasic. For the dsi, and is on the eShop for 8 bucks.Well, I'm not here to offend anyone, nor I know every bit of the 3DS, but let's get real, this is starting to turn cringey
First, you would need to ROP your way out of the sandbox (most possibly by overwriting the built-in BASIC functions), and this would ONLY give us ARM11 USERLAND code execution.
Second, even though for a VERY weird reason SmileBasic requires (and has) pxi:dev, that doesn't always mean ARM9 code execution and downgrading! iirc the last ARM9 code execution exploit was patched after 9.2
I know this was harsh, but get real, people!
Now to what I got:
The code won't run (not surprising)
But this is still something someone more knowledgeable than me should look into.