Re: Unable to access memory address.

[email protected]
Newsgroups org.kernel.vger.linux-assembly
Message-ID <032520050157.21649.42436FF80006F972000054912205886014C0CF9D0A0B0E0AAD0A08AB@comcast.net>
Also might want an exit call on the end..  otherwise it'll keep on executing whatever is after the code you load in to memory..  keep reading down a bit in that article, it mentions this and shows you how to do an exit syscall in asm..

	; for the program to properly exit instead of segfaulting right here
	; ( it doesn't seem to like to fall off the end of a program ), call 
	; a sys_exit

	mov	eax,1
	mov	ebx,0
	int	80h

Joshua Roys
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.