-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
40 lines (32 loc) · 1.01 KB
/
main.cpp
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
#include "predef.h"
#include <stdio.h>
#include <ctype.h>
#include <startnet.h>
#include <autoupdate.h>
#include <NetworkDebug.h>
extern "C" {
void UserMain(void * pd);
}
extern "C" {
void AssemblyProgram(); /*Subroutine for student coding*/
void Intialization(); /*Subroutine to initialize values in memory */
void Set(); /*Subroutine to initialize values to zero memory location */
}
const char * AppName="Lab2AddressingModes";
void UserMain(void * pd) {
InitializeStack();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
#ifdef _DEBUG
InitializeNetworkGDB_and_Wait();
#endif
iprintf("Application started\n");
OSTimeDly(100); /*delay program for debugging purpose*/
Intialization(); /* initialize values to memory*/
Set(); /*Set contents in Array to be zero */
Intialization(); /* initialize values to memory*/
while (1) {
AssemblyProgram(); /*the main program for students to code*/
OSTimeDly(20); /*delay program*/
}
}