text stringlengths 1 1.05M |
|---|
;
; Include code from halmps
; This is a cpp style symbolic link
MMTIMER equ 1
include ..\..\halmps\i386\mpprofil.asm
|
/*
Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related documentation without an express
license agreement from NVIDIA CORPORATION is strictly prohibited.
*/
#include "SharedExternal.h"
#include "DeviceBase.h"
#include "SharedVal.h"
#include "DeviceVal.h"
#include "BufferVal.h"
#include "CommandQueueVal.h"
#include "CommandAllocatorVal.h"
#include "CommandBufferVal.h"
#include "DescriptorVal.h"
#include "DescriptorPoolVal.h"
#include "DeviceSemaphoreVal.h"
#include "FrameBufferVal.h"
#include "MemoryVal.h"
#include "PipelineLayoutVal.h"
#include "PipelineVal.h"
#include "QueryPoolVal.h"
#include "QueueSemaphoreVal.h"
#include "SwapChainVal.h"
#include "TextureVal.h"
#include "AccelerationStructureVal.h"
using namespace nri;
void ConvertGeometryObjectsVal(GeometryObject* destObjects, const GeometryObject* sourceObjects, uint32_t objectNum);
QueryType GetQueryTypeVK(uint32_t queryTypeVK);
DeviceVal::DeviceVal(const Log& log, const StdAllocator<uint8_t>& stdAllocator, DeviceBase& device, uint32_t physicalDeviceNum) :
DeviceBase(log, stdAllocator),
m_Device(*(Device*)&device),
m_Name(GetStdAllocator()),
m_PhysicalDeviceNum(physicalDeviceNum),
m_PhysicalDeviceMask((1 << (physicalDeviceNum + 1)) - 1),
m_MemoryTypeMap(GetStdAllocator())
{
}
DeviceVal::~DeviceVal()
{
for (size_t i = 0; i < m_CommandQueues.size(); i++)
{
if (m_CommandQueues[i])
Deallocate(GetStdAllocator(), m_CommandQueues[i]);
}
((DeviceBase*)&m_Device)->Destroy();
}
bool DeviceVal::Create()
{
const DeviceBase& deviceBase = (DeviceBase&)m_Device;
if (deviceBase.FillFunctionTable(m_CoreAPI) != Result::SUCCESS)
{
REPORT_ERROR(GetLog(), "Failed to get 'CoreInterface' interface.");
return false;
}
m_IsSwapChainSupported = deviceBase.FillFunctionTable(m_SwapChainAPI) == Result::SUCCESS;
m_IsWrapperD3D11Supported = deviceBase.FillFunctionTable(m_WrapperD3D11API) == Result::SUCCESS;
m_IsWrapperD3D12Supported = deviceBase.FillFunctionTable(m_WrapperD3D12API) == Result::SUCCESS;
m_IsWrapperVKSupported = deviceBase.FillFunctionTable(m_WrapperVKAPI) == Result::SUCCESS;
m_IsRayTracingSupported = deviceBase.FillFunctionTable(m_RayTracingAPI) == Result::SUCCESS;
m_IsMeshShaderExtSupported = deviceBase.FillFunctionTable(m_MeshShaderAPI) == Result::SUCCESS;
m_IsWrapperSPIRVOffsetsSupported = deviceBase.FillFunctionTable(m_WrapperSPIRVOffsetsAPI) == Result::SUCCESS;
deviceBase.FillFunctionTable(m_HelperAPI);
return true;
}
void DeviceVal::RegisterMemoryType(MemoryType memoryType, MemoryLocation memoryLocation)
{
ExclusiveScope lockScope(m_Lock);
m_MemoryTypeMap[memoryType] = memoryLocation;
}
Result DeviceVal::CreateSwapChain(const SwapChainDesc& swapChainDesc, SwapChain*& swapChain)
{
RETURN_ON_FAILURE(GetLog(), swapChainDesc.commandQueue != nullptr, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.commandQueue' is invalid.");
RETURN_ON_FAILURE(GetLog(), swapChainDesc.windowSystemType < WindowSystemType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.windowSystemType' is invalid.");
if (swapChainDesc.windowSystemType == WindowSystemType::WINDOWS)
{
RETURN_ON_FAILURE(GetLog(), swapChainDesc.window.windows.hwnd != nullptr, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.window.windows.hwnd' is invalid.");
}
else if (swapChainDesc.windowSystemType == WindowSystemType::X11)
{
RETURN_ON_FAILURE(GetLog(), swapChainDesc.window.x11.dpy != nullptr, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.window.x11.dpy' is invalid.");
RETURN_ON_FAILURE(GetLog(), swapChainDesc.window.x11.window != 0, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.window.x11.window' is invalid.");
}
else if (swapChainDesc.windowSystemType == WindowSystemType::WAYLAND)
{
RETURN_ON_FAILURE(GetLog(), swapChainDesc.window.wayland.display != nullptr, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.window.wayland.display' is invalid.");
RETURN_ON_FAILURE(GetLog(), swapChainDesc.window.wayland.surface != 0, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.window.wayland.surface' is invalid.");
}
RETURN_ON_FAILURE(GetLog(), swapChainDesc.width != 0, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.width' is 0.");
RETURN_ON_FAILURE(GetLog(), swapChainDesc.height != 0, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.height' is 0.");
RETURN_ON_FAILURE(GetLog(), swapChainDesc.textureNum > 0, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.textureNum' is invalid.");
RETURN_ON_FAILURE(GetLog(), swapChainDesc.format < SwapChainFormat::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.format' is invalid.");
RETURN_ON_FAILURE(GetLog(), swapChainDesc.physicalDeviceIndex < m_PhysicalDeviceNum, Result::INVALID_ARGUMENT,
"Can't create SwapChain: 'swapChainDesc.physicalDeviceIndex' is invalid.");
auto swapChainDescImpl = swapChainDesc;
swapChainDescImpl.commandQueue = NRI_GET_IMPL_PTR(CommandQueue, swapChainDesc.commandQueue);
SwapChain* swapChainImpl;
const Result result = m_SwapChainAPI.CreateSwapChain(m_Device, swapChainDescImpl, swapChainImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), swapChainImpl != nullptr, Result::FAILURE, "Unexpected error: 'swapChainImpl' is NULL.");
swapChain = (SwapChain*)Allocate<SwapChainVal>(GetStdAllocator(), *this, *swapChainImpl, swapChainDesc);
}
return result;
}
void DeviceVal::DestroySwapChain(SwapChain& swapChain)
{
m_SwapChainAPI.DestroySwapChain(*NRI_GET_IMPL_REF(SwapChain, &swapChain));
Deallocate(GetStdAllocator(), (SwapChainVal*)&swapChain);
}
Result DeviceVal::GetDisplays(Display** displays, uint32_t& displayNum)
{
RETURN_ON_FAILURE(GetLog(), displayNum == 0 || displays != nullptr, Result::INVALID_ARGUMENT,
"Can't get displays: 'displays' is invalid.");
return m_SwapChainAPI.GetDisplays(m_Device, displays, displayNum);
}
Result DeviceVal::GetDisplaySize(Display& display, uint16_t& width, uint16_t& height)
{
return m_SwapChainAPI.GetDisplaySize(m_Device, display, width, height);
}
void DeviceVal::SetDebugName(const char* name)
{
m_Name = name;
m_CoreAPI.SetDeviceDebugName(m_Device, name);
}
const DeviceDesc& DeviceVal::GetDesc() const
{
return m_CoreAPI.GetDeviceDesc(m_Device);
}
Result DeviceVal::GetCommandQueue(CommandQueueType commandQueueType, CommandQueue*& commandQueue)
{
RETURN_ON_FAILURE(GetLog(), commandQueueType < CommandQueueType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't get CommandQueue: 'commandQueueType' is invalid.");
CommandQueue* commandQueueImpl;
const Result result = m_CoreAPI.GetCommandQueue(m_Device, commandQueueType, commandQueueImpl);
if (result == Result::SUCCESS)
{
const uint32_t index = (uint32_t)commandQueueType;
if (!m_CommandQueues[index])
m_CommandQueues[index] = Allocate<CommandQueueVal>(GetStdAllocator(), *this, *commandQueueImpl);
commandQueue = (CommandQueue*)m_CommandQueues[index];
}
return result;
}
Result DeviceVal::CreateCommandAllocator(const CommandQueue& commandQueue, uint32_t physicalDeviceMask, CommandAllocator*& commandAllocator)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create CommandAllocator: 'physicalDeviceMask' is invalid.");
auto commandQueueImpl = NRI_GET_IMPL_REF(CommandQueue, &commandQueue);
CommandAllocator* commandAllocatorImpl = nullptr;
const Result result = m_CoreAPI.CreateCommandAllocator(*commandQueueImpl, physicalDeviceMask, commandAllocatorImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), commandAllocatorImpl != nullptr, Result::FAILURE, "Unexpected error: 'commandAllocatorImpl' is NULL.");
commandAllocator = (CommandAllocator*)Allocate<CommandAllocatorVal>(GetStdAllocator(), *this, *commandAllocatorImpl);
}
return result;
}
Result DeviceVal::CreateDescriptorPool(const DescriptorPoolDesc& descriptorPoolDesc, DescriptorPool*& descriptorPool)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(descriptorPoolDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create DescriptorPool: 'descriptorPoolDesc.physicalDeviceMask' is invalid.");
DescriptorPool* descriptorPoolImpl = nullptr;
const Result result = m_CoreAPI.CreateDescriptorPool(m_Device, descriptorPoolDesc, descriptorPoolImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), descriptorPoolImpl != nullptr, Result::FAILURE, "Unexpected error: 'descriptorPoolImpl' is NULL.");
descriptorPool = (DescriptorPool*)Allocate<DescriptorPoolVal>(GetStdAllocator(), *this, *descriptorPoolImpl, descriptorPoolDesc);
}
return result;
}
Result DeviceVal::CreateBuffer(const BufferDesc& bufferDesc, Buffer*& buffer)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(bufferDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create Buffer: 'bufferDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), bufferDesc.size > 0, Result::INVALID_ARGUMENT,
"Can't create Buffer: 'bufferDesc.size' is 0.");
Buffer* bufferImpl = nullptr;
const Result result = m_CoreAPI.CreateBuffer(m_Device, bufferDesc, bufferImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), bufferImpl != nullptr, Result::FAILURE, "Unexpected error: 'bufferImpl' is NULL.");
buffer = (Buffer*)Allocate<BufferVal>(GetStdAllocator(), *this, *bufferImpl, bufferDesc);
}
return result;
}
Result DeviceVal::CreateTexture(const TextureDesc& textureDesc, Texture*& texture)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(textureDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureDesc.format > Format::UNKNOWN && textureDesc.format < Format::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureDesc.format' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureDesc.sampleNum > 0, Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureDesc.sampleNum' is invalid.");
Texture* textureImpl = nullptr;
const Result result = m_CoreAPI.CreateTexture(m_Device, textureDesc, textureImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), textureImpl != nullptr, Result::FAILURE, "Unexpected error: 'textureImpl' is NULL.");
texture = (Texture*)Allocate<TextureVal>(GetStdAllocator(), *this, *textureImpl, textureDesc);
}
return result;
}
Result DeviceVal::CreateDescriptor(const BufferViewDesc& bufferViewDesc, Descriptor*& bufferView)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(bufferViewDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'bufferViewDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), bufferViewDesc.buffer != nullptr, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'bufferViewDesc.buffer' is invalid.");
RETURN_ON_FAILURE(GetLog(), bufferViewDesc.format < Format::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'bufferViewDesc.format' is invalid.");
RETURN_ON_FAILURE(GetLog(), bufferViewDesc.viewType < BufferViewType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'bufferViewDesc.viewType' is invalid");
const BufferDesc& bufferDesc = ((BufferVal*)bufferViewDesc.buffer)->GetDesc();
RETURN_ON_FAILURE(GetLog(), bufferViewDesc.offset < bufferDesc.size, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'bufferViewDesc.offset' is invalid. (bufferViewDesc.offset=%llu, bufferDesc.size=%llu)",
bufferViewDesc.offset, bufferDesc.size);
RETURN_ON_FAILURE(GetLog(), bufferViewDesc.offset + bufferViewDesc.size <= bufferDesc.size, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'bufferViewDesc.size' is invalid. (bufferViewDesc.offset=%llu, bufferViewDesc.size=%llu, bufferDesc.size=%llu)",
bufferViewDesc.offset, bufferViewDesc.size, bufferDesc.size);
auto bufferViewDescImpl = bufferViewDesc;
bufferViewDescImpl.buffer = NRI_GET_IMPL_PTR(Buffer, bufferViewDesc.buffer);
Descriptor* descriptorImpl = nullptr;
const Result result = m_CoreAPI.CreateBufferView(bufferViewDescImpl, descriptorImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), descriptorImpl != nullptr, Result::FAILURE, "Unexpected error: 'descriptorImpl' is NULL.");
bufferView = (Descriptor*)Allocate<DescriptorVal>(GetStdAllocator(), *this, *descriptorImpl, bufferViewDesc);
}
return result;
}
Result DeviceVal::CreateDescriptor(const Texture1DViewDesc& textureViewDesc, Descriptor*& textureView)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(textureViewDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureViewDesc.texture != nullptr, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.texture' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureViewDesc.format > Format::UNKNOWN && textureViewDesc.format < Format::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.format' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureViewDesc.viewType < Texture1DViewType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.viewType' is invalid.");
const TextureDesc& textureDesc = ((TextureVal*)textureViewDesc.texture)->GetDesc();
RETURN_ON_FAILURE(GetLog(), textureViewDesc.mipOffset < textureDesc.mipNum, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.mipOffset' is invalid. (textureViewDesc.mipOffset=%hu, textureDesc.mipNum=%hu)",
textureViewDesc.mipOffset, textureDesc.mipNum);
RETURN_ON_FAILURE(GetLog(), textureViewDesc.mipOffset + textureViewDesc.mipNum <= textureDesc.mipNum, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.mipNum' is invalid. "
"(textureViewDesc.mipOffset=%hu, textureViewDesc.mipNum=%hu, textureDesc.mipNum=%hu)",
textureViewDesc.mipOffset, textureViewDesc.mipNum, textureDesc.mipNum);
RETURN_ON_FAILURE(GetLog(), textureViewDesc.arrayOffset < textureDesc.arraySize, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.arrayOffset' is invalid. "
"(textureViewDesc.arrayOffset=%hu, textureDesc.arraySize=%hu)",
textureViewDesc.arrayOffset, textureDesc.arraySize);
RETURN_ON_FAILURE(GetLog(), textureViewDesc.arrayOffset + textureViewDesc.arraySize <= textureDesc.arraySize, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.arraySize' is invalid. "
"(textureViewDesc.arrayOffset=%hu, textureViewDesc.arraySize=%hu, textureDesc.arraySize=%hu)",
textureViewDesc.arrayOffset, textureViewDesc.arraySize, textureDesc.arraySize);
auto textureViewDescImpl = textureViewDesc;
textureViewDescImpl.texture = NRI_GET_IMPL_PTR(Texture, textureViewDesc.texture);
Descriptor* descriptorImpl = nullptr;
const Result result = m_CoreAPI.CreateTexture1DView(textureViewDescImpl, descriptorImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), descriptorImpl != nullptr, Result::FAILURE, "Unexpected error: 'descriptorImpl' is NULL.");
textureView = (Descriptor*)Allocate<DescriptorVal>(GetStdAllocator(), *this, *descriptorImpl, textureViewDesc);
}
return result;
}
Result DeviceVal::CreateDescriptor(const Texture2DViewDesc& textureViewDesc, Descriptor*& textureView)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(textureViewDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureViewDesc.texture != nullptr, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.texture' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureViewDesc.format > Format::UNKNOWN && textureViewDesc.format < Format::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.format' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureViewDesc.viewType < Texture2DViewType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.viewType' is invalid.");
const TextureDesc& textureDesc = ((TextureVal*)textureViewDesc.texture)->GetDesc();
RETURN_ON_FAILURE(GetLog(), textureViewDesc.mipOffset < textureDesc.mipNum, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.mipOffset' is invalid. "
"(textureViewDesc.mipOffset=%hu, textureDesc.mipNum=%hu)",
textureViewDesc.mipOffset, textureDesc.mipNum);
RETURN_ON_FAILURE(GetLog(), textureViewDesc.mipOffset + textureViewDesc.mipNum <= textureDesc.mipNum, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.mipNum' is invalid. "
"(textureViewDesc.mipOffset=%hu, textureViewDesc.mipNum=%hu, textureDesc.mipNum=%hu)",
textureViewDesc.mipOffset, textureViewDesc.mipNum, textureDesc.mipNum);
RETURN_ON_FAILURE(GetLog(), textureViewDesc.arrayOffset < textureDesc.arraySize, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.arrayOffset' is invalid. "
"(textureViewDesc.arrayOffset=%hu, textureDesc.arraySize=%hu)",
textureViewDesc.arrayOffset, textureDesc.arraySize);
RETURN_ON_FAILURE(GetLog(), textureViewDesc.arrayOffset + textureViewDesc.arraySize <= textureDesc.arraySize, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.arraySize' is invalid. "
"(textureViewDesc.arrayOffset=%hu, textureViewDesc.arraySize=%hu, textureDesc.arraySize=%hu)",
textureViewDesc.arrayOffset, textureViewDesc.arraySize, textureDesc.arraySize);
auto textureViewDescImpl = textureViewDesc;
textureViewDescImpl.texture = NRI_GET_IMPL_PTR(Texture, textureViewDesc.texture);
Descriptor* descriptorImpl = nullptr;
const Result result = m_CoreAPI.CreateTexture2DView(textureViewDescImpl, descriptorImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), descriptorImpl != nullptr, Result::FAILURE, "Unexpected error: 'descriptorImpl' is NULL.");
textureView = (Descriptor*)Allocate<DescriptorVal>(GetStdAllocator(), *this, *descriptorImpl, textureViewDesc);
}
return result;
}
Result DeviceVal::CreateDescriptor(const Texture3DViewDesc& textureViewDesc, Descriptor*& textureView)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(textureViewDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureViewDesc.texture != nullptr, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.texture' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureViewDesc.format > Format::UNKNOWN && textureViewDesc.format < Format::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.format' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureViewDesc.viewType < Texture3DViewType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.viewType' is invalid.");
const TextureDesc& textureDesc = ((TextureVal*)textureViewDesc.texture)->GetDesc();
RETURN_ON_FAILURE(GetLog(), textureViewDesc.mipOffset < textureDesc.mipNum, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.mipOffset' is invalid. "
"(textureViewDesc.mipOffset=%hu, textureViewDesc.mipOffset=%hu)",
textureViewDesc.mipOffset, textureDesc.mipNum);
RETURN_ON_FAILURE(GetLog(), textureViewDesc.mipOffset + textureViewDesc.mipNum <= textureDesc.mipNum, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.mipNum' is invalid. "
"(textureViewDesc.mipOffset=%hu, textureViewDesc.mipNum=%hu, textureDesc.mipNum=%hu)",
textureViewDesc.mipOffset, textureViewDesc.mipNum, textureDesc.mipNum);
RETURN_ON_FAILURE(GetLog(), textureViewDesc.sliceOffset < textureDesc.size[2], Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.arrayOffset' is invalid. "
"(textureViewDesc.sliceOffset=%hu, textureDesc.size[2]=%hu)",
textureViewDesc.sliceOffset, textureDesc.size[2]);
RETURN_ON_FAILURE(GetLog(), textureViewDesc.sliceOffset + textureViewDesc.sliceNum <= textureDesc.size[2], Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'textureViewDesc.arraySize' is invalid. "
"(textureViewDesc.sliceOffset=%hu, textureViewDesc.sliceNum=%hu, textureDesc.size[2]=%hu)",
textureViewDesc.sliceOffset, textureViewDesc.sliceNum, textureDesc.size[2]);
auto textureViewDescImpl = textureViewDesc;
textureViewDescImpl.texture = NRI_GET_IMPL_PTR(Texture, textureViewDesc.texture);
Descriptor* descriptorImpl = nullptr;
const Result result = m_CoreAPI.CreateTexture3DView(textureViewDescImpl, descriptorImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), descriptorImpl != nullptr, Result::FAILURE, "Unexpected error: 'descriptorImpl' is NULL.");
textureView = (Descriptor*)Allocate<DescriptorVal>(GetStdAllocator(), *this, *descriptorImpl, textureViewDesc);
}
return result;
}
Result DeviceVal::CreateDescriptor(const SamplerDesc& samplerDesc, Descriptor*& sampler)
{
RETURN_ON_FAILURE(GetLog(), samplerDesc.magnification < Filter::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'samplerDesc.magnification' is invalid.");
RETURN_ON_FAILURE(GetLog(), samplerDesc.minification < Filter::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'samplerDesc.magnification' is invalid.");
RETURN_ON_FAILURE(GetLog(), samplerDesc.mip < Filter::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'samplerDesc.mip' is invalid.");
RETURN_ON_FAILURE(GetLog(), samplerDesc.filterExt < FilterExt::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'samplerDesc.filterExt' is invalid.");
RETURN_ON_FAILURE(GetLog(), samplerDesc.addressModes.u < AddressMode::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'samplerDesc.addressModes.u' is invalid.");
RETURN_ON_FAILURE(GetLog(), samplerDesc.addressModes.v < AddressMode::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'samplerDesc.addressModes.v' is invalid.");
RETURN_ON_FAILURE(GetLog(), samplerDesc.addressModes.w < AddressMode::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'samplerDesc.addressModes.w' is invalid.");
RETURN_ON_FAILURE(GetLog(), samplerDesc.compareFunc < CompareFunc::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'samplerDesc.compareFunc' is invalid.");
RETURN_ON_FAILURE(GetLog(), samplerDesc.borderColor < BorderColor::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Descriptor: 'samplerDesc.borderColor' is invalid.");
Descriptor* samplerImpl = nullptr;
const Result result = m_CoreAPI.CreateSampler(m_Device, samplerDesc, samplerImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), samplerImpl != nullptr, Result::FAILURE, "Unexpected error: 'samplerImpl' is NULL.");
sampler = (Descriptor*)Allocate<DescriptorVal>(GetStdAllocator(), *this, *samplerImpl);
}
return result;
}
Result DeviceVal::CreatePipelineLayout(const PipelineLayoutDesc& pipelineLayoutDesc, PipelineLayout*& pipelineLayout)
{
const bool isGraphics = pipelineLayoutDesc.stageMask & PipelineLayoutShaderStageBits::ALL_GRAPHICS;
const bool isCompute = pipelineLayoutDesc.stageMask & PipelineLayoutShaderStageBits::COMPUTE;
const bool isRayTracing = pipelineLayoutDesc.stageMask & PipelineLayoutShaderStageBits::ALL_RAY_TRACING;
const uint32_t supportedTypes = (uint32_t)isGraphics + (uint32_t)isCompute + (uint32_t)isRayTracing;
RETURN_ON_FAILURE(GetLog(), supportedTypes > 0, Result::INVALID_ARGUMENT,
"Can't create pipeline layout: 'pipelineLayoutDesc.stageMask' is 0.");
RETURN_ON_FAILURE(GetLog(), supportedTypes == 1, Result::INVALID_ARGUMENT,
"Can't create pipeline layout: 'pipelineLayoutDesc.stageMask' is invalid, it can't be compatible with more than one type of pipeline.");
for (uint32_t i = 0; i < pipelineLayoutDesc.descriptorSetNum; i++)
{
const DescriptorSetDesc& descriptorSetDesc = pipelineLayoutDesc.descriptorSets[i];
for (uint32_t j = 0; j < descriptorSetDesc.rangeNum; j++)
{
const DescriptorRangeDesc& range = descriptorSetDesc.ranges[j];
RETURN_ON_FAILURE(GetLog(), !range.isDescriptorNumVariable || range.isArray, Result::INVALID_ARGUMENT,
"Can't create pipeline layout: 'pipelineLayoutDesc.descriptorSets[%u].ranges[%u]' is invalid, "
"'isArray' can't be false if 'isDescriptorNumVariable' is true.",
i, j);
RETURN_ON_FAILURE(GetLog(), range.descriptorNum > 0, Result::INVALID_ARGUMENT,
"Can't create pipeline layout: 'pipelineLayoutDesc.descriptorSets[%u].ranges[%u].descriptorNum' can't be 0.",
i, j);
RETURN_ON_FAILURE(GetLog(), range.visibility < ShaderStage::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create pipeline layout: 'pipelineLayoutDesc.descriptorSets[%u].ranges[%u].visibility' is invalid.",
i, j);
RETURN_ON_FAILURE(GetLog(), range.descriptorType < DescriptorType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create pipeline layout: 'pipelineLayoutDesc.descriptorSets[%u].ranges[%u].descriptorType' is invalid.",
i, j);
if (range.visibility != ShaderStage::ALL)
{
const PipelineLayoutShaderStageBits visibilityMask = PipelineLayoutShaderStageBits(1 << (uint32_t)range.visibility);
const uint32_t filteredVisibilityMask = visibilityMask & pipelineLayoutDesc.stageMask;
RETURN_ON_FAILURE(GetLog(), (uint32_t)visibilityMask == filteredVisibilityMask, Result::INVALID_ARGUMENT,
"Can't create pipeline layout: 'pipelineLayoutDesc.descriptorSets[%u].ranges[%u].visibility' is not "
"compatible with 'pipelineLayoutDesc.stageMask'.", i, j);
}
}
}
PipelineLayout* pipelineLayoutImpl = nullptr;
const Result result = m_CoreAPI.CreatePipelineLayout(m_Device, pipelineLayoutDesc, pipelineLayoutImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), pipelineLayoutImpl != nullptr, Result::FAILURE, "Unexpected error: 'pipelineLayoutImpl' is NULL.");
pipelineLayout = (PipelineLayout*)Allocate<PipelineLayoutVal>(GetStdAllocator(), *this, *pipelineLayoutImpl, pipelineLayoutDesc);
}
return result;
}
Result DeviceVal::CreatePipeline(const GraphicsPipelineDesc& graphicsPipelineDesc, Pipeline*& pipeline)
{
RETURN_ON_FAILURE(GetLog(), graphicsPipelineDesc.pipelineLayout != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'graphicsPipelineDesc.pipelineLayout' is invalid.");
RETURN_ON_FAILURE(GetLog(), graphicsPipelineDesc.outputMerger != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'graphicsPipelineDesc.outputMerger' is invalid.");
RETURN_ON_FAILURE(GetLog(), graphicsPipelineDesc.rasterization != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'graphicsPipelineDesc.rasterization' is invalid.");
RETURN_ON_FAILURE(GetLog(), graphicsPipelineDesc.shaderStages != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'graphicsPipelineDesc.shaderStages' is invalid.");
RETURN_ON_FAILURE(GetLog(), graphicsPipelineDesc.shaderStageNum > 0, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'graphicsPipelineDesc.shaderStageNum' is 0.");
const ShaderDesc* vertexShader = nullptr;
for (uint32_t i = 0; i < graphicsPipelineDesc.shaderStageNum; i++)
{
const ShaderDesc* shaderDesc = graphicsPipelineDesc.shaderStages + i;
if (shaderDesc->stage == ShaderStage::VERTEX)
vertexShader = shaderDesc;
RETURN_ON_FAILURE(GetLog(), shaderDesc->bytecode != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'graphicsPipelineDesc.shaderStages[%u].bytecode' is invalid.", i);
RETURN_ON_FAILURE(GetLog(), shaderDesc->size != 0, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'graphicsPipelineDesc.shaderStages[%u].size' is 0.", i);
RETURN_ON_FAILURE(GetLog(), shaderDesc->stage > ShaderStage::ALL && shaderDesc->stage < ShaderStage::COMPUTE, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'graphicsPipelineDesc.shaderStages[%u].stage' is invalid.", i);
}
if (graphicsPipelineDesc.inputAssembly != nullptr)
{
RETURN_ON_FAILURE(GetLog(), !graphicsPipelineDesc.inputAssembly->attributes || vertexShader, Result::INVALID_ARGUMENT,
"Can't create Pipeline: vertex shader is not specified, but input assembly attributes provided.");
const PipelineLayoutVal& pipelineLayout = *(PipelineLayoutVal*)graphicsPipelineDesc.pipelineLayout;
const PipelineLayoutShaderStageBits stageMask = pipelineLayout.GetPipelineLayoutDesc().stageMask;
RETURN_ON_FAILURE(GetLog(), (stageMask & PipelineLayoutShaderStageBits::VERTEX) != 0, Result::INVALID_ARGUMENT,
"Can't create Pipeline: vertex stage is not enabled in the pipeline layout.");
}
auto graphicsPipelineDescImpl = graphicsPipelineDesc;
graphicsPipelineDescImpl.pipelineLayout = NRI_GET_IMPL_PTR(PipelineLayout, graphicsPipelineDesc.pipelineLayout);
Pipeline* pipelineImpl = nullptr;
const Result result = m_CoreAPI.CreateGraphicsPipeline(m_Device, graphicsPipelineDescImpl, pipelineImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), pipelineImpl != nullptr, Result::FAILURE, "Unexpected error: 'pipelineImpl' is NULL.");
pipeline = (Pipeline*)Allocate<PipelineVal>(GetStdAllocator(), *this, *pipelineImpl, graphicsPipelineDesc);
}
return result;
}
Result DeviceVal::CreatePipeline(const ComputePipelineDesc& computePipelineDesc, Pipeline*& pipeline)
{
RETURN_ON_FAILURE(GetLog(), computePipelineDesc.pipelineLayout != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'computePipelineDesc.pipelineLayout' is invalid.");
RETURN_ON_FAILURE(GetLog(), computePipelineDesc.computeShader.bytecode != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'computePipelineDesc.computeShader.bytecode' is invalid.");
RETURN_ON_FAILURE(GetLog(), computePipelineDesc.computeShader.size != 0, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'computePipelineDesc.computeShader.size' is 0.");
RETURN_ON_FAILURE(GetLog(), computePipelineDesc.computeShader.stage == ShaderStage::COMPUTE, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'computePipelineDesc.computeShader.stage' must be ShaderStage::COMPUTE.");
auto computePipelineDescImpl = computePipelineDesc;
computePipelineDescImpl.pipelineLayout = NRI_GET_IMPL_PTR(PipelineLayout, computePipelineDesc.pipelineLayout);
Pipeline* pipelineImpl = nullptr;
const Result result = m_CoreAPI.CreateComputePipeline(m_Device, computePipelineDescImpl, pipelineImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), pipelineImpl != nullptr, Result::FAILURE, "Unexpected error: 'pipelineImpl' is NULL.");
pipeline = (Pipeline*)Allocate<PipelineVal>(GetStdAllocator(), *this, *pipelineImpl, computePipelineDesc);
}
return result;
}
Result DeviceVal::CreateFrameBuffer(const FrameBufferDesc& frameBufferDesc, FrameBuffer*& frameBuffer)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(frameBufferDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create FrameBuffer: 'frameBufferDesc.physicalDeviceMask' is invalid.");
if (frameBufferDesc.colorAttachmentNum > 0)
{
RETURN_ON_FAILURE(GetLog(), frameBufferDesc.colorAttachments != nullptr, Result::INVALID_ARGUMENT,
"Can't create FrameBuffer: 'frameBufferDesc.colorAttachments' is invalid.");
for (uint32_t i = 0; i < frameBufferDesc.colorAttachmentNum; i++)
{
DescriptorVal* descriptorVal = (DescriptorVal*)frameBufferDesc.colorAttachments[i];
RETURN_ON_FAILURE(GetLog(), descriptorVal->IsColorAttachment(), Result::INVALID_ARGUMENT,
"Can't create FrameBuffer: 'frameBufferDesc.colorAttachments[%u]' is not a color attachment descriptor.", i);
}
}
if (frameBufferDesc.depthStencilAttachment != nullptr)
{
DescriptorVal* descriptorVal = (DescriptorVal*)frameBufferDesc.depthStencilAttachment;
RETURN_ON_FAILURE(GetLog(), descriptorVal->IsDepthStencilAttachment(), Result::INVALID_ARGUMENT,
"Can't create FrameBuffer: 'frameBufferDesc.depthStencilAttachment' is not a depth stencil attachment descriptor.");
}
auto frameBufferDescImpl = frameBufferDesc;
if (frameBufferDesc.depthStencilAttachment)
frameBufferDescImpl.depthStencilAttachment = NRI_GET_IMPL_PTR(Descriptor, frameBufferDesc.depthStencilAttachment);
if (frameBufferDesc.colorAttachmentNum)
{
frameBufferDescImpl.colorAttachments = STACK_ALLOC(Descriptor*, frameBufferDesc.colorAttachmentNum);
for (uint32_t i = 0; i < frameBufferDesc.colorAttachmentNum; i++)
((Descriptor**)frameBufferDescImpl.colorAttachments)[i] = NRI_GET_IMPL_PTR(Descriptor, frameBufferDesc.colorAttachments[i]);
}
FrameBuffer* frameBufferImpl = nullptr;
const Result result = m_CoreAPI.CreateFrameBuffer(m_Device, frameBufferDescImpl, frameBufferImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), frameBufferImpl != nullptr, Result::FAILURE, "Unexpected error: 'frameBufferImpl' is NULL!");
frameBuffer = (FrameBuffer*)Allocate<FrameBufferVal>(GetStdAllocator(), *this, *frameBufferImpl);
}
return result;
}
Result DeviceVal::CreateQueryPool(const QueryPoolDesc& queryPoolDesc, QueryPool*& queryPool)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(queryPoolDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create QueryPool: 'queryPoolDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), queryPoolDesc.queryType < QueryType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create QueryPool: 'queryPoolDesc.queryType' is invalid.");
RETURN_ON_FAILURE(GetLog(), queryPoolDesc.capacity > 0, Result::INVALID_ARGUMENT,
"Can't create QueryPool: 'queryPoolDesc.capacity' is 0.");
QueryPool* queryPoolImpl = nullptr;
const Result result = m_CoreAPI.CreateQueryPool(m_Device, queryPoolDesc, queryPoolImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), queryPoolImpl != nullptr, Result::FAILURE, "Unexpected error: 'queryPoolImpl' is NULL!");
queryPool = (QueryPool*)Allocate<QueryPoolVal>(GetStdAllocator(), *this, *queryPoolImpl, queryPoolDesc.queryType,
queryPoolDesc.capacity);
}
return result;
}
Result DeviceVal::CreateQueueSemaphore(QueueSemaphore*& queueSemaphore)
{
QueueSemaphore* queueSemaphoreImpl;
const Result result = m_CoreAPI.CreateQueueSemaphore(m_Device, queueSemaphoreImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), queueSemaphoreImpl != nullptr, Result::FAILURE, "Unexpected error: 'queueSemaphoreImpl' is NULL!");
queueSemaphore = (QueueSemaphore*)Allocate<QueueSemaphoreVal>(GetStdAllocator(), *this, *queueSemaphoreImpl);
}
return result;
}
Result DeviceVal::CreateDeviceSemaphore(bool signaled, DeviceSemaphore*& deviceSemaphore)
{
DeviceSemaphore* deviceSemaphoreImpl;
const Result result = m_CoreAPI.CreateDeviceSemaphore(m_Device, signaled, deviceSemaphoreImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), deviceSemaphoreImpl != nullptr, Result::FAILURE, "Unexpected error: 'queueSemaphoreImpl' is NULL!");
DeviceSemaphoreVal* deviceSemaphoreVal = Allocate<DeviceSemaphoreVal>(GetStdAllocator(), *this, *deviceSemaphoreImpl);
deviceSemaphoreVal->Create(signaled);
deviceSemaphore = (DeviceSemaphore*)deviceSemaphoreVal;
}
return result;
}
void DeviceVal::DestroyCommandAllocator(CommandAllocator& commandAllocator)
{
m_CoreAPI.DestroyCommandAllocator(*NRI_GET_IMPL_REF(CommandAllocator, &commandAllocator));
Deallocate(GetStdAllocator(), (CommandAllocatorVal*)&commandAllocator);
}
void DeviceVal::DestroyDescriptorPool(DescriptorPool& descriptorPool)
{
m_CoreAPI.DestroyDescriptorPool(*NRI_GET_IMPL_REF(DescriptorPool, &descriptorPool));
Deallocate(GetStdAllocator(), (DescriptorPoolVal*)&descriptorPool);
}
void DeviceVal::DestroyBuffer(Buffer& buffer)
{
m_CoreAPI.DestroyBuffer(*NRI_GET_IMPL_REF(Buffer, &buffer));
Deallocate(GetStdAllocator(), (BufferVal*)&buffer);
}
void DeviceVal::DestroyTexture(Texture& texture)
{
m_CoreAPI.DestroyTexture(*NRI_GET_IMPL_REF(Texture, &texture));
Deallocate(GetStdAllocator(), (TextureVal*)&texture);
}
void DeviceVal::DestroyDescriptor(Descriptor& descriptor)
{
m_CoreAPI.DestroyDescriptor(*NRI_GET_IMPL_REF(Descriptor, &descriptor));
Deallocate(GetStdAllocator(), (DescriptorVal*)&descriptor);
}
void DeviceVal::DestroyPipelineLayout(PipelineLayout& pipelineLayout)
{
m_CoreAPI.DestroyPipelineLayout(*NRI_GET_IMPL_REF(PipelineLayout, &pipelineLayout));
Deallocate(GetStdAllocator(), (PipelineLayoutVal*)&pipelineLayout);
}
void DeviceVal::DestroyPipeline(Pipeline& pipeline)
{
m_CoreAPI.DestroyPipeline(*NRI_GET_IMPL_REF(Pipeline, &pipeline));
Deallocate(GetStdAllocator(), (PipelineVal*)&pipeline);
}
void DeviceVal::DestroyFrameBuffer(FrameBuffer& frameBuffer)
{
m_CoreAPI.DestroyFrameBuffer(*NRI_GET_IMPL_REF(FrameBuffer, &frameBuffer));
Deallocate(GetStdAllocator(), (FrameBufferVal*)&frameBuffer);
}
void DeviceVal::DestroyQueryPool(QueryPool& queryPool)
{
m_CoreAPI.DestroyQueryPool(*NRI_GET_IMPL_REF(QueryPool, &queryPool));
Deallocate(GetStdAllocator(), (QueryPoolVal*)&queryPool);
}
void DeviceVal::DestroyQueueSemaphore(QueueSemaphore& queueSemaphore)
{
m_CoreAPI.DestroyQueueSemaphore(*NRI_GET_IMPL_REF(QueueSemaphore, &queueSemaphore));
Deallocate(GetStdAllocator(), (QueueSemaphoreVal*)&queueSemaphore);
}
void DeviceVal::DestroyDeviceSemaphore(DeviceSemaphore& deviceSemaphore)
{
m_CoreAPI.DestroyDeviceSemaphore(*NRI_GET_IMPL_REF(DeviceSemaphore, &deviceSemaphore));
Deallocate(GetStdAllocator(), (DeviceSemaphoreVal*)&deviceSemaphore);
}
Result DeviceVal::AllocateMemory(uint32_t physicalDeviceMask, MemoryType memoryType, uint64_t size, Memory*& memory)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't allocate Memory: 'physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), size > 0, Result::INVALID_ARGUMENT,
"Can't allocate Memory: 'size' is 0.");
std::unordered_map<MemoryType, MemoryLocation>::iterator it;
std::unordered_map<MemoryType, MemoryLocation>::iterator end;
{
SharedScope lockScope(m_Lock);
it = m_MemoryTypeMap.find(memoryType);
end = m_MemoryTypeMap.end();
}
RETURN_ON_FAILURE(GetLog(), it != end, Result::FAILURE,
"Can't allocate Memory: 'memoryType' is invalid.");
Memory* memoryImpl;
const Result result = m_CoreAPI.AllocateMemory(m_Device, physicalDeviceMask, memoryType, size, memoryImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), memoryImpl != nullptr, Result::FAILURE, "Unexpected error: 'memoryImpl' is NULL!");
memory = (Memory*)Allocate<MemoryVal>(GetStdAllocator(), *this, *memoryImpl, size, it->second);
}
return result;
}
Result DeviceVal::BindBufferMemory(const BufferMemoryBindingDesc* memoryBindingDescs, uint32_t memoryBindingDescNum)
{
if (memoryBindingDescNum == 0)
return Result::SUCCESS;
RETURN_ON_FAILURE(GetLog(), memoryBindingDescs != nullptr, Result::INVALID_ARGUMENT,
"Can't bind memory to buffers: 'memoryBindingDescs' is invalid.");
BufferMemoryBindingDesc* memoryBindingDescsImpl = STACK_ALLOC(BufferMemoryBindingDesc, memoryBindingDescNum);
for (uint32_t i = 0; i < memoryBindingDescNum; i++)
{
BufferMemoryBindingDesc& destDesc = memoryBindingDescsImpl[i];
const BufferMemoryBindingDesc& srcDesc = memoryBindingDescs[i];
RETURN_ON_FAILURE(GetLog(), srcDesc.buffer != nullptr, Result::INVALID_ARGUMENT,
"Can't bind memory to buffers: 'memoryBindingDescs[%u].buffer' is invalid.", i);
RETURN_ON_FAILURE(GetLog(), srcDesc.memory != nullptr, Result::INVALID_ARGUMENT,
"Can't bind memory to buffers: 'memoryBindingDescs[%u].memory' is invalid.", i);
MemoryVal& memory = (MemoryVal&)*srcDesc.memory;
BufferVal& buffer = (BufferVal&)*srcDesc.buffer;
RETURN_ON_FAILURE(GetLog(), !buffer.IsBoundToMemory(), Result::INVALID_ARGUMENT,
"Can't bind memory to buffers: 'memoryBindingDescs[%u].buffer' is already bound to memory.", i);
// Skip validation if memory has been created from GAPI object using a wrapper extension
if (memory.GetMemoryLocation() == MemoryLocation::MAX_NUM)
continue;
MemoryDesc memoryDesc = {};
buffer.GetMemoryInfo(memory.GetMemoryLocation(), memoryDesc);
RETURN_ON_FAILURE(GetLog(), !memoryDesc.mustBeDedicated || srcDesc.offset == 0, Result::INVALID_ARGUMENT,
"Can't bind memory to buffers: 'memoryBindingDescs[%u].offset' must be zero for dedicated allocation.", i);
RETURN_ON_FAILURE(GetLog(), memoryDesc.alignment != 0, Result::INVALID_ARGUMENT,
"Can't bind memory to buffers: 'memoryBindingDescs[%u].alignment' can't be zero.", i);
RETURN_ON_FAILURE(GetLog(), srcDesc.offset % memoryDesc.alignment == 0, Result::INVALID_ARGUMENT,
"Can't bind memory to buffers: 'memoryBindingDescs[%u].offset' is misaligned.", i);
const uint64_t rangeMax = srcDesc.offset + memoryDesc.size;
const bool memorySizeIsUnknown = memory.GetSize() == 0;
RETURN_ON_FAILURE(GetLog(), memorySizeIsUnknown || rangeMax <= memory.GetSize(), Result::INVALID_ARGUMENT,
"Can't bind memory to buffers: 'memoryBindingDescs[%u].offset' is invalid.", i);
destDesc = srcDesc;
destDesc.memory = &memory.GetImpl();
destDesc.buffer = &buffer.GetImpl();
}
const Result result = m_CoreAPI.BindBufferMemory(m_Device, memoryBindingDescsImpl, memoryBindingDescNum);
if (result == Result::SUCCESS)
{
for (uint32_t i = 0; i < memoryBindingDescNum; i++)
{
MemoryVal& memory = *(MemoryVal*)memoryBindingDescs[i].memory;
memory.BindBuffer(*(BufferVal*)memoryBindingDescs[i].buffer);
}
}
return result;
}
Result DeviceVal::BindTextureMemory(const TextureMemoryBindingDesc* memoryBindingDescs, uint32_t memoryBindingDescNum)
{
RETURN_ON_FAILURE(GetLog(), memoryBindingDescs != nullptr || memoryBindingDescNum == 0, Result::INVALID_ARGUMENT,
"Can't bind memory to textures: 'memoryBindingDescs' is a NULL.");
TextureMemoryBindingDesc* memoryBindingDescsImpl = STACK_ALLOC(TextureMemoryBindingDesc, memoryBindingDescNum);
for (uint32_t i = 0; i < memoryBindingDescNum; i++)
{
TextureMemoryBindingDesc& destDesc = memoryBindingDescsImpl[i];
const TextureMemoryBindingDesc& srcDesc = memoryBindingDescs[i];
RETURN_ON_FAILURE(GetLog(), srcDesc.texture != nullptr, Result::INVALID_ARGUMENT,
"Can't bind memory to textures: 'memoryBindingDescs[%u].texture' is invalid.", i);
RETURN_ON_FAILURE(GetLog(), srcDesc.memory != nullptr, Result::INVALID_ARGUMENT,
"Can't bind memory to textures: 'memoryBindingDescs[%u].memory' is invalid.", i);
MemoryVal& memory = (MemoryVal&)*srcDesc.memory;
TextureVal& texture = (TextureVal&)*srcDesc.texture;
RETURN_ON_FAILURE(GetLog(), !texture.IsBoundToMemory(), Result::INVALID_ARGUMENT,
"Can't bind memory to textures: 'memoryBindingDescs[%u].texture' is already bound to memory.", i);
// Skip validation if memory has been created from GAPI object using a wrapper extension
if (memory.GetMemoryLocation() == MemoryLocation::MAX_NUM)
continue;
MemoryDesc memoryDesc = {};
texture.GetMemoryInfo(memory.GetMemoryLocation(), memoryDesc);
RETURN_ON_FAILURE(GetLog(), !memoryDesc.mustBeDedicated || srcDesc.offset == 0, Result::INVALID_ARGUMENT,
"Can't bind memory to textures: 'memoryBindingDescs[%u].offset' must be zero for dedicated allocation.", i);
RETURN_ON_FAILURE(GetLog(), memoryDesc.alignment != 0, Result::INVALID_ARGUMENT,
"Can't bind memory to textures: 'memoryBindingDescs[%u].alignment' can't be zero.", i);
RETURN_ON_FAILURE(GetLog(), srcDesc.offset % memoryDesc.alignment == 0, Result::INVALID_ARGUMENT,
"Can't bind memory to textures: 'memoryBindingDescs[%u].offset' is misaligned.", i);
const uint64_t rangeMax = srcDesc.offset + memoryDesc.size;
const bool memorySizeIsUnknown = memory.GetSize() == 0;
RETURN_ON_FAILURE(GetLog(), memorySizeIsUnknown || rangeMax <= memory.GetSize(), Result::INVALID_ARGUMENT,
"Can't bind memory to textures: 'memoryBindingDescs[%u].offset' is invalid.", i);
destDesc = srcDesc;
destDesc.memory = &memory.GetImpl();
destDesc.texture = &texture.GetImpl();
}
const Result result = m_CoreAPI.BindTextureMemory(m_Device, memoryBindingDescsImpl, memoryBindingDescNum);
if (result == Result::SUCCESS)
{
for (uint32_t i = 0; i < memoryBindingDescNum; i++)
{
MemoryVal& memory = *(MemoryVal*)memoryBindingDescs[i].memory;
memory.BindTexture(*(TextureVal*)memoryBindingDescs[i].texture);
}
}
return result;
}
void DeviceVal::FreeMemory(Memory& memory)
{
MemoryVal& memoryVal = (MemoryVal&)memory;
if (memoryVal.HasBoundResources())
{
memoryVal.ReportBoundResources();
REPORT_ERROR(GetLog(), "Can't free Memory: some resources are still bound to the memory.");
return;
}
m_CoreAPI.FreeMemory(*NRI_GET_IMPL_REF(Memory, &memory));
Deallocate(GetStdAllocator(), (MemoryVal*)&memory);
}
FormatSupportBits DeviceVal::GetFormatSupport(Format format) const
{
return m_CoreAPI.GetFormatSupport(m_Device, format);
}
#if NRI_USE_VULKAN
NRIVkDevice DeviceVal::GetDeviceVK() const
{
return m_WrapperVKAPI.GetDeviceVK(m_Device);
}
NRIVkPhysicalDevice DeviceVal::GetPhysicalDeviceVK() const
{
return m_WrapperVKAPI.GetPhysicalDeviceVK(m_Device);
}
NRIVkInstance DeviceVal::GetInstanceVK() const
{
return m_WrapperVKAPI.GetInstanceVK(m_Device);
}
Result DeviceVal::CreateCommandQueueVK(const CommandQueueVulkanDesc& commandQueueVulkanDesc, CommandQueue*& commandQueue)
{
RETURN_ON_FAILURE(GetLog(), commandQueueVulkanDesc.vkQueue != 0, Result::INVALID_ARGUMENT,
"Can't create CommandQueue: 'commandQueueVulkanDesc.vkQueue' is invalid.");
RETURN_ON_FAILURE(GetLog(), commandQueueVulkanDesc.commandQueueType < CommandQueueType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create CommandQueue: 'commandQueueVulkanDesc.commandQueueType' is invalid.");
CommandQueue* commandQueueImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateCommandQueueVK(m_Device, commandQueueVulkanDesc, commandQueueImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), commandQueueImpl != nullptr, Result::FAILURE,
"Can't create CommandQueue: unexpected error.");
commandQueue = (CommandQueue*)Allocate<CommandQueueVal>(GetStdAllocator(), *this, *commandQueueImpl);
}
return result;
}
Result DeviceVal::CreateCommandAllocatorVK(const CommandAllocatorVulkanDesc& commandAllocatorVulkanDesc, CommandAllocator*& commandAllocator)
{
RETURN_ON_FAILURE(GetLog(), commandAllocatorVulkanDesc.vkCommandPool != nullptr, Result::INVALID_ARGUMENT,
"Can't create CommandAllocator: 'commandAllocatorVulkanDesc.vkCommandPool' is invalid.");
RETURN_ON_FAILURE(GetLog(), commandAllocatorVulkanDesc.commandQueueType < CommandQueueType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create CommandAllocator: 'commandAllocatorVulkanDesc.commandQueueType' is invalid.");
CommandAllocator* commandAllocatorImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateCommandAllocatorVK(m_Device, commandAllocatorVulkanDesc, commandAllocatorImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), commandAllocatorImpl != nullptr, Result::FAILURE,
"Can't create CommandAllocator: unexpected error.");
commandAllocator = (CommandAllocator*)Allocate<CommandAllocatorVal>(GetStdAllocator(), *this, *commandAllocatorImpl);
}
return result;
}
Result DeviceVal::CreateCommandBufferVK(const CommandBufferVulkanDesc& commandBufferVulkanDesc, CommandBuffer*& commandBuffer)
{
RETURN_ON_FAILURE(GetLog(), commandBufferVulkanDesc.vkCommandBuffer != 0, Result::INVALID_ARGUMENT,
"Can't create CommandBuffer: 'commandBufferVulkanDesc.vkCommandBuffer' is invalid.");
RETURN_ON_FAILURE(GetLog(), commandBufferVulkanDesc.commandQueueType < CommandQueueType::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create CommandBuffer: 'commandBufferVulkanDesc.commandQueueType' is invalid.");
CommandBuffer* commandBufferImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateCommandBufferVK(m_Device, commandBufferVulkanDesc, commandBufferImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), commandBufferImpl != nullptr, Result::FAILURE,
"Can't create CommandBuffer: unexpected error.");
commandBuffer = (CommandBuffer*)Allocate<CommandBufferVal>(GetStdAllocator(), *this, *commandBufferImpl);
}
return result;
}
Result DeviceVal::CreateDescriptorPoolVK(NRIVkDescriptorPool vkDescriptorPool, DescriptorPool*& descriptorPool)
{
RETURN_ON_FAILURE(GetLog(), vkDescriptorPool != nullptr, Result::INVALID_ARGUMENT,
"Can't create DescriptorPool: 'vkDescriptorPool' is invalid.");
DescriptorPool* descriptorPoolImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateDescriptorPoolVK(m_Device, vkDescriptorPool, descriptorPoolImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), descriptorPoolImpl != nullptr, Result::FAILURE,
"Can't create DescriptorPool: unexpected error.");
descriptorPool = (DescriptorPool*)Allocate<DescriptorPoolVal>(GetStdAllocator(), *this, *descriptorPoolImpl);
}
return result;
}
Result DeviceVal::CreateBufferVK(const BufferVulkanDesc& bufferDesc, Buffer*& buffer)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(bufferDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create Buffer: 'bufferDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), bufferDesc.vkBuffer != nullptr, Result::INVALID_ARGUMENT,
"Can't create Buffer: 'bufferDesc.vkBuffer' is invalid.");
RETURN_ON_FAILURE(GetLog(), bufferDesc.memory != nullptr, Result::INVALID_ARGUMENT,
"Can't create Buffer: 'bufferDesc.memory' is invalid.");
RETURN_ON_FAILURE(GetLog(), bufferDesc.bufferSize > 0, Result::INVALID_ARGUMENT,
"Can't create Buffer: 'bufferDesc.bufferSize' is 0.");
Buffer* bufferImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateBufferVK(m_Device, bufferDesc, bufferImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), bufferImpl != nullptr, Result::FAILURE,
"Can't create Buffer: unexpected error.");
buffer = (Buffer*)Allocate<BufferVal>(GetStdAllocator(), *this, *bufferImpl, bufferDesc);
}
return result;
}
Result DeviceVal::CreateTextureVK(const TextureVulkanDesc& textureVulkanDesc, Texture*& texture)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(textureVulkanDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureVulkanDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), textureVulkanDesc.vkImage != nullptr, Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureVulkanDesc.vkImage' is invalid.");
RETURN_ON_FAILURE(GetLog(), GetFormatVK(textureVulkanDesc.vkFormat) != Format::UNKNOWN, Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureVulkanDesc.sampleNum' is 0.");
RETURN_ON_FAILURE(GetLog(), textureVulkanDesc.sampleNum > 0, Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureVulkanDesc.sampleNum' is 0.");
RETURN_ON_FAILURE(GetLog(), textureVulkanDesc.arraySize > 0, Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureVulkanDesc.arraySize' is 0.");
RETURN_ON_FAILURE(GetLog(), textureVulkanDesc.mipNum > 0, Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureVulkanDesc.mipNum' is 0.");
Texture* textureImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateTextureVK(m_Device, textureVulkanDesc, textureImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), textureImpl != nullptr, Result::FAILURE,
"Can't create Texture: unexpected error.");
texture = (Texture*)Allocate<TextureVal>(GetStdAllocator(), *this, *textureImpl, textureVulkanDesc);
}
return result;
}
Result DeviceVal::CreateMemoryVK(const MemoryVulkanDesc& memoryVulkanDesc, Memory*& memory)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(memoryVulkanDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create Memory: 'memoryVulkanDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), memoryVulkanDesc.vkDeviceMemory != nullptr, Result::INVALID_ARGUMENT,
"Can't create Memory: 'memoryVulkanDesc.vkDeviceMemory' is invalid.");
RETURN_ON_FAILURE(GetLog(), memoryVulkanDesc.size > 0, Result::INVALID_ARGUMENT,
"Can't create Memory: 'memoryVulkanDesc.size' is 0.");
Memory* memoryImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateMemoryVK(m_Device, memoryVulkanDesc, memoryImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), memoryImpl != nullptr, Result::FAILURE,
"Can't create Memory: unexpected error.");
memory = (Memory*)Allocate<MemoryVal>(GetStdAllocator(), *this, *memoryImpl, memoryVulkanDesc.size, MemoryLocation::MAX_NUM);
}
return result;
}
Result DeviceVal::CreateGraphicsPipelineVK(NRIVkPipeline vkPipeline, Pipeline*& pipeline)
{
RETURN_ON_FAILURE(GetLog(), vkPipeline != 0, Result::INVALID_ARGUMENT,
"Can't create graphics Pipeline: 'vkPipeline' is invalid.");
Pipeline* pipelineImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateGraphicsPipelineVK(m_Device, vkPipeline, pipelineImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), pipelineImpl != nullptr, Result::FAILURE,
"Can't create Pipeline: unexpected error.");
pipeline = (Pipeline*)Allocate<PipelineVal>(GetStdAllocator(), *this, *pipelineImpl);
}
return result;
}
Result DeviceVal::CreateComputePipelineVK(NRIVkPipeline vkPipeline, Pipeline*& pipeline)
{
RETURN_ON_FAILURE(GetLog(), vkPipeline != 0, Result::INVALID_ARGUMENT,
"Can't create compute Pipeline: 'vkPipeline' is invalid.");
Pipeline* pipelineImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateComputePipelineVK(m_Device, vkPipeline, pipelineImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), pipelineImpl != nullptr, Result::FAILURE,
"Can't create Pipeline: unexpected error.");
pipeline = (Pipeline*)Allocate<PipelineVal>(GetStdAllocator(), *this, *pipelineImpl);
}
return result;
}
Result DeviceVal::CreateQueryPoolVK(const QueryPoolVulkanDesc& queryPoolVulkanDesc, QueryPool*& queryPool)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(queryPoolVulkanDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create QueryPool: 'queryPoolVulkanDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), queryPoolVulkanDesc.vkQueryPool != nullptr, Result::INVALID_ARGUMENT,
"Can't create QueryPool: 'queryPoolVulkanDesc.vkQueryPool' is invalid.");
QueryPool* queryPoolImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateQueryPoolVK(m_Device, queryPoolVulkanDesc, queryPoolImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), queryPoolImpl != nullptr, Result::FAILURE,
"Can't create QueryPool: unexpected error.");
const QueryType queryType = GetQueryTypeVK(queryPoolVulkanDesc.vkQueryType);
queryPool = (QueryPool*)Allocate<QueryPoolVal>(GetStdAllocator(), *this, *queryPoolImpl, queryType, 0);
}
return result;
}
Result DeviceVal::CreateQueueSemaphoreVK(NRIVkSemaphore vkSemaphore, QueueSemaphore*& queueSemaphore)
{
RETURN_ON_FAILURE(GetLog(), vkSemaphore != nullptr, Result::INVALID_ARGUMENT,
"Can't create QueueSemaphore: 'vkSemaphore' is invalid.");
QueueSemaphore* queueSemaphoreImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateQueueSemaphoreVK(m_Device, vkSemaphore, queueSemaphoreImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), queueSemaphoreImpl != nullptr, Result::FAILURE,
"Can't create QueueSemaphore: unexpected error.");
queueSemaphore = (QueueSemaphore*)Allocate<QueueSemaphoreVal>(GetStdAllocator(), *this, *queueSemaphoreImpl);
}
return result;
}
Result DeviceVal::CreateDeviceSemaphoreVK(NRIVkFence vkFence, DeviceSemaphore*& deviceSemaphore)
{
RETURN_ON_FAILURE(GetLog(), vkFence != nullptr, Result::INVALID_ARGUMENT,
"Can't create DeviceSemaphore: 'vkFence' is invalid.");
DeviceSemaphore* deviceSemaphoreImpl = nullptr;
const Result result = m_WrapperVKAPI.CreateDeviceSemaphoreVK(m_Device, vkFence, deviceSemaphoreImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), deviceSemaphoreImpl != nullptr, Result::FAILURE,
"Can't create DeviceSemaphore: unexpected error.");
deviceSemaphore = (DeviceSemaphore*)Allocate<DeviceSemaphoreVal>(GetStdAllocator(), *this, *deviceSemaphoreImpl);
}
return result;
}
#endif
#if NRI_USE_D3D11
Result DeviceVal::CreateCommandBufferD3D11(const CommandBufferD3D11Desc& commandBufferDesc, CommandBuffer*& commandBuffer)
{
RETURN_ON_FAILURE(GetLog(), commandBufferDesc.d3d11DeviceContext != nullptr, Result::INVALID_ARGUMENT,
"Can't create CommandBuffer: 'commandBufferDesc.d3d11DeviceContext' is invalid.");
CommandBuffer* commandBufferImpl = nullptr;
const Result result = m_WrapperD3D11API.CreateCommandBufferD3D11(m_Device, commandBufferDesc, commandBufferImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), commandBufferImpl != nullptr, Result::FAILURE,
"Can't create CommandBuffer: unexpected error.");
commandBuffer = (CommandBuffer*)Allocate<CommandBufferVal>(GetStdAllocator(), *this, *commandBufferImpl);
}
return result;
}
Result DeviceVal::CreateBufferD3D11(const BufferD3D11Desc& bufferDesc, Buffer*& buffer)
{
RETURN_ON_FAILURE(GetLog(), bufferDesc.d3d11Resource != nullptr, Result::INVALID_ARGUMENT,
"Can't create Buffer: 'bufferDesc.d3d11Resource' is invalid.");
Buffer* bufferImpl = nullptr;
const Result result = m_WrapperD3D11API.CreateBufferD3D11(m_Device, bufferDesc, bufferImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), bufferImpl != nullptr, Result::FAILURE,
"Can't create Buffer: unexpected error.");
buffer = (Buffer*)Allocate<BufferVal>(GetStdAllocator(), *this, *bufferImpl, bufferDesc);
}
return result;
}
Result DeviceVal::CreateTextureD3D11(const TextureD3D11Desc& textureDesc, Texture*& texture)
{
RETURN_ON_FAILURE(GetLog(), textureDesc.d3d11Resource != nullptr, Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureDesc.d3d11Resource' is invalid.");
Texture* textureImpl = nullptr;
const Result result = m_WrapperD3D11API.CreateTextureD3D11(m_Device, textureDesc, textureImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), textureImpl != nullptr, Result::FAILURE,
"Can't create Texture: unexpected error.");
texture = (Texture*)Allocate<TextureVal>(GetStdAllocator(), *this, *textureImpl, textureDesc);
}
return result;
}
ID3D11Device* DeviceVal::GetDeviceD3D11()
{
return m_WrapperD3D11API.GetDeviceD3D11(m_Device);
}
#endif
#if NRI_USE_D3D12
Result DeviceVal::CreateCommandBufferD3D12(const CommandBufferD3D12Desc& commandBufferDesc, CommandBuffer*& commandBuffer)
{
RETURN_ON_FAILURE(GetLog(), commandBufferDesc.d3d12CommandAllocator != nullptr, Result::INVALID_ARGUMENT,
"Can't create CommandBuffer: 'commandBufferDesc.d3d12CommandAllocator' is invalid.");
RETURN_ON_FAILURE(GetLog(), commandBufferDesc.d3d12CommandList != nullptr, Result::INVALID_ARGUMENT,
"Can't create CommandBuffer: 'commandBufferDesc.d3d12CommandList' is invalid.");
CommandBuffer* commandBufferImpl = nullptr;
const Result result = m_WrapperD3D12API.CreateCommandBufferD3D12(m_Device, commandBufferDesc, commandBufferImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), commandBufferImpl != nullptr, Result::FAILURE,
"Can't create CommandBuffer: unexpected error.");
commandBuffer = (CommandBuffer*)Allocate<CommandBufferVal>(GetStdAllocator(), *this, *commandBufferImpl);
}
return result;
}
Result DeviceVal::CreateBufferD3D12(const BufferD3D12Desc& bufferDesc, Buffer*& buffer)
{
RETURN_ON_FAILURE(GetLog(), bufferDesc.d3d12Resource != nullptr, Result::INVALID_ARGUMENT,
"Can't create Buffer: 'bufferDesc.d3d12Resource' is invalid.");
Buffer* bufferImpl = nullptr;
const Result result = m_WrapperD3D12API.CreateBufferD3D12(m_Device, bufferDesc, bufferImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), bufferImpl != nullptr, Result::FAILURE,
"Can't create Buffer: unexpected error.");
buffer = (Buffer*)Allocate<BufferVal>(GetStdAllocator(), *this, *bufferImpl, bufferDesc);
}
return result;
}
Result DeviceVal::CreateTextureD3D12(const TextureD3D12Desc& textureDesc, Texture*& texture)
{
RETURN_ON_FAILURE(GetLog(), textureDesc.d3d12Resource != nullptr, Result::INVALID_ARGUMENT,
"Can't create Texture: 'textureDesc.d3d12Resource' is invalid.");
Texture* textureImpl = nullptr;
const Result result = m_WrapperD3D12API.CreateTextureD3D12(m_Device, textureDesc, textureImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), textureImpl != nullptr, Result::FAILURE,
"Can't create Texture: unexpected error.");
texture = (Texture*)Allocate<TextureVal>(GetStdAllocator(), *this, *textureImpl, textureDesc);
}
return result;
}
Result DeviceVal::CreateMemoryD3D12(const MemoryD3D12Desc& memoryDesc, Memory*& memory)
{
RETURN_ON_FAILURE(GetLog(), memoryDesc.d3d12Heap != nullptr, Result::INVALID_ARGUMENT,
"Can't create Memory: 'memoryDesc.d3d12Heap' is invalid.");
Memory* memoryImpl = nullptr;
const Result result = m_WrapperD3D12API.CreateMemoryD3D12(m_Device, memoryDesc, memoryImpl);
const uint64_t size = GetMemorySizeD3D12(memoryDesc);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), memoryImpl != nullptr, Result::FAILURE,
"Can't create Memory: unexpected error.");
memory = (Memory*)Allocate<MemoryVal>(GetStdAllocator(), *this, *memoryImpl, size, MemoryLocation::MAX_NUM);
}
return result;
}
ID3D12Device* DeviceVal::GetDeviceD3D12()
{
return m_WrapperD3D12API.GetDeviceD3D12(m_Device);
}
#endif
uint32_t DeviceVal::CalculateAllocationNumber(const ResourceGroupDesc& resourceGroupDesc) const
{
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.memoryLocation < MemoryLocation::MAX_NUM, 0,
"Can't calculate the number of allocations: 'resourceGroupDesc.memoryLocation' is invalid.");
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.bufferNum == 0 || resourceGroupDesc.buffers != nullptr, 0,
"Can't calculate the number of allocations: 'resourceGroupDesc.buffers' is invalid.");
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.textureNum == 0 || resourceGroupDesc.textures != nullptr, 0,
"Can't calculate the number of allocations: 'resourceGroupDesc.textures' is invalid.");
Buffer** buffersImpl = STACK_ALLOC(Buffer*, resourceGroupDesc.bufferNum);
for (uint32_t i = 0; i < resourceGroupDesc.bufferNum; i++)
{
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.buffers[i] != nullptr, 0,
"Can't calculate the number of allocations: 'resourceGroupDesc.buffers[%u]' is invalid.", i);
BufferVal& bufferVal = *(BufferVal*)resourceGroupDesc.buffers[i];
buffersImpl[i] = &(bufferVal.GetImpl());
}
Texture** texturesImpl = STACK_ALLOC(Texture*, resourceGroupDesc.textureNum);
for (uint32_t i = 0; i < resourceGroupDesc.textureNum; i++)
{
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.textures[i] != nullptr, 0,
"Can't calculate the number of allocations: 'resourceGroupDesc.textures[%u]' is invalid.", i);
TextureVal& textureVal = *(TextureVal*)resourceGroupDesc.textures[i];
texturesImpl[i] = &(textureVal.GetImpl());
}
ResourceGroupDesc resourceGroupDescImpl = resourceGroupDesc;
resourceGroupDescImpl.buffers = buffersImpl;
resourceGroupDescImpl.textures = texturesImpl;
return m_HelperAPI.CalculateAllocationNumber(m_Device, resourceGroupDescImpl);
}
Result DeviceVal::AllocateAndBindMemory(const ResourceGroupDesc& resourceGroupDesc, Memory** allocations)
{
RETURN_ON_FAILURE(GetLog(), allocations != nullptr, Result::INVALID_ARGUMENT,
"Can't allocate and bind memory: 'allocations' is invalid.");
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.memoryLocation < MemoryLocation::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't allocate and bind memory: 'resourceGroupDesc.memoryLocation' is invalid.");
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.bufferNum == 0 || resourceGroupDesc.buffers != nullptr, Result::INVALID_ARGUMENT,
"Can't allocate and bind memory: 'resourceGroupDesc.buffers' is invalid.");
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.textureNum == 0 || resourceGroupDesc.textures != nullptr, Result::INVALID_ARGUMENT,
"Can't allocate and bind memory: 'resourceGroupDesc.textures' is invalid.");
Buffer** buffersImpl = STACK_ALLOC(Buffer*, resourceGroupDesc.bufferNum);
for (uint32_t i = 0; i < resourceGroupDesc.bufferNum; i++)
{
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.buffers[i] != nullptr, Result::INVALID_ARGUMENT,
"Can't allocate and bind memory: 'resourceGroupDesc.buffers[%u]' is invalid.", i);
BufferVal& bufferVal = *(BufferVal*)resourceGroupDesc.buffers[i];
buffersImpl[i] = &(bufferVal.GetImpl());
}
Texture** texturesImpl = STACK_ALLOC(Texture*, resourceGroupDesc.textureNum);
for (uint32_t i = 0; i < resourceGroupDesc.textureNum; i++)
{
RETURN_ON_FAILURE(GetLog(), resourceGroupDesc.textures[i] != nullptr, Result::INVALID_ARGUMENT,
"Can't allocate and bind memory: 'resourceGroupDesc.textures[%u]' is invalid.", i);
TextureVal& textureVal = *(TextureVal*)resourceGroupDesc.textures[i];
texturesImpl[i] = &(textureVal.GetImpl());
}
const size_t allocationNum = CalculateAllocationNumber(resourceGroupDesc);
ResourceGroupDesc resourceGroupDescImpl = resourceGroupDesc;
resourceGroupDescImpl.buffers = buffersImpl;
resourceGroupDescImpl.textures = texturesImpl;
const Result result = m_HelperAPI.AllocateAndBindMemory(m_Device, resourceGroupDescImpl, allocations);
if (result == Result::SUCCESS)
{
for (uint32_t i = 0; i < resourceGroupDesc.bufferNum; i++)
{
BufferVal& bufferVal = *(BufferVal*)resourceGroupDesc.buffers[i];
bufferVal.SetBoundToMemory();
}
for (uint32_t i = 0; i < resourceGroupDesc.textureNum; i++)
{
TextureVal& textureVal = *(TextureVal*)resourceGroupDesc.textures[i];
textureVal.SetBoundToMemory();
}
for (uint32_t i = 0; i < allocationNum; i++)
{
RETURN_ON_FAILURE(GetLog(), allocations[i] != nullptr, Result::FAILURE, "Unexpected error: 'memoryImpl' is invalid");
allocations[i] = (Memory*)Allocate<MemoryVal>(GetStdAllocator(), *this, *allocations[i], 0, resourceGroupDesc.memoryLocation);
}
}
return result;
}
void DeviceVal::SetSPIRVBindingOffsets(const SPIRVBindingOffsets& spirvBindingOffsets)
{
m_WrapperSPIRVOffsetsAPI.SetSPIRVBindingOffsets(m_Device, spirvBindingOffsets);
}
Result DeviceVal::CreateRayTracingPipeline(const RayTracingPipelineDesc& pipelineDesc, Pipeline*& pipeline)
{
RETURN_ON_FAILURE(GetLog(), pipelineDesc.pipelineLayout != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'pipelineDesc.pipelineLayout' is invalid.");
RETURN_ON_FAILURE(GetLog(), pipelineDesc.shaderLibrary != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'pipelineDesc.shaderLibrary' is invalid.");
RETURN_ON_FAILURE(GetLog(), pipelineDesc.shaderGroupDescs != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'pipelineDesc.shaderGroupDescs' is invalid.");
RETURN_ON_FAILURE(GetLog(), pipelineDesc.shaderGroupDescNum != 0, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'pipelineDesc.shaderGroupDescNum' is 0.");
RETURN_ON_FAILURE(GetLog(), pipelineDesc.recursionDepthMax != 0, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'pipelineDesc.recursionDepthMax' is 0.");
for (uint32_t i = 0; i < pipelineDesc.shaderLibrary->shaderNum; i++)
{
const ShaderDesc& shaderDesc = pipelineDesc.shaderLibrary->shaderDescs[i];
RETURN_ON_FAILURE(GetLog(), shaderDesc.bytecode != nullptr, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'pipelineDesc.shaderLibrary->shaderDescs[%u].bytecode' is invalid.", i);
RETURN_ON_FAILURE(GetLog(), shaderDesc.size != 0, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'pipelineDesc.shaderLibrary->shaderDescs[%u].size' is 0.", i);
RETURN_ON_FAILURE(GetLog(), shaderDesc.stage > ShaderStage::COMPUTE && shaderDesc.stage < ShaderStage::MAX_NUM, Result::INVALID_ARGUMENT,
"Can't create Pipeline: 'pipelineDesc.shaderLibrary->shaderDescs[%u].stage' is invalid.", i);
}
auto pipelineDescImpl = pipelineDesc;
pipelineDescImpl.pipelineLayout = NRI_GET_IMPL_PTR(PipelineLayout, pipelineDesc.pipelineLayout);
Pipeline* pipelineImpl = nullptr;
const Result result = m_RayTracingAPI.CreateRayTracingPipeline(m_Device, pipelineDescImpl, pipelineImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), pipelineImpl != nullptr, Result::FAILURE, "Unexpected error: 'pipelineImpl' is NULL.");
pipeline = (Pipeline*)Allocate<PipelineVal>(GetStdAllocator(), *this, *pipelineImpl);
}
return result;
}
Result DeviceVal::CreateAccelerationStructure(const AccelerationStructureDesc& accelerationStructureDesc, AccelerationStructure*& accelerationStructure)
{
RETURN_ON_FAILURE(GetLog(), IsPhysicalDeviceMaskValid(accelerationStructureDesc.physicalDeviceMask), Result::INVALID_ARGUMENT,
"Can't create AccelerationStructure: 'accelerationStructureDesc.physicalDeviceMask' is invalid.");
RETURN_ON_FAILURE(GetLog(), accelerationStructureDesc.instanceOrGeometryObjectNum != 0, Result::INVALID_ARGUMENT,
"Can't create AccelerationStructure: 'accelerationStructureDesc.instanceOrGeometryObjectNum' is 0.");
AccelerationStructureDesc accelerationStructureDescImpl = accelerationStructureDesc;
Vector<GeometryObject> objectImplArray(GetStdAllocator());
if (accelerationStructureDesc.type == AccelerationStructureType::BOTTOM_LEVEL)
{
const uint32_t geometryObjectNum = accelerationStructureDesc.instanceOrGeometryObjectNum;
objectImplArray.resize(geometryObjectNum);
ConvertGeometryObjectsVal(objectImplArray.data(), accelerationStructureDesc.geometryObjects, geometryObjectNum);
accelerationStructureDescImpl.geometryObjects = objectImplArray.data();
}
AccelerationStructure* accelerationStructureImpl = nullptr;
const Result result = m_RayTracingAPI.CreateAccelerationStructure(m_Device, accelerationStructureDescImpl, accelerationStructureImpl);
if (result == Result::SUCCESS)
{
RETURN_ON_FAILURE(GetLog(), accelerationStructureImpl != nullptr, Result::FAILURE, "Unexpected error: 'accelerationStructureImpl' is NULL.");
accelerationStructure = (AccelerationStructure*)Allocate<AccelerationStructureVal>(GetStdAllocator(), *this, *accelerationStructureImpl);
}
return result;
}
Result DeviceVal::BindAccelerationStructureMemory(const AccelerationStructureMemoryBindingDesc* memoryBindingDescs, uint32_t memoryBindingDescNum)
{
if (memoryBindingDescNum == 0)
return Result::SUCCESS;
RETURN_ON_FAILURE(GetLog(), memoryBindingDescs != nullptr, Result::INVALID_ARGUMENT,
"Can't bind memory to acceleration structures: 'memoryBindingDescs' is invalid.");
AccelerationStructureMemoryBindingDesc* memoryBindingDescsImpl = STACK_ALLOC(AccelerationStructureMemoryBindingDesc, memoryBindingDescNum);
for (uint32_t i = 0; i < memoryBindingDescNum; i++)
{
AccelerationStructureMemoryBindingDesc& destDesc = memoryBindingDescsImpl[i];
const AccelerationStructureMemoryBindingDesc& srcDesc = memoryBindingDescs[i];
MemoryVal& memory = (MemoryVal&)*srcDesc.memory;
AccelerationStructureVal& accelerationStructure = (AccelerationStructureVal&)*srcDesc.accelerationStructure;
RETURN_ON_FAILURE(GetLog(), !accelerationStructure.IsBoundToMemory(), Result::INVALID_ARGUMENT,
"Can't bind memory to acceleration structures: 'memoryBindingDescs[%u].accelerationStructure' is already bound to memory.", i);
MemoryDesc memoryDesc = {};
accelerationStructure.GetMemoryInfo(memoryDesc);
RETURN_ON_FAILURE(GetLog(), !memoryDesc.mustBeDedicated || srcDesc.offset == 0, Result::INVALID_ARGUMENT,
"Can't bind memory to acceleration structures: 'memoryBindingDescs[%u].offset' must be zero for dedicated allocation.", i);
RETURN_ON_FAILURE(GetLog(), memoryDesc.alignment != 0, Result::INVALID_ARGUMENT,
"Can't bind memory to acceleration structures: 'memoryBindingDescs[%u].alignment' can't be zero.", i);
RETURN_ON_FAILURE(GetLog(), srcDesc.offset % memoryDesc.alignment == 0, Result::INVALID_ARGUMENT,
"Can't bind memory to acceleration structures: 'memoryBindingDescs[%u].offset' is misaligned.", i);
const uint64_t rangeMax = srcDesc.offset + memoryDesc.size;
const bool memorySizeIsUnknown = memory.GetSize() == 0;
RETURN_ON_FAILURE(GetLog(), memorySizeIsUnknown || rangeMax <= memory.GetSize(), Result::INVALID_ARGUMENT,
"Can't bind memory to acceleration structures: 'memoryBindingDescs[%u].offset' is invalid.", i);
destDesc = srcDesc;
destDesc.memory = &memory.GetImpl();
destDesc.accelerationStructure = &accelerationStructure.GetImpl();
}
const Result result = m_RayTracingAPI.BindAccelerationStructureMemory(m_Device, memoryBindingDescsImpl, memoryBindingDescNum);
if (result == Result::SUCCESS)
{
for (uint32_t i = 0; i < memoryBindingDescNum; i++)
{
MemoryVal& memory = *(MemoryVal*)memoryBindingDescs[i].memory;
memory.BindAccelerationStructure(*(AccelerationStructureVal*)memoryBindingDescs[i].accelerationStructure);
}
}
return result;
}
void DeviceVal::DestroyAccelerationStructure(AccelerationStructure& accelerationStructure)
{
Deallocate(GetStdAllocator(), (AccelerationStructureVal*)&accelerationStructure);
}
void DeviceVal::Destroy()
{
Deallocate(GetStdAllocator(), this);
}
DeviceBase* CreateDeviceValidation(const DeviceCreationDesc& deviceCreationDesc, DeviceBase& device)
{
Log log(deviceCreationDesc.graphicsAPI, deviceCreationDesc.callbackInterface);
StdAllocator<uint8_t> allocator(deviceCreationDesc.memoryAllocatorInterface);
uint32_t physicalDeviceNum = 1;
if (deviceCreationDesc.physicalDeviceGroup != nullptr)
physicalDeviceNum = deviceCreationDesc.physicalDeviceGroup->physicalDeviceGroupSize;
DeviceVal* deviceVal = Allocate<DeviceVal>(allocator, log, allocator, device, physicalDeviceNum);
if (!deviceVal->Create())
{
Deallocate(allocator, deviceVal);
return nullptr;
}
return deviceVal;
}
#include "DeviceVal.hpp"
|
#include "nfa.h"
#include <stack>
using namespace std;
namespace ns {
Nfa::Nfa() {
auto s1 = get_state();
entry_ = s1;
}
Nfa::Nfa(char c) {
auto s1 = get_state();
auto s2 = get_state();
s1->connect(c, s2);
entry_ = s1;
accepts_.insert(s2);
}
Nfa::~Nfa() {
for (auto s : states_) {
delete s;
}
}
void Nfa::concat(Nfa* rhs) {
states_.insert(rhs->states_.begin(), rhs->states_.end());
for (auto a : accepts_) {
a->connect(epsilon(), rhs->entry_);
}
accepts_ = rhs->accepts_;
rhs->states_.clear();
delete rhs;
}
void Nfa::disjoin(Nfa* rhs) {
states_.insert(rhs->states_.begin(), rhs->states_.end());
auto s1 = get_state();
auto s2 = get_state();
s1->connect(epsilon(), entry_);
s1->connect(epsilon(), rhs->entry_);
for (auto a : accepts_) {
a->connect(epsilon(), s2);
}
for (auto a : rhs->accepts_) {
a->connect(epsilon(), s2);
}
entry_ = s1;
accepts_.clear();
accepts_.insert(s2);
rhs->states_.clear();
delete rhs;
}
void Nfa::plus() {
auto s1 = get_state();
auto s2 = get_state();
s1->connect(epsilon(), entry_);
for (auto a : accepts_) {
a->connect(epsilon(), s2);
a->connect(epsilon(), entry_);
}
entry_ = s1;
accepts_.clear();
accepts_.insert(s2);
}
void Nfa::qmark() {
auto s1 = get_state();
auto s2 = get_state();
s1->connect(epsilon(), entry_);
s1->connect(epsilon(), s2);
for (auto a : accepts_) {
a->connect(epsilon(), s2);
}
entry_ = s1;
accepts_.clear();
accepts_.insert(s2);
}
void Nfa::star() {
auto s1 = get_state();
auto s2 = get_state();
s1->connect(epsilon(), entry_);
s1->connect(epsilon(), s2);
for (auto a : accepts_) {
a->connect(epsilon(), s2);
a->connect(epsilon(), entry_);
}
entry_ = s1;
accepts_.clear();
accepts_.insert(s2);
}
void Nfa::make_deterministic() {
auto dfa = powerset_construction();
std::swap(states_, dfa->states_);
std::swap(entry_, dfa->entry_);
std::swap(accepts_, dfa->accepts_);
delete dfa;
}
void Nfa::to_text(ostream& os) const {
map<State*, size_t> ids;
for (auto s : states_) {
ids.insert(make_pair(s, ids.size()));
}
for (auto s : states_) {
os << "state " << ids[s] << ":";
if (is_entry(s)) {
os << " (entry)";
}
if (is_accept(s)) {
os << " (accept)";
}
os << endl;
for (auto& t : s->ts) {
if (t.first == epsilon()) {
os << "\t<e> -> {";
} else {
os << "\t" << t.first << " -> {";
}
for (auto s2 : t.second) {
os << " " << ids[s2];
}
os << " }" << endl;
}
}
}
void Nfa::to_verilog(ostream& os) const {
map<State*, size_t> ids;
for (auto s : states_) {
ids.insert(make_pair(s, ids.size()+1));
}
os << "reg[31:0] count = 0;" << endl;
os << "reg[31:0] state = 0;" << endl;
os << "reg[31:0] i = 0;" << endl;
os << "reg[31:0] ie = 0;" << endl;
os << "reg[7:0] char;" << endl;
os << endl;
os << "integer itr = 1;" << endl;
os << "integer s = $fopen(\"data/test/benchmark/regex/iliad.txt\", \"r\");" << endl;
os << endl;
os << "always @(posedge clock.val) begin" << endl;
os << " $fscanf(s, \"%c\", char);" << endl;
os << " if ($feof(s)) begin" << endl;
os << " if (itr == 1) begin" << endl;
os << " $write(count);" << endl;
os << " $finish(0);" << endl;
os << " end else begin" << endl;
os << " itr <= itr + 1;" << endl;
os << " $rewind(s);" << endl;
os << " end" << endl;
os << " end else begin" << endl;
os << " if (state > 0) begin" << endl;
os << " ie <= ie + 1;" << endl;
os << " end" << endl;
os << " case (state)" << endl;
os << " 32'd0:" << endl;
os << " state <= " << ids[entry_] << ";" << endl;
for (auto s : states_) {
os << " 32'd" << ids[s] << ": case(char) " << endl;
for (auto& t : s->ts) {
os << " 8'h" << hex << (int)t.first << dec << ": begin" << endl;
if (is_accept(*t.second.begin())) {
os << " //$display(\"Match %d:%d\", i, ie);" << endl;
os << " i <= ie + 1;" << endl;
os << " count <= count + 1;" << endl;
os << " state <= " << ids[entry_] << ";" << endl;
} else {
os << " state <= " << ids[*t.second.begin()] << ";" << endl;
}
os << " end" << endl;
}
os << " default: begin" << endl;
os << " i <= ie + 1;" << endl;
os << " state <= " << ids[entry_] << ";" << endl;
os << " end" << endl;
os << " endcase" << endl;
}
os << " default: begin" << endl;
os << " $display(\"Unrecognized state!\");" << endl;
os << " $finish;" << endl;
os << " end" << endl;
os << " endcase" << endl;
os << " end" << endl;
os << "end";
}
void Nfa::State::connect(char c, State* s) {
ts[c].insert(s);
}
char Nfa::epsilon() const {
return 0;
}
Nfa::State* Nfa::get_state() {
auto s = new State();
states_.insert(s);
return s;
}
bool Nfa::is_entry(State* s) const {
return s == entry_;
}
bool Nfa::is_accept(State* s) const {
return accepts_.find(s) != accepts_.end();
}
Nfa::PowerState Nfa::epsilon_closure(const PowerState& ps) const {
auto res = ps;
for (auto done = false; !done; ) {
done = true;
for (auto s : res) {
auto t = s->ts.find(epsilon());
if (t == s->ts.end()) {
continue;
}
size_t n = res.size();
res.insert(t->second.begin(), t->second.end());
if (res.size() > n) {
done = false;
}
}
}
return res;
}
Nfa::PowerState Nfa::power_entry() const {
PowerState ps;
ps.insert(entry_);
return epsilon_closure(ps);
}
bool Nfa::is_power_accept(const PowerState& ps) const {
for (auto s : ps) {
if (is_accept(s)) {
return true;
}
}
return false;
}
Nfa::TransitionSet Nfa::power_transitions(const PowerState& ps) const {
TransitionSet res;
for (auto s : ps) {
for (auto& t : s->ts) {
if (t.first == epsilon()) {
continue;
}
res.insert(t.first);
}
}
return res;
}
Nfa::PowerState Nfa::power_transition(const PowerState& ps, char c) const {
PowerState res;
for (auto s : ps) {
auto t = s->ts.find(c);
if (t != s->ts.end()) {
res.insert(t->second.begin(), t->second.end());
}
}
return epsilon_closure(res);
}
Nfa* Nfa::powerset_construction() const {
auto res = new Nfa();
map<PowerState, State*> ids;
stack<PowerState> work_set;
const auto entry = power_entry();
ids[entry] = res->entry_;
work_set.push(entry);
while (!work_set.empty()) {
auto ps1 = work_set.top();
work_set.pop();
auto s1 = ids[ps1];
if (is_power_accept(ps1)) {
res->accepts_.insert(s1);
}
for (auto t : power_transitions(ps1)) {
auto ps2 = power_transition(ps1, t);
auto itr = ids.find(ps2);
if (itr != ids.end()) {
s1->connect(t, itr->second);
} else {
auto s2 = res->get_state();
ids[ps2] = s2;
s1->connect(t, s2);
work_set.push(ps2);
}
}
}
return res;
}
} // namespace ns
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x14ad0, %rsi
lea addresses_D_ht+0x21b0, %rdi
nop
nop
nop
nop
nop
add $36665, %r8
mov $119, %rcx
rep movsw
nop
nop
and $16072, %rbx
lea addresses_normal_ht+0x2ff9, %rsi
nop
nop
nop
nop
nop
and %r11, %r11
mov $0x6162636465666768, %rdi
movq %rdi, (%rsi)
cmp %rbx, %rbx
lea addresses_WT_ht+0x73b0, %rbx
nop
nop
sub %rbp, %rbp
mov $0x6162636465666768, %r11
movq %r11, %xmm4
movups %xmm4, (%rbx)
nop
cmp $7648, %rcx
lea addresses_A_ht+0x18244, %rcx
nop
nop
and %r11, %r11
movw $0x6162, (%rcx)
nop
add %rsi, %rsi
lea addresses_UC_ht+0x446c, %rsi
nop
nop
sub %rdi, %rdi
mov (%rsi), %r11w
cmp $55182, %rdi
lea addresses_WT_ht+0x31b0, %rbp
sub $55420, %rsi
mov (%rbp), %rdi
nop
nop
nop
nop
nop
dec %rcx
lea addresses_UC_ht+0x4bb0, %rsi
lea addresses_WC_ht+0x173b0, %rdi
nop
add $2031, %rbp
mov $52, %rcx
rep movsq
nop
nop
nop
nop
and $4971, %rbp
lea addresses_UC_ht+0xcfb0, %rsi
lea addresses_UC_ht+0x12ab0, %rdi
clflush (%rdi)
mfence
mov $102, %rcx
rep movsl
nop
nop
nop
xor %r11, %r11
lea addresses_A_ht+0x49b0, %r8
nop
nop
nop
nop
nop
cmp $2136, %rsi
movb (%r8), %r11b
sub %rbx, %rbx
lea addresses_D_ht+0x25b0, %rsi
lea addresses_WT_ht+0x33b0, %rdi
clflush (%rdi)
nop
nop
nop
nop
inc %rdx
mov $113, %rcx
rep movsw
nop
sub $52185, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %rbx
push %rdx
push %rsi
// Store
lea addresses_PSE+0x46d0, %rbx
nop
nop
nop
nop
add $15394, %r12
movw $0x5152, (%rbx)
nop
nop
nop
nop
nop
and %r12, %r12
// Faulty Load
lea addresses_WC+0xbbb0, %r10
nop
nop
nop
nop
nop
xor %rdx, %rdx
vmovups (%r10), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rsi
lea oracles, %r10
and $0xff, %rsi
shlq $12, %rsi
mov (%r10,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rbx
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}}
{'38': 11459}
38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
*/
|
; ---------------------------------------------------------------------------
; Sprite mappings - trapdoor (SBZ)
; ---------------------------------------------------------------------------
dc.w byte_158E6-Map_obj69
dc.w byte_158FB-Map_obj69
dc.w byte_15924-Map_obj69
byte_158E6: dc.b 4
dc.b $F4, $E, 0, 0, $C0
dc.b $F4, $E, 8, 0, $E0
dc.b $F4, $E, 0, 0, 0
dc.b $F4, $E, 8, 0, $20
byte_158FB: dc.b 8
dc.b $F2, $F, 0, $C, $B6
dc.b $1A, $F, $18, $C, $D6
dc.b 2, $A, 0, $1C, $D6
dc.b $12, $A, $18, $1C, $BE
dc.b $F2, $F, 8, $C, $2A
dc.b $1A, $F, $10, $C, $A
dc.b 2, $A, 8, $1C, $12
dc.b $12, $A, $10, $1C, $2A
byte_15924: dc.b 4
dc.b 0, $B, 0, $25, $B4
dc.b $20, $B, $10, $25, $B4
dc.b 0, $B, 0, $25, $34
dc.b $20, $B, $10, $25, $34
even |
; A296159: Sum of the smaller parts in the partitions of n into two distinct parts with the larger part odd.
; 0,0,0,1,2,1,2,4,6,4,6,9,12,9,12,16,20,16,20,25,30,25,30,36,42,36,42,49,56,49,56,64,72,64,72,81,90,81,90,100,110,100,110,121,132,121,132,144,156,144,156,169,182,169,182,196,210,196,210,225,240,225
lpb $0,1
sub $0,1
trn $0,1
sub $1,$2
add $1,$0
trn $0,2
add $2,2
lpe
|
/*
*/
#include <boost/math/special_functions/next.hpp>
#include <iostream>
#include <limits>
#include <stdexcept>
#include "Functions.hpp"
int main()
{
/* 2.5.1 */
// a) Test the classify function with following values:
double val = std::numeric_limits<double>::max();
std::cout << "For val = numeric_limits<double>::max(): " << std::endl;
std::cout << "val classification: " << Classify(val) << std::endl;
std::cout << "2.0 * val classification: " << Classify(2.0 * val) << std::endl;
std::cout << "3.1415 + val classification: " << Classify(3.1415 + val) << std::endl;
double val2 = std::numeric_limits<double>::min() - 3.1415;
std::cout << "For val2 = numeric_limits<double>::min(): " << std::endl;
std::cout << "val2 classification: " << Classify(val2) << std::endl;
std::cout << "val2 / 2.0 classification: " << Classify(val2 / 2.0) << std::endl;
std::cout << "DBL_MIN / 2.0 classification: " << Classify(DBL_MIN / 2.0) << std::endl;
// b) Test std::isfinite, std::isinf, std::isnan, std::isnormal on values:
double factor = 2.0;
val = factor*std::numeric_limits<double>::max();
std::cout << "For val = 2.0 * numeric_limits<double>::max()" << std::endl;
std::cout << "val classifications: " << std::endl;
std::cout << "\t isfinite(val): " << std::isfinite(val) << std::endl;
std::cout << "\t isfinite(val): " << std::isinf(val) << std::endl;
std::cout << "\t isfinite(val): " << std::isnan(val) << std::endl;
std::cout << "\t isfinite(val): " << std::isnormal(val) << std::endl;
std::cout << "val - val classification: " << std::endl;
std::cout << "\t isfinite(val - val): " << std::isfinite(val - val) << std::endl;
std::cout << "\t isfinite(val - val): " << std::isinf(val - val) << std::endl;
std::cout << "\t isfinite(val - val): " << std::isnan(val - val) << std::endl;
std::cout << "\t isfinite(val - val): " << std::isnormal(val - val) << std::endl;
std::cout << "sqrt(-1.0) classification: " << std::endl;
std::cout << "\t isfinite(sqrt(-1.0)): " << std::isfinite(std::sqrt(-1.0)) << std::endl;
std::cout << "\t isfinite(sqrt(-1.0)): " << std::isinf(std::sqrt(-1.0)) << std::endl;
std::cout << "\t isfinite(sqrt(-1.0)): " << std::isnan(std::sqrt(-1.0)) << std::endl;
std::cout << "\t isfinite(sqrt(-1.0)): " << std::isnormal(std::sqrt(-1.0)) << std::endl;
std::cout << "log(0.0) classification: " << std::endl;
std::cout << "\t isfinite(log(0.0)): " << std::isfinite(std::log(0.0)) << std::endl;
std::cout << "\t isfinite(log(0.0)): " << std::isinf(std::log(0.0)) << std::endl;
std::cout << "\t isfinite(log(0.0)): " << std::isnan(std::log(0.0)) << std::endl;
std::cout << "\t isfinite(log(0.0)): " << std::isnormal(std::log(0.0)) << std::endl;
std::cout << "exp(val) classification: " << std::endl;
std::cout << "\t isfinite(exp(val)): " << std::isfinite(std::exp(val)) << std::endl;
std::cout << "\t isfinite(exp(val)): " << std::isinf(std::exp(val)) << std::endl;
std::cout << "\t isfinite(exp(val)): " << std::isnan(std::exp(val)) << std::endl;
std::cout << "\t isfinite(exp(val)): " << std::isnormal(std::exp(val)) << std::endl;
/* 2.5.2 */
// b) Compare FindEpsilon outputs to std::numeric_limits<>::epsilon() outputs:
double epsilon1 = FindEpsilon<double>();
std::cout << "FindEpsilon<double>() == numeric_limits<double>::epsilon(): " << ((epsilon1 == std::numeric_limits<double>::epsilon())? "True": "False") << std::endl;
int epsilon2 = FindEpsilon<int>();
std::cout << "FindEpsilon<int>() == numeric_limits<int>::epsilon(): " << ((epsilon2 == std::numeric_limits<int>::epsilon()) ? "True" : "False") << std::endl;
float epsilon3 = FindEpsilon<float>();
std::cout << "FindEpsilon<float>() == numeric_limits<float>::epsilon(): " << ((epsilon3 == std::numeric_limits<float>::epsilon()) ? "True" : "False") << std::endl;
/* 2.5.3 */
// Experiment with the Boost C++ math toolkit:
// Test float_distance:
double a = 0.1; double b =
a + std::numeric_limits<double>::min();
std::cout << "Distance between 0.1 and 0.1 + numeric_limits<double>::min(): " << boost::math::float_distance(a, b) << std::endl;
a = 1.0; b = 0.0;
std::cout << "Distance between 1.0 and 0.0: " << boost::math::float_distance(a, b) << std::endl;
// Test float_next:
unsigned long long steps = 0;
try
{
// Will throw exception in float_next if std::numeric_limits<double>::max() minus any number is used as an input, thus need to use literal:
b = 1.797693134862315805e+308 - std::numeric_limits<double>::min();
while(true)
{
b = boost::math::float_next(b);
steps++;
}
}
catch (std::overflow_error& err)
{
std::cout << "Overflow exception caught:" << std::endl;
std::cout << err.what() << std::endl;
std::cout << "Steps between numeric_limits<double>::max() - 10 and numeric_limits<double>::max(): " << steps << std::endl;
}
// Test float_prior:
steps = 0;
try
{
b = std::numeric_limits<double>::min() + 1.0;
while (true)
{
b = boost::math::float_prior(b);
steps++;
}
}
catch (std::underflow_error& err)
{
std::cout << "Underflow exception caught: " << std::endl;
std::cout << err.what() << std::endl;
std::cout << "Steps between ... " << steps << std::endl;
}
// Test boost::nextafter():
std::cout << "nextafter(): " << std::nextafter(a, b) << std::endl;
system("pause");
return 0;
}
|
;------------------------------------------------------------------------------ ;
; Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
; http://opensource.org/licenses/bsd-license.php.
;
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;
; Module Name:
;
; SmmInit.Asm
;
; Abstract:
;
; Functions for relocating SMBASE's for all processors
;
;-------------------------------------------------------------------------------
EXTERNDEF SmmInitHandler:PROC
EXTERNDEF gSmmCr0:DWORD
EXTERNDEF gSmmCr3:DWORD
EXTERNDEF gSmmCr4:DWORD
EXTERNDEF gSmmJmpAddr:QWORD
EXTERNDEF gcSmmInitTemplate:BYTE
EXTERNDEF gcSmmInitSize:WORD
EXTERNDEF mRebasedFlag:PTR BYTE
EXTERNDEF mSmmRelocationOriginalAddress:QWORD
EXTERNDEF mRebasedFlagAddr32:DWORD
EXTERNDEF mSmmRelocationOriginalAddressPtr32:DWORD
EXTERNDEF gSmmInitStack:QWORD
EXTERNDEF gcSmiInitGdtr:FWORD
.code
gcSmiInitGdtr LABEL FWORD
DW 0
DQ 0
SmmStartup PROC
DB 66h, 0b8h ; mov eax, imm32
gSmmCr3 DD ?
mov cr3, rax
DB 66h, 2eh
lgdt fword ptr [ebp + (offset gcSmiInitGdtr - SmmStartup)]
DB 66h, 0b8h ; mov eax, imm32
gSmmCr4 DD ?
or ah, 2 ; enable XMM registers access
mov cr4, rax
DB 66h
mov ecx, 0c0000080h ; IA32_EFER MSR
rdmsr
or ah, 1 ; set LME bit
wrmsr
DB 66h, 0b8h ; mov eax, imm32
gSmmCr0 DD ?
mov cr0, rax ; enable protected mode & paging
DB 66h, 0eah ; far jmp to long mode
gSmmJmpAddr DQ @LongMode
@LongMode: ; long-mode starts here
DB 48h, 0bch ; mov rsp, imm64
gSmmInitStack DQ ?
and sp, 0fff0h ; make sure RSP is 16-byte aligned
;
; Accoring to X64 calling convention, XMM0~5 are volatile, we need to save
; them before calling C-function.
;
sub rsp, 60h
movdqa [rsp], xmm0
movdqa [rsp + 10h], xmm1
movdqa [rsp + 20h], xmm2
movdqa [rsp + 30h], xmm3
movdqa [rsp + 40h], xmm4
movdqa [rsp + 50h], xmm5
add rsp, -20h
call SmmInitHandler
add rsp, 20h
;
; Restore XMM0~5 after calling C-function.
;
movdqa xmm0, [rsp]
movdqa xmm1, [rsp + 10h]
movdqa xmm2, [rsp + 20h]
movdqa xmm3, [rsp + 30h]
movdqa xmm4, [rsp + 40h]
movdqa xmm5, [rsp + 50h]
rsm
SmmStartup ENDP
gcSmmInitTemplate LABEL BYTE
_SmmInitTemplate PROC
DB 66h, 2eh, 8bh, 2eh ; mov ebp, cs:[@F]
DW @L1 - _SmmInitTemplate + 8000h
DB 66h, 81h, 0edh, 00h, 00h, 03h, 00 ; sub ebp, 30000h
jmp bp ; jmp ebp actually
@L1:
DQ SmmStartup
_SmmInitTemplate ENDP
gcSmmInitSize DW $ - gcSmmInitTemplate
SmmRelocationSemaphoreComplete PROC
push rax
mov rax, mRebasedFlag
mov byte ptr [rax], 1
pop rax
jmp [mSmmRelocationOriginalAddress]
SmmRelocationSemaphoreComplete ENDP
;
; Semaphore code running in 32-bit mode
;
SmmRelocationSemaphoreComplete32 PROC
;
; mov byte ptr [], 1
;
db 0c6h, 05h
mRebasedFlagAddr32 dd 0
db 1
;
; jmp dword ptr []
;
db 0ffh, 25h
mSmmRelocationOriginalAddressPtr32 dd 0
SmmRelocationSemaphoreComplete32 ENDP
END
|
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1994 - 2000.
//
// File: Strategy.cxx
//
// Contents: Encapsulates strategy for choosing indexes
//
// History: 03-Nov-94 KyleP Created.
//
//----------------------------------------------------------------------------
#include <pch.cxx>
#pragma hdrstop
#include <strategy.hxx>
#include <compare.hxx>
#include <norm.hxx>
#include <vkrep.hxx>
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::CIndexStrategy, public
//
// Synopsis: Constructor
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
CIndexStrategy::CIndexStrategy()
: _BooleanMode( NoMode ),
_cNodes( 0 ),
_cBounds( 0 ),
_depth( 0 ),
_iRangeUsn( InvalidUsnRange )
{
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::~CIndexStrategy, public
//
// Synopsis: Destructor
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
CIndexStrategy::~CIndexStrategy()
{
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::SetBounds, public
//
// Synopsis: Set both upper and lower bounds of property
//
// Arguments: [pid] -- Property id
// [varLower] -- Lower bound
// [varUpper] -- Upper bound
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
void CIndexStrategy::SetBounds( PROPID pid,
CStorageVariant const & varLower,
CStorageVariant const & varUpper )
{
SetLowerBound( pid, varLower );
SetUpperBound( pid, varUpper );
_cNodes--;
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::SetLowerBound, public
//
// Synopsis: Set lower bound of property
//
// Arguments: [pid] -- Property id
// [varLower] -- Lower bound
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
void CIndexStrategy::SetLowerBound( PROPID pid, CStorageVariant const & varLower )
{
_cNodes++;
if ( _depth > 1 )
return;
unsigned i = FindPid( pid );
if ( pid == pidLastChangeUsn )
_iRangeUsn = i;
CRange * pRange = _aBounds.Get(i);
if ( !pRange->IsValid() )
return;
if ( pRange->LowerBound().Type() == VT_EMPTY )
pRange->SetLowerBound( varLower );
else
{
#if CIDBG == 1
if ( pRange->LowerBound().Type() != varLower.Type() )
{
vqDebugOut(( DEB_WARN, "Type mismatch (%d vs. %d) setting indexing strategy.\n",
pRange->LowerBound().Type(), varLower.Type() ));
}
#endif
FRel rel = VariantCompare.GetRelop( varLower.Type(), (_BooleanMode == OrMode) ? PRLT : PRGT );
if ( 0 == rel )
pRange->MarkInvalid();
else if ( rel( (PROPVARIANT const &)varLower,
(PROPVARIANT const &)pRange->LowerBound() ) )
pRange->SetLowerBound( varLower );
}
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::SetUpperBound, public
//
// Synopsis: Set upper bound of property
//
// Arguments: [pid] -- Property id
// [varUpper] -- Upper bound
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
void CIndexStrategy::SetUpperBound( PROPID pid, CStorageVariant const & varUpper )
{
_cNodes++;
if ( _depth > 1 )
return;
unsigned i = FindPid( pid );
if ( pid == pidLastChangeUsn )
_iRangeUsn = i;
CRange * pRange = _aBounds.Get(i);
if ( !pRange->IsValid() )
return;
if ( pRange->UpperBound().Type() == VT_EMPTY )
pRange->SetUpperBound( varUpper );
else
{
#if CIDBG == 1
if ( pRange->UpperBound().Type() != varUpper.Type() )
{
vqDebugOut(( DEB_WARN, "Type mismatch (%d vs. %d) setting indexing strategy.\n",
pRange->UpperBound().Type(), varUpper.Type() ));
}
#endif
FRel rel = VariantCompare.GetRelop( varUpper.Type(), (_BooleanMode == OrMode) ? PRGT : PRLT );
if ( 0 == rel )
pRange->MarkInvalid();
else if ( rel( (PROPVARIANT const &)varUpper,
(PROPVARIANT const &)pRange->UpperBound() ) )
pRange->SetUpperBound( varUpper );
}
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::SetUnknownBounds, public
//
// Synopsis: Placeholder method. Indicates a node has been found with
// no bounds. Used to maintain accurate count of nodes.
//
// Arguments: [pid] -- Property id
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
void CIndexStrategy::SetUnknownBounds( PROPID pid )
{
_cNodes++;
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::LowerBound, public
//
// Arguments: [pid] -- Property id
//
// Returns: Lower bound
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
CStorageVariant const & CIndexStrategy::LowerBound( PROPID pid ) const
{
for ( unsigned i = 0; i < _cBounds; i++ )
{
if ( _aBounds.Get(i)->Pid() == pid )
{
Win4Assert( _aBounds.Get(i)->IsValid() );
return( _aBounds.Get(i)->LowerBound() );
}
}
Win4Assert( !"Couldn't find pid (lower bound" );
return( *((CStorageVariant *)0) );
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::UpperBound, public
//
// Arguments: [pid] -- Property id
//
// Returns: Upper bound
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
CStorageVariant const & CIndexStrategy::UpperBound( PROPID pid ) const
{
for ( unsigned i = 0; i < _cBounds; i++ )
{
if ( _aBounds.Get(i)->Pid() == pid )
{
Win4Assert( _aBounds.Get(i)->IsValid() );
return( _aBounds.Get(i)->UpperBound() );
}
}
Win4Assert( !"Couldn't find pid (upper bound" );
return( *((CStorageVariant *)0) );
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::GetUsnRange, public
//
// Synopsis: Returns bounds for USN property.
//
// Arguments: [usnMin] -- Lower bound returned here
// [usnMax] -- Upper bound returned here
//
// Returns: TRUE if bounds existed for USN
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
BOOL CIndexStrategy::GetUsnRange( USN & usnMin, USN & usnMax ) const
{
if ( _iRangeUsn == InvalidUsnRange || _BooleanMode == OrMode || _BooleanMode == InvalidMode )
return FALSE;
CStorageVariant const & varLower = _aBounds.Get(_iRangeUsn)->LowerBound();
if ( varLower.Type() != VT_I8 )
usnMin = 0;
else
usnMin = varLower.GetI8().QuadPart;
CStorageVariant const & varUpper = _aBounds.Get(_iRangeUsn)->UpperBound();
if ( varUpper.Type() != VT_I8 )
usnMax = _UI64_MAX;
else
usnMax = varUpper.GetI8().QuadPart;
return TRUE;
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::SetContentHelper, public
//
// Synopsis: Transfer content helper node to strategy object.
//
// Arguments: [pcrst] -- Content node
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
void CIndexStrategy::SetContentHelper( CRestriction * pcrst )
{
Win4Assert( 0 != pcrst );
if ( _depth > 1 )
delete pcrst;
else
_stkContentHelpers.Push( pcrst );
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::QueryContentRestriction, public
//
// Synopsis: Compute content restriction, including use of value indices.
//
// Arguments: [fPropertyOnly] -- TRUE if query is property only and must
// match unfiltered objects.
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
CRestriction * CIndexStrategy::QueryContentRestriction( BOOL fPropertyOnly )
{
vqDebugOut(( DEB_ITRACE, "QueryContentRestriction _BooleanMode: %s\n",
_BooleanMode == NoMode ? "NoMode" :
_BooleanMode == AndMode ? "AndMode" :
_BooleanMode == OrMode ? "OrMode" : "InvalidMode" ));
vqDebugOut(( DEB_ITRACE, "_cNodes %d, _cBounds: %d\n", _cNodes, _cBounds ));
Win4Assert( _BooleanMode != NoMode || _cNodes <= 1 );
if ( _BooleanMode == InvalidMode )
return 0;
XNodeRestriction pnrst( new CNodeRestriction( (_BooleanMode == OrMode) ? RTOr : RTAnd ) );
// operator new throws.
Win4Assert( !pnrst.IsNull() );
if ( _BooleanMode != OrMode )
{
//
// Construct range (property value) restrictions
//
for ( unsigned i = 0; i < _cBounds; i++ )
{
CRange * pRange = _aBounds.Get(i);
vqDebugOut(( DEB_ITRACE,
" pRange->IsValid: %d\n", pRange->IsValid() ));
if ( !pRange->IsValid() )
continue;
if ( ( VT_EMPTY == pRange->LowerBound().Type() ) &&
( VT_EMPTY == pRange->UpperBound().Type() ) )
continue;
//
// Path is (currently) unique in that it is not value-indexed.
//
if ( pidPath == pRange->Pid() ||
pidDirectory == pRange->Pid() ||
pidVirtualPath == pRange->Pid() )
continue;
CRangeKeyRepository krep;
CValueNormalizer norm( krep );
OCCURRENCE occ = 1;
vqDebugOut(( DEB_ITRACE, " lower type %d, upper type %d\n",
pRange->LowerBound().Type(),
pRange->UpperBound().Type() ));
if ( pRange->LowerBound().Type() == VT_EMPTY)
norm.PutMinValue( pRange->Pid(), occ, pRange->UpperBound().Type() );
else
norm.PutValue( pRange->Pid(), occ, pRange->LowerBound() );
if ( pRange->UpperBound().Type() == VT_EMPTY )
norm.PutMaxValue( pRange->Pid(), occ, pRange->LowerBound().Type() );
else
norm.PutValue( pRange->Pid(), occ, pRange->UpperBound() );
CRestriction * prst = krep.AcqRst();
if ( 0 != prst )
{
pnrst->AddChild( prst );
# if 0 && CIDBG == 1
vqDebugOut(( DEB_ITRACE, " PID 0x%x: LOWER = ", _aBounds.Get(i)->Pid() ));
_aBounds.Get(i)->LowerBound().DisplayVariant( DEB_ITRACE | DEB_NOCOMPNAME, 0 );
vqDebugOut(( DEB_ITRACE | DEB_NOCOMPNAME, ", UPPER = " ));
_aBounds.Get(i)->UpperBound().DisplayVariant( DEB_ITRACE | DEB_NOCOMPNAME, 0 );
vqDebugOut(( DEB_ITRACE | DEB_NOCOMPNAME, "\n" ));
# endif
}
else
{
vqDebugOut(( DEB_ITRACE, " range key repository gave no restriction\n" ));
}
}
}
//
// Add any content helpers
//
vqDebugOut(( DEB_ITRACE, "count of content helpers: %d\n",
_stkContentHelpers.Count() ));
//
// Note: This code is problematic and was rewritten in the new engine.
// It works well enough for now.
//
// Why was this if statement written like this? When would an OR
// node be acceptable if _cNodes == _stkContentHelpers.Count?
// I commented out the latter check because it was mis-handling
// @size < 20 or #filename *.htm since the counts are equal in OR mode.
//
if ( _BooleanMode != OrMode ) // || _cNodes == _stkContentHelpers.Count() )
{
vqDebugOut(( DEB_ITRACE, "Adding content helpers\n" ));
while ( _stkContentHelpers.Count() > 0 )
{
CRestriction * prst = _stkContentHelpers.Pop();
pnrst->AddChild( prst );
}
}
//
// Optimize return restriction
//
if ( pnrst->Count() == 0 )
{
vqDebugOut(( DEB_ITRACE, "No restriction to return\n" ));
return 0;
}
//
// If this is a property-only query then add an OR clause to match unfiltered files.
//
if ( fPropertyOnly )
{
XNodeRestriction rstOr( new CNodeRestriction( RTOr, 2 ) );
CRangeKeyRepository krep;
CValueNormalizer norm( krep );
OCCURRENCE occ = 1;
CStorageVariant var;
var.SetBOOL( VARIANT_TRUE );
norm.PutValue( pidUnfiltered, occ, var );
norm.PutValue( pidUnfiltered, occ, var );
rstOr->AddChild( krep.AcqRst() );
if ( pnrst->Count() == 1 )
rstOr->AddChild( pnrst->RemoveChild(0) );
else
rstOr->AddChild( pnrst.Acquire() );
return rstOr.Acquire();
}
else
{
if ( pnrst->Count() == 1 )
return pnrst->RemoveChild( 0 );
else
return pnrst.Acquire();
}
} //QueryContentRestriction
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::CanUse, public
//
// Arguments: [pid] -- Property id
// [fAscending] -- Use for ascending/descending sort
//
// Returns: TRUE if property can be used with specified index.
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
BOOL CIndexStrategy::CanUse( PROPID pid, BOOL fAscending ) const
{
vqDebugOut(( DEB_ITRACE, "strategy::CanUse pid %#x, fAscending %d, _BooleanMode %s\n",
_BooleanMode == NoMode ? "NoMode" :
_BooleanMode == AndMode ? "AndMode" :
_BooleanMode == OrMode ? "OrMode" : "InvalidMode" ));
if ( _BooleanMode == OrMode || _BooleanMode == InvalidMode )
return FALSE;
for ( unsigned i = 0; i < _cBounds; i++ )
{
CRange * pRange = _aBounds.Get(i);
if ( pRange->Pid() == pid )
{
if ( !pRange->IsValid() )
return FALSE;
if ( fAscending )
{
if ( pRange->LowerBound().Type() == VT_EMPTY )
return( FALSE );
else
return( TRUE );
}
else
{
if ( pRange->UpperBound().Type() == VT_EMPTY )
return( FALSE );
else
return( TRUE );
}
}
}
return( FALSE );
}
//+-------------------------------------------------------------------------
//
// Member: CIndexStrategy::FindPid, private
//
// Arguments: [pid] -- Property id
//
// Returns: Index of [pid] in bounds array.
//
// History: 26-Oct-95 KyleP Added header
//
//--------------------------------------------------------------------------
unsigned CIndexStrategy::FindPid( PROPID pid )
{
for ( unsigned i = 0; i < _cBounds; i++ )
{
if ( _aBounds.Get(i)->Pid() == pid )
break;
}
if ( i == _cBounds )
{
_aBounds.Add( new CRange( pid ), i );
_cBounds++;
}
return( i );
} //FindPid
|
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer cbSimulationConstants
// {
//
// uint g_iNumParticles; // Offset: 0 Size: 4 [unused]
// float g_fTimeStep; // Offset: 4 Size: 4 [unused]
// float g_fSmoothlen; // Offset: 8 Size: 4
// float g_fPressureStiffness; // Offset: 12 Size: 4 [unused]
// float g_fRestDensity; // Offset: 16 Size: 4 [unused]
// float g_fDensityCoef; // Offset: 20 Size: 4
// float g_fGradPressureCoef; // Offset: 24 Size: 4 [unused]
// float g_fLapViscosityCoef; // Offset: 28 Size: 4 [unused]
// float g_fWallStiffness; // Offset: 32 Size: 4 [unused]
// float4 g_vGravity; // Offset: 48 Size: 16 [unused]
// float4 g_vGridDim; // Offset: 64 Size: 16
// float3 g_vPlanes[4]; // Offset: 80 Size: 60 [unused]
//
// }
//
// Resource bind info for ParticlesRO
// {
//
// struct Particle
// {
//
// float2 position; // Offset: 0
// float2 velocity; // Offset: 8
//
// } $Element; // Offset: 0 Size: 16
//
// }
//
// Resource bind info for GridIndicesRO
// {
//
// uint2 $Element; // Offset: 0 Size: 8
//
// }
//
// Resource bind info for ParticlesDensityRW
// {
//
// struct ParticleDensity
// {
//
// float density; // Offset: 0
//
// } $Element; // Offset: 0 Size: 4
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// ParticlesRO texture struct r/o 0 1
// GridIndicesRO texture struct r/o 4 1
// ParticlesDensityRW UAV struct r/w 0 1
// cbSimulationConstants cbuffer NA NA 0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Input
//
// Output signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Output
cs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[5], immediateIndexed
dcl_resource_structured t0, 16
dcl_resource_structured t4, 8
dcl_uav_structured u0, 4
dcl_input vThreadID.x
dcl_temps 5
dcl_thread_group 256, 1, 1
mul r0.x, cb0[0].z, cb0[0].z
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r0.yz, vThreadID.x, l(0), t0.xxyx
mad r1.xyzw, r0.zzyy, cb0[4].yyxx, cb0[4].wwzz
max r1.xyzw, r1.xyzw, l(0.000000, 0.000000, 0.000000, 0.000000)
min r1.xyzw, r1.xyzw, l(255.000000, 255.000000, 255.000000, 255.000000)
ftoi r1.xyzw, r1.xyzw
iadd r1.xyzw, r1.xyzw, l(-1, 1, -1, 1)
imax r1.xz, r1.xxzx, l(0, 0, 0, 0)
imin r1.yw, r1.yyyw, l(0, 255, 0, 255)
mov r0.w, l(0)
mov r2.x, r1.x
loop
ilt r2.y, r1.y, r2.x
breakc_nz r2.y
ishl r2.y, r2.x, l(8)
mov r2.z, r0.w
mov r2.w, r1.z
loop
ilt r3.x, r1.w, r2.w
breakc_nz r3.x
iadd r3.x, r2.w, r2.y
ld_structured_indexable(structured_buffer, stride=8)(mixed,mixed,mixed,mixed) r3.xy, r3.x, l(0), t4.xyxx
mov r3.z, r2.z
mov r3.w, r3.x
loop
uge r4.x, r3.w, r3.y
breakc_nz r4.x
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r4.xy, r3.w, l(0), t0.xyxx
add r4.xy, -r0.yzyy, r4.xyxx
dp2 r4.x, r4.xyxx, r4.xyxx
lt r4.y, r4.x, r0.x
mad r4.x, cb0[0].z, cb0[0].z, -r4.x
mul r4.z, r4.x, r4.x
mul r4.z, r4.z, cb0[1].y
mad r4.x, r4.z, r4.x, r3.z
movc r3.z, r4.y, r4.x, r3.z
iadd r3.w, r3.w, l(1)
endloop
mov r2.z, r3.z
iadd r2.w, r2.w, l(1)
endloop
mov r0.w, r2.z
iadd r2.x, r2.x, l(1)
endloop
store_structured u0.x, vThreadID.x, l(0), r0.w
ret
// Approximately 46 instruction slots used
|
; A069126: Centered 13-gonal numbers.
; 1,14,40,79,131,196,274,365,469,586,716,859,1015,1184,1366,1561,1769,1990,2224,2471,2731,3004,3290,3589,3901,4226,4564,4915,5279,5656,6046,6449,6865,7294,7736,8191,8659,9140,9634,10141,10661,11194,11740,12299,12871,13456,14054,14665,15289,15926,16576,17239,17915,18604,19306,20021,20749,21490,22244,23011,23791,24584,25390,26209,27041,27886,28744,29615,30499,31396,32306,33229,34165,35114,36076,37051,38039,39040,40054,41081,42121,43174,44240,45319,46411,47516,48634,49765,50909,52066,53236,54419,55615,56824,58046,59281,60529,61790,63064,64351
sub $1,$0
bin $1,2
mul $1,13
add $1,1
mov $0,$1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1a1f0, %rsi
lea addresses_UC_ht+0x165f0, %rdi
clflush (%rsi)
nop
nop
nop
sub %r14, %r14
mov $53, %rcx
rep movsb
nop
and $54093, %rbx
lea addresses_WC_ht+0x3138, %rbx
nop
nop
inc %r8
movb (%rbx), %r11b
nop
nop
and $60978, %r8
lea addresses_A_ht+0xd1f0, %rsi
lea addresses_normal_ht+0xe382, %rdi
nop
nop
nop
xor %r14, %r14
mov $43, %rcx
rep movsq
nop
and %r14, %r14
lea addresses_UC_ht+0x15450, %rsi
nop
nop
nop
nop
cmp %rcx, %rcx
movups (%rsi), %xmm2
vpextrq $1, %xmm2, %r8
nop
nop
nop
nop
nop
sub $2384, %rdi
lea addresses_normal_ht+0x11f0, %rcx
nop
xor $1112, %rsi
movups (%rcx), %xmm5
vpextrq $0, %xmm5, %r8
nop
nop
nop
nop
nop
cmp %r8, %r8
lea addresses_normal_ht+0x55f0, %rcx
nop
nop
nop
nop
and %rsi, %rsi
mov $0x6162636465666768, %rbx
movq %rbx, %xmm4
movups %xmm4, (%rcx)
nop
nop
add %rbx, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r9
push %rax
push %rbp
push %rcx
push %rdx
push %rsi
// Store
lea addresses_RW+0x15a70, %r9
clflush (%r9)
nop
xor $27669, %rsi
movl $0x51525354, (%r9)
nop
nop
nop
nop
add $13617, %rcx
// Store
lea addresses_D+0x1a1f0, %rsi
nop
nop
nop
nop
nop
dec %rax
movb $0x51, (%rsi)
nop
add %rcx, %rcx
// Store
lea addresses_PSE+0x45f0, %rcx
nop
nop
inc %r9
movb $0x51, (%rcx)
inc %rcx
// Load
mov $0x769e7600000005f0, %r11
nop
and %rax, %rax
mov (%r11), %r9
nop
nop
nop
nop
nop
cmp %rbp, %rbp
// Load
lea addresses_US+0x11110, %rbp
nop
nop
nop
add %rsi, %rsi
vmovups (%rbp), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rax
nop
nop
nop
nop
inc %r11
// Faulty Load
mov $0x769e7600000005f0, %rbp
nop
nop
nop
nop
nop
inc %rdx
mov (%rbp), %r9
lea oracles, %rsi
and $0xff, %r9
shlq $12, %r9
mov (%rsi,%r9,1), %r9
pop %rsi
pop %rdx
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_NC', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_RW', 'congruent': 7}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D', 'congruent': 10}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_PSE', 'congruent': 11}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_NC', 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 2}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_NC', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 2}}
{'dst': {'same': False, 'congruent': 1, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 5}}
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 10}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 10}, 'OP': 'STOR'}
{'00': 637, '51': 21192}
51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 00 51 51 51 00 51 51 51 00 51 51 51 51 51 51 51 51 00 51 51 51 00 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 00 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 00 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 00 51 51 51 00 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 00 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
*/
|
; A313927: Coordination sequence Gal.5.135.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,10,16,22,28,34,40,45,50,55,60,66,72,78,84,90,95,100,105,110,116,122,128,134,140,145,150,155,160,166,172,178,184,190,195,200,205,210,216,222,228,234,240,245,250,255,260,266,272
mov $2,$0
add $2,5
mov $4,1
mov $5,$0
mov $0,$2
mov $1,4
mov $3,$2
add $3,2
add $4,$2
sub $4,5
sub $1,$4
lpb $0,1
sub $0,1
add $1,1
trn $3,5
add $3,1
trn $1,$3
add $1,1
trn $3,5
add $1,$3
lpe
lpb $5,1
add $1,4
sub $5,1
lpe
sub $1,5
|
/** @file
*
* @ingroup dspSoundFileLib
*
* @brief Tests for the #TTSoundfileLoader class
*
* @details Tests the core functions of the TTSoundfileLoader class in order to ensure that things are working after a build. It also demostrate how to make calls to common methods within the class.@n
* IMPORTANT NOTE: Because POSIX filepaths will be specific to your system, this test will attempt to find the path to the SoundfileLib extension using the TTFoundationBinaryPath environment variable. If you wish to test with a different sound file, you will need to place in that extension folder and change the relevant macros in the header of this class.
*
* @authors Nathan Wolek
*
* @copyright Copyright © 2013 by Nathan Wolek @n
* This code is licensed under the terms of the "New BSD License" @n
* http://creativecommons.org/licenses/BSD/
*/
#include "TTSoundfileLoader.h"
#include "TTUnitTest.h"
#include "TTBuffer.h"
/*
It is possible to change the target sound file for this test using the macros below.
Both sound files are included in the Jamoma respository at the following path:
{JAMOMA_ROOT}/Core/DSP/extensions/SoundfileLib/
The test should look for the named TESTFILE at this path.
*/
/* */
#define TESTFILE "geese_clip.aif"
#define TESTNUMCHANNELS 2
#define TESTSAMPLERATE 44100
#define TESTDURATIONINSAMPLES 88202
#define TESTDURATIONINSECONDS 2.00004535
#define TESTTITLE ""
#define TESTARTIST ""
#define TESTDATE ""
#define TESTANNOTATION ""
/* */
/*
#define TESTFILE "ding_b2.aiff"
#define TESTNUMCHANNELS 1
#define TESTSAMPLERATE 44100
#define TESTDURATIONINSAMPLES 39493
#define TESTDURATIONINSECONDS 0.89553288
#define TESTTITLE ""
#define TESTARTIST ""
#define TESTDATE ""
#define TESTANNOTATION ""
*/
TTErr TTSoundfileLoader::test(TTValue& returnedTestInfo)
{
int errorCount = 0;
int testAssertionCount = 0;
// assemble the full path of the target sound file
TTString testSoundPath = TTFoundationBinaryPath;
int pos = testSoundPath.find_last_of('/');
testSoundPath = testSoundPath.substr(0,pos+1);
testSoundPath += TESTFILE;
std::cout << "We will be using the following path for testing: " << testSoundPath << "\n";
try {
TTTestLog("\n");
TTTestLog("Testing TTSoundfileLoader Basics...");
// TEST 0: establish our objects & pointers
TTObject* testTargetMatrix = new TTObject("samplematrix");
TTObject* testNonSampleMatrix = new TTObject("delay");
TTObjectBase* objectBasePtrToSampleMatrix;
TTObjectBase* ptrToNonSampleMatrix;
// TEST 1: set the filepath
TTBoolean result1 = { this->setFilePath(TT(testSoundPath)) == kTTErrNone };
TTTestAssertion("setFilePath operates successfully",
result1,
testAssertionCount,
errorCount);
// TEST 2: set up the samplematrix first
int channelsSend = 1; // compiler complained about TTInt32 being ambiguous here
int lengthSend = 22050; // compiler complained about TTInt32 being ambiguous here
testTargetMatrix->set("numChannels", channelsSend);
testTargetMatrix->set("lengthInSamples", lengthSend);
TTInt32 channelsReturn, lengthReturn;
testTargetMatrix->get("numChannels", channelsReturn);
testTargetMatrix->get("lengthInSamples", lengthReturn);
// now for the actual test
TTBoolean result2a = { channelsSend == channelsReturn };
TTTestAssertion("numChannels attribute set successfully",
result2a,
testAssertionCount,
errorCount);
TTBoolean result2b = { lengthSend == lengthReturn };
TTTestAssertion("lengthInSamples attribute set successfully",
result2b,
testAssertionCount,
errorCount);
//
// TEST 3: set the target via an objectBasePtr
objectBasePtrToSampleMatrix = testTargetMatrix->instance(); // is there a better syntax for this?
TTBoolean result3 = { this->setTargetMatrix(objectBasePtrToSampleMatrix) == kTTErrNone };
TTTestAssertion("setTargetMatrix via ObjectBasePtr operates successfully",
result3,
testAssertionCount,
errorCount);
// TEST 4: set the target to a non-SampleMatrix, should FAIL
ptrToNonSampleMatrix = testNonSampleMatrix->instance();
TTBoolean result4 = { this->setTargetMatrix(ptrToNonSampleMatrix) == kTTErrInvalidValue };
TTTestAssertion("setTargetMatrix returns error when not a SampleMatrix",
result4,
testAssertionCount,
errorCount);
// TEST 5: copy samplevalues until samplematrix is filled
TTBoolean result5 = { this->copyUntilFilled() == kTTErrNone };
TTTestAssertion("copyUntilFilled operates successfully",
result5,
testAssertionCount,
errorCount);
// releasing objects
objectBasePtrToSampleMatrix = NULL;
ptrToNonSampleMatrix = NULL;
delete testTargetMatrix;
delete testNonSampleMatrix;
// TEST 6: use TTSampleMatrix's load message, then compare 5 random sample values for equivalence
// create a new TTSampleMatrix
TTObject newTargetMatrix("samplematrix");
// set the length and channel count
newTargetMatrix.set("numChannels", TESTNUMCHANNELS);
newTargetMatrix.set("lengthInSamples", TESTDURATIONINSAMPLES);
// prepare necessary TTValues
TTValue loadInput6 = TT(testSoundPath); // we cannot pass the naked TTString, it needs to be part of a TTValue
TTValue aReturnWeDontCareAbout6;
// send message
TTBoolean result6a = { newTargetMatrix.send("load", loadInput6, aReturnWeDontCareAbout6) == kTTErrNone };
TTTestAssertion("TTSampleMatrix load operates successfully",
result6a,
testAssertionCount,
errorCount);
// now let's test some values!
int randomIndex6, randomChannel6;
TTSampleValue testValueSoundFile6;
TTBoolean result6b = true;
for (int i = 0; i<10; i++)
{
randomIndex6 = lengthReturn * TTRandom64();
randomChannel6 = i % TESTNUMCHANNELS;
//std::cout << "let's look at index " << randomIndex6 << " & channel " << randomChannel6 << "\n";
TTValue peekInput6(randomIndex6);
peekInput6.append(randomChannel6);
TTValue peekOutput6;
this->peek(randomIndex6,randomChannel6,testValueSoundFile6);
newTargetMatrix.send("peek",peekInput6,peekOutput6);
//std::cout << "Does " << testValueSoundFile6 << " = " << double(peekOutput6) << " ?\n";
if (result6b) // allows test to keep variable false once it is false
result6b = TTTestFloatEquivalence(testValueSoundFile6, double(peekOutput6), true, 0.0000001);
}
TTTestAssertion("comparing values @ 10 random indexes for equivalence",
result6b,
testAssertionCount,
errorCount);
// TEST 7: now use TTBuffer's load message, and again compare 5 random sample values for equivalence
// create a new TTBuffer with convenience syntax
TTAudioBuffer aBufferByAnyOtherName(TESTNUMCHANNELS, TESTDURATIONINSAMPLES);
// prepare necessary TTValues
TTValue loadInput7 = TT(testSoundPath); // we cannot pass the naked TTString, it needs to be part of a TTValue
// send message
TTBoolean result7a = { aBufferByAnyOtherName.load(loadInput7) == kTTErrNone };
TTTestAssertion("TTBuffer load operates successfully",
result7a,
testAssertionCount,
errorCount);
// setup pointer to samplematrix
TTSampleMatrixPtr myMatrix7;
// check out samplematrix
TTBoolean result7b = { aBufferByAnyOtherName.checkOutMatrix(myMatrix7) == kTTErrNone };
TTTestAssertion("TTBuffer checks out SampleMatrix successfully",
result7b,
testAssertionCount,
errorCount);
TTValue testChannel, testSample;
myMatrix7->getNumChannels(testChannel);
myMatrix7->getLengthInSamples(testSample);
//std::cout << "Samplematrix has " << int(testChannel) << " channels & " << int(testSample) << " samples\n";
// now let's test some values!
int randomIndex7, randomChannel7;
double testValueSoundFile7, testValueSampleMatrix7;
TTBoolean result7c = true;
for (int i = 0; i<10; i++)
{
randomIndex7 = lengthReturn * TTRandom64();
randomChannel7 = i % TESTNUMCHANNELS;
//std::cout << "let's look at index " << randomIndex7 << " & channel " << randomChannel7 << "\n";
this->peek(randomIndex7,randomChannel7,testValueSoundFile7);
myMatrix7->peek(randomIndex7,randomChannel7,testValueSampleMatrix7);
//std::cout << "Does " << testValueSoundFile7 << " = " << testValueSampleMatrix7 << " ?\n";
if (result7c) // allows test to keep variable false once it is false
result7c = TTTestFloatEquivalence(testValueSoundFile7, testValueSampleMatrix7, true, 0.0000001);
}
TTTestAssertion("comparing values @ 10 random indexes for equivalence",
result7c,
testAssertionCount,
errorCount);
// check in samplematrix
TTBoolean result7d = { aBufferByAnyOtherName.checkInMatrix(myMatrix7) == kTTErrNone };
TTTestAssertion("TTBuffer checks in SampleMatrix successfully",
result7d,
testAssertionCount,
errorCount);
// TEST 8: use optional load parameters to copy samples 5 to 15 from channel 0
// resize
aBufferByAnyOtherName.set("numChannels", 1);
aBufferByAnyOtherName.set("lengthInSamples", 10);
// prepare necessary TTValues
int copyChannel8 = 0; // first channel
int startIndex8 = 5; // start @ sample 5
int endIndex8 = 15; // end @ sample 15
TTValue loadInput8 = TT(testSoundPath); // we cannot pass the naked TTString, it needs to be part of a TTValue
loadInput8.append(copyChannel8);
loadInput8.append(startIndex8);
loadInput8.append(endIndex8);
// send message
TTBoolean result8a = { aBufferByAnyOtherName.load(loadInput8) == kTTErrNone };
TTTestAssertion("TTBuffer load operates successfully w optional parameters",
result8a,
testAssertionCount,
errorCount);
// setup pointer to samplematrix
TTSampleMatrixPtr myMatrix8;
// check out samplematrix
TTBoolean result8b = { aBufferByAnyOtherName.checkOutMatrix(myMatrix8) == kTTErrNone };
TTTestAssertion("TTBuffer checks out SampleMatrix successfully",
result8b,
testAssertionCount,
errorCount);
// now let's test some values!
double testValueSoundFile8, testValueSampleMatrix8;
TTBoolean result8c = true;
for (int i = 0; i<10; i++)
{
//std::cout << "let's look at index " << i << "\n";
this->peek(i+startIndex8,copyChannel8,testValueSoundFile8);
myMatrix8->peek(i,copyChannel8,testValueSampleMatrix8);
//std::cout << "Does " << testValueSoundFile8 << " = " << testValueSampleMatrix8 << " ?\n";
if (result8c) // allows test to keep variable false once it is false
result8c = TTTestFloatEquivalence(testValueSoundFile8, testValueSampleMatrix8, true, 0.0000001);
}
TTTestAssertion("comparing all 10 copied values for equivalence",
result8c,
testAssertionCount,
errorCount);
// check in samplematrix
TTBoolean result8d = { aBufferByAnyOtherName.checkInMatrix(myMatrix8) == kTTErrNone };
TTTestAssertion("TTBuffer checks in SampleMatrix successfully",
result8d,
testAssertionCount,
errorCount);
// TEST 9: load soundfile into buffer/samplematrix with different sample rate
TTValue testChannel9in = 2;
TTValue testSampleRate9in = 88200;
TTValue testLengthSec9in = 0.25;
aBufferByAnyOtherName.set("numChannels", testChannel9in);
aBufferByAnyOtherName.set("sampleRate", testSampleRate9in);
aBufferByAnyOtherName.set("lengthInSeconds", testLengthSec9in);
TTValue loadInput9 = TT(testSoundPath); // we cannot pass the naked TTString, it needs to be part of a TTValue
// send message
TTBoolean result9a = { aBufferByAnyOtherName.load(loadInput9) == kTTErrNone };
TTTestAssertion("TTBuffer load operates successfully when sample rates differ",
result9a,
testAssertionCount,
errorCount);
// setup pointer to samplematrix
TTSampleMatrixPtr myMatrix9;
// check out samplematrix
TTBoolean result9b = { aBufferByAnyOtherName.checkOutMatrix(myMatrix9) == kTTErrNone };
TTTestAssertion("TTBuffer checks out SampleMatrix successfully",
result9b,
testAssertionCount,
errorCount);
TTValue testChannel9, testSampleCount9, testSampleRate9;
myMatrix9->getAttributeValue("numChannels", testChannel9);
myMatrix9->getAttributeValue("lengthInSamples", testSampleCount9);
myMatrix9->getAttributeValue("sampleRate", testSampleRate9);
/*std::cout << "Samplematrix has " << TTInt32(testChannel9) << " channels & " << TTInt32(testSampleCount9) << " samples @ " << TTInt32(testSampleRate9) << " Hz\n";*/
// check out samplematrix
TTBoolean result9c = { TTInt32(testChannel9) == TTInt32(testChannel9in) &&
TTInt32(testSampleRate9) == TTInt32(testSampleRate9in) &&
TTInt32(testSampleCount9) == (TTInt32(testSampleRate9in) * TTFloat64(testLengthSec9in)) };
TTTestAssertion("SampleMatrix has same attributes set via TTBuffer",
result9c,
testAssertionCount,
errorCount);
// let's test some values
int randomIndex9, randomChannel9;
TTSampleValue testSoundFileValue9, testSampleMatrixValue9;
TTBoolean result9d = true;
for (int i = 0; i<10; i++)
{
randomIndex9 = int(testSampleCount9) * TTRandom64();
randomChannel9 = i % TESTNUMCHANNELS;
//std::cout << "let's look at index " << randomIndex9 << " & channel " << randomChannel9 << "\n";
this->peeki(float(randomIndex9)/2.0, randomChannel9, testSoundFileValue9);
myMatrix9->peek(randomIndex9, randomChannel9, testSampleMatrixValue9);
//std::cout << "Does " << testSoundFileValue9 << " = " << testSampleMatrixValue9 << " ?\n";
if (result9d) // allows test to keep variable false once it is false
result9d = TTTestFloatEquivalence(testSoundFileValue9, testSampleMatrixValue9, true, 0.0000001);
}
TTTestAssertion("comparing values @ 10 random indexes for equivalence",
result9d,
testAssertionCount,
errorCount);
// check in samplematrix
TTBoolean result9e = { aBufferByAnyOtherName.checkInMatrix(myMatrix9) == kTTErrNone };
TTTestAssertion("TTBuffer checks in SampleMatrix successfully",
result9e,
testAssertionCount,
errorCount);
// TEST 10: use resizeThenLoad message and test that TTSampleMatrix conforms to sound file loaded
TTAudioBuffer bufferForTest10(1,1); // start by making the buffer really tiny
TTValue loadInput10 = TT(testSoundPath);
// send message
TTBoolean result10a = { bufferForTest10.resizeThenLoad(loadInput10) == kTTErrNone };
TTTestAssertion("TTBuffer resizeThenLoad operates successfully",
result10a,
testAssertionCount,
errorCount);
// setup pointer to samplematrix
TTSampleMatrixPtr myMatrix10;
// check out samplematrix
TTBoolean result10b = { bufferForTest10.checkOutMatrix(myMatrix10) == kTTErrNone };
TTTestAssertion("TTBuffer checks out SampleMatrix successfully",
result10b,
testAssertionCount,
errorCount);
// do some more tests here
TTValue testChannel10, testLengthSec10, testLengthSample10;
myMatrix10->getAttributeValue("numChannels", testChannel10);
myMatrix10->getAttributeValue("lengthInSeconds", testLengthSec10);
myMatrix10->getAttributeValue("lengthInSamples", testLengthSample10);
/*std::cout << "Samplematrix has " << TTInt32(testChannel10) << " channels & " << TTInt32(testLengthSample10) << " samples and is " << TTFloat64(testLengthSec10) << " secs long\n";*/
TTBoolean result10c = { TTInt32(testChannel10) == TESTNUMCHANNELS &&
TTInt32(testLengthSample10) == TESTDURATIONINSAMPLES };
TTTestAssertion("TTBuffer.resizeThenLoad results in properly sized TTSampleMatrix",
result10c,
testAssertionCount,
errorCount);
// check in samplematrix
TTBoolean result10e = { bufferForTest10.checkInMatrix(myMatrix10) == kTTErrNone };
TTTestAssertion("TTBuffer checks in SampleMartix successfully",
result10e,
testAssertionCount,
errorCount);
} catch (...) {
TTTestAssertion("FAILED to run tests -- likely that necessary objects did not instantiate",
0,
testAssertionCount,
errorCount);
}
return TTTestFinish(testAssertionCount, errorCount, returnedTestInfo);
}
|
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing project authors may
; be found in the AUTHORS file in the root of the source tree.
;
%include "vpx_ports/x86_abi_support.asm"
global sym(vp8_sad16x16_mmx)
global sym(vp8_sad8x16_mmx)
global sym(vp8_sad8x8_mmx)
global sym(vp8_sad4x4_mmx)
global sym(vp8_sad16x8_mmx)
;unsigned int vp8_sad16x16_mmx(
; unsigned char *src_ptr,
; int src_stride,
; unsigned char *ref_ptr,
; int ref_stride)
sym(vp8_sad16x16_mmx):
push rbp
mov rbp, rsp
SHADOW_ARGS_TO_STACK 4
push rsi
push rdi
; end prolog
mov rsi, arg(0) ;src_ptr
mov rdi, arg(2) ;ref_ptr
movsxd rax, dword ptr arg(1) ;src_stride
movsxd rdx, dword ptr arg(3) ;ref_stride
lea rcx, [rsi+rax*8]
lea rcx, [rcx+rax*8]
pxor mm7, mm7
pxor mm6, mm6
.x16x16sad_mmx_loop:
movq mm0, QWORD PTR [rsi]
movq mm2, QWORD PTR [rsi+8]
movq mm1, QWORD PTR [rdi]
movq mm3, QWORD PTR [rdi+8]
movq mm4, mm0
movq mm5, mm2
psubusb mm0, mm1
psubusb mm1, mm4
psubusb mm2, mm3
psubusb mm3, mm5
por mm0, mm1
por mm2, mm3
movq mm1, mm0
movq mm3, mm2
punpcklbw mm0, mm6
punpcklbw mm2, mm6
punpckhbw mm1, mm6
punpckhbw mm3, mm6
paddw mm0, mm2
paddw mm1, mm3
lea rsi, [rsi+rax]
add rdi, rdx
paddw mm7, mm0
paddw mm7, mm1
cmp rsi, rcx
jne .x16x16sad_mmx_loop
movq mm0, mm7
punpcklwd mm0, mm6
punpckhwd mm7, mm6
paddw mm0, mm7
movq mm7, mm0
psrlq mm0, 32
paddw mm7, mm0
movq rax, mm7
pop rdi
pop rsi
mov rsp, rbp
; begin epilog
UNSHADOW_ARGS
pop rbp
ret
;unsigned int vp8_sad8x16_mmx(
; unsigned char *src_ptr,
; int src_stride,
; unsigned char *ref_ptr,
; int ref_stride)
sym(vp8_sad8x16_mmx):
push rbp
mov rbp, rsp
SHADOW_ARGS_TO_STACK 4
push rsi
push rdi
; end prolog
mov rsi, arg(0) ;src_ptr
mov rdi, arg(2) ;ref_ptr
movsxd rax, dword ptr arg(1) ;src_stride
movsxd rdx, dword ptr arg(3) ;ref_stride
lea rcx, [rsi+rax*8]
lea rcx, [rcx+rax*8]
pxor mm7, mm7
pxor mm6, mm6
.x8x16sad_mmx_loop:
movq mm0, QWORD PTR [rsi]
movq mm1, QWORD PTR [rdi]
movq mm2, mm0
psubusb mm0, mm1
psubusb mm1, mm2
por mm0, mm1
movq mm2, mm0
punpcklbw mm0, mm6
punpckhbw mm2, mm6
lea rsi, [rsi+rax]
add rdi, rdx
paddw mm7, mm0
paddw mm7, mm2
cmp rsi, rcx
jne .x8x16sad_mmx_loop
movq mm0, mm7
punpcklwd mm0, mm6
punpckhwd mm7, mm6
paddw mm0, mm7
movq mm7, mm0
psrlq mm0, 32
paddw mm7, mm0
movq rax, mm7
pop rdi
pop rsi
mov rsp, rbp
; begin epilog
UNSHADOW_ARGS
pop rbp
ret
;unsigned int vp8_sad8x8_mmx(
; unsigned char *src_ptr,
; int src_stride,
; unsigned char *ref_ptr,
; int ref_stride)
sym(vp8_sad8x8_mmx):
push rbp
mov rbp, rsp
SHADOW_ARGS_TO_STACK 4
push rsi
push rdi
; end prolog
mov rsi, arg(0) ;src_ptr
mov rdi, arg(2) ;ref_ptr
movsxd rax, dword ptr arg(1) ;src_stride
movsxd rdx, dword ptr arg(3) ;ref_stride
lea rcx, [rsi+rax*8]
pxor mm7, mm7
pxor mm6, mm6
.x8x8sad_mmx_loop:
movq mm0, QWORD PTR [rsi]
movq mm1, QWORD PTR [rdi]
movq mm2, mm0
psubusb mm0, mm1
psubusb mm1, mm2
por mm0, mm1
movq mm2, mm0
punpcklbw mm0, mm6
punpckhbw mm2, mm6
paddw mm0, mm2
lea rsi, [rsi+rax]
add rdi, rdx
paddw mm7, mm0
cmp rsi, rcx
jne .x8x8sad_mmx_loop
movq mm0, mm7
punpcklwd mm0, mm6
punpckhwd mm7, mm6
paddw mm0, mm7
movq mm7, mm0
psrlq mm0, 32
paddw mm7, mm0
movq rax, mm7
pop rdi
pop rsi
mov rsp, rbp
; begin epilog
UNSHADOW_ARGS
pop rbp
ret
;unsigned int vp8_sad4x4_mmx(
; unsigned char *src_ptr,
; int src_stride,
; unsigned char *ref_ptr,
; int ref_stride)
sym(vp8_sad4x4_mmx):
push rbp
mov rbp, rsp
SHADOW_ARGS_TO_STACK 4
push rsi
push rdi
; end prolog
mov rsi, arg(0) ;src_ptr
mov rdi, arg(2) ;ref_ptr
movsxd rax, dword ptr arg(1) ;src_stride
movsxd rdx, dword ptr arg(3) ;ref_stride
movd mm0, DWORD PTR [rsi]
movd mm1, DWORD PTR [rdi]
movd mm2, DWORD PTR [rsi+rax]
movd mm3, DWORD PTR [rdi+rdx]
punpcklbw mm0, mm2
punpcklbw mm1, mm3
movq mm2, mm0
psubusb mm0, mm1
psubusb mm1, mm2
por mm0, mm1
movq mm2, mm0
pxor mm3, mm3
punpcklbw mm0, mm3
punpckhbw mm2, mm3
paddw mm0, mm2
lea rsi, [rsi+rax*2]
lea rdi, [rdi+rdx*2]
movd mm4, DWORD PTR [rsi]
movd mm5, DWORD PTR [rdi]
movd mm6, DWORD PTR [rsi+rax]
movd mm7, DWORD PTR [rdi+rdx]
punpcklbw mm4, mm6
punpcklbw mm5, mm7
movq mm6, mm4
psubusb mm4, mm5
psubusb mm5, mm6
por mm4, mm5
movq mm5, mm4
punpcklbw mm4, mm3
punpckhbw mm5, mm3
paddw mm4, mm5
paddw mm0, mm4
movq mm1, mm0
punpcklwd mm0, mm3
punpckhwd mm1, mm3
paddw mm0, mm1
movq mm1, mm0
psrlq mm0, 32
paddw mm0, mm1
movq rax, mm0
pop rdi
pop rsi
mov rsp, rbp
; begin epilog
UNSHADOW_ARGS
pop rbp
ret
;unsigned int vp8_sad16x8_mmx(
; unsigned char *src_ptr,
; int src_stride,
; unsigned char *ref_ptr,
; int ref_stride)
sym(vp8_sad16x8_mmx):
push rbp
mov rbp, rsp
SHADOW_ARGS_TO_STACK 4
push rsi
push rdi
; end prolog
mov rsi, arg(0) ;src_ptr
mov rdi, arg(2) ;ref_ptr
movsxd rax, dword ptr arg(1) ;src_stride
movsxd rdx, dword ptr arg(3) ;ref_stride
lea rcx, [rsi+rax*8]
pxor mm7, mm7
pxor mm6, mm6
.x16x8sad_mmx_loop:
movq mm0, [rsi]
movq mm1, [rdi]
movq mm2, [rsi+8]
movq mm3, [rdi+8]
movq mm4, mm0
movq mm5, mm2
psubusb mm0, mm1
psubusb mm1, mm4
psubusb mm2, mm3
psubusb mm3, mm5
por mm0, mm1
por mm2, mm3
movq mm1, mm0
movq mm3, mm2
punpcklbw mm0, mm6
punpckhbw mm1, mm6
punpcklbw mm2, mm6
punpckhbw mm3, mm6
paddw mm0, mm2
paddw mm1, mm3
paddw mm0, mm1
lea rsi, [rsi+rax]
add rdi, rdx
paddw mm7, mm0
cmp rsi, rcx
jne .x16x8sad_mmx_loop
movq mm0, mm7
punpcklwd mm0, mm6
punpckhwd mm7, mm6
paddw mm0, mm7
movq mm7, mm0
psrlq mm0, 32
paddw mm7, mm0
movq rax, mm7
pop rdi
pop rsi
mov rsp, rbp
; begin epilog
UNSHADOW_ARGS
pop rbp
ret
|
Music_Vermilion_Ch1::
tempo 156
volume 7, 7
duty 3
vibrato 12, 3, 4
toggleperfectpitch
Music_Vermilion_branch_b9f6::
notetype 12, 11, 5
octave 3
E_ 4
C# 1
D_ 1
E_ 2
A_ 4
B_ 2
A_ 2
G# 2
F# 2
E_ 2
F# 2
A_ 4
F# 1
G# 1
A_ 2
E_ 4
C# 2
E_ 2
A_ 2
G# 2
B_ 2
A_ 2
G# 2
E_ 2
F# 2
G# 2
C# 2
D_ 2
E_ 2
F# 2
E_ 4
C# 1
D_ 1
E_ 2
A_ 4
B_ 2
A_ 2
G# 2
F# 2
E_ 2
F# 2
A_ 4
F# 1
G# 1
A_ 2
E_ 4
C# 1
D_ 1
E_ 2
A_ 2
G# 2
F# 2
A_ 2
G# 2
E_ 2
F# 2
G# 2
F# 4
E_ 4
F# 2
G# 2
F# 2
A_ 2
G# 2
B_ 2
A_ 2
octave 4
C# 2
D_ 2
C# 2
octave 3
B_ 2
A_ 2
G# 1
A_ 1
B_ 2
octave 4
C# 2
E_ 2
octave 3
A_ 2
octave 4
D_ 2
octave 3
G# 2
octave 4
C# 2
octave 3
F# 2
B_ 2
G# 2
A_ 2
B_ 2
A_ 2
G# 2
F# 2
E_ 2
F# 2
G# 2
B_ 2
loopchannel 0, Music_Vermilion_branch_b9f6
Music_Vermilion_Ch2::
duty 3
vibrato 10, 2, 3
Music_Vermilion_branch_ba66::
notetype 12, 12, 7
octave 3
A_ 8
octave 4
D_ 4
C# 4
octave 3
B_ 6
A_ 1
B_ 1
octave 4
C# 8
octave 3
A_ 8
octave 4
D_ 4
C# 4
octave 3
B_ 6
octave 4
C# 1
octave 3
B_ 1
A_ 8
A_ 8
octave 4
D_ 4
C# 4
octave 3
B_ 6
A_ 1
B_ 1
octave 4
C# 8
octave 3
A_ 8
octave 4
D_ 4
C# 4
octave 3
B_ 6
octave 4
C# 1
octave 3
B_ 1
A_ 8
B_ 4
octave 4
C# 4
D_ 4
E_ 4
F# 8
B_ 8
A_ 4
G# 4
F# 4
E_ 4
F# 8
E_ 8
loopchannel 0, Music_Vermilion_branch_ba66
Music_Vermilion_Ch3::
notetype 12, 1, 0
Music_Vermilion_branch_baa8::
octave 4
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
G# 2
E_ 2
G# 2
E_ 2
A_ 2
G# 2
F# 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
G# 2
E_ 2
G# 2
E_ 2
A_ 2
G# 2
F# 2
G# 2
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
G# 2
E_ 2
G# 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
G# 2
E_ 2
G# 2
E_ 2
A_ 2
E_ 2
A_ 2
E_ 2
B_ 2
E_ 2
A_ 2
E_ 2
G# 2
E_ 2
F# 2
E_ 2
G# 2
E_ 2
G# 2
E_ 2
B_ 2
A_ 2
G# 2
F# 2
F# 2
E_ 2
G# 2
E_ 2
A_ 2
E_ 2
B_ 2
E_ 2
B_ 2
E_ 2
B_ 2
E_ 2
A_ 2
E_ 2
G# 2
E_ 2
loopchannel 0, Music_Vermilion_branch_baa8
Music_Vermilion_Ch4::
dspeed 12
Music_Vermilion_branch_bb0e::
callchannel Music_Vermilion_branch_bb3f
triangle1 2
triangle1 1
triangle1 1
triangle1 2
triangle1 1
triangle1 1
triangle1 2
triangle1 1
triangle1 1
triangle1 1
triangle1 1
triangle1 1
triangle1 1
loopchannel 4, Music_Vermilion_branch_bb0e
callchannel Music_Vermilion_branch_bb3f
callchannel Music_Vermilion_branch_bb3f
callchannel Music_Vermilion_branch_bb3f
callchannel Music_Vermilion_branch_bb3f
loopchannel 0, Music_Vermilion_branch_bb0e
Music_Vermilion_branch_bb3f::
triangle1 2
triangle1 1
triangle1 1
triangle1 2
triangle1 1
triangle1 1
triangle1 2
triangle1 1
triangle1 1
triangle1 2
triangle1 1
triangle1 1
endchannel
|
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
pop
pushi 2
pushi 7
add
halt
|
; A071725: Expansion of (1+x^2*C^4)*C, where C = (1 - sqrt(1-4*x))/(2*x) is g.f. for Catalan numbers, A000108.
; Submitted by Jon Maiga
; 1,1,3,10,34,117,407,1430,5070,18122,65246,236436,861764,3157325,11622015,42961470,159419670,593636670,2217608250,8308432140,31212003420,117544456770,443690433654,1678353186780,6361322162444,24155384502452,91882005146652,350065463232296,1335755755638920,5104160966252733,19530129763552079,74823207859552334,287003780667097830,1102125629282595190,4236829985438011234,16303980156854984412,62801046584862381292,242125392018199180918,934318652660578110450,3608388208268373408340,13946928221543733774820
mov $2,4
mul $2,$0
sub $2,1
div $2,2
mov $1,$2
bin $1,$0
sub $0,4
bin $2,$0
sub $1,$2
mov $0,$1
|
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Xerces" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache\@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation, and was
* originally based on software copyright (c) 1999, International
* Business Machines, Inc., http://www.ibm.com . For more information
* on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
/*
* $Log: SAX2Print.hpp,v $
* Revision 1.1 2003/11/12 01:57:57 AnJingBin
* *** empty log message ***
*
* Revision 1.1 2003/10/23 20:57:50 AnJingBin
* *** empty log message ***
*
* Revision 1.1 2000/08/02 19:16:14 jpolast
* initial checkin of SAX2Print
*
*
*/
// ---------------------------------------------------------------------------
// Includes for all the program files to see
// ---------------------------------------------------------------------------
#include <string.h>
#include <iostream.h>
#include <stdlib.h>
#include "SAX2PrintHandlers.hpp"
// ---------------------------------------------------------------------------
// This is a simple class that lets us do easy (though not terribly efficient)
// trancoding of XMLCh data to local code page for display.
// ---------------------------------------------------------------------------
class StrX
{
public :
// -----------------------------------------------------------------------
// Constructors and Destructor
// -----------------------------------------------------------------------
StrX(const XMLCh* const toTranscode)
{
// Call the private transcoding method
fLocalForm = XMLString::transcode(toTranscode);
}
~StrX()
{
delete [] fLocalForm;
}
// -----------------------------------------------------------------------
// Getter methods
// -----------------------------------------------------------------------
const char* localForm() const
{
return fLocalForm;
}
private :
// -----------------------------------------------------------------------
// Private data members
//
// fLocalForm
// This is the local code page form of the string.
// -----------------------------------------------------------------------
char* fLocalForm;
};
inline ostream& operator<<(ostream& target, const StrX& toDump)
{
target << toDump.localForm();
return target;
}
|
[bits 16] ; tell assembler that working in real mode(16 bit mode)
[org 0x7c00] ; organize from 0x7C00 memory location where BIOS will load us
start:
; cls
mov ax, 0xb800
push ax
mov es, ax
xor di, di
mov cx, 0x07d0
mov ax, 0x0000
rep stosw
pop ax
mov ds, ax
mov bl, '0' ;; init turn
mov [turn], bl
draw:
mov ax, 0xb800
mov es, ax
mov word [0], 0x0731
mov word [2], 0x087C ; |
mov word [4], 0x0732
mov word [6], 0x087C ; |
mov word [8], 0x0733
mov word [160], 0x082D
mov word [162], 0x082B ; +
mov word [164], 0x082D
mov word [166], 0x082B ; +
mov word [168], 0x082D
mov word [320], 0x0734
mov word [322], 0x087C ; |
mov word [324], 0x0735
mov word [326], 0x087C ; |
mov word [328], 0x0736
mov word [480], 0x082D
mov word [482], 0x082B ; +
mov word [484], 0x082D
mov word [486], 0x082B ; +
mov word [488], 0x082D
mov word [640], 0x0737
mov word [642], 0x087C ; |
mov word [644], 0x0738
mov word [646], 0x087C ; |
mov word [648], 0x0739
;;;;;;;;
playmore:
mov bx, 0x0458; 'X'
call play
mov bx, 0x024F; 'O'
call play
jmp playmore
play:
call getnum; key in al, player in bx
; mov dx, ax
cbw
mov ch, 3
div ch
mov cl, ah ; rem
shl cl, 2
cbw ; al into ax
push cx ; save cause mul will destroy it
mov cx, 320
mul cx
pop cx
xor ch,ch
add ax, cx
mov si, ax
mov cx, word [si]
cmp cl, 0x40 ; check if number (already played this cell)
jnc play
mov word [si], bx
; lea ax, [ax + ax*2]
; mov dx, [bx + 2*ax]
mov cx, bx
shl cx, 1
add cx, bx; = cx*3
;; check win
; lines 1-3
mov ax, word [0]
add ax, word [4]
add ax, word [8]
cmp ax, cx
jz winner
mov ax, word [320]
add ax, word [324]
add ax, word [328]
cmp ax, cx
jz winner
mov ax, word [640]
add ax, word [644]
add ax, word [648]
cmp ax, cx
jz winner
;columns 1-3
mov ax, word [0]
add ax, word [320]
add ax, word [640]
cmp ax, cx
jz winner
mov ax, word [4]
add ax, word [324]
add ax, word [644]
cmp ax, cx
jz winner
mov ax, word [8]
add ax, word [328]
add ax, word [648]
cmp ax, cx
jz winner
;2 diagonals, first top left to bottom right
mov ax, word [0]
add ax, word [324]
add ax, word [648]
cmp ax, cx
jz winner
mov ax, word [8]
add ax, word [324]
add ax, word [640]
cmp ax, cx
jz winner
mov bl, [turn] ;; check tie
inc bl
cmp bl, '9'
je tie
mov [turn],bl
ret
winner: ; win symbol + color in bx
mov di, 0x14
mov ah, bh ; color
mov al, 'W'
stosw
mov al, 'i'
stosw
mov al, 'n'
stosw
mov al, 'n'
stosw
mov al, 'e'
stosw
mov al, 'r'
stosw
inc di
inc di
mov ax, bx
stosw
waitkey_and_reboot:
mov ah, 0 ; wait for key
int 0x16
db 0EAh ; machine language to jump to FFFF:0000 (reboot)
dw 0000h
dw 0FFFFh
tie:
mov di, 0x14
mov ax, 0x0254
stosw
mov al, 'i'
stosw
mov al, 'e'
stosw
jmp waitkey_and_reboot
getnum: ; accepts 1..9
mov ah, 0 ; wait for key
int 0x16
sub al,0x31 ; Subtract code for ASCII digit 1
jc getnum ; Is it less than? Wait for another key
cmp al,0x09 ; Comparison with 9
jnc getnum ; Is it greater than or equal to? Wait
ret;
turn equ 0x30
times (510 - ($ - $$)) db 0x00 ;set 512 BS
dw 0xAA55
|
#include <fstream>
#include <ShlObj.h>
#include "json/json.h"
#include "Config.h"
Config::Config(const char* name) noexcept
{
if (PWSTR pathToDocuments; SUCCEEDED(SHGetKnownFolderPath(FOLDERID_Documents, 0, nullptr, &pathToDocuments))) {
path = pathToDocuments;
path /= name;
CoTaskMemFree(pathToDocuments);
}
if (!std::filesystem::is_directory(path)) {
std::filesystem::remove(path);
std::filesystem::create_directory(path);
}
std::transform(std::filesystem::directory_iterator{ path },
std::filesystem::directory_iterator{ },
std::back_inserter(configs),
[](const auto& entry) { return std::string{ (const char*)entry.path().filename().u8string().c_str() }; });
}
void Config::load(size_t id) noexcept
{
Json::Value json;
if (std::ifstream in{ path / (const char8_t*)configs[id].c_str() }; in.good())
in >> json;
else
return;
for (size_t i = 0; i < aimbot.size(); ++i) {
const auto& aimbotJson = json["Aimbot"][i];
auto& aimbotConfig = aimbot[i];
if (aimbotJson.isMember("Enabled")) aimbotConfig.enabled = aimbotJson["Enabled"].asBool();
if (aimbotJson.isMember("On key")) aimbotConfig.onKey = aimbotJson["On key"].asBool();
if (aimbotJson.isMember("Key")) aimbotConfig.key = aimbotJson["Key"].asInt();
if (aimbotJson.isMember("Key mode")) aimbotConfig.keyMode = aimbotJson["Key mode"].asInt();
if (aimbotJson.isMember("Aimlock")) aimbotConfig.aimlock = aimbotJson["Aimlock"].asBool();
if (aimbotJson.isMember("Silent")) aimbotConfig.silent = aimbotJson["Silent"].asBool();
if (aimbotJson.isMember("Friendly fire")) aimbotConfig.friendlyFire = aimbotJson["Friendly fire"].asBool();
if (aimbotJson.isMember("Visible only")) aimbotConfig.visibleOnly = aimbotJson["Visible only"].asBool();
if (aimbotJson.isMember("Scoped only")) aimbotConfig.scopedOnly = aimbotJson["Scoped only"].asBool();
if (aimbotJson.isMember("Ignore flash")) aimbotConfig.ignoreFlash = aimbotJson["Ignore flash"].asBool();
if (aimbotJson.isMember("Ignore smoke")) aimbotConfig.ignoreSmoke = aimbotJson["Ignore smoke"].asBool();
if (aimbotJson.isMember("Auto shot")) aimbotConfig.autoShot = aimbotJson["Auto shot"].asBool();
if (aimbotJson.isMember("Auto scope")) aimbotConfig.autoScope = aimbotJson["Auto scope"].asBool();
if (aimbotJson.isMember("Recoil-based fov")) aimbotConfig.recoilbasedFov = aimbotJson["Recoil-based fov"].asBool();
if (aimbotJson.isMember("Fov")) aimbotConfig.fov = aimbotJson["Fov"].asFloat();
if (aimbotJson.isMember("Smooth")) aimbotConfig.smooth = aimbotJson["Smooth"].asFloat();
if (aimbotJson.isMember("Bone")) aimbotConfig.bone = aimbotJson["Bone"].asInt();
if (aimbotJson.isMember("Recoil control X")) aimbotConfig.recoilControlX = aimbotJson["Recoil control X"].asFloat();
if (aimbotJson.isMember("Recoil control Y")) aimbotConfig.recoilControlY = aimbotJson["Recoil control Y"].asFloat();
if (aimbotJson.isMember("Standalone recoil control")) aimbotConfig.standaloneRecoilControl = aimbotJson["Standalone recoil control"].asBool();
if (aimbotJson.isMember("Min damage")) aimbotConfig.minDamage = aimbotJson["Min damage"].asInt();
if (aimbotJson.isMember("Hit chance")) aimbotConfig.hitChance = aimbotJson["Hit chance"].asInt();
if (aimbotJson.isMember("Killshot")) aimbotConfig.killshot = aimbotJson["Killshot"].asBool();
if (aimbotJson.isMember("Between shots")) aimbotConfig.betweenShots = aimbotJson["Between shots"].asBool();
if (aimbotJson.isMember("Velocity extrapolation")) aimbotConfig.velocityExtrapolation = aimbotJson["Velocity extrapolation"].asBool();
}
for (size_t i = 0; i < triggerbot.size(); ++i) {
const auto& triggerbotJson = json["Triggerbot"][i];
auto& triggerbotConfig = triggerbot[i];
if (triggerbotJson.isMember("Enabled")) triggerbotConfig.enabled = triggerbotJson["Enabled"].asBool();
if (triggerbotJson.isMember("On key")) triggerbotConfig.onKey = triggerbotJson["On key"].asBool();
if (triggerbotJson.isMember("Key")) triggerbotConfig.key = triggerbotJson["Key"].asInt();
if (triggerbotJson.isMember("Friendly fire")) triggerbotConfig.friendlyFire = triggerbotJson["Friendly fire"].asBool();
if (triggerbotJson.isMember("Scoped only")) triggerbotConfig.scopedOnly = triggerbotJson["Scoped only"].asBool();
if (triggerbotJson.isMember("Ignore flash")) triggerbotConfig.ignoreFlash = triggerbotJson["Ignore flash"].asBool();
if (triggerbotJson.isMember("Ignore smoke")) triggerbotConfig.ignoreSmoke = triggerbotJson["Ignore smoke"].asBool();
if (triggerbotJson.isMember("Hitgroup")) triggerbotConfig.hitgroup = triggerbotJson["Hitgroup"].asInt();
if (triggerbotJson.isMember("Shot delay")) triggerbotConfig.shotDelay = triggerbotJson["Shot delay"].asInt();
if (triggerbotJson.isMember("Min damage")) triggerbotConfig.minDamage = triggerbotJson["Min damage"].asInt();
if (triggerbotJson.isMember("Killshot")) triggerbotConfig.killshot = triggerbotJson["Killshot"].asBool();
}
{
const auto& backtrackJson = json["Backtrack"];
if (backtrackJson.isMember("Enabled")) backtrack.enabled = backtrackJson["Enabled"].asBool();
if (backtrackJson.isMember("Ignore smoke")) backtrack.ignoreSmoke = backtrackJson["Ignore smoke"].asBool();
if (backtrackJson.isMember("Recoil based fov")) backtrack.recoilBasedFov = backtrackJson["Recoil based fov"].asBool();
if (backtrackJson.isMember("Time limit")) backtrack.timeLimit = backtrackJson["Time limit"].asInt();
}
{
const auto& antiAimJson = json["Anti aim"];
if (antiAimJson.isMember("Enabled")) antiAim.enabled = antiAimJson["Enabled"].asBool();
if (antiAimJson.isMember("Pitch")) antiAim.pitch = antiAimJson["Pitch"].asBool();
if (antiAimJson.isMember("Pitch angle")) antiAim.pitchAngle = antiAimJson["Pitch angle"].asFloat();
if (antiAimJson.isMember("Yaw")) antiAim.yaw = antiAimJson["Yaw"].asBool();
}
for (size_t i = 0; i < glow.size(); ++i) {
const auto& glowJson = json["glow"][i];
auto& glowConfig = glow[i];
if (glowJson.isMember("Enabled")) glowConfig.enabled = glowJson["Enabled"].asBool();
if (glowJson.isMember("healthBased")) glowConfig.healthBased = glowJson["healthBased"].asBool();
if (glowJson.isMember("thickness")) glowConfig.thickness = glowJson["thickness"].asFloat();
if (glowJson.isMember("alpha")) glowConfig.alpha = glowJson["alpha"].asFloat();
if (glowJson.isMember("style")) glowConfig.style = glowJson["style"].asInt();
if (glowJson.isMember("Color")) {
const auto& colorJson = glowJson["Color"];
auto& colorConfig = glowConfig.color;
if (colorJson.isMember("Color")) {
colorConfig.color[0] = colorJson["Color"][0].asFloat();
colorConfig.color[1] = colorJson["Color"][1].asFloat();
colorConfig.color[2] = colorJson["Color"][2].asFloat();
}
if (colorJson.isMember("Rainbow")) colorConfig.rainbow = colorJson["Rainbow"].asBool();
if (colorJson.isMember("Rainbow speed")) colorConfig.rainbowSpeed = colorJson["Rainbow speed"].asFloat();
}
}
for (size_t i = 0; i < chams.size(); ++i) {
const auto& chamsJson = json["Chams"][i];
auto& chamsConfig = chams[i];
for (size_t j = 0; j < chams[0].materials.size(); j++) {
const auto& materialsJson = chamsJson[j];
auto& materialsConfig = chams[i].materials[j];
if (materialsJson.isMember("Enabled")) materialsConfig.enabled = materialsJson["Enabled"].asBool();
if (materialsJson.isMember("Health based")) materialsConfig.healthBased = materialsJson["Health based"].asBool();
if (materialsJson.isMember("Blinking")) materialsConfig.blinking = materialsJson["Blinking"].asBool();
if (materialsJson.isMember("Material")) materialsConfig.material = materialsJson["Material"].asInt();
if (materialsJson.isMember("Wireframe")) materialsConfig.wireframe = materialsJson["Wireframe"].asBool();
if (materialsJson.isMember("Color")) {
const auto& colorJson = materialsJson["Color"];
auto& colorConfig = materialsConfig.color;
if (colorJson.isMember("Color")) {
colorConfig.color[0] = colorJson["Color"][0].asFloat();
colorConfig.color[1] = colorJson["Color"][1].asFloat();
colorConfig.color[2] = colorJson["Color"][2].asFloat();
}
if (colorJson.isMember("Rainbow")) colorConfig.rainbow = colorJson["Rainbow"].asBool();
if (colorJson.isMember("Rainbow speed")) colorConfig.rainbowSpeed = colorJson["Rainbow speed"].asFloat();
}
if (materialsJson.isMember("Alpha")) materialsConfig.alpha = materialsJson["Alpha"].asFloat();
}
}
for (size_t i = 0; i < esp.players.size(); ++i) {
const auto& espJson = json["Esp"]["Players"][i];
auto& espConfig = esp.players[i];
if (espJson.isMember("Enabled")) espConfig.enabled = espJson["Enabled"].asBool();
if (espJson.isMember("Font")) espConfig.font = espJson["Font"].asInt();
if (espJson.isMember("Snaplines")) {
const auto& snaplinesJson = espJson["Snaplines"];
auto& snaplinesConfig = espConfig.snaplines;
if (snaplinesJson.isMember("Enabled")) snaplinesConfig.enabled = snaplinesJson["Enabled"].asBool();
if (snaplinesJson.isMember("Color")) {
snaplinesConfig.color[0] = snaplinesJson["Color"][0].asFloat();
snaplinesConfig.color[1] = snaplinesJson["Color"][1].asFloat();
snaplinesConfig.color[2] = snaplinesJson["Color"][2].asFloat();
}
if (snaplinesJson.isMember("Rainbow")) snaplinesConfig.rainbow = snaplinesJson["Rainbow"].asBool();
if (snaplinesJson.isMember("Rainbow speed")) snaplinesConfig.rainbowSpeed = snaplinesJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Eye traces")) {
const auto& eyeTracesJson = espJson["Eye traces"];
auto& eyeTracesConfig = espConfig.eyeTraces;
if (eyeTracesJson.isMember("Enabled")) eyeTracesConfig.enabled = eyeTracesJson["Enabled"].asBool();
if (eyeTracesJson.isMember("Color")) {
eyeTracesConfig.color[0] = eyeTracesJson["Color"][0].asFloat();
eyeTracesConfig.color[1] = eyeTracesJson["Color"][1].asFloat();
eyeTracesConfig.color[2] = eyeTracesJson["Color"][2].asFloat();
}
if (eyeTracesJson.isMember("Rainbow")) eyeTracesConfig.rainbow = eyeTracesJson["Rainbow"].asBool();
if (eyeTracesJson.isMember("Rainbow speed")) eyeTracesConfig.rainbowSpeed = eyeTracesJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Box")) {
const auto& boxJson = espJson["Box"];
auto& boxConfig = espConfig.box;
if (boxJson.isMember("Enabled")) boxConfig.enabled = boxJson["Enabled"].asBool();
if (boxJson.isMember("Color")) {
boxConfig.color[0] = boxJson["Color"][0].asFloat();
boxConfig.color[1] = boxJson["Color"][1].asFloat();
boxConfig.color[2] = boxJson["Color"][2].asFloat();
}
if (boxJson.isMember("Rainbow")) boxConfig.rainbow = boxJson["Rainbow"].asBool();
if (boxJson.isMember("Rainbow speed")) boxConfig.rainbowSpeed = boxJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Box type")) espConfig.boxType = espJson["Box type"].asInt();
if (espJson.isMember("Name")) {
const auto& nameJson = espJson["Name"];
auto& nameConfig = espConfig.name;
if (nameJson.isMember("Enabled")) nameConfig.enabled = nameJson["Enabled"].asBool();
if (nameJson.isMember("Color")) {
nameConfig.color[0] = nameJson["Color"][0].asFloat();
nameConfig.color[1] = nameJson["Color"][1].asFloat();
nameConfig.color[2] = nameJson["Color"][2].asFloat();
}
if (nameJson.isMember("Rainbow")) nameConfig.rainbow = nameJson["Rainbow"].asBool();
if (nameJson.isMember("Rainbow speed")) nameConfig.rainbowSpeed = nameJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Health")) {
const auto& healthJson = espJson["Health"];
auto& healthConfig = espConfig.health;
if (healthJson.isMember("Enabled")) healthConfig.enabled = healthJson["Enabled"].asBool();
if (healthJson.isMember("Color")) {
healthConfig.color[0] = healthJson["Color"][0].asFloat();
healthConfig.color[1] = healthJson["Color"][1].asFloat();
healthConfig.color[2] = healthJson["Color"][2].asFloat();
}
if (healthJson.isMember("Rainbow")) healthConfig.rainbow = healthJson["Rainbow"].asBool();
if (healthJson.isMember("Rainbow speed")) healthConfig.rainbowSpeed = healthJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Health bar")) {
const auto& healthBarJson = espJson["Health bar"];
auto& healthBarConfig = espConfig.healthBar;
if (healthBarJson.isMember("Enabled")) healthBarConfig.enabled = healthBarJson["Enabled"].asBool();
if (healthBarJson.isMember("Color")) {
healthBarConfig.color[0] = healthBarJson["Color"][0].asFloat();
healthBarConfig.color[1] = healthBarJson["Color"][1].asFloat();
healthBarConfig.color[2] = healthBarJson["Color"][2].asFloat();
}
if (healthBarJson.isMember("Rainbow")) healthBarConfig.rainbow = healthBarJson["Rainbow"].asBool();
if (healthBarJson.isMember("Rainbow speed")) healthBarConfig.rainbowSpeed = healthBarJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Armor")) {
const auto& armorJson = espJson["Armor"];
auto& armorConfig = espConfig.armor;
if (armorJson.isMember("Enabled")) armorConfig.enabled = armorJson["Enabled"].asBool();
if (armorJson.isMember("Color")) {
armorConfig.color[0] = armorJson["Color"][0].asFloat();
armorConfig.color[1] = armorJson["Color"][1].asFloat();
armorConfig.color[2] = armorJson["Color"][2].asFloat();
}
if (armorJson.isMember("Rainbow")) armorConfig.rainbow = armorJson["Rainbow"].asBool();
if (armorJson.isMember("Rainbow speed")) armorConfig.rainbowSpeed = armorJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Armor bar")) {
const auto& armorBarJson = espJson["Armor bar"];
auto& armorBarConfig = espConfig.armorBar;
if (armorBarJson.isMember("Enabled")) armorBarConfig.enabled = armorBarJson["Enabled"].asBool();
if (armorBarJson.isMember("Color")) {
armorBarConfig.color[0] = armorBarJson["Color"][0].asFloat();
armorBarConfig.color[1] = armorBarJson["Color"][1].asFloat();
armorBarConfig.color[2] = armorBarJson["Color"][2].asFloat();
}
if (armorBarJson.isMember("Rainbow")) armorBarConfig.rainbow = armorBarJson["Rainbow"].asBool();
if (armorBarJson.isMember("Rainbow speed")) armorBarConfig.rainbowSpeed = armorBarJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Money")) {
const auto& moneyJson = espJson["Money"];
auto& moneyConfig = espConfig.money;
if (moneyJson.isMember("Enabled")) moneyConfig.enabled = moneyJson["Enabled"].asBool();
if (moneyJson.isMember("Color")) {
moneyConfig.color[0] = moneyJson["Color"][0].asFloat();
moneyConfig.color[1] = moneyJson["Color"][1].asFloat();
moneyConfig.color[2] = moneyJson["Color"][2].asFloat();
}
if (moneyJson.isMember("Rainbow")) moneyConfig.rainbow = moneyJson["Rainbow"].asBool();
if (moneyJson.isMember("Rainbow speed")) moneyConfig.rainbowSpeed = moneyJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Head dot")) {
const auto& headDotJson = espJson["Head dot"];
auto& headDotConfig = espConfig.headDot;
if (headDotJson.isMember("Enabled")) headDotConfig.enabled = headDotJson["Enabled"].asBool();
if (headDotJson.isMember("Color")) {
headDotConfig.color[0] = headDotJson["Color"][0].asFloat();
headDotConfig.color[1] = headDotJson["Color"][1].asFloat();
headDotConfig.color[2] = headDotJson["Color"][2].asFloat();
}
if (headDotJson.isMember("Rainbow")) headDotConfig.rainbow = headDotJson["Rainbow"].asBool();
if (headDotJson.isMember("Rainbow speed")) headDotConfig.rainbowSpeed = headDotJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Active weapon")) {
const auto& activeWeaponJson = espJson["Active weapon"];
auto& activeWeaponConfig = espConfig.activeWeapon;
if (activeWeaponJson.isMember("Enabled")) activeWeaponConfig.enabled = activeWeaponJson["Enabled"].asBool();
if (activeWeaponJson.isMember("Color")) {
activeWeaponConfig.color[0] = activeWeaponJson["Color"][0].asFloat();
activeWeaponConfig.color[1] = activeWeaponJson["Color"][1].asFloat();
activeWeaponConfig.color[2] = activeWeaponJson["Color"][2].asFloat();
}
if (activeWeaponJson.isMember("Rainbow")) activeWeaponConfig.rainbow = activeWeaponJson["Rainbow"].asBool();
if (activeWeaponJson.isMember("Rainbow speed")) activeWeaponConfig.rainbowSpeed = activeWeaponJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Outline")) {
const auto& outlineJson = espJson["Outline"];
auto& outlineConfig = espConfig.outline;
if (outlineJson.isMember("Enabled")) outlineConfig.enabled = outlineJson["Enabled"].asBool();
if (outlineJson.isMember("Color")) {
outlineConfig.color[0] = outlineJson["Color"][0].asFloat();
outlineConfig.color[1] = outlineJson["Color"][1].asFloat();
outlineConfig.color[2] = outlineJson["Color"][2].asFloat();
}
if (outlineJson.isMember("Rainbow")) outlineConfig.rainbow = outlineJson["Rainbow"].asBool();
if (outlineJson.isMember("Rainbow speed")) outlineConfig.rainbowSpeed = outlineJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Distance")) {
const auto& distanceJson = espJson["Distance"];
auto& distanceConfig = espConfig.distance;
if (distanceJson.isMember("Enabled")) distanceConfig.enabled = distanceJson["Enabled"].asBool();
if (distanceJson.isMember("Color")) {
distanceConfig.color[0] = distanceJson["Color"][0].asFloat();
distanceConfig.color[1] = distanceJson["Color"][1].asFloat();
distanceConfig.color[2] = distanceJson["Color"][2].asFloat();
}
if (distanceJson.isMember("Rainbow")) distanceConfig.rainbow = distanceJson["Rainbow"].asBool();
if (distanceJson.isMember("Rainbow speed")) distanceConfig.rainbowSpeed = distanceJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Dead ESP")) espConfig.deadesp = espJson["Dead ESP"].asBool();
if (espJson.isMember("Max distance")) espConfig.maxDistance = espJson["Max distance"].asFloat();
}
{
const auto& espJson = json["Esp"]["Weapons"];
auto& espConfig = esp.weapon;
if (espJson.isMember("Enabled")) espConfig.enabled = espJson["Enabled"].asBool();
if (espJson.isMember("Font")) espConfig.font = espJson["Font"].asInt();
if (espJson.isMember("Snaplines")) {
const auto& snaplinesJson = espJson["Snaplines"];
auto& snaplinesConfig = espConfig.snaplines;
if (snaplinesJson.isMember("Enabled")) snaplinesConfig.enabled = snaplinesJson["Enabled"].asBool();
if (snaplinesJson.isMember("Color")) {
snaplinesConfig.color[0] = snaplinesJson["Color"][0].asFloat();
snaplinesConfig.color[1] = snaplinesJson["Color"][1].asFloat();
snaplinesConfig.color[2] = snaplinesJson["Color"][2].asFloat();
}
if (snaplinesJson.isMember("Rainbow")) snaplinesConfig.rainbow = snaplinesJson["Rainbow"].asBool();
if (snaplinesJson.isMember("Rainbow speed")) snaplinesConfig.rainbowSpeed = snaplinesJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Box")) {
const auto& boxJson = espJson["Box"];
auto& boxConfig = espConfig.box;
if (boxJson.isMember("Enabled")) boxConfig.enabled = boxJson["Enabled"].asBool();
if (boxJson.isMember("Color")) {
boxConfig.color[0] = boxJson["Color"][0].asFloat();
boxConfig.color[1] = boxJson["Color"][1].asFloat();
boxConfig.color[2] = boxJson["Color"][2].asFloat();
}
if (boxJson.isMember("Rainbow")) boxConfig.rainbow = boxJson["Rainbow"].asBool();
if (boxJson.isMember("Rainbow speed")) boxConfig.rainbowSpeed = boxJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Box type")) espConfig.boxType = espJson["Box type"].asInt();
if (espJson.isMember("Outline")) {
const auto& outlineJson = espJson["Outline"];
auto& outlineConfig = espConfig.outline;
if (outlineJson.isMember("Enabled")) outlineConfig.enabled = outlineJson["Enabled"].asBool();
if (outlineJson.isMember("Color")) {
outlineConfig.color[0] = outlineJson["Color"][0].asFloat();
outlineConfig.color[1] = outlineJson["Color"][1].asFloat();
outlineConfig.color[2] = outlineJson["Color"][2].asFloat();
}
if (outlineJson.isMember("Rainbow")) outlineConfig.rainbow = outlineJson["Rainbow"].asBool();
if (outlineJson.isMember("Rainbow speed")) outlineConfig.rainbowSpeed = outlineJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Name")) {
const auto& nameJson = espJson["Name"];
auto& nameConfig = espConfig.name;
if (nameJson.isMember("Enabled")) nameConfig.enabled = nameJson["Enabled"].asBool();
if (nameJson.isMember("Color")) {
nameConfig.color[0] = nameJson["Color"][0].asFloat();
nameConfig.color[1] = nameJson["Color"][1].asFloat();
nameConfig.color[2] = nameJson["Color"][2].asFloat();
}
if (nameJson.isMember("Rainbow")) nameConfig.rainbow = nameJson["Rainbow"].asBool();
if (nameJson.isMember("Rainbow speed")) nameConfig.rainbowSpeed = nameJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Distance")) {
const auto& distanceJson = espJson["Distance"];
auto& distanceConfig = espConfig.distance;
if (distanceJson.isMember("Enabled")) distanceConfig.enabled = distanceJson["Enabled"].asBool();
if (distanceJson.isMember("Color")) {
distanceConfig.color[0] = distanceJson["Color"][0].asFloat();
distanceConfig.color[1] = distanceJson["Color"][1].asFloat();
distanceConfig.color[2] = distanceJson["Color"][2].asFloat();
}
if (distanceJson.isMember("Rainbow")) distanceConfig.rainbow = distanceJson["Rainbow"].asBool();
if (distanceJson.isMember("Rainbow speed")) distanceConfig.rainbowSpeed = distanceJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Max distance")) espConfig.maxDistance = espJson["Max distance"].asFloat();
}
for (size_t i = 0; i < esp.dangerZone.size(); i++) {
const auto& espJson = json["Esp"]["Danger Zone"][i];
auto& espConfig = esp.dangerZone[i];
if (espJson.isMember("Enabled")) espConfig.enabled = espJson["Enabled"].asBool();
if (espJson.isMember("Font")) espConfig.font = espJson["Font"].asInt();
if (espJson.isMember("Snaplines")) {
const auto& snaplinesJson = espJson["Snaplines"];
auto& snaplinesConfig = espConfig.snaplines;
if (snaplinesJson.isMember("Enabled")) snaplinesConfig.enabled = snaplinesJson["Enabled"].asBool();
if (snaplinesJson.isMember("Color")) {
snaplinesConfig.color[0] = snaplinesJson["Color"][0].asFloat();
snaplinesConfig.color[1] = snaplinesJson["Color"][1].asFloat();
snaplinesConfig.color[2] = snaplinesJson["Color"][2].asFloat();
}
if (snaplinesJson.isMember("Rainbow")) snaplinesConfig.rainbow = snaplinesJson["Rainbow"].asBool();
if (snaplinesJson.isMember("Rainbow speed")) snaplinesConfig.rainbowSpeed = snaplinesJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Box")) {
const auto& boxJson = espJson["Box"];
auto& boxConfig = espConfig.box;
if (boxJson.isMember("Enabled")) boxConfig.enabled = boxJson["Enabled"].asBool();
if (boxJson.isMember("Color")) {
boxConfig.color[0] = boxJson["Color"][0].asFloat();
boxConfig.color[1] = boxJson["Color"][1].asFloat();
boxConfig.color[2] = boxJson["Color"][2].asFloat();
}
if (boxJson.isMember("Rainbow")) boxConfig.rainbow = boxJson["Rainbow"].asBool();
if (boxJson.isMember("Rainbow speed")) boxConfig.rainbowSpeed = boxJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Box type")) espConfig.boxType = espJson["Box type"].asInt();
if (espJson.isMember("Outline")) {
const auto& outlineJson = espJson["Outline"];
auto& outlineConfig = espConfig.outline;
if (outlineJson.isMember("Enabled")) outlineConfig.enabled = outlineJson["Enabled"].asBool();
if (outlineJson.isMember("Color")) {
outlineConfig.color[0] = outlineJson["Color"][0].asFloat();
outlineConfig.color[1] = outlineJson["Color"][1].asFloat();
outlineConfig.color[2] = outlineJson["Color"][2].asFloat();
}
if (outlineJson.isMember("Rainbow")) outlineConfig.rainbow = outlineJson["Rainbow"].asBool();
if (outlineJson.isMember("Rainbow speed")) outlineConfig.rainbowSpeed = outlineJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Name")) {
const auto& nameJson = espJson["Name"];
auto& nameConfig = espConfig.name;
if (nameJson.isMember("Enabled")) nameConfig.enabled = nameJson["Enabled"].asBool();
if (nameJson.isMember("Color")) {
nameConfig.color[0] = nameJson["Color"][0].asFloat();
nameConfig.color[1] = nameJson["Color"][1].asFloat();
nameConfig.color[2] = nameJson["Color"][2].asFloat();
}
if (nameJson.isMember("Rainbow")) nameConfig.rainbow = nameJson["Rainbow"].asBool();
if (nameJson.isMember("Rainbow speed")) nameConfig.rainbowSpeed = nameJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Distance")) {
const auto& distanceJson = espJson["Distance"];
auto& distanceConfig = espConfig.distance;
if (distanceJson.isMember("Enabled")) distanceConfig.enabled = distanceJson["Enabled"].asBool();
if (distanceJson.isMember("Color")) {
distanceConfig.color[0] = distanceJson["Color"][0].asFloat();
distanceConfig.color[1] = distanceJson["Color"][1].asFloat();
distanceConfig.color[2] = distanceJson["Color"][2].asFloat();
}
if (distanceJson.isMember("Rainbow")) distanceConfig.rainbow = distanceJson["Rainbow"].asBool();
if (distanceJson.isMember("Rainbow speed")) distanceConfig.rainbowSpeed = distanceJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Max distance")) espConfig.maxDistance = espJson["Max distance"].asFloat();
}
for (size_t i = 0; i < esp.projectiles.size(); i++) {
const auto& espJson = json["Esp"]["Projectiles"][i];
auto& espConfig = esp.projectiles[i];
if (espJson.isMember("Enabled")) espConfig.enabled = espJson["Enabled"].asBool();
if (espJson.isMember("Font")) espConfig.font = espJson["Font"].asInt();
if (espJson.isMember("Snaplines")) {
const auto& snaplinesJson = espJson["Snaplines"];
auto& snaplinesConfig = espConfig.snaplines;
if (snaplinesJson.isMember("Enabled")) snaplinesConfig.enabled = snaplinesJson["Enabled"].asBool();
if (snaplinesJson.isMember("Color")) {
snaplinesConfig.color[0] = snaplinesJson["Color"][0].asFloat();
snaplinesConfig.color[1] = snaplinesJson["Color"][1].asFloat();
snaplinesConfig.color[2] = snaplinesJson["Color"][2].asFloat();
}
if (snaplinesJson.isMember("Rainbow")) snaplinesConfig.rainbow = snaplinesJson["Rainbow"].asBool();
if (snaplinesJson.isMember("Rainbow speed")) snaplinesConfig.rainbowSpeed = snaplinesJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Box")) {
const auto& boxJson = espJson["Box"];
auto& boxConfig = espConfig.box;
if (boxJson.isMember("Enabled")) boxConfig.enabled = boxJson["Enabled"].asBool();
if (boxJson.isMember("Color")) {
boxConfig.color[0] = boxJson["Color"][0].asFloat();
boxConfig.color[1] = boxJson["Color"][1].asFloat();
boxConfig.color[2] = boxJson["Color"][2].asFloat();
}
if (boxJson.isMember("Rainbow")) boxConfig.rainbow = boxJson["Rainbow"].asBool();
if (boxJson.isMember("Rainbow speed")) boxConfig.rainbowSpeed = boxJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Box type")) espConfig.boxType = espJson["Box type"].asInt();
if (espJson.isMember("Outline")) {
const auto& outlineJson = espJson["Outline"];
auto& outlineConfig = espConfig.outline;
if (outlineJson.isMember("Enabled")) outlineConfig.enabled = outlineJson["Enabled"].asBool();
if (outlineJson.isMember("Color")) {
outlineConfig.color[0] = outlineJson["Color"][0].asFloat();
outlineConfig.color[1] = outlineJson["Color"][1].asFloat();
outlineConfig.color[2] = outlineJson["Color"][2].asFloat();
}
if (outlineJson.isMember("Rainbow")) outlineConfig.rainbow = outlineJson["Rainbow"].asBool();
if (outlineJson.isMember("Rainbow speed")) outlineConfig.rainbowSpeed = outlineJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Name")) {
const auto& nameJson = espJson["Name"];
auto& nameConfig = espConfig.name;
if (nameJson.isMember("Enabled")) nameConfig.enabled = nameJson["Enabled"].asBool();
if (nameJson.isMember("Color")) {
nameConfig.color[0] = nameJson["Color"][0].asFloat();
nameConfig.color[1] = nameJson["Color"][1].asFloat();
nameConfig.color[2] = nameJson["Color"][2].asFloat();
}
if (nameJson.isMember("Rainbow")) nameConfig.rainbow = nameJson["Rainbow"].asBool();
if (nameJson.isMember("Rainbow speed")) nameConfig.rainbowSpeed = nameJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Distance")) {
const auto& distanceJson = espJson["Distance"];
auto& distanceConfig = espConfig.distance;
if (distanceJson.isMember("Enabled")) distanceConfig.enabled = distanceJson["Enabled"].asBool();
if (distanceJson.isMember("Color")) {
distanceConfig.color[0] = distanceJson["Color"][0].asFloat();
distanceConfig.color[1] = distanceJson["Color"][1].asFloat();
distanceConfig.color[2] = distanceJson["Color"][2].asFloat();
}
if (distanceJson.isMember("Rainbow")) distanceConfig.rainbow = distanceJson["Rainbow"].asBool();
if (distanceJson.isMember("Rainbow speed")) distanceConfig.rainbowSpeed = distanceJson["Rainbow speed"].asFloat();
}
if (espJson.isMember("Max distance")) espConfig.maxDistance = espJson["Max distance"].asFloat();
}
{
const auto& visualsJson = json["visuals"];
if (visualsJson.isMember("disablePostProcessing")) visuals.disablePostProcessing = visualsJson["disablePostProcessing"].asBool();
if (visualsJson.isMember("inverseRagdollGravity")) visuals.inverseRagdollGravity = visualsJson["inverseRagdollGravity"].asBool();
if (visualsJson.isMember("noFog")) visuals.noFog = visualsJson["noFog"].asBool();
if (visualsJson.isMember("no3dSky")) visuals.no3dSky = visualsJson["no3dSky"].asBool();
if (visualsJson.isMember("No aim punch")) visuals.noAimPunch = visualsJson["No aim punch"].asBool();
if (visualsJson.isMember("No view punch")) visuals.noViewPunch = visualsJson["No view punch"].asBool();
if (visualsJson.isMember("noHands")) visuals.noHands = visualsJson["noHands"].asBool();
if (visualsJson.isMember("noSleeves")) visuals.noSleeves = visualsJson["noSleeves"].asBool();
if (visualsJson.isMember("noWeapons")) visuals.noWeapons = visualsJson["noWeapons"].asBool();
if (visualsJson.isMember("noSmoke")) visuals.noSmoke = visualsJson["noSmoke"].asBool();
if (visualsJson.isMember("noBlur")) visuals.noBlur = visualsJson["noBlur"].asBool();
if (visualsJson.isMember("noScopeOverlay")) visuals.noScopeOverlay = visualsJson["noScopeOverlay"].asBool();
if (visualsJson.isMember("noGrass")) visuals.noGrass = visualsJson["noGrass"].asBool();
if (visualsJson.isMember("noShadows")) visuals.noShadows = visualsJson["noShadows"].asBool();
if (visualsJson.isMember("wireframeSmoke")) visuals.wireframeSmoke = visualsJson["wireframeSmoke"].asBool();
if (visualsJson.isMember("Zoom")) visuals.zoom = visualsJson["Zoom"].asBool();
if (visualsJson.isMember("Zoom key")) visuals.zoomKey = visualsJson["Zoom key"].asInt();
if (visualsJson.isMember("thirdperson")) visuals.thirdperson = visualsJson["thirdperson"].asBool();
if (visualsJson.isMember("thirdpersonKey")) visuals.thirdpersonKey = visualsJson["thirdpersonKey"].asInt();
if (visualsJson.isMember("thirdpersonDistance")) visuals.thirdpersonDistance = visualsJson["thirdpersonDistance"].asInt();
if (visualsJson.isMember("viewmodelFov")) visuals.viewmodelFov = visualsJson["viewmodelFov"].asInt();
if (visualsJson.isMember("Fov")) visuals.fov = visualsJson["Fov"].asInt();
if (visualsJson.isMember("farZ")) visuals.farZ = visualsJson["farZ"].asInt();
if (visualsJson.isMember("flashReduction")) visuals.flashReduction = visualsJson["flashReduction"].asInt();
if (visualsJson.isMember("brightness")) visuals.brightness = visualsJson["brightness"].asFloat();
if (visualsJson.isMember("skybox")) visuals.skybox = visualsJson["skybox"].asInt();
if (visualsJson.isMember("World")) {
const auto& worldJson = visualsJson["World"];
if (worldJson.isMember("Enabled")) visuals.world.enabled = worldJson["Enabled"].asBool();
if (worldJson.isMember("Color")) {
visuals.world.color[0] = worldJson["Color"][0].asFloat();
visuals.world.color[1] = worldJson["Color"][1].asFloat();
visuals.world.color[2] = worldJson["Color"][2].asFloat();
}
if (worldJson.isMember("Rainbow")) visuals.world.rainbow = worldJson["Rainbow"].asBool();
if (worldJson.isMember("Rainbow speed")) visuals.world.rainbowSpeed = worldJson["Rainbow speed"].asFloat();
}
if (visualsJson.isMember("Sky")) {
const auto& skyJson = visualsJson["Sky"];
if (skyJson.isMember("Enabled")) visuals.sky.enabled = skyJson["Enabled"].asBool();
if (skyJson.isMember("Color")) {
visuals.sky.color[0] = skyJson["Color"][0].asFloat();
visuals.sky.color[1] = skyJson["Color"][1].asFloat();
visuals.sky.color[2] = skyJson["Color"][2].asFloat();
}
if (skyJson.isMember("Rainbow")) visuals.sky.rainbow = skyJson["Rainbow"].asBool();
if (skyJson.isMember("Rainbow speed")) visuals.sky.rainbowSpeed = skyJson["Rainbow speed"].asFloat();
}
if (visualsJson.isMember("Deagle spinner")) visuals.deagleSpinner = visualsJson["Deagle spinner"].asBool();
if (visualsJson.isMember("Screen effect")) visuals.screenEffect = visualsJson["Screen effect"].asInt();
if (visualsJson.isMember("Hit effect")) visuals.hitEffect = visualsJson["Hit effect"].asInt();
if (visualsJson.isMember("Hit effect time")) visuals.hitEffectTime = visualsJson["Hit effect time"].asFloat();
if (visualsJson.isMember("Hit marker")) visuals.hitMarker = visualsJson["Hit marker"].asInt();
if (visualsJson.isMember("Hit marker time")) visuals.hitMarkerTime = visualsJson["Hit marker time"].asFloat();
if (visualsJson.isMember("Playermodel T")) visuals.playerModelT = visualsJson["Playermodel T"].asInt();
if (visualsJson.isMember("Playermodel CT")) visuals.playerModelCT = visualsJson["Playermodel CT"].asInt();
if (visualsJson.isMember("Color correction")) {
const auto& cc = visualsJson["Color correction"];
if (cc.isMember("Enabled")) visuals.colorCorrection.enabled = cc["Enabled"].asBool();
if (cc.isMember("Blue")) visuals.colorCorrection.blue = cc["Blue"].asFloat();
if (cc.isMember("Red")) visuals.colorCorrection.red = cc["Red"].asFloat();
if (cc.isMember("Mono")) visuals.colorCorrection.mono = cc["Mono"].asFloat();
if (cc.isMember("Saturation")) visuals.colorCorrection.saturation = cc["Saturation"].asFloat();
if (cc.isMember("Ghost")) visuals.colorCorrection.ghost = cc["Ghost"].asFloat();
if (cc.isMember("Green")) visuals.colorCorrection.green = cc["Green"].asFloat();
if (cc.isMember("Yellow")) visuals.colorCorrection.yellow = cc["Yellow"].asFloat();
}
}
for (size_t i = 0; i < skinChanger.size(); ++i) {
const auto& skinChangerJson = json["skinChanger"][i];
auto& skinChangerConfig = skinChanger[i];
if (skinChangerJson.isMember("Enabled")) skinChangerConfig.enabled = skinChangerJson["Enabled"].asBool();
if (skinChangerJson.isMember("definition_vector_index")) skinChangerConfig.definition_vector_index = skinChangerJson["definition_vector_index"].asInt();
if (skinChangerJson.isMember("definition_index")) skinChangerConfig.definition_index = skinChangerJson["definition_index"].asInt();
if (skinChangerJson.isMember("entity_quality_vector_index")) skinChangerConfig.entity_quality_vector_index = skinChangerJson["entity_quality_vector_index"].asInt();
if (skinChangerJson.isMember("entity_quality_index")) skinChangerConfig.entity_quality_index = skinChangerJson["entity_quality_index"].asInt();
if (skinChangerJson.isMember("paint_kit_vector_index")) skinChangerConfig.paint_kit_vector_index = skinChangerJson["paint_kit_vector_index"].asInt();
if (skinChangerJson.isMember("paint_kit_index")) skinChangerConfig.paint_kit_index = skinChangerJson["paint_kit_index"].asInt();
if (skinChangerJson.isMember("definition_override_vector_index")) skinChangerConfig.definition_override_vector_index = skinChangerJson["definition_override_vector_index"].asInt();
if (skinChangerJson.isMember("definition_override_index")) skinChangerConfig.definition_override_index = skinChangerJson["definition_override_index"].asInt();
if (skinChangerJson.isMember("seed")) skinChangerConfig.seed = skinChangerJson["seed"].asInt();
if (skinChangerJson.isMember("stat_trak")) skinChangerConfig.stat_trak = skinChangerJson["stat_trak"].asInt();
if (skinChangerJson.isMember("wear")) skinChangerConfig.wear = skinChangerJson["wear"].asFloat();
if (skinChangerJson.isMember("custom_name")) strcpy_s(skinChangerConfig.custom_name, sizeof(skinChangerConfig.custom_name), skinChangerJson["custom_name"].asCString());
if (skinChangerJson.isMember("stickers")) {
for (size_t j = 0; j < skinChangerConfig.stickers.size(); j++) {
const auto& stickerJson = skinChangerJson["stickers"][j];
auto& stickerConfig = skinChangerConfig.stickers[j];
if (stickerJson.isMember("kit")) stickerConfig.kit = stickerJson["kit"].asInt();
if (stickerJson.isMember("kit_vector_index")) stickerConfig.kit_vector_index = stickerJson["kit_vector_index"].asInt();
if (stickerJson.isMember("wear")) stickerConfig.wear = stickerJson["wear"].asFloat();
if (stickerJson.isMember("scale")) stickerConfig.scale = stickerJson["scale"].asFloat();
if (stickerJson.isMember("rotation")) stickerConfig.rotation = stickerJson["rotation"].asFloat();
}
}
}
{
const auto& soundJson = json["Sound"];
if (soundJson.isMember("Chicken volume")) sound.chickenVolume = soundJson["Chicken volume"].asInt();
if (soundJson.isMember("Players")) {
for (size_t i = 0; i < sound.players.size(); ++i) {
const auto& playerJson = soundJson["Players"][i];
auto& playerConfig = sound.players[i];
if (playerJson.isMember("Master volume")) playerConfig.masterVolume = playerJson["Master volume"].asInt();
if (playerJson.isMember("Headshot volume")) playerConfig.headshotVolume = playerJson["Headshot volume"].asInt();
if (playerJson.isMember("Weapon volume")) playerConfig.weaponVolume = playerJson["Weapon volume"].asInt();
if (playerJson.isMember("Footstep volume")) playerConfig.footstepVolume = playerJson["Footstep volume"].asInt();
}
}
}
{
const auto& styleJson = json["Style"];
if (styleJson.isMember("Menu style")) style.menuStyle = styleJson["Menu style"].asInt();
if (styleJson.isMember("Menu colors")) style.menuColors = styleJson["Menu colors"].asInt();
if (styleJson.isMember("Colors")) {
const auto& colorsJson = styleJson["Colors"];
ImGuiStyle& style = ImGui::GetStyle();
for (int i = 0; i < ImGuiCol_COUNT; ++i) {
if (const char* name = ImGui::GetStyleColorName(i); colorsJson.isMember(name)) {
const auto& colorJson = styleJson["Colors"][name];
style.Colors[i].x = colorJson[0].asFloat();
style.Colors[i].y = colorJson[1].asFloat();
style.Colors[i].z = colorJson[2].asFloat();
style.Colors[i].w = colorJson[3].asFloat();
}
}
}
}
{
const auto& miscJson = json["Misc"];
if (miscJson.isMember("Menu key")) misc.menuKey = miscJson["Menu key"].asInt();
if (miscJson.isMember("Anti AFK kick")) misc.antiAfkKick = miscJson["Anti AFK kick"].asBool();
if (miscJson.isMember("Auto strafe")) misc.autoStrafe = miscJson["Auto strafe"].asBool();
if (miscJson.isMember("Bunny hop")) misc.bunnyHop = miscJson["Bunny hop"].asBool();
if (miscJson.isMember("Custom clan tag")) misc.customClanTag = miscJson["Custom clan tag"].asBool();
if (miscJson.isMember("Clock tag")) misc.clocktag = miscJson["Clock tag"].asBool();
if (miscJson.isMember("Clan tag")) misc.clanTag = miscJson["Clan tag"].asString();
if (miscJson.isMember("Animated clan tag")) misc.animatedClanTag = miscJson["Animated clan tag"].asBool();
if (miscJson.isMember("Fast duck")) misc.fastDuck = miscJson["Fast duck"].asBool();
if (miscJson.isMember("Moonwalk")) misc.moonwalk = miscJson["Moonwalk"].asBool();
if (miscJson.isMember("Edge Jump")) misc.edgejump = miscJson["Edge Jump"].asBool();
if (miscJson.isMember("Edge Jump Key")) misc.edgejumpkey = miscJson["Edge Jump Key"].asInt();
if (miscJson.isMember("Slowwalk")) misc.slowwalk = miscJson["Slowwalk"].asBool();
if (miscJson.isMember("Slowwalk key")) misc.slowwalkKey = miscJson["Slowwalk key"].asInt();
if (miscJson.isMember("Sniper crosshair")) misc.sniperCrosshair = miscJson["Sniper crosshair"].asBool();
if (miscJson.isMember("Recoil crosshair")) misc.recoilCrosshair = miscJson["Recoil crosshair"].asBool();
if (miscJson.isMember("Auto pistol")) misc.autoPistol = miscJson["Auto pistol"].asBool();
if (miscJson.isMember("Auto reload")) misc.autoReload = miscJson["Auto reload"].asBool();
if (miscJson.isMember("Auto accept")) misc.autoAccept = miscJson["Auto accept"].asBool();
if (miscJson.isMember("Radar hack")) misc.radarHack = miscJson["Radar hack"].asBool();
if (miscJson.isMember("Reveal ranks")) misc.revealRanks = miscJson["Reveal ranks"].asBool();
if (miscJson.isMember("Reveal money")) misc.revealMoney = miscJson["Reveal money"].asBool();
if (miscJson.isMember("Reveal suspect")) misc.revealSuspect = miscJson["Reveal suspect"].asBool();
if (const auto& spectatorList{ miscJson["Spectator list"] }; spectatorList.isObject()) {
if (const auto& enabled{ spectatorList["Enabled"] }; enabled.isBool())
misc.spectatorList.enabled = enabled.asBool();
if (const auto& color{ spectatorList["Color"] }; color.isArray()) {
misc.spectatorList.color[0] = color[0].asFloat();
misc.spectatorList.color[1] = color[1].asFloat();
misc.spectatorList.color[2] = color[2].asFloat();
}
if (const auto& rainbow{ spectatorList["Rainbow"] }; rainbow.isBool())
misc.spectatorList.rainbow = rainbow.asBool();
if (const auto& rainbowSpeed{ spectatorList["Rainbow speed"] }; rainbowSpeed.isDouble())
misc.spectatorList.rainbowSpeed = rainbowSpeed.asFloat();
}
if (const auto& watermark{ miscJson["Watermark"] }; watermark.isObject()) {
if (const auto& enabled{ watermark["Enabled"] }; enabled.isBool())
misc.watermark.enabled = enabled.asBool();
if (const auto& color{ watermark["Color"] }; color.isArray()) {
misc.watermark.color[0] = color[0].asFloat();
misc.watermark.color[1] = color[1].asFloat();
misc.watermark.color[2] = color[2].asFloat();
}
if (const auto& rainbow{ watermark["Rainbow"] }; rainbow.isBool())
misc.watermark.rainbow = rainbow.asBool();
if (const auto& rainbowSpeed{ watermark["Rainbow speed"] }; rainbowSpeed.isDouble())
misc.watermark.rainbowSpeed = rainbowSpeed.asFloat();
}
if (miscJson.isMember("Fix animation LOD")) misc.fixAnimationLOD = miscJson["Fix animation LOD"].asBool();
if (miscJson.isMember("Fix bone matrix")) misc.fixBoneMatrix = miscJson["Fix bone matrix"].asBool();
if (miscJson.isMember("Fix movement")) misc.fixMovement = miscJson["Fix movement"].asBool();
if (miscJson.isMember("Disable model occlusion")) misc.disableModelOcclusion = miscJson["Disable model occlusion"].asBool();
if (miscJson.isMember("Aspect Ratio")) misc.aspectratio = miscJson["Aspect Ratio"].asFloat();
if (miscJson.isMember("Kill message")) misc.killMessage = miscJson["Kill message"].asBool();
if (miscJson.isMember("Kill message string")) misc.killMessageString = miscJson["Kill message string"].asString();
if (miscJson.isMember("Name stealer")) misc.nameStealer = miscJson["Name stealer"].asBool();
if (miscJson.isMember("Disable HUD blur")) misc.disablePanoramablur = miscJson["Disable HUD blur"].asBool();
if (miscJson.isMember("Vote text")) misc.voteText = miscJson["Vote text"].asString();
if (miscJson.isMember("Ban color")) misc.banColor = miscJson["Ban color"].asInt();
if (miscJson.isMember("Ban text")) misc.banText = miscJson["Ban text"].asString();
if (miscJson.isMember("Fast plant")) misc.fastPlant = miscJson["Fast plant"].asBool();
if (miscJson.isMember("Draw FOV")) misc.drawFOV = miscJson["Draw FOV"].asBool();
if (const auto& bombTimer{ miscJson["Bomb timer"] }; bombTimer.isObject()) {
if (const auto& enabled{ bombTimer["Enabled"] }; enabled.isBool())
misc.bombTimer.enabled = enabled.asBool();
if (const auto& color{ bombTimer["Color"] }; color.isArray()) {
misc.bombTimer.color[0] = color[0].asFloat();
misc.bombTimer.color[1] = color[1].asFloat();
misc.bombTimer.color[2] = color[2].asFloat();
}
if (const auto& rainbow{ bombTimer["Rainbow"] }; rainbow.isBool())
misc.bombTimer.rainbow = rainbow.asBool();
if (const auto& rainbowSpeed{ bombTimer["Rainbow speed"] }; rainbowSpeed.isDouble())
misc.bombTimer.rainbowSpeed = rainbowSpeed.asFloat();
}
if (miscJson.isMember("Quick reload")) misc.quickReload = miscJson["Quick reload"].asBool();
if (miscJson.isMember("Prepare revolver")) misc.prepareRevolver = miscJson["Prepare revolver"].asBool();
if (miscJson.isMember("Prepare revolver key")) misc.prepareRevolverKey = miscJson["Prepare revolver key"].asInt();
if (miscJson.isMember("Hit sound")) misc.hitSound = miscJson["Hit sound"].asInt();
if (miscJson.isMember("Choked packets")) misc.chokedPackets = miscJson["Choked packets"].asInt();
if (miscJson.isMember("Choked packets key")) misc.chokedPacketsKey = miscJson["Choked packets key"].asInt();
if (miscJson.isMember("Fake Duck key")) misc.fakeDuckKey = miscJson["Fake Duck key"].asInt();
if (miscJson.isMember("Quick healthshot key")) misc.quickHealthshotKey = miscJson["Quick healthshot key"].asInt();
if (miscJson.isMember("Grenade predict")) misc.nadePredict = miscJson["Grenade predict"].asBool();
if (miscJson.isMember("Fix tablet signal")) misc.fixTabletSignal = miscJson["Fix tablet signal"].asBool();
if (miscJson.isMember("Max angle delta")) misc.maxAngleDelta = miscJson["Max angle delta"].asFloat();
if (miscJson.isMember("Fake prime")) misc.fakePrime = miscJson["Fake prime"].asBool();
}
{
const auto& reportbotJson = json["Reportbot"];
if (reportbotJson.isMember("Enabled")) reportbot.enabled = reportbotJson["Enabled"].asBool();
if (reportbotJson.isMember("Target")) reportbot.target = reportbotJson["Target"].asInt();
if (reportbotJson.isMember("Delay")) reportbot.delay = reportbotJson["Delay"].asInt();
if (reportbotJson.isMember("Abusive Communications")) reportbot.textAbuse = reportbotJson["Abusive Communications"].asBool();
if (reportbotJson.isMember("Griefing")) reportbot.griefing = reportbotJson["Griefing"].asBool();
if (reportbotJson.isMember("Wall Hacking")) reportbot.wallhack = reportbotJson["Wall Hacking"].asBool();
if (reportbotJson.isMember("Aim Hacking")) reportbot.aimbot = reportbotJson["Aim Hacking"].asBool();
if (reportbotJson.isMember("Other Hacking")) reportbot.other = reportbotJson["Other Hacking"].asBool();
}
}
void Config::save(size_t id) const noexcept
{
Json::Value json;
for (size_t i = 0; i < aimbot.size(); ++i) {
auto& aimbotJson = json["Aimbot"][i];
const auto& aimbotConfig = aimbot[i];
aimbotJson["Enabled"] = aimbotConfig.enabled;
aimbotJson["On key"] = aimbotConfig.onKey;
aimbotJson["Key"] = aimbotConfig.key;
aimbotJson["Key mode"] = aimbotConfig.keyMode;
aimbotJson["Aimlock"] = aimbotConfig.aimlock;
aimbotJson["Silent"] = aimbotConfig.silent;
aimbotJson["Friendly fire"] = aimbotConfig.friendlyFire;
aimbotJson["Visible only"] = aimbotConfig.visibleOnly;
aimbotJson["Scoped only"] = aimbotConfig.scopedOnly;
aimbotJson["Ignore flash"] = aimbotConfig.ignoreFlash;;
aimbotJson["Ignore smoke"] = aimbotConfig.ignoreSmoke;
aimbotJson["Auto shot"] = aimbotConfig.autoShot;
aimbotJson["Auto scope"] = aimbotConfig.autoScope;
aimbotJson["Recoil-based fov"] = aimbotConfig.recoilbasedFov;
aimbotJson["Fov"] = aimbotConfig.fov;
aimbotJson["Smooth"] = aimbotConfig.smooth;
aimbotJson["Bone"] = aimbotConfig.bone;
aimbotJson["Recoil control X"] = aimbotConfig.recoilControlX;
aimbotJson["Recoil control Y"] = aimbotConfig.recoilControlY;
aimbotJson["Standalone recoil control"] = aimbotConfig.standaloneRecoilControl;
aimbotJson["Min damage"] = aimbotConfig.minDamage;
aimbotJson["Hit chance"] = aimbotConfig.hitChance;
aimbotJson["Killshot"] = aimbotConfig.killshot;
aimbotJson["Between shots"] = aimbotConfig.betweenShots;
aimbotJson["Velocity extrapolation"] = aimbotConfig.velocityExtrapolation;
}
for (size_t i = 0; i < triggerbot.size(); ++i) {
auto& triggerbotJson = json["Triggerbot"][i];
const auto& triggerbotConfig = triggerbot[i];
triggerbotJson["Enabled"] = triggerbotConfig.enabled;
triggerbotJson["On key"] = triggerbotConfig.onKey;
triggerbotJson["Key"] = triggerbotConfig.key;
triggerbotJson["Friendly fire"] = triggerbotConfig.friendlyFire;
triggerbotJson["Scoped only"] = triggerbotConfig.scopedOnly;
triggerbotJson["Ignore flash"] = triggerbotConfig.ignoreFlash;
triggerbotJson["Ignore smoke"] = triggerbotConfig.ignoreSmoke;
triggerbotJson["Hitgroup"] = triggerbotConfig.hitgroup;
triggerbotJson["Shot delay"] = triggerbotConfig.shotDelay;
triggerbotJson["Min damage"] = triggerbotConfig.minDamage;
triggerbotJson["Killshot"] = triggerbotConfig.killshot;
}
{
auto& backtrackJson = json["Backtrack"];
backtrackJson["Enabled"] = backtrack.enabled;
backtrackJson["Ignore smoke"] = backtrack.ignoreSmoke;
backtrackJson["Recoil based fov"] = backtrack.recoilBasedFov;
backtrackJson["Time limit"] = backtrack.timeLimit;
}
{
auto& antiAimJson = json["Anti aim"];
antiAimJson["Enabled"] = antiAim.enabled;
antiAimJson["Pitch"] = antiAim.pitch;
antiAimJson["Pitch angle"] = antiAim.pitchAngle;
antiAimJson["Yaw"] = antiAim.yaw;
}
for (size_t i = 0; i < glow.size(); ++i) {
auto& glowJson = json["glow"][i];
const auto& glowConfig = glow[i];
glowJson["Enabled"] = glowConfig.enabled;
glowJson["healthBased"] = glowConfig.healthBased;
glowJson["thickness"] = glowConfig.thickness;
glowJson["alpha"] = glowConfig.alpha;
glowJson["style"] = glowConfig.style;
{
auto& colorJson = glowJson["Color"];
const auto& colorConfig = glowConfig.color;
colorJson["Color"][0] = colorConfig.color[0];
colorJson["Color"][1] = colorConfig.color[1];
colorJson["Color"][2] = colorConfig.color[2];
colorJson["Rainbow"] = colorConfig.rainbow;
colorJson["Rainbow speed"] = colorConfig.rainbowSpeed;
}
}
for (size_t i = 0; i < chams.size(); ++i) {
auto& chamsJson = json["Chams"][i];
const auto& chamsConfig = chams[i];
for (size_t j = 0; j < chams[0].materials.size(); j++) {
auto& materialsJson = chamsJson[j];
const auto& materialsConfig = chams[i].materials[j];
materialsJson["Enabled"] = materialsConfig.enabled;
materialsJson["Health based"] = materialsConfig.healthBased;
materialsJson["Blinking"] = materialsConfig.blinking;
materialsJson["Material"] = materialsConfig.material;
materialsJson["Wireframe"] = materialsConfig.wireframe;
{
auto& colorJson = materialsJson["Color"];
const auto& colorConfig = materialsConfig.color;
colorJson["Color"][0] = colorConfig.color[0];
colorJson["Color"][1] = colorConfig.color[1];
colorJson["Color"][2] = colorConfig.color[2];
colorJson["Rainbow"] = colorConfig.rainbow;
colorJson["Rainbow speed"] = colorConfig.rainbowSpeed;
}
materialsJson["Alpha"] = materialsConfig.alpha;
}
}
for (size_t i = 0; i < esp.players.size(); ++i) {
auto& espJson = json["Esp"]["Players"][i];
const auto& espConfig = esp.players[i];
espJson["Enabled"] = espConfig.enabled;
espJson["Font"] = espConfig.font;
{
auto& snaplinesJson = espJson["Snaplines"];
const auto& snaplinesConfig = espConfig.snaplines;
snaplinesJson["Enabled"] = snaplinesConfig.enabled;
snaplinesJson["Color"][0] = snaplinesConfig.color[0];
snaplinesJson["Color"][1] = snaplinesConfig.color[1];
snaplinesJson["Color"][2] = snaplinesConfig.color[2];
snaplinesJson["Rainbow"] = snaplinesConfig.rainbow;
snaplinesJson["Rainbow speed"] = snaplinesConfig.rainbowSpeed;
}
{
auto& eyeTracesJson = espJson["Eye traces"];
const auto& eyeTracesConfig = espConfig.eyeTraces;
eyeTracesJson["Enabled"] = eyeTracesConfig.enabled;
eyeTracesJson["Color"][0] = eyeTracesConfig.color[0];
eyeTracesJson["Color"][1] = eyeTracesConfig.color[1];
eyeTracesJson["Color"][2] = eyeTracesConfig.color[2];
eyeTracesJson["Rainbow"] = eyeTracesConfig.rainbow;
eyeTracesJson["Rainbow speed"] = eyeTracesConfig.rainbowSpeed;
}
{
auto& boxJson = espJson["Box"];
const auto& boxConfig = espConfig.box;
boxJson["Enabled"] = boxConfig.enabled;
boxJson["Color"][0] = boxConfig.color[0];
boxJson["Color"][1] = boxConfig.color[1];
boxJson["Color"][2] = boxConfig.color[2];
boxJson["Rainbow"] = boxConfig.rainbow;
boxJson["Rainbow speed"] = boxConfig.rainbowSpeed;
}
espJson["Box type"] = espConfig.boxType;
{
auto& nameJson = espJson["Name"];
const auto& nameConfig = espConfig.name;
nameJson["Enabled"] = nameConfig.enabled;
nameJson["Color"][0] = nameConfig.color[0];
nameJson["Color"][1] = nameConfig.color[1];
nameJson["Color"][2] = nameConfig.color[2];
nameJson["Rainbow"] = nameConfig.rainbow;
nameJson["Rainbow speed"] = nameConfig.rainbowSpeed;
}
{
auto& healthJson = espJson["Health"];
const auto& healthConfig = espConfig.health;
healthJson["Enabled"] = healthConfig.enabled;
healthJson["Color"][0] = healthConfig.color[0];
healthJson["Color"][1] = healthConfig.color[1];
healthJson["Color"][2] = healthConfig.color[2];
healthJson["Rainbow"] = healthConfig.rainbow;
healthJson["Rainbow speed"] = healthConfig.rainbowSpeed;
}
{
auto& healthBarJson = espJson["Health bar"];
const auto& healthBarConfig = espConfig.healthBar;
healthBarJson["Enabled"] = healthBarConfig.enabled;
healthBarJson["Color"][0] = healthBarConfig.color[0];
healthBarJson["Color"][1] = healthBarConfig.color[1];
healthBarJson["Color"][2] = healthBarConfig.color[2];
healthBarJson["Rainbow"] = healthBarConfig.rainbow;
healthBarJson["Rainbow speed"] = healthBarConfig.rainbowSpeed;
}
{
auto& armorJson = espJson["Armor"];
const auto& armorConfig = espConfig.armor;
armorJson["Enabled"] = armorConfig.enabled;
armorJson["Color"][0] = armorConfig.color[0];
armorJson["Color"][1] = armorConfig.color[1];
armorJson["Color"][2] = armorConfig.color[2];
armorJson["Rainbow"] = armorConfig.rainbow;
armorJson["Rainbow speed"] = armorConfig.rainbowSpeed;
}
{
auto& armorBarJson = espJson["Armor bar"];
const auto& armorBarConfig = espConfig.armorBar;
armorBarJson["Enabled"] = armorBarConfig.enabled;
armorBarJson["Color"][0] = armorBarConfig.color[0];
armorBarJson["Color"][1] = armorBarConfig.color[1];
armorBarJson["Color"][2] = armorBarConfig.color[2];
armorBarJson["Rainbow"] = armorBarConfig.rainbow;
armorBarJson["Rainbow speed"] = armorBarConfig.rainbowSpeed;
}
{
auto& moneyJson = espJson["Money"];
const auto& moneyConfig = espConfig.money;
moneyJson["Enabled"] = moneyConfig.enabled;
moneyJson["Color"][0] = moneyConfig.color[0];
moneyJson["Color"][1] = moneyConfig.color[1];
moneyJson["Color"][2] = moneyConfig.color[2];
moneyJson["Rainbow"] = moneyConfig.rainbow;
moneyJson["Rainbow speed"] = moneyConfig.rainbowSpeed;
}
{
auto& headDotJson = espJson["Head dot"];
const auto& headDotConfig = espConfig.headDot;
headDotJson["Enabled"] = headDotConfig.enabled;
headDotJson["Color"][0] = headDotConfig.color[0];
headDotJson["Color"][1] = headDotConfig.color[1];
headDotJson["Color"][2] = headDotConfig.color[2];
headDotJson["Rainbow"] = headDotConfig.rainbow;
headDotJson["Rainbow speed"] = headDotConfig.rainbowSpeed;
}
{
auto& activeWeaponJson = espJson["Active weapon"];
const auto& activeWeaponConfig = espConfig.activeWeapon;
activeWeaponJson["Enabled"] = activeWeaponConfig.enabled;
activeWeaponJson["Color"][0] = activeWeaponConfig.color[0];
activeWeaponJson["Color"][1] = activeWeaponConfig.color[1];
activeWeaponJson["Color"][2] = activeWeaponConfig.color[2];
activeWeaponJson["Rainbow"] = activeWeaponConfig.rainbow;
activeWeaponJson["Rainbow speed"] = activeWeaponConfig.rainbowSpeed;
}
{
auto& outlineJson = espJson["Outline"];
const auto& outlineConfig = espConfig.outline;
outlineJson["Enabled"] = outlineConfig.enabled;
outlineJson["Color"][0] = outlineConfig.color[0];
outlineJson["Color"][1] = outlineConfig.color[1];
outlineJson["Color"][2] = outlineConfig.color[2];
outlineJson["Rainbow"] = outlineConfig.rainbow;
outlineJson["Rainbow speed"] = outlineConfig.rainbowSpeed;
}
{
auto& distanceJson = espJson["Distance"];
const auto& distanceConfig = espConfig.distance;
distanceJson["Enabled"] = distanceConfig.enabled;
distanceJson["Color"][0] = distanceConfig.color[0];
distanceJson["Color"][1] = distanceConfig.color[1];
distanceJson["Color"][2] = distanceConfig.color[2];
distanceJson["Rainbow"] = distanceConfig.rainbow;
distanceJson["Rainbow speed"] = distanceConfig.rainbowSpeed;
}
espJson["Dead ESP"] = espConfig.deadesp;
espJson["Max distance"] = espConfig.maxDistance;
}
{
auto& espJson = json["Esp"]["Weapons"];
const auto& espConfig = esp.weapon;
espJson["Enabled"] = espConfig.enabled;
espJson["Font"] = espConfig.font;
{
auto& snaplinesJson = espJson["Snaplines"];
const auto& snaplinesConfig = espConfig.snaplines;
snaplinesJson["Enabled"] = snaplinesConfig.enabled;
snaplinesJson["Color"][0] = snaplinesConfig.color[0];
snaplinesJson["Color"][1] = snaplinesConfig.color[1];
snaplinesJson["Color"][2] = snaplinesConfig.color[2];
snaplinesJson["Rainbow"] = snaplinesConfig.rainbow;
snaplinesJson["Rainbow speed"] = snaplinesConfig.rainbowSpeed;
}
{
auto& boxJson = espJson["Box"];
const auto& boxConfig = espConfig.box;
boxJson["Enabled"] = boxConfig.enabled;
boxJson["Color"][0] = boxConfig.color[0];
boxJson["Color"][1] = boxConfig.color[1];
boxJson["Color"][2] = boxConfig.color[2];
boxJson["Rainbow"] = boxConfig.rainbow;
boxJson["Rainbow speed"] = boxConfig.rainbowSpeed;
}
espJson["Box type"] = espConfig.boxType;
{
auto& outlineJson = espJson["Outline"];
const auto& outlineConfig = espConfig.outline;
outlineJson["Enabled"] = outlineConfig.enabled;
outlineJson["Color"][0] = outlineConfig.color[0];
outlineJson["Color"][1] = outlineConfig.color[1];
outlineJson["Color"][2] = outlineConfig.color[2];
outlineJson["Rainbow"] = outlineConfig.rainbow;
outlineJson["Rainbow speed"] = outlineConfig.rainbowSpeed;
}
{
auto& nameJson = espJson["Name"];
const auto& nameConfig = espConfig.name;
nameJson["Enabled"] = nameConfig.enabled;
nameJson["Color"][0] = nameConfig.color[0];
nameJson["Color"][1] = nameConfig.color[1];
nameJson["Color"][2] = nameConfig.color[2];
nameJson["Rainbow"] = nameConfig.rainbow;
nameJson["Rainbow speed"] = nameConfig.rainbowSpeed;
}
{
auto& distanceJson = espJson["Distance"];
const auto& distanceConfig = espConfig.distance;
distanceJson["Enabled"] = distanceConfig.enabled;
distanceJson["Color"][0] = distanceConfig.color[0];
distanceJson["Color"][1] = distanceConfig.color[1];
distanceJson["Color"][2] = distanceConfig.color[2];
distanceJson["Rainbow"] = distanceConfig.rainbow;
distanceJson["Rainbow speed"] = distanceConfig.rainbowSpeed;
}
espJson["Max distance"] = espConfig.maxDistance;
}
for (size_t i = 0; i < esp.dangerZone.size(); i++) {
auto& espJson = json["Esp"]["Danger Zone"][i];
const auto& espConfig = esp.dangerZone[i];
espJson["Enabled"] = espConfig.enabled;
espJson["Font"] = espConfig.font;
{
auto& snaplinesJson = espJson["Snaplines"];
const auto& snaplinesConfig = espConfig.snaplines;
snaplinesJson["Enabled"] = snaplinesConfig.enabled;
snaplinesJson["Color"][0] = snaplinesConfig.color[0];
snaplinesJson["Color"][1] = snaplinesConfig.color[1];
snaplinesJson["Color"][2] = snaplinesConfig.color[2];
snaplinesJson["Rainbow"] = snaplinesConfig.rainbow;
snaplinesJson["Rainbow speed"] = snaplinesConfig.rainbowSpeed;
}
{
auto& boxJson = espJson["Box"];
const auto& boxConfig = espConfig.box;
boxJson["Enabled"] = boxConfig.enabled;
boxJson["Color"][0] = boxConfig.color[0];
boxJson["Color"][1] = boxConfig.color[1];
boxJson["Color"][2] = boxConfig.color[2];
boxJson["Rainbow"] = boxConfig.rainbow;
boxJson["Rainbow speed"] = boxConfig.rainbowSpeed;
}
espJson["Box type"] = espConfig.boxType;
{
auto& outlineJson = espJson["Outline"];
const auto& outlineConfig = espConfig.outline;
outlineJson["Enabled"] = outlineConfig.enabled;
outlineJson["Color"][0] = outlineConfig.color[0];
outlineJson["Color"][1] = outlineConfig.color[1];
outlineJson["Color"][2] = outlineConfig.color[2];
outlineJson["Rainbow"] = outlineConfig.rainbow;
outlineJson["Rainbow speed"] = outlineConfig.rainbowSpeed;
}
{
auto& nameJson = espJson["Name"];
const auto& nameConfig = espConfig.name;
nameJson["Enabled"] = nameConfig.enabled;
nameJson["Color"][0] = nameConfig.color[0];
nameJson["Color"][1] = nameConfig.color[1];
nameJson["Color"][2] = nameConfig.color[2];
nameJson["Rainbow"] = nameConfig.rainbow;
nameJson["Rainbow speed"] = nameConfig.rainbowSpeed;
}
{
auto& distanceJson = espJson["Distance"];
const auto& distanceConfig = espConfig.distance;
distanceJson["Enabled"] = distanceConfig.enabled;
distanceJson["Color"][0] = distanceConfig.color[0];
distanceJson["Color"][1] = distanceConfig.color[1];
distanceJson["Color"][2] = distanceConfig.color[2];
distanceJson["Rainbow"] = distanceConfig.rainbow;
distanceJson["Rainbow speed"] = distanceConfig.rainbowSpeed;
}
espJson["Max distance"] = espConfig.maxDistance;
}
for (size_t i = 0; i < esp.projectiles.size(); i++) {
auto& espJson = json["Esp"]["Projectiles"][i];
const auto& espConfig = esp.projectiles[i];
espJson["Enabled"] = espConfig.enabled;
espJson["Font"] = espConfig.font;
{
auto& snaplinesJson = espJson["Snaplines"];
const auto& snaplinesConfig = espConfig.snaplines;
snaplinesJson["Enabled"] = snaplinesConfig.enabled;
snaplinesJson["Color"][0] = snaplinesConfig.color[0];
snaplinesJson["Color"][1] = snaplinesConfig.color[1];
snaplinesJson["Color"][2] = snaplinesConfig.color[2];
snaplinesJson["Rainbow"] = snaplinesConfig.rainbow;
snaplinesJson["Rainbow speed"] = snaplinesConfig.rainbowSpeed;
}
{
auto& boxJson = espJson["Box"];
const auto& boxConfig = espConfig.box;
boxJson["Enabled"] = boxConfig.enabled;
boxJson["Color"][0] = boxConfig.color[0];
boxJson["Color"][1] = boxConfig.color[1];
boxJson["Color"][2] = boxConfig.color[2];
boxJson["Rainbow"] = boxConfig.rainbow;
boxJson["Rainbow speed"] = boxConfig.rainbowSpeed;
}
espJson["Box type"] = espConfig.boxType;
{
auto& outlineJson = espJson["Outline"];
const auto& outlineConfig = espConfig.outline;
outlineJson["Enabled"] = outlineConfig.enabled;
outlineJson["Color"][0] = outlineConfig.color[0];
outlineJson["Color"][1] = outlineConfig.color[1];
outlineJson["Color"][2] = outlineConfig.color[2];
outlineJson["Rainbow"] = outlineConfig.rainbow;
outlineJson["Rainbow speed"] = outlineConfig.rainbowSpeed;
}
{
auto& nameJson = espJson["Name"];
const auto& nameConfig = espConfig.name;
nameJson["Enabled"] = nameConfig.enabled;
nameJson["Color"][0] = nameConfig.color[0];
nameJson["Color"][1] = nameConfig.color[1];
nameJson["Color"][2] = nameConfig.color[2];
nameJson["Rainbow"] = nameConfig.rainbow;
nameJson["Rainbow speed"] = nameConfig.rainbowSpeed;
}
{
auto& distanceJson = espJson["Distance"];
const auto& distanceConfig = espConfig.distance;
distanceJson["Enabled"] = distanceConfig.enabled;
distanceJson["Color"][0] = distanceConfig.color[0];
distanceJson["Color"][1] = distanceConfig.color[1];
distanceJson["Color"][2] = distanceConfig.color[2];
distanceJson["Rainbow"] = distanceConfig.rainbow;
distanceJson["Rainbow speed"] = distanceConfig.rainbowSpeed;
}
espJson["Max distance"] = espConfig.maxDistance;
}
{
auto& visualsJson = json["visuals"];
visualsJson["disablePostProcessing"] = visuals.disablePostProcessing;
visualsJson["inverseRagdollGravity"] = visuals.inverseRagdollGravity;
visualsJson["noFog"] = visuals.noFog;
visualsJson["no3dSky"] = visuals.no3dSky;
visualsJson["No aim punch"] = visuals.noAimPunch;
visualsJson["No view punch"] = visuals.noViewPunch;
visualsJson["noHands"] = visuals.noHands;
visualsJson["noSleeves"] = visuals.noSleeves;
visualsJson["noWeapons"] = visuals.noWeapons;
visualsJson["noSmoke"] = visuals.noSmoke;
visualsJson["noBlur"] = visuals.noBlur;
visualsJson["noScopeOverlay"] = visuals.noScopeOverlay;
visualsJson["noGrass"] = visuals.noGrass;
visualsJson["noShadows"] = visuals.noShadows;
visualsJson["wireframeSmoke"] = visuals.wireframeSmoke;
visualsJson["Zoom"] = visuals.zoom;
visualsJson["Zoom key"] = visuals.zoomKey;
visualsJson["thirdperson"] = visuals.thirdperson;
visualsJson["thirdpersonKey"] = visuals.thirdpersonKey;
visualsJson["thirdpersonDistance"] = visuals.thirdpersonDistance;
visualsJson["viewmodelFov"] = visuals.viewmodelFov;
visualsJson["Fov"] = visuals.fov;
visualsJson["farZ"] = visuals.farZ;
visualsJson["flashReduction"] = visuals.flashReduction;
visualsJson["brightness"] = visuals.brightness;
visualsJson["skybox"] = visuals.skybox;
{
auto& worldJson = visualsJson["World"];
worldJson["Enabled"] = visuals.world.enabled;
worldJson["Color"][0] = visuals.world.color[0];
worldJson["Color"][1] = visuals.world.color[1];
worldJson["Color"][2] = visuals.world.color[2];
worldJson["Rainbow"] = visuals.world.rainbow;
worldJson["Rainbow speed"] = visuals.world.rainbowSpeed;
}
{
auto& skyJson = visualsJson["Sky"];
skyJson["Enabled"] = visuals.sky.enabled;
skyJson["Color"][0] = visuals.sky.color[0];
skyJson["Color"][1] = visuals.sky.color[1];
skyJson["Color"][2] = visuals.sky.color[2];
skyJson["Rainbow"] = visuals.sky.rainbow;
skyJson["Rainbow speed"] = visuals.sky.rainbowSpeed;
}
visualsJson["Deagle spinner"] = visuals.deagleSpinner;
visualsJson["Screen effect"] = visuals.screenEffect;
visualsJson["Hit effect"] = visuals.hitEffect;
visualsJson["Hit effect time"] = visuals.hitEffectTime;
visualsJson["Hit marker"] = visuals.hitMarker;
visualsJson["Hit marker time"] = visuals.hitMarkerTime;
visualsJson["Playermodel T"] = visuals.playerModelT;
visualsJson["Playermodel CT"] = visuals.playerModelCT;
{
auto& cc = visualsJson["Color correction"];
cc["Enabled"] = visuals.colorCorrection.enabled;
cc["Blue"] = visuals.colorCorrection.blue;
cc["Red"] = visuals.colorCorrection.red;
cc["Mono"] = visuals.colorCorrection.mono;
cc["Saturation"] = visuals.colorCorrection.saturation;
cc["Ghost"] = visuals.colorCorrection.ghost;
cc["Green"] = visuals.colorCorrection.green;
cc["Yellow"] = visuals.colorCorrection.yellow;
}
}
for (size_t i = 0; i < skinChanger.size(); ++i) {
auto& skinChangerJson = json["skinChanger"][i];
const auto& skinChangerConfig = skinChanger[i];
skinChangerJson["Enabled"] = skinChangerConfig.enabled;
skinChangerJson["definition_vector_index"] = skinChangerConfig.definition_vector_index;
skinChangerJson["definition_index"] = skinChangerConfig.definition_index;
skinChangerJson["entity_quality_vector_index"] = skinChangerConfig.entity_quality_vector_index;
skinChangerJson["entity_quality_index"] = skinChangerConfig.entity_quality_index;
skinChangerJson["paint_kit_vector_index"] = skinChangerConfig.paint_kit_vector_index;
skinChangerJson["paint_kit_index"] = skinChangerConfig.paint_kit_index;
skinChangerJson["definition_override_vector_index"] = skinChangerConfig.definition_override_vector_index;
skinChangerJson["definition_override_index"] = skinChangerConfig.definition_override_index;
skinChangerJson["seed"] = skinChangerConfig.seed;
skinChangerJson["stat_trak"] = skinChangerConfig.stat_trak;
skinChangerJson["wear"] = skinChangerConfig.wear;
skinChangerJson["custom_name"] = skinChangerConfig.custom_name;
for (size_t j = 0; j < skinChangerConfig.stickers.size(); j++) {
auto& stickerJson = skinChangerJson["stickers"][j];
const auto& stickerConfig = skinChangerConfig.stickers[j];
stickerJson["kit"] = stickerConfig.kit;
stickerJson["kit_vector_index"] = stickerConfig.kit_vector_index;
stickerJson["wear"] = stickerConfig.wear;
stickerJson["scale"] = stickerConfig.scale;
stickerJson["rotation"] = stickerConfig.rotation;
}
}
{
auto& soundJson = json["Sound"];
soundJson["Chicken volume"] = sound.chickenVolume;
for (size_t i = 0; i < sound.players.size(); ++i) {
auto& playerJson = soundJson["Players"][i];
const auto& playerConfig = sound.players[i];
playerJson["Master volume"] = playerConfig.masterVolume;
playerJson["Headshot volume"] = playerConfig.headshotVolume;
playerJson["Weapon volume"] = playerConfig.weaponVolume;
playerJson["Footstep volume"] = playerConfig.footstepVolume;
}
}
{
auto& styleJson = json["Style"];
styleJson["Menu style"] = style.menuStyle;
styleJson["Menu colors"] = style.menuColors;
auto& colorsJson = styleJson["Colors"];
const ImGuiStyle& style = ImGui::GetStyle();
for (int i = 0; i < ImGuiCol_COUNT; ++i) {
auto& colorJson = styleJson["Colors"][ImGui::GetStyleColorName(i)];
colorJson[0] = style.Colors[i].x;
colorJson[1] = style.Colors[i].y;
colorJson[2] = style.Colors[i].z;
colorJson[3] = style.Colors[i].w;
}
}
{
auto& miscJson = json["Misc"];
miscJson["Menu key"] = misc.menuKey;
miscJson["Anti AFK kick"] = misc.antiAfkKick;
miscJson["Auto strafe"] = misc.autoStrafe;
miscJson["Bunny hop"] = misc.bunnyHop;
miscJson["Custom clan tag"] = misc.customClanTag;
miscJson["Clock tag"] = misc.clocktag;
miscJson["Clan tag"] = misc.clanTag;
miscJson["Animated clan tag"] = misc.animatedClanTag;
miscJson["Fast duck"] = misc.fastDuck;
miscJson["Moonwalk"] = misc.moonwalk;
miscJson["Edge Jump"] = misc.edgejump;
miscJson["Edge Jump Key"] = misc.edgejumpkey;
miscJson["Slowwalk"] = misc.slowwalk;
miscJson["Slowwalk key"] = misc.slowwalkKey;
miscJson["Sniper crosshair"] = misc.sniperCrosshair;
miscJson["Recoil crosshair"] = misc.recoilCrosshair;
miscJson["Auto pistol"] = misc.autoPistol;
miscJson["Auto reload"] = misc.autoReload;
miscJson["Auto accept"] = misc.autoAccept;
miscJson["Radar hack"] = misc.radarHack;
miscJson["Reveal ranks"] = misc.revealRanks;
miscJson["Reveal money"] = misc.revealMoney;
miscJson["Reveal suspect"] = misc.revealSuspect;
{
auto& spectatorListJson = miscJson["Spectator list"];
spectatorListJson["Enabled"] = misc.spectatorList.enabled;
spectatorListJson["Color"][0] = misc.spectatorList.color[0];
spectatorListJson["Color"][1] = misc.spectatorList.color[1];
spectatorListJson["Color"][2] = misc.spectatorList.color[2];
spectatorListJson["Rainbow"] = misc.spectatorList.rainbow;
spectatorListJson["Rainbow speed"] = misc.spectatorList.rainbowSpeed;
}
{
auto& watermarkJson = miscJson["Watermark"];
watermarkJson["Enabled"] = misc.watermark.enabled;
watermarkJson["Color"][0] = misc.watermark.color[0];
watermarkJson["Color"][1] = misc.watermark.color[1];
watermarkJson["Color"][2] = misc.watermark.color[2];
watermarkJson["Rainbow"] = misc.watermark.rainbow;
watermarkJson["Rainbow speed"] = misc.watermark.rainbowSpeed;
}
miscJson["Fix animation LOD"] = misc.fixAnimationLOD;
miscJson["Fix bone matrix"] = misc.fixBoneMatrix;
miscJson["Fix movement"] = misc.fixMovement;
miscJson["Disable model occlusion"] = misc.disableModelOcclusion;
miscJson["Aspect Ratio"] = misc.aspectratio;
miscJson["Kill message"] = misc.killMessage;
miscJson["Kill message string"] = misc.killMessageString;
miscJson["Name stealer"] = misc.nameStealer;
miscJson["Disable HUD blur"] = misc.disablePanoramablur;
miscJson["Vote text"] = misc.voteText;
miscJson["Ban color"] = misc.banColor;
miscJson["Ban text"] = misc.banText;
miscJson["Fast plant"] = misc.fastPlant;
miscJson["Draw FOV"] = misc.drawFOV;
{
auto& bombTimerJson = miscJson["Bomb timer"];
bombTimerJson["Enabled"] = misc.bombTimer.enabled;
bombTimerJson["Color"][0] = misc.bombTimer.color[0];
bombTimerJson["Color"][1] = misc.bombTimer.color[1];
bombTimerJson["Color"][2] = misc.bombTimer.color[2];
bombTimerJson["Rainbow"] = misc.bombTimer.rainbow;
bombTimerJson["Rainbow speed"] = misc.bombTimer.rainbowSpeed;
}
miscJson["Quick reload"] = misc.quickReload;
miscJson["Prepare revolver"] = misc.prepareRevolver;
miscJson["Prepare revolver key"] = misc.prepareRevolverKey;
miscJson["Hit sound"] = misc.hitSound;
miscJson["Choked packets"] = misc.chokedPackets;
miscJson["Choked packets key"] = misc.chokedPacketsKey;
miscJson["Fake Duck key"] = misc.fakeDuckKey;
miscJson["Quick healthshot key"] = misc.quickHealthshotKey;
miscJson["Grenade predict"] = misc.nadePredict;
miscJson["Fix tablet signal"] = misc.fixTabletSignal;
miscJson["Max angle delta"] = misc.maxAngleDelta;
miscJson["Fake prime"] = misc.fakePrime;
}
{
auto& reportbotJson = json["Reportbot"];
reportbotJson["Enabled"] = reportbot.enabled;
reportbotJson["Target"] = reportbot.target;
reportbotJson["Delay"] = reportbot.delay;
reportbotJson["Abusive Communications"] = reportbot.textAbuse;
reportbotJson["Griefing"] = reportbot.griefing;
reportbotJson["Wall Hacking"] = reportbot.wallhack;
reportbotJson["Aim Hacking"] = reportbot.aimbot;
reportbotJson["Other Hacking"] = reportbot.other;
}
if (!std::filesystem::is_directory(path)) {
std::filesystem::remove(path);
std::filesystem::create_directory(path);
}
if (std::ofstream out{ path / (const char8_t*)configs[id].c_str() }; out.good())
out << json;
}
void Config::add(const char* name) noexcept
{
if (*name && std::find(std::cbegin(configs), std::cend(configs), name) == std::cend(configs))
configs.emplace_back(name);
}
void Config::remove(size_t id) noexcept
{
std::filesystem::remove(path / (const char8_t*)configs[id].c_str());
configs.erase(configs.cbegin() + id);
}
void Config::rename(size_t item, const char* newName) noexcept
{
std::filesystem::rename(path / (const char8_t*)configs[item].c_str(), path / (const char8_t*)newName);
configs[item] = newName;
}
void Config::reset() noexcept
{
aimbot = { };
triggerbot = { };
backtrack = { };
glow = { };
chams = { };
esp = { };
visuals = { };
skinChanger = { };
sound = { };
style = { };
misc = { };
reportbot = { };
}
|
.file "project.c"
.def __main; .scl 2; .type 32; .endef
.section .rdata,"dr"
.LC0:
.ascii "\12Input number: \0"
.LC1:
.ascii "%d\0"
.LC2:
.ascii "%d is positive.\0"
.LC3:
.ascii "%d is negative.\0"
.LC4:
.ascii "%d is zero.\0"
.text
.globl main
.def main; .scl 2; .type 32; .endef
.seh_proc main
main:
pushq %rbp
.seh_pushreg %rbp
movq %rsp, %rbp
.seh_setframe %rbp, 0
subq $48, %rsp
.seh_stackalloc 48
.seh_endprologue
call __main
leaq .LC0(%rip), %rcx
call printf
leaq -4(%rbp), %rax
movq %rax, %rdx
leaq .LC1(%rip), %rcx
call scanf
movl -4(%rbp), %eax
testl %eax, %eax
setg %al
movzbl %al, %eax
testl %eax, %eax
je .L3
cmpl $1, %eax
jne .L2
movl -4(%rbp), %eax
movl %eax, %edx
leaq .LC2(%rip), %rcx
call printf
jmp .L2
.L3:
movl -4(%rbp), %eax
shrl $31, %eax
movzbl %al, %eax
testl %eax, %eax
je .L6
cmpl $1, %eax
je .L7
jmp .L9
.L7:
movl -4(%rbp), %eax
movl %eax, %edx
leaq .LC3(%rip), %rcx
call printf
jmp .L5
.L6:
movl -4(%rbp), %eax
movl %eax, %edx
leaq .LC4(%rip), %rcx
call printf
nop
.L5:
.L9:
nop
.L2:
call getch
movl $0, %eax
addq $48, %rsp
popq %rbp
ret
.seh_endproc
.ident "GCC: (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 6.2.0"
.def printf; .scl 2; .type 32; .endef
.def scanf; .scl 2; .type 32; .endef
.def getch; .scl 2; .type 32; .endef
|
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
#include <aws/cloudformation/model/RequiresRecreation.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace CloudFormation
{
namespace Model
{
namespace RequiresRecreationMapper
{
static const int Never_HASH = HashingUtils::HashString("Never");
static const int Conditionally_HASH = HashingUtils::HashString("Conditionally");
static const int Always_HASH = HashingUtils::HashString("Always");
RequiresRecreation GetRequiresRecreationForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == Never_HASH)
{
return RequiresRecreation::Never;
}
else if (hashCode == Conditionally_HASH)
{
return RequiresRecreation::Conditionally;
}
else if (hashCode == Always_HASH)
{
return RequiresRecreation::Always;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<RequiresRecreation>(hashCode);
}
return RequiresRecreation::NOT_SET;
}
Aws::String GetNameForRequiresRecreation(RequiresRecreation enumValue)
{
switch(enumValue)
{
case RequiresRecreation::Never:
return "Never";
case RequiresRecreation::Conditionally:
return "Conditionally";
case RequiresRecreation::Always:
return "Always";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace RequiresRecreationMapper
} // namespace Model
} // namespace CloudFormation
} // namespace Aws
|
; ===============================================================
; Mar 2014
; ===============================================================
;
; int bv_stack_push(bv_stack_t *s, int c)
;
; Push item onto stack.
;
; ===============================================================
SECTION code_clib
SECTION code_adt_bv_stack
PUBLIC asm_bv_stack_push
EXTERN asm_b_vector_append
defc asm_bv_stack_push = asm_b_vector_append
; enter : hl = stack *
; bc = int c
;
; exit : bc = int c
;
; success
;
; de = & stack.data[idx]
; hl = idx of appended char
; carry reset
;
; fail
;
; hl = -1
; carry set
;
; uses : af, de, hl
|
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
b: 89 e5 mov %esp,%ebp
d: 56 push %esi
e: 53 push %ebx
f: 51 push %ecx
10: 83 ec 0c sub $0xc,%esp
13: 8b 01 mov (%ecx),%eax
15: 8b 51 04 mov 0x4(%ecx),%edx
int i;
for(i = 1; i < argc; i++)
18: 83 f8 01 cmp $0x1,%eax
1b: 7e 47 jle 64 <main+0x64>
1d: 8d 5a 04 lea 0x4(%edx),%ebx
20: 8d 34 82 lea (%edx,%eax,4),%esi
printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n");
23: 83 c3 04 add $0x4,%ebx
26: 8b 43 fc mov -0x4(%ebx),%eax
29: 39 f3 cmp %esi,%ebx
2b: 74 22 je 4f <main+0x4f>
2d: 8d 76 00 lea 0x0(%esi),%esi
30: 68 98 08 00 00 push $0x898
35: 83 c3 04 add $0x4,%ebx
38: 50 push %eax
39: 68 9a 08 00 00 push $0x89a
3e: 6a 01 push $0x1
40: e8 eb 04 00 00 call 530 <printf>
45: 83 c4 10 add $0x10,%esp
48: 8b 43 fc mov -0x4(%ebx),%eax
4b: 39 f3 cmp %esi,%ebx
4d: 75 e1 jne 30 <main+0x30>
4f: 68 9f 08 00 00 push $0x89f
54: 50 push %eax
55: 68 9a 08 00 00 push $0x89a
5a: 6a 01 push $0x1
5c: e8 cf 04 00 00 call 530 <printf>
61: 83 c4 10 add $0x10,%esp
exit();
64: e8 f8 02 00 00 call 361 <exit>
69: 66 90 xchg %ax,%ax
6b: 66 90 xchg %ax,%ax
6d: 66 90 xchg %ax,%ax
6f: 90 nop
00000070 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
70: 55 push %ebp
char *os;
os = s;
while((*s++ = *t++) != 0)
71: 31 d2 xor %edx,%edx
{
73: 89 e5 mov %esp,%ebp
75: 53 push %ebx
76: 8b 45 08 mov 0x8(%ebp),%eax
79: 8b 5d 0c mov 0xc(%ebp),%ebx
7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
while((*s++ = *t++) != 0)
80: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx
84: 88 0c 10 mov %cl,(%eax,%edx,1)
87: 83 c2 01 add $0x1,%edx
8a: 84 c9 test %cl,%cl
8c: 75 f2 jne 80 <strcpy+0x10>
;
return os;
}
8e: 5b pop %ebx
8f: 5d pop %ebp
90: c3 ret
91: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
98: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
9f: 90 nop
000000a0 <strcmp>:
int
strcmp(const char *p, const char *q)
{
a0: 55 push %ebp
a1: 89 e5 mov %esp,%ebp
a3: 56 push %esi
a4: 53 push %ebx
a5: 8b 5d 08 mov 0x8(%ebp),%ebx
a8: 8b 75 0c mov 0xc(%ebp),%esi
while(*p && *p == *q)
ab: 0f b6 13 movzbl (%ebx),%edx
ae: 0f b6 0e movzbl (%esi),%ecx
b1: 84 d2 test %dl,%dl
b3: 74 1e je d3 <strcmp+0x33>
b5: b8 01 00 00 00 mov $0x1,%eax
ba: 38 ca cmp %cl,%dl
bc: 74 09 je c7 <strcmp+0x27>
be: eb 20 jmp e0 <strcmp+0x40>
c0: 83 c0 01 add $0x1,%eax
c3: 38 ca cmp %cl,%dl
c5: 75 19 jne e0 <strcmp+0x40>
c7: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx
cb: 0f b6 0c 06 movzbl (%esi,%eax,1),%ecx
cf: 84 d2 test %dl,%dl
d1: 75 ed jne c0 <strcmp+0x20>
d3: 31 c0 xor %eax,%eax
p++, q++;
return (uchar)*p - (uchar)*q;
}
d5: 5b pop %ebx
d6: 5e pop %esi
return (uchar)*p - (uchar)*q;
d7: 29 c8 sub %ecx,%eax
}
d9: 5d pop %ebp
da: c3 ret
db: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
df: 90 nop
e0: 0f b6 c2 movzbl %dl,%eax
e3: 5b pop %ebx
e4: 5e pop %esi
return (uchar)*p - (uchar)*q;
e5: 29 c8 sub %ecx,%eax
}
e7: 5d pop %ebp
e8: c3 ret
e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
000000f0 <strlen>:
uint
strlen(char *s)
{
f0: 55 push %ebp
f1: 89 e5 mov %esp,%ebp
f3: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
f6: 80 39 00 cmpb $0x0,(%ecx)
f9: 74 15 je 110 <strlen+0x20>
fb: 31 d2 xor %edx,%edx
fd: 8d 76 00 lea 0x0(%esi),%esi
100: 83 c2 01 add $0x1,%edx
103: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
107: 89 d0 mov %edx,%eax
109: 75 f5 jne 100 <strlen+0x10>
;
return n;
}
10b: 5d pop %ebp
10c: c3 ret
10d: 8d 76 00 lea 0x0(%esi),%esi
for(n = 0; s[n]; n++)
110: 31 c0 xor %eax,%eax
}
112: 5d pop %ebp
113: c3 ret
114: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
11b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
11f: 90 nop
00000120 <memset>:
void*
memset(void *dst, int c, uint n)
{
120: 55 push %ebp
121: 89 e5 mov %esp,%ebp
123: 57 push %edi
124: 8b 55 08 mov 0x8(%ebp),%edx
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
127: 8b 4d 10 mov 0x10(%ebp),%ecx
12a: 8b 45 0c mov 0xc(%ebp),%eax
12d: 89 d7 mov %edx,%edi
12f: fc cld
130: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
132: 89 d0 mov %edx,%eax
134: 5f pop %edi
135: 5d pop %ebp
136: c3 ret
137: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
13e: 66 90 xchg %ax,%ax
00000140 <strchr>:
char*
strchr(const char *s, char c)
{
140: 55 push %ebp
141: 89 e5 mov %esp,%ebp
143: 53 push %ebx
144: 8b 45 08 mov 0x8(%ebp),%eax
147: 8b 55 0c mov 0xc(%ebp),%edx
for(; *s; s++)
14a: 0f b6 18 movzbl (%eax),%ebx
14d: 84 db test %bl,%bl
14f: 74 1d je 16e <strchr+0x2e>
151: 89 d1 mov %edx,%ecx
if(*s == c)
153: 38 d3 cmp %dl,%bl
155: 75 0d jne 164 <strchr+0x24>
157: eb 17 jmp 170 <strchr+0x30>
159: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
160: 38 ca cmp %cl,%dl
162: 74 0c je 170 <strchr+0x30>
for(; *s; s++)
164: 83 c0 01 add $0x1,%eax
167: 0f b6 10 movzbl (%eax),%edx
16a: 84 d2 test %dl,%dl
16c: 75 f2 jne 160 <strchr+0x20>
return (char*)s;
return 0;
16e: 31 c0 xor %eax,%eax
}
170: 5b pop %ebx
171: 5d pop %ebp
172: c3 ret
173: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
17a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000180 <gets>:
char*
gets(char *buf, int max)
{
180: 55 push %ebp
181: 89 e5 mov %esp,%ebp
183: 57 push %edi
184: 56 push %esi
int i, cc;
char c;
for(i=0; i+1 < max; ){
185: 31 f6 xor %esi,%esi
{
187: 53 push %ebx
188: 89 f3 mov %esi,%ebx
18a: 83 ec 1c sub $0x1c,%esp
18d: 8b 7d 08 mov 0x8(%ebp),%edi
for(i=0; i+1 < max; ){
190: eb 2f jmp 1c1 <gets+0x41>
192: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
cc = read(0, &c, 1);
198: 83 ec 04 sub $0x4,%esp
19b: 8d 45 e7 lea -0x19(%ebp),%eax
19e: 6a 01 push $0x1
1a0: 50 push %eax
1a1: 6a 00 push $0x0
1a3: e8 d1 01 00 00 call 379 <read>
if(cc < 1)
1a8: 83 c4 10 add $0x10,%esp
1ab: 85 c0 test %eax,%eax
1ad: 7e 1c jle 1cb <gets+0x4b>
break;
buf[i++] = c;
1af: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
1b3: 83 c7 01 add $0x1,%edi
1b6: 88 47 ff mov %al,-0x1(%edi)
if(c == '\n' || c == '\r')
1b9: 3c 0a cmp $0xa,%al
1bb: 74 23 je 1e0 <gets+0x60>
1bd: 3c 0d cmp $0xd,%al
1bf: 74 1f je 1e0 <gets+0x60>
for(i=0; i+1 < max; ){
1c1: 83 c3 01 add $0x1,%ebx
1c4: 89 fe mov %edi,%esi
1c6: 3b 5d 0c cmp 0xc(%ebp),%ebx
1c9: 7c cd jl 198 <gets+0x18>
1cb: 89 f3 mov %esi,%ebx
break;
}
buf[i] = '\0';
return buf;
}
1cd: 8b 45 08 mov 0x8(%ebp),%eax
buf[i] = '\0';
1d0: c6 03 00 movb $0x0,(%ebx)
}
1d3: 8d 65 f4 lea -0xc(%ebp),%esp
1d6: 5b pop %ebx
1d7: 5e pop %esi
1d8: 5f pop %edi
1d9: 5d pop %ebp
1da: c3 ret
1db: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
1df: 90 nop
1e0: 8b 75 08 mov 0x8(%ebp),%esi
1e3: 8b 45 08 mov 0x8(%ebp),%eax
1e6: 01 de add %ebx,%esi
1e8: 89 f3 mov %esi,%ebx
buf[i] = '\0';
1ea: c6 03 00 movb $0x0,(%ebx)
}
1ed: 8d 65 f4 lea -0xc(%ebp),%esp
1f0: 5b pop %ebx
1f1: 5e pop %esi
1f2: 5f pop %edi
1f3: 5d pop %ebp
1f4: c3 ret
1f5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000200 <stat>:
int
stat(char *n, struct stat *st)
{
200: 55 push %ebp
201: 89 e5 mov %esp,%ebp
203: 56 push %esi
204: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
205: 83 ec 08 sub $0x8,%esp
208: 6a 00 push $0x0
20a: ff 75 08 pushl 0x8(%ebp)
20d: e8 8f 01 00 00 call 3a1 <open>
if(fd < 0)
212: 83 c4 10 add $0x10,%esp
215: 85 c0 test %eax,%eax
217: 78 27 js 240 <stat+0x40>
return -1;
r = fstat(fd, st);
219: 83 ec 08 sub $0x8,%esp
21c: ff 75 0c pushl 0xc(%ebp)
21f: 89 c3 mov %eax,%ebx
221: 50 push %eax
222: e8 92 01 00 00 call 3b9 <fstat>
close(fd);
227: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
22a: 89 c6 mov %eax,%esi
close(fd);
22c: e8 58 01 00 00 call 389 <close>
return r;
231: 83 c4 10 add $0x10,%esp
}
234: 8d 65 f8 lea -0x8(%ebp),%esp
237: 89 f0 mov %esi,%eax
239: 5b pop %ebx
23a: 5e pop %esi
23b: 5d pop %ebp
23c: c3 ret
23d: 8d 76 00 lea 0x0(%esi),%esi
return -1;
240: be ff ff ff ff mov $0xffffffff,%esi
245: eb ed jmp 234 <stat+0x34>
247: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
24e: 66 90 xchg %ax,%ax
00000250 <atoi>:
#ifdef PDX_XV6
int
atoi(const char *s)
{
250: 55 push %ebp
251: 89 e5 mov %esp,%ebp
253: 56 push %esi
254: 8b 55 08 mov 0x8(%ebp),%edx
257: 53 push %ebx
int n, sign;
n = 0;
while (*s == ' ') s++;
258: 0f b6 0a movzbl (%edx),%ecx
25b: 80 f9 20 cmp $0x20,%cl
25e: 75 0b jne 26b <atoi+0x1b>
260: 83 c2 01 add $0x1,%edx
263: 0f b6 0a movzbl (%edx),%ecx
266: 80 f9 20 cmp $0x20,%cl
269: 74 f5 je 260 <atoi+0x10>
sign = (*s == '-') ? -1 : 1;
26b: 80 f9 2d cmp $0x2d,%cl
26e: 74 40 je 2b0 <atoi+0x60>
270: be 01 00 00 00 mov $0x1,%esi
if (*s == '+' || *s == '-')
275: 80 f9 2b cmp $0x2b,%cl
278: 74 3b je 2b5 <atoi+0x65>
s++;
while('0' <= *s && *s <= '9')
27a: 0f be 0a movsbl (%edx),%ecx
27d: 8d 41 d0 lea -0x30(%ecx),%eax
280: 3c 09 cmp $0x9,%al
282: b8 00 00 00 00 mov $0x0,%eax
287: 77 1f ja 2a8 <atoi+0x58>
289: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
n = n*10 + *s++ - '0';
290: 83 c2 01 add $0x1,%edx
293: 8d 04 80 lea (%eax,%eax,4),%eax
296: 8d 44 41 d0 lea -0x30(%ecx,%eax,2),%eax
while('0' <= *s && *s <= '9')
29a: 0f be 0a movsbl (%edx),%ecx
29d: 8d 59 d0 lea -0x30(%ecx),%ebx
2a0: 80 fb 09 cmp $0x9,%bl
2a3: 76 eb jbe 290 <atoi+0x40>
2a5: 0f af c6 imul %esi,%eax
return sign*n;
}
2a8: 5b pop %ebx
2a9: 5e pop %esi
2aa: 5d pop %ebp
2ab: c3 ret
2ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
sign = (*s == '-') ? -1 : 1;
2b0: be ff ff ff ff mov $0xffffffff,%esi
s++;
2b5: 83 c2 01 add $0x1,%edx
2b8: eb c0 jmp 27a <atoi+0x2a>
2ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
000002c0 <atoo>:
int
atoo(const char *s)
{
2c0: 55 push %ebp
2c1: 89 e5 mov %esp,%ebp
2c3: 56 push %esi
2c4: 8b 55 08 mov 0x8(%ebp),%edx
2c7: 53 push %ebx
int n, sign;
n = 0;
while (*s == ' ') s++;
2c8: 0f b6 0a movzbl (%edx),%ecx
2cb: 80 f9 20 cmp $0x20,%cl
2ce: 75 0b jne 2db <atoo+0x1b>
2d0: 83 c2 01 add $0x1,%edx
2d3: 0f b6 0a movzbl (%edx),%ecx
2d6: 80 f9 20 cmp $0x20,%cl
2d9: 74 f5 je 2d0 <atoo+0x10>
sign = (*s == '-') ? -1 : 1;
2db: 80 f9 2d cmp $0x2d,%cl
2de: 74 40 je 320 <atoo+0x60>
2e0: be 01 00 00 00 mov $0x1,%esi
if (*s == '+' || *s == '-')
2e5: 80 f9 2b cmp $0x2b,%cl
2e8: 74 3b je 325 <atoo+0x65>
s++;
while('0' <= *s && *s <= '7')
2ea: 0f be 0a movsbl (%edx),%ecx
2ed: 8d 41 d0 lea -0x30(%ecx),%eax
2f0: 3c 07 cmp $0x7,%al
2f2: b8 00 00 00 00 mov $0x0,%eax
2f7: 77 1c ja 315 <atoo+0x55>
2f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
n = n*8 + *s++ - '0';
300: 83 c2 01 add $0x1,%edx
303: 8d 44 c1 d0 lea -0x30(%ecx,%eax,8),%eax
while('0' <= *s && *s <= '7')
307: 0f be 0a movsbl (%edx),%ecx
30a: 8d 59 d0 lea -0x30(%ecx),%ebx
30d: 80 fb 07 cmp $0x7,%bl
310: 76 ee jbe 300 <atoo+0x40>
312: 0f af c6 imul %esi,%eax
return sign*n;
}
315: 5b pop %ebx
316: 5e pop %esi
317: 5d pop %ebp
318: c3 ret
319: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
sign = (*s == '-') ? -1 : 1;
320: be ff ff ff ff mov $0xffffffff,%esi
s++;
325: 83 c2 01 add $0x1,%edx
328: eb c0 jmp 2ea <atoo+0x2a>
32a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000330 <memmove>:
}
#endif // PDX_XV6
void*
memmove(void *vdst, void *vsrc, int n)
{
330: 55 push %ebp
331: 89 e5 mov %esp,%ebp
333: 57 push %edi
334: 8b 55 10 mov 0x10(%ebp),%edx
337: 8b 45 08 mov 0x8(%ebp),%eax
33a: 56 push %esi
33b: 8b 75 0c mov 0xc(%ebp),%esi
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
33e: 85 d2 test %edx,%edx
340: 7e 13 jle 355 <memmove+0x25>
342: 01 c2 add %eax,%edx
dst = vdst;
344: 89 c7 mov %eax,%edi
346: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
34d: 8d 76 00 lea 0x0(%esi),%esi
*dst++ = *src++;
350: a4 movsb %ds:(%esi),%es:(%edi)
while(n-- > 0)
351: 39 fa cmp %edi,%edx
353: 75 fb jne 350 <memmove+0x20>
return vdst;
}
355: 5e pop %esi
356: 5f pop %edi
357: 5d pop %ebp
358: c3 ret
00000359 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
359: b8 01 00 00 00 mov $0x1,%eax
35e: cd 40 int $0x40
360: c3 ret
00000361 <exit>:
SYSCALL(exit)
361: b8 02 00 00 00 mov $0x2,%eax
366: cd 40 int $0x40
368: c3 ret
00000369 <wait>:
SYSCALL(wait)
369: b8 03 00 00 00 mov $0x3,%eax
36e: cd 40 int $0x40
370: c3 ret
00000371 <pipe>:
SYSCALL(pipe)
371: b8 04 00 00 00 mov $0x4,%eax
376: cd 40 int $0x40
378: c3 ret
00000379 <read>:
SYSCALL(read)
379: b8 05 00 00 00 mov $0x5,%eax
37e: cd 40 int $0x40
380: c3 ret
00000381 <write>:
SYSCALL(write)
381: b8 10 00 00 00 mov $0x10,%eax
386: cd 40 int $0x40
388: c3 ret
00000389 <close>:
SYSCALL(close)
389: b8 15 00 00 00 mov $0x15,%eax
38e: cd 40 int $0x40
390: c3 ret
00000391 <kill>:
SYSCALL(kill)
391: b8 06 00 00 00 mov $0x6,%eax
396: cd 40 int $0x40
398: c3 ret
00000399 <exec>:
SYSCALL(exec)
399: b8 07 00 00 00 mov $0x7,%eax
39e: cd 40 int $0x40
3a0: c3 ret
000003a1 <open>:
SYSCALL(open)
3a1: b8 0f 00 00 00 mov $0xf,%eax
3a6: cd 40 int $0x40
3a8: c3 ret
000003a9 <mknod>:
SYSCALL(mknod)
3a9: b8 11 00 00 00 mov $0x11,%eax
3ae: cd 40 int $0x40
3b0: c3 ret
000003b1 <unlink>:
SYSCALL(unlink)
3b1: b8 12 00 00 00 mov $0x12,%eax
3b6: cd 40 int $0x40
3b8: c3 ret
000003b9 <fstat>:
SYSCALL(fstat)
3b9: b8 08 00 00 00 mov $0x8,%eax
3be: cd 40 int $0x40
3c0: c3 ret
000003c1 <link>:
SYSCALL(link)
3c1: b8 13 00 00 00 mov $0x13,%eax
3c6: cd 40 int $0x40
3c8: c3 ret
000003c9 <mkdir>:
SYSCALL(mkdir)
3c9: b8 14 00 00 00 mov $0x14,%eax
3ce: cd 40 int $0x40
3d0: c3 ret
000003d1 <chdir>:
SYSCALL(chdir)
3d1: b8 09 00 00 00 mov $0x9,%eax
3d6: cd 40 int $0x40
3d8: c3 ret
000003d9 <dup>:
SYSCALL(dup)
3d9: b8 0a 00 00 00 mov $0xa,%eax
3de: cd 40 int $0x40
3e0: c3 ret
000003e1 <getpid>:
SYSCALL(getpid)
3e1: b8 0b 00 00 00 mov $0xb,%eax
3e6: cd 40 int $0x40
3e8: c3 ret
000003e9 <sbrk>:
SYSCALL(sbrk)
3e9: b8 0c 00 00 00 mov $0xc,%eax
3ee: cd 40 int $0x40
3f0: c3 ret
000003f1 <sleep>:
SYSCALL(sleep)
3f1: b8 0d 00 00 00 mov $0xd,%eax
3f6: cd 40 int $0x40
3f8: c3 ret
000003f9 <uptime>:
SYSCALL(uptime)
3f9: b8 0e 00 00 00 mov $0xe,%eax
3fe: cd 40 int $0x40
400: c3 ret
00000401 <halt>:
SYSCALL(halt)
401: b8 16 00 00 00 mov $0x16,%eax
406: cd 40 int $0x40
408: c3 ret
00000409 <date>:
SYSCALL(date)
409: b8 17 00 00 00 mov $0x17,%eax
40e: cd 40 int $0x40
410: c3 ret
00000411 <getgid>:
SYSCALL(getgid)
411: b8 18 00 00 00 mov $0x18,%eax
416: cd 40 int $0x40
418: c3 ret
00000419 <setgid>:
SYSCALL(setgid)
419: b8 19 00 00 00 mov $0x19,%eax
41e: cd 40 int $0x40
420: c3 ret
00000421 <getuid>:
SYSCALL(getuid)
421: b8 1a 00 00 00 mov $0x1a,%eax
426: cd 40 int $0x40
428: c3 ret
00000429 <setuid>:
SYSCALL(setuid)
429: b8 1b 00 00 00 mov $0x1b,%eax
42e: cd 40 int $0x40
430: c3 ret
00000431 <getppid>:
SYSCALL(getppid)
431: b8 1c 00 00 00 mov $0x1c,%eax
436: cd 40 int $0x40
438: c3 ret
00000439 <getprocs>:
SYSCALL(getprocs)
439: b8 1d 00 00 00 mov $0x1d,%eax
43e: cd 40 int $0x40
440: c3 ret
00000441 <setpriority>:
SYSCALL(setpriority)
441: b8 1e 00 00 00 mov $0x1e,%eax
446: cd 40 int $0x40
448: c3 ret
00000449 <getpriority>:
SYSCALL(getpriority)
449: b8 1f 00 00 00 mov $0x1f,%eax
44e: cd 40 int $0x40
450: c3 ret
00000451 <chmod>:
SYSCALL(chmod)
451: b8 20 00 00 00 mov $0x20,%eax
456: cd 40 int $0x40
458: c3 ret
00000459 <chown>:
SYSCALL(chown)
459: b8 21 00 00 00 mov $0x21,%eax
45e: cd 40 int $0x40
460: c3 ret
00000461 <chgrp>:
SYSCALL(chgrp)
461: b8 22 00 00 00 mov $0x22,%eax
466: cd 40 int $0x40
468: c3 ret
469: 66 90 xchg %ax,%ax
46b: 66 90 xchg %ax,%ax
46d: 66 90 xchg %ax,%ax
46f: 90 nop
00000470 <printint>:
write(fd, &c, 1);
}
static void
printint(int fd, int xx, int base, int sgn)
{
470: 55 push %ebp
471: 89 e5 mov %esp,%ebp
473: 57 push %edi
474: 56 push %esi
475: 53 push %ebx
uint x;
neg = 0;
if(sgn && xx < 0){
neg = 1;
x = -xx;
476: 89 d3 mov %edx,%ebx
{
478: 83 ec 3c sub $0x3c,%esp
47b: 89 45 bc mov %eax,-0x44(%ebp)
if(sgn && xx < 0){
47e: 85 d2 test %edx,%edx
480: 0f 89 92 00 00 00 jns 518 <printint+0xa8>
486: f6 45 08 01 testb $0x1,0x8(%ebp)
48a: 0f 84 88 00 00 00 je 518 <printint+0xa8>
neg = 1;
490: c7 45 c0 01 00 00 00 movl $0x1,-0x40(%ebp)
x = -xx;
497: f7 db neg %ebx
} else {
x = xx;
}
i = 0;
499: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
4a0: 8d 75 d7 lea -0x29(%ebp),%esi
4a3: eb 08 jmp 4ad <printint+0x3d>
4a5: 8d 76 00 lea 0x0(%esi),%esi
do{
buf[i++] = digits[x % base];
4a8: 89 7d c4 mov %edi,-0x3c(%ebp)
}while((x /= base) != 0);
4ab: 89 c3 mov %eax,%ebx
buf[i++] = digits[x % base];
4ad: 89 d8 mov %ebx,%eax
4af: 31 d2 xor %edx,%edx
4b1: 8b 7d c4 mov -0x3c(%ebp),%edi
4b4: f7 f1 div %ecx
4b6: 83 c7 01 add $0x1,%edi
4b9: 0f b6 92 a8 08 00 00 movzbl 0x8a8(%edx),%edx
4c0: 88 14 3e mov %dl,(%esi,%edi,1)
}while((x /= base) != 0);
4c3: 39 d9 cmp %ebx,%ecx
4c5: 76 e1 jbe 4a8 <printint+0x38>
if(neg)
4c7: 8b 45 c0 mov -0x40(%ebp),%eax
4ca: 85 c0 test %eax,%eax
4cc: 74 0d je 4db <printint+0x6b>
buf[i++] = '-';
4ce: c6 44 3d d8 2d movb $0x2d,-0x28(%ebp,%edi,1)
4d3: ba 2d 00 00 00 mov $0x2d,%edx
buf[i++] = digits[x % base];
4d8: 89 7d c4 mov %edi,-0x3c(%ebp)
4db: 8b 45 c4 mov -0x3c(%ebp),%eax
4de: 8b 7d bc mov -0x44(%ebp),%edi
4e1: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx
4e5: eb 0f jmp 4f6 <printint+0x86>
4e7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
4ee: 66 90 xchg %ax,%ax
4f0: 0f b6 13 movzbl (%ebx),%edx
4f3: 83 eb 01 sub $0x1,%ebx
write(fd, &c, 1);
4f6: 83 ec 04 sub $0x4,%esp
4f9: 88 55 d7 mov %dl,-0x29(%ebp)
4fc: 6a 01 push $0x1
4fe: 56 push %esi
4ff: 57 push %edi
500: e8 7c fe ff ff call 381 <write>
while(--i >= 0)
505: 83 c4 10 add $0x10,%esp
508: 39 de cmp %ebx,%esi
50a: 75 e4 jne 4f0 <printint+0x80>
putc(fd, buf[i]);
}
50c: 8d 65 f4 lea -0xc(%ebp),%esp
50f: 5b pop %ebx
510: 5e pop %esi
511: 5f pop %edi
512: 5d pop %ebp
513: c3 ret
514: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
neg = 0;
518: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp)
51f: e9 75 ff ff ff jmp 499 <printint+0x29>
524: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
52b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
52f: 90 nop
00000530 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
530: 55 push %ebp
531: 89 e5 mov %esp,%ebp
533: 57 push %edi
534: 56 push %esi
535: 53 push %ebx
536: 83 ec 2c sub $0x2c,%esp
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
539: 8b 75 0c mov 0xc(%ebp),%esi
53c: 0f b6 1e movzbl (%esi),%ebx
53f: 84 db test %bl,%bl
541: 0f 84 b9 00 00 00 je 600 <printf+0xd0>
ap = (uint*)(void*)&fmt + 1;
547: 8d 45 10 lea 0x10(%ebp),%eax
54a: 83 c6 01 add $0x1,%esi
write(fd, &c, 1);
54d: 8d 7d e7 lea -0x19(%ebp),%edi
state = 0;
550: 31 d2 xor %edx,%edx
ap = (uint*)(void*)&fmt + 1;
552: 89 45 d0 mov %eax,-0x30(%ebp)
555: eb 38 jmp 58f <printf+0x5f>
557: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
55e: 66 90 xchg %ax,%ax
560: 89 55 d4 mov %edx,-0x2c(%ebp)
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
state = '%';
563: ba 25 00 00 00 mov $0x25,%edx
if(c == '%'){
568: 83 f8 25 cmp $0x25,%eax
56b: 74 17 je 584 <printf+0x54>
write(fd, &c, 1);
56d: 83 ec 04 sub $0x4,%esp
570: 88 5d e7 mov %bl,-0x19(%ebp)
573: 6a 01 push $0x1
575: 57 push %edi
576: ff 75 08 pushl 0x8(%ebp)
579: e8 03 fe ff ff call 381 <write>
57e: 8b 55 d4 mov -0x2c(%ebp),%edx
} else {
putc(fd, c);
581: 83 c4 10 add $0x10,%esp
584: 83 c6 01 add $0x1,%esi
for(i = 0; fmt[i]; i++){
587: 0f b6 5e ff movzbl -0x1(%esi),%ebx
58b: 84 db test %bl,%bl
58d: 74 71 je 600 <printf+0xd0>
c = fmt[i] & 0xff;
58f: 0f be cb movsbl %bl,%ecx
592: 0f b6 c3 movzbl %bl,%eax
if(state == 0){
595: 85 d2 test %edx,%edx
597: 74 c7 je 560 <printf+0x30>
}
} else if(state == '%'){
599: 83 fa 25 cmp $0x25,%edx
59c: 75 e6 jne 584 <printf+0x54>
if(c == 'd'){
59e: 83 f8 64 cmp $0x64,%eax
5a1: 0f 84 99 00 00 00 je 640 <printf+0x110>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
5a7: 81 e1 f7 00 00 00 and $0xf7,%ecx
5ad: 83 f9 70 cmp $0x70,%ecx
5b0: 74 5e je 610 <printf+0xe0>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
5b2: 83 f8 73 cmp $0x73,%eax
5b5: 0f 84 d5 00 00 00 je 690 <printf+0x160>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
5bb: 83 f8 63 cmp $0x63,%eax
5be: 0f 84 8c 00 00 00 je 650 <printf+0x120>
putc(fd, *ap);
ap++;
} else if(c == '%'){
5c4: 83 f8 25 cmp $0x25,%eax
5c7: 0f 84 b3 00 00 00 je 680 <printf+0x150>
write(fd, &c, 1);
5cd: 83 ec 04 sub $0x4,%esp
5d0: c6 45 e7 25 movb $0x25,-0x19(%ebp)
5d4: 6a 01 push $0x1
5d6: 57 push %edi
5d7: ff 75 08 pushl 0x8(%ebp)
5da: e8 a2 fd ff ff call 381 <write>
putc(fd, c);
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
5df: 88 5d e7 mov %bl,-0x19(%ebp)
write(fd, &c, 1);
5e2: 83 c4 0c add $0xc,%esp
5e5: 6a 01 push $0x1
5e7: 83 c6 01 add $0x1,%esi
5ea: 57 push %edi
5eb: ff 75 08 pushl 0x8(%ebp)
5ee: e8 8e fd ff ff call 381 <write>
for(i = 0; fmt[i]; i++){
5f3: 0f b6 5e ff movzbl -0x1(%esi),%ebx
putc(fd, c);
5f7: 83 c4 10 add $0x10,%esp
}
state = 0;
5fa: 31 d2 xor %edx,%edx
for(i = 0; fmt[i]; i++){
5fc: 84 db test %bl,%bl
5fe: 75 8f jne 58f <printf+0x5f>
}
}
}
600: 8d 65 f4 lea -0xc(%ebp),%esp
603: 5b pop %ebx
604: 5e pop %esi
605: 5f pop %edi
606: 5d pop %ebp
607: c3 ret
608: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
60f: 90 nop
printint(fd, *ap, 16, 0);
610: 83 ec 0c sub $0xc,%esp
613: b9 10 00 00 00 mov $0x10,%ecx
618: 6a 00 push $0x0
61a: 8b 5d d0 mov -0x30(%ebp),%ebx
61d: 8b 45 08 mov 0x8(%ebp),%eax
620: 8b 13 mov (%ebx),%edx
622: e8 49 fe ff ff call 470 <printint>
ap++;
627: 89 d8 mov %ebx,%eax
629: 83 c4 10 add $0x10,%esp
state = 0;
62c: 31 d2 xor %edx,%edx
ap++;
62e: 83 c0 04 add $0x4,%eax
631: 89 45 d0 mov %eax,-0x30(%ebp)
634: e9 4b ff ff ff jmp 584 <printf+0x54>
639: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
printint(fd, *ap, 10, 1);
640: 83 ec 0c sub $0xc,%esp
643: b9 0a 00 00 00 mov $0xa,%ecx
648: 6a 01 push $0x1
64a: eb ce jmp 61a <printf+0xea>
64c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
putc(fd, *ap);
650: 8b 5d d0 mov -0x30(%ebp),%ebx
write(fd, &c, 1);
653: 83 ec 04 sub $0x4,%esp
putc(fd, *ap);
656: 8b 03 mov (%ebx),%eax
write(fd, &c, 1);
658: 6a 01 push $0x1
ap++;
65a: 83 c3 04 add $0x4,%ebx
write(fd, &c, 1);
65d: 57 push %edi
65e: ff 75 08 pushl 0x8(%ebp)
putc(fd, *ap);
661: 88 45 e7 mov %al,-0x19(%ebp)
write(fd, &c, 1);
664: e8 18 fd ff ff call 381 <write>
ap++;
669: 89 5d d0 mov %ebx,-0x30(%ebp)
66c: 83 c4 10 add $0x10,%esp
state = 0;
66f: 31 d2 xor %edx,%edx
671: e9 0e ff ff ff jmp 584 <printf+0x54>
676: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
67d: 8d 76 00 lea 0x0(%esi),%esi
putc(fd, c);
680: 88 5d e7 mov %bl,-0x19(%ebp)
write(fd, &c, 1);
683: 83 ec 04 sub $0x4,%esp
686: e9 5a ff ff ff jmp 5e5 <printf+0xb5>
68b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
68f: 90 nop
s = (char*)*ap;
690: 8b 45 d0 mov -0x30(%ebp),%eax
693: 8b 18 mov (%eax),%ebx
ap++;
695: 83 c0 04 add $0x4,%eax
698: 89 45 d0 mov %eax,-0x30(%ebp)
if(s == 0)
69b: 85 db test %ebx,%ebx
69d: 74 17 je 6b6 <printf+0x186>
while(*s != 0){
69f: 0f b6 03 movzbl (%ebx),%eax
state = 0;
6a2: 31 d2 xor %edx,%edx
while(*s != 0){
6a4: 84 c0 test %al,%al
6a6: 0f 84 d8 fe ff ff je 584 <printf+0x54>
6ac: 89 75 d4 mov %esi,-0x2c(%ebp)
6af: 89 de mov %ebx,%esi
6b1: 8b 5d 08 mov 0x8(%ebp),%ebx
6b4: eb 1a jmp 6d0 <printf+0x1a0>
s = "(null)";
6b6: bb a1 08 00 00 mov $0x8a1,%ebx
while(*s != 0){
6bb: 89 75 d4 mov %esi,-0x2c(%ebp)
6be: b8 28 00 00 00 mov $0x28,%eax
6c3: 89 de mov %ebx,%esi
6c5: 8b 5d 08 mov 0x8(%ebp),%ebx
6c8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
6cf: 90 nop
write(fd, &c, 1);
6d0: 83 ec 04 sub $0x4,%esp
s++;
6d3: 83 c6 01 add $0x1,%esi
6d6: 88 45 e7 mov %al,-0x19(%ebp)
write(fd, &c, 1);
6d9: 6a 01 push $0x1
6db: 57 push %edi
6dc: 53 push %ebx
6dd: e8 9f fc ff ff call 381 <write>
while(*s != 0){
6e2: 0f b6 06 movzbl (%esi),%eax
6e5: 83 c4 10 add $0x10,%esp
6e8: 84 c0 test %al,%al
6ea: 75 e4 jne 6d0 <printf+0x1a0>
6ec: 8b 75 d4 mov -0x2c(%ebp),%esi
state = 0;
6ef: 31 d2 xor %edx,%edx
6f1: e9 8e fe ff ff jmp 584 <printf+0x54>
6f6: 66 90 xchg %ax,%ax
6f8: 66 90 xchg %ax,%ax
6fa: 66 90 xchg %ax,%ax
6fc: 66 90 xchg %ax,%ax
6fe: 66 90 xchg %ax,%ax
00000700 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
700: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
701: a1 8c 0b 00 00 mov 0xb8c,%eax
{
706: 89 e5 mov %esp,%ebp
708: 57 push %edi
709: 56 push %esi
70a: 53 push %ebx
70b: 8b 5d 08 mov 0x8(%ebp),%ebx
70e: 8b 10 mov (%eax),%edx
bp = (Header*)ap - 1;
710: 8d 4b f8 lea -0x8(%ebx),%ecx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
713: 39 c8 cmp %ecx,%eax
715: 73 19 jae 730 <free+0x30>
717: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
71e: 66 90 xchg %ax,%ax
720: 39 d1 cmp %edx,%ecx
722: 72 14 jb 738 <free+0x38>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
724: 39 d0 cmp %edx,%eax
726: 73 10 jae 738 <free+0x38>
{
728: 89 d0 mov %edx,%eax
72a: 8b 10 mov (%eax),%edx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
72c: 39 c8 cmp %ecx,%eax
72e: 72 f0 jb 720 <free+0x20>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
730: 39 d0 cmp %edx,%eax
732: 72 f4 jb 728 <free+0x28>
734: 39 d1 cmp %edx,%ecx
736: 73 f0 jae 728 <free+0x28>
break;
if(bp + bp->s.size == p->s.ptr){
738: 8b 73 fc mov -0x4(%ebx),%esi
73b: 8d 3c f1 lea (%ecx,%esi,8),%edi
73e: 39 fa cmp %edi,%edx
740: 74 1e je 760 <free+0x60>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
742: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
745: 8b 50 04 mov 0x4(%eax),%edx
748: 8d 34 d0 lea (%eax,%edx,8),%esi
74b: 39 f1 cmp %esi,%ecx
74d: 74 28 je 777 <free+0x77>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
74f: 89 08 mov %ecx,(%eax)
freep = p;
}
751: 5b pop %ebx
freep = p;
752: a3 8c 0b 00 00 mov %eax,0xb8c
}
757: 5e pop %esi
758: 5f pop %edi
759: 5d pop %ebp
75a: c3 ret
75b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
75f: 90 nop
bp->s.size += p->s.ptr->s.size;
760: 03 72 04 add 0x4(%edx),%esi
763: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
766: 8b 10 mov (%eax),%edx
768: 8b 12 mov (%edx),%edx
76a: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
76d: 8b 50 04 mov 0x4(%eax),%edx
770: 8d 34 d0 lea (%eax,%edx,8),%esi
773: 39 f1 cmp %esi,%ecx
775: 75 d8 jne 74f <free+0x4f>
p->s.size += bp->s.size;
777: 03 53 fc add -0x4(%ebx),%edx
freep = p;
77a: a3 8c 0b 00 00 mov %eax,0xb8c
p->s.size += bp->s.size;
77f: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
782: 8b 53 f8 mov -0x8(%ebx),%edx
785: 89 10 mov %edx,(%eax)
}
787: 5b pop %ebx
788: 5e pop %esi
789: 5f pop %edi
78a: 5d pop %ebp
78b: c3 ret
78c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000790 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
790: 55 push %ebp
791: 89 e5 mov %esp,%ebp
793: 57 push %edi
794: 56 push %esi
795: 53 push %ebx
796: 83 ec 1c sub $0x1c,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
799: 8b 45 08 mov 0x8(%ebp),%eax
if((prevp = freep) == 0){
79c: 8b 3d 8c 0b 00 00 mov 0xb8c,%edi
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
7a2: 8d 70 07 lea 0x7(%eax),%esi
7a5: c1 ee 03 shr $0x3,%esi
7a8: 83 c6 01 add $0x1,%esi
if((prevp = freep) == 0){
7ab: 85 ff test %edi,%edi
7ad: 0f 84 ad 00 00 00 je 860 <malloc+0xd0>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
7b3: 8b 17 mov (%edi),%edx
if(p->s.size >= nunits){
7b5: 8b 4a 04 mov 0x4(%edx),%ecx
7b8: 39 f1 cmp %esi,%ecx
7ba: 73 72 jae 82e <malloc+0x9e>
7bc: 81 fe 00 10 00 00 cmp $0x1000,%esi
7c2: bb 00 10 00 00 mov $0x1000,%ebx
7c7: 0f 43 de cmovae %esi,%ebx
p = sbrk(nu * sizeof(Header));
7ca: 8d 04 dd 00 00 00 00 lea 0x0(,%ebx,8),%eax
7d1: 89 45 e4 mov %eax,-0x1c(%ebp)
7d4: eb 1b jmp 7f1 <malloc+0x61>
7d6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
7dd: 8d 76 00 lea 0x0(%esi),%esi
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
7e0: 8b 02 mov (%edx),%eax
if(p->s.size >= nunits){
7e2: 8b 48 04 mov 0x4(%eax),%ecx
7e5: 39 f1 cmp %esi,%ecx
7e7: 73 4f jae 838 <malloc+0xa8>
7e9: 8b 3d 8c 0b 00 00 mov 0xb8c,%edi
7ef: 89 c2 mov %eax,%edx
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
7f1: 39 d7 cmp %edx,%edi
7f3: 75 eb jne 7e0 <malloc+0x50>
p = sbrk(nu * sizeof(Header));
7f5: 83 ec 0c sub $0xc,%esp
7f8: ff 75 e4 pushl -0x1c(%ebp)
7fb: e8 e9 fb ff ff call 3e9 <sbrk>
if(p == (char*)-1)
800: 83 c4 10 add $0x10,%esp
803: 83 f8 ff cmp $0xffffffff,%eax
806: 74 1c je 824 <malloc+0x94>
hp->s.size = nu;
808: 89 58 04 mov %ebx,0x4(%eax)
free((void*)(hp + 1));
80b: 83 ec 0c sub $0xc,%esp
80e: 83 c0 08 add $0x8,%eax
811: 50 push %eax
812: e8 e9 fe ff ff call 700 <free>
return freep;
817: 8b 15 8c 0b 00 00 mov 0xb8c,%edx
if((p = morecore(nunits)) == 0)
81d: 83 c4 10 add $0x10,%esp
820: 85 d2 test %edx,%edx
822: 75 bc jne 7e0 <malloc+0x50>
return 0;
}
}
824: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
827: 31 c0 xor %eax,%eax
}
829: 5b pop %ebx
82a: 5e pop %esi
82b: 5f pop %edi
82c: 5d pop %ebp
82d: c3 ret
if(p->s.size >= nunits){
82e: 89 d0 mov %edx,%eax
830: 89 fa mov %edi,%edx
832: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(p->s.size == nunits)
838: 39 ce cmp %ecx,%esi
83a: 74 54 je 890 <malloc+0x100>
p->s.size -= nunits;
83c: 29 f1 sub %esi,%ecx
83e: 89 48 04 mov %ecx,0x4(%eax)
p += p->s.size;
841: 8d 04 c8 lea (%eax,%ecx,8),%eax
p->s.size = nunits;
844: 89 70 04 mov %esi,0x4(%eax)
freep = prevp;
847: 89 15 8c 0b 00 00 mov %edx,0xb8c
}
84d: 8d 65 f4 lea -0xc(%ebp),%esp
return (void*)(p + 1);
850: 83 c0 08 add $0x8,%eax
}
853: 5b pop %ebx
854: 5e pop %esi
855: 5f pop %edi
856: 5d pop %ebp
857: c3 ret
858: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
85f: 90 nop
base.s.ptr = freep = prevp = &base;
860: c7 05 8c 0b 00 00 90 movl $0xb90,0xb8c
867: 0b 00 00
base.s.size = 0;
86a: bf 90 0b 00 00 mov $0xb90,%edi
base.s.ptr = freep = prevp = &base;
86f: c7 05 90 0b 00 00 90 movl $0xb90,0xb90
876: 0b 00 00
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
879: 89 fa mov %edi,%edx
base.s.size = 0;
87b: c7 05 94 0b 00 00 00 movl $0x0,0xb94
882: 00 00 00
if(p->s.size >= nunits){
885: e9 32 ff ff ff jmp 7bc <malloc+0x2c>
88a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
prevp->s.ptr = p->s.ptr;
890: 8b 08 mov (%eax),%ecx
892: 89 0a mov %ecx,(%edx)
894: eb b1 jmp 847 <malloc+0xb7>
|
; A168919: Number of reduced words of length n in Coxeter group on 50 generators S_i with relations (S_i)^2 = (S_i S_j)^21 = I.
; 1,50,2450,120050,5882450,288240050,14123762450,692064360050,33911153642450,1661646528480050,81420679895522450,3989613314880600050,195491052429149402450,9579061569028320720050,469374016882387715282450
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
div $3,$2
mul $2,49
lpe
mov $0,$2
div $0,49
|
/**
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "TESProcess.h"
#include "BaseLib/Functional.h"
#include "NumLib/DOF/DOFTableUtil.h"
#include "ProcessLib/Utils/CreateLocalAssemblers.h"
namespace ProcessLib
{
namespace TES
{
TESProcess::TESProcess(
MeshLib::Mesh& mesh,
std::unique_ptr<AbstractJacobianAssembler>&& jacobian_assembler,
std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const& parameters,
unsigned const integration_order,
std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
process_variables,
SecondaryVariableCollection&& secondary_variables,
NumLib::NamedFunctionCaller&& named_function_caller,
const BaseLib::ConfigTree& config)
: Process(mesh, std::move(jacobian_assembler), parameters,
integration_order, std::move(process_variables),
std::move(secondary_variables), std::move(named_function_caller))
{
DBUG("Create TESProcess.");
// physical parameters for local assembly
{
std::vector<std::pair<std::string, double*>> params{
//! \ogs_file_param_special{prj__processes__process__TES__fluid_specific_heat_source}
{"fluid_specific_heat_source",
&_assembly_params.fluid_specific_heat_source},
//! \ogs_file_param_special{prj__processes__process__TES__fluid_specific_isobaric_heat_capacity}
{"fluid_specific_isobaric_heat_capacity", &_assembly_params.cpG},
//! \ogs_file_param_special{prj__processes__process__TES__solid_specific_heat_source}
{"solid_specific_heat_source",
&_assembly_params.solid_specific_heat_source},
//! \ogs_file_param_special{prj__processes__process__TES__solid_heat_conductivity}
{"solid_heat_conductivity", &_assembly_params.solid_heat_cond},
//! \ogs_file_param_special{prj__processes__process__TES__solid_specific_isobaric_heat_capacity}
{"solid_specific_isobaric_heat_capacity", &_assembly_params.cpS},
//! \ogs_file_param_special{prj__processes__process__TES__tortuosity}
{"tortuosity", &_assembly_params.tortuosity},
//! \ogs_file_param_special{prj__processes__process__TES__diffusion_coefficient}
{"diffusion_coefficient",
&_assembly_params.diffusion_coefficient_component},
//! \ogs_file_param_special{prj__processes__process__TES__porosity}
{"porosity", &_assembly_params.poro},
//! \ogs_file_param_special{prj__processes__process__TES__solid_density_dry}
{"solid_density_dry", &_assembly_params.rho_SR_dry},
//! \ogs_file_param_special{prj__processes__process__TES__solid_density_initial}
{"solid_density_initial", &_assembly_params.initial_solid_density}};
for (auto const& p : params)
{
if (auto const par =
//! \ogs_file_special
config.getConfigParameterOptional<double>(p.first))
{
DBUG("setting parameter `%s' to value `%g'", p.first.c_str(),
*par);
*p.second = *par;
}
}
}
// characteristic values of primary variables
{
std::vector<std::pair<std::string, Trafo*>> const params{
//! \ogs_file_param_special{prj__processes__process__TES__characteristic_pressure}
{"characteristic_pressure", &_assembly_params.trafo_p},
//! \ogs_file_param_special{prj__processes__process__TES__characteristic_temperature}
{"characteristic_temperature", &_assembly_params.trafo_T},
//! \ogs_file_param_special{prj__processes__process__TES__characteristic_vapour_mass_fraction}
{"characteristic_vapour_mass_fraction", &_assembly_params.trafo_x}};
for (auto const& p : params)
{
if (auto const par =
//! \ogs_file_special
config.getConfigParameterOptional<double>(p.first))
{
INFO("setting parameter `%s' to value `%g'", p.first.c_str(),
*par);
*p.second = Trafo{*par};
}
}
}
// permeability
if (auto par =
//! \ogs_file_param{prj__processes__process__TES__solid_hydraulic_permeability}
config.getConfigParameterOptional<double>("solid_hydraulic_permeability"))
{
DBUG(
"setting parameter `solid_hydraulic_permeability' to isotropic "
"value `%g'",
*par);
const auto dim = mesh.getDimension();
_assembly_params.solid_perm_tensor =
Eigen::MatrixXd::Identity(dim, dim) * (*par);
}
// reactive system
_assembly_params.react_sys = Adsorption::AdsorptionReaction::newInstance(
//! \ogs_file_param{prj__processes__process__TES__reactive_system}
config.getConfigSubtree("reactive_system"));
// debug output
if (auto const param =
//! \ogs_file_param{prj__processes__process__TES__output_element_matrices}
config.getConfigParameterOptional<bool>("output_element_matrices"))
{
DBUG("output_element_matrices: %s", (*param) ? "true" : "false");
_assembly_params.output_element_matrices = *param;
}
// TODO somewhere else
/*
if (auto const param =
//! \ogs_file_param{prj__processes__process__TES__output_global_matrix}
config.getConfigParameterOptional<bool>("output_global_matrix"))
{
DBUG("output_global_matrix: %s", (*param) ? "true" : "false");
this->_process_output.output_global_matrix = *param;
}
*/
}
void TESProcess::initializeConcreteProcess(
NumLib::LocalToGlobalIndexMap const& dof_table,
MeshLib::Mesh const& mesh, unsigned const integration_order)
{
const int monolithic_process_id = 0;
ProcessLib::ProcessVariable const& pv =
getProcessVariables(monolithic_process_id)[0];
ProcessLib::createLocalAssemblers<TESLocalAssembler>(
mesh.getDimension(), mesh.getElements(), dof_table,
pv.getShapeFunctionOrder(), _local_assemblers,
mesh.isAxiallySymmetric(), integration_order, _assembly_params);
initializeSecondaryVariables();
}
void TESProcess::initializeSecondaryVariables()
{
// adds a secondary variables to the collection of all secondary variables.
auto add2nd = [&](std::string const& var_name,
SecondaryVariableFunctions&& fcts) {
_secondary_variables.addSecondaryVariable(var_name, std::move(fcts));
};
// creates an extrapolator
auto makeEx = [&](
unsigned const n_components,
std::vector<double> const& (TESLocalAssemblerInterface::*method)(
const double /*t*/,
GlobalVector const& /*current_solution*/,
NumLib::LocalToGlobalIndexMap const& /*dof_table*/,
std::vector<double>& /*cache*/)
const) -> SecondaryVariableFunctions {
return ProcessLib::makeExtrapolator(n_components, getExtrapolator(),
_local_assemblers, method);
};
// named functions: vapour partial pressure ////////////////////////////////
auto p_V_fct = [=](const double p, const double x_mV) {
const double x_nV = Adsorption::AdsorptionReaction::getMolarFraction(
x_mV, _assembly_params.M_react, _assembly_params.M_inert);
return p*x_nV;
};
_named_function_caller.addNamedFunction(
{"vapour_partial_pressure",
{"pressure", "vapour_mass_fraction"},
BaseLib::easyBind(std::move(p_V_fct))});
_named_function_caller.plug("vapour_partial_pressure", "pressure",
"TES_pressure");
_named_function_caller.plug("vapour_partial_pressure",
"vapour_mass_fraction",
"TES_vapour_mass_fraction");
// /////////////////////////////////////////////////////////////////////////
// named functions: solid density //////////////////////////////////////////
auto solid_density = std::make_unique<CachedSecondaryVariable>(
"TES_solid_density", getExtrapolator(), _local_assemblers,
&TESLocalAssemblerInterface::getIntPtSolidDensity,
_secondary_variable_context);
for (auto&& fct : solid_density->getNamedFunctions())
{
_named_function_caller.addNamedFunction(std::move(fct));
}
add2nd("solid_density", solid_density->getExtrapolator());
_cached_secondary_variables.emplace_back(std::move(solid_density));
// /////////////////////////////////////////////////////////////////////////
add2nd("reaction_rate",
makeEx(1, &TESLocalAssemblerInterface::getIntPtReactionRate));
add2nd("darcy_velocity",
makeEx(_mesh.getDimension(),
&TESLocalAssemblerInterface::getIntPtDarcyVelocity));
add2nd("loading", makeEx(1, &TESLocalAssemblerInterface::getIntPtLoading));
add2nd(
"reaction_damping_factor",
makeEx(1, &TESLocalAssemblerInterface::getIntPtReactionDampingFactor));
add2nd("relative_humidity",
{1, BaseLib::easyBind(&TESProcess::computeRelativeHumidity, this),
nullptr});
add2nd("equilibrium_loading",
{1, BaseLib::easyBind(&TESProcess::computeEquilibriumLoading, this),
nullptr});
}
void TESProcess::assembleConcreteProcess(const double t,
GlobalVector const& x,
GlobalMatrix& M,
GlobalMatrix& K,
GlobalVector& b)
{
DBUG("Assemble TESProcess.");
std::vector<std::reference_wrapper<NumLib::LocalToGlobalIndexMap>>
dof_table = {std::ref(*_local_to_global_index_map)};
const int process_id =
_use_monolithic_scheme ? 0 : _coupled_solutions->process_id;
ProcessLib::ProcessVariable const& pv = getProcessVariables(process_id)[0];
// Call global assembler for each local assembly item.
GlobalExecutor::executeSelectedMemberDereferenced(
_global_assembler, &VectorMatrixAssembler::assemble, _local_assemblers,
pv.getActiveElementIDs(), dof_table, t, x, M, K, b,
_coupled_solutions);
}
void TESProcess::assembleWithJacobianConcreteProcess(
const double t, GlobalVector const& x, GlobalVector const& xdot,
const double dxdot_dx, const double dx_dx, GlobalMatrix& M, GlobalMatrix& K,
GlobalVector& b, GlobalMatrix& Jac)
{
std::vector<std::reference_wrapper<NumLib::LocalToGlobalIndexMap>>
dof_table = {std::ref(*_local_to_global_index_map)};
const int process_id =
_use_monolithic_scheme ? 0 : _coupled_solutions->process_id;
ProcessLib::ProcessVariable const& pv = getProcessVariables(process_id)[0];
// Call global assembler for each local assembly item.
GlobalExecutor::executeSelectedMemberDereferenced(
_global_assembler, &VectorMatrixAssembler::assembleWithJacobian,
_local_assemblers, pv.getActiveElementIDs(), dof_table, t, x,
xdot, dxdot_dx, dx_dx, M, K, b, Jac, _coupled_solutions);
}
void TESProcess::preTimestepConcreteProcess(GlobalVector const& x,
const double t,
const double delta_t,
const int /*process_id*/)
{
DBUG("new timestep");
_assembly_params.delta_t = delta_t;
_assembly_params.current_time = t;
++_assembly_params.timestep; // TODO remove that
_x_previous_timestep =
MathLib::MatrixVectorTraits<GlobalVector>::newInstance(x);
}
void TESProcess::preIterationConcreteProcess(const unsigned iter,
GlobalVector const& /*x*/)
{
_assembly_params.iteration_in_current_timestep = iter;
++_assembly_params.total_iteration;
++_assembly_params.number_of_try_of_iteration;
}
NumLib::IterationResult TESProcess::postIterationConcreteProcess(
GlobalVector const& x)
{
bool check_passed = true;
if (!Trafo::constrained)
{
// bounds checking only has to happen if the vapour mass fraction is
// non-logarithmic.
std::vector<GlobalIndexType> indices_cache;
std::vector<double> local_x_cache;
std::vector<double> local_x_prev_ts_cache;
MathLib::LinAlg::setLocalAccessibleVector(*_x_previous_timestep);
auto check_variable_bounds = [&](std::size_t id,
TESLocalAssemblerInterface& loc_asm) {
auto const r_c_indices = NumLib::getRowColumnIndices(
id, *this->_local_to_global_index_map, indices_cache);
local_x_cache = x.get(r_c_indices.rows);
local_x_prev_ts_cache = _x_previous_timestep->get(r_c_indices.rows);
if (!loc_asm.checkBounds(local_x_cache, local_x_prev_ts_cache))
{
check_passed = false;
}
};
GlobalExecutor::executeDereferenced(check_variable_bounds,
_local_assemblers);
}
if (!check_passed)
{
return NumLib::IterationResult::REPEAT_ITERATION;
}
// TODO remove
DBUG("ts %lu iteration %lu (in current ts: %lu) try %u accepted",
_assembly_params.timestep, _assembly_params.total_iteration,
_assembly_params.iteration_in_current_timestep,
_assembly_params.number_of_try_of_iteration);
_assembly_params.number_of_try_of_iteration = 0;
return NumLib::IterationResult::SUCCESS;
}
GlobalVector const& TESProcess::computeVapourPartialPressure(
const double /*t*/,
GlobalVector const& x,
NumLib::LocalToGlobalIndexMap const& dof_table,
std::unique_ptr<GlobalVector>& result_cache)
{
assert(&dof_table == _local_to_global_index_map.get());
auto const& dof_table_single = getSingleComponentDOFTable();
result_cache = MathLib::MatrixVectorTraits<GlobalVector>::newInstance(
{dof_table_single.dofSizeWithoutGhosts(),
dof_table_single.dofSizeWithoutGhosts(),
&dof_table_single.getGhostIndices(), nullptr});
GlobalIndexType const nnodes = _mesh.getNumberOfNodes();
for (GlobalIndexType node_id = 0; node_id < nnodes; ++node_id)
{
auto const p = NumLib::getNodalValue(x, _mesh, dof_table, node_id,
COMPONENT_ID_PRESSURE);
auto const x_mV = NumLib::getNodalValue(x, _mesh, dof_table, node_id,
COMPONENT_ID_MASS_FRACTION);
auto const x_nV = Adsorption::AdsorptionReaction::getMolarFraction(
x_mV, _assembly_params.M_react, _assembly_params.M_inert);
result_cache->set(node_id, p * x_nV);
}
return *result_cache;
}
GlobalVector const& TESProcess::computeRelativeHumidity(
double const /*t*/,
GlobalVector const& x,
NumLib::LocalToGlobalIndexMap const& dof_table,
std::unique_ptr<GlobalVector>& result_cache)
{
assert(&dof_table == _local_to_global_index_map.get());
auto const& dof_table_single = getSingleComponentDOFTable();
result_cache = MathLib::MatrixVectorTraits<GlobalVector>::newInstance(
{dof_table_single.dofSizeWithoutGhosts(),
dof_table_single.dofSizeWithoutGhosts(),
&dof_table_single.getGhostIndices(), nullptr});
GlobalIndexType const nnodes = _mesh.getNumberOfNodes();
for (GlobalIndexType node_id = 0; node_id < nnodes; ++node_id)
{
auto const p = NumLib::getNodalValue(x, _mesh, dof_table, node_id,
COMPONENT_ID_PRESSURE);
auto const T = NumLib::getNodalValue(x, _mesh, dof_table, node_id,
COMPONENT_ID_TEMPERATURE);
auto const x_mV = NumLib::getNodalValue(x, _mesh, dof_table, node_id,
COMPONENT_ID_MASS_FRACTION);
auto const x_nV = Adsorption::AdsorptionReaction::getMolarFraction(
x_mV, _assembly_params.M_react, _assembly_params.M_inert);
auto const p_S =
Adsorption::AdsorptionReaction::getEquilibriumVapourPressure(T);
result_cache->set(node_id, p * x_nV / p_S);
}
return *result_cache;
}
GlobalVector const& TESProcess::computeEquilibriumLoading(
double const /*t*/,
GlobalVector const& x,
NumLib::LocalToGlobalIndexMap const& dof_table,
std::unique_ptr<GlobalVector>& result_cache)
{
assert(&dof_table == _local_to_global_index_map.get());
auto const& dof_table_single = getSingleComponentDOFTable();
result_cache = MathLib::MatrixVectorTraits<GlobalVector>::newInstance(
{dof_table_single.dofSizeWithoutGhosts(),
dof_table_single.dofSizeWithoutGhosts(),
&dof_table_single.getGhostIndices(), nullptr});
GlobalIndexType const nnodes = _mesh.getNumberOfNodes();
for (GlobalIndexType node_id = 0; node_id < nnodes; ++node_id)
{
auto const p = NumLib::getNodalValue(x, _mesh, dof_table, node_id,
COMPONENT_ID_PRESSURE);
auto const T = NumLib::getNodalValue(x, _mesh, dof_table, node_id,
COMPONENT_ID_TEMPERATURE);
auto const x_mV = NumLib::getNodalValue(
x, _mesh, dof_table, node_id, COMPONENT_ID_MASS_FRACTION);
auto const x_nV = Adsorption::AdsorptionReaction::getMolarFraction(
x_mV, _assembly_params.M_react, _assembly_params.M_inert);
auto const p_V = p * x_nV;
auto const C_eq =
(p_V <= 0.0) ? 0.0
: _assembly_params.react_sys->getEquilibriumLoading(
p_V, T, _assembly_params.M_react);
result_cache->set(node_id, C_eq);
}
return *result_cache;
}
} // namespace TES
} // namespace ProcessLib
|
51_Header:
sHeaderInit ; Z80 offset is $C51B
sHeaderPatch 51_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 51_FM5, $00, $08
51_FM5:
sPatFM $00
ssModZ80 $01, $01, $E0, $14
dc.b nEb3, $09
sStop
51_Patches:
; Patch $00
; $3E
; $00, $05, $04, $04, $1F, $1F, $16, $16
; $00, $00, $00, $00, $00, $13, $11, $10
; $0F, $0F, $0F, $0F, $00, $80, $80, $80
spAlgorithm $06
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $00, $04, $05, $04
spRateScale $00, $00, $00, $00
spAttackRt $1F, $16, $1F, $16
spAmpMod $00, $00, $00, $00
spSustainRt $00, $00, $00, $00
spSustainLv $00, $00, $00, $00
spDecayRt $00, $11, $13, $10
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $00, $00, $00, $00
|
; A264448: a(n) = n*(n + 11)*(n + 22)*(n + 33)/24.
; 0,391,910,1575,2405,3420,4641,6090,7790,9765,12040,14641,17595,20930,24675,28860,33516,38675,44370,50635,57505,65016,73205,82110,91770,102225,113516,125685,138775,152830,167895,184016,201240,219615,239190,260015,282141,305620,330505
mov $1,10
mov $2,4
mov $3,$0
mov $4,11
lpb $2,1
mul $1,$3
sub $2,1
add $3,$4
lpe
div $1,240
|
origin $003F0000
text_menu:
gameMenu($05, "ARMAS ")
gameMenu($05, "ITENS ")
gameMenu($05, "HERÓI ")
gameMenu($04, "MAPA ")
gameMenu($06, "SALVAR ")
gameMenu($03, "OK? ")
status_menu:
gameStatusMenu($05, $0D, $08, "NÍVEL")
gameStatusMenu($05, $0D, $0A, "SAÚDE")
gameStatusMenu($01, $17, $0A, "/")
gameStatusMenu($05, $0D, $0C, "MAGIA")
gameStatusMenu($01, $17, $0C, "/")
gameStatusMenu($06, $0D, $0E, "ABATES")
origin $5CC04
status_menu_vars:
gameStatusMenuVar($03, $18, $08)
gameStatusMenuVar($03, $14, $0A)
gameStatusMenuVar($03, $18, $0A)
gameStatusMenuVar($03, $14, $0C)
gameStatusMenuVar($03, $18, $0C)
gameStatusMenuVar($05, $16, $0E)
origin $00384500
sound_menu:
gameSoundMenu("TESTE SONORO")
sound_menu_bgm:
gameSoundMenu("BGM")
sound_menu_sfx:
gameSoundMenu("SFX")
sound_menu_pcm:
gameSoundMenu("PCM")
sound_menu_exit:
gameSoundMenu("SAIR") |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "storage/browser/fileapi/quota/quota_reservation.h"
#include "base/bind.h"
#include "storage/browser/fileapi/quota/open_file_handle.h"
#include "storage/browser/fileapi/quota/quota_reservation_buffer.h"
namespace storage {
void QuotaReservation::RefreshReservation(
int64 size,
const StatusCallback& callback) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
DCHECK(!running_refresh_request_);
DCHECK(!client_crashed_);
if (!reservation_manager())
return;
running_refresh_request_ = true;
reservation_manager()->ReserveQuota(
origin(), type(), size - remaining_quota_,
base::Bind(&QuotaReservation::AdaptDidUpdateReservedQuota,
weak_ptr_factory_.GetWeakPtr(),
remaining_quota_, callback));
if (running_refresh_request_)
remaining_quota_ = 0;
}
scoped_ptr<OpenFileHandle> QuotaReservation::GetOpenFileHandle(
const base::FilePath& platform_path) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
DCHECK(!client_crashed_);
return reservation_buffer_->GetOpenFileHandle(this, platform_path);
}
void QuotaReservation::OnClientCrash() {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
client_crashed_ = true;
if (remaining_quota_) {
reservation_buffer_->PutReservationToBuffer(remaining_quota_);
remaining_quota_ = 0;
}
}
void QuotaReservation::ConsumeReservation(int64 size) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
DCHECK_LT(0, size);
DCHECK_LE(size, remaining_quota_);
if (client_crashed_)
return;
remaining_quota_ -= size;
reservation_buffer_->PutReservationToBuffer(size);
}
QuotaReservationManager* QuotaReservation::reservation_manager() {
return reservation_buffer_->reservation_manager();
}
const GURL& QuotaReservation::origin() const {
return reservation_buffer_->origin();
}
FileSystemType QuotaReservation::type() const {
return reservation_buffer_->type();
}
QuotaReservation::QuotaReservation(
QuotaReservationBuffer* reservation_buffer)
: client_crashed_(false),
running_refresh_request_(false),
remaining_quota_(0),
reservation_buffer_(reservation_buffer),
weak_ptr_factory_(this) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
}
QuotaReservation::~QuotaReservation() {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
if (remaining_quota_ && reservation_manager()) {
reservation_manager()->ReleaseReservedQuota(
origin(), type(), remaining_quota_);
}
}
// static
bool QuotaReservation::AdaptDidUpdateReservedQuota(
const base::WeakPtr<QuotaReservation>& reservation,
int64 previous_size,
const StatusCallback& callback,
base::File::Error error,
int64 delta) {
if (!reservation)
return false;
return reservation->DidUpdateReservedQuota(
previous_size, callback, error, delta);
}
bool QuotaReservation::DidUpdateReservedQuota(
int64 previous_size,
const StatusCallback& callback,
base::File::Error error,
int64 delta) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
DCHECK(running_refresh_request_);
running_refresh_request_ = false;
if (client_crashed_) {
callback.Run(base::File::FILE_ERROR_ABORT);
return false;
}
if (error == base::File::FILE_OK)
remaining_quota_ = previous_size + delta;
callback.Run(error);
return true;
}
} // namespace storage
|
lda ({z2}),y
sta {m1}
lda #0
sta {m1}+1
|
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
// ----------------------------------------------------------------------------
#include "tests/test_utility/Sort.h"
#include <algorithm>
#include "open3d/utility/Logging.h"
#include "tests/UnitTest.h"
namespace open3d {
namespace tests {
TEST(Sort, Sort) {
std::vector<Eigen::Vector3d> points{
{3, 3, 3},
{1, 1, 1},
{0, 0, 0},
{2, 2, 2},
};
std::vector<Eigen::Vector3d> sorted_points{
{0, 0, 0},
{1, 1, 1},
{2, 2, 2},
{3, 3, 3},
};
ExpectEQ(Sort(points), sorted_points);
}
TEST(Sort, SortWithIndices) {
std::vector<Eigen::Vector3d> points{
{3, 3, 3},
{1, 1, 1},
{0, 0, 0},
{2, 2, 2},
};
std::vector<Eigen::Vector3d> sorted_points{
{0, 0, 0},
{1, 1, 1},
{2, 2, 2},
{3, 3, 3},
};
std::vector<size_t> indices{2, 1, 3, 0};
ExpectEQ(SortWithIndices(points).first, sorted_points);
EXPECT_EQ(SortWithIndices(points).second, indices);
}
TEST(Sort, GetIndicesAToB) {
std::vector<Eigen::Vector3d> a{
{3, 3, 3},
{1, 1, 1},
{0, 0, 0},
{2, 2, 2},
};
std::vector<Eigen::Vector3d> b{
{2, 2, 2},
{0, 0, 0},
{1, 1, 1},
{3, 3, 3},
};
ExpectEQ(ApplyIndices(a, GetIndicesAToB(a, a)), a);
ExpectEQ(ApplyIndices(b, GetIndicesAToB(b, b)), b);
ExpectEQ(ApplyIndices(a, GetIndicesAToB(a, b)), b);
ExpectEQ(ApplyIndices(b, GetIndicesAToB(b, a)), a);
}
TEST(Sort, GetIndicesAToBClose) {
std::vector<Eigen::Vector3d> a{
{3, 3, 3},
{1, 1, 1},
{4, 4, 4},
{2, 2, 2},
};
std::vector<Eigen::Vector3d> b{
{2.00001, 2.00001, 2},
{4, 4.00001, 4},
{1.00001, 1, 1.00001},
{3, 3, 3.00001},
};
double threshold = 0.001;
ExpectEQ(ApplyIndices(a, GetIndicesAToB(a, a, threshold)), a, threshold);
ExpectEQ(ApplyIndices(b, GetIndicesAToB(b, b, threshold)), b, threshold);
ExpectEQ(ApplyIndices(a, GetIndicesAToB(a, b, threshold)), b, threshold);
ExpectEQ(ApplyIndices(b, GetIndicesAToB(b, a, threshold)), a, threshold);
}
} // namespace tests
} // namespace open3d
|
; A103480: Row sums of A103462.
; 1,2,4,7,13,28,72,217,741,2790,11388,49875,232781,1151928,6018800,33087221,190780229,1150653938,7241710948,47454745823,323154696205,2282779990516,16700904488728,126356632390321,987303454928997
mov $4,$0
lpb $0
sub $0,1
mov $2,$0
add $3,1
pow $2,$3
add $1,$2
lpe
add $1,1
add $1,$4
mov $0,$1
|
TITLE id_util.asm - internal debug utilities
;***
;id_util.asm - internal debug utilities
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
; Utilities used for non-RELEASE versions of the common runtime.
;
;****************************************************************************
INCLUDE switch.inc
INCLUDE rmacros.inc
end
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Dumb ASCII (Unformatted) Print Driver
FILE: dumbInfo.asm
AUTHOR: Dave Durran
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 8/30/93 Initial Revision
DESCRIPTION:
This file contains the device information for the dumb ASCII printer
Other Printers Supported by this resource:
$Id: dumbInfo.asm,v 1.1 97/04/18 11:56:43 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
;----------------------------------------------------------------------------
; Dumb ASCII
;----------------------------------------------------------------------------
dumbInfo segment resource
; info blocks
PrinterInfo < ; ---- PrinterType -------------
< PT_RASTER,
BMF_MONO >,
; ---- PrinterConnections ------
< IC_NO_IEEE488,
CC_NO_CUSTOM,
SC_NO_SCSI,
RC_RS232C,
CC_CENTRONICS,
FC_FILE,
AC_NO_APPLETALK >,
; ---- PrinterSmarts -----------
PS_DUMB_RASTER,
;-------Custom Entry Routine-------
NULL,
;-------Custom Exit Routine-------
NULL,
; ---- Mode Info Offsets -------
NULL,
NULL,
NULL,
NULL,
offset printerFontInfo:dumbnlq,
; ---- Font Geometry -----------
offset dumbfontGeometries,
; ---- Symbol Set list -----------
NULL,
; ---- PaperMargins ------------
< PR_MARGIN_LEFT, ; Tractor Margins
PR_MARGIN_TRACTOR,
PR_MARGIN_RIGHT,
PR_MARGIN_TRACTOR >,
< PR_MARGIN_LEFT, ; ASF Margins
PR_MARGIN_TOP,
PR_MARGIN_RIGHT,
PR_MARGIN_BOTTOM >,
; ---- PaperInputOptions -------
< MF_MANUAL1,
TF_TRACTOR1,
ASF_TRAY1 >,
; ---- PaperOutputOptions ------
< OC_NO_COPIES,
PS_REVERSE,
OD_SIMPLEX,
SO_NO_STAPLER,
OS_NO_SORTER,
OB_NO_OUTPUTBIN >,
;
612, ; paper width (points).
NULL, ; Main UI
NoSettingsDialogBox,; Options UI
PrintEvalDummyASF ; UI eval Routine
>
;----------------------------------------------------------------------------
; Text modes info
;----------------------------------------------------------------------------
;need to add geometries in ascending pointsize, grouped by font
dumbfontGeometries FontGeometry \
< FID_DTC_URW_ROMAN,
12,
offset dumb_12ptpitchTab >
word FID_INVALID ;table terminator
dumb_12ptpitchTab label byte
byte TP_10_PITCH
byte TP_PROPORTIONAL ;"table Terminator"
dumbInfo ends
|
; A310372: Coordination sequence Gal.4.52.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,4,10,14,18,22,28,32,36,42,46,50,54,60,64,68,74,78,82,86,92,96,100,106,110,114,118,124,128,132,138,142,146,150,156,160,164,170,174,178,182,188,192,196,202,206,210,214,220,224
mov $2,$0
mul $0,2
mov $1,$0
add $0,4
add $2,1
mov $3,$2
lpb $0
sub $0,1
trn $0,6
add $1,4
add $1,$3
trn $1,6
add $1,$3
mov $3,2
lpe
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/quic/crypto/aes_128_gcm_decrypter.h"
#include <openssl/evp.h>
#include "base/memory/scoped_ptr.h"
#include "net/quic/crypto/scoped_evp_cipher_ctx.h"
using base::StringPiece;
namespace net {
namespace {
const size_t kKeySize = 16;
const size_t kNoncePrefixSize = 4;
const size_t kAuthTagSize = 16;
} // namespace
Aes128GcmDecrypter::Aes128GcmDecrypter() {}
// static
bool Aes128GcmDecrypter::IsSupported() { return true; }
bool Aes128GcmDecrypter::SetKey(StringPiece key) {
DCHECK_EQ(key.size(), sizeof(key_));
if (key.size() != sizeof(key_)) {
return false;
}
memcpy(key_, key.data(), key.size());
return true;
}
bool Aes128GcmDecrypter::SetNoncePrefix(StringPiece nonce_prefix) {
DCHECK_EQ(nonce_prefix.size(), kNoncePrefixSize);
if (nonce_prefix.size() != kNoncePrefixSize) {
return false;
}
memcpy(nonce_, nonce_prefix.data(), nonce_prefix.size());
return true;
}
bool Aes128GcmDecrypter::Decrypt(StringPiece nonce,
StringPiece associated_data,
StringPiece ciphertext,
unsigned char* output,
size_t* output_length) {
if (ciphertext.length() < kAuthTagSize ||
nonce.size() != kNoncePrefixSize + sizeof(QuicPacketSequenceNumber)) {
return false;
}
const size_t plaintext_size = ciphertext.length() - kAuthTagSize;
// |len| is passed to an OpenSSL function to receive the output length.
int len;
ScopedEVPCipherCtx ctx;
// Set the cipher type and the key. The IV (nonce) is set below.
if (EVP_DecryptInit_ex(ctx.get(), EVP_aes_128_gcm(), NULL, key_, NULL) == 0) {
return false;
}
// Set the IV (nonce) length.
if (EVP_CIPHER_CTX_ctrl(ctx.get(), EVP_CTRL_GCM_SET_IVLEN, nonce.size(),
NULL) == 0) {
return false;
}
// Set the IV (nonce).
if (EVP_DecryptInit_ex(
ctx.get(), NULL, NULL, NULL,
reinterpret_cast<const unsigned char*>(nonce.data())) == 0) {
return false;
}
// Set the authentication tag.
if (EVP_CIPHER_CTX_ctrl(
ctx.get(), EVP_CTRL_GCM_SET_TAG, kAuthTagSize,
const_cast<char*>(ciphertext.data()) + plaintext_size) == 0) {
return false;
}
// If we pass a NULL, zero-length associated data to OpenSSL then it breaks.
// Thus we only set non-empty associated data.
if (!associated_data.empty()) {
// Set the associated data. The second argument (output buffer) must be
// NULL.
if (EVP_DecryptUpdate(
ctx.get(), NULL, &len,
reinterpret_cast<const unsigned char*>(associated_data.data()),
associated_data.size()) == 0) {
return false;
}
}
if (EVP_DecryptUpdate(
ctx.get(), output, &len,
reinterpret_cast<const unsigned char*>(ciphertext.data()),
plaintext_size) == 0) {
return false;
}
output += len;
if (EVP_DecryptFinal_ex(ctx.get(), output, &len) == 0) {
return false;
}
output += len;
*output_length = plaintext_size;
return true;
}
QuicData* Aes128GcmDecrypter::DecryptPacket(
QuicPacketSequenceNumber sequence_number,
StringPiece associated_data,
StringPiece ciphertext) {
COMPILE_ASSERT(sizeof(nonce_) == kNoncePrefixSize + sizeof(sequence_number),
incorrect_nonce_size);
if (ciphertext.length() < kAuthTagSize) {
return NULL;
}
size_t plaintext_size;
scoped_ptr<char[]> plaintext(new char[ciphertext.length()]);
memcpy(nonce_ + kNoncePrefixSize, &sequence_number, sizeof(sequence_number));
if (!Decrypt(StringPiece(reinterpret_cast<char*>(nonce_), sizeof(nonce_)),
associated_data, ciphertext,
reinterpret_cast<unsigned char*>(plaintext.get()),
&plaintext_size)) {
return NULL;
}
return new QuicData(plaintext.release(), plaintext_size, true);
}
StringPiece Aes128GcmDecrypter::GetKey() const {
return StringPiece(reinterpret_cast<const char*>(key_), sizeof(key_));
}
StringPiece Aes128GcmDecrypter::GetNoncePrefix() const {
return StringPiece(reinterpret_cast<const char*>(nonce_), kNoncePrefixSize);
}
} // namespace net
|
;;----------------------------------------------------------------------------;;
;; Char to upper case for familar wiki search function.
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;----------------------------------------------------------------------------;;
.org 0x020CBE78
.area 0x64
@toUpper:
; Alphabet
CMP R1, 'z'
BGT @accents
CMP R1, 'a'
SUBGE R1, #0x20
; Accents
@accents:
CMP R1, #0xAC ; 'ú'
BGT @specialChars
CMP R1, #0xA8 ; 'á'
SUBGE R1, #0x05
@specialChars:
CMP R1, #0xAD ; 'ñ'
ADDEQ R1, #1
CMP R1, #0xAF ; 'ü'
ADDEQ R1, #1
@end:
BX LR
.endarea
|
#include "pxlpch.h"
#include "Application.h"
#include "Pixel/Event/ApplicationEvent.h"
#include "Pixel/Log.h"
namespace Pxl {
Application::Application()
{
}
Application::~Application()
{
}
void Application::Run()
{
WindowResizeEvent e(1280, 720);
PXL_TRACE(e);
while (true);
}
}
|
; A236185: Differences between terms of compacting Eratosthenes sieve for prime(4) = 7.
; 4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2,6,4,2,4,2,4,6,2
mod $0,8
mov $2,2
mov $3,$0
mod $3,2
mov $4,$0
add $4,$0
add $0,1
mov $1,2
mov $5,1
mul $5,$3
mov $6,$4
div $6,9
add $5,$6
mul $5,6
sub $5,5
sub $2,$5
lpb $0
div $0,$2
add $1,1
lpe
sub $1,2
mul $1,2
add $1,2
|
; A130526: A permutation of the integers induced by the lower and upper Wythoff sequences.
; 0,1,-1,2,3,-2,4,-3,5,6,-4,7,8,-5,9,-6,10,11,-7,12,-8,13,14,-9,15,16,-10,17,-11,18,19,-12,20,21,-13,22,-14,23,24,-15,25,-16,26,27,-17,28,29,-18,30,-19,31,32,-20,33,-21,34,35,-22,36,37,-23,38,-24,39,40,-25,41,42,-26
mov $2,$0
cal $0,19444 ; a_1, a_2, ..., is a permutation of the positive integers such that the average of each initial segment is an integer, using the greedy algorithm to define a_n.
sub $0,1
sub $0,$2
mul $0,2
mov $1,$0
div $1,2
|
; A188083: [nr+kr]-[nr]-[kr], where r=sqrt(3), k=2, [ ]=floor.
; 1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0
add $0,2
seq $0,188071 ; [nr]-[kr]-[nr-kr], where r=sqrt(3), k=2, [ ]=floor.
|
global _start
section .data
align 16
myquad:
dq 0x1234567890abcdef
mydword:
dd 0xcafebabe
myaddress:
dd 0xdeadbeef
%include "header.inc"
movd mm0, [mydword]
movd [myaddress], mm0
movd mm1, [myaddress]
movd eax, mm0
movd mm4, eax
mov eax, 0x42
movd mm6, eax
%include "footer.inc"
|
#include <vector>
#include <string>
#include <map>
#include <list>
#include <ros/ros.h>
#include <tf/tf.h>
#include <tf/transform_listener.h>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <nav_msgs/OccupancyGrid.h>
#include <nav_msgs/Path.h>
#include <geometry_msgs/PoseStamped.h>
#include <std_msgs/Float32.h>
#include <math.h>
#define FREE 0xFF
#define UNKNOWN 0x80
#define OCCUPIED 0x00
#define WIN_SIZE 800
class SignalWifiManagement{
protected:
float signalWifi;
cv::Point3i robotPosition;
public:
SignalWifiManagement(){
signalWifi=0;
robotPosition=cv::Point3i(0,0,0);
}
void setSignalWifi(float value){
signalWifi=value;
}
void setRobotPosition(cv::Point3i Position){
robotPosition=Position;
}
float getSignalWifi(){
return signalWifi;
}
cv::Point3i getRobotPosition(){
return robotPosition;
}
};
class OccupancyGridPlanner {
protected:
ros::NodeHandle nh_;
ros::Subscriber og_sub_;
ros::Subscriber target_sub_;
ros::Subscriber voltage_sub_; //Ajout monitoring battery
ros::Subscriber signal_sub_; //Signal subscriber
ros::Publisher path_pub_;
ros::Publisher goal_pub_; //project
tf::TransformListener listener_;
ros::Timer timer;
cv::Rect roi_;
cv::Mat_<uint8_t> og_, cropped_og_;
cv::Mat_<uint8_t> signalMap_, cropped_signal_;
cv::Mat_<cv::Vec3b> og_rgb_, og_rgb_marked_, signalMap__rgb_;
cv::Point3i og_center_;
std::vector<cv::Point2i> frontierPoints_;
nav_msgs::MapMetaData info_;
std::string frame_id_;
std::string base_link_;
unsigned int neighbourhood_;
bool ready;
bool debug;
double radius;
float voltage_robot;//Ajout monitoring battery
float signal_wifi;
typedef std::multimap<float, cv::Point3i> Heap;
//typedef std::multimap<float, cv::Point3i> SIGNAL_WIFI;
std::vector<SignalWifiManagement> signal_wifi_list;
//Find and store all frontierPoints in a 1 dim vector
void findFrontierPoints(cv::Mat_<uint8_t> og_){
int width=og_.size().width;
int height=og_.size().height;
//frontierPoints_.clear();
std::vector<cv::Point2i> frontierPoints_2;
frontierPoints_=frontierPoints_2;
for (size_t i = 0; i < height ; i++)
{
for (size_t j = 0; j < width; j++)
{
//if((og_(i,j)==FREE) && ((og_(i-1,j)==OCCUPIED) || (og_(i-1,j-1)==OCCUPIED) || (og_(i-1,j+1)==OCCUPIED) || (og_(i,j-1)==OCCUPIED)
// || (og_(i,j+1)==OCCUPIED) || (og_(i+1,j)==OCCUPIED) || (og_(i+1,j-11)==OCCUPIED) || (og_(i+1,j+1)==OCCUPIED) ))
if((og_(i,j)==FREE) && ((og_(i-1,j)==UNKNOWN) || (og_(i-1,j-1)==UNKNOWN) || (og_(i-1,j+1)==UNKNOWN) || (og_(i,j-1)==UNKNOWN)
|| (og_(i,j+1)==UNKNOWN) || (og_(i+1,j)==UNKNOWN) || (og_(i+1,j-1)==UNKNOWN) || (og_(i+1,j+1)==UNKNOWN) ))
{
cv::Point2i frontierPoint;
frontierPoint=cv::Point2i(j,i);
frontierPoints_.push_back(frontierPoint);
//if(frontierPoint.x>200){
// ROS_INFO("Frontier Point: %d %d",frontierPoint.x,frontierPoint.y);
//}
}
}
}
ROS_INFO("frontier point [0] = (%d, %d) ",frontierPoints_[0].x, frontierPoints_[0].y );
}
//Return the frontier point which is close to the Robot
cv::Point2i frontierPointCloseToRobot(const cv::Point3i & currP){
//float minDistanceToRobot= hypot(frontierPoints_[0].x - currP.x, frontierPoints_[0].y - currP.y);
float minDistanceToRobot=10000;
cv::Point2i closestFrontierPoint=frontierPoints_[0];
for (size_t i = 0; i < frontierPoints_.size(); i++)
{
float distance=hypot(frontierPoints_[i].x - currP.x, frontierPoints_[i].y - currP.y);
if((distance<minDistanceToRobot) && (distance>5)){
minDistanceToRobot=distance;
closestFrontierPoint=frontierPoints_[i];
}
}
ROS_INFO("closestFrontierPoint = (%d, %d) ",closestFrontierPoint.x, closestFrontierPoint.y );
return closestFrontierPoint;
//return frontierPoints_[0];
}
// Callback for Occupancy Grids
void og_callback(const nav_msgs::OccupancyGridConstPtr & msg) {
info_ = msg->info;
frame_id_ = msg->header.frame_id;
// Create an image to store the value of the grid.
og_ = cv::Mat_<uint8_t>(msg->info.height, msg->info.width,0xFF);
og_center_ = cv::Point3i(-info_.origin.position.x/info_.resolution,-info_.origin.position.y/info_.resolution,0);
// Some variables to select the useful bounding box
unsigned int maxx=0, minx=msg->info.width,
maxy=0, miny=msg->info.height;
// Convert the representation into something easy to display.
for (unsigned int j=0;j<msg->info.height;j++) {
for (unsigned int i=0;i<msg->info.width;i++) {
//"data" is not a matrice but a list which contains all the first column
//elements then the second column ...
int8_t v = msg->data[j*msg->info.width + i];
switch (v) {
case 0:
og_(j,i) = FREE; //OCCUPIED
break;
case 100:
og_(j,i) = OCCUPIED; //UNKNOWN
break;
case -1:
default:
og_(j,i) = UNKNOWN; //FREE
break;
}
// Update the bounding box of free or occupied cells.
if (og_(j,i) != UNKNOWN) {
minx = std::min(minx,i);
miny = std::min(miny,j);
maxx = std::max(maxx,i);
maxy = std::max(maxy,j);
}
}
}
ROS_INFO("MSG height , width : %d , %d ",msg->info.height ,msg->info.width);
//STEP 1
double dilation_size =radius/info_.resolution;
cv::Mat element = getStructuringElement(cv::MORPH_ELLIPSE ,//cv::MORPH_RECT
cv::Size( 2*dilation_size + 1, 2*dilation_size+1 ),
cv::Point( dilation_size, dilation_size ) );
// Apply the dilation on obstacles (= erosion of black cells)
cv::erode( og_, og_, element );
if (!ready) {
ready = true;
ROS_INFO("Received occupancy grid, ready to plan");
}
// The lines below are only for display
unsigned int w = maxx - minx;
unsigned int h = maxy - miny;
roi_ = cv::Rect(minx,miny,w,h);
cv::cvtColor(og_, og_rgb_, CV_GRAY2RGB);
//cv::cvtColor(signalMap_, signalMap__rgb_, CV_GRAY2RGB);
// Compute a sub-image that covers only the useful part of the
// grid.
cropped_og_ = cv::Mat_<uint8_t>(og_,roi_);
//cropped_signal_ = cv::Mat_<uint8_t>(og_,roi_);
/* if ((w > WIN_SIZE) || (h > WIN_SIZE)) {
// The occupancy grid is too large to display. We need to scale
// it first.
double ratio = w / ((double)h);
cv::Size new_size;
if (ratio >= 1) {
new_size = cv::Size(WIN_SIZE,WIN_SIZE/ratio);
} else {
new_size = cv::Size(WIN_SIZE*ratio,WIN_SIZE);
}
cv::Mat_<uint8_t> resized_og;
cv::resize(cropped_og_,resized_og,new_size);
cv::imshow( "OccGrid", resized_og );
//cv::Mat_<uint8_t> resized_signalMap;
//cv::resize(cropped_signal_,resized_signalMap,new_size);
//cv::imshow( "SignalMap", resized_signalMap );
} else {
// cv::imshow( "OccGrid", cropped_og_ );
cv::imshow( "OccGrid", og_rgb_ );
//cv::imshow( "SignalMap", signalMap__rgb_ );
}*/
cv::imshow( "OccGrid", og_rgb_ );
}
cv::Point point3iToPoint(const cv::Point3i & currPoint) {
return cv::Point(currPoint.x, currPoint.y);
}
// Generic test if a point is within the occupancy grid
bool isInGrid(const cv::Point3i & P) {
if ((P.x < 0) || (P.x >= (signed)info_.width)
|| (P.y < 0) || (P.y >= (signed)info_.height)) {
return false;
}
return true;
}
double heuristic(const cv::Point3i & currP, const cv::Point3i & goalP) {
return hypot(goalP.x - currP.x, goalP.y - currP.y);
}
// This is called when a new goal is posted by RViz. We don't use a
// mutex here, because it can only be called in spinOnce.
void target_callback(const geometry_msgs::PoseStampedConstPtr & msg) {
tf::StampedTransform transform;
geometry_msgs::PoseStamped pose;
if (!ready) {
ROS_WARN("Ignoring target while the occupancy grid has not been received");
return;
}
ROS_INFO("Received planning request");
og_rgb_marked_ = og_rgb_.clone();
// Convert the destination point in the occupancy grid frame.
// The debug case is useful is the map is published without
// gmapping running (for instance with map_server).
if (debug) {
pose = *msg;
} else {
// This converts target in the grid frame.
listener_.waitForTransform(frame_id_,msg->header.frame_id,msg->header.stamp,ros::Duration(1.0));
listener_.transformPose(frame_id_,*msg, pose);
// this gets the current pose in transform
listener_.lookupTransform(frame_id_,base_link_, ros::Time(0), transform);
}
cv::Point3i target;
double t_yaw;
//Ajout monitoring battery
if(voltage_robot<60.0){
// Now scale the target to the grid resolution and shift it to the
// grid center.
target = cv::Point3i(0,0,0)//manque une 3ème dimension
+ og_center_;
} else {
// Now scale the target to the grid resolution and shift it to the
// grid center.
t_yaw = tf::getYaw(pose.pose.orientation);
target = cv::Point3i(pose.pose.position.x / info_.resolution, pose.pose.position.y / info_.resolution,(unsigned int)round(t_yaw/(M_PI/4)) % 8)//manque une 3ème dimension
+ og_center_;
}
ROS_INFO("Planning target: %.2f %.2f -> %d %d",
pose.pose.position.x, pose.pose.position.y, target.x, target.y);
cv::circle(og_rgb_marked_,point3iToPoint(target), 10, cv::Scalar(0,0,255));
cv::imshow( "OccGrid", og_rgb_marked_ );
if (!isInGrid(target)) {
ROS_ERROR("Invalid target point (%.2f %.2f %.2f) -> (%d %d %d)",
pose.pose.position.x, pose.pose.position.y,t_yaw, target.x, target.y,target.z);
return;
}
// Only accept target which are FREE in the grid (HW, Step 5).
if (og_(point3iToPoint(target)) != FREE) {
//ROS_ERROR("Invalid target point: occupancy = %d",og_(point3iToPoint(target));
return;
}
// Now get the current point in grid coordinates.
cv::Point3i start;
double s_yaw = 0;
if (debug) {
start = og_center_;
} else {
s_yaw = tf::getYaw(transform.getRotation());
start = cv::Point3i(transform.getOrigin().x() / info_.resolution, transform.getOrigin().y() / info_.resolution,(unsigned int)round(s_yaw/(M_PI/4)) % 8)//manque une 3ème dimension
+ og_center_;
}
ROS_INFO("Planning origin %.2f %.2f %.2f -> %d %d %d",
transform.getOrigin().x(), transform.getOrigin().y(),s_yaw, start.x, start.y,start.z);
cv::circle(og_rgb_marked_,point3iToPoint(start), 10, cv::Scalar(0,255,0));
cv::imshow( "OccGrid", og_rgb_marked_ );
if (!isInGrid(start)) {
ROS_ERROR("Invalid starting point (%.2f %.2f %.2f) -> (%d %d %d)",
transform.getOrigin().x(), transform.getOrigin().y(),s_yaw, start.x, start.y,start.z);
return;
}
// If the starting point is not FREE there is a bug somewhere, but
// better to check
if (og_(point3iToPoint(start)) != FREE) {
//ROS_ERROR("Invalid start point: occupancy = %d",og_(point3iToPoint(start)));
return;
}
/****************************************************************************/
/*PROJECT:Store frontier points in a list and find closest poit to the Robot*/
/****************************************************************************/
//findFrontierPoints(og_);
//cv::Point2i minTarget= frontierPointCloseToRobot(start);
//ROS_INFO("Closest point to the Robot (%d %d)",minTarget.x,minTarget.y);
/********************************/
ROS_INFO("Starting planning from (%d, %d %d) to (%d, %d %d)",start.x,start.y,start.z, target.x, target.y,target.z);
// Here the Dijskstra algorithm starts
// The best distance to the goal computed so far. This is
// initialised with Not-A-Number.
int dimension[3]={og_.size().width, og_.size().height, 8};
cv::Mat_<float> cell_value(3,dimension, NAN);// this is a matrice with the same dim as "og_" and having float values
// For each cell we need to store a pointer to the coordinates of
// its best predecessor.
cv::Mat_<cv::Vec3s> predecessor(3,dimension);
// The neighbour of a given cell in relative coordinates. The order
// is important. If we use 4-connexity, then we can use only the
// first 4 values of the array. If we use 8-connexity we use the
// full array.
cv::Point3i neighbours[8][5]={
//Angle= 0
{cv::Point3i(1,0,0), cv::Point3i(1,1,1), cv::Point3i(1,-1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 45
{cv::Point3i(1,1,0), cv::Point3i(0,1,1), cv::Point3i(1,0,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 90
{cv::Point3i(0,1,0), cv::Point3i(-1,1,1), cv::Point3i(1,1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 135
{cv::Point3i(-1,1,0), cv::Point3i(-1,0,1), cv::Point3i(0,1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 180
{cv::Point3i(-1,0,0), cv::Point3i(-1,-1,1), cv::Point3i(-1,1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 225
{cv::Point3i(-1,-1,0), cv::Point3i(0,-1,1), cv::Point3i(-1,0,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 270
{cv::Point3i(0,-1,0), cv::Point3i(1,-1,1), cv::Point3i(-1,-1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 315
{cv::Point3i(1,-1,0), cv::Point3i(1,0,1), cv::Point3i(0,-1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)}
};
// Cost of displacement corresponding the neighbours. Diagonal
// moves are 44% longer.
// float cost[8] = {1, 1, 1, 1, sqrt(2), sqrt(2), sqrt(2), sqrt(2)};
float cost[2][5] = {{1, 1, 1, 2, 2},{sqrt(2), 1, 1, 2, 2}};
// The core of Dijkstra's Algorithm, a sorted heap, where the first
// element is always the closer to the start.
Heap heap;
heap.insert(Heap::value_type(heuristic(start,target), start)); // Heap::value_type(0, start)
cell_value(start.x,start.y,start.z) = 0;
while (!heap.empty()) {
// Select the cell at the top of the heap
Heap::iterator hit = heap.begin();
// the cell it contains is this_cell
cv::Point3i this_cell = hit->second;
// and its score is this_cost
float this_cost = hit->first;
// We can remove it from the heap now.
heap.erase(hit);
// Now see where we can go from this_cell
for (unsigned int i=0;i<neighbourhood_;i++) {//5
cv::Point3i dest = this_cell + neighbours[this_cell.z][i];
dest.z = (dest.z + 8) % 8;
if (!isInGrid(dest)) {
// outside the grid
continue;
}
uint8_t og = og_(point3iToPoint(dest));
if(og == OCCUPIED){ //(og != FREE) {
// occupied or unknown
continue;
}
float cv = cell_value(dest.x,dest.y,dest.z);
float new_cost = this_cost + ((i%2)==0)? (cost[0][i]) : (cost[1][i]); //condition ? result1 : result2 float new_cost = this_cost + cost[i]
if (isnan(cv) || (new_cost < cv)) {
// found shortest path (or new path), updating the
// predecessor and the value of the cell
predecessor.at<cv::Vec3s>(dest.x,dest.y,dest.z) = cv::Vec3s(this_cell.x,this_cell.y,this_cell.z);
cell_value(dest.x,dest.y,dest.z) = new_cost;
// And insert the selected cells in the map.
heap.insert(Heap::value_type(new_cost+heuristic(dest,target),dest)); // Heap::value_type(new_cost,dest)
}
}
}
if (isnan(cell_value(target.x,target.y,target.z))) {
// No path found
ROS_ERROR("No path found from (%d, %d) to (%d, %d)",start.x,start.y,start.z,target.x,target.y,target.z);
return;
}
ROS_INFO("Planning completed");
// Now extract the path by starting from goal and going through the
// predecessors until the starting point
std::list<cv::Point3i> lpath;
while (target != start) {
lpath.push_front(target);
cv::Vec3s p = predecessor(target.x,target.y,target.z);
target.x = p[0]; target.y = p[1], target.z=p[2];
}
lpath.push_front(start);
// Finally create a ROS path message
nav_msgs::Path path;
path.header.stamp = ros::Time::now();
path.header.frame_id = frame_id_;
path.poses.resize(lpath.size());
std::list<cv::Point3i>::const_iterator it = lpath.begin();
unsigned int ipose = 0;
while (it != lpath.end()) {
// time stamp is not updated because we're not creating a
// trajectory at this stage
path.poses[ipose].header = path.header;
cv::Point3i P = *it - og_center_;// Put the point "P" on the top-left of the box
path.poses[ipose].pose.position.x = (P.x) * info_.resolution;
path.poses[ipose].pose.position.y = (P.y) * info_.resolution;
tf::Quaternion q = tf::createQuaternionFromRPY(0,0,P.z*M_PI/4);
tf::quaternionTFToMsg(q, path.poses[ipose].pose.orientation);
//path.poses[ipose].pose.orientation.x = 0;
//path.poses[ipose].pose.orientation.y = 0;
//path.poses[ipose].pose.orientation.z = 0;
//path.poses[ipose].pose.orientation.w = 1;
ipose++;
it ++;
}
path_pub_.publish(path);
ROS_INFO("Request completed");
}
// This is called when a new goal is posted by RViz. We don't use a
// mutex here, because it can only be called in spinOnce.
void timer_callback(const ros::TimerEvent& e) {
if (!ready) {
ROS_WARN("Ignoring target while the occupancy grid has not been received");
return;
}
ROS_INFO("Received planning request in timer_callback");
// CALCULATE SATRT AND TARGET //
//--------------------------------------------------------------------------------------------------------------------//
cv::Point3i start;
double s_yaw = 0;
cv::Point3i target;
double t_yaw = 0;
tf::StampedTransform transform;
// this gets the current pose in transform
listener_.lookupTransform(frame_id_,base_link_, ros::Time(0), transform);
if (debug) {
start = og_center_;
}else{
s_yaw = tf::getYaw(transform.getRotation()) + M_PI;
start = cv::Point3i(transform.getOrigin().x() / info_.resolution, transform.getOrigin().y() / info_.resolution,(unsigned int)round(s_yaw/(M_PI/4)) % 8)
+ og_center_;
}
if (!isInGrid(start)) {
ROS_ERROR("Invalid starting point (%.2f %.2f %.2f) -> (%d %d %d)",
info_.origin.position.x, info_.origin.position.y,s_yaw, start.x, start.y,start.z);
return;
}
//Add battery minitoring
if(voltage_robot<60.0){
// Now scale the target to the grid resolution and shift it to the grid center.
target = cv::Point3i(0,0,0) + og_center_;
} else {
// Now scale the target to the grid resolution and shift it to the grid center.
findFrontierPoints(og_);
cv::Point2i minTarget= frontierPointCloseToRobot(start);
ROS_INFO("minTarget: (%d, %d)",minTarget.x,minTarget.y);
double alpha = remainder(atan2((minTarget.y-start.y),minTarget.x-start.x)-start.z,2*M_PI);// + M_PI
target = cv::Point3i(minTarget.x, minTarget.y,alpha+ M_PI); //+ og_center_; (unsigned int)round(alpha/(M_PI/4)) % 8 alpha
ROS_INFO("og_center : (%d , %d)",og_center_.x,og_center_.y);
}
ROS_INFO("start: (%d , %d , %d) --> target: (%d , %d, %d ) , voltage = %2f", start.x, start.y, start.z,
target.x, target.y, target.z, voltage_robot);
//--------------------------------------------------------------------------------------------------------------------------------//
//DISPLAY START AND TARGET ON THE OCCGRID MAP //
//--------------------------------------------------------------------------------------------------------------------------------//
og_rgb_marked_ = og_rgb_.clone();
cv::circle(og_rgb_marked_,point3iToPoint(start), 10, cv::Scalar(0,255,0));
cv::imshow( "OccGrid", og_rgb_marked_ );
cv::circle(og_rgb_marked_,point3iToPoint(target), 10, cv::Scalar(0,0,255),CV_FILLED);
cv::imshow( "OccGrid", og_rgb_marked_ );
for (size_t i = 0; i < frontierPoints_.size(); i++)
{
cv::circle(og_rgb_marked_,frontierPoints_[i], 1, cv::Scalar(0,255,0));
cv::imshow( "OccGrid", og_rgb_marked_ );
}
//STARTING PLANNING //
//---------------------------------------------------------------------------------------------------------------------------------//
// Here the Dijskstra algorithm starts
// The best distance to the goal computed so far. This is
// initialised with Not-A-Number.
int dimension[3]={og_.size().width, og_.size().height, 8};
cv::Mat_<float> cell_value(3,dimension, NAN);// this is a matrice with the same dim as "og_" and having float values
// For each cell we need to store a pointer to the coordinates of
// its best predecessor.
cv::Mat_<cv::Vec3s> predecessor(3,dimension);
// The neighbour of a given cell in relative coordinates. The order
// is important. If we use 4-connexity, then we can use only the
// first 4 values of the array. If we use 8-connexity we use the
// full array.
cv::Point3i neighbours[8][5]={
//Angle= 0
{cv::Point3i(1,0,0), cv::Point3i(1,1,1), cv::Point3i(1,-1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 45
{cv::Point3i(1,1,0), cv::Point3i(0,1,1), cv::Point3i(1,0,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 90
{cv::Point3i(0,1,0), cv::Point3i(-1,1,1), cv::Point3i(1,1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 135
{cv::Point3i(-1,1,0), cv::Point3i(-1,0,1), cv::Point3i(0,1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 180
{cv::Point3i(-1,0,0), cv::Point3i(-1,-1,1), cv::Point3i(-1,1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 225
{cv::Point3i(-1,-1,0), cv::Point3i(0,-1,1), cv::Point3i(-1,0,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 270
{cv::Point3i(0,-1,0), cv::Point3i(1,-1,1), cv::Point3i(-1,-1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)},
//Angle= 315
{cv::Point3i(1,-1,0), cv::Point3i(1,0,1), cv::Point3i(0,-1,-1), cv::Point3i(0,0,1), cv::Point3i(0,0,-1)}
};
// Cost of displacement corresponding the neighbours. Diagonal
// moves are 44% longer.
float cost[2][5] = {{1, 1, 1, 2, 2},{sqrt(2), 1, 1, 2, 2}};
// The core of Dijkstra's Algorithm, a sorted heap, where the first
// element is always the closer to the start.
Heap heap;
heap.insert(Heap::value_type(heuristic(start,target), start)); // Heap::value_type(0, start)
cell_value(start.x,start.y,start.z) = 0;
while (!heap.empty()) {
// Select the cell at the top of the heap
Heap::iterator hit = heap.begin();
// the cell it contains is this_cell
cv::Point3i this_cell = hit->second;
// and its score is this_cost
float this_cost = hit->first;
// We can remove it from the heap now.
heap.erase(hit);
// Now see where we can go from this_cell
for (unsigned int i=0;i<neighbourhood_;i++) {//5
cv::Point3i dest = this_cell + neighbours[this_cell.z][i];
dest.z = (dest.z + 8) % 8;
if (!isInGrid(dest)) {
// outside the grid
continue;
}
uint8_t og = og_(point3iToPoint(dest));
if(og == OCCUPIED){ //(og != FREE) {
// occupied or unknown
continue;
}
float cv = cell_value(dest.x,dest.y,dest.z);
float new_cost = this_cost + ((i%2)==0)? (cost[0][i]) : (cost[1][i]);
if (isnan(cv) || (new_cost < cv)) {
// found shortest path (or new path), updating the
// predecessor and the value of the cell
predecessor.at<cv::Vec3s>(dest.x,dest.y,dest.z) = cv::Vec3s(this_cell.x,this_cell.y,this_cell.z);
cell_value(dest.x,dest.y,dest.z) = new_cost;
// And insert the selected cells in the map.
heap.insert(Heap::value_type(new_cost+heuristic(dest,target),dest)); // Heap::value_type(new_cost,dest)
}
}
}
if (isnan(cell_value(target.x,target.y,target.z))) {
// No path found
ROS_ERROR("No path found from (%d, %d) to (%d, %d)",start.x,start.y,start.z,target.x,target.y,target.z);
return;
}
ROS_INFO("Planning completed");
// PUBLISH PATH //
//--------------------------------------------------------------------------------------------------------------------------//
// Now extract the path by starting from goal and going through the
// predecessors until the starting point
std::list<cv::Point3i> lpath;
while (target != start) {
lpath.push_front(target);
cv::Vec3s p = predecessor(target.x,target.y,target.z);
target.x = p[0]; target.y = p[1], target.z=p[2];
}
lpath.push_front(start);
// Finally create a ROS path message
nav_msgs::Path path;
path.header.stamp = ros::Time::now();
path.header.frame_id = frame_id_;
path.poses.resize(lpath.size());
std::list<cv::Point3i>::const_iterator it = lpath.begin();
unsigned int ipose = 0;
while (it != lpath.end()) {
// time stamp is not updated because we're not creating a
// trajectory at this stage
path.poses[ipose].header = path.header;
cv::Point3i P = *it - og_center_;// Put the point "P" on the top-left of the box
ROS_INFO("PUBLISH point = (%d , %d)",P.x,P.y);
path.poses[ipose].pose.position.x = (P.x) * info_.resolution;
path.poses[ipose].pose.position.y = (P.y) * info_.resolution;
tf::Quaternion q = tf::createQuaternionFromRPY(0,0,P.z*M_PI/4);
tf::quaternionTFToMsg(q, path.poses[ipose].pose.orientation);
//path.poses[ipose].pose.orientation.x = 0;
//path.poses[ipose].pose.orientation.y = 0;
//path.poses[ipose].pose.orientation.z = 0;
//path.poses[ipose].pose.orientation.w = 1;
ipose++;
it ++;
}
path_pub_.publish(path);
ROS_INFO("Request completed");
}
//Ajout monitoring battery
void voltage_callback(const std_msgs::Float32ConstPtr & msg) {
voltage_robot = msg->data;
}
void signal_callback(const std_msgs::Float32ConstPtr & msg) {
signal_wifi = msg->data;
//signal_wifi = static_cast<int>(signal_wifi*100);
signal_wifi=signal_wifi*100;
ROS_INFO("SIGNAL = %f",signal_wifi);
int width=og_.size().width;
int height=og_.size().height;
if (!ready) {
ROS_WARN("Ignoring target while the occupancy grid has not been received");
return;
}
ROS_INFO("Received planning request");
cv::Point3i start;
double s_yaw = 0;
tf::StampedTransform transform;
// this gets the current pose in transform
listener_.lookupTransform(frame_id_,base_link_, ros::Time(0), transform);
s_yaw = tf::getYaw(transform.getRotation()) + M_PI;
start = cv::Point3i(transform.getOrigin().x() / info_.resolution, transform.getOrigin().y() / info_.resolution,(unsigned int)round(s_yaw/(M_PI/4)) % 8)//manque une 3ème dimension
+ og_center_;
ROS_INFO("Actuel position = %d %d",transform.getOrigin().x() / info_.resolution,transform.getOrigin().y() / info_.resolution);
//Create singal map
//signalMap_=cv::Mat_<uint8_t>(height, width,0xFF);
//for (unsigned int j=0;j<height;j++) {
//for (unsigned int i=0;i<width;i++) {
//Set signal value in a 10 unit radius
//uint8_t u_signalWifi=signal_wifi;
//signalMap_(j,i)= u_signalWifi;
//ROS_INFO("SIGNALMAP value = %2f",u_signalWifi);
//}
//}
//Display
//SIGNAL_WIFI signal_wifi_point;
//signal_wifi_point.insert(Heap::value_type(signal_wifi,start));
//signal_wifi_list.push_back(signal_wifi_point);
SignalWifiManagement signalWifiManagement;
signalWifiManagement.setRobotPosition(start);
signalWifiManagement.setSignalWifi(signal_wifi);
signal_wifi_list.push_back(signalWifiManagement);
signalMap_=cv::Mat_<uint8_t>(height, width,0xFF);
cv::cvtColor(signalMap_, signalMap__rgb_, CV_GRAY2RGB);
//signalMap__rgb_ = og_rgb_.clone();
//cv::cvtColor(signalMap_, signalMap__rgb_, CV_BGR2Luv);
for (size_t i = 0; i < signal_wifi_list.size(); i++)
{
cv::Point3i robotPosition = signal_wifi_list[i].getRobotPosition();
float signal=signal_wifi_list[i].getSignalWifi();
signal=static_cast<int>(signal);
if(signal<30){
cv::circle(signalMap__rgb_,point3iToPoint(robotPosition), 10, cv::Scalar(signal,0,0),CV_FILLED);
}else if(signal>70){
cv::circle(signalMap__rgb_,point3iToPoint(robotPosition), 10, cv::Scalar(0,signal,0),CV_FILLED);
}else{
cv::circle(signalMap__rgb_,point3iToPoint(robotPosition), 10, cv::Scalar(0,0,signal),CV_FILLED);
}
}
cv::imshow( "SignalMap", signalMap__rgb_ );
//cv::imshow( "SignalMap", signalMap__rgb_ );
}
public:
OccupancyGridPlanner() : nh_("~") {
int nbour = 4;
ready = false;
nh_.param("base_frame",base_link_,std::string("/bubbleRob")); //body
nh_.param("debug",debug,false);
nh_.param("neighbourhood",nbour,nbour);
nh_.param("radius",radius,0.3);
//nbour = number possible movements from one box (4 or 8 (if diagonal mvt is allowed)
switch (nbour) {
case 4: neighbourhood_ = nbour; break;
case 5: neighbourhood_ = nbour; break;
case 8: neighbourhood_ = nbour; break;
default:
ROS_WARN("Invalid neighbourhood specification (%d instead of 4 or 8)",nbour);
neighbourhood_ = 8;
}
og_sub_ = nh_.subscribe("occ_grid",1,&OccupancyGridPlanner::og_callback,this);
//target_sub_ = nh_.subscribe("goal",1,&OccupancyGridPlanner::target_callback,this);
//Project step
voltage_sub_ = nh_.subscribe("voltage",1,&OccupancyGridPlanner::voltage_callback,this); //subscribe vrep/voltage
//signal_sub_ = nh_.subscribe("/vrep/signal",1,&OccupancyGridPlanner::signal_callback,this); //subscribe vrep/signal
path_pub_ = nh_.advertise<nav_msgs::Path>("path",1,true);
ros::Duration(0.5).sleep();
timer = nh_.createTimer(ros::Duration(10), &OccupancyGridPlanner::timer_callback,this);
}
};
int main(int argc, char * argv[]) {
ros::init(argc,argv,"occgrid_planner");
OccupancyGridPlanner ogp;
cv::namedWindow( "OccGrid", CV_WINDOW_AUTOSIZE );
while (ros::ok()) {
ros::spinOnce();
if (cv::waitKey( 50 )== 'q') {
ros::shutdown();
}
}
}
|
; A050403: Partial sums of A051877.
; Submitted by Jamie Morken(s1.)
; 1,13,70,252,714,1722,3696,7260,13299,23023,38038,60424,92820,138516,201552,286824,400197,548625,740278,984676,1292830,1677390,2152800,2735460,3443895,4298931,5323878,6544720,7990312,9692584,11686752,14011536,16709385,19826709,23414118,27526668,32224114,37571170,43637776,50499372,58237179,66938487,76696950,87612888,99793596,113353660,128415280,145108600,163572045,183952665,206406486,231098868,258204870,287909622,320408704,355908532,394626751,436792635,482647494,532445088,586452048,644948304
mov $2,$0
mul $0,7
add $0,7
add $2,5
mov $1,$2
bin $1,5
mul $0,$1
sub $0,$1
div $0,6
|
/**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*
* As a special exception, the copyright holders give permission to link the
* code of portions of this program with the OpenSSL library under certain
* conditions as described in each individual source file and distribute
* linked combinations including the program with the OpenSSL library. You
* must comply with the Server Side Public License in all respects for
* all of the code used other than as permitted herein. If you modify file(s)
* with this exception, you may extend this exception to your version of the
* file(s), but you are not obligated to do so. If you do not wish to do so,
* delete this exception statement from your version. If you delete this
* exception statement from all source files in the program, then also delete
* it in the license file.
*/
#include "mongo/platform/basic.h"
#include <memory>
#include <string>
#include <vector>
#include "mongo/base/status_with.h"
#include "mongo/client/remote_command_retry_scheduler.h"
#include "mongo/db/jsobj.h"
#include "mongo/executor/remote_command_response.h"
#include "mongo/executor/task_executor.h"
#include "mongo/executor/thread_pool_task_executor_test_fixture.h"
#include "mongo/logv2/log.h"
#include "mongo/unittest/task_executor_proxy.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/assert_util.h"
#include "mongo/util/net/hostandport.h"
#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest
namespace {
using namespace mongo;
using ResponseStatus = executor::TaskExecutor::ResponseStatus;
class CallbackResponseSaver;
class RemoteCommandRetrySchedulerTest : public executor::ThreadPoolExecutorTest {
public:
void start(RemoteCommandRetryScheduler* scheduler);
void checkCompletionStatus(RemoteCommandRetryScheduler* scheduler,
const CallbackResponseSaver& callbackResponseSaver,
const ResponseStatus& response);
void processNetworkResponse(const ResponseStatus& response);
void runReadyNetworkOperations();
protected:
void setUp() override;
};
class CallbackResponseSaver {
CallbackResponseSaver(const CallbackResponseSaver&) = delete;
CallbackResponseSaver& operator=(const CallbackResponseSaver&) = delete;
public:
CallbackResponseSaver();
/**
* Use this for scheduler callback.
*/
void operator()(const executor::TaskExecutor::RemoteCommandCallbackArgs& rcba);
std::vector<ResponseStatus> getResponses() const;
private:
std::vector<ResponseStatus> _responses;
};
/**
* Task executor proxy with fail point for scheduleRemoteCommand().
*/
class TaskExecutorWithFailureInScheduleRemoteCommand : public unittest::TaskExecutorProxy {
public:
TaskExecutorWithFailureInScheduleRemoteCommand(executor::TaskExecutor* executor)
: unittest::TaskExecutorProxy(executor) {}
virtual StatusWith<executor::TaskExecutor::CallbackHandle> scheduleRemoteCommandOnAny(
const executor::RemoteCommandRequestOnAny& request,
const RemoteCommandOnAnyCallbackFn& cb,
const BatonHandle& baton = nullptr) override {
if (scheduleRemoteCommandFailPoint) {
return Status(ErrorCodes::ShutdownInProgress,
"failed to send remote command - shutdown in progress");
}
return getExecutor()->scheduleRemoteCommandOnAny(request, cb, baton);
}
bool scheduleRemoteCommandFailPoint = false;
};
void RemoteCommandRetrySchedulerTest::start(RemoteCommandRetryScheduler* scheduler) {
ASSERT_FALSE(scheduler->isActive());
ASSERT_OK(scheduler->startup());
ASSERT_TRUE(scheduler->isActive());
// Starting an already active scheduler should fail.
ASSERT_EQUALS(ErrorCodes::IllegalOperation, scheduler->startup());
ASSERT_TRUE(scheduler->isActive());
auto net = getNet();
executor::NetworkInterfaceMock::InNetworkGuard guard(net);
ASSERT_TRUE(net->hasReadyRequests());
}
void RemoteCommandRetrySchedulerTest::checkCompletionStatus(
RemoteCommandRetryScheduler* scheduler,
const CallbackResponseSaver& callbackResponseSaver,
const ResponseStatus& response) {
ASSERT_FALSE(scheduler->isActive());
auto responses = callbackResponseSaver.getResponses();
ASSERT_EQUALS(1U, responses.size());
if (response.isOK()) {
ASSERT_OK(responses.front().status);
ASSERT_EQUALS(response, responses.front());
} else {
ASSERT_EQUALS(response.status, responses.front().status);
}
}
void RemoteCommandRetrySchedulerTest::processNetworkResponse(const ResponseStatus& response) {
auto net = getNet();
executor::NetworkInterfaceMock::InNetworkGuard guard(net);
ASSERT_TRUE(net->hasReadyRequests());
auto noi = net->getNextReadyRequest();
net->scheduleResponse(noi, net->now(), response);
net->runReadyNetworkOperations();
}
void RemoteCommandRetrySchedulerTest::runReadyNetworkOperations() {
auto net = getNet();
executor::NetworkInterfaceMock::InNetworkGuard guard(net);
net->runReadyNetworkOperations();
}
void RemoteCommandRetrySchedulerTest::setUp() {
executor::ThreadPoolExecutorTest::setUp();
launchExecutorThread();
}
CallbackResponseSaver::CallbackResponseSaver() = default;
void CallbackResponseSaver::operator()(
const executor::TaskExecutor::RemoteCommandCallbackArgs& rcba) {
_responses.push_back(rcba.response);
}
std::vector<ResponseStatus> CallbackResponseSaver::getResponses() const {
return _responses;
}
executor::RemoteCommandRequest makeRemoteCommandRequest() {
return executor::RemoteCommandRequest{
HostAndPort("h1:12345"), "db1", BSON("ping" << 1), nullptr};
}
TEST_F(RemoteCommandRetrySchedulerTest, MakeSingleShotRetryPolicy) {
auto policy = RemoteCommandRetryScheduler::makeNoRetryPolicy();
ASSERT_TRUE(policy);
ASSERT_EQUALS(1U, policy->getMaximumAttempts());
ASSERT_EQUALS(executor::RemoteCommandRequest::kNoTimeout,
policy->getMaximumResponseElapsedTotal());
// Doesn't matter what "shouldRetryOnError()" returns since we won't be retrying the remote
// command.
for (int i = 0; i < int(ErrorCodes::MaxError); ++i) {
auto error = ErrorCodes::Error(i);
ASSERT_FALSE(policy->shouldRetryOnError(error));
}
}
TEST_F(RemoteCommandRetrySchedulerTest, MakeRetryPolicy) {
auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::Interruption>(
5U, Milliseconds(100));
ASSERT_EQUALS(5U, policy->getMaximumAttempts());
ASSERT_EQUALS(Milliseconds(100), policy->getMaximumResponseElapsedTotal());
for (int i = 0; i < int(ErrorCodes::MaxError); ++i) {
auto error = ErrorCodes::Error(i);
if (ErrorCodes::isA<ErrorCategory::Interruption>(error)) {
ASSERT_TRUE(policy->shouldRetryOnError(error));
continue;
}
ASSERT_FALSE(policy->shouldRetryOnError(error));
}
}
TEST_F(RemoteCommandRetrySchedulerTest, InvalidConstruction) {
auto callback = [](const executor::TaskExecutor::RemoteCommandCallbackArgs&) {};
auto makeRetryPolicy = [] { return RemoteCommandRetryScheduler::makeNoRetryPolicy(); };
auto request = makeRemoteCommandRequest();
// Null executor.
ASSERT_THROWS_CODE_AND_WHAT(
RemoteCommandRetryScheduler(nullptr, request, callback, makeRetryPolicy()),
AssertionException,
ErrorCodes::BadValue,
"task executor cannot be null");
// Empty source in remote command request.
ASSERT_THROWS_CODE_AND_WHAT(
RemoteCommandRetryScheduler(
&getExecutor(),
executor::RemoteCommandRequest(HostAndPort(), request.dbname, request.cmdObj, nullptr),
callback,
makeRetryPolicy()),
AssertionException,
ErrorCodes::BadValue,
"source in remote command request cannot be empty");
// Empty source in remote command request.
ASSERT_THROWS_CODE_AND_WHAT(
RemoteCommandRetryScheduler(
&getExecutor(),
executor::RemoteCommandRequest(request.target, "", request.cmdObj, nullptr),
callback,
makeRetryPolicy()),
AssertionException,
ErrorCodes::BadValue,
"database name in remote command request cannot be empty");
// Empty command object in remote command request.
ASSERT_THROWS_CODE_AND_WHAT(
RemoteCommandRetryScheduler(
&getExecutor(),
executor::RemoteCommandRequest(request.target, request.dbname, BSONObj(), nullptr),
callback,
makeRetryPolicy()),
AssertionException,
ErrorCodes::BadValue,
"command object in remote command request cannot be empty");
// Null remote command callback function.
ASSERT_THROWS_CODE_AND_WHAT(
RemoteCommandRetryScheduler(&getExecutor(),
request,
executor::TaskExecutor::RemoteCommandCallbackFn(),
makeRetryPolicy()),
AssertionException,
ErrorCodes::BadValue,
"remote command callback function cannot be null");
// Null retry policy.
ASSERT_THROWS_CODE_AND_WHAT(
RemoteCommandRetryScheduler(&getExecutor(),
request,
callback,
std::unique_ptr<RemoteCommandRetryScheduler::RetryPolicy>()),
AssertionException,
ErrorCodes::BadValue,
"retry policy cannot be null");
// Policy max attempts should be positive.
ASSERT_THROWS_CODE_AND_WHAT(
RemoteCommandRetryScheduler(
&getExecutor(),
request,
callback,
RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>(
0, Milliseconds(100))),
AssertionException,
ErrorCodes::BadValue,
"policy max attempts cannot be zero");
// Policy max response elapsed total cannot be negative.
ASSERT_THROWS_CODE_AND_WHAT(
RemoteCommandRetryScheduler(
&getExecutor(),
request,
callback,
RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>(
1U, Milliseconds(-100))),
AssertionException,
ErrorCodes::BadValue,
"policy max response elapsed total cannot be negative");
}
TEST_F(RemoteCommandRetrySchedulerTest, StartupFailsWhenExecutorIsShutDown) {
auto callback = [](const executor::TaskExecutor::RemoteCommandCallbackArgs&) {};
auto policy = RemoteCommandRetryScheduler::makeNoRetryPolicy();
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(&getExecutor(), request, callback, std::move(policy));
ASSERT_FALSE(scheduler.isActive());
getExecutor().shutdown();
ASSERT_EQUALS(ErrorCodes::ShutdownInProgress, scheduler.startup());
ASSERT_FALSE(scheduler.isActive());
}
TEST_F(RemoteCommandRetrySchedulerTest, StartupFailsWhenSchedulerIsShutDown) {
auto callback = [](const executor::TaskExecutor::RemoteCommandCallbackArgs&) {};
auto policy = RemoteCommandRetryScheduler::makeNoRetryPolicy();
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(&getExecutor(), request, callback, std::move(policy));
ASSERT_FALSE(scheduler.isActive());
scheduler.shutdown();
ASSERT_EQUALS(ErrorCodes::ShutdownInProgress, scheduler.startup());
ASSERT_FALSE(scheduler.isActive());
}
TEST_F(RemoteCommandRetrySchedulerTest,
ShuttingDownExecutorAfterSchedulerStartupInvokesCallbackWithCallbackCanceledError) {
CallbackResponseSaver callback;
auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>(
10U, Milliseconds(1));
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(
&getExecutor(), request, std::ref(callback), std::move(policy));
start(&scheduler);
auto net = getNet();
{
executor::NetworkInterfaceMock::InNetworkGuard guard(net);
ASSERT_EQUALS(request, net->getNextReadyRequest()->getRequest());
}
getExecutor().shutdown();
runReadyNetworkOperations();
checkCompletionStatus(
&scheduler, callback, {ErrorCodes::CallbackCanceled, "executor shutdown"});
}
TEST_F(RemoteCommandRetrySchedulerTest,
ShuttingDownSchedulerAfterSchedulerStartupInvokesCallbackWithCallbackCanceledError) {
CallbackResponseSaver callback;
auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>(
10U, Milliseconds(1));
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(
&getExecutor(), request, std::ref(callback), std::move(policy));
start(&scheduler);
scheduler.shutdown();
runReadyNetworkOperations();
checkCompletionStatus(
&scheduler, callback, {ErrorCodes::CallbackCanceled, "scheduler shutdown"});
}
TEST_F(RemoteCommandRetrySchedulerTest, SchedulerInvokesCallbackOnNonRetryableErrorInResponse) {
CallbackResponseSaver callback;
auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::NotPrimaryError>(
10U, Milliseconds(1));
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(
&getExecutor(), request, std::ref(callback), std::move(policy));
start(&scheduler);
// This should match one of the non-retryable error codes in the policy.
ResponseStatus rs(ErrorCodes::OperationFailed, "injected error", Milliseconds(0));
processNetworkResponse(rs);
checkCompletionStatus(&scheduler, callback, rs);
// Scheduler cannot be restarted once it has run to completion.
ASSERT_EQUALS(ErrorCodes::ShutdownInProgress, scheduler.startup());
}
TEST_F(RemoteCommandRetrySchedulerTest, SchedulerInvokesCallbackOnFirstSuccessfulResponse) {
CallbackResponseSaver callback;
auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>(
10U, Milliseconds(1));
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(
&getExecutor(), request, std::ref(callback), std::move(policy));
start(&scheduler);
// Elapsed time in response is ignored on successful responses.
ResponseStatus response(BSON("ok" << 1 << "x" << 123 << "z" << 456), Milliseconds(100));
processNetworkResponse(response);
checkCompletionStatus(&scheduler, callback, response);
// Scheduler cannot be restarted once it has run to completion.
ASSERT_EQUALS(ErrorCodes::ShutdownInProgress, scheduler.startup());
ASSERT_FALSE(scheduler.isActive());
}
TEST_F(RemoteCommandRetrySchedulerTest, SchedulerIgnoresEmbeddedErrorInSuccessfulResponse) {
CallbackResponseSaver callback;
auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>(
10U, Milliseconds(1));
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(
&getExecutor(), request, std::ref(callback), std::move(policy));
start(&scheduler);
// Scheduler does not parse document in a successful response for embedded errors.
// This is the case with some commands (e.g. find) which do not always return errors using the
// wire protocol.
ResponseStatus response(BSON("ok" << 0 << "code" << int(ErrorCodes::FailedToParse) << "errmsg"
<< "injected error"
<< "z" << 456),
Milliseconds(100));
processNetworkResponse(response);
checkCompletionStatus(&scheduler, callback, response);
}
TEST_F(RemoteCommandRetrySchedulerTest,
SchedulerInvokesCallbackWithErrorFromExecutorIfScheduleRemoteCommandFailsOnRetry) {
CallbackResponseSaver callback;
auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>(
3U, executor::RemoteCommandRequest::kNoTimeout);
auto request = makeRemoteCommandRequest();
TaskExecutorWithFailureInScheduleRemoteCommand badExecutor(&getExecutor());
RemoteCommandRetryScheduler scheduler(
&badExecutor, request, std::ref(callback), std::move(policy));
start(&scheduler);
processNetworkResponse({ErrorCodes::HostNotFound, "first", Milliseconds(0)});
// scheduleRemoteCommand() will fail with ErrorCodes::ShutdownInProgress when trying to send
// third remote command request after processing second failed response.
badExecutor.scheduleRemoteCommandFailPoint = true;
processNetworkResponse({ErrorCodes::HostNotFound, "second", Milliseconds(0)});
checkCompletionStatus(
&scheduler, callback, {ErrorCodes::ShutdownInProgress, "", Milliseconds(0)});
}
TEST_F(RemoteCommandRetrySchedulerTest,
SchedulerEnforcesPolicyMaximumAttemptsAndReturnsErrorOfLastFailedRequest) {
CallbackResponseSaver callback;
auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>(
3U, executor::RemoteCommandRequest::kNoTimeout);
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(
&getExecutor(), request, std::ref(callback), std::move(policy));
start(&scheduler);
processNetworkResponse({ErrorCodes::HostNotFound, "first", Milliseconds(0)});
processNetworkResponse({ErrorCodes::HostUnreachable, "second", Milliseconds(0)});
ResponseStatus response(ErrorCodes::NetworkTimeout, "last", Milliseconds(0));
processNetworkResponse(response);
checkCompletionStatus(&scheduler, callback, response);
}
TEST_F(RemoteCommandRetrySchedulerTest, SchedulerShouldRetryUntilSuccessfulResponseIsReceived) {
CallbackResponseSaver callback;
auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>(
3U, executor::RemoteCommandRequest::kNoTimeout);
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(
&getExecutor(), request, std::ref(callback), std::move(policy));
start(&scheduler);
processNetworkResponse({ErrorCodes::HostNotFound, "first", Milliseconds(0)});
ResponseStatus response(BSON("ok" << 1 << "x" << 123 << "z" << 456), Milliseconds(100));
processNetworkResponse(response);
checkCompletionStatus(&scheduler, callback, response);
}
/**
* Retry policy that shuts down the scheduler whenever it is consulted by the scheduler.
* Results from getMaximumAttempts() and shouldRetryOnError() must cause the scheduler
* to resend the request.
*/
class ShutdownSchedulerRetryPolicy : public RemoteCommandRetryScheduler::RetryPolicy {
public:
std::size_t getMaximumAttempts() const override {
if (scheduler) {
scheduler->shutdown();
}
return 2U;
}
Milliseconds getMaximumResponseElapsedTotal() const override {
return executor::RemoteCommandRequest::kNoTimeout;
}
bool shouldRetryOnError(ErrorCodes::Error) const override {
if (scheduler) {
scheduler->shutdown();
}
return true;
}
std::string toString() const override {
return "";
}
// This must be set before starting the scheduler.
RemoteCommandRetryScheduler* scheduler = nullptr;
};
TEST_F(RemoteCommandRetrySchedulerTest,
SchedulerReturnsCallbackCanceledIfShutdownBeforeSendingRetryCommand) {
CallbackResponseSaver callback;
auto policy = std::make_unique<ShutdownSchedulerRetryPolicy>();
auto policyPtr = policy.get();
auto request = makeRemoteCommandRequest();
TaskExecutorWithFailureInScheduleRemoteCommand badExecutor(&getExecutor());
RemoteCommandRetryScheduler scheduler(
&badExecutor, request, std::ref(callback), std::move(policy));
policyPtr->scheduler = &scheduler;
start(&scheduler);
processNetworkResponse({ErrorCodes::HostNotFound, "first", Milliseconds(0)});
checkCompletionStatus(&scheduler,
callback,
{ErrorCodes::CallbackCanceled,
"scheduler was shut down before retrying command",
Milliseconds(0)});
}
bool sharedCallbackStateDestroyed = false;
class SharedCallbackState {
SharedCallbackState(const SharedCallbackState&) = delete;
SharedCallbackState& operator=(const SharedCallbackState&) = delete;
public:
SharedCallbackState() {}
~SharedCallbackState() {
sharedCallbackStateDestroyed = true;
}
};
TEST_F(RemoteCommandRetrySchedulerTest,
SchedulerResetsOnCompletionCallbackFunctionAfterCompletion) {
sharedCallbackStateDestroyed = false;
auto sharedCallbackData = std::make_shared<SharedCallbackState>();
Status result = getDetectableErrorStatus();
auto policy = RemoteCommandRetryScheduler::makeNoRetryPolicy();
auto request = makeRemoteCommandRequest();
RemoteCommandRetryScheduler scheduler(
&getExecutor(),
request,
[&result,
sharedCallbackData](const executor::TaskExecutor::RemoteCommandCallbackArgs& rcba) {
LOGV2(20156, "Setting result", "result"_attr = rcba.response.status);
result = rcba.response.status;
},
std::move(policy));
start(&scheduler);
sharedCallbackData.reset();
ASSERT_FALSE(sharedCallbackStateDestroyed);
processNetworkResponse({ErrorCodes::OperationFailed, "command failed", Milliseconds(0)});
scheduler.join();
ASSERT_EQUALS(ErrorCodes::OperationFailed, result);
ASSERT_TRUE(sharedCallbackStateDestroyed);
}
} // namespace
|
;########################################################################
;
; Bidirectional scroller demo with adjacent screen masks
; that allow describe a compelx topology of a map
;
; Copyright 2019-2020 0x8BitDev ( MIT license )
;
;########################################################################
; Supported options:
;
; - tiles 4x4 / 2x2 (columns)
; - properties per CHR: any
; - mode: bidirectional scrolling
; - layout: adjacent screens OR adjacent screen inds (marks)
; - entities: any
; - CHR bpp: 4
;
;************************************************************************
;
; Memory & ROM banks map
;
;************************************************************************
.memorymap
slot 0 start $0000 size $8000 ; 32K of ROM
slot 1 start $c000 size $2000 ; 8K of RAM
defaultslot 0
.endme
.rombankmap
bankstotal 2
banksize $8000
banks 1
banksize $2000
banks 1
.endro
;************************************************************************
;
; Some useful includes
;
;************************************************************************
.incdir "../../common"
.include "anm_struct.asm"
.include "vdp_macro_def.asm"
.incdir "../../common"
.include "ram_vars.asm"
.include "tilemap_render_vars.asm"
;************************************************************************
;
; The main entry point
;
;************************************************************************
.bank 0 slot 0
.org $0000
di
im 1
ld sp, $dff8
jp main
;************************************************************************
;
; VBLANK handler
;
; This interrupt can be activated by two events in the VDP chip:
;
; 1. Vertical Blanking Interval.
; 2. Horizontal Line Counter.
;
;************************************************************************
.org $0038 ; mask interrupt handler
push bc
push de
push hl
push af
ex af, af'
push af
exx
push bc
push de
push hl
; clear the interrupt request line from the VDP chip
in a, (VDP_CMD_STATUS_REG)
bit 7, a ; 7 bit means - VBLANK
call nz, vblank_handler
pop hl
pop de
pop bc
exx
pop af
ex af, af'
pop af
pop hl
pop de
pop bc
ei
reti
;************************************************************************
;
; PAUSE handler
;
;************************************************************************
.org $0066 ; NMI handler
retn
;************************************************************************
;
; VBLANK handler
;
;************************************************************************
vblank_handler:
call need_draw
and $ff
jr z, exit
call buff_apply
call buff_reset
exit:
call tr_update_scroll
ret
;************************************************************************
;
; Some useful includes
;
;************************************************************************
.incdir "data"
.include "tilemap.asm"
.define CHR_BPP MAP_CHR_BPP
.if MAP_CHR_BPP != 4
.printt "*** ERROR: This sample supports 4 bpp tiles only! ***\n"
.fail
.endif
.if MAP_DATA_MAGIC&MAP_FLAG_MARKS != MAP_FLAG_MARKS
.printt "*** ERROR: This sample requires screen marks data! Please, re export it with 'Marks: ON'. ***\n"
.fail
.endif
.if MAP_DATA_MAGIC&MAP_FLAG_LAYOUT_MATRIX == MAP_FLAG_LAYOUT_MATRIX
.printt "*** ERROR: This sample doesn't support a matrix layout! Please, re export it with 'Adjacent screens' or 'Adjacent screen inds'. ***\n"
.fail
.endif
.incdir "../../common"
.include "vdp.asm"
.include "vdp_data_buffer.asm"
.include "spr.asm"
.include "jpad.asm"
.include "rle.asm"
.include "common.asm"
.include "tilemap_render.asm"
;************************************************************************
;
; ROM description
;
;************************************************************************
.ifdef TR_BIDIR_STAT_SCR
.sdsctag 0.1, "Bidirectional static screens switching demo with adjacent screen masks", "MAPeD-SMS Sample: Bidirectional static screens switching demo", "0x8BitDev"
.else
.sdsctag 0.1, "Bidirectional scroller demo with adjacent screen masks", "MAPeD-SMS Sample: Bidirectional scroller", "0x8BitDev"
.endif
;************************************************************************
;
; The program entry point
;
;************************************************************************
main:
call VDP_init_clear_mem
call init_game_level
; init REG0
.ifdef TR_BIDIR_STAT_SCR
VDP_WRITE_REG_CMD 0 VDPR0_FIXED
.else
VDP_WRITE_REG_CMD 0 VDPR0_FIXED|VDPR0_BLANK_LEFT_COLUMN
.endif
; send show image command to VDP
VDP_WRITE_REG_CMD 1 VDPR1_FIXED|VDPR1_DISPLAY_ON|VDPR1_VBLANK
ei
loop:
call tr_jpad_update
halt ; one frame delay
; just in case make sure that the drawing operation is complete
drw_wait_loop:
call need_draw
and $ff
jr nz, drw_wait_loop
jp loop
init_game_level:
.ifdef TR_DATA_TILES4X4
ld hl, tilemap_Tiles
ld (TR_TILES4x4), hl
ld hl, tilemap_TilesOffs
ld (TR_TILES_OFFSETS), hl
.endif
ld hl, tilemap_BlocksOffs
ld (TR_BLOCKS_OFFSETS), hl
ld hl, tilemap_Attrs
ld (TR_BLOCK_ATTRS), hl
ld hl, Lev0_StartScr
ld (TR_START_SCR), hl
ld hl, ScrTilesWidth
ld (TR_MAP_TILES_WIDTH), hl
ld hl, ScrTilesHeight
ld (TR_MAP_TILES_HEIGHT), hl
ld hl, tilemap_CHRs
ld (TR_CHR_ARR), hl
ld hl, tilemap_CHRs_size
ld (TR_CHR_SIZE_ARR), hl
ld hl, tilemap_TilesScr
ld (TR_SCR_TILES_ARR), hl
ld hl, tilemap_Plts
ld (TR_PALETTES_ARR), hl
.ifdef TR_ADJACENT_SCR_INDS
ld hl, Lev0_ScrArr
ld (TR_SCR_LABELS_ARR), hl
.endif
jp tr_init
;************************************************************************
;
; RAM
;
;************************************************************************
.bank 1 slot 1
|
clc
lda {m2}
adc {c1},y
sta {m1}
lda {m2}+1
adc {c1}+1,y
sta {m1}+1
lda {m2}+2
adc {c1}+2,y
sta {m1}+2
lda {m2}+3
adc {c1}+3,y
sta {m1}+3 |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "db.h"
#include "txdb.h"
#include "init.h"
#include "miner.h"
#include "bitcoinrpc.h"
using namespace json_spirit;
using namespace std;
Value getsubsidy(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
"getsubsidy [nTarget]\n"
"Returns proof-of-work subsidy value for the specified value of target.");
return (uint64_t)GetProofOfWorkReward(0);
}
Value getmininginfo(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getmininginfo\n"
"Returns an object containing mining-related information.");
uint64_t nMinWeight = 0, nMaxWeight = 0, nWeight = 0;
pwalletMain->GetStakeWeight(*pwalletMain, nMinWeight, nMaxWeight, nWeight);
Object obj, diff, weight;
obj.push_back(Pair("blocks", (int)nBestHeight));
obj.push_back(Pair("currentblocksize",(uint64_t)nLastBlockSize));
obj.push_back(Pair("currentblocktx",(uint64_t)nLastBlockTx));
diff.push_back(Pair("proof-of-work", GetDifficulty()));
diff.push_back(Pair("proof-of-stake", GetDifficulty(GetLastBlockIndex(pindexBest, true))));
diff.push_back(Pair("search-interval", (int)nLastCoinStakeSearchInterval));
obj.push_back(Pair("difficulty", diff));
obj.push_back(Pair("blockvalue", (uint64_t)GetProofOfWorkReward(0)));
obj.push_back(Pair("netmhashps", GetPoWMHashPS()));
obj.push_back(Pair("netstakeweight", GetPoSKernelPS()));
obj.push_back(Pair("errors", GetWarnings("statusbar")));
obj.push_back(Pair("pooledtx", (uint64_t)mempool.size()));
weight.push_back(Pair("minimum", (uint64_t)nMinWeight));
weight.push_back(Pair("maximum", (uint64_t)nMaxWeight));
weight.push_back(Pair("combined", (uint64_t)nWeight));
obj.push_back(Pair("stakeweight", weight));
obj.push_back(Pair("stakeinterest", (uint64_t)COIN_YEAR_REWARD));
obj.push_back(Pair("testnet", fTestNet));
return obj;
}
Value getstakinginfo(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getstakinginfo\n"
"Returns an object containing staking-related information.");
uint64_t nMinWeight = 0, nMaxWeight = 0, nWeight = 0;
pwalletMain->GetStakeWeight(*pwalletMain, nMinWeight, nMaxWeight, nWeight);
uint64_t nNetworkWeight = GetPoSKernelPS();
bool staking = nLastCoinStakeSearchInterval && nWeight;
int nExpectedTime = staking ? (nTargetSpacing * nNetworkWeight / nWeight) : -1;
Object obj;
obj.push_back(Pair("enabled", GetBoolArg("-staking", true)));
obj.push_back(Pair("staking", staking));
obj.push_back(Pair("errors", GetWarnings("statusbar")));
obj.push_back(Pair("currentblocksize", (uint64_t)nLastBlockSize));
obj.push_back(Pair("currentblocktx", (uint64_t)nLastBlockTx));
obj.push_back(Pair("pooledtx", (uint64_t)mempool.size()));
obj.push_back(Pair("difficulty", GetDifficulty(GetLastBlockIndex(pindexBest, true))));
obj.push_back(Pair("search-interval", (int)nLastCoinStakeSearchInterval));
obj.push_back(Pair("weight", (uint64_t)nWeight));
obj.push_back(Pair("netstakeweight", (uint64_t)nNetworkWeight));
obj.push_back(Pair("expectedtime", nExpectedTime));
return obj;
}
Value getworkex(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw runtime_error(
"getworkex [data, coinbase]\n"
"If [data, coinbase] is not specified, returns extended work data.\n"
);
if (vNodes.empty())
throw JSONRPCError(-9, "BitcoinCaffe is not connected!");
if (IsInitialBlockDownload())
throw JSONRPCError(-10, "BitcoinCaffe is downloading blocks...");
if (pindexBest->nHeight >= LAST_POW_BLOCK)
throw JSONRPCError(RPC_MISC_ERROR, "No more PoW blocks");
typedef map<uint256, pair<CBlock*, CScript> > mapNewBlock_t;
static mapNewBlock_t mapNewBlock;
static vector<CBlock*> vNewBlock;
static CReserveKey reservekey(pwalletMain);
if (params.size() == 0)
{
// Update block
static unsigned int nTransactionsUpdatedLast;
static CBlockIndex* pindexPrev;
static int64_t nStart;
static CBlock* pblock;
if (pindexPrev != pindexBest ||
(nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 60))
{
if (pindexPrev != pindexBest)
{
// Deallocate old blocks since they're obsolete now
mapNewBlock.clear();
BOOST_FOREACH(CBlock* pblock, vNewBlock)
delete pblock;
vNewBlock.clear();
}
nTransactionsUpdatedLast = nTransactionsUpdated;
pindexPrev = pindexBest;
nStart = GetTime();
// Create new block
pblock = CreateNewBlock(pwalletMain);
if (!pblock)
throw JSONRPCError(-7, "Out of memory");
vNewBlock.push_back(pblock);
}
// Update nTime
pblock->nTime = max(pindexPrev->GetPastTimeLimit()+1, GetAdjustedTime());
pblock->nNonce = 0;
// Update nExtraNonce
static unsigned int nExtraNonce = 0;
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
// Save
mapNewBlock[pblock->hashMerkleRoot] = make_pair(pblock, pblock->vtx[0].vin[0].scriptSig);
// Prebuild hash buffers
char pmidstate[32];
char pdata[128];
char phash1[64];
FormatHashBuffers(pblock, pmidstate, pdata, phash1);
uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
CTransaction coinbaseTx = pblock->vtx[0];
std::vector<uint256> merkle = pblock->GetMerkleBranch(0);
Object result;
result.push_back(Pair("data", HexStr(BEGIN(pdata), END(pdata))));
result.push_back(Pair("target", HexStr(BEGIN(hashTarget), END(hashTarget))));
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << coinbaseTx;
result.push_back(Pair("coinbase", HexStr(ssTx.begin(), ssTx.end())));
Array merkle_arr;
BOOST_FOREACH(uint256 merkleh, merkle) {
merkle_arr.push_back(HexStr(BEGIN(merkleh), END(merkleh)));
}
result.push_back(Pair("merkle", merkle_arr));
return result;
}
else
{
// Parse parameters
vector<unsigned char> vchData = ParseHex(params[0].get_str());
vector<unsigned char> coinbase;
if(params.size() == 2)
coinbase = ParseHex(params[1].get_str());
if (vchData.size() != 128)
throw JSONRPCError(-8, "Invalid parameter");
CBlock* pdata = (CBlock*)&vchData[0];
// Byte reverse
for (int i = 0; i < 128/4; i++)
((unsigned int*)pdata)[i] = ByteReverse(((unsigned int*)pdata)[i]);
// Get saved block
if (!mapNewBlock.count(pdata->hashMerkleRoot))
return false;
CBlock* pblock = mapNewBlock[pdata->hashMerkleRoot].first;
pblock->nTime = pdata->nTime;
pblock->nNonce = pdata->nNonce;
if(coinbase.size() == 0)
pblock->vtx[0].vin[0].scriptSig = mapNewBlock[pdata->hashMerkleRoot].second;
else
CDataStream(coinbase, SER_NETWORK, PROTOCOL_VERSION) >> pblock->vtx[0]; // FIXME - HACK!
pblock->hashMerkleRoot = pblock->BuildMerkleTree();
return CheckWork(pblock, *pwalletMain, reservekey);
}
}
Value getwork(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
"getwork [data]\n"
"If [data] is not specified, returns formatted hash data to work on:\n"
" \"midstate\" : precomputed hash state after hashing the first half of the data (DEPRECATED)\n" // deprecated
" \"data\" : block data\n"
" \"hash1\" : formatted hash buffer for second hash (DEPRECATED)\n" // deprecated
" \"target\" : little endian hash target\n"
"If [data] is specified, tries to solve the block and returns true if it was successful.");
if (vNodes.empty())
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "BitcoinCaffe is not connected!");
if (IsInitialBlockDownload())
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "BitcoinCaffe is downloading blocks...");
if (pindexBest->nHeight >= LAST_POW_BLOCK)
throw JSONRPCError(RPC_MISC_ERROR, "No more PoW blocks");
typedef map<uint256, pair<CBlock*, CScript> > mapNewBlock_t;
static mapNewBlock_t mapNewBlock; // FIXME: thread safety
static vector<CBlock*> vNewBlock;
static CReserveKey reservekey(pwalletMain);
if (params.size() == 0)
{
// Update block
static unsigned int nTransactionsUpdatedLast;
static CBlockIndex* pindexPrev;
static int64_t nStart;
static CBlock* pblock;
if (pindexPrev != pindexBest ||
(nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 60))
{
if (pindexPrev != pindexBest)
{
// Deallocate old blocks since they're obsolete now
mapNewBlock.clear();
BOOST_FOREACH(CBlock* pblock, vNewBlock)
delete pblock;
vNewBlock.clear();
}
// Clear pindexPrev so future getworks make a new block, despite any failures from here on
pindexPrev = NULL;
// Store the pindexBest used before CreateNewBlock, to avoid races
nTransactionsUpdatedLast = nTransactionsUpdated;
CBlockIndex* pindexPrevNew = pindexBest;
nStart = GetTime();
// Create new block
pblock = CreateNewBlock(pwalletMain);
if (!pblock)
throw JSONRPCError(RPC_OUT_OF_MEMORY, "Out of memory");
vNewBlock.push_back(pblock);
// Need to update only after we know CreateNewBlock succeeded
pindexPrev = pindexPrevNew;
}
// Update nTime
pblock->UpdateTime(pindexPrev);
pblock->nNonce = 0;
// Update nExtraNonce
static unsigned int nExtraNonce = 0;
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
// Save
mapNewBlock[pblock->hashMerkleRoot] = make_pair(pblock, pblock->vtx[0].vin[0].scriptSig);
// Pre-build hash buffers
char pmidstate[32];
char pdata[128];
char phash1[64];
FormatHashBuffers(pblock, pmidstate, pdata, phash1);
uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
Object result;
result.push_back(Pair("midstate", HexStr(BEGIN(pmidstate), END(pmidstate)))); // deprecated
result.push_back(Pair("data", HexStr(BEGIN(pdata), END(pdata))));
result.push_back(Pair("hash1", HexStr(BEGIN(phash1), END(phash1)))); // deprecated
result.push_back(Pair("target", HexStr(BEGIN(hashTarget), END(hashTarget))));
return result;
}
else
{
// Parse parameters
vector<unsigned char> vchData = ParseHex(params[0].get_str());
if (vchData.size() != 128)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter");
CBlock* pdata = (CBlock*)&vchData[0];
// Byte reverse
for (int i = 0; i < 128/4; i++)
((unsigned int*)pdata)[i] = ByteReverse(((unsigned int*)pdata)[i]);
// Get saved block
if (!mapNewBlock.count(pdata->hashMerkleRoot))
return false;
CBlock* pblock = mapNewBlock[pdata->hashMerkleRoot].first;
pblock->nTime = pdata->nTime;
pblock->nNonce = pdata->nNonce;
pblock->vtx[0].vin[0].scriptSig = mapNewBlock[pdata->hashMerkleRoot].second;
pblock->hashMerkleRoot = pblock->BuildMerkleTree();
return CheckWork(pblock, *pwalletMain, reservekey);
}
}
Value getblocktemplate(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
"getblocktemplate [params]\n"
"Returns data needed to construct a block to work on:\n"
" \"version\" : block version\n"
" \"previousblockhash\" : hash of current highest block\n"
" \"transactions\" : contents of non-coinbase transactions that should be included in the next block\n"
" \"coinbaseaux\" : data that should be included in coinbase\n"
" \"coinbasevalue\" : maximum allowable input to coinbase transaction, including the generation award and transaction fees\n"
" \"target\" : hash target\n"
" \"mintime\" : minimum timestamp appropriate for next block\n"
" \"curtime\" : current timestamp\n"
" \"mutable\" : list of ways the block template may be changed\n"
" \"noncerange\" : range of valid nonces\n"
" \"sigoplimit\" : limit of sigops in blocks\n"
" \"sizelimit\" : limit of block size\n"
" \"bits\" : compressed target of next block\n"
" \"height\" : height of the next block\n"
"See https://en.bitcoin.it/wiki/BIP_0022 for full specification.");
std::string strMode = "template";
if (params.size() > 0)
{
const Object& oparam = params[0].get_obj();
const Value& modeval = find_value(oparam, "mode");
if (modeval.type() == str_type)
strMode = modeval.get_str();
else if (modeval.type() == null_type)
{
/* Do nothing */
}
else
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");
}
if (strMode != "template")
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");
if (vNodes.empty())
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "BitcoinCaffe is not connected!");
if (IsInitialBlockDownload())
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "BitcoinCaffe is downloading blocks...");
if (pindexBest->nHeight >= LAST_POW_BLOCK)
throw JSONRPCError(RPC_MISC_ERROR, "No more PoW blocks");
static CReserveKey reservekey(pwalletMain);
// Update block
static unsigned int nTransactionsUpdatedLast;
static CBlockIndex* pindexPrev;
static int64_t nStart;
static CBlock* pblock;
if (pindexPrev != pindexBest ||
(nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 5))
{
// Clear pindexPrev so future calls make a new block, despite any failures from here on
pindexPrev = NULL;
// Store the pindexBest used before CreateNewBlock, to avoid races
nTransactionsUpdatedLast = nTransactionsUpdated;
CBlockIndex* pindexPrevNew = pindexBest;
nStart = GetTime();
// Create new block
if(pblock)
{
delete pblock;
pblock = NULL;
}
pblock = CreateNewBlock(pwalletMain);
if (!pblock)
throw JSONRPCError(RPC_OUT_OF_MEMORY, "Out of memory");
// Need to update only after we know CreateNewBlock succeeded
pindexPrev = pindexPrevNew;
}
// Update nTime
pblock->UpdateTime(pindexPrev);
pblock->nNonce = 0;
Array transactions;
map<uint256, int64_t> setTxIndex;
int i = 0;
CTxDB txdb("r");
BOOST_FOREACH (CTransaction& tx, pblock->vtx)
{
uint256 txHash = tx.GetHash();
setTxIndex[txHash] = i++;
if (tx.IsCoinBase() || tx.IsCoinStake())
continue;
Object entry;
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << tx;
entry.push_back(Pair("data", HexStr(ssTx.begin(), ssTx.end())));
entry.push_back(Pair("hash", txHash.GetHex()));
MapPrevTx mapInputs;
map<uint256, CTxIndex> mapUnused;
bool fInvalid = false;
if (tx.FetchInputs(txdb, mapUnused, false, false, mapInputs, fInvalid))
{
entry.push_back(Pair("fee", (int64_t)(tx.GetValueIn(mapInputs) - tx.GetValueOut())));
Array deps;
BOOST_FOREACH (MapPrevTx::value_type& inp, mapInputs)
{
if (setTxIndex.count(inp.first))
deps.push_back(setTxIndex[inp.first]);
}
entry.push_back(Pair("depends", deps));
int64_t nSigOps = tx.GetLegacySigOpCount();
nSigOps += tx.GetP2SHSigOpCount(mapInputs);
entry.push_back(Pair("sigops", nSigOps));
}
transactions.push_back(entry);
}
Object aux;
aux.push_back(Pair("flags", HexStr(COINBASE_FLAGS.begin(), COINBASE_FLAGS.end())));
uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
static Array aMutable;
if (aMutable.empty())
{
aMutable.push_back("time");
aMutable.push_back("transactions");
aMutable.push_back("prevblock");
}
Object result;
result.push_back(Pair("version", pblock->nVersion));
result.push_back(Pair("previousblockhash", pblock->hashPrevBlock.GetHex()));
result.push_back(Pair("transactions", transactions));
result.push_back(Pair("coinbaseaux", aux));
result.push_back(Pair("coinbasevalue", (int64_t)pblock->vtx[0].vout[0].nValue));
result.push_back(Pair("target", hashTarget.GetHex()));
result.push_back(Pair("mintime", (int64_t)pindexPrev->GetPastTimeLimit()+1));
result.push_back(Pair("mutable", aMutable));
result.push_back(Pair("noncerange", "00000000ffffffff"));
result.push_back(Pair("sigoplimit", (int64_t)MAX_BLOCK_SIGOPS));
result.push_back(Pair("sizelimit", (int64_t)MAX_BLOCK_SIZE));
result.push_back(Pair("curtime", (int64_t)pblock->nTime));
result.push_back(Pair("bits", strprintf("%08x", pblock->nBits)));
result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1)));
return result;
}
Value submitblock(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"submitblock <hex data> [optional-params-obj]\n"
"[optional-params-obj] parameter is currently ignored.\n"
"Attempts to submit new block to network.\n"
"See https://en.bitcoin.it/wiki/BIP_0022 for full specification.");
vector<unsigned char> blockData(ParseHex(params[0].get_str()));
CDataStream ssBlock(blockData, SER_NETWORK, PROTOCOL_VERSION);
CBlock block;
try {
ssBlock >> block;
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Block decode failed");
}
bool fAccepted = ProcessBlock(NULL, &block);
if (!fAccepted)
return "rejected";
return Value::null;
}
|
;ASH - Aidan's SHell
;32K EEPROM (0x0000 - 0x7FFF)
;32K SRAM (0x8000 - FFFF)
;IO Provided via 16550 UART
;TODO:
;Change most DE to HL
;Change eror to check for non-zero values
;Finish Tokenizer
;Start Parser
;Start Execution Function
STACK_H equ 0xFF
STACK_L equ 0xFF
;First byte of term buf is the size of the term buf
TERM_BUF equ 0x8000
;Maximum size of the buffer
TERM_BUF_MAX equ 256
;////////////////
;UART Registers
;////////////////
UART_DHR equ 0x0 ;UART Data R/W register
UART_IER equ 0x1 ;Interrupt Enable Register
UART_IFR equ 0x2 ;Interrupt ID Reg (READ), FIFO Control Reg (WRITE)
UART_LCR equ 0x3 ;Line Control Register
UART_MCR equ 0x4 ;Modem Control
UART_LSR equ 0x5 ;Line Status Register
UART_MSR equ 0x6 ;Modem Status (Unused)
UART_SCR equ 0x7 ;Arbitrary data can be stored here
;According to the datasheet:
;8 Databits, No parity, 1 Stop
;///////////
;Charactars
;///////////
NEWLINE equ 0xA
RETURN equ 0xD
EOF equ 0x0
NUM0 equ 0x30
NUM1 equ 0x31
NUM2 equ 0x32
NUM3 equ 0x33
NUM4 equ 0x34
NUM5 equ 0x35
NUM6 equ 0x36
NUM7 equ 0x37
NUM8 equ 0x38
NUM9 equ 0x39
;Valid Instructions
SYM_READ equ ":"
SYM_WRITE equ "<"
SYM_EXE equ "@"
SYM_HELP equ "?"
;/////////////////
;Code Starts HERE
;/////////////////
org 0000h
RESET:
;Wait several clocks, then jump directly to MAIN
NOP
NOP
NOP
NOP
JP BOOT
JP BOOT
JP BOOT
JP BOOT
;Not exactly a header, but it will show up in a hex dump
HEADER:
.db NEWLINE, "ASH (Aidan's SHell) 2020", NEWLINE, RETURN, EOF
INTERRUPT:
;//////////////////
;Interrupt Routine
;//////////////////
org 0038h
NOP
NOP
RETI
;//The actual execution starts here
BOOT:
;Set up Stack
LD H, STACK_H
LD L, STACK_L
LD SP, HL
;Set up UART
CALL UART_INIT
;Disable interrupt
IM 1
DI
;Boot Sequence Complete
POSTBOOT:
;Print Boot Screen
LD HL, BOOT_MSG
CALL WRITE_STR
;Print Ready Message
LD HL, READY_MSG
CALL WRITE_STR
;Set Terminal buffer to 0
LD HL, TERM_BUF
LD A, 0
LD (HL), A
MAIN_LOOP:
;CALL GETCH
;CALL EVALUATE_STMT
JP MAIN_LOOP
HALT
;//////////////////////
;//////Functions///////
;//////////////////////
;//////////////////////////////////////
;Set up UART
;//////////////////////////////////////
UART_INIT:
PUSH AF
;Set DLAB=0, just in case
IN A, UART_LCR
AND 7Fh
OUT UART_LCR, A
;Disable All Interrupts
LD A, 0
OUT UART_IER, A
;FIFO Enable
LD A, 1
OUT UART_IFR, A
;Line Control
LD A, 03h ;8 Bit word, 1 stop, no parity
OUT UART_LCR, A
;Set OUT pins Low (as an indicator)
LD A, 0Ch
OUT UART_MCR, A
;Set DLAB=1
IN A, UART_LCR
OR 80h
OUT UART_LCR, A
;Divide Clock by 6 for 19200 baud (Assuming 1.7MHz clock)
LD A, 6
OUT UART_DHR, A
LD A, 0
OUT UART_IER, A
;Return
POP AF
RET
;//////////////////////////////////////
;Get a character from the FIFO, add to write buffer and echo to screen
;//////////////////////////////////////
GETCH:
PUSH AF
PUSH BC
;Set DLAB 0
IN A, UART_LCR
AND 7Fh
OUT UART_LCR, A
GETCH_LOOP:
;Read Line Status Reg
IN A, UART_LSR
;Only care about bit 0
AND 1
;If bit 0 is a 1 then FIFO has new data
CP 1
;Jump to end if bit 0 was a 0
JP NZ, GETCH_END
;Get next char from data holding register
IN A, UART_DHR
CALL WRITE_BUFFER
JP GETCH_LOOP
GETCH_END:
POP BC
POP AF
RET
;///////////////////////////////////////
;Write a charactar to the terminal buffer, and echo to screen
;expects A to be the character
;//////////////////////////////////////
WRITE_BUFFER:
PUSH AF
PUSH BC
PUSH DE
;Save character in D
LD D, A
;Load address of terminal buffer
LD BC, TERM_BUF
;Get size of terminal buffer
LD A, (BC)
;Add 1
INC A
;Write new length to start of buffer
LD (BC), A
;Add A and C for new offset (C should be 0 but just in case)
ADD A, C
;Put A into C
LD C, A
;Put char back into A
LD A, D
;Write to buffer
LD (BC), A
CALL PRINTCH
POP DE
POP BC
POP AF
RET
;/////////////////////////////////////////
;Assumes that A is the charactar to write
;/////////////////////////////////////////
PRINTCH:
PUSH AF
;Set DLAB 0
IN A, UART_LCR
AND 7Fh
OUT UART_LCR, A
;TODO: read transmit register status? Page 22
;Write Char to UART
OUT UART_DHR, A
POP AF
RET
;////////////////////////////////////////
;Writes a string via IO
;Disables Interrupts while running
;Expects HL to be the address of a string
;////////////////////////////////////////
WRITE_STR:
DI
PUSH AF
PUSH HL
;Set DLAB 0
IN A, UART_LCR
AND 7Fh
OUT UART_LCR, A
;Loop over each char in string
WRITE_START:
LD A, (HL)
CP 0 ;Is it EOF?
JP Z, WRITE_CLOSE
CALL PRINTCH
INC HL
JP WRITE_START
WRITE_CLOSE:
POP HL
POP AF
EI
ret
;Main function to tokenize, parse, and execute user entered expressions
;Assume AF has return values
EVALUATE_STMT:
PUSH AF
;Tokenizes and checks for invalid characters
CALL TOKENIZE_BUFFER
CP 0xFF
JP Z, EVALUATE_STMT_TOKEN_FAIL
;Checks syntax and prepares for execution
CALL PARSE_BUFFER
CP 0xFF
JP Z, EVALUATE_STMT_SYNTAX_FAIL
;Execute the commands found in the buffer
CALL EXECUTE_BUFFER
CP 0xFF
JP Z, EVALUATE_STMT_EXE_FAIL
;If all three functions return then jump to end
JP EVALUATE_STMT_RETURN
EVALUATE_STMT_TOKEN_FAIL:
;Print invalid token string
LD HL, TOKEN_ERROR
CALL WRITE_STR
JP EVALUATE_STMT_RETURN
EVALUATE_STMT_SYNTAX_FAIL:
;Print syntax error string
LD HL, SYNTAX_ERROR
CALL WRITE_STR
JP EVALUATE_STMT_RETURN
EVALUATE_STMT_EXE_FAIL:
;Print error string
LD HL, EXE_ERROR
CALL WRITE_STR
EVALUATE_STMT_RETURN:
POP AF
RET
;////////////////////////////////////////////////////////////////
;There are 5 types of symbols - LITERAL, @, :, <, ?
;Returns status in register A
;0x00 - Good
;0xFF - Bad
;////////////////////////////////////////////////////////////////
;Buffer for tokens, first byte is size of buffer
TOKEN_BUF equ 0x8110
;Token Symbols in token buffer
TOKEN_EF equ 0 ;End of buffer size 1
TOKEN_LT equ 1 ;ABCDEF0123456789 size 2
TOKEN_EX equ 2 ;@ size 1
TOKEN_RD equ 3 ;: size 1
TOKEN_WR equ 4 ;< size 1
TOKEN_HE equ 5 ;? size 1
TOKEN_WD equ 6 ;Full Word, size 3
;////////////////////////////////////////////////////////////////
TOKENIZE_BUFFER:
PUSH BC
PUSH DE
;Clear parse buffer
LD DE, TOKEN_BUF
LD A, 0
LD (DE), A
;Get start of terminal buffer
LD DE, TERM_BUF
;For instruction tokens or newlines
;Load the token code into C and pass that to the tokenize function
;If its a hex letter or number
;The value is in B already and the tokenize function expects that
;Basically, for every byte in the buffer:
;is it a newline? if so then exit
;is it a number? if so then convert to hex and tokenize
;is it a a hex char? convert to hex and tokenize
;is it an instruction? put the propper token
;is it whitespace? ignore
TOKENIZE_BUFFER_LOOP:
;Get next character
INC DE
LD A, (DE)
;Save character
LD B, A
;/////////////////////
;Check if return
;/////////////////////
LD C, TOKEN_EF
CP NEWLINE
CALL Z, TOKENIZE_INSTR
;Return to start of loop if return is FF
CP 0xFF
JP Z, TOKENIZE_BUFFER_RETURN_SUCCESS
;/////////////////////
;Check if a number
;/////////////////////
SUB 0x30
CP 0xA
CALL C, TOKENIZE_NUMBERS
;Return to start of loop if return is FF
CP 0xFF
JP Z, TOKENIZE_BUFFER_LOOP
;Return original character
LD A, B
;/////////////////////
;Check if a hex character
;/////////////////////
SUB 0x41
CP 0x6
CALL C, TOKENIZE_CHAR
;Return to start of loop if return is FF
CP 0xFF
JP Z, TOKENIZE_BUFFER_LOOP
;Return original character
LD A, B
;/////////////////////
;Check if a ?
;/////////////////////
LD C, TOKEN_HE
CP SYM_HELP
CALL Z, TOKENIZE_INSTR
;Return to start of loop if return is FF
CP 0xFF
JP Z, TOKENIZE_BUFFER_LOOP
;Return original character
LD A, B
;/////////////////////
;Check if a :
;/////////////////////
LD C, TOKEN_RD
CP SYM_READ
CALL Z, TOKENIZE_INSTR
;Return to start of loop if return is FF
CP 0xFF
JP Z, TOKENIZE_BUFFER_LOOP
;Return original character
LD A, B
;/////////////////////
;Check if a <
;/////////////////////
LD C, TOKEN_WR
CP SYM_WRITE
CALL Z, TOKENIZE_INSTR
;Return to start of loop if return is FF
CP 0xFF
JP Z, TOKENIZE_BUFFER_LOOP
;Return original character
LD A, B
;/////////////////////
;Check if a @
;/////////////////////
LD C, TOKEN_EX
CP SYM_EXE
CALL Z, TOKENIZE_INSTR
;Return to start of loop if return is FF
CP 0xFF
JP Z, TOKENIZE_BUFFER_LOOP
;/////////////////////
;Check if whitespace (ignore) (maybe shouldn't ignore?)
;/////////////////////
CP 0x20
JP Z, TOKENIZE_BUFFER_LOOP
;If the program gets to this point there is an error
LD A, 0xFF
JP TOKENIZE_BUFFER_RETURN
;Return
TOKENIZE_BUFFER_RETURN_SUCCESS:
;Signal that the program returned successful!
LD A, 00
TOKENIZE_BUFFER_RETURN:
POP DE
POP BC
RET
;Expects C to be the token value
;Return 0xFF in A when complete
TOKENIZE_INSTR:
PUSH BC
PUSH DE
PUSH HL
;Get size of token buffer
LD HL, TOKEN_BUF
LD A, (HL)
;Save in D
LD D, A
;Increment token buffer size
INC A
LD (HL), A
;Add the new size to the pointer so that it points to the next open spot
LD A, D
ADD A, L
INC A
LD L, A
;Put Instruction Token at the next open spot
LD (HL), C
INC L ;TODO: ???
POP HL
POP DE
POP BC
LD A, 0xFF
RET
;Expects B to hold next char value
;Write token symbol and value (if needed) to TOKEN_BUF
TOKENIZE_NUMBERS:
PUSH BC
PUSH DE
PUSH HL
;Get size of token buffer
LD HL, TOKEN_BUF
LD A, (HL)
;Save in C
LD C, A
;Increment by 2
ADD A, 2
LD (HL), A
;Add size to the buffer pointer to get the next available spot
LD A, C
ADD A, L
INC A
LD L, A
;Put Number Token
LD (HL), TOKEN_LT
INC L
;Put Token Value
LD A, B
SUB 0x30
LD (HL), A
POP HL
POP DE
POP BC
LD A, 0xFF
RET
;Expects B to be the Char value
;Write token symbol and value to TOKEN_BUF
TOKENIZE_CHAR:
PUSH BC
PUSH DE
PUSH HL
;Get size of token buffer
LD HL, TOKEN_BUF
LD A, (HL)
;Save in C
LD C, A
;Increment by 2
ADD A, 2
LD (HL), A
;Goto next free spot
LD A, C
ADD A, L
INC A
LD L, A
;Put Number Token
LD (HL), TOKEN_LT
INC L
;Put Token Value
LD A, B
SUB 0x37
LD (HL), A
POP HL
POP DE
POP BC
LD A, 0xFF
RET
;TODO: Can this just write over the other buffers?
;Buffer for Parser
PARSE_RAM equ 0x8200
;Current and next token for parser
PARSE_CUR equ 0x8200
PARSE_NEXT equ 0x8201
;Location of state for FSM
PARSE_STATE equ 0x8202
;Incrementor location for parser
PARSE_INC equ 0x8203
;High and low values for literals
PARSE_LIT_H equ 0x8204
PARSE_LIT_L equ 0x8205
PARSE_BUF equ 0x8210
;This should organize each token into a fully readable form
;I'm using the term 'Parse' very loosely
;Return 0x00 on success
PARSE_BUFFER:
PUSH BC
PUSH DE
PUSH HL
;Get start of token buffer
LD HL, TOKEN_BUF
;Get size of buffer
LD A, (HL)
;Return if its empty
CP 0
JP Z, PARSE_BUFFER_RETUN_SUCCESS
;Clear literal storage
LD HL, PARSE_LIT_L
LD (HL), 0
LD HL, PARSE_LIT_H
LD (HL), 0
;Set state to be start
LD HL, PARSE_STATE
LD (HL), STATE_START
;Set size of buffer to be 0
LD HL, PARSE_BUF
LD (HL), 0
;Set incrementor
LD HL, PARSE_INC
LD (HL), 1
PARSE_BUFFER_LOOP:
;Get incrementor
LD HL, PARSE_INC
LD A, (HL)
;Go to next location in token buffer
LD HL, TOKEN_BUF
ADD A, L
LD L, A
;Get Token, save to A and B
LD A, (HL)
LD B, A
;Check if its the end of the buffer
CP TOKEN_EF
CALL Z, PARSE_INST
CP 0xFF
JP Z, PARSE_BUFFER_RETUN_SUCCESS
;Check if current token is a single literal value
CP TOKEN_LT
CALL Z, PARSE_LITERAL
CP 0xFF
JP Z, PARSE_BUFFER_LOOP
;Check if current token is an @ symbol
CP TOKEN_EX
CALL Z, PARSE_INST
CP 0xFF
JP Z, PARSE_BUFFER_LOOP
;Check if current token is an : symbol
CP TOKEN_RD
CALL Z, PARSE_INST
CP 0xFF
JP Z, PARSE_BUFFER_LOOP
;Check if current token is an < symbol
CP TOKEN_WR
CALL Z, PARSE_INST
CP 0xFF
JP Z, PARSE_BUFFER_LOOP
;Check if current token is an ? symbol
CP TOKEN_HE
CALL Z, PARSE_INST
CP 0xFF
JP Z, PARSE_BUFFER_LOOP
;If parser reaches this point there is an invalid token
LD A, 0xFF
JP PARSE_BUFFER_RETURN
PARSE_BUFFER_RETUN_SUCCESS:
LD A, 0x00
PARSE_BUFFER_RETURN:
POP HL
POP DE
POP BC
RET
;HL should be location of next token
;A should be the token
PARSE_LITERAL:
PUSH BC
PUSH DE
PUSH HL
PARSE_LITERAL_LOOP:
;Check if this is a literal token
;TODO jump to an error state, not save
CP TOKEN_LT
JP NZ, PARSE_LITERAL_SAVE
;The goal of this next section is to shift the current token into two 8 bit values to create a single 16 bit value
;This is horrible and ugly but im too tired to make it better right now
;Get value
INC L
LD A, (HL)
;Save HL for later
PUSH HL
;Save value into E
LD E, A
;Get high literal value
LD HL, PARSE_LIT_H
LD A, (HL)
;Rotate A by 4 to the left (may have to rotate 5 times?) so now low bytes are high
RLCA
RLCA
RLCA
RLCA
;Zero out lower bytes
AND 0xF0
;Save rotated high byte into B
LD B, A
;Get Low literal value
LD HL, PARSE_LIT_L
LD A, (HL)
;Rotate A by 4 to the left (so now low and high bytes are swapped)
RLCA
RLCA
RLCA
RLCA
;Save into C
LD C, A
;Zero out high bytes
AND 0x0F
;Now A should contain the HIGH byte
OR B
LD HL, PARSE_LIT_H
LD (HL), A
;Now get the value of the token
LD A, C
;Put the new token (stored in E) into the low bytes of A
AND 0xF0
OR E
;Save
LD HL, PARSE_LIT_L
LD (HL), A
;Get TOKEN incrementor
LD HL, PARSE_INC
LD A, (HL)
ADD A, 2
LD (HL), A
;Increment pointer and return to start
POP HL
INC L
LD A, (HL)
JP PARSE_LITERAL_LOOP
PARSE_LITERAL_SAVE:
;First, save this token and the full value
;Get size of parse buffer
;HL Holds the location of the next (non literal) token
PUSH HL
LD HL, PARSE_BUF
LD A, (HL)
;Go to next empty spot
ADD A, L
INC A
LD L, A
;First put word token
LD (HL), TOKEN_WD
INC L
;Next Put High Byte
LD DE, PARSE_LIT_H
LD A, (DE)
LD (HL), A
INC L
;Next put low byte
LD DE, PARSE_LIT_L
LD A, (DE)
LD (HL), A
INC L
;Go back to start of buffer, get size
LD HL, PARSE_BUF
LD A, (HL)
;Increment by size of token
ADD A, 0x3
LD (HL), A
POP HL
PARSE_LITERAL_RETURN_SUCCESS:
LD A, 0xFF
PARSE_LITERAL_RETURN:
POP HL
POP DE
POP BC
RET
;A should just be the instruciton token, no additional work needed
PARSE_INST:
PUSH BC
PUSH DE
PUSH HL
;Save token into B
LD B, A
LD HL, PARSE_BUF
LD A, (HL)
;Go to next empty spot
ADD A, L
INC A
LD L, A
;Put token
LD (HL), B
;Go back to start of buffer, get size
LD HL, PARSE_BUF
LD A, (HL)
;Increment by size of token
INC A
LD (HL), A
;Update TOKEN incrementor
LD HL, PARSE_INC
LD A, (HL)
INC A
LD (HL), A
;Set return value
LD A, 0xFF
POP HL
POP DE
POP BC
RET
;STATES:
STATE_START equ 0 ;Start State
STATE_HELP equ 1 ;? Symbol
STATE_EXE equ 2 ;@ Symbol
STATE_LIEX equ 3 ;Literal following @
STATE_LIT equ 4 ;Leftmost literal (branches)
STATE_READ equ 5 ;Read :
STATE_WRITE equ 6 ;Write <
STATE_LITRD equ 7 ;Literal following :
STATE_LITWR equ 8 ;Literal following <
EXE_RAM equ 0x8300
EXE_STATE equ 0x8301
EXE_INC equ 0x8302
EXE_BUF equ 0x8310
EXECUTE_BUFFER:
PUSH BC
PUSH DE
PUSH HL
;Set state
LD HL, EXE_STATE
LD (HL), STATE_START
;Set incrementor
LD HL, EXE_INC
LD (HL), 1
EXECUTE_BUFFER_LOOP:
;Pingas
;Get incrementor
LD HL, EXE_INC
LD A, (HL)
;Go to next token
LD HL, PARSE_BUF
ADD A, L
LD L, A
;Get token, Save copy to B
LD A, (HL)
LD B, A
;Check if its the end of the buffer
CP TOKEN_EF
CALL Z, EVAL_EOF
CP 0xFF
JP Z, EXECUTE_BUFFER_RETUN_SUCCESS
;Check if current token is a single literal value
CP TOKEN_LT
CALL Z, EVAL_LITERAL
CP 0xFF
JP Z, EXECUTE_BUFFER_LOOP
;Check if current token is an @ symbol
CP TOKEN_EX
CALL Z, EVAL_EXE
CP 0xFF
JP Z, EXECUTE_BUFFER_LOOP
;Check if current token is an : symbol
CP TOKEN_RD
CALL Z, EVAL_READ
CP 0xFF
JP Z, EXECUTE_BUFFER_LOOP
;Check if current token is an < symbol
CP TOKEN_WR
CALL Z, EVAL_WRITE
CP 0xFF
JP Z, EXECUTE_BUFFER_LOOP
;Check if current token is an ? symbol
CP TOKEN_HE
CALL Z, EVAL_HELP
CP 0xFF
JP Z, EXECUTE_BUFFER_LOOP
;If parser reaches this point there is an invalid token
LD A, 0xFF
JP EXECUTE_BUFFER_RETURN
EXECUTE_BUFFER_RETUN_SUCCESS:
LD A, 0x00
EXECUTE_BUFFER_RETURN:
POP HL
POP DE
POP BC
RET
EVAL_EOF:
RET
EVAL_LITERAL:
RET
EVAL_EXE:
RET
EVAL_READ:
RET
EVAL_WRITE:
RET
EVAL_HELP:
RET
;//////////////////////
;/////////DATA/////////
;//////////////////////
BOOT_MSG:
.db NEWLINE, RETURN, "ASH v0.03", NEWLINE, RETURN, "(C) 2020 by Aidan Jennings"
.db NEWLINE, RETURN, "ZILOG Z80 32k EEPROM, 32k SRAM", NEWLINE, RETURN, "TEXT ONLY", EOF
READY_MSG:
.db NEWLINE, RETURN, "BOOT PROCESS COMPLETE!", NEWLINE, RETURN, EOF
SYNTAX_ERROR:
.db NEWLINE, RETURN, "SYNTAX ERROR", NEWLINE, RETURN, EOF
TOKEN_ERROR:
.db NEWLINE, RETURN, "INVALID TOKEN", NEWLINE, RETURN, EOF
EXE_ERROR:
.db NEWLINE, RETURN, "EXECUTION ERROR", NEWLINE, RETURN, EOF
PROMPT:
.db RETURN, ">>>:", EOF
org 8001h
;.db "A0:7F", NEWLINE
.db "A8F4<B7", NEWLINE
;.db "@B800" |
section .data
IndexPrompt db 'Enter the index value: '
indl equ $-IndexPrompt
Const1 db 'Enter the first constant value: '
const1l equ $-Const1
Const2 db 'Enter the second constant value: '
const2l equ $-Const2
Const3 db 'Enter the third constant value: '
const3l equ $-Const3
def db 'default '
deflen equ $-def
num0 db 'Case0: '
num0len equ $-num0
num1 db 'Case1: '
num1len equ $-num1
num2 db 'Case2: '
num2len equ $-num2
num3 db 'Case3: '
num3len equ $-num3
section .bss
buffer resb 100
index resd 1
val1 resd 1
val2 resd 1
val3 resd 1
section .text
global _start
_start:
;Write
mov eax, 4
mov ebx, 1
mov ecx, IndexPrompt
mov edx, indl
int 0x80
call read_num_value
;Save number into index
mov DWORD [index], eax
;Perform bounds checking
call bound_check
;Write
mov eax, 4
mov ebx, 1
mov ecx, Const1
mov edx, const1l
int 0x80
call read_num_value
mov DWORD [val1], eax
;Perform bounds checking
call bound_check
;Write
mov eax, 4
mov ebx, 1
mov ecx, Const2
mov edx, const2l
int 0x80
call read_num_value
mov DWORD [val2], eax
;Perform bounds checking
call bound_check
;Write
mov eax, 4
mov ebx, 1
mov ecx, Const3
mov edx, const3l
int 0x80
call read_num_value
mov DWORD [val3], eax
;Perform bounds checking
call bound_check
;++nvalue
inc DWORD [index]
;Write
mov eax, 4
mov ebx, 1
cmp DWORD [index], 0
je case_zero
cmp DWORD [index], 1
je case_one
cmp DWORD [index], 2
je case_two
cmp DWORD [index], 3
je case_three
jmp case_default
case_zero:
mov ecx, num0
mov edx, num0len
int 0x80
mov eax, DWORD [val1]
imul eax, DWORD [val2]
call write_val
jmp exit
case_one:
mov ecx, num1
mov edx, num1len
int 0x80
mov eax, DWORD [val2]
imul eax, DWORD [val3]
call write_val
jmp exit
case_two:
mov ecx, num2
mov edx, num2len
int 0x80
mov eax, DWORD [val3]
sub eax, DWORD [val1]
call write_val
jmp exit
case_three:
mov ecx, num3
mov edx, num3len
int 0x80
mov eax, DWORD [val1]
sub eax, DWORD [val3]
call write_val
jmp exit
case_default:
mov ecx, def
mov edx, deflen
int 0x80
exit:
;Exit
mov eax, 1
mov ebx, 0
int 0x80
read_num_value:
;Read string into buffer
mov eax, 3
mov ebx, 0
mov ecx, buffer
mov edx, 100
int 0x80
;Grab number of bytes read
mov ecx, eax
sub ecx, 2
xor eax, eax
mov ebx, 1
jmp loop_start
loo:
;Grab current buffer byte
mov dl, [buffer + ecx]
;Check if byte is negative sign
cmp dl, 0x2d
je negative
;Check if byte is less than '0'
cmp dl, 0x30
jl exit
;Check if byte is greater than '0'
cmp dl, 0x39
jg exit
;eax = (buffer[ecx] & 0xf) * ebx
and edx, 0xf
imul edx, ebx
add eax, edx
;ebx *= 10
imul ebx, 10
dec ecx
loop_start:
;Loop condition
cmp ecx, 0
jge loo
ret
negative:
neg eax
ret
;eax is the value
bound_check:
cmp eax, 0
jl exit
cmp eax, 65535
jg exit
ret
;eax is the value
write_val:
cmp eax, 0
jns write_pos
;Negate value
neg eax
;Save on stack
push eax
;Write negative sign
mov eax, 4
mov ebx, 1
;0x2d is the '-' char
push 0x2d
mov ecx, esp
mov edx, 1
int 0x80
;Pop char off the stack
pop ecx
;Read back saved positive value
pop eax
write_pos:
;Store value in ebx
mov ebx, eax
;Zero out byte counter
xor esi, esi
;Clear edx
xor edx, edx
;Set the dividend
mov eax, ebx
;Divide by 10k
mov ecx, 10000
div ecx
cmp al, 0
jz thousand
inc esi
;Convert number to character equivalent
;al += '0'
add al, 48
;Store the 10k byte
mov BYTE [buffer], al
;Store remainder
mov ebx, edx
thousand:
;Clear edx
xor edx, edx
;Set the dividend
mov eax, ebx
;Divide by 1k
mov ecx, 1000
div ecx
cmp al, 0
jz hundred
inc esi
;Convert number to character equivalent
;al += '0'
add al, 48
;Store the 1k byte
mov BYTE [buffer + 1], al
;Store remainder
mov ebx, edx
hundred:
;Clear edx
xor edx, edx
;Set the dividend
mov eax, ebx
;Divide by 100
mov ecx, 100
div ecx
cmp al, 0
jz ten
inc esi
;Convert number to character equivalent
;al += '0'
add al, 48
;Store the 100 byte
mov BYTE [buffer + 2], al
;Store remainder
mov ebx, edx
ten:
;Clear edx
xor edx, edx
;Set the dividend
mov eax, ebx
;Divide by 100
mov ecx, 10
div ecx
cmp al, 0
jz one
inc esi
;Convert number to character equivalent
;al += '0'
add al, 48
;Store the 10 byte
mov BYTE [buffer + 3], al
one:
add dl, 48
;Store the 1 byte
mov BYTE [buffer + 4], dl
;Add newline char
mov BYTE [buffer + 5], 0xa
add esi, 2
;Write
mov eax, 4
mov ebx, 1
mov ecx, buffer
;Offset ecx by byte counter to prevent zero padding the string
add ecx, 6
sub ecx, esi
mov edx, esi
int 0x80
ret
|
; fill string with one character 27/01-92 O.Fink
section string
include win1_keys_err
xdef st_filst ; fill a string
;+++
; fill a string with one character
; x,10 -> xxxxxxxxxx
;
; Entry Exit
; a0 ptr to string preserved
; d1.b character to fill with preserved
; d2.w fill length preserved
;---
r_filst reg a0/d2
st_filst
movem.l r_filst,-(sp)
move.w d2,(a0)+
bra.s fil_end
fil_lp
move.b d1,(a0)+
fil_end
dbra d2,fil_lp
fil_exit
movem.l (sp)+,r_filst
rts
end
|
; utilities.asm
Resources proc Table:
; Bank FName Index Notes
db 18, 18 ; 0 Daybreak Layer 2 (1/6)
db 19, 19 ; 1 Daybreak Layer 2 (2/6)
db 20, 20 ; 2 Daybreak Layer 2 (3/6)
db 21, 21 ; 3 Daybreak Layer 2 (4/6)
db 22, 22 ; 4 Daybreak Layer 2 (5/6)
db 23, 23 ; 5 Daybreak Layer 2 (6/6)
db 30, 30 ; 6 Palettes
db 31, 31 ; 7 Sprites Left
db 32, 32 ; 8 Sprites Right
struct
Bank ds 1
FName ds 1
Size send
Len equ $-Table
Count equ Len/Size
ROM equ 255
output_bin "..\build\BankList.bin", Table, Len
pend
LoadResources proc
//xor a ; SNX extended snapshot leaves file handle 0 open
//ld (esxDOS.Handle), a
ld ix, FileName
call esxDOS.fOpen
jp c, Error
ld bc, $0002
ld de, $2000 ; bcde = $22000 = 139264 = first bank
ld ixl, esxDOS.esx_seek_set
ld l, esxDOS.esx_seek_set
call esxDOS.fSeek
jp c, Error
xor a
push af
ld iy, Resources.Table
NextBank:
ld a, (iy+Resources.Bank)
nextreg $57, a
ld ix, $E000
ld bc, $2000
call esxDOS.fRead
jp c, Error
pop af
inc a
cp Resources.Count
jp z, Finish
push af
inc iy
inc iy
jp NextBank
Finish:
call esxDOS.fClose
jp c, Error
ret
Error:
di
MMU5(8, false)
ld iy, FileName
jp esxDOSerror
FileName:
db "Daybreak.sna", 0
pend
SetupDataFileSystem proc
call esxDOS.GetSetDrive
jp c, LoadResources.Error
ld (esxDOS.DefaultDrive), a
ret
pend
esxDOSerror proc
di
ld (ErrorNo), a
ld sp, $BDFF
nextreg $50,255 ; MMU page bottom 48K back
nextreg $51,255 ; (apart from this bank)
nextreg $52, 10
nextreg $53, 11
nextreg $54, 4
call ResetSprites ; Hide all sprites
PortOut($123B, $00) ; Hide layer 2 and disable write paging
NextPaletteRGB8($82, %111 000 00, PaletteULAa)
NextPaletteRGB8($0F, %111 111 11, PaletteULAa)
NextPaletteRGB8(18, %111 000 00, PaletteULAa)
Border(Red)
FillLDIR($4000, $1800, $00)
FillLDIR($5800, $0300, $57)
ld hl, Font.Spectron
ld (FZX_FONT), hl
ld hl, Text
call ErrorPrint
push iy
push iy
pop hl
ld b, 25
CaseLoop:
ld a, (hl)
cp 97
jp c, LeaveCase
cp 123
jp nc, LeaveCase
sub a, 32
LeaveCase: ld (hl), a
inc hl
djnz CaseLoop
pop hl
call ErrorPrint
ld hl, Text2
call ErrorPrint
ErrorNo equ $+1: ld a, SMC
cp esxDOSerrors.Count
jp c, NoReset
xor a
NoReset: ld d, a
ld e, esxDOSerrors.Size
mul
ex de, hl
add hl, esxDOSerrors.Table
call ErrorPrint
ld a, $BE
ld i, a
im 2
ei
halt
Freeze: jp Freeze
Text: db At, 1, 1, "DAYBREAK" ; 89 to center
db At, 13, 1, "BY ROBIN VERHAGEN-GUEST"
//db At, 25, 1
//VersionOnly()
//db At, 38, 1
//BuildDate()
db At, 160, 1, "ERROR READING FILE:"
db At, 172, 1
db 0
Text2: db At, 184, 1
db 0
pend
ErrorPrint proc
PrintMenu: ld a, (hl) ; for each character of this string...
or a
ret z ; check string terminator
or a
jp z, Skip ; skip padding character
push hl ; preserve HL
call FZX_START ; print character
pop hl ; recover HL
Skip: inc hl
jp PrintMenu
ret
pend
esxDOSerrors proc Table:
; Error Padding ErrCode
db "UNKNOWN ERROR" , ds 9 ; 0
db "OK" , ds 20 ; 1
db "NONSENSE IN ESXDOS" , ds 4 ; 2
db "STATEMENT END ERROR" , ds 3 ; 3
db "WRONG FILE TYPE" , ds 7 ; 4
db "NO SUCH FILE OR DIR" , ds 3 ; 5
db "I/O ERROR" , ds 13 ; 6
db "INVALID FILENAME" , ds 6 ; 7
db "ACCESS DENIED" , ds 9 ; 8
db "DRIVE FULL" , ds 12 ; 9
db "INVALID I/O REQUEST" , ds 3 ; 10
db "NO SUCH DRIVE" , ds 9 ; 11
db "TOO MANY FILES OPEN" , ds 3 ; 12
db "BAD FILE NUMBER" , ds 7 ; 13
db "NO SUCH DEVICE" , ds 8 ; 14
db "FILE POINTER OVERFLOW" , ds 1 ; 15
db "IS A DIRECTORY" , ds 8 ; 16
db "NOT A DIRECTORY" , ds 7 ; 17
db "ALREADY EXISTS" , ds 8 ; 18
db "INVALID PATH" , ds 10 ; 19
db "MISSING SYSTEM" , ds 8 ; 20
db "PATH TOO LONG" , ds 9 ; 21
db "NO SUCH COMMAND" , ds 7 ; 22
db "IN USE" , ds 16 ; 23
db "READ ONLY" , ds 13 ; 24
db "VERIFY FAILED" , ds 9 ; 25
db "SYS FILE LOAD ERROR" , ds 3 ; 26
db "DIRECTORY IN USE" , ds 6 ; 27
db "MAPRAM IS ACTIVE" , ds 6 ; 28
db "DRIVE BUSY" , ds 12 ; 29
db "UNKNOWN FILESYSTEM" , ds 4 ; 30
db "DEVICE BUSY" , ds 11 ; 31
db "PLEASE RUN DAYBREAK ON A ZX SPECTRUM NEXT" , ds 1 ; 32
struct
Error ds 22
Size send
Len equ $-Table
Count equ Len/Size
pend
ClsAttr proc
ClsAttrFull(DimBlackBlackP)
ret
pend
Font proc
Spectron: import_bin "..\fonts\Spectron.fzx"
pend
WriteSpritePattern proc
ld bc, Sprite_Index_Port ; Set the sprite index
out (c), a ; (0 to 63)
ld a, 0 ; Send 256 pixel bytes (16*16)
ld d, 0 ; Counter
ld bc, Sprite_Pattern_Port
PixelLoop: ld e, (hl)
inc hl
out (c), e
dec d
jr nz PixelLoop
ret
pend
NextSpriteProc proc
ld bc, Sprite_Index_Port ; Set the sprite index (port $303B)
out (c), a ; (0 to 63)
ld bc, Sprite_Sprite_Port ; Send the sprite slot attributes (port $57)
out (c), l
out (c), h
out (c), e
out (c), d
ret
pend
|
; A005818: Numbers n that are primitive solutions to n^2 = a^2 + b^2 + c^2 (a,b,c > 0).
; 3,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,127,129,131,133,135,137,139,141,143,145,147,149,151,153,155,157,159,161,163,165,167,169,171,173,175,177,179,181,183,185,187,189,191,193,195,197,199,201,203,205,207,209,211,213,215,217,219,221,223,225,227,229,231,233,235,237,239,241,243,245,247,249,251,253,255,257,259,261,263,265,267,269,271,273,275,277,279,281,283,285,287,289,291,293,295,297,299,301,303,305,307,309,311,313,315,317,319,321,323,325,327,329,331,333,335,337,339,341,343,345,347,349,351,353,355,357,359,361,363,365,367,369,371,373,375,377,379,381,383,385,387,389,391,393,395,397,399,401,403,405,407,409,411,413,415,417,419,421,423,425,427,429,431,433,435,437,439,441,443,445,447,449,451,453,455,457,459,461,463,465,467,469,471,473,475,477,479,481,483,485,487,489,491,493,495,497,499,501,503
pow $1,$0
mul $0,2
add $0,3
gcd $1,$0
add $1,2
|
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "utilities/BatchApplicationManager.h"
int main(int argc, char* argv[])
{
qputenv("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM", "1");
BatchApplicationManager applicationManager(&argc, &argv);
setvbuf(stdout, NULL, _IONBF, 0); // Disabling output buffering to fix test failures due to incomplete logs
ApplicationManager::BeforeRunStatus status = applicationManager.BeforeRun();
if (status != ApplicationManager::BeforeRunStatus::Status_Success)
{
if (status == ApplicationManager::BeforeRunStatus::Status_Restarting)
{
//AssetProcessor will restart
return 0;
}
else
{
//Initialization failed
return 1;
}
}
return applicationManager.Run() ? 0 : 1;
}
|
;===============================================================================
; Copyright 2014-2021 Intel Corporation
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;===============================================================================
;
;
; Purpose: Cryptography Primitive.
; Big Number Operations
;
; Content:
; cpDiv_BNU32()
;
;
%include "asmdefs.inc"
%include "ia_32e.inc"
%include "ia_32e_regs.inc"
%if (_IPP32E >= _IPP32E_M7)
;;
;; FIX_BNU returns actual length of BNU
;;
;; input
;; rSrc points BNU
;; rLen initial BNU size
;;
;; output
;; rSrc points BNU
;; rLen actual BNU size
;;
%macro FIX_BNU 3.nolist
%xdefine %%rSrc %1
%xdefine %%rLen %2
%xdefine %%tmp %3
%%fix_bnu_loop:
mov %%tmp%+d,[%%rSrc+%%rLen*4-4] ;; value
test %%tmp%+d,%%tmp%+d ;; test BNU component
jnz %%fix_bnu_quit
sub %%rLen,1
jg %%fix_bnu_loop
add %%rLen,1
%%fix_bnu_quit:
%endmacro
;;
;; Number of Leaging Zeros in32-bit value
;;
%macro NLZ32u 2.nolist
%xdefine %%rNlz %1
%xdefine %%rVal %2
mov %%rNlz, 32
test %%rVal,%%rVal
jz %%nlz_quit
xor %%rNlz,%%rNlz
%%nlz16:
test %%rVal,0FFFF0000h
jnz %%nlz8
shl %%rVal,16
add %%rNlz,16
%%nlz8:
test %%rVal,0FF000000h
jnz %%nlz4
shl %%rVal,8
add %%rNlz,8
%%nlz4:
test %%rVal,0F0000000h
jnz %%nlz2
shl %%rVal,4
add %%rNlz,4
%%nlz2:
test %%rVal,0C0000000h
jnz %%nlz1
shl %%rVal,2
add %%rNlz,2
%%nlz1:
test %%rVal,080000000h
jnz %%nlz_quit
add %%rNlz,1
%%nlz_quit:
%endmacro
;;
;; (Logical) Shift BNU Left and Right
;;
;; Input:
;; rDst source/destination address
;; rLen length (dwords) of BNU
;; CL left shift
;; rTmpH scratch
;; rTmpL scratch
;; Note
;; rDst don't changes
;; rLen changes
;;
%macro SHL_BNU_I 4.nolist
%xdefine %%rDst %1
%xdefine %%rLen %2
%xdefine %%rTmpH %3
%xdefine %%rTmpL %4
mov %%rTmpH%+d,[%%rDst+%%rLen*4-4]
sub %%rLen,1
jz %%shl_bnu_quit
%%shl_bnu_loop:
mov %%rTmpL%+d,[%%rDst+%%rLen*4-4]
shld %%rTmpH%+d,%%rTmpL%+d, CL
mov [%%rDst+%%rLen*4],%%rTmpH%+d
mov %%rTmpH%+d,%%rTmpL%+d
sub %%rLen,1
jg %%shl_bnu_loop
%%shl_bnu_quit:
shl %%rTmpH%+d,CL
mov [%%rDst],%%rTmpH%+d
%endmacro
%macro SHR_BNU_I 4.nolist
%xdefine %%rDst %1
%xdefine %%rLen %2
%xdefine %%rTmpH %3
%xdefine %%rTmpL %4
push %%rDst
mov %%rTmpL%+d,[%%rDst]
sub %%rLen,1
jz %%shr_bnu_quit
%%shr_bnu_loop:
mov %%rTmpH%+d,[%%rDst+4]
shrd %%rTmpL%+d,%%rTmpH%+d, CL
mov [%%rDst],%%rTmpL%+d
add %%rDst,4
mov %%rTmpL%+d,%%rTmpH%+d
sub %%rLen,1
jg %%shr_bnu_loop
%%shr_bnu_quit:
shr %%rTmpL%+d,CL
mov [%%rDst],%%rTmpL%+d
pop %%rDst
%endmacro
;;
;; Multuply BNU by 32-bit digit and Subtract
;;
;; input
;; rSrc points source BNU
;; rDgt 32-bit digit value
;; rDst points accumulator (resultant) BNU
;; rLen BNU size
;; rIdx (scratch) source/target index
;; rExp (scratch) expansion
;;
;; output
;; rDgt 32-bit expansion
;;
;; Note
;; rdx and rax used in mul instruction,
;; this mean any macro argument may be neither rax nor rdx
;;
%macro xMDC_BNU_D32 6.nolist
%xdefine %%rSrc %1
%xdefine %%rDgt %2
%xdefine %%rDst %3
%xdefine %%rLen %4
%xdefine %%rIdx %5
%xdefine %%rExp %6
xor %%rIdx,%%rIdx ;; index = 0
xor %%rExp,%%rExp ;; carry = 0
sub %%rLen,2 ;; test length
jl %%mdc_short
%%mdc_loop:
mov rax, [%%rSrc+%%rIdx] ;; a = src[i]
mul %%rDgt ;; x = a*w
add rax, %%rExp ;; x += borrow
adc rdx,0
xor %%rExp,%%rExp ;; zero extension of r
sub [%%rDst+%%rIdx],rax ;; dst[] -= x
sbb %%rExp,rdx
neg %%rExp ;; update borrow
add %%rIdx,2*4 ;; advance index
sub %%rLen,2 ;; decrease counter
jge %%mdc_loop ;; continue
add %%rLen,2
jz %%mdc_quit
%%mdc_short:
mov eax, [%%rSrc+%%rIdx] ;; a = src[i]
mul %%rDgt%+d ;; x = a*w
add eax, %%rExp%+d ;; x += borrow
adc edx,0
xor %%rExp%+d, %%rExp%+d ;; zero extension of r
sub [%%rDst+%%rIdx],eax ;; dst[] -= x
sbb %%rExp%+d,edx
neg %%rExp%+d ;; update borrow
%%mdc_quit:
mov %%rDgt,%%rExp ;; return borrow
%endmacro
;;
;; xADD_BNU add BNUs
;;
;; input
;; rDst points resultant BNU
;; rSrc1 points source BNU
;; rSrc2 points source BNU
;; rLen BNU size
;; rIdx source, resultant index
;;
;; output
;; rCarry carry value (byte)
;;
%macro xADD_BNU 8.nolist
%xdefine %%rDst %1
%xdefine %%rCarry %2
%xdefine %%rSrc1 %3
%xdefine %%rSrc2 %4
%xdefine %%rLen %5
%xdefine %%rIdx %6
%xdefine %%tmp1 %7
%xdefine %%tmp2 %8
xor %%rCarry,%%rCarry ;; carry=0
xor %%rIdx,%%rIdx ;; index=0
sub %%rLen,2 ;; test BNU size
jl %%short_bnu
clc ;; CF=0
%%add_bnu_loop:
mov %%tmp1,[%%rSrc1+%%rIdx*8] ;; src1[]
mov %%tmp2,[%%rSrc2+%%rIdx*8] ;; src2[]
adc %%tmp1,%%tmp2 ;; x = src1[]+src[2]+CF
mov [%%rDst+%%rIdx*8],%%tmp1 ;; dst[] = x
inc %%rIdx ;; advance index
dec %%rLen ;; decrease length
dec %%rLen
jge %%add_bnu_loop ;; continue
setc %%rCarry%+b ;; save CF
add %%rIdx,%%rIdx ;; restore ordinal index
add %%rLen,2 ;; restore length
jz %%add_bnu_exit
%%short_bnu:
shr %%rCarry%+d,1 ;; restore CF
mov %%tmp1%+d,[%%rSrc1+%%rIdx*4] ;; src1[]
mov %%tmp2%+d,[%%rSrc2+%%rIdx*4] ;; src2[]
adc %%tmp1%+d,%%tmp2%+d ;; x = src1[]-src[2]-CF
mov [%%rDst+%%rIdx*4],%%tmp1%+d ;; dst[] = x
setc %%rCarry%+b ;; save CF
add %%rIdx,1 ;; advance index
%%add_bnu_exit:
%endmacro
segment .text align=IPP_ALIGN_FACTOR
;*************************************************************
;* Ipp32u cpDiv_BNU32(Ipp32u* pQ, int* sizeQ,
;* Ipp32u* pX, int sizeX,
;* Ipp32u* pY, int sizeY)
;*
;*************************************************************
align IPP_ALIGN_FACTOR
IPPASM cpDiv_BNU32,PUBLIC
%assign LOCAL_FRAME 4*8
USES_GPR rsi,rdi,rbx,rbp,r12,r13,r14,r15
USES_XMM
COMP_ABI 6
; rdi = pQ ; address of quotient
; rsi = sizeQ ; address of quotient length
; rdx = pX ; address of denominator (remaider)
; rcx = sizeX ; length (dwords) of denominator
; r8 = pY ; address of divired
; r9 = sizeY ; length (dwords) of length
movsxd rcx, ecx ; length
movsxd r9, r9d
; make sure denominator and divider are fixed
FIX_BNU rdx,rcx, rax
FIX_BNU r8, r9, rax
mov r10, rdx ; save pX
mov r11, rcx ; save sizeX
;
; special case: sizeX < sizeY
;
.spec_case1:
cmp rcx, r9
jae .spec_case2
test rdi, rdi ; %if quotient was requested
jz .spec_case1_quit
mov DWORD [rdi], 0 ; pQ[0] = 0
mov DWORD [rsi], 1 ; sizeQ = 1
.spec_case1_quit:
mov rax, rcx ; remainder length address
REST_XMM
REST_GPR
ret
;
; special case: 1 == sizeY
;
.spec_case2:
cmp r9, 1
jnz .common_case
mov ebx, [r8] ; divider = pY[0]
xor edx,edx ; init remaider
.spec_case2_loop:
mov eax,[r10+r11*4-4]
div ebx ; (edx,eax)/pY[0]
test rdi, rdi ; store %if quotient requested
je .spec_case2_cont
mov [rdi+r11*4-4],eax
.spec_case2_cont:
sub r11,1
jg .spec_case2_loop
test rdi, rdi ; %if quotient was requested
je .spec_case2_quit
FIX_BNU rdi,rcx, rax ; fix quotient
mov DWORD [rsi], ecx ; store quotient length
.spec_case2_quit:
mov DWORD [r10],edx ; pX[0] = remainder value
mov rax, dword 1
REST_XMM
REST_GPR
ret
;
; common case
;
.common_case:
xor eax,eax ; expand denominator
mov [r10+r11*4], eax ; by zero
mov eax,[r8+r9*4-4] ; get divider's
NLZ32u ecx,eax ; factor
test ecx,ecx ; test normalization factor
jz .division ; and
mov r15,r9 ; normalize
SHL_BNU_I r8,r15, r12,r13 ; divider
lea r15,[r11+1] ; and
SHL_BNU_I r10,r15, r12,r13 ; denominator
; compute quotation digit-by-digit
.division:
mov ebx,[r8+r9*4-4] ; yHi - the most significant divider digit pY[ySize-1]
mov [rsp], r10 ; save pX
mov [rsp+8], r11 ; save sizeX
sub r11, r9 ; estimate length of quotient = (sizeX-sizeY+1)
mov [rsp+16], r11 ; (will use for loop counter)
lea r10, [r10+r11*4] ; points current denominator position
.division_loop:
mov rax,[r10+r9*4-4] ; tmp = (pX[xSize],pX[xSize-1])
xor rdx,rdx ; estimate quotation digit:
div rbx ; (rax) q = tmp/yHi
; (rdx) r = tmp%yHi
mov r12,rax
mov r13,rdx
mov ebp,[r8+r9*4-8] ; next significant divider digit pY[ySize-2]
.tune_loop:
mov r15,0FFFFFFFF00000000h
and r15,rax ; %if q >= base .tune q value
jne .tune
mul rbp ; (rax) A = q*pY[ySize-2]
mov r14,r13
shl r14,32 ; (rdx) B = QWORD(r,pX[xSize-2])
mov edx,[r10+r9*4-8]
or rdx,r14
cmp rax,rdx ; %if A>B .tune q value
jbe .mul_and_sub
.tune:
sub r12,1 ; q -= 1
add r13d,ebx ; r += yHi
mov rax,r12
jnc .tune_loop
.mul_and_sub:
mov r15,r9 ; multiplay and subtract
mov ebp,r12d
xMDC_BNU_D32 r8, rbp, r10,r15, r13,r14
sub [r10+r9*4],ebp ; extend = (pX[i+sizeY] -= extend);
jnc .store_duotation
sub r12d,1
mov r15,r9
xADD_BNU r10,rax, r10,r8,r15, r13,r14,rdx
add [r10+r9*4],eax ; pX[i+sizeY] += extend;
.store_duotation:
test rdi, rdi
jz .cont_division_loop
mov DWORD [rdi+r11*4],r12d
.cont_division_loop:
sub r10,4
sub r11,1
jge .division_loop
mov r10,[rsp] ; restore pX
mov r11,[rsp+8] ; restore sizeX
test ecx,ecx ; test normalization factor
jz .store_results ; and
mov r15,r9 ; de-normalize
SHR_BNU_I r8,r15, r12,r13 ; divider
mov r15,r11 ; and
SHR_BNU_I r10,r15, r12,r13 ; remainder
.store_results:
test rdi, rdi
jz .quit
mov rcx,[rsp+16] ; restore quotient length
add rcx,1
FIX_BNU rdi, rcx, rax ; fix quotient
mov DWORD [rsi], ecx
.quit:
FIX_BNU r10,r11, rax ; fix remainder
mov rax, r11
REST_XMM
REST_GPR
ret
ENDFUNC cpDiv_BNU32
%endif
|
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "config/stm32plus.h"
#if defined(STM32PLUS_F4)
#include "config/rtc.h"
#include "config/gpio.h"
#include "config/timing.h"
using namespace stm32plus;
/**
* Real time clock (RTC) demo.
*
* This demo sets up the RTC to flash a LED on PD13 every second. Additionally, an alarm is set
* to go off every 10 seconds and when it does the LED is flashed rapidly 5 times. The clock source
* is the LSI assumed to be 32768Hz.
*
* The RTC on the F1 is quite different to the F4 so I have elected to provide separate demos
* for the F1 and F4 (STM32F4DISCOVERY). This is the F4 demo.
*
* Compatible MCU:
* STM32F4
*
* Tested devices:
* STM32F407VGT6
*/
class RtcTest {
protected:
enum { LED_PIN = 13 };
bool _ledState;
volatile bool _ticked;
volatile bool _alarmed;
public:
void run() {
// initialise the LED port
GpioD<DefaultDigitalOutputFeature<LED_PIN> > pd;
// lights off (this LED is active high, i.e. PD13 is a source)
_ledState=true;
pd[LED_PIN].reset();
// declare an RTC instance customised with just the features we will use.
// a clock source is mandatory. The interrupt features are optional and
// will pull in the relevant methods and features for us to use
Rtc<
RtcLsiClockFeature<RtcMeasuredLsiFrequencyProvider>, // we'll clock it from the LSI clock and calibrate the LSI using a timer
RtcSecondInterruptFeature, // we want per-second interrupts
RtcAlarmAInterruptFeature // we also want the alarm A interrupt
> rtc;
// insert ourselves as subscribers to the per-second and alarm interrupts.
// we need to qualify ExtiInterruptSender with the name of its containing class because
// there are two ExtiInterruptSender's in the hierarchy.
rtc.RtcSecondInterruptFeature::ExtiInterruptEventSender.insertSubscriber(ExtiInterruptEventSourceSlot::bind(this,&RtcTest::onTick));
rtc.RtcAlarmInterruptFeature::ExtiInterruptEventSender.insertSubscriber(ExtiInterruptEventSourceSlot::bind(this,&RtcTest::onAlarm));
// set the time to midnight
rtc.setTime(0,0,0);
_ticked=_alarmed=false;
// start the second interrupt
rtc.enableSecondInterrupt();
// configure the alarm to go off on 10s time match. i.e. 0:0:10, 0:1:10, 0:2:10 etc...
rtc.setAlarm(RTC_AlarmMask_DateWeekDay | RTC_AlarmMask_Hours | RTC_AlarmMask_Minutes, // only consider seconds as the trigger
RTC_AlarmDateWeekDaySel_Date, // don't care
0, // day/date (don't care)
0, // hour (don't care)
0, // minute (don't care)
10); // second - on the 10's.
// main loop
for(;;) {
// if we ticked, toggle LED state
if(_ticked) {
_ledState^=true;
pd[LED_PIN].setState(_ledState);
// reset for next time
_ticked=false;
}
// if the alarm went off then flash rapidly
if(_alarmed) {
for(int i=0;i<5;i++) {
pd[LED_PIN].set();
MillisecondTimer::delay(50);
pd[LED_PIN].reset();
MillisecondTimer::delay(50);
}
// put the LED back where it was
pd[LED_PIN].setState(_ledState);
// reset for next time (in another 60 seconds)
_alarmed=false;
}
}
}
/*
* the RTC has ticked
*/
void onTick(uint8_t /* extiNumber */) {
_ticked=true;
}
/*
* the RTC has alarmed
*/
void onAlarm(uint8_t /* extiNumber */) {
_alarmed=true;
}
};
/*
* Main entry point
*/
int main() {
// set up SysTick at 1ms resolution
MillisecondTimer::initialise();
// we're using interrupts, initialise NVIC
Nvic::initialise();
RtcTest test;
test.run();
// not reached
return 0;
}
#endif // STM32PLUS_F4
|
; A261348: a(1)=0; a(2)=0; for n>2: a(n) = A237591(n,2) = A237593(n,2).
; 0,0,1,1,2,1,2,2,2,2,3,2,3,3,3,3,4,3,4,4,4,4,5,4,5,5,5,5,6,5,6,6,6,6,7,6,7,7,7,7,8,7,8,8,8,8,9,8,9,9,9,9,10,9,10,10,10,10,11,10,11,11,11,11,12,11,12,12,12,12,13,12,13,13,13,13,14,13,14,14,14,14,15,14,15,15,15,15,16,15,16,16,16,16,17,16
mov $2,$0
div $2,2
lpb $0
sub $0,3
mov $1,1
sub $2,1
add $1,$2
lpe
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1cef3, %rsi
lea addresses_WT_ht+0xc93, %rdi
nop
nop
nop
nop
cmp %rbx, %rbx
mov $112, %rcx
rep movsl
nop
nop
nop
nop
inc %rdi
lea addresses_WT_ht+0xf293, %rsi
lea addresses_D_ht+0xd113, %rdi
nop
add $20283, %r10
mov $79, %rcx
rep movsw
nop
nop
nop
sub %rsi, %rsi
lea addresses_UC_ht+0x1bd7f, %rsi
lea addresses_WC_ht+0xae43, %rdi
add $34533, %rbx
mov $93, %rcx
rep movsb
nop
nop
nop
nop
nop
xor $12222, %rcx
lea addresses_UC_ht+0x13ab3, %rsi
lea addresses_UC_ht+0x1d187, %rdi
nop
nop
nop
nop
nop
and $7500, %rdx
mov $14, %rcx
rep movsl
nop
nop
nop
xor $41973, %rdi
lea addresses_UC_ht+0x9d33, %rsi
lea addresses_UC_ht+0x1d453, %rdi
nop
add %rbx, %rbx
mov $55, %rcx
rep movsb
nop
nop
and %rbx, %rbx
lea addresses_WC_ht+0xee13, %rsi
nop
nop
nop
nop
add %r15, %r15
mov (%rsi), %rdx
nop
nop
nop
cmp $15662, %rbx
lea addresses_A_ht+0xc693, %r10
nop
nop
nop
xor $23637, %rcx
movw $0x6162, (%r10)
nop
nop
nop
nop
nop
inc %rcx
lea addresses_A_ht+0x13873, %rdx
nop
nop
add $11994, %r10
mov $0x6162636465666768, %rbx
movq %rbx, (%rdx)
nop
nop
nop
and $49608, %rdx
lea addresses_A_ht+0x3473, %rsi
lea addresses_normal_ht+0xb693, %rdi
nop
nop
nop
nop
nop
inc %rbx
mov $82, %rcx
rep movsb
and $17786, %rdi
lea addresses_normal_ht+0x13dd3, %rdi
nop
nop
nop
nop
sub %rsi, %rsi
mov $0x6162636465666768, %r10
movq %r10, (%rdi)
nop
sub $60391, %rcx
lea addresses_UC_ht+0x165f4, %rsi
lea addresses_D_ht+0xb393, %rdi
clflush (%rdi)
nop
nop
cmp %r14, %r14
mov $114, %rcx
rep movsb
nop
nop
nop
sub %rbx, %rbx
lea addresses_WT_ht+0x1a9ed, %rsi
lea addresses_A_ht+0x91d3, %rdi
clflush (%rdi)
nop
nop
add $10666, %rdx
mov $2, %rcx
rep movsw
nop
nop
nop
add $54623, %r14
lea addresses_normal_ht+0x7669, %r15
nop
nop
nop
xor $25797, %rdi
movb (%r15), %r10b
nop
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_D_ht+0x9f93, %rsi
lea addresses_WC_ht+0x1ebd3, %rdi
nop
nop
nop
nop
nop
cmp %r15, %r15
mov $22, %rcx
rep movsq
nop
and %r10, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %rbx
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_A+0x17093, %rsi
lea addresses_D+0x1b6bb, %rdi
nop
nop
nop
nop
sub %rbx, %rbx
mov $19, %rcx
rep movsl
nop
nop
nop
xor $40859, %r13
// Store
lea addresses_WT+0x9a93, %r11
and $14521, %rdi
mov $0x5152535455565758, %rcx
movq %rcx, %xmm3
movups %xmm3, (%r11)
nop
nop
nop
nop
inc %r10
// Store
lea addresses_UC+0x17c97, %rdi
nop
nop
nop
nop
xor $60375, %r10
mov $0x5152535455565758, %r11
movq %r11, %xmm4
vmovups %ymm4, (%rdi)
nop
nop
nop
nop
add $10431, %r11
// Store
lea addresses_D+0x14153, %r10
add $58643, %rbx
mov $0x5152535455565758, %r13
movq %r13, %xmm1
movups %xmm1, (%r10)
nop
nop
nop
nop
add $53934, %rcx
// Faulty Load
mov $0x20cd470000000b93, %rdi
nop
nop
nop
nop
sub %r11, %r11
vmovups (%rdi), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rcx
lea oracles, %r11
and $0xff, %rcx
shlq $12, %rcx
mov (%r11,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 5}}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': True}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 8, 'NT': True, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': True, 'same': False, 'congruent': 4}}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 5}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
<%
from pwnlib.shellcraft.powerpc.linux import syscall
%>
<%page args="fd, offset, count"/>
<%docstring>
Invokes the syscall readahead. See 'man 2 readahead' for more information.
Arguments:
fd(int): fd
offset(off64_t): offset
count(size_t): count
</%docstring>
${syscall('SYS_readahead', fd, offset, count)}
|
; A310492: Coordination sequence Gal.6.249.6 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Simon Strandgaard
; 1,4,10,16,20,24,28,32,38,44,48,52,58,64,68,72,76,80,86,92,96,100,106,112,116,120,124,128,134,140,144,148,154,160,164,168,172,176,182,188,192,196,202,208,212,216,220,224,230,236
mov $1,$0
mov $2,$0
mul $0,12
sub $0,1
seq $1,314725 ; Coordination sequence Gal.5.114.3 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
mod $0,$1
add $0,1
mul $2,2
add $0,$2
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r9
push %rcx
push %rsi
// Faulty Load
mov $0x91cd60000000327, %rsi
nop
nop
nop
nop
nop
add $174, %r9
movb (%rsi), %r14b
lea oracles, %rsi
and $0xff, %r14
shlq $12, %r14
mov (%rsi,%r14,1), %r14
pop %rsi
pop %rcx
pop %r9
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
0148FE move.w (A1)+, D2
014900 andi.w #$ffe0, D2 [base+6006, base+6026, base+602E, base+610E, base+6116, base+6186, base+618E, base+6196, base+619E, base+61A6, base+61AE, base+621E, base+622E, base+62B6, base+6306, base+630E, base+6316, base+6386, base+638E, base+6396, base+639E, base+63A6, base+63AE, base+641E, base+642E, base+64B6, base+650E, base+6516, base+6586, base+658E, base+6596, base+659E, base+65A6]
07E7E8 move.l D0, (A0)+
07E7EA dbra D1, $7e7e8
07E9BE move.l (A0)+, (A1)+ [base+629A, base+629C, base+631A, base+631C, base+639A, base+639C, base+649A, base+649C, base+651A, base+651C]
07E9C0 moveq #$2, D4 [base+629E, base+62A0, base+631E, base+6320, base+639E, base+63A0, base+649E, base+64A0, base+651E, base+6520]
07EA92 move.w D3, (A1)+ [base+6004, base+6014, base+6024, base+602C, base+60AC, base+6104, base+610C, base+6114, base+611C, base+6184, base+618C, base+6194, base+619C, base+61A4, base+61AC, base+6224, base+622C, base+62AC, base+6304, base+630C, base+6314, base+6384, base+638C, base+6394, base+639C, base+63A4, base+63AC, base+641C, base+6424, base+642C, base+6504, base+650C, base+6514, base+652C]
07EA94 move.l D5, D0 [base+6006, base+6026, base+602E, base+6096, base+60AE, base+6106, base+610E, base+6116, base+6186, base+618E, base+6196, base+619E, base+61A6, base+61AE, base+621E, base+6226, base+622E, base+6306, base+630E, base+6316, base+6386, base+638E, base+6396, base+639E, base+63A6, base+63AE, base+641E, base+6426, base+642E, base+6496, base+6506, base+650E, base+6516, base+652E]
0AAACA move.l (A0), D2
0AAACC move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAACE move.w D0, ($2,A0)
0AAAD2 cmp.l (A0), D0
0AAAD4 bne $aaafc
0AAAD8 move.l D2, (A0)+
0AAADA cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAAE6 move.l (A0), D2
0AAAE8 move.w D0, (A0) [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
0AAAF4 move.l D2, (A0)+
0AAAF6 cmpa.l A0, A1 [123p+11A, 123p+11C, 123p+11E, 123p+120, 123p+122, 123p+124, 123p+126, 123p+128, 123p+12A, base+6FFE, enemy+BC, enemy+C0, enemy+C2, enemy+C4, enemy+CC, enemy+CE, enemy+D0, enemy+D2, enemy+D4, enemy+D6, enemy+D8, enemy+DA, item+86, item+88, item+8A, item+98, item+9A, item+9C, item+9E, item+A0, item+A2, item+A4, item+A6, scr1]
copyright zengfr site:http://github.com/zengfr/romhack
|
; void *obstack_int_grow(struct obstack *ob, int data)
SECTION code_alloc_obstack
PUBLIC obstack_int_grow
EXTERN asm_obstack_int_grow
obstack_int_grow:
pop af
pop bc
pop hl
push hl
push bc
push af
jp asm_obstack_int_grow
|
; A188590: [(n+1)*r] - [n*r], where r = 3/2 + sqrt(13)/2 and [...] denotes the floor function.
; 3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,3,4,3,3,4,3,3,4,3,3,4,3
mov $3,$0
mov $6,2
lpb $6
mov $0,$3
sub $6,1
add $0,$6
sub $0,1
mov $5,$0
mul $5,10
add $5,2
mul $0,$5
lpb $0
add $5,$0
add $0,5
sub $5,$0
mov $0,4
mov $2,$5
div $2,11
add $2,2
lpe
div $2,3
mov $4,$6
lpb $4
mov $1,$2
sub $4,1
lpe
lpe
lpb $3
sub $1,$2
mov $3,0
lpe
add $1,3
mov $0,$1
|
; A174748: x-values in the solution to x^2-33*y^2=1.
; Submitted by Christian Krause
; 1,23,1057,48599,2234497,102738263,4723725601,217188639383,9985953686017,459136680917399,21110301368514337,970614726270742103,44627167107085622401,2051879072199667888343,94341810154077637241377,4337671388015371645214999,199438542038553018042648577,9169835262385423458316619543,421612983527690926064521850401,19385027407011397175509688498903,891289647738996579147381149099137,40979938768586831243604023170061399,1884185893707255240626637684673725217,86631571171765154237581729471821298583
mov $3,1
lpb $0
sub $0,$3
add $4,$2
mov $1,$4
mul $1,22
add $2,1
add $2,$1
add $4,$2
lpe
mov $0,$4
mul $0,22
add $0,1
|
#pragma once
#include <utility>
template <class Func>
class Defer {
Func func_;
public:
// NOLINTNEXTLINE(google-explicit-constructor)
Defer(Func func) try
: func_(std::move(func))
{
} catch (...) {
func();
throw;
}
Defer(const Defer&) = delete;
Defer(Defer&&) = delete;
Defer& operator=(const Defer&) = delete;
Defer& operator=(Defer&&) = delete;
~Defer() {
try {
func_();
} catch (...) {
}
}
};
|
.data
.text
main: addi $fp ,$zero ,32767
addi $sp ,$fp ,0
addi $8 ,$zero ,64512
addi $t8 ,$zero ,0
sw $t8, 0($8)
label2: j label3
label3: addi $9 ,$zero ,64528
lw $10 ,0($9)
label6: addi $11 ,$zero ,64512
sw $10, 0($11)
j label2
label9: addi $v0 ,$zero ,0 |
.data #Apartado de declaración de datos
num1: .word 15 #.word para representar datos enteros
num2: .word 10
pedir: .asciiz "Digite un numero:"
letrero1: .asciiz "Suma: " #.ascciz para representar cadenas o string
letrero2: .asciiz "Resta: "
letrero3: .asciiz "Multiplicacion: "
letrero4: .asciiz "Division entera: "
saltoLinea: .asciiz "\n" # \n representa un enter o salto de línea
.text
main: # Etiqueta de función base o principal
# --Cargar numeros----------------------------------------------------
lw $t0,num1 #load .word num1 a temporal 0
lw $t1,num2
#--Incluir lectura por parte del usuario------------------------------
li $v0, 4
la $a0, pedir
syscall
li $v0, 5 #li con parametro cinco permite la lectura de un entero por teclado
syscall
add $t0, $zero, $v0 #Guardado del valor leido al temporal
li $v0, 4
la $a0, pedir
syscall
li $v0, 5
syscall
add $t1, $zero, $v0
# --Calcular operaciones----------------------------------------------
add $t2,$t0,$t1 #Cargar el resultado de $t0 y $t1 al primer parametro
sub $t3,$t0,$t1
mul $t4,$t0,$t1
div $t5,$t0,$t1
# --Desplegar resultados de suma--------------------------------------
li $v0,4 # Load inmediate -> Prepara impresion string
la $a0, letrero1 # Load adress
syscall # Ejecución
li $v0,1 # Load inmediate -> Prepara impresion entera
add $a0, $zero, $t2 # Suma para pasar a $a0
syscall
jal saltarLinea # Llamado a la funcion para imprimir \n
# --Desplegar resultados de resta------------
li $v0,4
la $a0, letrero2
syscall
li $v0,1
add $a0, $zero, $t3
syscall
jal saltarLinea
#--- Desplegar resultados de multiplicacion--
li $v0,4
la $a0, letrero3
syscall
li $v0,1
add $a0, $zero, $t4
syscall
jal saltarLinea
#--- Desplegar resultados de division-------
li $v0,4
la $a0, letrero4
syscall
li $v0,1
add $a0, $zero, $t5
syscall
# --Preparación para finalizar ejecución-----
li $v0, 10
syscall
saltarLinea:
li $v0,4
la $a0, saltoLinea
syscall
jr $ra # Retorno a la posicion donde fue llamado
|
SECTION code_driver
SECTION code_driver_character_input
PUBLIC asm_asci0_peekc
EXTERN asci0RxCount, asci0RxOut
asm_asci0_peekc:
ld a,(asci0RxCount) ; get the number of bytes in the Rx buffer
ld l,a ; and put it in hl
or a ; see if there are zero bytes available
ret Z ; if the count is zero, then return
ld hl,(asci0RxOut) ; get the pointer to place where we pop the Rx byte
ld a,(hl) ; get the Rx byte
ld l,a ; and put it in hl
ret
EXTERN asm_asci0_need
defc NEED = asm_asci0_need
|
const char outdata[] = /* NOLINT */
{
// FileSystemVirtualChannel::process_server_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x6e\x49\x01\x00\x0c\x00\x02\x00\x00\x00" //rDnI........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Announce Request |
// ServerAnnounceRequest: VersionMajor=0x0001 VersionMinor=0x000C ClientId=2 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x6e\x49\x01\x00\x0c\x00\x02\x00\x00\x00" //rDnI........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x43\x43\x01\x00\x0c\x00\x02\x00\x00\x00" //rDCC........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Announce Reply |
// ClientAnnounceReply: VersionMajor=0x0001 VersionMinor=0x000C ClientId=2 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x43\x43\x01\x00\x0c\x00\x02\x00\x00\x00" //rDCC........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=32 flags=0x00000003 chunk_data_length=32 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x20\x00\x00\x00" // ... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x20\x00\x00\x00" // ... |
// /* 0000 */ "\x72\x44\x4e\x43\xf9\x7f\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00" //rDNC............ |
// /* 0010 */ "\x54\x00\x45\x00\x53\x00\x54\x00\x4b\x00\x52\x00\x42\x00\x00\x00" //T.E.S.T.K.R.B... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Name Request |
// ClientNameRequest: UnicodeFlag=0x7FF9 CodePage=0 ComputerName="TESTKRB" |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x20\x00\x00\x00" // ... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x20\x00\x00\x00" // ... |
/* 0000 */ "\x72\x44\x4e\x43\xf9\x7f\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00" //rDNC............ |
/* 0010 */ "\x54\x00\x45\x00\x53\x00\x54\x00\x4b\x00\x52\x00\x42\x00\x00\x00" //T.E.S.T.K.R.B... |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: total_length=84 flags=0x00000003 chunk_data_length=84 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x54\x00\x00\x00" //T... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x54\x00\x00\x00" //T... |
// /* 0000 */ "\x72\x44\x50\x53\x05\x00\x00\x00\x01\x00\x2c\x00\x02\x00\x00\x00" //rDPS......,..... |
// /* 0010 */ "\x02\x00\x00\x00\x00\x00\x00\x00\x01\x00\x0c\x00\xff\xff\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x02\x00\x00\x00\x02\x00\x08\x00\x01\x00\x00\x00\x03\x00\x08\x00" //................ |
// /* 0040 */ "\x01\x00\x00\x00\x04\x00\x08\x00\x02\x00\x00\x00\x05\x00\x08\x00" //................ |
// /* 0050 */ "\x01\x00\x00\x00" //.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Core Capability Request |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x54\x00\x00\x00" //T... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x54\x00\x00\x00" //T... |
/* 0000 */ "\x72\x44\x50\x53\x05\x00\x00\x00\x01\x00\x2c\x00\x02\x00\x00\x00" //rDPS......,..... |
/* 0010 */ "\x02\x00\x00\x00\x00\x00\x00\x00\x01\x00\x0c\x00\xff\xff\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x02\x00\x00\x00\x02\x00\x08\x00\x01\x00\x00\x00\x03\x00\x08\x00" //................ |
/* 0040 */ "\x01\x00\x00\x00\x04\x00\x08\x00\x02\x00\x00\x00\x05\x00\x08\x00" //................ |
/* 0050 */ "\x01\x00\x00\x00" //.... |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x43\x43\x01\x00\x0c\x00\x02\x00\x00\x00" //rDCC........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Client ID Confirm |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x43\x43\x01\x00\x0c\x00\x02\x00\x00\x00" //rDCC........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=84 flags=0x00000003 chunk_data_length=84 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x54\x00\x00\x00" //T... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x54\x00\x00\x00" //T... |
// /* 0000 */ "\x72\x44\x50\x43\x05\x00\x00\x00\x01\x00\x2c\x00\x02\x00\x00\x00" //rDPC......,..... |
// /* 0010 */ "\x02\x00\x00\x00\x02\x00\x06\x00\x01\x00\x0c\x00\xff\xff\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x07\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x02\x00\x08\x00\x01\x00\x00\x00\x03\x00\x08\x00" //................ |
// /* 0040 */ "\x01\x00\x00\x00\x04\x00\x08\x00\x01\x00\x00\x00\x05\x00\x08\x00" //................ |
// /* 0050 */ "\x01\x00\x00\x00" //.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Core Capability Response |
// FileSystemVirtualChannel::process_client_core_capability_response: numCapabilities=5 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0001 CapabilityLength=44 Version=0x2 |
// FileSystemVirtualChannel::process_client_general_capability_set: |
// GeneralCapabilitySet: osType=0x2 osVersion=0x60002 protocolMajorVersion=0x1 protocolMinorVersion=0xC ioCode1=0xFFFF ioCode2=0x0 extendedPDU=0x7 extraFlags1=0x1 extraFlags2=0x0 SpecialTypeDeviceCap=0 |
// FileSystemVirtualChannel::process_client_general_capability_set:Deny user to send multiple simultaneous read or write requests on the same file from a redirected file system. |
// GeneralCapabilitySet: osType=0x2 osVersion=0x60002 protocolMajorVersion=0x1 protocolMinorVersion=0xC ioCode1=0xFFFF ioCode2=0x0 extendedPDU=0x7 extraFlags1=0x0 extraFlags2=0x0 SpecialTypeDeviceCap=0 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0002 CapabilityLength=8 Version=0x1 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0003 CapabilityLength=8 Version=0x1 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0004 CapabilityLength=8 Version=0x1 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0005 CapabilityLength=8 Version=0x1 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x54\x00\x00\x00" //T... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x54\x00\x00\x00" //T... |
/* 0000 */ "\x72\x44\x50\x43\x05\x00\x00\x00\x01\x00\x2c\x00\x02\x00\x00\x00" //rDPC......,..... |
/* 0010 */ "\x02\x00\x00\x00\x02\x00\x06\x00\x01\x00\x0c\x00\xff\xff\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x02\x00\x08\x00\x01\x00\x00\x00\x03\x00\x08\x00" //................ |
/* 0040 */ "\x01\x00\x00\x00\x04\x00\x08\x00\x01\x00\x00\x00\x05\x00\x08\x00" //................ |
/* 0050 */ "\x01\x00\x00\x00" //.... |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=8 flags=0x00000003 chunk_data_length=8 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x08\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x08\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x41\x44\x00\x00\x00\x00" //rDAD.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceCount=0 |
// FileSystemVirtualChannel::process_client_message: total_length=8 flags=0x00000003 chunk_data_length=8 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x08\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x08\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x41\x44\x00\x00\x00\x00" //rDAD.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceCount=0 |
// process save session info : Logon extended info |
// process save session info : Logon Errors Info |
// ErrorNotificationData=LOGON_MSG_SESSION_CONTINUE(0xFFFFFFFE) "The logon process is continuing." ErrorNotificationType=LOGON_FAILED_OTHER(0x00000002) "The logon process failed. The reason for the failure can be deduced from the ErrorNotificationData field." |
// process save session info : Logon long |
// Logon Info Version 2 (data): Domain="WIN-1R5JGCUI6TK" UserName="Administrateur" SessionId=2 |
// Ask acl |
// sending reporting=OPEN_SESSION_SUCCESSFUL:win2k8pri:Ok. |
// sending keepalive=ASK |
// process save session info : Logon extended info |
// process save session info : Auto-reconnect cookie |
// LogonId=2 |
// 0000 5c b6 53 e1 54 bf 80 12 62 4c 64 4e 52 ea e7 b6 ..S.T...bLdNR... |
// +++++++++++> ACL receive <++++++++++++++++ |
// receiving 'keepalive'='True' |
// FileSystemVirtualChannel::process_server_message: total_length=4 flags=0x00000003 chunk_data_length=4 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x04\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x04\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x4c\x55" //rDLU |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server User Logged On |
// FileSystemDriveManager::announce_drive |
// DeviceAnnounceHeader: DeviceType=RDPDR_DTYP_FILESYSTEM(8) DeviceId=32767 PreferredDosName="EXPORT" |
// 0000 45 58 50 4f 52 54 00 EXPORT. |
// FileSystemDriveManager::announce_drive |
// DeviceAnnounceHeader: DeviceType=RDPDR_DTYP_FILESYSTEM(8) DeviceId=32768 PreferredDosName="SHARE" |
// 0000 53 48 41 52 45 00 SHARE. |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x23\x00\x00\x00" //#... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x23\x00\x00\x00" //#... |
/* 0000 */ "\x72\x44\x41\x44\x01\x00\x00\x00\x08\x00\x00\x00\xff\x7f\x00\x00" //rDAD............ |
/* 0010 */ "\x45\x58\x50\x4f\x52\x54\x00\x00\x07\x00\x00\x00\x45\x58\x50\x4f" //EXPORT......EXPO |
/* 0020 */ "\x52\x54\x00" //RT. |
// Sent dumped on channel (-1) n bytes |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x04\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x04\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x4c\x55" //rDLU |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x72\x64\xff\x7f\x00\x00\x00\x00\x00\x00" //rDrd........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=32767 ResultCode=0x00000000 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x22\x00\x00\x00" //"... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x22\x00\x00\x00" //"... |
/* 0000 */ "\x72\x44\x41\x44\x01\x00\x00\x00\x08\x00\x00\x00\x00\x80\x00\x00" //rDAD............ |
/* 0010 */ "\x53\x48\x41\x52\x45\x00\x00\x00\x06\x00\x00\x00\x53\x48\x41\x52" //SHARE.......SHAR |
/* 0020 */ "\x45\x00" //E. |
// Sent dumped on channel (-1) n bytes |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x72\x64\xff\x7f\x00\x00\x00\x00\x00\x00" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=8 flags=0x00000003 chunk_data_length=8 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x08\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x08\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x41\x44\x00\x00\x00\x00" //rDAD.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceCount=0 |
// FileSystemVirtualChannel::process_server_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x72\x64\x00\x80\x00\x00\x00\x00\x00\x00" //rDrd........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=32768 ResultCode=0x00000000 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x72\x64\x00\x80\x00\x00\x00\x00\x00\x00" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000001 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x72\x44\x41\x44\x05\x00\x00\x00\x04\x00\x00\x00\x04\x00\x00\x00" //rDAD............ |
// /* 0010 */ "\x50\x52\x4e\x34\x00\x00\x00\x00\x88\x00\x00\x00\x12\x00\x00\x00" //PRN4............ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\x00\x00\x38\x00\x00\x00" //........8...8... |
// /* 0030 */ "\x00\x00\x00\x00\x43\x00\x61\x00\x6e\x00\x6f\x00\x6e\x00\x20\x00" //....C.a.n.o.n. . |
// /* 0040 */ "\x69\x00\x52\x00\x2d\x00\x41\x00\x44\x00\x56\x00\x20\x00\x43\x00" //i.R.-.A.D.V. .C. |
// /* 0050 */ "\x35\x00\x30\x00\x33\x00\x30\x00\x2f\x00\x35\x00\x30\x00\x33\x00" //5.0.3.0./.5.0.3. |
// /* 0060 */ "\x35\x00\x20\x00\x50\x00\x53\x00\x33\x00\x00\x00\x43\x00\x61\x00" //5. .P.S.3...C.a. |
// /* 0070 */ "\x6e\x00\x6f\x00\x6e\x00\x20\x00\x69\x00\x52\x00\x2d\x00\x41\x00" //n.o.n. .i.R.-.A. |
// /* 0080 */ "\x44\x00\x56\x00\x20\x00\x43\x00\x35\x00\x30\x00\x33\x00\x30\x00" //D.V. .C.5.0.3.0. |
// /* 0090 */ "\x2f\x00\x35\x00\x30\x00\x33\x00\x35\x00\x20\x00\x50\x00\x53\x00" ///.5.0.3.5. .P.S. |
// /* 00a0 */ "\x33\x00\x00\x00\x04\x00\x00\x00\x05\x00\x00\x00\x50\x52\x4e\x35" //3...........PRN5 |
// /* 00b0 */ "\x00\x00\x00\x00\x98\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x40\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00" //....@...@....... |
// /* 00d0 */ "\x43\x00\x61\x00\x6e\x00\x6f\x00\x6e\x00\x20\x00\x69\x00\x52\x00" //C.a.n.o.n. .i.R. |
// /* 00e0 */ "\x2d\x00\x41\x00\x44\x00\x56\x00\x20\x00\x36\x00\x30\x00\x35\x00" //-.A.D.V. .6.0.5. |
// /* 00f0 */ "\x35\x00\x2f\x00\x36\x00\x30\x00\x36\x00\x35\x00\x2d\x00\x55\x00" //5./.6.0.6.5.-.U. |
// /* 0000 */ "\x31\x00\x20\x00\x50\x00\x43\x00\x4c\x00\x35\x00\x65\x00\x00\x00" //1. .P.C.L.5.e... |
// /* 0010 */ "\x43\x00\x61\x00\x6e\x00\x6f\x00\x6e\x00\x20\x00\x69\x00\x52\x00" //C.a.n.o.n. .i.R. |
// /* 0020 */ "\x2d\x00\x41\x00\x44\x00\x56\x00\x20\x00\x36\x00\x30\x00\x35\x00" //-.A.D.V. .6.0.5. |
// /* 0030 */ "\x35\x00\x2f\x00\x36\x00\x30\x00\x36\x00\x35\x00\x2d\x00\x55\x00" //5./.6.0.6.5.-.U. |
// /* 0040 */ "\x31\x00\x20\x00\x50\x00\x43\x00\x4c\x00\x35\x00\x65\x00\x00\x00" //1. .P.C.L.5.e... |
// /* 0050 */ "\x04\x00\x00\x00\x03\x00\x00\x00\x50\x52\x4e\x33\x00\x00\x00\x00" //........PRN3.... |
// /* 0060 */ "\x9e\x4a\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //.J.............. |
// /* 0070 */ "\x42\x00\x00\x00\x3c\x00\x00\x00\x08\x4a\x00\x00\x4d\x00\x69\x00" //B...<....J..M.i. |
// /* 0080 */ "\x63\x00\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00" //c.r.o.s.o.f.t. . |
// /* 0090 */ "\x58\x00\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00" //X.P.S. .D.o.c.u. |
// /* 00a0 */ "\x6d\x00\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00" //m.e.n.t. .W.r.i. |
// /* 00b0 */ "\x74\x00\x65\x00\x72\x00\x20\x00\x76\x00\x34\x00\x00\x00\x4d\x00" //t.e.r. .v.4...M. |
// /* 00c0 */ "\x69\x00\x63\x00\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00" //i.c.r.o.s.o.f.t. |
// /* 00d0 */ "\x20\x00\x58\x00\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00" // .X.P.S. .D.o.c. |
// /* 00e0 */ "\x75\x00\x6d\x00\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00" //u.m.e.n.t. .W.r. |
// /* 00f0 */ "\x69\x00\x74\x00\x65\x00\x72\x00\x00\x00\x48\x00\x00\x00\x00\x00" //i.t.e.r...H..... |
// /* 0000 */ "\x00\x00\x94\x20\x00\x00\x00\x00\x00\x00\x32\x00\x00\x00\x00\x00" //... ......2..... |
// /* 0010 */ "\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\x7c\x45\x00\x00\x00\x00" //..........|E.... |
// /* 0020 */ "\x00\x00\x48\x00\x00\x00\x00\x00\x00\x00\x60\x10\x00\x00\x00\x00" //..H.......`..... |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\x20\x00\x00\x00\x00" //..........x .... |
// /* 0040 */ "\x00\x00\x18\x10\x00\x00\x01\x00\x00\x00\x18\x00\x00\x00\x18\x00" //................ |
// /* 0050 */ "\x00\x00\x18\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x9e\x0f" //................ |
// /* 0060 */ "\x00\x00\x9c\x0f\x00\x00\x90\x0f\x00\x00\x4e\x0f\x00\x00\x00\x00" //..........N..... |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\xc0\x0a\x00\x00\x00\x00\x00\x00\x3c\x0f" //..............<. |
// /* 0080 */ "\x00\x00\x34\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x82" //..4...........@. |
// /* 0090 */ "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x40\x82\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" //..@............. |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceCount=5 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_PRINT(4) DeviceId=4 PreferredDosName="PRN4" DeviceDataLength=136 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=4 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x72\x64\x04\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_PRINT(4) DeviceId=5 PreferredDosName="PRN5" DeviceDataLength=152 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=5 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x72\x64\x05\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_PRINT(4) DeviceId=3 PreferredDosName="PRN3" DeviceDataLength=19102 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=3 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x72\x64\x03\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x04\x80\x64\x01" //..............d. |
// /* 0060 */ "\x00\x00\x70\x01\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x02\x00" //..p............. |
// /* 0070 */ "\x50\x01\x0d\x00\x00\x00\x00\x00\x14\x00\x0c\x00\x0f\x00\x01\x01" //P............... |
// /* 0080 */ "\x00\x00\x00\x00\x00\x05\x12\x00\x00\x00\x00\x09\x14\x00\x30\x00" //..............0. |
// /* 0090 */ "\x0f\x00\x01\x01\x00\x00\x00\x00\x00\x05\x12\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x18\x00\x08\x00\x02\x00\x01\x02\x00\x00\x00\x00\x00\x05\x20\x00" //.............. . |
// /* 00b0 */ "\x00\x00\x26\x02\x00\x00\x00\x00\x18\x00\x00\x00\x08\x00\x01\x02" //..&............. |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x05\x20\x00\x00\x00\x26\x02\x00\x00\x00\x00" //...... ...&..... |
// /* 00d0 */ "\x18\x00\x08\x00\x02\x00\x01\x02\x00\x00\x00\x00\x00\x0f\x02\x00" //................ |
// /* 00e0 */ "\x00\x00\x01\x00\x00\x00\x00\x09\x18\x00\x00\x00\x02\x00\x01\x02" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x0f\x02\x00\x00\x00\x01\x00\x00\x00\x00\x09" //................ |
// /* 0000 */ "\x18\x00\x30\x00\x0f\x00\x01\x02\x00\x00\x00\x00\x00\x0f\x02\x00" //..0............. |
// /* 0010 */ "\x00\x00\x01\x00\x00\x00\x00\x09\x14\x00\x00\x00\x02\x00\x01\x01" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x09\x14\x00\x30\x00" //..............0. |
// /* 0030 */ "\x0f\x00\x01\x01\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x1c\x00\x08\x00\x02\x00\x01\x03\x00\x00\x00\x00\x00\x05\x05\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\xc9\x83\xfa\x03\x00\x0a\x1c\x00\x00\x00" //................ |
// /* 0020 */ "\x02\x00\x01\x03\x00\x00\x00\x00\x00\x05\x05\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\xc9\x83\xfa\x03\x00\x09\x1c\x00\x30\x00\x0f\x00\x01\x03" //..........0..... |
// /* 0040 */ "\x00\x00\x00\x00\x00\x05\x05\x00\x00\x00\x00\x00\x00\x00\xc9\x83" //................ |
// /* 0050 */ "\xfa\x03\x00\x09\x24\x00\x00\x00\x01\x00\x01\x05\x00\x00\x00\x00" //....$........... |
// /* 0060 */ "\x00\x05\x15\x00\x00\x00\xd3\x98\xea\xeb\xad\xc4\xb4\xd2\x26\x0a" //..............&. |
// /* 0070 */ "\x1c\x01\x54\x04\x00\x00\x15\x00\x00\x00\xd3\x98\xea\xeb\x01\x01" //..T............. |
// /* 0080 */ "\x00\x00\x00\x00\x00\x05\x12\x00\x00\x00\x01\x01\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x05\x12\x00\x00\x00\x00\x00\x00\x00\x4d\x00\x69\x00\x63\x00" //..........M.i.c. |
// /* 00a0 */ "\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00" //r.o.s.o.f.t. .X. |
// /* 00b0 */ "\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00" //P.S. .D.o.c.u.m. |
// /* 00c0 */ "\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00" //e.n.t. .W.r.i.t. |
// /* 00d0 */ "\x65\x00\x72\x00\x20\x00\x28\x00\x00\x00\x01\x04\x03\x06\xdc\x00" //e.r. .(......... |
// /* 00e0 */ "\x98\x03\x03\xaf\x01\x00\x01\x00\x09\x00\x9a\x0b\x34\x08\x64\x00" //............4.d. |
// /* 00f0 */ "\x01\x00\x0f\x00\x58\x02\x02\x00\x01\x00\x58\x02\x03\x00\x00\x00" //....X.....X..... |
// /* 0000 */ "\x41\x00\x34\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //A.4............. |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\x01\x00" //................ |
// /* 0060 */ "\x00\x00\xff\xff\xff\xff\x47\x49\x53\x34\x00\x00\x00\x00\x00\x00" //......GIS4...... |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x44\x49\x4e\x55\x22\x00\x20\x01\x7c\x03" //......DINU". .|. |
// /* 0080 */ "\x1c\x00\xca\xd2\xf6\x72\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //.....r.......... |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x20\x01\x00\x00\x53\x4d\x54\x4a\x00\x00\x00\x00\x10\x00" //.. ...SMTJ...... |
// /* 00e0 */ "\x10\x01\x7b\x00\x30\x00\x46\x00\x34\x00\x31\x00\x33\x00\x30\x00" //..{.0.F.4.1.3.0. |
// /* 00f0 */ "\x44\x00\x44\x00\x2d\x00\x31\x00\x39\x00\x43\x00\x37\x00\x2d\x00" //D.D.-.1.9.C.7.-. |
// /* 0000 */ "\x37\x00\x61\x00\x62\x00\x36\x00\x2d\x00\x39\x00\x39\x00\x41\x00" //7.a.b.6.-.9.9.A. |
// /* 0010 */ "\x31\x00\x2d\x00\x39\x00\x38\x00\x30\x00\x46\x00\x30\x00\x33\x00" //1.-.9.8.0.F.0.3. |
// /* 0020 */ "\x42\x00\x32\x00\x45\x00\x45\x00\x34\x00\x45\x00\x7d\x00\x00\x00" //B.2.E.E.4.E.}... |
// /* 0030 */ "\x49\x6e\x70\x75\x74\x42\x69\x6e\x00\x46\x4f\x52\x4d\x53\x4f\x55" //InputBin.FORMSOU |
// /* 0040 */ "\x52\x43\x45\x00\x52\x45\x53\x44\x4c\x4c\x00\x55\x6e\x69\x72\x65" //RCE.RESDLL.Unire |
// /* 0050 */ "\x73\x44\x4c\x4c\x00\x49\x6e\x74\x65\x72\x6c\x65\x61\x76\x69\x6e" //sDLL.Interleavin |
// /* 0060 */ "\x67\x00\x4f\x46\x46\x00\x49\x6d\x61\x67\x65\x54\x79\x70\x65\x00" //g.OFF.ImageType. |
// /* 0070 */ "\x4a\x50\x45\x47\x4d\x65\x64\x00\x4f\x72\x69\x65\x6e\x74\x61\x74" //JPEGMed.Orientat |
// /* 0080 */ "\x69\x6f\x6e\x00\x50\x4f\x52\x54\x52\x41\x49\x54\x00\x43\x6f\x6c" //ion.PORTRAIT.Col |
// /* 0090 */ "\x6c\x61\x74\x65\x00\x4f\x46\x46\x00\x52\x65\x73\x6f\x6c\x75\x74" //late.OFF.Resolut |
// /* 00a0 */ "\x69\x6f\x6e\x00\x4f\x70\x74\x69\x6f\x6e\x31\x00\x50\x61\x70\x65" //ion.Option1.Pape |
// /* 00b0 */ "\x72\x53\x69\x7a\x65\x00\x4c\x45\x54\x54\x45\x52\x00\x43\x6f\x6c" //rSize.LETTER.Col |
// /* 00c0 */ "\x6f\x72\x4d\x6f\x64\x65\x00\x32\x34\x62\x70\x70\x00\x00\x00\x00" //orMode.24bpp.... |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x1c\x00\x00\x00\x56\x34\x44\x4d\x01\x00\x00\x00\x00\x00" //......V4DM...... |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x52\x00" //..............R. |
// /* 0010 */ "\x41\x00\x57\x00\x00\x00\x77\x00\x69\x00\x6e\x00\x70\x00\x72\x00" //A.W...w.i.n.p.r. |
// /* 0020 */ "\x69\x00\x6e\x00\x74\x00\x00\x00\x4d\x00\x69\x00\x63\x00\x72\x00" //i.n.t...M.i.c.r. |
// /* 0030 */ "\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00\x50\x00" //o.s.o.f.t. .X.P. |
// /* 0040 */ "\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00\x65\x00" //S. .D.o.c.u.m.e. |
// /* 0050 */ "\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00\x65\x00" //n.t. .W.r.i.t.e. |
// /* 0060 */ "\x72\x00\x20\x00\x76\x00\x34\x00\x00\x00\x54\x00\x53\x00\x30\x00" //r. .v.4...T.S.0. |
// /* 0070 */ "\x30\x00\x31\x00\x00\x00\x00\x00\x4d\x00\x69\x00\x63\x00\x72\x00" //0.1.....M.i.c.r. |
// /* 0080 */ "\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00\x50\x00" //o.s.o.f.t. .X.P. |
// /* 0090 */ "\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00\x65\x00" //S. .D.o.c.u.m.e. |
// /* 00a0 */ "\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00\x65\x00" //n.t. .W.r.i.t.e. |
// /* 00b0 */ "\x72\x00\x20\x00\x28\x00\x72\x00\x65\x00\x64\x00\x69\x00\x72\x00" //r. .(.r.e.d.i.r. |
// /* 00c0 */ "\x65\x00\x63\x00\x74\x00\x69\x00\x6f\x00\x6e\x00\x20\x00\x64\x00" //e.c.t.i.o.n. .d. |
// /* 00d0 */ "\x65\x00\x20\x00\x33\x00\x29\x00\x00\x00\x18\x10\x00\x00\x02\x00" //e. .3.)......... |
// /* 00e0 */ "\x00\x00\x18\x00\x00\x00\x18\x00\x00\x00\x18\x00\x00\x00\x00\x10" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x04\x00\x00\x00\x04\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x1c\x00\x00\x00\x04\x00\x00\x00\x18\x00\x00\x00\x18\x00" //................ |
// /* 0040 */ "\x00\x00\x18\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x78\x00" //..............x. |
// /* 0050 */ "\x00\x00\x0d\x00\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00" //..........,...H. |
// /* 0060 */ "\x00\x00\x2e\x00\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00" //......D.s.D.r.i. |
// /* 0070 */ "\x76\x00\x65\x00\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00" //v.e.r.....p.r.i. |
// /* 0080 */ "\x6e\x00\x74\x00\x42\x00\x69\x00\x6e\x00\x4e\x00\x61\x00\x6d\x00" //n.t.B.i.n.N.a.m. |
// /* 0090 */ "\x65\x00\x73\x00\x00\x00\x53\x00\xe9\x00\x6c\x00\x65\x00\x63\x00" //e.s...S...l.e.c. |
// /* 00a0 */ "\x74\x00\x69\x00\x6f\x00\x6e\x00\x20\x00\x61\x00\x75\x00\x74\x00" //t.i.o.n. .a.u.t. |
// /* 00b0 */ "\x6f\x00\x6d\x00\x61\x00\x74\x00\x69\x00\x71\x00\x75\x00\x65\x00" //o.m.a.t.i.q.u.e. |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x4c\x00\x00\x00\x09\x00\x00\x00\x18\x00" //......L......... |
// /* 00d0 */ "\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x01\x00\x00\x00\x44\x00" //..,...H.......D. |
// /* 00e0 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
// /* 00f0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x43\x00\x6f\x00" //..p.r.i.n.t.C.o. |
// /* 0000 */ "\x6c\x00\x6c\x00\x61\x00\x74\x00\x65\x00\x00\x00\x00\x00\x01\x00" //l.l.a.t.e....... |
// /* 0010 */ "\x00\x00\x48\x00\x00\x00\x09\x00\x00\x00\x18\x00\x00\x00\x2c\x00" //..H...........,. |
// /* 0020 */ "\x00\x00\x44\x00\x00\x00\x01\x00\x00\x00\x44\x00\x73\x00\x44\x00" //..D.......D.s.D. |
// /* 0030 */ "\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00\x00\x00\x70\x00" //r.i.v.e.r.....p. |
// /* 0040 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x43\x00\x6f\x00\x6c\x00\x6f\x00" //r.i.n.t.C.o.l.o. |
// /* 0050 */ "\x72\x00\x00\x00\x00\x00\x01\x00\x00\x00\x5c\x00\x00\x00\x09\x00" //r............... |
// /* 0060 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x58\x00\x00\x00\x01\x00" //......,...X..... |
// /* 0070 */ "\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00" //..D.s.D.r.i.v.e. |
// /* 0080 */ "\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //r.....p.r.i.n.t. |
// /* 0090 */ "\x44\x00\x75\x00\x70\x00\x6c\x00\x65\x00\x78\x00\x53\x00\x75\x00" //D.u.p.l.e.x.S.u. |
// /* 00a0 */ "\x70\x00\x70\x00\x6f\x00\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00" //p.p.o.r.t.e.d... |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x60\x00\x00\x00\x09\x00\x00\x00\x18\x00" //......`......... |
// /* 00c0 */ "\x00\x00\x2c\x00\x00\x00\x5c\x00\x00\x00\x01\x00\x00\x00\x44\x00" //..,...........D. |
// /* 00d0 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
// /* 00e0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x53\x00\x74\x00" //..p.r.i.n.t.S.t. |
// /* 00f0 */ "\x61\x00\x70\x00\x6c\x00\x69\x00\x6e\x00\x67\x00\x53\x00\x75\x00" //a.p.l.i.n.g.S.u. |
// /* 0000 */ "\x70\x00\x70\x00\x6f\x00\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00" //p.p.o.r.t.e.d... |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //......P......... |
// /* 0020 */ "\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...L.......D. |
// /* 0030 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
// /* 0040 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x61\x00" //..p.r.i.n.t.M.a. |
// /* 0050 */ "\x78\x00\x58\x00\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x74\x00" //x.X.E.x.t.e.n.t. |
// /* 0060 */ "\x00\x00\xbc\x21\x00\x00\x50\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //...!..P......... |
// /* 0070 */ "\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...L.......D. |
// /* 0080 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
// /* 0090 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x61\x00" //..p.r.i.n.t.M.a. |
// /* 00a0 */ "\x78\x00\x59\x00\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x74\x00" //x.Y.E.x.t.e.n.t. |
// /* 00b0 */ "\x00\x00\xa8\x2b\x00\x00\x50\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //...+..P......... |
// /* 00c0 */ "\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...L.......D. |
// /* 00d0 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
// /* 00e0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x69\x00" //..p.r.i.n.t.M.i. |
// /* 00f0 */ "\x6e\x00\x58\x00\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x74\x00" //n.X.E.x.t.e.n.t. |
// /* 0000 */ "\x00\x00\x84\x03\x00\x00\x50\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //......P......... |
// /* 0010 */ "\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...L.......D. |
// /* 0020 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
// /* 0030 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x69\x00" //..p.r.i.n.t.M.i. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x6e\x00\x59\x00\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x74\x00" //n.Y.E.x.t.e.n.t. |
// /* 0010 */ "\x00\x00\x84\x03\x00\x00\xb4\x0f\x00\x00\x0d\x00\x00\x00\x18\x00" //................ |
// /* 0020 */ "\x00\x00\x2c\x00\x00\x00\x54\x00\x00\x00\x5e\x0f\x00\x00\x44\x00" //..,...T...^...D. |
// /* 0030 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
// /* 0040 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x65\x00" //..p.r.i.n.t.M.e. |
// /* 0050 */ "\x64\x00\x69\x00\x61\x00\x53\x00\x75\x00\x70\x00\x70\x00\x6f\x00" //d.i.a.S.u.p.p.o. |
// /* 0060 */ "\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00\x4c\x00\x65\x00\x74\x00" //r.t.e.d...L.e.t. |
// /* 0070 */ "\x74\x00\x72\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x28\x00" //t.r.e. .U.S. .(. |
// /* 0080 */ "\x32\x00\x31\x00\x35\x00\x2c\x00\x39\x00\x20\x00\x78\x00\x20\x00" //2.1.5.,.9. .x. . |
// /* 0090 */ "\x32\x00\x37\x00\x39\x00\x2c\x00\x34\x00\x20\x00\x6d\x00\x6d\x00" //2.7.9.,.4. .m.m. |
// /* 00a0 */ "\x29\x00\x00\x00\x50\x00\x65\x00\x74\x00\x69\x00\x74\x00\x65\x00" //)...P.e.t.i.t.e. |
// /* 00b0 */ "\x20\x00\x6c\x00\x65\x00\x74\x00\x74\x00\x72\x00\x65\x00\x20\x00" // .l.e.t.t.r.e. . |
// /* 00c0 */ "\x55\x00\x53\x00\x00\x00\x54\x00\x61\x00\x62\x00\x6c\x00\x6f\x00" //U.S...T.a.b.l.o. |
// /* 00d0 */ "\xef\x00\x64\x00\x00\x00\x4c\x00\x65\x00\x64\x00\x67\x00\x65\x00" //..d...L.e.d.g.e. |
// /* 00e0 */ "\x72\x00\x20\x00\x55\x00\x53\x00\x20\x00\x28\x00\x34\x00\x33\x00" //r. .U.S. .(.4.3. |
// /* 00f0 */ "\x31\x00\x2c\x00\x38\x00\x20\x00\x78\x00\x20\x00\x32\x00\x37\x00" //1.,.8. .x. .2.7. |
// /* 0000 */ "\x39\x00\x2c\x00\x34\x00\x20\x00\x6d\x00\x6d\x00\x29\x00\x00\x00" //9.,.4. .m.m.)... |
// /* 0010 */ "\x4c\x00\x65\x00\x67\x00\x61\x00\x6c\x00\x20\x00\x55\x00\x53\x00" //L.e.g.a.l. .U.S. |
// /* 0020 */ "\x00\x00\x53\x00\x74\x00\x61\x00\x74\x00\x65\x00\x6d\x00\x65\x00" //..S.t.a.t.e.m.e. |
// /* 0030 */ "\x6e\x00\x74\x00\x20\x00\x55\x00\x53\x00\x00\x00\x45\x00\x78\x00" //n.t. .U.S...E.x. |
// /* 0040 */ "\xe9\x00\x63\x00\x75\x00\x74\x00\x69\x00\x66\x00\x20\x00\x55\x00" //..c.u.t.i.f. .U. |
// /* 0050 */ "\x53\x00\x20\x00\x28\x00\x31\x00\x38\x00\x2c\x00\x34\x00\x32\x00" //S. .(.1.8.,.4.2. |
// /* 0060 */ "\x20\x00\x78\x00\x20\x00\x32\x00\x36\x00\x2c\x00\x36\x00\x37\x00" // .x. .2.6.,.6.7. |
// /* 0070 */ "\x20\x00\x63\x00\x6d\x00\x29\x00\x00\x00\x41\x00\x33\x00\x00\x00" // .c.m.)...A.3... |
// /* 0080 */ "\x41\x00\x34\x00\x00\x00\x50\x00\x65\x00\x74\x00\x69\x00\x74\x00" //A.4...P.e.t.i.t. |
// /* 0090 */ "\x20\x00\x41\x00\x34\x00\x00\x00\x41\x00\x35\x00\x00\x00\x42\x00" // .A.4...A.5...B. |
// /* 00a0 */ "\x34\x00\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x00\x00" //4. .(.J.I.S.)... |
// /* 00b0 */ "\x42\x00\x35\x00\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00" //B.5. .(.J.I.S.). |
// /* 00c0 */ "\x00\x00\x46\x00\x6f\x00\x6c\x00\x69\x00\x6f\x00\x20\x00\x55\x00" //..F.o.l.i.o. .U. |
// /* 00d0 */ "\x53\x00\x20\x00\x28\x00\x32\x00\x31\x00\x35\x00\x2c\x00\x39\x00" //S. .(.2.1.5.,.9. |
// /* 00e0 */ "\x20\x00\x78\x00\x20\x00\x33\x00\x33\x00\x30\x00\x2c\x00\x32\x00" // .x. .3.3.0.,.2. |
// /* 00f0 */ "\x20\x00\x6d\x00\x6d\x00\x29\x00\x00\x00\x51\x00\x75\x00\x61\x00" // .m.m.)...Q.u.a. |
// /* 0000 */ "\x72\x00\x74\x00\x6f\x00\x20\x00\x55\x00\x53\x00\x00\x00\x32\x00" //r.t.o. .U.S...2. |
// /* 0010 */ "\x35\x00\x2c\x00\x34\x00\x20\x00\x78\x00\x20\x00\x33\x00\x35\x00" //5.,.4. .x. .3.5. |
// /* 0020 */ "\x2c\x00\x35\x00\x36\x00\x20\x00\x63\x00\x6d\x00\x20\x00\x28\x00" //,.5.6. .c.m. .(. |
// /* 0030 */ "\x31\x00\x30\x00\x78\x00\x31\x00\x34\x00\x22\x00\x29\x00\x00\x00" //1.0.x.1.4.".)... |
// /* 0040 */ "\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x78\x00\x20\x00\x34\x00" //2.7.,.9. .x. .4. |
// /* 0050 */ "\x33\x00\x2c\x00\x32\x00\x20\x00\x63\x00\x6d\x00\x20\x00\x28\x00" //3.,.2. .c.m. .(. |
// /* 0060 */ "\x31\x00\x31\x00\x78\x00\x31\x00\x37\x00\x22\x00\x29\x00\x00\x00" //1.1.x.1.7.".)... |
// /* 0070 */ "\x4e\x00\x6f\x00\x74\x00\x65\x00\x20\x00\x55\x00\x53\x00\x00\x00" //N.o.t.e. .U.S... |
// /* 0080 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
// /* 0090 */ "\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x6e\x00\xb0\x00\x20\x00" //e. .U.S. .n... . |
// /* 00a0 */ "\x39\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //9...E.n.v.e.l.o. |
// /* 00b0 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x6e\x00" //p.p.e. .U.S. .n. |
// /* 00c0 */ "\xb0\x00\x20\x00\x31\x00\x30\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //.. .1.0...E.n.v. |
// /* 00d0 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x55\x00" //e.l.o.p.p.e. .U. |
// /* 00e0 */ "\x53\x00\x20\x00\x31\x00\x31\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //S. .1.1...E.n.v. |
// /* 00f0 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x55\x00" //e.l.o.p.p.e. .U. |
// /* 0000 */ "\x53\x00\x20\x00\x31\x00\x32\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //S. .1.2...E.n.v. |
// /* 0010 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x55\x00" //e.l.o.p.p.e. .U. |
// /* 0020 */ "\x53\x00\x20\x00\x31\x00\x34\x00\x00\x00\x46\x00\x65\x00\x75\x00" //S. .1.4...F.e.u. |
// /* 0030 */ "\x69\x00\x6c\x00\x6c\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00" //i.l.l.e. .U.S. . |
// /* 0040 */ "\x74\x00\x61\x00\x69\x00\x6c\x00\x6c\x00\x65\x00\x20\x00\x43\x00" //t.a.i.l.l.e. .C. |
// /* 0050 */ "\x00\x00\x46\x00\x65\x00\x75\x00\x69\x00\x6c\x00\x6c\x00\x65\x00" //..F.e.u.i.l.l.e. |
// /* 0060 */ "\x20\x00\x55\x00\x53\x00\x20\x00\x74\x00\x61\x00\x69\x00\x6c\x00" // .U.S. .t.a.i.l. |
// /* 0070 */ "\x6c\x00\x65\x00\x20\x00\x44\x00\x00\x00\x46\x00\x65\x00\x75\x00" //l.e. .D...F.e.u. |
// /* 0080 */ "\x69\x00\x6c\x00\x6c\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00" //i.l.l.e. .U.S. . |
// /* 0090 */ "\x74\x00\x61\x00\x69\x00\x6c\x00\x6c\x00\x65\x00\x20\x00\x45\x00" //t.a.i.l.l.e. .E. |
// /* 00a0 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
// /* 00b0 */ "\x70\x00\x65\x00\x20\x00\x44\x00\x4c\x00\x00\x00\x45\x00\x6e\x00" //p.e. .D.L...E.n. |
// /* 00c0 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
// /* 00d0 */ "\x43\x00\x35\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00" //C.5...E.n.v.e.l. |
// /* 00e0 */ "\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x43\x00\x33\x00\x00\x00" //o.p.p.e. .C.3... |
// /* 00f0 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
// /* 0000 */ "\x65\x00\x20\x00\x43\x00\x34\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //e. .C.4...E.n.v. |
// /* 0010 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x43\x00" //e.l.o.p.p.e. .C. |
// /* 0020 */ "\x36\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //6...E.n.v.e.l.o. |
// /* 0030 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x43\x00\x36\x00\x35\x00\x00\x00" //p.p.e. .C.6.5... |
// /* 0040 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
// /* 0050 */ "\x65\x00\x20\x00\x42\x00\x34\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //e. .B.4...E.n.v. |
// /* 0060 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x42\x00" //e.l.o.p.p.e. .B. |
// /* 0070 */ "\x35\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //5...E.n.v.e.l.o. |
// /* 0080 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x42\x00\x36\x00\x00\x00\x45\x00" //p.p.e. .B.6...E. |
// /* 0090 */ "\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00" //n.v.e.l.o.p.p.e. |
// /* 00a0 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
// /* 00b0 */ "\x70\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x4d\x00\x6f\x00" //p.e. .U.S. .M.o. |
// /* 00c0 */ "\x6e\x00\x61\x00\x72\x00\x63\x00\x68\x00\x00\x00\x45\x00\x6e\x00" //n.a.r.c.h...E.n. |
// /* 00d0 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
// /* 00e0 */ "\x55\x00\x53\x00\x20\x00\x36\x00\x22\x00\x20\x00\xbe\x00\x00\x00" //U.S. .6.". ..... |
// /* 00f0 */ "\x50\x00\x6c\x00\x69\x00\xe9\x00\x20\x00\x73\x00\x74\x00\x64\x00" //P.l.i... .s.t.d. |
// /* 0000 */ "\x20\x00\x55\x00\x53\x00\x00\x00\x53\x00\x74\x00\x64\x00\x20\x00" // .U.S...S.t.d. . |
// /* 0010 */ "\x50\x00\x6c\x00\x69\x00\xe9\x00\x20\x00\x61\x00\x6c\x00\x6c\x00" //P.l.i... .a.l.l. |
// /* 0020 */ "\x65\x00\x6d\x00\x61\x00\x6e\x00\x64\x00\x00\x00\x4c\x00\x65\x00" //e.m.a.n.d...L.e. |
// /* 0030 */ "\x67\x00\x61\x00\x6c\x00\x20\x00\x50\x00\x6c\x00\x69\x00\xe9\x00" //g.a.l. .P.l.i... |
// /* 0040 */ "\x20\x00\x61\x00\x6c\x00\x6c\x00\x65\x00\x6d\x00\x61\x00\x6e\x00" // .a.l.l.e.m.a.n. |
// /* 0050 */ "\x64\x00\x00\x00\x42\x00\x34\x00\x20\x00\x28\x00\x49\x00\x53\x00" //d...B.4. .(.I.S. |
// /* 0060 */ "\x4f\x00\x29\x00\x00\x00\x43\x00\x61\x00\x72\x00\x74\x00\x65\x00" //O.)...C.a.r.t.e. |
// /* 0070 */ "\x20\x00\x70\x00\x6f\x00\x73\x00\x74\x00\x61\x00\x6c\x00\x65\x00" // .p.o.s.t.a.l.e. |
// /* 0080 */ "\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00" // .j.a.p.o.n.a.i. |
// /* 0090 */ "\x73\x00\x65\x00\x00\x00\x32\x00\x32\x00\x2c\x00\x39\x00\x20\x00" //s.e...2.2.,.9. . |
// /* 00a0 */ "\x78\x00\x20\x00\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x63\x00" //x. .2.7.,.9. .c. |
// /* 00b0 */ "\x6d\x00\x20\x00\x28\x00\x39\x00\x78\x00\x31\x00\x31\x00\x22\x00" //m. .(.9.x.1.1.". |
// /* 00c0 */ "\x29\x00\x00\x00\x32\x00\x35\x00\x2c\x00\x34\x00\x20\x00\x78\x00" //)...2.5.,.4. .x. |
// /* 00d0 */ "\x20\x00\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x63\x00\x6d\x00" // .2.7.,.9. .c.m. |
// /* 00e0 */ "\x20\x00\x28\x00\x31\x00\x30\x00\x78\x00\x31\x00\x31\x00\x22\x00" // .(.1.0.x.1.1.". |
// /* 00f0 */ "\x29\x00\x00\x00\x33\x00\x38\x00\x2c\x00\x31\x00\x20\x00\x78\x00" //)...3.8.,.1. .x. |
// /* 0000 */ "\x20\x00\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x63\x00\x6d\x00" // .2.7.,.9. .c.m. |
// /* 0010 */ "\x20\x00\x28\x00\x31\x00\x35\x00\x78\x00\x31\x00\x31\x00\x22\x00" // .(.1.5.x.1.1.". |
// /* 0020 */ "\x29\x00\x00\x00\x49\x00\x6e\x00\x76\x00\x69\x00\x74\x00\x61\x00" //)...I.n.v.i.t.a. |
// /* 0030 */ "\x74\x00\x69\x00\x6f\x00\x6e\x00\x20\x00\x61\x00\x76\x00\x65\x00" //t.i.o.n. .a.v.e. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x63\x00\x20\x00\x65\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //c. .e.n.v.e.l.o. |
// /* 0010 */ "\x70\x00\x70\x00\x65\x00\x00\x00\x4c\x00\x65\x00\x74\x00\x74\x00" //p.p.e...L.e.t.t. |
// /* 0020 */ "\x72\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x65\x00\x78\x00" //r.e. .U.S. .e.x. |
// /* 0030 */ "\x74\x00\x72\x00\x61\x00\x00\x00\x4c\x00\xe9\x00\x67\x00\x61\x00" //t.r.a...L...g.a. |
// /* 0040 */ "\x6c\x00\x20\x00\x55\x00\x53\x00\x20\x00\x65\x00\x78\x00\x74\x00" //l. .U.S. .e.x.t. |
// /* 0050 */ "\x72\x00\x61\x00\x00\x00\x41\x00\x34\x00\x20\x00\x65\x00\x78\x00" //r.a...A.4. .e.x. |
// /* 0060 */ "\x74\x00\x72\x00\x61\x00\x00\x00\x4c\x00\x65\x00\x74\x00\x74\x00" //t.r.a...L.e.t.t. |
// /* 0070 */ "\x72\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x68\x00\x6f\x00" //r.e. .U.S. .h.o. |
// /* 0080 */ "\x72\x00\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00\x61\x00\x6c\x00" //r.i.z.o.n.t.a.l. |
// /* 0090 */ "\x65\x00\x00\x00\x41\x00\x34\x00\x20\x00\x68\x00\x6f\x00\x72\x00" //e...A.4. .h.o.r. |
// /* 00a0 */ "\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00\x61\x00\x6c\x00\x00\x00" //i.z.o.n.t.a.l... |
// /* 00b0 */ "\x4c\x00\x65\x00\x74\x00\x74\x00\x72\x00\x65\x00\x20\x00\x55\x00" //L.e.t.t.r.e. .U. |
// /* 00c0 */ "\x53\x00\x20\x00\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x20\x00" //S. .e.x.t.r.a. . |
// /* 00d0 */ "\x68\x00\x6f\x00\x72\x00\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00" //h.o.r.i.z.o.n.t. |
// /* 00e0 */ "\x61\x00\x6c\x00\x65\x00\x00\x00\x53\x00\x75\x00\x70\x00\x65\x00" //a.l.e...S.u.p.e. |
// /* 00f0 */ "\x72\x00\x20\x00\x41\x00\x00\x00\x53\x00\x75\x00\x70\x00\x65\x00" //r. .A...S.u.p.e. |
// /* 0000 */ "\x72\x00\x20\x00\x42\x00\x00\x00\x4c\x00\x65\x00\x74\x00\x74\x00" //r. .B...L.e.t.t. |
// /* 0010 */ "\x72\x00\x65\x00\x20\x00\x50\x00\x6c\x00\x75\x00\x73\x00\x20\x00" //r.e. .P.l.u.s. . |
// /* 0020 */ "\x55\x00\x53\x00\x00\x00\x41\x00\x34\x00\x20\x00\x50\x00\x6c\x00" //U.S...A.4. .P.l. |
// /* 0030 */ "\x75\x00\x73\x00\x00\x00\x41\x00\x35\x00\x20\x00\x68\x00\x6f\x00" //u.s...A.5. .h.o. |
// /* 0040 */ "\x72\x00\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00\x61\x00\x6c\x00" //r.i.z.o.n.t.a.l. |
// /* 0050 */ "\x00\x00\x42\x00\x35\x00\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00" //..B.5. .(.J.I.S. |
// /* 0060 */ "\x29\x00\x20\x00\x68\x00\x6f\x00\x72\x00\x69\x00\x7a\x00\x6f\x00" //). .h.o.r.i.z.o. |
// /* 0070 */ "\x6e\x00\x74\x00\x61\x00\x6c\x00\x00\x00\x41\x00\x33\x00\x20\x00" //n.t.a.l...A.3. . |
// /* 0080 */ "\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x00\x00\x41\x00\x35\x00" //e.x.t.r.a...A.5. |
// /* 0090 */ "\x20\x00\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x00\x00\x42\x00" // .e.x.t.r.a...B. |
// /* 00a0 */ "\x35\x00\x20\x00\x28\x00\x49\x00\x53\x00\x4f\x00\x29\x00\x20\x00" //5. .(.I.S.O.). . |
// /* 00b0 */ "\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x00\x00\x41\x00\x32\x00" //e.x.t.r.a...A.2. |
// /* 00c0 */ "\x00\x00\x41\x00\x33\x00\x20\x00\x68\x00\x6f\x00\x72\x00\x69\x00" //..A.3. .h.o.r.i. |
// /* 00d0 */ "\x7a\x00\x6f\x00\x6e\x00\x74\x00\x61\x00\x6c\x00\x00\x00\x41\x00" //z.o.n.t.a.l...A. |
// /* 00e0 */ "\x33\x00\x20\x00\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x20\x00" //3. .e.x.t.r.a. . |
// /* 00f0 */ "\x68\x00\x6f\x00\x72\x00\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00" //h.o.r.i.z.o.n.t. |
// /* 0000 */ "\x61\x00\x6c\x00\x00\x00\x43\x00\x61\x00\x72\x00\x74\x00\x65\x00" //a.l...C.a.r.t.e. |
// /* 0010 */ "\x20\x00\x70\x00\x6f\x00\x73\x00\x74\x00\x61\x00\x6c\x00\x65\x00" // .p.o.s.t.a.l.e. |
// /* 0020 */ "\x20\x00\x64\x00\x6f\x00\x75\x00\x62\x00\x6c\x00\x65\x00\x20\x00" // .d.o.u.b.l.e. . |
// /* 0030 */ "\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00\x73\x00" //j.a.p.o.n.a.i.s. |
// /* 0040 */ "\x65\x00\x00\x00\x41\x00\x36\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //e...A.6...E.n.v. |
// /* 0050 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x6a\x00" //e.l.o.p.p.e. .j. |
// /* 0060 */ "\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00\x73\x00\x65\x00" //a.p.o.n.a.i.s.e. |
// /* 0070 */ "\x20\x00\x4b\x00\x61\x00\x6b\x00\x75\x00\x20\x00\x6e\x00\xb0\x00" // .K.a.k.u. .n... |
// /* 0080 */ "\x20\x00\x32\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00" // .2...E.n.v.e.l. |
// /* 0090 */ "\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x6a\x00\x61\x00\x70\x00" //o.p.p.e. .j.a.p. |
// /* 00a0 */ "\x6f\x00\x6e\x00\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x4b\x00" //o.n.a.i.s.e. .K. |
// /* 00b0 */ "\x61\x00\x6b\x00\x75\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x33\x00" //a.k.u. .n... .3. |
// /* 00c0 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
// /* 00d0 */ "\x70\x00\x65\x00\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00" //p.e. .j.a.p.o.n. |
// /* 00e0 */ "\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x43\x00\x68\x00\x6f\x00" //a.i.s.e. .C.h.o. |
// /* 00f0 */ "\x75\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x33\x00\x00\x00\x45\x00" //u. .n... .3...E. |
// /* 0000 */ "\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00" //n.v.e.l.o.p.p.e. |
// /* 0010 */ "\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00" // .j.a.p.o.n.a.i. |
// /* 0020 */ "\x73\x00\x65\x00\x20\x00\x43\x00\x68\x00\x6f\x00\x75\x00\x20\x00" //s.e. .C.h.o.u. . |
// /* 0030 */ "\x6e\x00\xb0\x00\x20\x00\x34\x00\x00\x00\x4c\x00\x65\x00\x74\x00" //n... .4...L.e.t. |
// /* 0040 */ "\x74\x00\x72\x00\x65\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00" //t.r.e. .p.a.y.s. |
// /* 0050 */ "\x61\x00\x67\x00\x65\x00\x00\x00\x41\x00\x33\x00\x20\x00\x70\x00" //a.g.e...A.3. .p. |
// /* 0060 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x41\x00" //a.y.s.a.g.e...A. |
// /* 0070 */ "\x34\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00" //4. .p.a.y.s.a.g. |
// /* 0080 */ "\x65\x00\x00\x00\x41\x00\x35\x00\x20\x00\x70\x00\x61\x00\x79\x00" //e...A.5. .p.a.y. |
// /* 0090 */ "\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x42\x00\x34\x00\x20\x00" //s.a.g.e...B.4. . |
// /* 00a0 */ "\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x20\x00\x70\x00\x61\x00" //(.J.I.S.). .p.a. |
// /* 00b0 */ "\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x42\x00\x35\x00" //y.s.a.g.e...B.5. |
// /* 00c0 */ "\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x20\x00\x70\x00" // .(.J.I.S.). .p. |
// /* 00d0 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x43\x00" //a.y.s.a.g.e...C. |
// /* 00e0 */ "\x61\x00\x72\x00\x74\x00\x65\x00\x20\x00\x70\x00\x6f\x00\x73\x00" //a.r.t.e. .p.o.s. |
// /* 00f0 */ "\x74\x00\x61\x00\x6c\x00\x65\x00\x20\x00\x6a\x00\x61\x00\x70\x00" //t.a.l.e. .j.a.p. |
// /* 0000 */ "\x6f\x00\x6e\x00\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x70\x00" //o.n.a.i.s.e. .p. |
// /* 0010 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x43\x00" //a.y.s.a.g.e...C. |
// /* 0020 */ "\x20\x00\x70\x00\x6f\x00\x73\x00\x74\x00\x61\x00\x6c\x00\x65\x00" // .p.o.s.t.a.l.e. |
// /* 0030 */ "\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00" // .j.a.p.o.n.a.i. |
// /* 0040 */ "\x73\x00\x65\x00\x20\x00\x64\x00\x62\x00\x6c\x00\x20\x00\x70\x00" //s.e. .d.b.l. .p. |
// /* 0050 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x41\x00" //a.y.s.a.g.e...A. |
// /* 0060 */ "\x36\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00" //6. .p.a.y.s.a.g. |
// /* 0070 */ "\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x2e\x00\x20\x00\x4a\x00" //e...E.n.v... .J. |
// /* 0080 */ "\x61\x00\x70\x00\x6f\x00\x6e\x00\x20\x00\x4b\x00\x61\x00\x6b\x00" //a.p.o.n. .K.a.k. |
// /* 0090 */ "\x75\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x32\x00\x20\x00\x70\x00" //u. .n... .2. .p. |
// /* 00a0 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00" //a.y.s.a.g.e...E. |
// /* 00b0 */ "\x6e\x00\x76\x00\x2e\x00\x20\x00\x4a\x00\x61\x00\x70\x00\x6f\x00" //n.v... .J.a.p.o. |
// /* 00c0 */ "\x6e\x00\x20\x00\x4b\x00\x61\x00\x6b\x00\x75\x00\x20\x00\x6e\x00" //n. .K.a.k.u. .n. |
// /* 00d0 */ "\xb0\x00\x20\x00\x33\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00" //.. .3. .p.a.y.s. |
// /* 00e0 */ "\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x2e\x00" //a.g.e...E.n.v... |
// /* 00f0 */ "\x20\x00\x4a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x20\x00\x43\x00" // .J.a.p.o.n. .C. |
// /* 0000 */ "\x68\x00\x6f\x00\x75\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x33\x00" //h.o.u. .n... .3. |
// /* 0010 */ "\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00" // .p.a.y.s.a.g.e. |
// /* 0020 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x2e\x00\x20\x00\x4a\x00\x61\x00" //..E.n.v... .J.a. |
// /* 0030 */ "\x70\x00\x6f\x00\x6e\x00\x20\x00\x43\x00\x68\x00\x6f\x00\x75\x00" //p.o.n. .C.h.o.u. |
// /* 0040 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x34\x00\x20\x00\x70\x00\x61\x00" // .n... .4. .p.a. |
// /* 0050 */ "\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x42\x00\x36\x00" //y.s.a.g.e...B.6. |
// /* 0060 */ "\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x00\x00\x42\x00" // .(.J.I.S.)...B. |
// /* 0070 */ "\x36\x00\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x20\x00" //6. .(.J.I.S.). . |
// /* 0080 */ "\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00" //p.a.y.s.a.g.e... |
// /* 0090 */ "\x33\x00\x30\x00\x2c\x00\x34\x00\x38\x00\x20\x00\x78\x00\x20\x00" //3.0.,.4.8. .x. . |
// /* 00a0 */ "\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x63\x00\x6d\x00\x20\x00" //2.7.,.9. .c.m. . |
// /* 00b0 */ "\x28\x00\x31\x00\x32\x00\x78\x00\x31\x00\x31\x00\x22\x00\x29\x00" //(.1.2.x.1.1.".). |
// /* 00c0 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
// /* 00d0 */ "\x70\x00\x65\x00\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00" //p.e. .j.a.p.o.n. |
// /* 00e0 */ "\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x59\x00\x6f\x00\x75\x00" //a.i.s.e. .Y.o.u. |
// /* 00f0 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x34\x00\x00\x00\x45\x00\x6e\x00" // .n... .4...E.n. |
// /* 0000 */ "\x76\x00\x2e\x00\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00" //v... .j.a.p.o.n. |
// /* 0010 */ "\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x59\x00\x6f\x00\x75\x00" //a.i.s.e. .Y.o.u. |
// /* 0020 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x34\x00\x20\x00\x70\x00\x61\x00" // .n... .4. .p.a. |
// /* 0030 */ "\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00" //y.s.a.g.e...E.n. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
// /* 0010 */ "\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x31\x00" //P.R.C. .n... .1. |
// /* 0020 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
// /* 0030 */ "\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00" //p.e. .P.R.C. .n. |
// /* 0040 */ "\xb0\x00\x20\x00\x33\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00" //.. .3...E.n.v.e. |
// /* 0050 */ "\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00" //l.o.p.p.e. .P.R. |
// /* 0060 */ "\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x34\x00\x00\x00\x45\x00" //C. .n... .4...E. |
// /* 0070 */ "\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00" //n.v.e.l.o.p.p.e. |
// /* 0080 */ "\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00" // .P.R.C. .n... . |
// /* 0090 */ "\x35\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //5...E.n.v.e.l.o. |
// /* 00a0 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00" //p.p.e. .P.R.C. . |
// /* 00b0 */ "\x6e\x00\xb0\x00\x20\x00\x36\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //n... .6...E.n.v. |
// /* 00c0 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00" //e.l.o.p.p.e. .P. |
// /* 00d0 */ "\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x37\x00\x00\x00" //R.C. .n... .7... |
// /* 00e0 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
// /* 00f0 */ "\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00" //e. .P.R.C. .n... |
// /* 0000 */ "\x20\x00\x38\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00" // .8...E.n.v.e.l. |
// /* 0010 */ "\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00" //o.p.p.e. .P.R.C. |
// /* 0020 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x39\x00\x00\x00\x45\x00\x6e\x00" // .n... .9...E.n. |
// /* 0030 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
// /* 0040 */ "\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x31\x00" //P.R.C. .n... .1. |
// /* 0050 */ "\x30\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //0...E.n.v.e.l.o. |
// /* 0060 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00" //p.p.e. .P.R.C. . |
// /* 0070 */ "\x6e\x00\xb0\x00\x20\x00\x31\x00\x20\x00\x70\x00\x61\x00\x79\x00" //n... .1. .p.a.y. |
// /* 0080 */ "\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //s.a.g.e...E.n.v. |
// /* 0090 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00" //e.l.o.p.p.e. .P. |
// /* 00a0 */ "\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x33\x00\x20\x00" //R.C. .n... .3. . |
// /* 00b0 */ "\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00" //p.a.y.s.a.g.e... |
// /* 00c0 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
// /* 00d0 */ "\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00" //e. .P.R.C. .n... |
// /* 00e0 */ "\x20\x00\x34\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00" // .4. .p.a.y.s.a. |
// /* 00f0 */ "\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00" //g.e...E.n.v.e.l. |
// /* 0000 */ "\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00" //o.p.p.e. .P.R.C. |
// /* 0010 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x35\x00\x20\x00\x70\x00\x61\x00" // .n... .5. .p.a. |
// /* 0020 */ "\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00" //y.s.a.g.e...E.n. |
// /* 0030 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
// /* 0040 */ "\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x36\x00" //P.R.C. .n... .6. |
// /* 0050 */ "\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00" // .p.a.y.s.a.g.e. |
// /* 0060 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
// /* 0070 */ "\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00" //p.e. .P.R.C. .n. |
// /* 0080 */ "\xb0\x00\x20\x00\x37\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00" //.. .7. .p.a.y.s. |
// /* 0090 */ "\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00" //a.g.e...E.n.v.e. |
// /* 00a0 */ "\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00" //l.o.p.p.e. .P.R. |
// /* 00b0 */ "\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x38\x00\x20\x00\x70\x00" //C. .n... .8. .p. |
// /* 00c0 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00" //a.y.s.a.g.e...E. |
// /* 00d0 */ "\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00" //n.v.e.l.o.p.p.e. |
// /* 00e0 */ "\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00" // .P.R.C. .n... . |
// /* 00f0 */ "\x39\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00" //9. .p.a.y.s.a.g. |
// /* 0000 */ "\x65\x00\x00\x00\x54\x00\x61\x00\x69\x00\x6c\x00\x6c\x00\x65\x00" //e...T.a.i.l.l.e. |
// /* 0010 */ "\x20\x00\x64\x00\xe9\x00\x66\x00\x69\x00\x6e\x00\x69\x00\x65\x00" // .d...f.i.n.i.e. |
// /* 0020 */ "\x20\x00\x70\x00\x61\x00\x72\x00\x20\x00\x6c\x00\x19\x20\x75\x00" // .p.a.r. .l.. u. |
// /* 0030 */ "\x74\x00\x69\x00\x6c\x00\x69\x00\x73\x00\x61\x00\x74\x00\x65\x00" //t.i.l.i.s.a.t.e. |
// /* 0040 */ "\x75\x00\x72\x00\x00\x00\x00\x00\x00\x00\x54\x00\x00\x00\x0d\x00" //u.r.......T..... |
// /* 0050 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x08\x00" //......,...L..... |
// /* 0060 */ "\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00" //..D.s.D.r.i.v.e. |
// /* 0070 */ "\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //r.....p.r.i.n.t. |
// /* 0080 */ "\x4d\x00\x65\x00\x64\x00\x69\x00\x61\x00\x52\x00\x65\x00\x61\x00" //M.e.d.i.a.R.e.a. |
// /* 0090 */ "\x64\x00\x79\x00\x00\x00\x41\x00\x34\x00\x00\x00\x00\x00\x4c\x00" //d.y...A.4.....L. |
// /* 00a0 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00" //..........,...H. |
// /* 00b0 */ "\x00\x00\x04\x00\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00" //......D.s.D.r.i. |
// /* 00c0 */ "\x76\x00\x65\x00\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00" //v.e.r.....p.r.i. |
// /* 00d0 */ "\x6e\x00\x74\x00\x4e\x00\x75\x00\x6d\x00\x62\x00\x65\x00\x72\x00" //n.t.N.u.m.b.e.r. |
// /* 00e0 */ "\x55\x00\x70\x00\x00\x00\x00\x00\x00\x00\x8c\x00\x00\x00\x0d\x00" //U.p............. |
// /* 00f0 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x64\x00\x00\x00\x28\x00" //......,...d...(. |
// /* 0000 */ "\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00" //..D.s.D.r.i.v.e. |
// /* 0010 */ "\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //r.....p.r.i.n.t. |
// /* 0020 */ "\x4f\x00\x72\x00\x69\x00\x65\x00\x6e\x00\x74\x00\x61\x00\x74\x00" //O.r.i.e.n.t.a.t. |
// /* 0030 */ "\x69\x00\x6f\x00\x6e\x00\x73\x00\x53\x00\x75\x00\x70\x00\x70\x00" //i.o.n.s.S.u.p.p. |
// /* 0040 */ "\x6f\x00\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00\x00\x00\x50\x00" //o.r.t.e.d.....P. |
// /* 0050 */ "\x4f\x00\x52\x00\x54\x00\x52\x00\x41\x00\x49\x00\x54\x00\x00\x00" //O.R.T.R.A.I.T... |
// /* 0060 */ "\x4c\x00\x41\x00\x4e\x00\x44\x00\x53\x00\x43\x00\x41\x00\x50\x00" //L.A.N.D.S.C.A.P. |
// /* 0070 */ "\x45\x00\x00\x00\x00\x00\x68\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //E.....h......... |
// /* 0080 */ "\x00\x00\x2c\x00\x00\x00\x64\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...d.......D. |
// /* 0090 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
// /* 00a0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x61\x00" //..p.r.i.n.t.M.a. |
// /* 00b0 */ "\x78\x00\x52\x00\x65\x00\x73\x00\x6f\x00\x6c\x00\x75\x00\x74\x00" //x.R.e.s.o.l.u.t. |
// /* 00c0 */ "\x69\x00\x6f\x00\x6e\x00\x53\x00\x75\x00\x70\x00\x70\x00\x6f\x00" //i.o.n.S.u.p.p.o. |
// /* 00d0 */ "\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00\x58\x02\x00\x00\x4c\x00" //r.t.e.d...X...L. |
// /* 00e0 */ "\x00\x00\x0d\x00\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00" //..........,...H. |
// /* 00f0 */ "\x00\x00\x04\x00\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00" //......D.s.D.r.i. |
// /* 0000 */ "\x76\x00\x65\x00\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00" //v.e.r.....p.r.i. |
// /* 0010 */ "\x6e\x00\x74\x00\x4c\x00\x61\x00\x6e\x00\x67\x00\x75\x00\x61\x00" //n.t.L.a.n.g.u.a. |
// /* 0020 */ "\x67\x00\x65\x00\x00\x00\x00\x00\x00\x00\x4c\x00\x00\x00\x07\x00" //g.e.......L..... |
// /* 0030 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x02\x00" //......,...H..... |
// /* 0040 */ "\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00" //..D.s.D.r.i.v.e. |
// /* 0050 */ "\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //r.....p.r.i.n.t. |
// /* 0060 */ "\x52\x00\x61\x00\x74\x00\x65\x00\x55\x00\x6e\x00\x69\x00\x74\x00" //R.a.t.e.U.n.i.t. |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x4c\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //......L......... |
// /* 0080 */ "\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...H.......D. |
// /* 0090 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
// /* 00a0 */ "\x00\x00\x64\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x56\x00" //..d.r.i.v.e.r.V. |
// /* 00b0 */ "\x65\x00\x72\x00\x73\x00\x69\x00\x6f\x00\x6e\x00\x00\x00\x01\x04" //e.r.s.i.o.n..... |
// /* 00c0 */ "\x00\x00\x88\x00\x00\x00\x07\x00\x00\x00\x18\x00\x00\x00\x2c\x00" //..............,. |
// /* 00d0 */ "\x00\x00\x44\x00\x00\x00\x42\x00\x00\x00\x44\x00\x73\x00\x53\x00" //..D...B...D.s.S. |
// /* 00e0 */ "\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00\x00\x00\x64\x00" //p.o.o.l.e.r...d. |
// /* 00f0 */ "\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x4e\x00\x61\x00\x6d\x00" //r.i.v.e.r.N.a.m. |
// /* 0000 */ "\x65\x00\x00\x00\x00\x00\x4d\x00\x69\x00\x63\x00\x72\x00\x6f\x00" //e.....M.i.c.r.o. |
// /* 0010 */ "\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00\x50\x00\x53\x00" //s.o.f.t. .X.P.S. |
// /* 0020 */ "\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00\x65\x00\x6e\x00" // .D.o.c.u.m.e.n. |
// /* 0030 */ "\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00\x65\x00\x72\x00" //t. .W.r.i.t.e.r. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x20\x00\x76\x00\x34\x00\x00\x00\x00\x00\x50\x00\x00\x00\x0d\x00" // .v.4.....P..... |
// /* 0010 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x40\x00\x00\x00\x0e\x00" //......,...@..... |
// /* 0020 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
// /* 0030 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x6f\x00\x72\x00\x74\x00\x4e\x00" //e.r...p.o.r.t.N. |
// /* 0040 */ "\x61\x00\x6d\x00\x65\x00\x00\x00\x00\x00\x54\x00\x53\x00\x30\x00" //a.m.e.....T.S.0. |
// /* 0050 */ "\x30\x00\x31\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x0a\x00" //0.1.......P..... |
// /* 0060 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00" //......,...L..... |
// /* 0070 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
// /* 0080 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //e.r...p.r.i.n.t. |
// /* 0090 */ "\x53\x00\x74\x00\x61\x00\x72\x00\x74\x00\x54\x00\x69\x00\x6d\x00" //S.t.a.r.t.T.i.m. |
// /* 00a0 */ "\x65\x00\x00\x00\x00\x00\x3c\x00\x00\x00\x4c\x00\x00\x00\x0a\x00" //e.....<...L..... |
// /* 00b0 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x04\x00" //......,...H..... |
// /* 00c0 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
// /* 00d0 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //e.r...p.r.i.n.t. |
// /* 00e0 */ "\x45\x00\x6e\x00\x64\x00\x54\x00\x69\x00\x6d\x00\x65\x00\x00\x00" //E.n.d.T.i.m.e... |
// /* 00f0 */ "\x00\x00\x3c\x00\x00\x00\xa8\x00\x00\x00\x07\x00\x00\x00\x18\x00" //..<............. |
// /* 0000 */ "\x00\x00\x2c\x00\x00\x00\x44\x00\x00\x00\x62\x00\x00\x00\x44\x00" //..,...D...b...D. |
// /* 0010 */ "\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00" //s.S.p.o.o.l.e.r. |
// /* 0020 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..p.r.i.n.t.e.r. |
// /* 0030 */ "\x4e\x00\x61\x00\x6d\x00\x65\x00\x00\x00\x4d\x00\x69\x00\x63\x00" //N.a.m.e...M.i.c. |
// /* 0040 */ "\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00" //r.o.s.o.f.t. .X. |
// /* 0050 */ "\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00" //P.S. .D.o.c.u.m. |
// /* 0060 */ "\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00" //e.n.t. .W.r.i.t. |
// /* 0070 */ "\x65\x00\x72\x00\x20\x00\x28\x00\x72\x00\x65\x00\x64\x00\x69\x00" //e.r. .(.r.e.d.i. |
// /* 0080 */ "\x72\x00\x65\x00\x63\x00\x74\x00\x69\x00\x6f\x00\x6e\x00\x20\x00" //r.e.c.t.i.o.n. . |
// /* 0090 */ "\x64\x00\x65\x00\x20\x00\x33\x00\x29\x00\x00\x00\x00\x00\x5c\x00" //d.e. .3.)....... |
// /* 00a0 */ "\x00\x00\x09\x00\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x58\x00" //..........,...X. |
// /* 00b0 */ "\x00\x00\x01\x00\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00" //......D.s.S.p.o. |
// /* 00c0 */ "\x6f\x00\x6c\x00\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00" //o.l.e.r...p.r.i. |
// /* 00d0 */ "\x6e\x00\x74\x00\x4b\x00\x65\x00\x65\x00\x70\x00\x50\x00\x72\x00" //n.t.K.e.e.p.P.r. |
// /* 00e0 */ "\x69\x00\x6e\x00\x74\x00\x65\x00\x64\x00\x4a\x00\x6f\x00\x62\x00" //i.n.t.e.d.J.o.b. |
// /* 00f0 */ "\x73\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x07\x00" //s.........P..... |
// /* 0000 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x02\x00" //......,...L..... |
// /* 0010 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
// /* 0020 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //e.r...p.r.i.n.t. |
// /* 0030 */ "\x53\x00\x68\x00\x61\x00\x72\x00\x65\x00\x4e\x00\x61\x00\x6d\x00" //S.h.a.r.e.N.a.m. |
// /* 0040 */ "\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x6c\x00\x00\x00\x07\x00" //e.........l..... |
// /* 0050 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x24\x00" //......,...H...$. |
// /* 0060 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
// /* 0070 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //e.r...p.r.i.n.t. |
// /* 0080 */ "\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00\x69\x00\x6e\x00\x67\x00" //S.p.o.o.l.i.n.g. |
// /* 0090 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x41\x00\x66\x00" //..P.r.i.n.t.A.f. |
// /* 00a0 */ "\x74\x00\x65\x00\x72\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //t.e.r.S.p.o.o.l. |
// /* 00b0 */ "\x65\x00\x64\x00\x00\x00\x44\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //e.d...D......... |
// /* 00c0 */ "\x00\x00\x2c\x00\x00\x00\x40\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...@.......D. |
// /* 00d0 */ "\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00" //s.S.p.o.o.l.e.r. |
// /* 00e0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6f\x00\x72\x00\x69\x00\x74\x00" //..p.r.i.o.r.i.t. |
// /* 00f0 */ "\x79\x00\x00\x00\x00\x00\x01\x00\x00\x00\x4c\x00\x00\x00\x0a\x00" //y.........L..... |
// /* 0000 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x04\x00" //......,...H..... |
// /* 0010 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
// /* 0020 */ "\x65\x00\x72\x00\x00\x00\x76\x00\x65\x00\x72\x00\x73\x00\x69\x00" //e.r...v.e.r.s.i. |
// /* 0030 */ "\x6f\x00\x6e\x00\x4e\x00\x75\x00\x6d\x00\x62\x00\x65\x00\x72\x00" //o.n.N.u.m.b.e.r. |
// /* 0040 */ "\x00\x00\x05\x00\x00\x00\x6c\x00\x00\x00\x07\x00\x00\x00\x18\x00" //......l......... |
// /* 0050 */ "\x00\x00\x2c\x00\x00\x00\x34\x00\x00\x00\x38\x00\x00\x00\x44\x00" //..,...4...8...D. |
// /* 0060 */ "\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00" //s.S.p.o.o.l.e.r. |
// /* 0070 */ "\x00\x00\x75\x00\x72\x00\x6c\x00\x00\x00\x68\x00\x74\x00\x74\x00" //..u.r.l...h.t.t. |
// /* 0080 */ "\x70\x00\x3a\x00\x2f\x00\x2f\x00\x74\x00\x65\x00\x73\x00\x74\x00" //p.:././.t.e.s.t. |
// /* 0090 */ "\x6b\x00\x72\x00\x62\x00\x2e\x00\x72\x00\x65\x00\x64\x00\x2e\x00" //k.r.b...r.e.d... |
// /* 00a0 */ "\x69\x00\x66\x00\x72\x00\x2e\x00\x6c\x00\x61\x00\x6e\x00\x2f\x00" //i.f.r...l.a.n./. |
// /* 00b0 */ "\x00\x00\x3c\x00\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x2c\x00" //..<...........,. |
// /* 00c0 */ "\x00\x00\x38\x00\x00\x00\x04\x00\x00\x00\x44\x00\x73\x00\x53\x00" //..8.......D.s.S. |
// /* 00d0 */ "\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00\x00\x00\x66\x00" //p.o.o.l.e.r...f. |
// /* 00e0 */ "\x6c\x00\x61\x00\x67\x00\x73\x00\x00\x00\x00\x00\x00\x00\x90\x00" //l.a.g.s......... |
// /* 00f0 */ "\x00\x00\x07\x00\x00\x00\x18\x00\x00\x00\x28\x00\x00\x00\x40\x00" //..........(...@. |
// /* 0000 */ "\x00\x00\x4e\x00\x00\x00\x50\x00\x6e\x00\x50\x00\x44\x00\x61\x00" //..N...P.n.P.D.a. |
// /* 0010 */ "\x74\x00\x61\x00\x00\x00\x48\x00\x61\x00\x72\x00\x64\x00\x77\x00" //t.a...H.a.r.d.w. |
// /* 0020 */ "\x61\x00\x72\x00\x65\x00\x49\x00\x44\x00\x00\x00\x00\x00\x7b\x00" //a.r.e.I.D.....{. |
// /* 0030 */ "\x30\x00\x66\x00\x34\x00\x31\x00\x33\x00\x30\x00\x64\x00\x64\x00" //0.f.4.1.3.0.d.d. |
// /* 0040 */ "\x2d\x00\x31\x00\x39\x00\x63\x00\x37\x00\x2d\x00\x37\x00\x61\x00" //-.1.9.c.7.-.7.a. |
// /* 0050 */ "\x62\x00\x36\x00\x2d\x00\x39\x00\x39\x00\x61\x00\x31\x00\x2d\x00" //b.6.-.9.9.a.1.-. |
// /* 0060 */ "\x39\x00\x38\x00\x30\x00\x66\x00\x30\x00\x33\x00\x62\x00\x32\x00" //9.8.0.f.0.3.b.2. |
// /* 0070 */ "\x65\x00\x65\x00\x34\x00\x65\x00\x7d\x00\x00\x00\x00\x00\x58\x00" //e.e.4.e.}.....X. |
// /* 0080 */ "\x00\x00\x07\x00\x00\x00\x18\x00\x00\x00\x28\x00\x00\x00\x44\x00" //..........(...D. |
// /* 0090 */ "\x00\x00\x14\x00\x00\x00\x50\x00\x6e\x00\x50\x00\x44\x00\x61\x00" //......P.n.P.D.a. |
// /* 00a0 */ "\x74\x00\x61\x00\x00\x00\x4d\x00\x61\x00\x6e\x00\x75\x00\x66\x00" //t.a...M.a.n.u.f. |
// /* 00b0 */ "\x61\x00\x63\x00\x74\x00\x75\x00\x72\x00\x65\x00\x72\x00\x00\x00" //a.c.t.u.r.e.r... |
// /* 00c0 */ "\x00\x00\x4d\x00\x69\x00\x63\x00\x72\x00\x6f\x00\x73\x00\x6f\x00" //..M.i.c.r.o.s.o. |
// /* 00d0 */ "\x66\x00\x74\x00\x00\x00\x70\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //f.t...p......... |
// /* 00e0 */ "\x00\x00\x60\x00\x00\x00\x6c\x00\x00\x00\x04\x00\x00\x00\x50\x00" //..`...l.......P. |
// /* 00f0 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00" //r.i.n.t.e.r.D.r. |
// /* 0000 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //i.v.e.r.D.a.t.a. |
// /* 0010 */ "\x5c\x00\x53\x00\x61\x00\x76\x00\x65\x00\x41\x00\x73\x00\x45\x00" //..S.a.v.e.A.s.E. |
// /* 0020 */ "\x78\x00\x74\x00\x65\x00\x6e\x00\x73\x00\x69\x00\x6f\x00\x6e\x00" //x.t.e.n.s.i.o.n. |
// /* 0030 */ "\x73\x00\x00\x00\x00\x00\x6f\x00\x78\x00\x70\x00\x73\x00\x00\x00" //s.....o.x.p.s... |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x6c\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //......l......... |
// /* 0050 */ "\x00\x00\x60\x00\x00\x00\x68\x00\x00\x00\x04\x00\x00\x00\x50\x00" //..`...h.......P. |
// /* 0060 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00" //r.i.n.t.e.r.D.r. |
// /* 0070 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //i.v.e.r.D.a.t.a. |
// /* 0080 */ "\x5c\x00\x53\x00\x61\x00\x76\x00\x65\x00\x41\x00\x73\x00\x45\x00" //..S.a.v.e.A.s.E. |
// /* 0090 */ "\x78\x00\x74\x00\x65\x00\x6e\x00\x73\x00\x69\x00\x6f\x00\x6e\x00" //x.t.e.n.s.i.o.n. |
// /* 00a0 */ "\x73\x00\x00\x00\x00\x00\x78\x00\x70\x00\x73\x00\x00\x00\x00\x00" //s.....x.p.s..... |
// /* 00b0 */ "\x00\x00\x58\x00\x00\x00\x09\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..X...........<. |
// /* 00c0 */ "\x00\x00\x50\x00\x00\x00\x08\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..P.......P.r.i. |
// /* 00d0 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
// /* 00e0 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x58\x00" //e.r.D.a.t.a...X. |
// /* 00f0 */ "\x70\x00\x73\x00\x46\x00\x6f\x00\x72\x00\x6d\x00\x61\x00\x74\x00" //p.s.F.o.r.m.a.t. |
// /* 0000 */ "\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x78\x00\x00\x00\x07\x00" //..........x..... |
// /* 0010 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x6c\x00\x00\x00\x0a\x00" //......<...l..... |
// /* 0020 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
// /* 0030 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x74\x00\x61\x00\x00\x00\x44\x00\x65\x00\x66\x00\x61\x00\x75\x00" //t.a...D.e.f.a.u. |
// /* 0010 */ "\x6c\x00\x74\x00\x53\x00\x61\x00\x76\x00\x65\x00\x41\x00\x73\x00" //l.t.S.a.v.e.A.s. |
// /* 0020 */ "\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x73\x00\x69\x00\x6f\x00" //E.x.t.e.n.s.i.o. |
// /* 0030 */ "\x6e\x00\x00\x00\x00\x00\x6f\x00\x78\x00\x70\x00\x73\x00\x00\x00" //n.....o.x.p.s... |
// /* 0040 */ "\x00\x00\x68\x00\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..h...........<. |
// /* 0050 */ "\x00\x00\x64\x00\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..d.......P.r.i. |
// /* 0060 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
// /* 0070 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x56\x00" //e.r.D.a.t.a...V. |
// /* 0080 */ "\x34\x00\x5f\x00\x41\x00\x72\x00\x63\x00\x68\x00\x69\x00\x76\x00" //4._.A.r.c.h.i.v. |
// /* 0090 */ "\x65\x00\x5f\x00\x45\x00\x6e\x00\x61\x00\x62\x00\x6c\x00\x65\x00" //e._.E.n.a.b.l.e. |
// /* 00a0 */ "\x64\x00\x00\x00\x00\x00\x01\x00\x00\x00\xbc\x00\x00\x00\x0d\x00" //d............... |
// /* 00b0 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x6c\x00\x00\x00\x50\x00" //......<...l...P. |
// /* 00c0 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
// /* 00d0 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
// /* 00e0 */ "\x74\x00\x61\x00\x00\x00\x56\x00\x34\x00\x5f\x00\x44\x00\x72\x00" //t.a...V.4._.D.r. |
// /* 00f0 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x5f\x00\x48\x00\x61\x00\x72\x00" //i.v.e.r._.H.a.r. |
// /* 0000 */ "\x64\x00\x77\x00\x61\x00\x72\x00\x65\x00\x5f\x00\x49\x00\x44\x00" //d.w.a.r.e._.I.D. |
// /* 0010 */ "\x73\x00\x00\x00\x00\x00\x7b\x00\x30\x00\x46\x00\x34\x00\x31\x00" //s.....{.0.F.4.1. |
// /* 0020 */ "\x33\x00\x30\x00\x44\x00\x44\x00\x2d\x00\x31\x00\x39\x00\x43\x00" //3.0.D.D.-.1.9.C. |
// /* 0030 */ "\x37\x00\x2d\x00\x37\x00\x61\x00\x62\x00\x36\x00\x2d\x00\x39\x00" //7.-.7.a.b.6.-.9. |
// /* 0040 */ "\x39\x00\x41\x00\x31\x00\x2d\x00\x39\x00\x38\x00\x30\x00\x46\x00" //9.A.1.-.9.8.0.F. |
// /* 0050 */ "\x30\x00\x33\x00\x42\x00\x32\x00\x45\x00\x45\x00\x34\x00\x45\x00" //0.3.B.2.E.E.4.E. |
// /* 0060 */ "\x7d\x00\x00\x00\x00\x00\x8c\x00\x00\x00\x07\x00\x00\x00\x18\x00" //}............... |
// /* 0070 */ "\x00\x00\x3c\x00\x00\x00\x70\x00\x00\x00\x1a\x00\x00\x00\x50\x00" //..<...p.......P. |
// /* 0080 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00" //r.i.n.t.e.r.D.r. |
// /* 0090 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //i.v.e.r.D.a.t.a. |
// /* 00a0 */ "\x00\x00\x56\x00\x34\x00\x5f\x00\x4d\x00\x65\x00\x72\x00\x67\x00" //..V.4._.M.e.r.g. |
// /* 00b0 */ "\x65\x00\x64\x00\x5f\x00\x43\x00\x6f\x00\x6e\x00\x66\x00\x69\x00" //e.d._.C.o.n.f.i. |
// /* 00c0 */ "\x67\x00\x46\x00\x69\x00\x6c\x00\x65\x00\x5f\x00\x4e\x00\x61\x00" //g.F.i.l.e._.N.a. |
// /* 00d0 */ "\x6d\x00\x65\x00\x00\x00\x39\x00\x61\x00\x30\x00\x37\x00\x32\x00" //m.e...9.a.0.7.2. |
// /* 00e0 */ "\x61\x00\x66\x00\x65\x00\x2e\x00\x67\x00\x70\x00\x64\x00\x00\x00" //a.f.e...g.p.d... |
// /* 00f0 */ "\x00\x00\x74\x00\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..t...........<. |
// /* 0000 */ "\x00\x00\x70\x00\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..p.......P.r.i. |
// /* 0010 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
// /* 0020 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x56\x00" //e.r.D.a.t.a...V. |
// /* 0030 */ "\x34\x00\x5f\x00\x4d\x00\x65\x00\x72\x00\x67\x00\x65\x00\x64\x00" //4._.M.e.r.g.e.d. |
// /* 0040 */ "\x5f\x00\x43\x00\x6f\x00\x6e\x00\x66\x00\x69\x00\x67\x00\x46\x00" //_.C.o.n.f.i.g.F. |
// /* 0050 */ "\x69\x00\x6c\x00\x65\x00\x5f\x00\x43\x00\x52\x00\x43\x00\x00\x00" //i.l.e._.C.R.C... |
// /* 0060 */ "\x00\x00\xfe\x2a\x07\x9a\x68\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //...*..h......... |
// /* 0070 */ "\x00\x00\x3c\x00\x00\x00\x64\x00\x00\x00\x04\x00\x00\x00\x50\x00" //..<...d.......P. |
// /* 0080 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00" //r.i.n.t.e.r.D.r. |
// /* 0090 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //i.v.e.r.D.a.t.a. |
// /* 00a0 */ "\x00\x00\x56\x00\x34\x00\x5f\x00\x43\x00\x6f\x00\x6e\x00\x66\x00" //..V.4._.C.o.n.f. |
// /* 00b0 */ "\x69\x00\x67\x00\x5f\x00\x43\x00\x68\x00\x61\x00\x6e\x00\x67\x00" //i.g._.C.h.a.n.g. |
// /* 00c0 */ "\x65\x00\x49\x00\x44\x00\x00\x00\x00\x00\xb6\x93\x1d\xc6\x80\x00" //e.I.D........... |
// /* 00d0 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x7c\x00" //..........<...|. |
// /* 00e0 */ "\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //......P.r.i.n.t. |
// /* 00f0 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
// /* 0000 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x56\x00\x34\x00\x5f\x00" //D.a.t.a...V.4._. |
// /* 0010 */ "\x43\x00\x6f\x00\x6e\x00\x66\x00\x69\x00\x67\x00\x5f\x00\x43\x00" //C.o.n.f.i.g._.C. |
// /* 0020 */ "\x61\x00\x63\x00\x68\x00\x65\x00\x5f\x00\x43\x00\x68\x00\x61\x00" //a.c.h.e._.C.h.a. |
// /* 0030 */ "\x6e\x00\x67\x00\x65\x00\x49\x00\x44\x00\x5f\x00\x4c\x00\x6f\x00" //n.g.e.I.D._.L.o. |
// /* 0040 */ "\x63\x00\x61\x00\x6c\x00\x00\x00\x00\x00\x14\x94\x1d\xc6\x64\x00" //c.a.l.........d. |
// /* 0050 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x60\x00" //..........<...`. |
// /* 0060 */ "\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //......P.r.i.n.t. |
// /* 0070 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
// /* 0080 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x49\x00\x6e\x00\x69\x00" //D.a.t.a...I.n.i. |
// /* 0090 */ "\x74\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x56\x00" //t.D.r.i.v.e.r.V. |
// /* 00a0 */ "\x65\x00\x72\x00\x73\x00\x69\x00\x6f\x00\x6e\x00\x00\x00\x03\x06" //e.r.s.i.o.n..... |
// /* 00b0 */ "\x00\x00\x8c\x00\x00\x00\x07\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..............<. |
// /* 00c0 */ "\x00\x00\x48\x00\x00\x00\x42\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..H...B...P.r.i. |
// /* 00d0 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
// /* 00e0 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x4d\x00" //e.r.D.a.t.a...M. |
// /* 00f0 */ "\x6f\x00\x64\x00\x65\x00\x6c\x00\x00\x00\x4d\x00\x69\x00\x63\x00" //o.d.e.l...M.i.c. |
// /* 0000 */ "\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00" //r.o.s.o.f.t. .X. |
// /* 0010 */ "\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00" //P.S. .D.o.c.u.m. |
// /* 0020 */ "\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00" //e.n.t. .W.r.i.t. |
// /* 0030 */ "\x65\x00\x72\x00\x20\x00\x76\x00\x34\x00\x00\x00\x00\x00\x60\x00" //e.r. .v.4.....`. |
// /* 0040 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x5c\x00" //..........<..... |
// /* 0050 */ "\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //......P.r.i.n.t. |
// /* 0060 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
// /* 0070 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x50\x00\x72\x00\x69\x00" //D.a.t.a...P.r.i. |
// /* 0080 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //n.t.e.r.D.a.t.a. |
// /* 0090 */ "\x53\x00\x69\x00\x7a\x00\x65\x00\x00\x00\x30\x02\x00\x00\x84\x02" //S.i.z.e...0..... |
// /* 00a0 */ "\x00\x00\x09\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x54\x00" //..........<...T. |
// /* 00b0 */ "\x00\x00\x30\x02\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //..0...P.r.i.n.t. |
// /* 00c0 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
// /* 00d0 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x50\x00\x72\x00\x69\x00" //D.a.t.a...P.r.i. |
// /* 00e0 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //n.t.e.r.D.a.t.a. |
// /* 00f0 */ "\x00\x00\x03\x06\x30\x02\x81\x08\x00\x00\x80\x1a\x06\x00\x00\x00" //....0........... |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x64\x00\x58\x02\x00\x00\x00\x00\x00\x00" //......d.X....... |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xca\xd2\xf6\x72\x00\x00" //.............r.. |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x40\x06\x00\x00" //@... |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x68\x00\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..h...........<. |
// /* 00f0 */ "\x00\x00\x64\x00\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..d.......P.r.i. |
// /* 0000 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
// /* 0010 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x46\x00" //e.r.D.a.t.a...F. |
// /* 0020 */ "\x65\x00\x61\x00\x74\x00\x75\x00\x72\x00\x65\x00\x4b\x00\x65\x00" //e.a.t.u.r.e.K.e. |
// /* 0030 */ "\x79\x00\x77\x00\x6f\x00\x72\x00\x64\x00\x53\x00\x69\x00\x7a\x00" //y.w.o.r.d.S.i.z. |
// /* 0040 */ "\x65\x00\x00\x00\x00\x00\x02\x00\x00\x00\x60\x00\x00\x00\x09\x00" //e.........`..... |
// /* 0050 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x5c\x00\x00\x00\x02\x00" //......<......... |
// /* 0060 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
// /* 0070 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
// /* 0080 */ "\x74\x00\x61\x00\x00\x00\x46\x00\x65\x00\x61\x00\x74\x00\x75\x00" //t.a...F.e.a.t.u. |
// /* 0090 */ "\x72\x00\x65\x00\x4b\x00\x65\x00\x79\x00\x77\x00\x6f\x00\x72\x00" //r.e.K.e.y.w.o.r. |
// /* 00a0 */ "\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x0a\x00" //d.........P..... |
// /* 00b0 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x4c\x00\x00\x00\x04\x00" //......<...L..... |
// /* 00c0 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
// /* 00d0 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
// /* 00e0 */ "\x74\x00\x61\x00\x00\x00\x46\x00\x6f\x00\x72\x00\x6d\x00\x73\x00" //t.a...F.o.r.m.s. |
// /* 00f0 */ "\x3f\x00\x00\x00\x00\x00\xca\xd2\xf6\x72\x64\x00\x00\x00\x07\x00" //?........rd..... |
// /* 0000 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x60\x00\x00\x00\x02\x00" //......<...`..... |
// /* 0010 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
// /* 0020 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
// /* 0030 */ "\x74\x00\x61\x00\x00\x00\x54\x00\x72\x00\x61\x00\x79\x00\x46\x00" //t.a...T.r.a.y.F. |
// /* 0040 */ "\x6f\x00\x72\x00\x6d\x00\x51\x00\x75\x00\x65\x00\x75\x00\x65\x00" //o.r.m.Q.u.e.u.e. |
// /* 0050 */ "\x50\x00\x72\x00\x6f\x00\x70\x00\x00\x00\x00\x00\x00\x00\x58\x00" //P.r.o.p.......X. |
// /* 0060 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x54\x00" //..........<...T. |
// /* 0070 */ "\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //......P.r.i.n.t. |
// /* 0080 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
// /* 0090 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x54\x00\x53\x00\x53\x00" //D.a.t.a...T.S.S. |
// /* 00a0 */ "\x65\x00\x73\x00\x73\x00\x69\x00\x6f\x00\x6e\x00\x49\x00\x44\x00" //e.s.s.i.o.n.I.D. |
// /* 00b0 */ "\x00\x00\x03\x00\x00\x00\x8c\x04\x00\x00\x00\x00\x00\x00\x18\x00" //................ |
// /* 00c0 */ "\x00\x00\x18\x00\x00\x00\x18\x00\x00\x00\x74\x04\x00\x00\x4d\x00" //..........t...M. |
// /* 00d0 */ "\x69\x00\x63\x00\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00" //i.c.r.o.s.o.f.t. |
// /* 00e0 */ "\x20\x00\x58\x00\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00" // .X.P.S. .D.o.c. |
// /* 00f0 */ "\x75\x00\x6d\x00\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00" //u.m.e.n.t. .W.r. |
// /* 0000 */ "\x69\x00\x74\x00\x65\x00\x72\x00\x20\x00\x28\x00\x00\x00\x01\x04" //i.t.e.r. .(..... |
// /* 0010 */ "\x03\x06\xdc\x00\x98\x03\x03\xaf\x01\x00\x01\x00\x09\x00\x9a\x0b" //................ |
// /* 0020 */ "\x34\x08\x64\x00\x01\x00\x0f\x00\x58\x02\x02\x00\x01\x00\x58\x02" //4.d.....X.....X. |
// /* 0030 */ "\x03\x00\x00\x00\x41\x00\x34\x00\x00\x00\x00\x00\x00\x00\x00\x00" //....A.4......... |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00" //................ |
// /* 0090 */ "\x00\x00\x01\x00\x00\x00\xff\xff\xff\xff\x47\x49\x53\x34\x00\x00" //..........GIS4.. |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x49\x4e\x55\x22\x00" //..........DINU". |
// /* 00b0 */ "\x20\x01\x7c\x03\x1c\x00\xca\xd2\xf6\x72\x00\x00\x00\x00\x00\x00" // .|......r...... |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x00\x00\x00\x00\x20\x01\x00\x00\x53\x4d\x54\x4a\x00\x00" //...... ...SMTJ.. |
// /* 0010 */ "\x00\x00\x10\x00\x10\x01\x7b\x00\x30\x00\x46\x00\x34\x00\x31\x00" //......{.0.F.4.1. |
// /* 0020 */ "\x33\x00\x30\x00\x44\x00\x44\x00\x2d\x00\x31\x00\x39\x00\x43\x00" //3.0.D.D.-.1.9.C. |
// /* 0030 */ "\x37\x00\x2d\x00\x37\x00\x61\x00\x62\x00\x36\x00\x2d\x00\x39\x00" //7.-.7.a.b.6.-.9. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000002 chunk_data_length=298 |
// Recv done on rdpdr (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
// /* 0000 */ "\x02\x00\x00\x00" //.... |
// /* 0000 */ "\x2a\x01\x00\x00" //*... |
// /* 0000 */ "\x39\x00\x41\x00\x31\x00\x2d\x00\x39\x00\x38\x00\x30\x00\x46\x00" //9.A.1.-.9.8.0.F. |
// /* 0010 */ "\x30\x00\x33\x00\x42\x00\x32\x00\x45\x00\x45\x00\x34\x00\x45\x00" //0.3.B.2.E.E.4.E. |
// /* 0020 */ "\x7d\x00\x00\x00\x49\x6e\x70\x75\x74\x42\x69\x6e\x00\x46\x4f\x52" //}...InputBin.FOR |
// /* 0030 */ "\x4d\x53\x4f\x55\x52\x43\x45\x00\x52\x45\x53\x44\x4c\x4c\x00\x55" //MSOURCE.RESDLL.U |
// /* 0040 */ "\x6e\x69\x72\x65\x73\x44\x4c\x4c\x00\x49\x6e\x74\x65\x72\x6c\x65" //niresDLL.Interle |
// /* 0050 */ "\x61\x76\x69\x6e\x67\x00\x4f\x46\x46\x00\x49\x6d\x61\x67\x65\x54" //aving.OFF.ImageT |
// /* 0060 */ "\x79\x70\x65\x00\x4a\x50\x45\x47\x4d\x65\x64\x00\x4f\x72\x69\x65" //ype.JPEGMed.Orie |
// /* 0070 */ "\x6e\x74\x61\x74\x69\x6f\x6e\x00\x50\x4f\x52\x54\x52\x41\x49\x54" //ntation.PORTRAIT |
// /* 0080 */ "\x00\x43\x6f\x6c\x6c\x61\x74\x65\x00\x4f\x46\x46\x00\x52\x65\x73" //.Collate.OFF.Res |
// /* 0090 */ "\x6f\x6c\x75\x74\x69\x6f\x6e\x00\x4f\x70\x74\x69\x6f\x6e\x31\x00" //olution.Option1. |
// /* 00a0 */ "\x50\x61\x70\x65\x72\x53\x69\x7a\x65\x00\x4c\x45\x54\x54\x45\x52" //PaperSize.LETTER |
// /* 00b0 */ "\x00\x43\x6f\x6c\x6f\x72\x4d\x6f\x64\x65\x00\x32\x34\x62\x70\x70" //.ColorMode.24bpp |
// /* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 00e0 */ "\x00\x00\x00\x00\x00\x00\x1c\x00\x00\x00\x56\x34\x44\x4d\x01\x00" //..........V4DM.. |
// /* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0000 */ "\x00\x00\x08\x00\x00\x00\x02\x00\x00\x00\x44\x3a\x00\x00\x00\x00" //..........D:.... |
// /* 0010 */ "\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x01\x00\x00\x00\x43\x3a" //..............C: |
// /* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //.......... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_FILESYSTEM(8) DeviceId=2 PreferredDosName="D:" DeviceDataLength=0 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=2 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x72\x64\x02\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_FILESYSTEM(8) DeviceId=1 PreferredDosName="C:" DeviceDataLength=0 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=1 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x72\x64\x01\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
} /* end outdata */;
const char indata[] = /* NOLINT */
{
// FileSystemVirtualChannel::process_server_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x6e\x49\x01\x00\x0c\x00\x02\x00\x00\x00" //rDnI........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Announce Request |
// ServerAnnounceRequest: VersionMajor=0x0001 VersionMinor=0x000C ClientId=2 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x6e\x49\x01\x00\x0c\x00\x02\x00\x00\x00" //rDnI........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x43\x43\x01\x00\x0c\x00\x02\x00\x00\x00" //rDCC........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Announce Reply |
// ClientAnnounceReply: VersionMajor=0x0001 VersionMinor=0x000C ClientId=2 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x43\x43\x01\x00\x0c\x00\x02\x00\x00\x00" //rDCC........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=32 flags=0x00000003 chunk_data_length=32 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x20\x00\x00\x00" // ... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x20\x00\x00\x00" // ... |
/* 0000 */ "\x72\x44\x4e\x43\xf9\x7f\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00" //rDNC............ |
/* 0010 */ "\x54\x00\x45\x00\x53\x00\x54\x00\x4b\x00\x52\x00\x42\x00\x00\x00" //T.E.S.T.K.R.B... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Name Request |
// ClientNameRequest: UnicodeFlag=0x7FF9 CodePage=0 ComputerName="TESTKRB" |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x20\x00\x00\x00" // ... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x20\x00\x00\x00" // ... |
// /* 0000 */ "\x72\x44\x4e\x43\xf9\x7f\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00" //rDNC............ |
// /* 0010 */ "\x54\x00\x45\x00\x53\x00\x54\x00\x4b\x00\x52\x00\x42\x00\x00\x00" //T.E.S.T.K.R.B... |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: total_length=84 flags=0x00000003 chunk_data_length=84 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x54\x00\x00\x00" //T... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x54\x00\x00\x00" //T... |
/* 0000 */ "\x72\x44\x50\x53\x05\x00\x00\x00\x01\x00\x2c\x00\x02\x00\x00\x00" //rDPS......,..... |
/* 0010 */ "\x02\x00\x00\x00\x00\x00\x00\x00\x01\x00\x0c\x00\xff\xff\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x02\x00\x00\x00\x02\x00\x08\x00\x01\x00\x00\x00\x03\x00\x08\x00" //................ |
/* 0040 */ "\x01\x00\x00\x00\x04\x00\x08\x00\x02\x00\x00\x00\x05\x00\x08\x00" //................ |
/* 0050 */ "\x01\x00\x00\x00" //.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Core Capability Request |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x54\x00\x00\x00" //T... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x54\x00\x00\x00" //T... |
// /* 0000 */ "\x72\x44\x50\x53\x05\x00\x00\x00\x01\x00\x2c\x00\x02\x00\x00\x00" //rDPS......,..... |
// /* 0010 */ "\x02\x00\x00\x00\x00\x00\x00\x00\x01\x00\x0c\x00\xff\xff\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x02\x00\x00\x00\x02\x00\x08\x00\x01\x00\x00\x00\x03\x00\x08\x00" //................ |
// /* 0040 */ "\x01\x00\x00\x00\x04\x00\x08\x00\x02\x00\x00\x00\x05\x00\x08\x00" //................ |
// /* 0050 */ "\x01\x00\x00\x00" //.... |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x43\x43\x01\x00\x0c\x00\x02\x00\x00\x00" //rDCC........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Client ID Confirm |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x43\x43\x01\x00\x0c\x00\x02\x00\x00\x00" //rDCC........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=84 flags=0x00000003 chunk_data_length=84 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x54\x00\x00\x00" //T... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x54\x00\x00\x00" //T... |
/* 0000 */ "\x72\x44\x50\x43\x05\x00\x00\x00\x01\x00\x2c\x00\x02\x00\x00\x00" //rDPC......,..... |
/* 0010 */ "\x02\x00\x00\x00\x02\x00\x06\x00\x01\x00\x0c\x00\xff\xff\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x07\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x02\x00\x08\x00\x01\x00\x00\x00\x03\x00\x08\x00" //................ |
/* 0040 */ "\x01\x00\x00\x00\x04\x00\x08\x00\x01\x00\x00\x00\x05\x00\x08\x00" //................ |
/* 0050 */ "\x01\x00\x00\x00" //.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Core Capability Response |
// FileSystemVirtualChannel::process_client_core_capability_response: numCapabilities=5 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0001 CapabilityLength=44 Version=0x2 |
// FileSystemVirtualChannel::process_client_general_capability_set: |
// GeneralCapabilitySet: osType=0x2 osVersion=0x60002 protocolMajorVersion=0x1 protocolMinorVersion=0xC ioCode1=0xFFFF ioCode2=0x0 extendedPDU=0x7 extraFlags1=0x1 extraFlags2=0x0 SpecialTypeDeviceCap=0 |
// FileSystemVirtualChannel::process_client_general_capability_set:Deny user to send multiple simultaneous read or write requests on the same file from a redirected file system. |
// GeneralCapabilitySet: osType=0x2 osVersion=0x60002 protocolMajorVersion=0x1 protocolMinorVersion=0xC ioCode1=0xFFFF ioCode2=0x0 extendedPDU=0x7 extraFlags1=0x0 extraFlags2=0x0 SpecialTypeDeviceCap=0 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0002 CapabilityLength=8 Version=0x1 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0003 CapabilityLength=8 Version=0x1 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0004 CapabilityLength=8 Version=0x1 |
// FileSystemVirtualChannel::process_client_core_capability_response: CapabilityType=0x0005 CapabilityLength=8 Version=0x1 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x54\x00\x00\x00" //T... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x54\x00\x00\x00" //T... |
// /* 0000 */ "\x72\x44\x50\x43\x05\x00\x00\x00\x01\x00\x2c\x00\x02\x00\x00\x00" //rDPC......,..... |
// /* 0010 */ "\x02\x00\x00\x00\x02\x00\x06\x00\x01\x00\x0c\x00\xff\xff\x00\x00" //................ |
// /* 0020 */ "\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// /* 0030 */ "\x00\x00\x00\x00\x02\x00\x08\x00\x01\x00\x00\x00\x03\x00\x08\x00" //................ |
// /* 0040 */ "\x01\x00\x00\x00\x04\x00\x08\x00\x01\x00\x00\x00\x05\x00\x08\x00" //................ |
// /* 0050 */ "\x01\x00\x00\x00" //.... |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=8 flags=0x00000003 chunk_data_length=8 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x08\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x08\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x41\x44\x00\x00\x00\x00" //rDAD.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceCount=0 |
// FileSystemVirtualChannel::process_client_message: total_length=8 flags=0x00000003 chunk_data_length=8 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x08\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x08\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x41\x44\x00\x00\x00\x00" //rDAD.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceCount=0 |
// process save session info : Logon extended info |
// process save session info : Logon Errors Info |
// ErrorNotificationData=LOGON_MSG_SESSION_CONTINUE(0xFFFFFFFE) "The logon process is continuing." ErrorNotificationType=LOGON_FAILED_OTHER(0x00000002) "The logon process failed. The reason for the failure can be deduced from the ErrorNotificationData field." |
// process save session info : Logon long |
// Logon Info Version 2 (data): Domain="WIN-1R5JGCUI6TK" UserName="Administrateur" SessionId=2 |
// Ask acl |
// sending reporting=OPEN_SESSION_SUCCESSFUL:win2k8pri:Ok. |
// sending keepalive=ASK |
// process save session info : Logon extended info |
// process save session info : Auto-reconnect cookie |
// LogonId=2 |
// 0000 5c b6 53 e1 54 bf 80 12 62 4c 64 4e 52 ea e7 b6 ..S.T...bLdNR... |
// +++++++++++> ACL receive <++++++++++++++++ |
// receiving 'keepalive'='True' |
// FileSystemVirtualChannel::process_server_message: total_length=4 flags=0x00000003 chunk_data_length=4 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x04\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x04\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x4c\x55" //rDLU |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server User Logged On |
// FileSystemDriveManager::announce_drive |
// DeviceAnnounceHeader: DeviceType=RDPDR_DTYP_FILESYSTEM(8) DeviceId=32767 PreferredDosName="EXPORT" |
// 0000 45 58 50 4f 52 54 00 EXPORT. |
// FileSystemDriveManager::announce_drive |
// DeviceAnnounceHeader: DeviceType=RDPDR_DTYP_FILESYSTEM(8) DeviceId=32768 PreferredDosName="SHARE" |
// 0000 53 48 41 52 45 00 SHARE. |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x23\x00\x00\x00" //#... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x23\x00\x00\x00" //#... |
// /* 0000 */ "\x72\x44\x41\x44\x01\x00\x00\x00\x08\x00\x00\x00\xff\x7f\x00\x00" //rDAD............ |
// /* 0010 */ "\x45\x58\x50\x4f\x52\x54\x00\x00\x07\x00\x00\x00\x45\x58\x50\x4f" //EXPORT......EXPO |
// /* 0020 */ "\x52\x54\x00" //RT. |
// Sent dumped on channel (-1) n bytes |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x04\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x04\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x4c\x55" //rDLU |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x72\x64\xff\x7f\x00\x00\x00\x00\x00\x00" //rDrd........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=32767 ResultCode=0x00000000 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x01\x00\x00\x00" //.... |
// /* 0000 */ "\x22\x00\x00\x00" //"... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x22\x00\x00\x00" //"... |
// /* 0000 */ "\x72\x44\x41\x44\x01\x00\x00\x00\x08\x00\x00\x00\x00\x80\x00\x00" //rDAD............ |
// /* 0010 */ "\x53\x48\x41\x52\x45\x00\x00\x00\x06\x00\x00\x00\x53\x48\x41\x52" //SHARE.......SHAR |
// /* 0020 */ "\x45\x00" //E. |
// Sent dumped on channel (-1) n bytes |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x72\x64\xff\x7f\x00\x00\x00\x00\x00\x00" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=8 flags=0x00000003 chunk_data_length=8 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x08\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x08\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x41\x44\x00\x00\x00\x00" //rDAD.... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceCount=0 |
// FileSystemVirtualChannel::process_server_message: total_length=12 flags=0x00000003 chunk_data_length=12 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x03\x00\x00\x00" //.... |
/* 0000 */ "\x0c\x00\x00\x00" //.... |
/* 0000 */ "\x72\x44\x72\x64\x00\x80\x00\x00\x00\x00\x00\x00" //rDrd........ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_server_message: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=32768 ResultCode=0x00000000 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x72\x64\x00\x80\x00\x00\x00\x00\x00\x00" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000001 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x01\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x72\x44\x41\x44\x05\x00\x00\x00\x04\x00\x00\x00\x04\x00\x00\x00" //rDAD............ |
/* 0010 */ "\x50\x52\x4e\x34\x00\x00\x00\x00\x88\x00\x00\x00\x12\x00\x00\x00" //PRN4............ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x38\x00\x00\x00\x38\x00\x00\x00" //........8...8... |
/* 0030 */ "\x00\x00\x00\x00\x43\x00\x61\x00\x6e\x00\x6f\x00\x6e\x00\x20\x00" //....C.a.n.o.n. . |
/* 0040 */ "\x69\x00\x52\x00\x2d\x00\x41\x00\x44\x00\x56\x00\x20\x00\x43\x00" //i.R.-.A.D.V. .C. |
/* 0050 */ "\x35\x00\x30\x00\x33\x00\x30\x00\x2f\x00\x35\x00\x30\x00\x33\x00" //5.0.3.0./.5.0.3. |
/* 0060 */ "\x35\x00\x20\x00\x50\x00\x53\x00\x33\x00\x00\x00\x43\x00\x61\x00" //5. .P.S.3...C.a. |
/* 0070 */ "\x6e\x00\x6f\x00\x6e\x00\x20\x00\x69\x00\x52\x00\x2d\x00\x41\x00" //n.o.n. .i.R.-.A. |
/* 0080 */ "\x44\x00\x56\x00\x20\x00\x43\x00\x35\x00\x30\x00\x33\x00\x30\x00" //D.V. .C.5.0.3.0. |
/* 0090 */ "\x2f\x00\x35\x00\x30\x00\x33\x00\x35\x00\x20\x00\x50\x00\x53\x00" ///.5.0.3.5. .P.S. |
/* 00a0 */ "\x33\x00\x00\x00\x04\x00\x00\x00\x05\x00\x00\x00\x50\x52\x4e\x35" //3...........PRN5 |
/* 00b0 */ "\x00\x00\x00\x00\x98\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x40\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00" //....@...@....... |
/* 00d0 */ "\x43\x00\x61\x00\x6e\x00\x6f\x00\x6e\x00\x20\x00\x69\x00\x52\x00" //C.a.n.o.n. .i.R. |
/* 00e0 */ "\x2d\x00\x41\x00\x44\x00\x56\x00\x20\x00\x36\x00\x30\x00\x35\x00" //-.A.D.V. .6.0.5. |
/* 00f0 */ "\x35\x00\x2f\x00\x36\x00\x30\x00\x36\x00\x35\x00\x2d\x00\x55\x00" //5./.6.0.6.5.-.U. |
/* 0000 */ "\x31\x00\x20\x00\x50\x00\x43\x00\x4c\x00\x35\x00\x65\x00\x00\x00" //1. .P.C.L.5.e... |
/* 0010 */ "\x43\x00\x61\x00\x6e\x00\x6f\x00\x6e\x00\x20\x00\x69\x00\x52\x00" //C.a.n.o.n. .i.R. |
/* 0020 */ "\x2d\x00\x41\x00\x44\x00\x56\x00\x20\x00\x36\x00\x30\x00\x35\x00" //-.A.D.V. .6.0.5. |
/* 0030 */ "\x35\x00\x2f\x00\x36\x00\x30\x00\x36\x00\x35\x00\x2d\x00\x55\x00" //5./.6.0.6.5.-.U. |
/* 0040 */ "\x31\x00\x20\x00\x50\x00\x43\x00\x4c\x00\x35\x00\x65\x00\x00\x00" //1. .P.C.L.5.e... |
/* 0050 */ "\x04\x00\x00\x00\x03\x00\x00\x00\x50\x52\x4e\x33\x00\x00\x00\x00" //........PRN3.... |
/* 0060 */ "\x9e\x4a\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //.J.............. |
/* 0070 */ "\x42\x00\x00\x00\x3c\x00\x00\x00\x08\x4a\x00\x00\x4d\x00\x69\x00" //B...<....J..M.i. |
/* 0080 */ "\x63\x00\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00" //c.r.o.s.o.f.t. . |
/* 0090 */ "\x58\x00\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00" //X.P.S. .D.o.c.u. |
/* 00a0 */ "\x6d\x00\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00" //m.e.n.t. .W.r.i. |
/* 00b0 */ "\x74\x00\x65\x00\x72\x00\x20\x00\x76\x00\x34\x00\x00\x00\x4d\x00" //t.e.r. .v.4...M. |
/* 00c0 */ "\x69\x00\x63\x00\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00" //i.c.r.o.s.o.f.t. |
/* 00d0 */ "\x20\x00\x58\x00\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00" // .X.P.S. .D.o.c. |
/* 00e0 */ "\x75\x00\x6d\x00\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00" //u.m.e.n.t. .W.r. |
/* 00f0 */ "\x69\x00\x74\x00\x65\x00\x72\x00\x00\x00\x48\x00\x00\x00\x00\x00" //i.t.e.r...H..... |
/* 0000 */ "\x00\x00\x94\x20\x00\x00\x00\x00\x00\x00\x32\x00\x00\x00\x00\x00" //... ......2..... |
/* 0010 */ "\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\x7c\x45\x00\x00\x00\x00" //..........|E.... |
/* 0020 */ "\x00\x00\x48\x00\x00\x00\x00\x00\x00\x00\x60\x10\x00\x00\x00\x00" //..H.......`..... |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\x20\x00\x00\x00\x00" //..........x .... |
/* 0040 */ "\x00\x00\x18\x10\x00\x00\x01\x00\x00\x00\x18\x00\x00\x00\x18\x00" //................ |
/* 0050 */ "\x00\x00\x18\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x9e\x0f" //................ |
/* 0060 */ "\x00\x00\x9c\x0f\x00\x00\x90\x0f\x00\x00\x4e\x0f\x00\x00\x00\x00" //..........N..... |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\xc0\x0a\x00\x00\x00\x00\x00\x00\x3c\x0f" //..............<. |
/* 0080 */ "\x00\x00\x34\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x82" //..4...........@. |
/* 0090 */ "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x40\x82\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" //..@............. |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceCount=5 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_PRINT(4) DeviceId=4 PreferredDosName="PRN4" DeviceDataLength=136 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=4 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x72\x64\x04\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_PRINT(4) DeviceId=5 PreferredDosName="PRN5" DeviceDataLength=152 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=5 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x72\x64\x05\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_PRINT(4) DeviceId=3 PreferredDosName="PRN3" DeviceDataLength=19102 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=3 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x72\x64\x03\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x04\x80\x64\x01" //..............d. |
/* 0060 */ "\x00\x00\x70\x01\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x02\x00" //..p............. |
/* 0070 */ "\x50\x01\x0d\x00\x00\x00\x00\x00\x14\x00\x0c\x00\x0f\x00\x01\x01" //P............... |
/* 0080 */ "\x00\x00\x00\x00\x00\x05\x12\x00\x00\x00\x00\x09\x14\x00\x30\x00" //..............0. |
/* 0090 */ "\x0f\x00\x01\x01\x00\x00\x00\x00\x00\x05\x12\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x18\x00\x08\x00\x02\x00\x01\x02\x00\x00\x00\x00\x00\x05\x20\x00" //.............. . |
/* 00b0 */ "\x00\x00\x26\x02\x00\x00\x00\x00\x18\x00\x00\x00\x08\x00\x01\x02" //..&............. |
/* 00c0 */ "\x00\x00\x00\x00\x00\x05\x20\x00\x00\x00\x26\x02\x00\x00\x00\x00" //...... ...&..... |
/* 00d0 */ "\x18\x00\x08\x00\x02\x00\x01\x02\x00\x00\x00\x00\x00\x0f\x02\x00" //................ |
/* 00e0 */ "\x00\x00\x01\x00\x00\x00\x00\x09\x18\x00\x00\x00\x02\x00\x01\x02" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x0f\x02\x00\x00\x00\x01\x00\x00\x00\x00\x09" //................ |
/* 0000 */ "\x18\x00\x30\x00\x0f\x00\x01\x02\x00\x00\x00\x00\x00\x0f\x02\x00" //..0............. |
/* 0010 */ "\x00\x00\x01\x00\x00\x00\x00\x09\x14\x00\x00\x00\x02\x00\x01\x01" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x09\x14\x00\x30\x00" //..............0. |
/* 0030 */ "\x0f\x00\x01\x01\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x1c\x00\x08\x00\x02\x00\x01\x03\x00\x00\x00\x00\x00\x05\x05\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\xc9\x83\xfa\x03\x00\x0a\x1c\x00\x00\x00" //................ |
/* 0020 */ "\x02\x00\x01\x03\x00\x00\x00\x00\x00\x05\x05\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\xc9\x83\xfa\x03\x00\x09\x1c\x00\x30\x00\x0f\x00\x01\x03" //..........0..... |
/* 0040 */ "\x00\x00\x00\x00\x00\x05\x05\x00\x00\x00\x00\x00\x00\x00\xc9\x83" //................ |
/* 0050 */ "\xfa\x03\x00\x09\x24\x00\x00\x00\x01\x00\x01\x05\x00\x00\x00\x00" //....$........... |
/* 0060 */ "\x00\x05\x15\x00\x00\x00\xd3\x98\xea\xeb\xad\xc4\xb4\xd2\x26\x0a" //..............&. |
/* 0070 */ "\x1c\x01\x54\x04\x00\x00\x15\x00\x00\x00\xd3\x98\xea\xeb\x01\x01" //..T............. |
/* 0080 */ "\x00\x00\x00\x00\x00\x05\x12\x00\x00\x00\x01\x01\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x05\x12\x00\x00\x00\x00\x00\x00\x00\x4d\x00\x69\x00\x63\x00" //..........M.i.c. |
/* 00a0 */ "\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00" //r.o.s.o.f.t. .X. |
/* 00b0 */ "\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00" //P.S. .D.o.c.u.m. |
/* 00c0 */ "\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00" //e.n.t. .W.r.i.t. |
/* 00d0 */ "\x65\x00\x72\x00\x20\x00\x28\x00\x00\x00\x01\x04\x03\x06\xdc\x00" //e.r. .(......... |
/* 00e0 */ "\x98\x03\x03\xaf\x01\x00\x01\x00\x09\x00\x9a\x0b\x34\x08\x64\x00" //............4.d. |
/* 00f0 */ "\x01\x00\x0f\x00\x58\x02\x02\x00\x01\x00\x58\x02\x03\x00\x00\x00" //....X.....X..... |
/* 0000 */ "\x41\x00\x34\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //A.4............. |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\x01\x00" //................ |
/* 0060 */ "\x00\x00\xff\xff\xff\xff\x47\x49\x53\x34\x00\x00\x00\x00\x00\x00" //......GIS4...... |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x44\x49\x4e\x55\x22\x00\x20\x01\x7c\x03" //......DINU". .|. |
/* 0080 */ "\x1c\x00\xca\xd2\xf6\x72\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //.....r.......... |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x20\x01\x00\x00\x53\x4d\x54\x4a\x00\x00\x00\x00\x10\x00" //.. ...SMTJ...... |
/* 00e0 */ "\x10\x01\x7b\x00\x30\x00\x46\x00\x34\x00\x31\x00\x33\x00\x30\x00" //..{.0.F.4.1.3.0. |
/* 00f0 */ "\x44\x00\x44\x00\x2d\x00\x31\x00\x39\x00\x43\x00\x37\x00\x2d\x00" //D.D.-.1.9.C.7.-. |
/* 0000 */ "\x37\x00\x61\x00\x62\x00\x36\x00\x2d\x00\x39\x00\x39\x00\x41\x00" //7.a.b.6.-.9.9.A. |
/* 0010 */ "\x31\x00\x2d\x00\x39\x00\x38\x00\x30\x00\x46\x00\x30\x00\x33\x00" //1.-.9.8.0.F.0.3. |
/* 0020 */ "\x42\x00\x32\x00\x45\x00\x45\x00\x34\x00\x45\x00\x7d\x00\x00\x00" //B.2.E.E.4.E.}... |
/* 0030 */ "\x49\x6e\x70\x75\x74\x42\x69\x6e\x00\x46\x4f\x52\x4d\x53\x4f\x55" //InputBin.FORMSOU |
/* 0040 */ "\x52\x43\x45\x00\x52\x45\x53\x44\x4c\x4c\x00\x55\x6e\x69\x72\x65" //RCE.RESDLL.Unire |
/* 0050 */ "\x73\x44\x4c\x4c\x00\x49\x6e\x74\x65\x72\x6c\x65\x61\x76\x69\x6e" //sDLL.Interleavin |
/* 0060 */ "\x67\x00\x4f\x46\x46\x00\x49\x6d\x61\x67\x65\x54\x79\x70\x65\x00" //g.OFF.ImageType. |
/* 0070 */ "\x4a\x50\x45\x47\x4d\x65\x64\x00\x4f\x72\x69\x65\x6e\x74\x61\x74" //JPEGMed.Orientat |
/* 0080 */ "\x69\x6f\x6e\x00\x50\x4f\x52\x54\x52\x41\x49\x54\x00\x43\x6f\x6c" //ion.PORTRAIT.Col |
/* 0090 */ "\x6c\x61\x74\x65\x00\x4f\x46\x46\x00\x52\x65\x73\x6f\x6c\x75\x74" //late.OFF.Resolut |
/* 00a0 */ "\x69\x6f\x6e\x00\x4f\x70\x74\x69\x6f\x6e\x31\x00\x50\x61\x70\x65" //ion.Option1.Pape |
/* 00b0 */ "\x72\x53\x69\x7a\x65\x00\x4c\x45\x54\x54\x45\x52\x00\x43\x6f\x6c" //rSize.LETTER.Col |
/* 00c0 */ "\x6f\x72\x4d\x6f\x64\x65\x00\x32\x34\x62\x70\x70\x00\x00\x00\x00" //orMode.24bpp.... |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x1c\x00\x00\x00\x56\x34\x44\x4d\x01\x00\x00\x00\x00\x00" //......V4DM...... |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x52\x00" //..............R. |
/* 0010 */ "\x41\x00\x57\x00\x00\x00\x77\x00\x69\x00\x6e\x00\x70\x00\x72\x00" //A.W...w.i.n.p.r. |
/* 0020 */ "\x69\x00\x6e\x00\x74\x00\x00\x00\x4d\x00\x69\x00\x63\x00\x72\x00" //i.n.t...M.i.c.r. |
/* 0030 */ "\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00\x50\x00" //o.s.o.f.t. .X.P. |
/* 0040 */ "\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00\x65\x00" //S. .D.o.c.u.m.e. |
/* 0050 */ "\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00\x65\x00" //n.t. .W.r.i.t.e. |
/* 0060 */ "\x72\x00\x20\x00\x76\x00\x34\x00\x00\x00\x54\x00\x53\x00\x30\x00" //r. .v.4...T.S.0. |
/* 0070 */ "\x30\x00\x31\x00\x00\x00\x00\x00\x4d\x00\x69\x00\x63\x00\x72\x00" //0.1.....M.i.c.r. |
/* 0080 */ "\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00\x50\x00" //o.s.o.f.t. .X.P. |
/* 0090 */ "\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00\x65\x00" //S. .D.o.c.u.m.e. |
/* 00a0 */ "\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00\x65\x00" //n.t. .W.r.i.t.e. |
/* 00b0 */ "\x72\x00\x20\x00\x28\x00\x72\x00\x65\x00\x64\x00\x69\x00\x72\x00" //r. .(.r.e.d.i.r. |
/* 00c0 */ "\x65\x00\x63\x00\x74\x00\x69\x00\x6f\x00\x6e\x00\x20\x00\x64\x00" //e.c.t.i.o.n. .d. |
/* 00d0 */ "\x65\x00\x20\x00\x33\x00\x29\x00\x00\x00\x18\x10\x00\x00\x02\x00" //e. .3.)......... |
/* 00e0 */ "\x00\x00\x18\x00\x00\x00\x18\x00\x00\x00\x18\x00\x00\x00\x00\x10" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x04\x00\x00\x00\x04\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x1c\x00\x00\x00\x04\x00\x00\x00\x18\x00\x00\x00\x18\x00" //................ |
/* 0040 */ "\x00\x00\x18\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x78\x00" //..............x. |
/* 0050 */ "\x00\x00\x0d\x00\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00" //..........,...H. |
/* 0060 */ "\x00\x00\x2e\x00\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00" //......D.s.D.r.i. |
/* 0070 */ "\x76\x00\x65\x00\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00" //v.e.r.....p.r.i. |
/* 0080 */ "\x6e\x00\x74\x00\x42\x00\x69\x00\x6e\x00\x4e\x00\x61\x00\x6d\x00" //n.t.B.i.n.N.a.m. |
/* 0090 */ "\x65\x00\x73\x00\x00\x00\x53\x00\xe9\x00\x6c\x00\x65\x00\x63\x00" //e.s...S...l.e.c. |
/* 00a0 */ "\x74\x00\x69\x00\x6f\x00\x6e\x00\x20\x00\x61\x00\x75\x00\x74\x00" //t.i.o.n. .a.u.t. |
/* 00b0 */ "\x6f\x00\x6d\x00\x61\x00\x74\x00\x69\x00\x71\x00\x75\x00\x65\x00" //o.m.a.t.i.q.u.e. |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x4c\x00\x00\x00\x09\x00\x00\x00\x18\x00" //......L......... |
/* 00d0 */ "\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x01\x00\x00\x00\x44\x00" //..,...H.......D. |
/* 00e0 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
/* 00f0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x43\x00\x6f\x00" //..p.r.i.n.t.C.o. |
/* 0000 */ "\x6c\x00\x6c\x00\x61\x00\x74\x00\x65\x00\x00\x00\x00\x00\x01\x00" //l.l.a.t.e....... |
/* 0010 */ "\x00\x00\x48\x00\x00\x00\x09\x00\x00\x00\x18\x00\x00\x00\x2c\x00" //..H...........,. |
/* 0020 */ "\x00\x00\x44\x00\x00\x00\x01\x00\x00\x00\x44\x00\x73\x00\x44\x00" //..D.......D.s.D. |
/* 0030 */ "\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00\x00\x00\x70\x00" //r.i.v.e.r.....p. |
/* 0040 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x43\x00\x6f\x00\x6c\x00\x6f\x00" //r.i.n.t.C.o.l.o. |
/* 0050 */ "\x72\x00\x00\x00\x00\x00\x01\x00\x00\x00\x5c\x00\x00\x00\x09\x00" //r............... |
/* 0060 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x58\x00\x00\x00\x01\x00" //......,...X..... |
/* 0070 */ "\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00" //..D.s.D.r.i.v.e. |
/* 0080 */ "\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //r.....p.r.i.n.t. |
/* 0090 */ "\x44\x00\x75\x00\x70\x00\x6c\x00\x65\x00\x78\x00\x53\x00\x75\x00" //D.u.p.l.e.x.S.u. |
/* 00a0 */ "\x70\x00\x70\x00\x6f\x00\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00" //p.p.o.r.t.e.d... |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x60\x00\x00\x00\x09\x00\x00\x00\x18\x00" //......`......... |
/* 00c0 */ "\x00\x00\x2c\x00\x00\x00\x5c\x00\x00\x00\x01\x00\x00\x00\x44\x00" //..,...........D. |
/* 00d0 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
/* 00e0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x53\x00\x74\x00" //..p.r.i.n.t.S.t. |
/* 00f0 */ "\x61\x00\x70\x00\x6c\x00\x69\x00\x6e\x00\x67\x00\x53\x00\x75\x00" //a.p.l.i.n.g.S.u. |
/* 0000 */ "\x70\x00\x70\x00\x6f\x00\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00" //p.p.o.r.t.e.d... |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //......P......... |
/* 0020 */ "\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...L.......D. |
/* 0030 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
/* 0040 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x61\x00" //..p.r.i.n.t.M.a. |
/* 0050 */ "\x78\x00\x58\x00\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x74\x00" //x.X.E.x.t.e.n.t. |
/* 0060 */ "\x00\x00\xbc\x21\x00\x00\x50\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //...!..P......... |
/* 0070 */ "\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...L.......D. |
/* 0080 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
/* 0090 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x61\x00" //..p.r.i.n.t.M.a. |
/* 00a0 */ "\x78\x00\x59\x00\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x74\x00" //x.Y.E.x.t.e.n.t. |
/* 00b0 */ "\x00\x00\xa8\x2b\x00\x00\x50\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //...+..P......... |
/* 00c0 */ "\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...L.......D. |
/* 00d0 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
/* 00e0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x69\x00" //..p.r.i.n.t.M.i. |
/* 00f0 */ "\x6e\x00\x58\x00\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x74\x00" //n.X.E.x.t.e.n.t. |
/* 0000 */ "\x00\x00\x84\x03\x00\x00\x50\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //......P......... |
/* 0010 */ "\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...L.......D. |
/* 0020 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
/* 0030 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x69\x00" //..p.r.i.n.t.M.i. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x6e\x00\x59\x00\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x74\x00" //n.Y.E.x.t.e.n.t. |
/* 0010 */ "\x00\x00\x84\x03\x00\x00\xb4\x0f\x00\x00\x0d\x00\x00\x00\x18\x00" //................ |
/* 0020 */ "\x00\x00\x2c\x00\x00\x00\x54\x00\x00\x00\x5e\x0f\x00\x00\x44\x00" //..,...T...^...D. |
/* 0030 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
/* 0040 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x65\x00" //..p.r.i.n.t.M.e. |
/* 0050 */ "\x64\x00\x69\x00\x61\x00\x53\x00\x75\x00\x70\x00\x70\x00\x6f\x00" //d.i.a.S.u.p.p.o. |
/* 0060 */ "\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00\x4c\x00\x65\x00\x74\x00" //r.t.e.d...L.e.t. |
/* 0070 */ "\x74\x00\x72\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x28\x00" //t.r.e. .U.S. .(. |
/* 0080 */ "\x32\x00\x31\x00\x35\x00\x2c\x00\x39\x00\x20\x00\x78\x00\x20\x00" //2.1.5.,.9. .x. . |
/* 0090 */ "\x32\x00\x37\x00\x39\x00\x2c\x00\x34\x00\x20\x00\x6d\x00\x6d\x00" //2.7.9.,.4. .m.m. |
/* 00a0 */ "\x29\x00\x00\x00\x50\x00\x65\x00\x74\x00\x69\x00\x74\x00\x65\x00" //)...P.e.t.i.t.e. |
/* 00b0 */ "\x20\x00\x6c\x00\x65\x00\x74\x00\x74\x00\x72\x00\x65\x00\x20\x00" // .l.e.t.t.r.e. . |
/* 00c0 */ "\x55\x00\x53\x00\x00\x00\x54\x00\x61\x00\x62\x00\x6c\x00\x6f\x00" //U.S...T.a.b.l.o. |
/* 00d0 */ "\xef\x00\x64\x00\x00\x00\x4c\x00\x65\x00\x64\x00\x67\x00\x65\x00" //..d...L.e.d.g.e. |
/* 00e0 */ "\x72\x00\x20\x00\x55\x00\x53\x00\x20\x00\x28\x00\x34\x00\x33\x00" //r. .U.S. .(.4.3. |
/* 00f0 */ "\x31\x00\x2c\x00\x38\x00\x20\x00\x78\x00\x20\x00\x32\x00\x37\x00" //1.,.8. .x. .2.7. |
/* 0000 */ "\x39\x00\x2c\x00\x34\x00\x20\x00\x6d\x00\x6d\x00\x29\x00\x00\x00" //9.,.4. .m.m.)... |
/* 0010 */ "\x4c\x00\x65\x00\x67\x00\x61\x00\x6c\x00\x20\x00\x55\x00\x53\x00" //L.e.g.a.l. .U.S. |
/* 0020 */ "\x00\x00\x53\x00\x74\x00\x61\x00\x74\x00\x65\x00\x6d\x00\x65\x00" //..S.t.a.t.e.m.e. |
/* 0030 */ "\x6e\x00\x74\x00\x20\x00\x55\x00\x53\x00\x00\x00\x45\x00\x78\x00" //n.t. .U.S...E.x. |
/* 0040 */ "\xe9\x00\x63\x00\x75\x00\x74\x00\x69\x00\x66\x00\x20\x00\x55\x00" //..c.u.t.i.f. .U. |
/* 0050 */ "\x53\x00\x20\x00\x28\x00\x31\x00\x38\x00\x2c\x00\x34\x00\x32\x00" //S. .(.1.8.,.4.2. |
/* 0060 */ "\x20\x00\x78\x00\x20\x00\x32\x00\x36\x00\x2c\x00\x36\x00\x37\x00" // .x. .2.6.,.6.7. |
/* 0070 */ "\x20\x00\x63\x00\x6d\x00\x29\x00\x00\x00\x41\x00\x33\x00\x00\x00" // .c.m.)...A.3... |
/* 0080 */ "\x41\x00\x34\x00\x00\x00\x50\x00\x65\x00\x74\x00\x69\x00\x74\x00" //A.4...P.e.t.i.t. |
/* 0090 */ "\x20\x00\x41\x00\x34\x00\x00\x00\x41\x00\x35\x00\x00\x00\x42\x00" // .A.4...A.5...B. |
/* 00a0 */ "\x34\x00\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x00\x00" //4. .(.J.I.S.)... |
/* 00b0 */ "\x42\x00\x35\x00\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00" //B.5. .(.J.I.S.). |
/* 00c0 */ "\x00\x00\x46\x00\x6f\x00\x6c\x00\x69\x00\x6f\x00\x20\x00\x55\x00" //..F.o.l.i.o. .U. |
/* 00d0 */ "\x53\x00\x20\x00\x28\x00\x32\x00\x31\x00\x35\x00\x2c\x00\x39\x00" //S. .(.2.1.5.,.9. |
/* 00e0 */ "\x20\x00\x78\x00\x20\x00\x33\x00\x33\x00\x30\x00\x2c\x00\x32\x00" // .x. .3.3.0.,.2. |
/* 00f0 */ "\x20\x00\x6d\x00\x6d\x00\x29\x00\x00\x00\x51\x00\x75\x00\x61\x00" // .m.m.)...Q.u.a. |
/* 0000 */ "\x72\x00\x74\x00\x6f\x00\x20\x00\x55\x00\x53\x00\x00\x00\x32\x00" //r.t.o. .U.S...2. |
/* 0010 */ "\x35\x00\x2c\x00\x34\x00\x20\x00\x78\x00\x20\x00\x33\x00\x35\x00" //5.,.4. .x. .3.5. |
/* 0020 */ "\x2c\x00\x35\x00\x36\x00\x20\x00\x63\x00\x6d\x00\x20\x00\x28\x00" //,.5.6. .c.m. .(. |
/* 0030 */ "\x31\x00\x30\x00\x78\x00\x31\x00\x34\x00\x22\x00\x29\x00\x00\x00" //1.0.x.1.4.".)... |
/* 0040 */ "\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x78\x00\x20\x00\x34\x00" //2.7.,.9. .x. .4. |
/* 0050 */ "\x33\x00\x2c\x00\x32\x00\x20\x00\x63\x00\x6d\x00\x20\x00\x28\x00" //3.,.2. .c.m. .(. |
/* 0060 */ "\x31\x00\x31\x00\x78\x00\x31\x00\x37\x00\x22\x00\x29\x00\x00\x00" //1.1.x.1.7.".)... |
/* 0070 */ "\x4e\x00\x6f\x00\x74\x00\x65\x00\x20\x00\x55\x00\x53\x00\x00\x00" //N.o.t.e. .U.S... |
/* 0080 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
/* 0090 */ "\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x6e\x00\xb0\x00\x20\x00" //e. .U.S. .n... . |
/* 00a0 */ "\x39\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //9...E.n.v.e.l.o. |
/* 00b0 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x6e\x00" //p.p.e. .U.S. .n. |
/* 00c0 */ "\xb0\x00\x20\x00\x31\x00\x30\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //.. .1.0...E.n.v. |
/* 00d0 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x55\x00" //e.l.o.p.p.e. .U. |
/* 00e0 */ "\x53\x00\x20\x00\x31\x00\x31\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //S. .1.1...E.n.v. |
/* 00f0 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x55\x00" //e.l.o.p.p.e. .U. |
/* 0000 */ "\x53\x00\x20\x00\x31\x00\x32\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //S. .1.2...E.n.v. |
/* 0010 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x55\x00" //e.l.o.p.p.e. .U. |
/* 0020 */ "\x53\x00\x20\x00\x31\x00\x34\x00\x00\x00\x46\x00\x65\x00\x75\x00" //S. .1.4...F.e.u. |
/* 0030 */ "\x69\x00\x6c\x00\x6c\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00" //i.l.l.e. .U.S. . |
/* 0040 */ "\x74\x00\x61\x00\x69\x00\x6c\x00\x6c\x00\x65\x00\x20\x00\x43\x00" //t.a.i.l.l.e. .C. |
/* 0050 */ "\x00\x00\x46\x00\x65\x00\x75\x00\x69\x00\x6c\x00\x6c\x00\x65\x00" //..F.e.u.i.l.l.e. |
/* 0060 */ "\x20\x00\x55\x00\x53\x00\x20\x00\x74\x00\x61\x00\x69\x00\x6c\x00" // .U.S. .t.a.i.l. |
/* 0070 */ "\x6c\x00\x65\x00\x20\x00\x44\x00\x00\x00\x46\x00\x65\x00\x75\x00" //l.e. .D...F.e.u. |
/* 0080 */ "\x69\x00\x6c\x00\x6c\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00" //i.l.l.e. .U.S. . |
/* 0090 */ "\x74\x00\x61\x00\x69\x00\x6c\x00\x6c\x00\x65\x00\x20\x00\x45\x00" //t.a.i.l.l.e. .E. |
/* 00a0 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
/* 00b0 */ "\x70\x00\x65\x00\x20\x00\x44\x00\x4c\x00\x00\x00\x45\x00\x6e\x00" //p.e. .D.L...E.n. |
/* 00c0 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
/* 00d0 */ "\x43\x00\x35\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00" //C.5...E.n.v.e.l. |
/* 00e0 */ "\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x43\x00\x33\x00\x00\x00" //o.p.p.e. .C.3... |
/* 00f0 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
/* 0000 */ "\x65\x00\x20\x00\x43\x00\x34\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //e. .C.4...E.n.v. |
/* 0010 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x43\x00" //e.l.o.p.p.e. .C. |
/* 0020 */ "\x36\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //6...E.n.v.e.l.o. |
/* 0030 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x43\x00\x36\x00\x35\x00\x00\x00" //p.p.e. .C.6.5... |
/* 0040 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
/* 0050 */ "\x65\x00\x20\x00\x42\x00\x34\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //e. .B.4...E.n.v. |
/* 0060 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x42\x00" //e.l.o.p.p.e. .B. |
/* 0070 */ "\x35\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //5...E.n.v.e.l.o. |
/* 0080 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x42\x00\x36\x00\x00\x00\x45\x00" //p.p.e. .B.6...E. |
/* 0090 */ "\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00" //n.v.e.l.o.p.p.e. |
/* 00a0 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
/* 00b0 */ "\x70\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x4d\x00\x6f\x00" //p.e. .U.S. .M.o. |
/* 00c0 */ "\x6e\x00\x61\x00\x72\x00\x63\x00\x68\x00\x00\x00\x45\x00\x6e\x00" //n.a.r.c.h...E.n. |
/* 00d0 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
/* 00e0 */ "\x55\x00\x53\x00\x20\x00\x36\x00\x22\x00\x20\x00\xbe\x00\x00\x00" //U.S. .6.". ..... |
/* 00f0 */ "\x50\x00\x6c\x00\x69\x00\xe9\x00\x20\x00\x73\x00\x74\x00\x64\x00" //P.l.i... .s.t.d. |
/* 0000 */ "\x20\x00\x55\x00\x53\x00\x00\x00\x53\x00\x74\x00\x64\x00\x20\x00" // .U.S...S.t.d. . |
/* 0010 */ "\x50\x00\x6c\x00\x69\x00\xe9\x00\x20\x00\x61\x00\x6c\x00\x6c\x00" //P.l.i... .a.l.l. |
/* 0020 */ "\x65\x00\x6d\x00\x61\x00\x6e\x00\x64\x00\x00\x00\x4c\x00\x65\x00" //e.m.a.n.d...L.e. |
/* 0030 */ "\x67\x00\x61\x00\x6c\x00\x20\x00\x50\x00\x6c\x00\x69\x00\xe9\x00" //g.a.l. .P.l.i... |
/* 0040 */ "\x20\x00\x61\x00\x6c\x00\x6c\x00\x65\x00\x6d\x00\x61\x00\x6e\x00" // .a.l.l.e.m.a.n. |
/* 0050 */ "\x64\x00\x00\x00\x42\x00\x34\x00\x20\x00\x28\x00\x49\x00\x53\x00" //d...B.4. .(.I.S. |
/* 0060 */ "\x4f\x00\x29\x00\x00\x00\x43\x00\x61\x00\x72\x00\x74\x00\x65\x00" //O.)...C.a.r.t.e. |
/* 0070 */ "\x20\x00\x70\x00\x6f\x00\x73\x00\x74\x00\x61\x00\x6c\x00\x65\x00" // .p.o.s.t.a.l.e. |
/* 0080 */ "\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00" // .j.a.p.o.n.a.i. |
/* 0090 */ "\x73\x00\x65\x00\x00\x00\x32\x00\x32\x00\x2c\x00\x39\x00\x20\x00" //s.e...2.2.,.9. . |
/* 00a0 */ "\x78\x00\x20\x00\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x63\x00" //x. .2.7.,.9. .c. |
/* 00b0 */ "\x6d\x00\x20\x00\x28\x00\x39\x00\x78\x00\x31\x00\x31\x00\x22\x00" //m. .(.9.x.1.1.". |
/* 00c0 */ "\x29\x00\x00\x00\x32\x00\x35\x00\x2c\x00\x34\x00\x20\x00\x78\x00" //)...2.5.,.4. .x. |
/* 00d0 */ "\x20\x00\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x63\x00\x6d\x00" // .2.7.,.9. .c.m. |
/* 00e0 */ "\x20\x00\x28\x00\x31\x00\x30\x00\x78\x00\x31\x00\x31\x00\x22\x00" // .(.1.0.x.1.1.". |
/* 00f0 */ "\x29\x00\x00\x00\x33\x00\x38\x00\x2c\x00\x31\x00\x20\x00\x78\x00" //)...3.8.,.1. .x. |
/* 0000 */ "\x20\x00\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x63\x00\x6d\x00" // .2.7.,.9. .c.m. |
/* 0010 */ "\x20\x00\x28\x00\x31\x00\x35\x00\x78\x00\x31\x00\x31\x00\x22\x00" // .(.1.5.x.1.1.". |
/* 0020 */ "\x29\x00\x00\x00\x49\x00\x6e\x00\x76\x00\x69\x00\x74\x00\x61\x00" //)...I.n.v.i.t.a. |
/* 0030 */ "\x74\x00\x69\x00\x6f\x00\x6e\x00\x20\x00\x61\x00\x76\x00\x65\x00" //t.i.o.n. .a.v.e. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x63\x00\x20\x00\x65\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //c. .e.n.v.e.l.o. |
/* 0010 */ "\x70\x00\x70\x00\x65\x00\x00\x00\x4c\x00\x65\x00\x74\x00\x74\x00" //p.p.e...L.e.t.t. |
/* 0020 */ "\x72\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x65\x00\x78\x00" //r.e. .U.S. .e.x. |
/* 0030 */ "\x74\x00\x72\x00\x61\x00\x00\x00\x4c\x00\xe9\x00\x67\x00\x61\x00" //t.r.a...L...g.a. |
/* 0040 */ "\x6c\x00\x20\x00\x55\x00\x53\x00\x20\x00\x65\x00\x78\x00\x74\x00" //l. .U.S. .e.x.t. |
/* 0050 */ "\x72\x00\x61\x00\x00\x00\x41\x00\x34\x00\x20\x00\x65\x00\x78\x00" //r.a...A.4. .e.x. |
/* 0060 */ "\x74\x00\x72\x00\x61\x00\x00\x00\x4c\x00\x65\x00\x74\x00\x74\x00" //t.r.a...L.e.t.t. |
/* 0070 */ "\x72\x00\x65\x00\x20\x00\x55\x00\x53\x00\x20\x00\x68\x00\x6f\x00" //r.e. .U.S. .h.o. |
/* 0080 */ "\x72\x00\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00\x61\x00\x6c\x00" //r.i.z.o.n.t.a.l. |
/* 0090 */ "\x65\x00\x00\x00\x41\x00\x34\x00\x20\x00\x68\x00\x6f\x00\x72\x00" //e...A.4. .h.o.r. |
/* 00a0 */ "\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00\x61\x00\x6c\x00\x00\x00" //i.z.o.n.t.a.l... |
/* 00b0 */ "\x4c\x00\x65\x00\x74\x00\x74\x00\x72\x00\x65\x00\x20\x00\x55\x00" //L.e.t.t.r.e. .U. |
/* 00c0 */ "\x53\x00\x20\x00\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x20\x00" //S. .e.x.t.r.a. . |
/* 00d0 */ "\x68\x00\x6f\x00\x72\x00\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00" //h.o.r.i.z.o.n.t. |
/* 00e0 */ "\x61\x00\x6c\x00\x65\x00\x00\x00\x53\x00\x75\x00\x70\x00\x65\x00" //a.l.e...S.u.p.e. |
/* 00f0 */ "\x72\x00\x20\x00\x41\x00\x00\x00\x53\x00\x75\x00\x70\x00\x65\x00" //r. .A...S.u.p.e. |
/* 0000 */ "\x72\x00\x20\x00\x42\x00\x00\x00\x4c\x00\x65\x00\x74\x00\x74\x00" //r. .B...L.e.t.t. |
/* 0010 */ "\x72\x00\x65\x00\x20\x00\x50\x00\x6c\x00\x75\x00\x73\x00\x20\x00" //r.e. .P.l.u.s. . |
/* 0020 */ "\x55\x00\x53\x00\x00\x00\x41\x00\x34\x00\x20\x00\x50\x00\x6c\x00" //U.S...A.4. .P.l. |
/* 0030 */ "\x75\x00\x73\x00\x00\x00\x41\x00\x35\x00\x20\x00\x68\x00\x6f\x00" //u.s...A.5. .h.o. |
/* 0040 */ "\x72\x00\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00\x61\x00\x6c\x00" //r.i.z.o.n.t.a.l. |
/* 0050 */ "\x00\x00\x42\x00\x35\x00\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00" //..B.5. .(.J.I.S. |
/* 0060 */ "\x29\x00\x20\x00\x68\x00\x6f\x00\x72\x00\x69\x00\x7a\x00\x6f\x00" //). .h.o.r.i.z.o. |
/* 0070 */ "\x6e\x00\x74\x00\x61\x00\x6c\x00\x00\x00\x41\x00\x33\x00\x20\x00" //n.t.a.l...A.3. . |
/* 0080 */ "\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x00\x00\x41\x00\x35\x00" //e.x.t.r.a...A.5. |
/* 0090 */ "\x20\x00\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x00\x00\x42\x00" // .e.x.t.r.a...B. |
/* 00a0 */ "\x35\x00\x20\x00\x28\x00\x49\x00\x53\x00\x4f\x00\x29\x00\x20\x00" //5. .(.I.S.O.). . |
/* 00b0 */ "\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x00\x00\x41\x00\x32\x00" //e.x.t.r.a...A.2. |
/* 00c0 */ "\x00\x00\x41\x00\x33\x00\x20\x00\x68\x00\x6f\x00\x72\x00\x69\x00" //..A.3. .h.o.r.i. |
/* 00d0 */ "\x7a\x00\x6f\x00\x6e\x00\x74\x00\x61\x00\x6c\x00\x00\x00\x41\x00" //z.o.n.t.a.l...A. |
/* 00e0 */ "\x33\x00\x20\x00\x65\x00\x78\x00\x74\x00\x72\x00\x61\x00\x20\x00" //3. .e.x.t.r.a. . |
/* 00f0 */ "\x68\x00\x6f\x00\x72\x00\x69\x00\x7a\x00\x6f\x00\x6e\x00\x74\x00" //h.o.r.i.z.o.n.t. |
/* 0000 */ "\x61\x00\x6c\x00\x00\x00\x43\x00\x61\x00\x72\x00\x74\x00\x65\x00" //a.l...C.a.r.t.e. |
/* 0010 */ "\x20\x00\x70\x00\x6f\x00\x73\x00\x74\x00\x61\x00\x6c\x00\x65\x00" // .p.o.s.t.a.l.e. |
/* 0020 */ "\x20\x00\x64\x00\x6f\x00\x75\x00\x62\x00\x6c\x00\x65\x00\x20\x00" // .d.o.u.b.l.e. . |
/* 0030 */ "\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00\x73\x00" //j.a.p.o.n.a.i.s. |
/* 0040 */ "\x65\x00\x00\x00\x41\x00\x36\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //e...A.6...E.n.v. |
/* 0050 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x6a\x00" //e.l.o.p.p.e. .j. |
/* 0060 */ "\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00\x73\x00\x65\x00" //a.p.o.n.a.i.s.e. |
/* 0070 */ "\x20\x00\x4b\x00\x61\x00\x6b\x00\x75\x00\x20\x00\x6e\x00\xb0\x00" // .K.a.k.u. .n... |
/* 0080 */ "\x20\x00\x32\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00" // .2...E.n.v.e.l. |
/* 0090 */ "\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x6a\x00\x61\x00\x70\x00" //o.p.p.e. .j.a.p. |
/* 00a0 */ "\x6f\x00\x6e\x00\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x4b\x00" //o.n.a.i.s.e. .K. |
/* 00b0 */ "\x61\x00\x6b\x00\x75\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x33\x00" //a.k.u. .n... .3. |
/* 00c0 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
/* 00d0 */ "\x70\x00\x65\x00\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00" //p.e. .j.a.p.o.n. |
/* 00e0 */ "\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x43\x00\x68\x00\x6f\x00" //a.i.s.e. .C.h.o. |
/* 00f0 */ "\x75\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x33\x00\x00\x00\x45\x00" //u. .n... .3...E. |
/* 0000 */ "\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00" //n.v.e.l.o.p.p.e. |
/* 0010 */ "\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00" // .j.a.p.o.n.a.i. |
/* 0020 */ "\x73\x00\x65\x00\x20\x00\x43\x00\x68\x00\x6f\x00\x75\x00\x20\x00" //s.e. .C.h.o.u. . |
/* 0030 */ "\x6e\x00\xb0\x00\x20\x00\x34\x00\x00\x00\x4c\x00\x65\x00\x74\x00" //n... .4...L.e.t. |
/* 0040 */ "\x74\x00\x72\x00\x65\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00" //t.r.e. .p.a.y.s. |
/* 0050 */ "\x61\x00\x67\x00\x65\x00\x00\x00\x41\x00\x33\x00\x20\x00\x70\x00" //a.g.e...A.3. .p. |
/* 0060 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x41\x00" //a.y.s.a.g.e...A. |
/* 0070 */ "\x34\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00" //4. .p.a.y.s.a.g. |
/* 0080 */ "\x65\x00\x00\x00\x41\x00\x35\x00\x20\x00\x70\x00\x61\x00\x79\x00" //e...A.5. .p.a.y. |
/* 0090 */ "\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x42\x00\x34\x00\x20\x00" //s.a.g.e...B.4. . |
/* 00a0 */ "\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x20\x00\x70\x00\x61\x00" //(.J.I.S.). .p.a. |
/* 00b0 */ "\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x42\x00\x35\x00" //y.s.a.g.e...B.5. |
/* 00c0 */ "\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x20\x00\x70\x00" // .(.J.I.S.). .p. |
/* 00d0 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x43\x00" //a.y.s.a.g.e...C. |
/* 00e0 */ "\x61\x00\x72\x00\x74\x00\x65\x00\x20\x00\x70\x00\x6f\x00\x73\x00" //a.r.t.e. .p.o.s. |
/* 00f0 */ "\x74\x00\x61\x00\x6c\x00\x65\x00\x20\x00\x6a\x00\x61\x00\x70\x00" //t.a.l.e. .j.a.p. |
/* 0000 */ "\x6f\x00\x6e\x00\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x70\x00" //o.n.a.i.s.e. .p. |
/* 0010 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x43\x00" //a.y.s.a.g.e...C. |
/* 0020 */ "\x20\x00\x70\x00\x6f\x00\x73\x00\x74\x00\x61\x00\x6c\x00\x65\x00" // .p.o.s.t.a.l.e. |
/* 0030 */ "\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x61\x00\x69\x00" // .j.a.p.o.n.a.i. |
/* 0040 */ "\x73\x00\x65\x00\x20\x00\x64\x00\x62\x00\x6c\x00\x20\x00\x70\x00" //s.e. .d.b.l. .p. |
/* 0050 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x41\x00" //a.y.s.a.g.e...A. |
/* 0060 */ "\x36\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00" //6. .p.a.y.s.a.g. |
/* 0070 */ "\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x2e\x00\x20\x00\x4a\x00" //e...E.n.v... .J. |
/* 0080 */ "\x61\x00\x70\x00\x6f\x00\x6e\x00\x20\x00\x4b\x00\x61\x00\x6b\x00" //a.p.o.n. .K.a.k. |
/* 0090 */ "\x75\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x32\x00\x20\x00\x70\x00" //u. .n... .2. .p. |
/* 00a0 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00" //a.y.s.a.g.e...E. |
/* 00b0 */ "\x6e\x00\x76\x00\x2e\x00\x20\x00\x4a\x00\x61\x00\x70\x00\x6f\x00" //n.v... .J.a.p.o. |
/* 00c0 */ "\x6e\x00\x20\x00\x4b\x00\x61\x00\x6b\x00\x75\x00\x20\x00\x6e\x00" //n. .K.a.k.u. .n. |
/* 00d0 */ "\xb0\x00\x20\x00\x33\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00" //.. .3. .p.a.y.s. |
/* 00e0 */ "\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x2e\x00" //a.g.e...E.n.v... |
/* 00f0 */ "\x20\x00\x4a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00\x20\x00\x43\x00" // .J.a.p.o.n. .C. |
/* 0000 */ "\x68\x00\x6f\x00\x75\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x33\x00" //h.o.u. .n... .3. |
/* 0010 */ "\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00" // .p.a.y.s.a.g.e. |
/* 0020 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x2e\x00\x20\x00\x4a\x00\x61\x00" //..E.n.v... .J.a. |
/* 0030 */ "\x70\x00\x6f\x00\x6e\x00\x20\x00\x43\x00\x68\x00\x6f\x00\x75\x00" //p.o.n. .C.h.o.u. |
/* 0040 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x34\x00\x20\x00\x70\x00\x61\x00" // .n... .4. .p.a. |
/* 0050 */ "\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x42\x00\x36\x00" //y.s.a.g.e...B.6. |
/* 0060 */ "\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x00\x00\x42\x00" // .(.J.I.S.)...B. |
/* 0070 */ "\x36\x00\x20\x00\x28\x00\x4a\x00\x49\x00\x53\x00\x29\x00\x20\x00" //6. .(.J.I.S.). . |
/* 0080 */ "\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00" //p.a.y.s.a.g.e... |
/* 0090 */ "\x33\x00\x30\x00\x2c\x00\x34\x00\x38\x00\x20\x00\x78\x00\x20\x00" //3.0.,.4.8. .x. . |
/* 00a0 */ "\x32\x00\x37\x00\x2c\x00\x39\x00\x20\x00\x63\x00\x6d\x00\x20\x00" //2.7.,.9. .c.m. . |
/* 00b0 */ "\x28\x00\x31\x00\x32\x00\x78\x00\x31\x00\x31\x00\x22\x00\x29\x00" //(.1.2.x.1.1.".). |
/* 00c0 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
/* 00d0 */ "\x70\x00\x65\x00\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00" //p.e. .j.a.p.o.n. |
/* 00e0 */ "\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x59\x00\x6f\x00\x75\x00" //a.i.s.e. .Y.o.u. |
/* 00f0 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x34\x00\x00\x00\x45\x00\x6e\x00" // .n... .4...E.n. |
/* 0000 */ "\x76\x00\x2e\x00\x20\x00\x6a\x00\x61\x00\x70\x00\x6f\x00\x6e\x00" //v... .j.a.p.o.n. |
/* 0010 */ "\x61\x00\x69\x00\x73\x00\x65\x00\x20\x00\x59\x00\x6f\x00\x75\x00" //a.i.s.e. .Y.o.u. |
/* 0020 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x34\x00\x20\x00\x70\x00\x61\x00" // .n... .4. .p.a. |
/* 0030 */ "\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00" //y.s.a.g.e...E.n. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
/* 0010 */ "\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x31\x00" //P.R.C. .n... .1. |
/* 0020 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
/* 0030 */ "\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00" //p.e. .P.R.C. .n. |
/* 0040 */ "\xb0\x00\x20\x00\x33\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00" //.. .3...E.n.v.e. |
/* 0050 */ "\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00" //l.o.p.p.e. .P.R. |
/* 0060 */ "\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x34\x00\x00\x00\x45\x00" //C. .n... .4...E. |
/* 0070 */ "\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00" //n.v.e.l.o.p.p.e. |
/* 0080 */ "\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00" // .P.R.C. .n... . |
/* 0090 */ "\x35\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //5...E.n.v.e.l.o. |
/* 00a0 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00" //p.p.e. .P.R.C. . |
/* 00b0 */ "\x6e\x00\xb0\x00\x20\x00\x36\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //n... .6...E.n.v. |
/* 00c0 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00" //e.l.o.p.p.e. .P. |
/* 00d0 */ "\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x37\x00\x00\x00" //R.C. .n... .7... |
/* 00e0 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
/* 00f0 */ "\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00" //e. .P.R.C. .n... |
/* 0000 */ "\x20\x00\x38\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00" // .8...E.n.v.e.l. |
/* 0010 */ "\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00" //o.p.p.e. .P.R.C. |
/* 0020 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x39\x00\x00\x00\x45\x00\x6e\x00" // .n... .9...E.n. |
/* 0030 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
/* 0040 */ "\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x31\x00" //P.R.C. .n... .1. |
/* 0050 */ "\x30\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00" //0...E.n.v.e.l.o. |
/* 0060 */ "\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00" //p.p.e. .P.R.C. . |
/* 0070 */ "\x6e\x00\xb0\x00\x20\x00\x31\x00\x20\x00\x70\x00\x61\x00\x79\x00" //n... .1. .p.a.y. |
/* 0080 */ "\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00" //s.a.g.e...E.n.v. |
/* 0090 */ "\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00" //e.l.o.p.p.e. .P. |
/* 00a0 */ "\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x33\x00\x20\x00" //R.C. .n... .3. . |
/* 00b0 */ "\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00" //p.a.y.s.a.g.e... |
/* 00c0 */ "\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00" //E.n.v.e.l.o.p.p. |
/* 00d0 */ "\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00" //e. .P.R.C. .n... |
/* 00e0 */ "\x20\x00\x34\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00" // .4. .p.a.y.s.a. |
/* 00f0 */ "\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00" //g.e...E.n.v.e.l. |
/* 0000 */ "\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00" //o.p.p.e. .P.R.C. |
/* 0010 */ "\x20\x00\x6e\x00\xb0\x00\x20\x00\x35\x00\x20\x00\x70\x00\x61\x00" // .n... .5. .p.a. |
/* 0020 */ "\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00" //y.s.a.g.e...E.n. |
/* 0030 */ "\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00" //v.e.l.o.p.p.e. . |
/* 0040 */ "\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x36\x00" //P.R.C. .n... .6. |
/* 0050 */ "\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00" // .p.a.y.s.a.g.e. |
/* 0060 */ "\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00" //..E.n.v.e.l.o.p. |
/* 0070 */ "\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00" //p.e. .P.R.C. .n. |
/* 0080 */ "\xb0\x00\x20\x00\x37\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00" //.. .7. .p.a.y.s. |
/* 0090 */ "\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00\x6e\x00\x76\x00\x65\x00" //a.g.e...E.n.v.e. |
/* 00a0 */ "\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00\x20\x00\x50\x00\x52\x00" //l.o.p.p.e. .P.R. |
/* 00b0 */ "\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00\x38\x00\x20\x00\x70\x00" //C. .n... .8. .p. |
/* 00c0 */ "\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00\x65\x00\x00\x00\x45\x00" //a.y.s.a.g.e...E. |
/* 00d0 */ "\x6e\x00\x76\x00\x65\x00\x6c\x00\x6f\x00\x70\x00\x70\x00\x65\x00" //n.v.e.l.o.p.p.e. |
/* 00e0 */ "\x20\x00\x50\x00\x52\x00\x43\x00\x20\x00\x6e\x00\xb0\x00\x20\x00" // .P.R.C. .n... . |
/* 00f0 */ "\x39\x00\x20\x00\x70\x00\x61\x00\x79\x00\x73\x00\x61\x00\x67\x00" //9. .p.a.y.s.a.g. |
/* 0000 */ "\x65\x00\x00\x00\x54\x00\x61\x00\x69\x00\x6c\x00\x6c\x00\x65\x00" //e...T.a.i.l.l.e. |
/* 0010 */ "\x20\x00\x64\x00\xe9\x00\x66\x00\x69\x00\x6e\x00\x69\x00\x65\x00" // .d...f.i.n.i.e. |
/* 0020 */ "\x20\x00\x70\x00\x61\x00\x72\x00\x20\x00\x6c\x00\x19\x20\x75\x00" // .p.a.r. .l.. u. |
/* 0030 */ "\x74\x00\x69\x00\x6c\x00\x69\x00\x73\x00\x61\x00\x74\x00\x65\x00" //t.i.l.i.s.a.t.e. |
/* 0040 */ "\x75\x00\x72\x00\x00\x00\x00\x00\x00\x00\x54\x00\x00\x00\x0d\x00" //u.r.......T..... |
/* 0050 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x08\x00" //......,...L..... |
/* 0060 */ "\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00" //..D.s.D.r.i.v.e. |
/* 0070 */ "\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //r.....p.r.i.n.t. |
/* 0080 */ "\x4d\x00\x65\x00\x64\x00\x69\x00\x61\x00\x52\x00\x65\x00\x61\x00" //M.e.d.i.a.R.e.a. |
/* 0090 */ "\x64\x00\x79\x00\x00\x00\x41\x00\x34\x00\x00\x00\x00\x00\x4c\x00" //d.y...A.4.....L. |
/* 00a0 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00" //..........,...H. |
/* 00b0 */ "\x00\x00\x04\x00\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00" //......D.s.D.r.i. |
/* 00c0 */ "\x76\x00\x65\x00\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00" //v.e.r.....p.r.i. |
/* 00d0 */ "\x6e\x00\x74\x00\x4e\x00\x75\x00\x6d\x00\x62\x00\x65\x00\x72\x00" //n.t.N.u.m.b.e.r. |
/* 00e0 */ "\x55\x00\x70\x00\x00\x00\x00\x00\x00\x00\x8c\x00\x00\x00\x0d\x00" //U.p............. |
/* 00f0 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x64\x00\x00\x00\x28\x00" //......,...d...(. |
/* 0000 */ "\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00" //..D.s.D.r.i.v.e. |
/* 0010 */ "\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //r.....p.r.i.n.t. |
/* 0020 */ "\x4f\x00\x72\x00\x69\x00\x65\x00\x6e\x00\x74\x00\x61\x00\x74\x00" //O.r.i.e.n.t.a.t. |
/* 0030 */ "\x69\x00\x6f\x00\x6e\x00\x73\x00\x53\x00\x75\x00\x70\x00\x70\x00" //i.o.n.s.S.u.p.p. |
/* 0040 */ "\x6f\x00\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00\x00\x00\x50\x00" //o.r.t.e.d.....P. |
/* 0050 */ "\x4f\x00\x52\x00\x54\x00\x52\x00\x41\x00\x49\x00\x54\x00\x00\x00" //O.R.T.R.A.I.T... |
/* 0060 */ "\x4c\x00\x41\x00\x4e\x00\x44\x00\x53\x00\x43\x00\x41\x00\x50\x00" //L.A.N.D.S.C.A.P. |
/* 0070 */ "\x45\x00\x00\x00\x00\x00\x68\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //E.....h......... |
/* 0080 */ "\x00\x00\x2c\x00\x00\x00\x64\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...d.......D. |
/* 0090 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
/* 00a0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x4d\x00\x61\x00" //..p.r.i.n.t.M.a. |
/* 00b0 */ "\x78\x00\x52\x00\x65\x00\x73\x00\x6f\x00\x6c\x00\x75\x00\x74\x00" //x.R.e.s.o.l.u.t. |
/* 00c0 */ "\x69\x00\x6f\x00\x6e\x00\x53\x00\x75\x00\x70\x00\x70\x00\x6f\x00" //i.o.n.S.u.p.p.o. |
/* 00d0 */ "\x72\x00\x74\x00\x65\x00\x64\x00\x00\x00\x58\x02\x00\x00\x4c\x00" //r.t.e.d...X...L. |
/* 00e0 */ "\x00\x00\x0d\x00\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00" //..........,...H. |
/* 00f0 */ "\x00\x00\x04\x00\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00" //......D.s.D.r.i. |
/* 0000 */ "\x76\x00\x65\x00\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00" //v.e.r.....p.r.i. |
/* 0010 */ "\x6e\x00\x74\x00\x4c\x00\x61\x00\x6e\x00\x67\x00\x75\x00\x61\x00" //n.t.L.a.n.g.u.a. |
/* 0020 */ "\x67\x00\x65\x00\x00\x00\x00\x00\x00\x00\x4c\x00\x00\x00\x07\x00" //g.e.......L..... |
/* 0030 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x02\x00" //......,...H..... |
/* 0040 */ "\x00\x00\x44\x00\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00" //..D.s.D.r.i.v.e. |
/* 0050 */ "\x72\x00\x00\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //r.....p.r.i.n.t. |
/* 0060 */ "\x52\x00\x61\x00\x74\x00\x65\x00\x55\x00\x6e\x00\x69\x00\x74\x00" //R.a.t.e.U.n.i.t. |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x4c\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //......L......... |
/* 0080 */ "\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...H.......D. |
/* 0090 */ "\x73\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x00\x00" //s.D.r.i.v.e.r... |
/* 00a0 */ "\x00\x00\x64\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x56\x00" //..d.r.i.v.e.r.V. |
/* 00b0 */ "\x65\x00\x72\x00\x73\x00\x69\x00\x6f\x00\x6e\x00\x00\x00\x01\x04" //e.r.s.i.o.n..... |
/* 00c0 */ "\x00\x00\x88\x00\x00\x00\x07\x00\x00\x00\x18\x00\x00\x00\x2c\x00" //..............,. |
/* 00d0 */ "\x00\x00\x44\x00\x00\x00\x42\x00\x00\x00\x44\x00\x73\x00\x53\x00" //..D...B...D.s.S. |
/* 00e0 */ "\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00\x00\x00\x64\x00" //p.o.o.l.e.r...d. |
/* 00f0 */ "\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x4e\x00\x61\x00\x6d\x00" //r.i.v.e.r.N.a.m. |
/* 0000 */ "\x65\x00\x00\x00\x00\x00\x4d\x00\x69\x00\x63\x00\x72\x00\x6f\x00" //e.....M.i.c.r.o. |
/* 0010 */ "\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00\x50\x00\x53\x00" //s.o.f.t. .X.P.S. |
/* 0020 */ "\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00\x65\x00\x6e\x00" // .D.o.c.u.m.e.n. |
/* 0030 */ "\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00\x65\x00\x72\x00" //t. .W.r.i.t.e.r. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x20\x00\x76\x00\x34\x00\x00\x00\x00\x00\x50\x00\x00\x00\x0d\x00" // .v.4.....P..... |
/* 0010 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x40\x00\x00\x00\x0e\x00" //......,...@..... |
/* 0020 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
/* 0030 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x6f\x00\x72\x00\x74\x00\x4e\x00" //e.r...p.o.r.t.N. |
/* 0040 */ "\x61\x00\x6d\x00\x65\x00\x00\x00\x00\x00\x54\x00\x53\x00\x30\x00" //a.m.e.....T.S.0. |
/* 0050 */ "\x30\x00\x31\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x0a\x00" //0.1.......P..... |
/* 0060 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x04\x00" //......,...L..... |
/* 0070 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
/* 0080 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //e.r...p.r.i.n.t. |
/* 0090 */ "\x53\x00\x74\x00\x61\x00\x72\x00\x74\x00\x54\x00\x69\x00\x6d\x00" //S.t.a.r.t.T.i.m. |
/* 00a0 */ "\x65\x00\x00\x00\x00\x00\x3c\x00\x00\x00\x4c\x00\x00\x00\x0a\x00" //e.....<...L..... |
/* 00b0 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x04\x00" //......,...H..... |
/* 00c0 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
/* 00d0 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //e.r...p.r.i.n.t. |
/* 00e0 */ "\x45\x00\x6e\x00\x64\x00\x54\x00\x69\x00\x6d\x00\x65\x00\x00\x00" //E.n.d.T.i.m.e... |
/* 00f0 */ "\x00\x00\x3c\x00\x00\x00\xa8\x00\x00\x00\x07\x00\x00\x00\x18\x00" //..<............. |
/* 0000 */ "\x00\x00\x2c\x00\x00\x00\x44\x00\x00\x00\x62\x00\x00\x00\x44\x00" //..,...D...b...D. |
/* 0010 */ "\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00" //s.S.p.o.o.l.e.r. |
/* 0020 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..p.r.i.n.t.e.r. |
/* 0030 */ "\x4e\x00\x61\x00\x6d\x00\x65\x00\x00\x00\x4d\x00\x69\x00\x63\x00" //N.a.m.e...M.i.c. |
/* 0040 */ "\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00" //r.o.s.o.f.t. .X. |
/* 0050 */ "\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00" //P.S. .D.o.c.u.m. |
/* 0060 */ "\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00" //e.n.t. .W.r.i.t. |
/* 0070 */ "\x65\x00\x72\x00\x20\x00\x28\x00\x72\x00\x65\x00\x64\x00\x69\x00" //e.r. .(.r.e.d.i. |
/* 0080 */ "\x72\x00\x65\x00\x63\x00\x74\x00\x69\x00\x6f\x00\x6e\x00\x20\x00" //r.e.c.t.i.o.n. . |
/* 0090 */ "\x64\x00\x65\x00\x20\x00\x33\x00\x29\x00\x00\x00\x00\x00\x5c\x00" //d.e. .3.)....... |
/* 00a0 */ "\x00\x00\x09\x00\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x58\x00" //..........,...X. |
/* 00b0 */ "\x00\x00\x01\x00\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00" //......D.s.S.p.o. |
/* 00c0 */ "\x6f\x00\x6c\x00\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00" //o.l.e.r...p.r.i. |
/* 00d0 */ "\x6e\x00\x74\x00\x4b\x00\x65\x00\x65\x00\x70\x00\x50\x00\x72\x00" //n.t.K.e.e.p.P.r. |
/* 00e0 */ "\x69\x00\x6e\x00\x74\x00\x65\x00\x64\x00\x4a\x00\x6f\x00\x62\x00" //i.n.t.e.d.J.o.b. |
/* 00f0 */ "\x73\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x07\x00" //s.........P..... |
/* 0000 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x4c\x00\x00\x00\x02\x00" //......,...L..... |
/* 0010 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
/* 0020 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //e.r...p.r.i.n.t. |
/* 0030 */ "\x53\x00\x68\x00\x61\x00\x72\x00\x65\x00\x4e\x00\x61\x00\x6d\x00" //S.h.a.r.e.N.a.m. |
/* 0040 */ "\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x6c\x00\x00\x00\x07\x00" //e.........l..... |
/* 0050 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x24\x00" //......,...H...$. |
/* 0060 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
/* 0070 */ "\x65\x00\x72\x00\x00\x00\x70\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //e.r...p.r.i.n.t. |
/* 0080 */ "\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00\x69\x00\x6e\x00\x67\x00" //S.p.o.o.l.i.n.g. |
/* 0090 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x41\x00\x66\x00" //..P.r.i.n.t.A.f. |
/* 00a0 */ "\x74\x00\x65\x00\x72\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //t.e.r.S.p.o.o.l. |
/* 00b0 */ "\x65\x00\x64\x00\x00\x00\x44\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //e.d...D......... |
/* 00c0 */ "\x00\x00\x2c\x00\x00\x00\x40\x00\x00\x00\x04\x00\x00\x00\x44\x00" //..,...@.......D. |
/* 00d0 */ "\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00" //s.S.p.o.o.l.e.r. |
/* 00e0 */ "\x00\x00\x70\x00\x72\x00\x69\x00\x6f\x00\x72\x00\x69\x00\x74\x00" //..p.r.i.o.r.i.t. |
/* 00f0 */ "\x79\x00\x00\x00\x00\x00\x01\x00\x00\x00\x4c\x00\x00\x00\x0a\x00" //y.........L..... |
/* 0000 */ "\x00\x00\x18\x00\x00\x00\x2c\x00\x00\x00\x48\x00\x00\x00\x04\x00" //......,...H..... |
/* 0010 */ "\x00\x00\x44\x00\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00" //..D.s.S.p.o.o.l. |
/* 0020 */ "\x65\x00\x72\x00\x00\x00\x76\x00\x65\x00\x72\x00\x73\x00\x69\x00" //e.r...v.e.r.s.i. |
/* 0030 */ "\x6f\x00\x6e\x00\x4e\x00\x75\x00\x6d\x00\x62\x00\x65\x00\x72\x00" //o.n.N.u.m.b.e.r. |
/* 0040 */ "\x00\x00\x05\x00\x00\x00\x6c\x00\x00\x00\x07\x00\x00\x00\x18\x00" //......l......... |
/* 0050 */ "\x00\x00\x2c\x00\x00\x00\x34\x00\x00\x00\x38\x00\x00\x00\x44\x00" //..,...4...8...D. |
/* 0060 */ "\x73\x00\x53\x00\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00" //s.S.p.o.o.l.e.r. |
/* 0070 */ "\x00\x00\x75\x00\x72\x00\x6c\x00\x00\x00\x68\x00\x74\x00\x74\x00" //..u.r.l...h.t.t. |
/* 0080 */ "\x70\x00\x3a\x00\x2f\x00\x2f\x00\x74\x00\x65\x00\x73\x00\x74\x00" //p.:././.t.e.s.t. |
/* 0090 */ "\x6b\x00\x72\x00\x62\x00\x2e\x00\x72\x00\x65\x00\x64\x00\x2e\x00" //k.r.b...r.e.d... |
/* 00a0 */ "\x69\x00\x66\x00\x72\x00\x2e\x00\x6c\x00\x61\x00\x6e\x00\x2f\x00" //i.f.r...l.a.n./. |
/* 00b0 */ "\x00\x00\x3c\x00\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x2c\x00" //..<...........,. |
/* 00c0 */ "\x00\x00\x38\x00\x00\x00\x04\x00\x00\x00\x44\x00\x73\x00\x53\x00" //..8.......D.s.S. |
/* 00d0 */ "\x70\x00\x6f\x00\x6f\x00\x6c\x00\x65\x00\x72\x00\x00\x00\x66\x00" //p.o.o.l.e.r...f. |
/* 00e0 */ "\x6c\x00\x61\x00\x67\x00\x73\x00\x00\x00\x00\x00\x00\x00\x90\x00" //l.a.g.s......... |
/* 00f0 */ "\x00\x00\x07\x00\x00\x00\x18\x00\x00\x00\x28\x00\x00\x00\x40\x00" //..........(...@. |
/* 0000 */ "\x00\x00\x4e\x00\x00\x00\x50\x00\x6e\x00\x50\x00\x44\x00\x61\x00" //..N...P.n.P.D.a. |
/* 0010 */ "\x74\x00\x61\x00\x00\x00\x48\x00\x61\x00\x72\x00\x64\x00\x77\x00" //t.a...H.a.r.d.w. |
/* 0020 */ "\x61\x00\x72\x00\x65\x00\x49\x00\x44\x00\x00\x00\x00\x00\x7b\x00" //a.r.e.I.D.....{. |
/* 0030 */ "\x30\x00\x66\x00\x34\x00\x31\x00\x33\x00\x30\x00\x64\x00\x64\x00" //0.f.4.1.3.0.d.d. |
/* 0040 */ "\x2d\x00\x31\x00\x39\x00\x63\x00\x37\x00\x2d\x00\x37\x00\x61\x00" //-.1.9.c.7.-.7.a. |
/* 0050 */ "\x62\x00\x36\x00\x2d\x00\x39\x00\x39\x00\x61\x00\x31\x00\x2d\x00" //b.6.-.9.9.a.1.-. |
/* 0060 */ "\x39\x00\x38\x00\x30\x00\x66\x00\x30\x00\x33\x00\x62\x00\x32\x00" //9.8.0.f.0.3.b.2. |
/* 0070 */ "\x65\x00\x65\x00\x34\x00\x65\x00\x7d\x00\x00\x00\x00\x00\x58\x00" //e.e.4.e.}.....X. |
/* 0080 */ "\x00\x00\x07\x00\x00\x00\x18\x00\x00\x00\x28\x00\x00\x00\x44\x00" //..........(...D. |
/* 0090 */ "\x00\x00\x14\x00\x00\x00\x50\x00\x6e\x00\x50\x00\x44\x00\x61\x00" //......P.n.P.D.a. |
/* 00a0 */ "\x74\x00\x61\x00\x00\x00\x4d\x00\x61\x00\x6e\x00\x75\x00\x66\x00" //t.a...M.a.n.u.f. |
/* 00b0 */ "\x61\x00\x63\x00\x74\x00\x75\x00\x72\x00\x65\x00\x72\x00\x00\x00" //a.c.t.u.r.e.r... |
/* 00c0 */ "\x00\x00\x4d\x00\x69\x00\x63\x00\x72\x00\x6f\x00\x73\x00\x6f\x00" //..M.i.c.r.o.s.o. |
/* 00d0 */ "\x66\x00\x74\x00\x00\x00\x70\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //f.t...p......... |
/* 00e0 */ "\x00\x00\x60\x00\x00\x00\x6c\x00\x00\x00\x04\x00\x00\x00\x50\x00" //..`...l.......P. |
/* 00f0 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00" //r.i.n.t.e.r.D.r. |
/* 0000 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //i.v.e.r.D.a.t.a. |
/* 0010 */ "\x5c\x00\x53\x00\x61\x00\x76\x00\x65\x00\x41\x00\x73\x00\x45\x00" //..S.a.v.e.A.s.E. |
/* 0020 */ "\x78\x00\x74\x00\x65\x00\x6e\x00\x73\x00\x69\x00\x6f\x00\x6e\x00" //x.t.e.n.s.i.o.n. |
/* 0030 */ "\x73\x00\x00\x00\x00\x00\x6f\x00\x78\x00\x70\x00\x73\x00\x00\x00" //s.....o.x.p.s... |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x6c\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //......l......... |
/* 0050 */ "\x00\x00\x60\x00\x00\x00\x68\x00\x00\x00\x04\x00\x00\x00\x50\x00" //..`...h.......P. |
/* 0060 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00" //r.i.n.t.e.r.D.r. |
/* 0070 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //i.v.e.r.D.a.t.a. |
/* 0080 */ "\x5c\x00\x53\x00\x61\x00\x76\x00\x65\x00\x41\x00\x73\x00\x45\x00" //..S.a.v.e.A.s.E. |
/* 0090 */ "\x78\x00\x74\x00\x65\x00\x6e\x00\x73\x00\x69\x00\x6f\x00\x6e\x00" //x.t.e.n.s.i.o.n. |
/* 00a0 */ "\x73\x00\x00\x00\x00\x00\x78\x00\x70\x00\x73\x00\x00\x00\x00\x00" //s.....x.p.s..... |
/* 00b0 */ "\x00\x00\x58\x00\x00\x00\x09\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..X...........<. |
/* 00c0 */ "\x00\x00\x50\x00\x00\x00\x08\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..P.......P.r.i. |
/* 00d0 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
/* 00e0 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x58\x00" //e.r.D.a.t.a...X. |
/* 00f0 */ "\x70\x00\x73\x00\x46\x00\x6f\x00\x72\x00\x6d\x00\x61\x00\x74\x00" //p.s.F.o.r.m.a.t. |
/* 0000 */ "\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x78\x00\x00\x00\x07\x00" //..........x..... |
/* 0010 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x6c\x00\x00\x00\x0a\x00" //......<...l..... |
/* 0020 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
/* 0030 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x74\x00\x61\x00\x00\x00\x44\x00\x65\x00\x66\x00\x61\x00\x75\x00" //t.a...D.e.f.a.u. |
/* 0010 */ "\x6c\x00\x74\x00\x53\x00\x61\x00\x76\x00\x65\x00\x41\x00\x73\x00" //l.t.S.a.v.e.A.s. |
/* 0020 */ "\x45\x00\x78\x00\x74\x00\x65\x00\x6e\x00\x73\x00\x69\x00\x6f\x00" //E.x.t.e.n.s.i.o. |
/* 0030 */ "\x6e\x00\x00\x00\x00\x00\x6f\x00\x78\x00\x70\x00\x73\x00\x00\x00" //n.....o.x.p.s... |
/* 0040 */ "\x00\x00\x68\x00\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..h...........<. |
/* 0050 */ "\x00\x00\x64\x00\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..d.......P.r.i. |
/* 0060 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
/* 0070 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x56\x00" //e.r.D.a.t.a...V. |
/* 0080 */ "\x34\x00\x5f\x00\x41\x00\x72\x00\x63\x00\x68\x00\x69\x00\x76\x00" //4._.A.r.c.h.i.v. |
/* 0090 */ "\x65\x00\x5f\x00\x45\x00\x6e\x00\x61\x00\x62\x00\x6c\x00\x65\x00" //e._.E.n.a.b.l.e. |
/* 00a0 */ "\x64\x00\x00\x00\x00\x00\x01\x00\x00\x00\xbc\x00\x00\x00\x0d\x00" //d............... |
/* 00b0 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x6c\x00\x00\x00\x50\x00" //......<...l...P. |
/* 00c0 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
/* 00d0 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
/* 00e0 */ "\x74\x00\x61\x00\x00\x00\x56\x00\x34\x00\x5f\x00\x44\x00\x72\x00" //t.a...V.4._.D.r. |
/* 00f0 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x5f\x00\x48\x00\x61\x00\x72\x00" //i.v.e.r._.H.a.r. |
/* 0000 */ "\x64\x00\x77\x00\x61\x00\x72\x00\x65\x00\x5f\x00\x49\x00\x44\x00" //d.w.a.r.e._.I.D. |
/* 0010 */ "\x73\x00\x00\x00\x00\x00\x7b\x00\x30\x00\x46\x00\x34\x00\x31\x00" //s.....{.0.F.4.1. |
/* 0020 */ "\x33\x00\x30\x00\x44\x00\x44\x00\x2d\x00\x31\x00\x39\x00\x43\x00" //3.0.D.D.-.1.9.C. |
/* 0030 */ "\x37\x00\x2d\x00\x37\x00\x61\x00\x62\x00\x36\x00\x2d\x00\x39\x00" //7.-.7.a.b.6.-.9. |
/* 0040 */ "\x39\x00\x41\x00\x31\x00\x2d\x00\x39\x00\x38\x00\x30\x00\x46\x00" //9.A.1.-.9.8.0.F. |
/* 0050 */ "\x30\x00\x33\x00\x42\x00\x32\x00\x45\x00\x45\x00\x34\x00\x45\x00" //0.3.B.2.E.E.4.E. |
/* 0060 */ "\x7d\x00\x00\x00\x00\x00\x8c\x00\x00\x00\x07\x00\x00\x00\x18\x00" //}............... |
/* 0070 */ "\x00\x00\x3c\x00\x00\x00\x70\x00\x00\x00\x1a\x00\x00\x00\x50\x00" //..<...p.......P. |
/* 0080 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00" //r.i.n.t.e.r.D.r. |
/* 0090 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //i.v.e.r.D.a.t.a. |
/* 00a0 */ "\x00\x00\x56\x00\x34\x00\x5f\x00\x4d\x00\x65\x00\x72\x00\x67\x00" //..V.4._.M.e.r.g. |
/* 00b0 */ "\x65\x00\x64\x00\x5f\x00\x43\x00\x6f\x00\x6e\x00\x66\x00\x69\x00" //e.d._.C.o.n.f.i. |
/* 00c0 */ "\x67\x00\x46\x00\x69\x00\x6c\x00\x65\x00\x5f\x00\x4e\x00\x61\x00" //g.F.i.l.e._.N.a. |
/* 00d0 */ "\x6d\x00\x65\x00\x00\x00\x39\x00\x61\x00\x30\x00\x37\x00\x32\x00" //m.e...9.a.0.7.2. |
/* 00e0 */ "\x61\x00\x66\x00\x65\x00\x2e\x00\x67\x00\x70\x00\x64\x00\x00\x00" //a.f.e...g.p.d... |
/* 00f0 */ "\x00\x00\x74\x00\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..t...........<. |
/* 0000 */ "\x00\x00\x70\x00\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..p.......P.r.i. |
/* 0010 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
/* 0020 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x56\x00" //e.r.D.a.t.a...V. |
/* 0030 */ "\x34\x00\x5f\x00\x4d\x00\x65\x00\x72\x00\x67\x00\x65\x00\x64\x00" //4._.M.e.r.g.e.d. |
/* 0040 */ "\x5f\x00\x43\x00\x6f\x00\x6e\x00\x66\x00\x69\x00\x67\x00\x46\x00" //_.C.o.n.f.i.g.F. |
/* 0050 */ "\x69\x00\x6c\x00\x65\x00\x5f\x00\x43\x00\x52\x00\x43\x00\x00\x00" //i.l.e._.C.R.C... |
/* 0060 */ "\x00\x00\xfe\x2a\x07\x9a\x68\x00\x00\x00\x0a\x00\x00\x00\x18\x00" //...*..h......... |
/* 0070 */ "\x00\x00\x3c\x00\x00\x00\x64\x00\x00\x00\x04\x00\x00\x00\x50\x00" //..<...d.......P. |
/* 0080 */ "\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00" //r.i.n.t.e.r.D.r. |
/* 0090 */ "\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //i.v.e.r.D.a.t.a. |
/* 00a0 */ "\x00\x00\x56\x00\x34\x00\x5f\x00\x43\x00\x6f\x00\x6e\x00\x66\x00" //..V.4._.C.o.n.f. |
/* 00b0 */ "\x69\x00\x67\x00\x5f\x00\x43\x00\x68\x00\x61\x00\x6e\x00\x67\x00" //i.g._.C.h.a.n.g. |
/* 00c0 */ "\x65\x00\x49\x00\x44\x00\x00\x00\x00\x00\xb6\x93\x1d\xc6\x80\x00" //e.I.D........... |
/* 00d0 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x7c\x00" //..........<...|. |
/* 00e0 */ "\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //......P.r.i.n.t. |
/* 00f0 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
/* 0000 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x56\x00\x34\x00\x5f\x00" //D.a.t.a...V.4._. |
/* 0010 */ "\x43\x00\x6f\x00\x6e\x00\x66\x00\x69\x00\x67\x00\x5f\x00\x43\x00" //C.o.n.f.i.g._.C. |
/* 0020 */ "\x61\x00\x63\x00\x68\x00\x65\x00\x5f\x00\x43\x00\x68\x00\x61\x00" //a.c.h.e._.C.h.a. |
/* 0030 */ "\x6e\x00\x67\x00\x65\x00\x49\x00\x44\x00\x5f\x00\x4c\x00\x6f\x00" //n.g.e.I.D._.L.o. |
/* 0040 */ "\x63\x00\x61\x00\x6c\x00\x00\x00\x00\x00\x14\x94\x1d\xc6\x64\x00" //c.a.l.........d. |
/* 0050 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x60\x00" //..........<...`. |
/* 0060 */ "\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //......P.r.i.n.t. |
/* 0070 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
/* 0080 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x49\x00\x6e\x00\x69\x00" //D.a.t.a...I.n.i. |
/* 0090 */ "\x74\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x56\x00" //t.D.r.i.v.e.r.V. |
/* 00a0 */ "\x65\x00\x72\x00\x73\x00\x69\x00\x6f\x00\x6e\x00\x00\x00\x03\x06" //e.r.s.i.o.n..... |
/* 00b0 */ "\x00\x00\x8c\x00\x00\x00\x07\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..............<. |
/* 00c0 */ "\x00\x00\x48\x00\x00\x00\x42\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..H...B...P.r.i. |
/* 00d0 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
/* 00e0 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x4d\x00" //e.r.D.a.t.a...M. |
/* 00f0 */ "\x6f\x00\x64\x00\x65\x00\x6c\x00\x00\x00\x4d\x00\x69\x00\x63\x00" //o.d.e.l...M.i.c. |
/* 0000 */ "\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00\x20\x00\x58\x00" //r.o.s.o.f.t. .X. |
/* 0010 */ "\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00\x75\x00\x6d\x00" //P.S. .D.o.c.u.m. |
/* 0020 */ "\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00\x69\x00\x74\x00" //e.n.t. .W.r.i.t. |
/* 0030 */ "\x65\x00\x72\x00\x20\x00\x76\x00\x34\x00\x00\x00\x00\x00\x60\x00" //e.r. .v.4.....`. |
/* 0040 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x5c\x00" //..........<..... |
/* 0050 */ "\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //......P.r.i.n.t. |
/* 0060 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
/* 0070 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x50\x00\x72\x00\x69\x00" //D.a.t.a...P.r.i. |
/* 0080 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //n.t.e.r.D.a.t.a. |
/* 0090 */ "\x53\x00\x69\x00\x7a\x00\x65\x00\x00\x00\x30\x02\x00\x00\x84\x02" //S.i.z.e...0..... |
/* 00a0 */ "\x00\x00\x09\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x54\x00" //..........<...T. |
/* 00b0 */ "\x00\x00\x30\x02\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //..0...P.r.i.n.t. |
/* 00c0 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
/* 00d0 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x50\x00\x72\x00\x69\x00" //D.a.t.a...P.r.i. |
/* 00e0 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00" //n.t.e.r.D.a.t.a. |
/* 00f0 */ "\x00\x00\x03\x06\x30\x02\x81\x08\x00\x00\x80\x1a\x06\x00\x00\x00" //....0........... |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x64\x00\x58\x02\x00\x00\x00\x00\x00\x00" //......d.X....... |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xca\xd2\xf6\x72\x00\x00" //.............r.. |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000000 chunk_data_length=1600 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x40\x06\x00\x00" //@... |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x68\x00\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00" //..h...........<. |
/* 00f0 */ "\x00\x00\x64\x00\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00" //..d.......P.r.i. |
/* 0000 */ "\x6e\x00\x74\x00\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00" //n.t.e.r.D.r.i.v. |
/* 0010 */ "\x65\x00\x72\x00\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x46\x00" //e.r.D.a.t.a...F. |
/* 0020 */ "\x65\x00\x61\x00\x74\x00\x75\x00\x72\x00\x65\x00\x4b\x00\x65\x00" //e.a.t.u.r.e.K.e. |
/* 0030 */ "\x79\x00\x77\x00\x6f\x00\x72\x00\x64\x00\x53\x00\x69\x00\x7a\x00" //y.w.o.r.d.S.i.z. |
/* 0040 */ "\x65\x00\x00\x00\x00\x00\x02\x00\x00\x00\x60\x00\x00\x00\x09\x00" //e.........`..... |
/* 0050 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x5c\x00\x00\x00\x02\x00" //......<......... |
/* 0060 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
/* 0070 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
/* 0080 */ "\x74\x00\x61\x00\x00\x00\x46\x00\x65\x00\x61\x00\x74\x00\x75\x00" //t.a...F.e.a.t.u. |
/* 0090 */ "\x72\x00\x65\x00\x4b\x00\x65\x00\x79\x00\x77\x00\x6f\x00\x72\x00" //r.e.K.e.y.w.o.r. |
/* 00a0 */ "\x64\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\x00\x00\x00\x0a\x00" //d.........P..... |
/* 00b0 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x4c\x00\x00\x00\x04\x00" //......<...L..... |
/* 00c0 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
/* 00d0 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
/* 00e0 */ "\x74\x00\x61\x00\x00\x00\x46\x00\x6f\x00\x72\x00\x6d\x00\x73\x00" //t.a...F.o.r.m.s. |
/* 00f0 */ "\x3f\x00\x00\x00\x00\x00\xca\xd2\xf6\x72\x64\x00\x00\x00\x07\x00" //?........rd..... |
/* 0000 */ "\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x60\x00\x00\x00\x02\x00" //......<...`..... |
/* 0010 */ "\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00\x65\x00\x72\x00" //..P.r.i.n.t.e.r. |
/* 0020 */ "\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00\x44\x00\x61\x00" //D.r.i.v.e.r.D.a. |
/* 0030 */ "\x74\x00\x61\x00\x00\x00\x54\x00\x72\x00\x61\x00\x79\x00\x46\x00" //t.a...T.r.a.y.F. |
/* 0040 */ "\x6f\x00\x72\x00\x6d\x00\x51\x00\x75\x00\x65\x00\x75\x00\x65\x00" //o.r.m.Q.u.e.u.e. |
/* 0050 */ "\x50\x00\x72\x00\x6f\x00\x70\x00\x00\x00\x00\x00\x00\x00\x58\x00" //P.r.o.p.......X. |
/* 0060 */ "\x00\x00\x0a\x00\x00\x00\x18\x00\x00\x00\x3c\x00\x00\x00\x54\x00" //..........<...T. |
/* 0070 */ "\x00\x00\x04\x00\x00\x00\x50\x00\x72\x00\x69\x00\x6e\x00\x74\x00" //......P.r.i.n.t. |
/* 0080 */ "\x65\x00\x72\x00\x44\x00\x72\x00\x69\x00\x76\x00\x65\x00\x72\x00" //e.r.D.r.i.v.e.r. |
/* 0090 */ "\x44\x00\x61\x00\x74\x00\x61\x00\x00\x00\x54\x00\x53\x00\x53\x00" //D.a.t.a...T.S.S. |
/* 00a0 */ "\x65\x00\x73\x00\x73\x00\x69\x00\x6f\x00\x6e\x00\x49\x00\x44\x00" //e.s.s.i.o.n.I.D. |
/* 00b0 */ "\x00\x00\x03\x00\x00\x00\x8c\x04\x00\x00\x00\x00\x00\x00\x18\x00" //................ |
/* 00c0 */ "\x00\x00\x18\x00\x00\x00\x18\x00\x00\x00\x74\x04\x00\x00\x4d\x00" //..........t...M. |
/* 00d0 */ "\x69\x00\x63\x00\x72\x00\x6f\x00\x73\x00\x6f\x00\x66\x00\x74\x00" //i.c.r.o.s.o.f.t. |
/* 00e0 */ "\x20\x00\x58\x00\x50\x00\x53\x00\x20\x00\x44\x00\x6f\x00\x63\x00" // .X.P.S. .D.o.c. |
/* 00f0 */ "\x75\x00\x6d\x00\x65\x00\x6e\x00\x74\x00\x20\x00\x57\x00\x72\x00" //u.m.e.n.t. .W.r. |
/* 0000 */ "\x69\x00\x74\x00\x65\x00\x72\x00\x20\x00\x28\x00\x00\x00\x01\x04" //i.t.e.r. .(..... |
/* 0010 */ "\x03\x06\xdc\x00\x98\x03\x03\xaf\x01\x00\x01\x00\x09\x00\x9a\x0b" //................ |
/* 0020 */ "\x34\x08\x64\x00\x01\x00\x0f\x00\x58\x02\x02\x00\x01\x00\x58\x02" //4.d.....X.....X. |
/* 0030 */ "\x03\x00\x00\x00\x41\x00\x34\x00\x00\x00\x00\x00\x00\x00\x00\x00" //....A.4......... |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00" //................ |
/* 0090 */ "\x00\x00\x01\x00\x00\x00\xff\xff\xff\xff\x47\x49\x53\x34\x00\x00" //..........GIS4.. |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x49\x4e\x55\x22\x00" //..........DINU". |
/* 00b0 */ "\x20\x01\x7c\x03\x1c\x00\xca\xd2\xf6\x72\x00\x00\x00\x00\x00\x00" // .|......r...... |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0030 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0040 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0050 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0060 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0070 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0090 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00a0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00b0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x00\x00\x00\x00\x20\x01\x00\x00\x53\x4d\x54\x4a\x00\x00" //...... ...SMTJ.. |
/* 0010 */ "\x00\x00\x10\x00\x10\x01\x7b\x00\x30\x00\x46\x00\x34\x00\x31\x00" //......{.0.F.4.1. |
/* 0020 */ "\x33\x00\x30\x00\x44\x00\x44\x00\x2d\x00\x31\x00\x39\x00\x43\x00" //3.0.D.D.-.1.9.C. |
/* 0030 */ "\x37\x00\x2d\x00\x37\x00\x61\x00\x62\x00\x36\x00\x2d\x00\x39\x00" //7.-.7.a.b.6.-.9. |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::process_client_message: total_length=19498 flags=0x00000002 chunk_data_length=298 |
// Recv done on rdpdr (-1) n bytes |
/* 0000 */ "\x00\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x4c\x00\x00" //*L.. |
/* 0000 */ "\x02\x00\x00\x00" //.... |
/* 0000 */ "\x2a\x01\x00\x00" //*... |
/* 0000 */ "\x39\x00\x41\x00\x31\x00\x2d\x00\x39\x00\x38\x00\x30\x00\x46\x00" //9.A.1.-.9.8.0.F. |
/* 0010 */ "\x30\x00\x33\x00\x42\x00\x32\x00\x45\x00\x45\x00\x34\x00\x45\x00" //0.3.B.2.E.E.4.E. |
/* 0020 */ "\x7d\x00\x00\x00\x49\x6e\x70\x75\x74\x42\x69\x6e\x00\x46\x4f\x52" //}...InputBin.FOR |
/* 0030 */ "\x4d\x53\x4f\x55\x52\x43\x45\x00\x52\x45\x53\x44\x4c\x4c\x00\x55" //MSOURCE.RESDLL.U |
/* 0040 */ "\x6e\x69\x72\x65\x73\x44\x4c\x4c\x00\x49\x6e\x74\x65\x72\x6c\x65" //niresDLL.Interle |
/* 0050 */ "\x61\x76\x69\x6e\x67\x00\x4f\x46\x46\x00\x49\x6d\x61\x67\x65\x54" //aving.OFF.ImageT |
/* 0060 */ "\x79\x70\x65\x00\x4a\x50\x45\x47\x4d\x65\x64\x00\x4f\x72\x69\x65" //ype.JPEGMed.Orie |
/* 0070 */ "\x6e\x74\x61\x74\x69\x6f\x6e\x00\x50\x4f\x52\x54\x52\x41\x49\x54" //ntation.PORTRAIT |
/* 0080 */ "\x00\x43\x6f\x6c\x6c\x61\x74\x65\x00\x4f\x46\x46\x00\x52\x65\x73" //.Collate.OFF.Res |
/* 0090 */ "\x6f\x6c\x75\x74\x69\x6f\x6e\x00\x4f\x70\x74\x69\x6f\x6e\x31\x00" //olution.Option1. |
/* 00a0 */ "\x50\x61\x70\x65\x72\x53\x69\x7a\x65\x00\x4c\x45\x54\x54\x45\x52" //PaperSize.LETTER |
/* 00b0 */ "\x00\x43\x6f\x6c\x6f\x72\x4d\x6f\x64\x65\x00\x32\x34\x62\x70\x70" //.ColorMode.24bpp |
/* 00c0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00d0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 00e0 */ "\x00\x00\x00\x00\x00\x00\x1c\x00\x00\x00\x56\x34\x44\x4d\x01\x00" //..........V4DM.. |
/* 00f0 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //................ |
/* 0000 */ "\x00\x00\x08\x00\x00\x00\x02\x00\x00\x00\x44\x3a\x00\x00\x00\x00" //..........D:.... |
/* 0010 */ "\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x01\x00\x00\x00\x43\x3a" //..............C: |
/* 0020 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" //.......... |
// Dump done on rdpdr (-1) n bytes |
// FileSystemVirtualChannel::process_client_message: Client Device List Announce Request |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_FILESYSTEM(8) DeviceId=2 PreferredDosName="D:" DeviceDataLength=0 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=2 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x72\x64\x02\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: DeviceType=RDPDR_DTYP_FILESYSTEM(8) DeviceId=1 PreferredDosName="C:" DeviceDataLength=0 |
// FileSystemVirtualChannel::DeviceRedirectionManager::process_client_device_list_announce_request: Server Device Announce Response |
// ServerDeviceAnnounceResponse: DeviceId=1 ResultCode=0xC0000001 |
// Sending on channel (-1) n bytes |
// /* 0000 */ "\x00\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x03\x00\x00\x00" //.... |
// /* 0000 */ "\x0c\x00\x00\x00" //.... |
// /* 0000 */ "\x72\x44\x72\x64\x01\x00\x00\x00\x01\x00\x00\xc0" //rDrd........ |
// Sent dumped on channel (-1) n bytes |
} /* end indata */;
|
;;#############################################################################
;; FILE: CLAlnTable.asm
;;
;; DESCRIPTION: Natural Logarithm Tables
;;
;; Group: C2000
;; Target Family: C28x+CLA
;;
;;#############################################################################
;; $TI Release: CLA Math Library 4.02.02.00 $
;; $Release Date: Oct 18, 2018 $
;; $Copyright: Copyright (C) 2018 Texas Instruments Incorporated -
;; http://www.ti.com/ ALL RIGHTS RESERVED $
;;#############################################################################
.include "CLAeabi.asm"
.def _CLALNV2
.def _CLALNVe
.def _CLALNV10
.def _CLABIAS
.def _CLALN_TABLE_MASK1
.def _CLALN_TABLE_MASK2
.def _CLALnTable
.def _CLALnTableEnd
.sect "CLA1mathTables"
_CLALNV2 .float 0.693147180559 ;
_CLALNVe .float 1.0 ;
_CLALNV10 .float 0.4342944819032;
_CLABIAS .float 127.0 ;
_CLALN_TABLE_MASK1 .long 0x3FFFFFFF ;
_CLALN_TABLE_MASK2 .long 0x3F800000 ;
_CLALnTable:
.float 0 ;
.float 1 ;
.float -0.5 ;
.float 9.49154e-06 ;
.float 0.999081726 ;
.float -0.470156107 ;
.float 7.09886e-05 ;
.float 0.996539792 ;
.float -0.442906574 ;
.float 0.000224404 ;
.float 0.992653061 ;
.float -0.417959184 ;
.float 0.000499085 ;
.float 0.987654321 ;
.float -0.395061728 ;
.float 0.000916122 ;
.float 0.981738495 ;
.float -0.373995617 ;
.float 0.001490146 ;
.float 0.975069252 ;
.float -0.354570637 ;
.float 0.00223074 ;
.float 0.967784352 ;
.float -0.336620644 ;
.float 0.003143551 ;
.float 0.96 ;
.float -0.32 ;
.float 0.004231167 ;
.float 0.951814396 ;
.float -0.304580607 ;
.float 0.005493806 ;
.float 0.943310658 ;
.float -0.290249433 ;
.float 0.00692987 ;
.float 0.934559221 ;
.float -0.276906436 ;
.float 0.008536376 ;
.float 0.925619835 ;
.float -0.26446281 ;
.float 0.010309303 ;
.float 0.91654321 ;
.float -0.252839506 ;
.float 0.012243868 ;
.float 0.907372401 ;
.float -0.241965974 ;
.float 0.014334741 ;
.float 0.898143957 ;
.float -0.231779086 ;
.float 0.016576219 ;
.float 0.888888889 ;
.float -0.222222222 ;
.float 0.018962363 ;
.float 0.879633486 ;
.float -0.213244481 ;
.float 0.021487103 ;
.float 0.8704 ;
.float -0.2048 ;
.float 0.024144324 ;
.float 0.861207228 ;
.float -0.196847366 ;
.float 0.026927934 ;
.float 0.852071006 ;
.float -0.189349112 ;
.float 0.02983191 ;
.float 0.843004628 ;
.float -0.182271271 ;
.float 0.032850339 ;
.float 0.834019204 ;
.float -0.17558299 ;
.float 0.035977448 ;
.float 0.825123967 ;
.float -0.169256198 ;
.float 0.039207625 ;
.float 0.816326531 ;
.float -0.163265306 ;
.float 0.042535433 ;
.float 0.807633118 ;
.float -0.15758695 ;
.float 0.045955621 ;
.float 0.799048751 ;
.float -0.152199762 ;
.float 0.049463133 ;
.float 0.79057742 ;
.float -0.147084171 ;
.float 0.053053104 ;
.float 0.782222222 ;
.float -0.142222222 ;
.float 0.056720869 ;
.float 0.773985488 ;
.float -0.13759742 ;
.float 0.060461958 ;
.float 0.765868887 ;
.float -0.133194589 ;
.float 0.064272091 ;
.float 0.75787352 ;
.float -0.128999748 ;
.float 0.068147181 ;
.float 0.75 ;
.float -0.125 ;
_CLALnTableEnd:
;; End of File
|
; A052629: E.g.f. (1-x)/(1-5x+3x^2).
; Submitted by Jon Maiga
; 1,4,34,438,7536,162120,4185360,126060480,4339278720,168038478720,7230318681600,342214829510400,17669683572710400,988372892015308800,59538455210371737600,3842709218808235776000,264549049753191211008000
mov $2,1
mov $3,$0
lpb $3
mul $1,$3
mul $2,$3
add $1,$2
mul $2,3
add $2,$1
sub $3,1
lpe
mov $0,$2
|
INCLUDE "SoundSystemNotes.inc"
INCLUDE "SoundSystem.def"
INCLUDE "SoundSystem.inc"
; tabs=8,hard
;***************************************************************************************************************************
;* default behaviors
;***************************************************************************************************************************
; force support for color gameboy-specific roms to be disabled if not user-specified
IF !DEF(SOUNDSYSTEM_GBC_COMPATIBLE)
SOUNDSYSTEM_GBC_COMPATIBLE EQU 0
ENDC
; force support for banking if not user-specified
IF !DEF(SOUNDSYSTEM_ROM_BANKING)
SOUNDSYSTEM_ROM_BANKING EQU 1
ENDC
; force support for large roms to be disabled if not user-specified
IF !DEF(SOUNDSYSTEM_LARGE_ROM)
SOUNDSYSTEM_LARGE_ROM EQU 0
ENDC
; force the code to reside in bank 0 if not user-specified
IF !DEF(SOUNDSYSTEM_CODE_BANK)
SOUNDSYSTEM_CODE_BANK EQU 0
ENDC
; force the variables to reside in wram bank 0 if not user-specified
IF !DEF(SOUNDSYSTEM_WRAM_BANK)
SOUNDSYSTEM_WRAM_BANK EQU 0
ENDC
; force the sfx to be enabled if not user-specified
if !DEF(SOUNDSYSTEM_ENABLE_SFX)
SOUNDSYSTEM_ENABLE_SFX EQU 1
ENDC
; force the vu meters to be disabled if not user-specified
if !DEF(SOUNDSYSTEM_ENABLE_VUM)
SOUNDSYSTEM_ENABLE_VUM EQU 0
ENDC
; force certain settings if the rom is not specific to color gameboy
IF (SOUNDSYSTEM_GBC_COMPATIBLE == 0)
PURGE SOUNDSYSTEM_WRAM_BANK
SOUNDSYSTEM_WRAM_BANK EQU 0
ENDC
; do some sanity checking
IF (SOUNDSYSTEM_GBC_COMPATIBLE != 0)
ASSERT(SOUNDSYSTEM_WRAM_BANK < 8)
; force boolean
PURGE SOUNDSYSTEM_GBC_COMPATIBLE
SOUNDSYSTEM_GBC_COMPATIBLE EQU 1
ENDC
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ASSERT(SOUNDSYSTEM_ROM_BANKING != 0)
ASSERT(SOUNDSYSTEM_CODE_BANK < 512)
; force boolean
PURGE SOUNDSYSTEM_LARGE_ROM
SOUNDSYSTEM_LARGE_ROM EQU 1
ENDC
IF (SOUNDSYSTEM_ENABLE_SFX != 0)
; force boolean
PURGE SOUNDSYSTEM_ENABLE_SFX
SOUNDSYSTEM_ENABLE_SFX EQU 1
ENDC
IF (SOUNDSYSTEM_ENABLE_VUM != 0)
; force boolean
PURGE SOUNDSYSTEM_ENABLE_VUM
SOUNDSYSTEM_ENABLE_VUM EQU 1
ENDC
sizeof_BANK_VAR = 1+SOUNDSYSTEM_LARGE_ROM ; the size, in bytes, of the bank variables
; display the configuration
PRINTLN "SoundSystem Configuration:"
IF (SOUNDSYSTEM_GBC_COMPATIBLE == 0)
PRINTLN " GBC Only: no"
ELSE
PRINTLN " GBC Only: YES"
ENDC
IF (SOUNDSYSTEM_LARGE_ROM == 0)
PRINTLN " Large ROM: no"
ELSE
PRINTLN " Large ROM: YES"
ENDC
PRINTLN " Code Bank: {SOUNDSYSTEM_CODE_BANK}"
PRINTLN " WRAM Bank: {SOUNDSYSTEM_WRAM_BANK}"
IF (SOUNDSYSTEM_ROM_BANKING == 0)
PRINTLN " ROM Banking: disabled"
ELSE
PRINTLN " ROM Banking: ENABLED"
ENDC
IF (SOUNDSYSTEM_ENABLE_SFX == 0)
PRINTLN " SFX: disabled"
ELSE
PRINTLN " SFX: ENABLED"
ENDC
IF (SOUNDSYSTEM_ENABLE_VUM == 0)
PRINTLN " VU Meters: disabled"
ELSE
PRINTLN " VU Meters: ENABLED"
ENDC
;***************************************************************************************************************************
;* hardware registers
;***************************************************************************************************************************
rROMB0 EQU $2000 ; $2000->$2FFF
rROMB1 EQU $3000 ; $3000->$3FFF - If more than 256 ROM banks are present.
rSVBK EQU $FF70
rAUD1SWEEP EQU $FF10
rAUD1LEN EQU $FF11
rAUD1ENV EQU $FF12
rAUD1LOW EQU $FF13
rAUD1HIGH EQU $FF14
rAUD2LEN EQU $FF16
rAUD2ENV EQU $FF17
rAUD2LOW EQU $FF18
rAUD2HIGH EQU $FF19
rAUD3ENA EQU $FF1A
rAUD3LEN EQU $FF1B
rAUD3LEVEL EQU $FF1C
rAUD3LOW EQU $FF1D
rAUD3HIGH EQU $FF1E
rAUD4LEN EQU $FF20
rAUD4ENV EQU $FF21
rAUD4POLY EQU $FF22
rAUD4GO EQU $FF23
rAUDVOL EQU $FF24
rAUDTERM EQU $FF25
rAUDENA EQU $FF26
_AUD3WAVERAM EQU $FF30 ; $FF30->$FF3F
; values for rAUD1LEN, rAUD2LEN
AUDLEN_DUTY_75 EQU %11000000 ; 75%
AUDLEN_DUTY_50 EQU %10000000 ; 50%
AUDLEN_DUTY_25 EQU %01000000 ; 25%
AUDLEN_DUTY_12_5 EQU %00000000 ; 12.5%
AUDLEN_LENGTHMASK EQU %00111111
; values for rAUD1HIGH, rAUD2HIGH, rAUD3HIGH
AUDHIGH_RESTART EQU %10000000
AUDHIGH_LENGTH_ON EQU %01000000
AUDHIGH_LENGTH_OFF EQU %00000000
; values for rAUD3ENA
AUD3ENA_ON EQU %10000000
; values for rAUDVOL
AUDVOL_VIN_LEFT EQU %10000000 ; SO2
AUDVOL_VIN_RIGHT EQU %00001000 ; SO1
; values for rAUDTERM
; SO2
AUDTERM_4_LEFT EQU %10000000
AUDTERM_3_LEFT EQU %01000000
AUDTERM_2_LEFT EQU %00100000
AUDTERM_1_LEFT EQU %00010000
; SO1
AUDTERM_4_RIGHT EQU %00001000
AUDTERM_3_RIGHT EQU %00000100
AUDTERM_2_RIGHT EQU %00000010
AUDTERM_1_RIGHT EQU %00000001
AUDTERM_ALL EQU $FF ; shorthand instead of ORing all the EQUs together
;***************************************************************************************************************************
;* supported music commands
;***************************************************************************************************************************
RSSET 0
MUSIC_CMD_ENDOFFRAME RB 1
MUSIC_CMD_PLAYINSTNOTE RB 1
MUSIC_CMD_PLAYINST RB 1
MUSIC_CMD_SETVOLUME RB 1
MUSIC_CMD_VIBRATO_ON RB 1
MUSIC_CMD_EFFECT_OFF RB 1
MUSIC_CMD_SYNCFLAG RB 1
MUSIC_CMD_ENDOFPATTERN RB 1
MUSIC_CMD_GOTOORDER RB 1
MUSIC_CMD_ENDOFSONG RB 1
MUSIC_CMD_SETSPEED RB 1
MUSIC_CMD_ENDOFFRAME1X RB 1
MUSIC_CMD_ENDOFFRAME2X RB 1
MUSIC_CMD_ENDOFFRAME3X RB 1
MUSIC_CMD_ENDOFFRAME4X RB 1
MUSIC_CMD_PITCHUP_ON RB 1
MUSIC_CMD_PITCHDOWN_ON RB 1
MUSIC_CMD_TRIPLENOTE_ON RB 1
MUSIC_CMD_EXTRA RB 1
;***************************************************************************************************************************
;* supported music effects
;***************************************************************************************************************************
RSRESET
MUSIC_FX_NONE RB 1
MUSIC_FX_VIB1 RB 1
MUSIC_FX_VIB2 RB 1
MUSIC_FX_TRIPLEFREQ1 RB 1
MUSIC_FX_TRIPLEFREQ2 RB 1
MUSIC_FX_TRIPLEFREQ3 RB 1
MUSIC_FX_PITCHUP RB 1
MUSIC_FX_PITCHDOWN RB 1
;***************************************************************************************************************************
;* supported instrument commands
;***************************************************************************************************************************
RSRESET
; common commands
MUSIC_INSTCMD_X_FRAMEEND RB 1
MUSIC_INSTCMD_X_START RB 1
MUSIC_INSTCMD_X_END RB 1
MUSIC_INSTCMD_X_ENVELOPE RB 1
MUSIC_INSTCMD_X_STARTFREQ RB 1
MUSIC_INSTCMD_X_ENVELOPEVOL RB 1
MUSIC_INSTCMD_X_STARTENVVOLFREQ RB 1
MUSIC_INSTCMD_X_PANMID RB 1
MUSIC_INSTCMD_X_PANRIGHT RB 1
MUSIC_INSTCMD_X_PANLEFT RB 1
; count of common instrument commands
MUSIC_INSTCMD_COMMONCOUNT RB 0
; specific commands
; channels 1 and 2
RSSET MUSIC_INSTCMD_COMMONCOUNT
MUSIC_INSTCMD_12_PULSELEN RB 1
MUSIC_INSTCMD_1_SWEEP RB 1
; channel 3
RSSET MUSIC_INSTCMD_COMMONCOUNT
MUSIC_INSTCMD_3_WAVE RB 1
MUSIC_INSTCMD_3_LEN RB 1
; channel 4
RSSET MUSIC_INSTCMD_COMMONCOUNT
MUSIC_INSTCMD_4_POLYLOAD RB 1
MUSIC_INSTCMD_4_LEN RB 1
;***************************************************************************************************************************
;* wSoundFXLock bit definitions
;***************************************************************************************************************************
SFXLOCKF_4_LEFT EQU AUDTERM_4_LEFT
SFXLOCKF_3_LEFT EQU AUDTERM_3_LEFT
SFXLOCKF_2_LEFT EQU AUDTERM_2_LEFT
SFXLOCKF_1_LEFT EQU AUDTERM_1_LEFT
SFXLOCKF_4_RIGHT EQU AUDTERM_4_RIGHT
SFXLOCKF_3_RIGHT EQU AUDTERM_3_RIGHT
SFXLOCKF_2_RIGHT EQU AUDTERM_2_RIGHT
SFXLOCKF_1_RIGHT EQU AUDTERM_1_RIGHT
SFXLOCKB_CHANNEL4 EQU 3
SFXLOCKB_CHANNEL3 EQU 2
SFXLOCKB_CHANNEL2 EQU 1
SFXLOCKB_CHANNEL1 EQU 0
;***************************************************************************************************************************
;* work ram
;***************************************************************************************************************************
IF (SOUNDSYSTEM_WRAM_BANK == 0)
SECTION "SoundSystem Variables",WRAM0,ALIGN[7]
ELSE
SECTION "SoundSystem Variables",WRAMX,BANK[SOUNDSYSTEM_WRAM_BANK],ALIGN[7]
ENDC
wMusicSyncData:: DS 1 ; arbitrary value set by the song to sync visual effects with bg music
; soundfx variables
wSoundFXLock: DS 1 ; bitfield (see above), 1 = Music, 0 = SFX Locked
wSoundFXTable: DS 2 ; table of soundfx pointers
IF (SOUNDSYSTEM_ROM_BANKING != 0)
wSoundFXBank: DS sizeof_BANK_VAR ; bank of soundfxs
ENDC
wSoundFXStart: DS 4 ; sound fx to start
wSoundFXNote: DS 1 ; sound fx's start note
; music/sfx shared variables
wMusicSFXPanning: DS 1
wMusicSFXInstPause1: DS 1 ; frames left before instrument/soundfx update for channel 1
wMusicSFXInstPause2: DS 1 ; frames left before instrument/soundfx update for channel 2
wMusicSFXInstPause3: DS 1 ; frames left before instrument/soundfx update for channel 3
wMusicSFXInstPause4: DS 1 ; frames left before instrument/soundfx update for channel 4
wMusicSFXInstPtr1: DS 2 ; pointer to playing instrument/soundfx for channel 1
wMusicSFXInstPtr2: DS 2 ; pointer to playing instrument/soundfx for channel 2
wMusicSFXInstPtr3: DS 2 ; pointer to playing instrument/soundfx for channel 3
wMusicSFXInstPtr4: DS 2 ; pointer to playing instrument/soundfx for channel 4
IF (SOUNDSYSTEM_ROM_BANKING != 0)
wMusicSFXInstBank1: DS sizeof_BANK_VAR ; bank of active instrument for channel 1
wMusicSFXInstBank2: DS sizeof_BANK_VAR ; bank of active instrument for channel 2
wMusicSFXInstBank3: DS sizeof_BANK_VAR ; bank of active instrument for channel 3
wMusicSFXInstBank4: DS sizeof_BANK_VAR ; bank of active instrument for channel 4
ENDC
wMusicSFXInstChnl3WaveID: DS 1 ; current waveid loaded, IDs of 255 in instruments will load, whatever the value here
wMusicSFXInstChnl3Lock: DS 1 ; 0 = no lock, 1 = external lock
; music variables
wMusicPlayState:: DS 1 ; current music playback state, 0 = stopped, 1 = playing
wMusicNextFrame: DS 1 ; number of frames until the next music commands
wMusicCommandPtr: DS 2 ; position of playing music
IF (SOUNDSYSTEM_ROM_BANKING != 0)
wMusicCommandBank: DS sizeof_BANK_VAR ; bank of playing music
ENDC
wMusicOrderPtr: DS 2 ; position of pattern order list (list of pointers to start of patterns)
IF (SOUNDSYSTEM_ROM_BANKING != 0)
wMusicOrderBank: DS sizeof_BANK_VAR ; bank of order list
ENDC
wMusicInstrumentTable: DS 2 ; table of instrument pointers
IF (SOUNDSYSTEM_ROM_BANKING != 0)
wMusicInstrumentBank: DS sizeof_BANK_VAR ; bank of instruments
ENDC
; miscellaneous variables
wChannelMusicFreq1: DS 2 ; GB frequency of channel 1 for music backup
wChannelMusicFreq2: DS 2 ; GB frequency of channel 2 for music backup
wChannelMusicFreq3: DS 2 ; GB frequency of channel 3 for music backup
wChannelMusicFreq4: DS 2 ; GB frequency of channel 4 for music backup
wChannelMusicNote1: DS 1 ; note of channel 1 for music backup
wChannelMusicNote2: DS 1 ; note of channel 2 for music backup
wChannelMusicNote3: DS 1 ; note of channel 3 for music backup
wChannelMusicNote4: DS 1 ; note of channel 4 for music backup
wChannelFreq1: DS 2 ; GB frequency of channel 1
wChannelFreq2: DS 2 ; GB frequency of channel 2
wChannelFreq3: DS 2 ; GB frequency of channel 3
wChannelFreq4: DS 2 ; GB frequency of channel 4
wChannelVol1: DS 1 ; volumes of channel 1, byte[4:VOL,4:xxxx]
wChannelVol2: DS 1 ; volumes of channel 2, byte[4:VOL,4:xxxx]
wChannelVol3: DS 1 ; volumes of channel 3, byte[4:VOL,4:xxxx]
wChannelVol4: DS 1 ; volumes of channel 4, byte[4:VOL,4:xxxx]
wMusicSpeed: DS 1 ; speed
; effect variables
wChannelMusicEffect1: DS 1 ; active effect for channel 1, 0 = none
wChannelMusicEffect2: DS 1 ; active effect for channel 2, 0 = none
wChannelMusicEffect3: DS 1 ; active effect for channel 3, 0 = none
wChannelMusicEffect4: DS 1 ; active effect for channel 4, 0 = none
wChannelMusicFXParamA1: DS 2 ; effect parameters for channel 1
wChannelMusicFXParamA2: DS 2 ; effect parameters for channel 2
wChannelMusicFXParamA3: DS 2 ; effect parameters for channel 3
wChannelMusicFXParamA4: DS 2 ; effect parameters for channel 4
wChannelMusicFXParamB1: DS 2 ; effect parameters for channel 1
wChannelMusicFXParamB2: DS 2 ; effect parameters for channel 2
wChannelMusicFXParamB3: DS 2 ; effect parameters for channel 3
wChannelMusicFXParamB4: DS 2 ; effect parameters for channel 4
wTemp: DS 2 ; temporary storage for player calcs
IF (SOUNDSYSTEM_ENABLE_VUM)
wVUMeter1:: DS 1 ; vu meter data for channel 1
wVUMeter2:: DS 1 ; vu meter data for channel 2
wVUMeter3:: DS 1 ; vu meter data for channel 3
wVUMeter4:: DS 1 ; vu meter data for channel 4
ENDC
;***************************************************************************************************************************
;* Identification
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Identity",ROM0
ELSE
SECTION "SoundSystem_Identity",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SoundSystem_Version::
DB "SoundSystem v20.249",$00
SoundSystem_Author::
DB "Code: S. Hockenhull",$00
;***************************************************************************************************************************
;* SoundSystem_Init
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Init",ROM0
ELSE
SECTION "SoundSystem_Init",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SoundSystem_Init::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
; set all channel samples to 'stop'
ld hl,wMusicSFXInstPtr1
ld e,4
.instptrloop:
ld a,LOW(Music_InstrumentEnd)
ld [hl+],a
ld a,HIGH(Music_InstrumentEnd)
ld [hl+],a
dec e
jr nz,.instptrloop
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; set all channel banks to be the bank with the stop instrument
ld hl,wMusicSFXInstBank1
ld e,4
IF (SOUNDSYSTEM_LARGE_ROM)
.instbankloop:
ld a,LOW(BANK(Music_InstrumentEnd))
ld [hl+],a
ld a,HIGH(BANK(Music_InstrumentEnd))
ld [hl+],a
dec e
jr nz,.instbankloop
ELSE
ld a,BANK(Music_InstrumentEnd)
.instbankloop:
ld [hl+],a
dec e
jr nz,.instbankloop
ENDC
ENDC
; set all channel volumes to 8
ld a,$80
ld hl,wChannelVol1
REPT 4
ld [hl+],a
ENDR
; set all channel sfxs to unused (etc.)
ld a,$FF
ld hl,wSoundFXStart
REPT 4
ld [hl+],a
ENDR
ld [wSoundFXLock],a
ld [wMusicSFXPanning],a
ld [wMusicSFXInstChnl3WaveID],a
; clear all channel music effects
xor a
ld hl,wChannelMusicEffect1
REPT 4
ld [hl+],a
ENDR
ld [wMusicSFXInstChnl3Lock],a
; clear all sfx pause timers
ld hl,wMusicSFXInstPause1
REPT 4
ld [hl+],a
ENDR
; clear all channel music frequencies
ld hl,wChannelMusicFreq1
REPT 8
ld [hl+],a
ENDR
IF (SOUNDSYSTEM_ENABLE_VUM)
; clear all vu meter values
ld hl,wVUMeter1
REPT 4
ld [hl+],a
ENDR
ENDC
; enable sound
ld a,AUD3ENA_ON
ldh [rAUDENA],a
; channel 1
xor a
ldh [rAUD1SWEEP],a
; all channels off
call Music_Pause
; general
ld a,(AUDVOL_VIN_LEFT|AUDVOL_VIN_RIGHT) ^ $FF ; same as ~(), but ~ here triggers a false warning
ldh [rAUDVOL],a
ld a,AUDTERM_ALL
ldh [rAUDTERM],a
ret
; dummy instrument to init/clear instrument pointers
Music_InstrumentEnd:
DB MUSIC_INSTCMD_X_END
;***************************************************************************************************************************
;* SoundSystem_Process
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Process",ROM0
ELSE
SECTION "SoundSystem_Process",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SoundSystem_Process::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
IF (SOUNDSYSTEM_ENABLE_SFX)
; sfx start process
ld hl,wSoundFXStart
ld c,4
.multisfx:
ld a,[hl]
push hl
push bc
xor $FF
jp z,.nonewsfx
ld b,a ; save
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wSoundFXBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [rROMB1],a
ENDC
ENDC
; lock & update SFX
ld a,b ; restore
cpl
; calculate table plus index address
ld b,a ;save
ld a,[wSoundFXTable]
ld e,a
ld a,[wSoundFXTable+1]
ld d,a
ld a,b ;restore
ld b,0
add a
rl b
add a
rl b
add a ; 4 words
rl b
add e
ld l,a
ld a,0 ; can't xor a here becuase of the adc
adc d
add b
ld h,a
push hl
ld a,[wSoundFXNote]
add a
ld l,a
ld h,HIGH(FrequencyTable)
ASSERT LOW(FrequencyTable) == 0
ld a,[hl+]
ld [wTemp],a
ld a,[hl]
ld [wTemp+1],a ; store note freq
pop hl
; update wSoundFXLock
ld a,[wSoundFXLock]
ld d,a
; load channel 1
ld a,[hl+]
ld c,a
ld a,[hl+]
ld b,a
or c
jr z,.nosfxchnl1
ld a,c
ld [wMusicSFXInstPtr1],a
ld a,b
ld [wMusicSFXInstPtr1+1],a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; update the rom bank
ld a,[wSoundFXBank]
ld [wMusicSFXInstBank1],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [wMusicSFXInstBank1+1],a
ENDC
ENDC
ld a,[wTemp]
ld [wChannelFreq1],a
ld a,[wTemp+1]
ld [wChannelFreq1+1],a
ld a,d
and ~(SFXLOCKF_1_LEFT|SFXLOCKF_1_RIGHT)
ld d,a
ld a,1 ; set counter to immediate start
ld [wMusicSFXInstPause1],a
.nosfxchnl1:
; load channel 2
ld a,[hl+]
ld c,a
ld a,[hl+]
ld b,a
or c
jr z,.nosfxchnl2
ld a,c
ld [wMusicSFXInstPtr2],a
ld a,b
ld [wMusicSFXInstPtr2+1],a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; update the rom bank
ld a,[wSoundFXBank]
ld [wMusicSFXInstBank2],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [wMusicSFXInstBank2+1],a
ENDC
ENDC
ld a,[wTemp]
ld [wChannelFreq2],a
ld a,[wTemp+1]
ld [wChannelFreq2+1],a
ld a,d
and ~(SFXLOCKF_2_LEFT|SFXLOCKF_2_RIGHT)
ld d,a
ld a,1 ; set counter to immediate start
ld [wMusicSFXInstPause2],a
.nosfxchnl2:
; load channel 3
ld a,[hl+]
ld c,a
ld a,[hl+]
ld b,a
or c
jr z,.nosfxchnl3
ld a,[wMusicSFXInstChnl3Lock]
or a
jr nz,.nosfxchnl3
ld a,c
ld [wMusicSFXInstPtr3],a
ld a,b
ld [wMusicSFXInstPtr3+1],a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; update the rom bank
ld a,[wSoundFXBank]
ld [wMusicSFXInstBank3],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [wMusicSFXInstBank3+1],a
ENDC
ENDC
ld a,[wTemp]
ld [wChannelFreq3],a
ld a,[wTemp+1]
ld [wChannelFreq3+1],a
ld a,d
and ~(SFXLOCKF_3_LEFT|SFXLOCKF_3_RIGHT)
ld d,a
ld a,1 ; set counter to immediate start
ld [wMusicSFXInstPause3],a
.nosfxchnl3:
; load channel 4
ld a,[hl+]
ld c,a
ld a,[hl+]
ld b,a
or c
jr z,.nosfxchnl4
ld a,c
ld [wMusicSFXInstPtr4],a
ld a,b
ld [wMusicSFXInstPtr4+1],a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; update the rom bank
ld a,[wSoundFXBank]
ld [wMusicSFXInstBank4],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wSoundFXBank+1]
ld [wMusicSFXInstBank4+1],a
ENDC
ENDC
ld a,d
and (SFXLOCKF_4_LEFT|SFXLOCKF_4_RIGHT) ^ $FF ; same as ~(), but ~ here triggers a false warning
ld d,a
ld a,1 ; set counter to immediate start
ld [wMusicSFXInstPause4],a
.nosfxchnl4:
pop bc
pop hl
; update wSoundFXLock
ld a,d
ld [wSoundFXLock],a
; de-flag sfx start
ld a,$FF
ld [hl+],a
dec c
jp nz,.multisfx
jr .newsfxdone
.nonewsfx:
add sp,4
.newsfxdone:
ENDC
;-------------------------------
; instruments and SFX process
;-------------------------------
; channel 1
ld hl,wMusicSFXInstPause1
dec [hl]
jr nz,SSFP_Inst1UpdateDone
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicSFXInstBank1]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicSFXInstBank1+1]
ld [rROMB1],a
ENDC
ENDC
ld hl,wMusicSFXInstPtr1
ld a,[hl+]
ld d,[hl]
ld e,a
jp SSFP_Inst1Update
SSFP_Inst1UpdateFrameEnd:
; save back
ld hl,wMusicSFXInstPtr1
ld a,e
ld [hl+],a
ld [hl],d
SSFP_Inst1UpdateDone:
;-------------------------------
; channel 2
ld hl,wMusicSFXInstPause2
dec [hl]
jr nz,SSFP_Inst2UpdateDone
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicSFXInstBank2]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicSFXInstBank2+1]
ld [rROMB1],a
ENDC
ENDC
ld hl,wMusicSFXInstPtr2
ld a,[hl+]
ld d,[hl]
ld e,a
jp SSFP_Inst2Update
SSFP_Inst2UpdateFrameEnd:
; save back
ld hl,wMusicSFXInstPtr2
ld a,e
ld [hl+],a
ld [hl],d
SSFP_Inst2UpdateDone:
;-------------------------------
; channel 3
ld hl,wMusicSFXInstPause3
dec [hl]
jr nz,SSFP_Inst3UpdateDone
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicSFXInstBank3]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicSFXInstBank3+1]
ld [rROMB1],a
ENDC
ENDC
ld hl,wMusicSFXInstPtr3
ld a,[hl+]
ld d,[hl]
ld e,a
jp SSFP_Inst3Update
SSFP_Inst3UpdateFrameEnd:
; save back
ld hl,wMusicSFXInstPtr3
ld a,e
ld [hl+],a
ld [hl],d
SSFP_Inst3UpdateDone:
;-------------------------------
; channel 4
ld hl,wMusicSFXInstPause4
dec [hl]
jr nz,SSFP_Inst4UpdateDone
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicSFXInstBank4]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicSFXInstBank4+1]
ld [rROMB1],a
ENDC
ENDC
ld hl,wMusicSFXInstPtr4
ld a,[hl+]
ld d,[hl]
ld e,a
jp SSFP_Inst4Update
SSFP_Inst4UpdateFrameEnd:
; save back
ld hl,wMusicSFXInstPtr4
ld a,e
ld [hl+],a
ld [hl],d
SSFP_Inst4UpdateDone:
;-------------------------------
; process music
ld a,[wMusicPlayState]
or a ; is music playing?
ret z ; no, exit early (nothing to do)
;-------------------------------
; update music effects
;-------------------------------
; channel 1
ld a,[wChannelMusicEffect1]
or a ; is channel 1 playing music fx?
jr z,SSFP_MusicFX_Done1 ; no, skip to the next channel
; check if sound effect active (no music fx then)
ld b,a
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL1,a ; is channel 1 playing fx?
jr z,SSFP_MusicFX_Done1 ; no, skip to the next channel
; call the fx handler
ld a,b
ld hl,SSFP_MusicFX_JumpTable1
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
SSFP_MusicFX_Done1: ; some handlers return here
;-------------------------------
; channel 2
ld a,[wChannelMusicEffect2]
or a ; is channel 2 playing music fx?
jr z,SSFP_MusicFX_Done2 ; no, skip to the next channel
; check if sound effect active (no music fx then)
ld b,a
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL2,a ; is channel 2 playing fx?
jr z,SSFP_MusicFX_Done2 ; no, skip to the next channel
; call the fx handler
ld a,b
ld hl,SSFP_MusicFX_JumpTable2
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
SSFP_MusicFX_Done2: ; some handlers return here
;-------------------------------
; channel 3
ld a,[wChannelMusicEffect3]
or a ; is channel 3 playing music fx?
jr z,SSFP_MusicFX_Done3 ; no, skip to the next channel
; check if sound effect active (no music fx then)
ld b,a
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL3,a ; is channel 3 playing fx?
jr z,SSFP_MusicFX_Done3 ; no, skip to the next channel
; call the fx handler
ld a,b
ld hl,SSFP_MusicFX_JumpTable3
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
SSFP_MusicFX_Done3: ; some handlers return here
;-------------------------------
; update music
; determine if music should update this frame
ld a,[wMusicNextFrame]
dec a
ld [wMusicNextFrame],a
ret nz ; no update needed
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicCommandBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicCommandBank+1]
ld [rROMB1],a
ENDC
ENDC
; put the music command handler in de
ld hl,wMusicCommandPtr
ld a,[hl+]
ld e,a
ld d,[hl]
;-------------------------------
SSFP_MusicUpdate: ; some handlers return here
ld a,[de]
inc de
ld hl,SSFP_Music_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
;-------------------------------
SSFP_MusicUpdateFrameEnd: ; some handlers return here
; update the ptr for next time
ld hl,wMusicCommandPtr
ld a,e
ld [hl+],a
ld [hl],d
ret
;***************************************************************************************************************************
;* Music_PrepareInst
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Music_PrepareInst",ROM0
ELSE
SECTION "SoundSystem_Music_PrepareInst",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
Music_PrepareInst::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
ld hl,wMusicInstrumentTable
ld a,e
ld [hl+],a
ld a,d
ld [hl+],a ; hl = wMusicInstrumentBank
IF (SOUNDSYSTEM_ROM_BANKING != 0)
ASSERT wMusicInstrumentBank == wMusicInstrumentTable+2
ld a,c
ld [hl+],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,b
ld [hl],a
ENDC
ENDC
ret
;***************************************************************************************************************************
;* Music_Play
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Music_Play",ROM0
ELSE
SECTION "SoundSystem_Music_Play",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
Music_Play::
IF (SOUNDSYSTEM_ROM_BANKING != 0)
push bc
ENDC
call Music_Pause
IF (SOUNDSYSTEM_ROM_BANKING != 0)
pop bc
ENDC
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change to the rom bank containting the order list
ld a,c
ld [wMusicOrderBank],a
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,b
ld [wMusicOrderBank+1],a
ld [rROMB1],a
ENDC
ENDC
; set to advance on next frame
ld a,1
ld [wMusicNextFrame],a
; clear misc variables
xor a
ld [wMusicSyncData],a
; clear effects
ld hl,wChannelMusicEffect1
ld [hl+],a
ld [hl+],a
ld [hl+],a
ld [hl],a
; set command pointer to value of first order
ld h,d
ld l,e
ld a,[hl+]
ld [wMusicCommandPtr],a
ld a,[hl+]
ld [wMusicCommandPtr+1],a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
ld a,[hl+]
ld [wMusicCommandBank],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[hl]
ld [wMusicCommandBank+1],a
ENDC
ENDC
; set order pointer to next order
ld a,e
add 4
ld [wMusicOrderPtr],a
ld a,d
adc 0
ld [wMusicOrderPtr+1],a
; turn on the music
ld a,MUSIC_STATE_PLAYING
ld [wMusicPlayState],a
ret
;***************************************************************************************************************************
;* Music_Pause
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Music_Pause",ROM0
ELSE
SECTION "SoundSystem_Music_Pause",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
Music_Pause::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
; stop playing
xor a
ld [wMusicPlayState],a
; turn off channels used by music
ld a,[wSoundFXLock]
ld b,a
ld c,AUDHIGH_RESTART
;-------------------------------
; channel 1
bit SFXLOCKB_CHANNEL1,b ; is channel 1 playing music?
jr z,.nomusic1 ; no, skip to the next channel
; clear the channel 1 registers
xor a
ldh [rAUD1ENV],a
ld a,c
ldh [rAUD1HIGH],a
; set the stop command
ld hl,wMusicSFXInstPtr1
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nomusic1:
;-------------------------------
; channel 2
bit SFXLOCKB_CHANNEL2,b ; is channel 2 playing music?
jr z,.nomusic2 ; no, skip to the next channel
; clear the channel 2 registers
xor a
ldh [rAUD2ENV],a
ld a,c
ldh [rAUD2HIGH],a
; set the stop command
ld hl,wMusicSFXInstPtr2
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nomusic2:
;-------------------------------
; channel 3
bit SFXLOCKB_CHANNEL3,b ; is channel 3 playing music?
jr z,.nomusic3 ; no, skip to the next channel
; clear the channel 3 registers
xor a
ldh [rAUD3ENA],a
; set the stop command
ld hl,wMusicSFXInstPtr3
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nomusic3:
;-------------------------------
; channel 4
bit SFXLOCKB_CHANNEL4,b ; is channel 4 playing music?
ret z ; no, exit
; clear the channel 4 registers
xor a
ldh [rAUD4ENV],a
ld a,c
ldh [rAUD4GO],a
; set the stop command
ld hl,wMusicSFXInstPtr4
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
ret
;***************************************************************************************************************************
;* Music_Resume
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_Music_Resume",ROM0
ELSE
SECTION "SoundSystem_Music_Resume",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
Music_Resume::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
ld a,MUSIC_STATE_PLAYING
ld [wMusicPlayState],a
ret
;***************************************************************************************************************************
;* SFX_Prepare
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_Prepare",ROM0
ELSE
SECTION "SoundSystem_SFX_Prepare",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_Prepare::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
ld hl,wSoundFXTable
ld a,e
ld [hl+],a
ld a,d
ld [hl+],a ; hl = wSoundFXBank here
IF (SOUNDSYSTEM_ROM_BANKING != 0)
ASSERT wSoundFXBank == wSoundFXTable+2
ld a,c
ld [hl+],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,b
ld [hl],a
ENDC
ENDC
ret
ENDC
;***************************************************************************************************************************
;* SFX_Play
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_Play",ROM0
ELSE
SECTION "SoundSystem_SFX_Play",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_Play::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
; find an open channel, else put it on channel 4
ld hl,wSoundFXStart
ld d,4
.loop:
ld a,[hl]
xor $FF ; is this channel open?
jr z,.found ; yes, store the sfx data
inc hl
dec d
jr nz,.loop
.found:
ld a,b
ld [hl],a
ld a,c
ld [wSoundFXNote],a
ret
ENDC
;***************************************************************************************************************************
;* SFX_Stop
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_Stop",ROM0
ELSE
SECTION "SoundSystem_SFX_Stop",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_Stop::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
; turn off channels used by sfx
ld a,[wSoundFXLock]
ld b,a
ld c,AUDHIGH_RESTART
; channel 1
bit SFXLOCKB_CHANNEL1,b ; is channel 1 playing sfx?
jr nz,.nosfx1 ; no, skip to the next channel
xor a
ld [rAUD1ENV],a
ld a,c
ld [rAUD1HIGH],a
ld hl,wMusicSFXInstPtr1
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nosfx1:
; channel 2
bit SFXLOCKB_CHANNEL2,b ; is channel 2 playing sfx?
jr nz,.nosfx2 ; no, skip to the next channel
xor a
ld [rAUD2ENV],a
ld a,c
ld [rAUD2HIGH],a
ld hl,wMusicSFXInstPtr2
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nosfx2:
; channel 3
bit SFXLOCKB_CHANNEL3,b ; is channel 3 playing sfx?
jr nz,.nosfx3 ; no, skip to the next channel
ld a,[wMusicSFXInstChnl3Lock]
or a
jr nz,.nosfx3
ld [rAUD3ENA],a ; a = 0 here
ld hl,wMusicSFXInstPtr3
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
.nosfx3:
; channel 4
bit SFXLOCKB_CHANNEL4,b ; is channel 4 playing sfx?
ret nz ; no, exit
xor a
ld [rAUD4ENV],a
ld a,c
ld [rAUD4GO],a
ld hl,wMusicSFXInstPtr4
ld [hl],LOW(Music_InstrumentEnd)
inc l
ld [hl],HIGH(Music_InstrumentEnd)
ret
ENDC
;***************************************************************************************************************************
;* SFX_LockChannel3
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_LockChannel3",ROM0
ELSE
SECTION "SoundSystem_SFX_LockChannel3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_LockChannel3::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
ld a,1
ld [wMusicSFXInstChnl3Lock],a
ld a,[wSoundFXLock]
and ~(SFXLOCKF_3_LEFT|SFXLOCKF_3_RIGHT)
ld [wSoundFXLock],a
ld hl,wMusicSFXInstPtr1
ld a,LOW(Music_InstrumentEnd)
ld [hl+],a
ld a,HIGH(Music_InstrumentEnd)
ld [hl],a
ret
ENDC
;***************************************************************************************************************************
;* SFX_UnlockChannel3
;***************************************************************************************************************************
IF (SOUNDSYSTEM_ENABLE_SFX)
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SFX_UnlockChannel3",ROM0
ELSE
SECTION "SoundSystem_SFX_UnlockChannel3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SFX_UnlockChannel3::
IF (SOUNDSYSTEM_WRAM_BANK != 0)
ld a,SOUNDSYSTEM_WRAM_BANK
ldh [rSVBK],a
ENDC
xor a
ld [wMusicSFXInstChnl3Lock],a
ld a,[wSoundFXLock]
or SFXLOCKF_3_LEFT|SFXLOCKF_3_RIGHT
ld [wSoundFXLock],a
ret
ENDC
;***************************************************************************************************************************
;* music fx handlers
;***************************************************************************************************************************
; channel 1
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_VIB1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_VIB1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_VIB1:
ld hl,wChannelFreq1
ld a,[hl]
add 1 ; can't use inc a here because of the adc
ld [hl+],a
ldh [rAUD1LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD1HIGH],a
ld hl,wChannelMusicFXParamA1+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done1
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB2
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_VIB2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_VIB2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_VIB2:
ld hl,wChannelFreq1
ld a,[hl]
add $FF ; can't use dec a here because of the adc
ld [hl+],a
ldh [rAUD1LOW],a
ld a,[hl]
adc $FF
and $07
ld [hl],a
ldh [rAUD1HIGH],a
ld hl,wChannelMusicFXParamA1+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done1
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB1
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_TF1:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote1]
ld c,a
ld a,[wChannelMusicFXParamA1]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD1LOW],a
ld a,[hl]
ldh [rAUD1HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ2
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_TF2:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote1]
ld c,a
ld a,[wChannelMusicFXParamA1+1]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD1LOW],a
ld a,[hl]
ldh [rAUD1HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ3
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF3",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_TF3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_TF3:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote1]
add a
ld l,a
ld a,[hl+]
ldh [rAUD1LOW],a
ld a,[hl]
ldh [rAUD1HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ1
ld [wChannelMusicEffect1],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_PITCHUP",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_PITCHUP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_PITCHUP:
ld hl,wChannelMusicFXParamA1
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done1
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB1
ld b,[hl]
ld hl,wChannelFreq1
ld a,[hl]
add b
ld [hl+],a
ldh [rAUD1LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD1HIGH],a
jp SSFP_MusicFX_Done1
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX1_PITCHDOWN",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX1_PITCHDOWN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX1_PITCHDOWN:
ld hl,wChannelMusicFXParamA1
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done1
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB1
ld b,[hl]
ld hl,wChannelFreq1
ld a,[hl]
sub b
ld [hl+],a
ldh [rAUD1LOW],a
ld a,[hl]
sbc 0
and $07
ld [hl],a
ldh [rAUD1HIGH],a
jp SSFP_MusicFX_Done1
; ==========================================================================================================================
; channel 2
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_VIB1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_VIB1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_VIB1:
ld hl,wChannelFreq2
ld a,[hl]
add 1 ; can't use inc a here because of the adc
ld [hl+],a
ldh [rAUD2LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD2HIGH],a
ld hl,wChannelMusicFXParamA2+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done2
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB2
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_VIB2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_VIB2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_VIB2:
ld hl,wChannelFreq2
ld a,[hl]
add $FF ; can't use dec a here because of the adc
ld [hl+],a
ldh [rAUD2LOW],a
ld a,[hl]
adc $FF
and $07
ld [hl],a
ldh [rAUD2HIGH],a
ld hl,wChannelMusicFXParamA2+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done2
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB1
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_TF1:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote2]
ld c,a
ld a,[wChannelMusicFXParamA2]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD2LOW],a
ld a,[hl]
ldh [rAUD2HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ2
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_TF2:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote2]
ld c,a
ld a,[wChannelMusicFXParamA2+1]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD2LOW],a
ld a,[hl]
ldh [rAUD2HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ3
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF3",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_TF3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_TF3:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote2]
add a
ld l,a
ld a,[hl+]
ldh [rAUD2LOW],a
ld a,[hl]
ldh [rAUD2HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ1
ld [wChannelMusicEffect2],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_PITCHUP",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_PITCHUP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_PITCHUP:
ld hl,wChannelMusicFXParamA2
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done2
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB2
ld b,[hl]
ld hl,wChannelFreq2
ld a,[hl]
add b
ld [hl+],a
ldh [rAUD2LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD2HIGH],a
jp SSFP_MusicFX_Done2
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX2_PITCHDOWN",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX2_PITCHDOWN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX2_PITCHDOWN:
ld hl,wChannelMusicFXParamA2
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done2
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB2
ld b,[hl]
ld hl,wChannelFreq2
ld a,[hl]
sub b
ld [hl+],a
ldh [rAUD2LOW],a
ld a,[hl]
sbc 0
and $07
ld [hl],a
ldh [rAUD2HIGH],a
jp SSFP_MusicFX_Done2
; ==========================================================================================================================
; channel 3
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_VIB1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_VIB1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_VIB1:
ld hl,wChannelFreq3
ld a,[hl]
add 1 ; can't use inc a here because of the adc
ld [hl+],a
ldh [rAUD3LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD3HIGH],a
ld hl,wChannelMusicFXParamA3+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done3
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB2
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_VIB2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_VIB2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_VIB2:
ld hl,wChannelFreq3
ld a,[hl]
add $FF ; can't use dec a here because of the adc
ld [hl+],a
ldh [rAUD3LOW],a
ld a,[hl]
adc $FF
and $07
ld [hl],a
ldh [rAUD3HIGH],a
ld hl,wChannelMusicFXParamA3+1
dec [hl]
dec hl
jp nz,SSFP_MusicFX_Done3
ld a,[hl+]
ld [hl],a
; store the fx id
ld a,MUSIC_FX_VIB1
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF1",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_TF1:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote3]
ld c,a
ld a,[wChannelMusicFXParamA3]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD3LOW],a
ld a,[hl]
ldh [rAUD3HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ2
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF2",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_TF2:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote3]
ld c,a
ld a,[wChannelMusicFXParamA3+1]
add c
cp NUM_NOTES
jr c,.noteok
ld a,NUM_NOTES-1
.noteok:
add a
ld l,a
ld a,[hl+]
ldh [rAUD3LOW],a
ld a,[hl]
ldh [rAUD3HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ3
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF3",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_TF3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_TF3:
ld hl,FrequencyTable
ASSERT LOW(FrequencyTable) == 0
ld a,[wChannelMusicNote3]
add a
ld l,a
ld a,[hl+]
ldh [rAUD3LOW],a
ld a,[hl]
ldh [rAUD3HIGH],a
; store the fx id
ld a,MUSIC_FX_TRIPLEFREQ1
ld [wChannelMusicEffect3],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_PITCHUP",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_PITCHUP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_PITCHUP:
ld hl,wChannelMusicFXParamA3
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done3
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB3
ld b,[hl]
ld hl,wChannelFreq3
ld a,[hl]
add b
ld [hl+],a
ldh [rAUD3LOW],a
ld a,[hl]
adc 0
and $07
ld [hl],a
ldh [rAUD3HIGH],a
jp SSFP_MusicFX_Done3
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_FX3_PITCHDOWN",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_FX3_PITCHDOWN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_FX3_PITCHDOWN:
ld hl,wChannelMusicFXParamA3
ld a,[hl]
dec a
ld [hl+],a
jp nz,SSFP_MusicFX_Done3
ld a,[hl-]
ld [hl],a
ld hl,wChannelMusicFXParamB3
ld b,[hl]
ld hl,wChannelFreq3
ld a,[hl]
sub b
ld [hl+],a
ldh [rAUD3LOW],a
ld a,[hl]
sbc 0
and $07
ld [hl],a
ldh [rAUD3HIGH],a
jp SSFP_MusicFX_Done3
;***************************************************************************************************************************
;* music command handlers
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME:
ld a,[de]
inc de
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_PLAYINST/NOTE",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_PLAYINST/NOTE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_PLAYINSTNOTE:
ld a,[de]
inc de
ld l,a
ld a,[de]
and $03
ld b,HIGH(wChannelMusicNote1)
add LOW(wChannelMusicNote1)
ld c,a
ld a,l
ld [bc],a
ld a,l
add a
ld l,a
ld h,HIGH(FrequencyTable)
ASSERT LOW(FrequencyTable) == 0
ld b,HIGH(wChannelMusicFreq1)
ld a,[de]
and $03
add a
add LOW(wChannelMusicFreq1)
ld c,a
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a ; store note freq
; fall-through
; --------------------------------------------------------------------------------------------------------------------------
SSFP_MUSIC_CMD_PLAYINST:
ld a,[de]
inc de
ld b,a ;save
and $FC
srl a
ld c,a
ld hl,wMusicInstrumentTable
ld a,[hl+]
add c
ld c,a
ld a,[hl]
adc 0
ld h,a
ld l,c
; check for lock
ld a,[wSoundFXLock]
ld c,a
ld a,b ;restore
and $03
jp z,.playchannel1
dec a
jr z,.playchannel2
dec a
jr z,.playchannel3
.playchannel4:
bit SFXLOCKB_CHANNEL4,c
jp z,.channeldone
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicInstrumentBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [rROMB1],a
ENDC
ENDC
ld a,[hl+]
ld [wMusicSFXInstPtr4],a
ld a,[hl]
ld [wMusicSFXInstPtr4+1],a
ld a,1
ld [wMusicSFXInstPause4],a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; update the rom bank
ld a,[wMusicInstrumentBank]
ld [wMusicSFXInstBank4],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [wMusicSFXInstBank4+1],a
ENDC
ENDC
ld hl,wChannelMusicFreq4
ld bc,wChannelFreq4
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jr .channeldone
.playchannel2:
bit SFXLOCKB_CHANNEL2,c
jr z,.channeldone
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicInstrumentBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [rROMB1],a
ENDC
ENDC
ld a,[hl+]
ld [wMusicSFXInstPtr2],a
ld a,[hl]
ld [wMusicSFXInstPtr2+1],a
ld a,1
ld [wMusicSFXInstPause2],a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; update the rom bank
ld a,[wMusicInstrumentBank]
ld [wMusicSFXInstBank2],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [wMusicSFXInstBank2+1],a
ENDC
ENDC
ld hl,wChannelMusicFreq2
ld bc,wChannelFreq2
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jr .channeldone
.playchannel3:
bit SFXLOCKB_CHANNEL3,c
jr z,.channeldone
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicInstrumentBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [rROMB1],a
ENDC
ENDC
ld a,[hl+]
ld [wMusicSFXInstPtr3],a
ld a,[hl]
ld [wMusicSFXInstPtr3+1],a
ld a,1
ld [wMusicSFXInstPause3],a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; update the rom bank
ld a,[wMusicInstrumentBank]
ld [wMusicSFXInstBank3],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [wMusicSFXInstBank3+1],a
ENDC
ENDC
ld hl,wChannelMusicFreq3
ld bc,wChannelFreq3
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jr .channeldone
.playchannel1:
bit SFXLOCKB_CHANNEL1,c
jr z,.channeldone
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicInstrumentBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [rROMB1],a
ENDC
ENDC
ld a,[hl+]
ld [wMusicSFXInstPtr1],a
ld a,[hl]
ld [wMusicSFXInstPtr1+1],a
ld a,1
ld [wMusicSFXInstPause1],a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; update the rom bank
ld a,[wMusicInstrumentBank]
ld [wMusicSFXInstBank1],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicInstrumentBank+1]
ld [wMusicSFXInstBank1+1],a
ENDC
ENDC
ld hl,wChannelMusicFreq1
ld bc,wChannelFreq1
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
.channeldone:
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicCommandBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicCommandBank+1]
ld [rROMB1],a
ENDC
ENDC
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_SETVOLUME",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_SETVOLUME",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_SETVOLUME:
ld a,[de]
inc de
ld c,a
and $03
add LOW(wChannelVol1)
ld l,a
ld a,HIGH(wChannelVol1)
adc 0
ld h,a
ld a,c
and $F0
ld [hl],a
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_VIBRATO_ON",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_VIBRATO_ON",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_VIBRATO_ON:
ld a,[de]
ld c,a
and $03
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_VIB1
sub LOW(wChannelMusicEffect1)
add a
add LOW(wChannelMusicFXParamA1)
ld c,a
ld b,HIGH(wChannelMusicFXParamA1)
ld a,[de]
swap a
and $0F
ld [bc],a ; store max
inc bc
ld l,a
and $01
srl l
or l
ld [bc],a ; store max
inc de
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_EFFECT_OFF",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_EFFECT_OFF",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_EFFECT_OFF:
ld a,[de]
inc de
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_NONE
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_SYNCFLAG",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_SYNCFLAG",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_SYNCFLAG:
ld a,[de]
inc de
ld [wMusicSyncData],a
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFPATTERN",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFPATTERN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFPATTERN:
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change the rom bank
ld a,[wMusicOrderBank]
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[wMusicOrderBank+1]
ld [rROMB1],a
ENDC
ENDC
ld hl,wMusicOrderPtr
ld a,[hl+]
ld h,[hl]
ld l,a
add 4
ld [wMusicOrderPtr],a
ld a,h
adc 0
ld [wMusicOrderPtr+1],a
ld a,[hl+]
ld e,a
ld a,[hl+]
ld d,a
IF (SOUNDSYSTEM_ROM_BANKING != 0)
; change and update the rom bank
ld a,[hl+]
ld [wMusicCommandBank],a
ld [rROMB0],a
IF (SOUNDSYSTEM_LARGE_ROM != 0)
ld a,[hl]
ld [wMusicCommandBank+1],a
ld [rROMB1],a
ENDC
ENDC
ld a,1
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_GOTOORDER",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_GOTOORDER",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_GOTOORDER:
ld a,[wMusicOrderPtr]
ld c,a
ld a,[wMusicOrderPtr+1]
ld b,a
ld a,[de]
inc de
ld l,a
ld a,[de]
inc de
ld h,a
add hl,bc
ld a,h
ld [wMusicOrderPtr+1],a
ld a,l
ld [wMusicOrderPtr],a
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFSONG",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFSONG",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFSONG:
xor a
ld [wMusicPlayState],a
dec de
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_SETSPEED",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_SETSPEED",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_SETSPEED:
ld a,[de]
inc de
ld [wMusicSpeed],a
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME1X",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME1X",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME1X:
ld a,[wMusicSpeed]
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME2X",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME2X",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME2X:
ld a,[wMusicSpeed]
add a
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME3X",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME3X",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME3X:
ld a,[wMusicSpeed]
ld c,a
add a
add c
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME4X",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_ENDOFFRAME4X",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_ENDOFFRAME4X:
ld a,[wMusicSpeed]
add a
add a
ld [wMusicNextFrame],a
jp SSFP_MusicUpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_PITCHUPDOWN_ON",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_PITCHUPDOWN_ON",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_PITCHUP_ON:
ld a,[de]
and $03
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_PITCHUP
jr SSFP_MUSIC_CMD_PITCHUP_reuse
SSFP_MUSIC_CMD_PITCHDOWN_ON:
ld a,[de]
and $03
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_PITCHDOWN
SSFP_MUSIC_CMD_PITCHUP_reuse:
sub LOW(wChannelMusicEffect1)
add a
add LOW(wChannelMusicFXParamA1)
ld c,a
ld b,HIGH(wChannelMusicFXParamA1)
ld a,[de]
swap a
and $0F
ld [bc],a ; store max
inc c
ld [bc],a ; store max
ld a,7
add c
ld c,a
ld a,[de]
srl a
srl a
and $03
inc a
ld [bc],a
inc de
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_TRIPLENOTE_ON",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_TRIPLENOTE_ON",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_TRIPLENOTE_ON:
ld a,[de]
inc de
; note
ld l,a
ld b,HIGH(wChannelMusicFXParamA1)
ld a,[de]
and $03
add a
add LOW(wChannelMusicFXParamA1)
ld c,a
ld a,l
swap a
and $0F
ld [bc],a
inc c
ld a,l
and $0F
ld [bc],a ; store note freq
ld a,[de]
inc de
ld c,a
and $03
add LOW(wChannelMusicEffect1)
ld h,HIGH(wChannelMusicEffect1)
ld l,a
ld [hl],MUSIC_FX_TRIPLEFREQ1
jp SSFP_MusicUpdate
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_MUSIC_CMD_EXTRA",ROM0
ELSE
SECTION "SoundSystem_SSFP_MUSIC_CMD_EXTRA",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_MUSIC_CMD_EXTRA:
ld a,[de]
inc de
ld c,a
and $03
jr z,SSFP_MUSIC_CMD_EXTRA_chnl1
dec a
jr z,SSFP_MUSIC_CMD_EXTRA_chnl2
dec a
jr z,SSFP_MUSIC_CMD_EXTRA_chnl3
; chnl 4
jp SSFP_MusicUpdate
SSFP_MUSIC_CMD_EXTRA_chnl1:
ld a,c
and $FC
ldh [rAUD1LEN],a
jp SSFP_MusicUpdate
SSFP_MUSIC_CMD_EXTRA_chnl2:
ld a,c
and $FC
ldh [rAUD2LEN],a
jp SSFP_MusicUpdate
SSFP_MUSIC_CMD_EXTRA_chnl3:
ld a,[wMusicSFXInstChnl3Lock]
or a
jp nz,SSFP_MusicUpdate
ld a,c
and $FC
ldh [rAUD3LEVEL],a
jp SSFP_MusicUpdate
;***************************************************************************************************************************
;* instrument command handlers
;***************************************************************************************************************************
; channel 1
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1Update",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1Update",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1Update:
ld a,[de]
inc de
ld hl,SSFP_Inst1_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_FRAMEEND",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_FRAMEEND",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_FRAMEEND:
ld a,[de]
inc de
ld [wMusicSFXInstPause1],a ; load new pause
jp SSFP_Inst1UpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_START",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_START",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_START:
ld a,[wChannelFreq1]
ldh [rAUD1LOW],a
ld a,[de]
inc de
ld hl,wChannelFreq1+1
or [hl]
ldh [rAUD1HIGH],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_END",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_END",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_END:
dec de ; rewind counter
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL1,a
jp nz,SSFP_Inst1UpdateFrameEnd
or SFXLOCKF_1_LEFT|SFXLOCKF_1_RIGHT
ld [wSoundFXLock],a
; restore music freq
ld hl,wChannelMusicFreq1
ld bc,wChannelFreq1
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jp SSFP_Inst1UpdateFrameEnd ; do nothing else (counter loaded with 0 (256) frame wait)
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_ENVELOPE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_ENVELOPE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_ENVELOPE:
ld a,[de]
inc de
ld hl,wChannelVol1
or [hl]
ldh [rAUD1ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter1],a
ENDC
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_STARTFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_STARTFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_STARTFREQ:
ld a,[de]
inc de
ldh [rAUD1LOW],a
ld a,[de]
inc de
ldh [rAUD1HIGH],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_ENVELOPEVOL",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_ENVELOPEVOL",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_ENVELOPEVOL:
ld a,[de]
inc de
ldh [rAUD1ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter1],a
ENDC
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_STARTENVVOLFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_STARTENVVOLFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_STARTENVVOLFREQ:
ld a,[de]
inc de
ldh [rAUD1ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter1],a
ENDC
ld a,[de]
inc de
ldh [rAUD1LOW],a
ld a,[de]
inc de
ldh [rAUD1HIGH],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_PANMID",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_PANMID",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_PANMID:
ld hl,wMusicSFXPanning
ld a,AUDTERM_1_LEFT|AUDTERM_1_RIGHT
or [hl]
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_PANRIGHT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_PANRIGHT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_PANRIGHT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_1_RIGHT
or [hl]
and ~AUDTERM_1_LEFT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_PANLEFT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_PANLEFT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_PANLEFT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_1_LEFT
or [hl]
and ~AUDTERM_1_RIGHT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_PULSELEN",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_PULSELEN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_PULSELEN:
ld a,[de]
inc de
ldh [rAUD1LEN],a
jp SSFP_Inst1Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst1_CMD_SWEEP",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst1_CMD_SWEEP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst1_CMD_SWEEP:
ld a,[de]
inc de
ldh [rAUD1SWEEP],a
jp SSFP_Inst1Update
; ==========================================================================================================================
; channel 2
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2Update",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2Update",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2Update:
ld a,[de]
inc de
ld hl,SSFP_Inst2_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_FRAMEEND",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_FRAMEEND",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_FRAMEEND:
ld a,[de]
inc de
ld [wMusicSFXInstPause2],a ; load new pause
jp SSFP_Inst2UpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_START",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_START",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_START:
ld a,[wChannelFreq2]
ldh [rAUD2LOW],a
ld a,[de]
inc de
ld hl,wChannelFreq2+1
or [hl]
ldh [rAUD2HIGH],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_END",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_END",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_END:
dec de ; rewind counter
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL2,a
jp nz,SSFP_Inst2UpdateFrameEnd
or SFXLOCKF_2_LEFT|SFXLOCKF_2_RIGHT
ld [wSoundFXLock],a
; restore music freq
ld hl,wChannelMusicFreq2
ld bc,wChannelFreq2
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jp SSFP_Inst2UpdateFrameEnd ; do nothing else (counter loaded with 0 (256) frame wait)
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_ENVELOPE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_ENVELOPE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_ENVELOPE:
ld a,[de]
inc de
ld hl,wChannelVol2
or [hl]
ldh [rAUD2ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter2],a
ENDC
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_STARTFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_STARTFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_STARTFREQ:
ld a,[de]
inc de
ldh [rAUD2LOW],a
ld a,[de]
inc de
ldh [rAUD2HIGH],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_ENVELOPEVOL",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_ENVELOPEVOL",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_ENVELOPEVOL:
ld a,[de]
inc de
ldh [rAUD2ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter2],a
ENDC
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_STARTENVVOLFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_STARTENVVOLFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_STARTENVVOLFREQ:
ld a,[de]
inc de
ldh [rAUD2ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter2],a
ENDC
ld a,[de]
inc de
ldh [rAUD2LOW],a
ld a,[de]
inc de
ldh [rAUD2HIGH],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_PANMID",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_PANMID",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_PANMID:
ld hl,wMusicSFXPanning
ld a,AUDTERM_2_LEFT|AUDTERM_2_RIGHT
or [hl]
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_PANRIGHT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_PANRIGHT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_PANRIGHT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_2_RIGHT
or [hl]
and ~AUDTERM_2_LEFT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_PANLEFT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_PANLEFT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_PANLEFT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_2_LEFT
or [hl]
and ~AUDTERM_2_RIGHT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_PULSELEN",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_PULSELEN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_PULSELEN:
ld a,[de]
inc de
ldh [rAUD2LEN],a
jp SSFP_Inst2Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst2_CMD_SWEEP",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst2_CMD_SWEEP",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst2_CMD_SWEEP:
inc de ; ignore
jp SSFP_Inst2Update
; ==========================================================================================================================
; channel 3
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3Update",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3Update",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3Update:
ld a,[de]
inc de
ld hl,SSFP_Inst3_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_FRAMEEND",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_FRAMEEND",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_FRAMEEND:
ld a,[de]
inc de
ld [wMusicSFXInstPause3],a ; load new pause
jp SSFP_Inst3UpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_START",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_START",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_START:
ld a,[wChannelFreq3]
ldh [rAUD3LOW],a
ld a,AUD3ENA_ON
ldh [rAUD3ENA],a
ld a,[de]
inc de
ld hl,wChannelFreq3+1
or [hl]
ldh [rAUD3HIGH],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_END",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_END",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_END:
dec de ; rewind counter
xor a
ldh [rAUD3ENA],a
IF (SOUNDSYSTEM_ENABLE_VUM)
ld [wVUMeter3],a
ENDC
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL3,a
jp nz,SSFP_Inst3UpdateFrameEnd
or SFXLOCKF_3_LEFT|SFXLOCKF_3_RIGHT
ld [wSoundFXLock],a
; restore music freq
ld hl,wChannelMusicFreq3
ld bc,wChannelFreq3
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jp SSFP_Inst3UpdateFrameEnd ; do nothing else (counter loaded with 0 (256) frame wait)
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_ENVELOPE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_ENVELOPE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_ENVELOPE:
ld a,[de]
inc de
ld hl,wChannelVol3
or [hl]
ldh [rAUD3LEVEL],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
sla a
and $0C
dec a
xor $0C
ld [wVUMeter3],a
ENDC
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_STARTFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_STARTFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_STARTFREQ:
ld a,[de]
inc de
ldh [rAUD3LOW],a
ld a,AUD3ENA_ON
ldh [rAUD3ENA],a
ld a,[de]
inc de
ldh [rAUD3HIGH],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_ENVELOPEVOL",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_ENVELOPEVOL",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_ENVELOPEVOL:
ld a,[de]
inc de
ldh [rAUD3LEVEL],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
sla a
and $0C
dec a
xor $0C
ld [wVUMeter3],a
ENDC
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_STARTENVVOLFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_STARTENVVOLFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_STARTENVVOLFREQ:
ld a,[de]
inc de
ldh [rAUD3LEVEL],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
sla a
and $0C
dec a
xor $0C
ld [wVUMeter3],a
ENDC
ld a,[de]
inc de
ldh [rAUD3LOW],a
ld a,AUD3ENA_ON
ldh [rAUD3ENA],a
ld a,[de]
inc de
ldh [rAUD3HIGH],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_PANMID",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_PANMID",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_PANMID:
ld hl,wMusicSFXPanning
ld a,AUDTERM_3_LEFT|AUDTERM_3_RIGHT
or [hl]
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_PANRIGHT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_PANRIGHT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_PANRIGHT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_3_RIGHT
or [hl]
and ~AUDTERM_3_LEFT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_PANLEFT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_PANLEFT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_PANLEFT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_3_LEFT
or [hl]
and ~AUDTERM_3_RIGHT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_WAVE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_WAVE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_WAVE:
ld hl,wMusicSFXInstChnl3WaveID
ld a,[de]
inc de
cp 255
jr z,.loadlong
cp [hl]
jr z,.skip
.loadlong:
ld hl,_AUD3WAVERAM
xor a
ldh [rAUD3ENA],a
REPT 16
ld a,[de]
inc de
ld [hl+],a
ENDR
jp SSFP_Inst3Update
.skip:
ld a,e
add 16
ld e,a
ld a,d
adc 0
ld d,a
jp SSFP_Inst3Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst3_CMD_LEN",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst3_CMD_LEN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst3_CMD_LEN:
ld a,[de]
inc de
ldh [rAUD3LEN],a
jp SSFP_Inst3Update
; ==========================================================================================================================
; channel 4
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4Update",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4Update",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4Update:
ld a,[de]
inc de
ld hl,SSFP_Inst4_JumpTable
add a
add l
ld l,a
ld a,[hl+]
ld h,[hl]
ld l,a
jp hl
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_FRAMEEND",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_FRAMEEND",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_FRAMEEND:
ld a,[de]
inc de
ld [wMusicSFXInstPause4],a ; load new pause
jp SSFP_Inst4UpdateFrameEnd
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_START",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_START",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_START:
ld a,[de]
inc de
ldh [rAUD4GO],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_END",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_END",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_END:
dec de ; rewind counter
ld a,[wSoundFXLock]
bit SFXLOCKB_CHANNEL4,a
jp nz,SSFP_Inst4UpdateFrameEnd
or SFXLOCKF_4_LEFT|SFXLOCKF_4_RIGHT
ld [wSoundFXLock],a
; restore music freq
ld hl,wChannelMusicFreq4
ld bc,wChannelFreq4
ld a,[hl+]
ld [bc],a
inc c
ld a,[hl]
ld [bc],a
jp SSFP_Inst4UpdateFrameEnd ; do nothing else (counter loaded with 0 (256) frame wait)
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_ENVELOPE",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_ENVELOPE",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_ENVELOPE:
ld a,[de]
inc de
ld hl,wChannelVol4
or [hl]
ldh [rAUD4ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter4],a
ENDC
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_STARTFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_STARTFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_STARTFREQ:
ld a,[de]
inc de
ldh [rAUD4POLY],a
ld a,[de]
inc de
ldh [rAUD4GO],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_ENVELOPEVOL",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_ENVELOPEVOL",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_ENVELOPEVOL:
ld a,[de]
inc de
ldh [rAUD4ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter4],a
ENDC
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_STARTENVVOLFREQ",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_STARTENVVOLFREQ",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_STARTENVVOLFREQ:
ld a,[de]
inc de
ldh [rAUD4ENV],a
IF (SOUNDSYSTEM_ENABLE_VUM)
swap a
and $0F
ld [wVUMeter4],a
ENDC
ld a,[de]
inc de
ldh [rAUD4POLY],a
ld a,[de]
inc de
ldh [rAUD4GO],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_PANMID",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_PANMID",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_PANMID:
ld hl,wMusicSFXPanning
ld a,AUDTERM_4_LEFT|AUDTERM_4_RIGHT
or [hl]
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_PANRIGHT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_PANRIGHT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_PANRIGHT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_4_RIGHT
or [hl]
and AUDTERM_4_LEFT ^ $FF ; same as ~, but ~ here triggers a false warning
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_PANLEFT",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_PANLEFT",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_PANLEFT:
ld hl,wMusicSFXPanning
ld a,AUDTERM_4_LEFT
or [hl]
and ~AUDTERM_4_RIGHT
ld [hl],a
ldh [rAUDTERM],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_POLYLOAD",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_POLYLOAD",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_POLYLOAD:
ld a,[de]
inc de
ldh [rAUD4POLY],a
jp SSFP_Inst4Update
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem_SSFP_Inst4_CMD_LEN",ROM0
ELSE
SECTION "SoundSystem_SSFP_Inst4_CMD_LEN",ROMX,BANK[SOUNDSYSTEM_CODE_BANK]
ENDC
SSFP_Inst4_CMD_LEN:
ld a,[de]
inc de
ldh [rAUD4LEN],a
jp SSFP_Inst4Update
;***************************************************************************************************************************
;* tables of fx/command handlers
;***************************************************************************************************************************
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Music FX Table 1",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Music FX Table 1",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_MusicFX_JumpTable1:
DW $0000 ; dummy
DW SSFP_MUSIC_FX1_VIB1
DW SSFP_MUSIC_FX1_VIB2
DW SSFP_MUSIC_FX1_TF1
DW SSFP_MUSIC_FX1_TF2
DW SSFP_MUSIC_FX1_TF3
DW SSFP_MUSIC_FX1_PITCHUP
DW SSFP_MUSIC_FX1_PITCHDOWN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Music FX Table 2",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Music FX Table 2",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_MusicFX_JumpTable2:
DW $0000 ; dummy
DW SSFP_MUSIC_FX2_VIB1
DW SSFP_MUSIC_FX2_VIB2
DW SSFP_MUSIC_FX2_TF1
DW SSFP_MUSIC_FX2_TF2
DW SSFP_MUSIC_FX2_TF3
DW SSFP_MUSIC_FX2_PITCHUP
DW SSFP_MUSIC_FX2_PITCHDOWN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Music FX Table 3",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Music FX Table 3",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_MusicFX_JumpTable3:
DW $0000 ; dummy
DW SSFP_MUSIC_FX3_VIB1
DW SSFP_MUSIC_FX3_VIB2
DW SSFP_MUSIC_FX3_TF1
DW SSFP_MUSIC_FX3_TF2
DW SSFP_MUSIC_FX3_TF3
DW SSFP_MUSIC_FX3_PITCHUP
DW SSFP_MUSIC_FX3_PITCHDOWN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Music Table",ROM0,ALIGN[6]
ELSE
SECTION "SoundSystem Music Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[6]
ENDC
SSFP_Music_JumpTable:
DW SSFP_MUSIC_CMD_ENDOFFRAME
DW SSFP_MUSIC_CMD_PLAYINSTNOTE
DW SSFP_MUSIC_CMD_PLAYINST
DW SSFP_MUSIC_CMD_SETVOLUME
DW SSFP_MUSIC_CMD_VIBRATO_ON
DW SSFP_MUSIC_CMD_EFFECT_OFF
DW SSFP_MUSIC_CMD_SYNCFLAG
DW SSFP_MUSIC_CMD_ENDOFPATTERN
DW SSFP_MUSIC_CMD_GOTOORDER
DW SSFP_MUSIC_CMD_ENDOFSONG
DW SSFP_MUSIC_CMD_SETSPEED
DW SSFP_MUSIC_CMD_ENDOFFRAME1X
DW SSFP_MUSIC_CMD_ENDOFFRAME2X
DW SSFP_MUSIC_CMD_ENDOFFRAME3X
DW SSFP_MUSIC_CMD_ENDOFFRAME4X
DW SSFP_MUSIC_CMD_PITCHUP_ON
DW SSFP_MUSIC_CMD_PITCHDOWN_ON
DW SSFP_MUSIC_CMD_TRIPLENOTE_ON
DW SSFP_MUSIC_CMD_EXTRA
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Inst1 Table",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Inst1 Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_Inst1_JumpTable: ; common commands
DW SSFP_Inst1_CMD_FRAMEEND
DW SSFP_Inst1_CMD_START
DW SSFP_Inst1_CMD_END
DW SSFP_Inst1_CMD_ENVELOPE
DW SSFP_Inst1_CMD_STARTFREQ
DW SSFP_Inst1_CMD_ENVELOPEVOL
DW SSFP_Inst1_CMD_STARTENVVOLFREQ
DW SSFP_Inst1_CMD_PANMID
DW SSFP_Inst1_CMD_PANRIGHT
DW SSFP_Inst1_CMD_PANLEFT
; specific commands
DW SSFP_Inst1_CMD_PULSELEN
DW SSFP_Inst1_CMD_SWEEP
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Inst2 Table",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Inst2 Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_Inst2_JumpTable: ; common commands
DW SSFP_Inst2_CMD_FRAMEEND
DW SSFP_Inst2_CMD_START
DW SSFP_Inst2_CMD_END
DW SSFP_Inst2_CMD_ENVELOPE
DW SSFP_Inst2_CMD_STARTFREQ
DW SSFP_Inst2_CMD_ENVELOPEVOL
DW SSFP_Inst2_CMD_STARTENVVOLFREQ
DW SSFP_Inst2_CMD_PANMID
DW SSFP_Inst2_CMD_PANRIGHT
DW SSFP_Inst2_CMD_PANLEFT
; specific commands
DW SSFP_Inst2_CMD_PULSELEN
DW SSFP_Inst2_CMD_SWEEP
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Inst3 Table",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Inst3 Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_Inst3_JumpTable: ; common commands
DW SSFP_Inst3_CMD_FRAMEEND
DW SSFP_Inst3_CMD_START
DW SSFP_Inst3_CMD_END
DW SSFP_Inst3_CMD_ENVELOPEVOL ; prevent crash
DW SSFP_Inst3_CMD_STARTFREQ
DW SSFP_Inst3_CMD_ENVELOPEVOL
DW SSFP_Inst3_CMD_STARTENVVOLFREQ
DW SSFP_Inst3_CMD_PANMID
DW SSFP_Inst3_CMD_PANRIGHT
DW SSFP_Inst3_CMD_PANLEFT
; specific commands
DW SSFP_Inst3_CMD_WAVE
DW SSFP_Inst3_CMD_LEN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Inst4 Table",ROM0,ALIGN[5]
ELSE
SECTION "SoundSystem Inst4 Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[5]
ENDC
SSFP_Inst4_JumpTable: ; common commands
DW SSFP_Inst4_CMD_FRAMEEND
DW SSFP_Inst4_CMD_START
DW SSFP_Inst4_CMD_END
DW SSFP_Inst4_CMD_ENVELOPE
DW SSFP_Inst4_CMD_STARTFREQ
DW SSFP_Inst4_CMD_ENVELOPEVOL
DW SSFP_Inst4_CMD_STARTENVVOLFREQ
DW SSFP_Inst4_CMD_PANMID
DW SSFP_Inst4_CMD_PANRIGHT
DW SSFP_Inst4_CMD_PANLEFT
; specific commands
DW SSFP_Inst4_CMD_POLYLOAD
DW SSFP_Inst4_CMD_LEN
; --------------------------------------------------------------------------------------------------------------------------
IF (SOUNDSYSTEM_CODE_BANK == 0)
SECTION "SoundSystem Frequency Table",ROM0,ALIGN[8]
ELSE
SECTION "SoundSystem Frequency Table",ROMX,BANK[SOUNDSYSTEM_CODE_BANK],ALIGN[8]
ENDC
FrequencyTable:
; C C#/Db D D#/Eb E F F#/Gb G G#/Ab A A#/Bb B
DW $0020,$0091,$00FC,$0160,$01C0,$0219,$026E,$02BE,$030a,$0351,$0394,$03D4 ; octave 2
DW $0410,$0448,$047E,$04B0,$04E0,$050D,$0537,$055F,$0585,$05A8,$05Ca,$05EA ; octave 3
DW $0608,$0624,$063F,$0658,$0670,$0686,$069C,$06B0,$06C2,$06D4,$06E5,$06F5 ; octave 4
DW $0704,$0712,$071F,$072C,$0738,$0743,$074E,$0758,$0761,$076a,$0773,$077A ; octave 5
DW $0782,$0789,$0790,$0796,$079C,$07A2,$07A7,$07AC,$07B1,$07B5,$07B9,$07BD ; octave 6
DW $07C1,$07C5,$07C8,$07CB,$07CE,$07D1,$07D3,$07D6,$07D8,$07DB,$07DD,$07DF ; octave 7
|
LXI H,2060
MOV A,M
INX H
MOV B,M
ADD B
STA 2070
JC L1
L2: HLT
L1: MVI A,01
STA 2071
JMP L2
// to store the memory contents
# ORG 2060H
# DB FFH,FFH
|
; A170473: Number of reduced words of length n in Coxeter group on 32 generators S_i with relations (S_i)^2 = (S_i S_j)^45 = I.
; 1,32,992,30752,953312,29552672,916132832,28400117792,880403651552,27292513198112,846067909141472,26228105183385632,813071260684954592,25205209081233592352,781361481518241362912,24222205927065482250272
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
div $3,$2
mul $2,31
lpe
mov $0,$2
div $0,31
|
DATA SEGMENT
X1 DW 28H
X2 DW 38H
X3 DW 48H
Y DW ?
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AX,X1
ADD AX,X2
ADD AX,X3
MOV Y,AX
MOV AH,4CH
INT 21H
CODE ENDS
END START
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GlobalPC 1998 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Video Drivers
FILE: vga16Pointer.asm
AUTHOR: Jim DeFrisco, Oct 8, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 10/ 8/92 Initial revision
DESCRIPTION:
These are a set of routines to support the use of a cursor for
the pointing device.
The cursor is limited to a 16x16 pixel bitmap (by the sizing
of the holding buffers).
The definition of a pointer allows for the specification of a "hot
spot". This indicates where on the cursor shape the "current
position" should be reported as.
The way the mask and image are combined with the background are as
follows:
mask image -> screen
pixel pixel pixel
----- ----- ------
0 0 unchanged
0 1 xor
1 0 black
1 1 white
For the 8-bit video drivers, we need to store the image in a
buffer local to the video driver. Since there is no shifting
required, we only need to establish the size of the transfer and
the starting positions.
(screen AND (not MASK)) XOR IMAGE
We'll also use a local buffer to store the image the cursor sits
on top of.
$Id: vga16Pointer.asm,v 1.2$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VidHidePtr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Erase the graphics pointer
CALLED BY: EXTERNAL
PASS: nothing
RETURN: nothing
DESTROYED: if (EraseCursor called)
ax,bx,cx,dx,si,di,bp,es are destroyed
else
nothing destroyed
PSEUDO CODE/STRATEGY:
increment the visible count
If the visible count is 1
erase the cursor
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 10/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VidHidePtr proc near
inc cs:[cursorCount] ; increment the nesting count
cmp cs:[cursorCount],1 ; if the cursor wasn't showing
jnz VHP_done ; then all done
push es
push ds
mov cx, cs
mov ds, cx
call EraseCursor ; else erase it
pop ds
pop es
VHP_done:
ret
VidHidePtr endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VidShowPtr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Draw the graphics pointer
CALLED BY: EXTERNAL
PASS: nothing
RETURN: nothing
DESTROYED: if pointer is redrawn
ax,bx,cx,dx,si,di,bp
else
cx, di destroyed
PSEUDO CODE/STRATEGY:
If the visible count is 0
draw the cursor
else
just decrement the count
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 10/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VidShowPtr proc near
dec cs:[cursorCount] ; set new value for nest count
EC < ERROR_S VIDEO_HIDE_CURSOR_COUNT_UNDERFLOW >
jnz VShP_done
push es
push ds
mov cx, cs
mov ds, cx
call DrawCursor ; yes, draw it
pop ds
pop es
VShP_done:
ret
VidShowPtr endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VidMovePtr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Update the position of the pointer
CALLED BY: INTERNAL
PASS: ax - new x position
bx - new y position
RETURN: al - mask of save-under areas that pointer hot-spot
overlaps with
DESTROYED: ah,bx,cx,dx,si,di,bp
PSEUDO CODE/STRATEGY:
if (cursor is showing)
erase it;
translate position to account for hot point;
update the position variables;
if (cursor was showing)
draw it;
test for save-under overlaps;
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 10/92... Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VidMovePtr proc near
mov cx,cs
mov ds,cx
; erase cursor if visible
cmp cs:[cursorCount],0
jnz AfterCursorRedrawn
push ax
push bx
call EraseCursor
; if moving XOR region with pointer then do special stuff
cmp cs:[xorFlags], 0
jz noXOR
pop bx
pop ax
push ax
push bx
sub ax, cs:[cursorX]
sub bx, cs:[cursorY]
call UpdateXORForPtr
noXOR:
; store new position
pop ds:[cursorY]
pop ds:[cursorX]
call DrawCursor
jmp common
AfterCursorRedrawn:
; store new position
mov ds:[cursorX],ax
mov ds:[cursorY],bx
common:
; cmp cs:[suCount], 0 ; any active save under areas?
; jne CheckSUAreas
clr al
ret
if (0)
CheckSUAreas:
mov ax, ds:[cursorX] ; Fetch location to check at
mov bx, ds:[cursorY]
mov cx, ax ; Pass rectangle = point
mov dx, bx
GOTO VidCheckUnder
endif
VidMovePtr endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
VidSetPtr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the picture data for the pointer cursor
CALLED BY: EXTERNAL
PASS: ds:si contains a far pointer to the following structure:
PointerDef defined in cursor.def
if si == -1, then the default pointer shape is used
RETURN: nothing
DESTROYED: (if pointer erased and redrawn)
ax,bx,cx,dx,si,di,bp,ds
else
ax,bx,cx,si,di,bp,ds
PSEUDO CODE/STRATEGY:
pre-shift and store the correct mask and image data into
some extra screen memory
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Currently cursor size is fixed at 16x16 pixels. The
pointer definition structure contains width and height
fields anyway.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 10/92... Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
VidSetPtr proc near
push es
cmp cs:[cursorCount], 0 ; see if it's currently on-screen
jnz VSPnoshow ; no, safe to proceed
push ds ; save passed params
push si
segmov ds, cs ; erase cursor wants ds -> cs
call EraseCursor ; yes, restore screen before changing
pop si
pop ds
VSPnoshow:
cmp si, -1 ;custom pointer ?
jne VSP_custom
segmov ds,cs
mov si, offset pBasic
VSP_custom:
; ds:si = structure
; translate old current position to new one, based on new hotpoint
EC < mov bl, ds:[si].PD_width >
EC < and bl, mask PDW_WIDTH ; Get width portion of byte >
EC < cmp bl, 16 ; only support these for now >
EC < ERROR_NE VIDEO_ONLY_SUPPORTS_16x16_CURSORS >
mov bx, {word}ds:[si][PD_hotX] ;bl = hotX, bh = hotY
if ALLOW_BIG_MOUSE_POINTER
cmp cs:[cursorSize], CUR_SIZE ;adjust hotX, hotY if double
je bp0 ; sized mouse pointer
add bx, bx ;bl = hotX, bh = hotY
bp0:
endif ; ALLOW_BIG_MOUSE_POINTER
mov cs:[cursorHotX], bl ; store new x hot point
mov cs:[cursorHotY], bh ; store new y hot point
; get pointer to cursor data. We're going to copy the data to the area
; just past the bottom of the screen. First the mask, with 8 copies
; (each 3 bytes) each shifted one more pixel to the right. This is
; followed by the same treatment for the data.
add si, size PointerDef ; ds:si -> mask data
; set the destination to be the buffer we have to store the mask
segmov es, cs
mov di, offset ptrMaskBuffer
mov cx, (size ptrMaskBuffer)/2 ; clearing mask
mov ax, 0xffff
rep stosw
mov cx, (size ptrMaskBuffer)/2 ; clearing picture
mov ax, 0xffff
rep stosw
if ALLOW_BIG_MOUSE_POINTER
cmp cs:[cursorSize], CUR_SIZE
jne setBigPointer
endif ; ALLOW_BIG_MOUSE_POINTER
; first do the mask.
mov di, offset ptrMaskBuffer
mov dx, CUR_SIZE ; 16 scan lines
maskLoop:
lodsw ; get next word (scan) of mask data
xchg al,ah
mov bx, ax
clr ax
mov cx, CUR_SIZE ; 16 pixels/scan
mPixLoop:
shl bx, 1 ; top bit into carry
jnc mSkipOne
mov es:[di], ax
mSkipOne:
inc di
inc di
loop mPixLoop ; do entire scan line
dec dx
jnz maskLoop ; do all of mask
; now do the picture data.
mov di, offset ptrMaskBuffer + size ptrMaskBuffer
mov dx, CUR_SIZE ; 16 scan lines
pictureLoop:
lodsw ; get next word (scan) of picture data
xchg al,ah
mov bx, ax
clr ax
mov cx, CUR_SIZE ; 16 pixels/scan
pPixLoop:
shl bx, 1 ; top bit into carry
jc pSkipOne
mov es:[di], ax
pSkipOne:
inc di
inc di
loop pPixLoop ; do entire scan line
dec dx
jnz pictureLoop ; do all of mask
drawCursor::
; draw new cursor
cmp cs:[cursorCount],0
jnz VSP_done
push ds
segmov ds, cs ;EraseCursor wants ds == cs
call DrawCursor
pop ds
VSP_done:
pop es
ret
if ALLOW_BIG_MOUSE_POINTER
setBigPointer:
;; set big mouse pointer
mov di, offset ptrMaskBuffer
mov dx, CUR_SIZE ; 16 scan lines
bpMaskLoop:
lodsw ; get next word (scan) of mask data
xchg al, ah
mov bx, ax
clr ax
mov cx, CUR_SIZE ; 16 pixels/scan
bpmPixLoop:
shl bx, 1 ; top bit into carry
jnc bpmSkipOne
mov es:[di], ax
mov es:[di+2], ax ; do 2 pixels
mov es:[di+CUR_SIZE*4], ax
mov es:[di+CUR_SIZE*4+2],ax ; do 2 pixels on next scanline
bpmSkipOne:
add di, 4
loop bpmPixLoop ; do entire scan line
add di, CUR_SIZE*4 ; skip to next scanline
dec dx
jnz bpMaskLoop ; do all of mask
; now do the picture data.
mov dx, CUR_SIZE ; 16 scan lines
bpPictureLoop:
lodsw ; get next word (scan) of picture data
xchg al, ah
mov bx, ax
clr ax
mov cx, CUR_SIZE ; 16 pixels/scan
bppPixLoop:
shl bx, 1 ; top bit into carry
jc bppSkipOne
mov es:[di], ax
mov es:[di+2], ax ; do 2 pixels
mov es:[di+CUR_SIZE*4], ax
mov es:[di+CUR_SIZE*4+2],ax ; do 2 pixels on next scanline
bppSkipOne:
add di, 4
loop bppPixLoop ; do entire scan line
add di, CUR_SIZE*4 ; skip to next scanline
dec dx
jnz bpPictureLoop ; do all of mask
jmp drawCursor
endif ; ALLOW_BIG_MOUSE_POINTER
VidSetPtr endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CondHidePtr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Temporarily hide the pointer while in a drawing operation
CALLED BY: INTERNAL
CommonRectHigh
PASS:
RETURN:
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jim 9/28/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CondHidePtr proc near
cmp cs:[cursorCount],0 ;test for hidden
jnz THP_ret
cmp cs:[hiddenFlag],0
jnz THP_ret
push ax, bx, cx, dx, si, di, bp, ds, es
segmov ds,cs ;point at variables
mov ds:[hiddenFlag],1 ;set hidden
call EraseCursor
pop ax, bx, cx, dx, si, di, bp, ds, es
THP_ret:
ret
CondHidePtr endp
public CondHidePtr
CondShowPtrFar proc far
push bp
call CondShowPtr
pop bp
ret
CondShowPtrFar endp
CondShowPtr proc near
push ds, es
segmov ds,cs ;point at variables
mov ds:[hiddenFlag],0
call DrawCursor
pop ds, es
ret
CondShowPtr endp
public CondShowPtr
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DrawCursor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Draw the cursor when the optimization variables might be
incorrect
CALLED BY: INTERNAL
VidSetPtr, VidMovePtr
PASS: cursorX, cursorY - cursor position
cursorHotX, cursorHotY - cursor hot spot
RETURN:
DESTROYED:
ax, bx, cx, dx, si, di, bp, ds, es
PSEUDO CODE/STRATEGY:
We have pre-shifted versions of the cursor mask and image.
So we want to figure out which one to use (low three bits)
and do the right transfer (on byte boundaries), taking into
account any clipping (transfer fewer bytes if clipped).
To effect the transfer, we use the bitblt hardware on the
casio device. The BIOS calls are:
SET_DMA_TRANSFER_OFFSET(mask)
DO_DMA_TRANSFER(OR mode)
SET_DMA_TRANSFER_OFFSET(picture)
DO_DMA_TRANSFER(XOR mode)
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jim 9/28/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DrawCursor proc near
uses ax, bx, cx, dx, si, di, bp
.enter
mov ax, cs:[cursorX] ; calc position to draw
mov bx, cs:[cursorY]
sub al, cs:[cursorHotX]
sbb ah, 0
sub bl, cs:[cursorHotY]
sbb bh, 0 ; ax,bx = cursor position
; we'll need to calc the width and the height of the
; transfer, so start out by assuming the full cursor size
; cl = width, ch = height, dl = left offset, dh = scan offset
clr dx
mov cl, {byte}cs:[cursorSize]
mov ch, cl
; do different stuff if off left of screen
tst ax ; check for neg coord
LONG js offLeft
; OK, it may be entirely inside the screen. Check the right.
mov si, cs:[DriverTable].VDI_pageW ; get right side coord
sub si, cs:[cursorSize]
cmp ax, si ; check right side
LONG ja offRight ; else clip right side
; If we are off the screen on top, then we need to adjust
; the Y offset, else we are starting from scan line 320.
checkHeight:
tst bx ; see if off the top
LONG js offTop ; take less-traveled road
mov si, cs:[DriverTable].VDI_pageH
sub si, cs:[cursorSize]
cmp bx, si ; check off the bottom too
LONG ja offBottom
; all ready to set the offsets, go for it.
; cl = width, ch = height, dl = left offset, dh = scan offset
; usage:ds:si -> pointer data
; es:di -> frame buffer
; bx = offset into scan line
; dx = offset from one scan line to the next
; bp = bytes left in this window
; ah = height
calcIndex:
mov cs:[cursorRegLeft], ax
mov cs:[cursorRegTop], bx
add al, cl
adc ah, 0
dec ax
mov cs:[cursorRegRight], ax
inc ax
sub al, cl
sbb ah, 0
add bl, ch
adc bh, 0
dec bx
mov cs:[cursorRegBottom], bx
inc bx
sub bl, ch
sbb bh, 0
mov cs:[backX], ax
mov cs:[backY], bx
mov cs:[backWidth], cl
mov cs:[backHeight], ch
push ax
mov al, dh
mul {byte}cs:[cursorSize] ; *cursorSize for scan index
clr dh
add dx, ax ; dx = index into picture
add dx, dx ; dx = byte offset into picture
pop ax
mov si, offset ptrMaskBuffer ; figure source address
add si, dx ;
segmov ds, cs ; ds:si -> maskBuffer (source)
mov di, bx
mov bx, ax
shl bx, 1
CalcScanLineBoth di, bx, es, ds ; ds,es:[di] -> destination
shr bx, 1
mov bp, cs:[curWinEnd] ; calc #bytes left
sub bp, di ; bp = #bytes left
mov ax, cs:[modeInfo].VMI_scanSize ; get bytes per scan
mul cs:[cursorSize]
cmp ax, bp ; going to overflow window ?
mov ah, ch ; ah = height
mov bx, offset cs:backBuffer
ja careScanLoop
; finally, draw the sucker
; ds:di -> frame buffer (read window)
; es:di -> frame buffer (write window)
; cl - width loop counters
; ah - height loop counter
; al - scratch register
; cs:si - offset into cursor definition buffer
; cs:bx - offset into background save buffer
drawLoop:
mov ch, cl ; reload width
push ax
pixLoop:
mov ax, ds:[di] ; get screen data
mov cs:[bx], ax ; store background
and ax, cs:[si] ; or in the mask
xor ax, cs:[si+(size ptrMaskBuffer)] ; xor the picture data
stosw
inc si
inc si
inc bx
inc bx
dec ch
jnz pixLoop
pop ax
shl cx, 1 ; 1 pixel = 2 bytes
sub di, cx
add si, cs:[cursorSize]
add si, cs:[cursorSize]
sub si, cx
shr cx, 1
add di, cs:[modeInfo].VMI_scanSize
dec ah
jnz drawLoop
done:
.leave
ret
; off the left side of the screen. This gets a bit complex.
offLeft:
neg ax ; that many bits over
mov dl, al ; start in from the left
sub cl, al ; that means fewer scans
clr ax
jmp checkHeight
; off the right side of the screen. This just means we
; transfer fewer bytes in width.
offRight:
sub si, ax ; assume one less
xchg si, ax
add cl, al ; cl = #bytes wide
xchg si, ax
jmp checkHeight
; the cursor is off the top of the screen. Adjust accordingly
offTop:
neg bx ; bl = #scans off top
mov dh, bl ; dh = scan index
sub ch, bl ; do that many less
clr bx
jmp calcIndex
; this is simple. We just need to reduce the number of scan
; lines to copy.
offBottom:
sub si, bx ; bx = -(#lines to shorten)
xchg si, bx
add ch, bl ; make it shorter
xchg si, bx
jmp calcIndex
; section of code to deal with drawing the cursor when we
; are getting close to the end of the memory window.
careScanLoop:
mov ch, cl ; reload width
push ax
carePixLoop:
mov ax, ds:[di] ; get screen data
mov cs:[bx], ax ; store to background buffer
and ax, cs:[si] ; or in the mask
xor ax, cs:[si+(size ptrMaskBuffer)] ; xor the picture data
stosw
inc bx ; next background byte
inc bx
inc si ; next cursor picture byte
inc si
dec ch
jnz carePixLoop
pop ax
shl cx, 1 ; 1 pixel = 2 bytes
sub di, cx
add si, cs:[cursorSize]
add si, cs:[cursorSize]
sub si, cx
shr cx, 1
dec ah
jz done
NextScanBoth di
jnc careScanLoop
cmp cx, cs:[pixelsLeft] ; if big enuf, just do it
jbe careScanLoop
mov ch, cs:[pixelsLeft].low
push ax
splitScanLoop:
mov ax, ds:[di] ; get screen data
mov cs:[bx], ax ; store to background buffer
and ax, cs:[si] ; or in the mask
xor ax, cs:[si+(size ptrMaskBuffer)] ; xor the picture data
stosw
inc bx ; next background byte
inc bx
inc si ; next cursor picture byte
inc si
dec ch
jnz splitScanLoop
pop ax
call MidScanNextWinSrc
call MidScanNextWin
mov ch, cl
sub ch, cs:[pixelsLeft].low
push ax
splitScanLoop2:
mov ax, ds:[di] ; get screen data
mov cs:[bx], ax ; store to background buffer
and ax, cs:[si] ; or in the mask
xor ax, cs:[si+(size ptrMaskBuffer)] ; xor the picture data
stosw
inc bx ; next background byte
inc bx
inc si ; next cursor picture byte
inc si
dec ch
jnz splitScanLoop2
pop ax
dec ah
LONG jz done
FirstWinScan
jmp careScanLoop
DrawCursor endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EraseCursor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Erase the cursor
CALLED BY: INTERNAL
VidSetPtr, VidMovePtr
PASS: cursorByteX - cursor byte x position
cursorScreenAddr - screen address to start at
cursorLines - number of lines to draw
cursorBuffer - data to recover
ds - cs
RETURN:
DESTROYED:
ax, bx, cx, dx, si, di, bp
PSEUDO CODE/STRATEGY:
This is much easier than drawing the cursor -- we just have
to copy the corresponding area from VRAM to DDRAM.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jim 9/28/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
EraseCursor proc near
uses ax, si, ds, di, es, bx, cx
.enter
mov ax, cs:[backX]
mov bx, cs:[backY]
mov cl, cs:[backWidth]
mov ch, cs:[backHeight]
; get ds:si -> frame buffer
mov di, bx
shl ax, 1
CalcScanLine di, ax, es ; es:di -> frame buffer
shr ax, 1
segmov ds, cs, si
mov si, offset backBuffer ; ds:si -> save area
mov ax, cs:[modeInfo].VMI_scanSize
mov bx, ax ; save another copy
mul cs:[cursorSize]
add ax, di
jc partialWindow
cmp ax, cs:[curWinEnd] ; calc #bytes left
jae partialWindow
; the area is entirely inside the current memory window,
; DO IT FAST !
mov ax, bx ; restore scan size
mov bh, ch ; scan line counter
mov bl, cl ; save copy of pixel counter
clr ch
sub ax, cx ; distance to next scan
sub ax, cx
scanLoop:
mov cl, bl ; set up width
rep movsw
add di, ax ; onto next scan line
dec bh
jnz scanLoop
done:
.leave
ret
; part of cursor is in the next window
partialWindow:
mov ax, bx ; restore scan size
mov bh, ch
mov bl, cl
clr ch
partLoop:
mov cl, bl
rep movsw
mov cl, bl
sub di, cx
sub di, cx
doneScan::
dec bh
jz done
NextScan di, ax
jnc partLoop
mov cl, bl
cmp cx, cs:[pixelsLeft]
jbe partLoop
mov cx, cs:[pixelsLeft]
rep movsw
call MidScanNextWin
mov cl, bl
sub cx, cs:[pixelsLeft]
rep movsw
dec bh
jz done
FirstWinScan
jmp partLoop
EraseCursor endp
|
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQuickStyle>
int main(int argc, char *argv[])
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QGuiApplication app(argc, argv);
QQuickStyle::setStyle("Material");
QQmlApplicationEngine engine;
const QUrl url(QStringLiteral("qrc:/main.qml"));
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
&app, [url](QObject *obj, const QUrl &objUrl) {
if (!obj && url == objUrl)
QCoreApplication::exit(-1);
}, Qt::QueuedConnection);
engine.load(url);
return app.exec();
}
|
/*
* Copyright © 2007,2008,2009 Red Hat, Inc.
* Copyright © 2012,2013 Google, Inc.
* Copyright © 2019, Facebook Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copyright notice and the following two paragraphs appear in
* all copies of this software.
*
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*
* Red Hat Author(s): Behdad Esfahbod
* Google Author(s): Behdad Esfahbod
* Facebook Author(s): Behdad Esfahbod
*/
#ifndef HB_OT_FACE_TABLE_LIST_HH
#define HB_OT_FACE_TABLE_LIST_HH
#endif /* HB_OT_FACE_TABLE_LIST_HH */ /* Dummy header guards */
#ifndef HB_OT_ACCELERATOR
#define HB_OT_ACCELERATOR(Namespace, Type) HB_OT_TABLE (Namespace, Type)
#define _HB_OT_ACCELERATOR_UNDEF
#endif
/* This lists font tables that the hb_face_t will contain and lazily
* load. Don't add a table unless it's used though. This is not
* exactly zero-cost. */
/* v--- Add new tables in the right place here. */
/* OpenType fundamentals. */
HB_OT_TABLE (OT, head)
#if !defined(HB_NO_FACE_COLLECT_UNICODES) || !defined(HB_NO_OT_FONT)
HB_OT_ACCELERATOR (OT, cmap)
#endif
HB_OT_TABLE (OT, hhea)
HB_OT_ACCELERATOR (OT, hmtx)
HB_OT_TABLE (OT, OS2)
#if !defined(HB_NO_OT_FONT_GLYPH_NAMES) || !defined(HB_NO_METRICS) || !defined(HB_NO_STYLE)
HB_OT_ACCELERATOR (OT, post)
#endif
#ifndef HB_NO_NAME
HB_OT_ACCELERATOR (OT, name)
#endif
#ifndef HB_NO_STYLE
HB_OT_TABLE (OT, STAT)
#endif
#ifndef HB_NO_META
HB_OT_ACCELERATOR (OT, meta)
#endif
/* Vertical layout. */
HB_OT_TABLE (OT, vhea)
HB_OT_ACCELERATOR (OT, vmtx)
/* TrueType outlines. */
HB_OT_ACCELERATOR (OT, glyf)
/* CFF outlines. */
#ifndef HB_NO_CFF
HB_OT_ACCELERATOR (OT, cff1)
HB_OT_ACCELERATOR (OT, cff2)
HB_OT_TABLE (OT, VORG)
#endif
/* OpenType variations. */
#ifndef HB_NO_VAR
HB_OT_TABLE (OT, fvar)
HB_OT_TABLE (OT, avar)
HB_OT_ACCELERATOR (OT, gvar)
HB_OT_TABLE (OT, MVAR)
#endif
/* Legacy kern. */
#ifndef HB_NO_OT_KERN
HB_OT_TABLE (OT, kern)
#endif
/* OpenType shaping. */
#ifndef HB_NO_OT_LAYOUT
HB_OT_ACCELERATOR (OT, GDEF)
HB_OT_ACCELERATOR (OT, GSUB)
HB_OT_ACCELERATOR (OT, GPOS)
//HB_OT_TABLE (OT, JSTF)
#endif
/* OpenType baseline. */
#ifndef HB_NO_BASE
HB_OT_TABLE (OT, BASE)
#endif
/* AAT shaping. */
#ifndef HB_NO_AAT
HB_OT_TABLE (AAT, morx)
HB_OT_TABLE (AAT, mort)
HB_OT_TABLE (AAT, kerx)
HB_OT_TABLE (AAT, ankr)
HB_OT_TABLE (AAT, trak)
HB_OT_TABLE (AAT, ltag)
HB_OT_TABLE (AAT, feat)
// HB_OT_TABLE (AAT, opbd)
#endif
/* OpenType color fonts. */
#ifndef HB_NO_COLOR
HB_OT_TABLE (OT, COLR)
HB_OT_TABLE (OT, CPAL)
HB_OT_ACCELERATOR (OT, CBDT)
HB_OT_ACCELERATOR (OT, sbix)
HB_OT_ACCELERATOR (OT, SVG)
#endif
/* OpenType math. */
#ifndef HB_NO_MATH
HB_OT_TABLE (OT, MATH)
#endif
#ifdef _HB_OT_ACCELERATOR_UNDEF
#undef HB_OT_ACCELERATOR
#endif
|
# Trevor Hickey
# Prof. Bennett
# CSCI 312 Spring 2012
# EASTER 2012!!!! ()()()
# Code was written in MARS 4.2
#-----------------------------------------------------------------------------------------------------+
# Program Description: |
# This program uses the Heap Permutation algorithm to generate all 362,880 posibilities for |
# a 3x3 grid of single valued integers. |
# Each index of the 3x3 grid is a unique value between or including 1 to 9 |
# Each posibility will be analyzed to see if it is a magic square. |
#+--------------------------------------------------------------+ +-----------------------------------+
#| These are the 8 perfect squares generated: | | All rows, columns and diagonals |
#| +---+---+---+ +---+---+---+ +---+---+---+ +---+---+---+| | sum to 15 |
#| | 2 | 9 | 4 | | 2 | 7 | 6 | | 4 | 3 | 8 | | 4 | 9 | 2 || | |
#| +---+---+---+ +---+---+---+ +---+---+---+ +---+---+---+| | |
#| | 7 | 5 | 3 | | 9 | 5 | 1 | | 9 | 5 | 1 | | 3 | 5 | 7 || | |
#| +---+---+---+ +---+---+---+ +---+---+---+ +---+---+---+| | 15 15 15 15 |
#| | 6 | 1 | 8 | | 4 | 3 | 8 | | 2 | 7 | 6 | | 8 | 1 | 6 || | \ | | | / |
#| +---+---+---+ +---+---+---+ +---+---+---+ +---+---+---+| | +---+---+---+ |
#| | | | # | # | # |--15 |
#| +---+---+---+ +---+---+---+ +---+---+---+ +---+---+---+| | +---+---+---+ |
#| | 6 | 7 | 2 | | 6 | 1 | 8 | | 8 | 3 | 4 | | 8 | 1 | 6 || | | # | 5 | # |--15 |
#| +---+---+---+ +---+---+---+ +---+---+---+ +---+---+---+| | +---+---+---+ |
#| | 1 | 5 | 9 | | 7 | 5 | 3 | | 1 | 5 | 9 | | 3 | 5 | 7 || | | # | # | # |--15 |
#| +---+---+---+ +---+---+---+ +---+---+---+ +---+---+---+| | +---+---+---+ |
#| | 8 | 3 | 4 | | 2 | 9 | 4 | | 6 | 7 | 2 | | 4 | 9 | 2 || | / | | | \ |
#| +---+---+---+ +---+---+---+ +---+---+---+ +---+---+---+| | 15 |
#+--------------------------------------------------------------+ +-----------------------------------+
#+----------------------------------------------------------------------------------------------------+
#|00| C++ Code Implementation |
#|01| #include <iostream> |
#|02| #include <cstdlib> |
#|03| |
#|04| void HeapPermute(int len, int l[]); |
#|05| void PrintIfMagic(int len, int square[]); |
#|06| void Print(int len, int square[]); |
#|07| |
#|08| int main(){ |
#|09| |
#|10| int square[9] = {1,2,3,4,5,6,7,8,9}; |
#|11| |
#|12| HeapPermute(9,square); |
#|13| |
#|14| return EXIT_SUCCESS; |
#|15| } |
#|16| |
#|17| void HeapPermute(int len, int l[]){ |
#|18| if (len == 0){ |
#|19| PrintIfPerfect(9,l); |
#|20| } |
#|21| else{ |
#|22| for (int i = 0; i < len; ++i) { |
#|23| HeapPermute(len-1, l); |
#|24| |
#|25| if (len %2 ==1){ |
#|26| std::swap(l[0],l[len-1]); ///even |
#|27| } |
#|28| else{ |
#|29| std::swap(l[i],l[len-1]); ///odd |
#|30| } |
#|31| } |
#|32| } |
#|33| return; |
#|34| } |
#|35| void PrintIfMagic(int len, int square[]){ |
#|36| |
#|37| int value = square[0] + square[3] + square[6]; |
#|38| |
#|39| if (square[1] + square[4] + square[7] == value && |
#|40| square[2] + square[5] + square[8] == value && |
#|41| square[0] + square[1] + square[2] == value && |
#|42| square[3] + square[4] + square[5] == value && |
#|43| square[6] + square[7] + square[8] == value && |
#|44| square[0] + square[4] + square[8] == value && |
#|45| square[2] + square[4] + square[6] == value){ |
#|46| Print(9,square); |
#|47| } |
#|48| |
#|49| return; |
#|50| } |
#|51| void Print(int len, int square[]){ |
#|52| |
#|53| using std::cout; |
#|54| |
#|55| cout << square[0]; cout << square[1]; cout << square[2]<<'\n'; |
#|56| cout << square[3]; cout << square[4]; cout << square[5]<<'\n'; |
#|57| cout << square[6]; cout << square[7]; cout << square[8]<<'\n'<<'\n'; |
#|58| |
#|59| return; |
#|60| } |
#+----------------------------------------------------------------------------------------------------+
.data
square: .word 1,2,3,4,5,6,7,8,9 # a 1-dimensional array representing a 3X3 square
length: .word 9 # the length of the array
pipe: .asciiz "|"
endPipe: .asciiz "|\n"
message: .asciiz "| Magic Happened!\n"
endSquare: .asciiz "|\n\n"
.text
.globl main ####################
main: # Algorithm Number #
##################### ###############################################
# ASSEMBLY CODE # # SUDO CODE #
##################### ############################################### +-----------------------------------+
##Call HeapPermute # # # |--------Registers/Variables--------|
lw $a0, length # # Load in the array and it's length before # | |
la $a1, square # # calling: void HeapPermute(int len, int l[]) # | a0 = number of elements in array |
jal HEAP_PERMUTE # 12 # # | a1 = memory address of the array |
##################### ############################################### | |
##Exit Safely # # # | |
li $v0, 10 # 14 # return 0; # | |
syscall # # # | |
######################################################################## +-----------------------------------+
#----------------------------------------------------------------------#
HEAP_PERMUTE:#---------------------void HeapPermute(int len, int l[])--#
########################### #########################################
# ASSEMBLY CODE # # SUDO CODE #
########################### ######################################### +-----------------------------------+
#Setup Activation Record # # Manage Stack On Function Call # |--------Registers/Variables--------|
sw $fp,-4($sp) # # - save fp # | |
subiu $fp,$sp,4 # # - point fp at the top of frame # | t0 = number of elements in array |
sw $ra,-4($fp) # # - save ra in the frame # | t1 = memory address of the array |
subiu $sp,$fp,4 # # - set the sp for the new frame # | t3 = index of the for loop |
########################### # # | |
move $t0,$a0 # # Store Arguments # | a0 = length of array - 1 |
move $t1,$a1 # # # | a1 = memory address of the array |
########################### ######################################### | |
bne $t0, 1, ELSE # # # | |
subiu $sp, $sp, 8 # # Check and see if the square # | |
sw $t0, 0($sp) # # is a magic square. If it is, # | |
sw $t1, 4($sp) # # print the square # | |
move $a0, $t1 # # # | |
jal PRINT_IF_MAGIC # 19 # if (len == 0){ # | |
lw $t0, 0($sp) # # PrintIfMagic(9,l); # | |
lw $t1, 4($sp) # # } # | |
addiu $sp, $sp, 8 # # # +-----------------------------------+
j END_PERMUTE # # #
############################### #####################################
ELSE: # # #
move $t3, $zero #index # # #
FOR_LOOP: # 22 # for (int i=0; i<len; ++i) { #
bge $t3, $t0, END_PERMUTE # # #
subiu $sp, $sp, 16 # # #
sw $t0, 0($sp) # # #
sw $t1, 4($sp) # # #
sw $t2, 8($sp) # # Manage Stack #
sw $t3, 12($sp) # # On Recursive Call #
addi $a0, $t0, -1 # # #
move $a1, $t1 # # #
jal HEAP_PERMUTE # 23 # HeapPermute(len-1, l); #
lw $t0, 0($sp) # # #
lw $t1, 4($sp) # # Manage Stack #
lw $t2, 8($sp) # # After Recursive Call #
lw $t3, 12($sp) # # #
addiu $sp, $sp, 16 # # #
andi $t4, $t0, 1 # # #
SWAP_IF: # # #
bne $t4, 1, SWAP_ODD # 25 # if (len %2 ==1){ #
move $t5, $ra # # #
move $a0, $t1 # # #
sll $t6, $t0, 2 # # #
addi $t6, $t6, -4 # # #
add $a1, $t1, $t6 # # #
jal SWAP # 26 # swap(l[0],l[len-1]); #
move $ra, $t5 # 27 # } #
j END_SWAP # # #
SWAP_ODD: # 28 # else{ #
move $t5, $ra # # #
sll $t7, $t3, 2 # # #
add $a0, $t1, $t7 # # #
sll $t6, $t0, 2 # # #
addi $t6, $t6, -4 # # #
add $a1, $t1, $t6 # # #
jal SWAP # 29 # swap(l[i],l[len-1]); #
move $ra, $t5 # 30 # } #
END_SWAP: # # #
addi $t3, $t3, 1 # 31 # } #
j FOR_LOOP # # #
END_FOR_LOOP: # 32 # } #
END_PERMUTE: # # #
lw $ra, -4($fp) # # #
addiu $sp, $fp, 4 # # #
lw $fp, 0($fp) # # #
jr $ra # # #
#----------------------------------------------------------------------#
SWAP:#--------------------------------------void swap(value1, value2)--#
lw $t9, ($a0) #
lw $t8, ($a1) #
sw $t9, ($a1) #
sw $t8, ($a0) #
jr $ra #
########################################################################
#----------------------------------------------------------------------#
PRINT_IF_MAGIC:#-------------void PrintIfMagic(int len, int square[])--#
########################### #########################################
# ASSEMBLY CODE # # SUDO CODE #
########################### ######################################### +-----------------------------------+
#Setup Activation Record # # Manage Stack On Function Call # |--------Registers/Variables--------|
sw $fp,-4($sp) # # - save fp # | |
subiu $fp,$sp,4 # # - point fp at the top of frame # | t1 = array row value |
sw $ra,-4($fp) # # - save ra in the frame # | t2 = individual array value |
subiu $sp,$fp,4 # # - set the sp for the new frame # | t0 = memory address of the array |
######################################################################## +-----------------------------------+
move $t0, $a0
li $t1, 0 #value they should all equal
li $t2, 0 #individual value of rows,colums,diag
################################################################ +---+---+---+
#get the value of top row # # | ? + ? + ? = 15?
lw $t3, 0($t0) # # +---+---+---+
lw $t4, 4($t0) # # | # | # | # |
add $t1, $t3, $t4 # # +---+---+---+
lw $t3, 8($t0) # # | # | # | # |
add $t1, $t1, $t3 # # +---+---+---+
########################################################### #
#get the value of the second row # # +---+---+---+
lw $t3, 12($t0) # # | # | # | # |
lw $t4, 16($t0) # # +---+---+---+
add $t2, $t3, $t4 # # | ? + ? + ? = 15?
lw $t3, 20($t0) # # +---+---+---+
add $t2, $t2, $t3 # # | # | # | # |
########################################################### # +---+---+---+
bne $t1 $t2 END_PRINT # #
#get the value of the third row # # +---+---+---+
lw $t3, 24($t0) # # | # | # | # |
lw $t4, 28($t0) # # +---+---+---+
add $t2, $t3, $t4 # # | # | # | # |
lw $t3, 32($t0) # # +---+---+---+
add $t2, $t2, $t3 # # | ? + ? + ? = 15?
########################################################### # +---+---+---+
bne $t1 $t2 END_PRINT # #
#get the value of the first column # # +---+---+---+
lw $t3, 0($t0) # # | ? | # | # |
lw $t4, 12($t0) # # +-+-+---+---+
add $t2, $t3, $t4 # # | ? | # | # |
lw $t3, 24($t0) # # +-+-+---+---+
add $t2, $t2, $t3 # # | ? | # | # |
########################################################### # +---+---+---+
bne $t1 $t2 END_PRINT # # \\
#get the value of the second column # # +---+---+---+ 15?
lw $t3, 4($t0) # # | # | ? | # |
lw $t4, 16($t0) # # +---+-+-+---+
add $t2, $t3, $t4 # # | # | ? | # |
lw $t3, 28($t0) # # +---+-+-+---+
add $t2, $t2, $t3 # # | # | ? | # |
########################################################### # +---+---+---+
bne $t1 $t2 END_PRINT # # \\
#get the value of the third column # # 15? +---+---+---+
lw $t3, 8($t0) # # | # | # | ? |
lw $t4, 20($t0) # # +---+---+-+-+
add $t2, $t3, $t4 # # | # | # | ? |
lw $t3, 32($t0) # # +---+---+-+-+
add $t2, $t2, $t3 # # | # | # | ? |
########################################################### # +---+---+---+
bne $t1 $t2 END_PRINT # # +---+---+---+ \\
#get the value of diagonal # # | ? | # | # | 15?
lw $t3, 0($t0) # # +---+---+---+
lw $t4, 16($t0) # # | # | ? | # |
add $t2, $t3, $t4 # # +---+---+---+
lw $t3, 32($t0) # # | # | # | ? = 15?
add $t2, $t2, $t3 # # +---+---+---+
########################################################### #
bne $t1 $t2 END_PRINT # #
#get the value of other diagonal # #
lw $t3, 8($t0) # #
lw $t4, 16($t0) # #
add $t2, $t3, $t4 # #
lw $t3, 24($t0) # #
add $t2, $t2, $t3 # #
########################################################### #
bne $t1 $t2 END_PRINT # #
la $a0, pipe # # Printing... |
li $v0, 4 # #
syscall # #
########################################################### #
#print value 1 # #
li $v0, 1 # #
lw $a0, 0($t0) # # Printing... |#|
syscall # #
la $a0, pipe # #
li $v0, 4 # #
syscall # #
########################################################### #
#print value 2 # #
li $v0, 1 # #
lw $a0, 4($t0) # # Printing... |#|#|
syscall # #
la $a0, pipe # #
li $v0, 4 # #
syscall # #
########################################################### #
#print value 3 # #
li $v0, 1 # #
lw $a0, 8($t0) # # Printing... |#|#|#|
syscall # #
la $a0, endPipe # #
li $v0, 4 # #
syscall # #
########################################################### #
la $a0, pipe # #
li $v0, 4 # #
syscall # #
#print value 4 # #
li $v0, 1 # # Printing... |#|#|#|
lw $a0, 12($t0) # # |#|
syscall # #
la $a0, pipe # #
li $v0, 4 # #
syscall # #
########################################################### #
#print value 5 # #
li $v0, 1 # # Printing... |#|#|#|
lw $a0, 16($t0) # # |#|#|
syscall # #
la $a0, pipe # #
li $v0, 4 # #
syscall # #
########################################################### #
#print value 6 # #
li $v0, 1 # #
lw $a0, 20($t0) # # Printing... |#|#|#|
syscall # # |#|#|#| Magic Happened!
la $a0, message # #
li $v0, 4 # #
syscall # #
########################################################### #
la $a0, pipe # #
li $v0, 4 # #
syscall # #
#print value 7 # #
li $v0, 1 # #
lw $a0, 24($t0) # # Printing... |#|#|#|
syscall # # |#|#|#| Magic Happened!
la $a0, pipe # # |#|
li $v0, 4 # #
syscall # #
########################################################### #
#print value 8 # #
li $v0, 1 # #
lw $a0, 28($t0) # # Printing... |#|#|#|
syscall # # |#|#|#| Magic Happened!
la $a0, pipe # # |#|#|
li $v0, 4 # #
syscall # #
########################################################### #
#print value 9 # #
li $v0, 1 # #
lw $a0, 32($t0) # # Printing... |#|#|#|
syscall # # |#|#|#| Magic Happened!
la $a0, endSquare # # |#|#|#|
li $v0, 4 # #
syscall # #
j END_PRINT # #
########################################################### #
END_PRINT: # #
lw $ra,-4($fp) #restore ra # #
addiu $sp,$fp,4 #restore $sp # #
lw $fp, 0($fp) #restore $fp # #
jr $ra #return to HEAP_PERMUTE # #
################################################################ |
codeseg
; an enum's size is a double word. so use db, not the actual name.
enum _FILE_MODE_ {
FILE_R,
FILE_W,
FILE_RW
}
; int open_file(string filename, FileMode mode)
proc open_file
push bp
mov bp, sp
push bx
push dx
mov ah, 3Dh
mov dx, [bp + 6]
mov al, [byte ptr bp + 4]
int 21h
jnc __return
__error:
jmp ax_exit
__return:
pop dx
pop bx
pop bp
ret 2 * 1
endp
; void close_file(int filehandle)
proc close_file
push bp
mov bp, sp
push ax
push bx
mov ah, 3Eh
mov bx, [bp + 4]
int 21h
pop bx
pop ax
pop bp
ret 2 * 1
endp
; void read_file(int filehandle, int readbytes, string output)
proc read_file
push bp
mov bp, sp
push ax
push bx
push cx
push dx
mov ah, 3Fh
mov bx, [bp + 8]
mov cx, [bp + 6]
mov dx, [bp + 4]
int 21h
pop dx
pop cx
pop bx
pop ax
pop bp
ret 2 * 3
endp
; void write_file(int filehandle, int bytes, string input)
proc write_file
push bp
mov bp, sp
push ax
push bx
push cx
push dx
mov ah, 40h
mov bx, [bp + 8]
mov cx, [bp + 6]
mov dx, [bp + 4]
int 21h
pop dx
pop cx
pop bx
pop ax
pop bp
ret 2 * 3
endp
; int create_file(string filename)
proc create_file
push bp
mov bp, sp
push cx
push dx
mov ah, 3ch
xor cx, cx
mov dx, [bp + 4]
int 21h
pop dx
pop cx
pop bp
ret 2 * 1
endp
|
SECTION code_ctype
PUBLIC asm_isalnum
asm_isalnum:
; determine if char is in [0-9A-Za-z]
; enter : a = char
; exit : carry set if not alphanumeric
; uses : f
cp '0'
ret c
cp '9'+1
ccf
ret nc
cp 'A'
ret c
cp 'Z'+1
ccf
ret nc
cp 'a'
ret c
cp 'z'+1
ccf
ret
|
open_save_hook:
;push the registers to the stack
addiu sp, sp, -0x40
sw ra, 0x00(sp)
sw v0, 0x04(sp)
sw v1, 0x08(sp)
sw a0, 0x0C(sp)
sw a1, 0x10(sp)
sw a2, 0x14(sp)
sw a3, 0x18(sp)
sw s0, 0x1c(sp)
sw s1, 0x20(sp)
sw at, 0x24(sp)
lw a0, 0x60(sp) ;get savecontext variable off the stack
jal Save_Open
lw a0, 0x00(a0) ; get the buffer pointer
lw v0, 0x04(sp)
lw v1, 0x08(sp)
lw a0, 0x0C(sp)
lw a1, 0x10(sp)
lw a2, 0x14(sp)
lw a3, 0x18(sp)
lw s0, 0x1c(sp)
lw s1, 0x20(sp)
lw at, 0x24(sp)
; Replaced code
jal 0x80057030
addu A1, T9, A3
lw ra, 0x00(sp)
jr ra
addiu sp, sp, 0x40 |
/****************************************************************************
* Copyright (c) 2020, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*****************************************************************************/
//////////////////////////////////////////////////////////////////////////////
//
// File: Ref_Champ_P0_CoviMAC.cpp
// Directory: $TRUST_ROOT/src/CoviMAC/Champs
// Version: 1
//
//////////////////////////////////////////////////////////////////////////////
#include <Ref_Champ_P0_CoviMAC.h>
#include <Champ_P0_CoviMAC.h>
Implemente_ref( Champ_P0_CoviMAC ) ;
|
#include "detection.h"
#define OBJECT_ITEM_LOCATION_ID "locationId"
#define OBJECT_ITEM_VENDOR_ID "vendorId"
#define OBJECT_ITEM_PRODUCT_ID "productId"
#define OBJECT_ITEM_DEVICE_NAME "deviceName"
#define OBJECT_ITEM_MANUFACTURER "manufacturer"
#define OBJECT_ITEM_SERIAL_NUMBER "serialNumber"
#define OBJECT_ITEM_DEVICE_ADDRESS "deviceAddress"
#define OBJECT_ITEM_MOUNT_PATH "mountPath"
Nan::Callback* addedCallback;
bool isAddedRegistered = false;
Nan::Callback* removedCallback;
bool isRemovedRegistered = false;
void RegisterAdded(const v8::FunctionCallbackInfo<v8::Value>& args) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
v8::Local<v8::Function> callback;
if (args.Length() == 0) {
return Nan::ThrowTypeError("First argument must be a function");
}
if (args.Length() == 1) {
// callback
if(!args[0]->IsFunction()) {
return Nan::ThrowTypeError("First argument must be a function");
}
callback = args[0].As<v8::Function>();
}
addedCallback = new Nan::Callback(callback);
isAddedRegistered = true;
}
void NotifyAdded(ListResultItem_t* it) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
if (isAddedRegistered){
v8::Local<v8::Value> argv[1];
v8::Local<v8::Object> item = v8::Object::New(isolate);
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_LOCATION_ID), v8::Number::New(isolate, it->locationId));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_VENDOR_ID), v8::Number::New(isolate, it->vendorId));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_PRODUCT_ID), v8::Number::New(isolate, it->productId));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_DEVICE_NAME), v8::String::NewFromUtf8(isolate, it->deviceName.c_str()));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_MANUFACTURER), v8::String::NewFromUtf8(isolate, it->manufacturer.c_str()));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_SERIAL_NUMBER), v8::String::NewFromUtf8(isolate, it->serialNumber.c_str()));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_DEVICE_ADDRESS), v8::Number::New(isolate, it->deviceAddress));
argv[0] = item;
addedCallback->Call(1, argv);
}
}
void RegisterRemoved(const v8::FunctionCallbackInfo<v8::Value>& args) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
v8::Local<v8::Function> callback;
if (args.Length() == 0) {
return Nan::ThrowTypeError("First argument must be a function");
}
if (args.Length() == 1) {
// callback
if(!args[0]->IsFunction()) {
return Nan::ThrowTypeError("First argument must be a function");
}
callback = args[0].As<v8::Function>();
}
removedCallback = new Nan::Callback(callback);
isRemovedRegistered = true;
}
void NotifyRemoved(ListResultItem_t* it) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
if (isRemovedRegistered) {
v8::Local<v8::Value> argv[1];
v8::Local<v8::Object> item = v8::Object::New(isolate);
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_LOCATION_ID), v8::Number::New(isolate, it->locationId));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_VENDOR_ID), v8::Number::New(isolate, it->vendorId));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_PRODUCT_ID), v8::Number::New(isolate, it->productId));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_DEVICE_NAME), v8::String::NewFromUtf8(isolate, it->deviceName.c_str()));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_MANUFACTURER), v8::String::NewFromUtf8(isolate, it->manufacturer.c_str()));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_SERIAL_NUMBER), v8::String::NewFromUtf8(isolate, it->serialNumber.c_str()));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_DEVICE_ADDRESS), v8::Number::New(isolate, it->deviceAddress));
argv[0] = item;
removedCallback->Call(1, argv);
}
}
void Find(const v8::FunctionCallbackInfo<v8::Value>& args) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
int vid = 0;
int pid = 0;
v8::Local<v8::Function> callback;
if (args.Length() == 0) {
return Nan::ThrowTypeError("First argument must be a function");
}
if (args.Length() == 3) {
if (args[0]->IsNumber() && args[1]->IsNumber()) {
vid = (int) args[0]->NumberValue();
pid = (int) args[1]->NumberValue();
}
// callback
if(!args[2]->IsFunction()) {
return Nan::ThrowTypeError("Third argument must be a function");
}
callback = args[2].As<v8::Function>();
}
if (args.Length() == 2) {
if (args[0]->IsNumber()) {
vid = (int) args[0]->NumberValue();
}
// callback
if(!args[1]->IsFunction()) {
return Nan::ThrowTypeError("Second argument must be a function");
}
callback = args[1].As<v8::Function>();
}
if (args.Length() == 1) {
// callback
if(!args[0]->IsFunction()) {
return Nan::ThrowTypeError("First argument must be a function");
}
callback = args[0].As<v8::Function>();
}
ListBaton* baton = new ListBaton();
strcpy(baton->errorString, "");
baton->callback = new Nan::Callback(callback);
baton->vid = vid;
baton->pid = pid;
uv_work_t* req = new uv_work_t();
req->data = baton;
uv_queue_work(uv_default_loop(), req, EIO_Find, (uv_after_work_cb)EIO_AfterFind);
}
void EIO_AfterFind(uv_work_t* req) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
ListBaton* data = static_cast<ListBaton*>(req->data);
v8::Local<v8::Value> argv[2];
if(data->errorString[0]) {
argv[0] = v8::Exception::Error(v8::String::NewFromUtf8(isolate, data->errorString));
argv[1] = Nan::Undefined();
}
else {
v8::Local<v8::Array> results = v8::Array::New(isolate);
int i = 0;
for(std::list<ListResultItem_t*>::iterator it = data->results.begin(); it != data->results.end(); it++, i++) {
v8::Local<v8::Object> item = v8::Object::New(isolate);
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_LOCATION_ID), v8::Number::New(isolate, (*it)->locationId));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_VENDOR_ID), v8::Number::New(isolate, (*it)->vendorId));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_PRODUCT_ID), v8::Number::New(isolate, (*it)->productId));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_DEVICE_NAME), v8::String::NewFromUtf8(isolate, (*it)->deviceName.c_str()));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_MANUFACTURER), v8::String::NewFromUtf8(isolate, (*it)->manufacturer.c_str()));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_SERIAL_NUMBER), v8::String::NewFromUtf8(isolate, (*it)->serialNumber.c_str()));
item->Set(v8::String::NewFromUtf8(isolate, OBJECT_ITEM_DEVICE_ADDRESS), v8::Number::New(isolate, (*it)->deviceAddress));
results->Set(i, item);
}
argv[0] = Nan::Undefined();
argv[1] = results;
}
data->callback->Call(2, argv);
for(std::list<ListResultItem_t*>::iterator it = data->results.begin(); it != data->results.end(); it++) {
delete *it;
}
delete data;
delete req;
}
void StartMonitoring(const v8::FunctionCallbackInfo<v8::Value>& args) {
Start();
}
void StopMonitoring(const v8::FunctionCallbackInfo<v8::Value>& args) {
Stop();
}
extern "C" {
void init (v8::Handle<v8::Object> target) {
NODE_SET_METHOD(target, "find", Find);
NODE_SET_METHOD(target, "registerAdded", RegisterAdded);
NODE_SET_METHOD(target, "registerRemoved", RegisterRemoved);
NODE_SET_METHOD(target, "startMonitoring", StartMonitoring);
NODE_SET_METHOD(target, "stopMonitoring", StopMonitoring);
InitDetection();
}
}
NODE_MODULE(detection, init);
|
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2008-08-25
// Updated : 2010-02-04
// Licence : This source is under MIT License
// File : glm/core/type_vec1.hpp
///////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef glm_core_type_gentype1
#define glm_core_type_gentype1
#include "type_vec.hpp"
#include "type_float.hpp"
#include "type_int.hpp"
#include "type_size.hpp"
#include "_swizzle.hpp"
namespace glm
{
namespace test
{
void main_vec1();
}//namespace test
namespace detail
{
template <typename T> struct tref1;
template <typename T> struct tref2;
template <typename T> struct tref3;
template <typename T> struct tref4;
template <typename T> struct tvec1;
template <typename T> struct tvec2;
template <typename T> struct tvec3;
template <typename T> struct tvec4;
template <typename T>
struct tvec1
{
enum ctor{null};
typedef T value_type;
typedef std::size_t size_type;
GLM_FUNC_DECL size_type length() const;
static GLM_FUNC_DECL size_type value_size();
typedef tvec1<T> type;
typedef tvec1<bool> bool_type;
//////////////////////////////////////
// Data
# if(GLM_COMPONENT == GLM_COMPONENT_ONLY_XYZW)
value_type x;
# else//(GLM_COMPONENT == GLM_COMPONENT_GLSL_NAMES)
union {value_type x, r, s;};
# endif//GLM_COMPONENT
//////////////////////////////////////
// Accesses
GLM_FUNC_DECL value_type & operator[](size_type i);
GLM_FUNC_DECL value_type const & operator[](size_type i) const;
//////////////////////////////////////
// Implicit basic constructors
GLM_FUNC_DECL tvec1();
GLM_FUNC_DECL tvec1(tvec1<T> const & v);
//////////////////////////////////////
// Explicit basic constructors
GLM_FUNC_DECL explicit tvec1(
ctor);
GLM_FUNC_DECL explicit tvec1(
value_type const & s);
//////////////////////////////////////
// Swizzle constructors
GLM_FUNC_DECL tvec1(tref1<T> const & r);
//////////////////////////////////////
// Convertion scalar constructors
//! Explicit converions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
template <typename U>
GLM_FUNC_DECL explicit tvec1(U const & s);
//////////////////////////////////////
// Convertion vector constructors
//! Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
template <typename U>
GLM_FUNC_DECL explicit tvec1(tvec2<U> const & v);
//! Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
template <typename U>
GLM_FUNC_DECL explicit tvec1(tvec3<U> const & v);
//! Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
template <typename U>
GLM_FUNC_DECL explicit tvec1(tvec4<U> const & v);
//////////////////////////////////////
// Unary arithmetic operators
GLM_FUNC_DECL tvec1<T> & operator= (tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator+=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator+=(tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator-=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator-=(tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator*=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator*=(tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator/=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator/=(tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator++();
GLM_FUNC_DECL tvec1<T> & operator--();
//////////////////////////////////////
// Unary bit operators
GLM_FUNC_DECL tvec1<T> & operator%=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator%=(tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator&=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator&=(tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator|=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator|=(tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator^=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator^=(tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator<<=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator<<=(tvec1<T> const & v);
GLM_FUNC_DECL tvec1<T> & operator>>=(value_type const & s);
GLM_FUNC_DECL tvec1<T> & operator>>=(tvec1<T> const & v);
//////////////////////////////////////
// Swizzle operators
GLM_FUNC_DECL value_type swizzle(comp X) const;
GLM_FUNC_DECL tvec2<T> swizzle(comp X, comp Y) const;
GLM_FUNC_DECL tvec3<T> swizzle(comp X, comp Y, comp Z) const;
GLM_FUNC_DECL tvec4<T> swizzle(comp X, comp Y, comp Z, comp W) const;
GLM_FUNC_DECL tref1<T> swizzle(comp X);
};
template <typename T>
struct tref1
{
GLM_FUNC_DECL tref1(T & x);
GLM_FUNC_DECL tref1(tref1<T> const & r);
GLM_FUNC_DECL tref1(tvec1<T> const & v);
GLM_FUNC_DECL tref1<T> & operator= (tref1<T> const & r);
GLM_FUNC_DECL tref1<T> & operator= (tvec1<T> const & v);
T& x;
};
GLM_DETAIL_IS_VECTOR(tvec1);
typedef detail::tvec1<core::type::precision::highp_float> highp_vec1_t;
typedef detail::tvec1<core::type::precision::mediump_float> mediump_vec1_t;
typedef detail::tvec1<core::type::precision::lowp_float> lowp_vec1_t;
typedef detail::tvec1<core::type::precision::highp_int> highp_ivec1_t;
typedef detail::tvec1<core::type::precision::mediump_int> mediump_ivec1_t;
typedef detail::tvec1<core::type::precision::lowp_int> lowp_ivec1_t;
typedef detail::tvec1<core::type::precision::highp_uint> highp_uvec1_t;
typedef detail::tvec1<core::type::precision::mediump_uint> mediump_uvec1_t;
typedef detail::tvec1<core::type::precision::lowp_uint> lowp_uvec1_t;
} //namespace detail
}//namespace glm
#ifndef GLM_EXTERNAL_TEMPLATE
#include "type_vec1.inl"
#endif
#endif//glm_core_type_gentype1
|
; Row Sum Calculation (RowSum.asm)
; This program demonstrates the use of Base-Index addressing
; with a two-dimensional table array of bytes (a byte matrix).
INCLUDE Irvine32.inc
.data
tableB BYTE 10h, 20h, 30h, 40h, 50h
BYTE 60h, 70h, 80h, 90h, 0A0h
BYTE 0B0h, 0C0h, 0D0h, 0E0h, 0F0h
RowSize = 5
msg1 BYTE "Enter row number: ",0
msg2 BYTE "The sum is: ",0
.code
main PROC
; Demonstrate Base-Index mode:
mov edx,OFFSET msg1 ; "Enter row number:"
call WriteString
call Readint ; EAX = row number
mov ebx,OFFSET tableB
mov ecx,RowSize
call calc_row_sum ; EAX = sum
mov edx,OFFSET msg2 ; "The sum is:"
call WriteString
call WriteHex ; write sum in EAX
call Crlf
exit
main ENDP
;------------------------------------------------------------
calc_row_sum PROC uses ebx ecx edx esi
;
; Calculates the sum of a row in a byte matrix.
; Receives: EBX = table offset, EAX = row index,
; ECX = row size, in bytes.
; Returns: EAX holds the sum.
;------------------------------------------------------------
mul ecx ; row index * row size
add ebx,eax ; row offset
mov eax,0 ; accumulator
mov esi,0 ; column index
L1: movzx edx,BYTE PTR[ebx + esi] ; get a byte
add eax,edx ; add to accumulator
inc esi ; next byte in row
loop L1
ret
calc_row_sum ENDP
END main |
;;============================================================================
;; MCKL/lib/asm/fma.asm
;;----------------------------------------------------------------------------
;; MCKL: Monte Carlo Kernel Library
;;----------------------------------------------------------------------------
;; Copyright (c) 2013-2018, Yan Zhou
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; Redistributions of source code must retain the above copyright notice,
;; this list of conditions and the following disclaimer.
;;
;; Redistributions in binary form must reproduce the above copyright notice,
;; this list of conditions and the following disclaimer in the documentation
;; and/or other materials provided with the distribution.
;;
;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS
;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
;; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
;; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
;; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
;; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
;; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
;; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
;; POSSIBILITY OF SUCH DAMAGE.
;;============================================================================
global mckl_fmadd_vvv_ps
global mckl_fmadd_vvs_ps
global mckl_fmadd_vsv_ps
global mckl_fmadd_svv_ps
global mckl_fmadd_ssv_ps
global mckl_fmadd_svs_ps
global mckl_fmadd_vss_ps
global mckl_fmadd_vvv_pd
global mckl_fmadd_vvs_pd
global mckl_fmadd_vsv_pd
global mckl_fmadd_svv_pd
global mckl_fmadd_ssv_pd
global mckl_fmadd_svs_pd
global mckl_fmadd_vss_pd
global mckl_fmsub_vvv_ps
global mckl_fmsub_vvs_ps
global mckl_fmsub_vsv_ps
global mckl_fmsub_svv_ps
global mckl_fmsub_ssv_ps
global mckl_fmsub_svs_ps
global mckl_fmsub_vss_ps
global mckl_fmsub_vvv_pd
global mckl_fmsub_vvs_pd
global mckl_fmsub_vsv_pd
global mckl_fmsub_svv_pd
global mckl_fmsub_ssv_pd
global mckl_fmsub_svs_pd
global mckl_fmsub_vss_pd
global mckl_fnmadd_vvv_ps
global mckl_fnmadd_vvs_ps
global mckl_fnmadd_vsv_ps
global mckl_fnmadd_svv_ps
global mckl_fnmadd_ssv_ps
global mckl_fnmadd_svs_ps
global mckl_fnmadd_vss_ps
global mckl_fnmadd_vvv_pd
global mckl_fnmadd_vvs_pd
global mckl_fnmadd_vsv_pd
global mckl_fnmadd_svv_pd
global mckl_fnmadd_ssv_pd
global mckl_fnmadd_svs_pd
global mckl_fnmadd_vss_pd
global mckl_fnmsub_vvv_ps
global mckl_fnmsub_vvs_ps
global mckl_fnmsub_vsv_ps
global mckl_fnmsub_svv_ps
global mckl_fnmsub_ssv_ps
global mckl_fnmsub_svs_ps
global mckl_fnmsub_vss_ps
global mckl_fnmsub_vvv_pd
global mckl_fnmsub_vvs_pd
global mckl_fnmsub_vsv_pd
global mckl_fnmsub_svv_pd
global mckl_fnmsub_ssv_pd
global mckl_fnmsub_svs_pd
global mckl_fnmsub_vss_pd
default rel
; rdi:n
; rsi:a
; rdx:b
; rcx:c
; r8:y
%macro fma_vvv 3
test rdi, rdi
jz .return
mov rax, rdi
and rax, (0x20 / %1) - 1
sub rdi, rax
test rdi, rdi
jz .last
align 16
.loop:
vmovups ymm0, [rsi]
vmovups ymm1, [rdx]
v%{3}213p%2 ymm0, ymm1, [rcx]
vmovups [r8], ymm0
add rsi, 0x20
add rdx, 0x20
add rcx, 0x20
add r8, 0x20
sub rdi, 0x20 / %1
jnz .loop
.last:
test rax, rax
jz .return
lea rdi, [mask%1]
shl rax, 5
add rax, rdi
vmovaps ymm3, [rax]
vmaskmovps ymm0, ymm3, [rsi]
vmaskmovps ymm1, ymm3, [rdx]
vmaskmovps ymm2, ymm3, [rcx]
v%{3}213p%2 ymm0, ymm1, ymm2
vmaskmovps [r8], ymm3, ymm0
.return:
ret
%endmacro
%macro fma2 7
test rdi, rdi
jz .return
vbroadcasts%2 ymm0, xmm0
mov rax, rdi
and rax, (0x20 / %1) - 1
sub rdi, rax
test rdi, rdi
jz .last
align 16
.loop:
vmovups ymm1, [rsi]
vmovups ymm2, [rdx]
v%{3}%{4}p%2 %5, %6, %7
vmovups [rcx], %5
add rsi, 0x20
add rdx, 0x20
add rcx, 0x20
sub rdi, 0x20 / %1
jnz .loop
.last:
test rax, rax
jz .return
lea rdi, [mask%1]
shl rax, 5
add rax, rdi
vmovaps ymm3, [rax]
vmaskmovps ymm1, ymm3, [rsi]
vmaskmovps ymm2, ymm3, [rdx]
v%{3}%{4}p%2 %5, %6, %7
vmaskmovps [rcx], ymm3, %5
.return:
ret
%endmacro
; rdi:n
; rsi:a -> ymm1
; rdx:b -> ymm2
; xmm0:c -> ymm0
; rcx:y
%macro fma_vvs 3
fma2 %1, %2, %3, 213, ymm1, ymm2, ymm0
%endmacro
; rdi:n
; rsi:a -> ymm1
; xmm0:b -> ymm0
; rdx:c -> ymm2
; rcx:y
%macro fma_vsv 3
fma2 %1, %2, %3, 213, ymm1, ymm0, ymm2
%endmacro
; rdi:n
; xmm0:a -> ymm0
; rsi:b -> ymm1
; rdx:c -> ymm2
; rcx:y
%macro fma_svv 3
fma2 %1, %2, %3, 213, ymm1, ymm0, ymm2
%endmacro
%macro fma3 7
test rdi, rdi
jz .return
vbroadcasts%2 ymm0, xmm0
vbroadcasts%2 ymm1, xmm1
mov rax, rdi
and rax, (0x20 / %1) - 1
sub rdi, rax
test rdi, rdi
jz .last
align 16
.loop:
vmovups ymm2, [rsi]
v%{3}%{4}p%2 %5, %6, %7
vmovups [rdx], %5
add rsi, 0x20
add rdx, 0x20
sub rdi, 0x20 / %1
jnz .loop
.last:
test rax, rax
jz .return
lea rdi, [mask%1]
shl rax, 5
add rax, rdi
vmovaps ymm3, [rax]
vmaskmovps ymm2, ymm3, [rsi]
v%{3}%{4}p%2 %5, %6, %7
vmaskmovps [rdx], ymm3, %5
.return:
ret
%endmacro
; rdi:n
; xmm0:a -> ymm0
; xmm1:b -> ymm1
; rsi:c -> ymm2
; rdx:y
%macro fma_ssv 3
fma3 %1, %2, %3, 231, ymm2, ymm0, ymm1
%endmacro
; rdi:n
; xmm0:a -> ymm0
; rsi:b -> ymm2
; xmm1:c -> ymm1
; rdx:y
%macro fma_svs 3
fma3 %1, %2, %3, 213, ymm2, ymm0, ymm1
%endmacro
; rdi:n
; rsi:a -> ymm2
; xmm0:b -> ymm0
; xmm1:c -> ymm1
; rdx:y
%macro fma_vss 3
fma3 %1, %2, %3, 213, ymm2, ymm0, ymm1
%endmacro
section .rodata
align 32
mask4:
dd 0, 0, 0, 0, 0, 0, 0, 0
dd ~0, 0, 0, 0, 0, 0, 0, 0
dd ~0, ~0, 0, 0, 0, 0, 0, 0
dd ~0, ~0, ~0, 0, 0, 0, 0, 0
dd ~0, ~0, ~0, ~0, 0, 0, 0, 0
dd ~0, ~0, ~0, ~0, ~0, 0, 0, 0
dd ~0, ~0, ~0, ~0, ~0, ~0, 0, 0
dd ~0, ~0, ~0, ~0, ~0, ~0, ~0, 0
mask8:
dq 0, 0, 0, 0
dq ~0, 0, 0, 0
dq ~0, ~0, 0, 0
dq ~0, ~0, ~0, 0
section .text
mckl_fmadd_vvv_ps: fma_vvv 4, s, fmadd
mckl_fmadd_vvs_ps: fma_vvs 4, s, fmadd
mckl_fmadd_vsv_ps: fma_vsv 4, s, fmadd
mckl_fmadd_svv_ps: fma_svv 4, s, fmadd
mckl_fmadd_ssv_ps: fma_ssv 4, s, fmadd
mckl_fmadd_svs_ps: fma_svs 4, s, fmadd
mckl_fmadd_vss_ps: fma_vss 4, s, fmadd
mckl_fmadd_vvv_pd: fma_vvv 8, d, fmadd
mckl_fmadd_vvs_pd: fma_vvs 8, d, fmadd
mckl_fmadd_vsv_pd: fma_vsv 8, d, fmadd
mckl_fmadd_svv_pd: fma_svv 8, d, fmadd
mckl_fmadd_ssv_pd: fma_ssv 8, d, fmadd
mckl_fmadd_svs_pd: fma_svs 8, d, fmadd
mckl_fmadd_vss_pd: fma_vss 8, d, fmadd
mckl_fmsub_vvv_ps: fma_vvv 4, s, fmsub
mckl_fmsub_vvs_ps: fma_vvs 4, s, fmsub
mckl_fmsub_vsv_ps: fma_vsv 4, s, fmsub
mckl_fmsub_svv_ps: fma_svv 4, s, fmsub
mckl_fmsub_ssv_ps: fma_ssv 4, s, fmsub
mckl_fmsub_svs_ps: fma_svs 4, s, fmsub
mckl_fmsub_vss_ps: fma_vss 4, s, fmsub
mckl_fmsub_vvv_pd: fma_vvv 8, d, fmsub
mckl_fmsub_vvs_pd: fma_vvs 8, d, fmsub
mckl_fmsub_vsv_pd: fma_vsv 8, d, fmsub
mckl_fmsub_svv_pd: fma_svv 8, d, fmsub
mckl_fmsub_ssv_pd: fma_ssv 8, d, fmsub
mckl_fmsub_svs_pd: fma_svs 8, d, fmsub
mckl_fmsub_vss_pd: fma_vss 8, d, fmsub
mckl_fnmadd_vvv_ps: fma_vvv 4, s, fnmadd
mckl_fnmadd_vvs_ps: fma_vvs 4, s, fnmadd
mckl_fnmadd_vsv_ps: fma_vsv 4, s, fnmadd
mckl_fnmadd_svv_ps: fma_svv 4, s, fnmadd
mckl_fnmadd_ssv_ps: fma_ssv 4, s, fnmadd
mckl_fnmadd_svs_ps: fma_svs 4, s, fnmadd
mckl_fnmadd_vss_ps: fma_vss 4, s, fnmadd
mckl_fnmadd_vvv_pd: fma_vvv 8, d, fnmadd
mckl_fnmadd_vvs_pd: fma_vvs 8, d, fnmadd
mckl_fnmadd_vsv_pd: fma_vsv 8, d, fnmadd
mckl_fnmadd_svv_pd: fma_svv 8, d, fnmadd
mckl_fnmadd_ssv_pd: fma_ssv 8, d, fnmadd
mckl_fnmadd_svs_pd: fma_svs 8, d, fnmadd
mckl_fnmadd_vss_pd: fma_vss 8, d, fnmadd
mckl_fnmsub_vvv_ps: fma_vvv 4, s, fnmsub
mckl_fnmsub_vvs_ps: fma_vvs 4, s, fnmsub
mckl_fnmsub_vsv_ps: fma_vsv 4, s, fnmsub
mckl_fnmsub_svv_ps: fma_svv 4, s, fnmsub
mckl_fnmsub_ssv_ps: fma_ssv 4, s, fnmsub
mckl_fnmsub_svs_ps: fma_svs 4, s, fnmsub
mckl_fnmsub_vss_ps: fma_vss 4, s, fnmsub
mckl_fnmsub_vvv_pd: fma_vvv 8, d, fnmsub
mckl_fnmsub_vvs_pd: fma_vvs 8, d, fnmsub
mckl_fnmsub_vsv_pd: fma_vsv 8, d, fnmsub
mckl_fnmsub_svv_pd: fma_svv 8, d, fnmsub
mckl_fnmsub_ssv_pd: fma_ssv 8, d, fnmsub
mckl_fnmsub_svs_pd: fma_svs 8, d, fnmsub
mckl_fnmsub_vss_pd: fma_vss 8, d, fnmsub
; vim:ft=nasm
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1a1a0, %rsi
lea addresses_A_ht+0x175a0, %rdi
clflush (%rdi)
nop
nop
nop
dec %r12
mov $6, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp $5717, %r9
lea addresses_D_ht+0x16b80, %rdi
sub $60067, %r10
vmovups (%rdi), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %rcx
cmp %rcx, %rcx
lea addresses_WT_ht+0x112a0, %rsi
lea addresses_WC_ht+0x178a0, %rdi
nop
cmp %rbx, %rbx
mov $109, %rcx
rep movsb
nop
nop
nop
inc %rsi
lea addresses_D_ht+0xc6a0, %rdi
nop
nop
nop
cmp $8592, %rsi
mov (%rdi), %r10d
nop
and $12323, %r12
lea addresses_UC_ht+0x16b20, %r9
nop
nop
nop
nop
sub %r12, %r12
movb (%r9), %cl
inc %rcx
lea addresses_normal_ht+0x2a0, %rsi
lea addresses_normal_ht+0x166a0, %rdi
nop
nop
nop
nop
add %rbx, %rbx
mov $127, %rcx
rep movsl
inc %rsi
lea addresses_normal_ht+0x52a0, %rbx
clflush (%rbx)
nop
xor $13991, %r9
movups (%rbx), %xmm0
vpextrq $1, %xmm0, %r10
and $17396, %r12
lea addresses_A_ht+0xa2a0, %r12
cmp %rdi, %rdi
movb (%r12), %r9b
nop
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x10ce6, %r9
nop
nop
nop
and $13342, %rcx
movb (%r9), %r10b
add %r12, %r12
lea addresses_A_ht+0xd0a0, %rsi
nop
nop
cmp %rdi, %rdi
mov $0x6162636465666768, %r10
movq %r10, %xmm0
movups %xmm0, (%rsi)
nop
inc %r12
lea addresses_D_ht+0xe2a0, %rcx
nop
nop
nop
nop
xor $36460, %rbx
mov $0x6162636465666768, %rsi
movq %rsi, (%rcx)
and $26283, %rdi
lea addresses_normal_ht+0x2aa0, %r9
nop
nop
nop
nop
nop
sub %r12, %r12
mov (%r9), %di
nop
nop
and $39109, %rdi
lea addresses_A_ht+0x11be0, %rsi
nop
sub $13725, %rbx
mov $0x6162636465666768, %r12
movq %r12, (%rsi)
nop
add %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r9
push %rbp
push %rcx
push %rdi
// Store
lea addresses_UC+0x64a0, %r11
nop
cmp $16968, %r9
movb $0x51, (%r11)
nop
nop
nop
lfence
// Faulty Load
lea addresses_WC+0x16aa0, %r11
nop
nop
inc %rbp
mov (%r11), %di
lea oracles, %r14
and $0xff, %rdi
shlq $12, %rdi
mov (%r14,%rdi,1), %rdi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_WC', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC', 'size': 1, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}}
{'src': {'same': True, 'congruent': 4, 'NT': False, 'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 11, 'NT': True, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}}
{'38': 21829}
38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38
*/
|
; A037585: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 3,1.
; Submitted by Jamie Morken(s4)
; 3,19,117,703,4221,25327,151965,911791,5470749,32824495,196946973,1181681839,7090091037,42540546223,255243277341,1531459664047,9188757984285,55132547905711,330795287434269,1984771724605615
mov $2,3
lpb $0
sub $0,1
add $1,$2
mul $1,6
add $2,$1
mod $2,4
lpe
add $1,$2
mov $0,$1
|
; A168398: a(n) = 4 + 8*floor((n-1)/2).
; 4,4,12,12,20,20,28,28,36,36,44,44,52,52,60,60,68,68,76,76,84,84,92,92,100,100,108,108,116,116,124,124,132,132,140,140,148,148,156,156,164,164,172,172,180,180,188,188,196,196,204,204,212,212,220,220,228,228,236,236,244,244,252,252,260,260,268,268,276,276,284,284,292,292,300,300,308,308,316,316,324,324,332,332,340,340,348,348,356,356,364,364,372,372,380,380,388,388,396,396
div $0,2
mul $0,8
add $0,4
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: http.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "http.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
namespace {
const ::google::protobuf::Descriptor* HttpMsg_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
HttpMsg_reflection_ = NULL;
const ::google::protobuf::Descriptor* HttpMsg_Upgrade_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
HttpMsg_Upgrade_reflection_ = NULL;
const ::google::protobuf::Descriptor* HttpMsg_HeadersEntry_descriptor_ = NULL;
const ::google::protobuf::Descriptor* HttpMsg_ParamsEntry_descriptor_ = NULL;
const ::google::protobuf::Descriptor* HttpMsg_SettingsEntry_descriptor_ = NULL;
} // namespace
void protobuf_AssignDesc_http_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_http_2eproto() {
protobuf_AddDesc_http_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"http.proto");
GOOGLE_CHECK(file != NULL);
HttpMsg_descriptor_ = file->message_type(0);
static const int HttpMsg_offsets_[28] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, http_major_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, http_minor_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, content_length_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, method_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, status_code_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, encoding_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, url_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, headers_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, body_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, params_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, upgrade_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, keep_alive_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, path_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, is_decoding_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, chunk_notice_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, stream_id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, hpack_data_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, adding_without_index_headers_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, deleting_without_index_headers_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, adding_never_index_headers_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, deleting_never_index_headers_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, dynamic_table_update_size_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, with_huffman_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, headers_frame_padding_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, data_frame_padding_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, push_promise_frame_padding_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, settings_),
};
HttpMsg_reflection_ =
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
HttpMsg_descriptor_,
HttpMsg::default_instance_,
HttpMsg_offsets_,
-1,
-1,
-1,
sizeof(HttpMsg),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, _internal_metadata_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg, _is_default_instance_));
HttpMsg_Upgrade_descriptor_ = HttpMsg_descriptor_->nested_type(0);
static const int HttpMsg_Upgrade_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg_Upgrade, is_upgrade_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg_Upgrade, protocol_),
};
HttpMsg_Upgrade_reflection_ =
::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
HttpMsg_Upgrade_descriptor_,
HttpMsg_Upgrade::default_instance_,
HttpMsg_Upgrade_offsets_,
-1,
-1,
-1,
sizeof(HttpMsg_Upgrade),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg_Upgrade, _internal_metadata_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HttpMsg_Upgrade, _is_default_instance_));
HttpMsg_HeadersEntry_descriptor_ = HttpMsg_descriptor_->nested_type(1);
HttpMsg_ParamsEntry_descriptor_ = HttpMsg_descriptor_->nested_type(2);
HttpMsg_SettingsEntry_descriptor_ = HttpMsg_descriptor_->nested_type(3);
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_http_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HttpMsg_descriptor_, &HttpMsg::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HttpMsg_Upgrade_descriptor_, &HttpMsg_Upgrade::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HttpMsg_HeadersEntry_descriptor_,
::google::protobuf::internal::MapEntry<
::std::string,
::std::string,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
0>::CreateDefaultInstance(
HttpMsg_HeadersEntry_descriptor_));
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HttpMsg_ParamsEntry_descriptor_,
::google::protobuf::internal::MapEntry<
::std::string,
::std::string,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
0>::CreateDefaultInstance(
HttpMsg_ParamsEntry_descriptor_));
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HttpMsg_SettingsEntry_descriptor_,
::google::protobuf::internal::MapEntry<
::google::protobuf::uint32,
::google::protobuf::uint32,
::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
0>::CreateDefaultInstance(
HttpMsg_SettingsEntry_descriptor_));
}
} // namespace
void protobuf_ShutdownFile_http_2eproto() {
delete HttpMsg::default_instance_;
delete HttpMsg_reflection_;
delete HttpMsg_Upgrade::default_instance_;
delete HttpMsg_Upgrade_reflection_;
}
void protobuf_AddDesc_http_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AddDesc_http_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\nhttp.proto\"\251\007\n\007HttpMsg\022\014\n\004type\030\001 \001(\005\022\022"
"\n\nhttp_major\030\002 \001(\005\022\022\n\nhttp_minor\030\003 \001(\005\022\026"
"\n\016content_length\030\004 \001(\005\022\016\n\006method\030\005 \001(\005\022\023"
"\n\013status_code\030\006 \001(\005\022\020\n\010encoding\030\007 \001(\005\022\013\n"
"\003url\030\010 \001(\t\022&\n\007headers\030\t \003(\0132\025.HttpMsg.He"
"adersEntry\022\014\n\004body\030\n \001(\014\022$\n\006params\030\013 \003(\013"
"2\024.HttpMsg.ParamsEntry\022!\n\007upgrade\030\014 \001(\0132"
"\020.HttpMsg.Upgrade\022\022\n\nkeep_alive\030\r \001(\002\022\014\n"
"\004path\030\016 \001(\t\022\023\n\013is_decoding\030\017 \001(\010\022\024\n\014chun"
"k_notice\030\023 \001(\010\022\021\n\tstream_id\030\024 \001(\r\022\022\n\nhpa"
"ck_data\030\025 \001(\t\022$\n\034adding_without_index_he"
"aders\030\026 \003(\t\022&\n\036deleting_without_index_he"
"aders\030\027 \003(\t\022\"\n\032adding_never_index_header"
"s\030\030 \003(\t\022$\n\034deleting_never_index_headers\030"
"\031 \003(\t\022!\n\031dynamic_table_update_size\030\032 \001(\r"
"\022\024\n\014with_huffman\030\033 \001(\010\022\035\n\025headers_frame_"
"padding\030\034 \001(\t\022\032\n\022data_frame_padding\030\035 \001("
"\t\022\"\n\032push_promise_frame_padding\030\036 \001(\t\022(\n"
"\010settings\030\037 \003(\0132\026.HttpMsg.SettingsEntry\032"
"/\n\007Upgrade\022\022\n\nis_upgrade\030\001 \001(\010\022\020\n\010protoc"
"ol\030\002 \001(\t\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
"\005value\030\002 \001(\t:\0028\001\032-\n\013ParamsEntry\022\013\n\003key\030\001"
" \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rSettingsEntry"
"\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001b\006proto3", 960);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"http.proto", &protobuf_RegisterTypes);
HttpMsg::default_instance_ = new HttpMsg();
HttpMsg_Upgrade::default_instance_ = new HttpMsg_Upgrade();
HttpMsg::default_instance_->InitAsDefaultInstance();
HttpMsg_Upgrade::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_http_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_http_2eproto {
StaticDescriptorInitializer_http_2eproto() {
protobuf_AddDesc_http_2eproto();
}
} static_descriptor_initializer_http_2eproto_;
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int HttpMsg_Upgrade::kIsUpgradeFieldNumber;
const int HttpMsg_Upgrade::kProtocolFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
HttpMsg_Upgrade::HttpMsg_Upgrade()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
SharedCtor();
// @@protoc_insertion_point(constructor:HttpMsg.Upgrade)
}
void HttpMsg_Upgrade::InitAsDefaultInstance() {
_is_default_instance_ = true;
}
HttpMsg_Upgrade::HttpMsg_Upgrade(const HttpMsg_Upgrade& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL) {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:HttpMsg.Upgrade)
}
void HttpMsg_Upgrade::SharedCtor() {
_is_default_instance_ = false;
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
is_upgrade_ = false;
protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
HttpMsg_Upgrade::~HttpMsg_Upgrade() {
// @@protoc_insertion_point(destructor:HttpMsg.Upgrade)
SharedDtor();
}
void HttpMsg_Upgrade::SharedDtor() {
protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != default_instance_) {
}
}
void HttpMsg_Upgrade::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* HttpMsg_Upgrade::descriptor() {
protobuf_AssignDescriptorsOnce();
return HttpMsg_Upgrade_descriptor_;
}
const HttpMsg_Upgrade& HttpMsg_Upgrade::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_http_2eproto();
return *default_instance_;
}
HttpMsg_Upgrade* HttpMsg_Upgrade::default_instance_ = NULL;
HttpMsg_Upgrade* HttpMsg_Upgrade::New(::google::protobuf::Arena* arena) const {
HttpMsg_Upgrade* n = new HttpMsg_Upgrade;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void HttpMsg_Upgrade::Clear() {
// @@protoc_insertion_point(message_clear_start:HttpMsg.Upgrade)
is_upgrade_ = false;
protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
bool HttpMsg_Upgrade::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:HttpMsg.Upgrade)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional bool is_upgrade = 1;
case 1: {
if (tag == 8) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &is_upgrade_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(18)) goto parse_protocol;
break;
}
// optional string protocol = 2;
case 2: {
if (tag == 18) {
parse_protocol:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_protocol()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->protocol().data(), this->protocol().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.Upgrade.protocol"));
} else {
goto handle_unusual;
}
if (input->ExpectAtEnd()) goto success;
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:HttpMsg.Upgrade)
return true;
failure:
// @@protoc_insertion_point(parse_failure:HttpMsg.Upgrade)
return false;
#undef DO_
}
void HttpMsg_Upgrade::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:HttpMsg.Upgrade)
// optional bool is_upgrade = 1;
if (this->is_upgrade() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_upgrade(), output);
}
// optional string protocol = 2;
if (this->protocol().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->protocol().data(), this->protocol().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.Upgrade.protocol");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->protocol(), output);
}
// @@protoc_insertion_point(serialize_end:HttpMsg.Upgrade)
}
::google::protobuf::uint8* HttpMsg_Upgrade::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:HttpMsg.Upgrade)
// optional bool is_upgrade = 1;
if (this->is_upgrade() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_upgrade(), target);
}
// optional string protocol = 2;
if (this->protocol().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->protocol().data(), this->protocol().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.Upgrade.protocol");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->protocol(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:HttpMsg.Upgrade)
return target;
}
int HttpMsg_Upgrade::ByteSize() const {
// @@protoc_insertion_point(message_byte_size_start:HttpMsg.Upgrade)
int total_size = 0;
// optional bool is_upgrade = 1;
if (this->is_upgrade() != 0) {
total_size += 1 + 1;
}
// optional string protocol = 2;
if (this->protocol().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->protocol());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void HttpMsg_Upgrade::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:HttpMsg.Upgrade)
if (GOOGLE_PREDICT_FALSE(&from == this)) {
::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
}
const HttpMsg_Upgrade* source =
::google::protobuf::internal::DynamicCastToGenerated<const HttpMsg_Upgrade>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:HttpMsg.Upgrade)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:HttpMsg.Upgrade)
MergeFrom(*source);
}
}
void HttpMsg_Upgrade::MergeFrom(const HttpMsg_Upgrade& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:HttpMsg.Upgrade)
if (GOOGLE_PREDICT_FALSE(&from == this)) {
::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
}
if (from.is_upgrade() != 0) {
set_is_upgrade(from.is_upgrade());
}
if (from.protocol().size() > 0) {
protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.protocol_);
}
}
void HttpMsg_Upgrade::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:HttpMsg.Upgrade)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void HttpMsg_Upgrade::CopyFrom(const HttpMsg_Upgrade& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:HttpMsg.Upgrade)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HttpMsg_Upgrade::IsInitialized() const {
return true;
}
void HttpMsg_Upgrade::Swap(HttpMsg_Upgrade* other) {
if (other == this) return;
InternalSwap(other);
}
void HttpMsg_Upgrade::InternalSwap(HttpMsg_Upgrade* other) {
std::swap(is_upgrade_, other->is_upgrade_);
protocol_.Swap(&other->protocol_);
_internal_metadata_.Swap(&other->_internal_metadata_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata HttpMsg_Upgrade::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = HttpMsg_Upgrade_descriptor_;
metadata.reflection = HttpMsg_Upgrade_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int HttpMsg::kTypeFieldNumber;
const int HttpMsg::kHttpMajorFieldNumber;
const int HttpMsg::kHttpMinorFieldNumber;
const int HttpMsg::kContentLengthFieldNumber;
const int HttpMsg::kMethodFieldNumber;
const int HttpMsg::kStatusCodeFieldNumber;
const int HttpMsg::kEncodingFieldNumber;
const int HttpMsg::kUrlFieldNumber;
const int HttpMsg::kHeadersFieldNumber;
const int HttpMsg::kBodyFieldNumber;
const int HttpMsg::kParamsFieldNumber;
const int HttpMsg::kUpgradeFieldNumber;
const int HttpMsg::kKeepAliveFieldNumber;
const int HttpMsg::kPathFieldNumber;
const int HttpMsg::kIsDecodingFieldNumber;
const int HttpMsg::kChunkNoticeFieldNumber;
const int HttpMsg::kStreamIdFieldNumber;
const int HttpMsg::kHpackDataFieldNumber;
const int HttpMsg::kAddingWithoutIndexHeadersFieldNumber;
const int HttpMsg::kDeletingWithoutIndexHeadersFieldNumber;
const int HttpMsg::kAddingNeverIndexHeadersFieldNumber;
const int HttpMsg::kDeletingNeverIndexHeadersFieldNumber;
const int HttpMsg::kDynamicTableUpdateSizeFieldNumber;
const int HttpMsg::kWithHuffmanFieldNumber;
const int HttpMsg::kHeadersFramePaddingFieldNumber;
const int HttpMsg::kDataFramePaddingFieldNumber;
const int HttpMsg::kPushPromiseFramePaddingFieldNumber;
const int HttpMsg::kSettingsFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
HttpMsg::HttpMsg()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
SharedCtor();
// @@protoc_insertion_point(constructor:HttpMsg)
}
void HttpMsg::InitAsDefaultInstance() {
_is_default_instance_ = true;
upgrade_ = const_cast< ::HttpMsg_Upgrade*>(&::HttpMsg_Upgrade::default_instance());
}
HttpMsg::HttpMsg(const HttpMsg& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL) {
SharedCtor();
MergeFrom(from);
// @@protoc_insertion_point(copy_constructor:HttpMsg)
}
void HttpMsg::SharedCtor() {
_is_default_instance_ = false;
::google::protobuf::internal::GetEmptyString();
_cached_size_ = 0;
type_ = 0;
http_major_ = 0;
http_minor_ = 0;
content_length_ = 0;
method_ = 0;
status_code_ = 0;
encoding_ = 0;
url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
headers_.SetAssignDescriptorCallback(
protobuf_AssignDescriptorsOnce);
headers_.SetEntryDescriptor(
&::HttpMsg_HeadersEntry_descriptor_);
body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
params_.SetAssignDescriptorCallback(
protobuf_AssignDescriptorsOnce);
params_.SetEntryDescriptor(
&::HttpMsg_ParamsEntry_descriptor_);
upgrade_ = NULL;
keep_alive_ = 0;
path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
is_decoding_ = false;
chunk_notice_ = false;
stream_id_ = 0u;
hpack_data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
dynamic_table_update_size_ = 0u;
with_huffman_ = false;
headers_frame_padding_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
data_frame_padding_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
push_promise_frame_padding_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
settings_.SetAssignDescriptorCallback(
protobuf_AssignDescriptorsOnce);
settings_.SetEntryDescriptor(
&::HttpMsg_SettingsEntry_descriptor_);
}
HttpMsg::~HttpMsg() {
// @@protoc_insertion_point(destructor:HttpMsg)
SharedDtor();
}
void HttpMsg::SharedDtor() {
url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
hpack_data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
headers_frame_padding_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
data_frame_padding_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
push_promise_frame_padding_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != default_instance_) {
delete upgrade_;
}
}
void HttpMsg::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* HttpMsg::descriptor() {
protobuf_AssignDescriptorsOnce();
return HttpMsg_descriptor_;
}
const HttpMsg& HttpMsg::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_http_2eproto();
return *default_instance_;
}
HttpMsg* HttpMsg::default_instance_ = NULL;
HttpMsg* HttpMsg::New(::google::protobuf::Arena* arena) const {
HttpMsg* n = new HttpMsg;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void HttpMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:HttpMsg)
#if defined(__clang__)
#define ZR_HELPER_(f) \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
__builtin_offsetof(HttpMsg, f) \
_Pragma("clang diagnostic pop")
#else
#define ZR_HELPER_(f) reinterpret_cast<char*>(\
&reinterpret_cast<HttpMsg*>(16)->f)
#endif
#define ZR_(first, last) do {\
::memset(&first, 0,\
ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
} while (0)
ZR_(type_, status_code_);
encoding_ = 0;
url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
ZR_(is_decoding_, chunk_notice_);
body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == NULL && upgrade_ != NULL) delete upgrade_;
upgrade_ = NULL;
keep_alive_ = 0;
path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
stream_id_ = 0u;
hpack_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
dynamic_table_update_size_ = 0u;
with_huffman_ = false;
headers_frame_padding_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
data_frame_padding_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
push_promise_frame_padding_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
#undef ZR_HELPER_
#undef ZR_
headers_.Clear();
params_.Clear();
adding_without_index_headers_.Clear();
deleting_without_index_headers_.Clear();
adding_never_index_headers_.Clear();
deleting_never_index_headers_.Clear();
settings_.Clear();
}
bool HttpMsg::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:HttpMsg)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional int32 type = 1;
case 1: {
if (tag == 8) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &type_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(16)) goto parse_http_major;
break;
}
// optional int32 http_major = 2;
case 2: {
if (tag == 16) {
parse_http_major:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &http_major_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(24)) goto parse_http_minor;
break;
}
// optional int32 http_minor = 3;
case 3: {
if (tag == 24) {
parse_http_minor:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &http_minor_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(32)) goto parse_content_length;
break;
}
// optional int32 content_length = 4;
case 4: {
if (tag == 32) {
parse_content_length:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &content_length_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(40)) goto parse_method;
break;
}
// optional int32 method = 5;
case 5: {
if (tag == 40) {
parse_method:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &method_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(48)) goto parse_status_code;
break;
}
// optional int32 status_code = 6;
case 6: {
if (tag == 48) {
parse_status_code:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &status_code_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(56)) goto parse_encoding;
break;
}
// optional int32 encoding = 7;
case 7: {
if (tag == 56) {
parse_encoding:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &encoding_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(66)) goto parse_url;
break;
}
// optional string url = 8;
case 8: {
if (tag == 66) {
parse_url:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_url()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->url().data(), this->url().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.url"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(74)) goto parse_headers;
break;
}
// map<string, string> headers = 9;
case 9: {
if (tag == 74) {
parse_headers:
DO_(input->IncrementRecursionDepth());
parse_loop_headers:
HttpMsg_HeadersEntry::Parser< ::google::protobuf::internal::MapField<
::std::string, ::std::string,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
0 >,
::google::protobuf::Map< ::std::string, ::std::string > > parser(&headers_);
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, &parser));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
parser.key().data(), parser.key().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.HeadersEntry.key"));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
parser.value().data(), parser.value().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.HeadersEntry.value"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(74)) goto parse_loop_headers;
input->UnsafeDecrementRecursionDepth();
if (input->ExpectTag(82)) goto parse_body;
break;
}
// optional bytes body = 10;
case 10: {
if (tag == 82) {
parse_body:
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_body()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(90)) goto parse_params;
break;
}
// map<string, string> params = 11;
case 11: {
if (tag == 90) {
parse_params:
DO_(input->IncrementRecursionDepth());
parse_loop_params:
HttpMsg_ParamsEntry::Parser< ::google::protobuf::internal::MapField<
::std::string, ::std::string,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
::google::protobuf::internal::WireFormatLite::TYPE_STRING,
0 >,
::google::protobuf::Map< ::std::string, ::std::string > > parser(¶ms_);
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, &parser));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
parser.key().data(), parser.key().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.ParamsEntry.key"));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
parser.value().data(), parser.value().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.ParamsEntry.value"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(90)) goto parse_loop_params;
input->UnsafeDecrementRecursionDepth();
if (input->ExpectTag(98)) goto parse_upgrade;
break;
}
// optional .HttpMsg.Upgrade upgrade = 12;
case 12: {
if (tag == 98) {
parse_upgrade:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_upgrade()));
} else {
goto handle_unusual;
}
if (input->ExpectTag(109)) goto parse_keep_alive;
break;
}
// optional float keep_alive = 13;
case 13: {
if (tag == 109) {
parse_keep_alive:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &keep_alive_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(114)) goto parse_path;
break;
}
// optional string path = 14;
case 14: {
if (tag == 114) {
parse_path:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_path()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->path().data(), this->path().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.path"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(120)) goto parse_is_decoding;
break;
}
// optional bool is_decoding = 15;
case 15: {
if (tag == 120) {
parse_is_decoding:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &is_decoding_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(152)) goto parse_chunk_notice;
break;
}
// optional bool chunk_notice = 19;
case 19: {
if (tag == 152) {
parse_chunk_notice:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &chunk_notice_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(160)) goto parse_stream_id;
break;
}
// optional uint32 stream_id = 20;
case 20: {
if (tag == 160) {
parse_stream_id:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &stream_id_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(170)) goto parse_hpack_data;
break;
}
// optional string hpack_data = 21;
case 21: {
if (tag == 170) {
parse_hpack_data:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_hpack_data()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->hpack_data().data(), this->hpack_data().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.hpack_data"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(178)) goto parse_adding_without_index_headers;
break;
}
// repeated string adding_without_index_headers = 22;
case 22: {
if (tag == 178) {
parse_adding_without_index_headers:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_adding_without_index_headers()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->adding_without_index_headers(this->adding_without_index_headers_size() - 1).data(),
this->adding_without_index_headers(this->adding_without_index_headers_size() - 1).length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.adding_without_index_headers"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(178)) goto parse_adding_without_index_headers;
if (input->ExpectTag(186)) goto parse_deleting_without_index_headers;
break;
}
// repeated string deleting_without_index_headers = 23;
case 23: {
if (tag == 186) {
parse_deleting_without_index_headers:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_deleting_without_index_headers()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->deleting_without_index_headers(this->deleting_without_index_headers_size() - 1).data(),
this->deleting_without_index_headers(this->deleting_without_index_headers_size() - 1).length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.deleting_without_index_headers"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(186)) goto parse_deleting_without_index_headers;
if (input->ExpectTag(194)) goto parse_adding_never_index_headers;
break;
}
// repeated string adding_never_index_headers = 24;
case 24: {
if (tag == 194) {
parse_adding_never_index_headers:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_adding_never_index_headers()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->adding_never_index_headers(this->adding_never_index_headers_size() - 1).data(),
this->adding_never_index_headers(this->adding_never_index_headers_size() - 1).length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.adding_never_index_headers"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(194)) goto parse_adding_never_index_headers;
if (input->ExpectTag(202)) goto parse_deleting_never_index_headers;
break;
}
// repeated string deleting_never_index_headers = 25;
case 25: {
if (tag == 202) {
parse_deleting_never_index_headers:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_deleting_never_index_headers()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->deleting_never_index_headers(this->deleting_never_index_headers_size() - 1).data(),
this->deleting_never_index_headers(this->deleting_never_index_headers_size() - 1).length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.deleting_never_index_headers"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(202)) goto parse_deleting_never_index_headers;
if (input->ExpectTag(208)) goto parse_dynamic_table_update_size;
break;
}
// optional uint32 dynamic_table_update_size = 26;
case 26: {
if (tag == 208) {
parse_dynamic_table_update_size:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &dynamic_table_update_size_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(216)) goto parse_with_huffman;
break;
}
// optional bool with_huffman = 27;
case 27: {
if (tag == 216) {
parse_with_huffman:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &with_huffman_)));
} else {
goto handle_unusual;
}
if (input->ExpectTag(226)) goto parse_headers_frame_padding;
break;
}
// optional string headers_frame_padding = 28;
case 28: {
if (tag == 226) {
parse_headers_frame_padding:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_headers_frame_padding()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->headers_frame_padding().data(), this->headers_frame_padding().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.headers_frame_padding"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(234)) goto parse_data_frame_padding;
break;
}
// optional string data_frame_padding = 29;
case 29: {
if (tag == 234) {
parse_data_frame_padding:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_data_frame_padding()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->data_frame_padding().data(), this->data_frame_padding().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.data_frame_padding"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(242)) goto parse_push_promise_frame_padding;
break;
}
// optional string push_promise_frame_padding = 30;
case 30: {
if (tag == 242) {
parse_push_promise_frame_padding:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_push_promise_frame_padding()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->push_promise_frame_padding().data(), this->push_promise_frame_padding().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"HttpMsg.push_promise_frame_padding"));
} else {
goto handle_unusual;
}
if (input->ExpectTag(250)) goto parse_settings;
break;
}
// map<uint32, uint32> settings = 31;
case 31: {
if (tag == 250) {
parse_settings:
DO_(input->IncrementRecursionDepth());
parse_loop_settings:
HttpMsg_SettingsEntry::Parser< ::google::protobuf::internal::MapField<
::google::protobuf::uint32, ::google::protobuf::uint32,
::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
0 >,
::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 > > parser(&settings_);
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, &parser));
} else {
goto handle_unusual;
}
if (input->ExpectTag(250)) goto parse_loop_settings;
input->UnsafeDecrementRecursionDepth();
if (input->ExpectAtEnd()) goto success;
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:HttpMsg)
return true;
failure:
// @@protoc_insertion_point(parse_failure:HttpMsg)
return false;
#undef DO_
}
void HttpMsg::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:HttpMsg)
// optional int32 type = 1;
if (this->type() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->type(), output);
}
// optional int32 http_major = 2;
if (this->http_major() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->http_major(), output);
}
// optional int32 http_minor = 3;
if (this->http_minor() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->http_minor(), output);
}
// optional int32 content_length = 4;
if (this->content_length() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->content_length(), output);
}
// optional int32 method = 5;
if (this->method() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->method(), output);
}
// optional int32 status_code = 6;
if (this->status_code() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->status_code(), output);
}
// optional int32 encoding = 7;
if (this->encoding() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->encoding(), output);
}
// optional string url = 8;
if (this->url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->url().data(), this->url().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.url");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8, this->url(), output);
}
// map<string, string> headers = 9;
if (!this->headers().empty()) {
typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
ConstPtr;
typedef ConstPtr SortItem;
typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), p->first.length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.HeadersEntry.key");
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->second.data(), p->second.length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.HeadersEntry.value");
}
};
if (output->IsSerializationDeterminstic() &&
this->headers().size() > 1) {
::google::protobuf::scoped_array<SortItem> items(
new SortItem[this->headers().size()]);
typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
size_type n = 0;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->headers().begin();
it != this->headers().end(); ++it, ++n) {
items[n] = SortItem(&*it);
}
::std::sort(&items[0], &items[n], Less());
::google::protobuf::scoped_ptr<HttpMsg_HeadersEntry> entry;
for (size_type i = 0; i < n; i++) {
entry.reset(headers_.NewEntryWrapper(
items[i]->first, items[i]->second));
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9, *entry, output);
Utf8Check::Check(items[i]);
}
} else {
::google::protobuf::scoped_ptr<HttpMsg_HeadersEntry> entry;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->headers().begin();
it != this->headers().end(); ++it) {
entry.reset(headers_.NewEntryWrapper(
it->first, it->second));
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9, *entry, output);
Utf8Check::Check(&*it);
}
}
}
// optional bytes body = 10;
if (this->body().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10, this->body(), output);
}
// map<string, string> params = 11;
if (!this->params().empty()) {
typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
ConstPtr;
typedef ConstPtr SortItem;
typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), p->first.length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.ParamsEntry.key");
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->second.data(), p->second.length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.ParamsEntry.value");
}
};
if (output->IsSerializationDeterminstic() &&
this->params().size() > 1) {
::google::protobuf::scoped_array<SortItem> items(
new SortItem[this->params().size()]);
typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
size_type n = 0;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->params().begin();
it != this->params().end(); ++it, ++n) {
items[n] = SortItem(&*it);
}
::std::sort(&items[0], &items[n], Less());
::google::protobuf::scoped_ptr<HttpMsg_ParamsEntry> entry;
for (size_type i = 0; i < n; i++) {
entry.reset(params_.NewEntryWrapper(
items[i]->first, items[i]->second));
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, *entry, output);
Utf8Check::Check(items[i]);
}
} else {
::google::protobuf::scoped_ptr<HttpMsg_ParamsEntry> entry;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->params().begin();
it != this->params().end(); ++it) {
entry.reset(params_.NewEntryWrapper(
it->first, it->second));
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, *entry, output);
Utf8Check::Check(&*it);
}
}
}
// optional .HttpMsg.Upgrade upgrade = 12;
if (this->has_upgrade()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12, *this->upgrade_, output);
}
// optional float keep_alive = 13;
if (this->keep_alive() != 0) {
::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->keep_alive(), output);
}
// optional string path = 14;
if (this->path().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->path().data(), this->path().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.path");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14, this->path(), output);
}
// optional bool is_decoding = 15;
if (this->is_decoding() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(15, this->is_decoding(), output);
}
// optional bool chunk_notice = 19;
if (this->chunk_notice() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(19, this->chunk_notice(), output);
}
// optional uint32 stream_id = 20;
if (this->stream_id() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(20, this->stream_id(), output);
}
// optional string hpack_data = 21;
if (this->hpack_data().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->hpack_data().data(), this->hpack_data().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.hpack_data");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
21, this->hpack_data(), output);
}
// repeated string adding_without_index_headers = 22;
for (int i = 0; i < this->adding_without_index_headers_size(); i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->adding_without_index_headers(i).data(), this->adding_without_index_headers(i).length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.adding_without_index_headers");
::google::protobuf::internal::WireFormatLite::WriteString(
22, this->adding_without_index_headers(i), output);
}
// repeated string deleting_without_index_headers = 23;
for (int i = 0; i < this->deleting_without_index_headers_size(); i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->deleting_without_index_headers(i).data(), this->deleting_without_index_headers(i).length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.deleting_without_index_headers");
::google::protobuf::internal::WireFormatLite::WriteString(
23, this->deleting_without_index_headers(i), output);
}
// repeated string adding_never_index_headers = 24;
for (int i = 0; i < this->adding_never_index_headers_size(); i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->adding_never_index_headers(i).data(), this->adding_never_index_headers(i).length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.adding_never_index_headers");
::google::protobuf::internal::WireFormatLite::WriteString(
24, this->adding_never_index_headers(i), output);
}
// repeated string deleting_never_index_headers = 25;
for (int i = 0; i < this->deleting_never_index_headers_size(); i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->deleting_never_index_headers(i).data(), this->deleting_never_index_headers(i).length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.deleting_never_index_headers");
::google::protobuf::internal::WireFormatLite::WriteString(
25, this->deleting_never_index_headers(i), output);
}
// optional uint32 dynamic_table_update_size = 26;
if (this->dynamic_table_update_size() != 0) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(26, this->dynamic_table_update_size(), output);
}
// optional bool with_huffman = 27;
if (this->with_huffman() != 0) {
::google::protobuf::internal::WireFormatLite::WriteBool(27, this->with_huffman(), output);
}
// optional string headers_frame_padding = 28;
if (this->headers_frame_padding().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->headers_frame_padding().data(), this->headers_frame_padding().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.headers_frame_padding");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
28, this->headers_frame_padding(), output);
}
// optional string data_frame_padding = 29;
if (this->data_frame_padding().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->data_frame_padding().data(), this->data_frame_padding().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.data_frame_padding");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
29, this->data_frame_padding(), output);
}
// optional string push_promise_frame_padding = 30;
if (this->push_promise_frame_padding().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->push_promise_frame_padding().data(), this->push_promise_frame_padding().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.push_promise_frame_padding");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
30, this->push_promise_frame_padding(), output);
}
// map<uint32, uint32> settings = 31;
if (!this->settings().empty()) {
typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
ConstPtr;
typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
if (output->IsSerializationDeterminstic() &&
this->settings().size() > 1) {
::google::protobuf::scoped_array<SortItem> items(
new SortItem[this->settings().size()]);
typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
size_type n = 0;
for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
it = this->settings().begin();
it != this->settings().end(); ++it, ++n) {
items[n] = SortItem(&*it);
}
::std::sort(&items[0], &items[n], Less());
::google::protobuf::scoped_ptr<HttpMsg_SettingsEntry> entry;
for (size_type i = 0; i < n; i++) {
entry.reset(settings_.NewEntryWrapper(
items[i].second->first, items[i].second->second));
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
31, *entry, output);
}
} else {
::google::protobuf::scoped_ptr<HttpMsg_SettingsEntry> entry;
for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
it = this->settings().begin();
it != this->settings().end(); ++it) {
entry.reset(settings_.NewEntryWrapper(
it->first, it->second));
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
31, *entry, output);
}
}
}
// @@protoc_insertion_point(serialize_end:HttpMsg)
}
::google::protobuf::uint8* HttpMsg::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:HttpMsg)
// optional int32 type = 1;
if (this->type() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->type(), target);
}
// optional int32 http_major = 2;
if (this->http_major() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->http_major(), target);
}
// optional int32 http_minor = 3;
if (this->http_minor() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->http_minor(), target);
}
// optional int32 content_length = 4;
if (this->content_length() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->content_length(), target);
}
// optional int32 method = 5;
if (this->method() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->method(), target);
}
// optional int32 status_code = 6;
if (this->status_code() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->status_code(), target);
}
// optional int32 encoding = 7;
if (this->encoding() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->encoding(), target);
}
// optional string url = 8;
if (this->url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->url().data(), this->url().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.url");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8, this->url(), target);
}
// map<string, string> headers = 9;
if (!this->headers().empty()) {
typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
ConstPtr;
typedef ConstPtr SortItem;
typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), p->first.length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.HeadersEntry.key");
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->second.data(), p->second.length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.HeadersEntry.value");
}
};
if (deterministic &&
this->headers().size() > 1) {
::google::protobuf::scoped_array<SortItem> items(
new SortItem[this->headers().size()]);
typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
size_type n = 0;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->headers().begin();
it != this->headers().end(); ++it, ++n) {
items[n] = SortItem(&*it);
}
::std::sort(&items[0], &items[n], Less());
::google::protobuf::scoped_ptr<HttpMsg_HeadersEntry> entry;
for (size_type i = 0; i < n; i++) {
entry.reset(headers_.NewEntryWrapper(
items[i]->first, items[i]->second));
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
9, *entry, deterministic, target);
;
Utf8Check::Check(items[i]);
}
} else {
::google::protobuf::scoped_ptr<HttpMsg_HeadersEntry> entry;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->headers().begin();
it != this->headers().end(); ++it) {
entry.reset(headers_.NewEntryWrapper(
it->first, it->second));
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
9, *entry, deterministic, target);
;
Utf8Check::Check(&*it);
}
}
}
// optional bytes body = 10;
if (this->body().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10, this->body(), target);
}
// map<string, string> params = 11;
if (!this->params().empty()) {
typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
ConstPtr;
typedef ConstPtr SortItem;
typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), p->first.length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.ParamsEntry.key");
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
p->second.data(), p->second.length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.ParamsEntry.value");
}
};
if (deterministic &&
this->params().size() > 1) {
::google::protobuf::scoped_array<SortItem> items(
new SortItem[this->params().size()]);
typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
size_type n = 0;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->params().begin();
it != this->params().end(); ++it, ++n) {
items[n] = SortItem(&*it);
}
::std::sort(&items[0], &items[n], Less());
::google::protobuf::scoped_ptr<HttpMsg_ParamsEntry> entry;
for (size_type i = 0; i < n; i++) {
entry.reset(params_.NewEntryWrapper(
items[i]->first, items[i]->second));
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
11, *entry, deterministic, target);
;
Utf8Check::Check(items[i]);
}
} else {
::google::protobuf::scoped_ptr<HttpMsg_ParamsEntry> entry;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->params().begin();
it != this->params().end(); ++it) {
entry.reset(params_.NewEntryWrapper(
it->first, it->second));
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
11, *entry, deterministic, target);
;
Utf8Check::Check(&*it);
}
}
}
// optional .HttpMsg.Upgrade upgrade = 12;
if (this->has_upgrade()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
12, *this->upgrade_, false, target);
}
// optional float keep_alive = 13;
if (this->keep_alive() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->keep_alive(), target);
}
// optional string path = 14;
if (this->path().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->path().data(), this->path().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.path");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14, this->path(), target);
}
// optional bool is_decoding = 15;
if (this->is_decoding() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->is_decoding(), target);
}
// optional bool chunk_notice = 19;
if (this->chunk_notice() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->chunk_notice(), target);
}
// optional uint32 stream_id = 20;
if (this->stream_id() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(20, this->stream_id(), target);
}
// optional string hpack_data = 21;
if (this->hpack_data().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->hpack_data().data(), this->hpack_data().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.hpack_data");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
21, this->hpack_data(), target);
}
// repeated string adding_without_index_headers = 22;
for (int i = 0; i < this->adding_without_index_headers_size(); i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->adding_without_index_headers(i).data(), this->adding_without_index_headers(i).length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.adding_without_index_headers");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(22, this->adding_without_index_headers(i), target);
}
// repeated string deleting_without_index_headers = 23;
for (int i = 0; i < this->deleting_without_index_headers_size(); i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->deleting_without_index_headers(i).data(), this->deleting_without_index_headers(i).length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.deleting_without_index_headers");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(23, this->deleting_without_index_headers(i), target);
}
// repeated string adding_never_index_headers = 24;
for (int i = 0; i < this->adding_never_index_headers_size(); i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->adding_never_index_headers(i).data(), this->adding_never_index_headers(i).length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.adding_never_index_headers");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(24, this->adding_never_index_headers(i), target);
}
// repeated string deleting_never_index_headers = 25;
for (int i = 0; i < this->deleting_never_index_headers_size(); i++) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->deleting_never_index_headers(i).data(), this->deleting_never_index_headers(i).length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.deleting_never_index_headers");
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(25, this->deleting_never_index_headers(i), target);
}
// optional uint32 dynamic_table_update_size = 26;
if (this->dynamic_table_update_size() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(26, this->dynamic_table_update_size(), target);
}
// optional bool with_huffman = 27;
if (this->with_huffman() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->with_huffman(), target);
}
// optional string headers_frame_padding = 28;
if (this->headers_frame_padding().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->headers_frame_padding().data(), this->headers_frame_padding().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.headers_frame_padding");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
28, this->headers_frame_padding(), target);
}
// optional string data_frame_padding = 29;
if (this->data_frame_padding().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->data_frame_padding().data(), this->data_frame_padding().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.data_frame_padding");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
29, this->data_frame_padding(), target);
}
// optional string push_promise_frame_padding = 30;
if (this->push_promise_frame_padding().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->push_promise_frame_padding().data(), this->push_promise_frame_padding().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"HttpMsg.push_promise_frame_padding");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
30, this->push_promise_frame_padding(), target);
}
// map<uint32, uint32> settings = 31;
if (!this->settings().empty()) {
typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
ConstPtr;
typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
if (deterministic &&
this->settings().size() > 1) {
::google::protobuf::scoped_array<SortItem> items(
new SortItem[this->settings().size()]);
typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
size_type n = 0;
for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
it = this->settings().begin();
it != this->settings().end(); ++it, ++n) {
items[n] = SortItem(&*it);
}
::std::sort(&items[0], &items[n], Less());
::google::protobuf::scoped_ptr<HttpMsg_SettingsEntry> entry;
for (size_type i = 0; i < n; i++) {
entry.reset(settings_.NewEntryWrapper(
items[i].second->first, items[i].second->second));
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
31, *entry, deterministic, target);
;
}
} else {
::google::protobuf::scoped_ptr<HttpMsg_SettingsEntry> entry;
for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
it = this->settings().begin();
it != this->settings().end(); ++it) {
entry.reset(settings_.NewEntryWrapper(
it->first, it->second));
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
31, *entry, deterministic, target);
;
}
}
}
// @@protoc_insertion_point(serialize_to_array_end:HttpMsg)
return target;
}
int HttpMsg::ByteSize() const {
// @@protoc_insertion_point(message_byte_size_start:HttpMsg)
int total_size = 0;
// optional int32 type = 1;
if (this->type() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->type());
}
// optional int32 http_major = 2;
if (this->http_major() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->http_major());
}
// optional int32 http_minor = 3;
if (this->http_minor() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->http_minor());
}
// optional int32 content_length = 4;
if (this->content_length() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->content_length());
}
// optional int32 method = 5;
if (this->method() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->method());
}
// optional int32 status_code = 6;
if (this->status_code() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->status_code());
}
// optional int32 encoding = 7;
if (this->encoding() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->encoding());
}
// optional string url = 8;
if (this->url().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->url());
}
// optional bytes body = 10;
if (this->body().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->body());
}
// optional .HttpMsg.Upgrade upgrade = 12;
if (this->has_upgrade()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->upgrade_);
}
// optional float keep_alive = 13;
if (this->keep_alive() != 0) {
total_size += 1 + 4;
}
// optional string path = 14;
if (this->path().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->path());
}
// optional bool is_decoding = 15;
if (this->is_decoding() != 0) {
total_size += 1 + 1;
}
// optional bool chunk_notice = 19;
if (this->chunk_notice() != 0) {
total_size += 2 + 1;
}
// optional uint32 stream_id = 20;
if (this->stream_id() != 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->stream_id());
}
// optional string hpack_data = 21;
if (this->hpack_data().size() > 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->hpack_data());
}
// optional uint32 dynamic_table_update_size = 26;
if (this->dynamic_table_update_size() != 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->dynamic_table_update_size());
}
// optional bool with_huffman = 27;
if (this->with_huffman() != 0) {
total_size += 2 + 1;
}
// optional string headers_frame_padding = 28;
if (this->headers_frame_padding().size() > 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->headers_frame_padding());
}
// optional string data_frame_padding = 29;
if (this->data_frame_padding().size() > 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->data_frame_padding());
}
// optional string push_promise_frame_padding = 30;
if (this->push_promise_frame_padding().size() > 0) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->push_promise_frame_padding());
}
// map<string, string> headers = 9;
total_size += 1 * this->headers_size();
{
::google::protobuf::scoped_ptr<HttpMsg_HeadersEntry> entry;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->headers().begin();
it != this->headers().end(); ++it) {
entry.reset(headers_.NewEntryWrapper(it->first, it->second));
total_size += ::google::protobuf::internal::WireFormatLite::
MessageSizeNoVirtual(*entry);
}
}
// map<string, string> params = 11;
total_size += 1 * this->params_size();
{
::google::protobuf::scoped_ptr<HttpMsg_ParamsEntry> entry;
for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
it = this->params().begin();
it != this->params().end(); ++it) {
entry.reset(params_.NewEntryWrapper(it->first, it->second));
total_size += ::google::protobuf::internal::WireFormatLite::
MessageSizeNoVirtual(*entry);
}
}
// repeated string adding_without_index_headers = 22;
total_size += 2 * this->adding_without_index_headers_size();
for (int i = 0; i < this->adding_without_index_headers_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->adding_without_index_headers(i));
}
// repeated string deleting_without_index_headers = 23;
total_size += 2 * this->deleting_without_index_headers_size();
for (int i = 0; i < this->deleting_without_index_headers_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->deleting_without_index_headers(i));
}
// repeated string adding_never_index_headers = 24;
total_size += 2 * this->adding_never_index_headers_size();
for (int i = 0; i < this->adding_never_index_headers_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->adding_never_index_headers(i));
}
// repeated string deleting_never_index_headers = 25;
total_size += 2 * this->deleting_never_index_headers_size();
for (int i = 0; i < this->deleting_never_index_headers_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->deleting_never_index_headers(i));
}
// map<uint32, uint32> settings = 31;
total_size += 2 * this->settings_size();
{
::google::protobuf::scoped_ptr<HttpMsg_SettingsEntry> entry;
for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
it = this->settings().begin();
it != this->settings().end(); ++it) {
entry.reset(settings_.NewEntryWrapper(it->first, it->second));
total_size += ::google::protobuf::internal::WireFormatLite::
MessageSizeNoVirtual(*entry);
}
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void HttpMsg::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:HttpMsg)
if (GOOGLE_PREDICT_FALSE(&from == this)) {
::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
}
const HttpMsg* source =
::google::protobuf::internal::DynamicCastToGenerated<const HttpMsg>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:HttpMsg)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:HttpMsg)
MergeFrom(*source);
}
}
void HttpMsg::MergeFrom(const HttpMsg& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:HttpMsg)
if (GOOGLE_PREDICT_FALSE(&from == this)) {
::google::protobuf::internal::MergeFromFail(__FILE__, __LINE__);
}
headers_.MergeFrom(from.headers_);
params_.MergeFrom(from.params_);
adding_without_index_headers_.MergeFrom(from.adding_without_index_headers_);
deleting_without_index_headers_.MergeFrom(from.deleting_without_index_headers_);
adding_never_index_headers_.MergeFrom(from.adding_never_index_headers_);
deleting_never_index_headers_.MergeFrom(from.deleting_never_index_headers_);
settings_.MergeFrom(from.settings_);
if (from.type() != 0) {
set_type(from.type());
}
if (from.http_major() != 0) {
set_http_major(from.http_major());
}
if (from.http_minor() != 0) {
set_http_minor(from.http_minor());
}
if (from.content_length() != 0) {
set_content_length(from.content_length());
}
if (from.method() != 0) {
set_method(from.method());
}
if (from.status_code() != 0) {
set_status_code(from.status_code());
}
if (from.encoding() != 0) {
set_encoding(from.encoding());
}
if (from.url().size() > 0) {
url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_);
}
if (from.body().size() > 0) {
body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body_);
}
if (from.has_upgrade()) {
mutable_upgrade()->::HttpMsg_Upgrade::MergeFrom(from.upgrade());
}
if (from.keep_alive() != 0) {
set_keep_alive(from.keep_alive());
}
if (from.path().size() > 0) {
path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path_);
}
if (from.is_decoding() != 0) {
set_is_decoding(from.is_decoding());
}
if (from.chunk_notice() != 0) {
set_chunk_notice(from.chunk_notice());
}
if (from.stream_id() != 0) {
set_stream_id(from.stream_id());
}
if (from.hpack_data().size() > 0) {
hpack_data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hpack_data_);
}
if (from.dynamic_table_update_size() != 0) {
set_dynamic_table_update_size(from.dynamic_table_update_size());
}
if (from.with_huffman() != 0) {
set_with_huffman(from.with_huffman());
}
if (from.headers_frame_padding().size() > 0) {
headers_frame_padding_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.headers_frame_padding_);
}
if (from.data_frame_padding().size() > 0) {
data_frame_padding_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_frame_padding_);
}
if (from.push_promise_frame_padding().size() > 0) {
push_promise_frame_padding_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.push_promise_frame_padding_);
}
}
void HttpMsg::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:HttpMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void HttpMsg::CopyFrom(const HttpMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:HttpMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HttpMsg::IsInitialized() const {
return true;
}
void HttpMsg::Swap(HttpMsg* other) {
if (other == this) return;
InternalSwap(other);
}
void HttpMsg::InternalSwap(HttpMsg* other) {
std::swap(type_, other->type_);
std::swap(http_major_, other->http_major_);
std::swap(http_minor_, other->http_minor_);
std::swap(content_length_, other->content_length_);
std::swap(method_, other->method_);
std::swap(status_code_, other->status_code_);
std::swap(encoding_, other->encoding_);
url_.Swap(&other->url_);
headers_.Swap(&other->headers_);
body_.Swap(&other->body_);
params_.Swap(&other->params_);
std::swap(upgrade_, other->upgrade_);
std::swap(keep_alive_, other->keep_alive_);
path_.Swap(&other->path_);
std::swap(is_decoding_, other->is_decoding_);
std::swap(chunk_notice_, other->chunk_notice_);
std::swap(stream_id_, other->stream_id_);
hpack_data_.Swap(&other->hpack_data_);
adding_without_index_headers_.UnsafeArenaSwap(&other->adding_without_index_headers_);
deleting_without_index_headers_.UnsafeArenaSwap(&other->deleting_without_index_headers_);
adding_never_index_headers_.UnsafeArenaSwap(&other->adding_never_index_headers_);
deleting_never_index_headers_.UnsafeArenaSwap(&other->deleting_never_index_headers_);
std::swap(dynamic_table_update_size_, other->dynamic_table_update_size_);
std::swap(with_huffman_, other->with_huffman_);
headers_frame_padding_.Swap(&other->headers_frame_padding_);
data_frame_padding_.Swap(&other->data_frame_padding_);
push_promise_frame_padding_.Swap(&other->push_promise_frame_padding_);
settings_.Swap(&other->settings_);
_internal_metadata_.Swap(&other->_internal_metadata_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata HttpMsg::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = HttpMsg_descriptor_;
metadata.reflection = HttpMsg_reflection_;
return metadata;
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// HttpMsg_Upgrade
// optional bool is_upgrade = 1;
void HttpMsg_Upgrade::clear_is_upgrade() {
is_upgrade_ = false;
}
bool HttpMsg_Upgrade::is_upgrade() const {
// @@protoc_insertion_point(field_get:HttpMsg.Upgrade.is_upgrade)
return is_upgrade_;
}
void HttpMsg_Upgrade::set_is_upgrade(bool value) {
is_upgrade_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.Upgrade.is_upgrade)
}
// optional string protocol = 2;
void HttpMsg_Upgrade::clear_protocol() {
protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& HttpMsg_Upgrade::protocol() const {
// @@protoc_insertion_point(field_get:HttpMsg.Upgrade.protocol)
return protocol_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg_Upgrade::set_protocol(const ::std::string& value) {
protocol_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:HttpMsg.Upgrade.protocol)
}
void HttpMsg_Upgrade::set_protocol(const char* value) {
protocol_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:HttpMsg.Upgrade.protocol)
}
void HttpMsg_Upgrade::set_protocol(const char* value, size_t size) {
protocol_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:HttpMsg.Upgrade.protocol)
}
::std::string* HttpMsg_Upgrade::mutable_protocol() {
// @@protoc_insertion_point(field_mutable:HttpMsg.Upgrade.protocol)
return protocol_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HttpMsg_Upgrade::release_protocol() {
// @@protoc_insertion_point(field_release:HttpMsg.Upgrade.protocol)
return protocol_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg_Upgrade::set_allocated_protocol(::std::string* protocol) {
if (protocol != NULL) {
} else {
}
protocol_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), protocol);
// @@protoc_insertion_point(field_set_allocated:HttpMsg.Upgrade.protocol)
}
// -------------------------------------------------------------------
// HttpMsg
// optional int32 type = 1;
void HttpMsg::clear_type() {
type_ = 0;
}
::google::protobuf::int32 HttpMsg::type() const {
// @@protoc_insertion_point(field_get:HttpMsg.type)
return type_;
}
void HttpMsg::set_type(::google::protobuf::int32 value) {
type_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.type)
}
// optional int32 http_major = 2;
void HttpMsg::clear_http_major() {
http_major_ = 0;
}
::google::protobuf::int32 HttpMsg::http_major() const {
// @@protoc_insertion_point(field_get:HttpMsg.http_major)
return http_major_;
}
void HttpMsg::set_http_major(::google::protobuf::int32 value) {
http_major_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.http_major)
}
// optional int32 http_minor = 3;
void HttpMsg::clear_http_minor() {
http_minor_ = 0;
}
::google::protobuf::int32 HttpMsg::http_minor() const {
// @@protoc_insertion_point(field_get:HttpMsg.http_minor)
return http_minor_;
}
void HttpMsg::set_http_minor(::google::protobuf::int32 value) {
http_minor_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.http_minor)
}
// optional int32 content_length = 4;
void HttpMsg::clear_content_length() {
content_length_ = 0;
}
::google::protobuf::int32 HttpMsg::content_length() const {
// @@protoc_insertion_point(field_get:HttpMsg.content_length)
return content_length_;
}
void HttpMsg::set_content_length(::google::protobuf::int32 value) {
content_length_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.content_length)
}
// optional int32 method = 5;
void HttpMsg::clear_method() {
method_ = 0;
}
::google::protobuf::int32 HttpMsg::method() const {
// @@protoc_insertion_point(field_get:HttpMsg.method)
return method_;
}
void HttpMsg::set_method(::google::protobuf::int32 value) {
method_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.method)
}
// optional int32 status_code = 6;
void HttpMsg::clear_status_code() {
status_code_ = 0;
}
::google::protobuf::int32 HttpMsg::status_code() const {
// @@protoc_insertion_point(field_get:HttpMsg.status_code)
return status_code_;
}
void HttpMsg::set_status_code(::google::protobuf::int32 value) {
status_code_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.status_code)
}
// optional int32 encoding = 7;
void HttpMsg::clear_encoding() {
encoding_ = 0;
}
::google::protobuf::int32 HttpMsg::encoding() const {
// @@protoc_insertion_point(field_get:HttpMsg.encoding)
return encoding_;
}
void HttpMsg::set_encoding(::google::protobuf::int32 value) {
encoding_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.encoding)
}
// optional string url = 8;
void HttpMsg::clear_url() {
url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& HttpMsg::url() const {
// @@protoc_insertion_point(field_get:HttpMsg.url)
return url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_url(const ::std::string& value) {
url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:HttpMsg.url)
}
void HttpMsg::set_url(const char* value) {
url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:HttpMsg.url)
}
void HttpMsg::set_url(const char* value, size_t size) {
url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:HttpMsg.url)
}
::std::string* HttpMsg::mutable_url() {
// @@protoc_insertion_point(field_mutable:HttpMsg.url)
return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HttpMsg::release_url() {
// @@protoc_insertion_point(field_release:HttpMsg.url)
return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_allocated_url(::std::string* url) {
if (url != NULL) {
} else {
}
url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url);
// @@protoc_insertion_point(field_set_allocated:HttpMsg.url)
}
// map<string, string> headers = 9;
int HttpMsg::headers_size() const {
return headers_.size();
}
void HttpMsg::clear_headers() {
headers_.Clear();
}
const ::google::protobuf::Map< ::std::string, ::std::string >&
HttpMsg::headers() const {
// @@protoc_insertion_point(field_map:HttpMsg.headers)
return headers_.GetMap();
}
::google::protobuf::Map< ::std::string, ::std::string >*
HttpMsg::mutable_headers() {
// @@protoc_insertion_point(field_mutable_map:HttpMsg.headers)
return headers_.MutableMap();
}
// optional bytes body = 10;
void HttpMsg::clear_body() {
body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& HttpMsg::body() const {
// @@protoc_insertion_point(field_get:HttpMsg.body)
return body_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_body(const ::std::string& value) {
body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:HttpMsg.body)
}
void HttpMsg::set_body(const char* value) {
body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:HttpMsg.body)
}
void HttpMsg::set_body(const void* value, size_t size) {
body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:HttpMsg.body)
}
::std::string* HttpMsg::mutable_body() {
// @@protoc_insertion_point(field_mutable:HttpMsg.body)
return body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HttpMsg::release_body() {
// @@protoc_insertion_point(field_release:HttpMsg.body)
return body_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_allocated_body(::std::string* body) {
if (body != NULL) {
} else {
}
body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body);
// @@protoc_insertion_point(field_set_allocated:HttpMsg.body)
}
// map<string, string> params = 11;
int HttpMsg::params_size() const {
return params_.size();
}
void HttpMsg::clear_params() {
params_.Clear();
}
const ::google::protobuf::Map< ::std::string, ::std::string >&
HttpMsg::params() const {
// @@protoc_insertion_point(field_map:HttpMsg.params)
return params_.GetMap();
}
::google::protobuf::Map< ::std::string, ::std::string >*
HttpMsg::mutable_params() {
// @@protoc_insertion_point(field_mutable_map:HttpMsg.params)
return params_.MutableMap();
}
// optional .HttpMsg.Upgrade upgrade = 12;
bool HttpMsg::has_upgrade() const {
return !_is_default_instance_ && upgrade_ != NULL;
}
void HttpMsg::clear_upgrade() {
if (GetArenaNoVirtual() == NULL && upgrade_ != NULL) delete upgrade_;
upgrade_ = NULL;
}
const ::HttpMsg_Upgrade& HttpMsg::upgrade() const {
// @@protoc_insertion_point(field_get:HttpMsg.upgrade)
return upgrade_ != NULL ? *upgrade_ : *default_instance_->upgrade_;
}
::HttpMsg_Upgrade* HttpMsg::mutable_upgrade() {
if (upgrade_ == NULL) {
upgrade_ = new ::HttpMsg_Upgrade;
}
// @@protoc_insertion_point(field_mutable:HttpMsg.upgrade)
return upgrade_;
}
::HttpMsg_Upgrade* HttpMsg::release_upgrade() {
// @@protoc_insertion_point(field_release:HttpMsg.upgrade)
::HttpMsg_Upgrade* temp = upgrade_;
upgrade_ = NULL;
return temp;
}
void HttpMsg::set_allocated_upgrade(::HttpMsg_Upgrade* upgrade) {
delete upgrade_;
upgrade_ = upgrade;
if (upgrade) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:HttpMsg.upgrade)
}
// optional float keep_alive = 13;
void HttpMsg::clear_keep_alive() {
keep_alive_ = 0;
}
float HttpMsg::keep_alive() const {
// @@protoc_insertion_point(field_get:HttpMsg.keep_alive)
return keep_alive_;
}
void HttpMsg::set_keep_alive(float value) {
keep_alive_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.keep_alive)
}
// optional string path = 14;
void HttpMsg::clear_path() {
path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& HttpMsg::path() const {
// @@protoc_insertion_point(field_get:HttpMsg.path)
return path_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_path(const ::std::string& value) {
path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:HttpMsg.path)
}
void HttpMsg::set_path(const char* value) {
path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:HttpMsg.path)
}
void HttpMsg::set_path(const char* value, size_t size) {
path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:HttpMsg.path)
}
::std::string* HttpMsg::mutable_path() {
// @@protoc_insertion_point(field_mutable:HttpMsg.path)
return path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HttpMsg::release_path() {
// @@protoc_insertion_point(field_release:HttpMsg.path)
return path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_allocated_path(::std::string* path) {
if (path != NULL) {
} else {
}
path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), path);
// @@protoc_insertion_point(field_set_allocated:HttpMsg.path)
}
// optional bool is_decoding = 15;
void HttpMsg::clear_is_decoding() {
is_decoding_ = false;
}
bool HttpMsg::is_decoding() const {
// @@protoc_insertion_point(field_get:HttpMsg.is_decoding)
return is_decoding_;
}
void HttpMsg::set_is_decoding(bool value) {
is_decoding_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.is_decoding)
}
// optional bool chunk_notice = 19;
void HttpMsg::clear_chunk_notice() {
chunk_notice_ = false;
}
bool HttpMsg::chunk_notice() const {
// @@protoc_insertion_point(field_get:HttpMsg.chunk_notice)
return chunk_notice_;
}
void HttpMsg::set_chunk_notice(bool value) {
chunk_notice_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.chunk_notice)
}
// optional uint32 stream_id = 20;
void HttpMsg::clear_stream_id() {
stream_id_ = 0u;
}
::google::protobuf::uint32 HttpMsg::stream_id() const {
// @@protoc_insertion_point(field_get:HttpMsg.stream_id)
return stream_id_;
}
void HttpMsg::set_stream_id(::google::protobuf::uint32 value) {
stream_id_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.stream_id)
}
// optional string hpack_data = 21;
void HttpMsg::clear_hpack_data() {
hpack_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& HttpMsg::hpack_data() const {
// @@protoc_insertion_point(field_get:HttpMsg.hpack_data)
return hpack_data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_hpack_data(const ::std::string& value) {
hpack_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:HttpMsg.hpack_data)
}
void HttpMsg::set_hpack_data(const char* value) {
hpack_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:HttpMsg.hpack_data)
}
void HttpMsg::set_hpack_data(const char* value, size_t size) {
hpack_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:HttpMsg.hpack_data)
}
::std::string* HttpMsg::mutable_hpack_data() {
// @@protoc_insertion_point(field_mutable:HttpMsg.hpack_data)
return hpack_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HttpMsg::release_hpack_data() {
// @@protoc_insertion_point(field_release:HttpMsg.hpack_data)
return hpack_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_allocated_hpack_data(::std::string* hpack_data) {
if (hpack_data != NULL) {
} else {
}
hpack_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hpack_data);
// @@protoc_insertion_point(field_set_allocated:HttpMsg.hpack_data)
}
// repeated string adding_without_index_headers = 22;
int HttpMsg::adding_without_index_headers_size() const {
return adding_without_index_headers_.size();
}
void HttpMsg::clear_adding_without_index_headers() {
adding_without_index_headers_.Clear();
}
const ::std::string& HttpMsg::adding_without_index_headers(int index) const {
// @@protoc_insertion_point(field_get:HttpMsg.adding_without_index_headers)
return adding_without_index_headers_.Get(index);
}
::std::string* HttpMsg::mutable_adding_without_index_headers(int index) {
// @@protoc_insertion_point(field_mutable:HttpMsg.adding_without_index_headers)
return adding_without_index_headers_.Mutable(index);
}
void HttpMsg::set_adding_without_index_headers(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:HttpMsg.adding_without_index_headers)
adding_without_index_headers_.Mutable(index)->assign(value);
}
void HttpMsg::set_adding_without_index_headers(int index, const char* value) {
adding_without_index_headers_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:HttpMsg.adding_without_index_headers)
}
void HttpMsg::set_adding_without_index_headers(int index, const char* value, size_t size) {
adding_without_index_headers_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:HttpMsg.adding_without_index_headers)
}
::std::string* HttpMsg::add_adding_without_index_headers() {
// @@protoc_insertion_point(field_add_mutable:HttpMsg.adding_without_index_headers)
return adding_without_index_headers_.Add();
}
void HttpMsg::add_adding_without_index_headers(const ::std::string& value) {
adding_without_index_headers_.Add()->assign(value);
// @@protoc_insertion_point(field_add:HttpMsg.adding_without_index_headers)
}
void HttpMsg::add_adding_without_index_headers(const char* value) {
adding_without_index_headers_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:HttpMsg.adding_without_index_headers)
}
void HttpMsg::add_adding_without_index_headers(const char* value, size_t size) {
adding_without_index_headers_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:HttpMsg.adding_without_index_headers)
}
const ::google::protobuf::RepeatedPtrField< ::std::string>&
HttpMsg::adding_without_index_headers() const {
// @@protoc_insertion_point(field_list:HttpMsg.adding_without_index_headers)
return adding_without_index_headers_;
}
::google::protobuf::RepeatedPtrField< ::std::string>*
HttpMsg::mutable_adding_without_index_headers() {
// @@protoc_insertion_point(field_mutable_list:HttpMsg.adding_without_index_headers)
return &adding_without_index_headers_;
}
// repeated string deleting_without_index_headers = 23;
int HttpMsg::deleting_without_index_headers_size() const {
return deleting_without_index_headers_.size();
}
void HttpMsg::clear_deleting_without_index_headers() {
deleting_without_index_headers_.Clear();
}
const ::std::string& HttpMsg::deleting_without_index_headers(int index) const {
// @@protoc_insertion_point(field_get:HttpMsg.deleting_without_index_headers)
return deleting_without_index_headers_.Get(index);
}
::std::string* HttpMsg::mutable_deleting_without_index_headers(int index) {
// @@protoc_insertion_point(field_mutable:HttpMsg.deleting_without_index_headers)
return deleting_without_index_headers_.Mutable(index);
}
void HttpMsg::set_deleting_without_index_headers(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:HttpMsg.deleting_without_index_headers)
deleting_without_index_headers_.Mutable(index)->assign(value);
}
void HttpMsg::set_deleting_without_index_headers(int index, const char* value) {
deleting_without_index_headers_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:HttpMsg.deleting_without_index_headers)
}
void HttpMsg::set_deleting_without_index_headers(int index, const char* value, size_t size) {
deleting_without_index_headers_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:HttpMsg.deleting_without_index_headers)
}
::std::string* HttpMsg::add_deleting_without_index_headers() {
// @@protoc_insertion_point(field_add_mutable:HttpMsg.deleting_without_index_headers)
return deleting_without_index_headers_.Add();
}
void HttpMsg::add_deleting_without_index_headers(const ::std::string& value) {
deleting_without_index_headers_.Add()->assign(value);
// @@protoc_insertion_point(field_add:HttpMsg.deleting_without_index_headers)
}
void HttpMsg::add_deleting_without_index_headers(const char* value) {
deleting_without_index_headers_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:HttpMsg.deleting_without_index_headers)
}
void HttpMsg::add_deleting_without_index_headers(const char* value, size_t size) {
deleting_without_index_headers_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:HttpMsg.deleting_without_index_headers)
}
const ::google::protobuf::RepeatedPtrField< ::std::string>&
HttpMsg::deleting_without_index_headers() const {
// @@protoc_insertion_point(field_list:HttpMsg.deleting_without_index_headers)
return deleting_without_index_headers_;
}
::google::protobuf::RepeatedPtrField< ::std::string>*
HttpMsg::mutable_deleting_without_index_headers() {
// @@protoc_insertion_point(field_mutable_list:HttpMsg.deleting_without_index_headers)
return &deleting_without_index_headers_;
}
// repeated string adding_never_index_headers = 24;
int HttpMsg::adding_never_index_headers_size() const {
return adding_never_index_headers_.size();
}
void HttpMsg::clear_adding_never_index_headers() {
adding_never_index_headers_.Clear();
}
const ::std::string& HttpMsg::adding_never_index_headers(int index) const {
// @@protoc_insertion_point(field_get:HttpMsg.adding_never_index_headers)
return adding_never_index_headers_.Get(index);
}
::std::string* HttpMsg::mutable_adding_never_index_headers(int index) {
// @@protoc_insertion_point(field_mutable:HttpMsg.adding_never_index_headers)
return adding_never_index_headers_.Mutable(index);
}
void HttpMsg::set_adding_never_index_headers(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:HttpMsg.adding_never_index_headers)
adding_never_index_headers_.Mutable(index)->assign(value);
}
void HttpMsg::set_adding_never_index_headers(int index, const char* value) {
adding_never_index_headers_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:HttpMsg.adding_never_index_headers)
}
void HttpMsg::set_adding_never_index_headers(int index, const char* value, size_t size) {
adding_never_index_headers_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:HttpMsg.adding_never_index_headers)
}
::std::string* HttpMsg::add_adding_never_index_headers() {
// @@protoc_insertion_point(field_add_mutable:HttpMsg.adding_never_index_headers)
return adding_never_index_headers_.Add();
}
void HttpMsg::add_adding_never_index_headers(const ::std::string& value) {
adding_never_index_headers_.Add()->assign(value);
// @@protoc_insertion_point(field_add:HttpMsg.adding_never_index_headers)
}
void HttpMsg::add_adding_never_index_headers(const char* value) {
adding_never_index_headers_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:HttpMsg.adding_never_index_headers)
}
void HttpMsg::add_adding_never_index_headers(const char* value, size_t size) {
adding_never_index_headers_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:HttpMsg.adding_never_index_headers)
}
const ::google::protobuf::RepeatedPtrField< ::std::string>&
HttpMsg::adding_never_index_headers() const {
// @@protoc_insertion_point(field_list:HttpMsg.adding_never_index_headers)
return adding_never_index_headers_;
}
::google::protobuf::RepeatedPtrField< ::std::string>*
HttpMsg::mutable_adding_never_index_headers() {
// @@protoc_insertion_point(field_mutable_list:HttpMsg.adding_never_index_headers)
return &adding_never_index_headers_;
}
// repeated string deleting_never_index_headers = 25;
int HttpMsg::deleting_never_index_headers_size() const {
return deleting_never_index_headers_.size();
}
void HttpMsg::clear_deleting_never_index_headers() {
deleting_never_index_headers_.Clear();
}
const ::std::string& HttpMsg::deleting_never_index_headers(int index) const {
// @@protoc_insertion_point(field_get:HttpMsg.deleting_never_index_headers)
return deleting_never_index_headers_.Get(index);
}
::std::string* HttpMsg::mutable_deleting_never_index_headers(int index) {
// @@protoc_insertion_point(field_mutable:HttpMsg.deleting_never_index_headers)
return deleting_never_index_headers_.Mutable(index);
}
void HttpMsg::set_deleting_never_index_headers(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:HttpMsg.deleting_never_index_headers)
deleting_never_index_headers_.Mutable(index)->assign(value);
}
void HttpMsg::set_deleting_never_index_headers(int index, const char* value) {
deleting_never_index_headers_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:HttpMsg.deleting_never_index_headers)
}
void HttpMsg::set_deleting_never_index_headers(int index, const char* value, size_t size) {
deleting_never_index_headers_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:HttpMsg.deleting_never_index_headers)
}
::std::string* HttpMsg::add_deleting_never_index_headers() {
// @@protoc_insertion_point(field_add_mutable:HttpMsg.deleting_never_index_headers)
return deleting_never_index_headers_.Add();
}
void HttpMsg::add_deleting_never_index_headers(const ::std::string& value) {
deleting_never_index_headers_.Add()->assign(value);
// @@protoc_insertion_point(field_add:HttpMsg.deleting_never_index_headers)
}
void HttpMsg::add_deleting_never_index_headers(const char* value) {
deleting_never_index_headers_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:HttpMsg.deleting_never_index_headers)
}
void HttpMsg::add_deleting_never_index_headers(const char* value, size_t size) {
deleting_never_index_headers_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:HttpMsg.deleting_never_index_headers)
}
const ::google::protobuf::RepeatedPtrField< ::std::string>&
HttpMsg::deleting_never_index_headers() const {
// @@protoc_insertion_point(field_list:HttpMsg.deleting_never_index_headers)
return deleting_never_index_headers_;
}
::google::protobuf::RepeatedPtrField< ::std::string>*
HttpMsg::mutable_deleting_never_index_headers() {
// @@protoc_insertion_point(field_mutable_list:HttpMsg.deleting_never_index_headers)
return &deleting_never_index_headers_;
}
// optional uint32 dynamic_table_update_size = 26;
void HttpMsg::clear_dynamic_table_update_size() {
dynamic_table_update_size_ = 0u;
}
::google::protobuf::uint32 HttpMsg::dynamic_table_update_size() const {
// @@protoc_insertion_point(field_get:HttpMsg.dynamic_table_update_size)
return dynamic_table_update_size_;
}
void HttpMsg::set_dynamic_table_update_size(::google::protobuf::uint32 value) {
dynamic_table_update_size_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.dynamic_table_update_size)
}
// optional bool with_huffman = 27;
void HttpMsg::clear_with_huffman() {
with_huffman_ = false;
}
bool HttpMsg::with_huffman() const {
// @@protoc_insertion_point(field_get:HttpMsg.with_huffman)
return with_huffman_;
}
void HttpMsg::set_with_huffman(bool value) {
with_huffman_ = value;
// @@protoc_insertion_point(field_set:HttpMsg.with_huffman)
}
// optional string headers_frame_padding = 28;
void HttpMsg::clear_headers_frame_padding() {
headers_frame_padding_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& HttpMsg::headers_frame_padding() const {
// @@protoc_insertion_point(field_get:HttpMsg.headers_frame_padding)
return headers_frame_padding_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_headers_frame_padding(const ::std::string& value) {
headers_frame_padding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:HttpMsg.headers_frame_padding)
}
void HttpMsg::set_headers_frame_padding(const char* value) {
headers_frame_padding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:HttpMsg.headers_frame_padding)
}
void HttpMsg::set_headers_frame_padding(const char* value, size_t size) {
headers_frame_padding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:HttpMsg.headers_frame_padding)
}
::std::string* HttpMsg::mutable_headers_frame_padding() {
// @@protoc_insertion_point(field_mutable:HttpMsg.headers_frame_padding)
return headers_frame_padding_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HttpMsg::release_headers_frame_padding() {
// @@protoc_insertion_point(field_release:HttpMsg.headers_frame_padding)
return headers_frame_padding_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_allocated_headers_frame_padding(::std::string* headers_frame_padding) {
if (headers_frame_padding != NULL) {
} else {
}
headers_frame_padding_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), headers_frame_padding);
// @@protoc_insertion_point(field_set_allocated:HttpMsg.headers_frame_padding)
}
// optional string data_frame_padding = 29;
void HttpMsg::clear_data_frame_padding() {
data_frame_padding_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& HttpMsg::data_frame_padding() const {
// @@protoc_insertion_point(field_get:HttpMsg.data_frame_padding)
return data_frame_padding_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_data_frame_padding(const ::std::string& value) {
data_frame_padding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:HttpMsg.data_frame_padding)
}
void HttpMsg::set_data_frame_padding(const char* value) {
data_frame_padding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:HttpMsg.data_frame_padding)
}
void HttpMsg::set_data_frame_padding(const char* value, size_t size) {
data_frame_padding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:HttpMsg.data_frame_padding)
}
::std::string* HttpMsg::mutable_data_frame_padding() {
// @@protoc_insertion_point(field_mutable:HttpMsg.data_frame_padding)
return data_frame_padding_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HttpMsg::release_data_frame_padding() {
// @@protoc_insertion_point(field_release:HttpMsg.data_frame_padding)
return data_frame_padding_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_allocated_data_frame_padding(::std::string* data_frame_padding) {
if (data_frame_padding != NULL) {
} else {
}
data_frame_padding_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_frame_padding);
// @@protoc_insertion_point(field_set_allocated:HttpMsg.data_frame_padding)
}
// optional string push_promise_frame_padding = 30;
void HttpMsg::clear_push_promise_frame_padding() {
push_promise_frame_padding_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& HttpMsg::push_promise_frame_padding() const {
// @@protoc_insertion_point(field_get:HttpMsg.push_promise_frame_padding)
return push_promise_frame_padding_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_push_promise_frame_padding(const ::std::string& value) {
push_promise_frame_padding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:HttpMsg.push_promise_frame_padding)
}
void HttpMsg::set_push_promise_frame_padding(const char* value) {
push_promise_frame_padding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:HttpMsg.push_promise_frame_padding)
}
void HttpMsg::set_push_promise_frame_padding(const char* value, size_t size) {
push_promise_frame_padding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:HttpMsg.push_promise_frame_padding)
}
::std::string* HttpMsg::mutable_push_promise_frame_padding() {
// @@protoc_insertion_point(field_mutable:HttpMsg.push_promise_frame_padding)
return push_promise_frame_padding_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* HttpMsg::release_push_promise_frame_padding() {
// @@protoc_insertion_point(field_release:HttpMsg.push_promise_frame_padding)
return push_promise_frame_padding_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void HttpMsg::set_allocated_push_promise_frame_padding(::std::string* push_promise_frame_padding) {
if (push_promise_frame_padding != NULL) {
} else {
}
push_promise_frame_padding_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), push_promise_frame_padding);
// @@protoc_insertion_point(field_set_allocated:HttpMsg.push_promise_frame_padding)
}
// map<uint32, uint32> settings = 31;
int HttpMsg::settings_size() const {
return settings_.size();
}
void HttpMsg::clear_settings() {
settings_.Clear();
}
const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >&
HttpMsg::settings() const {
// @@protoc_insertion_point(field_map:HttpMsg.settings)
return settings_.GetMap();
}
::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >*
HttpMsg::mutable_settings() {
// @@protoc_insertion_point(field_mutable_map:HttpMsg.settings)
return settings_.MutableMap();
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// @@protoc_insertion_point(namespace_scope)
// @@protoc_insertion_point(global_scope)
|
; A112335: Row sums of number triangle A112334.
; 1,-1,-4,-7,-10,-13,-16,-19,-22,-25,-28,-31,-34,-37,-40,-43,-46,-49,-52,-55,-58,-61,-64,-67,-70,-73,-76,-79,-82,-85,-88,-91,-94,-97,-100,-103,-106,-109,-112,-115,-118,-121,-124,-127,-130,-133,-136,-139,-142,-145,-148,-151,-154,-157,-160,-163,-166,-169
mul $0,3
trn $0,1
mov $1,1
sub $1,$0
|
; A212686: Number of (w,x,y,z) with all terms in {1,...,n} and 2|w-x|=n+|y-z|.
; 0,0,4,8,24,40,76,112,176,240,340,440,584,728,924,1120,1376,1632,1956,2280,2680,3080,3564,4048,4624,5200,5876,6552,7336,8120,9020,9920,10944,11968,13124,14280,15576,16872,18316,19760,21360,22960
mov $3,$0
mov $5,$0
lpb $5,1
mov $0,$3
sub $5,1
sub $0,$5
add $2,$0
div $0,2
mov $4,$0
lpb $2,1
mov $2,1
mul $4,2
lpe
pow $4,2
add $1,$4
lpe
|
_start:
sub sp, sp, #0x20
stp x29, x30, [sp, #0x10]
add x29, sp, #0x10
bl function
cbz x0, label
nop
label:
ldp x29, x30, [sp, #0x10]
add sp, sp, #0x20
ret
function:
ret
|
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; SpoolKernelAvx512F.asm
;
; Abstract:
;
; This module implements the kernels for the single precision pooling
; operation.
;
; This implementation uses AVX512F instructions.
;
;--
.xlist
INCLUDE mlasi.inc
INCLUDE SpoolKernelAvxCommon.inc
.list
;
; Macro Description:
;
; This macro generates code to initialize registers used across the kernel.
;
; Arguments:
;
; PoolingType - Supplies the pooling type string.
;
InitializeKernel MACRO PoolingType
IFIDNI <PoolingType>, <Maximum>
mov DWORD PTR SpoolKernelFrame.PreviousP1Home[rsp],0FF7FFFFFh
vbroadcastss zmm5,DWORD PTR SpoolKernelFrame.PreviousP1Home[rsp]
ELSE
vxorps xmm5,xmm5,xmm5 ; initialize default divisor vector
IFIDNI <PoolingType>, <AverageExcludePad>
mov rax,SpoolKernelFrame.KernelHeight[rsp]
imul rax,SpoolKernelFrame.KernelWidth[rsp]
vcvtsi2ss xmm5,xmm5,rax
ELSE
vcvtsi2ss xmm5,xmm5,SpoolKernelFrame.ActualKernelSize[rsp]
ENDIF
vbroadcastss zmm5,xmm5
ENDIF
ENDM
;
; Macro Description:
;
; This macro generates code to clear the pooling intermediates.
;
; For PoolingType==Maximum, the pooling intermediates are set to the minimum
; float value. Otherwise, the pooling intermediates are cleared to zero.
;
; Arguments:
;
; PoolingType - Supplies the pooling type string.
;
; OutputCount - Supplies the number of output blocks to produce.
;
; Implicit Arguments:
;
; rsi - Supplies the number of blocks accessed by ComputeBlock, if
; PoolingType=AverageExcludePad and OutputCount=1.
;
; zmm0-zmm2 - Supplies the pooling intermediates.
;
; zmm5 - Supplies a vector containing the minimum float value broadcasted,
; if PoolingType==Maximum.
;
ClearBlock MACRO PoolingType, OutputCount
IFIDNI <PoolingType>, <Maximum>
EmitIfCountGE OutputCount, 1, <vmovaps zmm0,zmm5>
EmitIfCountGE OutputCount, 2, <vmovaps zmm1,zmm5>
EmitIfCountGE OutputCount, 3, <vmovaps zmm2,zmm5>
ELSE
EmitIfCountGE OutputCount, 1, <vxorps xmm0,xmm0,xmm0>
EmitIfCountGE OutputCount, 2, <vxorps xmm1,xmm1,xmm1>
EmitIfCountGE OutputCount, 3, <vxorps xmm2,xmm2,xmm2>
ENDIF
IFIDNI <PoolingType>, <AverageExcludePad>
IF OutputCount EQ 1
xor rsi,rsi ; reset valid block counter
ENDIF
ENDIF
ENDM
;
; Macro Description:
;
; This macro generates code to sample the input buffer and update the pooling
; intermediates as appropriate.
;
; Arguments:
;
; PoolingType - Supplies the pooling type string.
;
; OutputCount - Supplies the number of output blocks to produce.
;
; Implicit Arguments:
;
; rcx - Supplies the address of the input buffer.
;
; rsi - Supplies the number of blocks accessed by ComputeBlock, if
; PoolingType=AverageExcludePad and OutputCount=1.
;
; r8 - Supplies the StrideWidth parameter (see function description).
;
; zmm0-zmm2 - Supplies the pooling intermediates.
;
ComputeBlock MACRO PoolingType, OutputCount
IFIDNI <PoolingType>, <Maximum>
EmitIfCountGE OutputCount, 1, <vmaxps zmm0,zmm0,ZMMWORD PTR [rcx]>
EmitIfCountGE OutputCount, 2, <vmaxps zmm1,zmm1,ZMMWORD PTR [rcx+r8]>
EmitIfCountGE OutputCount, 3, <vmaxps zmm2,zmm2,ZMMWORD PTR [rcx+r8*2]>
ELSE
EmitIfCountGE OutputCount, 1, <vaddps zmm0,zmm0,ZMMWORD PTR [rcx]>
EmitIfCountGE OutputCount, 2, <vaddps zmm1,zmm1,ZMMWORD PTR [rcx+r8]>
EmitIfCountGE OutputCount, 3, <vaddps zmm2,zmm2,ZMMWORD PTR [rcx+r8*2]>
ENDIF
IFIDNI <PoolingType>, <AverageExcludePad>
IF OutputCount EQ 1
inc rsi ; increment valid block counter
ENDIF
ENDIF
ENDM
;
; Macro Description:
;
; This macro generates code to process and store the pooling intermediates.
;
; Arguments:
;
; PoolingType - Supplies the pooling type string.
;
; OutputCount - Supplies the number of output blocks to produce.
;
; Implicit Arguments:
;
; rdx - Supplies the address of the output buffer.
;
; rsi - Supplies the number of blocks accessed by ComputeBlock, if
; PoolingType=AverageExcludePad and OutputCount=1.
;
; zmm0-zmm2 - Supplies the pooling intermediates.
;
; zmm5 - Supplies the kernel size computed by InitializeKernel, if
; PoolingType=AverageExcludePad, else the actual kernel size, if
; PoolingType=AverageIncludePad.
;
PostProcessBlock MACRO PoolingType, OutputCount
;
; If PoolingType=AverageExcludePad, divide the sum by the number of non-padding
; blocks. OutputCount=1 generates code to count the number of blocks accessed by
; ComputeBlock. Other cases use the kernel size computed by InitializeKernel.
;
IFIDNI <PoolingType>, <AverageExcludePad>
IF OutputCount EQ 1
vxorps xmm4,xmm4,xmm4
vcvtsi2ss xmm4,xmm4,rsi ; convert valid block counter
vbroadcastss zmm4,xmm4
vdivps zmm0,zmm0,zmm4
ELSE
EmitIfCountGE OutputCount, 1, <vdivps zmm0,zmm0,zmm5>
EmitIfCountGE OutputCount, 2, <vdivps zmm1,zmm1,zmm5>
EmitIfCountGE OutputCount, 3, <vdivps zmm2,zmm2,zmm5>
ENDIF
ENDIF
;
; If PoolingType=AverageIncludePad, divide the sum by the actual kernel size.
;
IFIDNI <PoolingType>, <AverageIncludePad>
EmitIfCountGE OutputCount, 1, <vdivps zmm0,zmm0,zmm5>
EmitIfCountGE OutputCount, 2, <vdivps zmm1,zmm1,zmm5>
EmitIfCountGE OutputCount, 3, <vdivps zmm2,zmm2,zmm5>
ENDIF
EmitIfCountGE OutputCount, 1, <vmovups ZMMWORD PTR [rdx],zmm0>
EmitIfCountGE OutputCount, 2, <vmovups ZMMWORD PTR [rdx+16*4],zmm1>
EmitIfCountGE OutputCount, 3, <vmovups ZMMWORD PTR [rdx+32*4],zmm2>
add rdx,OutputCount*16*4 ; advance output by N nchw16c blocks
ENDM
;
; Generate the pooling kernels.
;
SpoolKernelFunction Maximum, Avx512F
SpoolKernelFunction AverageExcludePad, Avx512F
SpoolKernelFunction AverageIncludePad, Avx512F
END
|
; A228137: Numbers that are congruent to {1, 4} mod 12.
; 1,4,13,16,25,28,37,40,49,52,61,64,73,76,85,88,97,100,109,112,121,124,133,136,145,148,157,160,169,172,181,184,193,196,205,208,217,220,229,232,241,244,253,256,265,268,277,280,289,292,301,304,313,316,325,328,337,340,349,352,361,364,373,376,385,388,397,400,409,412,421,424,433,436,445,448,457,460,469,472,481,484,493,496,505,508,517,520,529,532,541,544,553,556,565,568,577,580,589,592
mov $1,$0
mul $0,2
mod $1,2
sub $0,$1
mul $0,3
add $0,1
|
; void *tshr_saddrpright(void *saddr, uchar bitmask)
SECTION code_clib
SECTION code_arch
PUBLIC tshr_saddrpright_callee
EXTERN asm_tshr_saddrpright
tshr_saddrpright_callee:
pop af
pop hl
dec sp
pop de
push af
ld e,d
jp asm_tshr_saddrpright
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tshr_saddrpright_callee
defc _tshr_saddrpright_callee = tshr_saddrpright_callee
ENDIF
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.