Page 1 of 1

clear buffer problem

Posted: Sat May 30, 2009 9:17 pm
by VolTeK
i have a problem, when i execute a program (test.bin org 8500h) it will execute but when it ends, the pormpt shows like normal but when i hit enter, it executed the program again, i have tried clearing the buffer but it still kepps doing what i dont want it to do. also, after i execute the test.bin a command "vcirestart" a function the restarts my command interpreter (cmd prompt) shows up as
"" is not a file or command like nothing was in the buffer, every other command works fine though.
how can i clear my input buffer


test.bin**
org 8500h
use16
mov si, var
mov ah, 2 ;setup reg for int service
int 80h ;VolTroX inturrupt service or print
ret
var db 'Hello',0

Re: clear buffer problem

Posted: Sat May 30, 2009 9:34 pm
by NickJohnson
Well, it seems like you are just not clearing the buffer after the program is executed. When the program returns, just have the command interpreter null out the buffer... not the hardest logical connection. If it's something else, I don't think people can help you anyway - it's your OS, and you're the one who knows how it works.