Re: Stuffing chars into keyboard buffer
- Posted by Lee woo seob <wslee at HHI.CO.KR> Jun 04, 1997
- 780 views
> >Has anybody written a routine which allows you to place characters into >the keyboard buffer? > Dear Neil... 1) poke 30 into the address of 1050. 30 means the characters placed starts at address 1054 (=1024+30). 2) poke (numbers of characters multiplied by 2)+30 into address of 1052. maximum 15(16?) characters can be placed. 3) Starting from address of 1054, by the address interval of 2, poke characters you want to place. --- example code -- -- this code will place 'test' and followed return key into key buffer poke(1050,30) poke(1052,40) -- 5 characters placed poke(1054,'t') poke(1056,'e') poke(1058,'s') poke(1060,'t') poke(1062,13) ----- end of code ------- Hope this help. Lee, WooSeob