LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

MAINCNT counts while you're on the Top Menu.

Root / SmileBASIC Bug Reports / [.]

snail_Created:
No idea if this is actually a bug or a conscious design choice, but the MAINCNT timer isn't frozen while you're in the menu. One would assume that being on the menu completely suspends the BASIC VM, but in this case it doesn't. Running from the viewer appears to reset the VM as well, but it must not; MAINCNT is still the same as it would be.

From the doc "Frame count since SmileBASIC was launched" So it's referring to the interpreter launch, not the script. Looks deliberate.

Yeah I'm pretty sure it's not a VM. The SmileBASIC language is just an interface that manipulates the game's internal code directly. Even the menu resources are stored as GRP files (512x512 16bpp RGBA5551)...

Yeah, that makes sense I guess. I use the term VM loosely. It's sort-of simulating a BASIC machine, isn't it? It consists of 2MB code memory per slot, a 128KB stack and a 8MB heap. The code is compiled on runtime and executed by an interpreter. So in this sense, it's kinda like a virtual machine.