| 1 |
Compilation with Nasm on MSVC 6.0, with usage of Custom Build step. |
| 2 |
|
| 3 |
1) Open your project in MSVC. |
| 4 |
|
| 5 |
2) Add .asm at the list of source files. |
| 6 |
|
| 7 |
3) Click on it with the right button, further press Settings... |
| 8 |
|
| 9 |
4) In General tab, flags "Always use custom build step" and "Exclude file |
| 10 |
from build" should be disabled. |
| 11 |
|
| 12 |
5) In "Custom Build" tab it is necessary to define "Commands" and "Outputs" |
| 13 |
(By "Outputs" build system checks if it has reached a necessary result. |
| 14 |
This parameter is mandatory and without it MSVC will not let you close |
| 15 |
the window by OK button). |
| 16 |
|
| 17 |
The "Commands" should be set to |
| 18 |
|
| 19 |
nasmw.exe -fwin -o $(OUTDIR)\$(InputName).obj $(InputName).asm |
| 20 |
|
| 21 |
And "Outputs" to |
| 22 |
|
| 23 |
$(OUTDIR)\$(InputName).obj |
| 24 |
|
| 25 |
Have fun! |