954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

emu8086 and arrays

Hi all,

I am hoping that you could help me with this. I am working with assembly language 8086. I am trying to put integers into an array one at a time after a prompt. Something like this:

Please input an integer: 6
Please input an integer: 1
Please input an integer: 2 ...

I can print the prompt and allow the user to enter the integer, however I cannot get the numbers to go into the array.

Any help would be appreciated.

Thanks in advance.

Kimjack

KimJack
Junior Poster
114 posts since Apr 2006
Reputation Points: 8
Solved Threads: 0
 

This is odd...so may reviews and no comments. Is that because no one knows? Any comments will be appreciated. Thanks

KimJack
Junior Poster
114 posts since Apr 2006
Reputation Points: 8
Solved Threads: 0
 

Hint: index registers

Purple Avenger
Light Poster
49 posts since Jan 2007
Reputation Points: 31
Solved Threads: 0
 

Thanks, I will check it out.

KimJack
Junior Poster
114 posts since Apr 2006
Reputation Points: 8
Solved Threads: 0
 

I have researched the index registers as you suggested but still no luck. Do you have any other advice or maybe could recommend a good book that could explain 8086 and arrays better? I beleive that my algorithm is correct but it has to be something that I am overlooking. Any suggestions from all would be great.

Thanks
KimJack

KimJack
Junior Poster
114 posts since Apr 2006
Reputation Points: 8
Solved Threads: 0
 

I have researched the index registers as you suggested but still no luck. Do you have any other advice or maybe could recommend a good book that could explain 8086 and arrays better? I beleive that my algorithm is correct but it has to be something that I am overlooking. Any suggestions from all would be great.

Thanks KimJack

KimJack - you're not really asking a coherent question. If you don't know how to program something as simple as arrays, then any answer given here won't make sense to you. What is emu8086? Is this an x86 emulator you run for a school project? Arrays are accessed with index registers (e.g. ESI, EDI) and conveniently navigated with auto- increment addressing modes (e.g. LODS, STOS, MOVS). What specifically do you need to know?

L.B.

bitbank
Newbie Poster
4 posts since Mar 2007
Reputation Points: 23
Solved Threads: 0
 

Thanks for the reply, but I figured it out. You were right it wasn't about arrays but more about converting a string number into an integer.

Thanks
KimJack

KimJack
Junior Poster
114 posts since Apr 2006
Reputation Points: 8
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You