Hey,
1. Can you explean in an example how can I do this jmp to a label
at the and of the function or sub?
2. Witch registers do you pushed?
3. When is it an BYREF of BYVAL parameter?
4. When is it in the assembly code an return value?
(1) NEVER use ret, retf, or retn to end a PB inline assembler
function/sub! PB handles that stuff internally. If you have to
end a PB inline assembler function or sub ahead of time, do a
jmp to a label at the end of the function or sub.
(2) You should ALWAYS use ! push at the beginning of your PB inline
assembler function or sub to save the registers that your function or sub
uses. Then, at the end of the ASM code, put in the ! pop lines to
restore those registers to their original states. Make sure you put in
the ! pop lines in the REVERSE order that you put in the ! push lines.
------------------
1. Can you explean in an example how can I do this jmp to a label
at the and of the function or sub?
2. Witch registers do you pushed?
3. When is it an BYREF of BYVAL parameter?
4. When is it in the assembly code an return value?
(1) NEVER use ret, retf, or retn to end a PB inline assembler
function/sub! PB handles that stuff internally. If you have to
end a PB inline assembler function or sub ahead of time, do a
jmp to a label at the end of the function or sub.
(2) You should ALWAYS use ! push at the beginning of your PB inline
assembler function or sub to save the registers that your function or sub
uses. Then, at the end of the ASM code, put in the ! pop lines to
restore those registers to their original states. Make sure you put in
the ! pop lines in the REVERSE order that you put in the ! push lines.
------------------
Comment