ASSEMBLY LANGUAGE CODE:
CNT EQU 03FD6HAPORT EQU 03FD0HBPORT EQU 03FD2HCODE SEGMENTASSUME CS: CODEORG 0START: MOV AL, 90HMOV DX, CNTOUT DX, ALJ1: MOV DX, APORTIN AL, DXMOV DX, BPORTOUT DX, ALJMP J1CODE ENDSEND START
ASSEMBLER DIRECTIVES USED:
What is assembler directive;
These are just instructions for assemble having no code.
EQU; assigns value to a variable
Segment; it is used when we are going to start aspecific segment
Assume; it tells the assembler to start the ‘cs ’from the keyword ‘code (in this specific code)’