content stringlengths 23 1.05M |
|---|
; Title: Win32 Reverse Connect Read Payload
; Platforms: Windows NT 4.0, Windows 2000, Windows XP, Windows 2003
; Author: hdm[at]metasploit.com
[BITS 32]
%include "win32_stage_boot_bind.asm"
%include "win32_stage_inlineegg.asm"
|
INCLUDE "constants.inc"
SERIAL_STATE_WAITING_TO_PRESS_A = 0
SERIAL_STATE_WAITING_FOR_CLIENT = 1
SERIAL_STATE_TRANSFERING = 2
SERIAL_STATE_TRANSFER_OVER = 3
TEXTBOX_LINE_LENGTH = 14
SerialSendByte: MACRO
ld [serialSendData], a
ld a, [serialConnectionState]
cp SERIAL_CONNECTION_STATE_INTERNAL
jr nz, :+... |
lda ({z1}),y
cmp #<{c1}
iny
lda ({z1}),y
sbc #>{c1}
bvc !+
eor #$80
!:
bmi {la1} |
db "PITCH-BLACK@" ; species name
db "To protect itself,"
next "it afflicts those"
next "around it with"
page "nightmares."
next "However, it means"
next "no harm.@"
|
.model small
.data
.code
main proc
xor ax,ax
;mov ax,1
cmp ax,0
jz L1 ; jump if ZF = 1
quit: ret
L1: add ax,0AAH ; do something..
ret
endp
end main |
;
; Z88dk Z88 Maths Library
;
;
; $Id: dadd.asm,v 1.4 2016/06/22 19:55:06 dom Exp $
SECTION code_fp
PUBLIC dadd
EXTERN fsetup
EXTERN stkequ
INCLUDE "fpp.def"
.dadd
call fsetup
fpp(FP_ADD)
jp stkequ
|
Colosseum_Script:
jp TradeCenter_Script
Colosseum_TextPointers:
dw ColosseumText1
ColosseumText1:
TX_FAR _ColosseumText1
db "@"
|
;MemCopyLong
;==========================================================
;Input requirements: hl = Source Address, bc = destination, de = data length
MemCopyLong:
ld a,[hl+]
ld [bc],a
inc bc
dec de
xor a
or e
jp nz,MemCopyLong
or d
jp nz,MemCopyLong
ret
;MemCopy
;=============================================... |
;--------------------------------------------------------
; File Created by SDCC : FreeWare ANSI-C Compiler
; Version 2.3.1 Wed Sep 04 21:56:16 2019
;--------------------------------------------------------
.module isalpha
;--------------------------------------------------------
; Public variables in this module
;... |
section .text
global _start
global avg
_start:
mov eax,20
mov ebx,13
mov ecx,82
add eax,ebx
add eax,ecx
mov dl,3
div eax
|
;
; z88dk RS232 Function
;
; Amstrad CPC (STI) version
;
; unsigned char rs232_close()
;
; $Id: rs232_close.asm,v 1.3 2015/01/19 01:33:07 pauloscustodio Exp $
PUBLIC rs232_close
rs232_close:
ld hl,0 ;RS_ERR_OK;
ret
|
.686
.XMM
.model flat, c
PUBLIC Do_Xsave
PUBLIC Do_Fxsave
PUBLIC Do_Xrstor
PUBLIC Do_Fxrstor
.code
Do_Xsave PROC
push ebp
mov ebp, esp
mov ecx, [8+ebp]
xor edx,edx
mov eax,7
xsave ymmword ptr[ecx]
pop ebp
ret
Do_Xsave ENDP
.code
Do_Fxsave PROC
push ebp
mov e... |
FFI_TYPE_VOID =0
FFI_TYPE_INT =1
FFI_TYPE_FLOAT =2
FFI_TYPE_DOUBLE =3
FFI_TYPE_LONGDOUBLE =4
FFI_TYPE_UINT8 =5
FFI_TYPE_SINT8 =6
FFI_TYPE_UINT16 =7
FFI_TYPE_SINT16 =8
FFI_TYPE_UINT32 =9
FFI_TYPE_SINT32 =10
FFI_TYPE_UINT64 =11
FFI_TYPE_SINT64 =12
FFI_TYPE_ST... |
PUBLIC TOPLAMA
codes SEGMENT PARA 'kod'
ASSUME CS:codes
TOPLAMA PROC FAR
XOR AX, AX
MOV AL, BL
ADD AL, BH
ADC AH, 0
RETF
TOPLAMA ENDP
codes ENDS
END |
<% from pwnlib.util import lists, packing, fiddling %>
<% from pwnlib.shellcraft.arm import push %>
<%page args="string, append_null = True"/>
<%docstring>
Pushes a string onto the stack.
Args:
string (str): The string to push.
append_null (bool): Whether to append a single NULL-byte before pushing.
</%docstring>
... |
section .text
global CheckSse41
;-------------------
;CheckSse41: looks for sse4.1; returns 1 if true, otherwise 0
;-------------------
CheckSse41:
push rbx
mov eax ,1
cpuid
shr ecx ,19 ;sse4.1 (ecx:19)
and ecx ,1
mov eax ,ecx
pop rbx
ret |
# analyze.asm
# This file written 2015 by F Lundevall
# Copyright abandoned - this file is in the public domain.
.text
main:
addi $t1,$0,0 # 0011 0000 = 48
loop:
slt $t0,$t1,$a0
nop
beq $t0,$0,ddone
nop
nop
lw $s0,4($a1)
lw $s1,8($a1)
and $s0,$s0,$s1
sw $s0,0($a1)
addi $a1,$a1,-12
done: addi $t1,$t1,... |
%macro INI 0
push ebp
mov ebp, esp
pusha
%endmacro
%macro END 0
popa
mov esp, ebp
pop ebp
%endmacro
section .text
global paint_shield
paint_shield:
INI
%define punt_shield [ebp + 8]
%define punt_map [ebp + 12]
;checking whether the shield is activated or not
mov eax, punt_shield
... |
.text
main:
# Same sign
li $t0, 300
li $t1, 200
blt $t0, $t1, branch
li $a0, 0
li $v0, 1
syscall
j next
branch:
li $a0, 1
li $v0, 1
syscall
next:
# Diff sign
li $t0, 300
li $t1, -200
blt $t0, $t1, branch_2
li $a0, 0
li $v0, 1
syscall
j next_2
branch_2:
li $a0, 1
li $v0, 1
syscall
next_2:
# Same sign
li $t0, ... |
global _draw_block
_draw_block:
push bp
mov bp, sp
sub sp, 6
mov [bp-2], bx
mov [bp-4], si
mov [bp-6], di
mov bl, byte [bp+4]
mov dl, byte [bp+6]
mov dh, byte [bp+8]
movzx si, byte [bp+10]
movzx di, byte [bp+12]
call os_draw_block
mov bx, word [bp-2]
mov si, ... |
;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... |
;
; VOS kernel
; Copyright 2018 Michal Harasimowicz
;
[bits 32]
SECTION .text
%define ID_FLAG 0x00200000
global cpu_has_cpuid_supported
global cpu_has_brand_string_supported
global cpu_get_basic_info
global cpu_get_branding_info
cpu_has_cpuid_supported:
push ebp
mov ebp, esp
pushfd ... |
Route2Gate_Object:
db $a ; border block
db 4 ; warps
warp 4, 0, 3, -1
warp 5, 0, 3, -1
warp 4, 7, 4, -1
warp 5, 7, 4, -1
db 0 ; signs
db 2 ; objects
object SPRITE_OAK_AIDE, 1, 4, STAY, LEFT, 1 ; person
object SPRITE_BUG_CATCHER, 5, 4, WALK, 2, 2 ; person
; warp-to
warp_to 4, 0, ROUTE_2_GATE_WIDTH
warp_... |
option casemap:none
.code
asmhkGetBuffer proc
asmhkGetBuffer endp
asmhkReleaseBuffer proc
asmhkReleaseBuffer endp
end
|
;------------------------------------------------------------------------------
;*
;* Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
;* This program and the accompanying materials
;* are licensed and made available under the terms and conditions of the BSD License
;* which accompanies th... |
bits 16
; Check whether the CPU supports the CPUID supplementary capability.
;
; Returns:
; CF Clear if CPUID is supported by the CPU; false if it isn't.
is_cpuid_supported:
push eax
; How this algorithm works:
; Attempt to flip the ID bit in the EFLAGS register. If it remain... |
; Copyright 2005-2013, Ingo Weinhold, ingo_weinhold@gmx.de.
; Distributed under the terms of the MIT License.
;
; Stage 1 boot code for the good (?) old BIOS for use as boot block of HD
; partitions. The offset of the partition in 512 byte blocks must be written at
; position PARTITION_OFFSET_OFFSET (32 bit little endi... |
PUBLIC editbuf
.editbuf
pop de
pop hl
pop bc
push bc
push hl
push de
ld b, c
ld c, a
call 0xB800
ld hl, 0
ret c
dec hl
ret
|
TITLE TYPMGR - Type Table Management Code for QBI
;***
;TypMgr.asm - Type Table Management Code for QBI
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
; Create and search for User defined types and elements of types
;Assumptions:
; The "module type table" was at one point an actual table. With QB5/EB,
; it... |
RockTunnel1F_h:
db CAVERN ; tileset
db ROCK_TUNNEL_1F_HEIGHT, ROCK_TUNNEL_1F_WIDTH ; dimensions (y, x)
dw RockTunnel1F_Blocks ; blocks
dw RockTunnel1F_TextPointers ; texts
dw RockTunnel1F_Script ; scripts
db 0 ; connections
dw RockTunnel1F_Object ; objects
|
; Операционная система VH-DOS
; © Саша Волохов, 2020-2021.
; Многочисленные редакции © Артём Котов. 2021.
; Данный файл служит для установки ОС.
; Загружается по адресу 0000:7E00
org 0x7E00
include "..\standards.inc"
macro PrintOut string_offset {
mov bp,string_offset
call TxtPrint
}
macro Clear... |
SECTION code_fp_am9511
PUBLIC _fmin_callee
EXTERN cam32_sdcc_fmin_callee
defc _fmin_callee = cam32_sdcc_fmin_callee
|
; 07:CB9B:8D 07 20 STA $2007
; 01CBAB
.org $CB9B
JSR $FB40 |
ldy {m1}
sty $fe
ldy {m1}+1
sty $ff
ldy #0
lda ($fe),y
clc
adc #1
sta ($fe),y |
[SECTION .text]
BITS 32
[ORG 0] ;code starts at offset 0
cld ;clear the direction flag
call start ;jump over block_api and push its address onto the stack
%include "src/block_api.asm"
start:
pop ebp ;pop the address of block_api into ebp for calling functions later
%include "src/block_beef_b... |
%include "../UltimaPatcher.asm"
%include "include/uw2.asm"
%include "include/uw2-eop.asm"
[bits 16]
; TODO: use FPU also for
; - square root
; - atan2
; TODO: find a use for the obviated code and lookup-tables
startPatch EXPANDED_OVERLAY_EXE_LENGTH, \
replace trigonometric table-lookups with calls to FPU trig i... |
a 100
jmp 114 ; skip following data
; jmp to (256 + 7 + <length of this string>) converted to hex.
; `db 0d, 0a,` + `db 0d,0a,"$"` = 7
db 0d,0a,"Hello, world!"
db 0d,0a,"$"
; End of string marker above: "$"=24h
mov ah,9 ; Function 09 of Int 21h:
mov dx,102 ; DS:DX -> $-terminated string.
int 21 ; Write to stdo... |
MODULE sam_set_palette
SECTION code_clib
PUBLIC sam_set_palette
PUBLIC _sam_set_palette
EXTERN SAM_PALETTE_VALUES
INCLUDE "target/sam/def/sam.def"
; void sam_set_palette(int index, int value)
sam_set_palette:
_sam_set_palette:
ld hl,2
add hl,sp
ld e,(... |
; NoirVisor - Hardware-Accelerated Hypervisor solution
;
; Copyright 2018-2021, Zero Tang. All rights reserved.
;
; This file is part of NoirVisor VT Core written in assembly language.
;
; This program is distributed in the hope that it will be successful, but
; without any warranty (no matter implied warranty of merc... |
PUBLIC rename
.rename
pop bc
pop hl
pop de
push de
push hl
push bc
call 0xB8B1
ld hl, 0
ret c
dec hl
ret
|
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x100", "0x100"],
"XMM1": ["0xC5", "0x88"],
"XMM2": ["0x66", "0x5A"],
"XMM3": ["0x6B", "0x68"],
"XMM4": ["0x60", "0x68"],
"XMM5": ["0x65", "0x65"],
"XMM6": ["0x33", "0x57"],
"XMM7": ["0x38", "0x5C"],
"XMM8": ["0x3B", "0x6D"]
},
"MemoryRegi... |
;Z88 Small C Library functions, linked using the z80 module assembler
;Small C Z88 converted by Dominic Morris <djm@jb.man.ac.uk>
;
;11/3/99 djm Saved two bytes by removing useless ld h,0
;
;
; $Id: getk.asm,v 1.7 2016/04/29 20:35:11 dom Exp $
;
INCLUDE "stdio.def"
SECTION code_clib
... |
;This softaware is ment to do an echo on the UART
;It should work with the 16 bit microcontroller
;It is used to test the `uart.asm` lib
@import libs/ctrl16addrMap.asm
@import libs/uart.asm
label start
callf getc
callf printc
goto start
|
[XCX_SQUADMISSIONS]
moduleMatches = 0xF882D5CF, 0x30B6E091 ; 1.0.1E, 1.0.2U
.origin = codecave
;#################### Activate Squad Tasks
; cfs::CfSocialManager::update((float))
0x022879D0 = nop ; (network test?) allow call to cfs::CfSocialQuestManager::update((void))
; cfs::CfSocialQuestManager::update((void))
0x0... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: prefPrefNetQList.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- --... |
IF !_CLIB_TARGET_CFG_ASM_
defc _CLIB_TARGET_CFG_ASM_ = 1
; ENABLES SOME NEW C LIB CODE TO BE COMPILED INTO CLASSIC
;--------------------------------------------------------------
;-- ARCHITECTURE CONSTANTS ------------------------------------
;--------------------------------------------------------------
defc __emb... |
db "FIREFLY@" ; species name
db "Its fragrance"
next "attracts a swarm"
next "of VOLBEAT, so"
page "they draw over 200"
next "patters in the"
next "night sky.@"
|
; int in_inkey(void)
SECTION code_input
PUBLIC in_inkey
EXTERN asm_in_inkey
defc in_inkey = asm_in_inkey
|
; NO PASARAN virus version 2 by Spanska
; Called Spanska.1000 by AV people
; This is my first virus
;
;***********************************************************************
;
; This virus is dedicated to all spanish and international young
; guys who fighted against fascist army during Spanish Civil War
; ... |
; int p_forward_list_alt_empty(p_forward_list_alt_t *list)
SECTION code_clib
SECTION code_adt_p_forward_list_alt
PUBLIC p_forward_list_alt_empty
EXTERN asm_p_forward_list_alt_empty
defc p_forward_list_alt_empty = asm_p_forward_list_alt_empty
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _p_forward_list_alt_empty
... |
ORIG 0x40
ZERO: 0
TOZERO: ZERO
tofunct: funct
ORIG 0x1000
MSP: 0xFFFF
MSPL: 0XFF00
begin: NOP
// set up stack pointer and stack limit
LDA MSP
AND SP,A,A
LDD MSPL
OR SPL,D,D
// now that stack is set up, call a function
CALL I tofunct
// different regist... |
%ifdef CONFIG
{
"RegData": {
"RAX": ["0xbf666666"],
"RBX": ["0x40400000"]
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rcx, 0xe0000000
lea rdx, [rel data]
fld tword [rdx + 8 * 0]
lea rdx, [rel data2]
fld tword [rdx + 8 * 0]
fprem1
; Store as single precision to get around precision is... |
<%
from pwnlib.shellcraft import common
from pwnlib import constants
from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context
%>
<%page args="dst, src"/>
<%docstring>
mov(dst, src)
Returns THUMB code for moving the specified source value
into the specified destina... |
GLOBAL readKeyRaw
GLOBAL readKeyPoll
readKeyRaw:
mov rax,0
in al,0x64
and al,0x01
cmp al,0
jne .read
mov rax,0
ret
.read:
in al,0x60
ret
readKeyPoll:
mov rax,0
.loop:
in al,0x64
and al,0x01
cmp al,0
je .loop
in al,0x60
ret
|
#import "copper64.asm"
#importonce
.filenamespace c64lib
.macro @c64lib_copperEntry(raster, handler, arg1, arg2) { copperEntry(raster, handler, arg1, arg2) }
.macro @c64lib_copperLoop() { copperLoop() }
.macro @c64lib_startCopper(listStart, listPtr, handlersList) { startCopper(listStart, listPtr, handlersList) }
.macr... |
; Original address was $B1BC
; World 2's Big [?] block area
.word $0000 ; Alternate level layout
.word $0000 ; Alternate object layout
.byte LEVEL1_SIZE_08 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_03 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_03 | LEVEL3_VSCROLL_FREE
.byte LEVEL4_BGBANK_INDEX(3) | L... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
COPYRIGHT (C) GEOWORKS 1994 -- ALL RIGHTS RESERVED
PROJECT: SOCKET PROJECT
MODULE: RESOLVER
FILE: RESOLVERACTIONS.ASM
AUTHOR: STEVE JANG, DEC 14, 1994
REVISION HISTORY:
NAME DATE DESCRIPTION
---- ---- -----------
SJ... |
; in `hello.asm`
global _start
section .text
_start: mov ebx, 1 ; stdout fd
mov ecx, msg
mov edx, 9 ; 8 chars + newline
mov eax, 4 ; write syscall
int 0x80
xor ebx, ebx ; return code 0
mov eax, 1 ; exit syscall
int 0x80
... |
;
; MSX specific routines
;
; Improved functions by Rafael de Oliveira Jannone
; Originally released in 2004 for GFX - a small graphics library
;
; int msx_vpeek(int address);
;
; Read the MSX video memory
;
; $Id: msx_vpeek.asm,v 1.10 2016-06-16 19:30:25 dom Exp $
;
SECTION code_clib
PUBLIC msx_vpeek
PUBLIC... |
; cf. https://intermezzos.github.io/book/multiboot-headers.html
section .multiboot_header
%define MULTIBOOT2_MAGIC_NUMBER 0xe85250d6
%define PROTECTED_MODE_CODE 0
; it is a label
header_start:
; `dd` means 'define double word'
dd MULTIBOOT2_MAGIC_NUMBER
dd PROTECTED_MODE_CODE
dd header_end - header_s... |
;@DOES Allocate space for a file, defragmenting RAM as needed
;@INPUT HL = bytes to alloc
;@OUTPUT DE = allocated space
;@NOTE can move files around in RAM, and will update VAT pointers if so.
;@NOTE does not damage malloc'd memory, but will likely change its pointer.
fs_Alloc:
push hl
ex hl,de
ld bc,(free_file_RAM_... |
include "src/constants.asm"
include "src/macro.asm"
SECTION "Main", ROM0
notCGB::
call waitVBLANK
reset LCD_CONTROL
reg BGP, $E4
ld hl, NoCGBScreen
ld de, VRAM_START
ld bc, NoCGBScreenMap - NoCGBScreen
call copyMemory
ld b, 18
push hl
ld hl, VRAM_BG_START
pop de
.loop:
ld c, 20
.miniLoop:
ld a, [de]
ld... |
INCLUDE "hardware.inc"
INCLUDE "macros.inc"
INCLUDE "collision.inc"
INCLUDE "spriteallocation.inc"
DEF TIME_CAR_INVISIBLE_TIME EQU 200 ; number of frames.
DEF TIME_CAR_SCREEN_FLASH_FRAMES EQU 10
SECTION "SpecialVars", WRAM0
SpecialState: DS 1 ; For rock: 0 = On car, 1 = On road. For time car: 0 = Effect inactive, 1 =... |
; double __FASTCALL__ ceil(double x)
SECTION code_fp_math48
PUBLIC cm48_sccz80_ceil
EXTERN am48_ceil
defc cm48_sccz80_ceil = am48_ceil
|
page ,132
title memcpy - Copy source memory bytes to destination
;***
;memcpy.asm - contains memcpy and memmove routines
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;Purpose:
; memcpy() copies a source memory buffer to a destination buffer.
; Overlapping buffers... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_AF
;TEST_FILE_META_END
; OR16rm
;TEST_BEGIN_RECORDING
lea rdi, [rsp-0x6]
mov WORD [rdi], 0x1234
mov ax, 0x5678
or ax, [rdi]
mov rdi, 0x0
;TEST_END_RECORDING
|
mcd:
SET R2, 0x00
CMP R0, R2
JZ a_cero
CMP R1, R2
JZ b_cero
CMP R0, R1
JZ iguales
JN b_mayor_a
JMP a_mayor_b
a_cero:
MOV R4, R1
JMP fin
b_cero:
MOV R4, R0
JMP fin
iguales:
MOV R4, R0
JMP fin
b_mayor_a:
SUB R1, R0
JMP mcd
a_mayor_b:
SUB R0, R1
JMP mcd
fin:
JMP fin |
org 100h
start:
mov ah, 08h ; character input without echo
int 21h ; exec
mov dl, al ; al: read character, dl: 02h's input
add dl,61h ; messin'
mov ah, 02h ; write character to stdout
int 21h ; exec
jmp start
int 20h ; exit
|
SECTION code_fp_math32
PUBLIC sin
EXTERN cm32_sccz80_sin
defc sin = cm32_sccz80_sin
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _sin
defc _sin = sin
ENDIF
|
xdef _screen
xdef _buf1
_screen:
.db 40,30
_buf1:
.blkb 40*30,0
|
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?integer_buffer@@3PADA ; integer_buffer
PUBLIC ?float_to_string_output@@3PADA ; float_to_string_output
_BSS SEGMENT
?integer_buffer@@3PADA DB 020H DUP (?) ; integer_... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: axisGrObj.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- ---... |
######################################################################
# Bitmap Display Configuration:
# -Unit width in pixels: 8 (update this as needed)
# -Unit height in pixels: 8 (update this as needed)
# -Display width in pixels: 256 (update this as needed)
# -Display height in pixels: 256 (update this as needed)
#... |
.file "example.cpp"
.arch msp430f169
.cpu 430
.mpy none
.section .debug_abbrev,"",@progbits
.Ldebug_abbrev0:
.section .debug_info,"",@progbits
.Ldebug_info0:
.section .debug_line,"",@progbits
.Ldebug_line0:
.text
.Ltext0:
.p... |
; Copyright (c) Piotr Durlej
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above copyright notice,
; this list of conditions and the followi... |
; void *tshc_saddrpup(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_saddrpup
EXTERN zx_saddrpup
defc tshc_saddrpup = zx_saddrpup
|
#if VERBOSE = 1
LASTINIT SET .
#endif
; Subroutines
; ----------------------------------------------------------------------
; Clear screen -- easy
clearScreen SUBROUTINE
ldx #$ff
.loop:
lda #$00
sta $400,x
sta $500,x
sta $600,x
sta $700,x
lda #$05
sta $d800,x
sta $d900,x
sta $... |
; sp1_RemoveUpdateStruct
; 04.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
SECTION code_temp_sp1
PUBLIC asm_sp1_RemoveUpdateStruct
; FASTCALL
; Removes the character cell represented by the struct_sp1_update
; passed in so that the sprite engine will not draw the cell.
; Sprites will not be entered ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: User Interface
MODULE: Interapplication Communication Protocol
FILE: iacpMain.asm
AUTHOR: Adam de Boor, Oct 12, 1992
ROUTINES:
Name Description
---- ------... |
Name: ys_demo.asm
Type: file
Size: 99016
Last-Modified: '2016-05-13T04:50:34Z'
SHA-1: F1A460747BBF86A065FADC5B907C34455AC1C0D8
Description: null
|
;
; Text scripts
;
TScript_HappyBirthday:
TS_NewPos 3, 4
TS_Speed 1
TS_Text "Celebrating 10 years of"
TS_NewLine
TS_NewLine
TS_Text "The Cutting Room Floor!"
TS_End
TScript_DateOfBirth:
TS_NewPos 23, 4
TS_Speed 1
TS_Text "Wiki created"
TS_Delay 30
TS_NewLine
TS_Text " October 25, 2009"
TS_Delay 1... |
ShowPokedexMenu:
call GBPalWhiteOut
call ClearScreen
call UpdateSprites
ld a, [wListScrollOffset]
push af
xor a
ld [wCurrentMenuItem], a
ld [wListScrollOffset], a
ld [wLastMenuItem], a
inc a
ld [wd11e], a
ld [hJoy7], a
.setUpGraphics
ld b, SET_PAL_GENERIC
call RunPaletteCommand
callab LoadPokedexTilePatt... |
; Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
;
; This file is part of the GNU MP Library.
;
; The GNU MP Library is free software; you can redistribute it and/or
; modify it under the terms of the GNU Lesser General Public License as
; published by the Free Software Foundation; either versi... |
SECTION code_clib
PUBLIC fputc_cons_native
PUBLIC _fputc_cons_native
fputc_cons_native:
_fputc_cons_native:
ld hl,2
add hl,sp
ld a,(hl)
ld l,a
cp 10
jr nz,wait
ld l,13
call wait
ld l,10
wait:
in a,(0)
and 128
jr nz,wait
ld a,l
out (1),a
ret
|
[bits 32]
section .init
pop ebp
ret
section .fini
pop ebp
ret |
; Nasty Initialisation for Q68 1.01 (c) W. Lenerz 2016-2020
; 1.01 get kbd delay and set at q68_dlay ($170dc)
; There's nothing really nasty here.
section header
xref smsq_end
header_base
dc.l nasty_base-header_base ; length of header
dc.l 0 ; module length unknown
dc.l smsq_end-nasty_base ; loaded lengt... |
Name: Jugem.asm
Type: file
Size: 25729
Last-Modified: '1992-11-18T01:48:23Z'
SHA-1: 8775BDD18E72D9D27E15C4B7E554133A0FC3F9FC
Description: null
|
// Test provided by Karu
// btr_0.asm
// Test extreme case low
slbi r1, 0
slbi r1, 0
btr r1, r1
halt
|
PalletTown_Script:
CheckEvent EVENT_GOT_POKEBALLS_FROM_OAK
jr z, .next
SetEvent EVENT_PALLET_AFTER_GETTING_POKEBALLS
.next
call EnableAutoTextBoxDrawing
ld hl, PalletTown_ScriptPointers
ld a, [wPalletTownCurScript]
jp CallFunctionInTable
PalletTown_ScriptPointers:
dw PalletTownScript0
dw PalletTownScript1
dw... |
;-----------------------------------------------------------------------------;
; Author: Unknown
; Compatible: Windows Server 2003, IE Versions 4 to 6
; Build: >build.py stager_reverse_http_proxy_pstore
;-----------------------------------------------------------------------------;
[BITS 32]
[ORG 0]
cld ... |
SECTION code_l_sccz80
PUBLIC l_i64_uge
EXTERN l_i64_ucmp
;
;......logical operations: HL set to 0 (false) or 1 (true)
;
; primary (stack) >= secondary (acc)
.l_i64_uge
call l_i64_ucmp
ccf
ret c
scf
ret z
;... |
%macro exit 1
mov eax, 1
mov ebx, %1
int 0x80
%endmacro
%macro write 1 ;write n
mov eax, %1
push eax
push fmt
call printf ;printf("%d\n", n)
add esp, 4
%endmacro
section .data
fmt db "%d", 0xA, 0 ;format... |
Script_AbortBugContest:
checkflag ENGINE_BUG_CONTEST_TIMER
iffalse .finish
setflag ENGINE_DAILY_BUG_CONTEST
special ContestReturnMons
.finish
end
FindItemInBallScript::
callasm .TryReceiveItem
iffalse .no_room
disappear LAST_TALKED
opentext
writetext .text_found
playsound SFX_ITEM
pause 60
itemnotify
clo... |
; void __CALLEE__ sp1_IterateUpdateSpr_callee(struct sp1_ss *s, void *hook2)
; 11.2006 aralbrec, Sprite Pack v3.0
; sinclair zx version
SECTION code_clib
SECTION code_temp_sp1
PUBLIC sp1_IterateUpdateSpr_callee
EXTERN asm_sp1_IterateUpdateSpr
sp1_IterateUpdateSpr_callee:
pop hl
pop ix
ex (sp),hl
jp as... |
// if-goto %%LABEL%%
@SP
AM=M-1
D=M
@%%LABEL%%
D;JNE
|
#!/usr/local/bin/zasm --convert8080 --asm8080 --reqcolon -o original/
;================================================
;MONITOR 8.4 (2K version)
; Upgraded Monitor/Executive program for ALTAIR 8800
; Conditional assembly supports SIO-A and 2-SIO cards
;
; (C) John Garza 2009
; Non-commercial use for hobbyists g... |
;_ _8087.asm Modified by: Walter Bright */
; Copyright (C) 1991-2002 by Digital Mars
; All rights reserved.
; www.digitalmars.com
; Written by Walter Bright
; 8087 detection and initialization code for 32-bit OS/2 and NT
; This code is linked in if _8087 is referenced.
.386 ;disable automatic FWAIT gener... |
* PFPO TITLE 'Perform floating point operation. ESA and z mode.'
* This file was put into the public domain 2016-05-05
* by John P. Hartmann. You can use it for anything you like,
* as long as this notice remains.
* Note that this test runs in problem state. As a result STFL is
* not a good idea; nor is lpsw for th... |
SECTION .text
GLOBAL square_p521
square_p521:
sub rsp, 0x180
mov rax, [ rsi + 0x40 ]; load m64 x1 to register64
imul r10, rax, 0x2; x10000 <- x1 * 0x2
imul rax, rax, 0x2; x2 <- x1 * 0x2
imul rax, rax, 0x2; x10001 <- x2 * 0x2
mov r11, [ rsi + 0x38 ]; load m64 x4 to register64
imul rdx, r11, 0x2; x10002 <- x4 * 0x2
imul... |
.macro menu()
start:
addi $v0, $zero, 4 #loads v0 for print syscall
la $a0, mainmenu #printcontent adress
syscall
addi $v0, $zero, 5 #loads v0 for read int syscall
syscall #saves value to v0
#all read syscalls request int numbers.Any other input will trigger coproc0.
beq $v0, 1, blurm #if 1 is chosen, go to ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.