You should have examples in the NASMX package. Start with "DEMO1", I suppose... The commands for Nasm and Golink are probably in a makefile, but you can figure out what you'd need if you prefer to use the command line. The NASMX package includes macros for "invoke SomeAPI, param1, param2, param3", but you don't need to use 'em, if you prefer to push parameters and "call SomeAPI".
There are a bunch of examples - an unsorted blob - in the "contributions" package of the download page here at SF, too, but I'd start with NASMX.
Best,
Frank