content
stringlengths
23
1.05M
EasyMoveMng_Clear: lea rcx, [easyMoveMng] xor eax, eax mov qword[rcx+EasyMoveMng.pv+4*0], rax mov qword[rcx+EasyMoveMng.pv+4*2], rax mov qword[rcx+EasyMoveMng.expectedPosKey], rax mov dword[rcx+EasyMoveMng.stableCnt], eax ret EasyMoveMng_Get: ; in: rcx key xor eax, eax cmp rcx, qwor...
;; Hardware text scroller ;; Scrolls text from right to left ;; ;; Code by Kev Thacker ;; ;; Released under the GNU Public License v1 org &2000 nolist .screen_wide equ 80 ;no of characters wide*2 .screen_location equ &3000 ;address to send to CRTC6845 scre...
dispatch_elf_sections: ; 0x10000 is where files are loaded mov ebx, dword 0x10000 ; load phnum (number of program headers) mov cx, [ebx + 0x2c] ; update the si to point at the first program header add ebx, [ebx + 0x1c] .load_program_headers: push cx ; offset zero containts the program header's type c...
song350restored_pri equ 100 song350restored_rev equ 0 song350restored_mvl equ 127 song350restored_key equ 0 song350restored_tbs equ 1 song350restored_exg equ 0 song350restored_cmp equ 1 .align 4 ;**************** Track 1 (Midi-Chn.7) ****************; @song350restored_1: .byte KEYSH , song350restored_key+...
; This work is licensed under the Creative Commons Attribution 3.0 Unported License. ; To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ ; or send a letter to ; Creative Commons, ; 171 Second Street, ; Suite 300, ; San Francisco, ; California, ; 94105, ; USA. #include "P1...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MACROS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;...
; float fabs(float x) __z88dk_fastcall SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdccix_fabs_fastcall EXTERN cm48_sdccixp_dx2m48, am48_fabs, cm48_sdccixp_m482d cm48_sdccix_fabs_fastcall: call cm48_sdccixp_dx2m48 call am48_fabs jp cm48_sdccixp_m482d
; ; VGM chips support ; INCLUDE "Chip.asm" INCLUDE "SN76489.asm" INCLUDE "YM2413.asm" INCLUDE "YM2612.asm" INCLUDE "YM2151.asm" INCLUDE "SegaPCM.asm" INCLUDE "RF5C68.asm" INCLUDE "YM2203.asm" INCLUDE "YM2608.asm" INCLUDE "YM2610.asm" INCLUDE "YM3812.asm" INCLUDE "YM3526.asm" INCLUDE "Y8950.asm" INCLUDE "Y...
.import source "64spec.asm" .eval config_64spec("print_immediate_result", false) sfspec: :init_spec() :describe("assert_a_equal") :it("works for all values of A register");{ .var a = floor(random()*256) .print "a = " + a + " in assert_a_equal_works_for_all_values_of_a test" .for (var expected = 0;exp...
sub $v0, $v0, $v0 addi $v0, $v0, 5 sll $v0, $v0, 5 srl $v0, $v0, 5 sll $v0, $v0, 29 sra $v0, $v0, 29
PUBLIC txtgetwindow ; fastcall .txtgetwindow push hl call 0xB830 pop ix ld (ix), h ld (ix + 1), l ld (ix + 2), d ld (ix + 3), e ld (ix + 4), 0 ret c ld (ix + 4), 1 ret
OPTION1 PROC ;use al and call appropriate proc PUSH DX PUSH AX START: LEA DX,INPUT_MSG MOV AH,9 INT 21H LEA DI,STRING CALL INPUT LEA SI,STRING MOV AH , 9 LEA DX,BUBBLE_OPTION INT 21H LEA DX,SELECTION_OPTION INT 21H LEA DX,INSERTION_OPTION INT 21H LEA DX,GNUM_OPT...
# Uses 3 bits from the global cycle count to return # nonzero values from -96 to 96, saves $ra, uses $t0 # (in fp16_t, this corresponds to -1.5 to 1.5) rng: lw $v0, counter_addr($0) andi $t0, $v0, 0x1 andi $v0, 0x6 # (rand() & 0b110) << 4 bne $v0, $0, skip_make_nonzero ...
# Args test # Status: passed (var foo 'bar) (error "This will fail." 'test2) # Expected an error msg at line 7.
BillsHouseScript: call BillsHouseScript_1e09e call EnableAutoTextBoxDrawing ld a, [wBillsHouseCurScript] ld hl, BillsHouseScriptPointers call JumpTable ret BillsHouseScriptPointers: dw BillsHouseScript0 dw BillsHouseScript1 dw BillsHouseScript2 dw BillsHouseScript3 dw BillsHouseScript4 dw BillsHouseScript5...
setrepeat 2 frame 0, 08 frame 3, 08 dorepeat 1 setrepeat 2 frame 0, 08 frame 1, 08 frame 2, 12 frame 1, 08 dorepeat 5 endanim
TITLE CNINIT.ASM - Console I/O Initialization/Termination module ;*** ;CNINIT.ASM - Console I/O initialization/termination module ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; This module contains screen and keyboard initialization and termination ; support for the BASIC 3.0 runtime. This module will o...
lui $1,19434 ori $1,$1,52351 lui $2,30183 ori $2,$2,59896 lui $3,19807 ori $3,$3,4024 lui $4,13766 ori $4,$4,52118 lui $5,8799 ori $5,$5,31074 lui $6,26965 ori $6,$6,11913 mthi $1 mtlo $2 sec0: nop nop nop subu $5,$6,$2 sec1: nop nop nor $2,$6,$1 subu $3,$6,$2 sec2: nop nop sltiu $2,$4,4681 subu $3,$6,$2 se...
; int tape_save_block(void *addr, size_t len, unsigned char type) ; CALLER linkage for function pointers PUBLIC tape_save_block PUBLIC _tape_save_block EXTERN tape_save_block_callee EXTERN ASMDISP_TAPE_SAVE_BLOCK_CALLEE .tape_save_block ._tape_save_block pop ix pop bc pop de pop hl push hl push de...
.psx .create "output.bin", 0 .region 20h .word 1,2,3,4 .endregion .defineregion 80h,20h .autoregion .notice "Allocated A at " + tohex(.) .word 5,6 .endautoregion .autoregion 60h,100h .notice "Allocated B at " + tohex(.) .word 80h,81h .endautoregion .autoregion 0h,30h .notice "Allocated C at " + tohex(.) .word 9,1...
; void *wv_priority_queue_top(wv_priority_queue_t *q) SECTION code_clib SECTION code_adt_wv_priority_queue PUBLIC wv_priority_queue_top EXTERN asm_wv_priority_queue_top defc wv_priority_queue_top = asm_wv_priority_queue_top
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0 TITLE C:\Users\cex123\Desktop\FYP\develop\spartan\source\Kernel\Monitor\SysCall.c .686P .XMM include listing.inc .model flat INCLUDELIB OLDNAMES EXTRN _int386:PROC PUBLIC _DoSysCall PUBLIC _SysCall PUBLIC _EnableSysCall...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Epson late model 24-pin print drivers FILE: graphicsPrintSwath360.asm AUTHOR: Dave Durran 1 March 1990 ROUTINES: Name Description ...
[bits 64] vcvtph2ps ymm1, xmm2 ; c4 e2 7d 13 ca vcvtph2ps ymm1, oword [0] ; c4 e2 7d 13 0c 25 00 00 00 00 vcvtph2ps xmm1, xmm2 ; c4 e2 79 13 ca vcvtph2ps xmm1, qword [0] ; c4 e2 79 13 0c 25 00 00 00 00 vcvtps2ph xmm1, ymm2, 4 ; c4 e3 7d 1d d1 04 vcvtps2ph oword [0], ymm2, 8 ; c4 e3 7d 1d 14 25 00 00 00 00 08 vcvtps...
%ifdef CONFIG { "RegData": { "MM0": ["0x8000000000000000", "0x4007"], "MM1": ["0x8000000000000000", "0x4006"], "MM2": ["0x8000000000000000", "0x4005"], "MM3": ["0x8000000000000000", "0x4004"], "MM4": ["0x8000000000000000", "0x4003"], "MM5": ["0x8000000000000000", "0x4002"], "MM6": [...
/* * This test calculates a few Fibonacci sequence members * end compares them to pre-calculated values. */ lc r100, 0x10000000 // test result output pointer lc r101, halt // Calculate Fibonacci sequence members mov r16, 0 // current member mov r17, 1 // next member lc r18, 0 // counter lc r19, 0x00008000 /...
.data input_text: .asciiz "\nInsira um valor de n (-1 para sair): " ans_text: .asciiz "\nMedia: " estouro_text: .asciiz "\nSoma parcial maior que 2048. Realizando a media com valores anteriores\n" .text # Vinicius Gasparini .globl main main: li $t0, 0 # contador li $s0,-1 # condicao de parada 1 li ...
; All the unit events ; Inputs: ; A = event type ; IY = pointer to unit stract UnitAttack1: UnitAttack2: UnitAttack3: UnitAttack4: UnitAttack5: UnitAttack6: UnitAttack7: UnitAttack8: UnitDie1: UnitDie2: UnitWalk11: UnitWalk12: UnitWalk13: UnitWalk21: UnitWalk22: UnitWalk23: UnitWalk31: UnitWalk32: UnitWalk33: Uni...
; toggle loose item through a list include win1_mac_oli include win1_keys_wwork include win1_keys_wman section utility xdef xwm_tggl ;+++ ; toggle loose item through a list ; ; Entry Exit ; a0 toggle list stucture ...
ldi c0, 1 # 0 shlci c1, c0, 31 # 1 mulci c2, c1, 4 # 2 mulc c0, c2, c1 # 3 bit s658 # 4 bit s643 # 5 jmpnz r42, 1 restart bit s632 # 6 bit s622 # 7 bit s602 # 8 bit s586 # 9 crash
; size_t p_queue_size(p_queue_t *q) SECTION code_clib SECTION code_adt_p_queue PUBLIC _p_queue_size EXTERN _p_forward_list_size defc _p_queue_size = _p_forward_list_size
; ****************************************************************************** ; ****************************************************************************** ; ; Name : cli.asm ; Purpose : Command Line Interpreter ; Author : Paul Robson (paul@robsons.org.uk) ; Created : 10th October 2019 ; ; **************...
.code pal_execute_rdmsr proc ; The argument to pass to rdmsr via ecx is already ; there, since it is the first integer passed here. rdmsr; ; The result is stored in edx:eax, so get it into rax ; and return. shl rdx, 032; or rax, rdx; ret; pal_execute_rdmsr endp end
Name: zel_msge2.asm Type: file Size: 198270 Last-Modified: '2016-05-13T04:20:48Z' SHA-1: A26787B953683A5BAE06200D1DB8A99272DD74AD Description: null
; Zed8E FORTH - A direct threaded FORTH for the Z-80 ; ; The "main" entry point of FORTH ; start_up: ; Set up system variables. ; See ram_defs.asm for details. ; Note: the SP is initialized in low_page.asm ld pnext,next ; pnext always points to next. ld rsp,init_rs ; Set up the FORTH re...
global find_missing section .text ; <--- int find_missing(const int *nums, size_t n) ---> find_missing: ; check arguments test rdi, rdi je .error_exit ; error: null pointer argument cmp rsi, 2 jb .error_exit ; error: less than 2 elements cmp rsi, 0x7FFFFFFF ja .error_exit...
; ; ANSI Video handling for Sharp OZ family ; ; Scrollup ; ; Stefano Bodrato - Nov. 2002 ; ; $Id: f_ansi_scrollup.asm,v 1.5 2015/01/19 01:33:18 pauloscustodio Exp $ ; PUBLIC ansi_SCROLLUP EXTERN base_graphics EXTERN swapgfxbk EXTERN swapgfxbk1 .ansi_SCROLLUP call swapgfxbk ld hl,(ba...
## This file implements the functions that control the enemy .include "enemy_struct.asm" .include "convenience.asm" .globl draw_enemy .globl enemy_update .globl enemy_spawn .globl detect_collision .data collide: .asciiz "collision detected\n" one: .asciiz "made it past first branch\n" two: .asciiz "made it past se...
; examples of some fun with individual bits ; (at this moment only one `nibrrca` doing rrca-like rotate, but over two nibbles in register A) MODULE bit_fun nibrrca_z80n: ; ZX Next variant using Z80N TEST * instruction ; 7654'3210 -> 4765'0321 (bits 7654 and 3210 do RRCA-like rotation independently) ...
map_header Route1, ROUTE_1, OVERWORLD, NORTH | SOUTH connection north, ViridianCity, VIRIDIAN_CITY, -5 connection south, PalletTown, PALLET_TOWN, 0 end_map_header
PewterNidoranHouse_Object: db $a ; border block def_warps warp 2, 7, 3, LAST_MAP warp 3, 7, 3, LAST_MAP def_signs def_objects object SPRITE_MONSTER, 4, 5, STAY, LEFT, 1 ; person object SPRITE_LITTLE_BOY, 3, 5, STAY, RIGHT, 2 ; person object SPRITE_MIDDLE_AGED_MAN, 1, 2, STAY, NONE, 3 ; person def_warp...
; QL Arithmetic Multiply/Divide V2.02  1990 Tony Tebby QJUMP ; ; 2006-12-18 2.02 Fixed denormalised value on divide (MK) section qa xdef qa_mul xdef qa_muld xdef qa_square xdef qa_div xdef qa_divd xdef qa_recip xref qa_push1 xref qa_swap include 'dev8_keys_err' ;+++ ; QL Arithmetic: DIV by D1/D2...
nolist org &4000 write direct "a:CS.bin" .PlayerFrameList defw PlayerSprite0 ; &255 defw PlayerSprite1 ; &22d defw PlayerSprite2 ; &1f9 defw PlayerSprite3 ; &1dd defw PlayerSprite4 ; &1e1 defw PlayerSprite5 ; &20d defw PlayerSprite6 ; &22f defw PlayerSprite4 ; dummy entry .PlayerFrameG...
; Ellipse Workstation 1100 (fictitious computer) ; ROM code (initial boot) ; ; Copyright (c) 2020 Sampo Hippeläinen (hisahi) ; ; 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...
; PIC16F628A Configuration Bit Settings ; Assembly source line config statements #include "p16f628a.inc" ; CONFIG ; __config 0xFF18 __CONFIG _FOSC_INTOSCIO & _WDTE_OFF & _PWRTE_OFF & _MCLRE_OFF & _BOREN_OFF & _LVP_OFF & _CPD_OFF & _CP_OFF ; ;========================================================================...
PAUTA_1: DB $20+11,0,10,0,9,0,9,0,8,0,8,0,129 PAUTA_2: DB 8,0,74,0,11,0,43,0,10,0,72,1,8,-1,40,1,8,-1,132 PAUTA_3: DB 4,0,71,0,8,0,40,0,8,0,70,0,5,1,37,-1,5,1,69,-1,132 PAUTA_4: DB $40+9,0,11,0,11,0,10,0,9,0,8,0,7,-1,7,0,7,1,7,1,7,0,7,-1,128+6 PAUTA_5: DB $40+7,1,7,-1,6,1,6,-1,5,1,5,0,5,-1,5,-1,5,0,5,1,128+6 PAUTA...
ORG 0000H MOV R0,#0FFH MOV R1,#00H MOV R2,#00H CLR C MOV R5,#08H N:MOV A,R0 RLC A MOV R0,A JC ONE MOV R3,#00H SJMP SKIP ONE:MOV R3,#01H SKIP:CLR C MOV A,R1 RLC A ORL A,R3 MOV R1,A JC TWO MOV R3,#00H SJMP SKIP1 TWO:MOV R3,#01H SKIP1:CLR C MOV A,R2 RLC A ORL A,R3 MOV R2,A CLR C CJNE R5,#01H,NO...
ori $ra,$ra,0xf lb $2,1($0) mflo $6 addiu $4,$4,10071 divu $4,$ra sb $6,10($0) mfhi $5 mtlo $6 addu $6,$4,$5 mflo $3 multu $2,$4 div $1,$ra sll $5,$5,16 lb $1,7($0) divu $2,$ra sb $2,13($0) addiu $3,$2,-27735 srav $2,$1,$2 addu $3,$4,$3 multu $6,$2 srav $1,$4,$3 div $2,$ra mflo $5 mult $5,$1 ori $2,$2,63981 sll $1,$4,5...
; int b_vector_at(b_vector_t *v, size_t idx) SECTION code_adt_b_vector PUBLIC b_vector_at_callee EXTERN b_array_at_callee defc b_vector_at_callee = b_array_at_callee INCLUDE "adt/b_vector/z80/asm_b_vector_at.asm"
;; different with Linux which saves each argv in stack, windows save all ;; of its command line arguments as local allocated memory so we have to ;; parse each of its token manually. format PE64 console entry start include 'win64w.inc' section '.data' data readable writeable stdout dq ? argptr dq ? banner db '<l...
; A144481: A078371(n-1) mod 9. ; 5,3,0,5,0,3,5,6,6,5,3,0,5,0,3,5,6,6,5,3,0,5,0,3,5,6,6,5,3,0,5,0,3,5,6,6 seq $0,73577 ; a(n) = 4*n^2 + 4*n - 1. mod $0,9 sub $0,2
;--------------------------------------------------------- ; ; LZ4 block 68k small depacker ; Written by Arnaud Carré ( @leonard_coder ) ; https://github.com/arnaud-carre/lz4-68k ; ; LZ4 technology by Yann Collet ( https://lz4.github.io/lz4/ ) ; ;--------------------------------------------------------- ; Smallest ver...
; ----------------------------------------------------------------------------- ; ZX0 decoder by Einar Saukas ; "Standard" version (69 bytes only) ; Modified by Maxim (20210817) to support decompressing to SMS VRAM ; - Inlining the ldir replacements may save a few cycles ; ----------------------------------------------...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ;;; ;;; Copyright (c) Microsoft Corporation. All rights reserved. ;;; ;;; This file contains ARM-specific assembly code. ;;; ; arith.s ; ; Copyright (C) Advanced RISC Mach...
%include "defs.asm" ;************************** strlen64.asm ********************************** ; Author: Agner Fog ; Date created: 2008-07-19 ; Last modified: 2008-10-16 ; Description: ; Faster version of the standard strlen function: ; size_t strlen(const char * str); ; Finds the length of ...
section .data scan: db "%lf", 0 print: db "%lf", 10, 0 section .bss inp resb 8 section .text global main extern printf extern scanf main: push inp push scan call scanf finit fld qword [inp] ;st(0) = x fld qword [inp] ;st(0) = x | st(1) = x fmulp ;st(0) = x^2 fld1 ;s...
.device ATmega328 .org 0x00 ; Program starts at 0x00 rjmp INICIO ; Naive multiplication INICIO: nop ldi R16,low(RAMEND) out spl,R16 ldi R16,high(RAMEND) out sph,R16 ldi R16,0x08 ldi R17,0x02 rcall MULT LOOP: jmp LOOP MULT: mov R18,R16 MLOOP: add...
# Display.asm # This file implements the Display functions. .globl Display .data tempBox: .space 20 # This is a temp box for drawing .text # Box Struct #################################### # Object Structure # 0-4 The x position # 4-8 The y position # 8-12 The width of the box # 12-16 The height of the bo...
;=============================================================================== ; Copyright 2014-2019 Intel Corporation ; All Rights Reserved. ; ; If this software was obtained under the Intel Simplified Software License, ; the following terms apply: ; ; The source code, information and material ("Material") co...
[bits 32] [section .text] SYSCALL_INT EQU 0x40 ; 0个参数 global __syscall0 __syscall0: mov eax, [esp + 4] ; eax = syscall num int SYSCALL_INT ret ; 1个参数 global __syscall1 __syscall1: push ebx mov eax, [esp + 4 + 4] ; eax = syscall num mov ebx, [esp + 4 + 8] ; ebx = arg0 int SYSCALL_INT pop eb...
; ; Implementation of RulesClass::Process in ASM to allow additional section loading. ; ; Author: CCHyper (13.01.2020) ; %include "macros/patch.inc" %include "macros/datatypes.inc" %include "macros/string.inc" %include "TiberianSun.inc" sstring str_INI_Weapons, "Weapons" %define INIClass_EntryCount 0x004DC6A0 %defin...
; FV-1 Testing Bank A ; ; Check behaviour of FV-1 against documentation ; ; Program 7 : Delay Init Val ; ; Expected output: 0.0 mem delay 1 clr rda delay,1.0 ; read from empty delay wrax DACL,0.0
; ; Copyright (C) 2021 by Intel Corporation ; ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted. ; ; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH ; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHA...
segment .data scfmt: dq "%lld",0 prfmt: dq "*",10 spfmt: dq " ",10 prr: dq "",10 , 0 fmt: dq "%lld",10 segment .bss proc_con: resq 1 main_con: resq 1 parameter: resq 1 cnt: resq 1 print_con: resq 1 segment .text global main extern scanf extern printf main: push RBP xor rax , rax mov rdi , scfmt mov ...
; Object Mappings Subtype Frame Arttile dbglistobj Obj_Ring, Map_Ring, 0, 0, make_art_tile(ArtTile_Ring,1,1) dbglistobj Obj_Monitor, Map_Monitor, 9, 0, make_art_tile(ArtTile_Monitors,0,0) dbglistobj Obj_PathSwap, Map_PathSwap, 9, 1, make_art_tile(ArtTile_Ring,1,0) dbglistobj Obj_...
; ; simple routines for drawing a status line during early boot. ; %define module vga %include "api.macro" %include "io.macro" %define VGA_SCREEN_BUFFER 0xb8000 %define VGA_BOTTOM_LINE (VGA_SCREEN_BUFFER + (2 * 80 * 24)) %define VGA_REGISTER_A (VGA_BOTTOM_LINE + (62 * 2)) %define VG...
lbu $3,15($0) subu $3,$4,$3 slti $6,$3,22413 sllv $6,$2,$3 srav $4,$0,$3 ori $3,$3,29131 and $1,$3,$3 addiu $3,$3,23286 lw $4,0($0) xori $3,$3,62860 slti $5,$1,-14026 lh $0,14($0) xor $3,$3,$3 addu $4,$5,$3 srav $1,$3,$3 lhu $4,16($0) sra $5,$1,17 sltu $3,$3,$3 srlv $3,$3,$3 lw $3,16($0) slt $4,$0,$3 slti $4,$5,-18192 ...
.model small .stack 18 .data pa equ 0e880h pb equ 0e881h pc equ 0e882h ctrl equ 0e883h .code mov ax,@data mov ds,ax mov al,8ah mov dx,ctrl out dx,al mov dx,pb in al,dx mov bl,al mov dx,pc in al,dx mov cl,04h ror al,cl mul bl mov dx,pa out dx,al mov ah,4ch in...
INCLUDE "hardware.inc" INCLUDE "SoundSystem.inc" INCLUDE "SoundSystemNotes.inc" ;============================================================== ; Audio IDs ;============================================================== RSSET 0 SONG_S11 RB 1 SONG_PLANETFUZZ RB 1 SONG_LDMKILLER RB 1 SONG_BOB RB 1 SONG_CER...
<% from pwnlib.shellcraft import pretty, common, registers from pwnlib.shellcraft.amd64 import mov, pushstr, setregs from pwnlib import constants %> <%docstring> Calculate the length of the specified string. Arguments: string(str): Register or address with the string reg(str): Named register to return the valu...
include w2.inc include noxport.inc include consts.inc include structs.inc createSeg disp2_PCODE,disp2,byte,public,CODE ; DEBUGGING DECLARATIONS ifdef DEBUG midDisp2n equ 19 ; module ID, for native asserts NatPause equ 1 endif ifdef NatPause PAUSE MACRO int 3 ENDM else PAUSE MACRO...
;; ; ; Name: single_exec ; Platforms: Linux ; Authors: vlad902 <vlad902 [at] gmail.com> ; Version: $Revision: 1466 $ ; License: ; ; This file is part of the Metasploit Exploit Framework ; and is subject to the same licenses and copyrights as ; the rest of this package. ; ; Desc...
bits 16 org 100h section .text start: ;; set as text mode mov ax, 0003h int 10h ;call testGenerateRandomNumber call drawBoard call populateBoard ;; exit mov ah, 4ch mov al, 0 int 21h %include "powerkit/powerkit.inc" %include "board.inc" section .data windowWidth equ 80 windowHeight equ 25 board...
#include "Platform.inc" #include "FarCalls.inc" #include "Lcd.inc" #include "../AdcMocks.inc" #include "TestFixture.inc" radix decimal DisableAdcTest code global testArrange testArrange: fcall initialiseAdcMocks fcall initialiseLcd fcall enableLcd waitUntilLcdIsEnabled: fcall pollLcd fcall isLcdEnabled...
format PE64 console include 'win64wx.inc' include 'equates\wsock32.inc' INVALID_SOCKET = -1 .data stdout dq ? failc db 'failed code: ', 0h .code main: fastcall setStdout ;; the additional 8 is needed to align the 16-bit boundary ;; with the 8 bit of ret address already pushed and the size of ;; ...
; ; Just enter BASIC at the "Hardcopy" line ; ; Stefano - 12/7/2006 ; ; void zx_hardcopy() ; ; $Id: zx_hardcopy.asm,v 1.3 2007/06/28 20:16:20 stefano Exp $ XLIB zx_hardcopy LIB zx_goto .zx_hardcopy ld hl,7800 ; BASIC routine for "hardcopy" jp zx_goto
; ; Plot pixel at (x,y) coordinate. SECTION code_clib PUBLIC w_plotpixel_MODE8 defc NEEDplot = 1 .w_plotpixel_MODE8 INCLUDE "pixel_MODE8.inc"
INCLUDE "data/map_songs.asm" INCLUDE "data/map_header_pointers.asm" INCLUDE "data/map_header_banks.asm" INCLUDE "engine/pikachu_follow.asm" INCLUDE "engine/pikachu_status.asm" INCLUDE "engine/pikachu_emotions.asm" INCLUDE "engine/pikachu_movement.asm" INCLUDE "engine/pikachu_pic_animation.asm" Func_fe66e: ;how useless...
;--------------------------------------- ; loadspr - loading sprite resource ;--------------------------------------- loadSprites xor a ld a,c ; TODO: если значение получилось больше #40, то включить следующую банку! sla a sla a sla a ld (addAddr+2),a ex de,hl ld a,(hl) cp #00 jp z...
db "SHED@" ; species name db "A strange #MON-" next "it flies without" next "moving its wings," page "has a hollow shell" next "for a body, and" next "does not breathe.@"
;; xOS32 ;; Copyright (C) 2016-2017 by Omar Mohammad. use32 ; spinlock_aqcuire: ; Aqcuires the spinlock ; In\ EAX = Address of spinlock byte ; Out\ Nothing spinlock_aqcuire: bt byte[eax], 0 ; if the spinlock is already aqcuired -- jc spinlock_acquire ; -- wait for it to be released lock bts byte[eax], 0 jc s...
.globl main .type main, @function main: pushq %rbp movq %rsp, %rbp movq $0, %rax popq %rbp ret
; Program to add two numbers without carry, uses memory address for A& variable ; You can use the BASIC loader below to POKE it into memory, and RUN it ; Compare assembled program to BASIC loader values ; Program from Pocket Computer Newsletter, Machine Language Programming, 1983 ; ; 10:POKE &78C0,&B5,&03,&AE,&78,&D0,...
default rel %include "reg_sizes.asm" %define DECOMP_OK 0 %define END_INPUT 1 %define OUT_OVERFLOW 2 %define INVALID_BLOCK -1 %define INVALID_SYMBOL -2 %define INVALID_LOOKBACK -3 %define ISAL_DECODE_LONG_BITS 12 %define ISAL_DECODE_SHORT_BITS 10 %define MAX_LONG_CODE_LARGE (288 + (1 << (15 - ISAL_DECODE_LONG_BITS))...
; ; Z88 Graphics Functions ; ; Written around the Interlogic Standard Library ; ; $Id: getmaxy.asm $ ; INCLUDE "graphics/grafix.inc" SECTION code_graphics PUBLIC getmaxy PUBLIC _getmaxy PUBLIC _gsx_maxy PUB...
<% from pwnlib.util import lists, packing, fiddling %> <% from pwnlib.shellcraft.aarch64 import mov %> <%page args="string, append_null = True, register='r12'"/> <%docstring> Pushes a string onto the stack. r12 is defined as the inter-procedural scratch register ($ip), so this should not interfere with most usage. Ar...
;,; lyrics_wetrytosave .withinpagefrom=lyrics ;,; <- lyrics !byte $26,$01 ; WE !byte $19,$1d,$20,$2a,$21 ; TRY !byte $19,$1d,$26 ; TO !byte $24,$23,$21,$26 ; SAVE !byte $19,$1b,$61 ; PEO !byte $19,$1b,$20,$47 ; PLE !byte $24,$26,$30,$78 ; FROM !byte $b1 ; (M)I !byte $34,$a3 ; SE !byte $30,$...
global _start section .text _start: jmp short call_abc abc: pop rdi ; load own address sub rdi,46 ; jump over egghunter code to avoid finding tag for searching mov rax,0x8899AABBCCDDEEFF ; load tag 0xAABBCCDD xor rcx,rcx mov cx...
extern m7_ippsMD5Update:function extern n8_ippsMD5Update:function extern y8_ippsMD5Update:function extern e9_ippsMD5Update:function extern l9_ippsMD5Update:function extern n0_ippsMD5Update:function extern k0_ippsMD5Update:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: preflang FILE: preflang.asm AUTHOR: Paul Canavese, Jan 23, 1995 ROUTINES: Name Description ---- ----------- PrefLangGetPrefUITree Return ...
SECTION code_driver SECTION code_driver_terminal_output PUBLIC zx_01_output_char_32_tty_z88dk_22_at zx_01_output_char_32_tty_z88dk_22_at: ; at x,y ; de = parameters * do_y: ld a,(de) ; biased y coord inc de inc a jr z, do_x ; skip if -1 dec a dec...
clr r0 clr r1 jz r1 6 rset r1 6 cpy r0 r1 j 8 rset r1 7 cpy r0 r1
.data x: .word 3 #armazenando o valor de "x". x = 3 y: .word 0 #armazenando o valor de "y". y = 0 .text lw $t1, x #carregar o valor de "x" para "t1" mul $t1,$t1,1025 #t1 *= 1025 sw $t1, y #armazenando o valor de "t1" em "y"
; $Id: bs3-cmn-RegCtxRestore.asm 72133 2018-05-06 23:55:06Z vboxsync $ ;; @file ; BS3Kit - Bs3RegCtxRestore. ; ; ; Copyright (C) 2007-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 can redistribute ...
INCLUDE "config_private.inc" SECTION data_driver PUBLIC sioaTxCount, sioaTxIn, sioaTxOut, sioaTxLock sioaTxCount: defb 0 ; Space for Tx Buffer Management sioaTxIn: defw sioaTxBuffer ; pointer to buffer sioaTxOut: defw sioaTxBuffer ; pointer to buffer sioaTxLock: defb 0...
.equ MAILBOX_BASE, 0x2000B880 .equ MAILBOX_STATUS, #(MAILBOX_BASE + 0x18) .equ MAILBOX_WRITE, #(MAILBOX_BASE + 0x20) .equ FRAMEBUFFER, #1 .equ FULL, 0x80000000 .equ EMPTY, 0x40000000 .equ LEVEL, 0x40000000 .text globl _start _start: ldr r0, =MAILBOX_WRITE bl write_mailbox block_until_mailbox_writable: push {r0...
_Route18BattleText1:: text "I always check" line "every grassy area" cont "for new #MON." done _Route18EndBattleText1:: text "Tch!" prompt _Route18AfterBattleText1:: text "I wish I had a" line "BIKE!" done _Route18BattleText2:: text "Kurukkoo!" line "How do you like" cont "my bird call?" done _Route18E...
; colib yield for windows x86 __cdecl ; MASM assembly .386 .MODEL FLAT,C .CODE ; unused co_entry_asm PROC ret co_entry_asm ENDP ; void yield_( co_thread_t * thread ) ; thread pushed on stack ; co_yield_asm PROC ; pop thread object into eax mov eax, [esp+4] ; push callee save reg...
; BRK interrupt test ; ; Expected Value: $FF = $44 JMP start ; Keep ISR at a fixed address when we change the program ISR: ; $0603 DEC $FF RTI start: ; Setup interrupt vector LDA #$03 STA $FFFE LDA #$06 STA $FFFF LDA #$45 STA $FF ; -1 BRK NOP INC $FF BRK NOP ; Check if carry is preserved across interrupt LDA #$...
INCLUDE Irvine32.inc ; group no : 25 ; student 1 least two no : 45 .data consoleHandle DWORD ? xyInit COORD <46,22> ; 起始座標 xyBound COORD <80,25> ; 一個頁面最大的邊界 xyPos COORD <?,?> ; 現在的游標位置 main EQU start@0 .code main PROC ; Get the Console standard output handle: INVOKE GetStdHandle, STD_OUTPUT_HAND...