| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I've been reading the book: Peter Norton's Assembly Language Book For The IMB PC and am using TASM 5.0. I'm trying to assemeble the following code like it said in the book. ..model small ..code mov ah,07h mov dl,41h ;ASCII code for "A" int 21h mov ah,4Ch int 21h ; ah=4Ch exit to dos end TASM.exe creates an OBJ file without errors, but when I try to run TLINK.exe it complaines: Fatal: No program entry point I looked through the readme and help files but didn't see this error listed. I tried compiling with MASMv8.2 and it again assmembled it okay, but when linking it, it complained: 01.obj : warning LNK4078: multiple ".data" sections found with different attributes (C0220040) LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup 01.exe : fatal error LNK1120: 1 unresolved externals Thanks for any help Brock |
|
#2
| |||
| |||
| On Wed, 3 Sep 2008 22:07:53 -0700 (PDT), durabol <spamtrap@crayne.org> wrote: >I've been reading the book: Peter Norton's Assembly Language Book For >The IMB PC and am using TASM 5.0. I'm trying to assemeble the >following code like it said in the book. > >.model small >.code start: >mov ah,07h >mov dl,41h ;ASCII code for "A" >int 21h >mov ah,4Ch >int 21h ; ah=4Ch exit to dos >end end start BTW, this is a 16-bit program > >TASM.exe creates an OBJ file without errors, but when I try to run >TLINK.exe it complaines: > >Fatal: No program entry point see above >I looked through the readme and help files but didn't see this error >listed. > >I tried compiling with MASMv8.2 and it again assmembled it okay, but >when linking it, it complained: which has a 16/32 bit assembler. > >01.obj : warning LNK4078: multiple ".data" sections found with >different attributes (C0220040) It's probably complaining about mixing use16 data with use32 data >LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup >01.exe : fatal error LNK1120: 1 unresolved externals 32bit linker trying to create a windown GUI program, which isn't what you assembled. And you are using a 32bit only linker -- which don't work with 16bit programs. -- ArarghMail809 at [drop the 'http://www.' from ->] http://www.arargh.com BCET Basic Compiler Page: http://www.arargh.com/basic/index.html To reply by email, remove the extra stuff from the reply address. |
|
#3
| |||
| |||
| On Sep 4, 1:07*am, durabol <spamt...@crayne.org> wrote: > > I tried compiling with MASMv8.2 and it again assmembled it okay, but > when linking it, it complained: > > 01.obj : warning LNK4078: multiple ".data" sections found with > different attributes (C0220040) > LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup > 01.exe : fatal error LNK1120: 1 unresolved externals > A 16-bit linker is available here: http://website.masm32.com/microsft.htm Nathan. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.