Jump to content
ELFORUM - Forumul electronistilor

Rutina de tratare a intreruperii

Guest FrTz

Recommended Posts

Salut. Am urmatoarea problema. Cu ajutorul unei rutine de intrerupere a tastaturii as vrea sa afisez codul scan si ascii al unei taste apasate. (limbaj C)Stiu urmatoarele lucruri :- cererea mea de intrerupere va aparea la fiecare apasare si eliberare de tasta- codul scan se citeste de la adresa 60h- insa stiu ca calculatorul salveaza codul scan si cel ascii al tastei apasate intr-o coada circulara ce are 32 octeti (adica se pot memora 16 taste) incepand cu 0000:0041Eh- pointerul la pozitia curenta este 0000:0041Ch- la salvare : OH OL codul scan cod ascii- problema e cum afisez codurile acesteaPS : Am reusit sa afisez codul scan dar nu cum cere enuntul problemei adica din bufferul tastaturii ci pur si simplu cand citeam tasta cu var=inportb(60) pe al doilea rand o afisam simplu cu printf

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines