in assembly language how do i place numbers into an array
numarray db 5 dup(?)
firstnum db 0
mov ah,1
int 21h
mov firstnum,al
mov bx,offset numarray
mov [bx],firstnum
now i aint sure if a variable can be placed into an array like this.. does it have to come from a register like al?
if i wanted to take in 5 numbers how do i move through the array to place them in? do i just inc bx ?
numarray db 5 dup(?)
firstnum db 0
mov ah,1
int 21h
mov firstnum,al
mov bx,offset numarray
mov [bx],firstnum
now i aint sure if a variable can be placed into an array like this.. does it have to come from a register like al?
if i wanted to take in 5 numbers how do i move through the array to place them in? do i just inc bx ?