Author Topic: Crazy sounds  (Read 760 times)

jj2007

  • Member
  • *****
  • Posts: 7756
  • Assembler is fun ;-)
    • MasmBasic
Re: Crazy sounds
« Reply #15 on: May 14, 2017, 01:25:00 AM »
It replaces the 19 years old crap you have there mspdb50.dll

And let's your code crash on older machines :bgrin:

aw27

  • Member
  • ****
  • Posts: 855
  • Let's Make ASM Great Again!
Re: Crazy sounds
« Reply #16 on: May 14, 2017, 01:37:37 AM »
It replaces the 19 years old crap you have there mspdb50.dll

And let's your code crash on older machines :bgrin:
 

True, no more waivers for bad code - let it crash everything.   :greenclp:

felipe

  • Member
  • ***
  • Posts: 374
  • assemble the unassembled.
Re: Crazy sounds
« Reply #17 on: May 14, 2017, 03:45:59 AM »
But, what's wrong with the other registers, such as ecx
eax, edx and ecx are volatile, i.e they will be used within the Beep call without preserving their state on entry. ebx is perserved. This is what the stdcall specification says!

I didn't see this reply before. Thanks a lot.  :icon14:
I wasn't aware of this. I only knew that the parameters are passed (in this convention) in opposite order, that the function called cleans the stack and that the return value is in eax.
Thanks again,  :t. I have to keep learning.  :greenclp:
Felipe.

felipe

  • Member
  • ***
  • Posts: 374
  • assemble the unassembled.
Re: Crazy sounds
« Reply #18 on: May 14, 2017, 04:05:24 AM »
If you understood my example you could see that I took all the care about that but knowing what the API calls would do.

Now i know what the USES directive does.  :icon_mrgreen:
Felipe.