text
stringlengths
1
1.05M
// // kern_policy.cpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #include <Headers/kern_config.hpp> #include <Headers/kern_policy.hpp> #include <Headers/kern_util.hpp> bool Policy::registerPolicy() { return mac_policy_register(&policyConf, &policyHandle, nullptr) == KERN_SUCCESS; } bool...
StdScripts:: ; entries correspond to constants/std_constants.asm dba PokecenterNurseScript dba DifficultBookshelfScript dba PictureBookshelfScript dba MagazineBookshelfScript dba TeamRocketOathScript dba IncenseBurnerScript dba MerchandiseShelfScript dba TownMapScript dba WindowScript dba TVScript dba Homepa...
; A311536: Coordination sequence Gal.6.120.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,4,8,12,17,22,27,32,37,42,46,50,54,58,62,66,71,76,81,86,91,96,100,104,108,112,116,120,125,130,135,140,145,150,154,158,162,166,170,174,179,1...
.data twoSpc: .asciiz " " threeSpc: .asciiz " " newline: .asciiz "\n" str: .asciiz "Enter number of rows: " rows: .word 0 coef: .word 0 i: .word 0 space: .word 0 temp: .word 0 k: .word 0 .text .globl main .ent main main: li $v0, 4 la $a0, str syscall li $v0, 5 syscall move $t1, $v0 li $t4, 1 # coef ->...
@10 D=A @R0 A=M M=D @R0 M=M+1 @R0 M=M-1 @R1 D=M @0 D=D+A @R13 M=D @R0 A=M D=M @R13 A=M M=D @21 D=A @R0 A=M M=D @R0 M=M+1 @22 D=A @R0 A=M M=D @R0 M=M+1 @R0 M=M-1 @R2 D=M @2 D=D+A @R13 M=D @R0 A=M D=M @R13 A=M M=D @R0 M=M-1 @R2 D=M @1 D=D+A @R13 M=D @R0 A=M D=M @R13 A=M M=D @36 D=A @R0 A=M M=D @R0 M=M+1 @R0 M=M-1 @R3 D=M...
SECTION code_fp_math32 PUBLIC ___fs2sint_callee EXTERN cm32_sdcc___fs2sint_callee defc ___fs2sint_callee = cm32_sdcc___fs2sint_callee
map_header RockTunnelB1F, ROCK_TUNNEL_B1F, CAVERN, 0 end_map_header
#include "mesh.hpp" void Neighborhood_Cube::distribute( dccrg::Dccrg<Cell, dccrg::Cartesian_Geometry>& grid, uint64_t cell ) { if (grid.is_local(cell)) { // First distribute into the cell itself auto* const center_cell_data = grid[cell]; if (center_cell_data == NULL) { ...
Label -mem-manager-initialize DLabel $heap-start-ptr DataZ 4 DLabel $heap-after-ptr DataZ 4 DLabel $heap-first-free DataZ 4 ...
; A134973: Decimal expansion of 3/phi = 6/(1 + sqrt(5)). ; Submitted by Jon Maiga ; 1,8,5,4,1,0,1,9,6,6,2,4,9,6,8,4,5,4,4,6,1,3,7,6,0,5,0,3,0,9,6,9,1,4,3,5,3,1,6,0,9,2,7,5,3,9,4,1,7,2,8,8,5,8,6,4,0,6,3,4,5,8,6,8,1,1,5,7,8,1,3,8,8,4,5,6,7,0,7,3,4,9,1,2,1,6,2,1,6,1,2,5,6,8 mov $1,1 mov $2,4 mov $3,$0 mul $3,4 lpb $3 m...
; A204091: The number of 1 X n Haunted Mirror Maze puzzles with a unique solution ending with a mirror. ; 1,2,10,46,210,958,4370,19934,90930,414782,1892050,8630686,39369330,179585278,819187730,3736768094,17045465010,77753788862,354678014290,1617882493726,7380056440050,33664517212798,153562473183890,700483331493854,3195...
; PEPE gerado por 'lcc' (IST: prs 2005) ; 'rl' serve como frame-pointer e 'r0' como acumulador ; os registos 'r1' a 'r10' sao preservados nas chamadas ; global fib ; TEXT fib: ; ncalls=2 PUSH r9 PUSH r10 PUSH rl MOV rl, sp ; P_i EQU 8 MOV r10, [rl + 8] CMP r10,1 JGT L2 MOV r0, [rl + 8] JMP L1 L2: MOV r10, [rl + 8] SUB ...
RSM_ADDITEM equ WM_USER+0 ;wParam=0, lParam=lpString, Returns nothing RSM_DELITEM equ WM_USER+1 ;wParam=Index, lParam=0, Returns nothing RSM_GETITEM equ WM_USER+2 ;wParam=Index, lParam=0, Returns pointer to string or NULL RSM_GETCOUNT equ WM_USER+3 ;wParam=0, lParam=0, Returns count RSM_CLE...
#include <libutl/libutl.h> #include <libutl/SkipList.h> #include <libutl/MaxObject.h> //////////////////////////////////////////////////////////////////////////////////////////////////// UTL_CLASS_IMPL(utl::SkipListIt); /////////////////////////////////////////////////////////////////////////////////////////////////...
; A063130: Dimension of the space of weight 2n cusp forms for Gamma_0( 62 ). ; 7,22,38,54,70,86,102,118,134,150,166,182,198,214,230,246,262,278,294,310,326,342,358,374,390,406,422,438,454,470,486,502,518,534,550,566,582,598,614,630,646,662,678,694,710,726,742,758,774,790 mul $0,16 trn $0,1 add $0,7 mov $1,$0
/////////////////////////////////////////////////////////// //*-----------------------------------------------------*// //| Part of the Core Engine (https://www.maus-games.at) |// //*-----------------------------------------------------*// //| Released under the zlib License |// //| More information...
/* * Copyright (c) 2012 Juli Mallett. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
; A286689: Positions of 0 in A286688; complement of A286690. ; 1,2,3,4,6,7,8,9,10,12,13,14,15,16,17,18,20,21,22,23,24,26,27,28,29,30,31,32,34,35,36,37,38,40,41,42,43,44,46,47,48,49,50,51,52,54,55,56,57,58,60,61,62,63,64,65,66,68,69,70,71,72,74,75,76,77,78,80,81,82,83,84,85,86,88,89,90,91,92,94,95,96,97,98,99,100,102,10...
// // unit_test.hpp // ~~~~~~~~~~~~~ // // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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 UNIT_TEST_HPP #define UNIT_TEST_H...
; A068499: Numbers m such that m! reduced modulo (m+1) is not zero. ; 1,2,3,4,6,10,12,16,18,22,28,30,36,40,42,46,52,58,60,66,70,72,78,82,88,96,100,102,106,108,112,126,130,136,138,148,150,156,162,166,172,178,180,190,192,196,198,210,222,226,228,232,238,240,250,256,262,268,270,276,280,282,292,306,310,312,316,330,336,346,3...
/** * Copyright (C) 2016 Turi * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #ifndef GRAPHLAB_SFRAME_QUERY_MANAGER_UNION_HPP #define GRAPHLAB_SFRAME_QUERY_MANAGER_UNION_HPP #include <flexible_type/flexible_type.h...
; A065176: Site swap sequence associated with the permutation A065174 of Z. ; 0,2,2,4,4,2,2,8,8,2,2,4,4,2,2,16,16,2,2,4,4,2,2,8,8,2,2,4,4,2,2,32,32,2,2,4,4,2,2,8,8,2,2,4,4,2,2,16,16,2,2,4,4,2,2,8,8,2,2,4,4,2,2,64,64,2,2,4,4,2,2,8,8,2,2,4,4,2,2,16,16,2,2,4,4,2,2,8,8,2,2,4,4,2,2,32,32,2,2 add $0,1 div $0,2 lpb $0 gcd ...
; A017397: a(n) = (11*n)^9. ; 0,2357947691,1207269217792,46411484401953,618121839509504,4605366583984375,23762680013799936,95151694449171437,316478381828866048,913517247483640899,2357947691000000000,5559917313492231481,12166492167065567232,25004854810776297743,48717667557975775744,90647430472564453125,16203693149637941...
; ML64 template file ; Compile: uasm64.exe -nologo -win64 -Zd -Zi -c testUasm.asm ; Link: link /nologo /debug /subsystem:console /entry:main testUasm.obj user32.lib kernel32.lib OPTION WIN64:8 ; Include libraries includelib SDL2.lib includelib SDL2main.lib includelib SDL2_image.lib includelib SDL2_ttf.lib includelib ...
; System sprite table section sprite xdef sp_table xref sp_arrow xref sp_lock xref sp_null xref sp_mode xref sp_key xref sp_busy xref sp_wmove xref sp_wsize xref sp_wmovep xref sp_wsizep xref sp_sleep xref sp_wake xref sp_f1 xref sp_f2 xref sp_f3 xref sp_f4 xref sp_f5 xref sp_f6 xref sp_f7 xref...
; A267533: Triangle read by rows giving successive states of cellular automaton generated by "Rule 143" initiated with a single ON (black) cell. ; Submitted by Jamie Morken(s1) ; 1,1,1,0,1,1,0,0,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1...
; A039265: Numbers n such that representation in base 12 has same number of 7's and 8's. ; 0,1,2,3,4,5,6,9,10,11,12,13,14,15,16,17,18,21,22,23,24,25,26,27,28,29,30,33,34,35,36,37,38,39,40,41,42,45,46,47,48,49,50,51,52,53,54,57,58,59,60,61,62,63,64,65,66,69,70,71,72,73,74,75,76,77,78,81,82,83 add $0,3 mov $1,$0 div $0,...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Programmer: Anjaney Chirag Mahajan ; Class: ECE 109 ; Section: 405 ; ; test.asm ; .ORIG x3000 AND R0, R0, #2 LD R0, ZERO ADD R0, R0, R3 OUT HALT ZERO: .fill x32 ; ASCII code for '0' ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; A033047: Sums of distinct powers of 11. ; Submitted by Jamie Morken(s3) ; 0,1,11,12,121,122,132,133,1331,1332,1342,1343,1452,1453,1463,1464,14641,14642,14652,14653,14762,14763,14773,14774,15972,15973,15983,15984,16093,16094,16104,16105,161051,161052,161062,161063,161172,161173,161183,161184,162382,162383,162393,16239...
#include <Storages/StorageMaterializedView.h> #include <Parsers/ASTSelectQuery.h> #include <Parsers/ASTSelectWithUnionQuery.h> #include <Parsers/ASTCreateQuery.h> #include <Parsers/ASTDropQuery.h> #include <Interpreters/Context.h> #include <Interpreters/InterpreterCreateQuery.h> #include <Interpreters/InterpreterDrop...
; A052699: E.g.f. (1+x^5-x^6)/(1-x). ; Submitted by Christian Krause ; 1,1,2,6,24,240,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,20922789888000,355687428096000,6402373705728000,121645100408832000,2432902008176640000,51090942171709440000,1124000727777607680000,25852016738884976...
############################################################################### # 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...
// stdafx.cpp : source file that includes just the standard includes // ArrayLen.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
; A112565: Main diagonal of square table A112564 of generalized Flavius Josephus sieves. ; Submitted by Christian Krause ; 1,2,7,28,125,546,2527,11096,43633,186130,809831,3423432,14022373,58574894,250708291,1038612976,4353755777,18333324162,74663736859,311293807040,1286700247561,4917768055222,20458840039199,83985256000...
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : dim.asm ; Purpose : Assignment Statement ; Date : 11th June 2019 ; Author : paul@robsons.org.uk ; ; ************...
; A157609: 2662n - 22. ; 2640,5302,7964,10626,13288,15950,18612,21274,23936,26598,29260,31922,34584,37246,39908,42570,45232,47894,50556,53218,55880,58542,61204,63866,66528,69190,71852,74514,77176,79838,82500,85162,87824,90486,93148,95810,98472,101134,103796,106458,109120,111782,114444,117106,119768,122430,125092,127754...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r9 push %rbp push %rcx push %rdi push %rsi // REPMOV lea addresses_UC+0x1c21a, %rsi lea addresses_WC+0x6f8a, %rdi nop nop nop dec %rbp mov $18, %rcx rep movsw nop nop nop nop nop xor $12310, %r12 // St...
; A167545: n^6 mod 16. ; 0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0,1,0,9,0,9,0,1,0 pow $0,6 mod $0,16 mov $1,$0
; A030101: a(n) is the number produced when n is converted to binary digits, the binary digits are reversed and then converted back into a decimal number. ; 0,1,1,3,1,5,3,7,1,9,5,13,3,11,7,15,1,17,9,25,5,21,13,29,3,19,11,27,7,23,15,31,1,33,17,49,9,41,25,57,5,37,21,53,13,45,29,61,3,35,19,51,11,43,27,59,7,39,23,55,15,47,...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1bc29, %rsi lea addresses_WT_ht+0x12cbd, %rdi nop nop nop cmp %r13, %r13 mov $115, %rcx rep movsb nop xor %rsi, %rsi lea addresses_WC_ht+0x1846d, %r13 sub $39816, %rbx movb (%r13), %r8...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r15 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_A_ht+0x2821, %r15 nop nop nop and %r11, %r11 mov (%r15), %r12w nop nop nop nop dec %r8 lea addresses_A_ht+0xc51, %r13 nop nop nop dec %r11 mov (%r13), %edi nop nop nop dec %...
/* --------------------------------------------------------------------- * * Copyright (C) 2008 - 2021 by the deal.II authors * * This file is part of the deal.II library. * * The deal.II library is free software; you can use it, redistribute * it, and/or modify it under the terms of the GNU Lesser Gene...
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:34 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.ValueType #include "System/ValueType.hpp" // Includin...
; ZX Spectrum emulator ; MS-DOS emulation entry points ; (c) Freeman, August 2000, Prague ; ----------------------------------------------------------------------------- .MODEL small .CODE ASSUME DS:_TEXT ; ----------------------------------------------------------------------------- ZXMemory DW ? ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x10c0a, %rbp nop nop nop xor %rsi, %rsi vmovups (%rbp), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %r8 nop xor %r10, %r10 lea addresses_normal_ht+0x5ba2,...
// opencl interface // the wrappers make writing code in // OpenCL cleaner and make it easier // to keep track of OpenCL objects #include <cstdio> #include <cstdlib> #include <string.h> #include "../include/sort/cli.h" #define STATUS_CHAR_SIZE 35 using namespace std; // Initialize our CLI wrapper // get OpenCL pl...
#include "obfuscationconfig.h" #include "ui_obfuscationconfig.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "init.h" #include "optionsmodel.h" #include "walletmodel.h" #include <QKeyEvent> #include <QMessageBox> #include <QPushButton> #include <QSettings> ObfuscationConfig::ObfuscationConfig(QWidge...
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ; ; blindingly fast assembly help for Z ; .xlist include version.inc include cmacros.inc .list sBegin data assumes ds,data bufstart dd ? sta...
;==LoRom== ; We'll get to HiRom some other time. .MEMORYMAP ; Begin describing the system architecture. SLOTSIZE $8000 ; The slot is $8000 bytes in size. More details on slots later. DEFAULTSLOT 0 ; There's only 1 slot in SNES, there are more in other consol...
; A305753: A base-3/2 sorted Fibonacci sequence that starts with a(0) = 0 and a(1) = 1. The terms are interpreted as numbers written in base 3/2. To get a(n+2), add a(n) and a(n+1), write the result in base 3/2 and sort the "digits" into increasing order, omitting all zeros. ; 0,1,1,2,2,12,12,112,112,1112,1112,11112,11...
############################################################################### # 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...
;; Interrupt Vector Table [BITS 32] [SECTION .text] extern vector_handler %assign i 0 %rep 256 global vector%+i vector%+i: %if (i < 10 || i > 14) && (i != 8 && i != 17) push dword 0x0 %endif push dword i jmp vector_handler %assign i i+1 %endrep [BITS 32] [SECTION .data] global vector_table vector_table: %...
; A267049: Total number of OFF (white) cells after n iterations of the "Rule 91" elementary cellular automaton starting with a single ON (black) cell. ; 0,1,4,7,11,14,22,25,37,40,56,59,79,82,106,109,137,140,172,175,211,214,254,257,301,304,352,355,407,410,466,469,529,532,596,599,667,670,742,745,821,824,904,907,991,994,1...
; Simple choice box  1991 Jochen Merz V001 ; ... with default item section utility include dev8_keys_thg include dev8_mac_xref include dev8_keys_menu xdef mu_selct ; the old name xdef mu_itsl ; and the new xdef mu_ditsl ; ... with default item ;+++ ; Select one out of two or three cho...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %rax push %rbp push %rdi push %rsi lea addresses_WT_ht+0x19780, %rbp clflush (%rbp) nop nop nop nop cmp %rsi, %rsi movw $0x6162, (%rbp) nop add $10115, %rax lea addresses_normal_ht+0x3c94, %r13 nop nop nop mfence movl $0x61626364, (%r13) no...
.data withinBlock.0: .asciiz "\nInside the block\nValue of a: " outsideBlock.1: .asciiz "\nOutside the block\nValue of a:" a.2: .word 0 a.3: .word 0 .text runtime: addi $sp, $sp, -4 sw $ra, 0($sp) lw $ra, 0($sp) addi $sp, $sp, 4 jr $ra .end runtime .globl main .ent main main: li $3, 1 # a.2 -> $3 li ...
; A001603: Odd-indexed terms of A124296. ; 1,11,101,781,5611,39161,270281,1857451,12744061,87382901,599019851,4105974961,28143378001,192899171531,1322154751061,9062194370461,62113232767531,425730505493801,2918000490238361,20000273409331051,137083914639998701,939587132382262661,6440026020705728651,44140595035255901281,3...
/*=================================================== AGENTTYPE_STATICTEXT CODE ===================================================*/ // Global Include #include <blackbox/plugin/bb.h> #include <string.h> #include <stdlib.h> //Parent Include #include "AgentType_StaticText.h" //Includes #include "PluginMaster.h" #i...
/** * @file watch2_drawing.cpp * @author atctwo * @brief functions that can be used to draw things to the screen. (also, icon stuff) * @version 0.1 * @date 2020-11-21 * this file doesn't contain any image functions; those can be found in watch2_images.cpp. * @copyright Copyright (c) 2020 atctwo * */ #includ...
SECTION code_clib SECTION code_fp_math48 PUBLIC sinh EXTERN cm48_sccz80_sinh defc sinh = cm48_sccz80_sinh
tileset: MACRO dba \1GFX, \1Meta, \1Coll dw \1Anim dw NULL dw \1PalMap ENDM ; Associated data: ; - The *GFX, *Meta, and *Coll are defined in gfx/tilesets.asm ; - The *PalMap are defined in gfx/tileset_palette_maps.asm ; - The *Anim are defined in engine/tilesets/tileset_anims.asm Tilesets:: ; entries correspond t...
//===------- Utils.cpp - OpenMP device runtime utility functions -- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
SECTION .data msg db 'Hello world :)',0Ah SECTION .text global _start _start: mov eax,msg call strlen mov edx,eax ; strlen moves result to eax mov ecx,msg mov ebx,1 mov eax,4 int 80h mov ebx,0 mov eax,1 int 80h strlen: push ebx ; push ebx value to stack m...
.586 .model flat .code _assitoa proc push ebp mov ebp,esp push esi push edi push ebx mov ebx, dword ptr [ebp+16] ; dest, conversione in stringa mov eax, dword ptr [ebp+8] ; source, val mov esi, 1d ; neg alert mov ecx, 10d mov edi, 0d ; len neg_check: cmp eax, 0 je end_neg_check jl neg_f jmp end_neg_check neg...
; A316936: a(n) is the maximum state complexity of the language C(w) of conjugates of w, over all length-n binary strings w. ; 3,5,7,11,15,21,29,39,49,61,75,91,109,129,151,175,199,225,253,283,315,349,385,423,463,505,549,595,643,693,745,799,853,909,967,1027,1089,1153,1219,1287,1357,1429,1503,1579,1657,1737,1819,1903,198...
// // main.cpp // quick_sort // // Created by ChengnanHu on 11/17/20. // #include <iostream> #include <vector> using namespace std; void quick_sort(vector<int> &v, int left, int right); int partition(vector<int> &v, int left, int right); int main(int argc, const char * argv[]) { vector<int> v = {6,5,4,3,2,1}...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /////////////////////////////////////////////////////////////////////////////////////////////////// #include "program_helpers.h" #include "pass_manager.h" #include "pooling_inst.h" #include "proposal_inst.h" #include "roi_pooling_...
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license and patent ; grant that can be found in the LICENSE file in the root of the source ; tree. All contributing project authors may be found in the AUTHORS ; file in the root of the sour...
; process ; int recvfrom_callee(int sockfd, void *buf, size_t len, int flags, ; struct sockaddr *from, socklen_t *fromlen); PUBLIC recvfrom_callee PUBLIC ASMDISP_RECVFROM_CALLEE include "spectranet.asm" .recvfrom_callee ld ix, 2 add ix, sp ; ix = socklen_t *fromlen ld a, (ix+10) ; get sockfd ...
%include "../../defaults_bin.asm" ; Determine and print phase lockstep 1 mov ax,cs mov es,ax mov ds,ax mov di,data2 in al,0x21 mov [imr],al mov al,0xfe ; Enable IRQ0 (timer), disable all others out 0x21,al in al,0x61 or al,3 out 0x61,al mov al,TIMER2 | BOTH | MODE2 | BINARY out 0x43...
;================================================================================ ; Lamp Mantle & Light Cone Fix ;-------------------------------------------------------------------------------- ; Output: 0 for darkness, 1 for lamp cone ;-------------------------------------------------------------------------------- L...
xor a ld hl, basescradr + #01ea ld (hl), a inc h ld (hl), a inc h ld (hl), a inc h ld (hl), a inc h ld (hl), a inc h ld (hl), a inc h ld (hl), a ld hl, basescradr + #02e9 ld (hl), a inc h ld (hl), a inc h ld (hl), a inc h ld (hl), a inc h ld (hl), a inc h ld (hl), a...
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27035.0 ; Generated by VC++ for Common Language Runtime .file "C:\Users\admin\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cpp"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .global display_num, display_char, newline .global plus, minus, multiply, divide, rand32, rand_bounded .global add1, sub1, id, eq? .global greater, greater_eq, smaller, smaller_eq .global bool_not, bool_and, bool_or .global type_exception, value_exception, car_exception ....
; Program 3.2 ; Working Example - NASM (32-bit) ; Copyright (c) 2017 Hall & Slonka SECTION .data ; Section for variable definitions decimalLiteral: DB 31 ; Variable storing 31 hexLiteral: DD 0Fh ; Variable storing F (15 in decimal) charLiteral: DB 'A' ; Var...
; A147757: Palindromes formed from the reflected decimal expansion of the concatenation of 1, 0 and infinite digits 1. ; Submitted by Christian Krause ; 1,11,101,1001,10101,101101,1011101,10111101,101111101,1011111101,10111111101,101111111101,1011111111101,10111111111101,101111111111101,1011111111111101,101111111111111...
/* * This code is a modified version of Benjamin Jurke's work in 2015. You can read his blog post * here: * https://benjaminjurke.com/content/articles/2015/compile-time-numerical-unit-dimension-checking/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MP...
// picoChip ASM file // // Support for 32-bit arithmetic shift right. // // Copyright (C) 2003, 2004, 2005, 2008, 2009 Free Software Foundation, Inc. // Contributed by picoChip Designs Ltd. // Maintained by Hariharan Sandanagobalane (hariharan@picochip.com) // // This file is free software; you can redistrib...
#include<cstdio> using namespace std; int main(){ char a[13]; int n,b[13]; for (int i=0;i<13;i++){ a[i]=getchar(); } for (int i=0;i<13;i++){ b[i]=a[i]-48; } n=(b[0]*1+b[2]*2+b[3]*3+b[4]*4+b[6]*5+b[7]*6+b[8]*7+b[9]*8+b[10]*9)%11; if (n==10){ if (a[12]=='X') printf("Right"); else { for (int i=0;i<12;i+...
; A242135: a(n) = n^3 - 2*n. ; 0,-1,4,21,56,115,204,329,496,711,980,1309,1704,2171,2716,3345,4064,4879,5796,6821,7960,9219,10604,12121,13776,15575,17524,19629,21896,24331,26940,29729,32704,35871,39236,42805,46584,50579,54796,59241,63920,68839,74004,79421,85096,91035,97244,103729,110496,117551,124900,132549,140504,14877...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="pid, sig"/> <%docstring> Invokes the syscall kill. See 'man 2 kill' for more information. Arguments: pid(pid_t): pid sig(int): sig </%docstring> ${syscall('SYS_kill', pid, sig)}
/// Copyright Matus Chochlik. /// Distributed under the GNU GENERAL PUBLIC LICENSE version 3. /// See http://www.gnu.org/licenses/gpl-3.0.txt /// #include "Backend.hpp" #include "BuilderViewModel.hpp" #include "ConstructorViewModel.hpp" #include "FactoryViewModel.hpp" #include "ParameterViewModel.hpp" #include <QGuiApp...
SECTION code_driver SECTION code_driver_character_input PUBLIC _siob_flush_Rx_di PUBLIC _siob_flush_Rx EXTERN asm_z80_push_di, asm_z80_pop_ei EXTERN siobRxCount, siobRxIn, siobRxOut, siobRxBuffer _siob_flush_Rx_di: push af push hl call asm_z80_push_di ; d...
Name: ys_w67.asm Type: file Size: 25513 Last-Modified: '2016-05-13T04:51:43Z' SHA-1: AC34B43916228B65B45A0E52184ED8F561E99370 Description: null
%ifdef CONFIG { "RegData": { "MM7": ["0xB8AA3B295C17F0BC", "0x3FFF"] } } %endif fldl2e hlt
; A154617: Eleven times hexagonal numbers: 11*n*(2*n-1). ; 0,11,66,165,308,495,726,1001,1320,1683,2090,2541,3036,3575,4158,4785,5456,6171,6930,7733,8580,9471,10406,11385,12408,13475,14586,15741,16940,18183,19470,20801,22176,23595,25058,26565,28116,29711,31350,33033,34760,36531,38346,40205,42108,44055,46046,48081,50160,...
HallOfFame_Script: call EnableAutoTextBoxDrawing ld hl, HallOfFame_ScriptPointers ld a, [wHallOfFameCurScript] jp CallFunctionInTable HallofFameRoomScript_5a4aa: xor a ld [wJoyIgnore], a ld [wHallOfFameCurScript], a ret HallOfFame_ScriptPointers: dw HallofFameRoomScript0 dw HallofFameRoomScript1 dw HallofF...
; A106565: Let M={{0, 5}, {1, 5}}, v[n]=M.v[n-1]; then a(n) =v[n][[1]]. ; 0,5,25,150,875,5125,30000,175625,1028125,6018750,35234375,206265625,1207500000,7068828125,41381640625,242252343750,1418169921875,8302111328125,48601406250000,284517587890625,1665594970703125 mov $1,1 lpb $0,1 sub $0,1 mov $2,$3 add $3,$1 ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x15bff, %r12 inc %rsi movl $0x61626364, (%r12) nop nop nop nop nop sub %r11, %r11 lea addresses_normal_ht+0xe2ff, %r14 nop nop nop nop nop sub $58820, %r10 movw $0x6...
; A231683: a(n) = Sum_{i=0..n} digsum_8(i)^4, where digsum_8(i) = A053829(i). ; 0,1,17,98,354,979,2275,4676,4677,4693,4774,5030,5655,6951,9352,13448,13464,13545,13801,14426,15722,18123,22219,28780,28861,29117,29742,31038,33439,37535,44096,54096,54352,54977,56273,58674,62770,69331,79331,93972,94597,95893,98294,102390,10...
; float logb(float x) SECTION code_fp_math48 PUBLIC cm48_sdcciy_logb EXTERN cm48_sdcciy_logb_fastcall cm48_sdcciy_logb: pop af pop hl pop de push de push hl push af jp cm48_sdcciy_logb_fastcall
;====================================================================================================================== ; FAMISTUDIO SOUND ENGINE (3.2.0) ; Copyright (c) 2019-2021 Mathieu Gauthier ; ; Copying and distribution of this file, with or without ; modification, are permitted in any medium without royalty prov...
; A085297: Nonzero residues of Catalan sequence modulo 3; related to the Thue-Morse sequence (A001285). ; 1,1,2,2,2,2,2,2,1,1,1,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,1,1,1,2,2,2,2,2,2,1,1,1,2,2,2,1,1,1,1,1,1,2,2,2,1,1,1,2,2,2,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,1,1,1,2,2,2,1,1,1,1,1,1,2,2,2,2,2,2,1,1 add $0,1 div ...
; A171508: Numbers that are not the sum of the k-th noncomposite number and k for any k >= 1. ; 1,3,5,7,8,10,11,13,14,15,16,18,19,21,22,23,24,26,27,29,30,31,32,34,35,36,37,38,39,41,42,44,45,46,47,48,49,51,52,53,54,56,57,59,60,61,62,64,65,66 mov $37,$0 mov $39,$0 lpb $39,1 mov $0,$37 sub $39,1 sub $0,$39 mov $3...
.include "defaults_mod.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 1 card_id equ 11 card_no equ "011" card_sub equ "Mod Card 011" card_sub_x ...
-- HUMAN RESOURCE MACHINE PROGRAM -- JUMP b a: OUTBOX b: c: INBOX JUMPZ a JUMP c
; A106729: Sum of two consecutive squares of Lucas numbers (A001254). ; 5,10,25,65,170,445,1165,3050,7985,20905,54730,143285,375125,982090,2571145,6731345,17622890,46137325,120789085,316229930,827900705,2167472185,5674515850,14856075365,38893710245,101825055370,266581455865,697919312225,1827176480810,4783610130205,1252...
; A132710: Infinitesimal generator for a diagonally-shifted Lah matrix, unsigned A105278, related to n! Laguerre(n,-x,1). ; 0,2,0,0,6,0,0,0,12,0,0,0,0,20,0,0,0,0,0,30,0,0,0,0,0,0,42,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,90,0,0,0,0,0,0,0,0,0,0,110,0,0,0,0,0,0,0,0,0,0,0,132,0 mov $6,2 mov $7,$0 lpb $6 ...
; A081854: (8*n-3)*(4*n-1)*(8*n^2-5*n+1). ; 3,60,2093,13398,47415,123728,268065,512298,894443,1458660,2255253,3340670,4777503,6634488,8986505,11914578,15505875,19853708,25057533,31222950,38461703,46891680,56636913,67827578,80599995,95096628,111466085,129863118,150448623 mul $0,8 sub $0,2 bin $0,2 add $0,1 bin $0,2 div...
; A072206: Third terms of triple Peano sequence A071988. ; 2,4,15,42,176,299,697,988,1794,3683,4526,7807,10701,12384,16262,23479,32568,36051,47972,57226,62269,79158,91964,113653,147537,166751,176954,198592,210043,234249,333502,366276,419357,438128,540423,562626,632867,708724,762522,848219,940108,972151,1143326,1179809,...