text
stringlengths
1
1.05M
#include "scene1.h" #include "SDL2/SDL_ttf.h" #include "stdio.h" #include "game.h" #include "color.h" #include "event_handler.h" #include "font.h" #include "stel.h" #include <string> #include <iostream> #include "c_api.h" #include "tools.h" namespace interface { Scene1::Scene1(int mapWidthNum, int mapHeightNum, SDL_R...
%include 'macro.asm' SECTION .data hello: db 'Hello world!', 10 len: equ $-hello SECTION .text GLOBAL _start _start: print_string hello, len exit
; --------------------------------------------------------------------------------------------------- ; ; This is a test assembly code for sophia8 8-bit virtual computer with 16-bit addressing ; ; --------------------------------------------------------------------------------------------------- #include "kernel.asm"...
; A133271: Indices of 7-gonal numbers which are also centered 7-gonal numbers. ; Submitted by Jamie Morken(s1) ; 1,8,92,1093,13021,155156,1848848,22031017,262523353,3128249216,37276467236,444189357613,5292995824117,63071760531788,751568130557336,8955745806156241,106717381543317553,1271652832713654392 lpb $0 sub $0,1...
; A316777: a(n) = Sum_{k=1..n} (k!)^5. ; Submitted by Jamie Morken ; 1,33,7809,7970433,24891170433,193516654370433,3252209580756770433,106565314598088199970433,6292489787293574101716770433,629244614687684894925781716770433,101340090272908294280184341461716770433,25216602106682627624613336066827221716770433,936273543573...
class Node { public: int val; vector<Node*> children; Node() {} Node(int _val) { val = _val; } Node(int _val, vector<Node*> _children) { val = _val; children = _children; } }; class Solution { public: vector<int> ans; void dfs(Node* node) { int deg = ...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
// Copyright 2009 the V8 project authors. 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 ...
; A053599: Number of nonempty subsequences {s(k)} of 1..n such that the difference sequence is palindromic. ; 1,3,7,13,23,37,59,89,135,197,291,417,607,861,1243,1753,2519,3541,5075,7121,10191,14285,20427,28617,40903,57285,81859,114625,163775,229309,327611,458681,655287,917429,1310643,1834929,2621359,3669933,5242795,7339...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 noti...
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * licenses this file to you under the Apache License, Version 2.0 (the * "License"); you may ...
[bits 32] VIDEO_MEMORY equ 0xb8000 WHITE_ON_BLACK equ 0x0f ; data in ebx register print_string_pm: pusha mov edx, VIDEO_MEMORY print_string_pm_loop: mov al, [ebx] mov ah, WHITE_ON_BLACK cmp al, 0 je done mov [edx], ax add edx, 2 add ebx, 1 jmp print_string_pm_loop done: popa ret
.data message: .asciiz "Test" # asciiz is a basic unit to store string variables. .text li $v0, 4 # service code 4 to print out .asciiz la $a0, message # load .asciiz variable by using load address (la) to $a0 # $a registers are argument registers. syscall # to execute the service
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : fpcompare.asm ; Purpose : Compare 2 FP Numbers ; Date : 15th August 2019 ; Author : Paul Robson (paul@robsons.org...
; A001520: a(n) = (6*n+1)*(6*n+3)*(6*n+5). ; 15,693,3315,9177,19575,35805,59163,90945,132447,184965,249795,328233,421575,531117,658155,803985,969903,1157205,1367187,1601145,1860375,2146173,2459835,2802657,3175935,3580965,4019043,4491465,4999527,5544525,6127755,6750513,7414095,8119797,8868915,9662745,10502583,11389725,1...
intomaingame: jsr intotitle intogameplay: jsr waitframe jsr turnninoff jsr clearnt jsr blackpal lda #1 jsr uplnt nextlevel: lda #$10 sta score sta score+1 sta score+2 sta score+3 sta score+4 sta score+5 sta score+6 sta score+7 lda #3 sta life lda #0 sta p1butt...
; A005719: Quadrinomial coefficients. ; 2,12,40,101,216,413,728,1206,1902,2882,4224,6019,8372,11403,15248,20060,26010,33288,42104,52689,65296,80201,97704,118130,141830,169182,200592,236495,277356,323671,375968,434808,500786,574532,656712,748029,849224,961077 add $0,2 sub $2,$0 mul $0,$2 bin $2,5 sub $0,$2
SECTION code_l_sdcc PUBLIC __muluschar EXTERN __mulsuchar_0 __muluschar: ; 8-bit mixed multiply ; ; enter : stack = multiplicand (byte), multiplicand (signed byte), ret ; ; exit : hl = 16-bit product ld hl,3 add hl,sp ld e,(hl) dec hl ld l,(hl) ex de,hl jp __mulsuch...
; A129393: Row sums of A129392. ; 1,5,-15,29,-23,-43,225,-499,601,197,-2991,8189,-12599,5045,35265,-125971,236857,-206683,-327375,1808861,-4117079,5115797,1120929,-23825971,66994201,-105678715,49059345,275536829,-1022847863,1966396277,-1807797375,-2442192979,14557768441 mul $0,2 mov $1,1 mov $2,2 lpb $0 sub $0,1 m...
; A313682: Coordination sequence Gal.5.55.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,10,15,19,23,27,31,36,41,46,51,56,61,65,69,73,77,82,87,92,97,102,107,111,115,119,123,128,133,138,143,148,153,157,161,165,169,174,179,184,1...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_normal_ht+0x7d23, %rax nop nop nop nop and %rcx, %rcx mov $0x6162636465666768, %r10 movq %r10, %xmm3 movups %xmm3, (%rax) nop and $21150, %r11 lea addresses_WT_ht+0x161eb, %r14 dec ...
; A158901: A051731 * (1, 1, 2, 3, 4, 5,....) ; Submitted by Jamie Morken(w2) ; 1,2,3,5,5,9,7,12,11,15,11,23,13,21,21,27,17,34,19,37,29,33,23,53,29,39,37,51,29,65,31,58,45,51,45,83,37,57,53,83,41,89,43,79,73,69,47,115,55,88,69,93,53,113,69,113,77,87,59,157,61,93,99,121,81,137,67,121,93,137 add $0,1 mov $2,$0 sub $0,1 l...
#include once <sposn.asm> #include once <error.asm> __IN_SCREEN: ; Returns NO carry if current coords (D, E) ; are OUT of the screen limits (MAXX, MAXY) PROC LOCAL __IN_SCREEN_ERR ld hl, MAXX ld a, e cp (hl) jr nc, __IN_SCREEN_ERR ; Do nothing and return if out of range ld a, d inc hl cp (hl) ;; jr nc, ...
blah .local equ 5 blah2 db blah.local .local nonlocal equ 6 je .local
; void *memccpy(void * restrict s1, const void * restrict s2, int c, size_t n) SECTION code_clib SECTION code_string PUBLIC memccpy EXTERN l0_memccpy_callee memccpy: pop af pop bc pop ix pop hl pop de push de push hl push ix push bc push af jp l0_memccpy_callee
// 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/http/http_proxy_client_socket_pool.h" #include "base/callback.h" #include "base/compiler_specific.h" #include "base/strings/string_util...
// Source : https://leetcode.com/problems/missing-number/ // Author : Venkata Anil Kumar /*************************************************************************************** * * Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the * one that is missing from the array. * * For e...
; A313569: Coordination sequence Gal.6.197.3 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,10,14,19,24,29,34,39,44,48,53,58,63,68,72,77,82,87,92,97,102,106,111,116,121,126,130,135,140,145,150,155,160,164,169,174,179,184,188,193...
; Substitute for the 8085 dsub = 'sub hl, bc' instruction ; CPU Min T Max T ; 8080 86 86 ; 8085 10 10 ; gbz80 80 80 ; r2ka 53 53 ; z180 77 77 ; z80 80 80 ; z80n 80 80 SECTION code_l_sccz80 PUBLIC __z80asm__sub_hl_bc __z80asm__sub_hl_bc: push de ld ...
;================================================================================ ; RNG Fixes ;-------------------------------------------------------------------------------- RigDigRNG: LDA $7FFE01 : CMP.l DiggingGameRNG : !BGE .forceHeart .normalItem JSL $0DBA71 ; GetRandomInt RTL .forceHeart LDA $7FFE00 : BNE ....
setrepeat 2 frame 4, 06 frame 0, 06 dorepeat 1 frame 5, 12 frame 0, 12 frame 6, 12 endanim
bootblockother.o: formato do arquivo elf32-i386 Desmontagem da seção .text: 00007000 <start>: # This code combines elements of bootasm.S and entry.S. .code16 .globl start start: cli 7000: fa cli # Zero data segment registers DS, ES, and SS. xorw %ax,%ax ...
// boost/system/windows_error.hpp ------------------------------------------// // Copyright Beman Dawes 2007 // 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) // See library home page at http://www.boost.org/...
--- src/utils/file_utils.cpp.orig 2020-05-19 20:42:49 UTC +++ src/utils/file_utils.cpp @@ -49,6 +49,7 @@ # include <fcntl.h> # include <errno.h> # include <poll.h> +# include <limits.h> // for PATH_MAX #endif // _WIN_ #include <algorithm>
; A033388: a(n) = floor(68/n). ; 68,34,22,17,13,11,9,8,7,6,6,5,5,4,4,4,4,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 add $0,1 mov $1,68 div $1,$0 mov $0,$1
; A233280: Permutation of nonnegative integers: a(n) = A003188(A054429(n)). ; Submitted by Simon Strandgaard ; 0,1,2,3,4,5,7,6,8,9,11,10,14,15,13,12,16,17,19,18,22,23,21,20,28,29,31,30,26,27,25,24,32,33,35,34,38,39,37,36,44,45,47,46,42,43,41,40,56,57,59,58,62,63,61,60,52,53,55,54,50,51,49,48,64,65,67,66,70,71,69,68,76,...
; L0912.asm monkey homeworld ; Generated 04.09.2001 by mlevel ; Modified 04.09.2001 by Abe Pralle INCLUDE "Source/Defs.inc" INCLUDE "Source/Levels.inc" INCLUDE "Source/Items.inc" CROUTON_INDEX EQU 95 ORANGE_INDEX EQU 98 VAR_SAWSIGN EQU 0 VAR_TALKED EQU 1 VAR_TALKEDTELEPORT EQU 2 ;-----------------...
; A177499: Period 4: repeat [1, 16, 4, 16]. ; 1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16,1,16,4,16 gcd $0,4 mov $1,4 div $1,$0 pow $1,2 mov $0,$1
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // =========================================================================== // File: TieredCompilation.CPP // // =...
%ifdef CONFIG { "RegData": { "RAX": "0x4042434444464648", "RBX": "0x4042434445464748", "RCX": "0x4142434445464748", "RDX": "0x4142434445464748", "RSI": "0x4042434445464748", "RDI": "0x4142434445464748" } } %endif mov r15, 0xe0000000 mov rax, 0x4142434445464748 mov [r15 + 8 * 0], rax mov [r...
; A324378: a(n) = A000265(1+A005187(n)). ; 1,1,1,5,1,9,11,3,1,17,19,5,23,3,13,27,1,33,35,9,39,5,21,43,47,3,25,51,27,55,57,29,1,65,67,17,71,9,37,75,79,5,41,83,43,87,89,45,95,3,49,99,51,103,105,53,55,111,113,57,117,59,15,121,1,129,131,33,135,17,69,139,143,9,73,147,75,151,153,77,159,5,81,163,83,167,169,85,87,175,177,89,18...
//----------------------------------------------------------------------------- // Copyright 2012 Masanori Morise // Author: mmorise [at] yamanashi.ac.jp (Masanori Morise) // Last update: 2018/01/21 // // This file represents the functions about FFT (Fast Fourier Transform) // implemented by Mr. Ooura, and wrapper func...
#include "solution.hpp" static auto x = []() { // turn off sync std::ios::sync_with_stdio(false); // untie in/out streams cin.tie(NULL); return 0; }(); void Solution::backtrack(vector<vector<int>>& rst, vector<int>& tmp, vector<int>& nums, int start) { rst.emplace_back(vector<int>(tmp)); for (int...
dnl SPARC v9 mpn_copyi -- Copy a limb vector, incrementing. dnl Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Publi...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
;************************* strspn64.asm ************************************ ; Author: Agner Fog ; Date created: 2011-07-19 ; Last modified: 2011-07-19 ; Description: ; Faster version of the standard strspn and strcspn functions: ; size_t A_strspn (const char * str, const char * set); ; size_t A_str...
// Copyright (c) 2010 Andrew Green. MIT License. http://www.zoolib.org #include "zoolib/QueryEngine/Walker_Rename.h" #include "zoolib/Util_STL_map.h" namespace ZooLib { namespace QueryEngine { using std::map; using std::set; using namespace Util_STL; // ============================================================...
#include "drape_frontend/colored_symbol_shape.hpp" #include "drape_frontend/visual_params.hpp" #include "drape/attribute_provider.hpp" #include "drape/batcher.hpp" #include "drape/glsl_func.hpp" #include "drape/glsl_types.hpp" #include "drape/glstate.hpp" #include "drape/overlay_handle.hpp" #include "drape/shader_def....
li a0, 1 nop nop nop nop nop mv a1, a0 li a0, 2 sw a1, 0(zero) nop nop nop nop nop ; mem / mem li a0, 1 li a1, 2 sw a0, 4(zero) nop nop nop nop nop lw a0, 4(zero) sw a1, 4(zero)
.global s_prepare_buffers s_prepare_buffers: push %r12 push %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0x29d8, %rsi lea addresses_D_ht+0x11c78, %rdi nop nop nop nop xor $47255, %r12 mov $121, %rcx rep movsw nop nop nop nop nop add $60052, %rax pop %rsi pop %rdi pop %rcx pop %rax pop %r12 ret .global s_f...
; A034932: Pascal's triangle read modulo 16. ; 1,1,1,1,2,1,1,3,3,1,1,4,6,4,1,1,5,10,10,5,1,1,6,15,4,15,6,1,1,7,5,3,3,5,7,1,1,8,12,8,6,8,12,8,1,1,9,4,4,14,14,4,4,9,1,1,10,13,8,2,12,2,8,13,10,1,1,11,7,5,10,14,14,10,5,7,11,1,1,12,2,12,15,8,12,8,15,12,2,12,1,1,13,14,14,11,7,4,4,7,11,14,14,13,1,1,14,11,12,9,2,11,8,11,2,9,12...
_mkdir: 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 ...
.word W7F1L ; Alternate level layout .word W7F1O ; Alternate object layout .byte LEVEL1_SIZE_08 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_02 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBANK_INDEX(2) | LEVEL4_INITACT_NOTHING .byte LEVEL5_...
; A180853: Trajectory of 4 under map n->A006368(n). ; 4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5,4,6,9,7,5 add $0,4 lpb $0 sub $0,1 mov $3,$0 sub $0,4 mov...
; A332243: Starhex honeycomb numbers: a(n) = 13 + 60*n + 60*n^2. ; 13,133,373,733,1213,1813,2533,3373,4333,5413,6613,7933,9373,10933,12613,14413,16333,18373,20533,22813,25213,27733,30373,33133,36013,39013,42133,45373,48733,52213,55813,59533,63373,67333,71413,75613,79933,84373 add $0,1 bin $0,2 mul $0,120 add $0,13
; A192480: a(n) = n + A000108(n-1) for n > 1; a(0)=0, a(1)=1. ; 0,1,3,5,9,19,48,139,437,1439,4872,16807,58798,208025,742914,2674455,9694861,35357687,129644808,477638719,1767263210,6564120441,24466267042,91482563663,343059613674,1289904147349,4861946401478,18367353072179,69533550916032,263747951750389,1002242216651398,3...
; A017224: a(n) = (9*n + 5)^4. ; 625,38416,279841,1048576,2825761,6250000,12117361,21381376,35153041,54700816,81450625,116985856,163047361,221533456,294499921,384160000,492884401,623201296,777796321,959512576,1171350625,1416468496,1698181681,2019963136,2385443281,2798410000,3262808641,3782742016,4362470401,5006411536,5...
START_FILE TEXT ALIGN(4) START_FUNC(opal_atomic_mb) sync blr END_FUNC(opal_atomic_mb) START_FUNC(opal_atomic_rmb) lwsync blr END_FUNC(opal_atomic_rmb) START_FUNC(opal_atomic_wmb) eieio blr END_FUNC(opal_atomic_wmb) START_FUNC(opal_atomic_cmpset_32) LSYM(1) lwarx r0, 0, r3 cmpw 0, r0, r4 ...
db 0 ; species ID placeholder db 50, 70, 50, 40, 50, 50 ; hp atk def spd sat sdf db WATER, WATER ; type db 45 ; catch rate db 62 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F12_5 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/mudkip/fr...
; A140592: a(n) = 2n if A010060(n-1) is 0, and a(n) = 2n+1 if A010060(n-1) is 1. ; 2,5,7,8,11,12,14,17,19,20,22,25,26,29,31,32,35,36,38,41,42,45,47,48,50,53,55,56,59,60,62,65,67,68,70,73,74,77,79,80,82,85,87,88,91,92,94,97,98,101,103,104,107,108,110,113,115,116,118,121,122,125,127,128,131,132,134,137,138,141,143,144,14...
_mkdir: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "types.h" #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(%...
// Copyright 2013 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 "chromeos/network/shill_property_util.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/cros_system_api/dbus/service_const...
#include <tsk/libtsk.h> #include <stdexcept> #include <sstream> #include "file.h" #include "file_meta.h" using namespace dexport; using namespace std; File::File(const char * parentDirectory, const char * fileName) : _parentDirectory(parentDirectory), _fileName(fileName) {} string File::absPath() { return _pare...
WeatherImages:: RainWeatherImage: INCBIN "gfx/battle/weather/rain.2bpp" SunWeatherImage: INCBIN "gfx/battle/weather/sun.2bpp" SandstormWeatherImage: INCBIN "gfx/battle/weather/sand.2bpp"
; void sp1_RemoveCharStruct(struct sp1_cs *cs) ; 05.2007 aralbrec, Sprite Pack v3.0 ; sinclair spectrum version SECTION code_clib SECTION code_temp_sp1 PUBLIC asm_sp1_RemoveCharStruct EXTERN __sp1_remove_spr_char ; remove an independent char struct that may be ; inserted into a struct_sp1_update's draw list ; ; e...
; A231896: a(n) = 4*a(n-1) - a(n-2) with a(0) = 0, a(1) = 4. ; 0,4,16,60,224,836,3120,11644,43456,162180,605264,2258876,8430240,31462084,117418096,438210300,1635423104,6103482116,22778505360,85010539324,317263651936,1184044068420,4418912621744,16491606418556,61547513052480,229698445791364,857246270112976,31992866346605...
; A217363: Series reversion of x - 3*x^3. ; Submitted by Jon Maiga ; 1,3,27,324,4455,66339,1041012,16953624,283848543,4855304025,84482290035,1490628232080,26607713942628,479621100042756,8718235759397880,159628084420459248,2941328850997439439,54501093415540789605,1014898739548854163185,18983126221521077870100,3564892203...
/* =============================================================================== FILE: laszip_decompress_selective_v3.hpp CONTENTS: Contains bit mask definitions for selective decompression. PROGRAMMERS: martin.isenburg@rapidlasso.com - http://rapidlasso.com COPYRIGHT: (c) 2007-2017, mar...
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. ; See the LICENSE file in the project root for more information. ; ==++== ; ; ; ==--== ; ; FILE: asmhelpers.asm ; ; *** NOTE: If you make changes to this file, propagate the changes...
; A022136: Fibonacci sequence beginning 5, 11. ; 5,11,16,27,43,70,113,183,296,479,775,1254,2029,3283,5312,8595,13907,22502,36409,58911,95320,154231,249551,403782,653333,1057115,1710448,2767563,4478011,7245574,11723585,18969159,30692744,49661903,80354647,130016550,210371197,340387747,550758944,891146691,1441905635,23330...
; A program that writes data in the bss section. ; Run with: ; ; $ ./run data bss ; section .bss big_space: resb 80 ; reserve 80 bytes section .text global _start _start: lea rbx, [rel big_space] ; keeps the initial memory position at RBX ; the LEA instruction (load eff...
%include "../UltimaPatcher.asm" %include "include/uw2.asm" %include "include/uw2-eop.asm" %include "../uw1/eop-setInterfaceMode.asm"
// ------------------------------------------------------------------------- // @FileName : NFCItemCardConsumeProcessModule.cpp // @Author : LvSheng.Huang // @Date : 2013-10-02 // @Module : NFCCardItemConsumeProcessModule // ----------------------------------------...
srl $5,$3,30 subu $5,$3,$3 subu $0,$0,$3 slti $5,$2,27145 sll $3,$3,0 sw $4,12($0) srlv $3,$3,$3 lw $5,4($0) sh $5,14($0) sb $5,11($0) sltu $3,$4,$3 lh $4,4($0) subu $3,$5,$3 or $4,$5,$3 srlv $5,$3,$3 sw $3,0($0) xor $3,$4,$3 nor $5,$3,$3 lb $3,9($0) sllv $3,$5,$3 ori $3,$4,55891 sw $4,0($0) sllv $4,$4,$3 xor $6,$4,$3 ...
; A160914: Extended s-block elements for Janet table. ; 1,2,3,4,11,12,19,20,37,38,55,56,87,88,119,120,169,170,219,220,291,292,363,364,461,462,559,560,687,688,815,816,977,978,1139,1140,1339,1340,1539,1540,1781,1782,2023,2024,2311,2312,2599,2600,2937,2938,3275,3276 mov $4,$0 add $4,1 mov $7,$0 lpb $4 mov $0,$7 sub $...
#include "tool.h" void srand48(unsigned int i) { myseed = (((long long int)i) << 16) | rand(); } double drand48(void) { srand48(time(NULL)); myseed = (0x5DEECE66DLL * myseed + 0xB16) & 0xFFFFFFFFFFFFLL; unsigned int x = myseed >> 16; return ((double)x / (double)0x100000000LL); }
/* gpe_shapes.cpp This file is part of: GAME PENCIL ENGINE https://www.pawbyte.com/gamepencilengine Copyright (c) 2014-2021 Nathan Hurde, Chase Lee. Copyright (c) 2014-2021 PawByte LLC. Copyright (c) 2014-2021 Game Pencil Engine contributors ( Contributors Page ) Permission is hereby granted, free of charge...
; A222138: Number of nX2 0..4 arrays with no entry increasing mod 5 by 4 rightwards or downwards, starting with upper left zero ; 4,52,676,8788,114244,1485172,19307236,250994068,3262922884,42417997492,551433967396,7168641576148,93192340489924,1211500426369012,15749505542797156,204743572056363028,2661666436732719364,346...
// Copyright 2020 AiBlocks Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "transactions/OperationFrame.h" #include "transactions/AllowTrustOpFrame.h" #include ...
; A259665: a(0)=0, a(1)=1, a(n) = min{4 a(k) + (4^(n-k)-1)/3, k=0..(n-1)} for n>=2. ; 0,1,5,9,25,41,57,121,185,249,313,569,825,1081,1337,1593,2617,3641,4665,5689,6713,7737,11833,15929,20025,24121,28217,32313,36409,52793,69177,85561,101945,118329,134713,151097,167481,233017,298553,364089,429625,495161,560697,626233,6917...
#include "World.hpp" using namespace Playground; using namespace Playground::Game; World::World(irr::scene::ISceneManager& sceneManager) : dispatcher(&collisionConfiguration), world(&dispatcher, &broadphase, &solver, &collisionConfiguration), sceneManager(sceneManager) { world.setGravity(btVector3...
; A296954: Expansion of x*(1 - x + 4*x^2) / ((1 - x)*(1 - 2*x)). ; 0,1,2,8,20,44,92,188,380,764,1532,3068,6140,12284,24572,49148,98300,196604,393212,786428,1572860,3145724,6291452,12582908,25165820,50331644,100663292,201326588,402653180,805306364,1610612732,3221225468,6442450940,12884901884,25769803772,51539607548,1030...
dnl AMD K6-2 mpn_com -- mpn bitwise one's complement. dnl Copyright 1999-2002 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; CopyMem.nasm ; ; Abstract: ; ; CopyMem function ; ; Notes: ; ;--------------------------------------...
;WAP to count how many times data is repeated in memory block ;code LXI 2000H ; Memory Pointer MVI C, 10 ; Counter MVI B, 00H ; to store count MOV A, M CPI 32H JNZ down INR B down: INX H DCR C JNZ up MOV A, B STA 2100H HLT
db DEX_PORYGON ; pokedex id db 65 ; base hp db 60 ; base attack db 70 ; base defense db 40 ; base speed db 75 ; base special db NORMAL ; species type 1 db NORMAL ; species type 2 db 29 ; catch rate db 130 ; base exp yield INCBIN "pic/ymon/porygon.pic",0,1 ; 66, sprite dimensions dw PorygonPicFront dw PorygonPicBack ; a...
; A177018: a(n) is the smallest integer >= a(n-1) such that a(n) + A067076(n) + n-1 is an odd prime. ; 3,3,3,4,4,5,5,6,8,8,10,11,11,12,14,16,16,18,19,19,21,22,24,27,28,28,29,29,30,36,37,39,39,43,43,45,47,48,50,52,52,56,56,57,57,62,67,68,68,69,71,71,75,77,79,81,81,83,84,84,88,94,95,95,96,102,104,108,108,109,111,114,116,...
@10 D=A @INFINITE_LOOP D;JLE @counter M=D @SCREEN D=A @address M=D (LOOP) @address A=M M=-1 @address D=M @32 D=D+A @address M=D @counter MD=M-1 @LOOP D;JGT (INFINITE_LOOP) @INFINITE_LOOP 0;JMP
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1edac, %rsi lea addresses_A_ht+0xe53c, %rdi nop nop nop dec %r10 mov $6, %rcx rep movsl add %rax, %rax lea addresses_WC_ht+0x15724, %rsi nop nop and $58079, %rdx movb $0x61, (%rsi) no...
[BITS 32] ; 程序中包含函数名 GLOBAL io_hlt, io_cli, io_sti, io_stihlt GLOBAL io_in8, io_in16, io_in32 GLOBAL io_out8, io_out16, io_out32 GLOBAL io_load_eflags, io_store_eflags GLOBAL io_load_cr0, io_store_cr0 [SECTION .text] io_hlt: ; void io_hlt(void); HLT RET io_cli: ; v...
;================================================================================ ; Randomize Book of Mudora ;-------------------------------------------------------------------------------- LoadLibraryItemGFX: LDA.l LibraryItem_Player : STA !MULTIWORLD_SPRITEITEM_PLAYER_ID %GetPossiblyEncryptedItem(LibraryItem, Spri...
;; @file ; Provide FSP API entry points. ; ; Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may ...
; A022272: a(n) = n*(15*n - 1)/2. ; 0,7,29,66,118,185,267,364,476,603,745,902,1074,1261,1463,1680,1912,2159,2421,2698,2990,3297,3619,3956,4308,4675,5057,5454,5866,6293,6735,7192,7664,8151,8653,9170,9702,10249,10811,11388,11980,12587,13209,13846,14498,15165,15847,16544,17256,17983,18725,19482,20254,21041,21843,22660,234...
// MIT License // // Copyright (c) 2018 Michal Siedlaczek // // 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, m...
#include "stdafx.h" #include "afxwinappex.h" #include "afxdialogex.h" #include "NativeMultiClockMFC.h" #ifdef _DEBUG #define new DEBUG_NEW #endif #define HIDDEN_DIALOG_WINDOW_TEXT L"NativeMultiClock.HiddenDialog" BEGIN_MESSAGE_MAP(CNativeMultiClockMFCApp, CWinApp) END_MESSAGE_MAP() CNativeMultiClockMFCApp theApp; ...
#include "..\..\inc\actionobjects\ActionSprite.hpp" ActionSprite::ActionSprite() : spritePtr(nullptr) { } ActionSprite::ActionSprite(sf::Sprite* sprite) { spritePtr = sprite; } ActionSprite::ActionSprite(const ActionSprite& other) { sf::Sprite* sprite = new sf::Sprite(); sf::Texture* copyTexture = new sf::Texture...
;; ;; Copyright (c) 2020-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 conditions and...
// function: name SimpleFunction.test, with 2 local vars (SimpleFunction.test) // push constant 0 @0 D=A @SP A=M M=D @SP M=M+1 // push constant 0 @0 D=A @SP A=M M=D @SP M=M+1 // push local 0 @0 D=A @LCL A=D+M D=M @SP A=M M=D @SP M=M+1 // push local 1 @1 D=A @LCL A=D+M D=M @SP A=M M=D @SP M=M+1 // add @SP M=M-1 @SP A=M ...
; A105498: Trajectory of 1 under the morphism 1->{1,2}, 2->{1,4}, 3->{3,4}, 4->{3,4}. ; Submitted by Jon Maiga ; 1,2,1,4,1,2,3,4,1,2,1,4,3,4,3,4,1,2,1,4,1,2,3,4,3,4,3,4,3,4,3,4,1,2,1,4,1,2,3,4,1,2,1,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,3,4,1,2,1,4,1,2,3,4,1,2,1,4,3,4,3,4,1,2,1,4,1,2,3,4,3,4,3,4,3,4,3,4,3,4,3,4 mov $2...
; char *itoa_callee(int num, char *buf, int radix) SECTION code_stdlib PUBLIC _itoa_callee, l0_itoa_callee EXTERN asm_itoa _itoa_callee: pop af pop hl pop de pop bc push af l0_itoa_callee: push ix call asm_itoa pop ix ret