Here's the file in TI Basic - I don't know how to compile it using Classic99. It works by booting the emulator, selecting TI Basic, using the Edit menu's paste feature, and entering RUN after the code pastes in. It would be nice if it's compiled to not have to wait for the paste to happen.
ti99-SAM_basic.txt