flat assembler
Message board for the users of flat assembler.

Index > Main > Newbie beep question

Author
Thread Post new topic Reply to topic
Ren



Joined: 09 Jun 2007
Posts: 11
Ren
Hello,

I needed BEEP in console mode and used:

import kernel32,\
ExitProcess,'ExitProcess',\
Beep,'Beep'

with invoke Beep,800,250

but I have a slowdown and no Beep?

Greetings,
Ren


Last edited by Ren on 07 Aug 2007, 09:01; edited 2 times in total
Post 07 Aug 2007, 07:07
View user's profile Send private message Reply with quote
Ren



Joined: 09 Jun 2007
Posts: 11
Ren
Anyway, when I need those simple utilities like cls or clrscr, beep...
for console mode, where do I look?

Ren
Post 07 Aug 2007, 07:50
View user's profile Send private message Reply with quote
Yardman



Joined: 12 Apr 2005
Posts: 245
Location: US
Yardman
[ Post removed by author. ]


Last edited by Yardman on 04 Apr 2012, 02:27; edited 2 times in total
Post 07 Aug 2007, 08:21
View user's profile Send private message Reply with quote
Ren



Joined: 09 Jun 2007
Posts: 11
Ren
Hello Yardman,

Thanks, my hardware had a problem.
Everything works now, Beep I mean.
Could not answer before, fasm was down.
Do You know what to use for a clearscreen in console mode?

Greetings,
Ren
Post 08 Aug 2007, 13:22
View user's profile Send private message Reply with quote
DJ Mauretto



Joined: 14 Mar 2007
Posts: 464
Location: Rome,Italy
DJ Mauretto
Quote:

Do You know what to use for a clearscreen in console mode?

Code:
;************ 
;* CLS.asm * 
;************ 

format pe console 

include 'win32ax.inc'  

.code 

start: 

    cinvoke system,"cls"       ; put here any Dos Command try with Dir and so on
    invoke  ExitProcess,0 

data import 

  library kernel32,'kernel32.dll',\ 
          msvcrt,'msvcrt.dll' 

  import kernel32,\ 
         ExitProcess,'ExitProcess'  

  import msvcrt,\  
         system,'system' 

end data     
Post 08 Aug 2007, 13:54
View user's profile Send private message Reply with quote
Ren



Joined: 09 Jun 2007
Posts: 11
Ren
Thank You very much DJ Mauretto
I did not know that it was possible to use dos commands with
fasm!

Greetings,

Ren
Post 08 Aug 2007, 17:40
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.