Conversation
* Add msx component using `fmsx` core * Modify `fmsx` core to use `shared_memory` component * Modify `fmsx` core to execute as a cart with interruptible execution * Add associated msx cart and update carts appropriately * Simplify gbc screenshot functionality * Modify `fmsx` core so that its Z80 implementation does not conflict with Genesis Z80 implementation * Update sdkconfig to reduce warnings but maintain performance. MSX allows playing `Metal Gear` and `Metal Gear 2: Solid Snake` which are awesome ⚙️ Build and run `main` on BOX-3-EMU hardware and ensure all emulators still work, both metal gear games can run and they both have functional save/load state
|
⚡ Static analysis result ⚡ 🔴 cppcheck found 244 issues! Click here to see details.esp-box-emu/components/shared_memory/src/shared_memory.c Lines 64 to 69 in 1552bac !Line: 64 - portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint]
esp-box-emu/components/msx/fmsx/src/fMSX/I8251.c Lines 41 to 46 in 1552bac !Line: 41 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/src/msx.cpp Lines 253 to 258 in 1552bac !Line: 253 - style: Redundant assignment of 'color' to itself. [selfAssignment]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 38 to 43 in 1552bac !Line: 38 - style: The scope of the variable 'P' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 59 to 64 in 1552bac !Line: 59 - style: The scope of the variable 'P' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 96 to 101 in 1552bac !Line: 96 - style: The scope of the variable 'Count' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 96 to 101 in 1552bac !Line: 96 - style: The scope of the variable 'PS' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 96 to 101 in 1552bac !Line: 96 - style: The scope of the variable 'SS' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 96 to 101 in 1552bac !Line: 96 - style: The scope of the variable 'N' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 96 to 101 in 1552bac !Line: 96 - style: The scope of the variable 'P' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 366 to 371 in 1552bac !Line: 366 - style: The scope of the variable 'Pos' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 421 to 426 in 1552bac !Line: 421 - style: The scope of the variable 'Pos' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Patch.c Lines 38 to 43 in 1552bac !Line: 38 - style: Variable 'P' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/Menu.c Lines 437 to 442 in 1552bac !Line: 437 - warning: Either the condition 'T' is redundant or there is possible null pointer dereference: T. [nullPointerRedundantCheck]
!Line: 439 - note: Assuming that condition 'T' is not redundant
!Line: 437 - note: Null pointer dereferenceesp-box-emu/components/msx/fmsx/src/fMSX/Menu.c Lines 510 to 515 in 1552bac !Line: 510 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/fMSX/Menu.c Lines 579 to 584 in 1552bac !Line: 579 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/fMSX/State.h Lines 274 to 279 in 1552bac !Line: 274 - style: Condition 'F' is always true [knownConditionTrueFalse]
esp-box-emu/components/msx/fmsx/src/fMSX/State.h Lines 127 to 132 in 1552bac !Line: 127 - style: Parameter 'Buf' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/fMSX/V9938.c Lines 577 to 582 in 1552bac !Line: 577 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/fMSX/V9938.c Lines 750 to 755 in 1552bac !Line: 750 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/fMSX/V9938.c Lines 807 to 812 in 1552bac !Line: 807 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/fMSX/V9938.c Lines 337 to 342 in 1552bac !Line: 337 - style: Parameter 'timing_values' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/fMSX/V9938.c Lines 874 to 879 in 1552bac !Line: 874 - style: Variable 'Ops' can be declared as const array [constVariable]
esp-box-emu/components/msx/fmsx/src/fMSX/V9938.c Lines 879 to 884 in 1552bac !Line: 879 - style: Variable 'Commands' can be declared as const array [constVariable]
esp-box-emu/components/msx/fmsx/src/fMSX/Wide.h Lines 73 to 78 in 1552bac !Line: 73 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Wide.h Lines 107 to 112 in 1552bac !Line: 107 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Wide.h Lines 141 to 146 in 1552bac !Line: 141 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Wide.h Lines 141 to 146 in 1552bac !Line: 141 - style: The scope of the variable 'C' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Wide.h Lines 141 to 146 in 1552bac !Line: 141 - style: The scope of the variable 'G' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Wide.h Lines 141 to 146 in 1552bac !Line: 141 - style: Variable 'C' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/Wide.h Lines 141 to 146 in 1552bac !Line: 141 - style: Variable 'G' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/fMSX.c Lines 51 to 56 in 1552bac !Line: 51 - style: Parameter 'argv' can be declared as const array [constParameter]
esp-box-emu/components/msx/fmsx/src/fMSX/fMSX.c Lines 55 to 60 in 1552bac !Line: 55 - style: Unused variable: P [unusedVariable]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 457 to 462 in 1552bac !Line: 457 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 492 to 497 in 1552bac !Line: 492 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 527 to 532 in 1552bac !Line: 527 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 528 to 533 in 1552bac !Line: 528 - style: The scope of the variable 'I' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 528 to 533 in 1552bac !Line: 528 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 564 to 569 in 1552bac !Line: 564 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 594 to 599 in 1552bac !Line: 594 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 595 to 600 in 1552bac !Line: 595 - style: The scope of the variable 'I' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 595 to 600 in 1552bac !Line: 595 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 637 to 642 in 1552bac !Line: 637 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 684 to 689 in 1552bac !Line: 684 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 719 to 724 in 1552bac !Line: 719 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 719 to 724 in 1552bac !Line: 719 - style: The scope of the variable 'K' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 761 to 766 in 1552bac !Line: 761 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 762 to 767 in 1552bac !Line: 762 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 762 to 767 in 1552bac !Line: 762 - style: The scope of the variable 'K' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 256 to 261 in 1552bac !Line: 256 - style: Variable 'PT' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 457 to 462 in 1552bac !Line: 457 - style: Variable 'G' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 492 to 497 in 1552bac !Line: 492 - style: Variable 'G' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 564 to 569 in 1552bac !Line: 564 - style: Variable 'G' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/State.h Lines 274 to 279 in 1552bac !Line: 274 - style: Condition 'F' is always true [knownConditionTrueFalse]
!Line: 264 - note: Assuming condition '!F' is false
!Line: 274 - note: Condition 'F' is always trueesp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2809 to 2814 in 1552bac !Line: 2809 - warning: %X in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 3362 to 3367 in 1552bac !Line: 3362 - warning: inconclusive: Width 13 given in format string (no. 1) is smaller than destination buffer 'S[16]'. [invalidScanfFormatWidth_smaller]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 557 to 562 in 1552bac !Line: 557 - style: Variable 'J' is reassigned a value before the old one has been used. [redundantAssignment]
!Line: 548 - note: J is assigned
!Line: 557 - note: J is overwrittenesp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 557 to 562 in 1552bac !Line: 557 - style: Variable 'J' is reassigned a value before the old one has been used. [redundantAssignment]
!Line: 549 - note: J is assigned
!Line: 557 - note: J is overwrittenesp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 619 to 624 in 1552bac !Line: 619 - style: The scope of the variable 'F' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 700 to 705 in 1552bac !Line: 700 - style: The scope of the variable 'I' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1162 to 1167 in 1552bac !Line: 1162 - style: The scope of the variable 'DX' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1162 to 1167 in 1552bac !Line: 1162 - style: The scope of the variable 'DY' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1238 to 1243 in 1552bac !Line: 1238 - style: The scope of the variable 'I' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1759 to 1764 in 1552bac !Line: 1759 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1759 to 1764 in 1552bac !Line: 1759 - style: The scope of the variable 'I' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1779 to 1784 in 1552bac !Line: 1779 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1779 to 1784 in 1552bac !Line: 1779 - style: The scope of the variable 'I' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1979 to 1984 in 1552bac !Line: 1979 - style: The scope of the variable 'PrevTime' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1980 to 1985 in 1552bac !Line: 1980 - style: The scope of the variable 'TM' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2034 to 2039 in 1552bac !Line: 2034 - style: The scope of the variable 'BCount' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2474 to 2479 in 1552bac !Line: 2474 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2790 to 2795 in 1552bac !Line: 2790 - style: The scope of the variable 'K' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2819 to 2824 in 1552bac !Line: 2819 - style: The scope of the variable 'S2' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 3023 to 3028 in 1552bac !Line: 3023 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2366 to 2371 in 1552bac !Line: 2366 - style: inconclusive: Function 'MakeFileName' argument 1 names different: declaration 'FileName' definition 'Name'. [funcArgNamesDifferent]
!Line: 367 - note: Function 'MakeFileName' argument 1 names different: declaration 'FileName' definition 'Name'.
!Line: 2366 - note: Function 'MakeFileName' argument 1 names different: declaration 'FileName' definition 'Name'.esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2366 to 2371 in 1552bac !Line: 2366 - style: inconclusive: Function 'MakeFileName' argument 2 names different: declaration 'Extension' definition 'Ext'. [funcArgNamesDifferent]
!Line: 367 - note: Function 'MakeFileName' argument 2 names different: declaration 'Extension' definition 'Ext'.
!Line: 2366 - note: Function 'MakeFileName' argument 2 names different: declaration 'Extension' definition 'Ext'.esp-box-emu/components/msx/fmsx/src/fMSX/State.h Lines 244 to 249 in 1552bac !Line: 244 - style: inconclusive: Function 'SaveSTA' argument 1 names different: declaration 'FileName' definition 'Name'. [funcArgNamesDifferent]
!Line: 323 - note: Function 'SaveSTA' argument 1 names different: declaration 'FileName' definition 'Name'.
!Line: 244 - note: Function 'SaveSTA' argument 1 names different: declaration 'FileName' definition 'Name'.esp-box-emu/components/msx/fmsx/src/fMSX/State.h Lines 289 to 294 in 1552bac !Line: 289 - style: inconclusive: Function 'LoadSTA' argument 1 names different: declaration 'FileName' definition 'Name'. [funcArgNamesDifferent]
!Line: 328 - note: Function 'LoadSTA' argument 1 names different: declaration 'FileName' definition 'Name'.
!Line: 289 - note: Function 'LoadSTA' argument 1 names different: declaration 'FileName' definition 'Name'.esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1193 to 1198 in 1552bac !Line: 1193 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 416 to 421 in 1552bac !Line: 416 - style: Variable 'T' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2575 to 2580 in 1552bac !Line: 2575 - style: Variable 'P' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2970 to 2975 in 1552bac !Line: 2970 - style: Variable 'P' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 3382 to 3387 in 1552bac !Line: 3382 - style: Variable 'H' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 418 to 423 in 1552bac !Line: 418 - style: Unused variable: A [unusedVariable]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 1725 to 1730 in 1552bac !Line: 1725 - style: Variable 'V' is assigned a value that is never used. [unreadVariable]
esp-box-emu/components/msx/fmsx/src/fMSX/MSX.c Lines 2950 to 2955 in 1552bac !Line: 2950 - style: Variable 'J' is assigned a value that is never used. [unreadVariable]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 809 to 814 in 1552bac !Line: 809 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 844 to 849 in 1552bac !Line: 844 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 878 to 883 in 1552bac !Line: 878 - style: The scope of the variable 'T' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 878 to 883 in 1552bac !Line: 878 - style: The scope of the variable 'C' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 878 to 883 in 1552bac !Line: 878 - style: The scope of the variable 'G' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 878 to 883 in 1552bac !Line: 878 - style: Variable 'C' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 878 to 883 in 1552bac !Line: 878 - style: Variable 'G' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Console.c Lines 891 to 896 in 1552bac !Line: 891 - style: Condition 'FileSelect' is always true [knownConditionTrueFalse]
esp-box-emu/components/msx/fmsx/src/EMULib/Console.c Lines 492 to 497 in 1552bac !Line: 492 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/EMULib/Console.c Lines 558 to 563 in 1552bac !Line: 558 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/EMULib/Console.c Lines 609 to 614 in 1552bac !Line: 609 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 456 to 461 in 1552bac !Line: 456 - style: The scope of the variable 'FC' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 491 to 496 in 1552bac !Line: 491 - style: The scope of the variable 'FC' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 491 to 496 in 1552bac !Line: 491 - style: The scope of the variable 'BC' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 526 to 531 in 1552bac !Line: 526 - style: The scope of the variable 'FC' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 526 to 531 in 1552bac !Line: 526 - style: The scope of the variable 'BC' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 593 to 598 in 1552bac !Line: 593 - style: The scope of the variable 'FC' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 593 to 598 in 1552bac !Line: 593 - style: The scope of the variable 'BC' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/fMSX/Wide.h Lines 140 to 145 in 1552bac !Line: 140 - style: The scope of the variable 'FC' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/FDIDisk.c Lines 691 to 696 in 1552bac !Line: 691 - style: The scope of the variable 'K' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/FDIDisk.c Lines 386 to 391 in 1552bac !Line: 386 - warning: Either the condition '!N' is redundant or there is division by zero at line 386. [zerodivcond]
!Line: 394 - note: Assuming that condition '!N' is not redundant
!Line: 386 - note: Division by zeroesp-box-emu/components/msx/fmsx/src/EMULib/FDIDisk.c Lines 632 to 637 in 1552bac !Line: 632 - style: Variable 'P' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/EMULib/FDIDisk.c Lines 665 to 670 in 1552bac !Line: 665 - style: Variable 'P' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/EMULib/AY8910.c Lines 221 to 226 in 1552bac !Line: 221 - error: Signed integer overflow for expression '1000000L*(J?J:0x10000)'. [integerOverflow]
esp-box-emu/components/msx/fmsx/src/EMULib/AY8910.c Lines 182 to 187 in 1552bac !Line: 182 - style: Variable 'V' is assigned a value that is never used. [unreadVariable]
esp-box-emu/components/msx/fmsx/src/EMULib/Floppy.c Lines 65 to 70 in 1552bac !Line: 65 - style: The scope of the variable 'FE' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Floppy.c Lines 66 to 71 in 1552bac !Line: 66 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Floppy.c Lines 216 to 221 in 1552bac !Line: 216 - style: The scope of the variable 'FE2' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Floppy.c Lines 216 to 221 in 1552bac !Line: 216 - style: The scope of the variable 'P' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Floppy.c Lines 277 to 282 in 1552bac !Line: 277 - style: The scope of the variable 'I' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Floppy.c Lines 319 to 324 in 1552bac !Line: 319 - style: The scope of the variable 'FE2' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Floppy.c Lines 89 to 94 in 1552bac !Line: 89 - style: Variable 'DAT' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Floppy.c Lines 372 to 377 in 1552bac !Line: 372 - style: Variable 'DE' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Floppy.c Lines 101 to 106 in 1552bac !Line: 101 - style: Variable 'DAT' is assigned a value that is never used. [unreadVariable]
esp-box-emu/components/msx/fmsx/src/EMULib/Record.c Lines 152 to 157 in 1552bac !Line: 152 - style: Condition '!RPLData[WPtr1].Count[WPtr2]' is always false [knownConditionTrueFalse]
!Line: 131 - note: Assuming that condition 'RPLData[WPtr1].Count[WPtr2]' is not redundant
!Line: 145 - note: Assuming condition is false
!Line: 152 - note: Condition '!RPLData[WPtr1].Count[WPtr2]' is always falseesp-box-emu/components/msx/fmsx/src/EMULib/Record.c Lines 74 to 79 in 1552bac !Line: 74 - style: inconclusive: Function 'RPLRecord' argument 1 names different: declaration 'JoyState' definition 'Cmd'. [funcArgNamesDifferent]
!Line: 62 - note: Function 'RPLRecord' argument 1 names different: declaration 'JoyState' definition 'Cmd'.
!Line: 74 - note: Function 'RPLRecord' argument 1 names different: declaration 'JoyState' definition 'Cmd'.esp-box-emu/components/msx/fmsx/src/EMULib/Record.c Lines 80 to 85 in 1552bac !Line: 80 - style: inconclusive: Function 'RPLRecordKeys' argument 1 names different: declaration 'JoyState' definition 'Cmd'. [funcArgNamesDifferent]
!Line: 68 - note: Function 'RPLRecordKeys' argument 1 names different: declaration 'JoyState' definition 'Cmd'.
!Line: 80 - note: Function 'RPLRecordKeys' argument 1 names different: declaration 'JoyState' definition 'Cmd'.esp-box-emu/components/msx/fmsx/src/fMSX/Common.h Lines 877 to 882 in 1552bac !Line: 877 - style: The scope of the variable 'FC' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Sound.c Lines 265 to 270 in 1552bac !Line: 265 - style: Condition 'Length' is always true [knownConditionTrueFalse]
!Line: 259 - note: Assuming that condition 'Length<=0' is not redundant
!Line: 265 - note: Condition 'Length' is always trueesp-box-emu/components/msx/fmsx/src/EMULib/Sound.c Lines 256 to 261 in 1552bac !Line: 256 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Sound.c Lines 382 to 387 in 1552bac !Line: 382 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Sound.c Lines 382 to 387 in 1552bac !Line: 382 - style: The scope of the variable 'I' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Sound.c Lines 459 to 464 in 1552bac !Line: 459 - style: The scope of the variable 'MIDIVolume' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Sound.c Lines 459 to 464 in 1552bac !Line: 459 - style: The scope of the variable 'MIDINote' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Sound.c Lines 459 to 464 in 1552bac !Line: 459 - style: The scope of the variable 'MIDIWheel' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Sound.c Lines 203 to 208 in 1552bac !Line: 203 - style: inconclusive: Function 'SetSound' argument 2 names different: declaration 'NewType' definition 'Type'. [funcArgNamesDifferent]
!Line: 94 - note: Function 'SetSound' argument 2 names different: declaration 'NewType' definition 'Type'.
!Line: 203 - note: Function 'SetSound' argument 2 names different: declaration 'NewType' definition 'Type'.esp-box-emu/components/msx/fmsx/src/EMULib/IPS.c Lines 78 to 83 in 1552bac !Line: 78 - warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
esp-box-emu/components/msx/fmsx/src/EMULib/IPS.c Lines 88 to 93 in 1552bac !Line: 88 - warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
esp-box-emu/components/msx/fmsx/src/EMULib/IPS.c Lines 98 to 103 in 1552bac !Line: 98 - warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
esp-box-emu/components/msx/fmsx/src/EMULib/IPS.c Lines 111 to 116 in 1552bac !Line: 111 - warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
esp-box-emu/components/msx/fmsx/src/EMULib/IPS.c Lines 47 to 52 in 1552bac !Line: 47 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/IPS.c Lines 47 to 52 in 1552bac !Line: 47 - style: The scope of the variable 'N' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Hunt.c Lines 112 to 117 in 1552bac !Line: 112 - style: The scope of the variable 'K' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Hunt.c Lines 151 to 156 in 1552bac !Line: 151 - style: Local variable 'Buf' shadows outer variable [shadowVariable]
!Line: 38 - note: Shadowed declaration
!Line: 151 - note: Shadow variableesp-box-emu/components/msx/fmsx/src/EMULib/Hunt.c Lines 152 to 157 in 1552bac !Line: 152 - style: Variable 'HE' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/EMULib/SCC.c Lines 82 to 87 in 1552bac !Line: 82 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 180 to 185 in 1552bac !Line: 180 - style: Condition '!J' is always true [knownConditionTrueFalse]
!Line: 169 - note: Assignment 'J=0', assigned value is 0
!Line: 172 - note: Assuming condition is false
!Line: 180 - note: Condition '!J' is always trueesp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 184 to 189 in 1552bac !Line: 184 - style: Condition '!J' is always true [knownConditionTrueFalse]
!Line: 169 - note: Assignment 'J=0', assigned value is 0
!Line: 172 - note: Assuming condition is false
!Line: 184 - note: Condition '!J' is always trueesp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 701 to 706 in 1552bac !Line: 701 - style: Variable 'J' is reassigned a value before the old one has been used. [redundantAssignment]
!Line: 694 - note: J is assigned
!Line: 701 - note: J is overwrittenesp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 428 to 433 in 1552bac !Line: 428 - style: The scope of the variable 'X0' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 428 to 433 in 1552bac !Line: 428 - style: The scope of the variable 'Y0' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 751 to 756 in 1552bac !Line: 751 - style: The scope of the variable 'X0' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 751 to 756 in 1552bac !Line: 751 - style: The scope of the variable 'Y0' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 751 to 756 in 1552bac !Line: 751 - style: The scope of the variable 'X1' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 751 to 756 in 1552bac !Line: 751 - style: The scope of the variable 'Y1' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 751 to 756 in 1552bac !Line: 751 - style: The scope of the variable 'NeedFrame' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 751 to 756 in 1552bac !Line: 751 - style: The scope of the variable 'NeedLabel' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 385 to 390 in 1552bac !Line: 385 - style: inconclusive: Function 'SetFinButton' argument 2 names different: declaration 'Src' definition 'Img'. [funcArgNamesDifferent]
!Line: 104 - note: Function 'SetFinButton' argument 2 names different: declaration 'Src' definition 'Img'.
!Line: 385 - note: Function 'SetFinButton' argument 2 names different: declaration 'Src' definition 'Img'.esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 201 to 206 in 1552bac !Line: 201 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 202 to 207 in 1552bac !Line: 202 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 449 to 454 in 1552bac !Line: 449 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/EMULib/Touch.c Lines 302 to 307 in 1552bac !Line: 302 - error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned]
!Line: 301 - note: Assuming that condition 'J<sizeof(PenCues)/sizeof(PenCues[0])' is not redundant
!Line: 302 - note: Shiftesp-box-emu/components/msx/fmsx/src/EMULib/Console.c Lines 453 to 458 in 1552bac !Line: 453 - style: inconclusive: Function 'CONFrame' argument 5 names different: declaration 'BGColor' definition 'FGColor'. [funcArgNamesDifferent]
!Line: 77 - note: Function 'CONFrame' argument 5 names different: declaration 'BGColor' definition 'FGColor'.
!Line: 453 - note: Function 'CONFrame' argument 5 names different: declaration 'BGColor' definition 'FGColor'.esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 171 to 176 in 1552bac !Line: 171 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 186 to 191 in 1552bac !Line: 186 - style: The scope of the variable 'P' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 781 to 786 in 1552bac !Line: 781 - style: The scope of the variable 'A' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 781 to 786 in 1552bac !Line: 781 - style: The scope of the variable 'B' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 781 to 786 in 1552bac !Line: 781 - style: The scope of the variable 'C' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 781 to 786 in 1552bac !Line: 781 - style: The scope of the variable 'D' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 840 to 845 in 1552bac !Line: 840 - style: The scope of the variable 'A' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 840 to 845 in 1552bac !Line: 840 - style: The scope of the variable 'B' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 840 to 845 in 1552bac !Line: 840 - style: The scope of the variable 'C' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 840 to 845 in 1552bac !Line: 840 - style: The scope of the variable 'D' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: The scope of the variable 'A' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: The scope of the variable 'B' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: The scope of the variable 'C' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: The scope of the variable 'D' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: The scope of the variable 'NW' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: The scope of the variable 'NE' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: The scope of the variable 'SW' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: The scope of the variable 'SE' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: The scope of the variable 'X1' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1028 to 1033 in 1552bac !Line: 1028 - style: The scope of the variable 'A' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1028 to 1033 in 1552bac !Line: 1028 - style: The scope of the variable 'B' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1028 to 1033 in 1552bac !Line: 1028 - style: The scope of the variable 'C' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1028 to 1033 in 1552bac !Line: 1028 - style: The scope of the variable 'D' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: The scope of the variable 'A' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: The scope of the variable 'B' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: The scope of the variable 'C' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: The scope of the variable 'D' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: The scope of the variable 'NW' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: The scope of the variable 'NE' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: The scope of the variable 'SW' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: The scope of the variable 'SE' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: The scope of the variable 'X1' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 774 to 779 in 1552bac !Line: 774 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 776 to 781 in 1552bac !Line: 776 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 833 to 838 in 1552bac !Line: 833 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 835 to 840 in 1552bac !Line: 835 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 947 to 952 in 1552bac !Line: 947 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 949 to 954 in 1552bac !Line: 949 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1021 to 1026 in 1552bac !Line: 1021 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1023 to 1028 in 1552bac !Line: 1023 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1098 to 1103 in 1552bac !Line: 1098 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1100 to 1105 in 1552bac !Line: 1100 - portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 781 to 786 in 1552bac !Line: 781 - style: Local variable 'D' shadows outer variable [shadowVariable]
!Line: 760 - note: Shadowed declaration
!Line: 781 - note: Shadow variableesp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 840 to 845 in 1552bac !Line: 840 - style: Local variable 'D' shadows outer variable [shadowVariable]
!Line: 819 - note: Shadowed declaration
!Line: 840 - note: Shadow variableesp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 954 to 959 in 1552bac !Line: 954 - style: Local variable 'D' shadows outer variable [shadowVariable]
!Line: 933 - note: Shadowed declaration
!Line: 954 - note: Shadow variableesp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1028 to 1033 in 1552bac !Line: 1028 - style: Local variable 'D' shadows outer variable [shadowVariable]
!Line: 1007 - note: Shadowed declaration
!Line: 1028 - note: Shadow variableesp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1105 to 1110 in 1552bac !Line: 1105 - style: Local variable 'D' shadows outer variable [shadowVariable]
!Line: 1084 - note: Shadowed declaration
!Line: 1105 - note: Shadow variableesp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 237 to 242 in 1552bac !Line: 237 - style: Variable 'S' can be declared as pointer to const [constVariablePointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 269 to 274 in 1552bac !Line: 269 - style: Parameter 'Img' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 316 to 321 in 1552bac !Line: 316 - style: Parameter 'Img' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 362 to 367 in 1552bac !Line: 362 - style: Parameter 'Img' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 409 to 414 in 1552bac !Line: 409 - style: Parameter 'Img' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 469 to 474 in 1552bac !Line: 469 - style: Parameter 'Img' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 529 to 534 in 1552bac !Line: 529 - style: Parameter 'Img' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 580 to 585 in 1552bac !Line: 580 - style: Parameter 'Img' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 650 to 655 in 1552bac !Line: 650 - style: Parameter 'Img' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 701 to 706 in 1552bac !Line: 701 - style: Parameter 'Img' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 779 to 784 in 1552bac !Line: 779 - style: Variable 'D' is assigned a value that is never used. [unreadVariable]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 838 to 843 in 1552bac !Line: 838 - style: Variable 'D' is assigned a value that is never used. [unreadVariable]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 952 to 957 in 1552bac !Line: 952 - style: Variable 'D' is assigned a value that is never used. [unreadVariable]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1026 to 1031 in 1552bac !Line: 1026 - style: Variable 'D' is assigned a value that is never used. [unreadVariable]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1103 to 1108 in 1552bac !Line: 1103 - style: Variable 'D' is assigned a value that is never used. [unreadVariable]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1150 to 1155 in 1552bac !Line: 1150 - style: The scope of the variable 'S' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/Image.c Lines 1150 to 1155 in 1552bac !Line: 1150 - style: The scope of the variable 'D' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/MCF.c Lines 67 to 72 in 1552bac !Line: 67 - warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
esp-box-emu/components/msx/fmsx/src/EMULib/MCF.c Lines 67 to 72 in 1552bac !Line: 67 - warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
esp-box-emu/components/msx/fmsx/src/EMULib/NetPlay.c Lines 47 to 52 in 1552bac !Line: 47 - style: Condition 'NETConnected()' is always false [knownConditionTrueFalse]
!Line: 47 - note: Calling function 'NETConnected' returns 0
!Line: 47 - note: Condition 'NETConnected()' is always falseesp-box-emu/components/msx/fmsx/src/EMULib/NetPlay.c Lines 67 to 72 in 1552bac !Line: 67 - style: Condition '!NETMyName(T+1,sizeof(T)-1)' is always true [knownConditionTrueFalse]
!Line: 67 - note: Calling function 'NETMyName' returns 0
!Line: 67 - note: Condition '!NETMyName(T+1,sizeof(T)-1)' is always trueesp-box-emu/components/msx/fmsx/src/EMULib/NetPlay.c Lines 101 to 106 in 1552bac !Line: 101 - style: Condition 'NETRecv(In,N)!=N' is always false [knownConditionTrueFalse]
!Line: 101 - note: Calling function 'NETRecv' returns 0
!Line: 101 - note: Condition 'NETRecv(In,N)!=N' is always falseesp-box-emu/components/msx/fmsx/src/EMULib/NetPlay.c Lines 123 to 128 in 1552bac !Line: 123 - style: Condition 'NETExchange((char*)&I,(const char*)&J,sizeof(J))' is always false [knownConditionTrueFalse]
!Line: 123 - note: Calling function 'NETExchange' returns 0
!Line: 123 - note: Condition 'NETExchange((char*)&I,(const char*)&J,sizeof(J))' is always falseesp-box-emu/components/msx/fmsx/src/EMULib/NetPlay.c Lines 43 to 48 in 1552bac !Line: 43 - style: The scope of the variable 'P' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/NetPlay.c Lines 44 to 49 in 1552bac !Line: 44 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/NetPlay.c Lines 26 to 31 in 1552bac !Line: 26 - style: Parameter 'Buffer' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/NetPlay.c Lines 30 to 35 in 1552bac !Line: 30 - style: Parameter 'In' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/EMULib/WD1793.c Lines 156 to 161 in 1552bac !Line: 156 - style: The scope of the variable 'J' can be reduced. [variableScope]
esp-box-emu/components/msx/fmsx/src/EMULib/WD1793.c Lines 72 to 77 in 1552bac !Line: 72 - style: Parameter 'Buf' can be declared as pointer to const [constParameterPointer]
esp-box-emu/components/msx/fmsx/src/Z80/CodesXX.h Lines 14 to 19 in 1552bac !Line: 14 - error: syntax error: keyword 'if' is not allowed in global scope [syntaxError]
esp-box-emu/components/msx/fmsx/src/Z80/CodesXCB.h Lines 14 to 19 in 1552bac !Line: 14 - error: syntax error: keyword 'break' is not allowed in global scope [syntaxError]
esp-box-emu/components/msx/fmsx/src/Z80/Codes.h Lines 14 to 19 in 1552bac !Line: 14 - error: syntax error: keyword 'if' is not allowed in global scope [syntaxError]
esp-box-emu/components/msx/fmsx/src/Z80/Debug.c Lines 340 to 345 in 1552bac !Line: 340 - portability: fflush() called on input stream 'stdin' may result in undefined behaviour on non-linux systems. [fflushOnInputStream]
esp-box-emu/components/msx/fmsx/src/Z80/CodesED.h Lines 15 to 20 in 1552bac !Line: 15 - error: syntax error: keyword 'break' is not allowed in global scope [syntaxError]
esp-box-emu/components/msx/fmsx/src/Z80/CodesCB.h Lines 14 to 19 in 1552bac !Line: 14 - error: syntax error: keyword 'break' is not allowed in global scope [syntaxError]
esp-box-emu/components/msx/fmsx/src/fMSX/Unix/Unix.c Lines 194 to 199 in 1552bac !Line: 194 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/fMSX/Unix/Unix.c Lines 195 to 200 in 1552bac !Line: 195 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
esp-box-emu/components/msx/fmsx/src/fMSX/Unix/Unix.c Lines 358 to 363 in 1552bac !Line: 358 - style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation]
!Maximum character count per GitHub comment has been reached! Not all warnings/errors has been parsed! |
Description
fmsxcorefmsxcore to useshared_memorycomponentfmsxcore to execute as a cart with interruptible executionfmsxcore so that its Z80 implementation does not conflict with Genesis Z80 implementationMotivation and Context
MSX allows playing
Metal GearandMetal Gear 2: Solid Snakewhich are awesome ⚙️How has this been tested?
Build and run
mainon BOX-3-EMU hardware and ensure all emulators still work, both metal gear games can run and they both have functional save/load stateScreenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):
mg2-compressed.mp4
Types of changes
Checklist:
Software
.github/workflows/build.ymlfile to add my new test to the automated cloud build github action.