;******************************************************
;
; THIS IS AN EXAMPLE ROUTINE FOR THE 8086 PROCESSOR.

; THERE ARE NUMEROUS VERY POWERFUL MACRO-ASSEMBLERS
; AVAILABLE FOR THE 8086 FAMILY, THE MOST FAMOUS OF
; WHICH CAN BE PURCHASED FOR LESS THAN CROSS-32
; FROM A LARGE MAIL ORDER DISTRIBUTOR.

; HOWEVER, IN THE NAME OF COMPLETENESS A TABLE FOR
; THE 80186 IS INCLUDED, AS THE INSTRUCTION SET IS
; DEFINED IN INTEL'S iAPX 86/88 PROGRAMMER'S
; REFERENCE MANUAL.

; TO DISTINGUISH BETWEEN BYTE AND WORD OPERATIONS
; UNIVERSAL CROSS-ASSEMBLER'S 80186 TABLE USES A
; TRAILING "B" ON ALL MNEMONICS WHERE A BYTE
; OPERATION IS DESIRED.  SEE movb BELOW.

; TO DISTINGUISH BETWEEN NEAR AND FAR ROUTINES
; UNIVERSAL CROSS-ASSEMBLERS RECOMMENDS THAT THE
; USER INCLUDE THE WORD NEAR OF FAR IN THE
; ROUTINE NAME.

           CPU     "80186.TBL"     ; CPU TABLE
           HOF     "BIN16"         ; HEX OUTPUT FORMAT

start:     org     0100H
;
;
; CLEAR SCREEN ROUTINE
cls_near:  mov     cx,0
           mov     dx,2479h
           movb    bh,7
           mov     ax,600h
           int     10h
           ret
;
;
           end     start
