content
stringlengths
23
1.05M
IDEAL %TITLE "Interrupt and other port I/O code." DOSSEG MODEL MEDIUM ; Defines and structure definitions. include "\d3b\asms\equates.inc" ; External declarations. include "\d3b\asms\globals.inc" ; Data Segment stuff. include "\d3b\asms\data.inc" ; Standard S...
; ««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««« .486 ; create 32 bit code .model flat, stdcall ; 32 bit memory model option casemap :none ; case sensitive include \masm32\include\windows.inc include \masm32\macros\macros.asm ; ---------------...
.include "sprite/template.asm" .gba .create TEMP+"/630398.dmp",0 header anim frame @tile,@pal,@sub,@oam,11,ANIM_END tiles @tile, TEMP+"/630398.img.bin" pal @pal, TEMP+"/630398.pal.bin" subanim_header @sub subanim sframe 0,11,ANIM_END subanim sframe 1,11,ANIM_END subanim sframe 2,11,ANIM_END subanim...
MODULE generic_console_vpeek SECTION code_himem PUBLIC generic_console_vpeek EXTERN generic_console_xypos EXTERN generic_console_font32 EXTERN generic_console_udg32 EXTERN screendollar EXTERN screendollar_with_count generic_console_vpeek: ld hl,-8 add hl,sp ...
GLOBAL read GLOBAL write GLOBAL read_system_time GLOBAL set_system_time GLOBAL change_color GLOBAL clear_screen GLOBAL set_ss_timer GLOBAL timer_tick GLOBAL play_music_sys GLOBAL play_beep_sys GLOBAL ps_sys GLOBAL sys_addProcess GLOBAL sys_killProcess GLOBAL sys_getActivePID %macro pushaq 0 push rax push rbx ...
; GDT gdt_start: ; label to calculate size of the GDT decriptor gdt_null: ; the mandatory null descriptor dd 0x0 ; ’dd ’ means define double word ( i.e. 4 bytes ) dd 0x0 ; the code segment descriptor gdt_code: ; base =0x0 ; limit =0xfffff 32 bit dw 0xff...
* File open operations V0.7  1984/1985 Tony Tebby QJUMP * * OPEN #n,name open a file for w/r * OPEN_IN #n,name read only * OPEN_NEW #n,name w/r (new file) * OPEN_OVER #n,name w/r (overwrites) * OPEN_DIR #n,name directory * * FTEST (name) function to test for file * * FOPEN (#n,name) functions to o...
; void free_unlocked(void *p) SECTION code_alloc_malloc PUBLIC free_unlocked defc free_unlocked = asm_free_unlocked INCLUDE "alloc/malloc/z80/asm_free_unlocked.asm"
SECTION code_driver SECTION code_driver_character_output PUBLIC _acia_flush_Tx_di PUBLIC _acia_flush_Tx EXTERN asm_z80_push_di, asm_z80_pop_ei EXTERN aciaTxCount, aciaTxBuffer, aciaTxIn, aciaTxOut _acia_flush_Tx_di: push af push hl call asm_z80_push_di ; ...
; Stars ; Demo for asm4mo (https://github.com/leonardo-ono/asm4mo/) ; Written by Leonardo Ono (ono.leo@gmail.com) ; 10/02/2011 22:34 ; use: asm stars.asm stars.bin mov ah, 0 mov al, 13h int 10h ; change to graphic mode mov cx, 100 ; number of stars nextStar: push cx mov dx, 0 mov ax, 1 mo...
; hello-os ; 第一部分:FAT12 Boot记录 ; 标准FAT12格式软盘专用代码 DB 0xeb, 0x4e ; 跳转指令 DB 0x90 ; NOP指令 DB "HELLOIPL" ; OEM标识符(8字节) DW 512 ; 每个扇区(sector)的字节数(必须为512字节) DB 1 ; 每个簇(cluster)的扇区数(必须为1个扇区) DW 1 ; FAT的预留扇区数(包含boot扇区) DB ...
assume cs:code code segment start: mov ah,2ch ;function 2C under INT 21h returns time in ch(hrs), cl(mins) int 21h ; in hex ( seconds and milliseconds omitted) mov al,ch call hex_bcd ; first convert the hrs into 24 hrs formatted bcd call disp ; then, display it mov dl,':' mov ah,2...
global _start extern main section .start.text bits32 _start: jmp _entry ALIGN 8 _entry: xor eax, eax xor ebx, ebx xor ecx, ecx xor edx, edx xor edi, edi xor esi, esi xor ebp, ebp xor esp, esp ;初始化栈 mov esp, stack_top call main section .bss ; reserved memory for paging align 4096 p4_table: ...
Function170000: ld a, [$c62b] ld [wPlayerTrademonSpecies], a ld hl, $c62e ld de, wPlayerTrademonSenderName ld bc, $0005 call CopyBytes ld a, $50 ld [de], a ld hl, $c663 ld de, wPlayerTrademonOTName ld bc, $0005 call CopyBytes ld a, $50 ld [de], a ld hl, $c648 ld a, [hli] ld [wPlayerTrademonDVs], a ld ...
* Spreadsheet 07/02-92 * - width 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 wdt_puld,mea_...
; Randomizer.live - communication library ; Things like server-based randomization, logging, crowd control-like stuff !MESSAGEBASE = !SRAM_RANDOLIVE !MESSAGETMP = $0e !MESSAGES_IN = !MESSAGEBASE !MESSAGES_OUT = !MESSAGEBASE+$0100 !SNES_WRITEPTR = !MESSAGEBASE+$184 !REMOTE_READPTR = !MESSAGEBASE+$186 !REMOTE_WRITEPTR ...
; ######################################################################### .386 .model flat, stdcall option casemap :none ; case sensitive ; ######################################################################### ;========= ; Includes ;========= include \MASM32\INCLUDE\windows.inc ...
Moldorm_UpdateOamPosition: { PHX LDA !MOLDORM_EYES_FLAG : TAX .more_eyes LDA $90 : CLC : ADC.w #$0004 : STA $90 LDA $92 : CLC : ADC.w #$0001 : STA $92 DEX : BPL .more_eyes ; X >= 0 PLX RTL }
; ;Based on the SG C Tools 1.7 ;(C) 1993 Steve Goldsmith ; ; Bondwell 12/24 version (4mhz CPU, DAC on port $50) ; calibrated for a fixed 8khz bitrate ; ;$Id: playzb4.asm $ ; ; extern void __LIB__ playzb4(uchar *SamStart, ushort SamLen); ; play 4 bit pulse wave encoded data using sid master volume SECTION code_clib ...
UndergroundPathEntranceRoute6Script: ld a, ROUTE_6 ld [wLastMap], a jp EnableAutoTextBoxDrawing UndergroundPathEntranceRoute6TextPointers: dw UndergroundPathEntranceRoute6Text1 UndergroundPathEntranceRoute6Text1: TX_FAR _UndergrdTunnelEntRoute6Text1 db "@"
; name lengths NAME_LENGTH EQU 11 PLAYER_NAME_LENGTH EQU 8 BOX_NAME_LENGTH EQU 9 MON_NAME_LENGTH EQU 11 MOVE_NAME_LENGTH EQU 13 ITEM_NAME_LENGTH EQU 13 TRAINER_CLASS_NAME_LENGTH EQU 13 NAME_LENGTH_JAPANESE EQU 6 ; GetName types (see home/names.asm) const_def 1 const MON_NAME ; 1 const ...
# RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s --check-prefix=CHECK-32 # RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s --check-prefix=CHECK-64 .code mov eax, [4] ; CHECK-32: mov eax, dword ptr [4] ; CHECK-64: mov eax, dword ptr [rip + 4] END
Name: Driver-point-e.asm Type: file Size: 39904 Last-Modified: '1992-11-18T01:42:39Z' SHA-1: 464C14496CCE0106223AC0D582EC78774F7F232B Description: null
timer_setup0: cli sbi DDRD,6 sbi DDRD,5 ; cBI DDRD,6 ; sbi PORTD, 6 cbi PORTD, 6 cbi PORTD, 5 ; ; configure timer 1: ; count to OCR1A and reset, ; toggle OCR1A output on reset, ; frequency using /8 prescaler ; ; rcall timer_enable0A ldi r16,0b00001100 ; [-,-,-,-,WGM02,CS02,-,-] out TCCR0B,r16 ; SE...
format elf use32 include '../../libc/ccall.inc' section '.text' executable public vmem_enable_page_dir extrn printf ;; vmem_enable_page_dir() - Enable the page directory ;; ;; @ECX: Address to the page directory to load ;; Since we're using fastcall in gcc, we expect the page ;; dire...
global _start extern _ExitProcess@4 section .text _start: mov ecx,555 push dword 0 ; Arg1: push exit code call _ExitProcess@4
; void *zx_saddrpdown(void *saddr) SECTION code_arch PUBLIC zx_saddrpdown zx_saddrpdown: INCLUDE "arch/zx/display/z80/asm_zx_saddrpdown.asm"
SECTION code_graphics PUBLIC setpos PUBLIC _setpos EXTERN __gfx_coords ; void setpos(int x, int y) __smallc setpos: _setpos: ld hl,sp+2 ld d,(hl) ld hl,sp+4 ld e,(hl) ld hl,__gfx_coords ld (hl),e inc hl ld (hl),d ret
;============================================================= ;=== FILE: isrutilities.asm ;=== ;=== Copyright (c)1998 Metrowerks, Inc. All rights reserved. ;============================================================= ; Recommended tab stop = 8. ;=====================================================================...
COMMENT @----------------------------------------------------------------------- Copyright (c) GeoWorks 1988-1994. All Rights Reserved. GEOWORKS CONFIDENTIAL PROJECT: GEOS MODULE: OpenLook/Open FILE: openUtils.asm ROUTINES: Name Description ---- ----------- OpenGetLineBounds Returns object...
IF !__CPU_GBZ80__ SECTION code_clib SECTION code_l_sccz80 PUBLIC l_debug_push_frame EXTERN __debug_framepointer l_debug_push_frame: pop bc ;return address push hl ;entered hl ld hl,(__debug_framepointer) ex (sp),hl ;hl = entry value push hl ld hl,2 add ...
; uchar esxdos_m_getdrv(void) SECTION code_clib SECTION code_esxdos PUBLIC esxdos_m_getdrv EXTERN asm_esxdos_m_getsetdrv esxdos_m_getdrv: ld l,0 jp asm_esxdos_m_getsetdrv
; vsync interrupt routine system_vsync_handler: push r0 push r1 push r2 push r3 push r4 push r5 push r6 push r7 call mouse_update call keyboard_update pop r7 pop r6 pop r5 pop r4 pop r3 pop r2 pop r1 pop r0 reti
section .text global readport global writeport global readportw global writeportw global enableInterrupts global disableInterrupts readport: ;byte readport(dword portNum) mov edx, [esp + 4] in al, dx ret writeport: ;void writeport(dword portNum, dword value) mov edx, [esp + 4] mov eax, [esp + 8] out dx, a...
@Useful Stuff @Battle Scripts @.equ FAILED, 0x81D7DF2 .equ NOEFFECT, 0x81D7E04 .equ ABSORB_REBRANCHER, 0x81D694E .equ BS_MOVE_FAINT, 0x81D6947 .equ BS_MOVE_END, 0x81D694E .equ BS_MAKE_MOVE_MISS, 0x81D6958 .equ BS_MOVE_MISSED, 0x81D695E .equ BS_MOVE_MISSED_PAUSE, 0x81D6960 .equ BS_BUFF_ATK_STATS, 0x81D6B9E .e...
.ORIG x3000 ADD R3,R2,R1 ; ADD instruction .END
TITLE PATH - Directory related system calls NAME PATH ; ; Microsoft Confidential ; Copyright (C) Microsoft Corporation 1991 ; All Rights Reserved. ; ;** Directory related system calls. These will be passed direct text of the ; pathname from the user. They will need to be passed through the macro ; expander prior ...
; void *tshr_saddrcdown(void *saddr) SECTION code_clib SECTION code_arch PUBLIC _tshr_saddrcdown EXTERN _zx_saddrcdown defc _tshr_saddrcdown = _zx_saddrcdown
; ; ANSI Video handling for the P2000T ; ; Stefano Bodrato - Apr. 2014 ; ; Display a char in location (ansi_ROW),(ansi_COLUMN) ; A=char to display ; ; ; $Id: f_ansi_char.asm,v 1.4 2016/06/12 16:06:43 dom Exp $ ; SECTION code_clib PUBLIC ansi_CHAR PUBLIC text_cols PUBLIC text_rows EXTERN ansi_ROW EXTER...
frame 2, 09 frame 1, 09 setrepeat 2 frame 5, 09 frame 4, 09 dorepeat 3 endanim
device zxspectrum128 org #8000 ;комментарии на UTF-8 string db "кодировка UTF-8",0
section .data _print_number: db "%I64d",10,0 _print_divide: db "%I64x / %I64x = %I64x",10,0 _print_sdivide: db "%I64d / %I64d = %I64d",10,0 _print_remainder: db "%I64d %% %I64d = %I64x",10,0 _print_sremainder: db "%I64d %% %I64d = %I64d\n",0 section .text extern printf %macro signedmul 2 ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1995 -- All Rights Reserved PROJECT: Socket project MODULE: IP address resolver FILE: resolverCApi.asm AUTHOR: Steve Jang, Feb 21, 1995 REVISION HISTORY: Name Date Description ---- ---- --------...
TOESP_MSG_GET_ESP_STATUS = 0 ; Get ESP status TOESP_MSG_DEBUG_GET_LEVEL = 1 ; Get debug level TOESP_MSG_DEBUG_SET_LEVEL = 2 ; Set debug level TOESP_MSG_DEBUG_LOG = 3 ; Debug / Log data TOESP_MSG_CLEAR_BUFFERS = 4 ; Clear RX/TX buffers TOESP_MSG_E2N_BU...
;###########################################; ; Mouse management for in menu interaction ; ;###########################################; ; ---------------------------------------------------; ; Shows the menu. ; ---------------------------------------------------; SHOW_MENU PROC NEAR .DATA MOUSE_FLAG DB 0D .C...
//push constant 7 @7 //A=index D=A //D is now the constant @SP A=M //A = @SP M=D //M[A] = value to push @SP M=M+1 //sp+1 //push constant 8 @8 //A=index D=A //D is now the constant @SP A=M //A = @SP M=D //M[A] = value to push @SP M=M+1 //sp+1 //add @SP AM=M-1 //AM[SP] = M[SP] - 1 e.g @y D=M //D=M[A] e.g...
#include "Mcu.inc" #include "FarCalls.inc" #include "Ui.inc" #include "../../UiStates.inc" #include "../../../Platform/Lcd/EnableDisableLcdMocks.inc" #include "TestFixture.inc" radix decimal EnableLcdTest code global testArrange testArrange: fcall initialiseUi fcall initialiseEnableAndDisableLcdMocks test...
!SELECTED = $3480 !UNSELECTED = $3800 !SHORTCUTTING = $3C80 !HEADER = $3100 ;=================================================================================================== cm_mainmenu: %menu_header("LTTPHACK !VERSION", 13) %submenu_variable("Presets", PRESET_SUBMENU) %submenu("Y Items", ITEMS_SUBMENU) %submen...
section .data buffer times 500 db 0 value db 0 section .text global _start _start: mov ESI , 0 ; RIGHT ADD ESI , 121 ;Reset to zero mov AH , byte [buffer + ESI] mov AH , 0 mov [buffer + ESI] , AH ; RIGHT ADD ESI , 41 ;Reset to zero mov AH , byte [buffer + ESI] mov AH , 0 mov [buffer + ESI] , AH ; RIGH...
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing proje...
li s0, 0x400c0000 li x10, 1 li x12, 31 li x13, 0 shift: beq x12,x13, exit sw x10, 0x10(s0) slli x10,x10,1 addi x13, x13,1 jal shift exit:
CinnabarIsland_h: db OVERWORLD ; tileset db CINNABAR_ISLAND_HEIGHT, CINNABAR_ISLAND_WIDTH ; dimensions (y, x) dw CinnabarIsland_Blocks ; blocks dw CinnabarIsland_TextPointers ; texts dw CinnabarIsland_Script ; scripts db NORTH | EAST ; connections NORTH_MAP_CONNECTION CINNABAR_ISLAND, ROUTE_21, 0, 0, Route21_Blo...
; void mtx_destroy_fastcall(mtx_t *m) SECTION code_clib SECTION code_threads_mutex PUBLIC _mtx_destroy_fastcall EXTERN asm_mtx_destroy defc _mtx_destroy_fastcall = asm_mtx_destroy
.386 .model flat,stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc ; ************************************************************************* ; Our Dialog Window procedure prototype ; *************************************...
; ; ; Nim's Runtime Library ; (c) Copyright 2015 Rokas Kupstys ; ; See the file "copying.txt", included in this ; distribution, for details about the copyright. ; format MS COFF include 'i386.asm'
; centigrade (celsius) to fahrenheit calculation and vice-versa. ; it may not be accurate, because of integer division. ; this program prints out the result in binary code. ; to see result in hexadecimal or decimal form click vars. name "celsi" org 100h jmp start tc db 10 ; t celsius. tf db 0 ; t fahrenheit...
SECTION code_fp_math16 PUBLIC _f16_inv_fastcall EXTERN asm_f16_inv defc _f16_inv_fastcall = asm_f16_inv
page ,132 subttl emwin.asm - Initialization and Termination for Windows ;*** ;emwin.asm - Initialization and Termination for Windows ; ; Copyright (c) 1987-89, Microsoft Corporation ; ;Purpose: ; Initialization and Termination for Windows ; ; This Module contains Proprietary Information of Microsoft ; Corp...
arch n64.cpu endian msb output "Template.N64", create fill $0010'1000 // Set ROM Size // fill 1052672‬ also works because // 4 KB (4096 B) header reserved for config and publisher data // 1 MB (1024 KB * 1024 KB = ‭1,048,576‬ B) game code copied to n64 ram on boot // 4096 + ‭1048576‬ = 1,052,672‬ B roughly a megabyte ...
#To be inserted at 802528e4 ########################### ##FPSHack_HalfCLibAddCalc## ########################### lis r17, 0x817F lfs f17, 0x0004 (r17) #Load FloatSlowdown fmuls f1, f1, f17 #Multiply f1 (step) by FloatSlowdown fmuls f2, f2, f17 #Multiply f2 (step error) by FloatSlowdown fmuls f3, f3, f17 #Multiply f3 (...
; Special routines can be used with the "special" map script command. ; They often use wScriptVar for arguments and return values. add_special: MACRO \1Special:: dba \1 ENDM SpecialsPointers:: add_special WarpToSpawnPoint ; $0 ; Communications add_special SetBitsForLinkTradeRequest add_special WaitForLinkedFrien...
COMMENT @----------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: OpenLook/CWin FILE: cwinCommand.asm ROUTINES: Name Description ---- ----------- GLB OLCommandWinClass Open look command window class R...
.686 .model flat,stdcall option casemap:none include .\bnlib.inc include .\bignum.inc public BN_ALLOC_BYTES public BN_MAX_DWORD public BN_HPROV public BN_HHEAP .data ALIGN DWORD BN_ALLOC_BYTES dd ((BN_DEFAULT_BITS/08)*BN_SIZE_EXPAND)+BN.dwArray BN_MAX_DWORD dd ((BN_DEFAULT_BITS/32)*BN_SIZE_EXPAND) BN_HPROV dd -1 BN...
sec sbc #{c1} bvc !+ eor #$80 !: asl lda #0 rol
global game_run extern console_print extern console_print_nl extern console_read_char extern utils_number_to_decimal_ascii extern utils_are_three_equals extern debug_print_regs %define BOARD_ARRAY_ELEMENTS 9 ; Game Board ; 1|2|3 ; ----- ; 4|5|6 ; ----- ; 7|8|9 ; board number: 1 2 3 4 ...
; A130453: A097806 * A059268. ; 1,2,2,2,4,4,2,4,8,8,2,4,8,16,16,2,4,8,16,32,32,2,4,8,16,32,64,64,2,4,8,16,32,64,128,128 cal $0,128219 ; A000012 * A127701. a(1) = 1, a(2) = 2, a(3) = 2; by rows, n-1 terms of 2, 3, 4...followed by "n". cal $0,164094 ; a(n) = 3*2^n + 2. mov $1,$0 sub $1,8 div $1,6 add $1,1
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Epson model 24-pin drivers FILE: fontIBMPPDSInfo.asm AUTHOR: Dave Durran, 21 Aug 1992 REVISION HISTORY: Name Date Description ----...
;; ;; Copyright (c) 2021-2022, Intel Corporation ;; ;; 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 list of conditions and...
;este es un comentario list p=18f4550 ;modelo de procesador #include<p18f4550.inc> ;libreria de nombre de registros ;Bits de configuracion del microcontrolador CONFIG FOSC = XT_XT ; Oscillator Selection bits (XT oscillator (XT)) CONFIG PWRT = ON ; Power-up Timer Enable b...
START_FILE TEXT ALIGN(4) START_FUNC(opal_atomic_mb) !#PROLOGUE# 0 !#PROLOGUE# 1 membar #LoadLoad | #LoadStore | #StoreStore | #StoreLoad retl nop END_FUNC(opal_atomic_mb) START_FUNC(opal_atomic_rmb) !#PROLOGUE# 0 !#PROLOGUE# 1 membar #LoadLoad retl nop END_FUNC(opal_atomic_rmb) START_FUNC(opal_atomic...
; Add ALTTP items to SM ; ; Extra message box code lifted from MessageBoxV4 by Kejardon, JAM !IBranchItem = #$887C !ISetItem = #$8899 !ILoadSpecialGraphics = #$8764 !ISetGoto = #$8A24 !ISetPreInstructionCode = #$86C1 !IDrawCustom1 = #$E04F !IDrawCustom2 = #$E067 !IGoto = #$8724 !IKill = #$86BC !IPlayTrackNow = #$8BDD ...
SSAnne2F_Script: call EnableAutoTextBoxDrawing ld hl, SSAnne2F_ScriptPointers ld a, [wSSAnne2FCurScript] jp CallFunctionInTable SSAnne2Script_613ab: xor a ld [wJoyIgnore], a ld [wSSAnne2FCurScript], a ret SSAnne2F_ScriptPointers: dw SSAnne2Script0 dw SSAnne2Script1 dw SSAnne2Script2 dw SSAnne2Script3 dw ...
struct bignum { unsigned long x, y; }; void hex_print_bignum(bignum n) { if (n.y == 0) { printf("0x%lx", n.x); } else { printf("0x%lx%016lx", n.y, n.x); } }
////////////////////////////////////////////////////////////////////////////// // interupts.asm // Copyright(c) 2021 Neal Smith. // License: MIT. See LICENSE file in root directory. ////////////////////////////////////////////////////////////////////////////// // This sample shows how to handle interupts on the C64. //...
#INCLUDE "FUNCTIONS.inc" ; Initialize the stack pointer and the base pointer MOV XL, 0xFF MOV XH, 0xFF MOV SP, X MOV XL, 0 MOV XH, 0 MOV BP, X CALL :_MAIN HLT :_MAIN ENTER 4 ; ======================== ; Begin 1st function call ; ======================== ; Push the function arguments onto the stack PUSH 00010010b ;...
; MIT License ; ; Copyright (c) 2018 Thomas Woinke, Marko Lauke, www.steckschwein.de ; ; 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 limitation the ri...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: textCalcObject.asm AUTHOR: John Wedgwood, Oct 26, 1989 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date De...
; === macros.asm ; All sorts of macros and constant declarations. ; Text engine macros. text EQUS "db " ; Start writing text. next EQUS "db $F2," ; Move a line down. para EQUS "db $F3," ; Start a new paragraph. cont EQUS "db $F1," ; Scroll to the next line. done EQUS "db $0" ; End a text box. wait EQUS "...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 189 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %104 %170 OpExecutionMode %4 O...
;*********************************************************** ; Version 2.40.00 ;*********************************************************** ; Function: recip16 ; Processor: C55xx ; Description: Calculates reciprocal of Q15 number. C-callable. ; ; Useage: void recip...
// A KickC version of the fire routine from the CC65 samples // (w)2002 by groepaz/hitmen // Cleanup and porting to CC65 by Ullrich von Bassewitz and Greg King . // Ported to KickC by Jesper Gravgaard. // Original source https://github.com/cc65/cc65/blob/master/samples/fire.c // Commodore 64 PRG executable file .file...
frame 0, 04 frame 1, 24 frame 0, 08 setrepeat 2 frame 2, 03 frame 3, 04 frame 4, 05 dorepeat 4 endanim
; ; Spectravideo SVI specific routines ; by Stefano Bodrato, 29/05/2009 ; ; int msx_vram(); ; ; Detects the VRAM size (in KB) ; ; $Id: svi_vram.asm,v 1.2 2015/01/19 01:32:57 pauloscustodio Exp $ ; PUBLIC msx_vram msx_vram: ld hl,16 ; assume 16K ret
.byte $01 ; Unknown purpose .byte OBJ_AUTOSCROLL, $00, $52 .byte OBJ_BONUSCONTROLLER, $01, $18 .byte OBJ_BIGREDTROOPA, $10, $14 .byte OBJ_CHARGINGCHEEPCHEEP, $12, $19 .byte OBJ_BIGREDTROOPA, $16, $15 .byte OBJ_BIGREDPIRANHA, $1B, $16 .byte OBJ_VENUSFIRETRAP, $2E, $16 .byte OBJ_VENUSFIRETRAP, $3C, $14 .byte O...
; int wa_priority_queue_empty_fastcall(wa_priority_queue_t *q) SECTION code_adt_wa_priority_queue PUBLIC _wa_priority_queue_empty_fastcall defc _wa_priority_queue_empty_fastcall = asm_wa_priority_queue_empty INCLUDE "adt/wa_priority_queue/z80/asm_wa_priority_queue_empty.asm"
%if 0 SNEeSe, an Open Source Super NES emulator. Copyright (c) 1998-2015, Charles Bilyue. Portions copyright (c) 1998-2003, Brad Martin. Portions copyright (c) 2003-2004, Daniel Horchner. Portions copyright (c) 2004-2005, Nach. ( http://nsrt.edgeemu.com/ ) Unzip Technology, copyright (c) 1998 Gilles Vollant. zlib Te...
.psx ; Overwrite the logic for ending a stage to always either go to part 2 or go to mission complete @stage_end: replace 0x800200FC lb v0,CURRENT_STAGE lb v1,STAGE_PART subi v0,v0,9 ; Will now be 0 if this is X's Colonel fight beq v0,$zero,@@set_mission_complete subi v0,v0,1 ; Will now be 0 if thi...
section .text global set_gdt set_gdt: cli mov eax, [esp+4] lgdt [eax] ret
; ; Small C+ Runtime Library ; ; Z88 Application functions ; ; *** Z88 SPECIFIC FUNCTION - probably no equiv for your machine! *** ; ; 11/4/99 ; ; Send Mail ; ; int sendmail(char *type, char *info, int length) ; ; Returns 0 on failure, number of bytes present on success ...
MOV R0, #30H MOV A, R0 L1: MOV B, A L3: DJNZ R2, L2 SJMP STP L2: INC A MOV A, R0 CJNE A, B, NEQ NEQ: INC L3 SJMP L1 STP: MOV R1, B
EXTRN TOPLAMA:FAR myss SEGMENT PARA STACK 'yigin' DW 20 DUP(?) myss ENDS myds SEGMENT PARA 'veri' sayi1 DB 17 sayi2 DB 29 sonuc DW ? myds ENDS mycs SEGMENT PARA 'kod' ASSUME CS:mycs, DS:myds, SS:myss ILK PROC FAR PUSH DS XOR AX, AX PUSH AX MOV AX, myds MOV DS, AX MOV BL, sayi1 MOV...
SECTION code_clib SECTION code_l_sccz80 PUBLIC l_mult PUBLIC l_mult_u PUBLIC l_mult_0 ; Entry: hl = value1 ; de = value2 ; Exit: hl = value1 * value2 .l_mult .l_mult_u ld bc,hl .l_mult_0 defb 0xf7 ; mul : hlbc = bc * de ld hl,bc ret
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0001 (0x000002) 0x2940- f:00024 d: 320 | OR[320] = A 0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000) 0x0003 (0x000006) 0x2941- f:00024 d: 321 | OR[321] = A ...
include raster.i CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP public pj_bli1 ;extern void pj_bli1(Vscreen *dv, int w, int h, int sx, int sy, int dx, dy, ; UBYTE *sp, int sbpr, int color); ;Blit a bitplane into memory byte-a-pixel plane. pj_bli1 proc near bli1p struc ;pj_...
;============================================================================== ; Contents of this file are copyright Phillip Stevens ; ; You have permission to use this for NON COMMERCIAL USE ONLY ; If you wish to use it elsewhere, please include an acknowledgement to myself. ; ; https://github.com/feilipu/ ; ; https:...
; OBSERVE EFFECT OF MUL AND DIV ON FLAGS CODE SEGMENT ASSUME CS:CODE ; MULTIPLICATION IN WORD FORMAT MOV AX,23h MOV BX,25h XOR DX,DX MUL BX ; AT THIS POINT WE CHECK THE FLAGS MOV AX,0FFFEh ;65534 MOV BX,0FF06h ;65286 MOV DX,0 DIV BX ; AT THIS POINT WE CH...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: visDigitalClock.asm AUTHOR: Adam de Boor, Feb 2, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Da...
; convpng v7.3 ; 8 bpp image _ico_folder_size equ 258 _ico_folder: db 16,16 db 0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh db 0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0F5h,0F5h,0F5h,0F5h,0F5h,0F5h,0F5h db 0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0F5h,0F5h,0F5h,0F5h,0F5h,...
; L0810.asm graves landing ; Generated 11.05.2000 by mlevel ; Modified 11.05.2000 by Abe Pralle INCLUDE "Source/Defs.inc" INCLUDE "Source/Levels.inc" LIGHTINDEX EQU 40 VAR_LIGHT EQU 0 ;--------------------------------------------------------------------- SECTION "Level0810Section",ROMX ;----------------------------...
; ; SECTION code_clib PUBLIC printc_MODE1 EXTERN generic_console_font32 EXTERN generic_console_udg32 EXTERN generic_console_flags printc_MODE1: ld l,d ld h,0 ld de,(generic_console_font32) bit 7,l jr z,not_udg res 7,l ld de,(generic_console_udg32) inc d not_udg: add hl,hl add hl,hl add h...