Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 625 Bytes
/*
* CDivideCommandNode.cpp
* Forge
*
* Created by Uli Kusterer on 18.12.10.
* Copyright 2010 Uli Kusterer. All rights reserved.
*
*/
#include "CDivideCommandNode.h"
#include "CValueNode.h"
#include "CCodeBlock.h"
#include "LEOInstructions.h"
namespace Carlson
{
void CDivideCommandNode::GenerateCode( CCodeBlock* inCodeBlock )
{
CValueNode * destValue = GetParamAtIndex( 0 );
CValueNode * srcValue = GetParamAtIndex( 1 );
srcValue->GenerateCode( inCodeBlock );
destValue->GenerateCode( inCodeBlock );
inCodeBlock->GenerateOperatorInstruction( DIVIDE_COMMAND_INSTR );
}
} // namespace Carlson
You can’t perform that action at this time.