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;\
|
||||
xorl C, %edi;\
|
||||
|
||||
#define DATA 8
|
||||
#define LEN 12
|
||||
#define STATE 16
|
||||
#define STACKSIZE 20
|
||||
|
||||
#define EDATA (-4)
|
||||
#define OLDEBX (-8)
|
||||
#define OLDESI (-12)
|
||||
#define OLDEDI (-16)
|
||||
#define DATA (STACKSIZE+8)
|
||||
#define LEN (STACKSIZE+12)
|
||||
#define STATE (STACKSIZE+16)
|
||||
|
||||
#define EDATA (STACKSIZE-4)
|
||||
#define OLDEBX (STACKSIZE-8)
|
||||
#define OLDESI (STACKSIZE-12)
|
||||
#define OLDEDI (STACKSIZE-16)
|
||||
|
||||
.text
|
||||
|
||||
|
|
@ -120,6 +122,7 @@
|
|||
|
||||
/* Prelude */
|
||||
pushl %ebp
|
||||
subl $(STACKSIZE), %esp
|
||||
movl %ebx, OLDEBX(%esp)
|
||||
movl %esi, OLDESI(%esp)
|
||||
movl %edi, OLDEDI(%esp)
|
||||
|
|
@ -235,7 +238,7 @@ mainloop:
|
|||
movl OLDEBX(%esp), %ebx
|
||||
movl OLDESI(%esp), %esi
|
||||
movl OLDEDI(%esp), %edi
|
||||
movl %esp, %ebp
|
||||
leave
|
||||
addl $(STACKSIZE), %esp
|
||||
popl %ebp
|
||||
ret
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue