home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
181.img
/
TASM-101.ZIP
/
USE_ES.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-10-31
|
744b
|
18 lines
DOSSEG
.MODEL SMALL
.STACK 200h
.DATA
OutputChar DB 'B'
.CODE
ProgramStart:
mov dx,@data
mov es,dx ;set ES to the .DATA segment
mov bx,OFFSET OutputChar ;point BX to the offset of OutputChar
mov dl,es:[bx] ;get the character to output from the
; segment pointed to by ES
mov ah,2 ;DOS display output function #
int 21h ;invoke DOS to print character
mov ah,4ch ;DOS terminate program function #
int 21h ;invoke DOS to end program
END ProgramStart