Documente Academic
Documente Profesional
Documente Cultură
MASM
Procedure:
start->run->type cmd )
4.In the command window type the directory name after that change the directory to 8086(masm) after that type edit
5.After changing directory type edit then you get one window in that window you can write a program
click: file->save->exit [again we enter the [this will display the error report]
8.Type: link filename,,; [This will create a list file you can see this inside the masm(8086)software] Note : Here we no need to use stack segment so no need to worry about stack error
8.Type :
13.type : e 1200[see output in corresponding address] use space bar to see next output value
16. down loading procedure Note: dont use these command while down loading
Mov ah, 4ch Int 21h [These commands are used to see the results system itself]
18.press esc key to abort 19.now in micro 86 kit select receiving mode(ie) type si 1000(starting address) then press enter key. Then the kit is ready to receive data and press any in the host to start transmission. During transmisson the message display as , transmission progress. Press esc to abort. Now binary files are downloaded to kit.
Write an alp to read scan code and character code from a keyboard
Code segment Assume cs: code, ds: code Org 1000h Mov ah, 0h Int 16h Mov si, 1200h Mov [si], al Inc si Mov [si], ah Mov ah, 4ch Int 21h ends End
Code
-----------------------------------------------------------------------------------------
mov ah,4ch int 21h code ends data segment org 1200h db 'vi.asm' data ends end
File deletion
code segment
assume cs:code,ds:code org 1000h mov ax,data mov ds,ax mov ah,41h mov dx,1200h int 21h mov ah,4ch int 21h code ends data segment org 1200h
code data
data
Write an alp to send an 8 bit data to serial port code segment assume cs:code,ds:code org 1000h mov ah,00h mov dx,0 mov al,0e2h int 14h mov ah,01h mov al,"A" mov dx,0 int 14h mov ah,4ch int 21h code ends end
The baud rate is 9600 bps The number of the port is defined in register DX
code segment assume cs:code,ds:code org 1000h mov ah,00h mov dx,0 mov al,"A" int 17h mov ah,4ch int 21h code ends
end Write an alp to read the CMOS time using dos calls code segment assume cs:code,ds:code org 1000h mov ah,02h int 1ah mov si,1200h mov [si],ch inc si mov [si],cl inc si mov [si],dh
mov ah,4ch int 21h code ends end Write an alp to create a directory using dos calls
code segment assume cs:code,ds:data org 1000h mov ax,data mov ds,ax mov ah,39h mov dx,1200h int 21h mov ah,4ch int 21h code ends data segment org 1200h db 'man' data ends end
Write an alp to show the mouse pointer in the dos window screen code segment assume cs:code,ds:data org 1000h mov ax,1 int 33h mov ah,4ch int 21h code ends end
Addition:
code segment assume cs:code,ds:code org 1000h mov ax,1234h mov bx,1234h add ax,bx mov si,1200h mov [si],ax mov ah,4ch int 21h code ends end Result: e 1200=68
24