hang tuah 0 Report post Posted January 25, 2007 Salam suma, sy nk mnta tlg. Actually sy msh bru dlm assembly language ni. Sy nk try to do assembly code to perform simple arithmetic. mslhnya sy x reti nk display kn ans utk arithmetic tu. cuba korg tgk program nie, tp yg ni utk perform addition je:.Model Small.Stack 200h.Data message1 db 'enter number1 $' int1 db 32,33 dup (0) message2 db 10,13, 'enter number2 $' int2 db 32,33 dup (0) message3 db 10,13, 'plus become $' ans db 32,33 dup (0).CODESTART:mov ax,seg message1mov ds,axmov dx,offset message1mov ah,09hint 21hmov dx,offset int1mov ah,0Ahint 21hmov ax,seg message2mov ds,axmov dx,offset message2mov ah,09h int 21hmov dx,offset int2mov ah,0Ahint 21hmov al,int1add al,int2mov [ans],almov ah,09hmov dx,offset message3int 21hmov byte ptr [bx+di], '$' mov dx,dimov ah,09hint 21hmov ax,4c00hint 21h;END STARTbleh x sapa2 genius kt luar sna buat correction tuk program ni. bleh ekk..., pastu bgtau code utk display ans on th screen ! Quote Share this post Link to post Share on other sites