Skip to content

Commit

Permalink
minor improvements and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLadyLuthien committed Oct 20, 2021
1 parent d88955c commit c8f87fd
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 1 deletion.
Binary file modified HP11C.obj
Binary file not shown.
Binary file modified MainWindow.obj
Binary file not shown.
Binary file modified bin/HP11C.exe
Binary file not shown.
Binary file modified bin/HP11C.ilk
Binary file not shown.
Binary file modified bin/HP11C.pdb
Binary file not shown.
Binary file modified button.obj
Binary file not shown.
Binary file modified buttonTypes.obj
Binary file not shown.
Binary file modified decode.obj
Binary file not shown.
Binary file modified files.obj
Binary file not shown.
Binary file modified function.obj
Binary file not shown.
Binary file modified layerWindow.obj
Binary file not shown.
Binary file modified registers.obj
Binary file not shown.
13 changes: 12 additions & 1 deletion src/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ void SetX(long double val)
_countof(text),
formatString,
val);
stackString = text;

wstring str = text;

if ((val != val) or (str == L"inf"))
{
str = L"error";
}

stackString = str;
}

void SetNewX(long double val)
Expand Down Expand Up @@ -106,10 +114,13 @@ void ExitEditMode()
SetSecondDisplayText(L"");
RCLmodeActive = false;
STOmodeActive = false;
FIXmodeActive = false;

shiftStackOnEditMode = true;
if (inEditMode)
{
inEditMode = false;
SetX(_wtof(stackString.c_str()));
}
}

Expand Down
Binary file modified vc140.pdb
Binary file not shown.
Binary file modified window.obj
Binary file not shown.

0 comments on commit c8f87fd

Please sign in to comment.