Skip to content

Commit

Permalink
Fixed DASM bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Jul 19, 2023
1 parent 7414b9e commit 3d06179
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Moira/MoiraDasmFPU_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ Moira::dasmFMovem(StrWriter &str, u32 &addr, u16 op) const

if (str.style.syntax == DASM_GNU || str.style.syntax == DASM_GNU_MIT) {

str << "fmovel" << str.tab << Sep{} << Op<M, Long>(reg, addr);
str << Ins<FMOVE>{} << Ffmt{0} << str.tab << Sep{} << Op<M, Long>(reg, addr);
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Moira/StrWriter_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ StrWriter::operator<<(Fp fp)
StrWriter&
StrWriter::operator<<(Ffmt ffmt)
{
if (style.syntax != DASM_MOIRA_MIT && style.syntax != DASM_GNU_MIT) *ptr++ = '.';
if (style.syntax != DASM_GNU && style.syntax != DASM_GNU_MIT) *ptr++ = '.';

switch (ffmt.raw) {

Expand Down
1 change: 1 addition & 0 deletions Runner/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ static const bool PROFILE_DASM = false;

// Uncomment to disable assertion checking
// #define NDEBUG

#include <assert.h>

0 comments on commit 3d06179

Please sign in to comment.