Ditto.
This commit is contained in:
parent
2f05c0e86d
commit
2f2df5e02e
1 changed files with 12 additions and 9 deletions
|
|
@ -102,14 +102,16 @@
|
||||||
orl B, %edi;\
|
orl B, %edi;\
|
||||||
xorl C, %edi;\
|
xorl C, %edi;\
|
||||||
|
|
||||||
#define DATA 8
|
#define STACKSIZE 20
|
||||||
#define LEN 12
|
|
||||||
#define STATE 16
|
|
||||||
|
|
||||||
#define EDATA (-4)
|
#define DATA (STACKSIZE+8)
|
||||||
#define OLDEBX (-8)
|
#define LEN (STACKSIZE+12)
|
||||||
#define OLDESI (-12)
|
#define STATE (STACKSIZE+16)
|
||||||
#define OLDEDI (-16)
|
|
||||||
|
#define EDATA (STACKSIZE-4)
|
||||||
|
#define OLDEBX (STACKSIZE-8)
|
||||||
|
#define OLDESI (STACKSIZE-12)
|
||||||
|
#define OLDEDI (STACKSIZE-16)
|
||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
|
|
@ -120,6 +122,7 @@
|
||||||
|
|
||||||
/* Prelude */
|
/* Prelude */
|
||||||
pushl %ebp
|
pushl %ebp
|
||||||
|
subl $(STACKSIZE), %esp
|
||||||
movl %ebx, OLDEBX(%esp)
|
movl %ebx, OLDEBX(%esp)
|
||||||
movl %esi, OLDESI(%esp)
|
movl %esi, OLDESI(%esp)
|
||||||
movl %edi, OLDEDI(%esp)
|
movl %edi, OLDEDI(%esp)
|
||||||
|
|
@ -235,7 +238,7 @@ mainloop:
|
||||||
movl OLDEBX(%esp), %ebx
|
movl OLDEBX(%esp), %ebx
|
||||||
movl OLDESI(%esp), %esi
|
movl OLDESI(%esp), %esi
|
||||||
movl OLDEDI(%esp), %edi
|
movl OLDEDI(%esp), %edi
|
||||||
movl %esp, %ebp
|
addl $(STACKSIZE), %esp
|
||||||
leave
|
popl %ebp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue