Comment by dragontamer
2 days ago
It was a small "app". But I do remember writing string parsers in Assembly.
My overall lesson was to stick with Perl / CGI-bin.
That being said, I wrote in "Human Readable Assembly" back then. Ex: function calls were:
mov eax, string
call myFunction
.db '\n' ; this parameter for myFunction
I would put compile time constants after the functions. Then I would before returning, pop the return address off the stack and add reg, 1, and push it back on.
It's horribly inefficient to do this today. But it allows you to write more flexible assembly functions that were more readable. Especially with macro-assemblers with some kind of preprocessor.
No comments yet
Contribute on Hacker News ↗