clear buffer problem

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

clear buffer problem

Post 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
User avatar
NickJohnson
Member
Member
Posts: 1249
Joined: Tue Mar 24, 2009 8:11 pm
Location: Sunnyvale, California

Re: clear buffer problem

Post 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.
Post Reply