hi
Thank God and the forum, I could finally get MASM working! There is a small hitch here though and this would be my second experiment with MASM. Its a 16 bit program(the same one as mentioned in my earlier post):
code segment
assume cs:code, ds:code
org 1000h
mov si,[4000]
mov AX,[si]
mov Bx,[si+02]
SUB Bx
mov [si+04],AX
hlt
mov AX,004ch
int 21h
code ends
end
I could assemble it
I could link it(did use the 16 bit linker)
but I could not RUN it...
it displays something on the DOS screen like : Run[minus.exe]: and when I press the return key, it goes to display another msg abt some library or list...and as I press the return key it gives me all those indecipherable msgs before finally suggesting that the program has no start address and then goes back to display my location (c:\desktop\masm)
If there has been a reply to a problem similar to this already in the forum, I am sure I have overlooked it.Any help wud be appreciated but please dont be rude if you think that I have asked something thats been explained already etc.
Regards,
M_E
Maybe it should read "org 100h" instead of "org 1000h".
If you are attempting to produce a COM program, the ORG statement should be ORG 100h, and you must use a /tiny switch on the linker command line. The SUB BX instruction is not valid and will not assemble. The HLT instruction serves no useful purpose.