News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

compiling and running 16 bit programs in MASM 32

Started by sachin.verma, October 20, 2006, 02:33:23 AM

Previous topic - Next topic

sachin.verma

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

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php