text
stringlengths
1
1.05M
/* ### * IP: GHIDRA * * 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 ...
; A159695: a(0)=7, a(n) = 2*a(n-1) + 2^(n-1) for n > 0. ; 7,15,32,68,144,304,640,1344,2816,5888,12288,25600,53248,110592,229376,475136,983040,2031616,4194304,8650752,17825792,36700160,75497472,155189248,318767104,654311424,1342177280,2751463424,5637144576,11542724608,23622320128,48318382080,98784247808,201863462912,412...
; A090613: Numbers k such that the k-th prime is congruent to 3 mod 7. ; Submitted by Jamie Morken(s1) ; 2,7,11,17,21,26,37,46,49,53,57,61,64,71,73,80,92,98,103,106,114,118,121,137,138,145,148,160,166,168,175,186,188,190,196,204,206,210,215,218,232,236,243,248,255,258,263,265,273,281,289,292,296,316,321,334 seq $0,454...
; A115519: n*(1+3*n+6*n^2)/2. ; 0,5,31,96,218,415,705,1106,1636,2313,3155,4180,5406,6851,8533,10470,12680,15181,17991,21128,24610,28455,32681,37306,42348,47825,53755,60156,67046,74443,82365,90830,99856,109461,119663,130480,141930,154031,166801,180258 mov $1,6 mul $1,$0 mul $0,$1 add $1,3 mul $0,$1 add $0,$1 mov $1,$0 ...
#include<iostream> #include<cstring> using namespace std; int main() { int n=0,ans=0; cin>>n; while(n--) { char ch[3]; cin>>ch; if(ch[1]=='+'||ch[0]=='+') ans++; else ans--; } cout<<ans; return 0; }
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r8 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xf26f, %r8 cmp %rax, %rax mov (%r8), %r12 nop nop cmp %r10, %r10 lea addresses_WC_ht+0x96d7, %r12 nop nop nop nop inc %r14 mov $0x6162636465666768, %rbp mov...
; A068719: Arithmetic derivative of even numbers: a(n) = n+2*A003415(n). ; 1,4,5,12,7,16,9,32,21,24,13,44,15,32,31,80,19,60,21,68,41,48,25,112,45,56,81,92,31,92,33,192,61,72,59,156,39,80,71,176,43,124,45,140,123,96,49,272,77,140,91,164,55,216,87,240,101,120,61,244,63,128,165,448,101,188,69,212,121,188,73,384,75,152,185...
; A100792: Group the natural numbers so that the n-th group contains n(n+1)/2 = T(n) terms: (1), (2,3,4), (5,6,7,8,9,10), (11,12,13,14,15,16,17,18,19,20),(21,22,23,24,25,26,27,28,29,30,31,32,33,34,35),... The r-th term of the n-th row of the following triangle is the sum of the next r terms of the n-th group, e.g. thir...
; A024771: Expansion of 1/((1-x)(1-8x)(1-9x)(1-10x)). ; Submitted by Jon Maiga ; 1,28,515,7850,107481,1373088,16714975,196403350,2246489861,25160397548,277090599435,3010102678050,32332333478641,344033387428408,3631750686931895,38080468894107950,396993032851849821,4118198909216785668,42536994202463280355,437729691089378...
/* * Copyright 2015-present 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 a...
;***************************************************************************** ;* dct-64.asm: h264 encoder library ;***************************************************************************** ;* Copyright (C) 2003-2008 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Holger Lubitz <holg...
-- HUMAN RESOURCE MACHINE PROGRAM -- -- Σ([in1, in2 .. ~\0]), ... -> out JUMP c a: COPYFROM 0 b: OUTBOX c: INBOX JUMPZ b d: COPYTO 0 INBOX JUMPZ a ADD 0 JUMP d
DanaPhoneCalleeScript: gettrainername STRING_BUFFER_3, LASS, DANA1 checkflag ENGINE_DANA iftrue .WantsBattle farscall PhoneScript_AnswerPhone_Female checkflag ENGINE_DANA_THURSDAY_NIGHT iftrue .NotThursday checkflag ENGINE_DANA_HAS_THUNDERSTONE iftrue .HasThunderstone readvar VAR_WEEKDAY ifnotequal THURSDAY, ...
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/common/exception.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/assert.hpp" #include "duckdb/common/common.hp...
#include "W_Resources.h" #include "ImGui/imgui.h" #include "Engine.h" #include "M_Resources.h" //Resources #include "R_Mesh.h" #include "R_Material.h" #include "R_Texture.h" W_Resources::W_Resources(M_Editor* editor, ImGuiWindowClass* windowClass, int ID) : Window(editor, GetName(), windowClass, ID) { } void W_R...
; A146884: Sum of power terms sequence: a(n)=Sum[7*6^m, {m, 0, n}]. ; 7,49,301,1813,10885,65317,391909,2351461,14108773,84652645,507915877,3047495269,18284971621,109709829733,658258978405,3949553870437,23697323222629,142183939335781,853103636014693,5118621816088165 mov $1,6 pow $1,$0 div $1,5 mul $1,42 add $1,7
org 07c00h ; Boot 状态, Bios 将把 Boot Sector 加载到 0:7C00 处并开始执行 ;================================================================================================ BaseOfStack equ 07c00h ; Boot状态下堆栈基地址(栈底, 从这个位置向低地址生长) %include "load.inc" ;===============================================================================...
/** * @file llfloaterpreference.cpp * @brief Global preferences with and without persistence. * * $LicenseInfo:firstyear=2002&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under th...
_Multiply:: ; hMultiplier is one byte. ld a, 8 ld b, a xor a ldh [hMultiplicand - 1], a ldh [hMathBuffer + 1], a ldh [hMathBuffer + 2], a ldh [hMathBuffer + 3], a ldh [hMathBuffer + 4], a .loop ldh a, [hMultiplier] srl a ldh [hMultiplier], a jr nc, .next ldh a, [hMathBuffer + 4] ld c, a ldh a, [hMulti...
; A266046: Real part of Q^n, where Q is the quaternion 2 + j + k. ; Submitted by Jon Maiga ; 1,2,2,-4,-28,-88,-184,-208,272,2336,7712,16832,21056,-16768,-193408,-673024,-1531648,-2088448,836096,15875072,58483712,138684416,203835392,-16764928,-1290072064,-5059698688,-12498362368,-19635257344,-3550855168,103608123392,435...
DiglettsCaveRoute2_Object: db $7d ; border block def_warps warp 2, 7, 0, LAST_MAP warp 3, 7, 0, LAST_MAP warp 4, 4, 0, DIGLETTS_CAVE def_signs def_objects object SPRITE_FISHING_GURU, 3, 3, STAY, NONE, 1 ; person def_warps_to DIGLETTS_CAVE_ROUTE_2
/** * @file Board_TTGO_Tdisplay.hpp * @author Kuba Andrýsek (email@kubaandrysek.cz) * @brief Konfigurace TTGO T-display * @date 2022-04-10 * * @copyright Copyright (c) 2022 Kuba Andrýsek * */ #define EPD_MOSI (23) #define EPD_MISO (-1) #define EPD_SCLK (18) #defin...
//================================================================================================= // // MJP's DX11 Sample Framework // http://mynameismjp.wordpress.com/ // // All code and content licensed under Microsoft Public License (Ms-PL) // //==================================================================...
_main: ;ledchase.c,2 :: void main() ;ledchase.c,4 :: unsigned char j=0b00000001; // aparentemente todas as variaveis devem ser declaradas no inicio da main ou do lado de fora, antes da main, MOVLW 1 MOVWF main_j_L0+0 ;ledchase.c,6 :: TRISC =0; // Configure PORTB as output CLRF ...
/* Copyright (c) 2003, 2005 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITH...
#include <boost/iostreams/filter/gzip.hpp>
// Copyright (c) 2012 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 "components/nacl/renderer/plugin/pnacl_coordinator.h" #include <algorithm> #include <sstream> #include <utility> #include "base/logging.h" ...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
; ---------------------------------------------------------------------------- ; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and ; Amstrad CPC. ; ---------------------------------------------------------------------------- ; ------------------ ; 'set_border_color' ; ------------------ ; Sets the bord...
/*! * Copyright (c) 2016 by Contributors * \file symbol.hpp * \brief implementation of the symbol * \author Zhang Chen, Chuntao Hong */ #ifndef MXNETCPP_SYMBOL_HPP #define MXNETCPP_SYMBOL_HPP #include <map> #include <memory> #include <string> #include <vector> #include "logging.h" #include "symbol.h" namespac...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1d727, %r15 nop nop nop nop add %r11, %r11 movw $0x6162, (%r15) sub $46448, %r10 lea addresses_A_ht+0xd405, %rcx nop add $50272, %r13 movb $0x61, (%rcx) nop nop nop nop ...
; void z80_outp_callee(uint16_t port, uint8_t data) SECTION code_clib SECTION code_z80 PUBLIC _z80_outp_callee EXTERN asm_z80_outp _z80_outp_callee: pop af pop bc pop hl push af jp asm_z80_outp
!macro reserve_int { !fill int_sizeof, $00 } !macro reserve_int64 { !fill int64_sizeof, $00 } !macro reserve_long { !fill long_sizeof, $00 } !macro reserve_ptr { !fill ptr_sizeof, $00 } !macro reserve_short { !fill short_sizeof, $00 } !macro BasicUpstart65 { * = $2001 !byte $16,$20 ;End of command marke...
;=============================================================================== ; Copyright 2014-2020 Intel Corporation ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apa...
//================================================================================================== /*! @file @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //============================...
CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP include errcodes.i public pj_dnext ; Boolean pj_dnext(void); pj_dnext proc near mov ah,4fh int 21h jc jsnbad mov eax,1 jmp jsnret jsnbad: xor eax,eax ;zero out result jsnret: ret pj_dnext endp code ends end
; $Id: tstAsmStructsAsm.asm $ ;; @file ; Assembly / C structure layout testcase. ; ; Make yasm/nasm create absolute symbols for the structure definition ; which we can parse and make code from using objdump and sed. ; ; ; Copyright (C) 2006-2017 Oracle Corporation ; ; This file is part of VirtualBox Open Source Editio...
100 ;*********************** 110 ;* 26K BITS PER SECOND * 120 ;* SAMPLER FOR THE * 130 ;* COVOX VOICE MASTER * 140 ;* BY STEVE GOLDSMITH * 150 ;* (C) 1988 * 160 ;*********************** 170 ; 180 PORTA1 = $DC00 ;CIA #1 DATA PORT REGISTER A 190 DDRA1 = $DC02 ;CIA #1 DATA DIRECTION REGISTER PORT A 200 VI...
MACRO PRINT msg PUSHALL ld hl, .message call printmsg jr .done .message: db msg,0 .done: POPALL ENDM MACRO STORENEXTREG regno, addr ld bc, 0x243B ; nextreg select ld a, regno out (c), a inc b ; nextreg i/o i...
lda {c1},x cmp #<{c2} lda {c1}+1,x sbc #>{c2} bvc !+ eor #$80 !: bmi {la1}
// Copyright (c) 2012 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 "net/dns/host_resolver_proc.h" #include "build/build_config.h" #include "base/logging.h" #include "base/sys_byteorder.h" #include "base/thr...
; =============================================================== ; Dec 2013 ; =============================================================== ; ; char *strrev(char *s) ; ; Reverse string in place. ; ; =============================================================== SECTION code_clib SECTION code_string PUBLIC asm_s...
IDD_DLGMENUEDIT equ 1500 IDC_EDTITEMCAPTION equ 2512 IDC_HOTMENU equ 2513 IDC_EDTITEMNAME equ 2516 IDC_EDTITEMID equ 2518 IDC_EDTHELPID equ 2529 IDC_BTNADD equ 2532 IDC_BTNINSERT equ 2519 IDC_BTNDELETE equ 2520 IDC_BTNL equ 2521 IDC_BTNR equ 2522 IDC_BTNU equ 2523 IDC_BTND e...
; A153058: a(0)=4; a(n)=n^2+a(n-1) for n>0. ; 4,5,9,18,34,59,95,144,208,289,389,510,654,823,1019,1244,1500,1789,2113,2474,2874,3315,3799,4328,4904,5529,6205,6934,7718,8559,9459,10420,11444,12533,13689,14914,16210,17579,19023,20544,22144,23825,25589,27438,29374,31399,33515,35724,38028,40429,42929,45530,48234,51043,53959...
; ; Amstrad CPC Specific libraries ; ; Stefano Bodrato - May 2008 ; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; This function is linked only in the CP/M extension version ; it calls the ROM functions as the base cpc firmware interposer ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
/* * Keypad Matrix 4x4 * * org: 6/24/2014 * auth: Nels "Chip" Pearson * * Target: I2C Demo Board w/ display and keypad I/O, 20MHz * * Usage: * .include key_matrix_4x4.asm * * Resources * kms_buff: ; Key Matrix Scan last valid data buffer * ; d3:0 = data..d7: 0=old..1=new * kms_state: ; scan stat...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_AF ;TEST_FILE_META_END ; AND8ri mov ah, 0xcd ;TEST_BEGIN_RECORDING and ah, 0x3 ;TEST_END_RECORDING
MonPartyData: ; MON = 0 ; BALL_M = 1 ; HELIX = 2 ; FAIRY = 3 ; BIRD_M = 4 ; WATER = 5 ; BUG = 6 ; GRASS = 7 ; SNAKE = 8 ; QUADRUPED = 9 ; PIKACHU = A dn SPRITE_GRASS, SPRITE_GRASS ;Bulbasaur/Ivysaur dn SPRITE_GRASS, SPRITE_MON ;Venusaur/Charmander dn SPRITE_MON, SPRITE_MON...
<% from pwnlib.shellcraft.amd64.linux import syscall %> <%page args="fd, buf, nbytes"/> <%docstring> Invokes the syscall read. See 'man 2 read' for more information. Arguments: fd(int): fd buf(void): buf nbytes(size_t): nbytes </%docstring> ${syscall('SYS_read', fd, buf, nbytes)}
// -*- C++ -*- std::terminate, std::unexpected and friends. // Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 // Free Software Foundation // // This file is part of GCC. // // GCC is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as publi...
; signed long __fs2ulong (float f) SECTION code_fp_math48 PUBLIC cm48_sdccixp_ds2ulong EXTERN cm48_sdccixp_dread1, am48_dfix32u cm48_sdccixp_ds2ulong: ; double to unsigned long ; ; enter : stack = sdcc_float x, ret ; ; exit : dehl = (unsigned long)(x) ; ; uses : af, bc, de, hl, bc', de', hl...
; A106252: Number of positive integer triples (x,y,z), with x<=y<=z<=n, such that each of x,y and z divides the sum of the other two. ; 1,3,5,7,8,11,12,14,16,18,19,22,23,25,27,29,30,33,34,36,38,40,41,44,45,47,49,51,52,55,56,58,60,62,63,66,67,69,71,73,74,77,78,80,82,84,85,88,89,91,93,95,96,99,100,102,104,106,107,110,111...
; A169118: Number of reduced words of length n in Coxeter group on 9 generators S_i with relations (S_i)^2 = (S_i S_j)^26 = I. ; 1,9,72,576,4608,36864,294912,2359296,18874368,150994944,1207959552,9663676416,77309411328,618475290624,4947802324992,39582418599936,316659348799488,2533274790395904,20266198323167232,16212958...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0x36b8, %rcx nop nop nop nop and %rax, %rax mov (%rcx), %r13w nop nop nop nop nop xor %r12, %r12 lea addresses_WT_ht+0x8f31, %r14 sub $31792, %rcx mov (%r14), %r9d nop xor %r14,...
/* * Copyright (c) 2015 - 2021, 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 condition...
;=========================================================== ; game.asm ; ; Data for game workflow handling ;=========================================================== GameCounter .byte $00 ;Counter for speed control GameSpeed .byte $0A ;Cycles needed to update game Temp .byte $00 ;Temporary data address Temp2 .byte...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x19883, %rbx nop nop and %rbp, %rbp mov (%rbx), %r9 nop sub $52749, %r15 lea addresses_normal_ht+0xc293, %rsi lea addresses_A_ht+0xc683, %rdi nop nop xor $62544, %r14 mov $81,...
// Copyright 2014 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 "ash/common/frame/custom_frame_view_ash.h" #include <memory> #include "ash/common/ash_layout_constants.h" #include "ash/common/frame/caption_bu...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1ae0d, %rsi lea addresses_A_ht+0x1675d, %rdi clflush (%rsi) nop nop nop nop add $53339, %rax mov $115, %rcx rep movsw nop nop nop nop add $22075, %r14 lea addresses_WC_ht+0x1...
; A056236: a(n) = (2+sqrt(2))^n + (2-sqrt(2))^n. ; 2,4,12,40,136,464,1584,5408,18464,63040,215232,734848,2508928,8566016,29246208,99852800,340918784,1163969536,3974040576,13568223232,46324811776,158162800640,540001579008,1843680714752,6294719700992,21491517374464,73376630095872,250523485634560,855340682346496,292031575...
.importonce // The MIT License (MIT) // // Copyright (c) 2015 Michał Taszycki // // 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 ri...
li $t1, 12 li $t2, 12 mtc0 $t1, $14 mfc0 $2, $14 beq $2, $t2, next ori $3, 65535 ori $4, 65535 ori $5, 65535 next: ori $6, 65535 ori $7, 65535
#include<bits/stdc++.h> using namespace std; bool included[200001]{false}; set<int> neighbors[200001]; set<pair<int,int>> result; queue<int> tovisit; int main() { int n, m, u, v, max=0; cin >> n >> m; for (;m--;) { cin >> v >> u; neighbors[u].insert(v); neighbors[v].insert(u); } for (int i=1; i...
// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef V8_INTL_SUPPORT #include "src/regexp/property-sequences.h" namespace v8 { namespace internal { /* Generated from following Node.js source: pa...
; A011855: a(n) = floor(binomial(n,9)/9). ; 0,0,0,0,0,0,0,0,0,0,1,6,24,79,222,556,1271,2701,5402,10264,18662,32658,55268,90798,145278,226997,347172,520758,767433,1112778,1589683,2240008,3116533,4285233,5827917,7845273 bin $0,9 div $0,9
SELECT_SORT PROC ;use si and bx as input and sort the STRING PUSH SI PUSH AX PUSH BX PUSH CX PUSH DX DEC BX JE END_SORT MOV DX,SI SORT_LOOP: ;runs untill STRING is sorted MOV SI,DX MOV DI,SI MOV CX,BX MOV AL,[DI] FIND_BIG: ;find the MAX number INC SI CMP [SI],AL ...
frame000: .byte $1a,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$fe,$41 frame001: .byte $1a,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$fe,$41 frame002: .byte $1a,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff,...
.inesprg 1 ;1x 16kb PRG code .ineschr 1 ;1x 8kb CHR data .inesmap 0 ; mapper 0 = NROM, no bank swapping .inesmir 1 ;background mirroring (vertical mirroring = horizontal scrolling) .rsset $0000 joypad1 .rs 1 ;button states for the current frame joypad1_old .rs 1 ;last frame's button...
; int zx_pattern_fill(uchar x, uchar y, void *pattern, uint depth) SECTION code_clib SECTION code_arch PUBLIC zx_pattern_fill EXTERN l0_zx_pattern_fill_callee zx_pattern_fill: pop af pop bc pop de pop hl pop ix push hl push hl push de push bc push af jp l0_zx_pattern_fill_cal...
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI // Copyright 2012 - 2013 MetaScale SAS // // Distributed under the Boost...
#include "extensions.hpp" namespace phosphor { namespace logging { StartupFunctions Extensions::startupFunctions{}; CreateFunctions Extensions::createFunctions{}; DeleteFunctions Extensions::deleteFunctions{}; DeleteProhibitedFunctions Extensions::deleteProhibitedFunctions{}; Extensions::DefaultErrorCaps Extensions::...
; ; Sprite Rendering Routine ; original code by Patrick Davidson (TI 85) ; modified by Stefano Bodrato - March 2011 ; ; Much More Generic version ; Uses plot, unplot and xorplot ; ; ; $Id: w_putsprite3.asm,v 1.1 2011/04/01 06:50:45 stefano Exp $ ; XLIB putsprite LIB plot LIB unplot LIB xorplot ; coords: h,l ...
#include "cpp_header.h" #include "singly_linked.h" class Solution { public: ListNode * head; void deleteNode(ListNode* node) { ListNode * cur = head; while(cur && cur->next) { if(cur->next == node) { cur->next = cur->next->next; delete node; break; } } } };
#include "fbyregex.h" #include "fby.h" #include <iostream> #include <fstream> #include <map> #include <boost/algorithm/string.hpp> #include <string> #include <stdio.h> using namespace std; using namespace Fby; #define REGEXBLOCK_NOSQL "(\\s+(\\/\\*\\s*nosql\\s*\\*\\/)|\\/\\/\\s*nosql)?" Regex regexMatchClass("regexMa...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x41d6, %rdx nop nop nop nop nop cmp %r9, %r9 movb $0x61, (%rdx) nop nop and $2075, %r10 lea addresses_UC_ht+0x9a96, %rdi nop cmp %r12, %r12 mov (%rdi), %ax xor %r9, %...
_DaisyInitialText:: text "Hi ",$52,"!" line $53," is out at" cont "Grandpa's lab." done _DaisyOfferMapText:: text "Grandpa asked you" line "to run an errand?" cont "Here, this will" cont "help you!" prompt _GotMapText:: text $52," got a" line "@" TX_RAM wcf4b text "!@@" _DaisyBagFullText:: text "You ha...
; ; Amstrad CPC Stdio ; ; putchar - puts a character ; (HL)=char to display ; ; Stefano Bodrato - 8/6/2001 ; ; ; $Id: fputc_cons.asm,v 1.6 2016/05/15 20:15:45 dom Exp $ ; SECTION code_clib PUBLIC fputc_cons_native INCLUDE "cpcfirm.def" .fputc_cons_native ld hl,2 add ...
// Copyright (c) 2009-2012 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <iostream> #include <fstream> #include "init.h" // for pwalletMain #include "rpcserver.h" #include "ui_interface.h" #inc...
; A182435: a(n) = 6*a(n-1) - a(n-2) - 2 with n>1, a(0)=0, a(1)=1. ; 0,1,4,21,120,697,4060,23661,137904,803761,4684660,27304197,159140520,927538921,5406093004,31509019101,183648021600,1070379110497,6238626641380,36361380737781,211929657785304,1235216565974041,7199369738058940,41961001862379597,244566641436218640,1425438...
;*************************************************************** ; ; Program: Hello_Cumsoft_nasm ; Date: 02/08/2022 ; Author: Cumsoft ; Goal: A simple hello world program in x86 assembly ; ; ; ; ; ;*************************************************************** section .text global _start _start: ...
; void sms_vdp_set_write_address(unsigned int addr) SECTION code_clib SECTION code_arch PUBLIC _sms_vdp_set_write_address_fastcall EXTERN asm_sms_vdp_set_write_address defc _sms_vdp_set_write_address_fastcall = asm_sms_vdp_set_write_address
; VBXE init .proc @vbxe_init fxs FX_MEMC #%1000+>MAIN.SYSTEM.VBXE_WINDOW ; $b000..$bfff (4K window), cpu on, antic off fxs FX_MEMS #$80+MAIN.SYSTEM.VBXE_XDLADR/$1000 ; enable VBXE BANK #0 ldx #.sizeof(s@xdl)-1 mva:rpl xdlist,x MAIN.SYSTEM.VBXE_XDLADR+MAIN.SYSTEM.VBXE_WINDOW,x- jsr cmapini ; init c...
/* * * Copyright (c) 2021 Project CHIP 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...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r8 push %rbx push %rdx lea addresses_UC_ht+0x17980, %rdx nop nop nop sub $49817, %r8 movw $0x6162, (%rdx) nop nop nop nop nop cmp %r10, %r10 pop %rdx pop %rbx pop %r8 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r15 push %r9 push %ra...
# PACKAGE fibinaci .data # Data section starts here, strings first _L0: .asciiz "in fib" _L1: .asciiz "hello" _NL: .asciiz "\n" # NEWLINE STRING .align 2 # start all global variable aligned y: .word 7 # global var initialized Z: .space 4 # global var uninitialized A: .space 400 # global var u...
/** * Google's Firebase Data class, FB_Session.cpp version 1.2.8 * * This library supports Espressif ESP8266 and ESP32 * * Created December 20, 2021 * * This work is a part of Firebase ESP Client library * Copyright (c) 2021 K. Suwatchai (Mobizt) * * The MIT License (MIT) * Copyright (c) 2021 ...
; A228843: a(n) = 4^n*A228842(n). ; Submitted by Christian Krause ; 2,24,448,9216,192512,4030464,84410368,1767899136,37027315712,775510032384,16242492571648,340187179646976,7124972786941952,149227367389200384,3125458558976524288,65460453902527758336,1371021545886168645632,28715048051506270961664,60141577429943570975948...
/* * Copyright (c) 2018, Bosch Software Innovations GmbH. * 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 * n...
; DV3 open routines V3.04  1992 Tony Tebby ; ; QDOS compatible version ; ; 2018-06-24 3.02 Keep error code from ddl_check (MK) ; 2018-07-30 3.03 Fixed Minerva workaround in case of open through DEV (MK) ; 2020-04-22 3.04 Fixed Minerva heap corruption issue (MK) section dv3 xdef dv3_open xdef dv3_opnb ...
; A285173: Numbers n such that A002496(n+1) < A002496(n)^(1+1/n). ; 3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70 pow $2,$0 pow $1,$2 add $1,$0 add $1,3
;----------------------------------------------------------------------------- ; Paul Wasson - 2021 ;----------------------------------------------------------------------------- ; DHGR Map Editor ; MAP_CURSOR = MAX_TILES MAP_X_OFFSET = 10 MAP_Y_OFFSET = 2 MAP_SCREEN_WIDTH = 7 MAP_SC...
; void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)) SECTION code_stdlib PUBLIC qsort EXTERN asm_qsort qsort: pop af pop ix pop de pop hl pop bc push bc push hl push de push hl push af jp asm_qsort
// // Copyright 2012 MultiMC Contributors // // 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...
; ; Copyright (c) 2020 Phillip Stevens ; ; 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 obtain one at http://mozilla.org/MPL/2.0/. ; ; feilipu, June 2020 ; ;-------------------------------------------------...
; Copyright © 2005 - 2021 by Brett Kuntz. All rights reserved. SetFileTimeHook proto :dword, :dword, :dword, :dword .data? SetFileTimeOrig dd ? .code ; ########################################################################## SetFileTimeHook proc hFile:dword, lpCreationTime:dword, lpLastAccessTime:dwor...
#include <mupdf_wrapper/context.h> #include <mupdf_wrapper/document.h> #include <mupdf_wrapper/page.h> #include <catch2/catch.hpp> #include <filesystem> #include <memory> extern std::filesystem::path test_files_directory; SCENARIO("Create Page", "[Page]") { GIVEN("Document") { mupdf_wrapper::Context...
.include "defaults_mod.asm" table_file_jp equ "exe5-utf8.tbl" table_file_en equ "bn5-utf8.tbl" game_code_len equ 3 game_code equ 0x4252424A // BRBJ game_code_2 equ 0x42524245 // BRBE game_code_3 equ 0x42524250 // BRBP card_type equ 1 card_id equ 14 card_no equ "014" card_sub equ "Mod Card 014" card_sub_x ...
/* * Copyright (C) 2012 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_OF|FLAG_SF|FLAG_ZF|FLAG_AF|FLAG_PF|FLAG_CF ;TEST_FILE_META_END ; allocate 16 byte aligned stack space for the packed values ;TEST_BEGIN_RECORDING lea ecx, [esp-0x20] and ecx, 0xfffffff0 ; load 128 bit value into xmm0 mov DWORD [ecx], 0x8234567...
// Copyright 2017 The Chromium OS 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 "midis/device_tracker.h" #include <memory> #include <utility> #include <base/bind.h> #include <base/strings/string_number_conversions.h> #in...