Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern/arch/m68k Convert to motorola syntax
details: https://anonhg.NetBSD.org/src/rev/2df6825044a7
branches: trunk
changeset: 788694:2df6825044a7
user: matt <matt%NetBSD.org@localhost>
date: Thu Jul 18 12:40:42 2013 +0000
description:
Convert to motorola syntax
diffstat:
sys/lib/libkern/arch/m68k/scanc.S | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (38 lines):
diff -r 375bd6564df2 -r 2df6825044a7 sys/lib/libkern/arch/m68k/scanc.S
--- a/sys/lib/libkern/arch/m68k/scanc.S Thu Jul 18 12:29:30 2013 +0000
+++ b/sys/lib/libkern/arch/m68k/scanc.S Thu Jul 18 12:40:42 2013 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index