Category:SFG BASIC
This page was last modified 13:51, 7 June 2022 by Mars2000you. Based on work by Grauw and Msxholder.

Description

SFG BASIC is a BASIC extension that is only available on the Yamaha FM Music Macro cartridges:

  • International product codes: YRM-104 and YRM-504 (also a limited version of the YRM-501 cartridge)
  • Japanese product codes: YRM-11 and YRM-51

They need to be used on a computer with at least 32kB RAM, equipped with a Yamaha FM Sound Synthesizer Unit, generally the SFG-01 or SFG-05 module, more rarely the SFK-01 module.

Instructions

SFG BASIC adds 36 or 37 new instructions, according the used version.

Note: CALL can be replaced by the character underscore (_). A space is not required after this character. See CALL for more info. Besides, only the first four characters of each SFG BASIC instruction are interpreted by the computer.

(*) = only with YRM-104 - (**) = only with YRM-504

Instruction Generation Short instruction
CALL CANCEL MSX1 _CANC
CALL CLDVOICE MSX1 _CLDV
CALL END (**) MSX1 _END
CALL ERASE MSX1 _ERAS
CALL EVENT MSX1 _EVEN
CALL INIT MSX1 _INIT
CALL INMKEY MSX1 _INMK
CALL INST MSX1 _INST
CALL LENGTH MSX1 _LENG
CALL LFO MSX1 _LFO
CALL LOOK (*) MSX1 _LOOK
CALL MCKS MSX1 _MCKS
CALL MODINST MSX1 _MODI
CALL ON EVENT...GOSUB MSX1 _ON EVEN...GOSUB
CALL PATTERN MSX1 _PATT
CALL PHRASE MSX1 _PHRA
CALL PLAY MSX1 _PLAY
CALL RCANCEL MSX1 _RCAN
CALL REPORT MSX1 _REPO
CALL RHYTHM MSX1 _RHYT
CALL RSTOP MSX1 _RSTO
CALL SAY MSX1 _SAY
CALL SELPATTERN MSX1 _SELP
CALL SELVOICE MSX1 _SELV
CALL SOUND MSX1 _SOUN
CALL STANDBY MSX1 _STAN
CALL START MSX1 _STAR
CALL STOP MSX1 _STOP
CALL SYNCOUT (*) MSX1 _SYNC
CALL TEMPO MSX1 _TEMP
CALL TIMER MSX1 _TIME
CALL TRACK MSX1 _TRAC
CALL TRANSPOSE MSX1 _TRAN
CALL TSTOP MSX1 _TSTO
CALL TUNE MSX1 _TUNE
CALL USERHYTHM MSX1 _USER
CALL VLIST MSX1 _VLIS
CALL WAIT MSX1 _WAIT