text
stringlengths
1
1.05M
; void __CALLEE__ *ba_AddMem_callee(uchar q, uchar numblocks, uint size, void *addr) ; 05.2005 aralbrec XLIB ba_AddMem_callee LIB BAAddMem .ba_AddMem_callee pop af pop hl pop de pop bc ex (sp),hl ld b,c ld c,l pop hl push af jp BAAddMem
;* ;* CW : Character Windows Drivers ;* ;* fx_kbd3.asm : DOS 3 Fixed keyboard driver (linked in) ;* * DOES NOT INCLUDE "kbd_code" ;* * has data in application's data segment ;***************************************************************************** include kbd_head.inc include fxdrv.inc include kbd3.inc ;* s...
/* * Copyright (C) 2012 The Android Open Source Project * * 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 app...
public _levels public _tileAttr section RODATA_0 _levels: binary "levels.nxm" IF !_ZXN section RODATA_5 ELSE section RODATA_2 ENDIF _tileAttr: binary "attrib.dat"
// // Created by hasee on 5/2/2018. // #include <glm/gtc/type_ptr.hpp> #include <glm/gtc/matrix_inverse.hpp> #include "Object.h" #include "Camera.h" #include "Lighting.h" #include "Textures.h" // How to calculate an offset into the vertex buffer #define BUFFER_OFFSET( i ) ((char *)NULL + (i)) /// // Default constru...
; int bv_priority_queue_empty(bv_priority_queue_t *q) SECTION code_adt_bv_priority_queue PUBLIC _bv_priority_queue_empty EXTERN _ba_priority_queue_empty defc _bv_priority_queue_empty = _ba_priority_queue_empty
; A329513: G.f. = (1+x)^2*(1+2*x^2-x^3)/(1-x). ; 1,3,6,9,9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8 mul $0,2 mov $1,4 add $1,$0 mul $0,7 trn $1,10 add $1,5 div $0,$1 mov $1,$0 add $1,1
.include "sprite/template.asm" .gba .create TEMP+"/6D8188.dmp",0 header anim frame @tile,@pal,@sub,@oam,1,ANIM_END tiles @tile, TEMP+"/6D8188.img.bin" pal @pal, TEMP+"/6D8188.pal.bin" subanim_none @sub oamlist_single @oam // tile x y size flip pal oam 0, 16, -69, SIZE_16x32, FLIP_NONE, 0 oam 8...
############################################################################### # 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...
; A083196: a(n) = 8*n^4 + 9*n^2 + 2. ; 2,19,166,731,2194,5227,10694,19651,33346,53219,80902,118219,167186,230011,309094,407027,526594,670771,842726,1045819,1283602,1559819,1878406,2243491,2659394,3130627,3661894,4258091,4924306,5665819,6488102,7396819,8397826 mul $0,4 pow $0,2 add $0,9 mov $1,$0 mul $1,$0 sub $1,81 di...
; A062722: a(n) = ceiling(n/3)*round(n/4). ; 0,0,1,1,2,2,4,6,6,6,12,12,12,15,20,20,24,24,30,35,35,35,48,48,48,54,63,63,70,70,80,88,88,88,108,108,108,117,130,130,140,140,154,165,165,165,192,192,192,204,221,221,234,234,252,266,266,266,300,300,300,315 add $0,2 mov $1,$0 div $0,3 div $1,4 mul $0,$1
; TRS 80 Program boot ; ; Stefano Bodrato 2008 ; ; $Id: trs80_crt0.asm,v 1.21 2016-07-15 21:03:25 dom Exp $ ; MODULE trs80_crt0 ;-------- ; Include zcc_opt.def to find out some info ;-------- defc crt0 = 1 INCLUDE "zcc_opt.def" ;-------- ; Some scope definitions ;-------- ...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x129fd, %rcx nop nop nop sub $14153, %r15 mov (%rcx), %r12 nop nop and $20569, %r9 lea addresses_normal_ht+0x12b50, %r8 nop cmp %r11, %r11 and $0xffffffffffffffc0, %r...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ;;; ;;; Copyright (c) Microsoft Corporation. All rights reserved. ;;; ;;; This file contains ARM-specific assembly code. ;;; ; __dtoi64 double precision floating point t...
;--------------------------------------------------- ; Bootloader that loads/runs a single-sector payload ; program from the boot disk. ;--------------------------------------------------- bits 16 ; Our bootloader is 512 raw bytes: we treat it all as code, although ; it has data mixed into it, too. section .text ; T...
Sound30_LaserBeam_Header: smpsHeaderStartSong 2 smpsHeaderVoice Sound30_LaserBeam_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cFM5, Sound30_LaserBeam_FM5, $FB, $05 ; FM5 Data Sound30_LaserBeam_FM5: smpsSetvoice $00 dc.b nBb7, $7F Sound30_LaserBeam_Loop00: dc.b nBb7,...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
; A037454: a(n) = Sum_{i=0..m} d(i)*6^i, where Sum_{i=0..m} d(i)*3^i is the base 3 representation of n. ; Submitted by Jamie Morken(w1) ; 0,1,2,6,7,8,12,13,14,36,37,38,42,43,44,48,49,50,72,73,74,78,79,80,84,85,86,216,217,218,222,223,224,228,229,230,252,253,254,258,259,260,264,265,266,288,289,290,294,295,296,300,301,302...
db "TINY LEAF@" ; species name db "Photosynthesis" next "occurs across its" next "body under the" page "sun. The shell on" next "its back is made" next "of hardened soil.@"
; A142303: Primes congruent to 25 mod 44. ; Submitted by Jon Maiga ; 113,157,421,509,641,773,1213,1301,1433,1609,1697,1741,1873,2137,2269,2357,2621,2753,2797,3061,3413,3457,3677,3853,4073,4337,4513,4733,4909,5261,5393,5437,5569,5657,5701,6053,6229,6317,6361,6449,6581,6977,7109,7417,7549,7681,7901,8209,8297,8429,8693,87...
// Arquivo threadpl_server.cpp // Criado em 03/12/2017 por Acrisio // Implementação da classe threadpl_server #if defined(_WIN32) #pragma pack(1) #endif #if defined(_WIN32) #include <WinSock2.h> #elif defined(__linux__) #include "../UTIL/WinPort.h" #endif #include "threadpl_server.h" #include "../UTIL/message_pool.h"...
; char *strcpy(char * restrict s1, const char * restrict s2) SECTION code_clib SECTION code_string PUBLIC strcpy_callee EXTERN asm_strcpy strcpy_callee: pop bc pop hl pop de push bc IF __CLASSIC && __CPU_GBZ80__ call asm_strcpy ld d,h ld e,l ret ELSE jp asm_strcpy ENDIF ; SDCC bridge...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; _ _ ; ; | | | | ; ; _ __ _ _| |_| |__ ___ _ __ ; ; | '_ \| | | | __|...
// Copyright (c) 2016-2019 Intel Corporation // // 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...
/* * (C) 2009 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "tests.h" #if defined(BOTAN_HAS_THRESHOLD_SECRET_SHARING) #include <botan/tss.h> #include "test_rng.h" #endif namespace Botan_Tests { namespace { #if defined(BOTAN_HAS_THRESHOLD_SECRET_SHARING) clas...
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r15 push %r8 push %rcx push %rdx push %rsi // Store mov $0x972, %rcx nop nop nop and $12021, %r15 mov $0x5152535455565758, %rdx movq %rdx, %xmm2 movups %xmm2, (%rcx) nop nop nop dec %r12 // Store lea a...
;---------------------------------------------------------------------------- ; Constant Definitions ;---------------------------------------------------------------------------- ;---------------------------------------------------------------------------- ; # "Config" Constants # ; Note Lane & Hit Height DEF WX_NOTE...
_ln: 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 ...
; A347792: Beatty sequence for 2^(2/3). ; Submitted by Jamie Morken(s1) ; 0,1,3,4,6,7,9,11,12,14,15,17,19,20,22,23,25,26,28,30,31,33,34,36,38,39,41,42,44,46,47,49,50,52,53,55,57,58,60,61,63,65,66,68,69,71,73,74,76,77,79,80,82,84,85,87,88,90,92,93,95,96,98,100,101,103 mul $0,840 div $0,529
; A053737: Sum of digits of (n written in base 4). ; 0,1,2,3,1,2,3,4,2,3,4,5,3,4,5,6,1,2,3,4,2,3,4,5,3,4,5,6,4,5,6,7,2,3,4,5,3,4,5,6,4,5,6,7,5,6,7,8,3,4,5,6,4,5,6,7,5,6,7,8,6,7,8,9,1,2,3,4,2,3,4,5,3,4,5,6,4,5,6,7,2,3,4,5,3,4,5,6,4,5,6,7,5,6,7,8,3,4,5,6 mov $2,$0 sub $0,1 lpb $0 div $2,4 mov $3,3 mul $3,$2 sub ...
MODULE lcd PUBLIC lcd SECTION code_driver INCLUDE "target/gb/def/gb_globals.def" ;; Is the STAT check required, as we are already in the HBL? lcd: LDH A,(STAT) BIT 1,A JR NZ,lcd LDH A,(LCDC) AND @11101111 ...
; A233107: Number of n X 2 0..5 arrays with no element x(i,j) adjacent to value 5-x(i,j) horizontally or vertically, top left element zero, and 1 appearing before 2 3 and 4, and 2 appearing before 3 in row major order. ; Submitted by Jon Maiga ; 2,19,313,6046,123352,2565169,53692063,1126297996,23643610702,496455294319,...
#include "stdafx.h" /* * Copyright (c) 2007-2012 SlimDX Group * * 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, ...
; A232508: Number of (n+1) X (1+1) 0..2 arrays with every element next to itself plus and minus one within the range 0..2 horizontally, diagonally or antidiagonally, with no adjacent elements equal. ; Submitted by Jon Maiga ; 4,4,8,16,28,52,96,176,324,596,1096,2016,3708,6820,12544,23072,42436,78052,143560,264048,485660...
; A032518: Sum of the integer part of 10/3-th roots of integers less than n. ; 0,1,2,3,4,5,6,7,8,9,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,69,72,75,78,81,84,87,90,93,96,99,102,105,108,111,114,117,120,123,126,129,132,135,138,141,144,147 lpb $0 add $1,$0 sub $0,1 add ...
// // Copyright (c) 2011-2013, ARM Limited. All rights reserved. // // 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 // http://opensource.org/lice...
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2015 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
; A334415: Nearest integer to n*(2-phi), where phi is the golden ratio (A001622). ; 0,0,1,1,2,2,2,3,3,3,4,4,5,5,5,6,6,6,7,7,8,8,8,9,9,10,10,10,11,11,11,12,12,13,13,13,14,14,15,15,15,16,16,16,17,17,18,18,18,19,19,19,20,20,21,21,21,22,22,23,23,23,24,24,24,25,25,26,26,26,27,27 mov $3,$0 add $0,4 mul $3,4 div $3,17 sub $0...
SECTION "ROM Bank 00", ROM0[$00] RST_0000: nop nop nop nop nop nop nop nop RST_0008: nop nop nop nop nop nop nop nop RST_0010: ld b, b nop nop nop nop nop nop nop RST_0018: nop nop nop nop nop n...
BillPhoneMornGreetingText: text "Good morning!" para "This is the #-" line "MON STORAGE SYSTEM" para "ADMINISTRATION" line "SERVICE." done BillPhoneDayGreetingText: text "Good day!" para "This is the #-" line "MON STORAGE SYSTEM" para "ADMINISTRATION" line "SERVICE." done BillPhoneNiteGreetingText: t...
; Copyright (c) 2022 Sam Blenny ; SPDX-License-Identifier: MIT ; ; MarkabForth number 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 to ...
preset_kpdr25_bombs_ceres_elevator: dw #$0000 dw $078D, $AB58 ; DDB dw $079B, $DF45 ; MDB dw $07F3, $002D ; Music Bank dw $07F5, $0006 ; Music Track dw $090F, $0000 ; Screen subpixel X position dw $0911, $0000 ; Screen X position in pixels dw $0913, $0000 ; Screen subpixel Y posi...
; code_driver to ensure we don't page ourselves out SECTION code_clib PUBLIC printc_MODE1 EXTERN generic_console_flags EXTERN generic_console_font32 EXTERN generic_console_udg32 ; c = x ; b = y ; d = character ; e = raw ; a = screen port printc_MODE1: ld l,d ld h,0 ld de,(generic_console_font...
; A275155: a(1) = 18; a(n) = 3*a(n - 1) + 2*sqrt(2*a(n - 1)*(a(n - 1) - 14)) - 14 for n > 1. ; 18,64,338,1936,11250,65536,381938,2226064,12974418,75620416,440748050,2568867856,14972459058,87265886464,508622859698,2964471271696,17278204770450,100704757350976,586950339335378,3420997278661264,19939033332632178,11621320271...
; Assembly for circle-bytecode.bas ; compiled with mcbasic ; Equates for MC-10 MICROCOLOR BASIC 1.0 ; ; Direct page equates DP_LNUM .equ $E2 ; current line in BASIC DP_TABW .equ $E4 ; current tab width on console DP_LPOS .equ $E6 ; current line position on console DP_LWID .equ $E7 ; current line width of console ; ;...
FREELINE equ 200 newgroup PROC NEAR ;hline list in gs:si push ds mov ax,SEG newdata mov ds,ax mov bx,gs:[si] add si,2 @@1: mov ax,gs:[si] add si,2 cmp ax,-32767 je @@2 mov dx,gs:[si] add si,2 cmp bx,7eh jne @@z @@z: push bx ;hline ax..dx,bx with gs:color cmp ax,dx jle @@3 xchg ax,...
; void wpoke_callee(void *addr, uint word) ; 11.2006 aralbrec SECTION code_clib PUBLIC wpoke_callee PUBLIC _wpoke_callee PUBLIC ASMDISP_WPOKE_CALLEE .wpoke_callee ._wpoke_callee pop hl pop de ex (sp),hl .asmentry ld (hl),e inc hl ld (hl),d ret DEFC ASMDISP_WPOKE_CALLEE = asmentry - wpoke_call...
;;; ; Creates a new pixel colour buffer of the specified width and height ; You must free() the memory when you dont use the buffer anymore ; ; params: ; width - The width of the buffer ; height - The height of the buffer ; ; returns: (QWORD) A pointer to the created buffer ;;; proc BufferCreate, width:...
; 6502 - Tilemap ; ; Copyright (c) 2021 Troy Schrapel ; ; This code is licensed under the MIT license ; ; https://github.com/visrealm/hbc-56 ; ; ; Tilemap structure ; --------------------- ; BufferAddressH (Page-aligned buffer - MSB) ; Size ; TilesetAddressH (Page-aligned tilset - MSB) ; InvertAddressH (Page-align...
// seed 3 lbi r0, 85 // icount 0 slbi r0, 236 // icount 1 lbi r1, 182 // icount 2 slbi r1, 127 // icount 3 lbi r2, 161 // icount 4 slbi r2, 48 // icount 5 lbi r3, 141 // icount 6 slbi r3, 180 // icount 7 lbi r4, 135 // icount 8 slbi r4, 83 // icount 9 lbi r5, 23 // icount 10 slbi r5, 163 // icount 11 lbi r6, 156 // ico...
extern m7_ippsGFpECBindGxyTblStd192r1:function extern n8_ippsGFpECBindGxyTblStd192r1:function extern y8_ippsGFpECBindGxyTblStd192r1:function extern e9_ippsGFpECBindGxyTblStd192r1:function extern l9_ippsGFpECBindGxyTblStd192r1:function extern n0_ippsGFpECBindGxyTblStd192r1:function extern k0_ippsGFpECBindGxyTblStd192r1:...
; A120571: 2n^4+6n^2+4 = 2(n^2+1)(n^2+2). ; 12,60,220,612,1404,2812,5100,8580,13612,20604,30012,42340,58140,78012,102604,132612,168780,211900,262812,322404,391612,471420,562860,667012,785004,918012,1067260,1234020,1419612,1625404,1852812,2103300,2378380,2679612,3008604,3367012,3756540,4178940,4636012,5129604,5661612,62...
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ //--------------------------------------------------------------------------- // Pre-compilation #include "Medi...
; A188085: Positions of 1 in A188083; complement of A188084. ; 1,4,5,8,9,12,15,16,19,20,23,24,27,30,31,34,35,38,39,42,45,46,49,50,53,56,57,60,61,64,65,68,71,72,75,76,79,80,83,86,87,90,91,94,95,98,101,102,105,106,109,112,113,116,117,120,121,124,127,128,131,132,135,136,139,142,143,146,147,150,151,154,157,158,161,162,165,...
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1866, %r9 nop nop nop nop nop add $58877, %r15 movw $0x6162, (%r9) nop nop nop nop inc %rsi lea addresses_A_ht+0xb0a6, %rcx nop nop nop nop nop sub %rdi, %rdi mov (%rcx), %rbp ...
%define ARCH_ARM 0 %define ARCH_MIPS 0 %define ARCH_PPC 0 %define ARCH_X86 0 %define ARCH_X86_64 1 %define CONFIG_ACCOUNTING 0 %define CONFIG_ANALYZER 0 %define CONFIG_AV1_DECODER 1 %define CONFIG_AV1_ENCODER 1 %define CONFIG_AV1_HIGHBITDEPTH 0 %define CONFIG_AV1_TEMPORAL_DENOISING 1 %define CONFIG_BIG_ENDIAN 0 %define...
; A198646: a(n) = 11*3^n-1. ; 10,32,98,296,890,2672,8018,24056,72170,216512,649538,1948616,5845850,17537552,52612658,157837976,473513930,1420541792,4261625378,12784876136,38354628410,115063885232,345191655698,1035574967096,3106724901290,9320174703872,27960524111618,83881572334856,251644717004570,754934151013712,2264802...
; A152457: Partial sums of A027444. ; 0,3,17,56,140,295,553,952,1536,2355,3465,4928,6812,9191,12145,15760,20128,25347,31521,38760,47180,56903,68057,80776,95200,111475,129753,150192,172956,198215,226145,256928,290752,327811,368305,412440,460428 lpb $0 add $1,$0 add $3,$0 sub $0,1 add $2,$3 add $2,$3 add $1,...
; A077443: Numbers k such that (k^2 - 7)/2 is a square. ; 3,5,13,27,75,157,437,915,2547,5333,14845,31083,86523,181165,504293,1055907,2939235,6154277,17131117,35869755,99847467,209064253,581953685,1218515763,3391874643,7102030325,19769294173,41393666187,115223890395,241259966797,671574048197,1406166134595,3914220398787,...
; A021423: Decimal expansion of 1/419. ; Submitted by Jamie Morken(m2) ; 0,0,2,3,8,6,6,3,4,8,4,4,8,6,8,7,3,5,0,8,3,5,3,2,2,1,9,5,7,0,4,0,5,7,2,7,9,2,3,6,2,7,6,8,4,9,6,4,2,0,0,4,7,7,3,2,6,9,6,8,9,7,3,7,4,7,0,1,6,7,0,6,4,4,3,9,1,4,0,8,1,1,4,5,5,8,4,7,2,5,5,3,6,9,9,2,8,4,0 seq $0,83811 ; Numbers n such that 2n+1 is the d...
; Author: Robert C. Raducioiu (rbct) ; Reference: http://shell-storm.org/shellcode/files/shellcode-561.php ; Shellcode: "\xeb\x48\x5f\x89\xfe\x31\xc9\xf7\xe1\xb1\x0b\x81\x37\x71\x63\x63\x75\x83\xc7\x04\xe2\xf5\x89\xf7\x89\xfb\x83\xc3\x0c\x53\x5e\x57\x5b\xb0\x06\x48\xb2\x69\xc1\xc2\x02\x66\xb9\x43\x04\x49\xcd\x80\x93\x3...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0xa118, %rcx nop nop nop add $32280, %r15 movb (%rcx), %r14b nop nop nop nop nop and %r11, %r11 lea addresses_UC_ht+0x15778, %rsi lea addresses_WT_ht+0x2498, %rdi nop nop nop nop nop cm...
; A158310: 361n + 1. ; 362,723,1084,1445,1806,2167,2528,2889,3250,3611,3972,4333,4694,5055,5416,5777,6138,6499,6860,7221,7582,7943,8304,8665,9026,9387,9748,10109,10470,10831,11192,11553,11914,12275,12636,12997,13358,13719,14080,14441,14802,15163,15524,15885,16246,16607,16968,17329,17690,18051,18412,18773,19134,19495,19...
############################################################################### # 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...
// // MatrixBase.h -- a base class for all matrix/graph classes // // $Id: MatrixBase.cc,v 1.2 2000/02/18 01:31:49 kumfert Exp $ // // Gary Kumfert, Old Dominion University // Copyright(c) 1997, Old Dominion University. All rights reserved. // // Permission to use, copy, modify, distribute and sell this software ...
;------------------------------------------------------------------------------ ; @file ; First code exectuted by processor after resetting. ; ; Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ;------------------------------------------------------...
; ; Small C z88 File functions ; Written by Dominic Morris <djm@jb.man.ac.uk> ; 22 August 1998 ** UNTESTED ** ; ; *** THIS IS A Z88 SPECIFIC ROUTINE!!! *** ; ; 11/3/99 Visited to fix, jp nz,feof_abort was jp z,feof_abort ; if we enter in with a std* stream then we exit with error ; INCLUDE "#fileio.def"...
; A139154: Natural numbers of the form (n!+7)/7. ; 721,5761,51841,518401,5702401,68428801,889574401,12454041601,186810624001,2988969984001,50812489728001,914624815104001,17377871486976001,347557429739520001,7298706024529920001 add $0,7 mov $1,2 lpb $0 mul $1,$0 sub $0,1 lpe sub $1,10080 div $1,14 add $1,721 mov $0...
ChadOakGossipScript: random 10 ifequal 0, .Blue ifequal 1, .Daisy ifequal 2, .ProfElm ifequal 3, .Dream ifequal 4, .Kurt ifequal 5, .League ifequal 6, .RadioShow ifequal 7, .Battling ifequal 8, .DaisyTea ifequal 9, .Traveled .Blue: farwritetext ChadBlueGossipText buttonsound sjump PhoneScript_HangupText_...
title "Interval Clock Interrupt" ;++ ; ; Copyright (c) Microsoft Corporation. All rights reserved. ; ; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt). ; If you do not agree to the terms, do not use the code. ; ; ; Module Name...
; 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. ;; ==++== ;; ;; ;; ==--== #include "ksarm.h" #include "asmconstants.h" #include "asmmacros.h" IMPORT VarargPIn...
lda {c2} sta ({z1}),y iny lda {c2}+1 sta ({z1}),y
#include <iostream> template <typename T, T v> struct IntegralCompiler { static const T value = v; }; template <int result, int n> struct SumLoop { static const bool cond_value = n != 0; static const int res_value = result; typedef IntegralCompiler<int, res_value> res_type; typedef SumLoop<res_value + n, n ...
; A256832: Product of first n Pell numbers Pell(1), ... , Pell(n). ; Submitted by Jamie Morken(s1) ; 1,2,10,120,3480,243600,41168400,16796707200,16544756592000,39343431175776000,225870638380130016000,3130567047948602021760000,104751903991408172250111360000,8462068308233934970708495883520000,1650314871813323167662424409...
#ifndef SEARCH_A_2D_MATRIX_II_HPP_ #define SEARCH_A_2D_MATRIX_II_HPP_ #include <vector> using namespace std; class SearchA2DMatrixII { public: bool searchMatrix(vector<vector<int>> &matrix, int target); }; #endif // SEARCH_A_2D_MATRIX_II_HPP_
SECTION code_clib SECTION code_l_sdcc PUBLIC ____sdcc_4_and_src_dehl_dst_bcix ____sdcc_4_and_src_dehl_dst_bcix: IFDEF __SDCC_IX push ix ELSE push iy ENDIF ex (sp),hl add hl,bc ld c,l ld b,h pop hl ld a,(bc) and l ld (bc),a inc bc ld a,(bc) and h ld (b...
addi $t0, $zero, 50 jal kappa addi $t5, $zero, 30 addi $t5, $zero, 30 addi $t5, $zero, 30 addi $t5, $zero, 30 keepo: addi $t1, $zero, 2 mul $t0, $t0, $t1 #t0 vira 200 jr $ra addi $t5, $zero, 30 addi $t5, $zero, 30 addi $t5, $zero, 30 addi $t5, $zero, 30 kappa: addi $t0, $t0, 50 #esperado 100 jal keepo ...
# # Test for instruction А/Х. # org 1 ptr start vtm stack,15 ntr 3 xta e60 # 6.0 div e30 # 3.0 aex e20 # 2.0 uia fail # lbl pass stop 0o12345,6 lbl fail stop 0o76543,2 #------------------------- do...
[ BITS 32 ] InitVGAH: ; NAME='Init_VGA_' mov dx, 0x3DA in al, dx .3C4: mov dx, 0x3C4 mov al, 1 out dx, al inc dx in al, dx or al, 00100000b ; Disabling screen. out dx, al dec dx mov al, 0 out dx, al inc dx in al, dx or al, 00000001b ; Activating "Sychnronous Reset". out dx, al ...
; A070337: a(n) = 2^n mod 27. ; 1,2,4,8,16,5,10,20,13,26,25,23,19,11,22,17,7,14,1,2,4,8,16,5,10,20,13,26,25,23,19,11,22,17,7,14,1,2,4,8,16,5,10,20,13,26,25,23,19,11,22,17,7,14,1,2,4,8,16,5,10,20,13,26,25,23,19,11,22,17,7,14,1,2,4,8,16,5,10,20,13,26,25,23,19,11,22,17,7,14,1,2,4,8,16,5,10,20,13,26,25,23,19,11,22,17,7,14,...
#ruledef test { ld {x} => 0x55 @ x[7:0] } ld 0 ; = 0x5500
.data .text addi $t0, $t0, 2000 addi $s0, $s0, 16 slti $t1, $t0, -1 sltiu $t2, $t0, -1 andi $t3, $t0, 20 ori $t4, $s0, 8 xori $t5, $s0, 8 # Termino do programa li $v0, 10 # Codigo para terminar o programa = 10 syscall
; nasm -f elf64 port_1_throughput_bottleneck.asm ; gcc port_1_throughput_bottleneck.o GLOBAL main main: xor rax,rax push rax push rbx push rcx push rdi ; set number of iterations mov rdi, 1000 ; allocate array on the stack sub rsp, 64 ; uncomment for running under IACA ; mov ebx, 111 ; Start marker bytes ; db 0x...
; Initialize the stack pointer MOV XL, 0xFF MOV XH, 0xFF MOV SP, X MOV F, 1 MOV G, 00010000b ; Call a subroutine... CALL :SUBROUTINE ; Do something else after the recursive function call... INC G ; Write register G to the Output Port OUTB G ; Stops program execution HLT :SUBROUTINE INC F CMP F, G JZ :SUBROUTINE_R...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 174 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %118 OpExecutionMode %4 Origin...
segment .data MsgError db "se produjo un error",0xA,0xD ;mensaje en caso de existir ; un error al crear el archivo los numeros hexadecimales son ; equivalentes a los numeros decimales 10 y 13 los cuales ; permiten el salto de linea lon equ $ -MsgError MsgExito db "archivo crea...
; A070850: Smallest prime == 1 mod (6n). ; 7,13,19,73,31,37,43,97,109,61,67,73,79,337,181,97,103,109,229,241,127,397,139,433,151,157,163,337,349,181,373,193,199,409,211,433,223,229,937,241,739,757,1033,1321,271,277,283,577,883,601,307,313,3181,1297 mul $0,6 add $0,5 seq $0,34694 ; Smallest prime == 1 (mod n).
%ifdef CONFIG { "RegData": { "XMM0": ["0xFFFFFFFFFFFFFFFF", "0x0"], "XMM1": ["0xFFFFFFFFFFFFFFFF", "0x0"], "XMM2": ["0x6162636465666768", "0x5152535455565758"] }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov rdx, 0xe0000000 mov rax, 0x7172737475767778 mov [rdx + 8 * 0], rax mov rax,...
; A047516: Numbers that are congruent to {1, 3, 4, 6, 7} mod 8. ; 1,3,4,6,7,9,11,12,14,15,17,19,20,22,23,25,27,28,30,31,33,35,36,38,39,41,43,44,46,47,49,51,52,54,55,57,59,60,62,63,65,67,68,70,71,73,75,76,78,79,81,83,84,86,87,89,91,92,94,95,97,99,100,102,103,105,107,108,110,111,113,115,116,118,119,121,123,124,126,127,12...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: Color Library FILE: UI/uiManager.asm REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 7/91 Initial version DESCRIPTION: ...
; Hello World for Intel Assembler (MSDOS) mov ax,cs mov ds,ax mov ah,9 mov dx, offset Hello int 21h xor ax,ax int 21h Hello: db "Hello World!",13,10,"$"
; A212427: a(n) = 17*n + A000217(n-1). ; 0,17,35,54,74,95,117,140,164,189,215,242,270,299,329,360,392,425,459,494,530,567,605,644,684,725,767,810,854,899,945,992,1040,1089,1139,1190,1242,1295,1349,1404,1460,1517,1575,1634,1694,1755,1817,1880,1944,2009 mov $1,$0 add $1,33 mul $0,$1 div $0,2
; A010936: Binomial coefficient C(20,n). ; 1,20,190,1140,4845,15504,38760,77520,125970,167960,184756,167960,125970,77520,38760,15504,4845,1140,190,20,1 mov $1,20 bin $1,$0
# file: lexer.asm .globl lex_init .globl lex_advance .globl lex_skip_whitespace .globl lex_integer .globl lex_get_next_token .include "macros.asm" # define token types .eqv TOK_EOF 0 .eqv TOK_INTEGER 1 .eqv TOK_PLUS 2 .eqv TOK_MINUS 3 .eqv TOK_MUL 4 .eqv TOK_DIV 5 .eqv TOK_EXP 6 .eqv TOK_LPAREN 7 .eqv TOK_RPAR...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
; ; ZX81 libraries ; ; $Id: zx_break.asm,v 1.3 2015/01/19 01:33:26 pauloscustodio Exp $ ; ;---------------------------------------------------------------- ; ; Check if the CAPS-SPACE (BREAK) key is being pressed ; ( 1 = pressed; 0 = not pressed ) ; ;---------------------------------------------------...
; void *_falloc__unlocked(void *p, size_t size) SECTION code_alloc_malloc PUBLIC _falloc__unlocked_callee _falloc__unlocked_callee: pop af pop hl pop bc push af INCLUDE "alloc/malloc/z80/asm__falloc_unlocked.asm"
; A344150: Length of the n-th word in A342910. ; 1,1,2,2,2,3,3,2,3,4,3,4,3,3,4,5,3,4,5,4,4,4,4,5,6,3,4,5,4,6,5,5,5,5,4,5,6,5,7,4,4,5,6,4,5,7,5,6,6,6,6,6,4,5,6,5,7,6,6,8,5,5,5,6,5,7,5,5,6,8,5,6,7,6,7,7,7,7,7,4,5,6,5,7,6,6 lpb $0 mov $2,$0 sub $0,1 seq $2,151842 ; a(3n)=n, a(3n+1)=2n+1, a(3n+2)=n+1. sub $0,$2 ...
/**************************************************************************** * * Copyright (c) 2013-2017 PX4 Development Team. 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. Re...
;; ;; Copyright (c) 2019-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...