4 ms·
A lot of assemblers did that. Which is why in self-modifying code you inserted an instruction to load a large integer constant (e.g. 0xDEADBEEF) that the assemb
by Kristine1975 11y ago
A lot of assemblers did that. Which is why in self-modifying code you inserted an instruction to load a large integer constant (e.g. 0xDEADBEEF) that the assembler could not optimize into a smaller instruction. Then at runtime you would replace that integer constant with whatever value, without the risk of overwriting part of the next instruction.
Those were the days...
- 0xdeadbeefbabe 11y agoIndeed. The bubbles virus really confused me the first time I stepped through a self modifying section using dos's debug program.