C:\test>DEBUG
-a
0C8A:0100 mov ax,0200
0C8A:0103 mov dx,0041
0C8A:0106 int 21
0C8A:0108 int 20
0C8A:010A
-h 010A 0100
020A 000A
-n PCHAR.COM
-rcx
CX 0000
:000A
-w
Writing 0000A bytes
-q
C:\test>PCHAR.COM
A
參考網址http://illegalargumentexception.blogspot.com/2008/05/assembler-using-debugexe-to-write-dos.html
code segment ;02
assume cs:code,ds:code
org 100h
;---------------------------------------
start: mov cx,256 ;06 有 256 個 ASCII 碼
mov dl,0 ;07
next: mov ah,2 ;08 Loop 迴圈開始處 ─┐
int 21h ;09 │
inc dl ;10 │
loop next ;11 Loop 迴圈結束處 ─┘
mov ax,4c00h ;12
int 21h ;13
;---------------------------------------
code ends
;***************************************
end start
參考網址http://home.educities.edu.tw/wanker742126/asm/ch03.html
int dos中斷表
留言列表