All pastes #578062 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-06-20 04:39 UTC
rendered paste body
	.file	"main.c"
	.def	___main;	.scl	2;	.type	32;	.endef
	.section .rdata,"dr"
	.align 4
LC0:
	.ascii "This can call an emulator, where path is the emu\12\0"
LC1:
	.ascii "%s\0"
	.text
.globl _main
	.def	_main;	.scl	2;	.type	32;	.endef
_main:
	pushl	%ebp
	movl	%esp, %ebp
	subl	$72, %esp
	andl	$-16, %esp
	movl	$0, %eax
	addl	$15, %eax
	addl	$15, %eax
	shrl	$4, %eax
	sall	$4, %eax
	movl	%eax, -44(%ebp)
	movl	-44(%ebp), %eax
	call	__alloca
	call	___main
	movl	$LC0, (%esp)
	call	_printf
	leal	-40(%ebp), %eax
	movl	%eax, 4(%esp)
	movl	$LC1, (%esp)
	call	_scanf
	leal	-40(%ebp), %eax
	movl	%eax, (%esp)
	call	_system
	movl	$0, %eax
	leave
	ret
	.def	_system;	.scl	3;	.type	32;	.endef
	.def	_scanf;	.scl	3;	.type	32;	.endef
	.def	_printf;	.scl	3;	.type	32;	.endef