Skip to content

Conversation

@flama12333
Copy link
Contributor

@flama12333 flama12333 commented Nov 8, 2025

I had to change uint8_t to 7 at ay2_port_b_w.
and output_finder m_leds to 31.

the led still blinking when error happens.
I forgot to add. to prevent error during compiler.
@flama12333 flama12333 requested a review from ajrhacker November 8, 2025 22:53
@ajrhacker
Copy link
Contributor

ajrhacker commented Nov 8, 2025

The point still stands. To be specific, FUNC(p3_port_w) should be changed to FUNC(marywu_state::p3_port_w).

../../../../../src/mame/misc/marywu.cpp:200:31: error: must explicitly qualify name of member function when taking its address
  200 |         maincpu.port_out_cb<3>().set(FUNC(p3_port_w));
      |                                      ^    ~~~~~~~~~
      |                                           marywu_state::

Updated output finder 48  to 40 and  uint8_t i = 0; i < 8; i++) to  (uint8_t i = 0; i < 0; i++)
void marywu_state::p3_port_w(uint8_t data) // 1 led are used.
{
for (uint8_t i = 0; i < 8; i++)
for (uint8_t i = 0; i < 0; i++)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes the loop to be executed zero times, defeating the whole purpose of adding this as a callback.

Since external memory is hooked up to the MOVX space, it's unlikely P36 and P37 are used to drive LEDs, but some of the lower 6 bits might be.

@flama12333 flama12333 changed the title Hook up the led 31 Hook up the led 31 in hw - led 30 in layout Nov 8, 2025
@flama12333
Copy link
Contributor Author

Currently in draft.

Sorry for causing the confusion.
@flama12333 flama12333 changed the title Hook up the led 31 in hw - led 30 in layout Checking and change uint8_t Nov 9, 2025
@flama12333 flama12333 changed the title Checking and change uint8_t Checking and change uint8_t at ay2_port_b_w Nov 9, 2025
Change 	output_finder<40> m_leds; to	output_finder<31> m_digits;
change for (uint8_t i = 0; i < 8; i++) to for (uint8_t i = 0; i < 7; i++)
@flama12333 flama12333 changed the title Checking and change uint8_t at ay2_port_b_w Fix led 30 layout issues. Nov 9, 2025
@flama12333 flama12333 requested a review from ajrhacker November 9, 2025 01:44
@flama12333
Copy link
Contributor Author

I had to remove p3_port_w due to an mistake without checking something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants