+ Reply to Thread
Results 1 to 2 of 2

Thread: simple calculation assembly program

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    35

    simple calculation assembly program

    I want to calculate the result of 5^4 (5*5*5*5)

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    40
    Use the simple code below :
    Code:
    .model small
    .data
    a dw 5
    b dw 3
    .code
    start:
    	mov ax,@data
    	mov ds,ax
    	mov cx,b
    	mov ax,a
    cccc:	mul a
    	loop cccc
    	mov ah,4ch
    	int 21h
    end start

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts