Welcome! Log In Create A New Profile

Advanced

sad smiley NASM wont work

Posted by Sanoz0r 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
sad smiley NASM wont work
April 17, 2007 05:20PM
Hey

I have been struggling for a while to get this thing working. I am running that basic "Hello World" script on page 36 of the study guide. NASM doesn't want to work. This is the error I get:

D:\UNISA\PROJECTS\2007\COS221>as hello

D:\UNISA\PROJECTS\2007\COS221>nasm -f bin hello.asm -o hello.com -l hello.lst
Exiting due to signal SIGSEGV
General Protection Fault at eip=0002bad3
eax=fffd0008 ebx=000001ff ecx=000002c1 edx=fffd0000 esi=00000008 edi=00000000
ebp=0008a124 esp=0008a114 program=D:\UNISA\PROJECTS\2007\COS221\NASM.EXE
cs: sel=01a7  base=02c10000  limit=7d3dffff
ds: sel=01af  base=02c10000  limit=7d3dffff
es: sel=01af  base=02c10000  limit=7d3dffff
fs: sel=017f  base=00006bc0  limit=0000ffff
gs: sel=01bf  base=00000000  limit=7ffeffff
ss: sel=01af  base=02c10000  limit=7d3dffff

Call frame traceback EIPs:
  0x0002bad3
  0x0002ba59
  0x0002efff
  0x0002f2b3
  0x0002f6de
  0x0002ac8b

ASM:
        bits 16
        org 0x100
        jmp main
message: db 'Hello World',0ah,0dh,'$'
main:   mov dx,message
        mov ah,09
        int 21h
        int 20h

Any ideas? I'm running a core2. Could that be problematic?

dave
sad smiley Re: NASM wont work
April 17, 2007 09:41PM
Hi I tested out you program exactly as you've typed it using identical name and directory structure and it works fine. I have a 2200+ AMD I sugest you try isolating the problem by installing NASM on another core 2 computer. If it turns out that it does not run on core 2 then I'd suggest you install VMare Workstation on your computer and load it up with Windows 98. I tested NASM on a Windows98 Virtual Machine and it works perfect. One other thing is try put those folders on the C: instead of D: drive I dont have a D drive so i couldn't test that.
sad smiley Re: NASM wont work
April 18, 2007 07:42AM
Are you running Linux or WindowsXP? and if XP, have you loaded sp2. What version of NASM do you use? There is no clear answer in the forums, except that it's difficult to determine the exact cause unless you debug NASM properly. Do you have your Windows firewall enabled when you run NASM?
Anonymous User
sad smiley Re: NASM wont work
April 18, 2007 09:41AM
I found nasmw.exe on the net. Nasm was giving me hassles too.
sad smiley Re: NASM wont work
April 18, 2007 11:38AM
thanks for the replies.

tjvanaarde: dont have access to any other core2s, ill try my friends laptop

FerdieL: im on XP SP2. Just tried without my firewall, still doesnt work. NASM v0.98

Rick: kewl, ill have a look.
sad smiley Re: NASM wont work
April 18, 2007 01:44PM
I just tried it on a different machine: AMD Athlon XP 2400+ with XPSP2. Same problem! I'm using the Nasm from the Unisa CD, surely there can't be a problem with that. I'll try nasmw...
sad smiley Re: NASM wont work
April 18, 2007 02:15PM
downloaded that nasmw.exe and TADA! works perfect. Thanks anyway guys.
sad smiley Re: Re: NASM wont work
April 30, 2007 01:50PM
Hi guys!

I have the same problem trying to run NASM on my PC.

Where can I get nasmw.exe?

Regards,
Anita
Anonymous User
sad smiley Re: NASM wont work
April 30, 2007 09:24PM
Try google
Sorry, only registered users may post in this forum.

Click here to login