Call a procedure?

Bare metal programming in PureBasic, for experienced users
SoFlawLess_
New User
New User
Posts: 5
Joined: Wed Jul 25, 2012 3:50 am

Call a procedure?

Post by SoFlawLess_ »

How would I call a procedure with CALL?

This is what I have so far

Code: Select all

Procedure Sfl()
  Debug 1337
EndProcedure

lol.s = "hi"
lol2.s = "yo"

PUSH dword [v_lol]
PUSH dword [v_lol2]
CALL MessageRequester;
Thorium
Addict
Addict
Posts: 1271
Joined: Sat Aug 15, 2009 6:59 pm

Re: Call a procedure?

Post by Thorium »

Why would you want to do that?
There is no win in using ASM to call a procedure.

To do it you need to add a prefix to the procedure name but i dont know it from the top of my head. Take a look at the source code the PB compiler generates by specifieing /COMMENTED in the command line parameters.
Post Reply