commit 9ac163ca6d6121ee6c9a0a31f1ddfbf5f6413c52
parent f8a4bb471a5c6d8c2ba9effe3431690010cd40f4
Author: zavok <an2qzavok@gmail.com>
Date: Sun, 12 Jan 2020 16:46:25 +0300
tinkered with built-in prog
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/machine.c b/machine.c
@@ -42,10 +42,17 @@ instruction instructions[128] = {
[I_COMB] = i_comb,
};
+/*** simple hard-coded program ***/
+
int16_t sprog[] = {
+ I_LIT, 25,
+ I_2DT,
+ I_OP|0x0000,
+ I_WAVE|0x0000,
I_NOTE,
I_2DT,
I_OP|0x0000,
+ I_ADD,
I_WAVE|0x0000,
I_ADSR|0x0000,
I_COMB,