repo_id string | size int64 | file_path string | content string |
|---|---|---|---|
AndrasKovacs/staged | 10,379 | hipe-doc/Notes2.s | .section .rodata.str,"aMS",@progbits,1
.align 1
.align 1
.globl Foo_zdtczqNode3_bytes
.type Foo_zdtczqNode3_bytes, @object
Foo_zdtczqNode3_bytes:
.string "'Node"
.section .rodata.str,"aMS",@progbits,1
.align 1
.align 1
.globl Foo_zdtczqLeaf3_bytes
.type Foo_zdtczqLeaf3_bytes, @object
Foo_zdtczqLeaf3_bytes:
.string "'... |
AndrasKovacs/staged | 3,648 | hipe-doc/pinned.s | .file "pinned.c"
.text
.p2align 4
.globl foo
.type foo, @function
foo:
.LFB4:
endbr64
testb $1, %dil
jne .L2
movq (%rdi), %rax
leaq 8(%r12), %rdx
addq $10, %rax
movq %rax, (%r12)
movq %r12, %rax
movq %rdx, %r12
ret
.L2:
pushq %r14
pushq %r13
pushq %rbp
leaq -1(%rdi), %rbp
pushq %rbx
subq $24, %rsp
... |
AndrasKovacs/staged | 1,512 | old/notes/gcnotes.s | .text
.intel_syntax noprefix
.file "gcnotes.c"
.globl map # -- Begin function map
.p2align 4, 0x90
.type map,@function
map: # @map
# %bb.0:
mov rax, qword ptr [r14]
mov rcx, rax
shr rcx, 58
jne .LBB0_2
# %bb.1:
mov qword ptr [r13], 0
mov qword ptr [r13 ... |
AndrasKovacs/staged | 4,043 | old/notes/GHCComp.s | .text
.file "ghc_1.ll"
.globl GHCComp_bar_info$def # -- Begin function GHCComp_bar_info$def
.p2align 4, 0x90
.type GHCComp_bar_info$def,@object
.quad 8589934604 # @"GHCComp_bar_info$def"
# 0x20000000c
.quad 0 # 0x0
.long 14 ... |
AndrasKovacs/staged | 12,568 | old/notes/rtsclang.s | .text
.file "rtsclang.c"
.globl perform_gc # -- Begin function perform_gc
.p2align 4, 0x90
.type perform_gc,@function
perform_gc: # @perform_gc
# %bb.0:
pushq %rax
movl $.Lstr, %edi
callq puts
xorl %edi, %edi
callq exit
.Lfunc_end0:
.size perform_gc, .Lfunc_en... |
AndrasKovacs/staged | 9,049 | old/notes/rts.s | .file "rts.c"
.text
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "TODO: perform GC"
.text
.globl perform_gc
.type perform_gc, @function
perform_gc:
endbr64
pushq %rax
popq %rax
subq $8, %rsp
leaq .LC0(%rip), %rdi
call *puts@GOTPCREL(%rip)
movl $0, %edi
call *exit@GOTPCREL(%rip)
.size perform_... |
AndrasKovacs/staged | 2,223 | old/notes/llvmnotes.s | .text
.intel_syntax noprefix
.file "llvmnotes.c"
.globl bar # -- Begin function bar
.p2align 4, 0x90
.type bar,@function
bar: # @bar
# %bb.0:
imul r13, rbp
mov rax, r13
ret
.Lfunc_end0:
.size bar, .Lfunc_end0-bar
# ... |
AndrasKovacs/staged | 1,258 | old/notes/inline_asm.s | .file "inline_asm.c"
.text
.p2align 4
.globl kek
.type kek, @function
kek:
.LFB27:
.cfi_startproc
movq %rsi, (%rdi)
xorl %eax, %eax
ret
.cfi_endproc
.LFE27:
.size kek, .-kek
.p2align 4
.globl foo
.type foo, @function
foo:
.LFB28:
.cfi_startproc
pushq %rbx
.cfi_def_cfa_offset 16
.cfi_offset 3, -16
xor... |
AndreaOrru/zen | 2,024 | kernel/isr.s | // Kernel stack for interrupt handling.
KERNEL_STACK = 0x80000
// GDT selectors.
KERNEL_DS = 0x10
USER_DS = 0x23
// Template for the Interrupt Service Routines.
.macro isrGenerate n
.align 4
.type isr\n, @function
isr\n:
// Push a dummy error code for interrupts that don't have one.
.if ... |
andreasjhkarlsson/gbdk-n | 1,612 | libc/set_data.s | .include "global.s"
.globl .copy_vram
;; BANKED: checked
.area _BASE
_set_bkg_data::
_set_win_data::
LDH A,(.LCDC)
BIT 4,A
JP NZ,_set_sprite_data
PUSH BC
LDA HL,7(SP) ; Skip return address and registers
LD B,(HL) ; BC = data
DEC HL
LD C,(HL)
DEC HL
LD E,(HL) ; E = nb_tiles
DEC HL
LD L,(HL) ; L =... |
andreasjhkarlsson/gbdk-n | 1,298 | libc/pad.s | .include "global.s"
;; BANKED: checked
.area _BASE
;; Wait until all buttons have been released
.padup::
_waitpadup::
PUSH AF ; Save modified registers
PUSH BC
1$:
LD B,#0xFF
2$:
CALL .jpad
OR A ; Have all buttons been released?
JR NZ,1$ ; Not yet
DEC B
JR NZ,2$
POP BC ; Restore registers
POP AF
R... |
andreasjhkarlsson/gbdk-n | 4,059 | libc/rand.s | ;/***************************************************************************
; * *
; * Module : rand.s *
; * *
; * Purp... |
andreasjhkarlsson/gbdk-n | 22,884 | libc/f_spect.s | ; font_spect.ms
; Text font
; Michael Hope, 1998
; michaelh@earthling.net
; Distrubuted under the Artistic License - see www.opensource.org
;
;; BANKED: checked, imperfect
.module font_spect
.area _BASE
_font_spect::
.byte 1+4 ; 128 character encoding
.byte 128-32 ; Tiles required
.byte 0,0,0,0,0,0,0,0,0,0,0,... |
andreasjhkarlsson/gbdk-n | 10,947 | libc/crt0.s | .include "global.s"
;; ****************************************
;; Beginning of module
;; BANKED: checked
.title "Runtime"
.module Runtime
.area _HEADER (ABS)
;; Standard header for the GB
.org 0x00
RET ; Empty function (default for interrupts)
.org 0x10
.byte 0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01
.... |
andreasjhkarlsson/gbdk-n | 1,624 | libc/get_data.s | .include "global.s"
.globl .copy_vram
;; BANKED: checked
.area _BASE
_get_bkg_data::
_get_win_data::
LDH A,(.LCDC)
BIT 4,A
JP NZ,_get_sprite_data
PUSH BC
LDA HL,7(SP) ; Skip return address and registers
LD B,(HL) ; BC = data
DEC HL
LD C,(HL)
DEC HL
LD E,(HL) ; E = nb_tiles
DEC HL
LD L,(HL) ; L =... |
andreasjhkarlsson/gbdk-n | 2,642 | libc/arand.s | ;/***************************************************************************
; * *
; * Module : arand.s *
; * *
; * Purp... |
andreasjhkarlsson/gbdk-n | 2,947 | libc/sfr.s | .area _SFR (ABS)
.org 0xFF00
_P1_REG:: ; Joystick: 1.1.P15.P14.P13.P12.P11.P10 */
.ds 1
.org 0xFF01
_SB_REG:: ; Serial IO data buffer */
.ds 1
.org 0xFF02
_SC_REG:: ; Serial IO control register */
.ds 1
.org 0xFF04
_DIV_REG:: ; Divider register */
.ds 1
.org 0xFF05
_TIMA_REG:: ; Timer counter */
.ds 1
.or... |
andreasjhkarlsson/gbdk-n | 2,297 | libc/sgb.s | .include "global.s"
.PAL_01 = 0x00
.PAL_23 = 0x01
.PAL_03 = 0x02
.PAL_12 = 0x03
.ATTR_BLK = 0x04
.ATTR_LIN = 0x05
.ATTR_DIV = 0x06
.ATTR_CHR = 0x07
.SOUND = 0x08
.SOU_TRN = 0x09
.PAL_SET = 0x0A
.PAL_TRN = 0x0B
.ATRC_EN = 0x0C
.TEST_EN = 0x0D
.ICON_EN = 0x0E
.DATA_SND = 0x0F
.DATA_TRN = 0x... |
andreasjhkarlsson/gbdk-n | 9,724 | libc/input.s | .include "global.s"
;; Note that while gets uses a pointer, the pointer had better
;; be in non-banked RAM else bad things will happen.
;; BANKED: checked, imperfect
.globl .copy_vram
.globl .set_xy_wtt
.globl .mv_sprite
.globl .set_sprite_prop
.globl .set_sprite_tile
.globl .jpad
.globl .padup
.MINMSPO... |
andreasjhkarlsson/gbdk-n | 3,517 | libc/cgb.s | .include "global.s"
.title "CGB support"
.module CGB
;; BANKED: checked, imperfect
.area _BASE
_set_bkg_palette:: ; Non-banked
PUSH BC
PUSH DE
LDA HL,9(SP) ; Skip return address and registers
LD B,(HL) ; BC = rgb_data
DEC HL
LD C,(HL)
DEC HL
LD D,(HL) ; D = nb_palettes
DEC HL
LD E,(HL) ; E = firs... |
andreasjhkarlsson/gbdk-n | 1,711 | libc/sample.s | .include "global.s"
;; BANKED: checked
.title "Sound sample player"
.module Sample
.area _BASE
.AUD3WAVERAM = 0xff30
_play_sample::
push bc
lda hl,4(sp)
ld a,(hl+)
ld d,(hl)
ld e,a
lda hl,6(sp)
ld a,(hl+)
ld b,(hl)
ld c,a
ld h,d
ld l,e
call .play_sample
pop bc
ret
; Playback raw... |
andreasjhkarlsson/gbdk-n | 1,585 | libc/set_xy_t.s | .include "global.s"
;; BANKED: checked, imperfect
.area _BASE
;; Set window tile table from BC at XY = DE of size WH = HL
;; wh >= (1,1)
.set_xy_wtt::
PUSH HL ; Store WH
LDH A,(.LCDC)
BIT 6,A
JR NZ,1$
LD HL,#0x9800 ; HL = origin
JR .set_xy_tt
1$:
LD HL,#0x9C00 ; HL = origin
JR .set_xy_tt
;; Set backgro... |
andreasjhkarlsson/gbdk-n | 5,176 | libc/f_ibm_sh.s | ; ibm_fixed.ms - fixed width IBM font
;; BANKED: checked, imperfect
.area _BASE
; 898 bytes giving ' '-'0'-'@'-'A'-'Z'-'???'-'a'-'z'-127
_font_ibm::
.byte 1+4 ; 128 character encoding
.byte 128-32 ; Tiles required
.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ; All map to space
.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0... |
andreasjhkarlsson/gbdk-n | 21,754 | libc/drawing.s | ;; Optimised Drawing library
;; By Jon Fuge (jonny@q-continuum.demon.co.uk) based on original file
;; Updates
;; 990223 Michael Removed mod_col, splitting it up into
;; fg_colour, bg_colour, and draw_mode
;; Note: some optimisations are available with unneded PUSH DE/POP DE's
;; BANKED: checked
.include ... |
andreasjhkarlsson/gbdk-n | 62,510 | libc/ibmfixed.s | ; font: font
;; BANKED: checked
.area _BASE
.globl font_load
;; Perform tricks with banking to shift this font out of
;; bank 0. Doesnt currently work as the encoding table
;; must always be visible.
_font_load_ibm_fixed:: ; Banked
ld hl,#_font_ibm_fixed
call font_load
ret
_font_ibm_fixed::
.db 0+4 ; 256 ... |
andreasjhkarlsson/gbdk-n | 3,642 | libc/global.s | .NEAR_CALLS = 1 ; <near_calls> - tag so that sed can change this
;; Changed by astorgb.pl to 1
__RGBDS__ = 0
;; Screen dimensions
.MAXCURSPOSX = 0x13 ; In tiles
.MAXCURSPOSY = 0x11
.START = 0x80
.SELECT = 0x40
.B = 0x20
.A = 0x10
.DOWN = 0x08
.UP = 0x04
.LEFT = 0x02
.RIGHT =... |
andreasjhkarlsson/gbdk-n | 22,852 | libc/f_italic.s | ; font: italic
;; BANKED: checked,imperfect
.area _BASE
_font_italic::
.db 1+4 ; 128 char encoding, compressed
.db 93 ; Number of tiles
; Encoding table
.db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
.db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
.db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
.db 0x00,0x00,0x00,0x00,0... |
andreasjhkarlsson/gbdk-n | 11,270 | libc/font.s | ; font.ms
;
; Michael Hope, 1999
; michaelh@earthling.net
; Distrubuted under the Artistic License - see www.opensource.org
;
.include "global.s"
.globl .cr_curs
.globl .adv_curs
.globl .cury, .curx
.globl .display_off
; Structure offsets
sfont_handle_sizeof = 3
sfont_handle_font = 1
sfont_handle_firs... |
andreasjhkarlsson/gbdk-n | 9,295 | libc/f_min.s | ; font_min.s
; Text font
; Michael Hope, 1998
; michaelh@earthling.net
; Distrubuted under the Artistic License - see www.opensource.org
;
;; BANKED: checked, imperfect
.module font_min
.area _BASE
_font_min::
.byte 1+4 ; 128 character encoding
.byte 37 ; Tiles required
.byte 00,00,00,00,00,00,00,00,00,00,0... |
andreasjhkarlsson/gbdk-n | 1,608 | libc/get_xy_t.s | .include "global.s"
;; BANKED: checked
.area _BASE
;; Store window tile table into (BC) at xy = DE of size WH = HL
;; WH >= (1,1)
.get_xy_wtt::
PUSH HL ; Store WH
PUSH HL ; Store WH
LDH A,(.LCDC)
BIT 6,A
JR NZ,1$
LD HL,#0x9800 ; HL = origin
JR .get_xy_tt
1$:
LD HL,#0x9C00 ; HL = origin
JR .get_... |
andreasjhkarlsson/gbdk-n | 1,488 | libc/delay.s | .include "global.s"
;; BANKED: checked, imperfect
.area _BASE
;; Delay DE milliseconds
;;
;; Entry conditions
;; DE = number of milliseconds to delay (1 to 65536, 0 = 65536)
;;
;; Register used: AF, DE
.CPMS = 4194/4 ; 4.194304 MHz
.delay:: ; 6 cycles for the CALL
PUSH BC ; 4 cycles
CALL .dly ; 12... |
andreasjhkarlsson/gbdk-n | 35,637 | examples/space/space.s | ;; Little demo illustrating how to use the graphical possibilities
;; of the GB (background, window and animated sprite)
;; I have used fixed-point values for both the position and
;; speed of objects to get smooth movements
;;
;; OBJ data : 0x8000 -> 0x8FFF (unsigned)
;; Window data : 0x8800 -> 0x97FF (sig... |
andreafioraldi/qasan | 6,409 | qemu/dtc/tests/trees.S | #include <fdt.h>
#include "testdata.h"
#define FDTLONG(val) \
.byte ((val) >> 24) & 0xff ; \
.byte ((val) >> 16) & 0xff ; \
.byte ((val) >> 8) & 0xff ; \
.byte (val) & 0xff ;
#define TREE_HDR(tree) \
.balign 8 ; \
.globl tree ; \
tree: \
FDTLONG(FDT_MAGIC) ; \
FDTLONG(tree##_end - tree) ; \
FDTLONG(tree##_... |
andreafioraldi/qasan | 81,122 | qemu/roms/sgabios/sgabios.S | /*
* Copyright 2010 Google Inc.
*
* 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 ... |
andreafioraldi/qasan | 2,820 | qemu/roms/qemu-palcode/sys-clipper.S | /* PALcode and C runtime functions for the CLIPPER system emulation.
Copyright (C) 2011 Richard Henderson
This file is part of QEMU PALcode.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Found... |
andreafioraldi/qasan | 36,759 | qemu/roms/qemu-palcode/pal.S | /* QEMU Emulation PALcode.
Copyright (C) 2011 Richard Henderson
This file is part of QEMU PALcode.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License or
... |
andreafioraldi/qasan | 2,931 | qemu/roms/qemu-palcode/console-low.S | /* Assembly helper routines for the emulation SRM console.
Copyright (C) 2011 Richard Henderson
This file is part of QEMU PALcode.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; eit... |
andreafioraldi/qasan | 1,171 | qemu/roms/qemu-palcode/strlen.S | /*
* strlen.S (c) 1995 David Mosberger (davidm@cs.arizona.edu)
*
* Finds length of a 0-terminated string. Optimized for the
* Alpha architecture:
*
* - memory accessed as aligned quadwords only
* - uses bcmpge to compare 8 bytes in parallel
* - does binary search to find 0 byte in last
* quadword (HAKMEM ne... |
andreafioraldi/qasan | 2,793 | qemu/roms/skiboot/skiboot.lds.S | /* Copyright 2013-2014 IBM Corp.
*
* 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 ... |
andreafioraldi/qasan | 1,833 | qemu/roms/SLOF/slof/lowmem.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 4,677 | qemu/roms/SLOF/slof/entry.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,737 | qemu/roms/SLOF/slof/ofw.S | /******************************************************************************
* Copyright (c) 2004, 2011 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 4,189 | qemu/roms/SLOF/rtas/reloc.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,767 | qemu/roms/SLOF/rtas/rtas_entry.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,965 | qemu/roms/SLOF/rtas/rtas_common.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 8,729 | qemu/roms/SLOF/llfw/romfs.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 10,045 | qemu/roms/SLOF/llfw/nvramlog.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 2,489 | qemu/roms/SLOF/llfw/boot_abort.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,644 | qemu/roms/SLOF/clients/takeover/entry.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 2,862 | qemu/roms/SLOF/clients/net-snk/kernel/entry.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,047 | qemu/roms/SLOF/board-js2x/llfw/stage_s.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 2,497 | qemu/roms/SLOF/board-js2x/llfw/stage2_head.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 16,296 | qemu/roms/SLOF/board-js2x/llfw/startup.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,771 | qemu/roms/SLOF/board-js2x/llfw/board_io.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,089 | qemu/roms/SLOF/board-qemu/slof/version.S | /******************************************************************************
* Copyright (c) 2010, 2011 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 2,422 | qemu/roms/SLOF/board-qemu/llfw/stage2_head.S | /******************************************************************************
* Copyright (c) 2004, 2011 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 4,574 | qemu/roms/SLOF/board-qemu/llfw/startup.S | /******************************************************************************
* Copyright (c) 2004, 2011 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,181 | qemu/roms/SLOF/board-qemu/llfw/version.S | /******************************************************************************
* Copyright (c) 2010, 2011 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,078 | qemu/roms/SLOF/board-qemu/llfw/board_io.S | /******************************************************************************
* Copyright (c) 2004, 2011 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 1,782 | qemu/roms/SLOF/lib/libhvcall/hvcall.S | #define _ASM
#define __ASSEMBLY__
#include "macros.h"
#include "libhvcall.h"
#include <termctrl.h>
#include <product.h>
#define HVCALL .long 0x44000022
.text
.align 3
ENTRY(get_print_banner)
LOAD32(r4, print_version)
LOAD32(r5, print_version_end)
std r4,0(r3)
std r5,8(r3)
blr
ENTRY(hv_generic)
HVCALL
blr
... |
andreafioraldi/qasan | 6,055 | qemu/roms/SLOF/lib/libbootmsg/bootmsg_lvl.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 2,970 | qemu/roms/SLOF/llfw/io_generic/io_generic.S | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... |
andreafioraldi/qasan | 4,424 | qemu/roms/seabios/vgasrc/vgaentry.S | // Rom layout and bios assembler to C interface.
//
// Copyright (C) 2009-2013 Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "asm-offsets.h" // BREGS_*
#include "config.h" // CONFIG_*
#include "entryfuncs.S" // ENTRY_*
/******************... |
andreafioraldi/qasan | 5,001 | qemu/roms/seabios/src/entryfuncs.S | // Macros for entering C code
//
// Copyright (C) 2008-2014 Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
/****************************************************************
* Macros for save and restore of 'struct bregs' registers
*****************... |
andreafioraldi/qasan | 17,735 | qemu/roms/seabios/src/romlayout.S | // Rom layout and bios assembler to C interface.
//
// Copyright (C) 2008-2012 Kevin O'Connor <kevin@koconnor.net>
// Copyright (C) 2002 MandrakeSoft S.A.
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "asm-offsets.h" // BREGS_*
#include "config.h" // CONFIG_*
#include "entryf... |
andreafioraldi/qasan | 8,984 | qemu/roms/openbios/libgcc/crtsavres.S | /*
* Special support for eabi and SVR4
*
* Copyright (C) 1995, 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
* Copyright 2008 Freescale Semiconductor, Inc.
* Written By Michael Meissner
*
* Based on gcc/config/rs6000/crtsavres.asm from gcc
* 64 bit additions from reading the PPC elf64abi document.... |
andreafioraldi/qasan | 4,493 | qemu/roms/openbios/arch/sparc32/wof.S | /*
* Proll takes this from Sparclinux kernel, ruthlessly truncated
* because we have no user windows.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version ... |
andreafioraldi/qasan | 8,395 | qemu/roms/openbios/arch/sparc32/vectors.S | /*
* <vectors.S>
*
* Sparc V9 Trap Table(s) with SpitFire/Cheetah extensions.
*
* Copyright (C) 1996, 2001 David S. Miller (davem@caip.rutgers.edu)
*
* This program 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... |
andreafioraldi/qasan | 15,581 | qemu/roms/openbios/arch/sparc32/entry.S | /**
** Standalone startup code for Linux PROM emulator.
** Copyright 1999 Pete A. Zaitcev
** This code is licensed under GNU General Public License.
**/
/*
* $Id: head.S,v 1.12 2002/07/23 05:47:09 zaitcev Exp $
*/
#define __ASSEMBLY
#include "psr.h"
#include "asm/asi.h"
#include "asm/crs.h"
#include "cpustate.h"... |
andreafioraldi/qasan | 7,136 | qemu/roms/openbios/arch/sparc32/udiv.S | /* $Id: udiv.S,v 1.4 1996/09/30 02:22:38 davem Exp $
* udiv.S: This routine was taken from glibc-1.09 and is covered
* by the GNU Library General Public License Version 2.
*/
/* This file is generated from divrem.m4; DO NOT EDIT! */
/*
* Division and remainder, from Appendix E of the Sparc Versi... |
andreafioraldi/qasan | 2,255 | qemu/roms/openbios/arch/sparc32/call-romvec.S | #define __ASSEMBLY
#include "psr.h"
#include "asm/asi.h"
.text
.align 4
#define STACKFRAME_SZ 0x60
/* These are just handy. */
#define _SV save %sp, -STACKFRAME_SZ, %sp
#define _RS restore
#define FLUSH_ALL_KERNEL_WINDOWS \
_SV; _SV; _SV; _SV; _SV; _SV; _SV; \
_RS; _RS; _RS; _RS; _RS; _RS; _RS;
/* Macr... |
andreafioraldi/qasan | 2,213 | qemu/roms/openbios/arch/sparc32/switch.S | #define __ASSEMBLY
#include "psr.h"
#include "asm/asi.h"
#include "cpustate.h"
#define ASI_BP ASI_M_BYPASS
#define REGWIN_SZ 0x40
.globl __switch_context, __switch_context_nosave, __exit_context, halt
.text
.align 4
/*
* Switch execution context
* This saves registers in the stack, the... |
andreas-kupries/critcl | 42,842 | examples/zlibwrap/zlib/contrib/inflate86/inffast.S | /*
* inffast.S is a hand tuned assembler version of:
*
* inffast.c -- fast decoding
* Copyright (C) 1995-2003 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*
* Copyright (C) 2003 Chris Anderson <christop@charm.net>
* Please use the copyright conditions above.
*
* This ver... |
andreafioraldi/qasan | 4,252 | qemu/roms/openbios/arch/sparc32/wuf.S | /*
* Window fill (underflow) trap, based on code from Sparclinux.
*
* Copyright (C) 1995 David S. Miller
*
* This program 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.
*
* This pro... |
andreafioraldi/qasan | 7,064 | qemu/roms/openbios/arch/ppc/start.S | /*
* Creation Date: <2001/06/16 21:30:18 samuel>
* Time-stamp: <2003/04/04 16:32:06 samuel>
*
* <init.S>
*
* Asm glue for ELF images run inside MOL
*
* Copyright (C) 2001, 2002, 2003 Samuel Rydh (samuel@ibrium.se)
*
* This program is free software; you can redistribute it and/or
* modify it under t... |
andreas-kupries/critcl | 10,026 | examples/zlibwrap/zlib/contrib/asm686/match.S | /* match.S -- x86 assembly version of the zlib longest_match() function.
* Optimized for the Intel 686 chips (PPro and later).
*
* Copyright (C) 1998, 2007 Brian Raiter <breadbox@muppetlabs.com>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the author be held ... |
andreafioraldi/qasan | 2,047 | qemu/roms/openbios/arch/ppc/misc.S | /*
* Creation Date: <2002/10/20 15:54:50 samuel>
* Time-stamp: <2002/10/20 15:57:21 samuel>
*
* <misc.S>
*
* Low-level stuff
*
* Copyright (C) 2002, 2003 Samuel Rydh (samuel@ibrium.se)
*
* Based upon misc.S from the the linux kernel with the following
* copyrights:
*
* Copyright (C) 1995-1996 G... |
andreas-kupries/critcl | 15,839 | examples/zlibwrap/zlib/contrib/gcc_gvmat64/gvmat64.S | /*
;uInt longest_match_x64(
; deflate_state *s,
; IPos cur_match); // current match
; gvmat64.S -- Asm portion of the optimized longest_match for 32 bits x86_64
; (AMD64 on Athlon 64, Opteron, Phenom
; and Intel EM64T on Pentium 4 with EM64T, Pentium D, Core 2 Duo, Core I5/I7)
;... |
andreas-kupries/critcl | 12,418 | examples/zlibwrap/zlib/contrib/amd64/amd64-match.S | /*
* match.S -- optimized version of longest_match()
* based on the similar work by Gilles Vollant, and Brian Raiter, written 1998
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the BSD License. Use by owners of Che Guevarra
* parafernalia is prohibited, where possible, a... |
andreafioraldi/qasan | 23,134 | qemu/roms/openbios/arch/sparc64/vectors.S | /*
* <vectors.S>
*
* Sparc V9 Trap Table(s) with SpitFire/Cheetah extensions.
*
* Copyright (C) 1996, 2001 David S. Miller (davem@caip.rutgers.edu)
*
* This program 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... |
andreafioraldi/qasan | 7,915 | qemu/roms/openbios/arch/sparc64/entry.S | /**
** Standalone startup code for Linux PROM emulator.
** Copyright 1999 Pete A. Zaitcev
** This code is licensed under GNU General Public License.
**/
/*
* $Id: head.S,v 1.12 2002/07/23 05:47:09 zaitcev Exp $
*/
#define __ASSEMBLY__
#include <asm/asi.h>
#include "pstate.h"
#include "lsu.h"
#include "cpustate.h... |
andreafioraldi/qasan | 2,064 | qemu/roms/openbios/arch/sparc64/switch.S | #include "pstate.h"
#include <asm/asi.h>
#include "cpustate.h"
#define ASI_BP ASI_M_BYPASS
#define REGWIN_SZ 0x40
.globl __switch_context, __switch_context_nosave, __exit_context, halt
.text
.align 4
.register %g2, #scratch
.register %g3, #scratch
.register %g6, #scratch
.register... |
andreafioraldi/qasan | 2,986 | qemu/roms/openbios/arch/sparc64/call-client.S | #include "cpustate.h"
.globl sparc64_of_client_interface, client_tba
/*
* SAVE_WINDOW_STATE and RESTORE_WINDOW_STATE are used to ensure
* that the CPU window state is preserved across CIF calls. This is
* to workaround a *BSD restriction that window fill/spill traps must
* be minimised during trap table takeove... |
andreafioraldi/qasan | 2,572 | qemu/roms/openbios/arch/amd64/switch.S | .globl entry, __switch_context, __exit_context, halt
.text
.align 4
/*
* Entry point
* We start execution from here.
* It is assumed that CPU is in 32-bit protected mode and
* all segments are 4GB and base zero (flat model).
*/
entry:
/* Save boot context and switch to our main context.
* Main context is s... |
andreafioraldi/qasan | 6,736 | qemu/roms/openbios/arch/x86/entry.S | .globl entry, __switch_context, __exit_context, halt, init_exceptions
.text
.align 4
/*
* Entry point
* We start execution from here.
* It is assumed that CPU is in 32-bit protected mode and
* all segments are 4GB and base zero (flat model).
*/
entry:
/* Save boot context and switch to our main context.
* ... |
andreafioraldi/qasan | 17,742 | qemu/roms/openbios/arch/ppc/qemu/start.S | /*
* Creation Date: <2001/06/16 21:30:18 samuel>
* Time-stamp: <2003/04/04 16:32:06 samuel>
*
* <init.S>
*
* Asm glue for ELF images
*
* Copyright (C) 2001, 2002, 2003 Samuel Rydh (samuel@ibrium.se)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the... |
andreafioraldi/qasan | 5,097 | qemu/roms/openbios/arch/ppc/qemu/switch.S | #include "autoconf.h"
#include "asm/asmdefs.h"
#include "asm/processor.h"
#ifdef CONFIG_PPC_64BITSUPPORT
#ifdef __powerpc64__
#define ULONG_SIZE 8
#define STACKFRAME_MINSIZE 48
#define STKOFF STACKFRAME_MINSIZE
#define SAVE_SPACE 320
#else
#define ULONG_SIZE 4
#define STACKFRAME_MINSIZE 16... |
andreafioraldi/qasan | 7,711 | qemu/roms/QemuMacDrivers/shared/LinuxOSI.s | ;#######################################################
;#
;# Linux Interace Stub
;#
;#######################################################
INCLUDE 'MakeFunction.s'
INCLUDE 'LinuxOSIDefs.s'
;#######################################################
; int OSI_IRQTest( int cmd, int param )
;#######################... |
andreafioraldi/qasan | 1,520 | qemu/roms/QemuMacDrivers/shared/LinuxOSIDefs.s | ;
; Linux interface magic
;
OSI_SC_MAGIC_R3: set 0x113724FA
OSI_SC_MAGIC_R4: set 0x77810F9B
MACRO
osi_call &selector
li r3,0x24FA
addis r3,r3,0x1137
li r4,0x0F9B
addis r4,r4,0x7781
li r5,&selector
sc
ENDM
;
; Selectors
;
OSI_DEBUGGER set 1
OSI_CMOUNT_DRV_VOL set 4
OSI_MOUSE_CNTRL set 8
OSI_GE... |
andreafioraldi/qasan | 4,424 | qemu/roms/seabios-hppa/vgasrc/vgaentry.S | // Rom layout and bios assembler to C interface.
//
// Copyright (C) 2009-2013 Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "asm-offsets.h" // BREGS_*
#include "config.h" // CONFIG_*
#include "entryfuncs.S" // ENTRY_*
/******************... |
andreafioraldi/qasan | 5,001 | qemu/roms/seabios-hppa/src/entryfuncs.S | // Macros for entering C code
//
// Copyright (C) 2008-2014 Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
/****************************************************************
* Macros for save and restore of 'struct bregs' registers
*****************... |
andreafioraldi/qasan | 17,735 | qemu/roms/seabios-hppa/src/romlayout.S | // Rom layout and bios assembler to C interface.
//
// Copyright (C) 2008-2012 Kevin O'Connor <kevin@koconnor.net>
// Copyright (C) 2002 MandrakeSoft S.A.
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "asm-offsets.h" // BREGS_*
#include "config.h" // CONFIG_*
#include "entryf... |
andreafioraldi/qasan | 6,627 | qemu/roms/seabios-hppa/src/parisc/head.S | /*
* Startup glue code for parisc firmware
*
* (C) 2017-2018 Helge Deller <deller@gmx.de>
*/
#include "parisc/hppa_hardware.h"
#include "autoconf.h"
#include "autoversion.h"
/* load 32-bit 'value' into 'reg' compensating for the ldil
* sign-extension when running in wide mode.
* WARNING!! neither 'value' n... |
andreafioraldi/qasan | 1,322 | qemu/roms/ipxe/src/arch/i386/core/setjmp.S | FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.text
.arch i386
.code32
/* Must match jmp_buf structure layout */
.struct 0
env_retaddr: .long 0
env_stack: .long 0
env_ebx: .long 0
env_esi: .long 0
env_edi: .long 0
env_ebp: .long 0
.previous
/*
* Save stack context for non-local goto
*/
.globl setjmp
setjmp:
/* Ge... |
andreafioraldi/qasan | 3,106 | qemu/roms/ipxe/src/arch/i386/core/gdbidt.S | /*
* Interrupt handlers for GDB stub
*/
#define SIZEOF_I386_REGS 32
#define SIZEOF_I386_FLAGS 4
/****************************************************************************
* Interrupt handlers
****************************************************************************
*/
.section ".text", "ax", @progbits
.c... |
andreafioraldi/qasan | 1,161 | qemu/roms/ipxe/src/arch/arm32/libgcc/lldivmod.S | FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.text
.thumb
/**
* Unsigned long long division
*
* @v r1:r0 Dividend
* @v r3:r2 Divisor
* @ret r1:r0 Quotient
* @ret r3:r2 Remainder
*/
.section ".text.__aeabi_uldivmod", "ax", %progbits
.globl __aeabi_uldivmod
.type __aeabi_uldivmod, %function
__aeabi_uldivmod:
... |
andreafioraldi/qasan | 1,914 | qemu/roms/ipxe/src/arch/arm32/libgcc/llshift.S | FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.text
.arm
/**
* Logical shift left
*
* @v r1:r0 Value to shift
* @v r2 Shift amount
* @ret r1:r0 Shifted value
*/
.section ".text.__aeabi_llsl", "ax", %progbits
.globl __aeabi_llsl
.type __aeabi_llsl, %function
__aeabi_llsl:
/* r3 = ( shift - 32 ) */
subs r3, r2... |
andreafioraldi/qasan | 1,224 | qemu/roms/ipxe/src/arch/arm64/core/setjmp.S | FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
.text
/* Must match jmp_buf structure layout */
.struct 0
env_x19_x20: .quad 0, 0
env_x21_x22: .quad 0, 0
env_x23_x24: .quad 0, 0
env_x25_x26: .quad 0, 0
env_x27_x28: .quad 0, 0
env_x29_x30: .quad 0, 0
env_sp: .quad 0
.previous
/*
* Save stack context for non-local goto
... |
andreafioraldi/qasan | 7,026 | qemu/roms/ipxe/src/arch/x86/transitions/libkir.S | /*
* libkir: a transition library for -DKEEP_IT_REAL
*
* Michael Brown <mbrown@fensystems.co.uk>
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
/****************************************************************************
* This file defines libkir: an interface between external and
* internal environments when -... |
andreafioraldi/qasan | 7,051 | qemu/roms/ipxe/src/arch/x86/transitions/liba20.S | /*
* Copyright (C) 2010 Michael Brown <mbrown@fensystems.co.uk>.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or any later version.
*
* This progr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.