这是第一个程序编译成的汇编
ifndef ??version
?debug macro
endm
endif
?debug S "noname.c"
NONAME_TEXT segment byte public 'CODE'
DGROUP group _DATA,_BSS
assume cs:NONAME_TEXT,ds:DGROUP,ss:DGROUP
NONAME_TEXT ends
_DATA segment word public 'DATA'
d@ label byte
d@w label word
_DATA ends
_BSS segment word public 'BSS'
b@ label byte
b@w label word
?debug C E9158B6D34086E6F6E616D652E63
_BSS ends
NONAME_TEXT segment byte public 'CODE'
; ?debug L 1
_main proc far
push bp
mov bp,sp
sub sp,20
push si
push di
; ?debug L 4
lea di,word ptr [bp-20]
; ?debug L 5
xor si,si
jmp short @5
@4:
; ?debug L 6
mov ax,si
inc ax
mov bx,si
shl bx,1
mov word ptr [bx+di],ax
@3:
inc si
@5:
cmp si,10
jl @4
@2:
; ?debug L 7
xor si,si
jmp short @9
@8:
; ?debug L 8
mov bx,si
shl bx,1
push word ptr [bx+di]
mov ax,offset DGROUP:s@
push ax
call far ptr _printf
pop cx
pop cx
@7:
inc si
@9:
cmp si,10
jl @8
@6:
; ?debug L 9
xor ax,ax
jmp short @1
@1:
; ?debug L 10
pop di
pop si
mov sp,bp
pop bp
ret
_main endp
NONAME_TEXT ends
?debug C E9
_DATA segment word public 'DATA'
s@ label byte
db 37
db 50
db 100
db 0
_DATA ends
extrn _printf:far
NONAME_TEXT segment byte public 'CODE'
NONAME_TEXT ends
public _main
end