Fredex's Profile
Reputation: 1
Apprentice
- Group:
- Active Members
- Active Posts:
- 85 (0.17 per day)
- Joined:
- 16-January 12
- Profile Views:
- 2,469
- Last Active:
Mar 13 2013 09:16 PM- Currently:
- Offline
Previous Fields
- Country:
- PH
- OS Preference:
- Windows
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Honda
- Dream Kudos:
- 0
Latest Visitors
-
GunnerInc 
12 Mar 2013 - 14:10 -
AnalyticLunatic 
07 Nov 2012 - 07:31 -
cgren72 
06 Nov 2012 - 09:53 -
Atli 
23 Mar 2012 - 19:22 -
no2pencil 
22 Feb 2012 - 22:19 -
brep 
19 Feb 2012 - 10:06 -
modi123_1 
10 Feb 2012 - 07:53 -
macosxnerd101 
28 Jan 2012 - 15:41
Posts I've Made
-
In Topic: Simple Calculator
Posted 12 Mar 2013
thanks master..Ive learn alot. -
In Topic: Simple Calculator
Posted 11 Mar 2013
GunnerInc, on 12 March 2013 - 12:58 AM, said:Ok, so what is your problem with division? Did you look up the div mnemonic? What don't you understand?
storing input to registers is my problem that's why I prefer to use sub in looping to get the answer of division.
this is what I've done.
.model small .stack 10h .data prom db "Enter the 1st no.:$" promp db "Enter the 2nd no.:$" result db "The answer is$" ; num db 2 dup(?),'$' stop_num db,10,13,'$' .code mov ax,@data mov ds,ax mov ah,9 lea dx,prom int 21h mov ah,1 int 21h ; add al,30h mov bl,al ; mov cl,bl mov ah,2 mov dl,10 int 21h mov dl,13 int 21h mov ah,9 lea dx,promp int 21h mov ah,1 int 21h mov bl,al mov al,0 mov al,cl mov ch,bl try: ; add bl,num[0] sub al,bl loop try mov bl,al mov ah,2 mov dl,10 int 21h mov dl,13 int 21h mov ah,9 lea dx,result int 21h mov dl,13 int 21h mov ah,2 mov dl,bl int 21h mov ah,4ch int 21h end
what can you say?? -
In Topic: Simple Calculator
Posted 10 Mar 2013
my problem now is division. -
In Topic: Simple Calculator
Posted 10 Mar 2013
-
In Topic: Simple Calculator
Posted 8 Mar 2013
Anyone....help!Whats wrong with this code for multiplication?
.model small .stack 10h .data prom db "Enter the 1st no.:$" promp db "Enter the 2nd no.:$" result db "The answer is$" num db 2 dup(?),'$' stop_num db,10,13,'$' .code mov ax,@data mov ds,ax mov ah,9 lea dx,prom int 21h mov ah,1 int 21h mov num[0],al mov ah,2 mov dl,10 int 21h mov dl,13 int 21h mov ah,9 lea dx,promp int 21h mov ah,1 int 21h mov num[1],bl mov bl,0 ; mov ax,bx mov cx,ax ulit: add bl,num[0] ; add bl,num[1] loop ulit ; sub bl,30h mov ah,2 mov dl,10 int 21h mov dl,13 int 21h mov ah,9 lea dx,result int 21h mov dl,13 int 21h mov ah,2 mov dl,bl int 21h mov ah,4ch int 21h end
what should I add to bl in the loop?is it bl itself???thanks for the help again.
My Information
- Member Title:
- D.I.C Head
- Age:
- 19 years old
- Birthday:
- August 15, 1993
- Gender:
-
- Location:
- Romblon
- Interests:
- Programming,Sports
- Full Name:
- Fredex Rainin
- Years Programming:
- 3
- Programming Languages:
- C,C++,VB6,Assembly language
Contact Information
- E-mail:
- Click here to e-mail me
- Yahoo:
-
dexter_lab_0803@yahoo.com
- Facebook:
- Fredex
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
Fredex
24 Jan 2012 - 04:21