blob: e065a45ced14147f9992f5e5c669d88ca75749bd (
plain)
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
|
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "usf.h"
#include "cpu.h"
#include "memory.h"
int InitalizeApplication ( void )
{
return 1;
}
void StopEmulation(void)
{
//asm("int $3");
//printf("Arrivederci!\n\n");
//Release_Memory();
//exit(0);
cpu_running = 0;
}
void DisplayError (char * Message, ...) {
char Msg[1000];
va_list ap;
va_start( ap, Message );
vsprintf( Msg, Message, ap );
va_end( ap );
printf("Error: %s\n", Msg);
}
void UsfSleep(int32_t time)
{
usleep(time * 1000);
}
|