On Tue, Jul 26, 2011 at 12:58:40PM -0400, Isaac Marino Bavaresco wrote: > Em 26/7/2011 13:35, alan.b.pearce@stfc.ac.uk escreveu: > >>> (absolute mode versus relative mode) > >>> I don't think the question is that crucial. As you pointed out in you= r > >>> other post, that assembly is important to get a hands on view of the > >>> architecture. Once someone has that under their belt, they can pretty > >>> easily move on to an HLL that abstracts a lot of the details of pagin= g, > >>> banking, and the like. > >> One advantage of relative mode (I think, I have not explored this > >> enough) is that it is easier to mix with C. > > Isn't it more a case of you have to use relative to mix it with C, as y= ou have to use the linker, and the linker cannot deal with absolute mode? >=20 >=20 > I think absolute mode is just a left-over from the past. It is much > easier to use relative mode even in assembly, you don't need to manage > the location of the sections by yourself. This can be hard and > error-prone in mid-to-large projects. It's a left over from the past that has been embedded into the fabric of the Internet. Virtually every tutorial on PICs is based in absolute mode. As a former colleague of mine always used to say "You love what you learn." If there were 100 tutorials like this one: http://www.mcuhobby.com/articles.php?article_id=3D10&rowstart=3D0 Then more folks would use it from the jump. BAJ > > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 Byron A. Jeff Department Chair: IT/CS/CNET College of Information and Mathematical Sciences Clayton State University http://cims.clayton.edu/bjeff --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .