text
stringlengths
1
1.05M
SECTION code_clib PUBLIC plot_MODE2 .plot_MODE2 ld a,h cp 128 ret nc defc NEEDplot = 1 INCLUDE "target/spc1000/graphics/pixel_MODE2.inc"
DATA SEGMENT NUM1 DB ? NUM2 DB ? RESULT DB ? MSG1 DB 10,13,"ENTER INT 1 : $" MSG2 DB 10,13,"ENTER INT 2 : $" MSG3 DB 10,13,"MUL : $" ENDS CODE SEGMENT ASSUME DS:DATA CS:CODE START: MOV AX,DATA MOV DS,AX LEA DX,MSG1 MOV AH,9 INT 21H MOV AH,1 INT 21H SUB AL,30H MOV NUM1,AL LEA DX,MS...
; ; ; ZX Maths Routines ; ; 21/03/03 - Stefano Bodrato ; ; $Id: cosh.asm,v 1.2 2009/06/22 21:44:17 dom Exp $ ; ; ;double cosh(double) ;Number in FA.. ; e = exp(x) ; ; return 0.5*(e+1.0/e) ; ; IF FORzx INCLUDE "zxfp.def" ELSE INCLUDE "81fp.def" ENDIF XLIB cosh ...
#include "stdafx.h" #include "map_spot.h" #include "map_location.h" #include "ui/UIXmlInit.h" #include "ui/UIMApWnd.h" #include "level.h" #include "../xr_object.h" #include "object_broker.h" #include "ui/UITextureMaster.h" CMapSpot::CMapSpot(CMapLocation* ml) :m_map_location(ml) { ClipperOn (); m_b...
#include <eigen3/Eigen/Core> #include <numpy_eigen/boost_python_headers.hpp> Eigen::Matrix<double, 3, Eigen::Dynamic> test_double_3_D(const Eigen::Matrix<double, 3, Eigen::Dynamic> & M) { return M; } void export_double_3_D() { boost::python::def("test_double_3_D",test_double_3_D); }
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r14 push %r15 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x17f9, %rdx nop nop add $31211, %r9 mov $0x6162636465666768, %rbp movq %rbp, %xmm3 movups %xmm3, (%rdx) nop nop nop and $45215, %rdi lea addresses_WC_ht+0x1a5af, %r1...
/////////////////////////////////////////////////////////////////////// // Wendy default renderer // Copyright (c) 2005 Camilla Berglund <elmindreda@elmindreda.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 arising...
; A237711: The number of P-positions in the game of Nim with up to four piles, allowing for piles of zero, such that the total number of objects in all piles is 2n. ; Submitted by Christian Krause ; 1,6,7,36,13,42,43,216,49,78,55,252,85,258,259,1296,265,294,127,468,133,330,307,1512,337,510,343,1548,517,1554,1555,7776,1...
#include<iostream> using namespace std; int main(){ int n; cin>>n; int arr[n]; for(int i = 0; i < n; i++){ cin>>arr[i]; } permutation1(arr, ""); return 0; }
/**************************************************************************** Copyright (c) 2011 ForzeField Studios S.L. Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of...
; A219527: a(n) = (6*n^2 + 7*n - 9 + 2*n^3)/12 - (-1)^n*(n+1)/4. ; 1,3,11,19,37,55,87,119,169,219,291,363,461,559,687,815,977,1139,1339,1539,1781,2023,2311,2599,2937,3275,3667,4059,4509,4959,5471,5983,6561,7139,7787,8435,9157,9879,10679,11479,12361,13243 mov $16,$0 mov $18,$0 add $18,1 lpb $18 clr $0,16 mov $0,$16...
; tentative move effect constants ; {stat}_(UP|DOWN)(1|2) means that the move raises the user's (or lowers the target's) corresponding stat modifier by 1 (or 2) stages ; {status condition}_side_effect means that the move has a side chance of causing that condition ; {status condition}_effect means that the move causes ...
B7_Header: sHeaderInit ; Z80 offset is $D73F sHeaderPatch B7_Patches sHeaderTick $01 sHeaderCh $03 sHeaderSFX $80, $04, B7_FM4, $F2, $00 sHeaderSFX $80, $05, B7_FM5, $02, $06 sHeaderSFX $80, $02, B7_FM3, $F9, $08 B7_FM3: sPatFM $01 sJump B7_Loop1 B7_FM5: dc.b nRst, $02 B7_FM4: sPatFM $00 ssModZ80...
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2016, 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 de...
/* Copyright (c) 2016-2017 Xavier Leclercq 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, me...
.code NtReadFile PROC mov rax, gs:[60h] ; Load PEB into RAX. NtReadFile_Check_X_X_XXXX: ; Check major version. cmp dword ptr [rax+118h], 5 je NtReadFile_SystemCall_5_X_XXXX cmp dword ptr [rax+118h], 6 je NtReadFile_Check_6_X_XXXX cmp dword ptr [rax+118h], 10 je NtRe...
; A100186: Structured heptagonal anti-diamond numbers (vertex structure 7). ; Submitted by Jamie Morken(l1) ; 1,16,67,176,365,656,1071,1632,2361,3280,4411,5776,7397,9296,11495,14016,16881,20112,23731,27760,32221,37136,42527,48416,54825,61776,69291,77392,86101,95440,105431,116096,127457,139536,152355,165936,180301,19547...
/**************************************************************************** * step_counter/accel_sensor.cxx * * Copyright 2018 Sony Semiconductor Solutions Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions *...
; A309337: a(n) = n^3 if n odd, 3*n^3/4 if n even. ; 0,1,6,27,48,125,162,343,384,729,750,1331,1296,2197,2058,3375,3072,4913,4374,6859,6000,9261,7986,12167,10368,15625,13182,19683,16464,24389,20250,29791,24576,35937,29478,42875,34992,50653,41154,59319,48000,68921,55566,79507,63888,91125,73002,103823,82944,117649,93750,1...
; A040216: Continued fraction for sqrt(232). ; Submitted by Christian Krause ; 15,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3,7,3,4,30,4,3 seq $0,10124 ; Continued fraction for sqrt(19). seq...
; ;======================================================================= ; HDIAG Utility Functions ;======================================================================= ; ; Print string at HL on console, null terminated. ; HL and AF are trashed. ; prtstr: ld a,(hl) ; get next character or a ; set f...
; A100215: Expansion of (4 - 7*x + 2*x^2)/((1-2*x)*(1 - 2*x + 2*x^2)). ; Submitted by Simon Strandgaard ; 4,9,14,18,24,44,104,248,544,1104,2144,4128,8064,16064,32384,65408,131584,263424,525824,1049088,2095104,4189184,8382464,16775168,33562624,67129344,134242304,268443648,536838144,1073659904,2147385344,4294934528,85900...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r8 push %r9 push %rbx push %rdx lea addresses_D_ht+0x1eeb0, %r14 nop nop nop nop nop inc %r10 movb (%r14), %r13b nop nop inc %r13 lea addresses_normal_ht+0x3f06, %rdx nop nop nop nop add $22113, %r9 and $0xffffffffffffffc0, %rdx vmovaps (%...
; A164583: a(n)=4^n*(2n + 1)^2. ; 1,36,400,3136,20736,123904,692224,3686400,18939904,94633984,462422016,2218786816,10485760000,48922361856,225754218496,1031865892864,4677219385344,21045339750400,94076963651584,418089296461824 mov $1,$0 mul $1,2 add $1,1 mov $2,2 pow $2,$0 mul $1,$2 pow $1,2
; A133280: Triangle formed by: 1 even, 2 odd, 3 even, 4 odd, ... starting with zero. ; 0,1,3,4,6,8,9,11,13,15,16,18,20,22,24,25,27,29,31,33,35,36,38,40,42,44,46,48,49,51,53,55,57,59,61,63,64,66,68,70,72,74,76,78,80,81,83,85,87,89,91,93,95,97,99,100,102,104,106,108,110,112,114,116,118,120,121,123,125,127,129,131,133,135...
#include "broker/logger.hh" // Needs to come before CAF includes. #include <caf/event_based_actor.hpp> #include <caf/actor.hpp> #include <caf/make_message.hpp> #include <caf/sum_type.hpp> #include <caf/behavior.hpp> #include <caf/stateful_actor.hpp> #include <caf/system_messages.hpp> #include <caf/unit.hpp> #include <...
/* * Copyright (c) 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 notice, t...
/* Copyright 2015 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...
#include "compiler.h" #include <iostream> #include <fstream> #include "parser.h" #include "generate_rule_cpp.h" #include "generate_rule_python.h" #include "generate_rule_csharp.h" Compiler::Compiler(const std::string& sFileName, const std::string& sOption) : m_sFileName(sFileName), m_sOption(sOption) { } Compiler::~C...
;------------------------------------------------------------------------------ ; ; EnableInterrupts() for AArch64 ; ; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> ; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> ; Portions copyright (c) 2011 - 2013, ARM Ltd. All...
; Test case: game_version: equ "2" add a, 0x0a add a, 0x0b add a, 0x0c db (0x0001 / 65536) db (0x0001 / 0x0100) & 0xff db (0x0001 % 0x0100) dw 0x0000 db (0x0002 / 0x0100) db (0x0002 % 0x0100) db 0x0003
; This file was build using VIDE - Vectrex Integrated Development Environment ; Original bin file was: projects/VRelease/VTK_TitleMusic.bin ; ; offset for AKS file assumed: $0000 guessed by accessing byte data[13] * 256) ; not used by vectrex player and therefor omitted: ; DB "AT10" ; Signature of Arkos Tracker file...
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # E...
#include "P2JME/SimpleMessage.h" #include "JSystem/JUT/JUTFont.h" namespace P2JME { /* * --INFO-- * Address: 8043DBEC * Size: 000004 */ SimpleMessage::SimpleMessage(void) { } /* * --INFO-- * Address: 8043DBF0 * Size: 00006C */ void SimpleMessage::init() { m_processor = new P2JME::TRenderingProcessor(gP2JMEM...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x15e08, %rsi lea addresses_normal_ht+0x11aa5, %rdi nop nop nop nop nop inc %rdx mov $109, %rcx rep movsw nop nop nop nop add $14655, %r13 lea addresses_UC_ht+0xcd48, %r15 nop nop xor %...
; Source: http://en.wikibooks.org/wiki/Super_NES_Programming macro SnesInit() sei ; Disabled interrupts clc ; clear carry to switch to native mode xce ; Xchange carry & emulation bit. native mode rep #$18 ; Binary mode (decimal mode off), X/Y 16 bit ldx #$1FFF ; set stack to $1FFF txs jsr Init ...
; A080476: Floor( geometric mean of next n numbers ). ; 1,2,4,8,12,18,24,32,40,50,60,72,84,98,112,128,144,162,180,200,220,242,264,288,312,338,364,392,420,450,480,512,544,578,612,648,684,722,760,800,840,882,924,968,1012,1058,1104,1152,1200,1250,1300,1352,1404,1458 add $0,1 pow $0,2 sub $0,2 div $0,2 add $0,1
; char *fgets(char *s, int n, FILE *stream) INCLUDE "clib_cfg.asm" SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC fgets EXTERN asm_fgets fgets: pop af pop ix pop bc pop de push de push bc push hl push af ...
;************************************************************************** ;* walk386.ASM ;* ;* Assembly support code for the KERNEL386 global heap routines ;* for TOOLHELP.DLL ;* ;************************************************************************** INCLUDE TOOLPRIV.INC PMODE32 = 1...
; void *p_list_remove_after(p_list_t *list, void *list_item) SECTION code_clib SECTION code_adt_p_list PUBLIC p_list_remove_after_callee EXTERN asm_p_list_remove_after p_list_remove_after_callee: pop af pop hl pop bc push af jp asm_p_list_remove_after
// Copyright (c) 2018 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translato...
// Copyright 2020-2022, NVIDIA CORPORATION & AFFILIATES. 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...
/** * @file SIMlib.cpp * Project AdeonGSM * @brief Adeon library for GSM modules * @author JSC electronics * License Apache-2.0 - Copyright (c) 2019 JSC electronics * * Copyright (c) 2019 JSC electronics * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
; OpenBOR - http://www.chronocrash.com ; ---------------------------------------------------------------------- ; All rights reserved, see LICENSE in OpenBOR root for details. ; ; Copyright (c) 2004 - 2012 OpenBOR Team ; Scales images by 2x using bilinear filtering. This implementation uses the ; SIMD capabilities of...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2018 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 <chainparamsseeds.h> #include <consensus/merkle.h> ...
// // TimezoneTest.cpp // // $Id$ // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and accompanying documentation covered by // this license (the "Softw...
dnl x86-64 mpn_divrem_1 -- mpn by limb division. dnl Copyright 2004, 2005, 2007-2010, 2012 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 G...
lda {m2} sta {m1} lda {m2}+1 sta {m1}+1
SECTION code_fp_am9511 PUBLIC acosh EXTERN cam32_sccz80_acosh defc acosh = cam32_sccz80_acosh ; SDCC bridge for Classic IF __CLASSIC PUBLIC _acosh EXTERN cam32_sdcc_acosh defc _acosh = cam32_sdcc_acosh ENDIF
.data message: db "Hello World!", 0xA message_length equ $-message .code mov rdx, message_length mov rcx, message mov rbx, 1 mov rax, 4 int 80 mov rax, 1 mov rbx, 0 int 80
; A181067: a(n) = Sum_{k=0..n-1} binomial(n-1,k)^2 * binomial(n,k). ; Submitted by Christian Krause ; 1,3,16,95,606,4032,27616,193167,1372930,9881498,71846160,526764680,3889340560,28888634400,215680108416,1617467908751,12177754012458,92004463332486,697263463622080,5298985086555090,40371796982444356,308284315438216208,2...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x19a65, %r9 nop nop nop nop nop sub %r13, %r13 mov (%r9), %ebx nop nop nop and %r10, %r10 lea addresses_UC_ht+0x647a, %rsi lea addresses_WT_ht+0x1989a, %rdi nop cmp $1620, %ra...
#ifndef _CISCO_IOS_XR_INFRA_POLICYMGR_OPER_47_ #define _CISCO_IOS_XR_INFRA_POLICYMGR_OPER_47_ #include <memory> #include <vector> #include <string> #include <ydk/types.hpp> #include <ydk/errors.hpp> #include "Cisco_IOS_XR_infra_policymgr_oper_0.hpp" #include "Cisco_IOS_XR_infra_policymgr_oper_45.hpp" #include "Cisco_...
; A177145: E.g.f.: arcsin(x). ; 1,0,1,0,9,0,225,0,11025,0,893025,0,108056025,0,18261468225,0,4108830350625,0,1187451971330625,0,428670161650355625,0,189043541287806830625,0,100004033341249813400625,0 mov $1,4 mov $2,$0 mov $3,1 lpb $2 sub $2,$3 mul $1,$2 trn $2,1 lpe pow $1,2 div $1,16 mov $0,$1
; Program 4.3 ; Negative Division - MASM (32-bit) ; Copyright (c) 2017 Hall & Slonka .386 .MODEL FLAT, stdcall .STACK 4096 ExitProcess PROTO, dwExitCode:DWORD .code _main PROC mov eax, -534 cdq mov ebx, 15 idiv ebx INVOKE ExitProcess, 0 _main ENDP END
; A185294: Number of disconnected 9-regular simple graphs on 2n vertices with girth at least 4. ; 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,15 div $0,2 sub $0,3 pow $0,2 div $0,8 bin $0,4
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PROJECT: Practice Project MODULE: Uki program FILE: uki.asm Author Jimmy Lefkowitz, January 14, 1991 $Id: uki.asm,v 1.1 97/04/04 15:47:09 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ UkiCod...
;Day 02 date-08 april,2021 ;problem - programme to print captal letter to small letter or if small letter than print capital letter, infinite times input .model small .stack 100h .data n_line db 0ah,0dh,"$" ;for new line var_char db ? .code capital_print: mov dl,97 sub dl,65 sub var_char,dl...
; A252748: a(n) = A003961(n) - 2*n. ; -1,-1,-1,1,-3,3,-3,11,7,1,-9,21,-9,5,5,49,-15,39,-15,23,13,-5,-17,87,-1,-1,71,43,-27,45,-25,179,-1,-11,7,153,-33,-7,7,109,-39,81,-39,29,85,-5,-41,309,23,47,-7,49,-47,267,-19,185,1,-23,-57,195,-55,-13,149,601,-11,63,-63,35,7,91,-69,531,-67,-25,95,55,-11,99,-75,407,463,-35,-77,327,-3...
; A047668: Row 4 of array in A047666. ; 4,17,52,129,276,529,932,1537,2404,3601,5204,7297,9972,13329,17476,22529,28612,35857,44404,54401,66004,79377,94692,112129,131876,154129,179092,206977,238004,272401,310404,352257,398212,448529 add $0,1 pow $0,2 mov $1,$0 add $0,8 mul $0,$1 div $0,3 add $0,1
;/********************************************************************************************************************** ; * DISCLAIMER ; * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No ; * other uses are authorized. This software is owned by Renesas...
; Move the crown to the right to give space for Difficulty. .org 0x0802BB10 dh 0xF474 .org 0x0802BB90 dh 0xF474 ; The original game stores the credits in a sort of modified Shift-JIS format. ; It then decodes this and uses bytecodes to indicate hiragana/katakana. ; We replace that by just using the game's text encodin...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GlobalPC 1998 -- All Rights Reserved PROJECT: GEOS MODULE: SuperVGA Video Driver FILE: vga16DevInfo.asm AUTHOR: Jim DeFrisco REVISION HISTORY: Name Date Description ---- ---- ----------- jad 10/92 init...
// Copyright (c) 2020 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <avalanche/proof.h> #include <avalanche/validation.h> #include <coins.h> #include <hash.h> #include <policy/policy.h> #includ...
############################################################################### # Copyright 2019 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") containe...
; A040793: Continued fraction for sqrt(822). ; 28,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2,28,2,1,56,1,2 seq $0,10144 ; Continued fraction for sqrt(59). seq $0,16084 ; a(n+1) = a(n) + its ...
310: 1f 92 push r1 312: 0f 92 push r0 314: 0f b6 in r0, 0x3f ; 63 316: 0f 92 push r0 318: 11 24 eor r1, r1 31a: 8f 93 push r24 31c: 9f 93 push r25 31e: ef 93 push r30 320: ff 93 push r31 322: 80 91 c6 00 lds r24, 0x00C6 ; 0x8000c6 <__TEXT_REGION_L...
;+----------------------------------------------------------------------------+ ;| +------------------------------------------------------------------------+ | ;| | | | ;| | \|/ Win98.BlackBat | |...
bits 16 org 0x0 ; Where to find the INT 8 handler vector within the IVT [interrupt vector table] IVT8_OFFSET_SLOT equ 4 * 8 ; Each IVT entry is 4 bytes; this is the 8th IVT8_SEGMENT_SLOT equ IVT8_OFFSET_SLOT + 2 ; Segment after Offset ; Where to find the INT 9 handler vector within the IVT [interrupt vecto...
# adresse an der der speicherstand gespeichert ist .eqv board 0x10008000 li a0, board li a1, 1 sw a1, 0(gp) sw a1, 4(gp) sw a1, 8(gp) jal getWinningCondition mv s2, a0 jal clean_board li a0, board li a1, 2 sw a1, 12(gp) sw a1, 16(gp) sw a1, 20(gp) jal getWinningCondition mv s3, a0 jal clean_board li a0, board li a...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %r15 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0xdf0, %rbx nop nop nop dec %rdx mov (%rbx), %r15d nop nop nop sub %r10, %r10 lea addresses_UC_ht+0x130a0, %rbx nop nop nop nop and %rdx, %rdx movups (%rbx),...
#include <QTranslator> #include <QApplication> #include <QDebug> #include <QFile> #include "MainUI.h" #include <LuminaOS.h> #include <LuminaThemes.h> #include <LUtils.h> #include <LuminaSingleApplication.h> int main(int argc, char ** argv) { LTHEME::LoadCustomEnvSettings(); //Make sure Qt5 auto-scaling is dis...
; A260235: Number of distinct prime factors of the n-th hexagonal number (A000384). ; 2,2,2,2,3,2,3,2,3,3,3,2,3,3,2,3,4,2,4,3,3,3,3,2,4,2,4,3,4,2,3,4,3,4,3,2,4,4,3,2,4,3,4,3,4,3,4,2,4,3,3,4,3,3,4,3,4,3,5,2,4,3,2,4,4,3,4,3,4,3,4,3,4,3,3,4,5,2,4,3,3,4,4,3,4,3,4,3,4,3,4,4,4,4,3,2,5,3,3,3 add $0,1 mul $0,2 seq $0,96 ; a(n...
#include "treeitem.h" TreeItem::TreeItem(const QList<QVariant> &data, TreeItem *parentItem) { m_parentItem = parentItem; m_itemData = data; } TreeItem::TreeItem(TreeItem *parentItem) { m_parentItem = parentItem; } TreeItem::~TreeItem() { qDeleteAll(m_childItems); } void TreeItem::appendChild(TreeIte...
#include "wiTextureHelper.h" #include "wiRenderer.h" #include "wiRandom.h" #include "wiColor.h" #include "wiBackLog.h" #include "wiSpinLock.h" #include <unordered_map> using namespace wiGraphicsTypes; namespace wiTextureHelper { enum HELPERTEXTURES { HELPERTEXTURE_RANDOM64X64, HELPERTEXTURE_COLORGRADEDEFAULT,...
[bits 64] rdfsbase ebx ; out: f3 0f ae c3 rdfsbase rbx ; out: f3 48 0f ae c3 rdgsbase ecx ; out: f3 0f ae c9 rdgsbase rcx ; out: f3 48 0f ae c9 wrfsbase ebx ; out: f3 0f ae d3 wrfsbase rbx ; out: f3 48 0f ae d3 wrgsbase ecx ; out: f3 0f ae d9 wrgsbase rcx ; out: f3 48 0f ae d9
/* * 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. * */ #define DI_ENABLE #include ...
SYS_EXIT equ 1 SYS_READ equ 3 SYS_WRITE equ 4 STDIN equ 0 STDOUT equ 1 True equ 1 False equ 0 segment .bss x_823a RESD 1 y_823a RESD 1 res RESB 1 section .text global _start print: POP EBX POP EAX PUSH EBX XOR ESI, ESI print_dec: MOV EDX, 0 MOV EBX, 0x000A ...
#include "LoadLuaFile.h" #include <map> #include <utility> #include <fstream> #include <sstream> #include <gtest/gtest.h> #include <glog/logging.h> namespace { const std::string lua_root = "/home/me/CLionProjects/ngserver/ngserver/LuaState/Lua"; const std::string lua_ini = lua_root + "/lua.ini"; } namespace LuaSt...
; A118649: Row sums for A106597. ; Submitted by Jamie Morken(s1) ; 1,2,5,12,30,74,184,456,1132,2808,6968,17288,42896,106432,264080,655232,1625760,4033824,10008704,24833536,61616832,152883328,379333248,941199488,2335298816,5794330112,14376858880,35671780352,88508618240 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 ...
; ; CPM Stdio ; ; getk() Read key status ; ; Stefano Bodrato - Apr. 2000 ; Stefano Bodrato - Mar. 2004 - fixed ; ; ; $Id: getk.asm,v 1.7 2016/03/06 21:36:52 dom Exp $ ; SECTION code_clib PUBLIC getk PUBLIC _getk .getk ._getk LD c,6 ld e,255 call 5 ld h,0 ld l,a ret
#include "FWCore/ServiceRegistry/interface/Service.h" #include "CondCore/DBOutputService/interface/PoolDBOutputService.h" #include "CondFormats/DataRecord/interface/OpticalAlignmentsRcd.h" #include "CondFormats/OptAlignObjects/interface/OpticalAlignMeasurementInfo.h" #include <DD4hep/DD4hepUnits.h> #include "DetectorDe...
; A187791: Repeat n+1 times 2^A005187(n). ; 1,2,2,8,8,8,16,16,16,16,128,128,128,128,128,256,256,256,256,256,256,1024,1024,1024,1024,1024,1024,1024,2048,2048,2048,2048,2048,2048,2048,2048,32768,32768,32768,32768,32768,32768,32768,32768,32768,65536,65536,65536,65536,65536,65536,65536,65536,65536,65536 seq $0,3056 ; n ap...
; ------------------------------------------------------------------------- ; ; Sega CD Base ; By Ralakimus 2021 ; ; ------------------------------------------------------------------------- include "../include/subcpu.asm" ; ------------------------------------------------------------------------- ; Constants ; --...
; A342089: Numbers that have two representations as the sum of distinct non-consecutive Lucas numbers (A000032). ; 5,12,16,23,30,34,41,45,52,59,63,70,77,81,88,92,99,106,110,117,121,128,135,139,146,153,157,164,168,175,182,186,193,200,204,211,215,222,229,233,240,244,251,258,262,269,276,280,287,291,298,305,309,316,320,327...
assume cs:code code segment s1: db 'Good,better,best,','$' s2: db 'Never let it rest,','$' s3: db 'Till good is better,','$' s4: db 'And better,best.','$' s : dw offset s1,offset s2,offset s3,offset s4 row:db 2,4,6,8 start: mov ax,cs mov ds,ax mov bx,offset s mov si,offset row mov cx,4 ok: mov bh...
; A164603: a(n) = ((1+4*sqrt(2))*(2+2*sqrt(2))^n + (1-4*sqrt(2))*(2-2*sqrt(2))^n)/2. ; 1,18,76,376,1808,8736,42176,203648,983296,4747776,22924288,110688256,534450176,2580553728,12460015616,60162277376,290489171968,1402605797376,6772379877376,32699942699008,157889290305536,762356932018176,3680984889294848 mov $1,1 mov ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x184a2, %rsi lea addresses_A_ht+0xa4a2, %rdi nop nop nop add %r10, %r10 mov $47, %rcx rep movsw nop and %r9, %r9 lea addresses_WT_ht+0xbe32, %rsi lea addresses_WT_ht+0x91a2, %rd...
; tdll.asm ; ; assemble with ; nasm -fobj tdll.asm ; ; link with ; alink -oPE -dll tdll win32.lib ; (win32.lib is available from my web page) global start global title1 export start export title1 ;these names are defined in win32.lib as the names of ;a stub proc, and the IAT entry name for MessageBoxA extern Messa...
[bits 64] exit_process equ 0x0210 vm_reserve equ 0x0410 vm_commit equ 0x0414 stream_read equ 0x0508 section .text xor rdx,rdx mov r8d,2 mov eax,vm_reserve syscall test rax,rax mov rdx,rax jz abort mov r8d,1 mov eax,vm_commit mov rbx,rdx syscall test eax,eax jnz abort mov edx,1 lea r8,[rbx + 0x0FF0] mov r9d,0x20 ...
#ifndef __SCHEME_FUNS_TYPESJUDGE #define __SCHEME_FUNS_TYPESJUDGE #include "arch.hpp" #include "ast.hpp" #include "parsers.hpp" namespace HT { void isinteger(PASTNode, ParsersHelper&); void isrational(PASTNode, ParsersHelper&); void isreal(PASTNode, ParsersHelper&); void iscomplex(PASTNode, ParsersHelpe...
page ,132 TITLE C library emulation, not relying on MS-DOS. ;*****************************************************************************; ; ; ; FILE NAME: annauldv.asm ; ; ; ; DESCRIPTION: C compiler long math library ; ; ; ; NOTES: ...
; A328152: a(n) is the number of squares of side length greater than 1 having vertices at the points of an n X n grid of dots. ; 0,0,2,11,34,80,160,287,476,744,1110,1595,2222,3016,4004,5215,6680,8432,10506,12939,15770,19040,22792,27071,31924,37400,43550,50427,58086,66584,75980,86335,97712,110176,123794,138635,154770,17...
; run RLA the number of times specified in B rlaX: ; first, see if B == 0 to see if we need to bail out inc b dec b ret z ; Z flag means we had B = 0 .loop: rla djnz .loop ret callHL: jp (hl) ret ; HL - DE -> HL subDEFromHL: push af ld a, l sub e ld l, a ld a, h sbc a, d ld h, a pop af ret ; make Z ...
; Copyright (c) 2022 Sam Blenny ; SPDX-License-Identifier: MIT ; ; MarkabForth compiler words (meant to be included in ../libmarkab.nasm) ; This include path is relative to the working directory that will be in effect ; when running the Makefile in the parent directory of this file. So the ; include path is relative t...
bits 64 extern puts global foo section .data message: db 'foo() called', 0 section .text foo: nop push rbp mov rbp, rsp lea rdi, [rel message] %ifdef USE_PLT call puts wrt ..plt %else call puts %endif pop rbp ret
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008-2016. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
/** * \file Wznmcmbd.cpp * inter-thread exchange object for Wznm combined daemon (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #include "Wznmd.h" using namespace std; using namespace S...
/* * 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: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) | +---------...