derive arch from internal libasm processor

also added some convenience functions for ia32