Cell Phones | Loans | Advertising | Personal Finance | Loans
assembly input? [Archive] - PCMech Forums

PDA

View Full Version : assembly input?


SupraMan84
01-29-2005, 09:26 PM
i have to do a project for class which requires for me to write a recursive quicksort in assembly ive writtin the code for the most part but my problem is i cant test it cause i dont know how to input data from the keyboard...or even simply just put a list into the code...if it is possible can someone please leave a link or maybe an example...thanks...

jon611
02-02-2005, 10:27 PM
in assembly it depends on the compiler and processor you're using of course. but in masm 6.15 with an intel ia32 processor you can use this code to input text.

mov ecx, (SIZEOF buffer) - 1 //ecx holds the limit for how many characters can be read into edx
call readString //readString puts the string into edx, well actually it puts the address of the string into the edx

i haven't coded in assembly for quite sometime so if anyone knows i'm wrong feel free to correct me