text
stringlengths
1
1.05M
#include <iostream> #include <fstream> #include <sstream> #include <gtest/gtest.h> #if defined(USE_STATIC) #include <botan_all.h> #else #include <botan/version.h> #include <botan/init.h> #endif int main(int argc, char **argv) { std::cerr << Botan::runtime_version_check(BOTAN_VERSION_MAJOR, BOTAN_VERSION_MINOR, BO...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Copyright(c) 2011-2015 Intel Corporation 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 so...
;***************************************************************************** ;* MMX/SSE2/AVX-optimized H.264 deblocking code ;***************************************************************************** ;* Copyright (C) 2005-2011 x264 project ;* ;* Authors: Loren Merritt <lorenm@u.washington.edu> ;* Fiona G...
; A218657: Hilltop maps: number of n X 2 binary arrays indicating the locations of corresponding elements not exceeded by any king-move neighbor in a random 0..1 n X 2 array. ; Submitted by Jamie Morken(s4) ; 3,15,57,225,891,3519,13905,54945,217107,857871,3389769,13394241,52925643,209128959,826346529,3265203393,1290203...
_video_ = "8000,8600,20,20,6,000000,ffffff,880000,aaffee,cc44cc,00cc55,0000aa,eeee77,dd8855,664400,ff7777,333333,777777,aaff66,0088ff,bbbbbb" _stdioChar_ = "8601" chio = $8601 key = $8600 org $9000 start lda key beq start sta chio lda #'\n' sta chio lda #0 sta key jmp start org $FFF...
;******************************************************************************************************** ; uC/OS-II ; The Real-Time Kernel ; ; Copyright 1992-2020 Silicon Laboratories Inc. www.silabs.com ; ; ...
.text .global _start _start: add $5, %al int $0x80
section utility xdef mes_msleft xref mes_zero mes_msleft dc.w $0100,$0000 dc.w 7,8,0,0 dc.l mcs_msright-* dc.l mes_zero-* dc.l 0 mcs_msright dc.w $7C00,$0000 dc.w $F260,$0000 dc.w $F260,$0000 dc.w $FE00,$0000 dc.w $8200,$0000 dc.w $8200,$0000 dc.w $8200,$0000 dc.w $7C00,$0000 * end
; Speed scene after Dodongo's Cavern .orga 0x2221E88 :: .word 0x000C003B, 0x003C003C .orga 0x2223308 :: .word 0x00810000, 0x003A0000 ; Speed scene after Jabu Jabu's Belly .orga 0xCA3530 :: .word 0x00000000 .orga 0x2113340 :: .word 0x000D003B, 0x003C003C .orga 0x2113C18 :: .word 0x00820000, 0x003A0000 .orga 0x21131D0 :...
lda {m1} sta $fc clc sty $fe adc $fe sta $fe lda {m1}+1 sta $fd adc #00 sta $ff ldy #0 !: lda ($fe),y sta ($fc),y iny dex bne !-
dnl AMD K7 mpn_divexact_1 -- mpn by limb exact division. dnl Copyright 2001, 2002, 2004, 2007 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 Lesse...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: TEdit (Sample PC GEOS application) FILE: tedit.asm REVISION HISTORY: Name Date Description ---- ---- ----------- tony 7/91 Initial version ...
; A140303: Triangle T(n,k) = 3^(n-k) read by rows. ; 1,3,1,9,3,1,27,9,3,1,81,27,9,3,1,243,81,27,9,3,1,729,243,81,27,9,3,1,2187,729,243,81,27,9,3,1,6561,2187,729,243,81,27,9,3,1,19683,6561,2187,729,243,81,27,9,3,1,59049,19683,6561,2187,729,243,81,27,9,3,1 seq $0,25676 ; Exponent of 8 (value of i) in n-th number of form...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: titleManager.asm AUTHOR: John Wedgwood, Oct 8, 1991 METHODS: Name Description ---- ----------- REVISION HISTORY: Name Date D...
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, 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...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2015, Image Engine Design 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: // // ...
; A037583: Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,1. ; 3,13,55,221,887,3549,14199,56797,227191,908765,3635063,14540253,58161015,232644061,930576247,3722304989,14889219959,59556879837,238227519351,952910077405,3811640309623,15246561238493,60986244953975 mov $1,4 po...
; A002454: Central factorial numbers: a(n) = 4^n (n!)^2. ; 1,4,64,2304,147456,14745600,2123366400,416179814400,106542032486400,34519618525593600,13807847410237440000,6682998146554920960000,3849406932415634472960000,2602199086312968903720960000,2040124083669367620517232640000,1836111675302430858465509376000000 mul $0,2...
#include "stdafx.h" #include "Collider.h" #include "../../../GlobalObjects/Physix/Manifold.h" #include "../Transform2D.h" #include "../../../../Global/MathTools/utils.h" #include "CircleCollider.h" #include "RectCollider.h" //Circle vs Circle with Manifold hit Collition bool Collider::checkCircleCircle(const Vec2& p...
/* Copyright (c) 2019 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "meta/processors/admin/AdminClient.h" #include "meta/MetaServiceUtils.h" #include "meta/processors/Common.h" #i...
; A033505: Expansion of 1/(1 - 3*x - x^2 + x^3). ; 1,3,10,32,103,331,1064,3420,10993,35335,113578,365076,1173471,3771911,12124128,38970824,125264689,402640763,1294216154,4160024536,13371648999,42980755379,138153890600,444070778180,1427385469761,4588073296863,14747534582170,47403291573612,152369336006143,489763765009871...
#include <iostream> using namespace std; int main(){ int s,t,n; cin>>s>>t>>n; int walks[n+1]; int wt; for (int i = 0; i < n+1; i++){ cin>>wt; walks[i]=wt; } int buses[n]; int bt; for (int i = 0; i<n; i++){ cin>>bt; buses[i]=bt; } int interv...
; int cpm_bdos(unsigned int func,unsigned int arg) ; callee SECTION code_clib SECTION code_arch PUBLIC _cpm_bdos_callee EXTERN asm_cpm_bdos _cpm_bdos_callee: pop af pop bc pop de push af jp asm_cpm_bdos
; ; ZX IF1 & Microdrive functions ; ; Pick a sector with a given sector number ; ; int if1_load_sector (int drive, int sector, struct M_CHAN buffer); ; ; 4/5 drive: 1-8 for microdrive number ; 2/3 sector number ; 0/1 buffer ; ; $Id: if1_load_sector.asm,v 1.3 2016-07...
//================================================================================================= /*! // \file src/mathtest/smatdvecmult/MCaV6a.cpp // \brief Source file for the MCaV6a sparse matrix/dense vector multiplication math test // // Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved // // Thi...
;****************************************************************************** ;* 36 point SSE-optimized IMDCT transform ;* Copyright (c) 2011 Vitor Sessak ;* ;* This file is part of Libav. ;* ;* Libav is free software; you can redistribute it and/or ;* modify it under the terms of the GNU Lesser General Public ;* Lic...
; A102715: Triangle read by rows: T(n,k) is phi(binomial(n,k)), where phi is Euler's totient function (0 <= k <= n). ; 1,1,1,1,1,1,1,2,2,1,1,2,2,2,1,1,4,4,4,4,1,1,2,8,8,8,2,1,1,6,12,24,24,12,6,1,1,4,12,24,24,24,12,4,1,1,6,12,24,36,36,24,12,6,1,1,4,24,32,48,72,48,32,24,4,1,1,10,40,80,80,120,120,80,80,40,10,1,1,4,20,80,2...
/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * 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 r...
DOSSEG .MODEL small .CODE salc macro db 0d6h endm PUBLIC _cga_draw_hline _cga_draw_hline PROC ARG buff:DWORD, x0:WORD, x1:WORD, y:WORD, colour:BYTE ; draw a line from (x0, y) - (x1, y) including endpoints in the given colour (0-3) push bp mov bp, sp push di les...
; A157130: Partial sums of A128201. ; 1,4,8,13,20,29,40,53,68,84,101,120,141,164,189,216,245,276,309,344,380,417,456,497,540,585,632,681,732,785,840,897,956,1017,1080,1144,1209,1276,1345,1416,1489,1564,1641,1720,1801,1884,1969,2056,2145,2236,2329 lpb $0 mov $2,$0 sub $0,1 seq $2,128201 ; Union of positive square...
#ifndef _RECORD_LIST #define _RECORD_LIST #include "record.hpp" typedef struct RecordNode* RecordNodePtr; struct RecordNode { RecordNodePtr next; Record* item; RecordNode(RecordNodePtr _next, Record* _item) { next = _next; item = _item; } ~RecordNode(void) { delete item; } }; class R...
#include <iostream> #include <sstream> #include <string> #include <ctime> #include <cstdio> #include <opencv2/core.hpp> #include <opencv2/core/utility.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/calib3d.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/videoio.hpp> #include <opencv2/highgui.hpp> using...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r14 push %r8 push %rcx lea addresses_normal_ht+0xa560, %rcx nop nop add $20893, %r14 movb (%rcx), %r11b inc %rcx lea addresses_WT_ht+0x16634, %r10 cmp $15479, %r14 mov $0x6162636465666768, %r12 movq %r12, %xmm1 vmovups %ymm1, (%r...
/* * If not stated otherwise in this file or this component's Licenses.txt file * the following copyright and licenses apply: * * Copyright 2020 RDK Management * * 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 ...
; A047507: Numbers that are congruent to {0, 4, 6, 7} mod 8. ; 0,4,6,7,8,12,14,15,16,20,22,23,24,28,30,31,32,36,38,39,40,44,46,47,48,52,54,55,56,60,62,63,64,68,70,71,72,76,78,79,80,84,86,87,88,92,94,95,96,100,102,103,104,108,110,111,112,116,118,119,120,124 add $0,6 mov $1,$0 div $1,4 mov $2,$0 lpb $2 mov $3,$0 add...
#include "basic_includes.hpp" using namespace std; // Keep current max/min because min might become max with next num! // Remember to reset when meeting 0 class Solution { public: int maxProduct(vector<int>& nums) { int best_sum = nums[0], max_sum = 1, min_sum = 1; for (auto num: ...
; A033655: Trajectory of 19 under map x->x + (x-with-digits-reversed). ; Submitted by Jamie Morken(s4) ; 19,110,121,242,484,968,1837,9218,17347,91718,173437,907808,1716517,8872688,17735476,85189247,159487405,664272356,1317544822,3602001953,7193004016,13297007933,47267087164 mov $2,$0 lpb $2 mov $0,$1 add $0,19 s...
; A047450: Numbers that are congruent to {0, 1, 2, 3, 5, 6} mod 8. ; 0,1,2,3,5,6,8,9,10,11,13,14,16,17,18,19,21,22,24,25,26,27,29,30,32,33,34,35,37,38,40,41,42,43,45,46,48,49,50,51,53,54,56,57,58,59,61,62,64,65,66,67,69,70,72,73,74,75,77,78,80,81,82,83,85,86,88 mov $1,$0 div $0,2 mul $0,2 div $0,3 add $1,$0
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Set/Reset the couple of vectors being part of a "stencil" ; Basic concept by Rafael de Oliveira Jannone (calculate_side) ; ; Stefano Bodrato - 13/3/2009 ; ; ; $Id: stencil_init.asm,v 1.4 2016-04-22 20...
; A042302: Numerators of continued fraction convergents to sqrt(678). ; Submitted by Jon Maiga ; 26,677,35230,916657,47701394,1241152901,64587652246,1680520111297,87451633439690,2275422989543237,118409447089688014,3080921047321431601,160326303907804131266,4171564822650228844517,217081697081719704046150,5648295688947362...
/* * ===================================================================================== * * Filename: st.cpp * * Description: * * Version: 1.0 * Created: 02/26/2020 11:32:13 AM * Revision: none * Compiler: gcc * * Author: José Cleiton Borges Correia (JCBC)...
;++ ; CpuInfo ; Copyright (c) 2017-2018, Aidan Khoury. 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 requi...
; Substitute for z80 cpir instruction ; aralbrec 02.2008 ; flag-perfect emulation of cpir PUBLIC rcmx_cpir .rcmx_cpir jr nc, enterloop call enterloop scf ret .loop inc hl .enterloop dec bc cp (hl) jr z, match inc c dec c jr nz, loop inc b djnz loop .nomatch ...
SECTION code_clib PUBLIC pointxy_MODE0 .pointxy_MODE0 defc NEEDpoint = 1 INCLUDE "gfx/gencon/pixel.inc"
# ================================================================================================ # extern uint8_t hex_to_char(const char* from) __z88dk_fastcall __z88dk_callee; # ================================================================================================ public _hex_to_char # hl contains a poin...
#include "../../MacAddress.hpp" #include "./WifiP2pConfig.hpp" #include "../../../../JString.hpp" #include "./WifiP2pConfig_Builder.hpp" namespace android::net::wifi::p2p { // Fields // QJniObject forward WifiP2pConfig_Builder::WifiP2pConfig_Builder(QJniObject obj) : JObject(obj) {} // Constructors WifiP2pCon...
SECTION code_fp_math32 PUBLIC _f32_fam9511_fastcall EXTERN m32_f32_fam9511 defc _f32_fam9511_fastcall = m32_f32_fam9511 PUBLIC _f32_fam9511 EXTERN cm32_sdcc_f32_fam9511 defc _f32_fam9511 = cm32_sdcc_f32_fam9511 PUBLIC _fam9511_f32_fastcall EXTERN m32_fam9511_f32 defc _fam9511_f32_fastcall = m32_fam95...
; A141596: Triangle T(n,k) = 4*binomial(n,k)^2-3, read by rows, 0<=k<=n. ; 1,1,1,1,13,1,1,33,33,1,1,61,141,61,1,1,97,397,397,97,1,1,141,897,1597,897,141,1,1,193,1761,4897,4897,1761,193,1,1,253,3133,12541,19597,12541,3133,253,1,1,321,5181,28221,63501,63501,28221,5181,321,1,1,397,8097,57597,176397,254013,176397,57597,809...
// Computes R2 = max(R0, R1) // R0, R1, R2 refer to RAM[0], RAM[1], RAM[2] @R0 D=M // D = first number @R1 D=D-M // D = first number - second number @OUTPUT_FIRST D;JGT // if D>0 (first is greater) goto output_first @R1 D=M // D = ...
// license:BSD-3-Clause // copyright-holders:Sergey Svishchev /********************************************************************** formats/dvk_mx_dsk.cpp Floppies used by DVK MX: controller http://torlus.com/floppy/forum/viewtopic.php?f=19&t=1384 Track format is almost entirely driver-dependent (...
; void *balloc_addmem(unsigned char q, size_t num, size_t size, void *addr) SECTION code_alloc_balloc PUBLIC _balloc_addmem EXTERN l0_balloc_addmem_callee _balloc_addmem: pop af exx pop bc exx pop bc pop hl pop de push de push hl push bc push bc push af jp l0_balloc_...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1eb99, %rsi lea addresses_WC_ht+0xf799, %rdi clflush (%rsi) nop nop nop nop xor $51993, %r11 mov $60, %rcx rep movsb nop nop nop sub %r8, %r8 lea addresses_WT_ht+0x2799, %rsi...
push ebp ; Save old bp mov ebp, esp ; Set stack location push edi ; Save old edi mov edi, [ebp+8] ; Move param info edi xor ecx, ecx ; Zeroize counter not ecx ; Maximize counter xor al, al ; Zero byte for comparison repne scasb ; Scan string repeating sub edi, [ebp+8] ; Calculate distance mov eax, edi ; Set ret...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x11502, %r11 nop nop add %rdx, %rdx mov $0x6162636465666768, %rsi movq %rsi, %xmm0 movups %xmm0, (%r11) nop nop nop nop nop add $36203, %rdx lea addresses_A_ht+0x508a, %r15 xor...
; A121240: Numerator of sum_{k=1..n} 1/2^prime(k). ; Submitted by Christian Krause ; 1,3,13,53,849,3397,54353,217413,3478609,222630977,890523909,56993530177,911896482833,3647585931333,58361374901329,3735127993685057,239048191595843649,956192766383374597,61196337048535974209 seq $0,40 ; The prime numbers. sub $0,1 seq ...
; ; Small C+ Runtime Library ; ; CP/M functions ; ; CPM Plus "userf" custom Amstrad calls, for Amstrad CPC & PCW and ZX Spectrum +3 ; ; ; $Id: a_biosver.asm,v 1.2 2017-01-02 20:06:48 aralbrec Exp $ ; SECTION code_clib PUBLIC a_biosver PUBLIC _a_biosver EXTERN subuserf INCLUDE "targe...
; A276960: a(n) = A000262(n)^2. ; 1,1,9,169,5329,251001,16410601,1416242689,155514288609,21128299481809,3474052208270281,679096541717605881,155504946117339546289,41199419449380747871369,12496348897836314700506409 seq $0,262 ; Number of "sets of lists": number of partitions of {1,...,n} into any number of lists, where ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xc68f, %rsi lea addresses_A_ht+0x1b4db, %rdi nop nop nop nop nop add %rbp, %rbp mov $42, %rcx rep movsq nop nop nop nop and $64098, %rcx lea addresses_A_ht+0x12a5b, %r8 nop no...
; A010914: Pisot sequence E(5,17), a(n) = floor(a(n-1)^2 / a(n-2) + 1/2). ; 5,17,58,198,676,2308,7880,26904,91856,313616,1070752,3655776,12481600,42614848,145496192,496755072,1696027904,5790601472,19770350080,67500197376,230460089344,786839962624,2686439671808,9172078761984,31315435704320,106917585293312,36503946976460...
; subtracts the amount the player paid from their money ; sets carry flag if there is enough money and unsets carry flag if not SubtractAmountPaidFromMoney_: ld de,wPlayerMoney ld hl,hMoney ; total price of items ld c,3 ; length of money in bytes call StringCmp ret c ld de,wPlayerMoney + 2 ld hl,hMoney + 2 ; tot...
; A017723: Binomial coefficients C(n,59). ; 1,60,1830,37820,595665,7624512,82598880,778789440,6522361560,49280065120,340032449328,2163842859360,12802736917880,70907466006720,369731787035040,1824010149372864,8550047575185300,38223742100828400,163512674542432600,671262558647881200,2651487106659130740,10100903263463355200...
; ; MSX specific routines ; by Stefano Bodrato, December 2007 ; ; int msx_break(); ; ; Checks if the Ctrl-STOP key is being pressed (1 = pressed, 0 = not pressed) ; ; ; $Id: msx_break.asm,v 1.5 2016-06-16 19:30:25 dom Exp $ ; SECTION code_clib PUBLIC msx_break PUBLIC _msx_break EXTERN msxbios IF FORms...
/* * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <Kernel/Debug.h> #include <Kernel/Locking/Mutex.h> #include <Kernel/Locking/MutexProtected.h> #include <Kernel/Net/ARP.h> #include <Kernel/Net/EtherType.h> #include <Kernel/Net/EthernetFrameHead...
SendToBack PROTO :DWORD UpdateRAEdit PROTO :DWORD CreateDlg PROTO :HWND MakeDialog PROTO :DWORD,:DWORD DlgEnumProc PROTO :DWORD,:DWORD PGM_FIRST equ 1400h PGM_SETCHILD equ PGM_FIRST+1 PGM_RECALCSIZE equ PGM_FIRST+2 PGM_FORWARDMOUSE equ PGM_FIRST+3 PGM_SETBKCOLOR equ PGM_FIRST+4 PGM_GETBKCOLOR ...
; A215459: Arises in quick gossiping without duplicate transmission. ; 1,2,4,8,12,16,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110 mov $1,$0 lpb $1 mov $1,6 lpe add $0,1 mul $1,2 add $1,$0 trn $1,6 add $1,$0
TalkToTrainerScript:: faceplayer trainerflagaction CHECK_FLAG iftrue AlreadyBeatenTrainerScript loadtemptrainer encountermusic sjump StartBattleWithMapTrainerScript SeenByTrainerScript:: loadtemptrainer encountermusic showemote EMOTE_SHOCK, LAST_TALKED, 30 callasm TrainerWalkToPlayer applymovementlasttalked...
; A199572: Number of round trips of length n on the cycle graph C_2 from any of the two vertices. ; 1,0,4,0,16,0,64,0,256,0,1024,0,4096,0,16384,0,65536,0,262144,0,1048576,0,4194304,0,16777216,0,67108864,0,268435456,0,1073741824,0,4294967296,0,17179869184,0,68719476736,0,274877906944,0 mov $1,-2 pow $1,$0 trn $1,0
; A309490: Total number of adjacent node merge operations to turn a circular list of size n to a node. ; Submitted by Jon Maiga ; 0,1,6,28,145,876,6139,49120,442089,4420900,48629911,583558944,7586266285,106207728004,1593115920075,25489854721216,433327530260689,7799895544692420,148198015349155999,2963960306983120000,622...
org 0 cpu 8086 mov ax,cs mov ds,ax mov si,message mov cx,messageEnd-message int 0x64 mov al,'A' int 0x65 sti mov al,'B' int 0x65 mov ax,0x40 mov ds,ax mov ax,[0x6c] delayLoop: mov bx,[0x6c] sub bx,ax cmp bx,91 jbe delayLoop mov al,'C' int 0x65 int 0x60 mov al,'D' in...
; This example shows one of possible ways to use multiple STRUCT definitions ; as some kind of C-language-like "union" ; ; The "receive_buffer" is single block of memory large enough to accomodate ; any of the specific "commands" ; ; RECEIVE_BUFFER_HEADER struct defines the initial header shared across all "commands" ;...
TITLE LZW-EXPANDER Copyright (c) SLR Systems 1989 INCLUDE MACROS INCLUDE SLR32 PUBLIC EXP_STRUCT_SIZE,SLRPACK_PARAS,SLR_SKIP_PARAS PUBLIC SLR_STACK_ADR,SLR_START_ADR,SLR_PACK_LEN PUBLIC POS_TABLE,POS_TABLE_LEN,SLRUNPACK,FIX_INT21 EXP_STRUCT STRUC CURN_CHARSET_SIZE DW ? LIMIT EQU CURN_CHARSET_SIZE CURN_...
#include <insider_kernel.h> #include "addkeys.h" #include "mixcols.h" #include "shiftrows.h" #include "structure.h" #include "subbytes.h" void app_aes_process_5(ST_Queue<bool> &reset_app_aes_process_5, ST_Queue<unsigned int> &app_aes_proc_5_params, ST_Queue<unsigned int> ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1a1bb, %rsi lea addresses_UC_ht+0x9678, %rdi nop nop nop inc %rax mov $87, %rcx rep movsb nop nop nop add %r12, %r12 lea addresses_WT_ht+0x4ef8, %r15 nop cmp $50038, %r8 ...
db 0 ; species ID placeholder db 100, 134, 110, 61, 95, 100 ; hp atk def spd sat sdf db ROCK, DARK ; type db 45 ; catch rate db 218 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 40 ; step cycles to hatch INCBIN "gfx/pokemon/tyranitar/front.dimensions" db GROWTH_SLOW ; grow...
.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 %r9 push %rax // Load lea addresses_PSE+0x4ea4, %rax nop nop nop nop xor %r15, %r15 movb (%rax), %r13b nop add $55087, %r12 // Store lea addresses_D+0x1e594, %r10 nop nop c...
############################################################################### # Copyright 2018 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...
; A218296: E.g.f.: Sum_{n>=0} n^n * cosh(n*x) * x^n/n!. ; Submitted by Jamie Morken(w2) ; 1,1,4,30,352,5560,109056,2540720,68401152,2087897472,71236526080,2686375597312,110951893303296,4980913763830784,241491517062512640,12575483733378816000,700015678015053758464,41480146826887546372096,2606901492484549499682816,173197...
; A130047: Left half of Pascal's triangle (A034868) modulo 2. ; Submitted by Jon Maiga ; 1,1,1,0,1,1,1,0,0,1,1,0,1,0,1,0,1,1,1,1,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,0,0,1,0,0,1,1,0,0,1,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0 lpb $0 add $1,$2 sub $0,$1...
; Display "A" for 26 times. .MODEL SMALL .STACK 100 .DATA .CODE MAIN PROC MOV AX,@DATA MOV DS,AX MOV CX, 26 L1: MOV AH, 02H MOV DL, "A" INT 21H LOOP L1 MOV AX,4C00H INT 21H MAIN ENDP END MAIN
bits 64 db 0x66, 0x0F, 0x38, 0xF8, 0x07 ; MOVDIR64B [rdi], [rax] db 0x0F, 0x38, 0xF9, 0x00 ; MOVDIRI dword ptr [rax], eax db 0xF2, 0x0F, 0x38, 0xF8, 0x00 ; ENQCMD [rax], zmmword ptr [rax] db 0xF3, 0x0F, 0x38, 0xF8, 0x00 ; ENQCMDS [rax], zmmword ptr [...
; A086303: Numbers n such that n+15 is prime. ; 2,4,8,14,16,22,26,28,32,38,44,46,52,56,58,64,68,74,82,86,88,92,94,98,112,116,122,124,134,136,142,148,152,158,164,166,176,178,182,184,196,208,212,214,218,224,226,236,242,248,254,256,262,266,268,278,292,296 add $0,5 seq $0,98090 ; Numbers k such that 2k-3 is prime. sub $0,...
; ; Posted in comp.sys.ibm.pc by Michael A. Shiels 8/16/89 ; From https://groups.google.com/forum/#!searchin/comp.sys.ibm.pc/single-step$20interrupt/comp.sys.ibm.pc/irWPIdzmCHQ/SyqEtq9mqCEJ ; ; Converted from MASM syntax to NASM syntax by Jeff Parsons 4/3/15 ; ;; title CPUID - Determine CPU & NDP Type ;; page 58,122 ;...
// Computes RAM[1] = 1+2+ ... +n // Usage: put a number (n) in RAM[0] @R0 D=M @n M=D // n = R0 @i M=1 // i = 1 @sum M=0 // sum = 0 (LOOP) @i D=M @n D=D-M @STOP D;JGT // if i > n goto STOP @sum D=M @i D=D+M @sum M=D // s...
.code pal_execute_write_cr3 proc mov cr3, rcx; ret; pal_execute_write_cr3 endp end
;-----------------------------------------------------------------------------; ; Author: Michael Schierl (schierlm[at]gmx[dot]de) ; Version: 1.0 (29 December 2012) ;-----------------------------------------------------------------------------; [BITS 32] ; Input: EBP - Data to decode ; ECX - Data length ; ...
//cpp #include "tic_tac_toe.h" bool TicTacToe::game_over() { if(check_column_win() || check_row_win() || check_diagonal_win()) { set_winner(); return true; } else if(check_board_full()) { winner = "C"; return true; } return false; } void TicTacToe::mark_boa...
; A095374: One less than the number of divisors of 2*n + 1. ; 1,1,1,2,1,1,3,1,1,3,1,2,3,1,1,3,3,1,3,1,1,5,1,2,3,1,3,3,1,1,5,3,1,3,1,1,5,3,1,4,1,3,3,1,3,3,3,1,5,1,1,7,1,1,3,1,3,5,3,2,3,3,1,3,1,3,7,1,1,3,3,3,5,1,1,5,3,1,3,3,1,7,1,2,5,1,5,3,1,1,3,3,3,7,1,1,7,1,1,3 add $0,1 mul $0,4 mov $1,$0 add $0,1 seq $0,94820 ; Parti...
////////////////////////////////////////////////////////////////////////////// // test_util_code.asm // Copyright(c) 2021 Neal Smith. // License: MIT. See LICENSE file in root directory. ////////////////////////////////////////////////////////////////////////////// // This file contains code, macros, and data that are ...
// Copyright Aleksey Gurtovoy 2001-2004 // // 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 http://www.boost.org/libs/mpl for documentation. // $Source: /cvsroot/boost/boost/libs/mpl/test/joint_view....
/** \class HLTMuonDimuonL2Filter * * See header file for documentation * * \author J. Alcaraz, P. Garcia * */ #include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h" #include "DataFormats/HLTReco/interface/TriggerRefsCollections.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #includ...
; A111069: Numbers k such that 3*k^2 + 25 is prime. ; Submitted by Jon Maiga ; 2,4,12,14,18,24,26,28,38,46,56,66,74,84,96,98,102,112,124,126,128,144,152,164,168,182,186,212,214,236,238,252,254,262,266,268,278,284,304,306,312,324,332,334,338,352,362,378,388,392,396,404,416,418,438,448,476,494,506,508,514,518,528,532,542...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rcx push %rdi push %rdx push %rsi // Load lea addresses_WT+0x10311, %rdx clflush (%rdx) nop xor $23543, %rsi movb (%rdx), %r10b nop nop and %rsi, %rsi // Store mov $0xb11, %r10 nop nop nop no...
HazeEffect_: ld a, $7 ; store 7 on every stat mod ld hl, wPlayerMonAttackMod call ResetStatMods ld hl, wEnemyMonAttackMod call ResetStatMods ; copy unmodified stats to battle stats ld hl, wPlayerMonUnmodifiedAttack ld de, wBattleMonAttack call ResetStats ld hl, wEnemyMonUnmodifiedAttack ld de, wEnemyMonAttack...
; A297663: a(n) = 5*n + 2^n. ; 1,7,14,23,36,57,94,163,296,557,1074,2103,4156,8257,16454,32843,65616,131157,262234,524383,1048676,2097257,4194414,8388723,16777336,33554557,67108994,134217863,268435596,536871057,1073741974,2147483803,4294967456,8589934757,17179869354,34359738543,68719476916,137438953657,274877907134,5497...
; A307539: Heinz numbers of square integer partitions, where the Heinz number of an integer partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k). ; 1,2,9,125,2401,161051,4826809,410338673,16983563041,1801152661463,420707233300201,25408476896404831,6582952005840035281,925103102315013629321,73885357344138503765449,120633...
MACRO_CLEAR_PLAYER MACRO X,Y mov pre_position_x,x mov pre_position_y,y call Update_Players ENDM ; MACRO_CLEAR_Barrier MACRO X,Y ; mov pre_position_x,x ; mov pre_position_y,y ; call Update_Players ; ENDM PRINT_Messages MACRO MSG PUSH AX ...
############################################################################### # Copyright 2018 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...
; ; Kaypro II pseudo graphics routines ; ; Stefano Bodrato 2018 ; ; ; $Id: plot_end_83.asm $ ; SECTION code_clib PUBLIC plot_end_83 PUBLIC plot_decode_83 EXTERN __gfx_coords .plot_decode_83 ld (__gfx_coords),hl ld c,a srl a ;and a ld b,a...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x11dd7, %r10 nop nop nop sub %r9, %r9 mov (%r10), %r14w nop nop and %rcx, %rcx lea addresses_A_ht+0xced7, %rsi lea addresses_UC_ht+0x1857, %rdi nop nop nop xor %r15, %r15 mov ...