News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Dos Beeps

Started by oex, March 04, 2010, 02:58:18 PM

Previous topic - Next topic

oex

I'm probably doing something really bad :lol but every now and then when I print data to the dos window it beeps.... One example is DA07h It is 2 bytes that seems to be the issue or maybe DA070000 but why does it do this, is it a WORD error and am I potentially creating random unexpected electronic lifeforms which will breed infecting first my system, then the www eventually evolving into grey goe which will wipe out the universe? If the latter which board do I post on?
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

BlackVortex

Pics or it never happened !

Post example code + binary plz.

oex

Attached

mov edi, alloc(8)
mov eax, 2010
mov [edi], eax
print edi
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

sinsi

Printing chr 07 to the console prints the BEL character, which is a beep.
Light travels faster than sound, that's why some people seem bright until you hear them.

oex

Nice one I thought that might be it after I posted.... Is there any way to stop it? Not that important if it's only a beep (and I'm assuming no other characters printed to the dos window cause issues).... I've written my own debugger of sorts, so it's more an annoyance than anything else If I print normal text to the screen it wouldnt happen.
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

BlackVortex

The console output must not have the ENABLE_PROCESSED_OUTPUT flag, so use :
invoke SetConsoleMode,[h_console_out], NULL

Info :
http://msdn.microsoft.com/en-us/library/ms686033%28VS.85%29.aspx


It printed (byte 07) :


:bg

oex

We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv