code stringlengths 2 1.05M | repo_name stringlengths 5 101 | path stringlengths 4 991 | language stringclasses 3
values | license stringclasses 5
values | size int64 2 1.05M |
|---|---|---|---|---|---|
; ToriX - TORres Interactive eXecution
; Copyright (c) 2008 Devin Torres
; Licensed under the MIT license.
[bits 32]
[global start]
%ifdef CYGWIN
[extern _main]
%else
[extern main]
%endif
[section .data]
; The Global Descriptor Table (GDT); this tells us where all the segments (now
; selectors) are:
gdt:
; Null de... | devinus/torix | src/kernel/start.asm | Assembly | mit | 1,309 |
dc.w word_4A08C-Map_PachinkoEnergyTrap
word_4A08C: dc.w 2 ; DATA XREF: ROM:0004A08Ao
dc.b $E8, 6, 0, 0, $FF, $F8
dc.b 0, 6, $10, 0, $FF, $F8
| TeamASM-Blur/Sonic-3-Blue-Balls-Edition | Working Disassembly/Levels/Pachinko/Misc Object Data/Map - Energy Trap.asm | Assembly | apache-2.0 | 161 |
%define ARCH_AARCH64 0
%define ARCH_ALPHA 0
%define ARCH_ARM 0
%define ARCH_AVR32 0
%define ARCH_AVR32_AP 0
%define ARCH_AVR32_UC 0
%define ARCH_BFIN 0
%define ARCH_IA64 0
%define ARCH_M68K 0
%define ARCH_MIPS 0
%define ARCH_MIPS64 0
%define ARCH_PARISC 0
%define ARCH_PPC 0
%define ARCH_PPC64 0
%define ARCH_S390 0
%def... | espadrine/opera | chromium/src/third_party/ffmpeg/chromium/config/Chromium/linux/ia32/config.asm | Assembly | bsd-3-clause | 46,983 |
g(): # @g()
push rax
call qword ptr [rip + _ZN3foo3bazE+8]
xor eax, eax
pop rcx
ret | mattgodbolt/compiler-explorer | test/demangle-cases/bug-1468e.asm | Assembly | bsd-2-clause | 170 |
INCLUDE kxarm.h
area js_msvc, code, readonly
MACRO
FUNC_HEADER $Name
FuncName SETS VBar:CC:"$Name":CC:VBar
PrologName SETS VBar:CC:"$Name":CC:"_Prolog":CC:VBar
FuncEndName SETS VBar:CC:"$Name":CC:"_end":CC:VBar
AREA |.pdata|,ALIGN=2,PDATA
DCD $FuncName
DCD (($PrologName-$Func... | glycerine/vj | src/js-1.8.5/js/src/jswince.asm | Assembly | apache-2.0 | 1,748 |
; Copyright © 2018, VideoLAN and dav1d authors
; Copyright © 2018, Two Orioles, LLC
; Copyright © 2018, VideoLabs
; 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. Redistributions of source c... | youtube/cobalt | third_party/libdav1d/src/x86/mc_ssse3.asm | Assembly | bsd-3-clause | 165,213 |
section .bss
popStr: resb 64
popStrLen: resb 64
section .text
global _start
_start:
call _proc_print_stckpop
call _proc_exit
_proc_print_stckpop:
mov eax, 4 ; The syscall for write
mov ebx, 1 ; File descriptor 1 - stdout
pop ecx ; put value from top of stack to ecx
mov [popStr], ecx ... | kije/assembly_experiments | test4.asm | Assembly | bsd-3-clause | 670 |
_Z1gv:
subq $8, %rsp
call *_ZN3foo3bazE+8(%rip)
xorl %eax, %eax
addq $8, %rsp
ret | mattgodbolt/compiler-explorer | test/demangle-cases/bug-1468b.asm | Assembly | bsd-2-clause | 133 |
; TGBL time functions and macros
; Time periods in sysclock ticks
t_second equ 18
t_minute equ 1092
t_hour equ 65543
; Sleep
; Args: milliseconds to sleep
; Spoils: AX, CX, DX
%macro tgblm_sleep 1
mov cx, ((%1) * 1000) / 0xFFFF
mov dx, ((%1) * 1000) % 0xFFFF
mov ah, 86h
int 15h
%endmacro
; Get system tim... | trexxet/tgbl | lib/tgbl_time.asm | Assembly | mit | 1,874 |
PLC_361A78: dc.w Frame_361A8E-PLC_361A78
dc.w Frame_361A92-PLC_361A78
dc.w Frame_361A96-PLC_361A78
dc.w Frame_361A9A-PLC_361A78
dc.w Frame_361A9E-PLC_361A78
dc.w Frame_361AA2-PLC_361A78
dc.w Frame_361AA6-PLC_361A78
dc.w Frame_361AAA-PLC_361A78
dc.w Frame_361AB0-PLC_361A78
dc.w Frame_361AB4-PLC_361A78
... | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | Working Disassembly/General/Sprites/Clamer/DPLC - Clamer.asm | Assembly | apache-2.0 | 722 |
xor r0,r0,r0
xor r1,r1,r1
xor r2,r2,r2
xor r3,r3,r3
xor r4,r4,r4
xor r5,r5,r5
xor r6,r6,r6
ldl $-1
lsr r0,r7,r0
ldl #main
jmp r0,r7,r0
nop r0,r0,r0
>main
nop r0,r0,r0
ldl $30
and r7,r7,r1
ldl $27
and r7,r7,r2
nop r0,r0,r0
ldl #mult
call r0,r7,r0
nop r0,r0,r0
ldl #outVal
load r0,r7,r2
nop r0,r0,r0
ldl #drawhex
call r0,r... | mgohde/MiniMicroII | Assembler/MKAsmWrapper/dist/multhextest.asm | Assembly | bsd-2-clause | 1,144 |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2015, 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 distributi... | intel/ipmctl | MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm | Assembly | bsd-3-clause | 1,603 |
;
; jccolext.asm - colorspace conversion (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2016, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in j... | openpnp/openpnp-capture | linux/contrib/libjpeg-turbo-dev/simd/i386/jccolext-mmx.asm | Assembly | mit | 17,275 |
#define lcd_cs1 portd, 5
#define lcd_res portd, 6
#define lcd_a0 portd, 7
#define lcd_scl portd, 4
#define lcd_si portd, 1
#define LedOn sbi portb, 3
#define LedOff cbi portb, 3
#define LedToggle sbi pinb, 3
#define BuzzerOn sbi portb, 1
#define BuzzerOff cbi portb, 1
#define OutputPin1 portc... | daltonmatos/avrgcc-mixed-with-avrasm2 | experiments/beep/hardware.asm | Assembly | bsd-3-clause | 632 |
020077A0 B570 push r4-r6,r14
020077A2 B08E add sp,-38h
020077A4 489A ldr r0,=27E00FCh
020077A6 6800 ldr r0,[r0]
020077A8 2800 cmp r0,0h
020077AA D100 bne 20077AEh
020077AC E12E b 2007A0Ch
020077AE 2801 cmp r0,1h
020077B0 D001 beq 20077B6h
020077B2... | leomontenegro6/megaman-zx-traducao-ptbr | asm/subtitles/originais/020077a0_eu.asm | Assembly | mit | 11,524 |
; ------------------------------------------------------------------------------
;
; This is Sophia8 kernel code
;
; Contains:
;
; * definitions
; * memory mappings
; * kernel methods
;
;-------------------------------------------------------------------------------
DEF __VIDEO_... | mozdren/Sophia8 | kernel.asm | Assembly | mit | 3,442 |
; ==================================================================
; The input file must contain 2 input entries.
; The input entries are finally stored in the registers "F" and "G"
; ==================================================================
; Initialize the Output Port C & D to 0
MOV XL, 0
OUT C
OUT D
; =... | KPU-RISC/KPU | Assembler/AssemblyCode/IN_OUT.asm | Assembly | mit | 1,202 |
BITS 16
start:
mov ax, 07C0h ; Set up 4K stack space after this bootloader
add ax, 288 ; (4096 + 512) / 16 bytes per paragraph
mov ss, ax
mov sp, 4096
mov ax, 07C0h ; Set data segment to where we're loaded
mov ds, ax
jmp keep
keep:
mov si, text_string ; Put string position into SI
call print_str... | geremyCohen/gecOS | myfirst.asm | Assembly | mit | 820 |
$include(system_includes.asm)
; @author Jos Ahrens
; @date 14/05/2014
start: MOV A,P0 ; Read the switch
JMP case4 ; Select which case to run.
case0: ; CASE 0 -- add 18 to P0 and put it in P1. Compiles & works
ADD A,#18 ; Add 18 to A
JMP eop ; Go to end of program
case1: ; CASE 1 -- multiply P0 by 2, and minu... | Zarthus/School | Year 3 (2014-09 to 2015-02)/Assembly/assignment_4.4.asm | Assembly | mit | 1,097 |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.15.26504.0
TITLE C:\Source\compiler-explorer\test\cases\vc-regex-example.cpp
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
; only here to exercise bug https://github.com/mattgodbolt/compiler-explorer/issues/13... | mattgodbolt/compiler-explorer | test/cases/vc-numbers.asm | Assembly | bsd-2-clause | 333 |
.386p
_DATA segment use32 dword public 'DATA' ;IGNORE
var1 db 2,5,6
var2 dw 4,6,9
var3 dd 11,-11,2,4
var4 db 100 dup (1)
var5 dd 10 dup (?)
_DATA ends ;IGNORE
_TEXT segment use32 dword public 'CODE' ;IGNORE
assume cs:_TEXT,ds:_DATA
start: ;IGNORE
add word ptr [var5+2],50
cmp word ptr [var5+2],50
jne failure
... | frranck/asm2c | asmTests/addsub.asm | Assembly | mit | 1,042 |
;===============================================================================
; Copyright 2015-2020 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.apa... | Intel-EPID-SDK/epid-sdk | ext/ipp-crypto/sources/ippcp/asm_intel64/pcpmontreductionm7as.asm | Assembly | apache-2.0 | 43,457 |
//------------------------------------------------------------------------------
//
// Copyright (c) 2008 - 2009, Apple Inc. 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 dis... | MarvellEmbeddedProcessors/edk2-open-platform | Platforms/TexasInstruments/BeagleBoard/Sec/Arm/ModuleEntryPoint.asm | Assembly | bsd-2-clause | 3,197 |
;Testname=test; Arguments=-fbin -ofpu.bin; Files=stdout stderr fpu.bin
; relaxed encodings for FPU instructions, which NASM should support
; -----------------------------------------------------------------
%define void
%define reg_fpu0 st0
%define reg_fpu st1
; no operands instead of one operand:
; F(U)COM(P), F... | endlessm/chromium-browser | third_party/nasm/test/fpu.asm | Assembly | bsd-3-clause | 3,254 |
;
; Copyright (C) 2019 Assured Information Security, Inc.
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify... | connojd/hypervisor | bfintrinsics/src/arch/x64/srs.asm | Assembly | mit | 2,490 |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.3.0 #8604 (Dec 30 2013) (Linux)
; This file was generated Fri Jul 17 14:56:21 2015
;--------------------------------------------------------
.module parameters
.optsdcc -mmcs51 --model-large... | YifanJiangPolyU/SiK-master-Yifan-TDMA | Firmware-bk/obj/rf50/radio~rf50/parameters.asm | Assembly | bsd-2-clause | 35,494 |
diff16 'tp-popup.asm',0,$
;POP_WIDTH = (popup_text.max_title+popup_text.max_accel+6)*6
POP_IHEIGHT = 16
POP_SHEIGHT = 2
;POP_HEIGHT = popup_text.cnt_item*POP_IHEIGHT+popup_text.cnt_sep*4+4
popup_thread_start:
mov [popup_active],1
mov [pi_cur],0
mov ebp,[esp]
mcall 14
movzx ebx,ax
shr eax,16
movzx ecx,[ebp+P... | devlato/kolibrios-llvm | programs/develop/tinypad/trunk/tp-popup.asm | Assembly | mit | 5,002 |
;Testname=unoptimized; Arguments=-O0 -fbin -oa32offs.bin; Files=a32offs.bin stdout stderr
;Testname=optimized; Arguments=-Ox -fbin -oa32offs.bin; Files=a32offs.bin stdout stderr
bits 16
foo: a32 loop foo
bar: loop bar, ecx
bits 32
baz: a16 loop baz
qux: loop qux, cx
| endlessm/chromium-browser | third_party/nasm/test/a32offs.asm | Assembly | bsd-3-clause | 273 |
;================================================================================
; Dialog Pointer Override
;--------------------------------------------------------------------------------
EndingSequenceTableOverride:
PHY
PHX
TYX
LDA.l EndingSequenceText, X
PLX
STA $1008, X
PLY
RTL
;----------------------------... | mmxbass/z3randomizer | endingsequence.asm | Assembly | mit | 561 |
.nds
.relativeinclude on
.erroronwarning on
; The water splashing particles at the bottom of the waterwheel room in the Tower of Death have a bug in vanilla where they don't check if another particle entity is null or not.
; This bug causes the game to crash if all particle type entity slots (81-EF) are used up.
@Ove... | LagoLunatic/DSVEdit | asm/por_fix_waterwheel_particle_crash.asm | Assembly | mit | 789 |
[bits 16]
extractps eax, xmm1, 5 ; out: 66 0f 3a 17 c8 05
vextractps eax, xmm1, 5 ; out: c4 e3 79 17 c8 05
pextrb eax, xmm1, 5 ; out: 66 0f 3a 14 c8 05
vpextrb eax, xmm1, 5 ; out: c4 e3 79 14 c8 05
pextrw eax, xmm1, 5 ; out: 66 0f c5 c1 05
vpextrw eax, xmm1, 5 ; out: c5 f9 c5 c1 05
pextrd eax, xmm1, 5 ; out: 66 ... | 13xforever/x86-assembly-textmate-bundle | Tests/yasm-regression/avx16.asm | Assembly | mit | 434 |
; Copyright 2005-2008 Intel Corporation. All Rights Reserved.
;
; This file is part of Threading Building Blocks.
;
; Threading Building Blocks is free software; you can redistribute it
; and/or modify it under the terms of the GNU General Public License
; version 2 as published by the Free Software Foundation.
;
; Th... | anasazi/POP-REU-Project | pkgs/libs/tbblib/src/src/tbb/em64t-masm/atomic_support.asm | Assembly | bsd-3-clause | 2,224 |
/*
* Intra predict 8x8 chroma block
* Copyright © <2010>, Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation th... | uartie/vaapi-intel-driver | src/shaders/h264/mc/intra_Pred_Chroma.asm | Assembly | mit | 8,470 |
; name: 16-bit mode - Using 32-bit memory addressing in 16-bit mode.
; code: "678B80FF000000678B9C43FF00000066678B80FF00000066678B9C43FF000000678980FF00000067899C43FF00000066678980FF0000006667899C43FF000000"
[bits 16]
mov ax,[eax+0xff]
mov bx,[eax*2+ebx+0xff]
mov eax,[eax+0xff]
mov ebx,[eax*2+ebx+0xff]
mov [eax+0xff],... | tpisto/pasm | tests/013_16-bit_mode_-_Using_32-bit_memory_addressing_in_16-bit_mode.asm | Assembly | mit | 391 |
; places 10^n on TOS
; cx contains n for 10^n
; bx contains addr for word containing 10
getmul proc
push cx
fld1
jcxz getmul_cleanup
getmul_1:
fimul word ptr [bx]
loop getmul_1
getmul_cleanup:
pop cx
ret
getmul endp
| UtkarshRay/MASM_8086 | getmul.asm | Assembly | mit | 260 |
; Copyright © 2021, VideoLAN and dav1d authors
; Copyright © 2021, Two Orioles, LLC
; 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. Redistributions of source code must retain the above copy... | videolan/dav1d | src/x86/loopfilter16_sse.asm | Assembly | bsd-2-clause | 48,703 |
NROF_DEFINED_EXCS: equ 21
extern panic
extern printk
extern mapIdtEntry
extern lapicBase
extern tssSetIST
extern idtSetIST
extern idtSetDPL
extern excPF
extern kthreadExit
extern excExit
global initExceptions:function
global undefinedInterrupt:function
global dummyInterrupt:function
SECTION .text
initExceptions:... | racing19th/MiraiOS | kernel/arch/x86_64/irq/exception.asm | Assembly | mit | 4,759 |
0804869a <plain_res>:
804869a: push ebp
804869b: mov ebp,esp
804869d: sub esp,0x18
80486a0: mov DWORD PTR [ebp-0x18],0x0
80486a7: sub esp,0xc
80486aa: push 0x1
80486ac: call 8048330 <malloc@plt>
80486b1: add esp,0x10
80486b4: mov DWORD PTR [ebp-0x14],eax
80486b7: cmp DWORD PTR [ebp-... | Kachalov/goto-report | disasm/plain_res.asm | Assembly | mit | 1,276 |
section .text
%include "context.inc"
global switch_context
switch_context:
;
; params: context_t ESP+4
;
; This function is not reentrant
;xchg bx, bx
cli
; save parameters in static space as we might switch esp
mov edi, iret_data
mov esi, [esp + 4]
mov ecx, con... | degaart/rastapopoulos | kernel/context.asm | Assembly | mit | 1,711 |
;=================================================================
; Memory and Constants Setup
;=================================================================
.equ STACK, 040h ; Bottom of the stack
.equ CNTH, 001h ; Delay high byte count
.equ CNTL, 040h ; Delay low byte count
; LED Image Bufer
.equ panel00,... | KoolJBlack/6.115-FinalProject | ZZZ/fix.asm | Assembly | mit | 14,093 |
SECTION "Tiles bank 0", VRAM[$8000],BANK[0]
v0Tiles0::
vPlayerTiles::
; dtile 4 * 3 Overlap
dtile 1
vFileSelectCornerTile::
dtile 1
vFileSelectConsoleTiles::
dtile 9
dtile 2 ; Last two vPlayerTiles
dtile $13
vDMGFontTiles::
dtile $3C
dtile $24
v0Tiles1::
dtile $80
... | ISSOtm/Aevilia-GB | main/vram.asm | Assembly | apache-2.0 | 1,485 |
org $00D65E
autoclean JSL hijack
NOP #6
freecode
hijack:
LDA.B #$01 ; \ Play sound effect
STA.W $1DFA ; / Jump IIRC
LDA $73
CMP #$00
BNE flip
LDA.W $00D2BD,X ; \ Oh look, the X speed determines the "gravity"
STA $7D ; /
RTL
freecode
flip:
PHK
PEA.w .jslrtsreturn-1
PEA.w $0084CF-1
JML $00FE4A
.jslrtsreturn
L... | snuggles08/snuggles08.github.io | test/backflip.asm | Assembly | mit | 422 |
;******************************************************************************
;* x86 optimized Format Conversion Utils
;* Copyright (c) 2008 Loren Merritt
;*
;* 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
;* L... | CTSRD-SOAAP/chromium-42.0.2311.135 | third_party/ffmpeg/libavcodec/x86/fmtconvert.asm | Assembly | bsd-3-clause | 12,343 |
#MULT INSTRUCTION
#1 NEGATIVE A, POSITIVE B: A=0x80000_0000-0xFFFF_0000, B=0x0000_0000-0x0000_7FFF
lui $1 0x8000
ori $1 0x0000
lui $2 0x0000
ori $2 0x0000
lui $3 0x0000
ori $3 0x0000
lui $4 0x0000
ori $4 0x0000
mult $1 $2
mfhi $5
mflo $6
bne $3 $5 fail
sll $0 $0 0
bne $4 $6 fail
lui $1... | mshaklunov/mips_onemore | tb/tprog/asm/test.mult.asm | Assembly | mit | 7,390 |
@********************************************************************
@* *
@* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
@* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
@* GOVERNED BY A BSD-STYLE SOURCE LICENS... | blloyd75/theoraplayer | theora/lib/arm/armloop.asm | Assembly | bsd-3-clause | 24,454 |
;Testname=avx512cd; Arguments=-fbin -oavx512cd.bin -O0 -DSRC; Files=stdout stderr avx512cd.bin
; AVX-512CD testcases from gas
;------------------------
;
; This file is taken from there
; https://gnu.googlesource.com/binutils/+/master/gas/testsuite/gas/i386/x86-64-avx512cd-intel.d
; So the original author is "H.J. ... | endlessm/chromium-browser | third_party/nasm/test/avx512cd.asm | Assembly | bsd-3-clause | 13,126 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2018 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... | Intel-HLS/GKL | src/main/native/compression/isa-l-master/igzip/igzip_decode_block_stateless.asm | Assembly | mit | 22,135 |
org 0100h
BaseOfStack equ 0100h
BaseOfKernelFile equ 08000h ; KERNEL.BIN 被加载到的位置 ---- 段地址
OffsetOfKernelFile equ 0h ; KERNEL.BIN 被加载到的位置 ---- 偏移地址
jmp LABEL_START ; Start
; 下面是 FAT12 磁盘的头, 之所以包含它是因为下面用到了磁盘的一些信息
%include "fat12hdr.inc"
LABEL_START: ; <--- 从这里开始 *************
mov ax, cs
mov ds, ax
... | RongbinZhuang/simpleOS | ver0/reference/chapter5/c/loader.asm | Assembly | mit | 8,676 |
_text segment para public 'CODE' use32
sub_test proc near
push ebp
mov ebp, esp
call fastcall_func
and eax, 0
pop ebp
retn
sub_test endp
_text ends
; vim:expandtab
| notaz/ia32rtools | tests/reg_call1.asm | Assembly | bsd-3-clause | 316 |
INCLUDE "hardware.inc"
INCLUDE "header.inc"
SECTION "Main",HOME
;--------------------------------------------------------------------------
;- Main() -
;--------------------------------------------------------------------------
Main:
ld a,$00
ld... | AntonioND/gbc-hw-tests | cpu/corrupted_stop_2/main.asm | Assembly | mit | 662 |
; Zadanie [VM:not-so-simple-calc]
; Autor: Adam Bac (abac00s)
;
;The MIT License (MIT)
;Copyright (c) 2016 Adam Bac
;
;Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation file
;(the "Software"), to deal in the Software without restriction, including... | gynvael/zrozumiec-programowanie-cwiczenia | VM-not-so-simple-calc/abac00s/VM-not-so-simple-calc.asm | Assembly | mit | 2,867 |
@ This file was created from a .asm file
@ using the ads2gas.pl script.
.equ DO1STROUNDING, 0
.equ ARCH_ARM , 1
.equ ARCH_MIPS , 0
.equ ARCH_X86 , 0
.equ ARCH_X86_64 , 0
.equ HAVE_EDSP , 0
.equ HAVE_MEDIA , 1
.equ HAVE_NEON , 0
.equ HAVE_NEON_ASM , 0
.equ HAVE_MIPS32 , 0
.equ HAVE_DSPR2 , 0
.equ HAVE_MSA , ... | Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/third_party/libvpx/source/config/linux/arm/vpx_config.asm | Assembly | mit | 2,486 |
;;================================================================================================;;
;;//// ico.asm //// (c) mike.dld, 2007-2008, (c) diamond, 2009 ///////////////////////////////////;;
;;================================================================================================;;
;; ... | devlato/kolibrios-llvm | programs/develop/libraries/libs-dev/libimg/ico_cur/ico_cur.asm | Assembly | mit | 12,137 |
/*
* I2C Master Module
*
* org: 6/22/2014
* auth: Nels "Chip" Pearson
*
* Target: I2C Demo Board w/ display and keypad I/O, 20MHz
*
* Usage:
* .include i2c_master.asm
*
*/
.equ SLAVE_ADRS = (0x57) ; default
.equ START = 0x08
.equ REPT_START = 0x10 ; Repeated START sent..treat as START
.equ ARB_LOST = 0... | CmdrZin/chips_avr_examples | I2C_Master_Code_Dev/I2C_DemoBoard/src/i2c_master.asm | Assembly | mit | 12,090 |
include 'a32.inc'
_start:
LOAD_R0 1.0
LOAD_R1 1.0
.iloop:
; push r0
PUSH R0
; calculate factorial
F_FACT
; pop factorial into r3
POP R3
; do a 1 / factorial
PUSH 1.0
PUSH R3
F_DIV
; pop result into r2
POP R2
; add it to r1
PUSH R1
PUSH R2
F_ADD
POP R1
; increment r0
PUSH 1.0
PUSH R0
F_ADD
; s... | Benderx2/FVM | examples/fpu.asm | Assembly | bsd-2-clause | 490 |
; The MIT License (MIT)
;
; Copyright (c) 2014 Microsoft
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify... | Microsoft/X-Mem | src/win/x86_64/win_x86_64_asm_dummy_forwStride8Loop_Word256.asm | Assembly | mit | 2,198 |
;Este es un comentario, se le antecede un punto y coma
list p=18f4550 ;Modelo del microcontrolador
#include <p18f4550.inc> ;Llamada a la librería de nombre de los registros
;Directivas de preprocesador o bits de configuración
CONFIG PLLDIV = 1 ; PLL Prescaler Selection bits (No prescale... | tocache/picomones | UPC Microcontroladores 2020-1/Semana 01/20201-OR.X/newplantilla.asm | Assembly | cc0-1.0 | 1,474 |
; Copyright Oliver Kowalke 2009.
; Distributed under the Boost Software License, Version 1.0.
; (See accompanying file LICENSE_1_0.txt or copy at
; http://www.boost.org/LICENSE_1_0.txt)
; ----------------------------------------------------------------------------------
; | 0 | 1 ... | NixaSoftware/CVis | venv/bin/libs/context/src/asm/jump_x86_64_ms_pe_masm.asm | Assembly | apache-2.0 | 11,548 |
; Scrolls repeating hello world strings across the screen
; to compile with z88dk to a tap file, use
; z80asm +zx hello_world_3.asm
; make sure you're using a recent version of z88dk - tested with nightly build
; which can be downloaded from http://nightly.z88dk.org/
; Alternate build method:
; z80asm -b -o=p... | mjohnsullivan/zxspectrum | hello_world_asm/hello_world_3.asm | Assembly | apache-2.0 | 3,343 |
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at www.aome... | thdav/aom | aom_dsp/x86/intrapred_sse2.asm | Assembly | bsd-2-clause | 23,139 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; string.asm
;
; This file contains all x86_64 "fast path" implementations of string.h
; functions.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | TatsuMaster/Tatsu-Development-Kit | sdk/posix/string.asm | Assembly | mit | 14,122 |
; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40219.01
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\struct.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
$SG3571 DB '%d %d %d', 00H
ORG $+3
$SG3580 DB '%s %d %d %d'... | Dovgalyuk/AntiTaint | Epilog/asm/MSVC2010/struct-stackp.asm | Assembly | apache-2.0 | 2,960 |
ivpu_immediateJump:
test r12, 0x10 #Check the architecture of the current instruction.
cmovz ebx, dword ptr [r13 + rdi + 4] #If the result of the check is 0, then this is a 32 bit instruction. As such, the instruction is only 4 bytes, se we use ebx to move the address in instruction part 2.
cmovnz rbx, qwo... | ozdevguy/Ditto | VM/src/Linux/VPU/x86_64/organized/bak/immjmp.asm | Assembly | apache-2.0 | 524 |
;===============================================================================
; Copyright 2015-2020 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.apa... | Intel-EPID-SDK/epid-sdk | ext/ipp-crypto/sources/ippcp/asm_intel64/pcpsha1e9as.asm | Assembly | apache-2.0 | 12,197 |
TITLE rc4-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.586
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
ALIGN 16
_RC4 PROC PUBLIC
$L_RC4_begin::
push ebp
push ebx
push esi
push edi
mov edi,DWORD PTR... | mosaic-cloud/mosaic-distribution-dependencies | dependencies/nodejs/0.8.22/deps/openssl/asm/x86-win32-masm/rc4/rc4-586.asm | Assembly | apache-2.0 | 4,745 |
# -*- tab-width : 4 -*-
#
#
.sect prog
start:
rts
| hirakuni45/glfw3_app | glfw3_app/rx_asm/test.asm | Assembly | bsd-3-clause | 54 |
;#**************************
;#* LIGHTS * Kolibri OS
;#************************** 15/10/2007
include 'main.inc'
include 'data.inc'
include 'macs.inc'
BeginProgram
main_loop
DATA_SECTION
EndProgram
| devlato/kolibrios-llvm | programs/games/lights/trunk/lights.asm | Assembly | mit | 228 |
;------------------------------------------------
;============Практическое задание================
;----Дана строка.
;----Поменять в ней прописные на заглавные и наоборот, заглавные на прописные
;@author Andrew Ushchenko (https://github.com/AndrewUshchenko) <andrew@uas-proger.net>
;-----Start code-----
formList segme... | AndrewUshchenko/AsmScript | kr2.asm | Assembly | mit | 1,808 |
;*****************************************************************
;* - Description: Device definition file for RC Calibration
;* - File: m128.asm
;* - AppNote: AVR053 - Production calibration of the
;* RC oscillator
;*
;* - Author: Atmel Corporation: http://www.atmel.com
;*... | smart-electro/BMS_SLAVE_V2.0 | Software/AtTiny_programmer/RC calib Projekt/Device specific/m128.asm | Assembly | cc0-1.0 | 658 |
TITLE sha512-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.586
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
ALIGN 16
_sha512_block_data_order PROC PUBLIC
$L_sha512_block_data_order_begin::
push ebp
push... | mosaic-cloud/mosaic-distribution-dependencies | dependencies/nodejs/0.8.22/deps/openssl/asm/x86-win32-masm/sha/sha512-586.asm | Assembly | apache-2.0 | 10,850 |
; complete Hello World PE example, as if compiled via MASM, including RichHeader, dos stubs, alignments...
%include '..\..\consts.asm'
%define iround(n, r) (((n + (r - 1)) / r) * r)
org IMAGEBASE
SECTIONALIGN EQU 1000h
FILEALIGN EQU 200h
DOS_HEADER:
.e_magic dw 'MZ'
.e_cblp dw 090h
... | angea/corkami | wip/MakePE/examples/PE/compiled.asm | Assembly | bsd-2-clause | 7,730 |
BITS 64
bndmk bnd1, [r11]
bndmk bnd1, [rax]
bndmk bnd1, [0x399]
bndmk bnd1, [r9+0x3]
bndmk bnd1, [rax+0x3]
bndmk bnd1, [3,1*r12]
bndmk bnd1, [rax+rcx]
bndmk bnd1, [r11+1*rax+0x3]
bndmk bnd1, [rbx+1*r9+0x3]
; bndmov
bndmov bnd1, [r11]
bndmov bnd1, [rax]
bndmov bnd1, [0x399]
bndmov bnd2, [r9+0x3]
bndmov ... | techkey/nasm | travis/test/mpx-64.asm | Assembly | bsd-2-clause | 2,667 |
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
.global BulbPixels
.global BulbPixelsSize
.global AudioPixels
.global AudioPixelsSize
.global FlagPixels
.global FlagPixelsSize
.global D... | tokoro10g/stm32plus | examples/r61523/CompressedPixels.asm | Assembly | bsd-3-clause | 818 |
\\ MODE 7 Video routines
\\ 6502 include file
\\ Relies on defines in mode7_plot_pixel.h.asm
mode7_gif_anim_base_addr_HI = draw_buffer_addr
\ ******************************************************************
\ * "Animated GIF" playback based on mode7-video codec
\ *
\ * Called this animated GIF as doesn't do all the... | bitshifters/teletextr | lib/mode7_gif_anim.h.asm | Assembly | mit | 931 |
// projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.vm
@1
D=A
@ARG
AD=D+M
D=M
@SP
A=M
M=D
@SP
AM=M+1
@1
D=A
@R3
AD=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@0
D=A
@SP
A=M
M=D
@SP
AM=M+1
@0
D=A
@THAT
AD=D+M
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@1
D=A
@SP
A=M
M=D
@SP
AM=M+1
@1
D=A
@THAT
AD=D+M
@R13
M=D
@SP
AM=M-1
... | skatsuta/nand2tetris | projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm | Assembly | mit | 1,247 |
.686
.model flat,stdcall
option casemap:none
include .\bnlib.inc
include .\bignum.inc
.code
_bn_adddw_ignoresign proc c; uses edi,esi,eax,ecx,edx
lea edx,[edi].BN.dwArray[0*4]
mov ecx,[edi].BN.dwSize
clc
.repeat
adc [edx],eax
mov eax,0
lea edx,[edx+4]
jnc @F
dec ecx
.until zero?
adc eax,eax
jz @F
ca... | FloydZ/Crypto-Hash | BigNum/Mod/Base/_bn_adddw_ignoresign.asm | Assembly | mit | 382 |
section .data
rows:
dw 25 * 0
dw 25 * 1
dw 25 * 2
dw 25 * 3
dw 25 * 4
dw 25 * 5
dw 25 * 6
dw 25 * 7
dw 25 * 8
dw 25 * 9
dw 25 * 10
dw 25 * 11
dw 25 * 12
dw 25 * 13
dw 25 * 14
dw 25 * 15
dw 25 * 16
dw 25 * 17
dw 25 * 18
dw 25 * 19
dw 25 * 20
dw 25 * 21
dw 25 * 22
dw 25 * 23
dw 25 * 24 | musicman89/DND-1-in-8086-Assembly | SourceFiles/Data/Constants/LookupTables.asm | Assembly | mit | 284 |
; Hello World for OSZ/DOS
; WTFPL/PUBLIC DOMAIN
[bits 16]
[org 0x0100]
xor bp, bp
mov ah, 9
mov dx, hello_msg
int 0x21
ret
hello_msg db "Hello, world!", 13, 10, "$"
| neri/osz | src/app/hello.asm | Assembly | bsd-2-clause | 171 |
;pracuje jako 5-ti bitovy binarni citac
;vystupy 3 a 4 jsou prohozene kvuli desce
.device attiny13
.def cnt=r18
.def cm0=r19
.def cm1=r20
.def cm2=r21
.def chc=r22
.def dirs=r23
.org 0x0000 ;RESET
RJMP RESET ;skok na start po resetu
.org 0x0006 ;TC0 overflow
RJMP CASOVAC
.org 0x0007
rjmp ca... | MightyPork/avr-projects | archive/000000_asm_old/utility/3-kanalova simulovana PWM/rgbdriv.asm | Assembly | mit | 1,313 |
%include "module.inc"
jmp $
| olsner/os | user/loop.asm | Assembly | mit | 30 |
format MS COFF
section '.text' code readable executable
public _memcpy
_memcpy:
push esi edi
mov edi, [esp+12]
mov esi, [esp+16]
mov ecx, [esp+20]
rep movsb
pop edi esi
ret
| devlato/kolibrios-llvm | programs/other/graph/memcpy.asm | Assembly | mit | 180 |
dc.w word_3C32A-Map_FBZPiston
word_3C32A: dc.w 4 ; DATA XREF: ROM:0003C328o
dc.b $E0, $F, 0, 0, $FF, $E0
dc.b $E0, $F, 8, 0, 0, 0
dc.b 0, $F, $10, 0, $FF, $E0
dc.b 0, $F, $18, 0, 0, 0
| TeamASM-Blur/Sonic-3-Blue-Balls-Edition | Working Disassembly/Levels/FBZ/Misc Object Data/Map - Piston.asm | Assembly | apache-2.0 | 221 |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.23506.0
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\func-alloca.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
$SG5567 DB '%d', 00H
_DATA ENDS
PUBLIC ___local_stdio_pr... | Dovgalyuk/AntiTaint | Epilog/asm/MSVC2015/func-alloca-omitfp.asm | Assembly | apache-2.0 | 7,355 |
;**********************************
;** ZX SPECTRUM SYSTEM VARIABLES **
;**********************************
KSTATE_0 equ $5C00 ; 23552 ; (IY+$C6) ; Used in reading the keyboard.
KSTATE_4 equ $5C04 ; 23556 ; (IY+$CA)
LASTK equ $5C08 ; 23560 ; (IY+$CE) ; Stores newly pressed key.
REPDEL equ $5C09 ; 23561 ; (IY+$CF) ; ... | z00m128/sjasmplus | tests/integration/zx-spectrum-rom/zx-spectrum-rom-sysvars.i.asm | Assembly | bsd-3-clause | 9,171 |
; flat assembler interface for DOS
; Copyright (c) 1999-2015, Tomasz Grysztar.
; All rights reserved.
format MZ
heap 0
stack 8000h
entry main:start
include 'modes.inc'
segment main use16
start:
mov ax,ds
mov dx,[2Ch]
push cs cs
pop ds es
mov [psp_segment],ax
mov [environment_segment],dx
mov dx,_logo
... | gunmetal313/ExePacker | fasm/fasm17139_linux/source/DOS/fasm.asm | Assembly | bsd-3-clause | 7,115 |
;##########################################################################
;# BSrom140 - Modified ZX Spectrum ROM - (c) Busy soft - Release 22.04.97 #
;##########################################################################
; Original ROM: (c) Amstrad
OUTPUT "bsrom140.bin"
VERZIA: EQU 140
... | z00m128/sjasmplus | tests/integration/bsrom/bsrom140.asm | Assembly | bsd-3-clause | 145,344 |
;
; Copyleft (C) 1995, 1996 Exobit Productions International Corp.
;
; main code by Mentat
;
; (what a cooperation work, man!) ;)))
;
.386p ;-)
locals
jumps
public exptab1
public exptab2
public crtab1
public crtab2
public colortb
public colort2
co... | khromalabs/Hypnotic | fwdata.asm | Assembly | bsd-3-clause | 12,347 |
kernel.elf: file format elf32-littlearm
Disassembly of section .text:
00008000 <init_entry_point>:
8000: e59ff018 ldr pc, [pc, #24] ; 8020 <reset_handler>
8004: e59ff018 ldr pc, [pc, #24] ; 8024 <basic_handler>
8008: e59ff014 ldr pc, [pc, #20] ; 8024 <basic_handler>
800c: e59ff010 ldr pc, [p... | SharpCoder/rpi-kernel | debug/kern.elf.asm | Assembly | mit | 85,725 |
USE32
extern current_intr_handler
global parasite_interrupt_handler:function
extern profiler_stack_sampler
parasite_interrupt_handler:
cli
pusha
push DWORD [esp + 32]
call profiler_stack_sampler
pop eax
call DWORD [current_intr_handler]
popa
sti
iret
| hioa-cs/IncludeOS | src/arch/i686/profile_intr.asm | Assembly | apache-2.0 | 271 |
;
; Copyright (c) 2015 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... | blloyd75/theoraplayer | vpx/vp9/common/x86/vp9_mfqe_sse2.asm | Assembly | bsd-3-clause | 7,525 |
processor 6502
ORG $1001
DC.W $100B,0
DC.B $9E,"4109",0,0,0 ; SYS4107
JMP main
org $1800,$00
include "fw_interface.asm"
include "fw_bootstrap.asm"
main SUBROUTINE
lda #$00
jsr fw_init
sei
sta $ff3f
lda #$00
sta $ff0a
ldy #$10
lda #$00
.0 sta $0000,y
iny
bne .0
jsr fw_ru... | kosmonautdnb/TheLandsOfZador | Framework/trackmo/framework/driver_packed.asm | Assembly | mit | 983 |
; 1 2 3 4 5 6 7
;234567890123456789012345678901234567890123456789012345678901234567890
;=====================================================================
;
; *** TEST ***
;
;--------------------------------------------------------------... | nikAizuddin/lib80386 | src/xorg/X11/XConnect/test/_start.asm | Assembly | mit | 1,404 |
;; graciously taken from http://en.wikibooks.org/wiki/X86_Assembly/Bootloaders
org 7C00h
jmp short Start ;Jump over the data (the 'short' keyword makes the jmp instruction smaller)
Msg: db "What is real life? "
EndMsg:
Start: mov bx, 000Fh ;Page 0, colour attribute 15 (white) for the int 10 calls below
mov c... | supershabam/ros | bootloaders/helloworld/floppy.asm | Assembly | mit | 1,750 |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.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 ... | bouzou4/xv6-OS-Work | stressfs.asm | Assembly | mit | 43,033 |
//===========================================================================//
// GLOSS - Generic Loader for Operating System Software //
// An extensible and configurable bootloader. //
//---------------------------------------------------------------------------//
... | AdrianCollado/SlickOS | Modules/Gloss/Arch/x86_64/Source/A20/Toggle.Fast.asm | Assembly | mit | 1,798 |
TITLE des-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.686
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
PUBLIC _DES_SPtrans
ALIGN 16
__x86_DES_encrypt PROC PRIVATE
push ecx
; Round 0
mov eax,DWORD PTR... | jdgarcia/nodegit | vendor/openssl/asm_obsolete/x86-win32-masm/des/des-586.asm | Assembly | mit | 36,688 |
[bits 64]
mov ah, 5 ; out: b4 05
mov ax, 5 ; out: 66 b8 05 00
mov eax, 5 ; out: b8 05 00 00 00
mov rax, 5 ; out: 48 c7 c0 05 00 00 00 - optimized to signed 32-bit form
mov rax, dword 5 ; out: 48 c7 c0 05 00 00 00 - explicitly 32-bit
mov rax, qword 5 ; out: 48 b8 05 00 00 00 00 00 00 00 - explicitly 64-bit
; test si... | 13xforever/x86-assembly-textmate-bundle | Tests/yasm-regression/nomem64.asm | Assembly | mit | 1,288 |
; reported by Busy
DEVICE ZXSPECTRUM48
org #4000
disp #10000-this1+zac1
zac1
nop
this1
ENT
org #4000+this1-zac1
disp #0000
nop
ENT
; test the warnings about cropping invalid ORG and DISP arguments
ORG -1
DISP -2
ENT
; no device mode
DEVICE NONE
org #4000
disp #10000-this2+zac2
zac2
nop
this2
ENT
... | z00m128/sjasmplus | tests/devices/Issue144_disp_crash.asm | Assembly | bsd-3-clause | 453 |
%define ARCH_ALPHA 0
%define ARCH_ARM 0
%define ARCH_AVR32 0
%define ARCH_AVR32_AP 0
%define ARCH_AVR32_UC 0
%define ARCH_BFIN 0
%define ARCH_IA64 0
%define ARCH_M68K 0
%define ARCH_MIPS 0
%define ARCH_MIPS64 0
%define ARCH_PARISC 0
%define ARCH_PPC 0
%define ARCH_PPC64 0
%define ARCH_S390 0
%define ARCH_SH4 0
%define ... | leighpauls/k2cro4 | third_party/ffmpeg/chromium/config/Chromium/mac/ia32/config.asm | Assembly | bsd-3-clause | 42,365 |
;- The mouse is read 4 successive times, in order to assemble the mouse data
;(horiz most-significant-nybble/horiz LSN/vert MSN/vert LSN).
;- values are deltas, and reading the mouse every VSYNC is normal
;- For vertical movement, up is positive, down is negative
;- For horizontal movement, left is positive, right ... | trapexit/chipce8 | asm/mouse.asm | Assembly | mit | 4,965 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.