I don't know if anybody has already written a device driver with vbcc, but it should be straightforward as vbcc is quite compatible to standard Amiga compilers, like SAS/C.
A device is not so different from a library. It's probably easiest to write the resident structure and the function table in assembler.
Attached you find an example library, which I wrote about 14 years ago in pure C with vbcc. Might be a good starting point.
|