flowcode variable and W register

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
elecrobot
Posts: 12
Joined: Tue Oct 09, 2007 11:18 pm

flowcode variable and W register

Post by elecrobot »

Hi

consider i am using a calculation block in which i am equating a variable called SPEED = 127. Then I have a macro which calls a subroutine which is in some other C-Code block. I want to transfer this value of SPEED to W register. How can i do that. Thanks. (Please note i am using Flowcode V2).

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: flowcode variable and W register

Post by Benj »

Hello Electrobot

In C code you can call Flowcode variables by capitalizing the name and adding the prefix FCV_.

For example Flowcode variable count becomes C variable FCV_COUNT.

If you are using assembler to transfer the C variable then you will need a further _ prefix so the variable name becomes _FCV_COUNT in assembler.

Post Reply