@Steve said the other day that his assembler is type checked. He once responded to a posting were I was asking about design patterns. I was watching the trainsec.net course on C++ (very detailed BTW) and I was wondering if a person could somehow write object oriented MASM code? When I was thinking it about it I was thinking that it would likely involve using pointers in the Assembler, as I *think* (it has been a while since I was detailed on this) C++ just uses a virtual pointer table for object orientation and polymorphism. I feel confident that the trainsec.net course will bring those details back to my mind.
So I guess my question for @Steve is do you write anything like object oriented code in your MASM code? Are any of your free or commercial applications using anything like object oriented code? Am I understanding correctly that normally MASM is not typed checked, unless the programmer would need to work out a way to do that? The way I am thinking about MASM or assembler currently is that the data does not really even have a type, it is up to the programmer to be aware or use the data correctly. Of course these questions can be asked of the LLMs.
I first tried writing an assembler program in 2019, which was a bounce ball program that I ported from Petzold’s C code from the Programming Windows book. It was a huge mess and I remember it took quite a long time, I had a lot of gaps in my knowledge. Then I found some courses on Udemy, which were helpful, but did not cover MASM specifically. The biggest change has been LLMs, they don’t write super great code (in assembler anyway), but they make it easy enough to understand when I step though with a debugger, I can start to figure out ways of improving the code.
So I guess my question for @Steve is do you write anything like object oriented code in your MASM code? Are any of your free or commercial applications using anything like object oriented code? Am I understanding correctly that normally MASM is not typed checked, unless the programmer would need to work out a way to do that? The way I am thinking about MASM or assembler currently is that the data does not really even have a type, it is up to the programmer to be aware or use the data correctly. Of course these questions can be asked of the LLMs.
I first tried writing an assembler program in 2019, which was a bounce ball program that I ported from Petzold’s C code from the Programming Windows book. It was a huge mess and I remember it took quite a long time, I had a lot of gaps in my knowledge. Then I found some courses on Udemy, which were helpful, but did not cover MASM specifically. The biggest change has been LLMs, they don’t write super great code (in assembler anyway), but they make it easy enough to understand when I step though with a debugger, I can start to figure out ways of improving the code.
