text
stringlengths
1
1.05M
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r8 push %rbp push %rdx lea addresses_WT_ht+0xffc0, %r15 nop nop nop and $5962, %rbp mov $0x6162636465666768, %r11 movq %r11, %xmm7 vmovups %ymm7, (%r15) and $24621, %r11 lea addresses_WC_ht+0x153e0, %rdx nop nop nop nop sub %r8, %r8 movb (%rdx), %r1...
;----------------------------------------------------------- ; Filename: mouse_p1.asm ; Long name: Mouse routines for app page 1 ; Author: Kerm Martian aka Christopher Mitchell ; Last Update: Unknown ; ; Tab functions, mouse hook for GUI, InfoPop and MemoryPop-related ; code, and similar. ; ;Please consult license...
; A163196: a(n) = L(n)^2 * F(n+1)^2 * L(n-1) * F(n+2), where F(n) and L(n) are the Fibonacci and Lucas numbers, respectively. ; Submitted by Christian Krause ; -4,4,108,2160,39200,704704,12648636,226979172,4072998380,73087049200,1311494037696,23533806023424,422297015415548,7577812474157380,135978327526488300,2440032083...
; A169496: Number of reduced words of length n in Coxeter group on 3 generators S_i with relations (S_i)^2 = (S_i S_j)^34 = I. ; 1,3,6,12,24,48,96,192,384,768,1536,3072,6144,12288,24576,49152,98304,196608,393216,786432,1572864,3145728,6291456,12582912,25165824,50331648,100663296,201326592,402653184,805306368,1610612736...
; A052784: E.g.f.: x^3*(exp(x)-1)^3. ; Submitted by Christian Krause ; 0,0,0,0,0,0,720,7560,50400,272160,1300320,5738040,23958000,96061680,373477104,1417295880,5274360000,19313985600,69770966976,249130574424,880629138000 mov $2,$0 trn $0,1 seq $0,52777 ; E.g.f.: x^2*(exp(x)-1)^3. mul $0,$2
; A319697: Sum of even squarefree divisors of n. ; 0,2,0,2,0,8,0,2,0,12,0,8,0,16,0,2,0,8,0,12,0,24,0,8,0,28,0,16,0,48,0,2,0,36,0,8,0,40,0,12,0,64,0,24,0,48,0,8,0,12,0,28,0,8,0,16,0,60,0,48,0,64,0,2,0,96,0,36,0,96,0,8,0,76,0,40,0,112,0,12,0,84,0,64,0,88,0,24,0,48,0,48,0,96,0,8,0,16,0,12 mov $3,2 mov $8,$0 lpb $3 mov ...
.cpu "65816" ; Copyright 2020 Piotr Meyer <aniou@smutek.pl> ; rights for include files belongs to respective authors, see ; https://github.com/Trinity-11/Kernel_FMX for licence terms ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted, provided th...
; A028100: Expansion of 1/((1-3x)(1-8x)(1-9x)(1-11x)). ; Submitted by Jon Maiga ; 1,31,618,10094,147203,1997037,25786636,321380188,3901566405,46429426043,544051398254,6298258575882,72214033934407,821632688021449,9290501272470672,104524684322022776,1171184420402768009 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 s...
db "CONTINENT@" ; species name db "It is said to have" next "expanded the lands" next "by evaporating" page "water with raging" next "heat. It battled" next "with KYOGRE.@"
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2017-2019 The PIVX developers // Copyright (c) 2022 The CRYPTOSHARES Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mi...
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
TITLE PRACTICE PROBLEM 8 .MODEL SMALL .DATA STR1 DB 'Enter 3 single digit numbers: $' STR2 DB 'Result = $' .CODE MAIN PROC MOV DX, @DATA MOV DS, DX LEA DX, STR1 ;1st string MOV AH, 9 INT 21h ...
// Copyright 2011 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. #include "src/parsing/preparser.h" #include <cmath> #include "src/base/logging.h" #include "src/common/globals.h" #include "src/logging/runtime-call-s...
#include "Customs/CatchAllScene.h" #include <Customs/LifeBarScript.h> CatchAllScene::CatchAllScene() {} void CatchAllScene::OnActivation() { CreatePlayers(); CreateMessenger(); } void CatchAllScene::CreatePlayers() { for (unsigned int i = 0; i < 3; i++) { std::string playerName = "Player" + std::to_string(...
// Copyright 2020 Google LLC #include "firestore/src/jni/jni.h" #include <pthread.h> #include "app/src/assert.h" namespace firebase { namespace firestore { namespace jni { namespace { pthread_key_t jni_env_key; JavaVM* g_jvm = nullptr; /** * Reinterprets `JNIEnv**` out parameters to `void**` on platforms where ...
org 100h include 'emu8086.inc' mov cx, 4 mov bx, 0 mov dx, 0 jmp l1 l1: mov ax, [array1+bx] add ax, [array2+bx] add ax, [array3+bx] dec cx jcxz l2 print "Result of this Column : " call print_num printn '' add bx,2 jmp l1 l2: printn 'END' ret array1 dw 1,2,3 array2 dw 1,2,3 array3 dw 1,2,3 DEFINE_PRINT_NUM DEFIN...
* Test for break  1985 Tony Tebby QJUMP * section nd * xdef nd_break test for break * include dev8_dd_qlnd_keys * * Test for break * * IPC commands to read rows of the keyboard * dc.w $02 position of CTRL ipc_rr7 dc.b 9,1,0,0,0,0,7,2 read CTRL key row dc.w $40 position of SPACE ipc_rr1 dc.b 9,1,0,0,0,0,...
#include "extensions/transport_sockets/alts/tsi_socket.h" #include "common/common/assert.h" #include "common/common/cleanup.h" #include "common/common/empty_string.h" #include "common/common/enum_to_int.h" namespace Envoy { namespace Extensions { namespace TransportSockets { namespace Alts { TsiSocket::TsiSocket(Han...
DATA SEGMENT STR1 DB "hello$" STR2 DB "hello$" NEWLINE DB 10,13,"$" MSG1 DB "BOTH STRING ARE SAME$" MSG2 DB "BOTH STRING ARE DIFFERENT$" DATA ENDS CODE SEGMENT ASSUME DS:DATA,CS:CODE START: MOV AX,DATA MOV DS,AX LEA SI,STR1 LEA DI,STR2 STRING_COMPARISION : MOV BX,00 ...
; A172511: a(n) = a(n-1) * (11*a(n-1) - a(n-2)) / (a(n-1) + 4*a(n-2)), with a(0) = a(1) = 1. ; 1,1,2,7,35,210,1365,9165,62322,425867,2915551,19974626,136884937,938162617,6430103330,44072167855,302074043195,2070443441970,14191023001437,97266699113157,666675822475026,4569463931720051,31319571368405047,214667534780126402,...
; Assembly file for seg7DigitUpdate() function ; Lab 3, ECE 266 ; Created by Zhao Zhang for ECE 266, spring 2021 ; The 7-segment coding table .data seg7Coding .byte 00111111b ; digit 0 .byte 00000110b ; digit 1 .byte 01011011b ; digit 2 ...
#include <iostream> #include <algorithm> using namespace std; const int MAXN = 105; const int INF = 2147483647; int i, j, n; long long ans = 0; int edge[MAXN][MAXN], key[MAXN], p[MAXN], vis[MAXN] = {0}, f[MAXN], l[MAXN], m = 0; int main() { cin >> n; for(i = 1; i <= n; i++)for(j = 1; j ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x11bb7, %rbp nop nop nop nop add %rax, %rax mov $0x6162636465666768, %r13 movq %r13, (%rbp) nop nop nop sub $50490, %r10 lea addresses_WC_ht+0x1649e, %rdx nop nop n...
//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2022 Laurent Gomila (laurent@sfml-dev.org) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages a...
; A020540: a(n) = 8^(n+1) - 2^(n+2). ; 4,56,496,4064,32704,262016,2096896,16776704,134216704,1073739776,8589930496,68719468544,549755797504,4398046478336,35184372023296,281474976579584,2251799813423104,18014398508957696,144115188074807296 seq $0,147590 ; Numbers whose binary representation is the concatenation of 2n-1...
// Copyright (C) 2006 The Trustees of Indiana University. // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Authors: Nick Edmonds // Andrew Lumsdaine // A test of the...
segment .text global _start section .data xx db 'Hello world', 0xa len equ $ - xx section .text _start: mov rax, 0 mov rcx, 0 mov rbx, 0 mov rsi, 0 mov rdx, 0 mov rax, 1 mov edx, len mov rsi, xx mov rdi, 1 syscall mov rax, 60 xor rdi, rdi syscall
; * ; * General Z80 debugging functions ; * ; * Stefano 3/7/2009 ; * ; * extern int __LIB__ z80type(void); ; * ; * 0 - Z80 ; * 1 - Z180 / HD6140 ; * 2 - Z280 ; * 3 - Z380 ; * 4 - Z800 / R800 (i.e. MSX TurboR in R800 mode.) ; * 5 - Rabbit Control Module ; * *** 6 - ? GameBoy ? ; * *** 7 - ? S1MP3 ? ; * *** 8 - ? EZ80 ...
<% import collections import pwnlib.abi import pwnlib.constants import pwnlib.shellcraft import six %> <%docstring>mpx(vararg_0, vararg_1, vararg_2, vararg_3, vararg_4) -> str Invokes the syscall mpx. See 'man 2 mpx' for more information. Arguments: vararg(int): vararg Returns: long </%docstring> <%page args...
; A139487: Numbers k such that 8k + 7 is prime. ; Submitted by Jon Maiga ; 0,2,3,5,8,9,12,15,18,20,23,24,27,29,32,33,38,44,45,47,53,54,57,59,60,62,74,75,78,80,89,90,92,93,102,104,107,110,113,114,120,122,123,128,129,132,135,137,143,152,153,159,162,164,165,170,174,177,179,180,183,185,188,192,194,195,197,200,207,219,222,2...
.data inputx: .asciiz "\nEnter input x: " inputy: .asciiz "\nEnter input y: " printgcd: .asciiz "\nGCD = " repeat: .asciiz "\nEnter 0 to run again: " .text main: #gets x value li $v0, 4 #loads syscall print_string la $a0, inputx #gets string syscall #prints string li $v0, 5 #loads syscall read int syscall...
;; El Torito Boot Sector for MEG-OS ;; License: MIT (c) 2009, 2021 MEG-OS project %define IPL_SIGN 0x1eaf %define ARCH_NEC98 0 %define ARCH_PC 1 %define ARCH_FMT 2 %define NOBOOTDIR [bits 16] [org 0x0800] ;; setup register cld xor ax, ax mov ds, ax mov es, ax ;; move 7C00 to 080...
/********************************************************************** * Copyright (c) 2008-2013, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publishe...
; A221465: Number of 0..n arrays of length 6 with each element unequal to at least one neighbor, starting with 0. ; 5,88,513,1856,5125,11880,24353,45568,79461,131000,206305,312768,459173,655816,914625,1249280,1675333,2210328,2873921,3688000,4676805,5867048,7288033,8971776,10953125,13269880,15962913,19076288,22657381,26...
BITS 32 %define round(n, r) (((n + (r - 1)) / r) * r) ; Base addresses. BASE equ 0x400000 PAGE equ 0x1000 BASE_R_SEG equ BASE BASE_RW_SEG equ BASE_R_SEG + round(r_seg.size, PAGE) BASE_X_SEG equ BASE_RW_SEG + round(rw_seg.size, PAGE) ; ___ [ Read-only segment ] ____________________________________...
;================================================= ; Name: Moya, Branden ; Username:bmoya001@ucr.edu ; ; Lab: assn 2 ; Lab section: 021 ; TA: Bryan Marsh ; ; I hereby certify that I have not received ; assistance on this assignment, or used code, ; from ANY outside source other than the ; instruction team. ;========...
;; ;; Copyright (c) 2012-2018, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and...
; A000578: The cubes: a(n) = n^3. ; 0,1,8,27,64,125,216,343,512,729,1000,1331,1728,2197,2744,3375,4096,4913,5832,6859,8000,9261,10648,12167,13824,15625,17576,19683,21952,24389,27000,29791,32768,35937,39304,42875,46656,50653,54872,59319,64000,68921,74088,79507,85184,91125,97336,103823,110592,117649,125000,132651,140608,...
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
; A130543: Multiplicative persistence of n!. ; 0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 mov $2,4 trn $2,$0 pow $1,$2
// Copyright 2010-2018, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
#include <torch/csrc/jit/python/module_python.h> #include <torch/csrc/jit/python/pybind_utils.h> #include <torch/csrc/jit/python/python_dict.h> #include <torch/csrc/jit/python/python_ivalue.h> #include <torch/csrc/jit/python/python_list.h> #include <c10/util/irange.h> namespace torch { namespace jit { // This is a h...
;======================================================================= ; Copyright Baptiste Wicht 2013-2016. ; 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) ;======================================================...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r13 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi // Load lea addresses_A+0x1149b, %r13 nop nop sub %r9, %r9 mov (%r13), %rdx inc %r13 // Store lea addresses_WC+0x7a9b, %rcx nop dec %rdi mov $0x515253545556575...
; A169398: Number of reduced words of length n in Coxeter group on 49 generators S_i with relations (S_i)^2 = (S_i S_j)^31 = I. ; 1,49,2352,112896,5419008,260112384,12485394432,599298932736,28766348771328,1380784741023744,66277667569139712,3181328043318706176,152703746079297896448,7329779811806299029504,351829430966702...
SilphCo2Object: db $2e ; border block db $7 ; warps db $0, $18, $2, SILPH_CO_1F db $0, $1a, $0, SILPH_CO_3F db $0, $14, $0, SILPH_CO_ELEVATOR db $3, $3, $6, SILPH_CO_3F db $3, $d, $4, SILPH_CO_8F db $f, $1b, $5, SILPH_CO_8F db $f, $9, $4, SILPH_CO_6F db $0 ; signs db $5 ; objects object SPRITE_LASS, $a, ...
/*-----------------------------------------------------------------------------+ Copyright (c) 2008-2012: Joachim Faulhaber +------------------------------------------------------------------------------+ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENCE.txt or copy at ...
; A114619: 2*A079291 (twice squares of Pell numbers). ; 0,2,8,50,288,1682,9800,57122,332928,1940450,11309768,65918162,384199200,2239277042,13051463048,76069501250,443365544448,2584123765442,15061377048200,87784138523762,511643454094368 mov $2,5 mov $3,55 lpb $0,1 sub $0,1 add $2,$1 mov $4,$3 div $4,$3 mov $3...
; size_t p_forward_list_alt_size(p_forward_list_alt_t *list) SECTION code_adt_p_forward_list_alt PUBLIC _p_forward_list_alt_size EXTERN _p_forward_list_size defc _p_forward_list_alt_size = _p_forward_list_size
#include "interpreter.hpp" #include "ast.hpp" #include "lexer.hpp" #include "utf8.hpp" #include "visualise.hpp" #include <exception> #include <iostream> #include <llvm/Support/raw_ostream.h> #include <rang.hpp> extern Ptr<llvm::LLVMContext> LContext; extern Ptr<llvm::IRBuilder<>> LBuilder; extern Ptr<llvm::Module> LM...
; A028431: Clog sequence in base 10. Right to left concatenation of n, int(log_10(n)), int(log_10(int(log_10(n)))),... in base10. ; 1,2,3,4,5,6,7,8,9,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,15...
// // Copyright (C) 2005-2009 Andras Varga, // Christian Dankbar, // Irene Ruengeler, // Michael Tuexen // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as publish...
; [wd0b5] = pokemon ID ; hl = dest addr PrintMonType: call GetPredefRegisters push hl call GetMonHeader pop hl push hl ld a, [wMonHType1] call PrintType ld a, [wMonHType1] ld b, a ld a, [wMonHType2] cp b pop hl jr z, EraseType2Text ld bc, SCREEN_WIDTH * 2 add hl, bc ; a = type ; hl = dest addr PrintType...
; A317279: a(n) = Sum_{k=0..n} (-1)^(n-k)*binomial(n-1,k-1)*n^k*n!/k!. ; Submitted by Christian Krause ; 1,1,0,-9,-32,225,3456,2695,-433152,-4495743,47872000,1768142871,6703534080,-597265448351,-11959736205312,126058380654375,9454322092343296,84694164336894465,-5776865438988238848,-192541299662555831753,151190506756177...
; A171714: a(n) = ceiling((n+1)^4/2). ; 1,8,41,128,313,648,1201,2048,3281,5000,7321,10368,14281,19208,25313,32768,41761,52488,65161,80000,97241,117128,139921,165888,195313,228488,265721,307328,353641,405000,461761,524288,592961,668168,750313,839808,937081,1042568,1156721,1280000,1412881,1555848,1709401,1874048,2050313,...
SECTION code_clib PUBLIC scroll_bkg PUBLIC _scroll_bkg EXTERN l_tms9918_disable_interrupts EXTERN l_tms9918_enable_interrupts_jp include "sms.hdr" ;============================================================== ; void scroll_bkg(int x, int y) ;======================...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r14 push %r15 push %rbx push %rdx // Load mov $0xc21, %r10 dec %rdx movb (%r10), %r15b nop xor $19360, %r10 // Store lea addresses_WC+0x5293, %r14 sub %r10, %r10 mov $0x5152535455565758, %r12...
TITLE 'CALL IDCAMS' *********************************************************************** * * * PROGRAM CALLIDC * * * * ...
; A107453: 1 followed by repetitions of the period-4 sequence 1,1,1,2. ; 1,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2,1,1,1,2 trn $0,2 gcd $0,4 mod $0,3 mov $1,$0...
; A209646: Number of n X 4 0..1 arrays avoiding 0 0 1 and 1 0 0 horizontally and 0 0 1 and 1 0 1 vertically. ; 9,81,270,630,1215,2079,3276,4860,6885,9405,12474,16146,20475,25515,31320,37944,45441,53865,63270,73710,85239,97911,111780,126900,143325,161109,180306,200970,223155,246915,272304,299376,328185,358785,391230,425...
; A009946: Coordination sequence for NiAs(2), Ni position. ; 1,6,20,42,74,114,164,222,290,366,452,546,650,762,884,1014,1154,1302,1460,1626,1802,1986,2180,2382,2594,2814,3044,3282,3530,3786,4052,4326,4610,4902,5204,5514,5834,6162,6500,6846,7202,7566,7940,8322,8714,9114,9524,9942,10370,10806,11252,11706,12170,12642,13124...
//Luis Pozas //Pablo Alvarez #include <iostream> using namespace std; int main() { int num1, n1, n2, n3; //cout << "Dame un numero" << endl; cin >> num1; for (int i = 0; i < num1; ++i) { //cout << "Dame dos numeros" << endl; cin >> n1; cin >> n2; n3 = (n2 - n1 + 1)*(n1 + n2) / 2; cout << n3 << en...
BITS 64 global _start section .text _start: jmp _push_filename _readfile: ; syscall open file pop rdi ; pop path value ; NULL byte fix xor byte [rdi + 11], 0x41 xor rax, rax add al, 2 xor rsi, rsi ; set O_RDONLY flag syscall ; syscall read file sub sp, 0xfff lea rsi, [rsp] mov rdi, rax xor rdx, rdx mov dx, ...
// Copyright 2009-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "../common/tutorial/tutorial_device.h" #include <GLFW/glfw3.h> /* include ImGUI */ #include "../common/imgui/imgui.h" #include <functional> #include <queue> namespace embree { struct Point; /* scene data */ RTCScene g_scene ...
; A234044: Period 7: repeat [2, -2, 1, 0, 0, 1, -2]. ; 2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2,1,0,0,1,-2,2,-2 pow $0,4 mov $3,8 mul $3,$0 mov $0,2 mod $3,14 mov ...
; A083175: Row sums in A083175. ; 2,12,30,84,165,312,476,760,1035,1740,2046,3108,3731,4816,5640,7632,9027,10980,12730,15620,16863,20856,22908,27768,31525,36764,38934,44940,47415,54240,62992,71264,76857,85068,93870,103284,110371,123880,130260 mov $3,$0 seq $0,83176 ; Arithmetic means of rows of A083173. mov $2,1 add $2...
// Copyright (C) 2015,2017 Internet Systems Consortium, Inc. ("ISC") // // 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/. #include <dhcp/duid_factory.h> #include <dhcp...
@ SCREEN D = A @ pixel M = D @ i M = 1 // add pixels (FILL) @ KBD D = M @ CLEAR D; JEQ @ 24575 D = M @ CLEAR D; JLT @ i D = M @ pixel A = M + D M = -1 @ i M = M + 1 @ FILL 0; JMP // deletes pixels (CLEAR) @ KBD D = M @ FILL D; JGT @ i D = M @ FILL D; JLT @ pixel A = M + D M = 0...
; void *calloc_callee(size_t nmemb, size_t size) INCLUDE "clib_cfg.asm" SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _calloc_callee _calloc_callee: pop af pop hl pop bc push af INCLUDE "alloc/malloc/z80/asm_cal...
; A018215: a(n) = n*4^n. ; 0,4,32,192,1024,5120,24576,114688,524288,2359296,10485760,46137344,201326592,872415232,3758096384,16106127360,68719476736,292057776128,1236950581248,5222680231936,21990232555520,92358976733184,387028092977152,1618481116086272,6755399441055744,28147497671065600,117093590311632896,4863887597560...
;********************************* ;* getact: get active buffer # * ;* vars: buf0,buf1,lindx * ;* regs: out: .a= act buffer # * ;* .x= lindx * ;* flags: .n=1: no act-buf * ;********************************* getact ldx lindx lda buf0,x bpl ga1 lda...
KERNEL_STACK_TOP equ 0x80002000 [section .text] [bits 32] extern entry global _start _start: mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax mov esp, KERNEL_STACK_TOP jmp entry
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: GeoCalc FILE: spreadsheetEditBar.asm AUTHOR: Gene Anderson, Feb 27, 1991 ROUTINES: Name Description ---- ----------- MSG_SPREADSHEET_GOTO_...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "assert.h" #include "chainparams.h" #include "main.h" #include "util.h" #inc...
==================== Asm code ==================== .section .text .align 8 .globl proc .type proc, @function proc: _c1: movl $1234,%ebx jmp *(%rbp) .size proc, .-proc
#ifdef INFINIBAND #include <iomanip> #include <stdexcept> #include "ib_transport.h" #include "util/huge_alloc.h" namespace erpc { constexpr size_t IBTransport::kMaxDataPerPkt; // Initialize the protection domain, queue pair, and memory registration and // deregistration functions. RECVs will be initialized later w...
# Caclulate the product of integers x1, x2. Store result at x3. # This is done iteratively, since there is no MUL instruction in the Integer risc-v specification. # In this program numbers are initialized to 5, 7. .text main: addi x1, x0, 5 addi x2, x0, 7 add x3, x0, x0 add x4, x0, x1 loop: beq x4, x0, halt a...
; A068211: Largest prime factor of Euler totient function phi(n). ; 2,2,2,2,3,2,3,2,5,2,3,3,2,2,2,3,3,2,3,5,11,2,5,3,3,3,7,2,5,2,5,2,3,3,3,3,3,2,5,3,7,5,3,11,23,2,7,5,2,3,13,3,5,3,3,7,29,2,5,5,3,2,3,5,11,2,11,3,7,3,3,3,5,3,5,3,13,2,3,5,41,3,2,7,7,5,11,3,3,11,5,23,3,2,3,7,5,5,5,2 add $0,3 dif $0,2 sub $0,1 seq $0,10 ; ...
#include <iostream> #include "../VarSet.hpp" #include "../GenKillTransformer_T.hpp" #include "wali/Common.hpp" #include "wali/wpds/WPDS.hpp" #include "wali/wpds/fwpds/FWPDS.hpp" #include "wali/wfa/WFA.hpp" #include "wali/wfa/Trans.hpp" /* Example program to be analyzed int a, b, c, d; void main() { 1: a = 5; 2: b ...
; Got this example from Nerdy Nights: ; http://www.nintendoage.com/forum/messageview.cfm?catid=22&threadid=7155 ; this is the scrolling example ; http://www.nintendoage.com/forum/messageview.cfm?catid=22&threadid=36958 .inesprg 1 ; 1x 16KB PRG code .ineschr 1 ; 1x 8KB CHR data .inesmap 0 ; mapper...
;Author: Bill Wang ;Date: 11/20/2016/ ;Module file INCLUDE 'mc9s12dp256.inc' XDEF DELAY XDEF DISPLAY XREF DATWRT4 XREF COMWRT4 R1 EQU $1001 R2 EQU $1002 R3 EQU $1003 R4 EQU $1004 NAME DC.B " HU WANG BILL ",0 DELAY: ...
; A140689: a(n) = n*(3*n + 20). ; 0,23,52,87,128,175,228,287,352,423,500,583,672,767,868,975,1088,1207,1332,1463,1600,1743,1892,2047,2208,2375,2548,2727,2912,3103,3300,3503,3712,3927,4148,4375,4608,4847,5092,5343,5600,5863,6132,6407,6688,6975,7268,7567,7872,8183,8500,8823,9152,9487,9828,10175,10528,10887,11252,11623,12...
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r9 push %rax push %rbp push %rbx push %rcx lea addresses_normal_ht+0xbc47, %r15 clflush (%r15) nop nop nop nop nop dec %r9 movw $0x6162, (%r15) nop nop nop nop nop sub $17030, %r14 lea addresses_normal_ht+0x13187, %rbp nop nop dec %rbx mov (%rbp), %...
#include "trainer.h" #include <chrono> #include <iostream> Trainer::Trainer(ConfigHandler * configHandler, DatabaseHandler * dbHandler) : Runnable(configHandler, dbHandler) { } void Trainer::run() { // std::chrono::steady_clock::time_point begin = std::chrono::steady_clock::now(); logger->info("Training SVM...
; A252233: Characteristic function for the integers that are the product of an odd number of primes each with multiplicity one. ; 0,1,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,1,1,0,0,1,1,0,1,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,...
loop: nop jal loop
/* * All Video Processing kernels * Copyright © <2010>, Intel Corporation. * * This program is licensed under the terms and conditions of the * Eclipse Public License (EPL), version 1.0. The full text of the EPL is at * http://www.opensource.org/licenses/eclipse-1.0.php. * */ // Module name: RGB16x8_Save_Y41...
/*============================================================================= Program: Visualization Toolkit Module: vtkGeoInteractorStyle.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This...
#ifndef Input_hpp #define Input_hpp #include <SFML/Graphics.hpp> #include "Bitmask.hpp" class Input { public: enum class Key { None = 0, Left = 1, Right = 2, Up = 3, Down = 4, Esc = 5, LBracket = 6, RBracket = 7 }; void Update(); ...
db 0 ; species ID placeholder db 95, 85, 85, 35, 65, 65 ; hp atk def spd sat sdf db WATER, GROUND ; type db 90 ; catch rate db 137 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F0 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/quagsire/f...
; A024116: a(n) = 10^n - n^2. ; 1,9,96,991,9984,99975,999964,9999951,99999936,999999919,9999999900,99999999879,999999999856,9999999999831,99999999999804,999999999999775,9999999999999744,99999999999999711,999999999999999676,9999999999999999639,99999999999999999600,999999999999999999559,9999999999999999999516,99999999999...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
.data A: .byte 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 5 0 0 0 6 0 0 0 B: .byte 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 .text .globl main main: la $a0, A li $a1, 6 la $a2, B li $a3, 12 jal dotproduct move $a0, $v0 li $v0, 1 syscall li $v0, 10 sysc...
.section __TEXT,__text,regular,pure_instructions .align 4, 0x90 .globl __Z4BLAHv __Z4BLAHv: pushl %ebp movl %esp, %ebp call L0$pb L0$pb: popl %eax movl _a-L0$pb(%eax), %eax popl %ebp ret # ---------------------- .align 4, 0x90 .globl _main _main: pushl %ebp Ltm...
;============================================================== ; Scorpion Illuminati Controller Test ;============================================================== ; SEGA Genesis Scorpion Illuminati 2015 ;============================================================== __start: ; ********************...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r14 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1a8c9, %rdx nop nop sub $56023, %rsi mov $0x6162636465666768, %r14 movq %r14, (%rdx) add %r13, %r13 lea addresses_UC_ht+0x155d5, %r12 clflush (%r12) xor $52467, %rsi mov (%r...
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
; A186228: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f and g are the triangular numbers and heptagonal numbers. Complement of A186227. ; 2,5,8,11,15,18,21,24,27,31,34,37,40,44,47,50,53,57,60,63,66,70,73,76,79,82,86,89,92,95,99,102,105,108,112,115,118,121,125,128,131,...
// gt @SP AM=M-1 D=M @SP A=M-1 A=M D=D-A @TRUE%%ID%% D;JLE (FALSE%%ID%%) @SP A=M-1 M=0 @EXIT%%ID%% 0;JMP (TRUE%%ID%%) @SP A=M-1 M=-1 (EXIT%%ID%%)
incsrc ./magicmeter.asm