Wont produce ASM code
Posted: Mon Feb 12, 2007 10:18 pm
I am a total newbie to flowcode so sorry for the problem but i build something and that compiles to C-code:
but it wont compile to ASM code. Why is this and can it be corrected.
Code: Select all
//************************************************************************************
//**
//** File name: \\EIBERGEN01\Users\h.arends\My Documents\ASM Files\SpeedoMeter\Flowcode2.c
//** Generated by: Flowcode v3.1.0.31
//** Date: Monday, February 12, 2007 22:14:31
//** Licence: Demo
//**
//** ***DEMO VERSION***
//**
//**
//** NIET VOOR COMMERCIELE TOEPASSINGEN
//**
//** http://www.matrixmultimedia.com
//************************************************************************************
//Defines voor de microcontroller
#define P16F628A
#define MX_EE
#define MX_EE_TYPE1
#define MX_EE_SIZE 128
#define MX_UART
#define MX_UART_B
#define MX_UART_TX 2
#define MX_UART_RX 1
#define MX_PWM
#define MX_PWM_PORT portb
#define MX_PWM_TRIS trisb
#define MX_PWM_CNT 1
#define MX_PWM_1 3
//Functies
#include <system.h>
#pragma CLOCK_FREQ 19660800
//Configuratiegegevens
#pragma DATA 0x2007, 0xffffffff
//Interne functies
#include "D:\Program Files\Matrix Multimedia\Flowcode V3\FCD\internals.h"
//Macro functie declaraties
//Variable declaraties
short FCV_TIMEPROD;
char FCV_SKPH;
short FCV_FCV_DISTANCE;
char FCV_SCALE;
short FCV_FCV_SKPH;
short FCV_FCV_SECONDS;
short FCV_DISTANCEPROD;
short FCV_KPH;
//Toegevoegde definities
//Macro implementaties
//Toegevoegde implementaties
void main()
{
//Initialisatie
cmcon = 0x07;
//Interrupt initialisatie code
option_reg = 0xC0;
//distanceProd
//Calculation:
// distanceProd = FCV_DISTANCE * 36
FCV_DISTANCEPROD = FCV_FCV_DISTANCE * 36 ;
//timeProd
//Calculation:
// timeProd = FCV_SECONDS * 10000
FCV_TIMEPROD = FCV_FCV_SECONDS * 10000 ;
//KPH
//Calculation:
// KPH = distanceProd / timeProd
FCV_KPH = FCV_DISTANCEPROD / FCV_TIMEPROD ;
//ScaleKPH
//Calculation:
// sKPH = FCV_SECONDS * Scale
FCV_SKPH = FCV_FCV_SECONDS * FCV_SCALE ;
mainendloop: goto mainendloop;
}