Unfortunately inline assembly isn't portable even to different revisions of one CPU architecture, much less different ones.