text stringlengths 1 1.05M |
|---|
/*
* Copyright (c) 2019, The OpenThread Authors.
* 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 ... |
; ----------------------------------------------------------------------
; THE VIRTUAL FORTH MACHINE REGISTERS
IP: ; Instruction Pointer
IP.0: DB 0
IP.1: DB 0
WA: ; Word Address Register
WA.0: DB 0
WA.1: DB 0
SP: ... |
;===============================================================================
; Copyright 2015-2020 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.apa... |
;;
;; Copyright (c) 2019 Antti Tiihala
;;
;; Permission to use, copy, modify, and/or distribute this software for any
;; purpose with or without fee is hereby granted, provided that the above
;; copyright notice and this permission notice appear in all copies.
;;
;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
Name: ys_w18.asm
Type: file
Size: 13810
Last-Modified: '2016-05-13T04:51:16Z'
SHA-1: AB80D8B48446CF86F70508812585CC166F5C84C8
Description: null
|
SeafoamIslandsB2F_Object:
db $7d ; border block
def_warps
warp 5, 3, 0, SEAFOAM_ISLANDS_B1F
warp 5, 13, 0, SEAFOAM_ISLANDS_B3F
warp 13, 7, 2, SEAFOAM_ISLANDS_B1F
warp 19, 15, 3, SEAFOAM_ISLANDS_B1F
warp 25, 3, 3, SEAFOAM_ISLANDS_B3F
warp 25, 11, 5, SEAFOAM_ISLANDS_B1F
warp 25, 14, 4, SEAFOAM_ISLANDS_B3F
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(c) Copyright GeoWorks 1994. All Rights Reserved.
GEOWORKS CONFIDENTIAL
PROJECT: Icon editor
MODULE: Viewer
FILE: viewerVisIcon.asm
AUTHOR: Steve Yegge, Jun 17, 1994
ROUTINES:
Name Description
---- -----------
... |
<%
from pwnlib.shellcraft.i386.linux import syscall
%>
<%page args="ruid, euid, suid"/>
<%docstring>
Invokes the syscall getresuid. See 'man 2 getresuid' for more information.
Arguments:
ruid(uid_t): ruid
euid(uid_t): euid
suid(uid_t): suid
</%docstring>
${syscall('SYS_getresuid', ruid, euid, sui... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x5b2d, %rsi
lea addresses_normal_ht+0x171ed, %rdi
nop
nop
nop
nop
nop
sub %r12, %r12
mov $102, %rcx
rep movsl
nop
cmp %rbx, %rbx
lea addresses_D_ht+0x90dd, %rcx
nop
nop
inc %rsi
movl $... |
#include "StdAfx.h"
#include "BSIsActiveModifier_1.h"
#include <Common/Serialize/hkSerialize.h>
#include <Common/Serialize/Util/hkSerializeUtil.h>
#include <Common/Serialize/Version/hkVersionPatchManager.h>
#include <Common/Serialize/Data/Dict/hkDataObjectDict.h>
#include <Common/Serialize/Data/Native/hkDataObjectNati... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D2C move.l D0, (A4)+
004D2E dbra D1, $4d1e
00AB58 move.w #$708, ($508,A5) [base+4D6]
00AB5E move.b #$4, ($4d1,A5) [base+508]
00AB66 subq.w #1, ($508,A5)
00AB6A bmi $ab76 [base+508]
00AB8C ... |
.global s_prepare_buffers
s_prepare_buffers:
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x16a5f, %rbx
nop
nop
xor $2504, %rax
movb (%rbx), %dl
nop
nop
nop
lfence
lea addresses_D_ht+0x376f, %rsi
lea addresses_WT_ht+0x12b1f, %rdi
sub %rbx, %rbx
mov $32, %rcx
rep movsq
add %rbx, %rbx
po... |
Sound_7C_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_7C_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM5, Sound_7C_FM5, $F9, $02
; FM5 Data
Sound_7C_FM5:
smpsSetvoice $00
dc.b nEb6, $05
Sound_7C_Loop00:
dc.b nF6, $02
smpsFMAlterVol $03
smpsLoop ... |
dnl ARM64 mpn_mul_1
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2013 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU L... |
0000000000000f06 <secret_sequence>:
f06: 55 push %rbp # add a stack frame
f07: 48 89 e5 mov %rsp,%rbp
f0a: 89 7d ec mov %edi,-0x14(%rbp)
f0d: c7 45 fc 01 00 00 00 movl $0x1,-0x4(%rbp)
f14: eb 2e jmp f44 <secret_sequence+... |
; A263231: a(n) = n*(25*n - 39)/2.
; 0,-7,11,54,122,215,333,476,644,837,1055,1298,1566,1859,2177,2520,2888,3281,3699,4142,4610,5103,5621,6164,6732,7325,7943,8586,9254,9947,10665,11408,12176,12969,13787,14630,15498,16391,17309,18252,19220,20213,21231,22274,23342,24435,25553,26696,27864,29057,30275,31518,32786,34079,3539... |
; A040595: Continued fraction for sqrt(620).
; 24,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1,48,1,8,1
cal $0,10200 ; Continued fraction for sqrt(141).
lpb $0,1
sub $0,3
lpb $0,1
... |
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="path, mode, dev"/>
<%docstring>
Invokes the syscall mknod. See 'man 2 mknod' for more information.
Arguments:
path(char): path
mode(mode_t): mode
dev(dev_t): dev
</%docstring>
${syscall('SYS_mknod', path, mode, dev)}
|
; Printout helpers
; print nibble, byte, HL
;
; 2016-06-10 Scott Lawrence
;
; This code is free for any use. MIT License, etc.
.module PrintHelp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; printout helpers
; printNibble
; send the nibble (a & 0x0F) out as ascii to th... |
/**
* Copyright (C) 2021 FISCO BCOS.
* SPDX-License-Identifier: Apache-2.0
* 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
*
* Un... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Arithmetic32.inc"
#include "TestFixture.inc"
radix decimal
udata
global expectedRAA
global expectedRAB
global expectedRAC
global expectedRAD
global expectedRBA
global expectedRBB
global expectedRBC
global expectedRBD
global expectedCarry
global... |
main:
mov x0, 0
mov x1, 0
mov x2, 0
mov x3, 0
mov x4, 0
mov x5, 0
mov x6, 0
... |
// Group.cpp
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "Group.h"
#include "Shape.h"
#include "../interface/PropertyCheck.h"
#include "../interface/PropertyVertex.h"
CGroup::CGroup()
{
m_title = _("Gro... |
// Copyright (c) 2014 The Trident Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: Zuoyan Qin (qinzuoyan@gmail.com)
#include <gtest/gtest.h>
#include <trident/tran_buf_pool.h>
namespace trident {
class TranBufPoolTest ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2016-2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txmempool.h"
#include "clien... |
// DP on trees, Number Theory
// 5
// 14-01-2019
#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 2e5 + 10;
int n, ans, a[MAX_N];
vector <int> primes[MAX_N];
vector <int> G[MAX_N];
map <pair <int, int>, int> dp;
void dfs (int u, int p) {
for (int pu: primes[a[u]]) {
dp[{u, pu}] = 1;
ans = ... |
; A154575: a(n) = 2*n^2 + 12*n + 4.
; 18,36,58,84,114,148,186,228,274,324,378,436,498,564,634,708,786,868,954,1044,1138,1236,1338,1444,1554,1668,1786,1908,2034,2164,2298,2436,2578,2724,2874,3028,3186,3348,3514,3684,3858,4036,4218,4404,4594,4788,4986,5188,5394,5604,5818,6036,6258,6484,6714,6948,7186,7428,7674,7924,8178,... |
;=======================================================================================================================
; ;
; Name: socOS (System On Chip Operation System) ... |
#pragma once
#include <deque>
#include <Configuration.hpp>
#include <Utils.hpp>
#include "vision/ball/WorldBall.hpp"
#include "vision/robot/WorldRobot.hpp"
#include "vision/kick/KickEvent.hpp"
#include "vision/kick/VisionState.hpp"
/**
* Detects extremely fast kicks in the case where the
* 5 or more samples requi... |
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
INBOX
COPYTO 5
COMMENT 1
COPYFROM 9
COPYTO 0
BUMPUP 0
ADD 9
COPYTO 8
OUTBOX
COMMENT 0
b:
COPYFROM 9
ADD 8
COPYTO 9
COPYTO 6
COPYFROM 5
SUB 6
JUMPN c
COPYFROM 6
OUTBOX... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x10b06, %r14
nop
add %r9, %r9
movw $0x6162, (%r14)
nop
sub %rcx, %rcx
lea addresses_WC_ht+0x17106, %rsi
lea addresses_WT_ht+0x7ae6, %rdi
cmp $22715, %rbx
mov $17, %rcx
rep movsw
nop
nop... |
;
;
; Z88 Maths Routines
;
; C Interface for Small C+ Compiler
;
; 7/12/98 djm
;Convert fp in FA to an integer
INCLUDE "fpp.def"
XLIB ifix
XREF fa
.ifix
ld hl,(fa+1)
exx
ld hl,(fa+3)
ld a,(fa+5)
ld ... |
; A013747: a(n) = 10^(3*n + 2).
; 100,100000,100000000,100000000000,100000000000000,100000000000000000,100000000000000000000,100000000000000000000000,100000000000000000000000000,100000000000000000000000000000,100000000000000000000000000000000,100000000000000000000000000000000000,100000000000000000000000000000000000000,... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2014 HPCC Systems®.
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... |
;
;/*
; * FreeRTOS Kernel V10.3.0
; * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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 restrictio... |
; A113835: a(n) = a(n-1) + 2^(A007494(n-1)).
; 1,5,13,45,109,365,877,2925,7021,23405,56173,187245,449389,1497965,3595117,11983725,28760941,95869805,230087533,766958445,1840700269,6135667565,14725602157,49085340525,117804817261,392682724205
add $0,1
mul $0,3
seq $0,238549 ; a(n) is one fourth of the total number of fre... |
@256 // ** 0A: BOOTSTRAP THE SYSTEM ** (set the start of the stack to addr 256)
D=A // store the current address as a value
@SP // write value of D to "SP"
M=D // write value of D to current location - ... |
/**************erik****************/
#include<bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
map<int,int> mp1;
set<int> s1;
//set<int>::iterator it;
#define maxm(a,b,c) max(a,max(c,b))
#define minm(a,b,c) mi... |
; A186349: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) after g(j) when f(i)=g(j), where f(i)=8i and g(j)=j^2. Complement of A186348.
; 1,2,4,5,8,10,13,15,19,22,26,29,34,38,43,47,53,58,64,69,76,82,89,95,103,110,118,125,134,142,151,159,169,178,188,197,208,218,229,239,251,262,274,285,298,310,323,335,349,36... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... |
; A129027: Odd-indexed terms of A129026.
; 0,108,600,1932,4752,9900,18408,31500,50592,77292,113400,160908,222000,299052,394632,511500,652608,821100,1020312,1253772,1525200,1838508,2197800,2607372,3071712,3595500,4183608,4841100,5573232,6385452,7283400,8272908
mov $2,20
mov $5,$0
mov $6,$0
lpb $2,1
add $1,$5
sub $2... |
// Copyright 2020 Rachin Igor
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <vector>
#include "./mult_mat_by_vec.h"
TEST(Parallel_Operations_MPI, Test_manual_matrix_seq_mult_by_manual_vect) {
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
std::vector<int> test{ 1, 1, 1, 1, 1, 1,
... |
// MIT License
// Copyright (c) 2019 Erin Catto
// 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, merg... |
object_const_def ; object_event constants
const CIANWOODGYM_CHUCK
const CIANWOODGYM_BLACK_BELT1
const CIANWOODGYM_BLACK_BELT2
const CIANWOODGYM_BLACK_BELT3
const CIANWOODGYM_BLACK_BELT4
const CIANWOODGYM_BOULDER1
const CIANWOODGYM_BOULDER2
const CIANWOODGYM_BOULDER3
const CIANWOODGYM_BOULDER4
CianwoodGym_Map... |
; A228124: Number of blocks in a Steiner Quadruple System of order A047235(n+1).
; 1,14,30,91,140,285,385,650,819,1240,1496,2109,2470,3311,3795,4900,5525,6930,7714,9455,10416,12529,13685,16206,17575,20540,22140,25585,27434,31395,33511,38024,40425,45526,48230,53955,56980,63365,66729,73810,77531,85344,89440,98021,102510,... |
HiddenPowerDamage:
; Override Hidden Power's type and power based on the user's DVs.
ld hl, wBattleMonDVs
ldh a, [hBattleTurn]
and a
jr z, .got_dvs
ld hl, wEnemyMonDVs
.got_dvs
; Power:
; Take the top bit from each stat
; Attack
ld a, [hl]
swap a
and %1000
; Defense
ld b, a
ld a, [hli]
and %1000
srl ... |
/****************************************************************************
Copyright (C) 2002-2011 Gilles Debunne. All rights reserved.
This file is part of the QGLViewer library version 2.3.10.
http://www.libqglviewer.com - contact@libqglviewer.com
This file may be used under the terms of the GNU General Pu... |
PUBLIC _spoofer_stub
.code
_spoofer_stub PROC
pop r11
add rsp, 8
mov rax, [rsp + 24]
mov r10, [rax]
mov [rsp], r10
mov r10, [rax + 8]
mov [rax + 8], r11
mov [rax + 16], rsi
lea rsi, fixup
mov [rax], rsi
mov rsi, rax
jmp r10
fixup:
sub rsp, 16
... |
// Copyright 2020 the Autoware Foundation
//
// 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 a... |
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC respixel
EXTERN pixeladdress
EXTERN __gfx_coords
EXTERN pix_return
;
; $Id: respixl.asm,v 1.6 2016-07-02 09:01:35 dom Exp $
;
; ******************************************************************
;
; Reset pixel at (x,y) coordinate
;
; Design & programming... |
;
; jcsamss2.asm - downsampling (SSE2)
;
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled with NASM (Netwide Assembler),
; can *not* be assembled with Microsoft's MASM or... |
; A165720: Integers of the form k*(k+11)/10.
; 6,8,18,21,35,39,57,62,84,90,116,123,153,161,195,204,242,252,294,305,351,363,413,426,480,494,552,567,629,645,711,728,798,816,890,909,987,1007,1089,1110,1196,1218,1308,1331,1425,1449,1547,1572,1674,1700,1806
add $0,4
mov $2,$0
lpb $0
sub $0,2
add $1,$2
add $2,1
lpe
su... |
RET
STORESP R1, FLAGS
STORESP R1, IP
LOADSP FLAGS, R1
LOADSP IP, R1
BREAK 3
JMP8 -3
JMP8 -3
JMP8cc -3
JMP8cs -3
POPn R1
PUSHn R1
POPn @R1
PUSHn @R1
POPn R1 -3
PUSHn R1 -3
POPn @R1(-3, -3)
PUSHn @R1(-3, -3)
POP32 R1
PUSH32 R1
POP32 @R1
PUSH32 @R1
POP32 R1 -3
PUSH32 R1 -3
POP32 @R1(-3, -3)
PUSH32 @R1(-3, -3)
POP64 R1
PUS... |
Name: ys_w28.asm
Type: file
Size: 22387
Last-Modified: '2016-05-13T04:51:43Z'
SHA-1: 3BD7EAA78A150060440791826313F6333462AB4F
Description: null
|
;================================================================================
; Stat Tracking
;================================================================================
; $7EF420 - bonk counter
;--------------------------------------------------------------------------------
; $7EF421 yyyyyaaa
; y - y item c... |
// Copyright 2014 the V8 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.
#include "src/v8.h"
#include "src/arguments.h"
#include "src/runtime/runtime-utils.h"
namespace v8 {
namespace internal {
RUNTIME_FUNCTION(Runtime_S... |
;-------------------------------------------------------------------;
; Experimental distance functions in pure assembly. ;
;-------------------------------------------------------------------;
;-------------------------------------------------------------------;
; Notes to self: we _can_ trash eax, ec... |
#define BASE_ADDR_0 0x00000000 // (core 0)
#define BASE_ADDR_1 0x02000000 // (core 1)
#define BASE_ADDR_2 0x04000000 // (core 2)
#define BASE_ADDR_3 0x06000000 // (core 3)
#int main() {
#
# int *localArr = (int *) BASE_ADDR_0;
# int *remoteArr1 = (int *) BASE_ADDR_1;
#
# *(localArr) = 0;
# *(remoteArr1) = 0; //... |
; sprites.asm
AnimateDemo proc
ld a, (FRAMES) ; Read the LSB of the ROM frame counter (0.255)
and %00000111 ; Take the lowest 3 bits (effectively FRAMES modulus 8),
ret nz ... |
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
#include "fboss/agent/platforms/wedge/WedgePlatformInit.h"
#include "fboss/agent/test/link_tests/LinkTest.h"
int main(int argc, char* argv[]) {
return facebook::fboss::linkTestMain(
argc, argv, facebook::fboss::initWedgePlatform);
}
|
#include <cmath>
#include <iostream>
#include <bgfx/bgfx.h>
#include <bgfx/platform.h>
#include <bx/bx.h>
#include <bx/math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_syswm.h>
#include "Camera.h"
#include "Program.h"
#include "Texture.h"
using namespace learnbgfx;
namespace {
bool quit = false;
float mix_va... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
* Copyright (c) 2018 Fraunhofer ESK : RLF extensions
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License ve... |
.data # set up all the data
input: .space 101 # save space for the input sentence, with max char for 100
message: .asciiz "Input your sentence below(less than 100 characters): " # messaged for the dialog box to prompt the user to input a sentence
output1: .asciiz "\n\nyour input was: \n"
output... |
include bls_vdp.inc
_main_wscr_init_vdp
; TODO
; Create the plane pattern in vram
;
; Example for 256x152 screen:
;
; 00 19 38 551 570 589
; 01 20 571 590
... |
ORG 32768
; === b e g i n ===
ld (Stop+1), SP ; 4:20 not need
ld L, 0x1A ; 2:7 Upper screen
call 0x1605 ; 3:17 Open channel
ld HL, 35000 ; 3:10 Init Return address stack
exx ; 1:4
call fib1s_bench ; 3:17 s... |
; A210378: Number of 2 X 2 matrices with all terms in {0,1,...,n} and even trace.
; 1,8,45,128,325,648,1225,2048,3321,5000,7381,10368,14365,19208,25425,32768,41905,52488,65341,80000,97461,117128,140185,165888,195625,228488,266085,307328,354061,405000,462241,524288,593505,668168,750925,839808,937765,1042568,1157481,1280... |
; ASMJITR.ASM: Just-In-Time compiler for the Abstract Machine of the "Pawn"
; scripting language
; (C) 1999-2000, Marc Peter; beta version; provided AS IS WITHOUT ANY WARRANTIES
; I reached >155 million instr./sec on my AMD K6-2/366 with the Hanoi "bench"
; (27 disks, no output, DOS4/GW under Win95) with this implemen... |
; Patches libdirectdraw_plugin.dll to allow either window's X or Y to be 0
; Last Change: 2015 April 18
format PE console
include 'win32.inc'
.text
push NULL
push FILE_ATTRIBUTE_NORMAL
push OPEN_EXISTING
push NULL
push FILE_SHARE_READ
push GENERIC_READ or GENERIC_WRITE
push file_name
call [CreateFileA]
c... |
; Filename: eggy.nasm
; Author: Joshua Arnold - NASM; Skape egg hunter code
; Website: https://huskersec.com
;
;
; Purpose: Implementation of Skape's access(2) egg hunter
; Reference: "Safely Searching Process Virtual Address Space"
; Reference: http://www.hick.org/code/skape/papers/egghunt-shellcod... |
copyright zengfr site:http://github.com/zengfr/romhack
00042A move.l D1, (A0)+
00042C dbra D0, $42a
004D94 move.l D1, (A1)+
004D96 dbra D0, $4d94
009B30 tst.b ($82,A6)
009B34 bne $9b46 [123p+ 82, enemy+82]
009C46 tst.b ($82,A6)
009C4A bne $9c5c [123p+ 82, enemy+82]
012CD6 cmpi.b #$c,... |
; A094373: Expansion of (1-x-x^2)/((1-x)*(1-2*x)).
; Submitted by Simon Strandgaard
; 1,2,3,5,9,17,33,65,129,257,513,1025,2049,4097,8193,16385,32769,65537,131073,262145,524289,1048577,2097153,4194305,8388609,16777217,33554433,67108865,134217729,268435457,536870913,1073741825,2147483649,4294967297,8589934593,17179869185... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x18e75, %rsi
lea addresses_D_ht+0x5675, %rdi
nop
nop
nop
add %r10, %r10
mov $117, %rcx
rep movsw
and %r11, %r11
lea addresses_UC_ht+0x8b75, %r10
nop
nop
nop
nop
nop
add $35081, %r15
mo... |
.model small, C
.686p
.code
public _getidt@4
_getidt@4 PROC\
idtstruct:ptr fword
sidt idtstruct
ret
_getidt@4 ENDP
public _getgdt@4
_getgdt@4 PROC\
gdtstruct:ptr fword
sgdt gdtstruct
ret
_getgdt@4 ENDP
public _getldt@4
_getldt@4 PROC\
ldtstruct:ptr word
sldt ldtstruct
ret
_getldt@4 ENDP
public _gettr@4
_... |
; size_t b_vector_read_block_callee(void *dst, size_t n, b_vector_t *v, size_t idx)
SECTION code_adt_b_vector
PUBLIC _b_vector_read_block_callee
EXTERN _b_array_read_block_callee
defc _b_vector_read_block_callee = _b_array_read_block_callee
INCLUDE "adt/b_vector/z80/asm_b_vector_read_block.asm"
|
;--------------------------------------------------------------------------
; crtxinit.asm :- C run-time: copy XINIT to XISEG
;
; Copyright (C) 2004, Erik Petrich
;
; This library is free software; you can redistribute it and/or modify it
; under the terms of the GNU General Public License as published by the
; Fr... |
#include "AttachmentDevice.h"
#include "HolderDevice.h"
#include "Body.h"
#include "YAMLBodyLoader.h"
#include <cnoid/CloneMap>
#include <cnoid/ValueTree>
using namespace std;
using namespace cnoid;
namespace {
YAMLBodyLoader::NodeTypeRegistration
registerAttachmentDevice(
"Attachment",
[](YAMLBodyLoader& lo... |
#include "operators/opSetSize.h"
#include <iostream>
#include <memory>
#include "operators/opPartitionParts.h"
#include "operators/simpleOperator.hpp"
#include "types/set.h"
using namespace std;
template <typename>
struct OpMaker;
struct OpPartitionSize;
template <>
struct OpMaker<OpPartitionSize> {
static ExprRef... |
; A017463: a(n) = (11*n + 6)^3.
; 216,4913,21952,59319,125000,226981,373248,571787,830584,1157625,1560896,2048383,2628072,3307949,4096000,5000211,6028568,7189057,8489664,9938375,11543176,13312053,15252992,17373979,19683000,22188041,24897088,27818127,30959144,34328125,37933056,41781923,45882712,50243409,54872000,5977647... |
// Copyright (c) 2011-2013 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 "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "init.h"
#include "walletmodel.h"
#include "addresstabl... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: stringSize.asm
AUTHOR: John Wedgwood, Dec 12, 1991
ROUTINES:
Name Description
---- -----------
LocalStringSize Compute number of ... |
// Test inference of number types using a long sum
// Currently fails - because the compiler does not handle byte+byte correctly (not truncating the result to 8 bits)
// Commodore 64 PRG executable file
.file [name="number-inference-sum.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code,... |
//
// Created by 杨丰 on 2021/4/27.
//
#include "../vox.geometry/array.h"
#include "../vox.geometry/marching_cubes.h"
#include <gtest/gtest.h>
using namespace vox;
using namespace geometry;
TEST(MarchingCubes, Connectivity) {
TriangleMesh3 triMesh;
Array3<double> grid{2, 2, 2};
grid(0, 0, 0) = -0.5;
grid(0, 0,... |
; A058962: a(n) = 2^(2*n)*(2*n+1).
; 1,12,80,448,2304,11264,53248,245760,1114112,4980736,22020096,96468992,419430400,1811939328,7784628224,33285996544,141733920768,601295421440,2542620639232,10720238370816,45079976738816,189115999977472,791648371998720,3307330976350208
mov $1,$0
mul $1,2
add $1,1
mov $2,4
pow $2,$0
mu... |
Entity start
No options
Constants
0 S start
1 S Olá mundo !!!
2 I 1
3 S io.writeln
4 S Mais um olá mundo !!!
End
Valid context (always)
No properties
Def start
No parameters
No local variables
No results
ldconst 1 --> [Olá mundo !!!]
ldconst 2 --> [1]
lcall 3 --> [io.writeln]
ldconst 4 -->... |
; A152241: Products of cubes of 2 successive primes.
; 216,3375,42875,456533,2924207,10793861,33698267,83453453,296740963,726572699,1509003523,3491055413,5479701947,8254655261,15456856771,30576209383,46617130799,68267486503,107646386093,139233463487,191800552663,281913290693,403092109603
seq $0,69486 ; 2*prime(n)*prim... |
; float __fsub_callee (float left, float right)
SECTION code_clib
SECTION code_fp_am9511
PUBLIC cam32_sccz80_fsub_callee
EXTERN asm_am9511_fsub_callee
; subtract sccz80 float from sccz80 float
;
; enter : stack = sccz80_float left, ret
; DEHL = sccz80_float right
;
; exit : DEHL ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x3eaa, %rsi
lea addresses_WC_ht+0x50aa, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
and $5056, %r13
mov $107, %rcx
rep movsl
and $48626, %rbx
lea addresses_UC_ht+0xe892, %rsi
lea addresses_W... |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a, b, c, d, e, f;
cin >> a >> b >> c >> d >> e >> f;
vector<int> w;
vector<int> s;
for (int i = 0; i <= f + 1; i += 100 * a) {
for (int j = 0; j < f - i + 1; j += 100 * b) {
if ... |
.386p
;comment @
;public __showTextRM16
;comment
Kernel Segment public para use32
assume cs:Kernel
;112 640*480*16m
;115 800*600*16m
;118 1024*768*16m
;11b 1280 1024 24
;你会发现这里送入bx的是0x4111而不是0x111,这是为什么呢?这主要是因为,
;我们要使用线性地址模式,也就是说通过直接访问物理内存空存来访问所有的显存空间,
;因此,这时的送入bx的就应当是0x4000|模式号,
;对于此处就是:0x4000 | 0x111 = 0x4111(将模式... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xa9a1, %rsi
lea addresses_A_ht+0x1a1a1, %rdi
add $3472, %r12
mov $63, %rcx
rep movsb
nop
nop
and $47582, %r11
lea addresses_D_ht+0x11894, %rsi
lea addresses_A_ht+0x5b81, %rdi
nop
nop
c... |
; A251260: Expansion of (1 + 2*x + x^2 + x^3) / ((1 - x^2)^2 * (1 - x^3) * (1 - x^4)) in powers of x.
; 1,2,3,6,8,13,16,24,28,40,45,61,68,89,97,124,134,167,179,219,233,281,297,353,372,437,458,533,557,642,669,765,795,903,936,1056,1093,1226,1266,1413,1457,1618,1666,1842,1894,2086,2142,2350,2411,2636,2701,2944,3014,3275,3... |
; A269760: Number of n X 1 0..5 arrays with some element plus some horizontally or vertically adjacent neighbor totalling five exactly once.
; 0,6,60,450,3000,18750,112500,656250,3750000,21093750,117187500,644531250,3515625000,19042968750,102539062500,549316406250,2929687500000,15563964843750,82397460937500,43487548828... |
; A162483: a(n) is the number of perfect matchings of an edge-labeled 2 X (2n+1) Mobius grid graph.
; 3,6,13,31,78,201,523,1366,3573,9351,24478,64081,167763,439206,1149853,3010351,7881198,20633241,54018523,141422326,370248453,969323031,2537720638,6643838881,17393796003,45537549126,119218851373,312119004991,817138163598... |
;--------------------------------------------------------------------------------------------
;5. Converta os programas em Linguagem C abaixo para Assembly. Considere que as
;variáveis utilizadas possam ser definidas em Assembly com bytes. Confira se o resultado
;apresentado é equivalente, variando as entradas em ambo... |
SECTION code_driver
SECTION code_driver_terminal_input
PUBLIC rc_01_input_hbios0_iterm_msg_reject
rc_01_input_hbios0_iterm_msg_reject:
; Indicate whether typed character should be rejected.
;
; enter: c = ascii code
; exit: carry reset indicates the character should be rejected.
; can use: a... |
; A127873: a(n) = (n^3)/2 + (3*n^2)/2 + 3*n + 3.
; 8,19,39,71,118,183,269,379,516,683,883,1119,1394,1711,2073,2483,2944,3459,4031,4663,5358,6119,6949,7851,8828,9883,11019,12239,13546,14943,16433,18019,19704,21491,23383,25383,27494,29719,32061,34523,37108,39819,42659,45631,48738,51983,55369,58899,62576,66403,70383,74519... |
; CRT0 for the ZX80
;
; Stefano Bodrato Dec. 2012
;
; If an error occurs (eg. out if screen) we just drop back to BASIC
;
; ZX80 works in FAST mode only, thus the screen is visible only
; during a PAUSE or waiting for a keypress.
;
;
; - - - - - - -
;
; $Id: zx80_crt0.asm,v 1.15 2016-07-1... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*=====================================================================
**
** Source: test11.c
**
** Purpose: Test #11 for the _vsnprintf function.
**
**
**=====================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.