Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
.section .data
.section .text
.globl _start	
_start:
	pushl %ebp
	movl $0,-4(%ebp)
	movl $0,-8(%ebp)

	movl $3,%eax
	movl $0,%ebx
	movl -4(%ebp),%ecx
	int $0x80
	
	movl $3,%eax
	movl $0,%ebx
	movl -4(%ebp),%ecx
	int $0x80

	movl -4(%ebp),%ecx
	addl -8(%ebp),%ecx
	movl $4,%eax
	movl $1,%ebx
	int $0x80

	movl $1,%eax
	movl $0,%ebx
	int $0x80
Posted
Updated 30-Sep-13 6:36am
v2
Comments
Richard MacCutchan 30-Sep-13 12:40pm    
Try and run this through your debugger and see where the error occurs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900