作者stupid2 (笨笨鸟慢慢飞)
看板ASM
标题[问题] 新手问题
时间Sat Jan 29 02:13:24 2011
我是刚学完C++的新手
本来期望在寒假自己读完组合语言的
可是卡在一个地方
我使用网路上一个组合语言的教学网站(小木偶)里面提供的组译器和连结器
并以他站内提供的第一个程式做测试
可是没办法产生可执行档
也想过会不会是连结器版本的问题,所以他站内的两个版本都测过
可是依然只有产生obj档,但接下来就出问题
Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware version
PKSFX Reg. U.S. Pat. and Tm. Off.
Extracts files from a zipfile to their original name,size,date & attributes.
Usage: PKSFX [options] [d:path\] [file...]
Options are:
-c[m] = extract to screen [with more] -e = extract file(s) (default)
-d = create directories stored in ZIP -l = display software license
-o = overwrite existing files -t = test zipfile integrity
-n = extract only newer files -s<pwd> = unScramble with password
-p[a,b][c][1,2,3]=extract to printer [Asc mode,Bin mode][Com port] [port #]
d:path\ = Output drive and/or path.
file = Name(s) of files to extract. Wildcards *,? ok. Default is ALL files.
If you use PKSFX on a regular basis you are strongly encouraged to register
it. With a full registration of US $47.00 you will receive a comprehensive
printed manual, the latest version of PKZIP, PKUNZIP & PKSFX software, and
when available, the next version of the software. See the documentation for
commercial and distribution licensing info. Send check or money order to:
PKWARE, Inc.
9025 N. Deerwood Drive
Brown Deer, WI 53223
画面跑出了这堆东西,不知道到底是什麽原因
没办法组译我觉得书後面的内容就算我继续读感觉效果也不大
可是目前出现的东西又跟网路上说的不一样@@
是为什麽呢???
附上测试的程式码
;*************************************** ;01
code segment ;02.code 段开始位址
assume cs:code,ds:code ;03.假设程式段及资料段
org 100h ;04.可改成 *.COM 档
;--------------------------------------- ;05.
start: jmp begin ;06.程式进入点
mes db 'Hi, I learn assembly.$' ;07.要印出的讯息
begin: mov dx,offset mes ;08.指向 mes 的位址
mov ah,9 ;09.呼叫DOS服务程式,AH=9/INT 21H 表示印出字串
int 21h ;10.呼叫 DOS 服务程式
mov ax,4c00h ;11.指定要呼叫的服务号码
int 21h ;12.呼叫 DOS 服务程式
;--------------------------------------- ;13.
code ends ;14.code 段结束
;*************************************** ;15.
end start ;16.使组译器知道程式进入点
此为小木偶网站上的内容
组译器是6.11d版本的
连结器5.12和5.36都测过
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.141.38.139
1F:推 PRAM:google NASM 02/01 20:13
2F:推 zha0:PKSFX 02/05 09:31
3F:推 MarcusWill:我照他说的去作,有成功显示耶,你path有设吗 02/11 11:38