Convert to morotola syntax
This commit is contained in:
parent
f768d01c4f
commit
6dedf03e19
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: skpc.S,v 1.6 2011/02/08 20:20:27 rmind Exp $ */
|
||||
/* $NetBSD: skpc.S,v 1.7 2013/07/18 12:29:30 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -44,13 +44,13 @@
|
||||
* skpc(mask, count, startc)
|
||||
*/
|
||||
ENTRY(skpc)
|
||||
movl %sp@(8),%d0 | get length
|
||||
movl 8(%sp),%d0 | get length
|
||||
jeq Lskdone | nothing to do, return
|
||||
movb %sp@(7),%d1 | mask to use
|
||||
movl %sp@(12),%a0 | where to start
|
||||
movb 7(%sp),%d1 | mask to use
|
||||
movl 12(%sp),%a0 | where to start
|
||||
subqw #1,%d0 | adjust for dbcc
|
||||
Lskloop:
|
||||
cmpb %a0@+,%d1 | compate with mask
|
||||
cmpb (%a0)+,%d1 | compate with mask
|
||||
dbne %d0,Lskloop | keep going til no more or zero
|
||||
addqw #1,%d0 | overshot by one
|
||||
Lskdone:
|
||||
|
Loading…
Reference in New Issue
Block a user