flat assembler
Message board for the users of flat assembler.
Index
> DOS > bell |
Author |
|
vbVeryBeginner 12 Nov 2005, 07:39
Code: org 100h mov ah,0ah mov dx,buf int 21h mov ah,9 mov dx,buf int 21h mov ah,4ch int 21h buf db 0xF ;store max length we want to accept db ? ;how many written? rb 0xF ;place to store the input hope this could make you clear a bit. the bell sounds because when you input the buffer, you miss the termination character -> "$"
|
||||||||||
12 Nov 2005, 07:39 |
|
vbVeryBeginner 12 Nov 2005, 07:59
Code: mov ah,9 mov dx,buf mov [buf],10 mov [buf+1],13 int 21h add the CR LF so you can really see the tex printed out Code: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Administrator>d: D:\>b fasm rocks!$ fasm rocks! D:\> |
|||
12 Nov 2005, 07:59 |
|
estrang 12 Nov 2005, 09:56
It wont print the output if the input doesnt get to the length limit. How can we solve that??
Code: org 100h mov ah,0ah mov dx,buf int 21h mov ah,9 mov dx,buf mov [buf],10 mov [buf+1],13 int 21h mov ah,4ch int 21h buf db 0xF ;store max length we want to accept db ? ;how many written? db 0xF dup( 00h ), 24h ;Create buffer i guess?? Is there a way of creating buffer without using dup() ?? I hate seeing function looking stuffs like this in assembly i dont know why Is this really part of assembly or is it just a function that comes with fasmm?? *edited [code] tag *Looked at hex dump. So dup() is for shorcut for typing consecutive letters. Get it now. |
|||
12 Nov 2005, 09:56 |
|
Matrix 12 Nov 2005, 21:52
hello, xddxogm3
i think i can help with that bell ringing for you, in your pc, locate the pc speaker, it is enough to cut one of them, but cut both to make sure there used to be a red and a black wire. then it wont ring. |
|||
12 Nov 2005, 21:52 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.