Hmm...didnt know about the int 20h thing.......cool
Hmm...didnt know about the int 20h thing.......cool
if you were even more desperate for space, i reckon you could simply skip the exit altogether and hope that the next few instructions in memory will do it for you...
but probably not.
Well as all the data and code are together in COM files, I would end up executing the Text "Hello World"...which basically looks like it will do nothing goodOriginally posted by ygfperson
if you were even more desperate for space, i reckon you could simply skip the exit altogether and hope that the next few instructions in memory will do it for you...
but probably not.
These 2 programs posted are quite slow. Do you usually do it this way to save on space?
They are probably slow for a few reasons....They will be slow if you run them through the C++ program as it uses system() which is slow as sludge anyway....Originally posted by face_master
These 2 programs posted are quite slow. Do you usually do it this way to save on space?
Also I guess that as windows doesnt allow programs to run interupts (the way dos progs print to screen, manage disks etc), it intercepts these calls and interprets them into something it prefers - either low level access the windows way, or in the case I guess the API call WriteConsole()......I can only guess this will make these progs slower than a normal Hello World that accesses the API funcs to begin with
I also read that COM files used to take up more memory space than some exe files when run in DOS (even though they are smaller on disk) but I dont have a clue if its the same run on windows....