content stringlengths 23 1.05M |
|---|
LDR R3, a
LDR R2, b
CMP R3, R2
BCS .L2
LDR R3, c
LDR R2, d
CMP R3, R2
BGE L2
.L1:
.l2:
//////////////////////
.while_continue:
LDR R3, a
TST R3, R3
BMI .while_break
LDR R2, b
CMP R3, R2 @a-b
BGE .L1
LDR R1, =c
ADD R2, R2, #1
STR R2, [R1]
.L1:
SUBS R3
B .while_continue
.while_break
//////////... |
init: ld a, ($+0FF00h)
ld a, ($+0FF00h)
ld a, ($+0FF00h)
ld a, ($+0FF00h)
ld a, ($+0FF00h)
end init
|
; Allow user to enter 1 char, display it 7 times
.MODEL SMALL
.STACK 100
.DATA
CHAR DB ?
pro DB "Enter a character: $"
NL DB 13,10,"$"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV AH, 09H
LEA DX, pro
INT 21H
MOV AH, 01H
INT 21H
MOV CHAR, AL
MOV AH, 09H
... |
CODE SEGMENT PUBLIC 'CODE'
ASSUME CS:CODE
START:
MOV AL, 5 ; AL = 5
ADD AL, -3 ; AL = 2
ENDLESS:
JMP ENDLESS
CODE ENDS
END START |
dnl IBM POWER mpn_rshift -- Shift a number right.
dnl Copyright 1992, 1994, 1999-2001 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 Lesser Genera... |
;Write an 8051 assembly language program to toggle bit of P1.7 for every 1 second.
;Assume the crystal frequency as 33MHz. Verify the output using ESA 8051 microcontroller kit.
ORG 0000H
MOV TMOD,#10H
REPEAT:MOV R0,#21
CPL P1.7
BACK:MOV TL1,#00H
MOV TH1,#00H
SETB TR1
AGAIN:JNB TF1,AGAIN
CLR TR1
CLR TF1
DJN... |
*=$0801
.byte $15 $08 $00 $00 $9e $32 $30 $37 $32 $3a $8f $20 $4d $4f $53 $43 $4f $4d $50 $00 $00 $00 $00
MEMSTART=2049
MEMEND=53248
COPYFROM=$61
COPYTO=$63
COPYLEN=$65
DATAPOS=$69
TOTALLEN=$6B
COMPPOS=$6D
SCREEN=$0400
lda #<decruncher
sta COPYFROM
lda #>decruncher
sta COPYFROM+1
... |
; function to print a BCD (Binary-coded decimal) number
; de = address of BCD number
; hl = destination address
; c = flags and length
; bit 7: if set, do not print leading zeroes
; if unset, print leading zeroes
; bit 6: if set, left-align the string (do not pad empty digits with spaces)
; if unset, righ... |
;; -*- mode: rgbds; -*-
INCLUDE "hardware.inc"
INCLUDE "engine.inc"
SECTION "engine",ROM0
loadBGPal::
;; Input: HL - Source Address of palette colors
;; A - Destination palette index
push af
push bc
push hl
set 7, a
ld [rBCPS], a
ld b, 8
.palLoop
ld a, [hli]
ld [rBCPD], a
d... |
# AMD K6 mpn_divexact_by3 -- mpn division by 3, expecting no remainder.
#
# K6: 11.0 cycles/limb
# Copyright (C) 2000 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 Library Gener... |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... |
; Win32 Console Application
format PE Console 4.0
entry Start
include '%finc%\win32\win32a.inc'
include 'Console.inc'
uglobal
hInstance dd ?
hHeap dd ?
endg
.DATA:
Start:
invoke GetModuleHandleA,0
mov [hInstance],eax
invoke GetProcessHeap
mov [hHeap], eax
I... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2015 Intel Corporation All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of s... |
addi x0, x0, 0x00
addi x0, x0, 0x00
addi x0, x0, 0x00
addi x0, x0, 0x00
# Initialise UART
lui a5, 0x10012
addi a5, a5, 0x3c
lw a0, 0(a5)
addi a1, x0, 0x3
slli a1, a1, 0x10
sub a1, x0, a1
and a0, a1, a0
sw a0, 0(a5)
addi a5, a5, -0x8
lw a0, 0(a5)
sub a1, x0, a1
or a0, a0, a1
lui a5, 0x10013
addi a5, a5, 0x18
addi a0, x... |
%ifdef foo
mov ax, foo
%endif
%ifdef bar
mov ax, bar
%endif
%define foo 5
%ifdef foo
mov ax, foo
%endif
%ifdef bar
mov ax, bar
%endif
|
WindowGrouping_x equ 8
WindowGrouping_y equ 12
WindowGrouping_w equ 16
WindowGrouping_h equ 20
WindowGrouping_mainGrouping equ Component_CLASS_SIZE+12
WindowGrouping_titleBar equ Component_CLASS_SIZE+16
WindowGrouping_nameString equ Component_CLASS_SIZE+20
WindowGrouping_sizeButton equ Component_CLASS_SIZE+24
... |
TITLE PNEWSEG - Copyright (c) SLR Systems 1994
INCLUDE MACROS
INCLUDE SEGMENTS
INCLUDE SEGMSYMS
if fg_pe
INCLUDE PE_STRUC
endif
PUBLIC PROT_OUT_NEW_SEGMENT,PROT_OUT_NEW_SEGMOD
.DATA
EXTERNDEF FIX2_SEG_COMBINE:BYTE,FIX2_SEG_TYPE:BYTE
EXTERNDEF OPTI_STOSD_SIZE:DWORD,OPTI_RELOC_CLEAR:DWORD,LAST_SEG... |
section .text
global is_paired
is_paired:
; Provide your implementation here
ret
|
#include "src/ti84pce_short.inc"
.assume adl=0
;Set to 0 when somebody fixes instruction width bug in Z80 mode.
#define COMPILER_BUG_OFFSET 0
#define COLOR_WHITE 00h
#define COLOR_DGRAY 01h
#define COLOR_LGRAY 02h
#define COLOR_BLACK 03h
#define SET_BRK(adr) push af \ push hl \ push de \ scf \ sbc hl,hl \ ld de,adr ... |
.init main
.debug 3
.float LHS 10.0
.float RHS 0.0
.code
main:
mov i1 @0 ; Load constants from 0 slot
mov i5 &LHS ; At offset of data item
lqw i1 i5 i5 ; Load LHS into i5 (retrieve data)
mov i6 &RHS ; At offset of data item
lqw i1 i6 i6 ; Load RHS into ... |
TITLE LLEGA - EGA screen mode support
;***
;LLEGA - EGA screen mode support
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
; Support for EGA graphics screen modes (BIOS D,E,F,10).
; Note that this module module contains support
; code for all adapters capable of handling these
; screen modes and also attem... |
<% from pwnlib import constants %>
<% from pwnlib.util import lists, packing, fiddling %>
<% from pwnlib.shellcraft.arm import mov %>
<%page args="word"/>
<%docstring>
Pushes a 32-bit integer onto the stack. Uses R7 as a temporary register.
Args:
word (int, str): The word to push
</%docstring>
% if isinstance(word,... |
move_left:
mov ah, 0 ; spaces left
mov ch, 0 ; i
mov cl, 0 ; space -i or
mov bl, 0 ; j
mov ch, 0 ; i * 4+3
mov dl, 0 ; data
mov dh, 0 ; data
.each_row: ; for (BYTE j = 0; j <= 3; j++)
cmp ch, 3
jle .each_col
jmp move
.each_col:
mov ah, 0
mov bl, ch
add bl, bl ; bl ... |
incasm "kernel.hdr"
;incasm "kernel.asm"
main
@loop
jsr console.clear$
lda #color.white$
sta console.setcharactercolor.color$
jsr console.setcharactercolor$
lda #<title
sta console.writestr.straddress$
lda #>title
sta console.writestr.straddress$+1
... |
Page 60,132
;-----------------------------------------------------------------------------
; BEGIN LISTING 3
;-----------------------------------------------------------------------------
;
; EMULOAD.ASM
;
; Copyright (c) 1991, 1995-Present Robert Collins
;
; You have my... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2016, 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 this distribution. Th... |
SFX_Run_Ch1:
unknownnoise0x20 2, 97, 35
unknownnoise0x20 2, 161, 51
unknownnoise0x20 2, 193, 51
unknownnoise0x20 2, 81, 17
unknownnoise0x20 2, 241, 51
unknownnoise0x20 2, 65, 17
unknownnoise0x20 2, 193, 51
unknownnoise0x20 2, 49, 17
unknownnoise0x20 2, 129, 51
unknownnoise0x20 2, 49, 17
unknownnoise0x20 8, 6... |
assume cs: code, ds: data
data segment
str1 db "madom"
n dw n-str1
str2 db 5 dup(?)
msg1 db "The string is a palindrome$"
msg2 db "The string is not a palindrome$"
data ends
code segment
start:
mov ax, data
mov ds, ax
mov es, ax
lea si, n
dec si
lea di, str2
mov cx, n
n... |
g(): # @g()
push rax
call qword ptr [rip + _ZN3foo3bazE+8]
xor eax, eax
pop rcx
ret |
INCLUDE "clib_cfg.asm"
SECTION code_math
PUBLIC l_mulu_40_32x8
; compute: adehl = dehl * a
; alters : af, bc, de, hl, ixh
IF __CLIB_OPT_IMATH <= 50
EXTERN l_small_mul_40_32x8
l_mulu_40_32x8:
exx
push bc
push de
push hl
exx
call l_small_mul_40_32x8
exx
pop h... |
USE32
global __load_gdt:function
__load_gdt:
mov eax, [esp+4]
lgdt [eax]
jmp 0x8:reload_segments
reload_segments:
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
ret
|
SECTION .text
GLOBAL square_poly1305
square_poly1305:
sub rsp, 0x30 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x0 ], rbx; saving to stack
mov [ rsp + 0x8 ], rbp; saving to stack
mov [ rsp + 0x10 ], r12; saving to stack
mov [ rsp + 0x18 ], r13; saving to stack
mov [ rsp + 0x20 ], r14; saving to stack
mov [ rs... |
; Copyright 1999-2015 Aske Simon Christensen.
;
; The code herein is free to use, in whole or in part,
; modified or as is, for any legal purpose.
;
; No warranties of any kind are given as to its behavior
; or suitability.
INIT_ONE_PROB = $8000
ADJUST_SHIFT = 4
SINGLE_BIT_CONTEXTS = 1
NUM_CONTEXTS = 1536
; Deco... |
; CUSTOMIZATION TEMPLATE FOR SP1
; 01.2008 aralbrec, Sprite Pack v3.0
; ts2068 hi-res version
; See below for Memory Map with these default settings
; ///////////////////////
; Display Characteristics
; ///////////////////////
defc SP1V_DISPORIGX = 0 ; x coordinate of top left corner of area mana... |
; the stack grows downwards from bp (i.e. sp gets decremented)
mov ah, 0x0e ; tty mode
; bp register stores the base address (i.e. bottom) of the stack
mov bp, 0x8000 ; this is an address far away from 0x7c00 so that we don't get overwritten
; sp stores the top
mov sp, bp ; if the stack is empty then sp points... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Motor.inc"
#include "../../../../firmware/Platform/Motor/States.inc"
#include "TestFixture.inc"
radix decimal
extern motorState
udata
randomByte res 1
EnableForFirstTimeWhenMotorStateNotDisabledTest code
global testArrange
testArrange:
fcall initi... |
[bits 64]
mov ax, [0] ; 66 8B 04 25 00 00 00 00
mov rax, [qword 0] ; 48 A1 00 00 00 00 00 00 00 00
mov rax, [0] ; 48 8B 04 25 00 00 00 00
mov rax, [dword 0] ; 48 8B 04 25 00 00 00 00
mov al, [qword 0xfedcba9876543210] ; A0 10 32 54 76 98 BA DC FE
mov al, [0xfedcba9876543210] ; 8A 04 25 10 32 54 76 (+ warning)
a32... |
; __ _ _
; / _(_)_ __ ___ _ __ ___ ___ _ __ ___/\ /(_)_ __ _ _ ___
; \ \| | '_ ` _ \| '_ \/ __|/ _ \| '_ \ / _ \ \ / / | '__| | | / __|
; _\ \ | | | | | | |_) \__ \ (_) | | | | (_) \ V /| | | | |_| \__ \
; \__/_|_| |_| |_| .__/|___/\___/|_| |_|\___... |
_NameRater:
; Introduce himself
ld hl, NameRaterIntroText
call PrintText
call YesNoBox
jp c, .cancel
; Select a Pokemon from your party
ld hl, NameRaterWhichMonText
call PrintText
farcall SelectMonFromParty
jr c, .cancel
; He can't rename an egg...
ld a, [wCurPartySpecies]
cp EGG
jr z, .egg
; ... or a Pokemo... |
;/**************************************************************************
; *
; * XVID MPEG-4 VIDEO CODEC
; * - 3dne Quantization/Dequantization -
; *
; * Copyright(C) 2002-2003 Jaan Kalda
; *
; * This program is free software ; you can r_EDIstribute it and/or modify
; * it under the terms of the GNU General Pu... |
#ruledef test
{
ld r{x} => 0x55 @ x`8
}
ld r12 ; = 0x550c |
module m100_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
defc crt0 = 1
INCLUDE "zcc_opt.def"
;--------
; Some scope definitions
;--------
EXTERN _main ;main() is always external to crt0 code
;EXTERN asm_im1_handler
PUBLIC clean... |
; void *w_array_back(w_array_t *a)
SECTION code_clib
SECTION code_adt_w_array
PUBLIC w_array_back
EXTERN asm_w_array_back
defc w_array_back = asm_w_array_back
|
copyright zengfr site:http://github.com/zengfr/romhack
012C26 move.l #$90b12c, ($1ce,A5)
012C2E move.l #$90b3ac, ($1d2,A5) [base+1CE, base+1D0]
012CB2 move.w #$d40c, D1 [base+1CE, base+1D0]
012CC4 adda.w #$100, A4 [base+1CE, base+1D0]
012D00 move.l #$0, (A1)+ [base+1CE, base+1D0]
01A610 dbra D1, $1a60e ... |
#include "Platform.inc"
#include "TestDoubles.inc"
radix decimal
global calledInitialiseAfterReset
udata
calledInitialiseAfterReset res 1
InitialiseAfterResetMock code
global initialiseInitialiseAfterResetMock
global initialiseAfterReset
initialiseInitialiseAfterResetMock:
banksel calledInitialiseAfterRese... |
BITS 64
global asm_strcmp:
section .text
asm_strcmp:
; the order of registers used is: %rdi, %rsi, %rdx, %rcx, %r8, and %r9
while:
mov r8b, BYTE [rdi];pasamos a registro de 8 bit
mov r9b, BYTE [rsi];pasamos a registro de 8 bit
inc rdi;pasamos a la siguiente letra
inc rsi;pasamos a la siguiente ... |
Name: control_data.asm
Type: file
Size: 12255
Last-Modified: '2000-11-08T02:03:12Z'
SHA-1: AA47917CEAD556F26BE678890420D6D28491C1CB
Description: null
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Palm Computing, Inc. 1992 -- All Rights Reserved
PROJECT: PEN GEOS
MODULE: World Clock
FILE: wcInit.asm
AUTHOR: Roger Flores, Oct 13, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTO... |
%macro B_STRUC 1-*
%push foo
%define %$strucname %1
%%top_%$strucname:
%rep %0 - 1
%rotate 1
resb %{$strucname}%1 - ($ - %%top_%$strucname)
%1:
%endrep
resb %{$strucname}_size - ($ - %%top_%$strucname)
%pop
%endmacro
struc timeval
.tv_sec resd 1
.tv_usec resd 1
endstruc
mov [timeval_struct.tv_sec],... |
; int bcmp_callee(const void *b1, const void *b2, size_t len)
SECTION code_string
PUBLIC _bcmp_callee
EXTERN _memcmp_callee
defc _bcmp_callee = _memcmp_callee
|
;*****************************************************
;
; Video Technology library for small C compiler
;
; Juergen Buchmueller
;
;*****************************************************
; ----- void __FASTCALL__ vz_setbase(void *start)
PUBLIC vz_setbase
PUBLIC scrbase
.vz_setbase
ld (scrbase),hl
ret
.scrbas... |
; void __CALLEE__ sbrk_callee(void *addr, unsigned int size)
; 12.2006 aralbrec
SECTION code_clib
PUBLIC sbrk_callee
PUBLIC _sbrk_callee
PUBLIC asm_sbrk
EXTERN asm_HeapSbrk
EXTERN _heap
.sbrk_callee
._sbrk_callee
pop hl
pop bc
ex (sp),hl
.asm_sbrk
; bc = size of block in bytes >- 4
; hl = addres... |
MOV R0, #20H;set source address 20H to R0
MOV R1, #30H;set destination address 30H to R1
MOV A, @R0;take the first operand from source to register A
INC R0; Point to the next location
MOV B, @R0; take the second operand from source to register B
DIV AB ; Divide A by B
MOV @R1, A; Store Quotient to 30H
INC R1; Increa... |
; $Id: VMMR0TripleFaultHackA.asm $
;; @file
; VMM - Host Context Ring 0, Assembly Code for The Triple Fault Debugging Hack.
;
;
; Copyright (C) 2011-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you ca... |
org 256
start:
mov dx, 90
mov ax, 9
sub dx, ax
call iprintCRLF
int 21h
include 'procs.inc'
|
MOV AL,09H ; Load immediate data 09H to register AL
MOV BL,06H ; Load immediate data to register BL
SUB AL, BL ; AL=AL-BL |
* Network broadcast
*
section nd
*
xdef nd_bcast read a broadcast
*
xref nd_srpnt
xref nd_ex_ok
xref nd_sbuf
xref nd_break read break keys
xref ndr_headr
xref ndr_bytes
xref nd_setup
xref nd_nextb
*
include dev8_dd_qlnd_keys
include dev8_mac_assert
* d6 c p size of buffer extension / copy of tmod... |
.segment "CODE"
; this is like a x = y call where x is set to the value of y
.macro set set_var, from
lda from
sta set_var
.endmacro
; this procedure will loop until the next vblank
.proc wait_for_vblank
bit PPU_STATUS ; $2002
vblank_wait:
bit PPU_STATUS ; $2002
bpl vblank_wait
... |
.model small
.data
value1 dw 0ffffh
value2 dw 0003h
value3 dw 7fffh
value4 dw 8123h
.stack
.code
main proc
mov ax,@data
mov ds,ax
mov ax,0
add ax,value1
add ax,value1
add ax,value2
add ax,value3
add ax,value4
mov bx,ax
mov dx,ax ;ax放在bx,dx備用
;第一位數
and dx,0f000h ;mask
mov cl,12 ;1... |
; void *p_stack_top(p_stack_t *s)
SECTION code_clib
SECTION code_adt_p_stack
PUBLIC p_stack_top
EXTERN asm_p_stack_top
defc p_stack_top = asm_p_stack_top
|
.psx
; Hacks for game-wide things
; Store controller inputs in temp ram for access
; as well as blocking game-mappable inputs if holding select
; to avoid annoying item save conflicts
@controller_input:
replace 0x80012370
j @controller_input
nop
endreplace @controller_input
; a1 contains current controlle... |
BITS 32
extern print_line
global mystery1:function
global mystery2:function
global mystery3:function
global mystery4:function
global mystery6:function
global mystery7:function
global mystery8:function
global mystery9:function
section .text
; SAMPLE FUNCTION
; Description: adds two integers and returns their sum
; @ar... |
copyright zengfr site:http://github.com/zengfr/romhack
001590 lea ($20,A0), A0
0049CC jsr $2470.w [enemy+B2]
0049FE sub.w ($b2,A0), D0 [enemy+ 8]
004A02 cmpi.w #$36, D0 [enemy+B2]
0122A4 move.l (A2)+, (A3)+ [enemy+AC, enemy+AE]
0122A6 move.l (A2)+, (A3)+ [enemy+B0, enemy+B2]
01A75E dbra D4, $1a7... |
8C_Header:
sHeaderInit ; Z80 offset is $CF75
sHeaderPatch 8C_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 8C_FM5, $F9, $02
8C_FM5:
sPatFM $00
dc.b nEb6, $05
8C_Loop1:
dc.b nF6, $02
saVolFM $03
sLoop $00, $0E, 8C_Loop1
sStop
8C_Patches:
; Patch $00
; $83
; $1F, $17, $1E, $1F, $1F,... |
; A118081: Even numbers that can't be represented as the sum of two odd composite numbers.
; Submitted by Christian Krause
; 2,4,6,8,10,12,14,16,20,22,26,28,32,38
lpb $0
add $2,$0
sub $0,10
add $0,$2
div $0,2
max $0,0
seq $0,8507 ; Number of odd composite numbers less than n-th odd prime.
lpe
mov $0,$2
mul... |
%include "io.inc"
section .data
string db "ana are mere", 0
section .text
global CMAIN
rot13:
push ebp
lea ebp, [esp]
xor ebx, ebx
mov ecx, [ebp + 8]
rot13_on_a_char:
cmp [ecx], byte 0
jz return
cmp [ecx], byte ' '
je next_char
cmp [ecx], byte 'm'
ja above_13
... |
; size_t w_vector_capacity(w_vector_t *v)
SECTION code_adt_w_vector
PUBLIC w_vector_capacity
defc w_vector_capacity = asm_w_vector_capacity
INCLUDE "adt/w_vector/z80/asm_w_vector_capacity.asm"
|
.data
.align 2
program: .space 400
file: .space 24
str: .space 1004
N: .space 4
.align 2
coop: .word haltF, 0, 0, 0, sllvF, bneF, beqF, 0, addiF, 0, 0 ,0, andiF, oriF
.space 40
.word multF
.space 28
.word addF, 0, subF, lwF, 0, orF, 0, 0, andF, 0, 0, swF
.space 80
haltM: .asciiz " R halt"
sllvM:... |
//
// Copyright (c) 2011-2012, ARM Limited. All rights reserved.
// Copyright (c) Huawei Technologies Co., Ltd. 2013. All rights reserved.
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
... |
naken_util - by Michael Kohn
Joe Davisson
Web: http://www.mikekohn.net/
Email: mike@mikekohn.net
Version: October 30, 2017
Loaded hexfile E_W_ROUTINEs_32K_verL_1.0.hex from 0xffffffff to 0xffffffff
Type help for a list of commands.
Internal Error: At ../common/memory.c:98.
Internal E... |
page ,132
title lmul - long multiply routine
;***
;lmul.asm - long multiply routine
;
; Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
;
;Purpose:
; Defines long multiply routines
; Both signed and unsigned routines are the same, since multiply's
; work out the same in 2's complement
;
;Revision... |
; ---------------------------------------------------------------------------
; Sprite mappings - shield and invincibility stars
; ---------------------------------------------------------------------------
Map_Shield_internal:
dc.w @shield1-Map_Shield_internal
dc.w @shield2-Map_Shield_internal
dc.w @shield3-Map_... |
[org 0x7c00]
[bits 16]
_start:
call SetupDisplay
push 0x013f ; X End
push 0x00c7 ; Y End
push 0x0000 ; X Start Point 1
push 0x0000 ; Y Start
call Bresenhams
add sp, 0x8
push 0x013f ; Point 2
push 0x0000
push 0x0000 ; Point1
push 0x00c7
call Bresenhams
jmp $
%in... |
; bits 16
;
; Due to historical reasons, we need to ensure A20 line is enabled in order
; to use unlock upper memory ...
; http://wiki.osdev.org/A20_Line
; http://www.win.tue.nl/~aeb/linux/kbd/A20.html
;
enable_a20:
pushf
push ax
push bx
push cx
push dx
push si
; skip enabling a20 if it's already e... |
// . . . . . . . .
// 0 1 2 3 4 5 6 7
// PATTERN 4 ON PORT 2
//
// .
// . .
// . . .
// . . . .
// . . . . .
// . . . . . .
// . . . . . . .
// . . . . . . . .
// . . . . . . .
// . . . . . .
// . . . .
// . . .
// . .
// .
// 0 1 2 3 4 5 6 7
ORG 0000H
// ... |
; ORG is forbidden so that uninitialised data is a contiguous block at 0
IDEAL
SEGMENT SEG1 UNINIT
ORG 80h
ENDS
END
|
LDA #$01
STA $f0
LDA #$cc
STA $f1
JMP ($00f0) ;dereferences to $cc01
|
;-----------------------------------------------------------------------------
; fmod.asm - floating point remainder of x/y
; Ported from Al Maromaty's free C Runtime Library
;-----------------------------------------------------------------------------
SECTION .text
global fmod
... |
global _start
section .bss
string resb 101
lng resd 1
sym resb 1
section .data
eoln db 10
debugs1 db 'rulee-1', 10
debugs2 db 'rulee-2', 10
section .text
_start:
xor esi, esi
readb:
mov eax, 3
mov ebx, 0
mov ecx, string
add ecx, esi
mov edx, 1
push edx
push ecx
push ebx
push eax
int ... |
Name: Meter.asm
Type: file
Size: 18078
Last-Modified: '1992-02-13T07:47:45Z'
SHA-1: F3FCCB6D8504948C5611AA6EA39BEABEC5A9BB4C
Description: null
|
Map_68454: dc.w word_6845C-Map_68454
dc.w word_68464-Map_68454
dc.w word_6846C-Map_68454
dc.w word_68474-Map_68454
word_6845C: dc.w 1 ; DATA XREF: ROM:00068454o
dc.b $F8, $D, 0, 0, $FF, $F0
word_68464: dc.w 1 ; DATA XREF: ROM:00068454o
dc.b $F8, $D, 0, 8, $FF, $F0
word_6846C: dc.w 1 ; DAT... |
STACKSG SEGMENT STACK
GLOBAL_BUILTIN_GETS_BUF DW 129 DUP(0)
GLOBAL_BUILTIN_GETS_CHARCOUNT DW 1 DUP(0)
GLOBAL_BUILTIN_COMPACT_BUF DW 129 DUP(0)
DW 70,65,73,76,32,84,79,32,79,80
DW 69,78,70,73,76,69,10,0
DW 70,65,73,76,32,84,79,32,67,76
DW 79,83,69,70,73,76,69,10,0
DW 70,73,76,69,46,84,88,... |
new_: MACRO
IF _NARG > 1
println "newcharmap \1, \2"
newcharmap \1, \2
ELSE
println "newcharmap \1"
newcharmap \1
ENDC
ENDM
set_: MACRO
println "setcharmap \1"
setcharmap \1
ENDM
push_: MACRO
println "pushc"
pushc
ENDM
pop_: MACRO
println "popc"
popc
ENDM
print_mapped: MACRO
x = \1
println "{x}"
ENDM
... |
; Procedure to copy string (a6,a1) V2.00 1988 Tony Tebby QJUMP
section hotkey
xdef hot_scpy
include 'dev8_keys_err'
include 'dev8_ee_hk_data'
;+++
; String at (a6,a1.l) is copied to hkd_buf2 then a1 set to point to hkd_buf2
;
; a1 cr string pointer, called rel a6, returned absolute
; a3 c p hotkey li... |
.686
.XMM
.model flat, c
PUBLIC SetYmmScratchesFun
.code
SetYmmScratchesFun PROC
push ebp
mov ebp, esp
mov eax,[ebp]+8
vmovdqu ymm0, ymmword ptr [eax]
vmovdqu ymm1, ymmword ptr [eax]+32
vmovdqu ymm2, ymmword ptr [eax]+64
vmovdqu ymm3, ymmword ptr [eax]+96
vmovdqu ymm4, ymmword ... |
; This file is a part of sfx_engine.pas
; will not work on its own unless you adapt it!
;
icl 'definitions.asm'
jmp SFX_INIT
jmp SFX_MAIN_TICK
jmp SFX_PLAY_NOTE
jmp SFX_PLAY_TAB
jmp SFX_PLAY_SONG
jmp SFX_OFF_CHANNEL
jmp SFX_OFF_ALL
;
;
SFX_INIT ... |
Name: Pause-p.asm
Type: file
Size: 45691
Last-Modified: '1992-07-29T15:00:00Z'
SHA-1: 2551DE977DA0715564E8835295DB1CAA14AB56E6
Description: null
|
; A134017: Period 9: repeat 1, 2, 4, 3, 5, 3, 4, 2, 1.
; 1,2,4,3,5,3,4,2,1,1,2,4,3,5,3,4,2,1,1,2,4,3,5,3,4,2,1,1,2,4,3,5,3,4,2,1,1,2,4,3,5,3,4,2,1,1,2,4,3,5,3,4,2,1
lpb $0
mul $0,8
sub $0,1
mod $0,9
lpe
pow $0,3
mod $0,5
add $0,1
|
CinnabarIsland_Object:
db $43 ; border block
def_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
def_signs
sign 9, 5, 3 ; CinnabarIslandText3
sign 16, 11, 4 ; MartSignText
sign 12, 11, 5 ;... |
.intel_syntax noprefix
.data
.bss
.text
.extern puts
.extern printf
.extern exit
.extern fflush
.extern input_int
.extern print_int
.global main
main:
push rbp
mov rbp, rsp
sub rsp, 48
mov DWORD PTR [rbp-8], 10
mov DWORD PTR [rbp-12], 5
mov eax, [rbp-8]
add eax, [rbp-12]
mov DWORD PTR[rbp-16], e... |
PokemonTower3F_Object:
db $1 ; border block
db 2 ; warps
warp 3, 9, 0, POKEMON_TOWER_2F
warp 18, 9, 1, POKEMON_TOWER_4F
db 0 ; signs
db 4 ; objects
object SPRITE_MEDIUM, 12, 3, STAY, LEFT, 1, OPP_CHANNELER, 5
object SPRITE_MEDIUM, 9, 8, STAY, DOWN, 2, OPP_CHANNELER, 6
object SPRITE_MEDIUM, 10, 13, STAY, DOW... |
.386
.model flat, stdcall
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;includem biblioteci, si declaram ce functii vrem sa importam
includelib msvcrt.lib
extern exit: proc
extern fscanf: proc
extern scanf: proc
extern fopen: proc
extern printf: proc
extern strlen: proc
extern fgets: pr... |
;Multiplication of two 8 bit numbers
MVI A, 00H
MVI B, 05H
MVI C, 03H
ADD B
DCR C
JNZ 2006H
STA 2050H
RST 1 |
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0
TITLE C:\Users\cex123\Desktop\FYP\develop\spartan\source\Kernel\Monitor\Monitor.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
PUBLIC _Monitor
PUBLIC ??_C@_03NOLLCAOD@?$AA?$AA?$AA?$AA@ ; `string'
PUBLI... |
; Assembly for kaleidoscope.bas
; compiled with mcbasic -native
; Equates for MC-10 MICROCOLOR BASIC 1.0
;
; Direct page equates
DP_LNUM .equ $E2 ; current line in BASIC
DP_TABW .equ $E4 ; current tab width on console
DP_LPOS .equ $E6 ; current line position on console
DP_LWID .equ $E7 ; current line width of console... |
; **************************************************
; 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_loadBGPalette
asm_SMSlib... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Text Library
FILE: UI/uiManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 7/91 Initial version
DESCRIPTION:
... |
Name: kart-enemy-d.asm
Type: file
Size: 24507
Last-Modified: '1992-07-27T00:04:32Z'
SHA-1: 7EA9E5360080513C6A02C79C55B0DBAE8927FF5F
Description: null
|
-- 7 Billion Humans (2145) --
-- 60: Understaffed Sorting --
-- Author: landfillbaby
-- Size: 12
-- Speed: 151
a:
step w,e
if se < s and
se == datacube and
s == datacube and
sw != worker and
w != worker:
pickup s
drop
pickup se
step s
drop
pickup n
step e
drop
step nw
endif
jump a |
//////////////////////////////////////////////////////////////////////////////
// nv_math16_macs.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
// Contains macros for 16 bit math operations
// impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.