[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: linux assembly
If i add these two lines
pushl %ebp
movl %esp,%ebp
just after main the program goes thru, what could be the reason
The final program would look like these
.text
BOOTSEG =0x07c0
.globl main
.type main,@function
main:
pushl %ebp
movl %esp,%ebp
mov %ax,BOOTSEG
TIA
Arun Sharma wrote:
> On Tue, Apr 25, 2000 at 03:17:43PM +0530, Rakesh Agarwal wrote:
> > I have tried the other way round also "source destination" . Even then it
> > gives segmentation fault
>
> The problem is that you're trying real mode assembly programming in
> virtual mode. You can't do that.
>
> -Arun
>
> -----------------------------------------------------------------------
> For more information on the LIP mailing list see:
> http://lists.linux-india.org/lists/LIP
--
Rakesh Agarwal
Systems Engineer
Wipro Tecnologies
72, Electronics City
Bangalore-561229
rakesh.agarwal@xxxxxxxxx
91-80-8520408 Extn-1158