URL
https://opencores.org/ocsvn/ssbcc/ssbcc/trunk
[/] [ssbcc/] [trunk/] [lib/] [9x8/] [cmp_8bit_uu.s] - Diff between revs 2 and 10
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 10 |
Line 1... |
Line 1... |
; Copyright 2013, Sinclair R.F., Inc.
|
; Copyright 2013, 2015, Sinclair R.F., Inc.
|
;
|
;
|
; 8-bit unsigned vs. unsigned comparison operators
|
; 8-bit unsigned vs. unsigned comparison operators
|
|
|
|
.IFNDEF D__INCLUDED__CMP_8BIT_UU_S__
|
|
.define D__INCLUDED__CMP_8BIT_UU_S__
|
|
|
; Compare two unsigned 8-bit values for equality.
|
; Compare two unsigned 8-bit values for equality.
|
; ( u1 u2 - f"u1 = u2" )
|
; ( u1 u2 - f"u1 = u2" )
|
.function cmp_8bit_uu_eq
|
.function cmp_8bit_uu_eq
|
- .return(0=)
|
- .return(0=)
|
|
|
Line 55... |
Line 58... |
; otherwise: ( u1 u2-u1 f"u1 >= u2" - u1 u2-u1 )
|
; otherwise: ( u1 u2-u1 f"u1 >= u2" - u1 u2-u1 )
|
&
|
&
|
; ( u1 uX - min(u1,u2) )
|
; ( u1 uX - min(u1,u2) )
|
.return(+)
|
.return(+)
|
|
|
No newline at end of file
|
No newline at end of file
|
|
.ENDIF ; D__INCLUDED__CMP_8BIT_UU_S__
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.