Mercurial > hg > forks > dxa
diff opcodes.h @ 16:a2a81589380d default tip
Reformat the whole source via clang-format for better consistency.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 14 Oct 2021 01:53:20 +0300 |
parents | 89183953bddc |
children |
line wrap: on
line diff
--- a/opcodes.h Thu Oct 14 01:40:24 2021 +0300 +++ b/opcodes.h Thu Oct 14 01:53:20 2021 +0300 @@ -86,21 +86,19 @@ }; #ifdef _DUMP_C_ -static char *prefix[] = { "", "#", "", "", "", "", "", "", - "(", "", "", "", "(", "(", "(", "(" }; +static char *prefix[] = {"", "#", "", "", "", "", "", "", "(", "", "", "", "(", "(", "(", "("}; /* static char *postfix[] = { " A", "", "", "", ",X", ",Y", ",X", ",Y", */ -static char *postfix[] = { "", "", "", "", ",x", ",y", ",x", ",y", - ",x)", "", "", "", ",x)", "),y", ")", ")" }; +static char *postfix[] = {"", "", "", "", ",x", ",y", ",x", ",y", ",x)", "", "", "", ",x)", "),y", ")", ")"}; #endif /* _DUMP_C_ */ /* Adressing mode types. */ enum { - absindir, /* absolute parameter (8 or 16 bits) for indirection */ - absolute, /* absolute parameter (8 or 16 bits), not indexed */ - other, /* something else (except impimm) */ - impimm /* implied or immediate parameter */ + absindir, /* absolute parameter (8 or 16 bits) for indirection */ + absolute, /* absolute parameter (8 or 16 bits), not indexed */ + other, /* something else (except impimm) */ + impimm /* implied or immediate parameter */ }; #ifndef _SCAN_C_ @@ -115,13 +113,13 @@ #ifndef _SCAN_C_ extern unsigned int sizes[]; #else -unsigned int sizes[] = { 1, 2, 3, 2, 2, 2, 3, 3, 3, 1, 2, 3, 2, 2, 3, 2 }; +unsigned int sizes[] = {1, 2, 3, 2, 2, 2, 3, 3, 3, 1, 2, 3, 2, 2, 3, 2}; #endif typedef struct opcodes { - int mnemonic; /* index to mnemonic instruction name table */ - int admode; /* addressing mode */ + int mnemonic; /* index to mnemonic instruction name table */ + int admode; /* addressing mode */ } opcodes; #ifndef _MAIN_C_