flat assembler
Message board for the users of flat assembler.

Index > Main > The "proper" way of indenting?

Author
Thread Post new topic Reply to topic
hckr83



Joined: 12 Nov 2006
Posts: 86
Location: usa
hckr83
I am fairly new to assembly as far as being away from the hello world bits.
I have made an OS in asm(using fasm) and well, I can't stand my source, I cant tell where one bit begins and the other ends. My only way to really tell them apart is my 3 or so new lines I put between important parts(functions and whatnot)

Is there a proper way of indenting asm source? My best idea on what to do is just indent everywhere I have a global label and code following, but this still doesn't help inside the function

btw I don't think asm code consisting of a label(commonly used) and a ret are called functions, what would they be called? (I am use to C..)

_________________
x86 CPU Emulation library: http://sourceforge.net/projects/x86lib
Post 07 Apr 2007, 14:08
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
Mac2004



Joined: 15 Dec 2003
Posts: 313
Mac2004
hckr83: Perhaps looking how other asm coders indent their cource could help you to find your own style.

As far as I recall Dex4U uses nice and clear style in his sources. Smile

regards,
Mac2004
Post 07 Apr 2007, 17:04
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.