content stringlengths 23 1.05M |
|---|
; Copyright (c) 2006-2019 Wade Alcorn - wade@bindshell.net
; Browser Exploitation Framework (BeEF) - http://beefproject.com
; See the file 'doc/COPYING' for copying permission
BITS 32
SECTION .text
global _start
_start:
cld ;clear direction flag
xor eax, eax ;zero eax
xor edx, edx ;zero edx
;initialize socket
... |
VBlank0:
;---------------------------
jsl LKS_BackgroundX
jsl LKS_BackgroundY
;---------------------------
LKS_DMA_VRAM 0
LKS_DMA_VRAM 1
LKS_DMA_VRAM 2
LKS_DMA_VRAM 3
LKS_DMA_VRAM 4
;---------------------------
jsl LKS_DMA_PAL
LKS_BG_update
rtl
WaitVBlank:
lda LKS_CLOCK
in... |
;===============================================================================
; Copyright 2015-2018 Intel Corporation
; All Rights Reserved.
;
; If this software was obtained under the Intel Simplified Software License,
; the following terms apply:
;
; The source code, information and material ("Material") co... |
; pokemon ids
; indexes for:
; - PokemonNames (see data/pokemon/names.asm)
; - BaseData (see data/pokemon/base_stats.asm)
; - EvosAttacksPointers (see data/pokemon/evos_attacks_pointers.asm)
; - EggMovePointers (see data/pokemon/egg_move_pointers.asm)
; - PokemonCries (see data/pokemon/cries.asm)
; - MonMenuIcons (see ... |
.org 0x8035FFA // x-offset for arrow for "Yes" on "Enter the date and time."
.db 0x38 // from 0x30
.org 0x8035FFC // x-offset for arrow for "Yes" on "Enter the date and time."
.db 0x89 // from 0x80
.org 0x8035FFE // x-offset for arrow on "Male"
.db 0x2C // from 0x30
.org 0x8036000 // x-offset for arrow on "Female"
... |
; Don't even think of reading this code
; It was automatically generated by md5-586.pl
; Which is a perl program used to generate the x86 assember for
; any of elf, a.out, BSDI, Win32, gaswin (for GNU as on Win32) or Solaris
; eric <eay@cryptsoft.com>
;
TITLE md5-586.asm
.386
.model FLAT
_TEXT ... |
[bits 32]
; Constants
CREATEFILEW_OFFSET equ 0x2511C
READFILE_OFFSET equ 0x250FC
GETSTDHANDLE_OFFSET equ 0x250CC
WRITEFILE_OFFSET equ 0x250D8
SLEEPEX_OFFSET equ 0x2500C
STD_OUTPUT_HANDLE equ 0xfffffff5
; Shellcode start
start:
; Get the instruction pointer into... |
;;; Segment 0800 (0800:0000)
0800:0000 BA BA 28 2E 89 16 91 02 B4 30 CD 21 8B 2E 02 00 ..(......0.!....
0800:0010 8B 1E 2C 00 8E DA A3 7D 00 8C 06 7B 00 89 1E 77 ..,....}...{...w
0800:0020 00 89 2E 91 00 E8 55 01 A1 77 00 8E C0 33 C0 8B ......U..w...3..
0800:0030 D8 8B F8 B9 FF 7F FC F2 AE E3 43 43 26 38 05 75 ........... |
; WARNING: do not edit!
; Generated from openssl/crypto/modes/asm/aesni-gcm-x86_64.pl
;
; Copyright 2013-2020 The OpenSSL Project Authors. All Rights Reserved.
;
; Licensed under the OpenSSL license (the "License"). You may not use
; this file except in compliance with the License. You can obtain a copy
; in the file... |
;Overlap block tranfer without string and with string
global _start
_start:
%macro disp 2
mov rax,1
mov rdi,1
mov rsi,%1
mov rdx,%2
syscall
%endmacro
%macro accept 2
mov rax,0
mov rdi,0
mov rsi,%1
mov rdx,%2
syscall
%endmacro
section .text
menu:
disp msg2,len2
disp msg,len
accept choice,02
mov al,byte[choice]
... |
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt).
; If you do not agree to the terms, do not use the code.
;
; Module Name:
;
; systable.asm
;
; Abstract:
;
; Thi... |
SECTION code_fp_math32
PUBLIC ___fseq_callee
EXTERN cm32_sdcc___fseq_callee
defc ___fseq_callee = cm32_sdcc___fseq_callee
|
Name: rundat.asm
Type: file
Size: 17463
Last-Modified: '1992-11-18T01:42:33Z'
SHA-1: CB559040F91206F56D48459836D77FFDC9F02E9B
Description: null
|
lui $1,19826
ori $1,$1,49734
lui $2,26681
ori $2,$2,15744
lui $3,6610
ori $3,$3,691
lui $4,21452
ori $4,$4,16857
lui $5,669
ori $5,$5,45959
lui $6,43832
ori $6,$6,40221
mthi $1
mtlo $2
sec0:
nop
nop
nop
or $0,$6,$2
sec1:
nop
nop
sltu $6,$6,$3
or $1,$6,$2
sec2:
nop
nop
ori $6,$2,17169
or $3,$6,$2
sec3:
nop
... |
vs_3_0
def c0, 1, 0, 0, 0
dcl_position v0
dcl_position o0
dp3 r0.x, v0.xyz, v0.xyz
rsq r0.x, r0.x
mul o0.xyz, r0.xxx, v0.yxz
mov o0.w, c0.x
|
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_ao_Lettera
_ff_ao_Lettera:
BINARY "font/fzx/fonts/ao/Lettera/Lettera.fzx"
|
%include "asm_io.inc"
segment .text
global asm_main
asm_main:
enter 0,0
pusha
mov eax, 3
push eax
call calc
add esp, 4
; Geben Sie den Stack direkt vor dem popa Befehl an.
popa
mov eax, 0
leave
ret
calc:
enter 4,0 ; lokale Variable fuer Ergebnissich... |
; int mtx_trylock(mtx_t *m)
SECTION code_clib
SECTION code_threads_mutex
PUBLIC mtx_trylock
EXTERN asm_mtx_trylock
defc mtx_trylock = asm_mtx_trylock
|
SFX_Intro_Lunge_Ch7:
unknownnoise0x20 6, 32, 16
unknownnoise0x20 6, 47, 64
unknownnoise0x20 6, 79, 65
unknownnoise0x20 6, 143, 65
unknownnoise0x20 6, 207, 66
unknownnoise0x20 8, 215, 66
unknownnoise0x20 15, 231, 67
unknownnoise0x20 15, 242, 67
endchannel
|
.model small
.stack 64
.data
;; take decimal and print on screen as a decimal value
num dw 1 ; input value
str db 4 dup('0')
.code
main proc
mov ax,@data
mov ds,ax
mov ax,num
lea si,str+3
lea di,str
mov cx,4
mov dx,0
label1:
mov bx,10
div bx
mov dh,30h
add dl,dh
mov [si],dl
dec si
mov ... |
; stdio_outpad
; 05.2008
XLIB stdio_outpad
LIB stdio_outchar
; output n identical characters
;
; enter : ix = FILE *
; c = char for output
; b = number of chars to output
; carry set if error on stream, ERRNO set appropriately
; uses : af, b, exx
.stdio_outpad
ld a,b
or a
ret ... |
; char *strupr(char *s)
SECTION code_clib
SECTION code_string
PUBLIC _strupr
EXTERN asm_strupr
_strupr:
pop af
pop hl
push hl
push af
jp asm_strupr
|
global _start
section .text
_start:
cld ; clear the direction flag
IncPage:
or cx, 0xfff ; Align page address
IncAddr:
inc ecx ; Go to next address
push byte 0x43 ; syscall for sigaction()
pop eax
int 0x80 ; call sigaction(... |
;===============================================================================
; Copyright 2014-2021 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... |
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24))
ftyp_start:
dd BE(ftyp_end - ftyp_start)
dd "ftyp"
db 0x6D, 0x69, 0x66, 0x31 ; "major_brand(32)"
db 0x00, 0x00, 0x00, 0x00 ; "minor_version(32)"
db 0x6D, 0x69, 0x66, 0x31 ; "com... |
46_Header:
sHeaderInit ; Z80 offset is $C39F
sHeaderPatch 46_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 46_FM5, $00, $00
46_FM5:
sPatFM $00
ssModZ80 $05, $01, $1B, $37
dc.b nC5, $30
sStop
46_Patches:
; Patch $00
; $07
; $03, $13, $23, $33, $0F, $0F, $0F, $0F
; $00, $00, $00, $00, $... |
%include "file.inc"
%ifndef ASM
%error ASM
%endif
%ifndef NASM
%error NASM
%endif
%ifdef YASM
%error YASM
%endif
%ifdef MASM
%error MASM
%endif
|
;* --------BEGIN--------
;* E:\atari\__code\MadPascal\3inaRow\popndrop.rmt
FEAT_SFX equ 1
FEAT_GLOBALVOLUMEFADE equ 0 ;RMTGLOBALVOLUMEFADE variable
FEAT_NOSTARTINGSONGLINE equ 0
FEAT_INSTRSPEED equ 1
FEAT_CONSTANTSPEED equ 5 ;(0 times)
FEAT_COMMAND1 equ 1 ;(46 times)
FEAT_COMMAND2 equ 0 ;(0 times)
FEA... |
user/_alloctest: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <test0>:
#include "kernel/fcntl.h"
#include "kernel/memlayout.h"
#include "user/user.h"
void
test0() {
0: 715d addi sp,sp,-80
2: e486 sd ra,72(sp)
4: e0a2 sd s0... |
; ================================================================
; Variables
; ================================================================
if !def(incVars)
incVars set 1
SECTION "Variables",WRAM0
; ================================================================
; Global variables
; ===============... |
; void bv_priority_queue_destroy_fastcall(bv_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_bv_priority_queue
PUBLIC _bv_priority_queue_destroy_fastcall
EXTERN asm_bv_priority_queue_destroy
defc _bv_priority_queue_destroy_fastcall = asm_bv_priority_queue_destroy
|
; Set printer from sdd linkage and do V2.00 1987 Tony Tebby Qjump
section sdp
xdef sdp_psdo
xref sdp_setw
xref sdp_dosv
xref dm_prt1
xref dm_prt2
xref dm_prt3
xref dm_prt4
xref dm_prt5
xref dm_prt6
... |
==================== Asm code ====================
.section .text
.align 8
.globl func1
.type func1, @function
func1:
_c4:
cmpq %r14,%rbx
ja _c1
_c3:
movl $100,%ebx
_c2:
jmp *(%rbp)
_c1:
movl $111,%ebx
jmp _c2
.size func1, .-func1
|
SECTION code_clib
PUBLIC in_Joystick1
PUBLIC _in_Joystick1
EXTERN in_JoySinclair1
defc in_Joystick1 = in_JoySinclair1
defc _in_Joystick1 = in_Joystick1
|
[bits 64]
push dword 50 ; out: 6a 32
push dword -1 ; out: 6a ff
push strict dword 50 ; out: 68 32 00 00 00
push strict dword -1 ; out: 68 ff ff ff ff
push dword 1000000000000 ; out: 68 00 10 a5 d4
|
#!/bin/sh
rm -rf ./a.out
rm -rf *.o
export CC=${CK_CC}
export CXX=${CK_CXX}
export CFLAGS="${CK_PROG_COMPILER_VARS} ${CK_PROG_COMPILER_FLAGS} -DXOPENME"
export LDFLAGS="${CK_PROG_LINKER_LIBS} ${CK_EXTRA_LIB_M}"
export LIBS="${CK_PROG_LINKER_LIBS} ${CK_EXTRA_LIB_M}"
echo ""
echo "${CC} -c ${CFLAGS} ../filter_codelet.... |
;Ascii support for Chip16 ver 0.5
;Shendo 2010 - 2011
;
;Registers ra-rf are reserved for printing strings.
;Registers r0-r9 are free to use.
;
cls ;Start clean
spr #0F05 ;10x15 px sprites
:start ;Start of the program
ldi ra,10 ;X coordinate
ldi rb,10 ;Y coordinate
ldi rc,#AAAA ;Green color
l... |
.386p
page 58,132
;******************************************************************************
title MODESW.ASM - 386 Mode Switching Support Routines
;******************************************************************************
;
; (C) Copyright MICROSOFT Corp. 1986-1991
; (C) Copyright COMPAQ Computer Corp. ... |
SECTION code_fp_am9511
PUBLIC exp10
EXTERN cam32_sccz80_exp10
defc exp10 = cam32_sccz80_exp10
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _exp10
EXTERN cam32_sdcc_exp10
defc _exp10 = cam32_sdcc_exp10
ENDIF
|
TITLE SEARCH - Directory scan system calls
NAME SEARCH
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
;** Search.asm
;
; Directory search system calls. These will be passed direct text of the
; pathname from the user. They will need to be passed through the macro
; e... |
Name: zel_endz.asm
Type: file
Size: 16673
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: E81156DEBFDBDA696E6575285A43AA114929987E
Description: null
|
<%
from pwnlib.shellcraft.thumb import push
from pwnlib.shellcraft.thumb.linux import read, readn, mmap
from pwnlib import constants as C
%>
<%page args="fd=0, length=None"/>
<%docstring>
Migrates shellcode to a new buffer.
Arguments:
fd(int):
Integer file descriptor to recv data from.
Default is s... |
db KOFFING ; pokedex id
db 40 ; base hp
db 65 ; base attack
db 95 ; base defense
db 35 ; base speed
db 60 ; base special
db POISON ; species type 1
db POISON ; species type 2
db 190 ; catch rate
db 114 ; base exp yield
INCBIN "pic/gsmon/koffing.pic",0,1 ; 66, sprite dimensions
dw KoffingPicFront
dw KoffingPicBack
; att... |
;
; Template
;
StageCreateTerrain: .block
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Definitions
;
PHASE_TERRAIN = 0
PHASE_TCHARS = 1
PHASE_ORE = 2
PHASE_DONE = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Vars
;
.section section_ZP
tcol_addr .word ? ; pointer to ... |
; vim: ft=nasm
%define EOF 4
%define FUNCALIGN align 16
%define ALTSIZE 16000
%define SEEK_SET 0
%define SEEK_CUR 1
%define SEEK_END 2
%define SIG_ERR -1
%define SIG_DFL 0
%define SIG_IGN 1
%define SIG_HOLD 5
%define SIGHUP 1
%define SIGINT 2
%define SIGQUIT 3
%define SIGILL 4
%define SIGTRAP 5
%define SIGABRT 6
... |
# ORG 8000
MVI A,1A
MVI B,2B
MVI C,3C
MVI D,4D
MVI E,5E
MVI H,6F
MVI L,7A
HLT
|
; An example of
SECTION .data
SECTION .bss
BUFFLEN equ 1024
Buff: resb BUFFLEN
SECTION .text
global _start
_start:
; read from stdin to buffer
Read:
mov eax, 3
mov ebx, 0
mov ecx, Buff
mov edx, BUFFLEN
int 80H
mov esi, eax
cmp eax, 0
je Done
mov ecx, esi
mov eb... |
.nds
.relativeinclude on
.erroronwarning on
; This patch fixes issues that could happen in the first room of the castle if the player got one of the bad endings before seeing the cutscene with Hammer in that first room.
; The cutscene with Hammer would play at the same time as the bad ending cutscene, and could allow ... |
;===============================================================================
; INTTEST - Test HBIOS interrupt API functions
;
;===============================================================================
;
; Author: Wayne Warthen (wwarthen@gmail.com)
;______________________________________________________... |
compressedDataPointer: dw 0
vProgram:
inc word[cs:compressedDataPointer]
mov es,[cs:compressedDataPointer]
mov al,[es:0x0]
mov [ss:w0+3],al
mov al,[es:0x3]
mov [ss:w1+3],al
mov al,[es:0x6]
mov [ss:w2+3],al
mov al,[es:0x9]
mov [ss:w3+3],al
mov ax,[es:0x1]
mov [ss:f0+2],ax
mov ax,[es:0x4... |
.MODEL SMALL
.STACK
.DATA
ARRAY1 DB 30 DUP(?)
ARRAY2 DB 30 DUP(?)
MSG DB 10,13,'ENTER THE STRING $'
MSG1 DB 10,13,'ENTERED STRING IS A PALINDROME $'
MSG2 DB 10,13,'ENTERED STRING IS NOT A PALINDROME $'
.CODE
MOV AX,@DATA
MOV DS,AX
MOV ES,AX ;ADD AN EXTRA SEGMENT
LEA SI, ARRAY1
... |
# a====>$s0
# b====>$s1
read_a:li $v0,5
syscall
la $s0,($v0)
switch:
beq $s0,0,case0
beq $s0,1,case1
j default
case0:li $s1,-1
j print
case1:li $s1,0
j print
default:li $s1,1
print:
li $v0,1
move $a0,$s1
syscall
|
BITS 64
global _start
section .text
_start:
jmp _push_filename
_readfile:
; syscall open file
pop rdi ; pop path value
; NULL byte fix
xor byte [rdi + 11], 0x41
xor rax, rax
add al, 2
xor rsi, rsi ; set O_RDONLY flag
syscall
; syscall read file
sub sp, 0xfff
lea rsi, [rsp]
mov rdi, rax
xor rdx, rdx
mov dx, ... |
; A076435: Number of strongly regular simple graphs on n nodes.
; 1,2,2,4,3,6,2,6,5,8
mov $3,$0
mul $3,7
pow $3,2
mul $0,$3
mov $1,$3
lpb $0
sub $0,1
mov $2,$1
add $1,$0
trn $0,3
mod $2,84
add $2,1
sub $3,$2
lpe
mov $0,$3
add $0,1
mod $0,10
add $0,10
mod $0,10
|
inc si
;; KFX kernel - The bootloader loads this to 0x0800:0000 and jumps to 0008
;[bits 16]
;[org 0x8000] ; use absolute origin 0x8000 (32k)
;
;kernel_header: ; header is 8 bytes
;db 'KFX', 0 ; signature 4 bytes
;;db kernel_length ; kernel length 1 byte in blocks
;db 123
;db 0 ... |
; Are data offsets relative to segment or group?
; The question only makes sense for a segment in a group.
; A difference will only be shown when another segment comes before it in the group.
; The problem is only relevant in EXE, not in COM where all is one segment anyway.
; data displacement [disp], [si+disp]
; ... |
build/demo.axf: file format elf32-littleriscv
build/demo.axf
architecture: riscv:rv32, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00000000
Program Header:
LOAD off 0x00001000 vaddr 0x00000000 paddr 0x00000000 align 2**12
filesz 0x00002d58 memsz 0x000153b0 flags rwx
Sections:
Idx ... |
;;; 6502 logo Jeremy English 12-January-2008
start:
ldx #0
stx $20
lda #5
sta $21
lda $fe
sta $22
loop:
dec $21
lda $21
beq randcolor
jmp pastrandcolor
randcolor:
lda #5
sta $21
ldx #33
inc $22
lda $22
and #7
tay
rl:
lda $1000,x
beq pastcolor1
lda color_row,y
sta $1000,x
pastcolor1:
lda $1040,x
beq pastcolor2
lda c... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Adc.inc"
#include "TestFixture.inc"
radix decimal
udata
global initialAdcChannel
global attemptedAdcChannel
initialAdcChannel res 1
attemptedAdcChannel res 1
expectedAdcon0 res 1
expectedW res 1
SetAdcChannelWhenAlreadySetTest code
global testArrang... |
[GLOBAL jump_to_kernel]
[section .text]
jump_to_kernel:
jmp rdi
ret |
page ,132
; SCCSID = @(#)tbatch2.asm 4.2 85/07/22
; SCCSID = @(#)tbatch2.asm 4.2 85/07/22
TITLE Batch processing routines part II
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;
; Revision Histor... |
data segment
t db "0123456789ABCDEF"
x dw 1111000010100110B
data ends
code segment
assume cs:code, ds:data
main:
mov ax, data
mov ds, ax
mov bx, 4; loop times
mov cl, 4; shift left 4 digits
next_4bit:
rol x, cl; x shift left 4 digits
mov si, x
and si, 000Fh
mov dl,... |
;
; Status/loadout screen for Shock Lobster
;
; Copyright 2021 Dave VanEe
;
; This software is provided 'as-is', without any express or implied
; warranty. In no event will the authors be held liable for any damages
; arising from the use of this software.
;
; Permission is granted to anyone to use this software for ... |
obj/user/faultallocbad.debug: 文件格式 elf32-i386
Disassembly of section .text:
00800020 <_start>:
// starts us running when we are initially loaded into a new environment.
.text
.globl _start
_start:
// See if we were started with arguments on the stack
cmpl $USTACKTOP, %esp
800020: 81 fc 00 e0 bf ee cmp ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Shell -- FQT
FILE: fqtManager.asm
AUTHOR: David Litwin, January 19, 1993
REVISION HISTORY:
Name Date Description
---- ---- -----------
dlit... |
\ -*- mode:beebasm -*-
\ ******************************************************************
\ * VERTICAL STRETCH ON TOP OF FREQUENCY GRID FX
\ ******************************************************************
\\ TODO: Describe the FX and requirements.
\\ Describe the track values used:
\\ rocket_track_zoom => zoom... |
; ************ DESCRIZIONE SOTTOPROGRAMMA ************
Il seguente sottoprogramma denominato TIPO_CAR riceve nel registro R0 il codice ASCII standard
di un carattere (quindi un valore decimale compreso fra 0 e 127, estremi inclusi) e restituisce
nel registro R1 un numero che indichi il tipo di carattere ricevuto in in... |
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
#include "AsmMacros.h"
TEXTAREA
#define STACKSIZEOF_ExInfo ((SIZEOF__ExInfo + 15)&(~15))
#define HARDWARE_EXCEPTION 1
#define SOFTWARE_EXCEPTION 0
;; --------------------... |
; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION code_clib
SECTION code_SMSlib
PUBLIC asm_SMSlib_setBackdropColor
EXTERN ... |
;;
;; aPLib compression library - the smaller the better :)
;;
;; TASM / MASM / WASM safe assembler depacker
;;
;; Copyright (c) 1998-2004 by Joergen Ibsen / Jibz
;; All Rights Reserved
;;
;; http://www.ibsensoftware.com/
;;
.386p
.MODEL flat
getbitM MACRO
LOCAL stillbitsleft
add dl, dl
... |
CGAClubQ label byte
word C_BLACK
Bitmap <67,41,0,BMF_MONO>
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00,
0x00
db 0x1f, 0x80, 0x00, 0x00, 0x00, 0x7f, 0xc0, 0x04,
0x00
db 0x30, 0xc0, 0x00, 0x00, 0x3f, 0xcc, 0x78, 0x0e,
0x00
db 0x30... |
//
// Configuration hacks
//
// New additions to string table. This table has reserved entries not being used.
{savepc}
{reorg {rom_bank84_string_table}}
string_table:
macro stringtableentry label
.idcalc_{label}:
dw (string_{label}) & $FFFF
eval stringid_{label} ((string_table.idcalc_{label} - st... |
[CPU 486]
[BITS 32]
MOV EDX, 123456789
INT 0x40
MOV EDX, 4
INT 0x40 |
; forbid execve syscall
ld [arch]
jeq AUDIT_ARCH_X86_64, next, die
ld [data.nr]
jge __X32_SYSCALL_BIT, die, next
jeq SYS_execve, err, allow
err: ret ERRNO(1)
die: ret KILL
allow: ret ALLOW
|
; asmfunc.asm
;
; System V ADM64 Calling Conversion
; Registers: RDI, RSI, RDX, RCX, R8, R9
bits 64
section .text
global IoOut32 ; void IoOut32(uint16_t addr, uint32_t data);
IoOut32:
mov dx, di ; dx = addr
mov eax, esi ; eax = data
out dx, eax
ret
global IoIn32 ; uint32_t IoIn32(uint16_t ad... |
clearDisplay:
CLR RS
CLR P1.7
CLR P1.6
CLR P1.5
CLR P1.4
SETB EN
CLR EN
CLR P1.7
CLR P1.6
CLR P1.5
SETB P1.4
SETB EN
CLR EN
CALL delay
RET
|
Name: zel_code.asm
Type: file
Size: 18635
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 60B6BA24DA383D71E0273FAA96209DFB065CAA81
Description: null
|
jmp 20h; jumped
label hello_there:
org 20h
addi R1, R2, R2
halt
|
;
; switch32.asm
; KripayaOS Project
; Author(s): [Ashwin: ashwonixer123@gmail.com]
;
[bits 16]
switch_32:
; Disable Interrupts
cli
; Load the GDT
lgdt [gdt_descriptor32]
; Enable 32 Bit
mov eax, cr0
or eax, 0x00000001
mov cr0, eax
; Remove all the 32 bit instructions
jmp code_seg:init_32
[bits 32]
ini... |
CinnabarIsland_Object:
db $43 ; border block
db 5 ; warps
warp 6, 3, 1, POKEMON_MANSION_1F
warp 18, 3, 0, CINNABAR_GYM
warp 6, 9, 0, CINNABAR_LAB
warp 11, 11, 0, CINNABAR_POKECENTER
warp 15, 11, 0, CINNABAR_MART
db 5 ; signs
sign 9, 5, 3 ; CinnabarIslandText3
sign 16, 11, 4 ; MartSignText
sign 12, 11, 5 ; ... |
.macosx_version_min 10, 12
.section __TEXT,__text,regular,pure_instructions
.align 4, 0x90
.globl _F2x_degree
_F2x_degree:
pushl %esi
movl 8(%esp), %edx
movl $16777215, %ecx
andl (%edx), %ecx
movl $-1, %eax
cmpl $2, %ecx
je L00000064
L00000016:
movl -4(%edx,%ec... |
; Atari keyboard tables 1988 / 2000 Tony Tebby
section kbd
xdef kbd_krtab
xdef kbd_atab
include 'dev8_smsq_kbd_keys'
; KEYROW table high nibble: bit, low nibble: row
kbd_krtab
dc.b $08,$31,$34,$16 ; 00
dc.b $14,$60,$20,$26 ; 04
dc.b $70,$06,$05,$56 ; 08
dc.b $55,$53,$18,$35 ; 0c
dc.b $36,... |
forcesetborder MACRO color
local l1
push ax
push dx
mov dx,3dah
in al,dx
mov dx,3c0h
mov al,11h+32
out dx,al
mov al,color
out dx,al
pop dx
pop ax
ENDM
PUBLIC _setborder
_setborder PROC FAR
CBEG
push cx
mov cx,[bp+6]
forcesetborder cl
pop cx
CEND
_setborder ENDP
fwaitbord... |
BITS 64
SECTION .text
global L3
L3:
MOV EAX, ECX
ADD EAX, EDX
RET
|
palWorld1_sprites: .incbin "assets/world1_sprites.pal"
tiles: .incbin "assets/tiles.bin"
worldDataFile: .incbin "assets/world.bin"
worldPalettes = worldDataFile
worldHeader = worldDataFile + 128
worldData = worldDataFile + 128 + 5
|
icl '../os/symbols.asm'
org BOOTADDR
lda #0
sta ROS7
lda #2
ldx #OS_SET_VIDEO_MODE
jsr OS_CALL
mwa DISPLAY_START VRAM_TO_RAM
jsr lib_vram_to_ram
ldy #0
copy:
lda message, y
cmp #255
beq stop
sta (RAM_TO_VRAM), y
iny
bne copy
stop:
jmp stop
message:
.by "Hello world!!!!", 255
... |
;Running Ball
;Jackie Wu (Wu Kan)
;14348134
;wkcn@live.cn
;totalDelay = outDelay * inDelay
org 0A100H
outDelay equ 50000
inDelay equ 3000
;80 x 25
SCREEN_X equ 80
SCREEN_Y equ 25
;Ball in this Rect
MIN_X equ 40
MIN_Y equ 13
MAX_X equ 80
MAX_Y equ 25
;set data segment
;mov ax,07c0h
mov ax,cs
mov ds,ax... |
; void __CALLEE__ sbrk_callee(void *addr, unsigned int size)
; 12.2006 aralbrec
PUBLIC sbrk_callee
PUBLIC ASMDISP_SBRK_CALLEE
EXTERN HeapSbrk_callee
EXTERN _heap, ASMDISP_HEAPSBRK_CALLEE
.sbrk_callee
pop hl
pop bc
ex (sp),hl
.asmentry
; bc = size of block in bytes >- 4
; hl = address of block
... |
; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION code_clib
SECTION code_SMSlib
PUBLIC asm_SMSlib_setClippingWindow
EXTERN... |
; MIT License, Copyright (c) 2021 Marvin Borner
; This file includes definitions to reduce magic numbers
%include "src/entry/definitions.asm"
bits 16 ; Real mode is 16 Bit
org LOCATION ; Bootsector location
global _start
_start:
jmp .skip_bpb ; Some BIOSes override the BPB area
nop
times 87 db 0 ; Fill BPB area w... |
// Assembler: KickAssembler v4.19
// source: codebase64.org/doku.php?id=base:dysp_d017
BasicUpstart2(start)
.var irq_line_top = $28 - 1
.var music = LoadSid("/home/methos/Music/HVSC69/MUSICIANS/0-9/20CC/van_Santen_Edwin/Blackmail_Tune_1.sid")
//.var music = LoadSid("/home/methos/Music/HVSC69/MUSICIANS/J/JCH/Training... |
; Add num1 and num2 together, then display total
.MODEL SMALL
.STACK 100
.DATA
num1 DB 3
num2 DB 5
total DB "The total is $"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
; Print title
MOV AH, 09H
LEA DX, total
INT 21H
MOV AH, 02H
MOV DL, num1
ADD DL, num2
ADD DL, "... |
GET_CHEST_OVERRIDE_WRAPPER:
sb t9,0x01E9(s0)
addiu sp, sp, -0x20
sw ra, 0x04 (sp)
sw a0, 0x08 (sp)
sw a1, 0x0C (sp)
sw t0, 0x10 (sp)
swc1 $f10, 0x14 (sp)
swc1 $f16, 0x18 (sp)
jal get_chest_override
move a0, s0
lw ra, 0x04 (sp)
l... |
;================
; memory map
; size of 512 byte = 0 ~ 0x1ff
; 0x7c00 ~ 0x7dff = sector-1
; 0x7e00 ~ 0x7fff = sector-2
; 0x8000 ~ 0x81ff = sector-3
bits 16
org 0x8000 ; starting address of sector-3
mov ax, 0
mov ds, ax
mov es, ax
print_file_names_from_sec2:
.init:
mov si, 0x7e00
mov ah... |
;[]-----------------------------------------------------------------[]
;| FILDQ.ASM -- convert quadword integer to long double |
;[]-----------------------------------------------------------------[]
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1991, 2000 by Inprise Corporation... |
; Errors caught during EA checking
[bits 32]
vpgatherqq ymm0,[ymm0+ecx*2],ymm0
[bits 64]
addpd xmm0,[xmm0] ; not a VSIB128 template
addpd xmm0,[ymm0] ; not a VSIB256 template
[bits 32]
vpgatherdq xmm0,[bp+xmm0],xmm0
vpgatherdq xmm0,[xmm0+ymm0],xmm0
vpgatherqq ymm0,[word ymm0],ymm0
vpgatherqq ymm0,[byte ymm0],ymm0... |
; ---------------------------------------------------------------------------
; Object 23 - missile that Buzz Bomber throws
; ---------------------------------------------------------------------------
Missile:
moveq #0,d0
move.b obRoutine(a0),d0
move.w Msl_Index(pc,d0.w),d1
jmp Msl_Index(pc,d1.w)
; ==========... |
; Original address was $AB88
; 4-1
.word W401_BonusL ; Alternate level layout
.word W401_BonusO ; Alternate object layout
.byte LEVEL1_SIZE_08 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG
.byte LEVEL3_TILESET_11 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT
.... |
; ===============================================================
; ---------------------------------------------------------------
; Subroutine to generate 1bpp decode table
; ---------------------------------------------------------------
; INPUT:
; a1 Address for the generated table
; d4 .w Pixel index for bit #... |
global _oppositeSigns
global _oppositeSigns64
segment .text align=16
_oppositeSigns:
mov eax, [esp + 4]
xor eax, [esp + 8]
shr eax, 31
ret
align 16
_oppositeSigns64:
xor edx, edx
mov eax, [esp + 8]
xor eax, [esp + 16]
sub eax, edx
jge .false
mov edx, 1
.false:
mov eax, edx
ret |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.