-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59ab8fb
commit e6f0aa4
Showing
6 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
NAME = hello | ||
|
||
EXE = $(NAME).exe | ||
OBJS = $(NAME).obj | ||
SRCS = $(NAME).asm | ||
|
||
LINK_FLAG = /subsystem:windows | ||
ML_FLAG = /c/coff | ||
MASM_FLAG = /Zi/Zd | ||
|
||
$(EXE): $(OBJS) | ||
LINK $(LINK_FLAG) $(OBJS) | ||
$(OBJS): $(SRCS) | ||
MASM $(SRCS) | ||
|
||
clean: | ||
del *.obj | ||
|
||
test: | ||
td $(EXE) && del *.tr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
; Hello World | ||
|
||
.386 | ||
STACK SEGMENT USE16 STACK | ||
DB 200 DUP(0) | ||
STACK ENDS | ||
|
||
DATA SEGMENT USE16 | ||
MSG DB 'HELLO WORLD$' | ||
DATA ENDS | ||
|
||
CODE SEGMENT USE16 | ||
ASSUME CS:CODE, DS:DATA, SS:STACK | ||
START: | ||
MOV AX, DATA | ||
MOV DS, AX | ||
LEA DX, MSG | ||
MOV AH, 9 | ||
INT 21H | ||
MOV AH, 4CH | ||
INT 21H | ||
CODE ENDS | ||
END START |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.