X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: asm with c Date: 27 Feb 2002 17:08:52 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 18 Message-ID: References: NNTP-Posting-Host: lws256.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Girish Nair (hello_girish2001 AT yahoo DOT com) wrote: : Hello, : I am having a problem, may be very silly but it's a kind of experiment for : me. : I want to put some number into the register using assembly code MOV etc.etc. : (Learning asm stuff). : And access it with the C code, just to display it. So if anybody can tell : how to go ahead with this idea. You can learn a lot from making a simple C program and only compile it to assembly with the -S option to gcc. E. g. "gcc -O2 -Wall -S hello.c" and then look at hello.s. Right, MartinS