Hacker News new | ask | show | jobs
by ori_b 6025 days ago
> (structures, loops, conditions etc), and looks... suspiciously... C-like.

Which assembly? All the ones I know of - especially the modern ones - have become even lower level over time, as compilers started liking more regularity over more powerful instructions.

3 comments

From what I gather _machine code_ has become more low level, while _assemblers_ have adopted features from "high level" languages.

Not that I would know, the last time I wrote assembler it was for the Z80, and the last time I wrote machine code it was for the 6502.

The assembly language used by Sharc DSPs has an algebraic syntax rather than using all mnemonics, and loops are pretty easy to create as well (at least compared to x86 or, as my current project uses, PIC).
Can you give an example of a loop in an algebraic syntax please?

(All I can think of is CFG style, like "A -> (aA)?" oh, of course, there's also "a*" - still, it would be interesting to see an eg.)

I don't recall. Someone pointed out an example in a thread a while back.