diff options
author | Pixel <> | 2001-04-17 04:03:02 +0000 |
---|---|---|
committer | Pixel <> | 2001-04-17 04:03:02 +0000 |
commit | 55f981c9fca048fba18d0538be4ed5dc1cc3fe11 (patch) | |
tree | 830ee90912ac88515a6b6bc68be033ca79b5dccf /lib/simulator.c | |
parent | a19da7ded119713b955816f1de69d71eef191ab0 (diff) |
Indent large
Diffstat (limited to 'lib/simulator.c')
-rw-r--r-- | lib/simulator.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/simulator.c b/lib/simulator.c index 380c705..661ccd3 100644 --- a/lib/simulator.c +++ b/lib/simulator.c @@ -228,8 +228,7 @@ void DecodeExec(Uint32 instruction) if (champ(Champ1(instruction), 2) == 0) { /* r/m de arg1 = 0 */ EcrireRegistre(Champ3(instruction), LireRegistre(Champ2(instruction))); } else { - ST(Adresse(Champ1(instruction), instruction), - LireRegistre(Champ2(instruction))); + ST(Adresse(Champ1(instruction), instruction), LireRegistre(Champ2(instruction))); } } else { /* arg2 = imm32 */ if (champ(Champ1(instruction), 2) == 0) { /* r/m de arg1 = 0 */ @@ -246,8 +245,7 @@ void DecodeExec(Uint32 instruction) if (champ(Champ1(instruction), 2) == 0) { /* r/m de arg1 = 0 */ EcrireRegistre(Champ2(instruction), LireRegistre(Champ3(instruction))); } else { - EcrireRegistre(Champ2(instruction), - LD(Adresse(Champ1(instruction), instruction))); + EcrireRegistre(Champ2(instruction), LD(Adresse(Champ1(instruction), instruction))); } } else { /* arg2 = imm32 */ exception(1, _("MOV: Memory to Memory Forbidden On This Type Of Processor")); @@ -402,8 +400,7 @@ void AfficheReg(void) // affiche reg } fprintf(stderr, "\n"); } - fprintf(stderr, "Rg: %08lX | Rd: %08lX | Flag: %08lX | PC: %08lX\n", LireRegistreRG(), LireRegistreRD(), - LireRegistreFLAG(), LireRegistrePC()); + fprintf(stderr, "Rg: %08lX | Rd: %08lX | Flag: %08lX | PC: %08lX\n", LireRegistreRG(), LireRegistreRD(), LireRegistreFLAG(), LireRegistrePC()); } void Debogueur(void) @@ -415,10 +412,8 @@ void Debogueur(void) while (!out) { AfficheReg(); fprintf(stderr, "Opcode: %02X, extension: %02X, champ1: %02X, champ2: %02X, champ3: %02X\n", - Opcode(instruction), Extension(instruction), Champ1(instruction), Champ2(instruction), - Champ3(instruction)); - fprintf(stderr, "%08lX:%08lX - %08lX - %08lX > ", LireRegistrePC(), instruction, - LD(LireRegistrePC() + 1), LD(LireRegistrePC() + 2)); + Opcode(instruction), Extension(instruction), Champ1(instruction), Champ2(instruction), Champ3(instruction)); + fprintf(stderr, "%08lX:%08lX - %08lX - %08lX > ", LireRegistrePC(), instruction, LD(LireRegistrePC() + 1), LD(LireRegistrePC() + 2)); switch (fgetc(input)) { case 'G': |