-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathprograms.c
54 lines (52 loc) · 1.04 KB
/
programs.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* File: programs.c
*
* Original Author: Dr. Alva Couch
* http://www.cs.tufts.edu/~couch/
* Modified By: Andy Sayler
* http://www.andysayler.com
*
* Project: CSCI 3753 Programming Assignment 4
* Create Date: Unknown
* Modify Date: 2012/04/03
* Description:
* This file defines the programs run by the simulator
*/
#define PROGRAMS 5
static Program programs[PROGRAMS] = {
{ 1535, 3,
{
{500, 1402, IF, 0, 0, 0.6, 0 },
{1401, 1533, GOTO, 0, 0, 1, 0 },
{1533, 0, FOR, 10, 30, 0, 0 },
},
1, { 1534, }
},
{ 1131, 1,
{
{1129, 0, FOR, 20, 50, 0, 0 },
},
1, { 1130, }
},
{ 1685, 2,
{
{1682, 1166, FOR, 10, 20, 0, 0 },
{1683, 0, FOR, 10, 20, 0, 0 },
},
1, { 1684, }
},
{ 1912, 0,
{
},
1, { 1911, }
},
{ 505, 4,
{
{500, 503, IF, 0, 0, 0.5, 0 },
{501, 0, GOTO, 0, 0, 1, 0 },
{502, 503, GOTO, 0, 0, 1, 0 },
{503, 0, FOR, 10, 20, 0, 0 },
},
1, { 504, }
},
};