| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | |
| 20 | #define OMFCMD_NUMcxx . . $ `music/musiclib.h:20:9`! 22 |
| 21 | |
| 22 | #define OMFCMD_STREAMcxx . . $ `music/musiclib.h:22:9`! 0 // associates a symbol with a stream filename |
| 23 | #define OMFCMD_SECTIONcxx . . $ `music/musiclib.h:23:9`! 1 // begins a theme |
| 24 | #define OMFCMD_PLAYcxx . . $ `music/musiclib.h:24:9`! 2 // plays a sample specified through llpt and lplc |
| 25 | #define OMFCMD_ENDSECTIONcxx . . $ `music/musiclib.h:25:9`! 3 // ends a theme |
| 26 | #define OMFCMD_LABELcxx . . $ `music/musiclib.h:26:9`! 4 // defines a label for branching |
| 27 | #define OMFCMD_COMPAREcxx . . $ `music/musiclib.h:27:9`! 5 // compares a register rX to what's loaded via lcmp |
| 28 | #define OMFCMD_LCMPcxx . . $ `music/musiclib.h:28:9`! 6 // loads NUMBER into lcmp |
| 29 | #define OMFCMD_LLPTcxx . . $ `music/musiclib.h:29:9`! 7 // specifies next play will load the sample specified |
| 30 | #define OMFCMD_LPLCcxx . . $ `music/musiclib.h:30:9`! 8 // specifies next play will loop sample n times |
| 31 | #define OMFCMD_INCIcxx . . $ `music/musiclib.h:31:9`! 9 // increments 'I' counter |
| 32 | #define OMFCMD_SETIcxx . . $ `music/musiclib.h:32:9`! 10 // sets 'I' counter |
| 33 | #define OMFCMD_IFIcxx . . $ `music/musiclib.h:33:9`! 11 // if 'I' counter == n then inst1;inst2;...;inst n |
| 34 | #define OMFCMD_REGIONcxx . . $ `music/musiclib.h:34:9`! 12 // specifies a start of a named region |
| 35 | #define OMFCMD_ENDREGIONcxx . . $ `music/musiclib.h:35:9`! 13 // specifies the end of a named region |
| 36 | |
| 37 | #define OMFCMD_BRANCHINGcxx . . $ `music/musiclib.h:37:9`! 15 |
| 38 | #define OMFCMD_BLTcxx . . $ `music/musiclib.h:38:9`! 15 // branch if rX < lcmp |
| 39 | #define OMFCMD_BGTcxx . . $ `music/musiclib.h:39:9`! 16 // branch if rX > lcmp |
| 40 | #define OMFCMD_BEQcxx . . $ `music/musiclib.h:40:9`! 17 // branch if rX == lcmp |
| 41 | #define OMFCMD_BNIFcxx . . $ `music/musiclib.h:41:9`! 18 // branch if stream playing is NOT finished. |
| 42 | #define OMFCMD_GOTOcxx . . $ `music/musiclib.h:42:9`! 19 // unconditional goto a label |
| 43 | #define OMFCMD_WAITcxx . . $ `music/musiclib.h:43:9`! 20 // tells the system to wait |
| 44 | |
| 45 | // undocumented codes. |
| 46 | #define OMFCMD_MPLAYcxx . . $ `music/musiclib.h:46:9`! 200 // internal code. |
| 47 | #define OMFCMD_ENDIFIcxx . . $ `music/musiclib.h:47:9`! 201 // end of ifi conditional. |