Please could someone give the asm86 assembly source code for the following, read a large 1mb array from menory and write to the local com port and How do declare this array .
Yes 8086
Can you help?
Me - no, I hate the useless 16-bit asm, for many reasons.
To send data through COM1, use the "out" instruction, at port 0x3F8. You might need to set flags at 0x3F9 iirc.
To "allocate" memory, well you just hard-code an address afaik. If it's whole 1MB, you may need to follow some procedures to let the 16-bit cpu see the extended memory: http://en.wikipedia.org/wiki/Expanded_memory.
To send data through COM1, use the "out" instruction, at port 0x3F8. You might need to set flags at 0x3F9 iirc.
To "allocate" memory, well you just hard-code an address afaik. If it's whole 1MB, you may need to follow some procedures to let the 16-bit cpu see the extended memory: http://en.wikipedia.org/wiki/Expanded_memory.
Do you know anyone on the forum who would be willing to help me
Do you know anyone on the forum who would be willing to help me
Please review our Community Rules to find out what is and is not acceptable.
What with getting help in i'm stuck , people on this forum obiviolusly know and understand asm better than i do.
We have a policy against doing someone's homework. If we do more than point people in the direction ("extended memory", "out 3F8h"), they just present the code we write here and are forever done with asm. One-post members: came, took and went away.
In uni, the best skill you obtain is how to search for info; and by now you should have found how to do the above stuff.
In uni, the best skill you obtain is how to search for info; and by now you should have found how to do the above stuff.
technically is not homework is private work i need some help on so i NOT BREAKING THE RULES.
Ah, it's a hobby then, good :) . (as I so much time has passed without finding the solution) . I'll contact you on MSN, we'll search the solution quickly and then post it here :)
P.S. I'm hoping you're not going to test the thing on a WinNT system: http://forum.soft32.com/windows/DOS-extended-memory-manager-ftopict343409.html
P.P.S. This seems to hint how to alloc 1MB: http://www.computing.net/answers/dos/ems-and-xms-memory-allocation-in-my-dos-c-program/2513.html
P.S. I'm hoping you're not going to test the thing on a WinNT system: http://forum.soft32.com/windows/DOS-extended-memory-manager-ftopict343409.html
P.P.S. This seems to hint how to alloc 1MB: http://www.computing.net/answers/dos/ems-and-xms-memory-allocation-in-my-dos-c-program/2513.html