The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: sachin.verma on October 20, 2006, 02:33:23 AM

Title: compiling and running 16 bit programs in MASM 32
Post by: sachin.verma on October 20, 2006, 02:33:23 AM
hi ,

could any one help me with compiling and running 16 bit programs on MASM32.

.model small
.stack 100h
.data
    message DB "Temperature Conversion!$"
    prompt DB "Enter temperature in Fahrenheit!$"
    msg DB "Tepmerature in Celcius is:!$"

.code
    mov dx, offset message  ;displaying message
    mov ah,9
    int 21h

    mov dx, offset prompt  ;displaying prompt
    mov ah,9
    int 21h

    XOR ah,ah
    int 16h
    mov ah,1h
    int 21h

    mov bl,al
    sub bl,32
    idiv bl,9
    mul bl,5

    mov dx, offset msg  ;displaying msg
    mov ah,9
    int 21h

    mov dl,bl
    mov ah, 2h
    int 21h

    mov ax, 4ch
    int 21h

end start

i am tryin to run this cide and its givin some error like-----

RC: fatal error RC1110: could not open rsrc.rc

and

CUTRES: fatal error CUT1101: cannot open rsrc.res for reading

please help me with using this assembler
Title: Re: compiling and running 16 bit programs in MASM 32
Post by: hutch-- on October 20, 2006, 02:49:23 AM
MASM32 is set up for 32 bit assembler, not 16 bit. Get the 16 bit linker from the forum web site and learn how to use it.

Post your questions in the 16 bit subforum, this one is for 32 bit assembler.