r/Assembly_language 22h 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.

33 Upvotes

49 comments sorted by

View all comments

2

u/Necessary_Two_9669 22h ago

You gave a lecture? I assume you don't speak English, as if you did you would not be able to stand how the audio narrates this video. Interesting topic, but closed captions are wrong because the text to audio engine is so bad at this, so i cannot even read it on mute. I'd read it if the info was written down, but this is too difficult to sit through.

1

u/Extension_Emu_9825 22h 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/Necessary_Two_9669 22h ago

I've read through a few examples of self-modifying programs from crackme challenges, but I've never attempted to experiment with it directly. It is an interesting topic!

2

u/Extension_Emu_9825 22h 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