The script generates FreeBSD syscall table for FASM assembler
# ASMgen

The script generates FreeBSD syscall table for FASM assembler.
It will parse `/sys/kern/syscall.master` file and produce FASM output.

## Example

```
0	AUE_NULL	SYSMUX {
		int syscall(
		    int number,
		    ...
		);
	}
1	AUE_EXIT	STD|CAPENABLED {
		void exit(
		    int rval
		);
	}
2	AUE_FORK	STD|CAPENABLED {
		int fork(void);
	}

...
```

will produce

```
null             equ             0        ;;   SYSMUX
exit             equ             1        ;;   STD|CAPENABLED
fork             equ             2        ;;   STD|CAPENABLED

...
```