text stringlengths 1 1.05M |
|---|
Ani_3CC4C: dc.w byte_3CC50-Ani_3CC4C
dc.w byte_3CC55-Ani_3CC4C
byte_3CC50: dc.b 3, 1, 2, $FE, 1
byte_3CC55: dc.b 3, 1, 0, $FE, 1
|
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xd48c, %r14
nop
nop
nop
nop
inc %rcx
mov (%r14), %r8d
nop
dec %r8
lea addresses_UC_ht+0x9f58, %rcx
add $20223, %rax
vmovups (%rcx), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq... |
; Test case:
CONSTANT: equ 0
label1:
nop
label1.local1:
_sjasm_reusable_1_1:
nop
label1.local2:
nop
label1.local3:
nop
label2:
nop
loop:
jp loop
|
#include "parse_opening_hours.hpp"
#include "opening_hours_parsers.hpp"
#include <boost/spirit/include/phoenix_bind.hpp>
#include <boost/spirit/include/phoenix_operator.hpp> // operator,
namespace osmoh
{
namespace parsing
{
time_selector_parser::time_selector_parser() : time_selector_parser::base_type(main... |
; size_t w_vector_append_n(b_vector_t *v, size_t n, void *item)
SECTION code_clib
SECTION code_adt_w_vector
PUBLIC w_vector_append_n_callee
EXTERN asm_w_vector_append_n
w_vector_append_n_callee:
pop hl
pop bc
pop de
ex (sp),hl
jp asm_w_vector_append_n
|
org 0x7C00
BaseOfStack equ 0x7C00
BaseOfLoader equ 0x1000
OffsetOfLoader equ 0x00
mov ax, cs
mov ds, ax
mov es, ax
mov ss, ax
mov sp, BaseOfStack
;----- clear screen
mov ax, 0600h
mov bx, 0700h
mov cx, 0
mov dx, 0184Fh
int 10h
;----- set focus
mov ax, 0200h
mov bx, 0
mov dx, 0
int 10h
;----- reset ax
xor ax, ax
;----- ... |
; A007378: a(n), n>=2, is smallest positive integer which is consistent with sequence being monotonically increasing and satisfying a(a(n)) = 2n.
; 3,4,6,7,8,10,12,13,14,15,16,18,20,22,24,25,26,27,28,29,30,31,32,34,36,38,40,42,44,46,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,66,68,70,72,74,76,78,80,82,84,86,88,... |
SECTION .data
txt_true db 'true',0
txt_false db 'false',0
SECTION .text
global boolean_to_string
; Returns a string representation of a boolean
; arg0 = (bool) The boolean.
; return value = (const char *) The string representation of the boolean.
boolean_to_string:
test rdi, rdi
jz .false
lea... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
$NOMOD51
;------------------------------------------------------------------------------
; startup33.a51
;
; Version:
; August 2004 Ver 2.0 - Updated include file names, modified comments.
;
; Dependencies:
; uPSD_5V and FREQ_OSC are used as input parameters to set up the BUSCON
; register appropriately for prop... |
; A178977: a(n) = (3*n+2)*(3*n+5)/2.
; 5,20,44,77,119,170,230,299,377,464,560,665,779,902,1034,1175,1325,1484,1652,1829,2015,2210,2414,2627,2849,3080,3320,3569,3827,4094,4370,4655,4949,5252,5564,5885,6215,6554,6902,7259,7625,8000,8384,8777,9179,9590,10010,10439,10877,11324,11780,12245,12719,13202,13694,14195,14705,1522... |
;; @file
; This is the code that goes from real-mode to protected mode.
; It consumes the reset vector, configures the stack.
;
; Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; int bv_priority_queue_empty(bv_priority_queue_t *q)
;
; Return non-zero if the queue is empty.
;
; ===============================================================
SECTION... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2014 Intel Corporation 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 so... |
// Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/data/script_tests.json.h>
#include <core_io.h>
#include <key.h>
#include <keystore.h>
#include <script/script... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 276
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %64 %235
OpExecutionMode %4 Or... |
#pragma once
#include <stdexcept>
#include <string>
#include <vector>
namespace U
{
struct TestId // Use struct with non-trivial constructor adn destructor for prevent "unused-variable" warning.
{
TestId(){}
~TestId() {}
};
typedef void (TestFunc)();
class TestException final : public std::runtime_error
{
public... |
; uint8_t hbios_e_dehl(uint16_t func_device, uint32_t arg) __smallc __z88dk_callee
SECTION code_clib
SECTION code_arch
PUBLIC hbios_e_dehl_callee
EXTERN asm_hbios_e
.hbios_e_dehl_callee
pop af
pop hl
pop de
pop bc
push af
jp asm_hbios_e
|
SECTION "Map Scripts 1", ROMX
INCLUDE "maps/Pokecenter2F.asm"
INCLUDE "maps/TradeCenter.asm"
INCLUDE "maps/Colosseum.asm"
INCLUDE "maps/TimeCapsule.asm"
INCLUDE "maps/MobileTradeRoom.asm"
INCLUDE "maps/MobileBattleRoom.asm"
INCLUDE "maps/DebugRoom.asm"
SECTION "Map Scripts 2", ROMX
INCLUDE "maps/TwinleafTown.asm"
I... |
/**
* @file
* @brief Player related functions.
**/
#include "AppHdr.h"
#include "player.h"
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sstream>
#include "ability.h"
#include "abyss.h"
#include "act-iter.h"
#include "areas.h"
#include "a... |
; A176635: a(n) = 6*a(n-1)-8*a(n-2) for n > 1; a(0) = 57, a(1) = 242.
; 57,242,996,4040,16272,65312,261696,1047680,4192512,16773632,67101696,268421120,1073713152,4294909952,17179754496,68719247360,274877448192,1099510710272,4398044676096,17592182374400,70368736837632,281474962030592,1125899877482496,4503599568650240,18... |
; CALLER linkage for function pointers
SECTION code_clib
PUBLIC bpoke
PUBLIC _bpoke
EXTERN bpoke_callee
EXTERN ASMDISP_BPOKE_CALLEE
.bpoke
._bpoke
pop af
pop de
pop hl
push hl
push de
push af
jp bpoke_callee + ASMDISP_BPOKE_CALLEE
|
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rax
push %rcx
lea addresses_A_ht+0x11f94, %rcx
nop
and %r9, %r9
movb (%rcx), %al
nop
xor $62362, %r14
pop %rcx
pop %rax
pop %r9
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r9
push %rax
push %rbp
// Faulty Load
mov $0x19b5d... |
#include "Game.h"
#include <iostream>
#include "Actor.h"
// https://www.libsdl.org/projects/SDL_image/
#include "SDL_image.h"
#include "GL/glew.h"
#include "SpriteComponent.h"
#include "Random.h"
#include "VertexArray.h"
#include "Shader.h"
#include "Asteroids\Ship.h"
#include "Texture.h"
#include "Renderer.h"
#include... |
; A266437: Number of ON (black) cells in the n-th iteration of the "Rule 23" elementary cellular automaton starting with a single ON (black) cell.
; 1,3,0,7,0,11,0,15,0,19,0,23,0,27,0,31,0,35,0,39,0,43,0,47,0,51,0,55,0,59,0,63,0,67,0,71,0,75,0,79,0,83,0,87,0,91,0,95,0,99,0,103,0,107,0,111,0,115,0,119,0,123,0,127,0,131,... |
; A000295: Eulerian numbers (Euler's triangle: column k=2 of A008292, column k=1 of A173018).
; 0,0,1,4,11,26,57,120,247,502,1013,2036,4083,8178,16369,32752,65519,131054,262125,524268,1048555,2097130,4194281,8388584,16777191,33554406,67108837,134217700,268435427,536870882,1073741793,2147483616,4294967263,8589934558,171... |
/*
* Copyright (C) 2007 Apple Computer, Inc.
*
* Portions are Copyright (C) 1998 Netscape Communications Corporation.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* ve... |
.code
;; -------------------------------------------------------------------------------- ;;
NewFindFirstFileEx proc p1:dword, p2:dword, p3:dword, p4:dword, p5:dword, p6:dword
push p6 ; dwAdditionalFlags
push p5 ; lpSearchFilter
push p4 ; fSearchOp
push p3 ; lpFindFileData
push p2 ; fInfoLevelId
... |
; A027788: a(n) = 15*(n+1)*C(n+2,15)/2.
; 105,1800,16320,104040,523260,2209320,8139600,26860680,80901810,225544440,588376800,1448655000,3389852700,7582037400,16287339600,33738060600,67621543875,131530532400,248917996800,459351961200,828225505800,1461574422000,2528333935200,4293282020400,7165139588100,11765913428880,190... |
; A152239: a(n) = -5*a(n-1) + 7*a(n-2) for n > 1 with a(0) = 1 and a(1) = -7.
; Submitted by Jon Maiga
; 1,-7,42,-259,1589,-9758,59913,-367871,2258746,-13868827,85155357,-522858574,3210380369,-19711911863,121032221898,-743144492531,4562948015941,-28016751527422,172024393748697,-1056239229435439
mul $0,2
mov $2,1
lpb $... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2017 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... |
;--------------------------------------------------------------------------------
; Decomp
;--------------------------------------------------------------------------------
org $00FDEE ; Mirror_InitHdmaSettings
JML Mirror_InitHdmaSettingsAux
DecompGfx:
JSR Decomp.begin
RTL
!LoadSpriteDirect = $7EF... |
.data
hw:
.ascii "Fuck You Github!\12"
.text
.align 1
.globl _main
_main:
.word 0
pushl $13
pushab hw
pushl $1
calls $3,_write
ret
|
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2018 Ben Vanik. All rights reserved. ... |
; A004772: Numbers that are not congruent to 1 mod 4.
; 0,2,3,4,6,7,8,10,11,12,14,15,16,18,19,20,22,23,24,26,27,28,30,31,32,34,35,36,38,39,40,42,43,44,46,47,48,50,51,52,54,55,56,58,59,60,62,63,64,66,67,68,70,71,72,74,75,76,78,79,80,82,83,84,86,87,88,90,91,92,94,95,96,98,99,100,102,103,104,106,107,108,110,111,112,114,11... |
#pragma once
#include <mutex>
#include <vector>
#include <unordered_map>
#include <string>
#include <cstdint>
#include <thread>
// project
#include <depthai/openvino/OpenVINO.hpp>
#include <depthai/device/Device.hpp>
#include <depthai/device/DeviceBootloader.hpp>
namespace dai {
class Resources {
// private con... |
#include "pch.h"
#include "shortcut_guide.h"
#include "target_state.h"
#include "trace.h"
#include "resource.h"
#include <common/common.h>
#include <common/settings_objects.h>
#include <common/debug_control.h>
extern "C" IMAGE_DOS_HEADER __ImageBase;
OverlayWindow* instance = nullptr;
namespace
{
... |
#---------------------------------------------------------------------
# LSDI 2016/17 - FEUP
# Lab 7 (Dez. 2016) - parte I (operações com 1 vetor)
# Ver. 2.3
#---------------------------------------------------------------------
.data
Nmax: .word 100
N: .word 10
array: .word 0 : 100
strSum: .asciiz "Somatório ... |
/* Copyright (c) 2009-2010 Tyrell Corporation & Moyshe Ben Rabi.
The contents of this file are subject to the Mozilla Public License
Version 1.1 (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.mozilla.org/MPL/
Software... |
/*******************************************************************************
* Copyright 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.o... |
/*
* Copyright 2004 Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the
* U.S. Government. Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that this Notice and a... |
pla
sta {m1}
pla
sta {m1}+1
|
; all of these should fail on i8080
;;; generate shift instructions: #FDCBFF00 .. #FDCBFF3F ("iy-1" = FF index byte)
DEFARRAY instructions rlc, rrc, rl, rr, sla, sra, sli, srl
DEFARRAY registers <(iy-1),b>, <(iy-1),c>, <(iy-1),d>, <(iy-1),e>, <(iy-1),h>, <(iy-1),l>, <(iy-1)>, <(iy-1),a>
INS_I=0
DU... |
; The functions in this file enable the user to write messages to the screen
; from protected mode
[bits 32]
print_string_pm: ; Print a null-terminated string located at EBX
pusha
mov edx, VIDEO_MEMORY
mov eax, 160 ;
imul eax, [LINE_NO] ; Add a one-row offset into video memory to ens... |
// Copyright (c) 2012-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "compressor.h"
#include "util.h"
#include "test/test_gozer.h"
#include <stdint.h>
#include <boost/test/unit_test.h... |
/*
written by Pankaj Kumar.
country:-INDIA
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll ;
typedef set<pair<int,int>> spi;
typedef set<pair<ll,ll>> spl;
typedef vector<pair<int,int>> vpi;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<bool> vb;
typedef vector<char> vc;
typedef v... |
; A307349: a(n) = Sum_{i=1..n} Sum_{j=1..n} (-1)^(i+j) * (i+j)!/(2!*i!*j!).
; 0,1,1,5,15,56,203,757,2839,10736,40821,155948,598065,2301118,8878591,34340085,133100055,516851528,2010358061,7831136920,30546063745,119291436738,466379022561,1825168170620,7149316835465,28027993191706,109965636641173,431752038091442,169629663... |
; Asmt6_4.asm - Implement the following C++ expression in assembly language, using 32-bit signed operands:
; val1 = (val2 / val3) * (val1 + val2)
INCLUDE Irvine32.inc
.data
val1 DWORD 30
val2 DWORD 20
val3 DWORD 10
.code
main PROC
mov eax, val2
cdq
idiv val3
mov ebx, val1
add ebx, val2
... |
%include "asm_io.inc"
segment .data
segment .bss
segment .text
global asm_main
asm_main:
enter 0,0
pusha
call read_int
push eax
call fib_rec
pop ecx
call print_int
call print_nl
popa
mov eax, 0
leave
ret
fib_rec:
enter 4,0
pusha
mov eax, [ebp + 8] ;eax = n
cmp eax, 0 ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Runtime headers
#include "common.h"
#include "rcwrefcache.h"
#include "olecontexthelpers.h"
#include "finalizerth... |
; A033120: Base-2 digits of a(n) are, in order, the first n terms of the periodic sequence with initial period 1,0,1.
; 1,2,5,11,22,45,91,182,365,731,1462,2925,5851,11702,23405,46811,93622,187245,374491,748982,1497965,2995931,5991862,11983725,23967451,47934902,95869805,191739611,383479222,766958445,1533916891
mov $1,2... |
; A192186: a(n) = binomial(2*n, floor(n*sqrt(2))).
; Submitted by Christian Krause
; 1,2,6,15,56,120,495,2002,4368,18564,38760,170544,735471,1562275,6906900,14307150,64512240,131128140,600805296,2707475148,5586853480,25518731280,51915526432,239877544005,1093260079344,2250829575120,10363194502115,21094923659355,97997533... |
; A179609: a(n)=(5-(-1)^n-6*n)*2^(n-2)
; 1,0,-8,-24,-80,-192,-512,-1152,-2816,-6144,-14336,-30720,-69632,-147456,-327680,-688128,-1507328,-3145728,-6815744,-14155776,-30408704,-62914560,-134217728,-276824064,-587202560,-1207959552,-2550136832
mov $2,$0
add $0,1
div $2,2
lpb $0
sub $0,1
mul $2,2
add $2,$0
lpe
gcd... |
; CALLER LINKAGE FOR FUNCTION POINTERS
SECTION code_clib
PUBLIC vz_sound
PUBLIC _vz_sound
EXTERN vz_sound_callee
EXTERN ASMDISP_VZ_SOUND_CALLEE
.vz_sound
._vz_sound
pop de
pop bc
pop hl
push hl
push bc
push de
jp vz_sound_callee + ASMDISP_VZ_SOUND_CALLEE
|
#include "CondFormats/L1TObjects/interface/LUT.h"
#include <sstream>
#include <string>
#include <algorithm>
//reads in the file
//the format is "address payload"
//all commments are ignored (start with '#') except for the header comment (starts with #<header>)
//currently ignores anything else on the line after the "... |
;
; Startup Code for Z88 applications
;
; The entry point is a dummy function in the DOR which then
; jumps to routine in this file
;
; 1/4/99 djm
;
; 7/4/99 djm Added function to handle commands - this requires
; the user to do something for it!
;
; 4/5/99 djm Added in functionality to re... |
; Copyright 2001, 2002 Free Software Foundation, Inc.
;
; This file is part of the GNU MP Library.
;
; The GNU MP Library is free software; you can redistribute it and/or
; modify it under the terms of the GNU Lesser General Public License as
; published by the Free Software Foundation; either version 2.1 of th... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xb774, %rax
nop
nop
nop
nop
nop
inc %r15
vmovups (%rax), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %r12
nop
nop
inc %rbx
lea addresses_D_ht+0x4... |
; A291368: The arithmetic function u(n,3,6).
; Submitted by Jamie Morken(w1)
; 13,13,3,4,5,3,7,4,3,5,11,3,13,7,3,4,13,3,13,4,3,11,13,3,5,13,3,4,13,3,13,4,3,13,5,3,13,13,3,4,13,3,13,4,3,13,13,3,7,5,3,4,13,3,5,4,3,13,13,3,13,13,3,4,5,3,13,4,3,5
add $0,1
mul $0,13
mov $1,2
mov $3,$0
lpb $3
lpb $4
mov $2,$0
add ... |
// Copyright (c) 2009-2020 The Crown Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <pubkey.h>
#include <script/descriptor.h>
#include <test/fuzz/fuzz.h>
#include <util/memory.h... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC derror_zc
EXTERN am48_derror_zc
defc derror_zc = am48_derror_zc
|
//
// Created by Florian on 20.12.2020.
//
#include "AxisAlignedBox.h"
#include "cmath"
namespace Zoe{
AxisAlignedBox::AxisAlignedBox(const vec3& lower, const vec3& higher) {
AxisAlignedBox::lower = vec3(std::min(lower.x, higher.x), std::min(lower.y, higher.y), std::min(lower.z, higher.z));
AxisAlignedBox::h... |
; A170147: Number of reduced words of length n in Coxeter group on 42 generators S_i with relations (S_i)^2 = (S_i S_j)^38 = I.
; 1,42,1722,70602,2894682,118681962,4865960442,199504378122,8179679503002,335366859623082,13750041244546362,563751691026400842,23113819332082434522,947666592615379815402,3885433029723057243148... |
// (C) Copyright John Maddock 2007.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// This file is machine generated, do not edit by hand
// Polynomial evaluation using s... |
MOV 0xD0,#0x00
MOV R0,#0x01
MOV R1,#0x02
MOV R2,#0x04
MOV R3,#0x08
MOV R4,#0x10
MOV R5,#0x20
MOV R6,#0x40
MOV R7,#0x80
MOV 0xD0,#0x08
MOV R0,#0x01
MOV R1,#0x02
MOV R2,#0x04
MOV R3,#0x08
MOV R4,#0x10
MOV R5,#0x20
MOV R6,#0x40
MOV R7,#0x80
MOV 0xD0,#0x10
MOV R0,#0x01
MOV R1,#0x02
MOV R2,#0x04
MOV R3,#0x08
MOV R4,#0x10
... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1eefa, %r11
nop
nop
inc %r15
mov (%r11), %ebx
nop
nop
nop
cmp $65046, %r13
lea addresses_WT_ht+0xe6ea, %rbx
clflush (%rbx)
nop
nop
nop
nop
add %rsi, %rsi
mov (%rbx), %r12
no... |
[org 0x7c00]
jmp boot_start
OEM_ID db "MING-OS " ; 11 bytes
BytesPerSector dw 0x0200
SectorsPerCluster db 0x08
ReservedSectors dw 0x0020
FATs db 0x01
RootEntries dw 0x0000
SmallSectors dw 0x0000
MediaDescriptor db 0xF8
SectorsPe... |
; A000971: Fermat coefficients.
; 1,9,42,132,334,728,1428,2584,4389,7084,10963,16380,23751,33563,46376,62832,83657,109668,141778,181001,228459,285384,353127,433160,527085,636636,763686,910252,1078500,1270752,1489488,1737355,2017169,2331924,2684794,3079140,3518515,4006669,4547556,5145336,5804384,6529292,7324878,8196188,... |
TITLE DOS_ABORT - Internal SFT close all files for proc call for MSDOS
NAME DOS_ABORT
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
;**
;
; Internal Abort call closes all handles and FCBs associated with a process.
; If process has NET resources a close all is se... |
song1_header:
.b $04 ;4 streams
.b MUSIC_SQ1 ;which stream
.b $01 ;status byte (stream enabled)
.b SQUARE_1 ;which channel
.b $77 ;initial volume (7) and duty (01)
.w song1_square1 ;pointer to stream
.b MUSIC_SQ2 ;which stream
.b $01 ... |
; A335021: a(n) = Sum_{d|n, 1 < d < n} (-1)^(d + 1).
; 0,0,0,-1,0,0,0,-2,1,0,0,-2,0,0,2,-3,0,0,0,-2,2,0,0,-4,1,0,2,-2,0,0,0,-4,2,0,2,-3,0,0,2,-4,0,0,0,-2,4,0,0,-6,1,0,2,-2,0,0,2,-4,2,0,0,-4,0,0,4,-5,2,0,0,-2,2,0,0,-6,0,0,4,-2,2,0,0,-6,3,0,0,-4,2,0,2,-4,0,0,2,-2,2,0,2,-8,0,0,4,-3
add $0,1
mov $1,1
mov $2,$0
lpb $0
mo... |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x3f97, %rsi
lea addresses_UC_ht+0x4def, %rdi
clflush (%rsi)
nop
add $32778, %r14
mov $61, %rcx
rep movsq
inc %r12
lea addresses_WC_ht+0x1e4f7, %r13
nop
nop
nop
nop
nop
sub %rdx, %rdx
mo... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; char *_strrstrip(const char *s)
;
; Return ptr to first whitespace char of the trailing whitespace
; chars in s.
;
; If s consists entirely of whitespace then s is returne... |
; A154106: a(n) = 12*n^2 + 22*n + 11.
; 11,45,103,185,291,421,575,753,955,1181,1431,1705,2003,2325,2671,3041,3435,3853,4295,4761,5251,5765,6303,6865,7451,8061,8695,9353,10035,10741,11471,12225,13003,13805,14631,15481,16355,17253,18175,19121,20091,21085,22103,23145,24211,25301,26415,27553,28715,29901,31111,32345,33603,3... |
; A349371: Inverse Möbius transform of Kimberling's paraphrases (A003602).
; Submitted by Jamie Morken(w2)
; 1,2,3,3,4,6,5,4,8,8,7,9,8,10,14,5,10,16,11,12,18,14,13,12,17,16,22,15,16,28,17,6,26,20,26,24,20,22,30,16,22,36,23,21,42,26,25,15,30,34,38,24,28,44,38,20,42,32,31,42,32,34,55,7,44,52,35,30,50,52,37,32,38,40,65,33... |
; Load the first byte of pixels into the serial port.
ld r29, Z+
sts UDR0, r29
; Turn the serial port on, with 8-bit characters.
store_immediate UCSR0B, r29, (1 << TXEN0) | (1 << UCSZ01) | (1 << UCSZ00)
; Load the number of pixels we have left to copy.
ldi r28, (VIDEO_COLUMNS / VIDEO_PIXELS_PER_BYTE) - 1
nop
nop
; ... |
; Testing increment, decrement, and compare.
LDA #04
STA $04
LDX $04
INX
INX
LDY #01
INY
INY
DEX
DEY
DEY |
#include "chains.h"
#include "adj.h"
#include <ext/hash_map>
int MAX_SHIFT = 21;
coeff_t MAX_NUM = 1 << (MAX_SHIFT);
coeff_t MAX_PRINT = 1 << (MAX_SHIFT-1);
coeff_t NCALLS=0;
bool OUTPUT_INVALID = false;
int COMPUTE_GEN_SETS = 0;//10000;
int MAX_NPRINTED = 1 << 30;
int MAX_COST;
vector<adjvec_t> ADJS;
cost_t *GEN;... |
;In: HL: source
; DE: destination
scf
fill_bit_buffer1:
ld a,(hl)
inc hl
adc a,a
jr c,get_offset
;DUP 6
;ldi
;add a,a
;jr c,get_offset
;EDUP
one_literal:
ldi
main_loop:
add a
jr nc,one_literal
jr z,fill_bit_buffer1
get_offset:
ld c,(hl)
inc hl
bit 7,c
jr nz,long_o... |
(Sys.init)
@0
D=A
@LCL
A=M
@4000 //
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
@0
D=A
@3
D=D+A
@R13
M=D
@SP
A=M
D=M
@R13
A=M
M=D
@5000
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
@1
D=A
@3
D=D+A
@R13
M=D
@SP
A=M
D=M
@R13
A=M
M=D
@0
D=A
@R13
M=D
@Sys.main
D=A
@R14
M=D
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@RET_ADDRESS_CALL0
D=A
@SP
A=M
M=D
@SP... |
%ifndef EXE_LENGTH
%include "../UltimaPatcher.asm"
%include "include/uw1.asm"
defineAddress 9, 0x0A66, maybeJumpOverAdjustment
defineAddress 9, 0x0AAD, afterAdjustment
%endif
[bits 16]
startPatch EXE_LENGTH, \
dont change player heading when player has moved against an obstacle
startBlockAt addr_maybeJump... |
-- 7 Billion Humans (2056) --
-- 54: Terrain Leveler --
-- Author: tiansh
-- Size: 10
-- Speed: 255
-- Speed Tests: 236, 247, 262, 251, 275, 260, 277, 273, 244, 222
a:
step n
if n == wall:
mem1 = calc mem1 + 1
b:
if s != wall:
step s
pickup c
write mem1
drop
jump b
endif
endif
jump a
|
#include "slider.h"
#include "math/constants.h"
#include <math.h>
namespace scythe {
Slider::Slider(F32 x, F32 y, F32 width, F32 height, F32 bar_radius, U32 flags)
: Widget(x, y, flags)
, width_(width)
, height_(height)
, old_position_(0.0f)
, radius_((width < height) ? (0.5f * width) : (0.5f * height))
, bar... |
#include "stdafx.h"
#include "DisableCrashReport.h"
#include <Windows.h>
// ***********************
//
bool IsDisableCrashReportFlagSet ( const std::wstring & cmdLineArgs )
{
if( cmdLineArgs.find( L"-DisableCrashReport" ) != std::wstring::npos )
return true;
return false;
}
// ************... |
; A295821: Number of coprime pairs (a,b) with -n <= a <= n, -2 <= b <= 2.
; 2,12,16,24,28,36,40,48,52,60,64,72,76,84,88,96,100,108,112,120,124,132,136,144,148,156,160,168,172,180,184,192,196,204,208,216,220,228,232,240,244,252,256,264,268,276,280,288,292,300,304,312,316,324,328
mul $0,3
mov $1,$0
lpb $0,1
mul $0,2
... |
;******************************************************************************
;* TI ARM C/C++ Codegen Unix v18.1.1.LTS *
;* Date/Time created: Fri Jul 3 20:08:24 2020 *
;******************************************************************************
... |
; A190963: a(n) = 3*a(n-1) - 9*a(n-2), with a(0)=0, a(1)=1.
; 0,1,3,0,-27,-81,0,729,2187,0,-19683,-59049,0,531441,1594323,0,-14348907,-43046721,0,387420489,1162261467,0,-10460353203,-31381059609,0,282429536481,847288609443,0,-7625597484987,-22876792454961,0,205891132094649,617673396283947,0,-5559060566555523,-166771816... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1c70b, %rsi
lea addresses_WC_ht+0x3bb3, %rdi
cmp $26434, %rax
mov $81, %rcx
rep movsq
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_WC_ht+0x258b, %rsi
lea addresses_A_ht+0x16353, %r... |
; unsigned char esx_disk_stream_end(void)
SECTION code_esxdos
PUBLIC _esx_disk_stream_end
EXTERN asm_esx_disk_stream_end
defc _esx_disk_stream_end = asm_esx_disk_stream_end
|
global _start
section .text
_start:
jmp short call_shellcode ; jumps to call_shellcode function
decode:
pop esi ; shellcode from stack is placed in esi regsiter as reference
xor ecx, ecx ; zero out ecx register
mov cl, 25 ; this acts as a counter (25 is the length of the shellcode)
dec... |
; A122264: 2 X 2 vector matrix Markov of a Prime gap affine type.
; 2,7,12,25,30,43,48,61,82,87,108,121,126,139,160,181,186,207,220,225,246,259,280,309,322,327,340,345,358,411,424,445,450,487,492,513,534,547,568,589,594,631,636,649,654,699,744,757,762,775
mov $1,$0
add $1,2
mov $2,2
mul $2,$1
seq $1,77017 ; a(1) = 2, ... |
section .text
use16
extern __heap_top
; (unsigned) bx:ax / *di = bx:ax .. edx
global ldivul
ldivul:
push bx
push ax
pop eax
sub edx, edx
cmp di, __heap_top ; judge DS/SS
jb .0
db 0x36 ; SS prefix
.0:
div dword [di]
push eax
pop ax
pop bx
ret
|
;|************************************|
;| FELIX HA 5/24/2018 MR.WILL |
;| |
;|************************************|
__config 3ffch & 3ff7h
; DECLARE REGISTERS
PCL EQU 02H
PORTA EQU 05H
PORTB EQU 06H
PORTC EQU 07H
TRISA EQU 85H
TRISB EQU 86H
TRISC EQU 87... |
assume cs:code
code segment
start:
mov cx, 100d
mov bl, 00
next_digit:
mov al,bl
aam
add ax,3030h
mov dl,ah ; output ah
mov ah,2 ; output a character
push ax ; push and pop saves the value of al regis... |
; A057675: 1 - (5/6)*n + (5/2)*n^2 + (10/3)*n^3 + n^4.
; 1,7,52,192,507,1101,2102,3662,5957,9187,13576,19372,26847,36297,48042,62426,79817,100607,125212,154072,187651,226437,270942,321702,379277,444251,517232,598852,689767,790657,902226,1025202,1160337,1308407,1470212,1646576,1838347,2046397,2271622,2514942,2777301,305... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\TEST_op_ParseDN.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
END
|
#note: r40 (the exception handler) and r46 (the start of usermode code) must
#be specified in hex (0xwhatever)
#I just don't see any reason not to, and it makes programming the script
#much nicer to deal with...
#load exception handler
lc r40, 0x80000050
leh r40
#enable exceptions
cle
#load TLB ent... |
; A299143: a(n) is the least k > n such that gcd(k,n) > 1 and gcd(k+1,n+1) > 1.
; 8,9,14,15,20,21,14,15,32,33,38,39,20,21,50,51,56,57,26,27,68,69,34,35,32,33,86,87,92,93,38,39,44,45,110,111,44,45,122,123,128,129,50,51,140,141,62,63,56,57,158,159,64,65,62,63,176,177,182,183,68,69,74,75,200,201,74,75,212,213,218,219,80,8... |
; A052528: Expansion of (1 - x)/(1 - 2*x - 2*x^2 + 2*x^3).
; 1,1,4,8,22,52,132,324,808,2000,4968,12320,30576,75856,188224,467008,1158752,2875072,7133632,17699904,43916928,108966400,270366848,670832640,1664466176,4129863936,10246994944,25424785408,63083832832,156523246592,388364588032,963608003584,2390898690048,59322842... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.