[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: looking for ASM stuff

From: Thomas Dickey
Subject: Re: looking for ASM stuff
Date: Tue, 18 Sep 2007 20:07:05 -0400 (EDT)

On Tue, 18 Sep 2007, Mike Frysinger wrote:

On Tuesday 18 September 2007, Thomas Dickey wrote:
On Tue, 18 Sep 2007, roger tunnicliffe wrote:
Help ????

I am looking for doco for calling ncurses using assembler. At the moment
i am using a debugger to view compiled c code and working it out from
there but it is proving tedious. Can you help ???

not really - it's been quite a while since I programmed in assembler.

fortunately ncurses is not special ... you'd access it from assembly like any
other C library ... in other words, google for the topic of calling C
functions for whatever architecture you're using from assembly and it will be

yes - but I recall seeing some recent comments in newsgroup from someone
who was complaining about finding the details of the struct-offsets,
due to the macros and ifdef's, so I had that in mind.

He might try pstruct (from perl) - except that I recall it not working
for quite a while (several years...). A quick check shows it's still broken, e.g., this fragment for WINDOW:

struct _win_st {
  char               _win_st._cury[40]          0       2
  char               _win_st._curx[40]          2       2
  char               _win_st._maxy[40]          4       2
  char               _win_st._maxx[40]          6       2
  char               _win_st._begy[40]          8       2
  char               _win_st._begx[40]         10       2
  char               _win_st._flags[40]        12       2
                     _win_st._attrs            16       4
                     _win_st._bkgd             20       4

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]