content stringlengths 23 1.05M |
|---|
;***************************************************************************
; Source code of the DEICIDE Virus, original author: Glen Benton
; Assemble with A86 - Sanitized, English-ized and spruced up for inclusion
; in Crypt Newsletter #7. The Crypt reader will also notice the
; DEICIDE listing has NO declarative r... |
_RocketElevatorText_4578b::
text "It appears to"
line "need a key.@@"
|
HealingHPAmounts:
dbw FRESH_WATER, 50
dbw SODA_POP, 60
dbw LEMONADE, 80
dbw HYPER_POTION, 200
dbw SUPER_POTION, 50
dbw POTION, 20
dbw MAX_POTION, MAX_STAT_VALUE
dbw FULL_RESTORE, MAX_STAT_VALUE
dbw MOOMOO_MILK, 100
dbw BERRY, 10
dbw GOLD_BERRY, 30
dbw ENERGYPOWDER, 50
dbw... |
fill_map_offsets:
.for (var h = 0; h < MAP_HEIGHT; h++) {
clc
lda offset
adc map_starts+(2*h)
sta map_offsets+(2*h)
lda #$00
adc map_starts+(2*h)+1
sta map_offsets+(2*h)+1
}
blit_viewport:
ldy offset_y
.for (var h = 0; h < VIEWPORT_HEIGHT; h++) {
ldx map_offsets+[2*h]... |
#Mike Zrimsek
#Project 1 - Selection Sort
.data #data segment
.align 2 #align on next word boundary
prompt: .asciiz "Please enter 10 characters (upper/lowercase mixed):\n"
.align 2 #align on next word boundary
unsorted: .asciiz "Unsorted: "
.align 2
sorted: .asciiz "Sorted: "
.align 2
thestring: .space... |
.386
.model flat
.code
start PROC
mov eax,213
add eax,432
ret
start endp
end start |
SECTION code_stdio
PUBLIC __stdio_scanf_sm_bkt
EXTERN l_bitset_locate, __stdio_scanf_sm_string_write
__stdio_scanf_sm_bkt:
; RIGHT BRACKET STATE MACHINE
;
; Qualify function for STDIO_MSG_EATC
;
; set-up: hl = state machine function address
; de = void *bitset
; bc = void *buff... |
%ifdef CONFIG
{
"Match": "All",
"RegData": {
"MM0": ["0x0000000000000000", "0x0000"],
"MM1": ["0x0000000000000000", "0x0000"],
"MM2": ["0x0000000000000000", "0x0000"],
"MM3": ["0x0000000000000000", "0x0000"],
"MM4": ["0x0000000000000000", "0x0000"],
"MM5": ["0x0000000000000000", "0x0000"],
... |
processor 6502
org $c000
START LDY #0
L1 TYA
STA $0400,Y
INY
BNE L1
RTS
.END
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: GeoCalc
FILE: spreadsheetRuler.asm
AUTHOR: Gene Anderson, Sep 12, 1991
ROUTINES:
Name Description
---- -----------
CallSpreadsheet Ca... |
;; rect.asm
;;
;; draw a rectangle
;; tool: nasm, bochs | virtualbox
;; https://github.com/icecoobe
;;=============================================================================
bits 16
;;----- constant definitions -----
%define BASE 0x7c00
%define VGA_MODE_40x25_16color_text 00h
%define VGA_MODE_80x... |
[bits 32]
movd eax, mm0
movd mm0, eax
movd [0], mm0
movd mm0, [0]
movd eax, xmm0
movd xmm0, eax
movd [0], xmm0
movd xmm0, [0]
movq [0], xmm0
movq xmm0, [0]
movq xmm0, xmm1
movq xmm1, xmm0
movq [0], mm0
movq mm0, [0]
movq mm0, mm1
movq mm1, mm0
|
<%
from pwnlib.util import lists, packing, fiddling, misc
from pwnlib import constants
from pwnlib.context import context as ctx # Ugly hack, mako will not let it be called context
from pwnlib.log import getLogger
log = getLogger('pwnlib.shellcraft.i386.mov')
%>
<%page args="dest, src, stack_allowed = True"/>... |
;Decrunch text linker
!to "shockraidpiclinker.prg",cbm
*=$0801
!bin "shockraidpiclinker.exo",,2
lda #$00
sta $d020
sta $d021
lda #$14
sta $d018
ldx #$00
clrscr
lda #$20
sta $0400,x
sta $0500,x
sta $0600,x
sta $06e8,x
inx
bne clrscr
ldx #$00
getdata
lda decrunchtext,x
sta $0400... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714
//
//
///
// Buffer Definitions:
//
// cbuffer cbInit
// {
//
// float4 g_vMaterialColor; // Offset: 0 Size: 16 [unused]
// float4 g_vAmbientColor; // Offset: 16 Size: 16 [unused]
// float4 g_vSpecularColor; ... |
; void PSGSFXFrame(void)
SECTION code_clib
SECTION code_PSGlib
PUBLIC PSGSFXFrame
EXTERN asm_PSGlib_SFXFrame
defc PSGSFXFrame = asm_PSGlib_SFXFrame
|
; entries correspond to constants/move_constants.asm
; negative entries first (see the constants file for details)
dw BattleAnim_ThrowPokeBall
dw BattleAnim_SendOutMon
dw BattleAnim_ReturnMon
dw BattleAnim_Confused
dw BattleAnim_Slp
dw BattleAnim_Brn
dw BattleAnim_Psn
dw BattleAnim_Sap
dw BattleAnim_Frz
dw Ba... |
DATA SEGMENT
DAT1 DB 65H
DAT2 DB ?
DAT3 DB ?
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
LEA SI,DAT1
MOV AL,[SI]
CMP AL,99
JBE BCD
LEA DI,DAT3
MOV... |
; data conversion procedures - 32-bit versions
; author: R. Detmer
; revised: 10/2007
.586
.MODEL FLAT
PUBLIC wtoaproc, atowproc, dtoaproc, atodproc
.CODE
; wtoaproc(source, dest)
; convert integer (source) to string of 6 characters at given destination address
; source integer passed as a doubleword, but only low-... |
; uint32_t esx_f_seek(unsigned char handle, uint32_t distance, unsigned char whence)
INCLUDE "config_private.inc"
SECTION code_esxdos
PUBLIC asm_esx_f_seek
EXTERN __esxdos_error_mc
asm_esx_f_seek:
; enter : a = handle
; l = whence
; bcde = seek value
;
; exit : success
... |
PewterMart_h:
db MART ; tileset
db PEWTER_MART_HEIGHT, PEWTER_MART_WIDTH ; dimensions (y, x)
dw PewterMartBlocks, PewterMartTextPointers, PewterMartScript ; blocks, texts, scripts
db $00 ; connections
dw PewterMartObject ; objects
|
SECTION "MAIN", ROM0[$0150]
;Start Dialog
;=============
;freezes the game to show dialog
;Place text bank in dialogTextBank
;Place pointer to start of string in dialogTextStart
StartDialog:
;start
PushAllRegs
;hide sprites
call DrawMapHideSprites
HaltCounter
OAMCopyMacro
... |
SECTION code_fp_am9511
PUBLIC ldexp_callee
EXTERN cam32_sccz80_ldexp_callee
defc ldexp_callee = cam32_sccz80_ldexp_callee
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _ldexp_callee
EXTERN cam32_sdcc_ldexp_callee
defc _ldexp_callee = cam32_sdcc_ldexp_callee
ENDIF
|
.MODEL COMPACT
.STACK 100H
.DATA
A DB ?
b DB ?
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV AH,1
INT 21H
MOV A,AL
INT 21H
MOV B,AL
MOV BL,A
MOV CL,B
ADD BL,CL
SUB BL,48
MOV AH,2
MOV DL,BL
INT 21H
MOV AH,4... |
UndergroundPathNS_h:
db UNDERGROUND ; tileset
db UNDERGROUND_PATH_NS_HEIGHT, UNDERGROUND_PATH_NS_WIDTH ; dimensions (y, x)
dw UndergroundPathNSBlocks, UndergroundPathNSTextPointers, UndergroundPathNSScript ; blocks, texts, scripts
db $00 ; connections
dw UndergroundPathNSObject ; objects
|
;; ==========================================================================
;; This file is part of 6502.ts, an emulator for 6502 based systems built
;; in Typescript
;;
;; Copyright (c) 2014 -- 2020 Christian Speckner and contributors
;;
;; Permission is hereby granted, free of charge, to any person obtain... |
; POLY CONSTANTS
;--------------------------------------------
; ZEROPAGE
;--------------------------------------------
ZP_BITMAPWRITE = $30 ; 2
ZP_MUL10BLITSLOWLO = $32 ; 2
ZP_MUL10BLITSLOWHI = $34 ; 2
ZP_MUL3BLITFASTLO = $36 ; 2
ZP_MUL3BLITFASTHI = $38 ; 2
ZP_RTS_PLACER = $3a ; 2
p_xp = $3e ; 1
p_yue = $... |
; int b_array_pop_back_fastcall(b_array_t *a)
SECTION code_adt_b_array
PUBLIC _b_array_pop_back_fastcall
_b_array_pop_back_fastcall:
INCLUDE "adt/b_array/z80/asm_b_array_pop_back.asm"
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: seriesLine.asm
AUTHOR: Chris Boyke
METHODS:
Name Description
---- -----------
FUNCTIONS:
Scope Name Description
----- ---- ------... |
SafariZoneEastRestHouse_h:
db GATE ; tileset
db SAFARI_ZONE_EAST_REST_HOUSE_HEIGHT, SAFARI_ZONE_EAST_REST_HOUSE_WIDTH ; dimensions (y, x)
dw SafariZoneEastRestHouse_Blocks ; blocks
dw SafariZoneEastRestHouse_TextPointers ; texts
dw SafariZoneEastRestHouse_Script ; scripts
db 0 ; connections
dw SafariZoneEastRest... |
; this is a line comment
org $0800
main:
ldd ops
ldx ops + 2
idiv
stx quot
std remain
stop ; breakpoint here
ops rmb 4
quot rmb 2
remain rmb 2
|
dnl HPPA 32-bit time stamp counter access routine.
dnl Copyright 2000, 2002, 2005 Free Software Foundation, Inc.
dnl
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public License as
dn... |
; _Noreturn void quick_exit(int status)
SECTION code_clib
SECTION code_stdlib
PUBLIC quick_exit
EXTERN asm_quick_exit
defc quick_exit = asm_quick_exit
|
// Draws a filled rectangle at the screen's top left corner,
// with width of 16 pixels and height of RAM[0] pixels.
// Usage: put a non-negative number (rectangle height) in RAM[0].
// PSEUDO CODE
// for (i=0; i<n; i++):
// draw 16 black pixels at the
// beginning of row i
// addr = SCREEN
// n = R... |
; Compile with nasm -f bin -o os.bin background.ams
;
; SOME PROBLEMS:
; * In some period of time not very big
; bottom line stops it's updating (may be
; it's caused by emulator)
; * Some strange last pixel if set bounds
; less than 200 px in heihgt
;
[BITS 16] ; 16-bit mode
[ORG 0x7C00] ; Loading section
%DEFINE... |
; ---------------------------------------------------------------------------
; Sprite mappings - cylinders Eggman hides in (FZ)
; ---------------------------------------------------------------------------
Map_EggCyl_internal:
dc.w @flat-Map_EggCyl_internal
dc.w @extending1-Map_EggCyl_internal
dc.w @extending2-M... |
// Draw outer box
// uses ACC, X, Y
// ZP1, ZP2
.macro DrawOuterBox(char) {
// Draw horizontal lines
:loadToZP(ZP1, VRAM)
:loadToZP(ZP2, VRAM + $03C0)
lda char
ldy #$28
hloop:
dey
sta (ZP1),y
sta (ZP2),y
bne hloop
// Draw vertical lines
:loadToZP(ZP1, VRAM + $0028)
... |
li $s0,3 #a
li $s1,7 #b
la $t0,($s0)
la $s0,($s1)
la $s1,($t0)
li $v0,1
la $a0,($s0)
syscall
li $v0,1
la $a0,($s1)
syscall
|
; Need to update for multi-segment someday.
;.SEGMENT CodeSegment:
DONTBR: LEA R0, AA
LEA R1, BB
LEA R2, CC
LD R7, R0, ADATA3F-AA
LD R6, R2, CDATA3F-CC
ST R7, R1, BDATA3D-BB
ST R7, R1, BDATA3F-BB
ST R7, R1, BDATA3C-BB
ADD R3, R2, -3
ADD R4, R2, -4
RSHFL R6,... |
; vim: ft=nasm
extern sys_write_stdout
extern hex2decimal
section .data
ansi_cursor : db 27,"["
ansi_cursor_y : db '000;'
ansi_cursor_x : db '000H'
ansi_cursor_len equ $-ansi_cursor
section .text
; --------------------------------------------------------------
; ansi_cursor_position
; moves cursor to gi... |
;******************************************************************************
;* VP9 MC SIMD optimizations
;*
;* Copyright (c) 2015 Ronald S. Bultje <rsbultje gmail com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser Gene... |
Route2House_h:
db HOUSE ; tileset
db ROUTE_2_HOUSE_HEIGHT, ROUTE_2_HOUSE_WIDTH ; dimensions (y, x)
dw Route2HouseBlocks, Route2HouseTextPointers, Route2HouseScript ; blocks, texts, scripts
db $00 ; connections
dw Route2HouseObject ; objects
|
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.6.0 #9615 (MINGW64)
;--------------------------------------------------------
; PIC16 port for the Microchip 16-bit core micros
;--------------------------------------------------------
list ... |
;
;
; Copyright (c) 2019 by blindtiger. All rights reserved.
;
; The contents of this file are subject to the Mozilla Public 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.mozilla.org/MPL/
;
; Softwa... |
.code
; void AVX512_Scalar_Convert_Round_F32_U32_(float value, uint32_t result[4])
AVX512_Scalar_Convert_Round_F32_U32_ proc
vcvtss2usi eax, xmm0{rn-sae} ; Round to nearest
mov dword ptr [rdx], eax
vcvtss2usi eax, xmm0{rd-sae} ; Round down
mov dword ptr [rdx+4], eax
vcvtss2usi eax, xmm0{ru-sae} ; Round up
mov dword... |
// 16 bytes of array data transfer from one place to another
MVI H,05
LXI B,20D1
LXI D,20E1
ZONE: LDAX B
STAX D
INX B
INX D
DCR H
JNZ ZONE
RST 1
|
title "Injection Thunk Assembly Routine"
;++
;
; Copyright (c) 2017 Trent Nelson <trent@trent.me>
;
; Module Name:
;
; InjectionThunk4.asm
;
; Abstract:
;
; This module implements the injection thunk routine as a NESTED_ENTRY.
;
;--
include ksamd64.inc
;
; Define a home parameter + return address structu... |
.text
.globl main
main:
li $t1, 5
lw $t2, var1
sub $t0, $t1, $t2
sw $t0, var1
li $v0, 5
syscall
sw $v0, var2
lw $t3, var2
li $t4, 0
beq $t3, $t4, .label0
lw $t6, var1
li $t7, 5
add $t5, $t6, $t7
move $t3, $t5
li $t8, 0
beq $t3, $t8, .label2
li $t3, 4
j .label3
.label2:
li $t3, 5
.label3:
move $t3, $t3
j .label1
.label0... |
; fun3.asm - same as fun2.asm but only BIOS with printing string length.
; by 5n4k3
[bits 16]
[org 100h]
[section .text]
global _start
jmp short _start
; =================== Data again ============================
hello_msg db "Hello user, press any key to continue . . .",0dh,0ah,24h
hex_digits db "0123456789ABCDEF",2... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Net Driver
FILE: socket.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
Eric 8/92 Ported to... |
; Copyright 2021 Carl Georg Biermann
; my zero page words (main program)
mzpwa: .word 0
; my zero page words (main program)
mzpwd: .word 0
; my zero page words (main program)
mzpwe: .word 0 ; this is used mainly as a pointer for string operations
; my zero page bytes (main program)
mzpba: .byte 0
; my zer... |
.db $BB,$6D
.org $9d95-2
#define bcall(x) rst 28h \ .dw x
_PutS .equ 450Ah
curRow .equ 844bh
curCol .equ 844Ch
test1 .EQU $D40001
test2 .EQU -8
programstart:
ld hl,0
ld (currow),hl
ld hl,str1
bcall(_PutS)
ret
str1:
; 0123456789012345
.db "Dear world, "
.db " I can't take "
.db "it anymore... ",0
|
db MACHOKE ; pokedex id
db 80 ; base hp
db 100 ; base attack
db 70 ; base defense
db 45 ; base speed
db 50 ; base special
db FIGHTING ; species type 1
db FIGHTING ; species type 2
db 90 ; catch rate
db 146 ; base exp yield
INCBIN "pic/gsmon/machoke.pic",0,1 ; 77, sprite dimensions
dw MachokePicFront
dw MachokePicBack
;... |
[BITS 32]
GLOBAL HariMain
HariMain:
MOV EAX, 1*8
MOV DS, AX
MOV BYTE [0x102600], 0
MOV EDX, 4
INT 0x40 |
;
; CRT0 for the Sharp MZ-2500
;
; $Id: mz2500_crt0.asm $
;
MODULE mz2500_crt0
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
defc crt0 = 1
INCLUDE "zcc_opt.def"
;--------
; Some scope definitions
;--------
EXTERN _m... |
;
;
; ANSI Video handling for the Mattel Aquarius
;
;
; Clean a text line
;
; Stefano Bodrato - Dec. 2001
;
; in: A = text row number
;
;
; $Id: f_ansi_dline.asm,v 1.1 2001/12/27 09:35:57 stefano Exp $
;
XLIB ansi_del_line
XREF aquarius_attr
.ansi_del_line
ld hl,$3000
inc a
.sum_loop
ld de,40
add hl,de
dec ... |
Lab3Object:
db $17 ; border block
db $2 ; warps
db $7, $2, $3, CINNABAR_LAB_1
db $7, $3, $3, CINNABAR_LAB_1
db $3 ; signs
db $4, $0, $3 ; Lab3Text3
db $4, $1, $4 ; Lab3Text4
db $1, $2, $5 ; Lab3Text5
db $2 ; objects
object SPRITE_OAK_AIDE, $7, $2, STAY, DOWN, $1 ; person
object SPRITE_OAK_AIDE, $2, $3, WA... |
#include "Platform.inc"
#include "InitialisationChain.inc"
radix decimal
InitialiseAfterTimer0Dummy code
global INITIALISE_AFTER_TIMER0
INITIALISE_AFTER_TIMER0:
return
end
|
; Name: music.asm
; Assemble: tasm.exe music.asm
; Link: tlink.exe music.obj
; Run in DOSBox: music.exe
a0 = 43388 ; 27.5000 hz
ais0 = 40953 ; 29.1353 hz
h0 = 38655 ; 30.8677 hz
c1 = 36485 ; 32.7032 hz
cis1 = 34437 ... |
;
; written by Waleed Hasan
;
; $Id;$
PUBLIC DsGetPixelAddr
PUBLIC _DsGetPixelAddr
EXTERN pixaddr
.DsGetPixelAddr
._DsGetPixelAddr
pop de ;ret addr.
pop bc ;&bit
pop hl ;y
ld a,l ; a=y
pop hl ;x
; l=x
push de
push de
push de
push de
ld d,l ; d=x
ld e,a ; e=y
ld a,l
and $07
jp p... |
// Original test: ./ullmer/hw4/problem6/jalr_1.asm
// Author: ullmer
// Test source code follows
//tests jump and link with
//large positive aligned jump
lbi r0, 127
jalr r0, 127
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Stream Drivers -- Output-only Parallel port
FILE: netstrMain.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVI... |
LDA 9000
MOV C,A
ANI 0F
MOV B,A
MOV A,C
ANI F0
RRC
RRC
RRC
RRC
ADD B
STA 9050
JNC JUMP
INR D
MOV A,D
STA 9051
JUMP: HLT
|
;---------------------------------
;bplinux@posteo.de
;
;this is used to pop a shell
;(or whatever) with clean pointer
;arrangements for execve
;---------------------------------
[BITS 64]
EXECVE equ 59
segment .text
global _start
_start: jmp _call
_back: pop rdi
xor rax, rax
mov [rdi+7], al ;for execution on st... |
SECTION code_clib
PUBLIC txtboldoff
PUBLIC _txtboldoff
.txtboldoff
._txtboldoff
jp 0xB83F
|
PLC_3607EC: dc.w Frame_360816-PLC_3607EC
dc.w Frame_36081C-PLC_3607EC
dc.w Frame_360822-PLC_3607EC
dc.w Frame_360828-PLC_3607EC
dc.w Frame_36082E-PLC_3607EC
dc.w Frame_360834-PLC_3607EC
dc.w Frame_36083A-PLC_3607EC
dc.w Frame_360840-PLC_3607EC
dc.w Frame_360846-PLC_3607EC
dc.w Frame_36084C-PLC_3607EC
... |
;RLE decompressor by Shiru (NESASM version)
;uses 4 bytes in zero page
;decompress data from an address in X/Y to PPU_DATA
RLE_LOW equ $00
RLE_HIGH equ RLE_LOW+1
RLE_TAG equ RLE_HIGH+1
RLE_BYTE equ RLE_TAG+1
unrle
stx RLE_LOW
sty RLE_HIGH
ldy #0
jsr rle_byte
sta RLE_TAG
.1
jsr rle_byte
cmp... |
@/*******************************************************************************
@* DISCLAIMER
@* This software is supplied by Renesas Electronics Corporation and is only
@* intended for use with Renesas products. No other uses are authorized. This
@* software is owned by Renesas Electronics Corporation and is protect... |
%include "commonMacros.asm"
%include "commonFuncs.asm"
global _start
; SECTION: initialized data
section .data
strBuffer: times 100 db 0
strStar db '*'
strTest db 'ahahaha', 0
; SECTION: uninitialized data
section .bss
len resb 1
; SECTION: code
section .text
_start:
push strTest
push 9
c... |
# STAMPARE UN VETTORE IN INPUT AL CONTRARIO RICORSIVAMENTE SENZA VETTORE DI APPOGGIO
# DA TROVARE ERRORE: LE CHIAMATE RICORSIVE SONO GIUSTE, MA ESCE PRIMA DI CHIUDERE L'ULTIMA
# ESEMPIO: VETTORE= 1,2,3,4,5===STAMPA====> 1,4,3,2,5
.data
vettore: .word 50:1
richiesta: .asciiz "inserire interi positivi da salvare sul vett... |
dnl ARM v6t2 mpn_gcd_1.
dnl Based on the K7 gcd_1.asm, by Kevin Ryde. Rehacked for ARM by Torbjorn
dnl Granlund.
dnl Copyright 2000-2002, 2005, 2009, 2011-2013 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/o... |
global _start
section .text
_start:
mov rcx, 0x5
increment:
push rcx
mov rax, 1
mov rdi, 1
mov rsi, hello
mov rdx, length
syscall
pop rcx
loop increment
mov rax, 60
mov rdi, 0
syscall
section .data
hello: db 'Hello There!',0xa
length: equ $-hello
|
.MODEL SMALL
.STACK 100H
.DATA
; DEFINE YOUR VARIABLES HERE
P DB "ENTER A HEX DIGIT: $"
Q DB "IN DECIMAL IT IS 1$"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
;CODE STARTS FROM HERE
LEA DX,P
MOV AH,9
INT 21H
MOV AH,1
INT 21H
MOV CH,AL
... |
DayCareMObject:
db $a ; border block
db $2 ; warps
db $7, $2, $4, $ff
db $7, $3, $4, $ff
db $0 ; signs
db $2 ; objects
object SPRITE_GENTLEMAN, $2, $3, STAY, RIGHT, $1 ; person
object SPRITE_LASS, $3, $2, STAY, RIGHT, $2 ; person
; warp-to
EVENT_DISP DAYCAREM_WIDTH, $7, $2
EVENT_DISP DAYCAREM_WIDTH, $7,... |
;; iNES header
.db "NES", $1a ; identification of the iNES header
.db 1 ; number of 16KB PRG-ROM pages
.db $01 ; number of 8KB CHR-ROM pages
.db $70|%0001 ; mapper 7
.dsb $09,$00 ; clear the remaining bytes
.fillvalue... |
/*
* FreeRTOS V202012.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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, incl... |
; This table translates key presses into ascii codes.
; Also used by 'GetKey' and 'LookupKey'. An effort has been made for
; this key translation table to emulate a PC keyboard with the 'CTRL' key
SECTION rodata_clib
PUBLIC in_keytranstbl
.in_keytranstbl
defb 'g', 'f', 'e', 'd', 'c', 'b', 'a', '@' ; g, f, e, d, c,... |
[bits 16]
mov al, 0 ; b0 00
mov byte al, 0 ; b0 00
mov al, byte 0 ; b0 00
mov byte al, byte 0 ; b0 00
;mov al, word 0
mov byte [0], 0 ; c6 06 00 00 00
mov [0], word 0 ; c7 06 00 00 00 00
mov dword [0], dword 0 ; 66 c7 06 00 00 00 00 00 00
;mov [0], 0
mov eax, 0 ; 66 b8 00 00 00 00
mov dword eax, 0 ; 66 b8 ... |
global _tss
global _tss_size
segment _DATA class=DATA use32
align 4
_tss:
dd 0
dd 0xEFFFF0
dd 0x10
dd 0xEEFFF0
dd 0x21
times 21 dd 0
_tss_end:
_tss_size equ _tss_end - _tss
|
_RocketHideout2BattleText2::
text "BOSS said you can"
line "see GHOSTs with"
cont "the SILPH SCOPE!"
done
_RocketHideout2EndBattleText2::
text "I"
line "surrender!"
prompt
_RocketHideout2AfterBattleTxt2::
text "The TEAM ROCKET"
line "HQ has 4 basement"
cont "floors. Can you"
cont "reach the BOSS?"
done
|
dnl Intel Pentium mpn_copyi -- copy limb vector, incrementing.
dnl Copyright 1996, 2001, 2002, 2006 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU... |
0x0000 (0x000000) 0x1025- f:00010 d: 37 | A = 37 (0x0025)
0x0001 (0x000002) 0x292A- f:00024 d: 298 | OR[298] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x292B- f:00024 d: 299 | OR[299] = A
... |
module ICE_HOLE
init:
SET_EXEC_IX update
xor a
ld (ix+oData.isMovable),a
ld (ix+oData.accelerate),a
ld (ix+oData.drawMethod),a
inc a
ld (ix+oData.needDraw),a
ld (ix+oData.color),5
ld c,(ix+oData.cellId)
call getAttrAddrByCellId
ld (ix+oData.clrScrAddrL),e
ld (ix+oData.clrScrAddrH),d
jp OBJECTS.setObjectId... |
[SECTION .text]
extern exception_handler
extern disp_IRQ
GLOBAL EOI
;默认中断
GLOBAL divide_error
GLOBAL single_step_exception
GLOBAL nmi
GLOBAL breakpoint_exception
GLOBAL overflow
GLOBAL bounds_check
GLOBAL inval_opcode
GLOBAL copr_not_available
GLOBAL double_fault
GLOBAL copr_seg_overrun
GLOBAL inval_tss
GLOBAL segm... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: Icon editor
MODULE: Document
FILE: documentAddIcon.asm
AUTHOR: Steve Yegge, Sep 11, 1992
ROUTINES:
Name Description
---- -----------
GetPreviewSettin... |
proc imp.msvcrt.dll!__p__acmdln Label_0040290C
attrs [[jumponly]]
# call_from : 004014C0
Label_0040290C:
0040290C: FF 25 B0 61 40 00 : jmp dword [0x4061b0]
end proc
|
0x0000 (0x000000) 0x1119- f:00010 d: 281 | A = 281 (0x0119)
0x0001 (0x000002) 0x5800- f:00054 d: 0 | B = A
0x0002 (0x000004) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0003 (0x000006) 0x2913- f:00024 d: 275 | OR[275] = A
... |
; A158753: Lucas even count down recursion:e(n,k)=(e(n - 1, k)*e(n, k - 1) + 1)/e(n - 1, k - 1)
; 1,4,1,11,4,1,29,11,4,1,76,29,11,4,1,199,76,29,11,4,1,521,199,76,29,11,4,1,1364,521,199,76,29,11,4,1
seq $0,25676 ; Exponent of 8 (value of i) in n-th number of form 8^i*9^j.
seq $0,2878 ; Bisection of Lucas sequence: a(n)... |
;/*!
; @file
;
; @brief Kbd Router
;
; (c) osFree Project 2018-2022, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; @author Yuri Prokushev (yuri.prokushev@gmail.com)
;
;*/
.8086
INCLUDE helpers.inc
INCL_KBD EQU 1
include bsesub.inc
@KBDROUTE MACRO FUNC... |
;
; Amstrad CPC library
; Boot CP/M via AMSDOS command
;
; void go_cpm()
;
; $Id: go_cpm.asm,v 1.2 2009/06/22 21:44:16 dom Exp $
;
XLIB go_cpm
INCLUDE "cpcfirm.def"
.go_cpm
; |CPM (no parameters)
ld hl,cmd_cpm
call firmware
defw kl_find_command
ret nc
ld (c... |
<?xml version = '1.0' encoding = 'ISO-8859-1' ?>
<asm version="1.0" name="0">
<cp>
<constant value="ATL2Metric"/>
<constant value="links"/>
<constant value="NTransientLinkSet;"/>
<constant value="col"/>
<constant value="J"/>
<constant value="builtInFunctionList"/>
<constant value="main"/>
<co... |
dnl mpn_popcount
dnl Copyright 2010 The Code Cavern
dnl This file is part of the MPIR Library.
dnl The MPIR Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 2.1 of the... |
%ifdef CONFIG
{
"RegData": {
"R15": "0xFFFFFFFFFFFFFFFF",
"R14": "0x4141414141410000",
"R13": "0",
"R12": "0",
"R11": "0x00000000FFFFFFFF"
}
}
%endif
mov cl, 0
mov r15, -1
mov r14, 0x4141414141410000
mov r13, 0
mov r12, 0
mov r11, -1
shrd r14w, r15w, cl
shrd r13d, r15d, cl
shrd r12, r15, cl
sh... |
extern _printf
global _main
segment .bss
$var: resd 1
$arg: resd 1
$dest: resd 1
$sum: resb 1
$h: resb 1
$i: resb 1
segment .data
_p: db `%u\n`, 0
_c: db 0, 0
_ln: db 0, 10, 0
segment .text
_main:
;4: arg = 355
mov dword [$arg], 355
;6: 5dest = var - arg
mov eax, dword [$var]
sub eax, dword [$arg]
mov dword [$dest... |
Sound_D3_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_D3_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $02
smpsHeaderSFXChannel cFM3, Sound_D3_FM3, $00, $10
smpsHeaderSFXChannel cFM4, Sound_D3_FM4, $00, $0C
; FM3 Data
Sound_D3_FM3:
dc.b nRst, $04
; FM4 Data
Sound_D3_FM4:
smpsSetvoice $... |
LA 1,MSGAREA Point Register 1 to message area
SVC 35 Invoke SVC 35 (Write to Operator)
BR 14 Return
MSGAREA EQU * Message Area
DC AL2(19) Total area length = 19 (Prefix length:4 + Data Length:15)
DC XL2'00' ... |
.section .text.entry
.globl _start
_start:
# a0 == hartid
# pc == 0x80200000
# sp == 0x800xxxxx
# 1. set sp
# sp = bootstack + (hartid + 1) * 0x10000
add t0, a0, 1
slli t0, t0, 14
lui sp, %hi(bootstack)
add sp, sp, t0
# 2. enable paging
# satp = (8 <<... |
copyright zengfr site:http://github.com/zengfr/romhack
03DCF6 bpl $3dcfe [boss+98]
copyright zengfr site:http://github.com/zengfr/romhack
|
; A173630: Denominator of A002445(n)/A145979(n).
; Submitted by Jamie Morken(w2)
; 1,1,2,5,1,7,4,3,1,11,2,13,1,5,8,17,3,19,2,7,1,23,4,25,1,9,14,29,1,31
mov $2,$0
seq $0,130072 ; a(n) = 5^n - 3^n - 2^n.
mov $1,$0
add $2,2
mov $0,$2
gcd $1,$2
div $0,$1
|
;This example program asks for a word to be entered, and then
;it prints it in large letters, as defined in the bitmap data below.
;this line must be set so that the program is assembled
;to be run from a place in memory where there is RAM.
.org 0x2000
;these equ lines allow us to call functions within PAULMON2
;b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.