forked from TCShenanigans/symphony_stdlib
Added comment about predicate context
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
; r4 - The predicate
|
; r4 - The predicate
|
||||||
; r5 - Predicate context
|
; r5 - Predicate context
|
||||||
; The predicate function should follow the stdlib calling convention
|
; The predicate function should follow the stdlib calling convention
|
||||||
; and receive one argument and return either a zero when the value is not the one we search for
|
; The predicate receives two arguments (the value and the predicate context) and should return either a zero when the value is not the one we search for
|
||||||
; , or any other result if it is the searched-for item.
|
; , or any other result if it is the searched-for item.
|
||||||
pub find_index:
|
pub find_index:
|
||||||
push r12 ; We will store the predicate pointer here
|
push r12 ; We will store the predicate pointer here
|
||||||
|
|||||||
Reference in New Issue
Block a user