Where do I get a copy of the bootloader (Arduino UNO R3) as an 328P assembler listing or eventually as a
HEX-dump ?
(I am teaching my self 328 Assembler, and I need that source, as I plan to make 2 - 3 - 4 - N Arduino's communicate with each other in a smart way (artice will be published here when I have done it) in some kind of a network. Have an idea of how to do it , but need the bootloader source.
My second idea is to write a (very small) PASCAL compiler to run on the 328P - but that is just a dream for the time being .
"The boot loader is written in C - I can think of better ways of teaching assembler programming. "
I agree.
(I have the source code (c) on my PC.)
But I may have given a wrong description of my intensions. I have programmed Assembler on the PC since the first X86 processor, som I am not unfamiliar with Assembler - at all.
What I meant with "teaching my self 328 Assembler" was to know the specific behavior of the 328P when handling Interrupts, I/O , at the special instructions handling memory-access.
Studying the ATMEL 328P DataSheet explains the instructions, but there are too few examples. Moving to registers - YES (r0 - r31), manipulating the registers - YES (ecxample Arithmetics and logical) , but access to FLASH-RAM, DATA-RAM and CODE is not very well described (I think).
With getting a copy of the bootloader (in assembler) I hoped I could overcome that.
But I get the point.
Anyway I will load the C-source (+ all the "support" files ) into my ATMEL Studio 6.0, Compile it , and hope I can get a . *.prn file.
IF not - I must think (again). Writing my own BOOTLOADER is a waste of time. !
Finally, you can use a ($5 shipped) USB ASP (with eXtreme Burner AVR) or other ISP programmers with other software to dump the flash from an avr chip to a hex file.