AVR Assembly Section Finalizing - Atmel MCU GCC inline Asm mixing C/C++ syntax reference

Channel:
Subscribers:
322
Published on ● Video Link: https://www.youtube.com/watch?v=2VljtAVNVx4



Duration: 2:19
20 views
0


Finalizing doesn't mean done, although it has taken about 2 months for me to update this section, of which consist of rewriting most parts again, so updating is really an understatement. It's more a redo of everything from scratch and redefining a new golden standard.

Assembly is full of tricks that it's only known to a few experts in the world:
Why is subtracting 0xff equivalent to +1? Why Exclusive-oring a value by itself clears it? Why adding a value to itself shifts its bit to the left? By shifting a byte to the right is equivalent to dividing it by 2... The list goes on and on. Each of these statements are not necessarily easy to see in one's head, but in order to create more complex assembly algorithms that do things as efficiently as possible, these types of tricks should be second nature to a real expert assembly coder. This is equivalent to playing chess with 100+ pieces and figuring out the best combos for the next 3 moves.

This has 2 implications: 1, majority of the assembly mnemonics are repetitive, meaning one instruction can do what other 2-10 instructions can do exactly. 2, Some mathematically simple instructions could have a more complex purpose that it seems.

PS. I have added few more sub-sections to some of the pages after this video, and few more examples. I have spotted one grammar error, and fixed it. This section is still under-development, but it has to do for now. It will most likely not going to get a new update at this point.

PPS. For using AVR-GGC, there are actually a huge amount of functions that can be called directly with a global name, so you can access a huge math library by default. Another reason why you want to use GAS instead of AVR assembler. Alternatively, you can access math functions by using inline-C in your assembly project, but this is very dumb, and is equivalent to fart only with your pants pulled-down because you are too dumb to see that you can fart with your pants on.




Other Videos By Flyandance


2024-08-13Pro 10 & 11 - High Voltage boost and SEPIC DC-DC New components test
2024-08-12uAc PCB Art work creation - Silkscreen Photoshop Eagle
2024-08-11Edu section update - Advanced Minimal Main-less AVR Project with GNU extension - 2024
2024-08-1027-Neon-lamp Thermometer - Perfect PCB making Auto-router high density - High Voltage MCU AVR chaser
2024-08-06PCB Outline Draft: New Neon Chaser design from Start to End - Autocad Love rod Light Tower
2024-08-05New Project - Creating a PCB - uAc - 12 RGB LED - ultra low power clock - Components positioning avr
2024-08-04Edu Section update - In Depth AVR Memories: Register, SRAM, Flash and EEPROM - AVR Core 5.0 - 2024
2024-08-0119uA + 0.1uA - 12 LED Hourglass - Low power AVR MCU - 60 minutes - Sleep mode Atmel ultra battery
2024-07-31Juno Button 6.0 - Simplified and Optimized the World's best button library AVR MCU held burst multi
2024-07-28New Page Xercise - In Depth AVR Assembly Coding Practices - section update
2024-07-21AVR Assembly Section Finalizing - Atmel MCU GCC inline Asm mixing C/C++ syntax reference
2024-07-19AVR interrupt reinvented - main-less - Bare minimal C code - nostartfiles - manual
2024-07-18New Project RTCnA - Create a PCB shape and importing it - dimension Eagle autocad low power nano LED
2024-07-15__udivmodqi4 Demonstration and confirmation - AVR Assembly division binary software arithmetic
2024-07-14Advanced Inline assembly page Update - asm atmel 8-bit AVR MCU GCC - 4.0 Core 2024
2024-07-13Creating perfect sheet for cursive calligraphy English handwriting penmanship practice Free download
2024-07-08Genuinely unclog any inkjet ink cartridge using capillary action - HP 92
2024-07-07New Xample Page: 12 Advanced AVR-GCC Assembler Assembly Examples - 2024 gas asm
2024-06-30Assembly section update -- AVR GCC inline and mixing c Gas C/C++ ASM assembler Mastering atmel MCU
2024-06-27Old Lens turns macro Canon EFs mount
2024-06-25Blitzkrieg - High ground offense and defense - Sudden strike 1 gameplay