Assembly routines interface with Fortran77

  • OS: Windows 7, 32 Bit, Intel Centrino Core*2 Duo, Toshiba A 205 Satellite, 386 Pentium Laptop.
  • binUtils: GNU Assembler Version 2.9.4 using BFD version 2.9.4.
Please let me know how to write the following Assembly routines interface with Fortran77 language.

1.Service 0 - Set Screen Mode
2.Service C - Write Dot
3.Service D - Read Dot

I am trying to develop a software related to Astronomy with Graphics representation with the above mentioned Laptop configuration. 
If these assembly routines available I want to develop other Assembly routines independently.
33 years ago developed assembly routines in DOS. Now I want to develop in Windows.  

If any body knows please try to guide me.

You simply can’t do this - while it is possible to call assembler from Fortran, your DOS code will not work in Windows. Windows has numerous, easily callable APIs (routines) to do graphics. Some Fortran compilers also come with graphics libraries.

As per your reply, I understand it is possible to solve my problem. A hope just started.
Which API’s is better and easy to use, and how to connect? If possible please try to guide me for one example. Then I will try further routines. I understand that from your end I want to delete my DOS routines and trying to start a new one as soon as possible.
If you don’t mind please let me know the API’s stored libraries at the earliest.

Thanks in advance

for your help

Regards

Which Fortran are you using? I would recommend Intel Fortran, which is now free. I’d suggest that the easiest path is to use the Intel Fortran QuickWin library, which includes many graphics routines. You can read more about it here. There are several QuickWin examples in the Intel Parallel Studio XE Samples Bundle under folder compiler_f\QuickWin I would suggest SciGraph as the one most relevant to you.

Using the Windows API is also possible but is more complicated to program. There are samples of that too.

1 Like

I am using Fortran77/90/95. A lot of thanks for your advice. I will try,because you suggested and also free.

Once again tahnks for your advice.

Regards,

Depending on what functionality you want to have, another possibility could be to have your application to output a text file that is HTML5 + canvas + JavaScript, like here: HTML Canvas In fact, I bet a lot of functionality of pgplot could be translated into HTML5/canvas/JavaScript output. Then your web browser can display your output.

Of course, to make this interactive (send UI events from the web browser to the app and have app change its output based on these events), one would need to integrate HTTP server with WebSockets support into the app. Such libraries do exist in C/C++, but doing end-to-end integration would be a lot of work. (Looks like a fun project, though, if only I had time…)

1 Like

Yet another possibility, perhaps as a short term stop-gap measure: change your existing routines to draw to a memory buffer, then save that memory buffer to a file, perhaps in some easy image format, like PNG.