repo_id stringlengths 5 115 | size int64 590 5.01M | file_path stringlengths 4 212 | content stringlengths 590 5.01M |
|---|---|---|---|
0015/esp_rlottie | 19,929 | rlottie/src/vector/pixman/pixman-arm-neon-asm.S | /*
* Copyright © 2009 Nokia 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
* the rights to use, copy, modify, merge, pub... |
0BAB1/HOLY_CORE_COURSE | 1,138 | 1_fpga_edition/fpga/test_programs/test.s | # Blink leds
#
# Assembly to blink LEDs once / second in a counter motion.
# Uses a cache miss to write back.
#
# BRH 11/12
.section .text
.align 2
.global _start
start:
# Initialization
lui x6, 0x2 # 00002337 Load GPIO base address x6 <= 0x00002000
lui x7, 0x2 # same for x... |
0BAB1/HOLY_CORE_COURSE | 1,037 | 1_fpga_edition/fpga/test_programs/hello_world/hello.s | .section .text
.align 1
.global _start
_start:
# Setup uncached MMIO region from 0x2000 to 0x2FFF
lui x6, 0x2 # x6 = 0x2000
lui x7, 0x2
ori x7, x7, -1 # x7 = 0x2FFF
csrrw x0, 0x7C1, x6 # MMIO base
csrrw x0, 0x7C2, x7 # MMIO limit
# UARTLite base... |
0BAB1/HOLY_CORE_COURSE | 7,408 | 1_fpga_edition/fpga/test_programs/I2C_pressure/pressure.s | # HOLY CORE PROGRAM
#
# Read the I2C BMP280 sensor and print value to UART as hexadecimal
#
# BRH - 30/05/25
.section .text
.align 1
.global _start
# NOTES :
# 100h => Control
# 104h => Sattus
# 108h => TX_FIFO
# 10Ch => RX_FIFO
# I²C READ (from BMP280 datasheet)
#
# To be able to read registers, first the register ... |
0BAB1/HOLY_CORE_COURSE | 8,187 | 2_soc_software_edition/tb/holy_core/test.s | # HOLY_CORE BASIC TEST PROGRAM
#
# This program tests basic behavior of the core.
# This test does not ensure compliance but rather
# serve as a quick reference to know if
# the design compiles and if a change
# broke the basic CPU behavior.
#
# BRH 7/25
.section .text
.global _start
_start:
# DATA ADDR STORE
... |
0intro/9hist | 8,780 | alphapc/l.s | #include "mem.h"
#define SP R30
#define HI_IPL 6 /* use 7 to disable mchecks */
TEXT _main(SB), $-8
MOVQ $setSB(SB), R29
MOVQ R29, R16
CALL_PAL $PALwrkgp
MOVQ $mach0(SB), R(MACH)
MOVQ $(BY2PG-8)(R(MACH)), R30
MOVQ R31, R(USER)
MOVQ R31, 0(R(MACH))
MOVQ $edata(SB), R1
MOVQ $end(SB), R2
clrbss:
MOVQ R31, ... |
0intro/9hist | 2,936 | alphapc/memmove.s | #define QUAD 8
#define ALIGN 64
#define BLOCK 64
TEXT memmove(SB), $0
MOVL from+4(FP), R7
MOVL n+8(FP), R10
MOVQ R0, R6
CMPUGE R7, R0, R5
BNE R5, _forward
MOVQ R6, R8 /* end to address */
ADDL R10, R6, R6 /* to+n */
ADDL R10, R7, R7 /* from+n */
CMPUGE $ALIGN, R10, R1 /* need at least ALIGN bytes */
... |
0intro/9hist | 10,389 | mtx/l.s | #include "mem.h"
/* use of SPRG registers in save/restore */
#define SAVER0 SPRG0
#define SAVER1 SPRG1
#define SAVELR SPRG2
#define SAVEXX SPRG3
/* special instruction definitions */
#define BDNZ BC 16,0,
#define BDNE BC 0,2,
#define TLBIA WORD $((31<<26)|(307<<1))
#define TLBSYNC WORD $((31<<26)|(566<<1))
/* on so... |
0intro/9hist | 1,476 | mtx/inb.s | #include "mem.h"
#define BDNZ BC 16,0,
#define BDNE BC 0,2,
TEXT inb(SB), $0
OR $IOMEM, R3
MOVBZ (R3), R3
RETURN
TEXT insb(SB), $0
MOVW v+4(FP), R4
MOVW n+8(FP), R5
MOVW R5, CTR
OR $IOMEM, R3
SUB $1, R4
insb1:
MOVBZ (R3), R7
MOVBU R7, 1(R4)
BDNZ insb1
RETURN
TEXT outb(SB), $0
MOVW v+4(FP), R4
OR $IOME... |
0intro/9hist | 18,182 | bitsy/l.s | #include "mem.h"
/*
* Entered here from Compaq's bootldr with MMU disabled.
*/
TEXT _start(SB), $-4
MOVW $setR12(SB), R12 /* load the SB */
_main:
/* SVC mode, interrupts disabled */
MOVW $(PsrDirq|PsrDfiq|PsrMsvc), R1
MOVW R1, CPSR
/* disable the MMU */
MOVW $0x130, R1
MCR CpMMU, 0, R1, C(CpControl), C... |
0intro/9hist | 2,349 | bitsy/bitsyreset.s | #include "mem.h"
// Bitsy development board uses two banks: KM416S4030C,
// 12 row address bits, 8 col address bits
// Bitsy uses two banks KM416S8030C, 12 row address bits,
// 9 col address bits
// Have to set DRAC0 to 14 row bits or else you only get 8 col bits
// from the formfactor unit configuration regi... |
0intro/9hist | 1,493 | pc/ptclbsum386.s | TEXT ptclbsum(SB), $0
MOVL addr+0(FP), SI
MOVL len+4(FP), CX
XORL AX, AX /* sum */
TESTL $1, SI /* byte aligned? */
MOVL SI, DI
JEQ _2align
DECL CX
JLT _return
MOVB 0x00(SI), AH
INCL SI
_2align:
TESTL $2, SI /* word aligned? */
JEQ _32loop
CMPL CX, $2 /* less than 2 bytes? */
JLT _1dreg
SUB... |
0intro/9hist | 1,527 | pc/apmjump.s | /*
* Far call, absolute indirect.
* The argument is the offset.
* We use a global structure for the jump params,
* so this is *not* reentrant or thread safe.
*/
#include "mem.h"
#define SSOVERRIDE BYTE $0x36
#define CSOVERRIDE BYTE $0x2E
#define RETF BYTE $0xCB
GLOBL apmjumpstruct+0(SB), $8
TEXT fortytwo(SB),... |
0intro/9hist | 20,868 | pc/l.s | #include "mem.h"
#define PADDR(a) ((a) & ~KZERO)
#define KADDR(a) (KZERO|(a))
/*
* Some machine instructions not handled by 8[al].
*/
#define OP16 BYTE $0x66
#define DELAY BYTE $0xEB; BYTE $0x00 /* JMP .+2 */
#define CPUID BYTE $0x0F; BYTE $0xA2 /* CPUID, argument in AX */
#define WRMSR BYTE $0x0F; BYTE $0x30 /... |
0intro/9hist | 3,037 | pc/apbootstrap.s | #include "mem.h"
#define NOP BYTE $0x90 /* NOP */
#define LGDT(gdtptr) BYTE $0x0F; /* LGDT */ \
BYTE $0x01; BYTE $0x16; \
WORD $gdtptr
#define FARJUMP16(s, o) BYTE $0xEA; /* far jump to ptr16:16 */ \
WORD $o; WORD $s; \
NOP; NOP; NOP
#define FARJUMP32(s, o) BYTE $0x66; /* far jump to ptr32:1... |
0intro/libtask | 5,926 | asm.S | /* Copyright (c) 2005-2006 Russ Cox, MIT; see COPYRIGHT */
#if defined(__FreeBSD__) && defined(__i386__) && __FreeBSD__ < 5
#define NEEDX86CONTEXT 1
#define SET setmcontext
#define GET getmcontext
#endif
#if defined(__OpenBSD__) && defined(__i386__)
#define NEEDX86CONTEXT 1
#define SET setmcontext
#define GET getmcon... |
0Nera/BMOSP | 22,513 | kernel/cpu/idt_stubs.s | .text
.code64
.global isr_stubs
.extern isr_generic
common:
.align 16
subq $120, %rsp
movq %rbp, 0(%rsp)
movq %rbx, 8(%rsp)
movq %r15, 16(%rsp)
movq %r14, 24(%rsp)
movq %r13, 32(%rsp)
movq %r12, 40(%rsp)
movq %r11, 48(%rsp)
movq %r10, 56(%rsp)
movq %r9, 64(%... |
0Leeeezy0/20th_smart_vision | 7,618 | libraries/sdk/utilities/fsl_memcpy.S | /*
* Copyright 2022 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
.syntax unified
.text
.thumb
.align 2
#ifndef MSDK_MISC_OVERRIDE_MEMCPY
#define MSDK_MISC_OVERRIDE_MEMCPY 1
#endif
/*
This mempcy function is used to replace the GCC newlib function for these purpose... |
0Leeeezy0/20th_smart_vision | 48,683 | libraries/sdk/startup/mdk/startup_MIMXRT1064a.s | ; * -------------------------------------------------------------------------
; * @file: startup_MIMXRT1064.s
; * @purpose: CMSIS Cortex-M7 Core Device Startup File
; * MIMXRT1064
; * @version: 0.1
; * @date: 2018-6-22
; * @build: b180820
; * -----------------------------------------------------... |
0Leeeezy0/20th_smart_vision | 45,535 | libraries/sdk/startup/mdk/startup_MIMXRT1064.S | /* ------------------------------------------------------------------------- */
/* @file: startup_MIMXRT1064.s */
/* @purpose: CMSIS Cortex-M7 Core Device Startup File */
/* MIMXRT1064 */
... |
0Leeeezy0/20th_smart_vision | 2,874 | libraries/sdk/startup/iar/startup_MIMXRT1064.s | ; -------------------------------------------------------------------------
; @file: startup_MIMXRT1064.s
; @purpose: CMSIS Cortex-M7 Core Device Startup File
; MIMXRT1064
; @version: 0.1
; @date: 2018-6-22
; @build: b180820
; ---------------------------------------------------------------------... |
0intro/plan9 | 23,112 | sys/lib/tmac/tmac.s | .lg 0
.ds sd /sys/lib/tmac
.\" RT - reset everything to normal state
.de RT
.if \\n(CS \{\
.SR 1
.BG\}
.if !\\n(1T .BG
.ce 0
.if !\\n(IK .if !\\n(IF .if !\\n(IX .if !\\n(BE .if !\\n(FT .di
.ul 0
.if \\n(QP \{\
. ll +\\n(QIu
. in -\\n(QIu
. nr QP -1\}
.if \\n(NX<=1 .if \\n(AJ=0 .if \\n(FT=0 .ll \\n(LLu
.if !\\n(IF \{\
... |
0intro/9legacy | 23,112 | sys/lib/tmac/tmac.s | .lg 0
.ds sd /sys/lib/tmac
.\" RT - reset everything to normal state
.de RT
.if \\n(CS \{\
.SR 1
.BG\}
.if !\\n(1T .BG
.ce 0
.if !\\n(IK .if !\\n(IF .if !\\n(IX .if !\\n(BE .if !\\n(FT .di
.ul 0
.if \\n(QP \{\
. ll +\\n(QIu
. in -\\n(QIu
. nr QP -1\}
.if \\n(NX<=1 .if \\n(AJ=0 .if \\n(FT=0 .ll \\n(LLu
.if !\\n(IF \{\
... |
0intro/plan9 | 12,696 | sys/src/cmd/va/l.s | /*
* Memory and machine-specific definitions. Used in C and assembler.
*/
/*
* Sizes
*/
#define BI2BY 8 /* bits per byte */
#define BI2WD 32 /* bits per word */
#define BY2WD 4 /* bytes per word */
#define BY2PG 4096 /* bytes per page */
#define WD2PG (BY2PG/BY2WD) /* words per page */
#define PGSH... |
0intro/plan9 | 13,578 | sys/src/cmd/ka/l.s | /*
* Memory and machine-specific definitions. Used in C and assembler.
*/
/*
* Sizes
*/
#define BI2BY 8 /* bits per byte */
#define BI2WD 32 /* bits per word */
#define BY2WD 4 /* bytes per word */
#define BY2PG 4096 /* bytes per page */
#define WD2PG (BY2PG/BY2WD) /* words per page */
#define PGSH... |
0intro/9legacy | 9,948 | sys/src/9k/k10/l64idt.s | /*
* Interrupt/exception handling.
*/
#include "amd64l.h"
MODE $64
TEXT _intrp<>(SB), 1, $-4 /* no error code pushed */
PUSHQ AX /* save AX */
MOVQ 8(SP), AX /* idthandlers(SB) PC */
JMP _intrcommon
TEXT _intre<>(SB), 1, $-4 /* error code pushed */
XCHGQ AX, (SP)
_intrcommon:
MOVBQZX (AX), AX
XCHGQ ... |
0intro/9legacy | 6,323 | sys/src/9k/k10/l64sipi.s | /*
* Start-up request IPI handler.
*
* This code is executed on an application processor in response to receiving
* a Start-up IPI (SIPI) from another processor.
* This must be placed on a 4KiB boundary
* somewhere in the 1st MiB of conventional memory. However,
* due to some shortcuts below it's restricted furt... |
0intro/9legacy | 1,440 | sys/src/9k/k10/l64syscall.s | #include "mem.h"
#include "amd64l.h"
MODE $64
/*
*/
TEXT touser(SB), 1, $-4
CLI
SWAPGS
MOVQ $SSEL(SiUDS, SsRPL3), AX
MOVW AX, DS
MOVW AX, ES
MOVW AX, FS
MOVW AX, GS
MOVQ $(UTZERO+0x28), CX /* ip */
MOVQ $If, R11 /* flags */
MOVQ RARG, SP /* sp */
BYTE $0x48; SYSRET /* SYSRETQ */
/*
*/
TEXT sys... |
0intro/9legacy | 7,157 | sys/src/9k/k10/l64v.s | #include "amd64l.h"
MODE $64
/*
* Port I/O.
*/
TEXT inb(SB), 1, $-4
MOVL RARG, DX /* MOVL port+0(FP), DX */
XORL AX, AX
INB
RET
TEXT insb(SB), 1, $-4
MOVL RARG, DX
MOVQ address+8(FP), DI
MOVL count+16(FP), CX
CLD
REP; INSB
RET
TEXT ins(SB), 1, $-4
MOVL RARG, DX
XORL AX, AX
INW
RET
TEXT inss(SB), ... |
0intro/9legacy | 6,242 | sys/src/9k/k10/l32p.s | #include "mem.h"
#include "amd64l.h"
MODE $32
#define pFARJMP32(s, o) BYTE $0xea; /* far jump to ptr32:16 */\
LONG $o; WORD $s
/*
* Enter here in 32-bit protected mode. Welcome to 1982.
* Make sure the GDT is set as it should be:
* disable interrupts;
* load the GDT with the table in _gdt32p;
* load all the... |
0intro/plan9 | 12,550 | sys/src/cmd/8a/l.s | /*
* Memory and machine-specific definitions. Used in C and assembler.
*/
/*
* Sizes
*/
#define BI2BY 8 /* bits per byte */
#define BI2WD 32 /* bits per word */
#define BY2WD 4 /* bytes per word */
#define BY2PG 4096 /* bytes per page */
#define WD2PG (BY2PG/BY2WD) /* words per page */
#define PGSHI... |
0intro/9legacy | 12,693 | sys/src/cmd/4a/l.s | /*
* Memory and machine-specific definitions. Used in C and assembler.
*/
/*
* Sizes
*/
#define BI2BY 8 /* bits per byte */
#define BI2WD 32 /* bits per word */
#define BY2WD 4 /* bytes per word */
#define BY2PG 4096 /* bytes per page */
#define WD2PG (BY2PG/BY2WD) /* words per page */
#define PGSH... |
0intro/9legacy | 12,696 | sys/src/cmd/va/l.s | /*
* Memory and machine-specific definitions. Used in C and assembler.
*/
/*
* Sizes
*/
#define BI2BY 8 /* bits per byte */
#define BI2WD 32 /* bits per word */
#define BY2WD 4 /* bytes per word */
#define BY2PG 4096 /* bytes per page */
#define WD2PG (BY2PG/BY2WD) /* words per page */
#define PGSH... |
0intro/9legacy | 13,578 | sys/src/cmd/ka/l.s | /*
* Memory and machine-specific definitions. Used in C and assembler.
*/
/*
* Sizes
*/
#define BI2BY 8 /* bits per byte */
#define BI2WD 32 /* bits per word */
#define BY2WD 4 /* bytes per word */
#define BY2PG 4096 /* bytes per page */
#define WD2PG (BY2PG/BY2WD) /* words per page */
#define PGSH... |
0intro/9legacy | 12,550 | sys/src/cmd/8a/l.s | /*
* Memory and machine-specific definitions. Used in C and assembler.
*/
/*
* Sizes
*/
#define BI2BY 8 /* bits per byte */
#define BI2WD 32 /* bits per word */
#define BY2WD 4 /* bytes per word */
#define BY2PG 4096 /* bytes per page */
#define WD2PG (BY2PG/BY2WD) /* words per page */
#define PGSHI... |
0intro/plan9 | 10,901 | sys/src/cmd/unix/drawterm/posix-386/md5block.s | # 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
# 116 "<stdin>"
.text
.p2align 2,0x90
.globl __md5block
__md5block:
pushl %ebp
subl $(20), %esp
movl %ebx, (20 -8)(%esp)
movl %esi, (20 -12)(%esp)
movl %edi, (20 -16)(%esp)
movl (20 +8)(%esp), %eax
addl (20 +12)(%esp), %eax
movl %eax... |
0intro/plan9 | 9,799 | sys/src/cmd/unix/drawterm/posix-386/sha1block.s | # 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
.text
.p2align 2,0x90
.globl __sha1block
__sha1block:
# 110 "<stdin>"
pushl %ebp
subl $((48+80*4)), %esp
mov %ebx, ((48+80*4)-36-(80*4))(%esp)
mov %esi, ((48+80*4)-40-(80*4))(%esp)
mov %edi, ((48+80*4)-44-(80*4))(%esp)
movl ((48+80*4)+8)(%esp),... |
0intro/9legacy | 10,901 | sys/src/cmd/unix/drawterm/posix-386/md5block.s | # 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
# 116 "<stdin>"
.text
.p2align 2,0x90
.globl __md5block
__md5block:
pushl %ebp
subl $(20), %esp
movl %ebx, (20 -8)(%esp)
movl %esi, (20 -12)(%esp)
movl %edi, (20 -16)(%esp)
movl (20 +8)(%esp), %eax
addl (20 +12)(%esp), %eax
movl %eax... |
0intro/9legacy | 9,799 | sys/src/cmd/unix/drawterm/posix-386/sha1block.s | # 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
.text
.p2align 2,0x90
.globl __sha1block
__sha1block:
# 110 "<stdin>"
pushl %ebp
subl $((48+80*4)), %esp
mov %ebx, ((48+80*4)-36-(80*4))(%esp)
mov %esi, ((48+80*4)-40-(80*4))(%esp)
mov %edi, ((48+80*4)-44-(80*4))(%esp)
movl ((48+80*4)+8)(%esp),... |
0ops/ctfs | 2,583 | 2018/seccon-quals-2018/pwn/simplememo/sc.s | start:
push rbp
mov rbp, rsp
sub rsp, 0x120
/* call fork() */
mov eax, 0x39
syscall
mov DWORD PTR [rbp-0x120],eax
cmp DWORD PTR [rbp-0x120],0x0
jne parent
/* call ptrace('PTRACE_TRACEME', 0, 0, 0) */
mov ecx,0x0
mov edx,0x0
mov esi,0x0
... |
0vercl0k/blazefox | 3,841 | src/js/ctypes/libffi/src/nios2/sysv.S | /* Low-level libffi support for Altera Nios II.
Copyright (c) 2013 Mentor Graphics.
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 limitat... |
0vercl0k/blazefox | 7,026 | src/js/ctypes/libffi/src/m68k/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2012 Alan Hourihane
Copyright (c) 1998, 2012 Andreas Schwab
Copyright (c) 2008 Red Hat, Inc.
Copyright (c) 2012 Thorsten Glaser
m68k Foreign Function Interface
Permission is hereby granted, free... |
0vercl0k/blazefox | 9,806 | src/js/ctypes/libffi/src/aarch64/sysv.S | /* Copyright (c) 2009, 2010, 2011, 2012 ARM Ltd.
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, merge, publish... |
0vercl0k/blazefox | 4,840 | src/js/ctypes/libffi/src/avr32/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2009 Bradley Smith <brad@brad-smith.co.uk>
AVR32 Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (t... |
0vercl0k/blazefox | 3,050 | src/js/ctypes/libffi/src/m32r/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2004 Renesas Technology
M32R Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
``Software'... |
0vercl0k/blazefox | 3,414 | src/js/ctypes/libffi/src/frv/eabi.S | /* -----------------------------------------------------------------------
eabi.S - Copyright (c) 2004 Anthony Green
FR-V Assembly glue.
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 th... |
0vercl0k/blazefox | 2,676 | src/js/ctypes/libffi/src/moxie/eabi.S | /* -----------------------------------------------------------------------
eabi.S - Copyright (c) 2012, 2013 Anthony Green
Moxie Assembly glue.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
``Software''), to dea... |
0vercl0k/blazefox | 8,772 | src/js/ctypes/libffi/src/microblaze/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2012, 2013 Xilinx, Inc
MicroBlaze Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
``Software... |
0vercl0k/blazefox | 7,414 | src/js/ctypes/libffi/src/sparc/v9.S | /* -----------------------------------------------------------------------
v9.S - Copyright (c) 2000, 2003, 2004, 2008 Red Hat, Inc.
SPARC 64-bit Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files ... |
0vercl0k/blazefox | 7,406 | src/js/ctypes/libffi/src/sparc/v8.S | /* -----------------------------------------------------------------------
v8.S - Copyright (c) 2013 The Written Word, Inc.
Copyright (c) 1996, 1997, 2003, 2004, 2008 Red Hat, Inc.
SPARC Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of thi... |
0vercl0k/blazefox | 4,911 | src/js/ctypes/libffi/src/m88k/obsd.S | /*
* Copyright (c) 2013 Miodrag Vallat. <miod@openbsd.org>
*
* 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, co... |
0vercl0k/blazefox | 11,938 | src/js/ctypes/libffi/src/tile/tile.S | /* -----------------------------------------------------------------------
tile.S - Copyright (c) 2011 Tilera Corp.
Tilera TILEPro and TILE-Gx Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
... |
0vercl0k/blazefox | 11,649 | src/js/ctypes/libffi/src/ia64/unix.S | /* -----------------------------------------------------------------------
unix.S - Copyright (c) 1998, 2008 Red Hat, Inc.
Copyright (c) 2000 Hewlett Packard Company
IA64/unix Foreign Function Interface
Primary author: Hans Boehm, HP Labs
Loosely modeled on Cygnus code for other platforms... |
0vercl0k/blazefox | 4,225 | src/js/ctypes/libffi/src/vax/elfbsd.S | /*
* Copyright (c) 2013 Miodrag Vallat. <miod@openbsd.org>
*
* 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, co... |
0vercl0k/blazefox | 4,477 | src/js/ctypes/libffi/src/arc/arcompact.S | /* -----------------------------------------------------------------------
arcompact.S - Copyright (c) 2013 Synposys, Inc. (www.synopsys.com)
ARCompact Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation ... |
0vercl0k/blazefox | 7,517 | src/js/ctypes/libffi/src/metag/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2013 Imagination Technologies Ltd.
Meta Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
``So... |
0vercl0k/blazefox | 14,687 | src/js/ctypes/libffi/src/sh/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2002, 2003, 2004, 2006, 2008 Kaz Kojima
SuperH Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (... |
0vercl0k/blazefox | 5,479 | src/js/ctypes/libffi/src/cris/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2004 Simon Posnjak
Copyright (c) 2005 Axis Communications AB
CRIS Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated d... |
0vercl0k/blazefox | 10,612 | src/js/ctypes/libffi/src/arm/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 1998, 2008, 2011 Red Hat, Inc.
Copyright (c) 2011 Plausible Labs Cooperative, Inc.
ARM Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this ... |
0vercl0k/blazefox | 142,148 | src/js/ctypes/libffi/src/arm/trampoline.S | # GENERATED CODE - DO NOT EDIT
# This file was generated by src/arm/gentramp.sh
# Copyright (c) 2010, Plausible Labs Cooperative, 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... |
0vercl0k/blazefox | 5,610 | src/js/ctypes/libffi/src/xtensa/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2013 Tensilica, Inc.
XTENSA Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
``Software''... |
0vercl0k/blazefox | 10,785 | src/js/ctypes/libffi/src/s390/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2000 Software AG
Copyright (c) 2008 Red Hat, Inc.
S390 Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated doc... |
0vercl0k/blazefox | 9,187 | src/js/ctypes/libffi/src/pa/linux.S | /* -----------------------------------------------------------------------
linux.S - (c) 2003-2004 Randolph Chung <tausq@debian.org>
(c) 2008 Red Hat, Inc.
HPPA Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated doc... |
0vercl0k/blazefox | 9,226 | src/js/ctypes/libffi/src/pa/hpux32.S | /* -----------------------------------------------------------------------
hpux32.S - Copyright (c) 2006 Free Software Foundation, Inc.
(c) 2008 Red Hat, Inc.
based on src/pa/linux.S
HP-UX PA Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
... |
0vercl0k/blazefox | 12,418 | src/js/ctypes/libffi/src/x86/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2013 The Written Word, Inc.
- Copyright (c) 1996,1998,2001-2003,2005,2008,2010 Red Hat, Inc.
X86 Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a cop... |
0vercl0k/blazefox | 11,592 | src/js/ctypes/libffi/src/x86/freebsd.S | /* -----------------------------------------------------------------------
freebsd.S - Copyright (c) 1996, 1998, 2001, 2002, 2003, 2005 Red Hat, Inc.
Copyright (c) 2008 Björn König
X86 Foreign Function Interface for FreeBSD
Permission is hereby granted, free of charge, to any person obtaining
a... |
0vercl0k/blazefox | 11,571 | src/js/ctypes/libffi/src/x86/unix64.S | /* -----------------------------------------------------------------------
unix64.S - Copyright (c) 2013 The Written Word, Inc.
- Copyright (c) 2008 Red Hat, Inc
- Copyright (c) 2002 Bo Thorsen <bo@suse.de>
x86-64 Foreign Function Interface
Permission is hereby granted, free of charge, to any p... |
0vercl0k/blazefox | 11,363 | src/js/ctypes/libffi/src/x86/darwin64.S | /* -----------------------------------------------------------------------
darwin64.S - Copyright (c) 2006 Free Software Foundation, Inc.
Copyright (c) 2008 Red Hat, Inc.
derived from unix64.S
x86-64 Foreign Function Interface for Darwin.
Permission is hereby granted, free of charge, to any perso... |
0vercl0k/blazefox | 36,563 | src/js/ctypes/libffi/src/x86/win32.S | /* -----------------------------------------------------------------------
win32.S - Copyright (c) 1996, 1998, 2001, 2002, 2009 Red Hat, Inc.
Copyright (c) 2001 John Beniton
Copyright (c) 2002 Ranjit Mathew
Copyright (c) 2009 Daniel Witte
X86 Foreign Function Interface
Permission ... |
0vercl0k/blazefox | 9,335 | src/js/ctypes/libffi/src/x86/win64.S | #define LIBFFI_ASM
#include <fficonfig.h>
#include <ffi.h>
/* Constants for ffi_call_win64 */
#define STACK 0
#define PREP_ARGS_FN 32
#define ECIF 40
#define CIF_BYTES 48
#define CIF_FLAGS 56
#define RVALUE 64
#define FN 72
/* ffi_call_win64 (void (*prep_args_fn)(char *, extended_cif *),
extended... |
0vercl0k/blazefox | 9,827 | src/js/ctypes/libffi/src/x86/darwin.S | /* -----------------------------------------------------------------------
darwin.S - Copyright (c) 1996, 1998, 2001, 2002, 2003, 2005 Red Hat, Inc.
Copyright (C) 2008 Free Software Foundation, Inc.
X86 Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a c... |
0vercl0k/blazefox | 11,693 | src/js/ctypes/libffi/src/sh64/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2003, 2004, 2006, 2008 Kaz Kojima
SuperH SHmedia Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files... |
0vercl0k/blazefox | 8,328 | src/js/ctypes/libffi/src/alpha/osf.S | /* -----------------------------------------------------------------------
osf.S - Copyright (c) 1998, 2001, 2007, 2008, 2011 Red Hat
Alpha/OSF Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (t... |
0vercl0k/blazefox | 4,425 | src/js/ctypes/libffi/src/bfin/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2012 Alexandre K. I. de Mendonca <alexandre.keunecke@gmail.com>,
Paulo Pizarro <paulo.pizarro@gmail.com>
Blackfin Foreign Function Interface
Permission is hereby granted, free of... |
0vercl0k/blazefox | 10,586 | src/js/ctypes/libffi/src/mips/o32.S | /* -----------------------------------------------------------------------
o32.S - Copyright (c) 1996, 1998, 2005 Red Hat, Inc.
MIPS Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
``So... |
0vercl0k/blazefox | 14,304 | src/js/ctypes/libffi/src/mips/n32.S | /* -----------------------------------------------------------------------
n32.S - Copyright (c) 1996, 1998, 2005, 2007, 2009, 2010 Red Hat, Inc.
MIPS Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation ... |
0vercl0k/blazefox | 9,514 | src/js/ctypes/libffi/src/powerpc/linux64_closure.S | /* -----------------------------------------------------------------------
sysv.h - Copyright (c) 2003 Jakub Jelinek <jakub@redhat.com>
Copyright (c) 2008 Red Hat, Inc.
PowerPC64 Assembly glue.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associate... |
0vercl0k/blazefox | 6,192 | src/js/ctypes/libffi/src/powerpc/sysv.S | /* -----------------------------------------------------------------------
sysv.S - Copyright (c) 1998 Geoffrey Keating
Copyright (C) 2007 Free Software Foundation, Inc
PowerPC Assembly glue.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated do... |
0vercl0k/blazefox | 6,691 | src/js/ctypes/libffi/src/powerpc/aix.S | /* -----------------------------------------------------------------------
aix.S - Copyright (c) 2002, 2009 Free Software Foundation, Inc.
based on darwin.S by John Hornkvist
PowerPC Assembly glue.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associa... |
0vercl0k/blazefox | 16,116 | src/js/ctypes/libffi/src/powerpc/darwin_closure.S | /* -----------------------------------------------------------------------
darwin_closure.S - Copyright (c) 2002, 2003, 2004, 2010,
Free Software Foundation, Inc.
based on ppc_closure.S
PowerPC Assembly glue.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this soft... |
0vercl0k/blazefox | 7,790 | src/js/ctypes/libffi/src/powerpc/ppc_closure.S | /* -----------------------------------------------------------------------
sysv.h - Copyright (c) 2003 Jakub Jelinek <jakub@redhat.com>
Copyright (c) 2008 Red Hat, Inc.
PowerPC Assembly glue.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated ... |
0vercl0k/blazefox | 9,120 | src/js/ctypes/libffi/src/powerpc/aix_closure.S | /* -----------------------------------------------------------------------
aix_closure.S - Copyright (c) 2002, 2003, 2009 Free Software Foundation, Inc.
based on darwin_closure.S
PowerPC Assembly glue.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and ass... |
0vercl0k/blazefox | 11,167 | src/js/ctypes/libffi/src/powerpc/darwin.S | /* -----------------------------------------------------------------------
darwin.S - Copyright (c) 2000 John Hornkvist
Copyright (c) 2004, 2010 Free Software Foundation, Inc.
PowerPC Assembly glue.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and as... |
0vercl0k/blazefox | 6,429 | src/js/ctypes/libffi/src/powerpc/linux64.S | /* -----------------------------------------------------------------------
sysv.h - Copyright (c) 2003 Jakub Jelinek <jakub@redhat.com>
Copyright (c) 2008 Red Hat, Inc.
PowerPC64 Assembly glue.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associate... |
0intro/plan9 | 1,085 | sys/src/ape/lib/ap/power/atom.s | TEXT _xinc(SB),$0 /* void _xinc(long *); */
TEXT ainc(SB),$0 /* long ainc(long *); */
MOVW R3, R4
xincloop:
LWAR (R4), R3
ADD $1, R3
DCBT (R4) /* fix 405 errata cpu_210 */
STWCCC R3, (R4)
BNE xincloop
RETURN
TEXT _xdec(SB),$0 /* long _xdec(long *); */
TEXT adec(SB),$0 /* long adec(long *); */
MOVW R3, R4
xd... |
0intro/plan9 | 1,211 | sys/src/ape/lib/ap/power/memset.s | TEXT memset(SB),$0
#define BDNZ BC 16,0,
MOVW R3, p+0(FP) /* R3 is pointer */
/*
* performance:
* about 100mbytes/sec (8k blocks) on a 603/105 without L2 cache
* drops to 40mbytes/sec (10k blocks) and 28mbytes/sec with 32k blocks
*/
MOVW n+8(FP), R4 /* R4 is count */
CMP R4, $0
BLE ret
MOVW c+4(FP), R5 /... |
0intro/plan9 | 2,479 | sys/src/ape/lib/ap/power/memmove.s | #define BDNZ BC 16,0,
TEXT memmove(SB), $0
BR move
TEXT memcpy(SB), $0
move:
/*
* performance:
* (tba)
*/
MOVW R3, s1+0(FP)
MOVW n+8(FP), R9 /* R9 is count */
MOVW R3, R10 /* R10 is to-pointer */
CMP R9, $0
BEQ ret
BLT trap
MOVW s2+4(FP), R11 /* R11 is from-pointer */
/*
* if no more than 16 bytes... |
0intro/plan9 | 1,493 | sys/src/ape/lib/ap/power/memcmp.s | TEXT memcmp(SB), $0
#define BDNZ BC 16,0,
MOVW R3, s1+0(FP) /* R3 is pointer1 */
/*
* performance:
* 67mb/sec aligned; 16mb/sec unaligned
*/
MOVW n+8(FP), R4 /* R4 is count */
MOVW s2+4(FP), R5 /* R5 is pointer2 */
/*
* let LSW do the work for 4 characters or less; aligned and unaligned
*/
CMP R4, $0
B... |
0intro/plan9 | 3,748 | sys/src/ape/lib/ap/power/vlop.s | #define BDNZ BC 16,0,
/*
* 64/64 division adapted from powerpc compiler writer's handbook
*
* (R3:R4) = (R3:R4) / (R5:R6) (64b) = (64b / 64b)
* quo dvd dvs
*
* Remainder is left in R7:R8
*
* Code comment notation:
* msw = most-significant (high-order) word, i.e. bits 0..31
* lsw = least-significant (low-orde... |
0intro/plan9 | 2,877 | sys/src/ape/lib/ap/386/atom.s | TEXT ainc(SB), 1, $-4 /* int ainc(int*); */
MOVL arg+0(FP), BX
MOVL $1, AX
LOCK; BYTE $0x0f; BYTE $0xc1; BYTE $0x03/* XADDL AX, (BX) */
ADDL $1, AX /* overflow if -ve or 0 */
RET
TEXT adec(SB), 1, $-4 /* int adec(int*); */
MOVL arg+0(FP), BX
MOVL $-1, AX
LOCK; BYTE $0x0f; BYTE $0xc1; BYTE $0x03/* XADD... |
0intro/plan9 | 1,282 | sys/src/ape/lib/ap/sparc/memset.s | TEXT memset(SB),$0
/*
* performance:
* (tba)
*/
MOVW R7, 0(FP)
MOVW n+8(FP), R9 /* R9 is count */
MOVW p+0(FP), R10 /* R10 is pointer */
MOVW c+4(FP), R11 /* R11 is char */
ADD R9,R10, R12 /* R12 is end pointer */
/*
* if not at least 4 chars,
* dont even mess around.
* 3 chars to guarantee any
* rou... |
0intro/plan9 | 2,430 | sys/src/ape/lib/ap/sparc/memmove.s | TEXT memmove(SB), $0
JMP move
TEXT memcpy(SB), $0
move:
/*
* performance:
* (tba)
*/
MOVW R7, s1+0(FP)
MOVW n+8(FP), R9 /* R9 is count */
MOVW R7, R10 /* R10 is to-pointer */
SUBCC R0,R9, R0
BGE ok
MOVW 0(R0), R0
ok:
MOVW s2+4(FP), R11 /* R11 is from-pointer */
ADD R9,R11, R13 /* R13 is end from-... |
0intro/plan9 | 1,715 | sys/src/ape/lib/ap/sparc/memcmp.s | #define Bxx BE
TEXT memcmp(SB), $0
/*
* performance:
* (tba)
*/
MOVW R7, 0(FP)
MOVW n+8(FP), R9 /* R9 is count */
MOVW s1+0(FP), R10 /* R10 is pointer1 */
MOVW s2+4(FP), R11 /* R11 is pointer2 */
ADD R9,R10, R12 /* R12 is end pointer1 */
/*
* if not at least 4 chars,
* dont even mess around.
* 3 char... |
0intro/plan9 | 1,115 | sys/src/ape/lib/ap/sparc/strcpy.s | TEXT strcpy(SB), $0
MOVW R7, 0(FP)
MOVW s1+0(FP), R9 /* R9 is to pointer */
MOVW s2+4(FP), R10 /* R10 is from pointer */
/*
* test if both pointers
* are similarly word aligned
*/
XOR R9,R10, R7
ANDCC $3,R7, R0
BNE una
/*
* make byte masks
*/
MOVW $0xff, R17
SLL $8,R17, R16
SLL $16,R17, R13
SLL $24,... |
0intro/plan9 | 5,379 | sys/src/ape/lib/ap/sparc/muldiv.s | /*
* ulong
* _udiv(ulong num, ulong den)
* {
* int i;
* ulong quo;
*
* if(den == 0)
* *(ulong*)-1 = 0;
* quo = num;
* if(quo > 1<<(32-1))
* quo = 1<<(32-1);
* for(i=0; den<quo; i++)
* den <<= 1;
* quo = 0;
* for(; i>=0; i--) {
* quo <<= 1;
* if(num >= den) {
* num -= den;
* qu... |
0intro/plan9 | 2,423 | sys/src/ape/lib/ap/sparc/vlop.s | TEXT _mulv(SB), $0
MOVW u1+8(FP), R8
MOVW u2+16(FP), R13
MOVW R13, R16 /* save low parts for later */
MOVW R8, R12
/*
* unsigned 32x32 => 64 multiply
*/
CMP R13, R8
BLE mul1
MOVW R12, R13
MOVW R16, R8
mul1:
MOVW R13, Y
ANDNCC $0xFFF, R13, R0
BE mul_shortway
ANDCC R0, R0, R9 /* zero partial product ... |
0intro/plan9 | 1,282 | sys/src/ape/lib/ap/arm/atom.s | #define CLREX WORD $0xf57ff01f
#define LDREX(a,r) WORD $(0xe<<28|0x01900f9f | (a)<<16 | (r)<<12)
/* `The order of operands is from left to right in dataflow order' - asm man */
#define STREX(v,a,r) WORD $(0xe<<28|0x01800f90 | (a)<<16 | (r)<<12 | (v)<<0)
/*
* int cas(ulong *p, ulong ov, ulong nv);
*/
TEXT cas+0(SB)... |
0intro/plan9 | 4,198 | sys/src/ape/lib/ap/arm/memmove.s | TS = 0
TE = 1
FROM = 2
N = 3
TMP = 3 /* N and TMP don't overlap */
TMP1 = 4
TEXT memcpy(SB), $-4
B _memmove
TEXT memmove(SB), $-4
_memmove:
MOVW R(TS), to+0(FP) /* need to save for return value */
MOVW from+4(FP), R(FROM)
MOVW n+8(FP), R(N)
ADD R(N), R(TS), R(TE) /* to end pointer */
CMP R(FROM), R(TS)
B... |
0intro/plan9 | 1,639 | sys/src/ape/lib/ap/arm/div.s | Q = 0
N = 1
D = 2
CC = 3
TMP = 11
TEXT save<>(SB), 1, $0
MOVW R(Q), 0(FP)
MOVW R(N), 4(FP)
MOVW R(D), 8(FP)
MOVW R(CC), 12(FP)
MOVW R(TMP), R(Q) /* numerator */
MOVW 20(FP), R(D) /* denominator */
CMP $0, R(D)
BNE s1
MOVW -1(R(D)), R(TMP) /* divide by zero fault */
s1: RET
TEXT rest<>(SB), 1, $0
MOVW 0(F... |
0intro/plan9 | 1,270 | sys/src/ape/lib/ap/mips/memset.s | TEXT memset(SB),$12
MOVW R1, 0(FP)
/*
* performance:
* about 1us/call and 28mb/sec
*/
MOVW n+8(FP), R3 /* R3 is count */
MOVW p+0(FP), R4 /* R4 is pointer */
MOVW c+4(FP), R5 /* R5 is char */
ADDU R3,R4, R6 /* R6 is end pointer */
/*
* if not at least 4 chars,
* dont even mess around.
* 3 chars to gua... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.