#include <UCStack.h>
Inheritance diagram for BaseUCStack:
Public Member Functions | |
BaseUCStack (uint32 len, uint8 *b) | |
virtual | ~BaseUCStack () |
uint32 | getSize () const |
uint32 | stacksize () const |
void | addSP (const sint32 offset) |
unsigned int | getSP () const |
void | setSP (unsigned int pos) |
void | push1 (uint8 val) |
void | push2 (uint16 val) |
void | push4 (uint32 val) |
void | push0 (const uint32 size) |
void | push (const uint8 *in, const uint32 size) |
uint16 | pop2 () |
uint32 | pop4 () |
void | pop (uint8 *out, const uint32 size) |
uint8 | access1 (const uint32 offset) const |
uint16 | access2 (const uint32 offset) const |
uint32 | access4 (const uint32 offset) const |
uint8 * | access (const uint32 offset) |
uint8 * | access () |
void | assign1 (const uint32 offset, const uint8 val) |
void | assign2 (const uint32 offset, const uint16 val) |
void | assign4 (const uint32 offset, const uint32 val) |
void | assign (const uint32 offset, const uint8 *in, const uint32 len) |
Protected Attributes | |
uint8 * | buf |
uint8 * | buf_ptr |
uint32 | size |
Definition at line 26 of file UCStack.h.
uint8* BaseUCStack::access | ( | ) | [inline] |
Definition at line 130 of file UCStack.h.
References buf.
Referenced by Item::callUsecodeEvent_AvatarStoleSomething(), Item::callUsecodeEvent_cast(), Item::callUsecodeEvent_guardianBark(), Item::callUsecodeEvent_schedule(), UCMachine::dereferencePointer(), UCMachine::execProcess(), and UCProcess::load().
Definition at line 123 of file UCStack.h.
References buf.
Referenced by UCMachine::execProcess(), and UCMachine::ptrToObject().
void BaseUCStack::addSP | ( | const sint32 | offset | ) | [inline] |
Definition at line 49 of file UCStack.h.
References buf_ptr.
Referenced by UCMachine::execProcess(), and UCProcess::load().
Definition at line 154 of file UCStack.h.
References buf.
Referenced by UCMachine::assignPointer(), and UCMachine::execProcess().
uint32 BaseUCStack::getSize | ( | ) | const [inline] |
unsigned int BaseUCStack::getSP | ( | ) | const [inline] |
Definition at line 53 of file UCStack.h.
Referenced by UCProcess::call(), UCMachine::execProcess(), UCProcess::load(), and UCStack::save().
Definition at line 111 of file UCStack.h.
References buf_ptr.
Referenced by UCMachine::execProcess().
uint16 BaseUCStack::pop2 | ( | ) | [inline] |
Definition at line 97 of file UCStack.h.
References buf_ptr.
Referenced by Item::checkLoopScript(), UCMachine::execProcess(), and UCProcess::ret().
uint32 BaseUCStack::pop4 | ( | ) | [inline] |
Definition at line 103 of file UCStack.h.
References buf_ptr.
Referenced by UCMachine::execProcess().
Definition at line 88 of file UCStack.h.
References buf_ptr.
Referenced by UCMachine::execProcess(), and UCProcess::load().
void BaseUCStack::push0 | ( | const uint32 | size | ) | [inline] |
Definition at line 83 of file UCStack.h.
References buf_ptr.
Referenced by UCMachine::execProcess().
void BaseUCStack::push1 | ( | uint8 | val | ) | [inline] |
Definition at line 65 of file UCStack.h.
References buf_ptr.
Referenced by UCMachine::execProcess().
void BaseUCStack::push2 | ( | uint16 | val | ) | [inline] |
Definition at line 70 of file UCStack.h.
References buf_ptr.
Referenced by UCProcess::call(), Item::callUsecodeEvent_AvatarStoleSomething(), Item::callUsecodeEvent_cast(), Item::callUsecodeEvent_guardianBark(), Item::checkLoopScript(), and UCMachine::execProcess().
void BaseUCStack::push4 | ( | uint32 | val | ) | [inline] |
Definition at line 75 of file UCStack.h.
References buf_ptr.
Referenced by Item::callUsecodeEvent_schedule(), UCMachine::execProcess(), and UCProcess::load().
void BaseUCStack::setSP | ( | unsigned int | pos | ) | [inline] |
uint32 BaseUCStack::stacksize | ( | ) | const [inline] |
Definition at line 45 of file UCStack.h.
References buf, buf_ptr, and size.
Referenced by UCMachine::execProcess(), and UCStack::save().
uint8* BaseUCStack::buf [protected] |
Definition at line 29 of file UCStack.h.
Referenced by access(), access1(), access2(), access4(), assign(), assign1(), assign2(), assign4(), BaseUCStack(), getSP(), UCStack::load(), setSP(), stacksize(), and DynamicUCStack::~DynamicUCStack().
uint8* BaseUCStack::buf_ptr [protected] |
Definition at line 30 of file UCStack.h.
Referenced by access(), addSP(), BaseUCStack(), getSP(), UCStack::load(), pop(), pop2(), pop4(), push(), push0(), push1(), push2(), push4(), UCStack::save(), setSP(), and stacksize().
uint32 BaseUCStack::size [protected] |
Definition at line 31 of file UCStack.h.
Referenced by BaseUCStack(), getSize(), UCStack::load(), UCStack::save(), and stacksize().