Control Pins C0, C1

Discussion in 'Programmer's Corner' started by farifari, Jun 24, 2013.

  1. farifari

    Thread Starter New Member

    Jun 24, 2013
    1
    0
    Dear fans,
    I am feeling a problem, code given below set my problem.

    Case 1:


    increment: add al, 1

    mov dx, 0x37A
    mov al, 1

    ; problem here arises as (mov al, 1)that i want to set bit 1 to

    ;control pin C0 to one how i can set it.


    out dx, al



    cmp al, 21
    jne increment

    jmp terminate:



    Case 2:

    decrement: sub al, 0

    mov dx, 0x37A
    mov al, 0
    out dx, al

    ; problem here arises as (mov al, 0)that i want to set bit 0 to

    ;control pin C1 to zero how i can set it.



    cmp al, 21
    jne decrement

    jmp terminate:
    i am too much confuse kindly solve this issue.
     
Loading...