Source: https://eclecticlight.co/2021/06/07/code-in-assembly-for-apple-silicon-with-the-asmattic-app
Assembly is not everywhere. Sometimes I wish it would be. Imagine how much computation time and energy we could save globally, if more software was implemented low level. I know, compilers are awesome. But the human brain is still unbeaten, when it comes to inventiveness and creativity writing optimal code for a certain problem. Of course, we can not build everything on the assembly level, but I personally wished, more high level languages allowed for direct ASM execution as some do.
However, since of course the most modern incarnations of CPUs can be programmed in assembly, you could and should point your inner beam of attention to this great, but still unfinished series of wonderfully compiled posts.
The first article introduces you to AsmAttic, which allows you to write assembly for the Apple M1. The second post digs down into registers, followed by a great one about pointers and last but not least control flow using conditional branching based on processor flags.
What the author hoakley put together for TheEclecticLightCompany is not only interesting for those who enjoy programming close to the metal. It is a tour through modern ARM architecture and a read worth your time.
Read the full newsletter Issue #05 of 8bitnews.io: A mechanical Game Console?
Don't want to miss updates like that? Subscribe below and receive regular content that we only share with our subscribers.