Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionMov BX, 3030h Debut: Cmp AL,10h Jb Suite Sub AL,10h Inc BH Cmp BH,3Ah Jne Debut Mov BH,'A' Jmp Debut Suite Cmp AL,1 Jb Fin Dec AL Inc BL Cmp BL,3Ah Jne Suite Mov BL,'A' Jmp Suite Fin:
.model tiny .386 le_segment_a_dumper equ 0000h .code org 100h start: push cs push cs pop es pop ds jmp debut tab db "0123456789ABCDEF" conv db "00 00 00 00 00 00 00 00 " db "00 00 00 00 00 00 00 00 " asc db "................" db 13, 10, '$' blank db "00 00 00 00 00 00 00 00 " db "00 00 00 00 00 00 00 00 " db "................" debut: cld push ds pop es mov ax, le_segment_a_dumper mov ds, ax mov di, offset conv xor si, si mov bx, offset tab mov cx, 16384 ; 65536 / 4 principale: lodsd mov edx, eax push ds push cx push es pop ds mov ax, 16384 sub ax, cx push ax and ax, 03h shl ax, 2 mov cx, 4 boucle_conv: push ax push di mov di, 4 sub di, cx add di, ax add di, offset asc mov al, dl cmp al, ' ' jb translate cmp al, 128 jae translate cmp al, '$' je translate stosb translate: pop di shr al, 4 xlat stosb mov al, dl and al, 0Fh xlat stosb shr edx, 8 inc di pop ax loop boucle_conv pop ax inc ax test ax, 3 jnz suivant mov di, offset conv push dx mov ah, 9 mov dx, di int 21h pop dx pusha mov si, offset blank mov cx, debut - blank rep movsb popa suivant: pop cx pop ds loop principale mov ax, 4C00h int 21h end start
tab db "0123456789ABCDEF" mov al, valeur mov bx, offset tab xlat
mov al, ds:[si] dec si
mov al, ds:[si] inc si