; PROGRAM: SUM OF CUBES OF FOUR NUMBERS
data1 segment
count equ 0004h
data1 ends
code1 segment
assume cs:code1,ds:data1
start:mov ax,data1
mov ds,ax
sub ax,ax
mov si,0000h
mov bl,0000h
mov cl,count
forward: mov al,cl
mul al
mul cl
add bl,al
dec cl
jnz forward
mov [si],bh
mov [si+1],bx
mov ah,4ch
int 21h
code1 ends
end start
end
;RESULT1: 4X4X4 = 40
; 3X3X3 = 1B
; 2X2X2 = 08
; 1X1X1 = 01 +
; --------------
; = 64
; --------------
back to itmp lab