text
stringlengths
1
1.05M
SECTION code_clib PUBLIC getmaxy PUBLIC _getmaxy INCLUDE "graphics/grafix.inc" .getmaxy ._getmaxy ld hl,31 ret
; A052534: Expansion of (1-x)*(1+x)/(1-2*x-x^2+x^3). ; 1,2,4,9,20,45,101,227,510,1146,2575,5786,13001,29213,65641,147494,331416,744685,1673292,3759853,8448313,18983187,42654834,95844542,215360731,483911170,1087338529,2443227497,5489882353,12335653674,27717962204,62281695729,139945699988,314455133501,706574271261,158765...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x15115, %r12 nop nop nop nop nop dec %rcx movl $0x61626364, (%r12) nop nop dec %rsi lea addresses_WC_ht+0xe715, %r10 nop nop nop xor %rdx, %rdx vmovups (%r10), %ymm6 vextracti1...
% Code generated by PREV compiler SP GREG Stack_Segment FP GREG #6100000000000000 HP GREG Data_Segment LOC Data_Segment L3 BYTE "facItr:",0 L4 BYTE ": ",0 L5 BYTE "facRec:",0 L6 BYTE ": ",0 L7 BYTE "fibItr:",0 L8 BYTE ": ",0 L9 BYTE "fibRec:",0 L10 BYTE ": ",0 L11 BYTE "Combs:",0 L12 BYTE "BinTree:",0 L13 BYTE "Sudoku...
.MACRO LKS_BG_update lda LKS_BG.x sta BG1H0FS lda LKS_BG.x+1 sta BG1H0FS lda LKS_BG.y sta BG1V0FS lda LKS_BG.y+1 sta BG1V0FS lda LKS_BG.x sta BG2H0FS lda LKS_BG.x+1 sta BG2H0FS lda LKS_BG.y sta BG2V0FS lda LKS_BG.y+1 sta BG2V0FS .ENDM .MACRO LKS_BG1_update lda LKS_BG.1x sta BG1H0FS lda ...
// Tests using integer conditions in if() // This should produce '+ ++ ++' at the top of the screen // Commodore 64 PRG executable file .file [name="condition-integer-0.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d...
; A003955: a(n) = (2*n + 4) * (1*3*5*...*(2*n+1))^2. ; Submitted by Jamie Morken(s2) ; 4,54,1800,110250,10716300,1512784350,292183491600,73958946311250,23749039426612500,9430743556307823750,4537044990907363935000,2600104866872495148416250,1750070583471871734510937500,1366930130733208386919792968750,12262274559430701369...
; A020788: Decimal expansion of 1/sqrt(31). ; Submitted by Jamie Morken(s2) ; 1,7,9,6,0,5,3,0,2,0,2,6,7,7,4,9,0,0,7,1,3,5,3,1,3,3,2,2,2,3,1,7,9,0,1,6,7,8,9,5,6,1,0,7,6,6,9,5,8,1,9,8,1,6,2,5,7,0,4,6,2,1,2,4,3,8,8,2,5,4,7,8,6,8,5,6,2,0,5,2,5,5,7,8,2,9,7,3,6,7,6,1,8,8,6,8,6,0,2,5 add $0,1 mov $1,1 mov $2,1 mov $3,$0 add ...
; A204623: Number of (n+1)X2 0..2 arrays with every 2X2 subblock having unequal diagonal elements or unequal antidiagonal elements, and new values 0..2 introduced in row major order ; 12,96,768,6144,49152,393216,3145728,25165824,201326592,1610612736,12884901888,103079215104,824633720832,6597069766656,52776558133248,422...
; void dzx7_standard_back_callee(void *src, void *dst) SECTION code_clib SECTION code_compress_zx7 PUBLIC _dzx7_standard_back_callee EXTERN asm_dzx7_standard_back _dzx7_standard_back_callee: IF __CPU_GBZ80__ pop bc pop de pop hl push bc ELSE pop hl pop de ex (sp),hl ENDIF jp asm_dzx7_stan...
; A080856: a(n) = 8*n^2 - 4*n + 1. ; 1,5,25,61,113,181,265,365,481,613,761,925,1105,1301,1513,1741,1985,2245,2521,2813,3121,3445,3785,4141,4513,4901,5305,5725,6161,6613,7081,7565,8065,8581,9113,9661,10225,10805,11401,12013,12641,13285,13945,14621,15313,16021,16745,17485,18241,19013,19801,20605,21425,22261,23113,23981,2...
; ;----------- GFX paging ------------- SECTION code_clib PUBLIC pixeladdress EXTERN pixeladdress_MODE1 ; Entry h = x ; l = y ; Exit: de = address ; hl = undisturbed ; a = pixel number ; Uses: a, bc, de, hl defc pixeladdress = pixeladdress_MODE1
Route18GateObject: db $a ; border block db $5 ; warps db $4, $0, $0, $ff db $5, $0, $1, $ff db $4, $7, $2, $ff db $5, $7, $3, $ff db $8, $6, $0, ROUTE_18_GATE_2F db $0 ; signs db $1 ; objects object SPRITE_GUARD, $4, $1, STAY, DOWN, $1 ; person ; warp-to EVENT_DISP ROUTE_18_GATE_1F_WIDTH, $4, $0 EVENT_...
; A287128: a(n) = 3*a(n-1) - 2*a(n-2) + 2*a(n-3) - 4*a(n-4) + 2*a(n-5), where a(0) = 2, a(1) =3, a(2) = 6, a(3)=13, a(4) = 29. ; Submitted by Christian Krause ; 2,3,6,13,29,65,145,323,719,1599,3555,7903,17567,39047,86791,192911,428783,953055,2118351,4708447,10465439,23261471,51703135,114920255,255432575,567748479,12619...
; A183870: n+floor(sqrt(5n-5)); complement of A183871. ; 1,4,6,7,9,11,12,13,15,16,18,19,20,22,23,24,25,27,28,29,31,32,33,34,35,37,38,39,40,42,43,44,45,46,48,49,50,51,52,53,55,56,57,58,59,61,62,63,64,65,66,67,69,70,71,72,73,74,76,77,78,79,80,81,82,84,85,86,87,88,89,90,91,93,94,95,96,97,98,99,101,102,103,104,105,106,107,...
; A101399: a(0) = 1, a(1) = 2, a(2) = 5; for n >= 3, a(n) = a(n-1) + 2*a(n-2) + a(n-3). ; 1,2,5,10,22,47,101,217,466,1001,2150,4618,9919,21305,45761,98290,211117,453458,973982,2092015,4493437,9651449,20730338,44526673,95638798,205422482,441226751,947710513,2035586497,4372234274,9391117781,20171172826,43325642662,930591...
; void *b_array_insert_block(b_array_t *a, size_t idx, size_t n) SECTION code_adt_b_array PUBLIC _b_array_insert_block EXTERN asm_b_array_insert_block _b_array_insert_block: pop af pop hl pop bc pop de push de push bc push hl push af jp asm_b_array_insert_block
/* MANGO Multimedia Development Platform Copyright (C) 2012-2019 Twilight Finland 3D Oy Ltd. All rights reserved. */ #pragma once #include "vector.hpp" namespace mango { template <> struct Vector<s64, 4> { using VectorType = simd::s64x4; using ScalarType = s64; enum { Vect...
; A278617: Number of distinct odd primes less than or equal to 2n-3 that appear as a part in the partitions of 2n into two parts. ; 0,0,1,2,3,3,4,5,5,6,7,7,8,8,8,9,10,10,10,11,11,12,13,13,14,14,14,15,15,15,16,17,17,17,18,18,19,20,20,20,21,21,22,22,22,23,23,23,23,24,24,25,26,26,27,28,28,29,29,29,29,29,29,29,30,30,31,31,...
; A036145: 3^n mod 137. ; Submitted by Jamie Morken(m3) ; 1,3,9,27,81,106,44,132,122,92,2,6,18,54,25,75,88,127,107,47,4,12,36,108,50,13,39,117,77,94,8,24,72,79,100,26,78,97,17,51,16,48,7,21,63,52,19,57,34,102,32,96,14,42,126 mov $2,3 pow $2,$0 mod $2,-137 mov $0,$2
main: addi $sp, $0, 48 addi $a0, $0, 4 # set arg jal factorial # compute the factorial add $s0, $v0, $0 # move result into $s0 NOTE: Program should end here but it falls back into the factorial loop factorial: addi $sp, $sp, -8 # make room on stack sw $a0, 4($sp) # store $a0 sw $ra, 0( $sp) # store $r...
db DEX_KABUTO ; pokedex id db 30, 80, 90, 55, 45 ; hp atk def spd spc db ROCK, WATER ; type db 45 ; catch rate db 119 ; base exp INCBIN "gfx/pokemon/front/kabuto.pic", 0, 1 ; sprite dimensions dw KabutoPicFront, KabutoPicBack db SCRATCH, HARDEN, NO_MOVE, NO_MOVE ; level 1 learnset db GROWTH_MED...
; A259517: Number of (n+1) X (1+1) 0..1 arrays with each 2 X 2 subblock having clockwise pattern 0000 0001 0011 0101 or 1111. ; Submitted by Christian Krause ; 12,38,120,380,1204,3816,12096,38344,121552,385328,1221520,3872320,12275584,38914656,123362816,391070784,1239728192,3930045568,12458584320,39494789760,1252018992...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0x1665f, %r13 nop nop nop inc %rax movl $0x61626364, (%r13) nop nop add $3877, %r11 lea addresses_UC_ht+0x1373f, %r8 nop xor %rax, %rax movups (%r8), %xmm4 vpextrq $0, %xmm4, %r...
/** * Copyright (C) 2019-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 W...
.global s_prepare_buffers s_prepare_buffers: push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1e163, %rsi lea addresses_WC_ht+0xf047, %rdi nop nop sub %rax, %rax mov $50, %rcx rep movsq nop nop nop and $60036, %rcx pop %rsi pop %rdi pop %rcx pop %rax ret .global s_faulty_load s_faulty_load: push %...
; A089348: Primes of the form smallest multiple of n followed by a 1. ; 11,41,31,41,101,61,71,241,181,101,331,241,131,281,151,641,1021,181,191,401,211,661,461,241,251,521,271,281,1451,601,311,641,331,1021,701,1801,1481,761,1171,401,821,421,431,881,1801,461,941,3361,491,3001,1021,521 add $0,1 mul $0,10 sub $0,1 seq $0,...
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
; A339747: a(n) = (5^(valuation(n, 5) + 1) - 1) / 4. ; 1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,31,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,31,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,31,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,6,1,1,1,1,31 add $0,1 gcd $0,3125 mov $1,$0 div $1,4 mul $1,5 add $1,1
; A012880: a(n+3) = 5*a(n+2)-4*a(n+1)+a(n). ; 0,1,3,11,44,179,730,2978,12149,49563,202197,824882,3365185,13728594,56007112,228486369,932131991,3802721591,15513566360,63289077427,258193843286,1053326473082,4297146069693,17530618299423 mov $3,1 lpb $0 sub $0,1 add $1,$3 add $2,$1 add $3,$2 mov $4,$1 sub $4,1...
; A097448: If n is square, replace with sqrt(n). ; 0,1,2,3,2,5,6,7,8,3,10,11,12,13,14,15,4,17,18,19,20,21,22,23,24,5,26,27,28,29,30,31,32,33,34,35,6,37,38,39,40,41,42,43,44,45,46,47,48,7,50,51,52,53,54,55,56,57,58,59,60,61,62,63,8,65,66,67,68,69,70,71,72,73,74 mov $1,1 mov $2,$0 lpb $2 lpb $3 add $2,1 mov $3...
; A069497: Triangular numbers of the form 6*k. ; Submitted by Jon Maiga ; 0,6,36,66,78,120,210,276,300,378,528,630,666,780,990,1128,1176,1326,1596,1770,1830,2016,2346,2556,2628,2850,3240,3486,3570,3828,4278,4560,4656,4950,5460,5778,5886,6216,6786,7140,7260,7626,8256,8646,8778,9180 mov $1,$0 lpb $1 add $0,$1 add $0...
;* ;* ;* Copyright (c) 2017 Microsemi Corporation "Microsemi". ;* ;* 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, co...
/*ckwg +29 * Copyright 2017-2018 by Kitware, 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 li...
; A199026: 7*11^n-1. ; 6,76,846,9316,102486,1127356,12400926,136410196,1500512166,16505633836,181561972206,1997181694276,21968998637046,241658985007516,2658248835082686,29240737185909556,321648109045005126,3538129199495056396,38919421194445620366,428113633138901824036,4709249964527920064406,51801749609807120708476,5698...
; 端口操作 global port_read global port_write ; ======================================================================== ; void port_read(u16 port, void* buf, int n); ; ======================================================================== port_read: mov edx, [esp + 4] ; port mov edi, [esp + 4 + 4] ...
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384 // // /// // Buffer Definitions: // // cbuffer cbPerObject // { // // float4x4 g_mWorldViewProjection; // Offset: 0 Size: 64 // float4x4 g_mWorld; // Offset: 64 Size: 64 // // } // // // Resource Bindings: // // Name...
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.6.0 #9615 (MINGW64) ;-------------------------------------------------------- .module main .optsdcc -mmcs51 --model-small ;-------------------------------------------------------- ; Public...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x19987, %rsi lea addresses_UC_ht+0x2887, %rdi add $3291, %r11 mov $50, %rcx rep movsw nop nop nop nop nop xor %rbx, %rbx lea addresses_UC_ht+0x1d27, %r12 nop nop nop nop xor ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2020 The PIVX developers // Copyright (c) 2021 The BlackHat developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-...
#include <cstddef> //#include <new> //#include <malloc.h> // void *operator new(std::size_t size); // replaceable, nodiscard in C++2a // void *operator new( // std::size_t size, // std::align_val_t alignment); // replaceable, C++17, nodiscard in C++2a // void *operator new( // std::size_t size, // const s...
; void *p_forward_list_alt_remove_after(p_forward_list_alt_t *list, void *list_item) SECTION code_clib SECTION code_adt_p_forward_list_alt PUBLIC p_forward_list_alt_remove_after_callee EXTERN asm_p_forward_list_alt_remove_after p_forward_list_alt_remove_after_callee: pop af pop hl pop bc push af ...
; party menu icons MonMenuIcons: db ICON_BULBASAUR ; BULBASAUR db ICON_BULBASAUR ; IVYSAUR db ICON_BULBASAUR ; VENUSAUR db ICON_CHARMANDER ; CHARMANDER db ICON_CHARMANDER ; CHARMELEON db ICON_BIGMON ; CHARIZARD db ICON_SQUIRTLE ; SQUIRTLE db ICON_SQUIRTLE ; WARTORTLE db ICON_SQUIRTLE ; B...
// // trevshl.asm // // // Created by Shannon Zoch on 6/29/15. // //
; A099131: Quintisection and binomial transform of 1/(1-x^4-x^5). ; Submitted by Christian Krause ; 1,1,1,1,2,7,22,57,128,264,529,1079,2290,5022,11148,24633,53824,116472,250880,540536,1167937,2531061,5494247,11928731,25880583,56101768,121544393,263289438,570427339,1236159756,2679343966,5807782301 mov $3,$0 lpb $0 su...
; A099802: Bisection of A000720. ; 1,2,3,4,4,5,6,6,7,8,8,9,9,9,10,11,11,11,12,12,13,14,14,15,15,15,16,16,16,17,18,18,18,19,19,20,21,21,21,22,22,23,23,23,24,24,24,24,25,25,26,27,27,28,29,29,30,30,30,30,30,30,30,31,31,32,32,32,33,34,34,34,34,34 cal $0,99801 ; PrimePi(2n+1), the number of primes less than or equal to 2n+...
; A099359: a(n) = (2^n + 1)^3 - 2. ; 6,25,123,727,4911,35935,274623,2146687,16974591,135005695,1076890623,8602523647,68769820671,549957165055,4398851866623,35187593412607,281487861809151,2251851353686015,18014604668698623,144116012711149567,1152924803144876031,9223385231000600575,73787029071408922623,590296021464963350...
#ifndef GENERATED_f08caa1594172244113afa18ca893e67_HPP #define GENERATED_f08caa1594172244113afa18ca893e67_HPP #include "bullet.hpp" void stepfunc_ae9f735c6401a821cc04ce1cd68278bf_4b13e3e2aef36227213f325bde42c602(BulletInfo *p); void stepfunc_f813889467b65310e0fdaf551411fa2b_4b13e3e2aef36227213f325bde42c602(Bullet...
; ; MSX specific routines ; by Stefano Bodrato, December 2007 ; ; int msx_screenmode(); ; ; Gets the current screen mode ; ; ; $Id: msx_screenmode.asm,v 1.1 2007/12/18 09:00:46 stefano Exp $ ; XLIB msx_screenmode INCLUDE "#msxbasic.def" msx_screenmode: ld a,(SCRMOD) ld h,0 ld l,a re...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; SELECT CRT0 FROM -STARTUP=N COMMANDLINE OPTION ;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; INCLUDE "zcc_opt.def" IFNDEF startup ; startup undefined so select a default defc startup = 0 ENDIF ;;;;;;;;;;;;...
; Aula 12 - SSE ; a12e03.asm ; Conversão de Packed-Integer para FP ; Conversão de FP para Packed-Integer ; nasm -f elf64 a12e03.asm ; gcc -m64 -no-pie a12e03.o -o a12e03.x %define _exit 60 section .data vetInt1 : dd 10, 20, 30, 40, 50, 60, 70, 80 section .bss alignb 32 vetInt2SP2DP : resq 4 align...
/* Copyright 2012 University of Washington 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...
; A186025: a(n) = 0^n + 1 - F(n-1)^2 - F(n)^2, where F = A000045. ; 1,0,-1,-4,-12,-33,-88,-232,-609,-1596,-4180,-10945,-28656,-75024,-196417,-514228,-1346268,-3524577,-9227464,-24157816,-63245985,-165580140,-433494436,-1134903169,-2971215072,-7778742048,-20365011073,-53316291172,-139583862444,-365435296161,-95672202604...
// // Created by 常永耘 on 2019/2/19. // #include "common.h" #include <unordered_map> using namespace std; /// Solution for https://leetcode-cn.com/problems/group-anagrams/ class Solution { public: vector<vector<string>> groupAnagrams(vector<string>& strs) { unordered_map<string, vector<string>> words; ...
#include <BlackBox/System/System.hpp> #include <BlackBox/System/CryLibrary.hpp> #include <BlackBox/Core/Utils.hpp> #include <WindowsConsole.h> #include <BlackBox/System/Console.hpp> #include <BlackBox/System/IWindow.hpp> #include <BlackBox/3DEngine/I3DEngine.hpp> #include <BlackBox/System/NullLog.hpp> #ifndef LINUX # i...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Vortigaunt - now much friendlier! // //============================================================================= #include "cbase.h" #include "beam_shared.h" #include "globalstate.h" #include "npcevent.h" #include "Sprite.h"...
// Copyright 2020 The Fuchsia 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/connectivity/bluetooth/core/bt-host/testing/fake_l2cap.h" #include <lib/gtest/test_loop_fixture.h> #include <gtest/gtest.h> #include "src/...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_Dodo_AIController_BP_structs.hpp" namespace sdk { //--------------------------------------------------------------------------- //Classes //----------------------------------------------------...
; A037140: Convolution of natural numbers n >= 1 with Fibonacci numbers F(k), for k >= 5. ; 5,18,44,91,172,308,533,902,1504,2483,4072,6648,10821,17578,28516,46219,74868,121228,196245,317630,514040,831843,1346064,2178096,3524357,5702658,9227228,14930107,24157564,39087908,63245717,102333878,165579856,267914003,433494136,...
;***************************************************************************** ;* x86inc.asm: x264asm abstraction layer ;***************************************************************************** ;* Copyright (C) 2005-2013 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Anton Mitrofan...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xb064, %r8 nop nop sub $36634, %rbx movb (%r8), %al nop add %rbp, %rbp lea addresses_A_ht+0x104, %rsi lea addresses_A_ht+0xfd84, %rdi nop nop nop nop cmp %rax, %rax mov $34, %r...
.SHARED x : 1 // integer y : 1 // integer full : 1 // semaphore empty : 1 // semaphore .CODE //====================================== @makepoints(){i}: // FOR // index := start const 1 addr i store br @0001 @0000: // DO addr empty load syscall %SEM_WAIT // := addr i load addr ...
; A236194: a(n) = binomial(3n+1, n-1). ; 1,7,45,286,1820,11628,74613,480700,3108105,20160075,131128140,854992152,5586853480,36576848168,239877544005,1575580702584,10363194502115,68248282427325,449972009097765,2969831763694950,19619725782651120,129728497393775280,858478958817125100,5685248339583664176,376765609231458891...
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <main>: printf(1, "%d %d %d %s\n", l, w, c, name); } int main(int argc, char *argv[]) { 0: f3 0f 1e fb endbr32 4: 8d 4c 24 04 lea 0x4(%esp),%ecx 8: 83 e4 f0 and $0xfffffff0,%esp b: ff 71 fc ...
#include "ai.h" #include "stocks.h" #include "population.h" #include "modules/Items.h" #include "modules/Materials.h" #include "df/creature_raw.h" #include "df/inorganic_raw.h" #include "df/item_armorst.h" #include "df/item_slabst.h" #include "df/manager_order.h" #include "df/manager_order_template.h" #include "df/ma...
TitleScroll_WaitBall: ; Wait around for the TitleBall animation to play out. ; hi: speed ; lo: duration db $05, $05, 0 TitleScroll_In: ; Scroll a TitleMon in from the right. ; hi: speed ; lo: duration db $a2, $94, $84, $63, $52, $31, $11, 0 TitleScroll_Out: ; Scroll a TitleMon out to the left. ; hi: speed ; lo: dur...
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") using namespace std; using namespace __gnu_pbds; #define all(x) begin(x), end(x) #define deb(x) cout << #x << " is " << x << ...
; slbb0_isfull ; 08.2009 aralbrec PUBLIC slbb0_isfull ; enter : hl = & struct slbb ; exit : carry set if buffer full ; carry reset if buffer not full and a = space remaining minus one ; uses : af .slbb0_isfull inc hl ld a,(hl) ; a = buffer size dec a dec hl sub (hl) ...
// Copyright (c) 2015-2017, RAPtor Developer Team // License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause #include "core/matrix.hpp" #include "core/utilities.hpp" using namespace raptor; /************************************************************** ***** Matrix Print ******************************...
; A021651: Decimal expansion of 1/647. ; Submitted by Jon Maiga ; 0,0,1,5,4,5,5,9,5,0,5,4,0,9,5,8,2,6,8,9,3,3,5,3,9,4,1,2,6,7,3,8,7,9,4,4,3,5,8,5,7,8,0,5,2,5,5,0,2,3,1,8,3,9,2,5,8,1,1,4,3,7,4,0,3,4,0,0,3,0,9,1,1,9,0,1,0,8,1,9,1,6,5,3,7,8,6,7,0,7,8,8,2,5,3,4,7,7,5 mov $2,10 pow $2,$0 mul $2,10 div $2,647 mov $0,$2 mod ...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft %> <%docstring>timerfd_gettime(ufd, otmr) -> str Invokes the syscall timerfd_gettime. See 'man 2 timerfd_gettime' for more information. Arguments: ufd(int): ufd otmr(itimerspec*): otmr Returns: int </%docstring> <%pa...
/** * $Id$ * * Copyright (C) * 2014 - $Date$ * Martin Wolf <ndhist@martin-wolf.org> * * This file is distributed under the BSD 2-Clause Open Source License * (See LICENSE file). * */ #include <ndhist/ndtable.hpp> namespace bn = boost::numpy; namespace ndhist { boost::shared_ptr<detail::ndarray_storage>...
_halt: file format elf32-i386 Disassembly of section .text: 00000000 <main>: // halt the system. #include "types.h" #include "user.h" int main(void) { 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 ...
/** * Copyright 2020 The Magma Authors. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, ...
#include <cstdio> #include <algorithm> int t, n, m; template<class T> void write(T x, char endc = '\0') { int len = 0; char buf[41]; for( ; x > 0; x /= 10) buf[len++] = '0' + (x % 10); if(!len) buf[len++] = '0'; for( ; len-- > 0; putchar(buf[len])); if(endc) putchar(endc); } int main() { scanf("%d", &t); ...
#ifndef _OP_PACKET_CAPTURE_JSON_CONVERTERS_HPP_ #define _OP_PACKET_CAPTURE_JSON_CONVERTERS_HPP_ #include "json.hpp" namespace swagger::v1::model { class PacketCapture; void from_json(const nlohmann::json&, PacketCapture&); } // namespace swagger::v1::model #endif
; A294152: Chromatic invariant of the n-antiprism graph. ; 0,2,11,38,112,309,828,2190,5759,15106,39580,103657,271416,710618,1860467,4870814,12752008,33385245,87403764,228826086,599074535,1568397562,4106118196,10749957073,28143753072,73681302194,192900153563,505019158550,1322157322144,3461452807941,9062201101740,2372515...
/* * Copyright 2014 Facebook, Inc. * * 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...
; A209275: a(n) = 1 + 2*n^2 + 3*n^3 + 4*n^4 + 5*n^5 + 6*n^6 + 7*n^7 + 8*n^8 + 9*n^9. ; 1,45,8193,250957,3029217,21362301,106420465,415866333,1358612097,3868151437,9876543201,23084307885,50147947873,102436518237,198541656657,367761728701,654820258305,1126121592813,1877892797377,3046610084877,4822160664801,7464246737725,...
// Copyright (c) 2015-2016 Josh Blum // SPDX-License-Identifier: BSL-1.0 #pragma once #include "SoapyRPCSocket.hpp" #include "ThreadPrioHelper.hpp" #include <csignal> //sig_atomic_t #include <string> #include <thread> class SoapyStreamEndpoint; namespace SoapySDR { class Device; class Stream; } /*! * Serve...
/* * (C) Copyright 2020-2021 UCAR * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ #include "lorenz95/ObsLocGC99.h" #include <algorithm> #include <cmath> #include <vector> #include "eckit/config/Configuratio...
; A228568: a(n) = 2^n*A056236(n). ; 2,8,48,320,2176,14848,101376,692224,4726784,32276480,220397568,1504968704,10276569088,70172803072,479169871872,3271976550400,22342453428224,152563815022592,1041770892754944,7113656621858816,48575085832830976,331691433687777280,2264930782839570432,15465914793214345216,1056078720829981...
#pragma once #include "../base.hpp" namespace Workers { /* @brief Driver worker */ class Driver final : public Workers::Base { public: Driver(uint64_t worktime) : Base("Driver", worktime) {} }; //!class Driver final } //!namespace Workers
org 0x0100 [bits 16] ; ldr_entry ldr_entry: mov ax, cs mov ds, ax mov es, ax mov ss, ax mov sp, 0x0100 jmp ldr_main %include "xdt.inc" %include "colors.inc" %include "puts_rm.inc" %include "page_table.inc" %define KERNEL_BASE 0x1000 %define KERNEL_OFFSET 0x0000 ; Kernel is loaded at 1000h:0000h...
/** * Copyright 2020-2022 Huawei Technologies 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 applicabl...
/* Copyright 2013 Adobe Distributed under 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) */ /****************************************************************************************************/ #ifndef ADOBE_EXTENTS_HPP #def...
; "Tifflin" Kernel ; - By John Hodge (thePowersGang) ; ; arch/amd64/start.asm ; - AMD64/IA-32e boot shim %include "Core/arch/amd64/common.inc.asm" ; WTF Nasm [extern low_InitialPML4] [section .multiboot] [global mboot] mboot: %define MULTIBOOT_PAGE_ALIGN 1<<0 %define MULTIBOOT_MEMORY_INFO 1<<1 %define MULTIBOOT_RE...
SECTION code_fp_math32 PUBLIC cm32_sdcc___schar2fs EXTERN m32_float16 cm32_sdcc___schar2fs: pop bc ;return pop hl ;value push hl push bc ld a,l rlca sbc a ld h,a jp m32_float16
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, 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...
/*************************************************************************/ /* multiplayer_api.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// Copyright 2021 RoboJackets // // 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, distr...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
; A028234 o=1: If n = p_1^e_1 * ... * p_k^e_k, p_1 < ... < p_k primes, then a(n) = n/p_1^e_1, with a(1) = 1. ; Coded manually 2021-02-27 by Antti Karttunen, https://github.com/karttu ; Note that A028233(n) = A020639(n)^A067029(n), A028234(n) = n/A028233(n), A010055(n) = (1==A028234(n)). add $0,1 ; Add one, because A06...
10EXAM START 20BGN LEA GR0, 0 30 LEA GR1, 0 40 JMP AGN1 50AGN ADD GR0, DAT, GR1 60 LEA GR1,1, GR1 70AGN1 CPA GR1, N0 80 JMI AGN 90 ST GR0, TTL 100 EXIT 110N0 DC 5 120TTL DS 1 130DAT DC #000C 140 DC #07F3 150 DC #0231 160 DC #0009 170 DC #000F 180 END 
MODULE DRAW LINE_PATTERN EQU %11110000 ;; IN: HL - x in pixels ;; E - y in pixels ;; B - width in pixels ;; A - fill patter ;; Doesn't work for line smaller than 1 byte @DrawHorizontalLine: IFDEF UpperROMBuild ; Disable upper ROM so we can read from the screen push bc ld bc, #7F00 + %10001101 o...
;*** ;* $Workfile: block.asm $ ;* $Revision: 1.5 $ ;* $Author: Dave Sewell $ ;* $Date: 08 Aug 1989 16:44:52 $ ;*** TITLE Permanent device driver code and data PAGE 66, 132 INCLUDE drivers.mac INCLUDE packets.mac ...
#ifndef BOOST_THREAD_THREAD_COMMON_HPP #define BOOST_THREAD_THREAD_COMMON_HPP // Distributed under 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) // (C) Copyright 2007-2010 Anthony Williams // (C) Copyright 2011-2012 Vicente J...
; Copyright (c) 2018-2019, tevador <tevador@gmail.com> ; ; 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 ...
SECTION code_clib PUBLIC cleargraphics PUBLIC _cleargraphics ; ; $Id: clsgraph.asm,v 1.7 2017/01/02 22:58:00 aralbrec Exp $ ; ; ****************************************************************** ; ; Clear graphics area ; EXTERN filltxt .cleargraphics ._cleargraphics ld l,0 jp filltxt ;call ...