折腾了好久,确实解决不了,请各位高手帮忙
问题:编写程序从键盘输入一系列有符号数,找出其中的最大数和最小数,显示运行结果
调用ReadSDecDword输入双字有符号数;
minimum:=number;
maximum:=number;
while(显示 “Another number?(Y or N)”)loop
if (输入Y) then
调用ReadSDecDword输入双字有符号数;
if(number<minimum)
then
minimum:=number;
endif
if(number>maximum)
then
maximum:=number;
endif
endwhile
我的程序:
.386
.model flat
ExitProcess PROTO NEAR32 stdcall,dwExitCode:DWORD
include include\io.inc
.stack 4096
.data
judge1 DWORD ?
number DWORD ?
maxinum DWORD ?
mininum DWORD ?
.code
_start:
ReadSDecDword number
mov eax,number
mov maxinum,eax
mov mininum,eax
whilepos:ReadSDecDword judge1
ifpos1:cmp judge1,59h
jne endwhilepos
ReadSDecDword number
mov eax,number
ifpos:cmp eax,mininum
jge thenpos
mov mininum,eax
jmp endifpos
thenpos:cmp eax,maxinum
jle endifpos
mov maxinum,eax
endifpos:jmp whilepos
endwhilepos:
WriteSDecDword maxinum
WriteSDecDword mininum
INVOKE ExitProcess,0
PUBLIC _start
END _start
出现的问题:
Assembling:D:\masm32\42.asm
Microsoft <R> Incremental Linker Version 5.12.8078
Copyright <C> Microsoft Corp 1991-1998.All rights reserved
42.obj:error LNK2001:unresolved external symbol readc
42.obj:error LNK2001:unresolved external symbol dispc
42.obj:error LNK2001:unresolved external symbol dispmsg
42.obj:error LNK2001:unresolved external symbol dispcrlf
42.obj:error LNK2001:unresolved external symbol readbb
42.obj:error LNK2001:unresolved external symbol readbw
42.obj:error LNK2001:unresolved external symbol readbd
42.obj:error LNK2001:unresolved external symbol dispbb
42.obj:error LNK2001:unresolved external symbol dispbw
42.obj:error LNK2001:unresolved external symbol dispbd
42.obj:error LNK2001:unresolved external symbol readhw
42.obj:error LNK2001:unresolved external symbol readhd
42.obj:error LNK2001:unresolved external symbol disphb
42.obj:error LNK2001:unresolved external symbol disphw
42.obj:error LNK2001:unresolved external symbol disphd
42.obj:error LNK2001:unresolved external symbol reauib
42.obj:error LNK2001:unresolved external symbol readuiw
42.obj:error LNK2001:unresolved external symbol readuid
42.obj:error LNK2001:unresolved external symbol dispuib
42.obj:error LNK2001:unresolved external symbol dispuiw
42.obj:error LNK2001:unresolved external symbol dispuid
42.obj:error LNK2001:unresolved external symbol readsib
42.obj:error LNK2001:unresolved external symbol readsiw
42.obj:error LNK2001:unresolved external symbol readsid
42.obj:error LNK2001:unresolved external symbol dispsib
42.obj:error LNK2001:unresolved external symbol dispsiw
42.obj:error LNK2001:unresolved external symbol dispsid
42.obj:error LNK2001:unresolved external symbol disprb
42.obj:error LNK2001:unresolved external symbol disprw
42.obj:error LNK2001:unresolved external symbol disprd
42.obj:error LNK2001:unresolved external symbol disprf
这是什么错误呀?怎么解决呢?