Sponsored Links


Results 1 to 3 of 3

Thread: required solution of cs401 assignment No 03.!

  1. #1

    99 required solution of cs401 assignment No 03.!

    Sponsored Links1



  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    ok....................

  3. #3
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    Code:
    ; show scancode on external LEDs connected through parallel port
    [org 0x0100]
    jmp  start
    
    oldisr:       dd   0                  ; space for saving old ISR
    
    ; keyboard interrupt service routine
    kbisr:        push ax
    push dx
    
    in   al, 0×60           ; read char from keyboard port
    mov  dx, 0×378
    out  dx, al             ; write char to parallel port
    
    pop  ax
    pop  dx
    jmp  far [cs:oldisr]    ; call original ISR
    
    start:        xor  ax, ax
    mov  es, ax             ; point es to IVT base
    mov  ax, [es:9*4]
    mov  [oldisr], ax       ; save offset of old routine
    mov  ax, [es:9*4+2]
    mov  [oldisr+2], ax     ; save segment of old routine
    cli                     ; disable interrupts
    mov  word [es:9*4], kbisr ; store offset at n*4
    mov  [es:9*4+2], cs     ; store segment at n*4+2
    sti                     ; enable interrupts
    
    mov  dx, start          ; end of resident portion
    add  dx, 15             ; round up to next para
    
    and keyboard comprisan code for this problems are
    
    e = 0×012
    
    r= 0×13
    
    f= 0×21
    
    s=0x1f

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 06-17-2011, 09:22 PM
  2. Replies: 0
    Last Post: 06-17-2011, 09:17 PM
  3. cs401 assignment 03 required
    By harib raza in forum Mcs
    Replies: 13
    Last Post: 06-11-2011, 03:08 AM
  4. cs401 assignment no 3 solution required
    By mc100200446 in forum Get Solution In 24 Hour
    Replies: 2
    Last Post: 06-09-2011, 11:22 PM
  5. CS401 assignment #1 fall 2010 solution required due date 08 Nov2010
    By falcon in forum Get Solution In 24 Hour
    Replies: 1
    Last Post: 11-28-2010, 02:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft