text
stringlengths
1
1.05M
// // Created by root on 12/22/21. // #ifndef RADIUS_SPECTRUMS_SOFTWARE_NEXT_API_HPP #define RADIUS_SPECTRUMS_SOFTWARE_NEXT_API_HPP #include "../IApi/IApi.hpp" namespace rs { class Api : public IApi { public: Api(const std::shared_ptr<sw::redis::Redis>& redis, std::optional<std::string> mQ); ...
[bits 32] [global read_cr0] read_cr0: mov eax, cr0 retn [global write_cr0] write_cr0: push ebp mov ebp, esp mov eax, [ebp+8] mov cr0, eax pop ebp retn [global read_cr3] read_cr3: mov eax, cr3 retn [global write_cr3] write_cr3: push ebp mov ebp, esp mov eax, [ebp+...
; A163673: a(n) = n*(2*n^2 + 5*n + 15)/2. ; 0,11,33,72,134,225,351,518,732,999,1325,1716,2178,2717,3339,4050,4856,5763,6777,7904,9150,10521,12023,13662,15444,17375,19461,21708,24122,26709,29475,32426,35568,38907,42449,46200,50166,54353,58767,63414,68300,73431,78813,84452,90354,96525,102971,109698,116712,124019,131625,1...
; ; PC-8801 specific routines ; by Stefano Bodrato, 2018 ; ; void pc88_breakoff(); ; ; Disable BREAK ; At the moment only the results of pc88_break() are affected: ROM services will still react to BREAK ; ; $Id: pc88_breakoff.asm $ ; SECTION code_clib PUBLIC pc88_breakoff PUBLIC _pc88_breakoff EXTERN br...
;; xOS32 ;; Copyright (C) 2016-2017 by Omar Mohammad. use32 ; ; ; struct xfs_directory ; { ; u8 filename[32]; ; u32 lba; ; u32 size_sectors; ; u32 size_bytes; ; u8 hour; ; u8 minute; ; u8 day; ; u8 month; ; u16 year; ; u8 flags; ; u8 reserved[13]; ; } ; ; sizeof(xfs_directory) = 64; ; ; XFS Directory Entry Structur...
_test_14: file format elf32-i386 Disassembly of section .text: 00000000 <worker>: printf(1, "TEST PASSED\n"); exit(); } void worker(void *arg1, void *arg2) { 0: f3 0f 1e fb endbr32 4: 55 push %ebp 5: 89 e5 mov %esp,%ebp 7: 83 ec 08 ...
.size 8000 .text@48 ei jp lstatint .text@100 jp lbegin .data@143 c0 .text@150 lbegin: ld a, 00 ldff(ff), a ld a, 30 ldff(00), a ld a, 01 ldff(4d), a stop, 00 ld c, 44 ld b, 90 lbegin_waitly90: ldff a, (c) cmp a, b jrnz lbegin_waitly90 ld a, 11 ldff(40), a ld hl, 8000 ld b, 08 lbegin_settile0data...
; boot.asm ; ; Copyright (C) 2015 Noah Sandman ; All rights reserved. ; ; This software may be modified and distributed under the terms ; of the BSD license. See the LICENSE file for details. ; bits 64 global _start extern kmain section .text _start: cli ; Halt interrupts call kmain hlt
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r15 push %r8 push %r9 push %rax push %rdx // Store mov $0x4ba0f8000000098b, %rdx nop sub $146, %r15 mov $0x5152535455565758, %r13 movq %r13, %xmm3 vmovups %ymm3, (%rdx) nop nop nop nop cmp %r9, %r9 // ...
; TODO: redo this and make it much better. ; Definitions of what happens. Used for the `prot` and `flags` variables in the mmap syscall %define PROT_READ 0x1 ; Page can be read. %define PROT_WRITE 0x2 ; Page can be written. %define PROT_EXEC 0x4 ; Page can be executed. %define PROT_NONE ...
; C0NTPKG.ASM - C run time library entry point for Win32 VCL Package DLLs ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1997, 2000 by Inprise Corporation ; All Rights Reserved. ; ; $Revision: 9.0 $ DLL equ 1 ; VCL Packages are always DLLs VCLPACKAGE equ 1 inc...
#include <iostream> #include <func_sim.h> using namespace std; int main(int argc, char** argv) { MIPS* mips = new MIPS; mips->run( argv[1] , 3); return 0; }
SECTION code_clib SECTION code_fp_math32 PUBLIC m32_compare, m32_compare_callee ; Compare two IEEE floats. ; ; IEEE float is considered zero if exponent is zero. ; ; To compare our floating point numbers across whole number range, ; we define the following rules: ; - Always flip the sign bit. ; - If the ...
; A276863: First differences of the Beatty sequence A276854 for 1 + sqrt(5). ; Submitted by Jon Maiga ; 3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,4,3,3,3,3,4,3,3,3,4,3,3 mul $0,2 add $0...
; A314707: Coordination sequence Gal.6.129.4 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,5,9,13,18,22,26,30,35,39,43,48,53,57,61,66,70,74,78,83,87,91,96,101,105,109,114,118,122,126,131,135,139,144,149,153,157,162,166,170,174,17...
/* * Author: doe300 * * See the file "LICENSE" for the full license governing this code. */ #include "SemaphoreInstruction.h" using namespace vc4c; using namespace vc4c::qpu_asm; SemaphoreInstruction::SemaphoreInstruction(const Pack pack, const ConditionCode condAdd, const ConditionCode condMul, const SetFla...
; A053988: Denominators of successive convergents to tan(1/2) using continued fraction 1/(2-1/(6-1/(10-1/(14-1/(18-1/(22-1/(26-1/30-...))))))). ; Submitted by Jamie Morken(s4) ; 2,11,108,1501,26910,590519,15326584,459207001,15597711450,592253828099,24859063068708,1142924647332469,57121373303554742,3083411233744623599,1...
; A062558: Number of nonisomorphic cyclic subgroups of dihedral group with 2n elements. ; Submitted by Jamie Morken(w3) ; 2,2,3,3,3,4,3,4,4,4,3,6,3,4,5,5,3,6,3,6,5,4,3,8,4,4,5,6,3,8,3,6,5,4,5,9,3,4,5,8,3,8,3,6,7,4,3,10,4,6,5,6,3,8,5,8,5,4,3,12,3,4,7,7,5,8,3,6,5,8,3,12,3,4,7,6,5,8,3,10,6,4,3,12,5,4,5,8,3,12,5,6,5,4,5,12...
; A121177: Catapolyoctagons (see Cyvin et al. for precise definition). ; 0,2,12,62,312,1562,7812,39062,195312,976562,4882812,24414062,122070312,610351562,3051757812,15258789062,76293945312,381469726562,1907348632812,9536743164062,47683715820312,238418579101562,1192092895507812,5960464477539062,29802322387695312 mov $1...
; A049613: a(n) = 2n - (largest prime < 2n-2). ; 3,3,3,5,3,3,5,3,3,5,3,5,7,3,3,5,7,3,5,3,3,5,3,5,7,3,5,7,3,3,5,7,3,5,3,3,5,7,3,5,3,5,7,3,5,7,9,3,5,3,3,5,3,3,5,3,5,7,9,11,13,15,3,5,3,5,7,3,3,5,7,9,11,3,3,5,7,3,5,7,3,5,3,5,7,3,5,7,3,3,5,7,9,11,3,3,5,3,3,5,7,9,11,13,3,5,7,9,11,13,3,5,3,3,5,3,5,7,3,3,5,7,9,11,3,5,7,3,5,7,3...
PUBLIC asm_multiply .386 .model flat, c .code asm_multiply PROC ;get the two parameters, put one in ebc and the other in edx push ebp mov ebp, esp mov ebx, [ebp + 8] mov edx, [ebp + TYPE DWORD + 8] mov eax, 0 mov cl, 31 Redo: ;if ecx is zero, youre done cmp edx, 0 jne notZero pop ebp ret notZero: ...
Route23_Script: call Route23Script_511e9 call EnableAutoTextBoxDrawing ld hl, Route23_ScriptPointers ld a, [wRoute23CurScript] jp CallFunctionInTable Route23Script_511e9: ld hl, wCurrentMapScriptFlags bit 6, [hl] res 6, [hl] ret z ResetEvents EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1, EVENT_VICTORY_ROAD_2_BOUL...
db 0 ; species ID placeholder db 80, 50, 130, 30, 90, 90 ; hp atk def spd sat sdf db FIRE, ROCK ; type db 75 ; catch rate db 154 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/magcargo/fro...
; A182361: a(n+1) = a(n) + floor(a(n)/8) with a(0)=8. ; 8,9,10,11,12,13,14,15,16,18,20,22,24,27,30,33,37,41,46,51,57,64,72,81,91,102,114,128,144,162,182,204,229,257,289,325,365,410,461,518,582,654,735,826,929,1045,1175,1321,1486,1671,1879,2113,2377,2674,3008 mov $1,9 lpb $0 sub $0,1 mul $1,9 sub $1,1 div $1,8 ...
// 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 <memory> #include <utility> #include "base/bind.h" #include "base/macros.h" #include "base/memory/ptr_util.h" #include "base/memory/scoped_refpt...
loop: $0 -> rob@in0 rob@out -> rob@in0 loop -> cu@in1 rob@out -> cu@in0
; A234043: a(n) = C(5*(n+1),4)/5, with n >= 0. ; 1,42,273,969,2530,5481,10472,18278,29799,46060,68211,97527,135408,183379,243090,316316,404957,511038,636709,784245,956046,1154637,1382668,1642914,1938275,2271776,2646567,3065923,3533244,4052055,4626006,5258872,5954553,6717074,7550585,8459361,9447802,10520433,11681904,129...
SECTION code_clib SECTION code_fp_math48 PUBLIC dcallee2 EXTERN cm48_sccz80p_dcallee2 defc dcallee2 = cm48_sccz80p_dcallee2
; int bv_priority_queue_push_callee(bv_priority_queue_t *q, int c) SECTION code_adt_bv_priority_queue PUBLIC _bv_priority_queue_push_callee, l0_bv_priority_queue_push_callee _bv_priority_queue_push_callee: pop af pop hl pop bc push af l0_bv_priority_queue_push_callee: push ix call asm_bv_priori...
; A001444: Bending a piece of wire of length n+1 (configurations that can only be brought into coincidence by turning the figure over are counted as different). ; 1,2,6,15,45,126,378,1107,3321,9882,29646,88695,266085,797526,2392578,7175547,21526641,64573362,193720086,581140575,1743421725,5230206126,15690618378,47071677...
; Options: ; startup=1 --> RAM mode ; startup=2 --> ROM mode (position code at location 0 and provide minimal interrupt services) ; ; CRT_ORG_CODE = start address ; CRT_ORG_BSS = address for bss variables ; CRT_MODEL = 0 (RAM), 1 = (ROM, code copied), 2 = (ROM, code comp...
tilecoll WALL, WALL, WALL, WALL ; 00 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 01 tilecoll WALL, WALL, WALL, WALL ; 02 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 03 tilecoll WALL, WALL, WALL, DOOR ; 04 tilecoll WALL, WALL, WALL, WALL ; 05 tilecoll WALL, LONG_GRASS, WALL, LONG_GRASS ; 06 tilecoll LONG_GRASS, WALL, LONG_G...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x48db, %r8 clflush (%r8) add %rdi, %rdi movb $0x61, (%r8) nop nop nop add $9640, %rsi lea addresses_UC_ht+0xff43, %rsi and $34832, %rcx mov $0x6162636465666768, %rdx movq %rdx, ...
LI D, 0xaa LI A, 0 LXY beginning beginning: LI B, 1 ADD U # We ned to discard the result of the first one. ADD A LI B, 255 CMP CMP NOP JNE NOP NOP LI D, 0xff HLT
/* * Copyright (C) Google 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 ...
; ALTTP Multiworld support ; org $f81000 ; Lookup item in ALTTP table and replace as needed, return as 8-bit A alttp_multiworld_replace_item: lsr !MULTIWORLD_SWAP : bcs .exit ; If !MULTIWORLD_SWAP is set, skip one item swap CMP.b #$20 : BEQ .exit ; Crystal CMP.b #$26 : BEQ .exit ...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r8 push %r9 push %rax push %rbp push %rcx push %rsi // Load lea addresses_WC+0xc1ae, %rsi nop nop nop and $62259, %rax mov (%rsi), %rcx nop nop nop nop nop sub $33560, %r10 // Store lea addresses_normal+0x1d98e,...
; uchar tshc_saddr2cx(void *saddr) SECTION code_clib SECTION code_arch PUBLIC _tshc_saddr2cx_fastcall EXTERN _zx_saddr2cx_fastcall defc _tshc_saddr2cx_fastcall = _zx_saddr2cx_fastcall
; A040465: Continued fraction for sqrt(488). ; 22,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44,11,44 sub $0,1 mod $0,2 sub $0,1 gcd $0,4 mul $0,11
; Copyright Oliver Kowalke 2009. ; 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) ; ---------------------------------------------------------------------------------- ; | 0 | 1 ...
; ; z88dk GFX library ; ; Draw a dithered horizontal line basing ; its pattern on an 'intensity' parameter. ; Basic concept by Rafael de Oliveira Jannone ; ; ; hline_dither(int x1, int y1, int x2, unsigned char intensity) ; PUBLIC surface_hline_dither EXTERN base_graphics EXTERN surface_pixeladdress EXTERN left...
/* * Copyright 2018 Open Source Robotics Foundation * * 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 applicab...
; A126997: a(n) = binomial(prime(4+n), prime(4)). ; 1,330,1716,19448,50388,245157,1560780,2629575,10295472,22481940,32224114,62891499,154143080,341149446,436270780,869648208,1329890705,1629348612,2898753715,4151918628,6890268572,12846240784,17199613200,19813501785,26075972546,29796772356,38620298376,89356415775,1116009...
; =============================================================== ; Mar 2014 ; =============================================================== ; ; void *b_array_append_block(b_array_t *a, size_t n) ; ; Expand committed portion of array by n bytes and return a ; pointer to the appended bytes. ; ; =====================...
//https://www.hackerrank.com/challenges/cats-and-a-mouse/problem #include <bits/stdc++.h> using namespace std; vector<string> split_string(string); // Complete the catAndMouse function below. string catAndMouse(int x, int y, int z) { auto zx = abs(z - x); auto zy = abs(z - y); if (zx == zy) { ...
/* * 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...
[SharedConstants] moduleMatches = 0xca6b9a52, 0x7467d6cf TASK_MGR_OBJ_SIZE = 0x3878 ; sys::task::Manager unmodified base size. OS_SEMAPHORE_SIZE = 0x20 NEW_TASK_MGR_OBJ_SIZE = TASK_MGR_OBJ_SIZE + OS_SEMAPHORE_SIZE [SharedCode] moduleMatches = 0xca6b9a52, 0x7467d6cf .origin = codecave ; Init hook ; We initialize the...
SECTION data_compiler SECTION code_compiler GLOBAL _dyncode_zx_romcall_stdstack_err GLOBAL _zx_romcall_stdstack_err GLOBAL _zx_romcall_stdstack GLOBAL _zx_romcall_private_restore_stack GLOBAL _call_with_errhandler ;;; _zx_romcall_stdstack_err is a standard calling conventions shim for ;;; _asm_zx_romcal...
processor 6502 ZP_TEMP2 equ $10 ZP_WRITE2 equ $12 include "fw_interface.asm" ; ORG $1001 ; DC.W $100B,0 ; DC.B $9E,"4109",0,0,0 ; SYS4107 ORG $17fd jmp main ;-------------------------------------------------------------------- ; Hauptprogramm (Init) ;-------------------------------------------------------...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: LaserJet Print Driver FILE: printcomPCL4Styles.asm AUTHOR: Dave Durran ROUTINES: Name Description ---- ----------- REVISI...
PikaPicTilemapPointers: pikatilemap_def: macro \1_id: dw \1 endm pikatilemap_def PikaAnimTilemap_0 pikatilemap_def PikaAnimTilemap_1 pikatilemap_def PikaAnimTilemap_2 pikatilemap_def PikaAnimTilemap_3 pikatilemap_def PikaAnimTilemap_4 pikatilemap_def PikaAnimTilemap_5 pikatilemap_def PikaAnimTilemap_6 pikatil...
; This is a demo virus to demonstrate ; the Mutation Engine <tm> usage ; Version 1.01 (1-3-92) ; (C) 1992 Dark Avenger. .model tiny .radix 16 .code extrn mut_engine: near, rnd_get: near, rnd_init: near extrn rnd_buf: word, data_top: near org 100 start: call locadr reladr: db 'Just a simple d...
#include "unittestframework.h" #include "string-lineenum.h" #include "string-lineenum.h" TEST_CASE("lineenum") { std::string text = "first\nsecond\nthird"; int i=0; for (auto part : lineenumerator(text)) { switch(i++) { case 0: CHECK(part == "first"); break; case 1:...
; PPU palette RAM read/write and mirroring test ; to do: check that upper two bits aren't stored .include "prefix_ppu.a" ; Set VRAM address to $3f00 + X ; Preserved: A, X, Y set_pal_addr: pha bit $2002 lda #$3f sta $2006 txa sta $2006 pla rts ; Set palett...
; A221829: Number of 2 X n arrays of occupancy after each element moves to some horizontal, vertical or antidiagonal neighbor, without 2-loops or left turns. ; 0,3,16,73,333,1519,6929,31607,144177,657671,3000001,13684663,62423313,284747239,1298889569,5924953367,27026987697,123285031751,562371183361,2565285853303,117016...
;* ;* COW : Character Oriented Windows ;* ;* screen.asm : installable screen drivers title screen - Screen control code for CW .xlist include user.inc include uisa.inc ;* for isa's include screen.inc ;* screen stuff include inscr.inc include indrv.inc ifdef KANJI include kanji.inc endif ;KANJI .list ;---...
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24) ) ftyp_start: dd BE(ftyp_end - ftyp_start) db "ftyp" db "isom" dd BE(0x00) db "mif1", "miaf" ftyp_end: meta_start: dd BE(meta_end - meta_start) db "meta" dd BE(0) dinf_start: dd BE(dinf_end - dinf...
SECTION code_error PUBLIC errno_znc EXTERN error_znc, _errno ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_ERROR = 0 pop hl pop hl pop hl ld l,$ff ; unspecified error ENDIF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; errno_znc: ; set errno = l ; set hl = 0 ; reset carry flag ...
# index number : 18001521 .text main: #(1)read data ------------------------------------------------------------------ #print first message la $a0,first li $v0,4 syscall #reading first integer li $v0,5 syscall move $t0,$v0 #print second message la $a0,second li $v0,4 syscall #reading second integer li $v0,5 syscall mo...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE400_Resource_Exhaustion__fscanf_for_loop_81_goodB2G.cpp Label Definition File: CWE400_Resource_Exhaustion.label.xml Template File: sources-sinks-81_goodB2G.tmpl.cpp */ /* * @description * CWE: 400 Resource Exhaustion * BadSource: fscanf Read data from the cons...
; ; feilipu, 2019 June ; ; 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/. ; ;------------------------------------------------------------------------- ; m32_fsmul2 - ...
; A212574: Number of (w,x,y,z) with all terms in {1,...,n} and |w-x|>=|x-y|+|y-z|. ; 0,1,8,33,88,197,380,673,1104,1721,2560,3681,5128,6973,9268,12097,15520,19633,24504,30241,36920,44661,53548,63713,75248,88297,102960,119393,137704,158061,180580,205441,232768,262753,295528,331297 mov $3,$0 mov $6,$0 lpb $3 mov $0,$6...
#include <bits/stdc++.h> using namespace std; int main() { int p; cin >> p; if (p == 2) { string text; cin >> text; cout << text + "!" << endl; } int price, n; cin >> price >> n; cout << price * n << endl; }
OPTION DOTNAME .text$ SEGMENT ALIGN(256) 'CODE' ALIGN 32 __sub_mod_384x384 PROC PRIVATE DB 243,15,30,250 mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] mov r12,QWORD PTR[32+rsi] mov r13,QWORD PTR[40+rsi] mov r14,QWORD PTR[48+rsi] sub r8,QWORD PTR[rdx]...
#ifndef _LAUNCHER_H_ #define _LAUNCHER_H_ #include "../utils/Reader.h" #include "../utils/Preprocessor.h" #include "EngineWrapper.hpp" class Launcher { public: Launcher(Reader *reader, Preprocessor *processor, EngineWrapper *engine) { reader_ = reader; engine_ = engine; ...
; A010811: 23rd powers: a(n) = n^23. ; 0,1,8388608,94143178827,70368744177664,11920928955078125,789730223053602816,27368747340080916343,590295810358705651712,8862938119652501095929,100000000000000000000000,895430243255237372246531,6624737266949237011120128,41753905413413116367045797,229585692886981495482220544,11222741...
Name: zel_djdt.asm Type: file Size: 88137 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: 239F537EFFF9E552DA59A4D16BBB285272151DAC Description: null
#include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> extern bool fWalletUnlockStakingOnly; AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) : QDialog(parent),...
HEADER:10000000 ; HEADER:10000000 ; +-------------------------------------------------------------------------+ HEADER:10000000 ; | This file has been generated by The Interactive Disassembler (IDA) | HEADER:10000000 ; | Copyright (c) 2013 Hex-Rays, <support@hex-rays.com> | HEADER...
/*************************************************************** * * Copyright (C) 1990-2014, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Yo...
#include <vector> #include <iostream> #include <cstdlib> #include <cassert> #include <cmath> #include <fstream> #include <sstream> using namespace std; class TrainingData { public: TrainingData(const string filename); bool isEof(void) { return m_trainingDataFile.eof(); } void getTopology(vector<unsigned> &topo...
#include "PMPacman.h" //---------------------------------------------------------------------------------------------------------------------------------------- PMPacman::PMPacman(PMMap & map) : PMUnit(map) { mHealth = 2; mEaten = 0; mScore = 0; mSymbol = '0'; mClock = 0; mScatter = false; mDirection = KEY_LEF...
; A295933: Number of (not necessarily maximum) cliques in the n-Sierpinski sieve graph. ; 8,20,55,160,475,1420,4255,12760,38275,114820,344455,1033360,3100075,9300220,27900655,83701960,251105875,753317620,2259952855,6779858560,20339575675,61018727020,183056181055,549168543160,1647505629475,4942516888420,14827550665255,4...
/** * @file multi.cpp * * Implementation of functions for keeping multiplaye games in sync. */ #include <SDL.h> #include <config.h> #include <fmt/format.h> #include "DiabloUI/diabloui.h" #include "diablo.h" #include "dthread.h" #include "engine/point.hpp" #include "engine/random.hpp" #include "me...
; A311843: Coordination sequence Gal.4.38.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,13,17,21,26,30,34,38,42,47,51,55,60,64,68,72,76,81,85,89,94,98,102,106,110,115,119,123,128,132,136,140,144,149,153,157,162,166,170,174,...
// Copyright (c) 2009-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chainparams.h> #include <pubkey.h> #include <script/descriptor.h> #include <test/fuzz/fuzz.h> void initialize_desc...
; A090568: Least m such that m^n begins with k^(n-1) for some k > 1. ; 1,2,4,3,7,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10 mul $0,1236 div $0,672 mov $1,$0 mov $2,...
// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -std=c++11 %s | FileCheck %s #define BREAK break enum class MD { Val1, Val2 }; void nop() {} // CHECK: foo // CHECK-NEXT: File 0, [[@LINE+1]]:16 -> {{[0-9]+}}:2 = #0 void foo(MD i) { switch (i) { #define HA...
a 100 jmp 114 ; skip following data ; jmp to (256 + 7 + <length of this string>) converted to hex. ; `db 0d, 0a,` + `db 0d,0a,"$"` = 7 db 0d,0a,"Hello, world!" db 0d,0a,"$" ; End of string marker above: "$"=24h mov ah,9 ; Function 09 of Int 21h: mov dx,102 ; DS:DX -> $-terminated string. int 21 ; Write to stdo...
#include "../include/type.hpp" #include "../include/value.hpp" /* *ι§’γ‚’η‰ˆγ«γ‚»γƒƒγƒˆγ—ε†ζη”»γ™γ‚‹ι–’ζ•° */ void set_and_redraw(Point p, KOMA_TYPE type){ visual_ban[9-p.get_x()][p.get_y()-1]->image(images[type]); visual_ban[9-p.get_x()][p.get_y()-1]->redraw(); main_ban[9-p.get_x()][p.get_y()-1] = type; } void target_masu(Point p){ t...
// Pointer to pointer to procedure without typedef (uses a very complex cast) // Commodore 64 PRG executable file .file [name="procedure-declare-11.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [s...
; void *balloc_addmem(unsigned char q, size_t num, size_t size, void *addr) SECTION code_clib SECTION code_alloc_balloc PUBLIC balloc_addmem EXTERN asm_balloc_addmem balloc_addmem: pop ix pop de pop hl pop bc dec sp pop af inc sp push af push bc push hl push de push ix ...
#pragma once #include "accessor.hpp" #include "material.hpp" #include <memory> #include <optional> #include <stdexcept> #include <string> namespace eng { struct Primitive { std::map<std::string, std::shared_ptr<eng::Accessor>> attributes = {}; std::shared_ptr<Material> material = {}; std::shared_ptr<e...
;--------------------------------------------------------- ; ; LDOS (Leonard Demo Operating System) ; AMIGA version ; Written by Leonard/Oxygene ; https://github.com/arnaud-carre/ldos ; ; Kernel ; ;--------------------------------------------------------- ; NOTE: should be relocatable code _LVOOpenLib = -552 inc...
;******************************************************************** ; newbios.asm ; ; BIOS rewrite for PC/XT ; ; BIOS replacement for PC/XT clone ; Hardware includes Z80-SIO USART (on channel B) + RPi to replace CRT. ; Reconstructed keyboard interface for PS/2 protocol. ; COM1 with UART 16550 and COM2 with Z80-S...
; A311548: Coordination sequence Gal.5.54.1 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. ; Submitted by Jon Maiga ; 1,4,8,12,17,23,28,32,36,40,44,48,52,57,63,68,72,76,80,84,88,92,97,103,108,112,116,120,124,128,132,137,143,148,152,15...
; A138428: a(n) = (prime(n)^5 - prime(n))/10. ; 3,24,312,1680,16104,37128,141984,247608,643632,2051112,2862912,6934392,11585616,14700840,22934496,41819544,71492424,84459624,135012504,180422928,207307152,307705632,393904056,558405936,858734016,1051010040 cal $0,40 ; The prime numbers. add $1,$0 mov $2,$0 mul $0,13 div ...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The polis Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/polis-config.h" #endif #inc...
// C++ implementation of the approach #include <bits/stdc++.h> using namespace std; // Function to print the first n pure numbers void nPureNumbers(int n) { queue<string> q; vector<string> ans; // Push the starting two elements q.push("44"); q.push("55"); int total = 2; // While generated numbers...
// Copyright (c) 2014-2017 The Predator coin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "privatesend-client.h" #include "coincontrol.h" #include "consensus/validation.h" #include "core_io.h" #include...
// Copyright (c) The Bitcoin Core developers // Copyright (c) 2017 The Raven Core developers // Copyright (c) 2018 The Rito Core developers // Copyright (c) 2020 The Ukcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-lice...
.text main: li $a0, 12 jal factorial move $a0, $v0 jal print_int li $v0, 10 syscall factorial: addiu $sp, $sp, -8 sw $ra, 0($sp) sw $s0, 4($sp) slti $t0, $a0, 2 beq $t0, $zero, recurs return1: li $v0, 1 j end_funct recurs: move $s0, $a0 addiu $a0, $a0, -1 jal factorial li $...
_echo: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 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 ...
; A001338: -1 + Sum (k-1)! C(n,k), k = 1..n for n > 0, a(0) = 1. ; 1,0,2,7,23,88,414,2371,16071,125672,1112082,10976183,119481295,1421542640,18348340126,255323504931,3809950977007,60683990530224,1027542662934914,18430998766219335,349096664728623335,6962409983976703336,145841989688186383358,3201192743180799343843,734742...
; char __CALEE__ *strncat_callee(char *dst, char *src, uint n) ; copy src to dst but no more than n chars, add '\0' ; 04.2001 dom, 12.2006 aralbrec XLIB strncat_callee XDEF ASMDISP_STRNCAT_CALLEE LIB rcmx_cpir .strncat_callee pop hl pop bc pop de ex (sp),hl ; enter : de = char *src ; ...
; A231600: Output of a finite state automaton generating the period doubling sequence, when fed with binary representation of n, read from right to left. ; 0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,...
; A034131: Decimal part of cube root of a(n) starts with 5: first term of runs. ; 4,16,43,92,167,275,422,615,858,1158,1521,1954,2461,3049,3724,4493,5360,6332,7415,8616,9939,11391,12978,14707,16582,18610,20797,23150,25673,28373,31256,34329,37596,41064,44739,48628,52735,57067,61630 mul $0,2 add $0,3 pow $0,3 div $0,8 ad...
; Hook function parsing in zCParser::DeclareFunc %include "inc/macros.inc" %if GOTHIC_BASE_VERSION == 1 %include "inc/symbols_g1.inc" %elif GOTHIC_BASE_VERSION == 2 %include "inc/symbols_g2.inc" %endif %ifidn __OUTPUT_FORMAT__, bin org g1g2(0x6F494E,0x79E1AE) %endif bits 32 section .text alig...
; --------------------------------------------------------------------------- ; Sprite mappings - lava geyser / lava that falls from the ceiling (MZ) ; --------------------------------------------------------------------------- dc.w byte_F272-Map_obj4C, byte_F27D-Map_obj4C dc.w byte_F288-Map_obj4C, byte_F29D-Ma...
; --------------------------------------------------------------------------- ; Sprite mappings - spiked ball on a chain (LZ) ; --------------------------------------------------------------------------- dc.w byte_10964-Map_obj57a dc.w byte_1096A-Map_obj57a dc.w byte_10970-Map_obj57a byte_10964: dc.b 1 d...