- toolpublic.zip
- ToolPublic
- GUI.Tools
- License.txt
- SampleScripts
- Sample.Report
- Tools
- XML.Forms
- GiftCardPurchase.form
- LicenseEntry.form
- PayByCreditCard.form
- Send.Alerts.To.form
- ServerDriveLogon.form
- ServerInfo.form
- StdAfx.h
- ToolDll
- ToolDllTester
- ToolExDllCore
- ToolExtender
- ToolTester
- Utilities
- samples.zip
- Samples
- RunTool.exe
- RunToolDll.exe
- ToolExtender.dll
- ToolPub.DLL
- ToolPub.lib
- xmlformtest.exe
- toolforge.zip
- ToolForge.exe
|
#ifndef VIRTUAL_CHIP_H_INCLUDED
#define VIRTUAL_CHIP_H_INCLUDED
/*****************************************************************************/
/* HEADER FILE */
/*****************************************************************************/
/*
$Archive: $
$Revision: $
$Date: $
$Author: $
Description: This class encapsulates all "registers" used by the virtual
machine
Portions of this code is based on work by David Betz as published
in Dr. Dobb's Journal. However, the code has been significantly
reworked, reformatted, and enhanced so it may not resemble any of
the original files at all. Other specific portions of this derivation
are based on the work of Michael Swartzendruber.
TOOL And XML FORMS License
==========================
Except where otherwise noted, all of the documentation
and software included in the TOOL package is
copyrighted by Michael Swartzendruber.
Copyright (C) 2005 Michael John Swartzendruber.
All rights reserved.
Access to this code, whether intentional or accidental,
does NOT IMPLY any transfer of rights.
This software is provided "as-is," without any express
or implied warranty. In no event shall the author be held
liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for
any purpose, including commercial applications, and to
alter and redistribute it, provided that the following
conditions are met:
1. All redistributions of source code files must retain
all copyright notices that are currently in place,
and this list of conditions without modification.
2. The origin of this software must not be misrepresented;
you must not claim that you wrote the original software.
3. If you use this software in another product, an acknowledgment
in the product documentation would be appreciated but is
not required.
4. Modified versions in source or binary form must be plainly
marked as such, and must not be misrepresented as being
the original software.
*/
/*****************************************************************************/
#include "VMCoreGlobal.h"
class VMVirtualChip
{
public:
VMVirtualChip()
{
m_pchCodeBaseAddress = NULL;
m_pchProgramCounter = NULL;
m_psCurrentCodeVector = NULL;
m_psRunTimeStackBase = NULL;
m_psTopOfRunTimeStack = NULL;
m_psStackPointer = NULL;
m_psFramePointer = NULL;
};
~VMVirtualChip()
{
};
unsigned char* m_pchCodeBaseAddress; // base of bytecode array for the current code object.
unsigned char* m_pchProgramCounter; // Address of the next bytecode to fetch.
VMVECTOR* m_psCurrentCodeVector; // Currently executing code object.
VMVARIANT* m_psRunTimeStackBase; // the base of the runtime stack
VMVARIANT* m_psTopOfRunTimeStack; // the top of the stack
VMVARIANT* m_psStackPointer; // the current location for the stack pointer
VMVARIANT* m_psFramePointer; // Stack frame for the current call.
VMVARIANT m_sSymbolTable; // the main symbol table
VMVARIANT m_sClassTable; // the class table
VMVARIANT m_sNilValue; // the nil value
VMVARIANT stdin_iostream; // standard input i/o stream
VMVARIANT stdout_iostream; // standard output i/o stream
VMVARIANT stderr_iostream; // standard error i/o stream
};
#endif
/*****************************************************************************/
/* Check-in history */
/*
*$Log: $
*/
/*****************************************************************************/
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.