1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
DATA SEGMENT
message_main db "programme principale en cours$",10,13
message_rout db "oh la 1ch$"
DATA ENDS
pile SEGMENT stack
DW 256 dup(?)
TOS label word
pile ENDS
CODE SEGMENT
ASSUME ds:DATA
notre_int: mov bx,data
mov ds,bx
mov ah,9h
mov dx,offset message_rout
int 21h
iret
derout proc near
mov al,1ch
mov ah,25h
mov bx,seg notre_int
mov ds,bx
mov dx,offset notre_int
int 21h
ret
derout endp
mess proc near
mov bx,data
mov ds,bx
mov ah,9h
mov dx,offset message_main
int 21h
mess endp
ASSUME cs:CODE,ds:DATA,ss:pile,es:DATA
start:
MOV AX, data
MOV DS, AX
MOV AX, pile
MOV SS, AX
MOV SP, offset TOS
call derout
mov cx,0ffffh
bouc_ext:mov si,0ffffh
call mess
bouc_int:dec si
jnz bouc_int
loop bouc_ext
mov ax, 4c00h
int 21h
CODE ends
end START |
Partager