News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Quick tip: In-program debugging aid

Started by NoCforMe, September 21, 2023, 10:24:44 AM

Previous topic - Next topic

NoCforMe

Hey, I don't mind thread drift; long live thread drift!

But I do mind people missing the point. By a mile.

Let me try an electronics analogy here: what I'm describing here is like hooking up a LED to a certain signal line to see if it goes high or low.

Everyone else here is telling me I should haul out the logic analyzer, hook up dozens of probes, program the damn thing, then go through the output.

Simplicity is the keyword here ...
Assembly language programming should be fun. That's why I do it.

jj2007

Two lines:

WndProc proc uses esi edi ebx hWnd, uMsg, wParam:WPARAM, lParam:LPARAM
  inc msgCount
  deb 4, "msg", chg:msgCount
  SWITCH uMsg


NoCforMe

OK, OK; another flashing neon billboard for MasmBasic.

Which is not to say that I don't recognize the power and utility of your creation: I do. And its debugging capabilities are, I'm sure, very effective and easy to use.

I guess I'm writing for those of use here who are, for whatever reason, not users of MasmBasic, and who must "roll their own".
Assembly language programming should be fun. That's why I do it.

jj2007

Quote from: NoCforMe on September 23, 2023, 05:41:03 AMOK, OK; another flashing neon billboard for MasmBasic.

Take it as pseudocode. I hope it serves as inspiration when you "roll your own". Maybe you can make it even simpler?