Re:Writing a self-modifying x86 factorial program
by ghusbands on Wednesday December 15, 2021 @08:37AM
(#29565691)
Also, if we're to be pedantic about the code across the article, if they used dec (directly on memory) rather than sub, in the self modifying code, they wouldn't need a load/sub/store sequence. The zero flag would still be appropriately modified.
[ Parent
| on HN ]
Re:Writing a self-modifying x86 factorial program
by FastEatSlow on Wednesday December 15, 2021 @11:47AM
(#29568375)
Thanks, I forgot about dec.