Webcmp bl,'a' int 21h int 21h jae ss2 jmp loi sub bl,30h cmp bl,cl cmp bl,39h jae thoat jbe thoat xchg bl,cl jbe thoat2 mov ah,2 mov ah,2 loi: Mov ah,9 mov dl,'1' mov dl,'-' lea dx,tb3 int 21h int 21h int 21h ss2: cmp bl,'f' sub bl,10 thoat: thoat: jmp nhap mov dl,bl sub bl,cl mov ah,2 add bl,30h int 21h mov ah,2 sub bl,11h mov dl,bl jmp thoat3 Web8086 language org 100h include 'emu8086.inc' mov cx, 04h inp: mov ah, 01h int 21h sub al, 30h mov bl, al mov ax, dx mov dx, 10h mul dx mov bh, 00h add ax, bx mov dx, ax loop inp mov ax, dx mov dx, 0000h mov bx, 64h mul bx mov bx, 100h div bx mov cx, ax mov dx, 0000h mov bx, 400h div bx jz yes mov ax, cx mov This problem has been solved!
BCD to 7 Segment Code Conversion - ProjectsGeek
WebFeb 25, 2016 · add al,30h ;sommiamo 30(esadecimale) per avere il codice ascii di 5(35h) mov bl,ah ;salviamo il resto in bl mov ah,02h mov dl,al int 21h ;stampiamo la seconda cifra(5) add bl,30h ;sommiamo 30h per ottenere il codice ascii di 5(35h) mov ah,02h mov dl,bl int 21h ;stampiamo l'ultima cifra mov ah,4ch int 21h end. advertisement. add … Web;display it ;calculate the sum SUB BL,30h ;change BL to a right value for calculation SUB CL,30h ;change CL to a right value for calculation ADD BL,CL; add the numbers up and store the sum in BL ADD BL,30h ;change the result in BL to hex value ;display the result MOV AH,2 ;display character function MOV DL,BL ;character is the one stored in BL … the pig and the butcher london
Printing out a number in assembly language? - Stack Overflow
WebJun 28, 2010 · mov al,bl;move bl to al to make it the dividend, the sum is stored in bl sub al,30h;subtract 30h to make it number mov bl,10;move 10 to bl. div bl;divide to get the … WebApr 11, 2024 · 1 1 MOV AH,01H/INT 21H piece stores input in AL, MOV BL,AL/SUB BL,30H/MOV CL,BL sets CL to input - 30H, DISP:/DEC CL/JNZ DISP is a cycle on CL value. … Webmov bl, count ; 8-bit memory to register mov count, 26 ; 8-bit immediate to memory mov bl, 1 ; 8-bit immediate to register ... arrayB BYTE 10h, 20h, 30h, 40h, 50h arrayW WORD 100h, 200h, 300h arrayD DWORD 10000h, 20000h.code main PROC; MOVZX mov bx, 0A69Bh ; Initialize BX reg movzx eax, bx ; EAX = 0000A69Bh the pig and the lady honolulu menu