swab.S revision 1.1
11.1Smycroft#include "DEFS.h" 21.1Smycroft 31.1SmycroftENTRY(swab) 41.1Smycroft movl sp@(4),a0 /* source */ 51.1Smycroft movl sp@(8),a1 /* destination */ 61.1Smycroft movl sp@(12),d0 /* count */ 71.1Smycroft jeq swdone 81.1Smycroft 91.1Smycroftswloop: 101.1Smycroft movw a0@+,d1 111.1Smycroft rorw #8,d1 121.1Smycroft movw d1,a1@+ 131.1Smycroft subql #1,d0 141.1Smycroft jne swloop 151.1Smycroft 161.1Smycroftswdone: 171.1Smycroft rts 18