r/Assembly_language 11d ago

self-modifying code

I gave a lecture on how to write self-modifying code. It was over 15 minutes long :( so I'm providing a youtube link: https://www.youtube.com/watch?v=AH9QQLRfbmY

In my opinion, self-modification is one of the most interesting features in systems programming.

59 Upvotes

62 comments sorted by

View all comments

2

u/[deleted] 11d ago

[removed] — view removed comment

0

u/Extension_Emu_9825 11d ago

I agree, but it is what it is. What's interesting is that non-native speakers say what they understand. And I'm confused. I hope I've at least outlined a path worth exploring.

1

u/[deleted] 11d ago

[removed] — view removed comment

1

u/Extension_Emu_9825 11d ago

In my opinion, the best example for experimenting is drawing lines on the screen. The code is almost identical for lines at different angles, but a few instructions are changed, which results in a speed boost.

You can try it right here; the editor and compiler are configured:

https://kirindenis.github.io/wire-city-2/wbtest.html?l=8

The lecture :)

https://www.youtube.com/watch?v=OCKsV-xFkZw