News for hackers. Stuff that matters.
Re:(Debugging Story) Inline Assembly Dangers by sim7c00 on Monday June 10, 2024 @04:05AM (#40631278)
its not too bad syntax really.

asm('asm code' : 'outputs' : 'inputs')

you can even use labels in it etc. for in/ouputs so it's 'easily readable'.

People just write it really lazy, don't use proper formatting / whitespace which makes it really difficult to read _other_peoples_inline_assembly.

I'd wager if you write it nicely with comments etc. it's quite alright. with some macros it might be more beautiful but imho those are harder/more annoying to interpret.

https://pastebin.com/S0x9hKJP <-- this isn't too bad is it? ignore that it has bugs xD

There are no comments on this comment yet.