j'ai écrit la partie qui change la couleur du texte, mais je ne peux pas trouver un moyen de changer la couleur d'arrière-plan, ce code est pour l'assemblage de tasm:asm changement cmd couleur de fond
model small
stack 256
.data
ent db 0ah,0dh,'$'
array db 2,4,5,6
db 7,8,9,5
db 1,2,3,4
db 5,6,7,8
temp dw 0
.code
main :
mov ax,@data
mov ds,ax
mov ah, 06h
mov al, 0
mov cx, 0
mov dh, 79
mov dl, 79
mov bh, 4h
int 10h
C'est une ma code mais cela ne fonctionne pas:
mov ah, 0bh
mov bh, 01h
mov bl, 2h
int 10h
mov ah, 02h
mov dl, 34h
int 21h
mov ax,4c00h ; exit from program
int 21h
end main
merci beaucoup cela fonctionne très bien –