soal : membuat mode input 1 (Port B)
Porta equ 60h
Portb equ 61h
Portc equ 62h
CW equ 63h
Bit5 equ 20h
Read proc near
In al,Portc ; ambil IBF
Test al,Bit5 ; tes IBF
Jz Read ; jika IBF = 0
In al, Portb ; baca data di Port B
Ret
Read endp
soal : buat rangkaian keypad
No comments:
Post a Comment