# GFortran.Assembler.NetBeans

**URL:** <https://fortran-lang.discourse.group/t/gfortran-assembler-netbeans/496>\
**Category:** Help\
**Created:** [December 17, 2020, 3:59pm UTC](https://fortran-lang.discourse.group/t/gfortran-assembler-netbeans/496 "2020-12-17T15:59:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mstercomputersrvices](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mstercomputersrvices](https://fortran-lang.discourse.group/u/mstercomputersrvices)\
**Post date:** [December 17, 2020, 3:59pm UTC](https://fortran-lang.discourse.group/t/gfortran-assembler-netbeans/496/1 "2020-12-17T15:59:29Z")

</div>

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 W_1  
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](mailto:mastercomputerservices1957@gmail.com)  
D.Sundar Chand

---

<div class="post-metadata">

**Author:** ![mecej4](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/mecej4/32/855_2.png) [@mecej4](https://fortran-lang.discourse.group/u/mecej4)\
**Post date:** [October 19, 2021, 9:55am UTC](https://fortran-lang.discourse.group/t/gfortran-assembler-netbeans/496/2 "2021-10-19T09:55:36Z")

</div>

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

[Solved: Intel Visual Fortran V8.1 Compiler for windows 8.0 - Intel Community](https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-Visual-Fortran-V8-1-Compiler-for-windows-8-0/m-p/1138378#M136372) (2017)

[Third party dependencies-Reg](https://forums.absoft.com/index.php?topic=959.msg2392#msg2392) (2018)
