text
stringlengths
1
1.05M
; A271427: a(n) = 7^n - a(n-1) for n>0, a(0)=0. ; 0,7,42,301,2100,14707,102942,720601,5044200,35309407,247165842,1730160901,12111126300,84777884107,593445188742,4154116321201,29078814248400,203551699738807,1424861898171642,9974033287201501,69818233010410500,488727631072873507,3421093417510114542 mov $1,7 pow $1,$0 add...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.ValueType #include "System/ValueType.hpp" // Including type: UnityEngine.Resou...
EXPORT RS232C_RECEIVE_FILE EXPORT RS232C_RECEIVE_FILE_NAME EXPORT RS232C_RECEIVE_FILE_TYPE EXPORT RS232C_RECEIVE_FILE_BEGIN EXPORT RS232C_RECEIVE_FILE_SIZE EXPORT RS232C_RECEIVE_FILE_SIZE_ACTUAL EXPORT RS232C_RECEIVE_FILE_EXEC EXPORT RS232C_RECEIVE_FILE_CHECKSUM EXPO...
/* * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood * 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 l...
#include "Factory/Module/Codec/Uncoded/Codec_uncoded.hpp" #include "Launcher/Code/Uncoded/Uncoded.hpp" using namespace aff3ct; using namespace aff3ct::launcher; template <class L, typename B, typename R, typename Q> Uncoded<L,B,R,Q> ::Uncoded(const int argc, const char **argv, std::ostream &stream) : L(argc, argv, st...
/* Copyright (c) 2005-2020, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
; A013936: a(n) = Sum_{k=1..n} floor(n/k^2). ; 1,2,3,5,6,7,8,10,12,13,14,16,17,18,19,22,23,25,26,28,29,30,31,33,35,36,38,40,41,42,43,46,47,48,49,53,54,55,56,58,59,60,61,63,65,66,67,70,72,74,75,77,78,80,81,83,84,85,86,88,89,90,92,96,97,98,99,101,102,103,104,108,109,110,112,114,115,116,117,120,123,124,125,127,128,129,130...
; A093801: a(n) = b(n)*Integral_{x=0..1/(4^n)} (1 - sqrt(x)) dx, where b(n) = 3*24^n. ; 1,12,90,594,3726,22842,138510,835434,5025726,30193722,181280430,1088036874,6529284126,39178893402,235082926350,1410526255914,8463243628926,50779720053882,304679095164270,1828076895508554,10968468346620126 mov $1,64 mov $2,1 lpb $0 ...
; duel-game.asm ; Main Game! ; ============================================================== ; Main Game Loop - broken into subroutines ; ============================================================== ;------------------------------------------------------------------------------ MAINLOOP ; Draw the game screen ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r8 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1bd53, %rsi nop nop nop nop nop and $30164, %rcx mov (%rsi), %r11d nop cmp %r10, %r10 lea addresses_WT_ht+0x9fd3, %r12 nop nop nop nop and %r11, %r11 movb $0x61, (%r12) nop n...
; BSD ; char *rindex(const char *s, int c) SECTION code_string PUBLIC rindex_callee EXTERN strrchr_callee defc rindex_callee = strrchr_callee
; A174709: Partial sums of floor(n/6). ; 0,0,0,0,0,0,1,2,3,4,5,6,8,10,12,14,16,18,21,24,27,30,33,36,40,44,48,52,56,60,65,70,75,80,85,90,96,102,108,114,120,126,133,140,147,154,161,168,176,184,192,200,208,216,225,234,243,252,261,270,280,290,300,310,320,330,341,352,363,374,385,396,408,420,432,444,456,468,481,494,507,520,5...
BITS 32 SEGMENT .text ;this function needs to mock up what a 'ret' does ;we take 2 parameters - ; * the return address to branch to ; * a pointer to the register context structure ; * we need to take all of the registers that are in ; the register parameter structure and global _doRet ; void doRet(uint32_t...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0x1d631, %rsi lea addresses_A_ht+0xe351, %rdi nop sub %rax, %rax mov $20, %rcx rep movsq nop sub $10862, %rbx lea addresses_WC_ht+0x2c31, %rsi lea addresses_A_ht+0x4e4d, %rdi cl...
; A092342: a(n) = sigma_3(3n+1). ; 1,73,344,1134,2198,4681,6860,11988,15751,25112,29792,44226,50654,73710,79508,109512,117993,160454,167832,219510,226982,299593,300764,390096,389018,500780,493040,620298,619164,779220,756112,934416,912674,1149823,1092728 mul $0,3 add $0,1 mov $2,$0 lpb $0 mov $3,$2 mov $4,$0 cmp ...
/* 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...
; A138100: The atomic numbers read along the odd-indexed rows of the Janet table of the elements. ; 1,2,5,6,7,8,9,10,11,12,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88 mov $3,$0 trn $0,1 mov $1,2 lpb $0,1 add $2,...
; A117614: a(0)=1, a(n)=4a(n-1)+2 for n odd, a(n)=4a(n-1) for n even. ; 1,6,24,98,392,1570,6280,25122,100488,401954,1607816,6431266,25725064,102900258,411601032,1646404130,6585616520,26342466082,105369864328,421479457314,1685917829256,6743671317026,26974685268104,107898741072418,431594964289672,1726379857158690,6905519...
%include "common.asm" ;The first six integer or pointer arguments are passed in registers ;RDI, RSI, RDX, RCX, R8, and R9 ;int ;cpuid_amd64(int eax_in, int ecx_in, int *eax, int *ebx, int *ecx, int *edx) PROC cpuid_amd64 ; save registers push rbx push rdx push rcx push r8 push r9 mov ra...
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved. ; X2C_HISETs constant array cpu 386 bits 32 %ifdef OS2 group DGROUP _DATA section _DATA use32 align=4 FLAT public 'DATA' %else group DGROUP _DATA section _DATA ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r14 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x1577b, %rcx nop nop add $31735, %r13 mov (%rcx), %bx add $11777, %rcx lea addresses_UC_ht+0x1c90b, %r12 nop xor $43533, %r14 mov $0x6162636465666768, %r10 movq...
/* * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or s...
[extern isr_handler] [extern irq_handler] ; Common handler for isrs isr_common_func: pusha mov ax, ds push eax mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax call isr_handler pop eax mov ds, ax mov es, ax mov fs, ax mov gs, ax popa add esp, 8 sti iret ; Common handler for ...
; A337928: Numbers w such that (F(2n+1)^2, -F(2n)^2, -w) are primitive solutions of the Diophantine equation 2*x^3 + 2*y^3 + z^3 = 1, where F(n) is the n-th Fibonacci number (A000045). ; Submitted by Jamie Morken(s4) ; 1,5,31,209,1429,9791,67105,459941,3152479,21607409,148099381,1015088255,6957518401,47687540549,326855...
;; ;; 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...
/* * Copyright 2009-2017 Alibaba Cloud 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...
/* * Performance.actor.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
;***************************************************** ; ; Video Technology library for small C compiler ; ; Juergen Buchmueller ; ;***************************************************** ; ----- void vz_clrscr(void) XLIB vz_clrscr .vz_clrscr ; almost same as clg() except ROM call might behave diffe...
; A203431: v(n+1)/v(n), where v=A203418. ; Submitted by Jon Maiga ; 2,3,30,72,1440,4536,142560,544320,23950080,106142400,6107270400,30569011200,2198617344000,12197035468800,1061932177152000,6440034727526400,662645678542848000,4347023441080320000 add $0,1 mov $3,1 lpb $0 sub $0,1 mov $1,$0 gcd $1,2 add $2,$1 ...
/* * Copyright (c) 2015 RISC-V Foundation * Copyright (c) 2017 The University of Virginia * 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 ab...
%include "debug.asm" section .rodata red: db "RED", 0 orange: db "ORANGE", 0 yellow: db "YELLOW", 0 green: db "GREEN", 0 blue: db "BLUE", 0 indigo: db "INDIGO", 0 violet: db "VIOLET", 0 array: dq red, orange, yellow, green, blue, indigo, violet section .text global color_name color_name: mov edi, edi lea rax...
// Copyright (c) 2011-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 "editaddressdialog.h" #include <qt/forms/ui_editaddressdialog.h> #include <qt/addresstablemodel.h> #include <qt/gui...
; Startup code for cc65 and Shiru's NES library ; based on code by Groepaz/Hitmen <groepaz@gmx.net>, Ullrich von Bassewitz <uz@cc65.org> FT_DPCM_OFF = $c000 ;$c000..$ffc0, 64-byte steps FT_SFX_STREAMS = 4 ;number of sound effects played at once, 1..4 .define FT_DPCM_ENABLE 1 ;undefine to exclude all DMC c...
#include "mpi.h" #include <stdio.h> int main(int argc, char *argv[]) { int rank, size, i; int buffer[10]; MPI_Status status; MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &size); MPI_Comm_rank(MPI_COMM_WORLD, &rank); if (size < 2) { printf("Please run with two proces...
; $00 = map16 tile get_act_like: LDA $06F624 STA $02 LDA $06F625 STA $03 LDA $06F626 STA $04 REP #$30 LDA $00 AND #$3FFF ASL TAY LDA [$02],y STA $00 SEP #$30 RTS
; A081367: E.g.f.: exp(2*x)/sqrt(1-2*x). ; Submitted by Jamie Morken(s2) ; 1,3,11,53,345,2947,31411,400437,5927921,99816515,1882741659,39310397557,899919305929,22410922177347,603120939234755,17441737474345973,539390080299331809,17762381612118471043,620529594188028865579,22921762697260595842485,892632021429394235757881,...
; A117472: Values of c in a^2 + b^2 = c^2, where b - a = 17 and gcd(a,b,c)=1. ; Submitted by Jon Maiga ; 25,53,137,305,797,1777,4645,10357,27073,60365,157793,351833,919685,2050633,5360317,11951965,31242217,69661157,182092985,406014977,1061315693,2366428705,6185801173,13792557253,36053491345 mov $2,1 lpb $0 sub $0,1 ...
;; ;; 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...
; Thing version section thing xdef th_vers ; V0.01 First release version. ; ; V0.02 SMS.UTHG now returns version ID in D3 rather than smashing a bit of ; supervisor stack. ; ; V0.03 TH_REMOV vectored routine is now allowed to smash A2, just ; as it says in the document ; ; V0.04 ...
#include "Vector2.h" Vector2::Vector2(void) { x = 0.0f; y = 0.0f; } Vector2::Vector2(const Vector2& v) { x = v.x; y = v.y; } Vector2::Vector2(float vx, float vy) { x = vx; y = vy; } bool Vector2::operator == (const Vector2& v) const { if ((FLOAT_EQUAL(x, v.x) == false) || (FLOAT_EQUA...
/* * Copyright 2009-2017 Alibaba Cloud 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...
%ifdef CONFIG { "RegData": { "R14": "0x0", "R13": "0x0", "R12": "0x0", "R11": "0x0" } } %endif mov r15, 0xe0000000 mov rax, 0x4142434445464748 mov [r15 + 8 * 0], rax mov [r15 + 8 * 1], rax mov [r15 + 8 * 2], rax mov [r15 + 8 * 3], rax mov [r15 + 8 * 4], rax mov [r15 + 8 * 5], rax mov [r15 + 8 * 6]...
;code:utf-8 ;PLAEYER.COM #This is a program only on Hopstepz. ;@Harumakkin ; MGSDRV's sub-routines MGS_SYSCK := 0x6010 MGS_INITM := 0x6013 MGS_PLYST := 0x6016 MGS_INTER := 0x601f MGS_MSVST := 0x6022 MGS_DATCK := 0x6028 ; Hopstepz sub-routines ST16MS := 0x0039 WT16MS := 0x003A org 0x100 scope playermgs begin: ...
; A298728: EBCDIC codes for upper case letters. ; 193,194,195,196,197,198,199,200,201,209,210,211,212,213,214,215,216,217,226,227,228,229,230,231,232,233 mov $1,$0 div $1,9 lpb $1 add $0,$1 add $0,6 sub $1,1 lpe add $0,193
;Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries. ;SPDX-License-Identifier: MIT $NOMOD51 $INCLUDE (REG52.INC) $INCLUDE (hwconf.inc) NAME PIDRV $IF (USE_PI = 1) PUBLIC _pi_read, _pi_write PROG SEGMENT CODE RSEG PROG ;* ******************************************************...
; Tuner ; Produces MOS-generated PITCH tones, ; for the purpose of tuning to a musical scale. ; Serial console is used to read keystrokes for ; coarse and fine tuning. ; 14-bit pitch value is displayed on 7-segment LEDs. ORG 0C000h ; Print intro and instructions to Console. MVI C,PSTR LXI D,SPLASH CALL MOS ...
.include "defaults_mod.asm" table_file_jp equ "exe4-utf8.tbl" table_file_en equ "bn4-utf8.tbl" game_code_len equ 3 game_code equ 0x4234574A // B4WJ game_code_2 equ 0x42345745 // B4WE game_code_3 equ 0x42345750 // B4WP card_type equ 1 card_id equ 20 card_no equ "020" card_sub equ "Mod Card 020" card_sub_x ...
.data n: 5 l: 2 -1 7 5 3 .text main: load %x0, $n, %x3 subi %x0, 1, %x4 add %x0, %x0, %x5 add %x0, %x0, %x6 loop: beq %x5, %x3, endl load %x5, $l, %x7 bgt %x7, %x4, inter addi %x5, 1, %x5 jmp loop inter: divi %x7, 2, %x20 beq %x31, %x0, countup addi %x5, 1, %5 jmp loop countup: addi %x6, 1, %x6 a...
;/*++ ; ;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. The full text of the license may be found at ...
/************************************************************************** * * Copyright 2014 Valve Software * Copyright 2015 Google Inc. * 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 obtai...
; A010871: Constant sequence: a(n) = 32. ; 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32 mov $0,32
#include "vfxgraph/node/SolvePressure.h" #include "vfxgraph/NodeHelper.h" #include "vfxgraph/RenderContext.h" #include <unirender/Context.h> #include <unirender/ShaderProgram.h> namespace { const char* cs = R"( #version 430 layout(local_size_x = 32, local_size_y = 32) in; layout(rgba32f) uniform image2D pressure_...
bits 16 mov dx, 03F8h mov si, hello out_loop: mov al, [si] test al, al jz echo_loop out dx, al inc si jmp out_loop echo_loop: in al, dx out dx, al jmp echo_loop hello: db "Hello, world!", 10, 0
%macro drawline 5 ;x1,y1,x2,y2,color mov ax,%1 push ax mov ax,%2 push ax mov ax,%3 push ax mov ax,%4 push ax mov byte[cor],%5 call line %endmacro %macro ponto 2 ; x,y,color add %1, 3 add %2, 100 push %1 push %2 call plot_xy sub %1, 3 sub %2, 100 %endmacro %macro writeword 4 mov byte[cor],...
; ; 6502/65C02 Disassembler ; ; Copyright (C) 2012 by Jeff Tranter <tranter@pobox.com> ; ; 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 ; ; Unl...
.bank RAMCODE_BANK .org (RAMCODE_MPR<<13) .code ;---------------------------------------------------------------------- ; Initialize effect draw_mesh_init: ; set vdc control register vreg #5 ; disable bg, sprite, vertical blanking and scanline interrupt stz <vdc_crl st1 #$00 st2...
;***************************************************************** ;********** BASIC DOG LCD TEST PROGRAM ********** ;***************************************************************** ; ;DOG_LCD_BasicTest.asm ; Simple test application to verify DOG LCD is properly ; wired. This test writes si...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L ; ; See "bifrost_l.h" for further details ; ---------------------------------------------------------------- ; INCLUDED IN C INTERFACE DO NOT ADD TO LIST FILE SECTION code_clib SECTION ...
.686 .model flat, c ;Implementation for this Assembly File ;extern "C" bool IsItEven(int value); ; Branchless Assembly ; 1 = True ; 0 = False .const dword_two DWORD 2 dword_neg_one DWORD -1 .code IsItEven proc push ebp ;push 32 bit pointer register(base pointer) mov ebp, esp ;move val from 32 bit stack point...
; A139544: Numbers which are not the difference of two squares of positive integers. ; 1,2,4,6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230 mov $1,$0 trn $1,3 add ...
; Tests length counter timing in mode 1. .include "prefix_apu.a" reset: jsr setup_apu lda #2;) First length is clocked too soon sta result jsr sync_apu lda #$18 ; load length with 2 sta $4003 lda #$80 ; begin mode 1, clock length ...
; A145135: Expansion of x/((1 - x - x^4)*(1 - x)^6). ; Submitted by Christian Krause ; 0,1,7,28,84,211,470,960,1836,3334,5806,9769,15973,25495,39869,61266,92743,138587,204790,299705,434952,626669,897239,1277674,1810906,2556330,3596075,5043660,7055942,9849608,13723939,19092231,26525165,36810670,51036551,70704539,9788771...
; A168124: a(n) = n^2*(n^6+1)/2. ; 0,1,130,3285,32776,195325,839826,2882425,8388640,21523401,50000050,107179501,214990920,407865445,737894626,1281445425,2147483776,3487878865,5509980450,8491781701,12800000200,18911429901,27437937010,39155492905,55037657376,76293945625,104413532626,141214768605,188900999560,250123206901...
// // basic_datagram_socket.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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) // #ifndef EGT_ASIO_...
#include "SRTP_OutgoingMessageHandler.h" #include "SRTP_CommonTypes.h" #include "SRTP_GlobalVariables.h" #include "SRTP_ConnectionTable.h" #include "SRTP_PeerTable.h" #include <iostream> SRTP_OutgoingMessageHandler::SRTP_OutgoingMessageHandler(SRTP_OutgoingBuffer *out_buf_ptr) { std::clog<<"ENTER:\t SRTP_Ou...
; A085636: Erroneous version of A046142. ; 1,7,33,185,553,1233,2321,3913,6105,8993,12673,17241,22793,29425,37233,46313,56761,68673,82145,97273,114153,132881,153553,176265,201113,228193,257601,289433,323785,360753,400433,442921,488313,536705 mul $0,4 lpb $0 sub $0,1 trn $0,4 mov $2,$0 add $0,2 div $0,2 add ...
db 0 ; 447 DEX NO db 40, 70, 40, 60, 35, 40 ; hp atk def spd sat sdf db FIGHTING, FIGHTING ; type db 75 ; catch rate db 72 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F12_5 ; gender ratio db 100 ; unknown 1 db 25 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/sinnoh/riolu/fr...
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ class Solution { public: ListNode* reverseList...
.data a.0: .word 0 t0: .word 0 b.1: .word 0 .text runtime: addi $sp, $sp, -4 sw $ra, 0($sp) lw $ra, 0($sp) addi $sp, $sp, 4 jr $ra .end runtime .globl main .ent main main: li $3, -1 # a.0 -> $3 addi $5, $3, 1 move $6, $5 # b.1 -> $6 # Store dirty variables back into memory sw $3, a.0 sw $5, t0 ...
; A022850: Integer nearest nx, where x = sqrt(7). ; 0,3,5,8,11,13,16,19,21,24,26,29,32,34,37,40,42,45,48,50,53,56,58,61,63,66,69,71,74,77,79,82,85,87,90,93,95,98,101,103,106,108,111,114,116,119,122,124,127,130,132,135,138,140,143,146,148,151,153,156,159,161,164,167,169,172,175,177,180,183,185,188,190,193,196,198,201,20...
; Upper case character table/conversion V2.00  1986 Tony Tebby QJUMP ; ; Reduced code size version (MK) section cv xdef cv_upcas ;+++ ; Convert character to upper case ; ; Registers: ; Entry Exit ; D1.w character (MSB ignored) upper-case equivalent ;--- cv_upcas andi.w #$ff,d1 cmpi.b #'a',d1 bl...
; A001348: Mersenne numbers: 2^p - 1, where p is prime. ; 3,7,31,127,2047,8191,131071,524287,8388607,536870911,2147483647,137438953471,2199023255551,8796093022207,140737488355327,9007199254740991,576460752303423487,2305843009213693951,147573952589676412927,2361183241434822606847,9444732965739290427391,60446290980731458...
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publi...
; Filename: bind_shell.nasm ; Author: Shawn Banta ; ; Purpose: Binds to a configurable port and execs a shell on incoming connection global _start section .text _start: ; Create the Socket ; socketcall = 0x66 xor eax, eax mov al, 0x66 ; sys_socket = 0x1 xor ebx, ebx mov bl, 0x1 ; socket parameters ; AF...
#include <benchmark/benchmark.h> #include "SegmentSet-generator.hpp" #include <omp.h> #include <iostream> PSET generate_test_set(int seed, int size){ rc::Random r(seed); auto generator = rc::gen::arbitrary<PSET>(); auto ret_val = generator(r,size).value(); std::cout << "set size = " << ret_val.segments.size() << s...
#include <cstdlib> #include <cstring> #include <algorithm> #include "cpu.h" #define GLOBAL_VALUE_DEFINE #include "include/common.hh" #include "include/result.hh" #include "include/util.hh" #include "../include/random.hh" #include "../include/util.hh" #include "tpcc_initializer.hpp" #include "tpcc_query.hpp" #inclu...
; A196513: a(n) = 1*4*7 + 4*7*10 + 7*10*13 + ... (n terms). ; 0,28,308,1218,3298,7250,13938,24388,39788,61488,91000,129998,180318,243958,323078,420000,537208,677348,843228,1037818,1264250,1525818,1825978,2168348,2556708,2995000,3487328,4037958,4651318,5331998,6084750,6914488,7826288,8825388,9917188,11107250,12401298,13...
LXI SP,5000 LXI H,4000 LXI B,4004 MVI D,04 ZONE: LDAX B ADD M STAX B INX B INX H DCR D JNZ ZONE RST 1
############################################################################### # 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...
; uchar esxdos_f_readdir(uchar handle, void *buf) SECTION code_clib SECTION code_esxdos PUBLIC _esxdos_f_readdir EXTERN l0_esxdos_f_readdir_callee _esxdos_f_readdir: pop de dec sp pop af pop hl push hl dec sp push de jp l0_esxdos_f_readdir_callee
#include "test/integration/multiplexed_integration_test.h" #include <algorithm> #include <string> #include "envoy/config/bootstrap/v3/bootstrap.pb.h" #include "envoy/config/cluster/v3/cluster.pb.h" #include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" #include "common/bu...
INITDS MACRO MOV AX,@DATA ;Initialization of data segment MOV DS,AX ;(to access data) ENDM INIT8255 MACRO MOV AL,CW ;Initialization of 8255 using control word MOV DX,CR ; by passing 82h to control reg. OUT DX,AL ; (to make port A as output) ENDM OUTPA MACRO ; one is enough MOV DX,PA OUT DX,AL ENDM EXIT MACRO ...
# Luis Maya # CS 218 Section #1002 # CS 218, MIPS Assignment #4 # Write a simple assembly language program to # compute the Fibonacci and Perrin Sequences. ##################################################################### # data segment .data # ----- # Constants MIN = 3 MAX = 45 # --...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x53ec, %rsi lea addresses_WC_ht+0x8054, %rdi clflush (%rdi) and $28585, %rbx mov $8, %rcx rep movsw xor $7291, %r8 lea addresses_A_ht+0x1c0dc, %r15 clflush (%r15) and $57161, %...
; A120199: a(1)=6; a(n)=floor((53+sum(a(1) to a(n-1)))/8). ; 6,7,8,9,10,11,13,14,16,18,20,23,26,29,32,36,41,46,52,58,66,74,83,93,105,118,133,150,168,189,213,240,270,303,341,384,432,486,547,615,692,778,876,985,1108,1247,1403,1578,1775,1997,2247,2528,2844,3199,3599,4049,4555,5124,5765,6485,7296,8208,9234,10388,11687,1314...
;----------------------------------------------------------------------------- ; Paul Wasson - 2021 ;----------------------------------------------------------------------------- ; Macros ;----------------------------------------------------------------------------- .macro StringInv s .repeat .strlen(s), I ...
/* * Copyright 2016-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 ...
/* * Dependency control scoreboard kernel for MBAFF frame * Copyright © <2010>, Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including *...
; A062125: Fifth column of A046741. ; Submitted by Jamie Morken(s4) ; 5,56,263,815,1982,4115,7646,13088,21035,32162,47225,67061,92588,124805,164792,213710,272801,343388,426875,524747,638570,769991,920738,1092620,1287527,1507430,1754381,2030513,2338040,2679257,3056540,3472346,3929213,4429760,4976687,5572775,6220886,6923...
; A267937: Binary representation of the n-th iteration of the "Rule 251" elementary cellular automaton starting with a single ON (black) cell. ; Submitted by Simon Strandgaard ; 1,101,11111,1111111,111111111,11111111111,1111111111111,111111111111111,11111111111111111,1111111111111111111,111111111111111111111,1111111111...
; A144720: a(0) = 2, a(1) = 3, a(n) = 4 * a(n-1) - a(n-2). ; 2,3,10,37,138,515,1922,7173,26770,99907,372858,1391525,5193242,19381443,72332530,269948677,1007462178,3759900035,14032137962,52368651813,195442469290,729401225347,2722162432098,10159248503045 mov $1,2 mov $2,3 lpb $0 sub $0,1 add $2,$1 add $2,$1 add ...
# Echo characters over serial (requires a USB to UART cable) include ../bronzebeard/definitions/GD32VF103.asm CLOCK_FREQ = 8000000 # default GD32BF103 clock freq USART_BAUD = 115200 # desired USART baud rate # jump to "main" since programs execute top to bottom # we do this to enable writing helper funcs at the ...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1cd2d, %r13 nop nop nop nop add $41017, %rdi mov $0x6162636465666768, %r12 movq %r12, %xmm6 vmovups %ymm6, (%r13) nop nop nop and $52452, %rsi lea addresses_D_ht+0x70ed, ...
# # VOS kernel # Copyright 2018 Michal Harasimowicz # # Declare constants used for creating a multiboot header. .set ALIGN, 1<<0 # align loaded modules on page boundaries .set MEMINFO, 1<<1 # provide memory map .set GRAPHICS, 1 << 2 # flag for starting graphics mode (not used) ....
#ruledef test { ld {x: u8} => 0x55 @ x } ld 6 * 2 ; = 0x550c
;***************************************************** ; ; Video Technology library for small C compiler ; ; Juergen Buchmueller ; ;***************************************************** ; ----- void vz_char_draw(int x, int y, int c, char ch) SECTION code_clib PUBLIC vz_char_draw PUBLIC _vz_char_draw EXTERN vz_shape ...
; A137325: Number of terms in the Janet periodic table of the elements 32 columns: ordered 14 2's, 10 4's, 6 6's, 2 8's. ; 2,2,2,2,2,2,2,2,2,2,2,2,2,2,4,4,4,4,4,4,4,4,4,4,6,6,6,6,6,6,8,8 sub $0,1 pow $0,2 div $0,165 mov $1,$0 add $1,1 div $1,2 mul $1,2 add $1,2
;###########################################; ; Graphics management library, and assets. ; ;###########################################; .DATA ; DATA FOR PHAGE IMAGE ; Structure is this way: ; - byte Width (in pixels) ; - byte Height (in pixels) ; TOTAL: 2 bytes per image header IMAGE_WIDTH EQU 0 IMAGE_HEIGHT EQU...
; A159966: Lodumo_4 of A102370 (sloping binary numbers). ; 0,3,2,1,4,7,6,5,8,11,10,9,12,15,14,13,16,19,18,17,20,23,22,21,24,27,26,25,28,31,30,29,32,35,34,33,36,39,38,37,40,43,42,41,44,47,46,45,48,51,50,49,52,55,54,53,56,59,58,57,60,63,62,61,64,67,66,65,68,71,70,69,72,75,74,73,76,79,78,77,80,83,82,81,84,87,86,85,88,91,9...