If you're programming this in your own OS (A lot of the replies earlier assumed this was in a hosted environment), then you should DEFINATELY use static allocation with a max size, thus:
it worked fine thank you but i am going to attach it to the IRQ when the user hit a key the handler search for what function is in use
because i still have problem with this
while (! (inportb(0x64) & 0x1) ) ;
my speed on the keyboard affect what appears on the screen
JamesM wrote:If you're programming this in your own OS (A lot of the replies earlier assumed this was in a hosted environment), then you should DEFINATELY use static allocation with a max size
Where did you get that logic from? If you have dynamic allocation, use it. If you do not, then use static allocation.