[Ann] A few scripts you might find useful



Hello!

I've been programming in assembly for a few years and recently
started learning Perl. As an exercise, I wrote a few scripts which you
might find useful or simply interesting. Comments are in Polish and
English, license is GPLv2. These scripts are:

1) a Perl script which converts C header files to FASM-compatible
header files: http://rudy.mif.pg.gda.pl/~bogdro/inne/konw-fasm.txt
(can't convert everything, of course, but should help sometimes)

2) ditto for NASM:http://rudy.mif.pg.gda.pl/~bogdro/inne/konw-nasm.txt
(but I wasn't able to make NASM assemble complex conditional assembly
directives, like %if with many expressions, including !defined)

3) a Perl script which converts GNU as source files to FASM-compatible
files: http://rudy.mif.pg.gda.pl/~bogdro/inne/gas2fasm.txt
(tested on 'gcc -S' output)

4) ditto for NASM: http://rudy.mif.pg.gda.pl/~bogdro/inne/gas2nasm.txt

Besides these, I've improved the original NASM syntax highlighting
definitions file for Kate and KWrite editors in KDE (originally made
by Nicola Gigante): http://rudy.mif.pg.gda.pl/~bogdro/inne/nasm.xml,
and based on it, I've created a similar file for FASM:
http://rudy.mif.pg.gda.pl/~bogdro/inne/fasm.xml
(these aren't yet included in the official list; working on it)

Also, I have some interesting (for me, at least) macros for FASM:
generating numbers of the Fibonacci sequence at assembly-time,
generating a 16-bit CALL FAR (I wasn't able to make FASM assemble the
correct one for me), makedev for Linux (generating a device ID given
it's major and minor numbers) and a simple checksum generator:
http://rudy.mif.pg.gda.pl/~bogdro/inne/makra-fasm.txt

Alternatively, you can find all these (with their last modification
dates) here: http://rudy.mif.pg.gda.pl/~bogdro/inne/.

Those of you who speak Polish, are invited to visit my
assembly-related homepage at http://rudy.mif.pg.gda.pl/~bogdro/, which
contains my x86 asm course, my tutorials, programs and links.

--
Pozdrawiam, Bogdan (Linux i FreeDOS)
Kurs assemblera x86 (DOS i Linuks): http://rudy.mif.pg.gda.pl/~bogdro
Grupy dyskusyjne o asm: pl.comp.lang.asm alt.pl.asm alt.pl.asm.win32
Prawdziwy, bezpieczny komunikator: www.JabberPL.org

.



Relevant Pages

  • Re: Assembling Visual Studio generated listing files
    ... running 'sed' scripts on the output of the PDP-11 C compiler to create the Unix kernel! ... A test generated listing file did not assmeble 'as is'. ... It seems to me the listing file should assemble. ...
    (microsoft.public.vc.mfc)
  • Re: Learning perl when in the frying pan...
    ... > Programming Perl 3rd edition) and a few other perl books), ... the first thing will be to read Programming Perl again. ... I work on Perl & Mod Perl scripts on a ecommerce system critical server. ...
    (comp.lang.perl.misc)
  • Strange problem with getpwnam
    ... programming in C/C++ and a few other languages. ... It seems that if I run my scripts as ... But if I run it from a cgi then not all of the information is put into ... My 3 perl scripts looks like this: ...
    (perl.beginners)
  • Strange problem with getpwnam
    ... I am new to this site and also to perl in many ways but do have a lot of programming in C/C++ and a few other languages. ... I am working on a small program that will inteface a CGI application that I have with samba which we have set up but there seems to be a problem in the getpwnam function. ... It seems that if I run my scripts as "root" then they seem to run and add the user to the system passwd file as well as the proper information to the /etc/samba/smbpasswd files as well. ...
    (perl.beginners)
  • Re: software engineering, program construction
    ... Many of these scripts produce standard reports that essentially are ... it's a different style of programming ... script), and have a non-ancient version of Perl, have a look at Moose ... cutting and pasting, but with the 'modular' subroutines, I find myself ...
    (comp.lang.perl.misc)