Module Name: src
Committed By: matt
Date: Thu Jul 18 12:40:42 UTC 2013
Modified Files:
src/sys/lib/libkern/arch/m68k: scanc.S
Log Message:
Convert to motorola syntax
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/lib/libkern/arch/m68k/scanc.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/lib/libkern/arch/m68k/scanc.S
diff -u src/sys/lib/libkern/arch/m68k/scanc.S:1.6 src/sys/lib/libkern/arch/m68k/scanc.S:1.7
--- src/sys/lib/libkern/arch/m68k/scanc.S:1.6 Tue Feb 8 20:20:27 2011
+++ src/sys/lib/libkern/arch/m68k/scanc.S Thu Jul 18 12:40:42 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: scanc.S,v 1.6 2011/02/08 20:20:27 rmind Exp $ */
+/* $NetBSD: scanc.S,v 1.7 2013/07/18 12:40:42 matt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -44,20 +44,20 @@
* scanc(count, startc, table, mask)
*/
ENTRY(scanc)
- movl %sp@(4),%d0 | get length
+ movl 4(%sp),%d0 | get length
jeq Lscdone | nothing to do, return
- movl %sp@(8),%a0 | start of scan
- movl %sp@(12),%a1 | table to compare with
- movb %sp@(19),%d1 | and mask to use
- movw %d2,%sp@- | need a scratch register
+ movl 8(%sp),%a0 | start of scan
+ movl 12(%sp),%a1 | table to compare with
+ movb 19(%sp),%d1 | and mask to use
+ movw %d2,-(%sp) | need a scratch register
clrw %d2 | clear it out
subqw #1,%d0 | adjust for dbra
Lscloop:
- movb %a0@+,%d2 | get character
- movb %a1@(0,%d2:w),%d2 | get table entry
+ movb (%a0)+,%d2 | get character
+ movb (%a1,%d2:w),%d2 | get table entry
andb %d1,%d2 | mask it
dbne %d0,Lscloop | keep going til no more or non-zero
addqw #1,%d0 | overshot by one
- movw %sp@+,%d2 | restore scratch
+ movw (%sp)+,%d2 | restore scratch
Lscdone:
rts