hello1.asm
来自「汇编&c语言code」· 汇编 代码 · 共 20 行
ASM
20 行
; Turbo Assembler Copyright (c) 1988, 1991 By Borland International, Inc.
; HELLO.ASM - Display the message "Hello World"
; From the Turbo Assembler Users Guide - Getting started
.MODEL small
.STACK 100h
.DATA
HelloMessage DB 'Hello, world',13,10,'$'
.CODE
mov ax,@data
mov ds,ax ;set DS to point to the data segment
mov ah,9 ;DOS print string function
mov dx,OFFSET HelloMessage ;point to "Hello, world"
int 21h ;display "Hello, world"
mov ah,4ch ;DOS terminate program function
int 21h ;terminate the program
END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?