shtest.S

sima/lhash/shtest.S · 520 B

From the archive 970706-sima.tgz

Download the archive   « Back to the archive contents

.text
LC0:
	.ascii "%x %x\n\0"
LC1:
	.ascii "%x %x %x\n\0"
LC2:
	.ascii "Hello World\n\0"
	.align 4
.globl _main
_main:
        pushl %ebp
	pushl %edi
	pushl %esi
        movl %esp,%ebp
        call ___main


	movl $0x12345678,%edi
	movl $0xabcdef42,%esi
	pushl %esi
	pushl %edi
	pushl $LC0
	call _printf

	movb $12, %cl
	movl %esi,%eax
	shrdl %cl,%edi,%esi
	shrdl %cl,%eax,%edi


	pushl %eax
	pushl %esi
	pushl %edi
	pushl $LC1
	call _printf


        movl %ebp,%esp
	popl %esi
	popl %edi
        popl %ebp
        ret

Site Stats

Snippets: 1791
Codebases: 571