Ensure that procedure labels are word aligned (required by the EM spec).

This commit is contained in:
David Given 2019-06-17 22:26:31 +02:00
parent ec9b5f5fcd
commit 94867d24b7
2 changed files with 1 additions and 13 deletions

View file

@ -21,6 +21,7 @@ You must specify the appropriate word size, then REMOVE tables.c
#define newilb(x) fprintf(codefile,"%s:\n",x)
#define newdlb(x) fprintf(codefile,"%s:\n",x)
#define newplb(x) fprintf(codefile,".align 4\n%s:\n",x)
#define dlbdlb(x,y) fprintf(codefile,"%s = %s\n",x,y)
#define newlbss(l,x) fprintf(codefile,".comm %s,%ld\n",l,x);

View file

@ -44,19 +44,6 @@ begtext:
jmp (__m_a_i_n)
#if 0
mov eax, (esp) ! eax = argc
lea ebx, 4(esp) ! ebx = argv
lea ecx, (esp)(eax*4)
add ecx, 12 ! environ
push ecx ! environ
push ebx ! argc
push eax ! argv
push eax ! dummy, representing the return argument
xor ebp, ebp
#endif
! This provides an emergency exit routine used by EM.
.define EXIT