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 .
Posted on 2009-06-24 08:23:27 by pkeegan
Posted on 2009-06-24 08:37:03 by Ultrano
Yes 8086
Posted on 2009-06-24 11:20:28 by pkeegan
Can you help?
Posted on 2009-06-24 11:23:30 by pkeegan
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:
Posted on 2009-06-24 11:58:12 by Ultrano
Do you know anyone on the forum who would be willing to help me
Posted on 2009-06-24 16:03:10 by pkeegan

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.
Posted on 2009-06-25 10:09:15 by SpooK
What with getting help in i'm stuck , people on this forum obiviolusly know and understand asm better than i do.
Posted on 2009-06-26 04:28:06 by pkeegan
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.
Posted on 2009-06-26 04:51:23 by Ultrano
technically is not homework is private work i need some help on so i NOT BREAKING THE RULES.
Posted on 2009-06-30 11:28:15 by pkeegan
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:
P.P.S. This seems to hint how to alloc 1MB:
Posted on 2009-06-30 11:35:15 by Ultrano