If you want to program in BASIC for the Master System you need to take a look at SMSPOWER site. Plus there is a lot more there for the Master System. Even at TICALC site and MSX and ZX sites you can find information on how to. But if you are starting to program for the first time you should read first how the machine (SMS) works and then try to explore BASIC for it. Or try simpler machines like the Atari 2600 or the Dreamcast VMU. I recomend the VMU.