asm-lessons icon indicating copy to clipboard operation
asm-lessons copied to clipboard

Fix misunderstanding in description of cglobal function parameter

Open jks-liu opened this issue 5 months ago • 2 comments

Fix misunderstanding in cglobal function parameter description.

jks-liu avatar Aug 20 '25 22:08 jks-liu

Probably needs a comma before "including"

kierank avatar Aug 25 '25 09:08 kierank

@kierank as I understand, the two GPRs in this context are the pointers to src and src2 (implicitly assigned), and if we use additional registers then it adds to the GPR count value. For fixing the misunderstanding, we could also add a comment as,

movu  m0, [srcq]     ; srcq is a GPR containing the address of src which is dereferenced

pranjalpokharel7 avatar Sep 21 '25 15:09 pranjalpokharel7