text stringlengths 1 1.05M |
|---|
; 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.
; ==++==
;
;
; ==--==
;
; FILE: asmhelpers.asm
;
;
; ================================================================... |
// Copyright (c) 2014-2017 The unode Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "hash.h"
#include "validation.h" // For strMessageMagic
#include "messagesigner.h"
#include "t... |
SECTION code_fp_math16
PUBLIC cm16_sdcc_tan
EXTERN cm16_sdcc_read1, tanf16
cm16_sdcc_tan:
call cm16_sdcc_read1
jp tanf16
|
#include "stdafx.hpp"
#include "include/Map.hpp"
#include "include/Utils.hpp"
void Map::destroy()
{
save_button.destroy();
menu_button.destroy();
dialog_.destroy();
}
void Map::on_type(const short key)
{
if (key == -1) return;
dialog_.on_type(key);
switch (key)
{
case 13:
if (enemy_.has_points)
{
e... |
; A275363: a(1)=3, a(2)=6, a(3)=3; thereafter a(n) = a(n-a(n-1)) + a(n-1-a(n-2)).
; 3,6,3,3,9,6,3,12,9,3,15,12,3,18,15,3,21,18,3,24,21,3,27,24,3,30,27,3,33,30,3,36,33,3,39,36,3,42,39,3,45,42,3,48,45,3,51,48,3,54,51,3,57,54,3,60,57,3,63,60,3,66,63,3,69,66,3,72,69,3,75,72,3,78,75,3,81,78,3,84,81,3,87,84,3,90,87,3,93,90,3... |
#ifndef HELIX_HPP
#define HELIX_HPP
#include <assert.h>
#include <atomic>
#include <initializer_list>
#include <list>
#include <tuple>
#include <array>
#include <stdexcept>
#include <async/result.hpp>
// This is here since ipc-structs.hpp needs ElementHandle
namespace helix {
struct Dispatcher;
struct ElementHandl... |
; A001969: Evil numbers: nonnegative integers with an even number of 1's in their binary expansion.
; 0,3,5,6,9,10,12,15,17,18,20,23,24,27,29,30,33,34,36,39,40,43,45,46,48,51,53,54,57,58,60,63,65,66,68,71,72,75,77,78,80,83,85,86,89,90,92,95,96,99,101,102,105,106,108,111,113,114,116,119,120,123,125,126,129,130,132,135,1... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... |
; A279321: Period 7: repeat [1, 3, 5, 7, 5, 3, 1].
; 1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1,3,5,7,5,3,1,1... |
/*
* Copyright 2020 MusicScience37 (Kenta Kabashima)
*
* 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 applica... |
_usertests: file format elf32-i386
Disassembly of section .text:
00000000 <iputtest>:
int stdout = 1;
// does chdir() call iput(p->cwd) in a transaction?
void
iputtest(void)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 18 sub $0x... |
db 0 ; species ID placeholder
db 50, 20, 55, 30, 25, 25
; hp atk def spd sat sdf
db BUG, BUG ; type
db 120 ; catch rate
db 72 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 15 ; step cycles to hatch
INCBIN "gfx/pokemon/metapod/front.dimensions"
db GROWTH_MEDIUM_FAST ; g... |
.global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1d3c8, %rsi
lea addresses_D_ht+0x11cc8, %rdi
nop
nop
nop
nop
nop
dec %r9
mov $124, %rcx
rep movsl
add %rdx, %rdx
lea addresses_normal_ht+0x21c8, %rbx
nop
nop
nop
nop
nop
cmp ... |
; int b_array_at(b_array_t *a, size_t idx)
SECTION code_clib
SECTION code_adt_b_array
PUBLIC b_array_at_callee
EXTERN asm_b_array_at
b_array_at_callee:
pop hl
pop bc
ex (sp),hl
jp asm_b_array_at
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _b_array_at_callee
defc _b_array_at_callee = b_array_at_... |
Music_TinTower:
musicheader 4, 1, Music_TinTower_Ch1
musicheader 1, 2, Music_TinTower_Ch2
musicheader 1, 3, Music_TinTower_Ch3
musicheader 1, 4, Music_TinTower_Ch4
Music_TinTower_Ch1:
tempo 208
volume $77
dutycycle $3
tone $0004
vibrato $8, $45
Music_TinTower_branch_f682a:
stereopanning $f0
notetype $c, $a5... |
db DODUO ; pokedex id
db 35 ; base hp
db 85 ; base attack
db 45 ; base defense
db 75 ; base speed
db 35 ; base special
db NORMAL ; species type 1
db FLYING ; species type 2
db 190 ; catch rate
db 96 ; base exp yield
INCBIN "pic/gsmon/doduo.pic",0,1 ; 55, sprite dimensions
dw DoduoPicFront
dw DoduoPicBack
; attacks know... |
; constants only
; START_ENSURE_SAME_layout_h
MEMORY_APP_SIZE EQU 0x20000
MEMORY_KERNEL_SIZE EQU 0x64000
; END_ENSURE_SAME_layout_h
; Kernel core is app with pid 0
; Kernel event is trigged via IRQ0 or syscall,
STACKINIT_APP EQU (MEMORY_APP_SIZE-4)
STACKINIT_KERNEL_CORE EQU (MEMORY_KERNEL_SIZE/2)
; ... |
#pragma once
#include "../../source-sdk/classes/convar.hpp"
#include "../../source-sdk/misc/color.hpp"
#include "i_app_system.hpp"
class i_console;
class convar;
class con_command;
class con_command_base;
typedef int cvar_dll_indentifier_t;
class i_console_display_func {
public:
virtual void ColorPrint(const uint8_... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* ... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license.
// (https://developers.google.com/open-source/licenses/bsd)
#include "storage/lru_cache.h"
#include <rapidjson/document.h>
#include <cstdio>
#include <cstdlib>
#include <sstream>
#include <s... |
; A142038: Primes congruent to 9 mod 32.
; Submitted by Jon Maiga
; 41,73,137,233,457,521,617,809,937,1033,1097,1129,1193,1289,1321,1481,1609,1801,1993,2089,2153,2281,2377,2441,2473,2633,2729,2857,2953,3049,3209,3433,3529,3593,3881,4073,4201,4297,4457,4649,4937,4969,5417,5449,5641,5737,5801,5897,6089,6121,6217,6473,656... |
; A118061: 9800*n^2-5740*n-4059
; 1,23661,66921,129781,212241,314301,435961,577221,738081,918541,1118601,1338261,1577521,1836381,2114841,2412901,2730561,3067821,3424681,3801141,4197201,4612861,5048121,5502981,5977441,6471501,6985161,7518421,8071281,8643741,9235801,9847461,10478721,11129581,11800041,12490101,13199761,13... |
; A104270: a(n) = 2^(n-2)*(C(n,2)+2).
; 1,3,10,32,96,272,736,1920,4864,12032,29184,69632,163840,380928,876544,1998848,4521984,10158080,22675456,50331648,111149056,244318208,534773760,1166016512,2533359616,5486149632,11844714496,25501368320,54760833024,117306294272,250718715904,534723428352,1138166333440,2418066587648,5... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0xF1F2F3F4F5F6F7F8",
"RDX": "0x0",
"RDI": "0xE0000018"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mov rax, 0x0
mov [rdx + 8... |
; int fputs_unlocked_callee(const char *s, FILE *stream)
SECTION code_clib
SECTION code_stdio
PUBLIC _fputs_unlocked_callee
EXTERN asm_fputs_unlocked
_fputs_unlocked_callee:
pop af
pop hl
pop ix
push af
jp asm_fputs_unlocked
|
; Assembly for testandor-native.bas
; compiled with mcbasic -native
; Equates for MC-10 MICROCOLOR BASIC 1.0
;
; Direct page equates
DP_LNUM .equ $E2 ; current line in BASIC
DP_TABW .equ $E4 ; current tab width on console
DP_LPOS .equ $E6 ; current line position on console
DP_LWID .equ $E7 ; current line width of con... |
[bits 64]
; This is called in a raw vm state. You must save the actual GPRs here.
save_vm_snapshot:
push rax
push rbx
push rcx
push rdx
push rsi
push rdi
push rbp
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
push rax
push rbx
; Use the old snapshot memory
mov rbx, qword [... |
; === main_sram2.asm
; SRAM bank 2. Mostly utility functions.
SECTION "SRAM2", ROM0[$A000]
include "engine/text_engine.asm"
include "engine/utils.asm"
include "engine/special_items.asm"
include "engine/crackme.asm"
|
// Copyright 2015 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 "content/child/blob_storage/blob_consolidation.h"
#include <algorithm>
#include <limits>
#include <string>
#include "base/bind.h"
#include "bas... |
; A139222: a(n) = 30*n - 27.
; 3,33,63,93,123,153,183,213,243,273,303,333,363,393,423,453,483,513,543,573,603,633,663,693,723,753,783,813,843,873,903,933,963,993,1023,1053,1083,1113,1143,1173,1203,1233,1263,1293,1323,1353,1383,1413,1443,1473,1503,1533,1563,1593,1623,1653,1683,1713,1743,1773,1803,1833,1863,1893,1923,195... |
***************
** LYnxLOveBYte 256 Intro
** (c) 2021 42Bastiam
** 1 byte free of 249
****************
include <includes/hardware.inc>
include <macros/help.mac>
;;; ROM sets this address
screen0 equ $2000
BEGIN_ZP
vbl ds 1
END_ZP
ptr equ 4
plot_data equ $fa00
run $200
IFND LNX
;; Setup needed if loaded v... |
;;
;; Copyright (c) 2020-2022, Intel Corporation
;;
;; 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... |
; A080424: a(n) = 3*a(n-1) + 18*a(n-2), a(0)=0, a(1)=1.
; 0,1,3,27,135,891,5103,31347,185895,1121931,6711903,40330467,241805655,1451365371,8706597903,52244370387,313451873415,1880754287211,11284396583103,67706766919107,406239439253175,2437440122303451
add $0,1
mov $4,2
lpb $0,1
sub $0,1
mov $3,$1
mov $1,$2
mul... |
; A055581: Fifth column of triangle A055252.
; 1,8,39,150,501,1524,4339,11762,30705,77808,192495,466926,1114093,2621420,6094827,14024682,31981545,72351720,162529255,362807270,805306341,1778384868,3909091299,8556380130,18656264161,40533753824,87778394079,189515431902,408021893085,876173328348,1876900708315,4011499454426... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x8eec, %r10
nop
nop
nop
nop
dec %rbx
mov (%r10), %r12d
nop
nop
and $57562, %r8
lea addresses_D_ht+0x5de6, %r10
clflush (%r10)
nop
nop
nop
nop
xor $54489, %rax
mov (%r... |
// Copyright (c) 2014 The Eyco Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypto/ripemd160.h"
#include "crypto/common.h"
#include <string.h>
// Internal implementation code.
namespace
{
/// Inte... |
/**
*Copyright (c) 2000-2001, Jim Crafton
*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 ... |
; A007413: A squarefree (or Thue-Morse) ternary sequence: closed under 1->123, 2->13, 3->2. Start with 1.
; Submitted by Jon Maiga
; 1,2,3,1,3,2,1,2,3,2,1,3,1,2,3,1,3,2,1,3,1,2,3,2,1,2,3,1,3,2,1,2,3,2,1,3,1,2,3,2,1,2,3,1,3,2,1,3,1,2,3,1,3,2,1,2,3,2,1,3,1,2,3,1,3,2,1,3,1,2,3,2,1,2,3,1,3,2,1,3,1,2,3,1,3,2,1,2,3,2,1,3,1,2... |
#include <iostream>
using namespace std;
int main ()
{
int a;
a = 5;
cout << a;
return 0;
}
|
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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.
/// You may obtain a... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoingui.h"
#includ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %rbx
push %rcx
lea addresses_A_ht+0x19716, %r13
dec %r14
movb $0x61, (%r13)
nop
cmp %rcx, %rcx
pop %rcx
pop %rbx
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r8
push %rax
push %rbp
push %rdi
// ... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: Org.BouncyCast... |
; A325488: Dimensions of space of harmonic polynomials of each degree invariant under the full icosahedral group.
; 1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,2,0,1,0,1,0,2,0,1,0,2,0,2,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,3,0,2,0,2,0,3,0,2,0,3,0,3,0,2,0,3,0,3,0,3,0,3,0,3,0,3,0,3,0,4,0,3,0,3,0,4,0,3,0,4
m... |
.radix 16
;=============================================================================
; =
; Trident Polymorphic Engine v1.3 =
; ------------------------------- ... |
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_WT+0x1bbad, %rdx
nop
nop
add $34123, %r11
mov $0x5152535455565758, %r14
movq %r14, (%rdx)
nop
sub $5947, %rdx
// L... |
dnl SPARC v9 mpn_add_n for T1/T2.
dnl Copyright 2010 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 Lesser General Public License as published by ... |
; int vprintf_unlocked(const char *format, void *arg)
SECTION code_stdio
PUBLIC vprintf_unlocked_callee
EXTERN asm_vprintf_unlocked
vprintf_unlocked_callee:
pop af
pop bc
pop de
push af
jp asm_vprintf_unlocked
|
; acme --cpu 6510 --format cbm --outfile foo.prg foo.asm
* = $0801 ; BASIC start address (#2049)
!byte $0d,$08,$dc,$07,$9e,$20,$34,$39 ; BASIC loader to start at $c000...
!byte $31,$35,$32,$00,$00,$00 ; puts BASIC line 2012 SYS 49152
* = $c000 ; start ad... |
/*
* Copyright (C) 2013 Google Inc. 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 conditio... |
/*
* FreeRTOS V202104.00
* 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 restriction, incl... |
bits 64
global main
section .text
main:
mov rax, rdi
mov eax, edi
mov ax, di
mov al, dil
mov al, bh
mov rax, rbx
mov eax, ebx
mov ax, bx
mov al, bl
push rax
push r15
pop rax
pop r15
|
;; xOS32
;; Copyright (C) 2016-2017 by Omar Mohammad.
use32
; mm_init:
; Initializes the memory manager
mm_init:
call pmm_init
call vmm_init
; set the framebuffer to write-combine
;mov eax, [screen.framebuffer]
;mov ecx, 0x800000
;mov dl, MTRR_WRITE_COMBINE
;call mtrr_set_range
; allocate a stack for the ... |
; A348724: Decimal expansion of the absolute value of one of the negative roots of Shanks' simplest cubic associated with the prime p = 19.
; Submitted by Christian Krause
; 2,2,1,8,7,6,1,6,2,2,6,3,1,9,0,9,3,4,2,6,6,6,8,0,0,5,0,1,8,5,0,5,0,6,1,5,5,9,9,1,9,5,4,9,4,4,0,7,7,5,2,7,3,3,6,0,0,9,1,5,1,0,8,4,9,0,9,8,5,2,4,2,8,... |
; A143096: a(n) = 2*a(n-1)-1, with a(1)=1, a(2)=4, a(3)=5.
; 1,4,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,34359738369,68719476737,13... |
APequPmulX: ; \ \ P*X will be done
MU11: ; P*X will be done
ld d,a
ld a,(varP)
ld e,a
mul ; de = d * e
ld a,d
ld (varP),a
ld a,e
ret
|
;
; Generic pseudo graphics routines for text-only platforms
; Version for the 2x3 graphics symbols
;
; Written by Stefano Bodrato 14/12/2006
;
;
; Divide by three lookup table
;
;
; $Id: div3.asm,v 1.2 2006/12/28 18:08:36 stefano Exp $
;
XLIB div3
.div3
; 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... |
/*
* Copyright (c) 2017, Intel Corporation
*
* 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, publi... |
; A091512: a(n) is the largest integer m such that 2^m divides (2*n)^n, i.e., the exponent of 2 in (2*n)^n.
; 1,4,3,12,5,12,7,32,9,20,11,36,13,28,15,80,17,36,19,60,21,44,23,96,25,52,27,84,29,60,31,192,33,68,35,108,37,76,39,160,41,84,43,132,45,92,47,240,49,100,51,156,53,108,55,224,57,116,59,180,61,124,63,448,65,132,67,2... |
; string routines in TMS9900 ASM
; strlen
; counts bytes in a string passed on the stack
; returned in on the stack
strlen:
;mov r11,*r10+
pop r6
push r11
clr r7 ; lenght counter
slloop:
clr r3 ; clear r3 holding char
movb *r6+,r3 ; get next char
ci r3,0 ; is char 0
jeq... |
; Copyright 2015-2021 Matt "MateoConLechuga" Waltz
;
; 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 follo... |
;/*!
; @file
;
; @ingroup fapi
;
; @brief DosSemSetWait DOS wrapper
;
; (c) osFree Project 2022, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokush... |
user/_mkdir: 文件格式 elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
#include "kernel/stat.h"
#include "user/user.h"
int
main(int argc, char *argv[])
{
0: 7179 addi sp,sp,-48
2: f406 sd ra,40(sp)
4: f022 sd s0,32(sp)
6: ec26 ... |
.file "a28.c"
.text
.p2align 4,,15
# ----------------------
.globl PyToken_OneChar
.type PyToken_OneChar, @function
PyToken_OneChar:
.cfi_startproc
movl 4(%esp), %edx
movl $51, %eax
leal -37(%edx), %ecx
cmpl $89, %ecx
ja .L2
movsbl CSWTCH.1-37(%edx), %eax
.L2:
rep; ret
... |
; A152934: Number of sets (in the Hausdorff metric geometry) at each location between two sets defining a polygonal configuration consisting of two m-gonal polygonal components chained with string components of length 3 as m varies.
; Submitted by Jon Maiga
; 289,1962,13429,92025,630730,4323069,29630737,203092074,13920... |
#include "ast.hpp"
/************************************/
/* BLOCK */
/************************************/
void Block::printOn(std::ostream &out) const {
out << "Block(";
bool first = true;
for (auto i = block.rbegin(); i != block.rend(); ++i) {
if (!first) out << ", ... |
#pragma once
#include <autogarden/interfaces/autogarden.hpp>
#include <autogarden/interfaces/watering_station.hpp>
#include <client/interfaces/api_client.hpp>
#include <components/components.hpp>
class AutoGarden : public IAutoGarden {
public:
AutoGarden(std::unique_ptr<IAPIClient>&& client, std::vector<std::uniq... |
;
; TIKI-100 graphics routines
; by Stefano Bodrato, Fall 2015
;
; Edited by Frode van der Meeren
;
; Palette is always 16 colors long, 'len' is the number
; of colors being passed, which will be copied many times
;
; void __FASTCALL__ gr_setpalette(int len, char *palette)
;
; Changelog:
;
; v1.2 - Fro... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Video driver
FILE: clr8Tables.asm
AUTHOR: Jim DeFrisco
REVISION HISTORY:
Name Date Description
---- ---- -----------
jad 12/91 initial vers... |
#include "GLfunctions.h"
#include <assimp/cimport.h>
#include <iostream>
#include <GL/glew.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "GL/glut.h"
#define USE_VNORMAL 0
#define RESOLUTION 16
static GLUquadricObj *quadObj;
static void initQuadObj(void)
{
quadObj = gluNewQuadric();
if(!quadObj)
/... |
; A284307: Permutation of the natural numbers partitioned into quadruples [4k-3, 4k, 4k-2, 4k-1], k > 0.
; 1,4,2,3,5,8,6,7,9,12,10,11,13,16,14,15,17,20,18,19,21,24,22,23,25,28,26,27,29,32,30,31,33,36,34,35,37,40,38,39,41,44,42,43,45,48,46,47,49,52,50,51,53,56,54,55,57,60,58,59,61,64,62,63,65,68,66,67,69,72,70,71,73,76,... |
// Copyright 2011 The University of Michigan
//
// 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 o... |
dnl mpn_mod_1_1
dnl Copyright 2009 Jason Moxham
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the Lic... |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x4697, %rdx
nop
nop
nop
dec %rdi
mov $0x6162636465666768, %r13
movq %r13, %xmm4
vmovups %ymm4, (%rdx)
nop
nop
nop
nop
nop
sub $15844, %rbx
lea addresses_WC_ht+0x4d9b, %rsi
lea addresses... |
// Copyright John Maddock 2008.
// 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)
//
# include <pch.hpp>
#ifndef BOOST_MATH_TR1_SOURCE
# define BOOST_MATH_TR1_SOURCE
#endif
#i... |
; A006859: From paths in the plane.
; 1,30,330,2145,10010,37128,116280,319770,793155,1808950,3848130,7719075,14725620,26898080,47303520,80454132,132835365,213578430,335304970,515175045,776173134,1148670600,1672307000,2398236750,3391791975,4735616886,6533333730,8913805255
add $0,1
cal $0,6333 ; From the enumeration of ... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2017 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... |
%include "io.inc"
struc stud_struct
name: resb 32
surname: resb 32
age: resb 1
group: resb 8
gender: resb 1
birth_year: resw 1
id: resb 16
endstruc
section .data
sample_student:
istruc stud_struct
at name, db 'Andrei', 0
at surname, db 'Voinea', 0
... |
#include <iostream>
#include <string>
#include <assert.h>
#include "TcpListener.h"
#include "Qotd.h"
#include <vector>
using namespace std;
void initPlayers();
void Listener_MessageReceived(CTcpListener* listener, int client, string msg, std::string sock);
string PacketMaker(std::string id);
string SetupPacket(std:... |
; $Id: tstAsmRegs-1.asm $
;; @file
; Disassembly testcase - Accessing all the registers
;
; This is a build test, that means it will be assembled, disassembled,
; then the disassembly output will be assembled and the new binary will
; compared with the original.
;
;
; Copyright (C) 2008-2017 Oracle Corporation
;
; Thi... |
; Put the input at offset 2000H
; Program for converting C to F
org 100h
MOV [2000H], 10H
MOV AX, 9H
MUL [2000H]
MOV BX,AX
MOV BX, 5H
DIV BX
ADD AX, 20H
HLT
ret
|
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; shadowssdt asm stub for 5.1.2600-sp2-windows-xp i386
.686
.mmx
.xmm
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG __stdcall NtGdiAbortDoc( ULONG arg_01 );
_5_1_2600_sp2_windows_xp_NtGdi... |
/* Copyright 2020 The TensorFlow Authors. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
; A000290: The squares: a(n) = n^2.
; 0,1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676,729,784,841,900,961,1024,1089,1156,1225,1296,1369,1444,1521,1600,1681,1764,1849,1936,2025,2116,2209,2304,2401,2500,2601,2704,2809,2916,3025,3136,3249,3364,3481,3600,3721,3844,3969,4096,422... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; ReadMm6.Asm
;
; Abstract:
;
; AsmReadMm6 function
;
; Notes:
;
;---------------------... |
.byte MAPOBJ_HELP, MAPOBJ_EMPTY, MAPOBJ_BOOMERANGBRO, MAPOBJ_BOOMERANGBRO, MAPOBJ_FIREBRO, MAPOBJ_EMPTY, MAPOBJ_EMPTY, MAPOBJ_EMPTY, MAPOBJ_EMPTY
|
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
XLIB l_ult
;
; DE < HL [unsigned]
; set carry if true
.l_ult
ld a,d
cp h
ret nz
ld a,e
cp l
ret
|
._CPU = 6502
0x0000:
LDA 10,X
LSR A
LDA 0x22
|
$variable0
$variable5
@label1
LOAD [$variable1] ACC
@label2
LOAD [ACC] A
COPY A B
SET ACC #100
@label3
LOAD [$variable3] B
LOAD [$variable0] C
$variable4
// comment |
; Declare constants for the multiboot header.
MBALIGN equ 1<<0 ; align loaded modules on page boundaries
MEMINFO equ 1<<1 ; provide memory map
VIDINFO equ 1<<2 ; video flag
FLAGS equ MBALIGN | MEMINFO; | VIDINFO ; this is the Multiboot 'flag' field
MAGIC equ 0x1BADB0... |
; A230630: a(1)=0; thereafter a(n) = (1 + a(floor(n/2))) mod 3.
; 0,1,1,2,2,2,2,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
add $0,1
mov $2,-1
lpb $0
div $0,2
add $2,1
lpe
m... |
; A200069: a(n) = 4*a(n-1) + 13*a(n-2) for n>2, a(1)=1, a(2)=4.
; Submitted by Jon Maiga
; 1,4,29,168,1049,6380,39157,239568,1467313,8983636,55009613,336825720,2062427849,12628445756,77325345061,473471175072,2899114186081,17751582020260,108694812500093,665549816263752,4075231827556217,24953074921653644,1527903134448453... |
; A188943: Decimal expansion of (7+sqrt(13))/6.
; Submitted by Jon Maiga
; 1,7,6,7,5,9,1,8,7,9,2,4,3,9,9,8,2,1,5,5,1,9,8,7,0,2,1,1,2,4,5,0,8,2,6,5,7,7,0,8,5,4,9,4,2,8,9,7,4,2,0,7,7,0,2,1,1,8,4,0,8,8,4,2,7,0,4,5,2,7,8,2,4,7,1,5,5,0,1,7,4,0,8,6,7,4,3,6,5,1,3,6,6,9,7,4,8,4,5,2
mov $1,3
mov $3,$0
mul $3,3
lpb $3
add $1,... |
#include <inference_engine.hpp>
int main() {
using namespace InferenceEngine;
//! [part2]
InferenceEngine::Core core;
core.SetConfig({ { CONFIG_KEY(ENFORCE_BF16), CONFIG_VALUE(NO) } }, "CPU");
//! [part2]
return 0;
}
|
;Usage: xorclga(struct *pixels)
IF !__CPU_INTEL__ & !__CPU_GBZ80__
SECTION code_graphics
PUBLIC xorclga_callee
PUBLIC _xorclga_callee
PUBLIC asm_xorclga
EXTERN swapgfxbk
EXTERN __graphics_end
EXTERN xorclrarea
INCLUDE "graphics/grafix.inc"
.xorclga_callee
._xorc... |
#pragma once
#include <iostream> // cout, ostream
namespace assignment {
int squared_diff(int left, int right);
bool check_bit(int mask, int bit_pos);
int max3(int left, int middle, int right);
void swap_args(int* left, int *right);
int arr_sum(int* arr, int length);
int* find_max_elem(int* arr, in... |
// Copyright 2018 The Dawn Authors
//
// 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 t... |
; A028303: a(n) = floor((1/(ceiling(n/2)+1))*binomial(n,floor(n/2))) (interpolates between Catalan numbers).
; 1,0,1,1,2,2,5,7,14,21,42,66,132,214,429,715,1430,2431,4862,8398,16796,29393,58786,104006,208012,371450,742900,1337220,2674440,4847422,9694845,17678835,35357670,64822395
mov $3,$0
div $0,2
mov $2,1
add $3,1
mo... |
;
;
; ZX Maths Routines
;
; 9/12/02 - Stefano Bodrato
;
; $Id: deq.asm,v 1.5 2016-06-22 19:59:18 dom Exp $
;
IF FORts2068
INCLUDE "target/ts2068/def/ts2068fp.def"
ENDIF
IF FORzx
INCLUDE "target/zx/def/zxfp.def"
ENDIF
IF FORzx81
INCLUDE "target/zx81/def/81fp.def"
ENDIF
IF FORlambda
INCLUDE... |
%ifdef CONFIG
{
"RegData": {
"MM0": "0xFD44929037E4ED40",
"MM1": "0xFD44929037E4ED40"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mov rax, 0x6162636465666768
mov [r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.