Empty Keyboard buffer

By Maggoo

Paragon (1196)

Maggoo's picture

02-09-2003, 00:05

Just a stupid question: Is there a way to empty the keyboard buffer (asm call) ? I want to avoid getting all the rubbish entered when I return to DOS1/DOS2 after I exit my pgm.

Sounds simple but I can't find it...

Login or register to post comments

By Guillian

Prophet (3265)

Guillian's picture

02-09-2003, 00:28

Have you tried #156 BIOS call? Maybe it'll work.

By anonymous

incognito ergo sum (109)

anonymous's picture

02-09-2003, 00:45

ld hl,(0F3F8h)
ld (0F3FAh),hl

By Maggoo

Paragon (1196)

Maggoo's picture

02-09-2003, 20:43

ld hl,(0F3F8h)
ld (0F3FAh),hl

Totally working !

Thanks to both for the quick answer !