Re: 版名提名

看板ASM (組合語言)作者 (霸格尼尼)時間17年前 (2007/04/01 04:09), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串3/3 (看更多)
.section .rdata,"dr" LC0: .ascii "Error:%d\12\0" .text .globl _sql_conn .def _sql_conn; .scl 2; .type 32; .endef _sql_conn: addl $4, %eax movl %esp, %ebp subl $72, %esp movl $80, -44(%ebp) movl 8(%ebp), %eax movl %eax, (%esp) call _gethostbyname@4 subl $4, %esp movl %eax, -16(%ebp) cmpl $0, -16(%ebp) jne L2 call _WSAGetLastError@0 movl %eax, 4(%esp) movl $LC0, (%esp) call _printf movl $-2, -48(%ebp) jmp L1 L2: movl $0, 8(%esp) pushl %ebp movl $2, (%esp) call _socket@12 call _printf subl $12, %esp movl %eax, -12(%ebp) cmpl $0, -12(%ebp) jns L3 movl $-1, -48(%ebp) jmp L1 L3: movl $16, 8(%esp) movl $0, 4(%esp) pushl %ebp leal -40(%ebp), %eax movl %eax, (%esp) call _memset jge L21 movl -16(%ebp), %eax movswl 10(%eax),%eax movl %eax, 8(%eax) movl -16(%ebp), %eax subl $85, %esp movl (%eax), %eax incl %eax movl %eax, 4(%esp) leal -40(%ebp), %eax addl $4, %eax call _trim movl %eax, (%esp) call _memcpy movw $2, -40(%ebp) call _popen movl -44(%ebp), %eax subl %ax, %esp movl %eax, (%esp) call _printf incl %eax subl $4, %esp movl %ax, -38(%ebp) movl $16, 8(%esp) pushl %ebp call _strcpy movl %eax, 4(%esp) movl -12(%ebp), subl $77, %esp call _connect@12 subl $12, %esp testl %eax, %eax incl %eax js L4 movl -12(%ebp), %eax movl %eax, -52(%ebp) pushl %ebp jmp L5 L4: movl $-1, -52(%ebp) L5: movl -52(%ebp), %eax movl %eax, -48(%ebp) L1: movl -48(%ebp), %eax leave ret .section .rdata,"dr" LC1: .ascii "Serious memory 幸好可以亂call 不然有些字找不到@@ http://140.122.126.12/~buganini/mess.php 直接貼組語進去 它會幫你弄亂 -- 國愛‧主民‧學科‧康健‧道人 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.218.176 ※ 編輯: buganini 來自: 140.114.218.176 (04/01 05:06)

04/01 09:54, , 1F
這樣似乎不太顯眼
04/01 09:54, 1F
文章代碼(AID): #163i0KQP (ASM)
討論串 (同標題文章)
文章代碼(AID): #163i0KQP (ASM)