content
stringlengths
23
1.05M
; 6502 - Tilemap ; ; Copyright (c) 2021 Troy Schrapel ; ; This code is licensed under the MIT license ; ; https://github.com/visrealm/hbc-56 ; ; ; Tilemap structure ; --------------------- ; BufferAddressH (Page-aligned buffer - MSB) ; Size ; TilesetAddressH (Page-aligned tilset - MSB) ; InvertAddressH (Page-align...
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ;=========================================================================== ; ; FILE: .ASM ; ;===============================================...
; This file is a part of the IncludeOS unikernel - www.includeos.org ; ; Copyright 2015 Oslo and Akershus University College of Applied Sciences ; and Alfred Bratterud ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain ...
# Variaveis associadas aos registradores: # endBase -> $16 # i -> $17 # soma -> $18 .text .globl main main: addi $8, $0, 0x1001 # t0 = 0x00001001 sll $16, $8, 0x10 # endBase = 0x10010000 addi $10, $0, 0x64 # i = 100 do: sll $8, $17, 0x2 # i = i * 4 add $8, $8, $16 # t0 = i * 4 + endBase sll $9, $17...
CatchTutorial:: ld a, [wBattleType] dec a ld c, a ld hl, .dw ld b, 0 add hl, bc add hl, bc ld a, [hli] ld h, [hl] ld l, a jp hl .dw dw .DudeTutorial dw .DudeTutorial dw .DudeTutorial .DudeTutorial: ; Back up your name to your Mom's name. ld hl, wPlayerName ld de, wMomsName ld bc, NAME_LENGTH call Co...
//------------------------------------------------------------------------------ // // Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> // Copyright (c) 2011 - 2014, ARM Limited. All rights reserved. // // This program and the accompanying materials // are licensed and made available under the terms and c...
; ; Word: 0< ; Dictionary: (a - a) ; Date: 1st February 2018 ; Macro: Yes ; Notes: ; pop hl bit 7,d ld de,$0000 jr z,__0Less dec de __0Less: jp (hl)
; ; ANSI Video handling for the VZ200 ; ; set it up with: ; .text_cols = max columns ; .text_rows = max rows ; ; Display a char in location (ansi_ROW),(ansi_COLUMN) ; A=char to display ; ; ; $Id: f_ansi_char.asm,v 1.3 2015/01/19 01:33:19 pauloscustodio Exp $ ; PUBLIC ansi_CHAR PUBLIC text_cols PUBLIC text_rows ...
;[]-----------------------------------------------------------------[] ;| STPCPY.ASM -- copy string src to string dest | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 10.0 ; ; Copyright (c) 1991, 2000 by Inprise Corporation...
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved. ; jump to X2C_EXPRR function named "pow". cpu 386 bits 32 %ifdef SYMANTEC ; =========== Rename publics %define pow _pow %endif %ifdef OS2 section .text use32 align=4 FLAT public 'CODE' %else section .tex...
; 0 - PUSH constant 5 leaw $5,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; 1 - PUSH constant 9 leaw $9,%A movw %A,%D leaw $SP,%A movw (%A),%A movw %D,(%A) leaw $SP,%A movw (%A),%D incw %D movw %D,(%A) ; End
PAGE 56,132 TITLE GWAEVT Advanced Event Trapping Handler ;*** ; GWAEVT Advanced Event Trapping Handler ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; ; BASIC Syntax mapping to included runtime entry points: ; ; ; - ON COM(n) Statement: ; ; ON COM(n) GOSUB line ; -------------------- ; | ; ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: spreadsheetCutCopy.asm AUTHOR: Cheng, 5/91 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Descri...
0x000029f0 nop; //---------------- 0x00002a08 nop; //---------------- 0x00002a20 move.l 0x2980,A0 ; //0, 0x00002a38 jsr ms 0x00002a50 nop; //---------------- 0x00002a68 nop; //----------------
DecodeWLE: ; Walle Length Encoding decoder ld c,0 DecodeWLELoop: ld a,[hl+] ld b,a and $c0 jr z,.literal cp $40 jr z,.repeat cp $80 jr z,.increment .copy ld a,b inc b ret z and $3f inc a ld b,a ld a,[hl+] push hl ld l,a ld a,e scf sbc l ld l,a ld a,d sbc 0 ld h,a...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: Text/TextTransfer FILE: ttReplace.asm AUTHOR: Tony Requist, 3/12/90 METHODS: Name Description ---- ----------- REVISION HISTORY: Name ...
; Copyright 2000, 2001, 2002 Free Software Foundation, Inc. ; ; This file is part of the GNU MP Library. ; ; The GNU MP Library is free software; you can redistribute it and/or ; modify it under the terms of the GNU Lesser General Public License as ; published by the Free Software Foundation; either version 2.1...
[bits 16] entry_count equ 0x8000 PhysicalMemorySize64: push ecx push edx xor ecx, ecx xor edx, edx mov ax, 0xE801 int 0x15 jc .error cmp ah, 0x86 ; unsupported function je .error cmp ah, 0x80 ; invalid command je .error jcxz .useax mov ax, cx mov bx, dx .useax: ;...
; ; Z88 Graphics Functions - Small C+ stubs ; ; Written around the Interlogic Standard Library ; ; Stubs Written by D Morris - 30/9/98 ; ; ----- void __CALLEE__ drawr(int x2, int y2) ; ; $Id: drawr_callee.asm $ ; IF !__CPU_INTEL__ & !__CPU_GBZ80__ SECTION code_graphics PUBLIC drawr_callee PU...
; SMSQ Version section version xref.l smsq_vers dc.l smsq_vers end
//this file handles the terrain window. //it is accessed by pressing B on an empty tile on the battle field. //it displays tile coordinates, the tile type, and if in debug mode, a debug ID. namespace field { seek(codeCursor) namespace terrain { enqueue pc seek($c09cb4); jsl renderCoordinates; nop #4 seek($c09d...
DATA SEGMENT MSG1 DB 10,13,'CHARACTER FOUND :) $' MSG2 DB 10,13,'CHARACTER NOT FOUND :($' MSG3 DB 10,13,'ENTER NUMBERS (PRESS ENTER TO HALT): $' MSG4 DB 10,13,'ENTER THE NUMBER TO BE SEARCHED : $' NEW DB 10,13,'$' INST DB 10 DUP(0) DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA START: MOV AX,DATA M...
[bits 32] dd Minnow.$FILE_END - Minnow.$FILE_START db "OrcaHLL Class", 0 db "Minnow", 0 Minnow.$FILE_START : Minnow.ReadFileBlock: pop dword [Minnow.ReadFileBlock.returnVal] pop ecx mov [Minnow.ReadFileBlock.$local.block], ecx pop ecx mov [Minnow.ReadFileBlock.$local.fileType], ecx pop ecx mov [Minnow.ReadFileBlock....
org $02b5c4 ; -- moving right routine 135c4 jsl WarpRight org $02b665 ; -- moving left routine jsl WarpLeft org $02b713 ; -- moving down routine jsl WarpDown org $02b7b4 ; -- moving up routine jsl WarpUp org $02bd80 jsl AdjustTransition nop ;turn off linking doors -- see .notRoomLinkDoor label in Bank02.asm org $02b5a...
[BITS 64] global _start _start: ; r10 = mem_base ; r11 = flag mov r10, rdi mov r11, rsi ; r12 = page counter mov r12, 0 xor_page: ; r13 = page mov r13, r12 shl r13, 12 add r13, r10 ; start transaction xbegin fail ; try to read from the page and xor it with the output buffer mov rdi, [r13] xor [r11],...
dnl ARM mpn_copyd. dnl Copyright 2003 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP 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; eith...
[ORG 0x7C00] mov si,HelloWorld call print_string jmp $ HelloWorld db "Hello World",0xD,0xA,0 print_string: mov ah,0xE .repeat: lodsb cmp al,0 je .done int 0x10 jmp .repeat .done: ret times 510-($-$$) db 0 dw 0xAA55
* Zap Thing from list v0.00  Feb 1988 J.R.Oakley QJUMP * section thing * include 'dev8_keys_chp' include 'dev8_keys_err' include 'dev8_keys_qlv' include 'dev8_keys_sys' include 'dev8_keys_thg' * xref th_find xref th_rechp ...
INCLUDE "constants/charmap.inc" INCLUDE "macros/feedback.inc" INCLUDE "macros/misc.inc" ; Simplify making pointers for every type of rating MACRO rating_text full_pointer xTextBad\1 full_pointer xTextOK\1 full_pointer xTextGreat\1 full_pointer xTextPerfect\1 ENDM SECTION "Overall Rating Text Table", R...
.386 STACK SEGMENT USE16 STACK DB 200 DUP(0) STACK ENDS DATA SEGMENT USE16 BUF1 DB 0,1,2,3,4,5,6,7,8,9 BUF2 DB 10 DUP(0) BUF3 DB 10 DUP(0) BUF4 DB 10 DUP(0) TIP DB 'Press any key to begin!$' DATA ENDS CODE SEGMENT USE16 ASSUME CS:CODE,DS:DATA,SS:STACK START: MOV AX,DATA MOV DS,AX MOV ESI,0 MOV ECX,...
OUTPUT "issue172_dup_zero.bin" DUP 1 DB 'A' EDUP DUP 0 DB 'B' EDUP DUP 2 DB 'C' EDUP ; check also error message for negative count DUP -1
SECTION code_clib PUBLIC heaplock PUBLIC _heaplock .heaplock ._heaplock pop hl pop de pop bc push bc push de push hl call 0xb884 ld h, b ld l, c ret
org $0000 ; Object types OBJECT_NONE EQU 0 OBJECT_SWITCH EQU 1 OBJECT_DOOR EQU 2 OBJECT_DOOR_DESTROY EQU 3 OBJECT_FLOOR_DESTROY EQU 4 OBJECT_WALL_DESTROY EQU 5 OBJECT_BOX_LEFT EQU 6 OBJECT_BOX_RIGHT EQU 7 OBJECT_JAR EQU 8 OBJECT_TELEPORTER EQU 9 ; Pickable object types OBJECT_KEY_GREEN EQU 11 OBJECT_KEY_BLUE EQU...
; ; Util_Conversions.asm ; ; org: 10/21/2014 ; Author : Nels "Chip" Pearson (aka CmdrZin) ; revised: 12/13/2020 1:11:08 PM ; ; Target: Any AVR ; ; Usage: ; .include conversion_util.asm ; ; This file is for use by Atmel Studio 7 ASM projects. ; Note the register usage for conflicts with your code. ; ; For C/C++ projects...
; unsigned char esx_f_opendir(unsigned char *dirname) SECTION code_esxdos PUBLIC _esx_f_opendir_fastcall EXTERN asm_esx_f_opendir _esx_f_opendir_fastcall: push iy call asm_esx_f_opendir pop iy ret
#FIT1008 Prac 5 Task 3 - Loh Hao Bin 25461257, Derwinn Ee 25216384 .data prompt_input: .asciiz "Please input a positive integer: " prompt_exponent: .asciiz "Please input positive exponents only." .text main: #main add $fp, $0, $sp # copy sp into fp addi $sp, $0, -8 #allocate for b & e #initialise main local var...
; ; ZX printer for the ZX81, print character ; ZX80 is not (yet) supported ; ; (HL)=char to display ; ;---------------------------------------------------------------- ; ; $Id: zx_lprintc.asm $ ; ;---------------------------------------------------------------- ; SECTION code_clib PUBLIC zx_lprintc EXTERN ...
INCLUDE "graphics/grafix.inc" MODULE pc88_getmaxx SECTION code_clib PUBLIC getmaxx PUBLIC _getmaxx EXTERN __pc88_gfxmode EXTERN __console_w EXTERN __gfx_fatpix .getmaxx ._getmaxx ; We must be in lores mode here ld a,(__console_w) add a dec a ld l,a l...
SndB7_Rumbling_Header: smpsHeaderStartSong 1 smpsHeaderVoice SndB7_Rumbling_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cFM5, SndB7_Rumbling_FM5, $00, $00 ; FM5 Data SndB7_Rumbling_FM5: smpsSetvoice $00 smpsModSet $01, $01, $20, $08 SndB7_Rumbling_Loop00: d...
[org 0x7c00] mov ah, 0x0e ; intento 1 ; Fallará nuevamente a pesar del 'org' porque seguimos imprimiendo el puntero y no el ; contenido/dato al que apunta mov al, "1" int 0x10 mov al, el_secreto int 0x10 ; intento 2 ; Ahora esta es la respuesta correcta, ya que corregimos ; el problema de desplazamiento de memoria c...
; S2E Selective Symbolic Execution Platform ; ; Copyright (c) 2013 Dependable Systems Laboratory, EPFL ; ; 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, including without...
dnl Copyright 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc. dnl dnl This file is a modified 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 dnl published by the Free Softw...
// seed 2 lbi r0, 79 // icount 0 slbi r0, 247 // icount 1 lbi r1, 42 // icount 2 slbi r1, 90 // icount 3 lbi r2, 142 // icount 4 slbi r2, 219 // icount 5 lbi r3, 133 // icount 6 slbi r3, 28 // icount 7 lbi r4, 33 // icount 8 slbi r4, 127 // icount 9 lbi r5, 72 // icount 10 slbi r5, 147 // icount 11 lbi r6, 22 // icount...
; int p_list_empty(p_list_t *list) SECTION code_adt_p_list PUBLIC p_list_empty defc p_list_empty = asm_p_list_empty INCLUDE "adt/p_list/z80/asm_p_list_empty.asm"
SECTION rodata_font SECTION rodata_font_fzx PUBLIC _ff_dkud3_Small1 _ff_dkud3_Small1: BINARY "font/fzx/fonts/dkud3/Small/SMALL1.fzx"
global sum section .data section .text sum: mov rax, 0 add rdi, 0 jz end l1: add rax, [rsi + rdi*8 -8 ] dec rdi jnz l1 end: ret
;* ;* My RISC-V RV32I CPU ;* Test Code ALU Instructions : No.3 ;* RV32I code ;* @auther Yoshiki Kurokawa <yoshiki.k963@gmail.com> ;* @copylight 2021 Yoshiki Kurokawa ;* @license https://opensource.org/licenses/MIT MIT license ;* @version 0.1 ;* nop nop ; clear LED to black addi x1, x0, 7 ; LED value lui x2...
; ; ANSI Video handling for the Sharp PC G-800 family ; ; Stefano Bodrato - 2017 ; ; in: A = text row number ; ; SECTION code_clib PUBLIC ansi_del_line .ansi_del_line ld d,0 ld e,a ld a,' ' ld b,24 jp $bfee
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: Lights Out MODULE: Input filtering FILE: saverInput.asm AUTHOR: Adam de Boor, Dec 9, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTO...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: spreadsheetQuickMoveCopy.asm AUTHOR: Cheng, 6/91 ROUTINES: Name Description ---- ----------- SpreadsheetStartMoveCopy MSG_ME...
section "Level select RAM",wram0 NUM_LEVEL_SELECT_ENTRIES = 49 section "Level select routines",rom0 GM_LevelSelect: call ClearScreen ldfar hl,Pal_DebugScreen xor a call LoadPal ld a,8 ld hl,Pal_DebugScreen call LoadPal call CopyPalettes ldfar hl,Font...
@ Assembly code to perform 300/100 .main: addi x20, x0, 300 addi x21, x0, 100 div x22, x20, x21 .print x22 end
use16 org 7C00h ;**************************** ; Realmode startup code. ;**************************** ;Здесь код для работы с caps lock (возможно) ;in al, 0x92 ;or al, 2 ;out 0x92, al start: push cs pop ds push ds pop es ;************************************************** ;Вычисляем адрес сегмента кода для...
%include "player_nasm.asm" cpu 8086 global radInitPlayer_ radInitPlayer_: mov cl, 4 shr ax, cl ; ax contains offset add ax, dx ; dx contains segment mov es, ax call InitPlayer jc .error ; InitPlayer sets carry flag if error occured .success: mov ax, 01h ; return true ret...
;Ex1Lab4 - AVR .include "m16def.inc" ldi r24, low(RAMEND) ; initialize stack pointer out SPL, r24 ldi r24, high(RAMEND) out SPH, r24 clr r24 out DDRB, r24 ;PORT B - input ser r24 out DDRA, r24 ;PORTA - output clr r24 ;count LEDs ldi r25, 0x01 GO_LEFT: in r26, PINB ;input in r26 a...
SECTION code_fp_math16 PUBLIC ___schar2h_callee PUBLIC _f16_f16_i8_fastcall EXTERN cm16_sdcc___schar2h_callee EXTERN cm16_sdcc___schar2h_fastcall defc ___schar2h_callee = cm16_sdcc___schar2h_callee defc _f16_f16_i8_fastcall = cm16_sdcc___schar2h_fastcall
vChars0 = $8000 vChars1 = $8800 VChars2 = $9000 vBGMap0 = $9800 vBGMap1 = $9c00 BG_WIDTH = 32 BG_HEIGHT = 32 ; interrupt flags VBLANK EQU 0 LCD_STAT EQU 1 TIMER EQU 2 SERIAL EQU 3 JOYPAD EQU 4 ; OAM attribute flags OAM_PALETTE EQU %111 OAM_TILE_BANK EQU 3 OAM_OBP_NUM EQU 4 OAM_X_FLIP EQU 5 OAM_Y_FLIP EQU 6 OAM_PRIOR...
////////////////////////////////////////////////////////////////////////////// // astro_turret_6_data.asm // Copyright(c) 2021 Neal Smith. // License: MIT. See LICENSE file in root directory. ////////////////////////////////////////////////////////////////////////////// // file contains the data for turret 6 frames as ...
LMClubJ label byte word C_BLACK Bitmap <71,100,0,BMF_MONO> db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 db 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80 db 0x83...
<% from pwnlib import shellcraft %> <%page args="filename, flags='O_RDONLY', mode='x3'"/> <%docstring> Opens a file </%docstring> <% AT_FDCWD=-100 %> ${shellcraft.pushstr(filename)} ${shellcraft.syscall('SYS_openat', AT_FDCWD, 'sp', flags, mode)}
PalletTown_h: db OVERWORLD ; tileset db PALLET_TOWN_HEIGHT, PALLET_TOWN_WIDTH ; dimensions dw PalletTownBlocks, PalletTownTextPointers, PalletTownScript db NORTH | SOUTH ; connections NORTH_MAP_CONNECTION PALLET_TOWN, ROUTE_1, 0, 0, Route1Blocks SOUTH_MAP_CONNECTION PALLET_TOWN, ROUTE_21, 0, 0, Route21Blocks, 1 ...
#include "Platform.inc" radix decimal udata global motorFlags motorFlags res 1 MotorDummies code global initialiseMotor global enableMotorVdd global disableMotorVdd global isMotorVddEnabled global pollMotor global turnMotorClockwise global turnMotorAntiClockwise global stopMotor global isMotorFullyTurn...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1993 -- All Rights Reserved PROJECT: PC GEOS MODULE: Stream Drivers -- FileStream driver FILE: irportMain.asm AUTHOR: Jim DeFrisco, Jan 12, 1993 ROUTINES: Name Description ---- ----------- ...
; char *strrstr(const char *s, const char *w) SECTION code_clib SECTION code_string PUBLIC strrstr_callee EXTERN asm_strrstr strrstr_callee: pop hl pop de ex (sp),hl jp asm_strrstr ; SDCC bridge for Classic IF __CLASSIC PUBLIC _strrstr_callee defc _strrstr_callee = strrstr_callee ENDIF
// Level Select Array origin 0x039ECC // RAM 0x8027EECC base 0x8027EECC dl 0x080809 dl 0x080118 dl 0x08040C dl 0x080205 dl 0x88001D dl 0x48001C dl 0x010804 dl 0x010107 dl 0x010416 dl 0x010208 dl 0x810012 dl 0x410014 dl 0x040817 dl 0x04010A dl 0x04040B dl 0x040224 dl 0x84001F dl 0x44001B dl 0x0208...
%include 'GInclude.asm' main code ;_-_-_-_-_-_-_-_-_-_-_-_-_-_ addVar Check addVar fileName addVar Check addVar Check getVar ax, fileName nout ax mov bp, sp ;_-_-_-_-_-_-_-_-_-_-_-_-_-_ int 21h
.data n_text: .asciiz "Insira valor de n: " ans_text: .asciiz "Fat(n): " .text # Vinicius Gasparini .globl main main: li $t1, 1 # contador li $s1, 1 # valor base li $v0, 4 # call code para print_str la $a0, n_text # carregando str para arg da syscall syscall li $v0, 5 # call code para r...
.ORIG X3000 AND R0, R0, #0 LEA R3, NUM LEA R4, K LDW R3, R3, #0 LDW R4, R4, #0 STW R4, R3, #0 LDW R1, R3, #0 ADD R2, R1, #0 BRP LOOP NOT R2, R2 ADD R2, R2, #1 ADD R1, R2, #0 LOOP ADD R0, R0, R1 ADD R2, R2, #-1 BRP LOOP STW R0, R3, #1 HALT NUM .FILL X4000 K .FILL #-5 .END
; RDTSC32.ASM ; ; Original Author: Agner Fog ; Date created: 2003 ; Last modified: 2018-06-28, by Gabriel Ravier ; Description: ; ; Copyright (c) 2018 GNU General Public License www.gnu.org/licenses ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; glob...
; SBAS_PROCS_CACHE - SBASIC Set Cache ON / OFF V2.00  1994 Tony Tebby section exten xdef cache_on xdef cache_off include 'dev8_keys_qdos_sms' ;+++ ; CACHE_ON ;--- cache_on moveq #1,d1 bra.s cache ;+++ ; CACHE_OFF ;--- cache_off moveq #0,d1 cache moveq #sms.cach,d0 ; set cache trap #do.smsq rts end
ConsumeHeldItem: push hl push de push bc ldh a, [hBattleTurn] and a ld hl, wOTPartyMon1Item ld de, wEnemyMonItem ld a, [wCurOTMon] jr z, .theirturn ld hl, wPartyMon1Item ld de, wBattleMonItem ld a, [wCurBattleMon] .theirturn push hl push af ld a, [de] ld b, a farcall GetItemHeldEffect ld hl, Consumab...
LXI H,2060 MOV A,M INX H MOV B,M ADD B STA 2070 JC L1 L2: HLT L1: MVI A,01 STA 2071 JMP L2 // to store the memory contents # ORG 2060H # DB FFH,FFH
; FLAGS unused bits ; 4 - 128k mode ; FLAGX unused bits ; 2 - ; 3 - ; 4 - in execution: last IF's outcome is false ; 4 - in syntax check: after THEN token ; 4 - in editing: operator mode before the cursor ; 6 - temporary stuff ; FLAGS2 unused bits ; 5 - suppress K mode, if set ; 6 - PLAY in progress ; 7 - jump locati...
SECTION code_ctype PUBLIC asm_iscntrl asm_iscntrl: ; determine if char is 127 or <32, ie non-printable ascii ; enter : a = char ; exit : carry if a control char ; uses : f cp 127 ccf ret z cp 32 ret
.defineLabel SM64MLIB_VERSION_MAJOR, 0 .defineLabel SM64MLIB_VERSION_MINOR, 2 // Pointers/Structures .defineLabel SM64_CURR_OBJ_PTR, 0x80361160 .defineLabel SM64_FIRST_OBJ_PTR, 0x8033D488 .defineLabel SM64_MARIO_STRUCT, 0x8033B170 .defineLabel SM64_MARIO_OBJ_PTR, 0x80361158 .defineLabel SM64_LEVEL_STRUCT, 0x8033B...
Microsoft Visual Studio Solution File, Format Version 12.00 # Atmel Studio Solution File, Format Version 11.00 VisualStudioVersion = 14.0.23107.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{54F91283-7BC4-4236-8FF9-10F437C3AD48}") = "TP01", "TP01\TP01.cproj", "{DCE6C7E3-EE26-4D79-826B-08594B9AD897}" EndProject G...
; A000231: Number of inequivalent Boolean functions of n variables under action of complementing group. ; Submitted by Simon Strandgaard ; 3,7,46,4336,134281216,288230380379570176,2658455991569831764110243006194384896 mov $4,$0 add $0,1 mov $1,2 pow $1,$0 mov $3,$1 sub $1,$0 mov $2,2 pow $2,$1 mov $1,$2 mov $2,$3 sub ...
; Include files for fasmg include 'includes/ez80.inc' include 'includes/ti84pceg.inc' include 'includes/tiformat.inc' include 'includes/defines.asm' include 'includes/macros.inc' include 'includes/symbol_table.inc' format ti executable 'AOCE' include 'includes/app.inc' ; Include all the gfx .inc files appvars GFX,2, ...
SECTION "Assets", ROMX[$4000], BANK[1] noCGBScreen:: incbin "assets/nocgberror.fx" noCGBScreenMap:: incbin "assets/nocgberror.tilemap" koishi:: incbin "assets/koishi/00.cfx" ; 1 incbin "assets/koishi/10.cfx" ; 2 incbin "assets/koishi/01.cfx" ; 3 incbin "assets/koishi/11.cfx" ; 4 ...
; add.asm ; Adds a few numbers (no screen output) ; ; zmac add.asm ; trs80gp -b main zout/add.bds org $5200 num defb 2 main: ; 8-bit math ld a,5 ; a = 5 inc a ; a = 6 dec a ; a = 5 ld a,(num) ; load 2 from num into a inc a ; a = 3 dec a ; a = 2 ld c,10 ; c = 10 add c ...
; SPDX-License-Identifier: BSD-3-Clause .code ; ; unsigned void AsmSpeculateSwapgs(PBYTE TargetKernelVa, PBYTE RandomBranches) ; Modifies the GS base, confuses the branch predictors & generates an exception in order to trigger specluative ; SWAPGS to be executed in kernel, which leads to arbi...
; z_extended_opcode !byte 0 ; z_operand_count !byte 0 ; z_operand_type_arr !byte 0, 0, 0, 0, 0, 0, 0, 0 ; z_operand_value_high_arr !byte 0, 0, 0, 0, 0, 0, 0, 0 ; z_operand_value_low_arr !byte 0, 0, 0, 0, 0, 0, 0, 0 ; z_local_var_count !byte 0 ; z_temp !byte 0, 0, 0, 0, 0 z_rnd_a !byte 123 z_rnd_b ...
; vim: ft=nasm ai %include "cext.inc" GLOBAL _start EXTERNC sigma0_main [SECTION .text] [BITS 32] _start: call sigma0_main jmp $
BITS 32 start: mov esp, 0x0100 call start2 jmp short start start2: mov eax, 0xff ret
.data .text main: jal myFun #Exit Code - required to avoide an infinite loop with displayMessage li $v0, 10 syscall #define function myFun: jr $ra
.text .globl main main: # get the time li $v0, 30 # get time in milliseconds (as a 64-bit value) syscall move $t0, $a0 # save the lower 32-bits of time # seed the random generator (just once) li $a0, 1 # random generator id (will be used later) move $a1, $t0 # seed from time li $v0, 40 # seed random numb...
[bits 16] extern MemoryRegionCount DetectMemory: mov byte [MemoryRegionCount], 0 mov ax, 0 mov es, ax mov di, 0x5000 mov edx, 0x534D4150 xor ebx, ebx repeat: mov eax, 0xE820 mov ecx, 24 int 0x15 add di, 24 inc byte [MemoryRegionCount] cmp ebx, 0 je fin...
ORG $80 ; where we want our zero-page vars EXO_buffer_len = 1024 ; this must match the parameter -m EXO_buffer_start = $b000 EXO_table = $bf00 ; 156-byte table INCLUDE "lib/exomiser.h.asm" ORG &1200 .start .table { EQUW main EQUW time } INCLUDE "lib/exomiser.asm" INCLUDE "lib/vgmplayer.asm" .time { php sei ld...
ChampionsRoom_Script: call EnableAutoTextBoxDrawing ld hl, ChampionsRoom_ScriptPointers ld a, [wChampionsRoomCurScript] jp CallFunctionInTable ResetGaryScript: xor a ld [wJoyIgnore], a ld [wChampionsRoomCurScript], a ret ChampionsRoom_ScriptPointers: dw GaryScript0 dw GaryScript1 dw GaryScript2 dw GaryScr...
<% from pwnlib.shellcraft import arm, common %> <% from pwnlib.util.misc import binary_ip %> <% from pwnlib.util.packing import u32 %> <%page args="port=None"/> <%docstring> Args: port (defaults to any) Finds an open socket which connects to a specified port, and then opens a dup2 shell on it. </%docstring> ${arm...
; A038082: Number of n-node rooted identity trees of height at most 3. ; 1,1,1,2,2,2,2,2,1,1,1 sub $0,5 div $0,3 gcd $0,2
page ,132 ; SCCSID = @(#)tmisc1.asm 4.1 85/09/22 ; SCCSID = @(#)tmisc1.asm 4.1 85/09/22 TITLE Part7 COMMAND Transient Routines ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ; ; Revision History ;...
struc multiboot_info .flags resd 1 ; required .memoryLo resd 1 ; memory size. Present if flags[0] is set .memoryHi resd 1 .bootDevice resd 1 ; boot device. Present if flags[1] is set .cmdLine resd 1 ; kernel command line. Present if flags[2] is set .mods_count resd 1 ; number of modules loaded along ...
assume cs:code data segment db 'YY/MM/DD HH:MI:SS',0 ; 18 db 9,8,7,4,2,0 data ends stack segment dd 0,0 stack ends code segment start: mov ax,data mov ds,ax mov ax,stack mov ss,ax mov sp,0 mov si,0 mov di,18 mov cx,6 s0: mov al,ds:[di] out 70h,al in al,71h mov ah,al mov cl,4 shr ah,cl ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: documentSplit.asm AUTHOR: Chris Boyke ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ...
; Ex__5_16_bit_subtraction.asm ; Try running this code at ; https://skilldrick.github.io/easy6502/ ; Set up the values to be subtracted ; Remove the appropriate semicolons to select the bytes to ; subtract: ; ($0001 - $0000) or ($0001 - $0001) or ($0001 - $00FF) or ; ($0000 - $0001) LDA #$01 ;LDA #$01 ;LDA #$01 ;LDA ...
org 0100h jmp START ;include file %include "fat12hdr.inc" %include "load.inc" %include "pm.inc" [section data1] align 32 DATA: ;gdt GDT: Descriptor 0, 0, 0 DESC_FLAT_C: Descriptor 0, 0fffffh, DA_CR | DA_32 | DA_LIMIT_4K DESC_FLAT_RW: Descriptor 0, 0fffffh, DA_DRW | DA_32 | DA_LIMIT...
; ; ZX80 Stdio ; ; ZX80 - z88dk internal keyboard decoding routine ; ; Stefano Bodrato - Jan 2013 ; ; ; $Id: zx80_decode_keys.asm,v 1.3 2016-06-12 17:32:01 dom Exp $ ; SECTION code_clib PUBLIC zx80_decode_keys EXTERN zx81toasc .zx80_decode_keys LD D,$00 SRA B SBC A,A OR $26 LD L,$05 SUB L .LOOP2 ADD...
; DISPLAY options ; /D - out only in Decimal ; /H - out only in Hexadecimal ; /A - out both in Hexadecimal and Decimal ;; Example with DISPLAY directive description ORG 100h TESTLABEL: ;...some code... RET DISPLAY "--the some program-- by me" DISPLAY "TESTLABEL address is:",/A,TESTLABEL /* will ou...
; Glidix kernel ; ; Copyright (c) 2014-2017, Madd Games. ; 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 source code must retain the above copyright notice, this ; lis...