3 ms·
This is the first time I've seen it done but I haven't read a lot of assembly code or anything. > but it never occurred to me that it would be useful for assem
by sjs 15y ago
This is the first time I've seen it done but I haven't read a lot of assembly code or anything.
> but it never occurred to me that it would be useful for assembly language too. (And in fact I'm not sure that it is :)
Why not?
- to3m 15y agoI suppose I personally just never thought of assembly language code as having any nesting-like structure. It's just a list of individual instructions, to be executed one after the other, with the occasional conditional GOTO or subroutine call. Higher-level constructs just don't really spring to mind as I'm working in it. Then again, it's a while since I did a more than a short routine at a time of anything more complicated than 6502. (The 6502 is so basic, you have to think in the actual instructions directly. It would be odd if you didn't.) If I set to do a decent quantity of code working with something more modern, maybe I'd find my coding more coloured by my C experience than was the case last time.
- sjs 15y agoI've written more assembly for the M68HC11 than x86 so I can relate. Indenting it never even crossed my mind. x86 is an entirely different beast.