content
stringlengths
23
1.05M
;name: inputdemo.asm ; ;description: The program asks for some input and writes it to stdout. ; ;build: nasm -felf64 -Fdwarf -g -l inputdemo.lst inputdemo.asm -o inputdemo.o ; ld -g -melf_x86_64 inputdemo.o -o inputdemo ; ;Thanks to GunnerInc (DreamInCode) for the routine to clear the buffer. bits 64 [list -] ...
bootblock.o: file format elf32-i386 Disassembly of section .text: 00007c00 <start>: # with %cs=0 %ip=7c00. .code16 # Assemble for 16-bit mode .globl start start: cli # BIOS enabled interrupts; disable 7c00: fa cli # Zero data segment...
# Test to check whether a given number is a perfect square. .data nStr: .asciiz "Enter n: " n: .word 0 i: .word 0 isStr: .asciiz "n is not a perfect square." notStr: .asciiz "n is a perfect square." .text .globl main .ent main main: li $v0, 4 la $a0, nStr syscall li $v0, 5 syscall move $t1, $v0 li $t4, 1...
; long __CALLEE__ lseek_callee(int fd, long offset, int whence) ; 06.2008 aralbrec PUBLIC lseek_callee PUBLIC ASMDISP_LSEEK_CALLEE EXTERN l_jpix, stdio_fdcommon1 EXTERN stdio_error_ebadf_mc, stdio_error_mc INCLUDE "../stdio.def" .lseek_callee pop af pop bc pop hl pop de exx pop hl push af .as...
SYS_EXIT equ 0x1 SYS_OUT equ 0x4 section .text global start start: push 10 push 2 call add call exit add: push ebp mov ebp, esp mov eax, [ebp + 8] mov ebx, [ebp + 12] add eax, ebx mov esp, ebp pop ebp ret exit: mov eax, SYS_EXIT int 0x80
# Steven Montalbano # smm285 .include "convenience.asm" .include "game.asm" .eqv GAME_TICK_MS 16 # Defines the number of frames per second: 16ms -> 60fps .data .globl frame_counter .globl _main_game_over .globl level .globl score .globl lives .globl bullets_left # Variables used by wait_for_next_frame - also used...
////////////////////////////////////////////////////////////////////////////// // astro_stream_processor_code.asm // Copyright(c) 2021 Neal Smith. // License: MIT. See LICENSE file in root directory. ////////////////////////////////////////////////////////////////////////////// // subroutine based on expansion of the n...
;-----------------------------------------------------------------; ; This example shows how to to use the Unicode macros. ; ; A short overview: ; ; UCSTR / UC - unicode string ; ; UCCSTR / UCC - unicode string with escape se...
Name: Ending1-j.asm Type: file Size: 20200 Last-Modified: '1992-07-06T15:00:00Z' SHA-1: 147D5A814CB2C887A34901AFC83F64E20919A108 Description: null
extern m7_ippsHMACPack_rmf:function extern n8_ippsHMACPack_rmf:function extern y8_ippsHMACPack_rmf:function extern e9_ippsHMACPack_rmf:function extern l9_ippsHMACPack_rmf:function extern n0_ippsHMACPack_rmf:function extern k0_ippsHMACPack_rmf:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function s...
; Copyright Rohfel Adyaraka. All rights reserved. [org 0x7c00] mov [BootDisk], dl mov bp, 0x7c00 mov sp, bp call ReadDisk jmp ProgramSpace %include "Kernel/Bootloader/DiskRead.asm" %include "Kernel/Utilities/Print.asm" times 510-($-$$) db 0 dw 0xaa55
SFX_Shooting_Star_Ch5: duty_cycle_pattern 3, 2, 1, 0 pitch_sweep 2, -7 square_note 4, 4, 0, 2016 square_note 4, 6, 0, 2016 square_note 4, 8, 0, 2016 square_note 8, 10, 0, 2016 square_note 8, 10, 0, 2016 square_note 8, 8, 0, 2016 square_note 8, 6, 0, 2016 square_note 8, 3, 0, 2016 square_note 15, 1, 2, 2016 ...
<% from pwnlib.shellcraft.thumb.linux import listen, dupsh%> <% from pwnlib import constants %> <% from socket import htons %> <%page args="port, network='ipv4'"/> <%docstring> bindsh(port,network) Listens on a TCP port and spawns a shell for the first to connect. Port is the TCP port to listen on, network...
; ; Metasploit Framework ; http://www.metasploit.com ; ; Source for upexec (stage) ; ; Authors: vlad902 <vlad902@gmail.com> ; Size : 396 ; sub esp,0x40 cld mov ebx,edi call 0x56 pusha mov ebp,[esp+0x24] mov eax,[ebp+0x3c] mov edi,[ebp+eax+0x78] add edi,ebp mov ecx,[edi+0x18] mov ebx,[edi+0x20] a...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: Condo viewer MODULE: main - view and text FILE: mainLink.asm AUTHOR: Jonathan Magasin, May 10, 1994 MESSAGES: MSG_CGV_GET_LINK_NAMES Return the name of the link....
;************************* strcat64.asm ************************************ ; Author: Agner Fog ; Date created: 2008-07-19 ; Last modified: 2008-10-16 ; Description: ; Faster version of the standard strcat function: ; char * strcat(char *dest, const char * src); ; Copies zero-terminated string from ...
; Copyright 2022 Andreas Herzig ; Licence: MIT LINEAR_CODE_SELECTOR equ 0x08 LINEAR_DATA_SELECTOR equ 0x10 align 4, db 0 GDT_Descriptor: dw 8 * 3 - 1 ; For limit storage dd GDT_Table ; For base storage align 4, db 0 GDT_Table: dw 0,0,0,0 ; 0x08 Code Ring 0 LINEAR_CODE_SELECTOR dw 0xffff ; Limit 0-15 dw 0x000...
bits 64 b0: vmovd xmm2, [rdx+r9] e0: section .data len: dd e0 - b0 ; Should be 6
# PRINT AN R .r load x8 0x0000 load y9 0x0000 scrn 0x0000 0xffff # load x8 0x0000 load y9 0x0001 scrn 0x0000 0xffff # load x8 0x0000 load y9 0x0002 scrn 0x0000 0xffff # load x8 0x0000 load y9 0x0003 scrn 0x0000 0xffff # load x8 0x0002 load y9 0x0003 scrn 0x0000 0xffff # load x8 0x0001 load y9 0x0000 scrn 0x0000 0xffff ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: tlBorder.asm AUTHOR: John Wedgwood, Feb 26, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Desc...
Name: ys_enmy13.asm Type: file Size: 161865 Last-Modified: '2016-05-13T04:50:37Z' SHA-1: 99804117C3293538FBFD50E94DC24F5879FDD1E1 Description: null
; ; for using the ADC ; Set up a variable voltage divider and connect ; it to pin 3 (PB1). ; connect an LED to pin 1 (PB0) ; If voltage is more than 2.5V, LED is on ; less than 2.5V, LED is off ; ; variables .DEF rsreg = r23 ; to save status register .CSEG ; code section .ORG $0000 ; the address ; interrupt vectors ...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 172 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %153 OpExecutionMode %4 Origin...
; Base game template ; This file was auto generated ; It is common to move out all of the header info ; out into another file and include it ;--------------------------- ;includes ;--------------------------- INCLUDE "constants.asm" INCLUDE "vars.asm" INCLUDE "Utils.asm" INCLUDE "player.asm" ;-----------------------...
; TITLE 'Z80 Instruction Set in alphabetical order' ; ; $Header: /cvsroot/z88dk/z88dk/src/z80asm/t/data/z80ops.asm,v 1.2 2011/07/09 17:36:09 pauloscustodio Exp $ ; $Log: z80ops.asm,v $ ; Revision 1.2 2011/07/09 17:36:09 pauloscustodio ; Copied cvs log into $Log$ history ; ; Revision 1.1 2011/07/09 01:06:38 pauloscu...
; linux/x86 cat etc/passwd ; fb1h2s[]gmail[]com ; 2010-02-12 section .text global _start _start: ;This is just a tutorial xorl %eax,%eax cdq== movl eax edx push edx pushl 0x7461632f pushl 0x6e69622f mov ebx,esp push edx ...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ; $Id: xorcircle_callee.asm $ ; ; Usage: xorcircle(int x, int y, int radius, int skip); SECTION code_graphics PUBLIC xorcircle_callee PUBLI...
SECTION code_driver SECTION code_driver_character_input PUBLIC character_00_input_bin_stdio_msg_ictl EXTERN device_reset_error character_00_input_bin_stdio_msg_ictl: ; ioctl messages understood: ; ; defc IOCTL_RESET = $0000 ; ; enter : ix = & FDSTRUCT.JP ; bc = first parameter ; ...
; ----------------------------------------------------------------------------- ; Boot and interrupt handlers. ; Martin Heermance <mheermance@gmail.com> ; ----------------------------------------------------------------------------- ; ; Aliases ; ; ; Data segments ; .data BSS .space BRKvector 3 ; holds application b...
title Listview comment '*==============================*' comment '* Programmed by Ewayne Wagner *' comment '* E-MAIL: yooper@kalamazoo.net *' comment '*==============================*' .586 .model flat, STDCALL option casemap: none ; C...
.text .align 8 .globl callMemcpy .type callMemcpy, @object callMemcpy: .Lc8: testq %rbx,%rbx je .Lcb movl 0(%r14),%eax movl %eax,0(%rbx) movl 4(%r14),%eax movl %eax,4(%rbx) movl 8(%r14),%eax movl %eax,8(%rbx) movl 12(%r14),%eax movl %eax,12(%rbx) .Lcb: jmp *(%rbp) .size callMemcpy, .-callMemcpy .section .n...
SECTION .text GLOBAL square_p256 square_p256: sub rsp, 0x60 ; last 0x30 (6) for Caller - save regs mov [ rsp + 0x30 ], rbx; saving to stack mov [ rsp + 0x38 ], rbp; saving to stack mov [ rsp + 0x40 ], r12; saving to stack mov [ rsp + 0x48 ], r13; saving to stack mov [ rsp + 0x50 ], r14; saving to stack mov [ rsp + 0x...
.386p .387 ; COPYRIGHT (c) 1997 xTech Ltd. All Rights Reserved. ; ; DLL initialization stub ifdef OS2 .model FLAT endif DGROUP group _DATA _DATA segment use32 dword public 'DATA' _DATA ends _TEXT segment us...
SECTION "Mon Icons 1", ROMX NullIcon: PoliwagIcon: INCBIN "gfx/icons/poliwag.2bpp" JigglypuffIcon: INCBIN "gfx/icons/jigglypuff.2bpp" DiglettIcon: INCBIN "gfx/icons/diglett.2bpp" PikachuIcon: INCBIN "gfx/icons/pikachu.2bpp" StaryuIcon: INCBIN "gfx/icons/staryu.2bpp" FishIcon: INCBIN "gfx...
;Example of the getpid API call. API calls found in this example program: ; getpid, getppid, exit ; High level description of what theis example program does: ; Uses the getpid API call to get it's current process ID. ; Stores this process ID number in memory (using pointer 'pid'). ; Exits gracefully with exit(). sec...
.code pal_execute_read_cr3 proc mov rax, cr3; ret; pal_execute_read_cr3 endp end
Route16HouseScript: jp EnableAutoTextBoxDrawing Route16HouseTextPointers: dw Route16HouseText1 dw Route16HouseText2 Route16HouseText1: TX_ASM CheckEvent EVENT_GOT_HM02 ld hl, HM02ExplanationText jr nz, .asm_13616 ld hl, Route16HouseText3 call PrintText lb bc, HM_02, 1 call GiveItem jr nc, .BagFull SetEve...
.include "init.asm" .include "ringbuffer.asm" alloc_ringbuffer(rb0) .text 0x00410000 #------------------------------- # empty 20(sp) # ra 16(sp) # s1 12(sp) # s0 8(sp) # a1 4(sp) # a0 0(sp) #------------------------------- main: addi $sp, $sp, -24 sw $s0, 8($sp) sw $s1, 12($...
N equ 4 .model small .stack .data vett db 34, 56, 72, 11 min db ? .code .startup mov al, vett[0] ; minimo al primo elemento del vettore mov cx, N mov di, 0 ciclo: cmp vett[di], al jnb dopo ; salta se vett[di] >= al mov al, vett[di] ; altrimenti salva dopo: inc di loop ciclo ; lo...
C arm/neon/salsa20-core-internal.asm ifelse(< Copyright (C) 2013 Niels Möller This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation...
# nasm linux-x86.nasm -o linux-x86.o -f elf && ld linux-x86.o -m elf_i386 -o linux-x86 section .data msg db "Hello World", 0xa len equ $ - msg section .text global _start _start: mov eax, 4 mov ebx, 1 mov ecx, msg mov edx, len int 0x80 mov eax, 1 mov ebx, 0 int ...
; void *zx_py2aaddr_fastcall(uchar y) SECTION code_clib SECTION code_arch PUBLIC _zx_py2aaddr_fastcall EXTERN asm_zx_py2aaddr defc _zx_py2aaddr_fastcall = asm_zx_py2aaddr
global _start %include "header.inc" xor eax, eax pushf and dword [esp], 8ffh test ebx, ebx pushf and dword [esp], 8ffh cmp ecx, 0 pushf and dword [esp], 8ffh %include "footer.inc"
; showline.asm bdos equ 5 parambegin equ 80h paramlen equ 128 org 100h call showendline ld hl, parambegin ld b, paramlen nextchar: ld a, (hl) call showreg inc hl ;djnz nextchar dec b jp nz, nextchar call showendline ld hl, parambegin ld a, (hl) nextchar2: inc hl cp...
;DEBUG EQU 0 .386 ; create 32 bit code .model flat, stdcall ; 32 bit memory model option casemap :none ; case sensitive include windows.inc include user32.inc include kernel32.inc include macros.asm include TimedMsgBox.inc ...
; Test case: define m1(param) byte param*param\ word 0 m1(1) m1(2) define m2(param) byte param*param define m3(param1, param2) byte param1*param1, param2+param2 m2(3) m3(4,5) define MacroColorBordeDestruyeA(color) ld A,color\ out [099h],A\ LD A,087h\ out [099h],A MacroColorBordeDestruyeA(15) d...
; UNROM - Crazy Climber: 128KB PRG-ROM + 8KB CHR-RAM ; http://bootgod.dyndns.org:7777/profile.php?id=3869 ; http://wiki.nesdev.com/w/index.php/INES_Mapper_180 ;------------------------------------------------------------------------------; ; In this mapper, the fixed bank is at $8000-$BFFF, as opposed to $C000-$FFFF. ...
; ; Licensed to the Apache Software Foundation (ASF) under one ; or more contributor license agreements. See the NOTICE file ; distributed with this work for additional information ; regarding copyright ownership. The ASF licenses this file ; to you under the Apache License, Version 2.0 (the ; "License"); you may not...
; Some templates for exception handler(with/without err code) %macro EXCEPTION_NOERR 1 global exception%1 exception%1: cli push byte 0 ; place holder, so that stack would look as if it's an exception with err code push %1 jmp temp_exception_handler %endmacro %macro EXCEPTION_ERR 1 global ...
.text .intel_syntax noprefix .globl __Z22matrixTransformG2_SIMDPiS_ii .p2align 4, 0x90 __Z22matrixTransformG2_SIMDPiS_ii: push rbp mov rbp, rsp # деление L / 2 mov rax, rdx shr rax, 31 add rax, rdx sar rax # rax = blockLength = L / 2 mov r9, rdx # L - кол-во рядов mov r8, rcx ...
;;; ;;; A TCP bind transport, which receives a connection from a ;;; connector that will jack it into the server console. ;;; ;;; Connect it something like this: ;;; ;;; (0) Run server at a convenient location ;;; (1) Run bind payload (will bind to configured port) ;;; (2) Run socat to connect the two services togethe...
org 100h include "emu8086.inc" .code jmp start start: ; Print input prompt to stdout mov AH, 9 mov DX, offset msg_prompt int 21h ; Print choice menu mov AH, 9 mov DX, offset choice_prompt int 21h ; Print choice_in final prompt m...
lda {m1} sec sbc {c1},x sta {m1} lda {m1}+1 sbc {c1}+1,x sta {m1}+1
; A018735: Divisors of 944. ; Submitted by Jamie Morken(s3) ; 1,2,4,8,16,59,118,236,472,944 mov $3,1 lpb $0 sub $0,1 add $2,$3 add $3,$2 cmp $2,8 mul $2,27 lpe mov $0,$3
Map_22B8EC: dc.w Frame_22B8F0-Map_22B8EC dc.w Frame_22B922-Map_22B8EC Frame_22B8F0: dc.w 8 dc.b $D0, $E, 0,$64,$FF,$E0 dc.b $E8, $F, 0,$70,$FF,$E0 dc.b 8, 9, 0,$80,$FF,$E8 dc.b $18, 2, 0,$86,$FF,$F8 dc.b $E8, 4, 0,$89, 0,$10 dc.b $F0, $D, 0,$8B, 0, 0 dc.b 0, 9, 0,$93, 0, 0 dc.b $10...
; itoa tests ; by i4k BITS 32 %macro prologue 0 push ebp mov ebp,esp %endmacro %macro prologue 1 push ebp mov ebp,esp sub esp,%1 %endmacro %macro epilogue 0 mov esp, ebp pop ebp %endmacro global _start section .text _start:...
;Factorial mvi a,5 mov b,a mov e,a loop: jz stop mov c,b dcr c dcr c subb: jz cont add e dcr c jmp subb cont: dcr b mov d,a; register containing final answer mov a,b cpi 2 jz stop mov e,d mov a,e jmp loop stop: mov a,d hlt
; Purpose: ; Set fDenyTSConnections to False [BITS 32] global _start _start: ;for the handle xor edx, edx mov edi, esp mov dword [edi], edx sub esp, 0x10 ;avoid handle being overwritten ;Prepare the key ; SYSTEM\CurrentControlSet\Control\Terminal Server push edx push 0x72657672 push 0x6553206c push 0x...
; Test that lexer/assembler can pick up indirect registers, literals ld (bc), a ld (de), a add a, (hl) ld (hl), e ld a, (de) ld a, (bc) ld e, (hl) ; literal indirect ld hl, ($20) ; TODO: test error handling
; -*- fundamental -*- (asm-mode sucks) ; $Id: memdisk.asm,v 1.22 2004/01/24 21:12:20 hpa Exp $ ; **************************************************************************** ; ; memdisk.asm ; ; A program to emulate an INT 13h disk BIOS from a "disk" in extended ; memory. ; ; Copyright (C) 2001-2003 H. Peter Anvin...
;--------------------------------------------------------------------------------------------------- ;SPACE OPERA ;A game by Samuel Horwitz (N19081895) - 2008 ;With thanks to Robert Dewar for some code. ;--------------------------------------------------------------------------------------------------- jmp s...
;; ============================================================================================ ;; ;; Copyright (C) 2002 Jeroen Janssen ;; ;; This 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 Found...
#program for loading and storing half bytes of a string .data str1: .asciiz "HI HOW ARE YOU" str2: .asciiz "I AM FINE" .text .globl main main: li $t0, 0x10010000 lhu $t1, 0($t0) lhu $t2, 2($t0) lhu $t3, 4($t0) lhu $t4, 6($t0) li $t5, 0x10020000 sh $t1, 0($t5) sh $t2, 2($t5) sh $t3, 4...
BugContestantPointers: ; there are NUM_BUG_CONTESTANTS + 1 entries dw BugContestant_YoungsterMax ; this reverts back to the player dw BugContestant_YoungsterMax dw BugContestant_BugCatcherEd dw BugContestant_CooltrainerMNick dw BugContestant_PokefanMWilliam dw BugContestant_BugCatcherBenny dw BugContestant_Campe...
// Module name: NV12_LOAD_SAVE_NV12 .kernel NV12_LOAD_SAVE_NV12 .code #include "SetupVPKernel.asm" #include "Multiple_Loop_Head.asm" #include "NV12_Load_8x4.asm" #include "PL8x4_Save_NV12.asm" #include "Multiple_Loop.asm" END_THREAD // End of Thread .end_code .end_kernel // end of nv12_load_save_nv12.as...
page ,132 title 87csqrt - C interfaces - sqrt ;*** ;87csqrt.asm - sqrt functions (8087/emulator version) ; ; Copyright (c) 1984-2001, Microsoft Corporation. All rights reserved. ; ;Purpose: ; C interfaces for the sqrt function (8087/emulator version) ; ;Revision History: ; 07-04-84 GFW initial ver...
# bitwise not # not ra,rb # ra = ~rb mov r1,#1 not r0,r1 halt
LOOP: MOV UP ACC SAV SUB 96 JGZ MAKEUP OUT: SWP MOV ACC DOWN JMP LOOP MAKEUP: SUB 26 JGZ OUT SWP SUB 32 MOV ACC DOWN JMP LOOP
; A252801: Primes whose trajectories under the map x -> A039951(x) enter the cycle {2, 1093}. ; Submitted by Jon Maiga ; 2,5,7,13,17,23,29,31,37,41,43 mov $2,2 lpb $0 mov $3,$2 lpb $3 mul $1,7 sub $1,30 add $2,1 mov $4,$1 gcd $4,$2 cmp $4,1 cmp $4,0 sub $3,$4 lpe sub $0,1 mul ...
; line: 'the pass words. Vampires keep their names' ; size in bytes: 42 line_0: db #29,#8e,#77,#71,#00,#86,#69,#8c,#8c,#00,#95,#84,#8a,#6f,#8c,#14 db #00,#5a,#69,#7f,#86,#79,#8a,#71,#8c,#00,#7c,#71,#71,#86,#00,#8e db #77,#71,#79,#8a,#00,#82,#69,#7f,#71,#8c end_line_0: ; line: 'other notes.' ; size in bytes:...
;This document is intended to show the basic formats for ;all of the instructions supported by fasmarm. ;These formats are divided into sections showing the CPU ;processor directive needed to enable the instruction. ;Opcodes are listed in alphabetical order within each ;section. A blank line separates each opcode fro...
; THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX ; SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO ; END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ; ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS ; IN USING, DIS...
// Original test: ./ullmer/hw4/problem6/jalr_0.asm // Author: ullmer // Test source code follows //tests jump and links //with small pos/neg values lbi r0, 0 jalr r0, 4 //jumps to A then B then C lbi r0, 8 //target A jalr r0, -6 //target B nop nop halt //target C
INCLUDE "hardware.inc" ;---------------------------------------------------------- ;- - ;- SINE AND COSINE LUTS - ;- - ;----------------------------------------------------...
; size_t ba_stack_capacity(ba_stack_t *s) SECTION code_adt_ba_stack PUBLIC _ba_stack_capacity EXTERN _b_array_capacity defc _ba_stack_capacity = _b_array_capacity
<% from pwnlib.shellcraft.amd64.linux import syscall %> <%page args="fd, offset, whence"/> <%docstring> Invokes the syscall lseek. See 'man 2 lseek' for more information. Arguments: fd(int): fd offset(off_t): offset whence(int): whence </%docstring> ${syscall('SYS_lseek', fd, offset, whence)}
; This hardware.inc has been modified ; For a complete version of hardware.inc, visit ; https://github.com/gbdev/hardware.inc ; ; Based on Jones' hardware.inc ; And based on Carsten Sorensen's ideas. ; _HW EQU $FF00 _VRAM EQU $8000 ; $8000->$9FFF _SCRN0 EQU $9800 ; $9800->$9BFF _SCRN1 EQU ...
; lab 5: file input / output .model TINY .code org 80h cmd_length db ? cmd_line db ? org 100h begin: jmp start_place ; ############################################## algorithms ; returns in ax count of read bytes, in cx 1 if it's the last possible reading operation read proc mov ...
BITS 64 %define x 5 %if x == 10 mov rax, 100 %elif x == 15 mov rax, 115 %elif x == 200 mov rax, 0 %else mov rax, rbx %endif
; ; ; .. X. .X XX ; .. .. .. .. ; ; .. X. .X XX ; X. X. X. X. ; ; .. X. .X XX ; .X .X .X .X ; ; .. X. .X XX ; XX XX XX XX SECTION rodata_clib PUBLIC textpixl EXTERN __fp1100_lores_graphics .textpixl defb 0, 1, 2, 3 defb 4, 5, ...
%include "macros/patch.inc" %include "macros/datatypes.inc" %include "TiberianSun.inc" gbool AutoDeployMCV, false ; Makes starting units (the MCV on some scenarios) automatically deploy on game start hack 0x005DEE42 mov edx, dword[EBP] cmp byte[AutoDeployMCV], 1 jnz .out push 15 jmp 0x005DEE47 .o...
.file "(extract)es.c" .text .globl pari_flush .type pari_flush, @function pari_flush: pushl %ebx subl $8, %esp call .L00000009 .L00000009: popl %ebx addl $_GLOBAL_OFFSET_TABLE_+1, %ebx movl pariOut@GOT(%ebx), %ecx movl (%ecx), %edx call *8(%edx) .L0000001B: addl ...
section .rdata, rdata align 16 bytemasks dd 000000ffh, 0000ffffh, 00ffffffh section .text ;============================================================================ global _vdasm_pixblt_XRGB8888_to_YUV444Planar_scan_SSE2 _vdasm_pixblt_XRGB8888_to_YUV444Planar_scan_SSE2: push edi push esi push ...
SFX_Battle_24_Ch1: duty 1 unknownsfx0x10 151 unknownsfx0x20 15, 242, 0, 7 unknownsfx0x10 8 endchannel SFX_Battle_24_Ch2: unknownnoise0x20 15, 63, 34 unknownnoise0x20 15, 242, 33 endchannel
; SER / PRT procedures section procs xdef spp_procs include 'dev8_mac_proc' spp_procs proc_stt proc_def SER_USE proc_def SER_FLOW proc_def SER_BUFF proc_def SER_ROOM proc_def SER_CDEOF proc_def SER_CLEAR proc_def SER_ABORT proc_def SER_PAUSE proc_def PRT_USE proc_def PRT_BUFF proc_def PRT_CLEAR proc...
global @ASM_strcpy@8 extern @ASM_strlen@4 extern @ASM_memcpy@12 %define ASM_strlen @ASM_strlen@4 %define ASM_memcpy @ASM_memcpy@12 segment .text align=16 %define destination ecx %define source edx %define startDest esi %define startSrc ebx %define strlenStr ecx %define strlenRet eax %define memcpyDest e...
;(Just a note) ;(The 83+ link port works very simply (the rest should be like this)) ;(Line 0 is bit 0) ;(Line 1 is bit 1) ;(It works the same for input and output) ; ; SOME VERY NICE LINK ROUTINES MADE BY PASCAL BOURON ; ; I've made some modifications so it fits ZTetris ; ; Ported to TI83 and highly optimized by Flore...
org 00h ; xrl A,#33h ; mov PSW,#18h ; mov R5,A ; end
INIT:0000000000022008 ; =============== S U B R O U T I N E ======================================= INIT:0000000000022008 INIT:0000000000022008 INIT:0000000000022008 ; __int64 __fastcall DriverEntry(_QWORD *, unsigned __int16 *) INIT:0000000000022008 DriverEntry proc near ; CODE XREF: start+19↓j INIT:...
; void *w_array_at_callee(w_array_t *a, size_t idx) SECTION code_adt_w_array PUBLIC _w_array_at_callee _w_array_at_callee: pop af pop hl pop bc push af INCLUDE "adt/w_array/z80/asm_w_array_at.asm"
//assumes spinner is running and we are preloading! /* TODO: load sound effect in here */ load('S','X',$c000) jsr exo_exo jsr m_reset load('G','G',$c000) jsr exo_exo load('H','H',$c000) jsr exo_exo load('J','J',$c000) jsr exo_exo load('B','B',$c000) jsr exo_exo //pre...
.extern _ZN10IDTManager11isr_handlerEP18InterruptRegisters .macro ISR_NOERR index .section .text .global _isr\index .type _isr\index, @function _isr\index: cli pushq $0x00 pushq $\index jmp isr_common .section .data .quad _isr\index .endm .macro ISR_ERR index ...
; minimal monitor for EhBASIC and 6502 simulator V1.05 ; Modified to support the Replica 1 by Jeff Tranter <tranter@pobox.com> ; To run EhBASIC on the simulator load and assemble [F7] this file, start the simulator ; running [F6] then start the code with the RESET [CTRL][SHIFT]R. Just selecting RUN ; will do nothing,...
SECTION code_user PUBLIC _fix_command_line EXTERN _PATH _fix_command_line: ld de,_PATH ld a,h or l jr z, terminate loop: ld a,(hl) or a jr z, terminate cp ':' jr z, terminate cp 0x0d jr z, terminate ldi jr loop terminate: xor a ld (de),a ld hl,_...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_SF|FLAG_ZF|FLAG_AF|FLAG_PF ;TEST_FILE_META_END ; IMUL8r mov al, 0x10 mov cl, 0xe ;TEST_BEGIN_RECORDING imul cl ;TEST_END_RECORDING
gdtstart: ; don't remove the labels, they're needed to compute sizes and jumps ; the GDT starts with a null 8-byte dd 0x0 ; 4 byte dd 0x0 ; 4 byte gdtcode: dw 0xffff dw 0x0 db 0x0 db 10011010b db 11001111b db 0x0 gdtdata: dw 0xffff dw 0x0 db 0x0 db 10010010b ...
* Spreadsheet 02/03-92 * - size menu pulldown routine * section prog include win1_keys_wwork include win1_keys_wstatus include win1_keys_wman include win1_keys_qdos_pt include win1_keys_err include win1_keys_k include win1_mac_oli include win1_spread_keys xdef siz_puld,mea_s...
; EXAMPLE SAVE AND LOAD ; BLOCKS WITHOUT HEADERS ORG 50000 LD A,2 ; upper screen CALL 5633 ; open channel LD IX,TAPE_TXT1 CALL PRINT_STRING CALL WAIT_KEY CALL FILL_SCREEN CALL SAVE_SCREEN CALL CLEAR_SCREEN LD IX,TAPE_TXT2 CALL P...
TITLE PARSE - Parsing system calls for MS-DOS NAME PARSE ; System calls for parsing command lines ; ; $PARSE_FILE_DESCRIPTOR ; ; Modification history: ; ; Created: ARR 30 March 1983 ; EE PathParse 10 Sept 1983 ; .xlist .xcref include version.inc include dosseg.inc IN...
/* * I2C Master Module * * org: 6/22/2014 * auth: Nels "Chip" Pearson * * Target: I2C Demo Board w/ display and keypad I/O, 20MHz * * Usage: * .include i2c_master.asm * */ /* * Calculate CKSUM * * CKSUM = (CKSUM ^ Data) ROL 1 * * input: X reg -> Data buffer * R18: Number of bytes * output: R17:...