1789

Need help!

Assembling file: lab.asm**Error** lab.asm(174) SHOW(1) Value out of range**Error** lab.asm(182) SHOW(1) Value out of range**Error** lab.asm(193) SHOW(1) Value out of range**Error** lab.asm(193) FRAC(7) Value out of range**Error** lab.asm(196) SHOW(1) Value out of range**Error** lab.asm(196) FRAC(7) Value out of range**Error** lab.asm(199) SHOW(1) Value out of range**Error** lab.asm(199) FRAC(7) Value out of range**Error** lab.asm(202) SHOW(1) Value out of range**Error** lab.asm(202) FRAC(7) Value out of range**Error** lab.asm(205) SHOW(1) Value out of range**Error** lab.asm(205) FRAC(7) Value out of range**Error** lab.asm(208) SHOW(1) Value out of range**Error** lab.asm(208) FRAC(7) Value out of range**Error** lab.asm(211) SHOW(1) Value out of range**Error** lab.asm(211) FRAC(7) Value out of range**Error** lab.asm(214) SHOW(1) Value out of range**Error** lab.asm(214) FRAC(7) Value out of rangeError messages: 18Warning messages: NonePasses: 1Remaining memory: 417k_____________________________________________source code:D:\anul2\TASM2\BIN>type lab.asmmodel smallstack 512.data msg1 db "Sirotinschi Eugen $" msg2 db "hex - $" msg3 db "oct - $" msg4 db "bin - $" msg5 db "BCD - $".codestart: mov ax,@data mov ds,axnewline macro mov dx,0ah mov ah,02h int 21h mov dx,0dh int 21hendmshowm macro m mov dx,offset m mov ah,09h int 21hendmshow macro b,num local ciclu1 local ciclu2 local ciclu3 local ciclu4 local k local k1 local k2 local k3 local k4 local k5 local k6 mov cx,num mov si,b cmp cx,0 jl k2 jmp k3k2: cmp si,2 jne k4 jmp k5k4: neg cx mov dx,2dh mov ah,02h int 21hk3: mov ax,cx cwd xor si,si mov bx,bciclu1: inc si div bx push dx xor dx,dx cmp ax,0 jg ciclu1 mov cx,siciclu2: pop ax mov dx,ax add dx,30h cmp dx,39h jg k jmp k1k: add dx,27hk1:mov ah,02h int 21hloop ciclu2 mov dx,20h mov ah,02h int 21h jmp k6k5: mov ax,cx mov dx,0 xor si,siciclu3: inc si mov bx,2 div bx push dx xor dx,dx cmp ax,0 jne ciclu3 mov cx,siciclu4: pop ax mov dx,ax mov ah,02h add dx,30h int 21hloop ciclu4 mov dx,20h mov ah,02h int 21hk6:endmfrac macro num,b,c local k local k1 local ciclu mov dx,08h mov ah,02h int 21h mov dx,2eh mov ah,02h int 21h mov ax,num cwd mov cx,cciclu: mov bx,b mul bx mov bx,10000 div bx mov si,dx mov dx,ax add dx,30h cmp dx,39h jg k jmp k1k: add dx,27hk1:mov ah,02h int 21h mov ax,siloop cicluendmreal macro num1,num2,b show b,num1 frac num2,b,4 mov dx,20h mov ah,02h int 21hendm;MAIN showm msg1 newline;Afisarea numarului intreg npn show 10,11511 newline showm msg2 show 16,11511 newline showm msg3 show 8,11511 newline showm msg4 show 2,11511 newline;Afisarea numarului intreg -npn show 10,-11511 newline showm msg2 show 16,-11511 newline showm msg3 show 8,-11511 newline showm msg4 show 2,-11511 newline;Afisarea in BCD a numarului npnp show 10,115115 showm msg5 show 2,9 show 2,6 show 2,9 show 2,6 newline;Afisarea in BCD a numarului -npnp show 10,-115115 showm msg5 mov dx,2dh mov ax,02h int 21h show 2,9 show 2,6 show 2,9 show 2,6 newline;Afisarea numarului real npnp,npnp real 115115,115115,10 newline showm msg3 real 115115,115115,16 newline showm msg4 real 115115,115115,8 newline showm msg5 real 115115,115115,2 newline;Afisarea numarului real -npnp,npnp real -115115,115115,10 newline showm msg3 real -115115,115115,16 newline showm msg4 real -115115,115115,8 newline showm msg5 real -115115,115115,2 newline mov ax,4ch int 21hend startUnde trebui a sa modific ca sa scap de errori ?
0