如何在cmd下寫組語??

如標題所問的

請問要怎麼寫阿??

如果我有.asm檔那我要如何執行他??

謝謝!!!

Update:

作業系統是64位元 是不是不能用阿??

1 Answer

Rating
  • j
    Lv 4
    8 years ago
    Favorite Answer

    http://www2.hawaii.edu/~pager/312/masm%20615%20dow...

    下載 MASM 6.15版!

    將下面程式(綠色字 部份) 儲存成 make32.bat(用筆記本除存)

    記得 PATH,INCLUDE,LIB 要改成你放的路徑

    make.bat xxx 就可以(ps. 不需要 xxx.asm 用 xxx就好!)

    REM make32.bat - Batch file for assembling/linking 32-bit Assembly programs

    REM Revised: 11/15/01@echooff

    clsREM The following three lines can be customized for your system:

    REM ********************************************BEGIN customize

    SET PATH=C:\Masm615

    SET INCLUDE=C:\Masm615\INCLUDE

    SET LIB=C:\Masm615\LIB

    REM ********************************************END customizeML -Zi -c -Fl -coff %1.asm

    if errorlevel 1 goto terminateREM add the /MAP option for a map file in the link command.LINK32 %1.obj irvine32.lib kernel32.lib /SUBSYSTEM:CONSOLE /DEBUG

    if errorLevel 1 goto terminatedir %1.*:terminate

    pause

    2011-07-30 20:00:24 補充:

    make.bat xxx

    就會產生 xxx.exe

    2011-07-30 20:01:04 補充:

    更正 make32.bat xxx

    2011-07-31 11:07:39 補充:

    或是看

    http://www.cs.nthu.edu.tw/~king/courses/cs2422/Not...

    裡面有介紹!

Still have questions? Get your answers by asking now.