Forum: Assembly Apr 30th, 2007 |
| Replies: 2 Views: 1,256 Scanf("%d",&n); /*Reading the number*/
Printf("The prime factors of the given number are");
for (i =1; i<=n;i++)
{
if(n%i==0)
printf("%d\t",i);
} |
Forum: Assembly Apr 27th, 2007 |
| Replies: 14 Views: 8,095 .data
short REAL4 0.1,1.0,10.0, 100.5, 1000.0, 400.0, 40.5, 60.6,8.9,10.1
count db 0ah
.code
Lea si, short
Mov cl, count
Loop1:
;moving the element to to ax register
Mov ax, [si]
;Push ax... |
Forum: Assembly Apr 20th, 2007 |
| Replies: 14 Views: 8,095 .data
short REAL4 0.1,1.0,10.0, 100.5, 1000.0, 400.0, 40.5, 60.6,8.9,10.1
count db 0ah
.code
Lea si, short
Mov cl, count
Loop1:
;moving the element to to ax register
Mov ax, [si]
;Push ax... |