GFortran.Assembler.NetBeans

Gfortran Interface with Assembly Language.

Namaste!

My OS: Windows 7,32 Bit, Intel Centrino Core*2 Duo, Toshiba A 205 Satellite,386 Pentium Laptop.
My binUtils: GNU Assembler Version 2.9.4 using BFD version 2.9.4.

I am using NetBeans IDE 7.4 Version

Flower.f:
CHARACTER W1
CALL SCREEN (6)
005 OPEN (1,FILE=‘FLOWER.DAT’)
030 READ (1,021,END=035) IR,IC,IP
CALL PIXEL (1,IR,IC)
GO TO 030
035 CLOSE (1)
021 FORMAT (I3,I3)
C READ (
,’(A)’) W
READ (1,022) W
022 FORMAT (A1)
CALL SCREEN (3)
END

.global screen
screen:
Pushl %ebp
Movl %ebp,%esp
Movb $0,%ah
Les 6(%ebp),%bx
Mov %es:(%ebx),%al
Int $0x10
Movl %esp,%ebp
Pop %ebp
Ret $04

.global pixel
pixel:
Pushl %ebp
Movl %ebp,%esp
Movb $12,%ah
Les 14(%ebp),%bx
Mov %es:(%ebx),%al
Les 10(%ebp),%bx
Mov %es:(%ebx),%dx
Les 6(%ebp),%bx
Mov %es:(%ebx),%cx
Int $0x10
Movl %esp,%ebp
Pop %ebp
Ret $12

The following error displays on the screen.

Program received signal sigsegv: segmentation fault-invalid memory reference.
Backtrace for this error:
#0 0x6f8aecb4
#1 0x6f89d642
#2 0x401138

waiting for your help to the above cited assembler troubles. I don’t know where is the fault lies in which routine.

Special request: If possible please refer me for fortran interface with assembler outsourcing works.All of us professionals and retired electrical,mechanical,chemical engineers with doctorates interested in fortran,assembler.Some professionals left/closed their fortran consultancies.Now we have only done fortran,assembler in
Hyderabad,India from the last 30+ years.

This only request not a demand.

Waiting for your early response and also

expecting good news from your end.

Thanks

Regards,
mastercomputerservices1957@gmail.com
D.Sundar Chand

This post is more or less the same as the following:

Solved: Intel Visual Fortran V8.1 Compiler for windows 8.0 - Intel Community (2017)

Third party dependencies-Reg (2018)