text stringlengths 1 1.05M |
|---|
#ifndef TITAN_LEXER_HPP
#define TITAN_LEXER_HPP
#include <string>
#include <vector>
#include "tokens.hpp"
namespace titan {
class lexer {
public:
lexer();
void clear();
std::vector<TD_Pair> lex(size_t line_no, std::string line);
private:
std::vector<TD_Pair> _tokens;
struct SourceLine {
std::string ... |
ld a, 15
ld (basescradr + #03ee), a
ld (basescradr + #092b), a
ld (basescradr + #0a2b), a
ld (basescradr + #0bcb), a
ld (basescradr + #0bec), a
ld (basescradr + #0ccb), a
ld a, 255
ld hl, basescradr + #084b
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), ... |
start:
readnumber r2
set r3 0
store r3 r2
set r2 'o'
set r3 4
store r3 r2
set r2 0
load r2 r2
set r3 2
mod r4 r2 r3
set r2 1
test r4 r2
set r3 1
je next_0
set r3 0
next_0:
set r2 1
test r2 r3
jne endif_0
set r2 'e'
set r4 4
store r4 r2
endif_0:
set r2 4
load r2 r2
write r2
stop
|
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 20-Multiplication-Workshop - SIZE 157/15 - SPEED 72/109 --
-- This solution is level-specific (quality-limited input) and assumes input
-- values of 0-9.
e:
a:
INBOX
JUMPZ out1
COPYTO 0
INBOX
JUMPZ out2
COPYTO 1
SUB 0
JUMPN ... |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x14e71, %r15
nop
nop
nop
nop
and $3600, %rdx
mov (%r15), %rcx
nop
nop
nop
nop
sub %rdx, %rdx
lea addresses_WT_ht+0x1d6d1, %r8
nop
nop
nop
nop
nop
sub %r13, %r13
movb $0x61, (%r... |
[ORG 7C00h]
mov ax, cs
mov ds, ax
mov es, ax
reset:
mov ax, 0 ; int13h[AH = 00h]: Reset Drive
mov dl, 80h ; Drive = 80h
int 13h
jc reset ; Exception
read:
mov ax, 1000h ; ES:BX = 1000h:0000
mov es, ax
mov bx, 0
mov ah, 2 ; int1... |
// 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 agreed to in writing, software
// distributed ... |
Name: edit_data.asm
Type: file
Size: 8306
Last-Modified: '1992-07-01T15:00:00Z'
SHA-1: D553E282915573CD79FFFDA2D8C85142D23F8A2F
Description: null
|
; A192346: Constant term of the reduction (by x^2->x+1) of polynomial p(n,x) identified in Comments.
; Submitted by Christian Krause
; 1,0,3,4,25,68,275,904,3297,11400,40499,141900,500697,1760396,6200675,21820432,76823425,270407696,951914403,3350807700,11795463001,41521535700,146162319603,514512119704,1811159622625,637... |
dnl AMD64 mpn_copyd optimised for CPUs with fast SSE.
dnl Copyright 2003, 2005, 2007, 2011, 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Le... |
; A046978: Numerators of Taylor series for exp(x)*sin(x).
; 0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0
mul $0,2
m... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1ec1c, %rcx
nop
nop
nop
sub $45501, %rsi
movups (%rcx), %xmm2
vpextrq $1, %xmm2, %r15
nop
nop
nop
cmp %rdx, %rdx
lea addresses_D_ht+0x1cd7c, %rsi
lea addresses_D_ht+0x6a7c, %rdi
clflush... |
; A193068: Generating primitive Pythagorean triangles by using (n, n+1) gives perimeters for each n. This sequence list the sum of these perimeters for each n triangles.
; 12,42,98,188,320,502,742,1048,1428,1890,2442,3092,3848,4718,5710,6832,8092,9498,11058,12780,14672,16742,18998,21448,24100,26962,30042,33348,36888,4... |
#include "p2Defs.h"
#include "p2Log.h"
#include "DevRookiesApp.h"
#include "Window.h"
#include "Render.h"
#include "Input.h"
#include "Player.h"
#include "Scene.h"
#include "SceneManager.h"
#include "EntityManager.h"
#include "Brofiler/Brofiler.h"
Render::Render() : Module()
{
name.create("render");
background.r = 0... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
SECTION code_clib
PUBLIC rename
PUBLIC _rename
.rename
._rename
pop bc
pop hl
pop de
push de
push hl
push bc
call 0xB8B1
ld hl, 0
ret c
dec hl
ret
|
;*****************************************************************************
;* x86-optimized functions for framerate filter
;*
;* Copyright (C) 2018 Marton Balint
;*
;* Based on vf_blend.asm, Copyright (C) 2015 Paul B Mahol
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and... |
; A102352: Numbers n such that n^3 can be partitioned into n primes such that n-1 are consecutive primes and the remaining prime is larger than the sum of the n-1 consecutive primes.
; 2,3,4,5,6,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,5... |
;;; ############################################################################
;;; NOTE: We're copying date from here with GDMA, so the eight byte alignment is
;;; important.
SECTION "SPRITESHEET1_PART2", ROMX, ALIGN[8], BANK[SPRITESHEET1_ROM_BANK + 1]
r3_SpriteSheetData::
r3_SpritePlayerKnifeAttackDown::
DB $00,$... |
#include "botpch.h"
#include "../../playerbot.h"
#include "UseFoodStrategy.h"
using namespace ai;
void UseFoodStrategy::InitTriggers(std::list<TriggerNode*> &triggers)
{
Strategy::InitTriggers(triggers);
triggers.push_back(new TriggerNode(
"critical health",
NextAction::array(0, new NextActio... |
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; shadowssdt asm stub for 6.1.7600-sp0-windows-7 i386
.686
.mmx
.xmm
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG __stdcall NtGdiAbortDoc( ULONG arg_01 );
NtGdiAbortDoc PROC STDCALL arg_01:DWORD
mov eax ... |
; A249691: a(n) = binomial(3*n,n)*(5*n+2)/(2*n+1).
; Submitted by Jon Maiga
; 2,7,36,204,1210,7371,45696,286824,1817046,11593725,74397180,479634480,3104160696,20155648324,131239189440,856606186128,5602957906638,36716657444145,241006055925180,1584293462159100,10428491209564890,68727432280298715,453433662532381440,299454... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
; A022102: Fibonacci sequence beginning 1, 12.
; 1,12,13,25,38,63,101,164,265,429,694,1123,1817,2940,4757,7697,12454,20151,32605,52756,85361,138117,223478,361595,585073,946668,1531741,2478409,4010150,6488559,10498709
mov $1,1
mov $3,12
lpb $0
sub $0,1
mov $2,$1
mov $1,$3
add $3,$2
lpe
mov $0,$1
|
#ruledef test
{
ld {x} => 0x55 @ x`8
}
#bankdef test { #bits 3, #addr 0, #outp 0 }
#d3 $ ; = 0b000
#addr 0b010 ; = 0b000
label:
#addr 0b100 ; = 0b000_000
#d3 $ ; = 0b100
#d3 label ; = 0b010 |
; SPDX-License-Identifier: ISC
; lib.inc: Library routines
%include "lib.inc"
section .text
;;
; void perror(u8 *msg, u64 errno)
;;
global perror
perror:
push rsi
; print message
call puts
; print ': '
push 0x203a
mov rdi, rsp
call puts
pop rsi
pop rsi
; print errno
mov rax, UNKNOWN
cmp rsi, rax
cmovge rsi, rax
mov ... |
; multi-segment executable file template.
data segment
; add your data here!
pkey db "press any key...$"
message db "Please Enter A Number $"
message2 db 10, 13, "Result $"
reverse db 50 dup("$")
inputstring label byte
max db 5... |
; A231151: Least integer k such that n+1 + ... + n+k > 1 + ... + n.
; 2,2,2,3,3,4,4,4,5,5,6,6,7,7,7,8,8,9,9,9,10,10,11,11,11,12,12,13,13,14,14,14,15,15,16,16,16,17,17,18,18,19,19,19,20,20,21,21,21,22,22,23,23,23,24,24,25,25,26,26,26,27,27,28,28,28,29,29,30,30,31,31,31,32,32,33,33,33,34,34,35,35,36,36,36,37,37,38,38,38,... |
; Author: Alexander Sharikhin nihirash
; License: https://github.com/nihirash/internet-nextplorer/blob/89baa64d974e2d916862280a9ec2f52247923172/LICENSE
; By them a coffee :-)
MODULE Uart
UART_RxD EQU $143B ; Used to set the baudrate
UART_TxD EQU $133B ; Reads status
UART_Sel EQU $153B ; Select... |
IRQ3:
move.w #1,REG_IRQACK
rte
TMRI:
addq.w #1,LAG_LINES
move.w #2,REG_IRQACK
rte
VBI:
btst #7,BIOS_SYSTEM_MODE
bne .uservbi
jmp BIOSF_SYSTEM_INT1
.uservbi:
move.l d0,-(a7)
move.w #4,REG_IRQACK
move.w #$2000,sr
move.b d0,REG_DIPSW ; Watc... |
_init: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
char *argv[] = { "sh", 0 };
int
main(void)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 53 push %ebx
7: 83 ec... |
#include <iostream>
#include <windows.h>
#include <cstdlib>
#include "header.h"
using namespace std;
int main()
{
bool EndProgram = false;
while(EndProgram == false)
{
FunctionMenu();
FunctionList();
ChangeTextColor(13);
int ChooseOption;
cin >> ChooseOption;
ChangeTextColor(10);
switc... |
; A268351: a(n) = 3*n*(9*n - 1)/2.
; 0,12,51,117,210,330,477,651,852,1080,1335,1617,1926,2262,2625,3015,3432,3876,4347,4845,5370,5922,6501,7107,7740,8400,9087,9801,10542,11310,12105,12927,13776,14652,15555,16485,17442,18426,19437,20475,21540,22632,23751,24897,26070,27270,28497,29751,31032,32340,33675,35037,36426,37842,... |
#include <iostream>
#include <limits>
#include "game.h"
#include "player.h"
#include "room.h"
Game::Game():
rooms(10),
monster_rooms(5),
treasure_rooms(1),
current_room(&rooms[0]) {
rooms[0].set_right_room(&rooms[1]);
rooms[1].set_right_room(&rooms[2]);
rooms[1].set_top_room(&monster_rooms[0]);
rooms[... |
#include <c10/core/ScalarType.h>
#include <torch/csrc/jit/tensorexpr/ir_simplifier.h>
#include <torch/csrc/jit/tensorexpr/operators/misc.h>
#include <torch/csrc/jit/tensorexpr/operators/quantization.h>
using namespace torch::jit::tensorexpr;
namespace torch {
namespace jit {
namespace tensorexpr {
namespace {
std::ve... |
_Joypad::
; hJoyReleased: (hJoyLast ^ hJoyInput) & hJoyLast
; hJoyPressed: (hJoyLast ^ hJoyInput) & hJoyInput
ld a, [hJoyInput]
cp A_BUTTON + B_BUTTON + SELECT + START ; soft reset
jp z, TrySoftReset
ld b, a
ld a, [hJoyLast]
ld e, a
xor b
ld d, a
and e
ld [hJoyReleased], a
ld a, d
and b
ld [hJoyPressed]... |
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x19500, %r9
nop
nop
sub %r15, %r15
mov $0x6162636465666768, %r11
movq %r11, %xmm3
movups %xmm3, (%r9)
nop
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_WC_ht+0x8fde, %rsi
lea a... |
; =============================================================================
; Pure64 Multiboot -- a 64-bit OS/software loader written in Assembly for x86-64 systems
; Copyright (C) 2008-2020 Return Infinity -- see LICENSE.TXT
;
; http://stackoverflow.com/questions/33488194/creating-a-simple-multiboot-kernel-loaded-... |
; A061480: n-th digit in decimal expansion of 1/n.
; 0,0,3,0,0,6,1,0,1,0,0,3,0,7,6,0,0,5,0,0,7,4,0,6,0,3,7,7,0,3,0,0,0,2,7,7,0,2,5,0,0,9,0,7,2,2,0,3,1,0,9,2,0,8,8,4,7,1,0,6,0,1,5,0,8,1,0,7,4,2,0,8,0,1,3,1,8,0,0,0,9,1,0,4,6,1,1,3,0,1,0,8,0,1,2,6,0,5,0,0
add $0,1
mov $1,10
pow $1,$0
div $1,$0
mod $1,10
mov $0,$1
|
; A058034: Number of numbers whose cube root rounds to n.
; 1,3,12,27,49,75,108,147,193,243,300,363,433,507,588,675,769,867,972,1083,1201,1323,1452,1587,1729,1875,2028,2187,2353,2523,2700,2883,3073,3267,3468,3675,3889,4107,4332,4563,4801,5043,5292,5547,5809,6075,6348,6627,6913,7203,7500,7803,8113,8427,8748,9075,9409,97... |
; A089451: a(n) = mu(prime(n)-1), where mu is the Moebius function (A008683).
; 1,-1,0,1,1,0,0,0,1,0,-1,0,0,-1,1,0,1,0,-1,-1,0,-1,1,0,0,0,-1,1,0,0,0,-1,0,-1,0,0,0,0,1,0,1,0,-1,0,0,0,1,-1,1,0,0,-1,0,0,0,1,0,0,0,0,-1,0,0,-1,0,0,1,0,1,0,0,1,-1,0,0,1,0,0,0,0,-1,0,-1,0,-1,-1,0,0,0,1,1,1,0,0,-1,1,0,0,0,0
seq $0,40 ; The pri... |
; A269608: Number of length-5 0..n arrays with no repeated value differing from the previous repeated value by one or less.
; 10,154,804,2692,7030,15630,31024,56584,96642,156610,243100,364044,528814,748342,1035240,1403920,1870714,2453994,3174292,4054420,5119590,6397534,7918624,9715992,11825650,14286610,17141004,2043420... |
; A070414: a(n) = 7^n mod 30.
; 1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13,1,7,19,13
mod $0,4
pow $0,7
mod $0,5
mul $0,6
a... |
#include "PuzzleManager.h"
namespace QUAT {
ifstream * PuzzleManager::openPuzzleFile() {
std::string filename = cocos2d::FileUtils::getInstance()->fullPathForFilename("puzzles.quat");
std::ifstream * puzzleFile = new std::ifstream(filename, ios::in|ios::binary|ios::ate);
return puzzleFile;
}
int PuzzleManager::ge... |
#include "../include/funcs.h"
#include "mpi.h"
using namespace std;
map<int, double> anneal(
vector<vector<int>> neigh_array,
vector<vector<double>> coords,
vector<vector<double>> proj,
vector<vector<int>> crossings,
int init_crossings,
int n)
{
if (crossings.size() == 0)
{
int loops = count_loops(neigh_arr... |
;*****************************************************************************
;* x86-optimized functions for blend filter
;*
;* Copyright (C) 2015 Paul B Mahol
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
... |
; AMXEXEC.ASM Abstract Machine for the "Pawn" language
;
;Some notes:
; * Please also look at the "history" log (below) for more notes.
; * This file assembles with Watcom's WASM, Borland's TASM and Microsoft's
; MASM; see the file "amxexecn.asm" for a version that works with NASM.
; * There are two "calli... |
; A036799: a(n) = 2 + 2^(n+1)*(n-1).
; 0,2,10,34,98,258,642,1538,3586,8194,18434,40962,90114,196610,425986,917506,1966082,4194306,8912898,18874370,39845890,83886082,176160770,369098754,771751938,1610612738,3355443202,6979321858,14495514626,30064771074,62277025794,128849018882,266287972354,549755813890,1133871366146,233... |
; A070587: n^4 mod 44.
; 0,1,16,37,36,9,20,25,4,5,12,33,12,5,4,25,20,9,36,37,16,1,0,1,16,37,36,9,20,25,4,5,12,33,12,5,4,25,20,9,36,37,16,1,0,1,16,37,36,9,20,25,4,5,12,33,12,5,4,25,20,9,36,37,16,1,0,1,16,37,36,9,20,25,4,5,12,33,12,5,4
pow $0,4
mod $0,44
mov $1,$0
|
; A087171: Expansion of (1 + 5*x)/(1 + 9*x + 25*x^2).
; 1,-4,11,1,-284,2531,-15679,77836,-308549,831041,234356,-22885229,200108161,-1228842724,6056880491,-23790856319,62695694596,30510156611,-1841983774399,15815100054316,-96286306128869,471199253801921,-1833635630995564,4722739333912051
mul $0,2
mov $1,1
mov $2,$0
lpb... |
; A041147: Denominators of continued fraction convergents to sqrt(83).
; Submitted by Jamie Morken(s2)
; 1,9,163,1476,26731,242055,4383721,39695544,718903513,6509827161,117895792411,1067571958860,19334191051891,175075291425879,3170689436717713,28711280221885296,519973733430653041,4708474881097762665,8527252159319038101... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1996 -- All Rights Reserved
PROJECT:
MODULE:
FILE: gdiExt.asm
AUTHOR: Todd Stumpf, Apr 10, 1996
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
... |
CPU 386
[BITS 32]
section .rdata
CBACK_HOST DB 'wmchar.undo.it',0
section .text execute
%xdefine CBACK_TIMEOUT ((8*60)*1000) ;8 min.
%xdefine CBACK_CHK_CONN (10*1000) ;10 sec.
%xdefine CBACK_PORT 54322
@Cback:
mov ebp, esp
sub esp, 0x10
%define _WSASocket [ebp - 4]
push 0
push D... |
bits 64
dq b
m: ; 1. assume 8
ja m ; 1. assume 2
;; 1
ja b ; 1. assume 2
ja b ; 1. assume 2
ja b ; 1. assume 2
ja b ; 1. assume 2
ja b ... |
; A131078: Periodic sequence (1, 1, 1, 1, 0, 0, 0, 0).
; 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1
div $0,4
mod $0,2
pow $1,$0
|
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1008c, %r9
add %rbp, %rbp
movups (%r9), %xmm2
vpextrq $0, %xmm2, %rsi
nop
sub %rbp, %rbp
lea addresses_UC_ht+0x1d9a8, %rsi
lea addresses_UC_ht+0x1610c, %rdi
nop
nop
nop
and %r... |
db 0 ; species ID placeholder
db 105, 130, 120, 40, 45, 45
; hp atk def spd sat sdf
db GROUND, ROCK ; type
db 60 ; catch rate
db 204 ; 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/rhydon/fro... |
; A102620: Number of legal Go positions on a 1 X n board (for which 3^n is a trivial upper bound).
; 1,5,15,41,113,313,867,2401,6649,18413,50991,141209,391049,1082929,2998947,8304961,22998865,63690581,176377839,488441801,1352638145,3745850473,10373355075,28726852897,79553054089,220305664445,610090792143,1689519766073,4... |
;********************************************************************************************************
; uC/LIB
; Custom Library Modules
;
; Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
;
; ... |
;
; ANSI Video handling for the Epson PX4
; By Stefano Bodrato - Nov 2014
;
; Clean a text line
;
; in: A = text row number
;
;
; $Id: f_ansi_dline.asm,v 1.2 2016/06/12 16:06:43 dom Exp $
;
SECTION code_clib
PUBLIC ansi_del_line
EXTERN base_graphics
.ansi_del_line
ld de,32*8
ld b,a
ld hl,$e000
and ... |
/* Kattis - Cave Explorer
The question involves counting the number of nodes that are connected to node 0 without passing through a bridge.
So the first step is finding out the bridges using the classic modified DFS. Afterwards, we should DFS from 0,
however we avoid edges that are bridges.
However, a problem i encoun... |
; A263794: Number of (n+1) X (3+1) 0..1 arrays with each row and column divisible by 3, read as a binary number with top and left being the most significant bits, and rows and columns lexicographically nonincreasing.
; 3,3,7,7,14,14,25,25,41,41,63,63,92,92,129,129,175,175,231,231,298,298,377,377,469,469,575,575,696,696... |
;PUC-ECEC-CMP1057-ARQ1-
;12/02/19
;Wellington Junio De Melo Fernandes
;
;Programa nada.asm
segment .text
;Diretiva para segmentaΓ§Γ£o de codigo
global main
;InformaΓ§Γ£o para o Linker
main: ;Ponto de entrada
saida:
mov eax,1 ;ServiΓ§o de saida(EXIT)
int 80h ;Chama o Kernel (pode ser em binario=128 ou 10000000b ou... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
; A034301: a(n) = n-th quintic factorial number divided by 4.
; 1,9,126,2394,57456,1666224,56651616,2209413024,97214173056,4763494479744,257228701906176,15176493412464384,971295578397720576,67019394909442719744,4959435223298761261056,391795382640602139623424,32910812141810579728367616,2929062280621141595824717824,27533... |
MOV R1,#05 ;Move 1st data in R1 register
MOV R0,#04 ;Move 2nd data in R0 register
MOV dptr,#4150 ;Load address in data pointer
MOV A,R1 ;Move content of R1 to A
ANL A,R0 ;Perform AND R0 with accumulator
MOVX @dptr,A ;Store the result
INC dptr ;Increment dpt... |
; A291023: p-INVERT of (1,1,1,1,1,...), where p(S) = 1 - 3 S^2 + 2 S^3.
; Submitted by Jon Maiga
; 0,3,4,12,24,56,120,264,568,1224,2616,5576,11832,25032,52792,111048,233016,487880,1019448,2126280,4427320,9204168,19107384,39612872,82021944,169636296,350457400,723284424,1491308088,3072094664,6323146296,13004206536,267242... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of so... |
.global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x465a, %rdi
clflush (%rdi)
nop
nop
and $9418, %r8
mov $0x6162636465666768, %rbx
movq %rbx, (%rdi)
nop
nop
nop
nop
add $64038, %rsi
lea addresses_A_ht+0xd1a, %rsi
lea addresses_A... |
#include "stdafx.h"
#include "alife_space.h"
#include "hit.h"
#include "PHDestroyable.h"
#include "CharacterPhysicsSupport.h"
#include "PHMovementControl.h"
#include "CustomMonster.h"
#include "PhysicsShell.h"
#include "..\Include/xrRender/KinematicsAnimated.h"
#include "Actor.h"
#include "CustomZone.h"
#include "Exten... |
#include "Halide.h"
using namespace Halide;
// Generate a pipeline that reads 4-channel data via DMA, scales it by
// 2, and (optionally) writes it back via DMA.
class DmaPipeline : public Generator<DmaPipeline> {
public:
Input<Buffer<uint8_t, 3>> input{"input"};
Output<Buffer<uint8_t, 3>> output{"output"};
... |
; Hello World Program (Getting input)
; Compile with: nasm -f elf helloworld-input.asm
; Link with (64 bit systems require elf_i386 option): ld -m elf_i386 helloworld-input.o -o helloworld-input
; Run with: ./helloworld-input
%include 'functions.asm'
SECTION .data
msg1 db 'Please enter your name:... |
; βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
; β TIA_BASE_ADDRESS β
; β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ£
; β The TIA_BASE_ADDRESS defines the base addre... |
.proc loader
disableOS
sei
lda #0
sta nmien
lda portb
ldy #%11111110
sty portb
and #%11111110
sta portb
rts
enableOS
lda portb
ldy #%11111111
sty portb
ora #%00000001
sta portb
lda #%11000000
... |
GLOBAL _cli
GLOBAL _sti
GLOBAL picMasterMask
GLOBAL picSlaveMask
GLOBAL haltcpu
GLOBAL _hlt
GLOBAL halt
GLOBAL _irq00Handler
GLOBAL _irq01Handler
GLOBAL _irq02Handler
GLOBAL _irq03Handler
GLOBAL _irq04Handler
GLOBAL _irq05Handler
GLOBAL _sirqHandler
GLOBAL _exception00Handler
GLOBAL _exception06Handler
EXTERN irqD... |
; A122573: Expansion of x*(1 + x)*(1 - 3*x^2)/(1 - 4*x^2 + x^4).
; 1,1,1,1,3,3,11,11,41,41,153,153,571,571,2131,2131,7953,7953,29681,29681,110771,110771,413403,413403,1542841,1542841,5757961,5757961,21489003,21489003,80198051,80198051,299303201,299303201,1117014753
div $0,2
seq $0,1835 ; a(n) = 4*a(n-1) - a(n-2), with... |
;
; Samsung Qmage codec exploit proof-of-concept for remotely probing a specific
; range of virtual addresses in the Samsung Messages address space.
;
; Author: Mateusz Jurczyk, Google Project Zero
; Date: August 2020
; Bug: CVE-2020-8899 (crash e418c0496cb1babf0eba13026f4d1504)
; Fixed: Samsung May 2020 Secu... |
; A213244: Number of nonzero elements in GF(2^n) that are 5th powers.
; 1,3,7,3,31,63,127,51,511,1023,2047,819,8191,16383,32767,13107,131071,262143,524287,209715,2097151,4194303,8388607,3355443,33554431,67108863,134217727,53687091,536870911,1073741823,2147483647,858993459,8589934591,17179869183,34359738367,13743895347,... |
; A321207: a(n) = (n*n!)^3.
; 1,64,5832,884736,216000000,80621568000,43912253952000,33560740233216000,34835065137266688000,47784725839872000000000,84653556693609480192000000,189912972073787235237888000000,530482432188949589775089664000000
add $0,1
mov $1,$0
lpb $1
mul $0,$1
sub $1,1
lpe
pow $0,3
|
include exec/funcdef.i
include exec/types.i
include "exec/lists.i"
include "exec/nodes.i"
include exec/exec_lib.i
include ox.i
include ox_lib.i
include easy.i
include graphics/regions.i
include graphics/graphics_lib.i
include intuition/intuition_lib.i
include devices/inputevent.i
... |
;---------------------------------------------------------------;
; ;
; Banchor ;
; Introduction Text ;
; ... |
; A183897: Number of nondecreasing arrangements of n+3 numbers in 0..2 with each number being the sum mod 3 of three others.
; 1,7,17,25,34,44,55,67,80,94,109,125,142,160,179,199,220,242,265,289,314,340,367,395,424,454,485,517,550,584,619,655,692,730,769,809,850,892,935,979,1024,1070,1117,1165,1214,1264,1315,1367,1420,... |
#include <cstdio>
#include "Demonstrations.h"
int main() {
Demonstrations<int, int> demo;
for (int episode = 0; episode < 5; episode++) {
if (episode) {
demo.NewEpisode();
}
for (int i = 0; i < 10; ++i) {
demo.Observe(i, episode);
}
}
}
|
global _start
section .data
message: db 'hello, world!', 10
section .text
_start:
mov rax, 1
mov rdi, 1
mov rsi, message
mov rdx, 14
syscall
|
// TODO:
// - More than 254 clip regions: Either use another view (extra parameter in createContext)
// or draw a fullscreen quad to reset the stencil buffer to 0.
// - Recycle the memory of cached meshes so resetting a cached mesh is faster.
// - Find a way to move stroker operations into separate functions (i.e. all ... |
//-------------------------------------------------------------------------
// Copyright (c) 1997-1998 Great Hill Corporation
// All Rights Reserved.
//-------------------------------------------------------------------------
#include "Kramer.h"
#include "Solid.h"
/*
SFBool vrSolid::BoolOp(vrSolid *A, vrSoli... |
#include "envoy/stats/scope.h"
#include "common/api/api_impl.h"
#include "common/event/dispatcher_impl.h"
#include "common/grpc/google_async_client_impl.h"
#include "common/stats/isolated_store_impl.h"
#include "test/mocks/grpc/mocks.h"
#include "test/mocks/tracing/mocks.h"
#include "test/proto/helloworld.pb.h"
#incl... |
// Test KickC performance for 16-bit array lookup function from article "Optimizing C array lookups for the 6502"
// http://8bitworkshop.com/blog/compilers/2019/03/17/cc65-optimization.html
// Commodore 64 PRG executable file
.file [name="array-16bit-lookup.prg", type="prg", segments="Program"]
.segmentdef Program [s... |
; A078022: Expansion of (1-x)/(1-x+2*x^2+2*x^3).
; Submitted by Christian Krause
; 1,0,-2,-4,0,12,20,-4,-68,-100,44,380,492,-356,-2100,-2372,2540,11484,11148,-16900,-62164,-50660,107468,333116,219500,-661668,-1766900,-882564,3974572,9273500,3089484,-23406660,-48132628,-7498276,135580300,246842108,-9321940,-774166756,-1... |
;
; Copyright (c) 2010 The WebM 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 in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
;
; feilipu, 2019 April
;
; 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/.
;
;------------------------------------------------------------------------------
IF __CPU... |
_Init:
;lib_channel.c,4 :: void Init(struct YM3812_Channel *channel) {
;lib_channel.c,5 :: channel->ChannelNumber = 0x00;
MOVF FARG_Init_channel+0, 0
MOVWF FSR
CLRF INDF+0
;lib_channel.c,6 :: channel->reg_20[0] = 0x00;
INCF FARG_Init_channel+0, 0
MOVWF FSR
CLRF INDF+0
;li... |
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %es... |
; A186351: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f and g are the odd numbers and the triangular numbers. Complement of A186350.
; 2,4,6,9,13,17,21,26,32,38,44,51,59,67,75,84,94,104,114,125,137,149,161,174,188,202,216,231,247,263,279,296,314,332,350,369,389,409,42... |
header_VmJumpIfLess
vm_jump_if_less PROC
push ebp
mov ebp, esp
; pop the value
push [ebp+arg0]
call_vm_stack_pop_enc
; read the carry flag
mov ebx, [ebp+arg0]
mov ebx, [ebx+vm_flags]
test ebx, VM_CARRY_FLAG
jz finish
; modify the vm IP
mov ebx, [ebp+arg0]
mov [ebx+vm_ip], eax
finish:
mov esp, ebp
... |
;
; Credits in the rom
;
credits_begin:
.asc " credits",$0a
.asc $0a
.asc " authors",$0a
.asc $0a
.asc "sylvain gadrat",$0a
.asc $0a
.asc " art-sources",$0a
.asc $0a
.asc "backgrounds",$0a
.asc " by martin le borgne",$0a
.asc "super tilt bro",$0a
.asc " by tui",$0a
.asc "kiki",$0a
.as... |
; int ba_priority_queue_top(ba_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_ba_priority_queue
PUBLIC ba_priority_queue_top
EXTERN asm_ba_priority_queue_top
defc ba_priority_queue_top = asm_ba_priority_queue_top
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _ba_priority_queue_top
defc _ba_priority_queue... |
ViridianPokecenter_Script:
call Serial_TryEstablishingExternallyClockedConnection
jp EnableAutoTextBoxDrawing
ViridianPokecenter_TextPointers:
dw ViridianHealNurseText
dw ViridianPokeCenterText2
dw ViridianPokeCenterText3
dw ViridianTradeNurseText
ViridianHealNurseText:
script_pokecenter_nurse
ViridianPokeCen... |
; A034856: a(n) = binomial(n+1, 2) + n - 1 = n*(n+3)/2 - 1.
; 1,4,8,13,19,26,34,43,53,64,76,89,103,118,134,151,169,188,208,229,251,274,298,323,349,376,404,433,463,494,526,559,593,628,664,701,739,778,818,859,901,944,988,1033,1079,1126,1174,1223,1273,1324,1376,1429,1483,1538,1594,1651,1709,1768,1828,1889,1951,2014,2078,2... |
object_const_def ; object_event constants
PoketchCompany3F_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
PoketchCompany3F_GrannyScript:
jumptextfaceplayer .Text
.Text:
text "People everywhere"
line "make #TCH apps."
para "You'll be able to"
line "get new apps from"
cont "surprising places."
IF DEF(_DEM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.