text
stringlengths
1
1.05M
DATA SEGMENT DATA ENDS SSEG SEGMENT STACK dw 100h dup(?) SSEG ENDS CODE SEGMENT ASSUME CS:CODE, DS:DATA, SS: SSEG start: mov ax, DATA mov ds, ax mov ax,1 mov bx,2 mov cx,3 mov dx,4 ; IRP input,<ax,bx,cx,dx> push input endm ;AX<=>BX, CX<=>DX IRP change,<cx,dx,ax,bx> pop chang...
/* * Copyright (c) 2018, Ford Motor Company * 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 condit...
; A067406: Sixth column of triangle A067402. ; Submitted by Jon Maiga ; 1,11,396,14256,513216,18475776,665127936,23944605696,862005805056,31032208982016,1117159523352576,40217742840692736,1447838742264938496,52122194721537785856,1876399009975360290816,67550364359112970469376 mul $0,2 mov $2,1 lpb $0 sub $0,1 mov $...
; A343492: a(n) = Sum_{k=1..n} 5^(gcd(k, n) - 1). ; Submitted by Christian Krause ; 1,6,27,132,629,3162,15631,78264,390681,1953774,9765635,48831564,244140637,1220718786,6103516983,30517656528,152587890641,762939850086,3814697265643,19073488283028,95367431672037,476837167968810,2384185791015647,11920929004069128 mov $2...
; ; 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:29...
copyright zengfr site:http://github.com/zengfr/romhack 003AF4 move.l ($2,A1), ($2a,A6) [1p+24, 1p+26, boss+24, boss+26, container+24, container+26, enemy+24, enemy+26, weapon+24, weapon+26] 003AFA move.w ($6,A1), ($30,A6) [1p+2A, 1p+2C, boss+2A, boss+2C, container+2A, container+2C, enemy+2A, enemy+2C, weapon+2A, w...
db 0 ; species ID placeholder db 100, 100, 80, 50, 60, 60 ; hp atk def spd sat sdf db ICE, GROUND ; type db 75 ; catch rate db 160 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/piloswine/f...
; A146983: a(n) = A002531(n)*A002531(n+1). ; 1,2,10,35,133,494,1846,6887,25705,95930,358018,1336139,4986541,18610022,69453550,259204175,967363153,3610248434,13473630586,50284273907,187663465045,700369586270,2613814880038,9754889933879,36405744855481,135868089488042,507066613096690,1892398362898715,7062526838498173,2635...
; A015207: Sum of Gaussian binomial coefficients for q=17. ; Submitted by Stefano Spezia ; 1,2,20,616,99472,51647264,141339210560,1246922025235072,57999437806769246464,8698341593509034791428608,6878047564149771530513399567360,17535817352622479067842954626850351104,235723767989136531816996707739814303966793728,102167576...
;; ;; Copyright (c) 2012-2020, 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 2016-2019 Red Anchor Trading Co. Ltd. Distributed under the Boost Software License, Version 1.0. See <http://www.boost.org/LICENSE_1_0.txt> */ #include "fost-crypto-test.hpp" #include <fost/crypto> #include <fost/push_back> /** <https://jwt.io/> can be used to verify test results. ...
TITLE MISC - Miscellanious routines for MS-DOS NAME MISC ; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1991 ; All Rights Reserved. ; ;** Miscellaneous system calls most of which are CAVEAT ; ; $SLEAZEFUNC ; $SLEAZEFUNCDL ; $GET_INDOS_FLAG ; $GET_IN_VARS ; $GET_DEFAULT_DPB ; $GET_DPB ; $DISK_RESE...
; Q 6> Arrange a set of given numbers in ascending order ; using bubble sort algorithm SU 4300h [4300h] = 05h ; A.length = 5 [4301h] = 01h ; A[0] = 5 [4302h] = 02h ; A[1] = 3 [4303h] = 03h ; A[2] = 1 [4304h] = 04h ; A[3] = 4 [4305h] = 05h ; A[4] = 2 . A ORG 4200h lxi h,...
; hl - server ; de - path ; bc - port openPage: ld (srv_ptr), hl : ld (path_ptr), de : ld (port_ptr), bc xor a : call changeBank ex hl, de : ld de, hist : ld bc, 322 : ldir ld hl, (srv_ptr) : ld de, (path_ptr) : ld bc, (port_ptr) call makeRequest xor a : call changeBank ld hl, page_buffe...
; A062005: Floor of arithmetic-geometric mean of n and 2n. ; 0,1,2,4,5,7,8,10,11,13,14,16,17,18,20,21,23,24,26,27,29,30,32,33,34,36,37,39,40,42,43,45,46,48,49,50,52,53,55,56,58,59,61,62,64,65,67,68,69,71,72,74,75,77,78,80,81,83,84,85,87,88,90,91,93,94,96,97,99,100,101,103,104,106,107,109,110,112,113,115,116,118,119,120...
; A048691: a(n) = d(n^2), where d(k) = A000005(k) is the number of divisors of k. ; Submitted by Christian Krause ; 1,3,3,5,3,9,3,7,5,9,3,15,3,9,9,9,3,15,3,15,9,9,3,21,5,9,7,15,3,27,3,11,9,9,9,25,3,9,9,21,3,27,3,15,15,9,3,27,5,15,9,15,3,21,9,21,9,9,3,45,3,9,15,13,9,27,3,15,9,27,3,35,3,9,15,15,9,27,3,27,9,9,3,45,9,9,9,2...
; ; TRS-80 (EG2000+HT1080) specific routines ; by Stefano Bodrato, Fall 2015 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: set_psg.asm,v 1.2 2016-06-10 21:13:58 dom Exp $ ; SECTION code_clib PUBLIC set_psg PUBLIC _set_psg EXTERN asm_set_psg set_psg: _set_psg: pop bc pop d...
; ---------------------------------------------------------------- ; Z88DK INTERFACE LIBRARY FOR THE BIFROST* ENGINE - RELEASE 1.2/L ; ; See "bifrost_h.h" for further details ; ---------------------------------------------------------------- ; void BIFROSTH_drawTilePosH(unsigned char lin,unsigned char col,unsigned cha...
; A060887: a(n) = Sum_{j=0..12} n^j. ; 1,13,8191,797161,22369621,305175781,2612138803,16148168401,78536544841,317733228541,1111111111111,3452271214393,9726655034461,25239592216021,61054982558011,139013933454241,300239975158033,619036127056621,1224880286215951,2336276859014281,4311578947368421,7723618886955973,134671456...
/* Copyright (c) 2017-2020, Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #pragma once #include "CommsBroker.hpp" #include "NetworkBrokerData.h...
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ CODE SEGMENT BYTE PUBLIC 'CODE' ASSUME CS:CODE,DS:CODE IF1 ; %OUT EGA.CPI creation file ; %OUT . ; %OUT CP SR...
; A132009: a(1) = 1; for n>=2, a(n) = n-th positive integer which is coprime to the largest prime divisor of n. ; 1,3,4,7,6,8,8,15,13,12,12,17,14,16,18,31,18,26,20,24,24,24,24,35,31,28,40,32,30,37,32,63,36,36,40,53,38,40,42,49,42,48,44,48,56,48,48,71,57,62,54,56,54,80,60,65,60,60,60,74,62,64,73,127,70,72,68,72,72,81,72...
// menus.cpp: ingame menu system (also used for scores and serverlist) #include "engine.h" #define GUI_TITLE_COLOR 0xFFDD88 #define GUI_BUTTON_COLOR 0xFFFFFF #define GUI_TEXT_COLOR 0xDDFFDD static vec menupos; static int menustart = 0; static int menutab = 1; static g3d_gui *cgui = NULL; struct menu : g3d_callba...
// cic // // cic - Copyright (C) 2017 Stanislav Demyanovich <mezozoysky@gmail.com> // // 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 from the use of this software. // // Permission is granted to anyone to use...
; This file is generated from a similarly-named Perl script in the BoringSSL ; source tree. Do not edit by hand. default rel %define XMMWORD %define YMMWORD %define ZMMWORD %ifdef BORINGSSL_PREFIX %include "boringssl_prefix_symbols_nasm.inc" %endif section .text code align=64 EXTERN OPENSSL_ia32cap_P g...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x13a2c, %r9 nop nop nop nop add %r8, %r8 movups (%r9), %xmm5 vpextrq $1, %xmm5, %rdx nop nop nop nop nop and %r13, %r13 lea addresses_A_ht+0xc8a2, %rsi lea addresses_UC_ht+0x1d...
; A320661: a(n) = 2^(n+3) - 6*n - 7. ; 1,3,13,39,97,219,469,975,1993,4035,8125,16311,32689,65451,130981,262047,524185,1048467,2097037,4194183,8388481,16777083,33554293,67108719,134217577,268435299,536870749,1073741655,2147483473,4294967115,8589934405,17179868991 mov $1,2 pow $1,$0 sub $0,$1 mul $0,3 sub $1,$0 sub $1,4...
<% from pwnlib.shellcraft import mips from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context %> <%page args="string, append_null = True"/> <%docstring> Thin wrapper around :func:`pwnlib.shellcraft.mips.pushstr`, which sets `context.os` to `'linux'` before calling. Example: ...
; A004453: Nimsum n + 12. ; Submitted by Jamie Morken(s4) ; 12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3,28,29,30,31,24,25,26,27,20,21,22,23,16,17,18,19,44,45,46,47,40,41,42,43,36,37,38,39,32,33,34,35,60,61,62,63,56,57,58,59,52,53,54,55,48,49,50,51,76,77,78,79,72,73,74,75,68,69,70,71,64,65,66,67,92,93,94,95,88,89,90,91,84,85,...
#include "Window.hpp" Window::Window(const char * title, unsigned int width, unsigned int height) : m_deltaTime(0.0f), m_lastFrameTime(0.0f), m_width(width), m_height(height) { /**************************************** * Set up GLFW ****************************************/ glfwInit(); glfwWin...
; A128893: (1/p)*(binomial(2*p,p)+2*(p-1)), where p = n-th prime. ; 4,8,52,492,64132,800048,137270956,1860277044,357975249028,1036802293087624,15013817846943908,47192717955016924592,10360599532897359064120,154361699651715243559788,34589385964790856394651396,118349529407778329236413352408,4128254187738071041328577390174...
#include <gtest/gtest.h> #include <iostream> GTEST_API_ int main(int argc, char **argv) { std::cout << "Ejecutando main() del programa gtest_main.cc\n"; testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
;; @file ; Provide FSP API entry points. ; ; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may be foun...
/** * Copyright (c) 2015, Timothy Stack * * 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 condi...
; ------------------------------------------------------------------------ ; boot.asm ; ------------------------------------------------------------------------ ; %define _BOOT_DEBUG_ ; 做 Boot Sector 时一定要将此行注释掉!将此行打开后用 nasm Boot.asm -o Boot.com 做成一个 .COM 文件易于调试 %ifdef _BOOT_DEBUG_ org 0100h ; 调试状态,做成 .COM 文件,可调试 ...
; SYNTAX option "abfl@": ; @ is error "unrecognized" (but outside of list file!) ; l is "unimplemented yet" (comments below are for future implementation) ld bc,hl ; warning ld bc,hl ; warning removed by using "fake" in this comment sub a,b ; sub b sub a,,b ...
; controls.asm ; ; Controls changing and its menu. Also contains code for new keyboard commands, ; and for InputText patch which enables usage of additional keys while inputing ; text and shift key support. ; [list -] %include "swos.inc" %include "swsmenu.inc" [list +] bits 32 extern int2str extern SaveOptionsIfNeed...
; A276123: a(0) = a(1) = a(2) = 1; for n > 2, a(n) = (a(n-1) + 1)*(a(n-2) + 1) / a(n-3). ; Submitted by Christian Krause ; 1,1,1,4,10,55,154,868,2449,13825,39025,220324,621946,3511351,9912106,55961284,157971745,891869185,2517635809,14213945668,40124201194,226531261495,639469583290,3610286238244,10191389131441,575380485...
; A001899: Number of divisors of n of form 5k+4; a(0) = 0. ; 0,0,0,0,1,0,0,0,1,1,0,0,1,0,1,0,1,0,1,1,1,0,0,0,2,0,0,1,2,1,0,0,1,0,1,0,2,0,1,1,1,0,1,0,2,1,0,0,2,1,0,0,1,0,2,0,2,1,1,1,1,0,0,1,2,0,0,0,2,1,1,0,3,0,1,0,2,0,1,1,1,1,0,0,3,0,0,1,2,1,1,0,1,0,1,1,2,0,2,2 mov $2,$0 lpb $0 mov $3,$2 dif $3,$0 cmp $3,$2 cmp...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
; PIC18F452 Configuration Bit Settings ; Assembly source line config statements #include <P18F452.inc> ; CONFIG1H CONFIG OSC = HS ; Oscillator Selection bits (HS oscillator) CONFIG OSCS = OFF ; Oscillator System Clock Switch Enable bit (Oscillator system clock switch option is disab...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "frc2/command/StartEndCommand.h" using namespace frc2; StartEndCommand::StartEndCommand(std::function<void()>...
// Copyright © 1996-2018, Valve Corporation, All rights reserved. #include "idedicated_os.h" #include "datacache/idatacache.h" #include "dedicated_common.h" #include "dedicated_steam_app.h" #include "engine_hlds_api.h" #include "inputsystem/inputsystem.h" #include "istudiorender.h" #include "materialsystem/imaterial...
; =============================================================== ; Jan 2014 ; =============================================================== ; ; char *strerror(int errnum) ; ; Return string message corresponding to errnum. ; ; =============================================================== SECTION code_clib SECTIO...
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under...
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
; void free_fastcall(void *p) INCLUDE "clib_cfg.asm" SECTION code_clib SECTION code_alloc_malloc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $01 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _free_fastcall EXTERN asm_free defc _free_fastcall = asm_free ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ELSE ;;;;;;;;;;;;;...
_Route10BattleText1:: text "Wow, are you a" line "#MANIAC too?" cont "Want to see my" cont "collection?" done _Route10EndBattleText1:: text "Humph." line "I'm not angry!" prompt _Route10AfterBattleText1:: text "I have more rare" line "#MON at home!" done _Route10BattleText2:: text "Ha-hahah-ah-ha!" done...
; Assembly for testpow-native.bas ; compiled with mcbasic -native ; 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 conso...
; A062046: Sum of even numbers between consecutive primes. ; 0,4,6,18,12,30,18,42,78,30,102,78,42,90,150,168,60,192,138,72,228,162,258,372,198,102,210,108,222,840,258,402,138,720,150,462,480,330,510,528,180,930,192,390,198,1230,1302,450,228,462,708,240,1230,762,780,798,270,822,558,282,1440,2100,618,312,630,2268,1002,17...
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; ; gfx functions ; ; void ozgetfont(int font) ; ; ; ------ ; $Id: ozgetfont.asm,v 1.2 2015/01/19 01:33:01 pauloscustodio Exp $ ; PUBLIC ozgetfont EXTERN ScrCharSet ozgetfont: ld a...
SECTION code_clib SECTION code_l PUBLIC l_small_htou EXTERN l_char2num l_small_htou: ; ascii hex string to unsigned integer ; whitespace is not skipped, leading 0x not consumed ; char consumption stops on overflow ; ; enter : de = char *buffer ; ; exit : de = & next char to interpret in buffe...
; ; Amstrad CPC library ; ****************************************************** ; ** Librería de rutinas para Amstrad CPC ** ; ** Raúl Simarro, Artaburu 2009 ** ; ****************************************************** ; ; cpc_GetScrAddress(int x, int y) __smallc ; ; ; $Id: cpc_G...
; A179436: a(n) = (3*n+7)*(3*n+2)/2. ; 7,25,52,88,133,187,250,322,403,493,592,700,817,943,1078,1222,1375,1537,1708,1888,2077,2275,2482,2698,2923,3157,3400,3652,3913,4183,4462,4750,5047,5353,5668,5992,6325,6667,7018,7378,7747,8125,8512,8908,9313,9727,10150,10582,11023,11473,11932,12400,12877,13363,13858,14362,14875,1539...
; A277985: a(n) = 3*(9*n - 1)*(3*n - 2). ; 6,24,204,546,1050,1716,2544,3534,4686,6000,7476,9114,10914,12876,15000,17286,19734,22344,25116,28050,31146,34404,37824,41406,45150,49056,53124,57354,61746,66300,71016,75894,80934,86136,91500,97026,102714,108564,114576,120750,127086 mov $1,$0 bin $1,2 mul $1,9 add $0,$1 mul $0...
; A272362: Expansion of (1 + x - x^2 - x^3 - x^4)/((1 - x)*(1 - x - 2*x^2 - 2*x^3 - x^4)). ; Submitted by Christian Krause ; 1,3,6,14,32,74,171,396,917,2124,4920,11397,26401,61158,141673,328187,760249,1761126,4079670,9450606,21892446,50714123,117479896,272143639,630424122,1460385314,3383000731,7836763241,18153959452,42...
#ifndef SYSMEL_BOOTSTRAP_ENVIRONMENT_RESULT_TYPE_INFERENCE_SLOT_HPP #define SYSMEL_BOOTSTRAP_ENVIRONMENT_RESULT_TYPE_INFERENCE_SLOT_HPP #pragma once #include "CompilerObject.hpp" #include "TypeInferenceMode.hpp" namespace Sysmel { namespace Environment { SYSMEL_DECLARE_BOOTSTRAP_CLASS(ResultTypeInferenceSlot); /** ...
// -*- C++ -*- /*! * @file PeriodicECSharedComposite.cpp * @brief DataFlowParticipant RT-Component base class * @date $Date: 2007-04-13 15:44:03 $ * @author Noriaki Ando <n-ando@aist.go.jp> * * Copyright (C) 2008 * Task-intelligence Research Group, * Intelligent Systems Research Institute, * Natio...
; A084120: a(n)=6a(n-1)-3a(n-2), a(0)=1,a(1)=3. ; 1,3,15,81,441,2403,13095,71361,388881,2119203,11548575,62933841,342957321,1868942403,10184782455,55501867521,302456857761,1648235544003,8982042690735,48947549512401,266739169002201,1453592365476003,7921336685849415 mov $1,1 mov $3,1 lpb $0 sub $0,1 mov $2,$3 add ...
.data zero: .float 0.0 # You can not use registers from outside of the coprocessor 1 in floats and doubles. # Therefore, we will define $f0 as our zero register. number: .float 3.14 # float is a basic unit to store float numbers. .text lwc1 $f0, zero # load .float variable "zero" by using load word coprocessor...
;; ;; 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...
/** * @file * @brief Damage-dealing spells not already handled elsewhere. * Other targeted spells are covered in spl-zap.cc. **/ #include "AppHdr.h" #include "spl-damage.h" #include <functional> #include "act-iter.h" #include "areas.h" #include "attack.h" #include "beam.h" #include "cloud.h" #include ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Sikacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "feerate.h" #include "tinyformat.h" const std::string CURRENCY_UNIT =...
.data a.0: .space 12 t0: .word 0 t1: .word 0 t2: .word 0 t3: .word 0 x.1: .word 0 t4: .word 0 y.2: .word 0 t5: .word 0 z.3: .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: la $3, a.0 lw $5, 0($3) # variable...
INCLUDE "hardware.inc" INCLUDE "header.inc" ;-------------------------------------------------------------------------- ;- RESTART VECTORS - ;-------------------------------------------------------------------------- SECTION "RST_00",HOME[$0000] ret SEC...
; ; Bubble Sort Program ; .386 .model flat,stdcall .STACK include kernel32.inc include masm32.inc includelib kernel32.lib includelib masm32.lib .DATA ExitMsg byte "Press any key to continue . . . ", 00dh, 00ah, 0 CRLF byte 00dh, 00ah, 0 ; new line ; ; defining variables ; SPACE byte " ", 0 Unsr...
; A017807: Binomial coefficients C(91,n). ; 1,91,4095,121485,2672670,46504458,666563898,8093990190,84986896995,783768050065,6426898010533,47325339895743,315502265971620,1917283000904460,10682005290753420,54834293825867556,260462895672870891,1149101010321489225,4724081931321677925,18150420051920130975,653415121869124715...
SECTION "sec", ROM0 X0 EQUS "0" m: MACRO \1 EQUS STRCAT("{X\2}", "+0") ENDM n = 0 REPT $7E n1 = n + 1 NSTR EQUS STRSUB("{n}", 2, STRLEN("{n}") - 1) N1STR EQUS STRSUB("{n1}", 2, STRLEN("{n1}") - 1) XN1 EQUS STRCAT("X", "{N1STR}") m XN1, {NSTR} PURGE NSTR, N1STR, XN1 n = n + 1 ENDR ; string of 127 zeros sepa...
;*************************************************************************** ; Linked list example in 6809, using indexed addressing ; copyright Hurray Banana 2018 ;*************************************************************************** ;*************************************************************************** ; ...
db "BAGWORM@" ; species name db "Usually found" next "hanging on to a" next "fat tree trunk. It" page "shoots out bits of" next "its shell when it" next "sees action.@"
/* This file is part of the Zenipex Library (zenilib). * Copyright (C) 2011 Mitchell Keith Bloch (bazald). * * zenilib is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the L...
;; ;; Copyright (c) 2019-2020, 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 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...
#define CATCH_CONFIG_MAIN #include <catch2/catch.hpp> #include <mitama/dimensional/systems/si/derived_units/inductance.hpp> #include <mitama/dimensional/systems/si/quantity.hpp> #include "../format_io_common.hpp" TEST_CASE("inductance_t format test", "[quantity][abbreviation]") { REQUIRE(fmt(1 | systems::si::inducta...
/* _______ ________ \ \ / _____/ ____ ___ / | \/ \ ____/ __ \ / \ / | \ \_\ \ ___/| | \ \____|__ /\______ /\___ >___| / \/ \/ \/ \/ The MIT License (MIT) COPYRIGHT (C) 2014 NGENWARE Permission is hereby granted, free of charge, to any perso...
;// demo4.asm ;// ;// Copyright (C)2005-2012 The NASMX Project ;// ;// Purpose: ;// This program demonstrates basic arithmetic operations ;// ;// Contributors: ;// Bryant Keller ;// Rob Neff ;// %include 'nasmx.inc' %include 'bsd/libc.inc' ENTRY demo4 SECTION .data strIntegerFormat DB '[+] Integer %s %d', ...
; int fprintf(FILE *stream, const char *format, ...) INCLUDE "clib_cfg.asm" SECTION code_stdio ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IF __CLIB_OPT_MULTITHREAD & $02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PUBLIC _fprintf EXTERN asm_fprintf _fprintf: push ix call asm_fprintf pop ix ret ;;;;;;;;;;;;;;;;;;;...
; BSD ; int bcmp (const void *b1, const void *b2, size_t len) SECTION code_string PUBLIC bcmp EXTERN memcmp defc bcmp = memcmp
Name: zel_end2.asm Type: file Size: 147201 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: 8228B978BFE6FEA66515DAC3A63C5C0BCC48176B Description: null
/* sched.inl,v 1.2 2001/08/22 14:21:51 joeh Exp -*- C -*- * ============================================================================= * * = LIBRARY * pace * * = FILENAME * pace/vxworks/sched.inl * * = AUTHOR * Joe Hoffert * * =======================================================...
*= $0801 .byte $4c,$16,$08,$00,$97,$32 .byte $2c,$30,$3a,$9e,$32,$30 .byte $37,$30,$00,$00,$00,$a9 .byte $01,$85,$02 jsr print .byte 13 .text "(up)oraix" .byte 0 lda #%00011011 sta db lda #%11000110 s...
PAGE ,132 TITLE C library emulation, not relying on MS-DOS. ;*****************************************************************************; ; ; ; FILE NAME: MALLOC.ASM ; ; ; ; DESCRIPTION: C library emulation routines in assembly language ; ; ; ; ...
L__routine_start__Z11test_devicev_0: test_device(): push rsi #270.20 call rand #272.14 and eax, 63 #237.30 shl eax, 12 ...
.data numberprompt: .asciiz "Enter two double numbers: \n" linefeed: .asciiz "\n" add: .asciiz "Addition: \n" sub: .asciiz "Subtraction: \n" multi: .asciiz "Multiplication: \n" divi: .asciiz "Division: \n" .text main: li $v0, 4 la $a0, numberprompt syscall jal input jal addition jal subtract ...
;export.open exported_symbols.txt ;export.label EnemizerTablesStart ;export.label EnemizerCodeStart ;export.label sprite_bush_spawn_table_overworld ;export.label sprite_bush_spawn_table_dungeons ;export.label sprite_bush_spawn_table_random_sprites ;export.label EnemizerFlags ;export.label EnemizerFlags_randomize_bushes...
; A049861: a(n)=Sum{a(k): k=0,1,2,...,n-4,n-2,n-1}; a(n-3) is not a summand; 3 initial terms required. ; Submitted by Jon Maiga ; 0,2,3,5,8,15,28,53,99,185,345,644,1202,2244,4189,7820,14598,27251,50871,94964,177275,330930,617767,1153223,2152791,4018745,7502034,14004500,26143046,48802803,91103140,170067734,317475711 mo...
; Library Test #1: Integer I/O (InputLoop.asm) ; Tests the Clrscr, Crlf, DumpMem, ReadInt, SetTextColor, ; WaitMsg, WriteBin, WriteHex, and WriteString procedures. INCLUDE Irvine32.inc .data COUNT = 4 BlueTextOnGray = blue + (lightGray * 16) DefaultColor = lightGray + (black * 16) arrayD SDWORD 12345678h,1A4B200...
; A256136: a(n) = 6^A000120(n). ; 1,6,6,36,6,36,36,216,6,36,36,216,36,216,216,1296,6,36,36,216,36,216,216,1296,36,216,216,1296,216,1296,1296,7776,6,36,36,216,36,216,216,1296,36,216,216,1296,216,1296,1296,7776,36,216,216,1296,216,1296,1296,7776,216,1296,1296,7776,1296,7776 mov $1,$0 lpb $1 div $0,2 sub $1,$0 lpe mo...
.global s_prepare_buffers s_prepare_buffers: push %r8 push %r9 push %rax push %rcx push %rdi push %rsi lea addresses_A_ht+0x1a152, %rsi lea addresses_WT_ht+0x1782, %rdi nop sub %r9, %r9 mov $79, %rcx rep movsw nop nop nop add $54999, %rdi lea addresses_WC_ht+0x8102, %r8 nop nop nop nop nop sub $53198, %rcx movb $0x61, ...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x198fc, %r10 nop nop nop dec %r12 mov (%r10), %r9w nop nop nop nop lfence lea addresses_WC_ht+0x11e9c, %rdi nop nop nop nop nop xor $25600, %r10 mov (%rdi), %r13w nop nop nop ...
.file "a03bis.c" .section .data.rel,"wa",@progbits .globl t .type t, @object t: .quad toto .quad tata .size t, 16 # ---------------------- .text .globl toto .type toto, @function toto: pushq %rbp movq %rsp, %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl (%rax), %eax leal...
;* RNG-CC65 ;* Derived from the 240p-test-mini ([240ptm]) source code with the following ;* LICENSE which also applies to this file: ;* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; Pseudorandom number generator ; ; Copyright 2018 Damian Yerrick ; ; This software is provided 'as-is', ...
; A189801: a(n) = 6*a(n-1) + 9*a(n-2), with a(0)=0, a(1)=1. ; Submitted by Christian Krause ; 0,1,6,45,324,2349,17010,123201,892296,6462585,46806174,339000309,2455257420,17782547301,128792600586,932798529225,6755924580624,48930734246769,354387726706230,2566702968458301,18589707351105876,134638570822759965,9751387910965...
; ; Small C+ Runtime Library ; ; CP/M functions ; ; CPM Plus "userf" custom Amstrad calls, for Amstrad CPC & PCW and ZX Spectrum +3 ; ; ; $Id: a_cury.asm,v 1.3 2017-01-02 20:06:48 aralbrec Exp $ ; SECTION code_clib PUBLIC a_cury PUBLIC _a_cury EXTERN subuserf INCLUDE "amstrad_userf....
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "LandscapeEditorPrivatePCH.h" #include "LandscapeEditorCommands.h" #define LOCTEXT_NAMESPACE "" void FLandscapeEditorCommands::RegisterCommands() { UI_COMMAND(ManageMode, "Mode - Manage", "", EUserInterfaceActionType::RadioButton, FInputChord())...
.file 1 "dwarf64_2loc.c" .text .loc 1 1 0 .loc 1 2 0 xorq %rax, %rax .section .debug_info .byte 1
; TITLE STANFNT - 9x14 character font for MSHERC. ;*** ;STANFNT ; ; Copyright <C> 1987, 1988, Microsoft Corporation ; ;Purpose: ; The 9x14 character is produced from this 8x14 font. For ; line-drawing characters, the 9th column is a replication of ; the 8th. Otherwise, the 9th column is blank. ; ;********************...
; A040955: Continued fraction for sqrt(987). ; 31,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2,62,2,2,2 dif $0,2 sub $0,1 mod $0,2 sub $0,1 gcd $0,4 mul $0,3 add $0,73 div $0,7 add $0,4 p...
;; ;; Copyright (c) 2019-2020, 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...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xbd6d, %rdx clflush (%rdx) nop add %r8, %r8 movb $0x61, (%rdx) nop nop nop nop dec %r10 lea addresses_UC_ht+0x8c45, %rsi nop nop nop and $41734, %r12 mov $0x616263646566676...