-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathintegrated.c
More file actions
28 lines (22 loc) · 825 Bytes
/
Copy pathintegrated.c
File metadata and controls
28 lines (22 loc) · 825 Bytes
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
#define INTEGRATED_RASM
#include<stdlib.h>
#include<string.h>
#include<stdio.h>
#include "rasm.h"
void main() {
struct s_parameter param={0};
struct s_rasm_info *debug=NULL;
unsigned char *opcode=NULL;
int opcodelen;
int ret;
int i;
#define AUTOTEST_EDSK_SIDE_01 " buildsna force,'~/grouik/grouik/grouik' : bankset 0 : nop"
memset(¶m,0,sizeof(struct s_parameter)); //param.edskoverwrite=1;
ret=RasmAssembleInfoParam(AUTOTEST_EDSK_SIDE_01,strlen(AUTOTEST_EDSK_SIDE_01),&opcode,&opcodelen,&debug,¶m);
if (!ret) {} else {printf("Autotest ERROR\n");
for (i=0;i<debug->nberror;i++) printf("%d -> %s\n",i,debug->error[i].msg);
exit(-1);}
RasmFreeInfoStruct(debug);
if (opcode) free(opcode);opcode=NULL;
printf("buildsna with wrong path OK\n");
}