As a part of my homework I need to initialize two one dimensional arrays, every with 10 2B terms, to multiply every even term with 2. I found some codes, but I dont understand part of initializing arrays in memory.
In next part of example, after this queastion, what does it mean
- does it moves only address of first term in array
- or it moves first element in array
AX(would that be possible in my case, because of size of
AX, I have dw type of data?)
Is it necessarry to define only arrays in
DATA SEGMENT if address is used as in question above (I need to find max and min element and according to that plan to define also
min_niz1 dw ? and
max_niz1 dw ? in data segment, is that possible if I am using
What does it mean
MOV SI, OFFSET TABELA and
MOV DI, OFFSET TABELA1, would that move offset address in
DI and what will be in
PODACI SEGMENT 'DATA' TABELA DB 3Fh, 06h, 5Bh, 4Fh, 66h, 6Dh, 7Dh, 27h, 7Fh, 6Fh TABELA1 DB 3Fh, 05h, 5Bh, 04h, 03h, 6Dh, 7Dh, 27h, 01h, 6Fh PODACI ENDS PROGRAM SEGMENT 'CODE' ASSUME CS:PROGRAM,DS:PODACI START: MOV AX,PODACI MOV DS,AX MOV SI,0 MOV DI, 0 MOV CX, 10 MOV SI, OFFSET TABELA MOV DI, OFFSET TABELA1 petlja: MOV AL, [SI] MOV BL, [DI] CMP AL, BL JNZ nije INC DX nije: INC SI INC DI loop petlja PROGRAM ENDS END START
As second part, I need to multiply even terms in arrays with 2, is that possible with this part of code which is below?
mov ax,niz1[di] add ax,ax mov niz1[di],ax
I dont know is that correct way to use only even terms of array, and to put back new value in my array?
even: MOV DI, 0 mov ax,niz1[di] add ax mov niz1[di],ax inc di inc di cmp di,11 jle even:
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!