Dev Answers
Search anything globally...
Home
Community
Collections
Tags
Profile
Ask a question
Log In
Sign Up
Loading...
Hot Questions
Popular Tags
? Questions
? Questions
? Questions
? Questions
Dev Answers
Search anything globally...
Home
Community
Collections
Tags
Profile
Ask a question
Loading...
Hot Questions
Popular Tags
? Questions
? Questions
? Questions
? Questions
Answers
Write your answer here
How can I set the starting point of an array at memory address 100h plz?
asked 1 year ago
1 Answers
11 Views
Here my code :
T dw 2,3,1,2,3,4,0,0,8,0,7,0,8,7
mov [200h], [T]
mov si,0
mov di,0
mov n, 14
call count_null
mov [400h], di
ret
count_null:
cmp si, n
je fin
cmp [T+si], 0
jne etq1
inc di
etq1:
inc si
jmp count_null
fin:
ret
Write your answer here
1 Answers
the answer is org 100h
but when i change it to smtg else other than 100h i face some problems in the code