flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
cypher
I am looking for a code style. What do you suggest?
_________________ When all in life fails, get weird and disappear into the mountains |
|||
![]() |
|
neville
cypher wrote: I am looking for a code style. What do you suggest? ![]() Seriously, it's very personal. _________________ FAMOS - the first memory operating system |
|||
![]() |
|
cypher
Good suggestion. I adopted to the usual style of FASM. But when it comes to identifier names I have a problem. Which is better to use: camelCase or internal_under_score?
|
|||
![]() |
|
JohnFound
CamelCaseIsBetterForMe
but_recently_sometimes_i_use_underscores for the labels I don't want to be very remarkable in the source. ![]() |
|||
![]() |
|
ouadji
And for breakfast, which is better ? tea or coffee? ![]() |
|||
![]() |
|
ctl3d32
Quote: Your coding style will continue to evolve... This problem always arises when i'm in the middle of a project. |
|||
![]() |
|
edfed
ouadji wrote:
Code:
Yahourt_CrèmeDeMarron!:
call fridge.open
call yahourt.get
call creme.open
call spoon.get
call ENJOY
|
|||
![]() |
|
ManOfSteel
edfed, where's the garbage collection? You should call empty_pot.discard (as many times as necessary until cx=0), spoon.rinse, and most importantly, fridge.close (as soon as possible or else your morning process will suffer from water leaks).
![]() |
|||
![]() |
|
ouadji
ctl3d32 wrote:
![]() ![]() thank you ctl3d32, I feel now less alone. |
|||
![]() |
|
cypher
JohnFound wrote: CamelCaseIsBetterForMe ouadji wrote: And for breakfast, which is better ? tea or coffee? bitshifter wrote: The coding style you choose is less important I think it's settled; CamelCase will do for functions, and underscores will work for other names. But I do appreciate edfed's style; it's unique. And Tomasz's style. Although he doesn't comment his code. Isn't it always best to have sufficient and descriptive comments in your code? -------------------------------------------------------------------------- This helps but it is a bit confusing though: assembly coding style -------------------------------------------------------------------------- |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.