text
stringlengths
1
1.05M
#!/ur/local/bin/zasm -o original/ .org 100h .align 16 .db "AAA " .if 11 < 0x100 .db "richtig " .else .db "falsch " .endif .db " EEE" .align 16 .db "AAA " .if 1100 < 0x100 .db "falsch" .else .db "richtig" .endif .db " EEE" .macro TEST &arg1 .align 16 .db "AA " .if &arg1 < 0x100 .if &arg1<0 .db "...
SECTION code_fp_am9511 PUBLIC exp2 EXTERN cam32_sccz80_exp2 defc exp2 = cam32_sccz80_exp2 ; SDCC bridge for Classic IF __CLASSIC PUBLIC _exp2 EXTERN cam32_sdcc_exp2 defc _exp2 = cam32_sdcc_exp2 ENDIF
; A017795: Binomial coefficients C(79,n). ; 1,79,3081,79079,1502501,22537515,277962685,2898753715,26088783435,205811513765,1440680596355,9036996468045,51209646652255,263926640438545,1244225590638855,5391644226101705,21566576904406820,79923196763389980,275291011073898820,883829035553043580,2651487106659130740,7449416156...
; ******************************************************************************************** ; ******************************************************************************************** ; ; Name : char.asm ; Purpose : .. ; Created : 15th Nov 1991 ; Updated : 4th Jan 2021 ; Authors : Fred Bowen ; ; ****...
10001011 // push 11 (20) 10001010 // push 10 (10) 00000000 // add 10101010// pop -> 10 10001001//push 9 (3) 10001000//push 8 (4) 00000000// add 10101011//pop -> 11 00000100//DATA ... 00000011 00001010 00010100 00000000 00000000 00000000 00000000
; test source file for assembling to binary files ; build with: ; nasm -f bin -o bintest.com bintest.asm ; When run (as a DOS .COM file), this program should print ; hello, world ; on two successive lines, then exit cleanly. ; This file should test the following: ; [1] Define a text-section symbol ; [2] Define ...
#include "il2cpp-config.h" #include "metadata/GenericMetadata.h" #include "metadata/GenericMethod.h" #include "metadata/GenericSharing.h" #include "metadata/Il2CppGenericMethodCompare.h" #include "metadata/Il2CppGenericMethodHash.h" #include "os/Mutex.h" #include "utils/Memory.h" #include "vm/Class.h" #include "vm/Exce...
;------------------------------------------------------------------------------ ; ; GetInterruptState() function for ARM ; ; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> ; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> ; This program and the accompanying materials ; a...
; A097613: a(n) = binomial(2n-3,n-1) + binomial(2n-2,n-2). ; Submitted by Christian Krause ; 1,2,7,25,91,336,1254,4719,17875,68068,260338,999362,3848222,14858000,57500460,222981435,866262915,3370764540,13135064250,51250632510,200205672810,782920544640,3064665881940,12007086477750,47081501377326,184753963255176,72551044...
; A315742: Coordination sequence Gal.5.302.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,6,12,18,23,28,33,38,44,50,56,62,68,74,79,84,89,94,100,106,112,118,124,130,135,140,145,150,156,162,168,174,180,186,191,196,201,206,212,218,...
; PSOS Development Build ; https://github.com/TheBenPerson/PSOS/tree/dev ; ; Copyright (C) 2016 - 2017 Ben Stockett <thebenstockett@gmail.com> ; ; 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 Softwar...
// Distributed under the MIT License. // See LICENSE.txt for details. #include "NumericalAlgorithms/Interpolation/CubicSpanInterpolator.hpp" #include "Parallel/CharmPupable.hpp" #include "Utilities/ForceInline.hpp" #include "Utilities/Gsl.hpp" namespace intrp { namespace { template <typename ValueType> SPECTRE_ALWA...
; A162484: a(1) = 2, a(2) = 8; a(n) = 2 a(n - 1) + a(n - 2) - 4*(n mod 2). ; 2,8,14,36,82,200,478,1156,2786,6728,16238,39204,94642,228488,551614,1331716,3215042,7761800,18738638,45239076,109216786,263672648,636562078,1536796804,3710155682,8957108168,21624372014,52205852196,126036076402,304278005000,734592086398,1773462...
; A088705: First differences of A000120. One minus exponent of 2 in n. ; 0,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-3,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-4,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-3,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-5,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-3,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-4,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04...
cal $0,-1 mov $1,$0
//===-- lib/CodeGen/GlobalISel/CallLowering.cpp - Call lowering -----------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
;******************************************************************* ; sort3a.asm ; Sorting Networks ; ; Author: Kareem Omar ; kareem.omar@uah.edu ; https//github.com/komrad36 ; ; Last updated Feb 15, 2017 ;******************************************************************* ; ; SUMMARY: I present novel a...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r14 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x7eb9, %rsi nop nop nop nop add $43262, %rdx movw $0x6162, (%rsi) nop nop sub $12629, %r9 lea addresses_normal_ht+0xa07f, %r9 nop nop nop cmp $36730, %r14 mov (%r9),...
; size_t w_vector_capacity(w_vector_t *v) SECTION code_clib SECTION code_adt_w_vector PUBLIC w_vector_capacity EXTERN asm_w_vector_capacity defc w_vector_capacity = asm_w_vector_capacity ; SDCC bridge for Classic IF __CLASSIC PUBLIC _w_vector_capacity defc _w_vector_capacity = w_vector_capacity ENDIF
;-------------------------------------------------------- ; Category 8 Function 65H Verify Track - not supported for DOS 2.X and DOS 3.X. ;-------------------------------------------------------- ; ; ; IODVERIFYTRACK PROC NEAR RET IODVERIFYTRACK ENDP
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" #include "base/bind.h" #include "base/command_line.h" #include "base/files/file_pa...
ORG 00H MAIN:MOV A,#00h ;Move ‘00’ to A register. MOV P1,A ;Content of register A is moved to Port1 ACALL DELAY ;Call delay routine CPL A ;Complement the contents of register A and store it in AMOV P1,A ;Move the contents of A to Port1 ACALL DELAY ;Call d...
/** * Copyright (C) 2015-2017 Virgil Security Inc. * * Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com> * * 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)...
;; Virtual File System ;; TODO. This is but a dummy. class vfs ;! Read from a file descriptor into memory. ;: Int fd -> *Mem buf -> Int size -> Int read_size ;= read ; TODO: Should not be in the vfs. proc 0, read read = vfs.read assert rdi, na, 0, "The current VFS is dumb and only works on fd 0" cmp rdx, fil...
#include "while.h" #include "../expr/const.h" ///////////////////// // While statement // ///////////////////// void WhileNode::semant( Environ *e ){ expr=expr->semant( e ); expr=expr->castTo( Type::int_type,e ); string brk=e->setBreak( sem_brk=genLabel() ); stmts->semant( e ); e->setBreak( brk ); } void WhileNo...
.data texto: .asciiz "A Universidade Federal do ABC (UFABC) é uma instituição pública federal de ensino superior no ABC paulista." disciplina: .ascii "Arquitetura de Computadores." .text main: la $t0, imprime la $t1, disciplina srl $t1, $t1, 2 sll $t1, $t1, 2 add...
#include "ImwStatusBar.h" #include "ImwWindowManager.h" namespace ImWindow { //SFF_BEGIN ImwStatusBar::ImwStatusBar(int iHorizontalPriority, bool bAutoDeleted) { m_iHorizontalPriority = iHorizontalPriority; m_bAutoDeleted = bAutoDeleted; ImwWindowManager::GetInstance()->AddStatusBar(this); } ImwStatusBar...
;;;------------------------------------------------- ;; Configure the system clock & flash timing ;; ;; Code for F303x8, clock set to 48 MHz from HSI ;; ;; Different speed can be achieved by changing the value ;; of PLL_MUL in RCC_CFGR. ;; Cfg_RCC PROC PUSH {R0, R1, R2, LR} ; --- Flash timing config --- ...
IFNDEF INCLUDED_ONCE DEFINE INCLUDED_ONCE INCLUDE "struct_misc.asm" ; instance defined structures (those which exist, which includes notEndedOne?!) i1 name1 imod1 @mod1.name1 i2 name2 ie notEndedOne ELSE STRUCT name1 x BYTE 100 ENDS M...
# demonstrates multiple return values # ======================================== # function with 5 return values .fun multi NORMAL [F64 F64 F64 F64] = [F64 F64] .bbl start poparg a:F64 poparg b:F64 add add:F64 = a b sub sub:F64 = a b mul mul:F64 = a b div div:F64 = a b # rem mod:F64 = a b ...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 159 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %30 OpExecutionMode %4 OriginU...
;***************************************************** ; ; Video Technology library for small C compiler ; ; Juergen Buchmueller ; ;***************************************************** ; ----- void __FASTCALL__ vz_mode(int n) XLIB vz_mode .vz_mode ld a,h or l ld hl,$783b ld a,(hl) jr nz, mode1 ...
; A158689: a(n) = 66*n^2 + 1. ; 1,67,265,595,1057,1651,2377,3235,4225,5347,6601,7987,9505,11155,12937,14851,16897,19075,21385,23827,26401,29107,31945,34915,38017,41251,44617,48115,51745,55507,59401,63427,67585,71875,76297,80851,85537,90355,95305,100387,105601,110947,116425,122035,127777,133651,139657,145795,152065,1584...
; A171479: a(n) = 6*a(n-1)-8*a(n-2)+3 for n > 1; a(0) = 1, a(1) = 8. ; 1,8,43,197,841,3473,14113,56897,228481,915713,3666433,14672897,58705921,234852353,939466753,3757981697,15032156161,60129083393,240517251073,962070839297,3848287027201,15393155448833,61572636475393,246290575261697,985162359767041,3940649556508673,157...
; A083593: Expansion of 1/((1-2*x)*(1-x^4)). ; 1,2,4,8,17,34,68,136,273,546,1092,2184,4369,8738,17476,34952,69905,139810,279620,559240,1118481,2236962,4473924,8947848,17895697,35791394,71582788,143165576,286331153,572662306,1145324612,2290649224,4581298449,9162596898,18325193796,36650387592,73300775185,146601550370,293...
#include "../csg/csg.hpp"
/*! * \copy * Copyright (c) 2009-2013, Cisco Systems * 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 abo...
; A033898: Sort then Add!. ; Submitted by Jon Maiga ; 15,30,33,66,132,255,510,525,780,858,1446,2892,5181,6339,9708,10497,11976,23655,47211,58458,104046,105492,117951,229530,251889,377778,755556,1311123,2422356,4645812,5890380,5926269,8182968,9451857,10907646 mov $1,15 lpb $0 sub $0,1 seq $1,70196 ; a(n)=n plus the...
DATA SEGMENT ;LCD DATA ;variables to keep track of port data LCD_PORTA_VAL DB 0 LCD_PORTB_VAL DB 0 LCD_PORTC_VAL DB 0 ;port addresses LCD_PORTA equ 00001000B LCD_PORTB equ 00001010B LCD_PORTC equ 00001100B LCD_PORTR equ 00001110B ;END LCD DATA ;keypad define ...
Route4Script: call EnableAutoTextBoxDrawing ld hl, Route4TrainerHeader0 ld de, Route4ScriptPointers ld a, [wRoute4CurScript] call ExecuteCurMapScriptInTable ld [wRoute4CurScript], a ret Route4ScriptPointers: dw CheckFightingMapTrainers dw DisplayEnemyTrainerTextAndStartBattle dw EndTrainerBattle Route4TextP...
#include <bits/stdc++.h> #define INF 999999999 using namespace std; inline long long read() { long long x = 0; int f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar(); } while (ch >= '0' && ch <= '9') { x ...
;BUNNY MAP FIX (J) ; ;This is a repair so that the bunny is on the correct palette when going ; to and from the world map (otherwise, it goes to Link's mail palette, ; and the flesh colors replace some of the pink) ;This bug is much more noticable with custom player sprites, and so this ; fix should address the issues ...
; Verifies ASL .segment "VECTORS" .word $eaea .word init .word $eaea .segment "ZEROPAGE" zp: .byte %00100000 .byte %00100000 .code init: asl ; A will be %00100000 asl ; A will be %01000000 from last instruction asl ; A will be %10000000 from last instruction asl zp ...
_rm: 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 ...
#include "../../dist/librm2fb.hpp" int main() { srand(time(NULL)); printf("SENDING MSG UPDATE\n"); swtfb::SwtFB fb; int offset = (rand() % 1024); for (unsigned int i = 0; i < WIDTH * HEIGHT; i++) { fb.fbmem[i] = i + offset; } uint32_t x = (rand() % WIDTH); uint32_t y = (rand() % HEIGHT); if (...
CGABubbles label byte word C_BLACK Bitmap <67,41,0,BMF_MONO> db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 db 0x7f, 0xff, 0xff, 0xff, 0x00, 0x03, 0xff, 0xff, 0xc0 db 0x7f, 0xff, 0xff, 0xff, 0x80, 0x01, 0xff, 0xff, 0xc0 db 0x7f, 0xff, 0xff, 0xff, 0xc0, 0x00, 0xff, 0xc0, 0x00 db 0x...
; A033484: a(n) = 3*2^n - 2. ; 1,4,10,22,46,94,190,382,766,1534,3070,6142,12286,24574,49150,98302,196606,393214,786430,1572862,3145726,6291454,12582910,25165822,50331646,100663294,201326590,402653182,805306366,1610612734,3221225470 mov $1,2 pow $1,$0 mul $1,3 sub $1,2
\ ****************************************************************************** \ \ ELITE-A LOADER SOURCE \ \ Elite-A is an extended version of BBC Micro Elite by Angus Duggan \ \ The original Elite was written by Ian Bell and David Braben and is copyright \ Acornsoft 1984, and the extra code in Elite-A is copyright A...
; A162526: Numbers k whose largest divisor <= sqrt(k) equals 6. ; 36,42,48,54,60,66,78,102,114,138,174,186,222,246,258,282,318,354,366,402,426,438,474,498,534,582,606,618,642,654,678,762,786,822,834,894,906,942,978,1002,1038,1074,1086,1146,1158,1182,1194,1266,1338,1362 mov $1,$0 trn $1,1 seq $1,6005 ; The odd prime nu...
; Substitute for the z80 ex (sp),hl instruction ; CPU Min T Max T ; 8080 18 18 ; 8085 16 16 ; gbz80 148 148 ; r2ka 15 15 ; z180 16 16 ; z80 19 19 ; z80n 19 19 IF __CPU_GBZ80__ SECTION code_l_sccz80 PUBLIC __z80asm__ex_sp_hl __z80asm__ex_sp_hl: push af ...
; =============================================================== ; 2014 ; =============================================================== ; ; void bit_beep_di(uint16_t duration_ms, uint16_t frequency_hz) ; ; As bit_beep() but interrupts are disabled around the tone. ; Proper interrupt status is restored prior to retu...
NamesPointers:: ; entries correspond to GetName constants (see constants/text_constants.asm); MON_NAME is not handled by this table dba MoveNames ; MOVE_NAME dba ItemNames ; ITEM_NAME dbw 0, wPartyMonOT ; PARTY_OT_NAME dbw 0, wOTPartyMonOT ; ENEMY_OT_NAME dba TrainerClassNames ; TRAIN...
/// \file // Range v3 library // // Copyright Eric Niebler 2014 // // Use, modification and distribution is subject to 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) // // Project home: https://github.com/ericniebler/range-v...
/* dtkMathArray.cpp --- * * Author: Thibaud Kloczko * Created: Tue Jul 23 14:59:07 2013 (+0200) */ /* Commentary: * * For credits, see EOF */ #include "dtkMathArray.h" /*! \class dtkMathArray \brief The dtkMathArray class is a template class that provides a dynamic array of simple types. \since...
// Copyright (c) 2011-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Unit tests for denial-of-service detection/prevention code #include "chainparams.h" #include "keystore.h" #include "net.h...
/* * Copyright 2016 The Cartographer Authors * * 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...
#include <vector> #include <iostream> #include <climits> #include <algorithm> #include <queue> #include <stack> #include <map> #define Max(a, b) a > b ? a : b #define Min(a, b) a < b ? a : b using namespace std; class Solution { public: int smallestRangeI(vector<int>& A, int K) { int max = INT_MIN; ...
;; xOS32 ;; Copyright (C) 2016-2017 by Omar Mohammad. use32 ; xOS GDI -- An internal graphics library used by the xOS Kernel ; Should be easy to port to other systems is_redraw_enabled db 1 align 4 text_background dd 0x000000 text_foreground dd 0xFFFFFF system_font dd font current_buffer db 0 ; 0 if the s...
; ; Copyright (c) 2021 Alain (@AlainPlusPlus) ; ; Cascaron para juego de aventura de texto. ; Obtiene la tecla presionada por el usuario, reacciona a la opción y finaliza programa. ; section .data ;declara variables inicializadas ask db 'Pregunta/Acertijo',10,'¿Con [m]elon o con [s]andia?',10,'responde [m...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r8 push %rax push %rcx push %rdi push %rsi lea addresses_D_ht+0xb117, %rsi lea addresses_WT_ht+0x12e97, %rdi nop nop nop nop nop cmp $3882, %r8 mov $116, %rcx rep movsq nop nop nop nop nop and %r15, %r15 lea addresses_normal_ht+0x4201, %r1...
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_A_ht+0x6876, %rsi lea addresses_normal_ht+0x51e6, %rdi nop nop nop nop add $6442, %r13 mov $31, %rcx rep movsw nop nop nop sub %r8, %r8 lea addresses_normal_ht+0x2766, %rbp cmp %r15, %r15 mov ...
include "xcalm.alm" include "bitset.inc" include "automata.inc" include "regex.inc" _regex?._declare? _register, _constant?._false? _regex?._compile? _register, "xmm1" ; "(x|y|z)mm([0-9]|(1[0-9])|(2[0-9])|30|31)" _regex?._match? _check, _register, "xmm1" if (_check) display "x86 Register Match" end if
AutoDocking DB 0 ; $033F PlayerECM DB 0 ; $0340 Laser2 DB 0 ; 0343 laser Power? Not sure LaserCount DB 0 ; 0346 LASCT \ laser count =9 for pulse, cooled off? Cash DB 0,0,0,0 ; 0361 - 0364 Cash now litte endian Fuel DB 25 ; 0365 QQ14 CargoBaySize DB 70 ; 036E Car...
GoBank: ; r1 = 6002,6000 BANK0, BANK1 ; r2 = address in bank to jump to ; li r0,004E0h mov r0,@SWBANK mov r1,@SWBANK+2 li r0,00460h mov r0,@SWBANK+4 mov r2,@SWBANK+6 b @SWBANK
; A105963: Expansion of (1+4*x)/(1-x-3*x^2). ; 1,5,8,23,47,116,257,605,1376,3191,7319,16892,38849,89525,206072,474647,1092863,2516804,5795393,13345805,30731984,70769399,162965351,375273548,864169601,1989990245,4582499048,10552469783,24299966927,55957376276,128857277057,296729405885,683301237056,1573489454711,3623393165...
// Designed by Sai Teja @ Team 11 // if(a>b) then c=a-b else c=b-a @16 // 16 refers to mem. location 16 D=M // D=a @17 // 17 refers to mem. location 17 D=D-M // D=a-b @ELSE D;JLE // If (a-b)<=0 goto ELSE @18 // 18 refers to mem. loc...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r15 push %r9 push %rcx push %rdi push %rsi lea addresses_normal_ht+0x15b71, %rsi lea addresses_WT_ht+0x19b91, %rdi add $54570, %r11 mov $69, %rcx rep movsl nop nop nop nop nop cmp $37455, %r10 lea addresses_WT_ht+0xcf1, %r9 clflush (%r9) c...
// gl06.cpp : Defines the entry point for the console application. #include <stdio.h> #include <stdlib.h> // for Window // #include <GL/glut.h> // for Mac #include <GLUT/glut.h> int time = 0; void Draw(int i) { double d; glPushMatrix(); // 회전해서 그려줘!(좌표 설정) // 각각의 분마다 6도식 회전해서 그림 glRotatef(i*6, 0,0,1); // 5개마다 삼각형...
lui $1,33845 ori $1,$1,2895 lui $2,31246 ori $2,$2,63125 lui $3,57773 ori $3,$3,42625 lui $4,6612 ori $4,$4,3399 lui $5,13645 ori $5,$5,13998 lui $6,10671 ori $6,$6,18173 mthi $1 mtlo $2 sec0: nop nop nop beq $3,$2,yes0 nop no0:addiu $k1,$k1,1 yes0:addiu $k0,$k0,1 sec1: nop nop addu $2,$4,$2 beq $3,$2,yes1 n...
SFX_Snare5_2_Ch7: noisenote 7, 8, 4, 55 noisenote 6, 8, 4, 54 noisenote 5, 8, 3, 53 noisenote 4, 8, 3, 52 noisenote 3, 8, 2, 51 noisenote 2, 8, 1, 50 endchannel
; A283982: a(0) = 0, and for n > 0, a(n) = A070939(n) - A280700(n). ; Submitted by Jamie Morken(s2) ; 0,0,0,1,0,2,1,0,0,3,2,1,1,0,1,1,0,4,3,2,2,1,2,2,1,0,2,2,1,1,2,1,0,5,4,3,3,2,3,3,2,1,3,3,2,2,3,2,1,0,3,3,2,2,3,2,1,1,3,2,2,1,0,2,0,6,5,4,4,3,4,4,3,2,4,4,3,3,4,3,2,1,4,4,3,3,4,3,2,2,4,3,3,2,1,3,1,0,4,4 seq $0,324378 ; a...
.ORIG x3000 ; Dedicate R6 == Stack pointer LEA R6, SP LDR R6, R6, #0 ;Main(){ LEA R5, RNG LDR R5, R5, #0 ;Load pointer to Rand() ;---------------------------------------------- ; First Call to Rand() ;---------------------------------------------- STR R7, R6, #0 ;Push R7 (Not necessary here but good practice) ...
// Copyright 1996-2019 Cyberbotics Ltd. // // 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 agr...
ProfOaksPC: ld hl, OakPCText1 call MenuTextbox call YesNoBox jr c, .shutdown call ProfOaksPCBoot ; player chose "yes"? .shutdown ld hl, OakPCText4 call PrintText call JoyWaitAorB call ExitMenu ret ProfOaksPCBoot: ld hl, OakPCText2 call PrintText call Rate call PlaySFX ; sfx loaded by previous Rate functi...
#include "../cpudef.asm" ; put the upper 11 bits of 0xffff into r3 imm 0xffff move r3, 0 ; r3 should now equal -32 or 0xffe0 ; lets invert that xor r3, -1 ; r3 should now be 0xf or 0b1111 if.ne r3, 0b1111 error ; construct a 16 bit value in r1 without using the imm instruction move r1, 0x75 shl r1, 8 move r2, 0x4...
db 0 ; species ID placeholder db 50, 65, 107, 86, 105, 107 ; hp atk def spd sat sdf db ELECTRIC, FIRE ; type db 45 ; catch rate db 154 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_UNKNOWN ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/roto...
; A296954: Expansion of x*(1 - x + 4*x^2) / ((1 - x)*(1 - 2*x)). ; 0,1,2,8,20,44,92,188,380,764,1532,3068,6140,12284,24572,49148,98300,196604,393212,786428,1572860,3145724,6291452,12582908,25165820,50331644,100663292,201326588,402653180,805306364,1610612732,3221225468,6442450940,12884901884,25769803772,51539607548,1030...
; A082110: Array T(n,k) = k^2*n^2+5*k*n+1, read by antidiagonals. ; 1,1,1,1,7,1,1,15,15,1,1,25,37,25,1,1,37,67,67,37,1,1,51,105,127,105,51,1,1,67,151,205,205,151,67,1,1,85,205,301,337,301,205,85,1,1,105,267,415,501,501,415,267,105,1,1,127,337,547,697,751,697,547,337,127,1,1 seq $0,4247 ; Multiplication table read by a...
db DRAGONAIR ; pokedex id db 61 ; base hp db 84 ; base attack db 65 ; base defense db 70 ; base speed db 70 ; base special db DRAGON ; species type 1 db DRAGON ; species type 2 db 45 ; catch rate db 144 ; base exp yield INCBIN "pic/gsmon/dragonair.pic",0,1 ; 66, sprite dimensions dw DragonairPicFront dw DragonairPicBac...
TITLE PROG2 {EXE} Convert a letter from uppercase to lowercase ;-------------------------------------------- .MODEL SMALL .STACK ;-------------------------------------------- .DATA INPMSG DB "Enter character: ", "$" OUTMSG DB 0DH, 0AH, "Your character in lowercase -> ", "$" ERRMSG DB 0DH, 0AH, "Character must be bet...
#include "std.h" #include <cstdlib> #include "parser.h" #ifdef DEMO static const int TEXTLIMIT=16384; #else static const int TEXTLIMIT=1024*1024-1; #endif enum{ STMTS_PROG,STMTS_BLOCK,STMTS_LINE }; static bool isTerm( int c ){ return c==':' || c=='\n'; } Parser::Parser( Toker &t ):toker(&t),main_toker(&t){ } Pro...
; ; Copyright (c) 2020 Phillip Stevens ; ; This Source Code Form is subject to the terms of the Mozilla Public ; License, v. 2.0. If a copy of the MPL was not distributed with this ; file, You can obtain one at http://mozilla.org/MPL/2.0/. ; ; feilipu, August 2020 ; ;-----------------------------------------------...
; $Id: CPUMR0A.asm $ ;; @file ; CPUM - Ring-0 Assembly Routines (supporting HM and IEM). ; ; ; Copyright (C) 2006-2015 Oracle Corporation ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it...
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_D_ht+0xb3c, %rcx nop nop nop nop nop and %r15, %r15 vmovups (%rcx), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %r8 nop nop nop nop xor %r10, %r10 lea addresses_UC_ht+0xf5...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: BeatmapDifficu...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/shell.h" #include "ash/test/ash_test_base.h" #include "ui/aura/test/test_window_delegate.h" #include "ui/aura/window.h" #include "ui/display...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
; A337730: a(n) = (4*n+3)! * Sum_{k=0..n} 1 / (4*k+3)!. ; Submitted by Christian Krause ; 1,841,6660721,218205219961,20298322381652065,4313799472548696853801,1816972337837511114820981201,1372104830641374893468212163747161,1724241814377177346127894133451232399041,3403694723384093133512770088891935585284510985 mul $0,4 ...
match ,{ include 'macro/struct.inc' } match -,{ else include 'selfhost.inc' end match _ equ } include '../version.inc' BUFFER_SIZE = 4000h STACK_SIZE = 4000h format MZ heap 0 stack stack_segment:stack_top-stack_bottom entry loader:startup segment loader use16 startup: mov ax,1687h int 2Fh or ax,ax...
#include <iostream> #include <vector> using namespace std; int main(void) { int T; cin >> T; while (T--) { int N, M; vector<int> arr; vector<int> dp; cin >> N; arr.resize(N + 1); for (int i = 1; i <= N; i++) cin >> arr[i]; cin >> M; dp.resize(M + 1, 0); dp[0] = 1; for (int i = 1; i <= N; i+...
; code sizes (bytes): 8518 (incl. 0 frags, and 1606 lits); src size 0 ; assembly: 5813 lines; density: 33.23 bytes/stmt ; total bytes: 223558 (92.1% of 237.0k flash with 19130 free) ; peep hole pass: 136 instructions removed and 477 updated ; peep hole pass: 107 instructions removed and 79 updated ; peep hole pass: 0 i...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: dBase III MODULE: Export FILE: exportFile.asm AUTHOR: Ted H. Kim, 9/14/92 ROUTINES: Name Description ---- ----------- TransExport Library routine call...
// Copyright 2015 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/heap/memory-reducer.h" #include "src/flags.h" #include "src/heap/gc-tracer.h" #include "src/heap/heap-inl.h" #include "src/utils.h" #incl...
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %rcx lea addresses_UC_ht+0x10277, %r11 clflush (%r11) nop nop nop nop nop cmp $61281, %rcx mov $0x6162636465666768, %r15 movq %r15, %xmm1 and $0xffffffffffffffc0, %r11 movaps %xmm1, (%r11) add %r11, %r11 pop %rcx pop %r15 pop %r11 ret .global s_...
[org 0x0600] [bits 16] global _start _start: cli xor ax, ax mov ss, ax mov sp, ax mov ds, ax mov es, ax mov cx, 0x0100 ; 256 WORDs in MBR mov si, 0x7C00 ; Current MBR Address mov di, 0x0600 ; New MBR...
;============================================================== ; SEGA MEGA DRIVE/GENESIS - DEMO 3 - SPRITES SAMPLE ;============================================================== ; by Big Evil Corporation ;============================================================== ; A small, discreet, and complete sprites sample,...
; A158636: a(n) = 576*n^2 - 24. ; 552,2280,5160,9192,14376,20712,28200,36840,46632,57576,69672,82920,97320,112872,129576,147432,166440,186600,207912,230376,253992,278760,304680,331752,359976,389352,419880,451560,484392,518376,553512,589800,627240,665832,705576,746472,788520,831720,876072,921576,968232,1016040,1065000,1...
/* $info$ tags: Bin|Opt desc: Unused $end_info$ */ #include <FEXCore/Config/Config.h> #include "Common/ArgumentLoader.h" #include <memory> int main(int argc, char **argv, char **const envp) { FEXCore::Config::Initialize(); FEXCore::Config::AddLayer(FEXCore::Config::CreateMainLayer()); FEXCore::Config::AddLayer...
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="fd, length"/> <%docstring> Invokes the syscall ftruncate64. See 'man 2 ftruncate64' for more information. Arguments: fd(int): fd length(off64_t): length </%docstring> ${syscall('SYS_ftruncate64', fd, length)}