So let's make a program with what we learned.
ACLS 'Clears the screen
LOCATE 5,5 PRINT "Press A, B, Y, or X to make a sound"
BGMPLAY 0
@LOOP
IF BUTTON() AND #A THEN BEEP 0
IF BUTTON() AND #B THEN BEEP 1
IF BUTTON() AND #Y THEN BEEP 2
IF BUTTON() AND #X THEN BEEP 3
GOTO @LOOP 'Goes back to the label "@Loop"
1そうだね プレイ済み