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
f3e14b7
commit f4e0450
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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,45 @@ | ||
#start=thermometer.exe# | ||
#make_bin# | ||
name "thermo" | ||
|
||
|
||
; multi-segment executable file template. | ||
|
||
data segment | ||
; add your data here! | ||
pkey db "press any key...$" | ||
ends | ||
|
||
stack segment | ||
dw 128 dup(0) | ||
ends | ||
|
||
code segment | ||
start: | ||
; set segment registers: | ||
mov ax, data | ||
mov ds, ax | ||
mov es, ax | ||
|
||
;************* | ||
;************** | ||
lea dx, pkey | ||
mov ah, 9 | ||
int 21h ; output string at ds:dx | ||
; wait for any key.... | ||
mov ah, 1 | ||
int 21h | ||
mov ax, 4c00h ; exit to operating system. | ||
int 21h | ||
ends | ||
|
||
end start ; set entry point and stop the assembler. |