Earlier quoted context omitted.
No, loop decrements rcx until it reaches zero and then stops
But rcx has not been initialised.
Ask HN: What are some examples of beautiful x86 assembly code?
61–70 of 93 posts
Re: Ask HN: What are some examples of beautiful x86 assembly code?
#62Re: Ask HN: What are some examples of beautiful x86 assembly code?
#63Re: Ask HN: What are some examples of beautiful x86 assembly code?
#64The coolest one liner is xor eax,eax :) 1 cycle for setting register to 0.
Re: Ask HN: What are some examples of beautiful x86 assembly code?
#65Kind of opposite of what you're asking for :)
Re: Ask HN: What are some examples of beautiful x86 assembly code?
#66Re: Ask HN: What are some examples of beautiful x86 assembly code?
#67many intros are provided with source codes, and others could easily be viewed in disassemblers.
especially look at intros by such brilliant people like Digimind and Řrřola.
Re: Ask HN: What are some examples of beautiful x86 assembly code?
#68Pokémon! GBA (ARM7) is even being used in some undergrad level OS classes. Although you may get more mileage out of RP3 development. disassembly of Pokémon Red/Blue https://github.com/pret/pokered TONC GBA Programming Principles https://www.coranac.com/tonc/text/toc.htm
Red and blue are gbc (z80-like, not ARM).
https://realboyemulator.wordpress.com/2013/01/02/the-nintend...
Re: Ask HN: What are some examples of beautiful x86 assembly code?
#69http://win32assembly.programminghorizon.com/
It was quite enlightening to see common program constructs done only in assembly.