"FUNNY.PRG"

All aspects of programming on the Commander X16.
Post Reply
marsSel56
Posts: 1
Joined: Sun Jun 25, 2023 6:23 pm

File Download "FUNNY.PRG"

Post by marsSel56 »

this file is funny to run also run it at your own risk.File is funny until yout list it contance :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: have fun!
Attachments
FUNNY.PRG
(53 Bytes) Downloaded 139 times
TomXP411
Posts: 1804
Joined: Tue May 19, 2020 8:49 pm

Re: "FUNNY.PRG"

Post by TomXP411 »

Since someone reported this as malicious (it's not), here is what's going on:

10 POKE $9F34,40
20 PRINT "LOL"
30 LOAD "ROM.BIN"
40 RUN

$9F34 is the register that sets the number of rows VERA displays. Normally, you'd set this to a value that matches the vertical scale and/or the border. So if you set this to display 30 rows, you would also set the vertical scale to 2x.

However, the OP did not do that. Instead, it shows an interesting effect in the emulator when running this program.

As to loading ROM.BIN... I'm not sure why the OP put that in there. Since you normally would not have a ROM.BIN in the root of your SD card, this would cause FILE NOT FOUND error, and the program would crash to the READY prompt.
Post Reply