Skip to content

Commit

Permalink
new LAB7
Browse files Browse the repository at this point in the history
  • Loading branch information
renemiranda committed Oct 25, 2012
1 parent f3e14b7 commit f4e0450
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions Lab 7/lab7.asm
@@ -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.

0 comments on commit f4e0450

Please sign in to comment.