content
stringlengths
23
1.05M
.data text: .asciiz "Enter a number: " .text main: # Printing out the text li $v0, 4 la $a0, text syscall # Getting user input li $v0, 5 syscall # Moving the integer input to another register move $t0, $v0 # Printing out the number li $v0, 1 move $a0, $t0 ...
TITLE RESNAM - Copyright (C) 1994 SLR Systems INCLUDE MACROS INCLUDE RESSTRUC if fg_segm PUBLIC INSTALL_RESOURCE_NAME .DATA EXTERNDEF SYMBOL_TEXT:BYTE EXTERNDEF SYMBOL_LENGTH:DWORD,RESNAME_HASH:DWORD,RESOURCE_NAME_OFFSET:DWORD,RESNAME_HASH_TABLE_PTR:DWORD EXTERNDEF FIRST_RESNAME_GINDEX:DWORD,LAST...
//ANCHOR 10 //A comment //BEGIN: //LDA *6,1 //ADD *KB,3 //TCA B //ADD C //STA D //ADD *A //LDX B,3 //TDX D, 3 //HLT //A BSC 5, //B BSC 7 //C BSC -3 //H ALIAS -32 //87 ALIAS Y //-65 ALIAS 86 //G ALIAS /M //U ALIAS M*98 //q ALIAS M+I //D BSS 0 //D BSS -45 //D BSS U //END 89
*PROCESS DUPALIAS * * Compiled by DCC Version 2.25.07 Mar 6 2021 08:51:07 * on Fri Apr 30 15:35:21 2021 * WXTRN @@ZARCH# * * * * Code Section * @CODE ALIAS X'7CD9C4D2C1C6D2C16DC1E2E2C9C7D5D4C5D5E3' @CODE CSECT @CODE AMODE ANY @CODE RMODE ANY @DATA ALIAS X'7C998492818692816D81A2A2...
Entity start Constants 0 S start 1 S var1 2 S var2 3 I 10 4 I 1 5 S writeln 6 I 20 End Def start Local variables 0 int var1 1 int var2 End ldconst 3 --> [10] stvar 0 --> [var1] ldvar 0 --> [var1] ldconst 4 --> [1] lcall 5 --> [writeln] ldconst 6 --> [20] stvar 1 --> [var2] ldv...
; Minimum code that passes a test .include "test65.i65" .export _main .pc02 .zeropage mem1: .res 32 .code _main: tests_pass
; ; MSX specific routines ; ; GFX - a small graphics library ; Copyright (C) 2004 Rafael de Oliveira Jannone ; ; extern clg(); ; ; Init and clear graphics screen ; ; $Id: clg.asm $ ; SECTION code_clib PUBLIC clg PUBLIC _clg EXTERN msxbios EXTERN msx_set_mode EXTERN __tms9918_attribute EXTERN __tms99...
; float modf(float value, float *iptr) __z88dk_callee SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdcciy_modf_callee, l0_cm48_sdcciy_modf_callee EXTERN cm48_sdcciyp_d2m48, am48_modf, cm48_sdcciyp_dstore, cm48_sdcciyp_m482d cm48_sdcciy_modf_callee: pop af pop de pop hl ; ...
incasm "kernel.hdr" main @loop jsr console.clear$ lda #color.white$ sta console.setcharactercolor.color$ jsr console.setcharactercolor$ lda #<title sta console.writestr.straddress$ lda #>title sta console.writestr.straddress$+1 jsr console.writ...
bits 64 default rel segment .bss segment .data format_result db "%d", 0 zetko db "hello", 0xd, 0xa, 0 x dd 5 y dd 0 segment .text global main extern ExitProcess extern printf main: push rbp mov rbp, rsp sub rsp, 32 mov rbx, [x] mov rax, 5 mul rbx mov [y], rax lea rcx, [format_result] mov rdx, [y] call printf lea rcx, ...
;/***************************************************************************** ; * ; * XVID MPEG-4 VIDEO CODEC ; * - RGB colorspace conversions - ; * ; * Copyright(C) 2002-2008 Michael Militzer <michael@xvid.org> ; * 2002-2003 Peter Ross <pross@xvid.org> ; * ; * This program is free software ; you ca...
.model small .stack 100h .data msg1 db 'all the ascii charecters $' .code main proc mov ax, @data mov ds, ax lea dx,msg1 mov ah,9 int 21h mov ah,2 mov dl,0Dh int 21h mov dl,0Ah int 21h mov dl,0 mov cx,255 program_loop: int 21h inc dl dec cx jnz progra...
%include "io.inc" %define size 32 section .bss input resb size output resb size section .text global CMAIN CMAIN: GET_STRING input, size mov ESI, input mov EDI, output cld .loop: lodsb cmp AL, 0 je .exit cmp AL, " " je .loop ...
;*************************************************************************** ;* ;* MAIN.ASM - Standard ROM-image header ;* ;* All fields left to zero since RGBFix does a nice job of filling them in ;* in for us... ;* ;*************************************************************************** INCLUDE "hardwa...
;****************************************************************************** ;* x86-optimized functions for the CFHD encoder ;* Copyright (c) 2021 Paul B Mahol ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under the terms of the GNU Lesser General Publi...
; 8.6.1.0390 2LITERAL $COLON '2LITERAL',$2LITERAL,VEF_IMMEDIATE_COMPILE_ONLY CWLIT $2LIT CW $COMPILEC, $SWAP, $COMMA, $COMMA $END_COLON
export InitTrigger code proc InitTrigger 12 8 ADDRFP4 0 ADDRFP4 0 INDIRP4 ASGNP4 ADDRFP4 0 INDIRP4 CNSTI4 116 ADDP4 ARGP4 ADDRGP4 vec3_origin ARGP4 ADDRLP4 0 ADDRGP4 VectorCompare CALLI4 ASGNI4 ADDRLP4 0 INDIRI4 CNSTI4 0 NEI4 $54 ADDRFP4 0 INDIRP4 CNSTI4 116 ADDP4 ARGP4 ADDRFP4 0 INDIRP4 CNSTI4 672 ADDP4 ARGP4 ADDRGP4 ...
global loadIdt global get_pagefault_addr loadIdt: mov eax, [esp+4] lidt [eax] ret get_pagefault_addr: mov eax, cr2 ret
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 186 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %110 OpExecutionMode %4 Origin...
; $Id: bs3-mode-PagingGetRootForPP32.asm $ ;; @file ; BS3Kit - Bs3PagingGetRootForPP32 ; ; ; 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 it and/or modify it un...
;*! ;* \copy ;* Copyright (c) 2009-2013, Cisco Systems ;* 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 abo...
; A164910: Partial sums of A088748 ; 1,3,6,8,11,15,18,20,23,27,32,36,39,43,46,48,51,55,60,64,69,75,80,84,87,91,96,100,103,107,110,112 mov $1,$0 lpb $1 mov $2,$1 sub $1,1 seq $2,5811 ; Number of runs in binary expansion of n (n>0); number of 1's in Gray code for n. add $0,$2 lpe add $0,1
; Machine IDs #define TIMEOUT_SECS 1 #define MID_PC_82 0x02 #define MID_PC_83 0x03 #define MID_PC_8X 0x23 #define MID_CALC_8X 0x73 #define MID_CALC_82 0x82 #define MID_CALC_83 0x83 #define MID_TI_KEYBOARD 0xE0 #define MID_KOS_RESERV...
.data fc1: .byte 0x00 .byte 0x00 .byte 0x53 .byte 0x40 fc2: .byte 0x00 .byte 0x00 .byte 0xa3 .byte 0x3b global_volume: .byte 0x00 .byte 0x00 .byte 0x80 .byte 0x3f end_fade: .byte 0x00 .byte 0xff .byte 0x7f .byte 0x3f stereo_mod: .byte 0x00 .byte 0x62 .byte 0x80 .byte 0x3f main_tune: .byte 0x00 .byte 0x81 .byte 0x4f .by...
;; ;; Copyright (c) 2021, 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 the ...
copyright zengfr site:http://github.com/zengfr/romhack 012A44 move.b (-$28,A5), ($1b2,A5) [base+1B4] 012A4A move.w #$500, ($1ba,A5) [base+1B2] 012AA2 bpl $12ae4 [base+1B2] 012AAA subq.b #1, ($1b4,A5) [base+1B2] 012BA6 cmpi.b #$a, D4 [base+1B2] 01A610 dbra D1, $1a60e 01AD74 cmpi.b #$3b, ($1b2,A5) [b...
;----------------------------------------------------------------------------------------------- ; Error numbers from linux-2.6.38.2/include/asm-generic/errno-base.h ; 18th April 2011 ; note: raw syscalls (as opposed to the libc wrappers which return -1 and set errno) ; generate negative return values in EAX for ...
; egg_hunter.asm ; ; Author: Dennis Tan ; Date: 06-June-2020 global _start section .text: _start: xor edx, edx ; clear edx register next_page: ; set 4096 bytes pagefile for linux environment or dx, 0xfff ; used 0xfff and inc due to NULL bytes next_ad...
* = $0000 .byte 0 ; ; 0000,1 Mapping ; 0002,9FFF RAM ; A000,BFFF ROM image ; C000,CFFF RAM ; D000,DFFF Probably I/O mapped here. ; E000,FFF ROM image ; vwrite .macro ldz #\1 lda #\2 nop sta ($04),z .endm * = $E000 ; find out how much leeway. PETFont: .binary "c64-chargen.rom" * =...
; ; $Id: 0x2d.asm,v 1.1.1.1 2016/03/27 08:40:13 raptor Exp $ ; ; 0x2d explanation - from xchg rax,rax by xorpd@xorpd.net ; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info> ; ; This nifty snippet determines if the positive integer ; in rax is a power of two, by performing the following ; operation: ; ; rax & (...
; Original address was $B481 ; 5-2 vertical underground .word W502L ; Alternate level layout .word W502O ; Alternate object layout .byte LEVEL1_SIZE_12 | LEVEL1_YSTART_170 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG .byte LEVEL3_TILESET_14 | LEVEL3_VERTICAL | LEVEL3_VSCROLL_FREE...
// Results in infinite compile loop as the compiler keeps trying to remove the same (empty) alias // Commodore 64 PRG executable file .file [name="infloop-error.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segme...
; int w_vector_shrink_to_fit(w_vector_t *v) SECTION code_clib SECTION code_adt_w_vector PUBLIC w_vector_shrink_to_fit EXTERN asm_w_vector_shrink_to_fit defc w_vector_shrink_to_fit = asm_w_vector_shrink_to_fit
; unsigned char ulap_attr_from_pentp_penti(unsigned char pentp,unsigned char penti) SECTION code_clib SECTION code_arch PUBLIC ulap_attr_from_pentp_penti EXTERN asm_ulap_attr_from_pentp_penti ulap_attr_from_pentp_penti: pop af pop de pop hl push hl push de push af ld h,e jp asm_ulap...
; A114054: Decimal expansion of 998998998998998998998998998/9. ; 1,1,0,9,9,9,8,8,8,7,7,7,6,6,6,5,5,5,4,4,4,3,3,3,2,2,2 mov $1,1 mov $2,3 mov $4,2 mov $5,$0 lpb $0,1 mov $0,2 add $2,3 mov $1,$2 mov $2,4 mov $3,1 add $3,$4 add $3,1 lpe add $1,6 sub $2,1 div $5,$2 sub $1,$5 mov $6,6 sub $6,$3 sub $1,$6
INCLUDE "romdefs.inc" SECTION code_clib GLOBAL _zx_rom_pause_1 _zx_rom_pause_1: ld b,h ld c,l jp ROM3_PAUSE_1
[bits 16] [org 0x7c00] struc flatpe .entry: resd 1 .sections: resd 1 .payload: endstruc struc flatpe_section .vaddr: resd 1 .size: resd 1 .data: endstruc entry: ; Disable interrupts and clear the direction flag cli cld ; Set the A20 line in al, 0x92 or al, 2 out 0x92, al ; Zero out DS for ...
segment .text extern printIntC extern printCharC extern printNLC extern printFloatC global foo_id global foo_idf global foo_testTrivial global foo_testVars global foo_testArgs global foo_testArgsAndVars global foo_testLogic global foo_float2int global foo_floatMath global foo_int2float global foo_loopTest global foo_f...
INCLUDE "constants/hardware.inc" INCLUDE "constants/other-hardware.inc" INCLUDE "constants/actors.inc" INCLUDE "constants/screens.inc" INCLUDE "constants/title.inc" INCLUDE "constants/transition.inc" SECTION UNION "Game Variables", HRAM ; Number of frames left in a flash hFlashCountdown: DS 1 SECTION "Title Scre...
; This file contains the code that is going to be linked at the beginning of ; the kernel binary. ; It should contain core CPU initialisation routines such as entering ; long mode. global _start global cmdline extern textmodeprint extern clearscreen extern check_cpuid extern check_long_mode extern paging_init extern ...
addi x1, x0, 15 addi x2, x0, 6 addi x3, x0, -5 add x4, x1, x2 add x4, x4, x3 sub x4, x4, x1 sd x4, 64(x0)
global gdt_flush global idt_flush ;;;;;;;;;;;;;;; GDT ;;;;;;;;;;;;;;; gdt_flush: mov eax, [esp+4] lgdt [eax] mov ax, 0x10 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax jmp 0x08:.flush .flush: ret ;;;;;;;;;;;;;;; IDT ;;;;;;;;;;;;;;; idt_flush: mov eax, [esp+4] lidt [eax] ret ;;;;;;;;;;;;;;...
; ============================================================================= ; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems ; Copyright (C) 2008-2010 Return Infinity -- see LICENSE.TXT ; ; String Functions ; ============================================================================= alig...
db "WHISKERS@" ; species name db "It claims a large" next "swamp to itself." next "If a foe comes" page "near it, it sets" next "off tremors by" next "thrashing around.@"
include 'a32.inc' _start: PUSH R0 JMPF MainClass.Main MainClass.Main: ; whoops :P ; This is a simple application written for the VM! ; As you can see we do a "NATIVE_CALL" instruction right here. NATIVE_CALL lib_test,proc_test,0 VM_EXIT _end_start: _data: lib_test: db "./test.so", 0 ; Is the name of the library. pr...
match_sound: mov CX,400 ; frecuencia en Hz call STARTSOUND mov CX,3 call sound_delay mov CX,650 ; frecuencia en Hz call STARTSOUND mov CX,3 call sound_delay call STOPSOUND ret sound_delay: call procedure_delay loop sound_delay ret STARTSOUND: push ax ...
; void __CALLEE__ sp1_Initialize_callee(uchar iflag, uchar colour, uchar tile) ; 03.2006 aralbrec, Sprite Pack v3.0 ; sinclair zx version SECTION code_temp_sp1 PUBLIC sp1_Initialize_callee sp1_Initialize_callee: pop bc pop hl pop de ld h,e pop de ld a,e push bc INCLUDE "temp/sp1/zx/updater/...
; void *p_forward_list_pop_front(p_forward_list_t *list) SECTION code_clib SECTION code_adt_p_forward_list PUBLIC _p_forward_list_pop_front EXTERN _p_forward_list_remove_after defc _p_forward_list_pop_front = _p_forward_list_remove_after
.text .globl y .type y, #function y: save %sp, -96, %sp st %i0, [%fp+68] sethi %hi(_impure_ptr), %g1 bset %lo(_impure_ptr), %g1 ld [%g0+%g1]0, %g1 ld [%g1+8], %g1 ld [%g1+8], %g2 inc -0x1, %g2 st %g2, [%g1+8] ld [%g1+8], %g1 cmp %g1, 0 bge .L400012CC nop .L400011D0: sethi %hi(_impure_pt...
%include "lib.asm" extern ExitProcess global _start %macro geti 0 fgets buffer, 12 a2i 12, buffer %endmacro %macro geti 1 puts %1 geti %endmacro %macro puti 1 i2a DWORD %1, buffer puts buffer %endmacro section .text MAX_COL EQU 10 MAX_ROW EQU 10 NULL EQU 0 CRLF db 0DH, 0AH, NULL CEQ db "= ", NULL CTAB...
COMMENT @----------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: Geode FILE: geodeSystem.asm ROUTINES: Name Description ---- ----------- TABLES: Name Description ---- ----------- SystemGeodeTab...
;/** ; * @file ; * ; * Ids Assembly library 32bit ; * ; * @xrefitem bom "File Content Label" "Release Content" ; * @e project: AGESA ; * @e sub-project: IDS ; * @e \$Revision: 14305 $ @e \$Date: 2009-05-24 02:20:55 +0800 (Sun, 24 May 2009) $ ; */ ;****************************************************************...
Map_2294B4: dc.w Frame_2294C8-Map_2294B4 ; ... dc.w Frame_2294CC-Map_2294B4 dc.w Frame_2294DA-Map_2294B4 dc.w Frame_2294FA-Map_2294B4 dc.w Frame_229514-Map_2294B4 dc.w Frame_229540-Map_2294B4 Map_AIZDisappearingFloor2: Map_2294C0: dc.w Frame_229566-Map_2294C0 ; ... dc.w Frame_2295A4-Map_2294C0 dc.w Frame_...
; ; Amstrad CPC library ; Set Border Color ; ****************************************************** ; ** Librería de rutinas para Amstrad CPC ** ; ** Raúl Simarro, Artaburu 2009 ** ; ****************************************************** ; ; $Id: cpc_SetBorder.asm $ ; ...
IDEAL MODEL large P386 PUBLIC C hzpic, C font SEGMENT kakka0 para use16 private 'FAR_DATA' LABEL hzpic BYTE INCLUDE 'hoi.in0' ENDS SEGMENT kakka1 byte use16 private 'FAR_DATA' INCLUDE 'hoi.in1' ENDS SEGMENT asdf byte use16 private 'FAR_DATA' LABEL font byte INCLUDE 'fona.inc' ...
SECTION code_clib PUBLIC asm_im1_handler EXTERN im1_vectors EXTERN asm_interrupt_handler asm_im1_handler: push af push hl ld hl,im1_vectors call asm_interrupt_handler pop hl pop af ei reti
; ------------------------------------------------------------------ ; About MichalOS ; ------------------------------------------------------------------ %INCLUDE "michalos.inc" start: mov bx, .footer_msg call draw_background call os_draw_logo mov16 dx, 2, 10 call os_move_cursor mov si, osnam...
SECTION code_fp_mbf32 PUBLIC ldexp ; float ldexpf (float x, int16_t pw2) ldexp: ld hl,2 add hl,sp ld c,(hl) ;pw2 ld hl,7 add hl,sp ;exponent ld a,(hl) and a jr z,skip add c skip: ld d,a dec hl ld e,(hl) dec hl ld a,(hl) dec hl ld l,(hl) ld h,a ret
SECTION CODE PUBLIC _xprintf EXTERN _printf _xprintf: EXX ld (SAVE_REGS), HL POP HL ; RETURN ADDRESS LD (SAVE_RET), HL EXX CALL _printf EXX LD HL, (SAVE_REGS) EXX JP 0 SAVE_RET EQU $-2 SAVE_REGS: DS 2
; Copyright © 2018, VideoLAN and dav1d authors ; Copyright © 2018, Two Orioles, LLC ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copy...
[bits 32] %define VIDMEM 0xB8000 ; Video memory mapped %define COLUMNS 80 ; Width and height of screen (80x25) %define ROWS 25 %define CHAR_ATTRIB 0x02 ; Character attribute ; Prints a character ; Input: ; BL - The character to print print_char_32: pusha mov edi, VIDMEM ; Let EDI point to the star...
;//Maiusc. > 64 && < 91 Minusc. > 96 && < 123 fator de conversao: |32| ;i = 0 ;while(char[i] != '\0') ;{ ; if(char[i] > 64) ; if(char[i] > 96) ; char[i] -= 32 ; else ; char[i] += 32 ;} org 0x7c00 jmp 0x0000:_start ;Declaracao de variaveis string times 64 db 0 string1: db "Oi", 10, 13, 0 string2: db "...
TITLE PROLOG - INCLUDE MACROS PUBLIC PERFORM_VERIFY .DATA SOFT EXTB SYMBOL_TPTR SOFT EXTW SYMBOL_LENGTH SOFT EXTCA OPTI_MOVE .CODE MIDDLE_TEXT SOFT EXTP FAR_INSTALL,SEARCH_RAINBOW_AXBXXX,ERR_ABORT,AX_MESOUT,LNAME_INSTALL SOFT EXTA CANNOT_LINK_ERR ASSUME DS:NOTHING PERFORM_VERIFY PROC ; ...
; ; Disk utilities of MSDOS ; INCLUDE DOSSEG.ASM CODE SEGMENT BYTE PUBLIC 'CODE' ASSUME SS:DOSGROUP,CS:DOSGROUP .XLIST .xcref INCLUDE DOSSYM.ASM INCLUDE DEVSYM.ASM .cref .list TITLE ROM - miscellaneous routines NAME ROM i_need CLUSNUM,WORD i_need NEXTADD,WORD...
-- 7 Billion Humans (2087) -- -- 44: Unique Fashion Party -- -- Author: landfillbaby -- Size: 34 -- Speed: 45 pickup s a: step s if s != wall: jump a endif step e step e b: step e if se != hole: jump b endif step e if myitem == 6: jump c endif if myitem == 5: jump d endif if myitem == 4: jump e endif if myitem =...
.device ATtiny10 ; +====+ ; PWMA/PB0 |* | PB3 (RESET) ; GND | | Vcc ; PWMB/PB1 | | PB2 (CLKO) ; +====+ .fuses rstdisbl .eq SREG = 0x3F ; Status Register .eq SPH = 0x3E ; Stack Pointer Register (high byte) .eq SPL = 0x3D ; Stack Pointer Register (low byte) .eq PUEB = 0x0...
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # E...
; ; segment ordering for MSDOS ; CONSTANTS SEGMENT BYTE PUBLIC 'CONST' CONSTANTS ENDS DATA SEGMENT BYTE PUBLIC 'DATA' DATA ENDS CODE SEGMENT BYTE PUBLIC 'CODE' CODE ENDS LAST SEGMENT BYTE PUBLIC 'LAST' LAST ENDS DOSGROUP GROUP CODE,...
;; This routine reads a block of binary data into memory from the built-in ;; serial interface on the ZX Spectrum 128k +3 and +2A models. ;; ;; On entry: ;; hl = base address for block to be written to ;; bc = number of bytes to read ;; ;; On exit: ;; CF = set if read is successful; reset otherwi...
; ; MSX-MUSIC YM2413 OPLL driver ; MSXMusic_ADDRESS: equ 7CH MSXMusic_DATA: equ 7DH MSXMusic_ID_ADDRESS: equ 4018H MSXMusic_ENABLE_ADDRESS: equ 7FF6H MSXMusic_CLOCK: equ 3579545 MSXMusic: MACRO super: Driver MSXMusic_name, MSXMusic_CLOCK, Driver_PrintInfoImpl slot: db 0 internal: db 0 ; e = register ; d = va...
;Include this after your interrupt routine Interrupts_Done: ifdef Interrupts_ProtectShadowRegisters pop hl ;Restore the shadow registers if needed pop de pop bc pop af endif exx ex af,af' ifdef Interrupts_NeedAllRegisters ;restore the normal registers if needed pop iy pop ix pop hl pop ...
; %include "../defaults_com.asm" %include "../../defaults_bin.asm" %macro setNextStartAddress 0 mov bl,ch ; 2 0 2 mov bh,lineTable >> 8 ; 2 0 2 mov ah,[bx] ; 2 1 3 mov al,0x0d ; 2 0 2 out dx,ax ; 1 2 3 m...
// Test pointer to const and const pointer combined with typedef // Commodore 64 PRG executable file .file [name="pointer-const-typedef.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="C...
# here i am testing the third rule # there is a more efficient wayy to test it with loops. But thats faster to do and easier to understand .include "../src/constants_settings.asm" # at this point it is not a mather where the cell is. i will check the status bit li a1, 0 # i have a pixel check in it so i need an ad...
dc.w word_42F0A-Map_LRZShootingTrigger dc.w word_42F12-Map_LRZShootingTrigger word_42F0A: dc.w 1 ; DATA XREF: ROM:00042F06o dc.b $F4, $A, 0, $10, $FF, $F4 word_42F12: dc.w 1 ; DATA XREF: ROM:00042F06o dc.b $FC, 0, 0, $19, $FF, $FC
; void ba_priority_queue_clear(ba_priority_queue_t *q) SECTION code_clib SECTION code_adt_ba_priority_queue PUBLIC ba_priority_queue_clear EXTERN asm_ba_priority_queue_clear defc ba_priority_queue_clear = asm_ba_priority_queue_clear ; SDCC bridge for Classic IF __CLASSIC PUBLIC _ba_priority_queue_clear defc _ba_p...
SECTION code_fp_math16 PUBLIC tanf16 EXTERN _m16_tanf defc tanf16 = _m16_tanf ; SDCC bridge for Classic IF __CLASSIC PUBLIC _tanf16 EXTERN cm16_sdcc_tan defc _tanf16 = cm16_sdcc_tan ENDIF
ORG 0 LJMP MAIN ORG 0030 MAIN: MOV R2, #002H LOOP1: MOV R1, #010H LOOP2: DJNZ R1, LOOP2 DJNZ R2, LOOP1 CPL P1.0 LJMP MAIN
tilecoll 01, 01, 01, 01 ; 00 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 01 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 02 tilecoll TALL_GRASS, TALL_GRASS, TALL_GRASS, TALL_GRASS ; 03 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 04 tilecoll WALL, WALL, WALL, WALL ; 05 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 06 tilecoll FLOOR, FLOOR...
_read_eeprom: ;eeprom_manager.c,11 :: unsigned int read_eeprom( char addrh, char addr) { ;eeprom_manager.c,13 :: EEADR = addr; MOVF FARG_read_eeprom_addr+0, 0 MOVWF EEADR+0 ;eeprom_manager.c,14 :: EEADRH = addrh; MOVF FARG_read_eeprom_addrh+0, 0 MOVWF EEADRH+0 ;eeprom_manager.c,15 :: ...
Route11Mons: db $0F IF DEF(_RED) db 14,EKANS db 15,SPEAROW db 12,EKANS db 9,DROWZEE db 13,SPEAROW db 13,DROWZEE db 15,EKANS db 17,SPEAROW db 11,DROWZEE db 15,DROWZEE ENDC IF DEF(_BLUE) db 14,SANDSHREW db 15,SPEAROW db 12,SANDSHREW db 9,DROWZEE db 13,SPEAROW db 13,DROWZEE db 15,SAND...
;++ ; ; WOW v1.0 ; ; Copyright (c) 1991, Microsoft Corporation ; ; USER.ASM ; Win16 USER thunks ; ; History: ; ; Created 25-Jan-1991 by Jeff Parsons (jeffpar) ; Added Win 31 thunks 22nd-March-1992 by Chandan S. Chauhan (ChandanC) ; ;-- TITLE USER.ASM PAGE ,132 ; S...
; Gold Card timing constants ; 2020-04-09 1.01 adapt to changed keys in sys_gold_keys (wl) section init xdef nd_gold xref nd_initb xref nd_proctab xref ut_procdef include 'dev8_sys_gold_keys' nd_gold lea ndt_sgl,a1 tst.w glk.card+glx_ptch ; patch to 16 MHz? beq.s ndg_init lea ndt_g16,a1 ndg_init jsr ...
;Sprite source code generated with EASYSOURCE  1990 Albin Hessler Software ;************************************************************************** ;Sprite -> delcol <- 1992 Feb 14 11:27:20 section sprite xdef mes_delx mes_delx sp1 dc.w $0100,$0000 ;form, time/adaption dc.w $0018,$000F ...
10003750: a1 10 52 01 10 mov eax,ds:0x10015210 10003755: 85 c0 test eax,eax 10003757: 74 06 je 0x1000375f 10003759: 50 push eax 1000375a: e8 e7 00 00 00 call 0x10003846 1000375f: b8 01 00 00 00 mov eax,0x1 10003764: c7 05 10 52 01 1...
TITLE InputForParserGROUP1 ADD 1, 37 (0) SUB 2, X"B3DF (1) AND 3, O"314232 (2) OR 0, B"1010010110100101 (3) XOR 1, 43 MULT 2, X"B2F2 DIV 3, O"172712 CMP 0, B"1011010011001101 EX 1, (0) END
FanClubObject: db $d ; border block db $2 ; warps db $7, $2, $1, $ff db $7, $3, $1, $ff db $0 ; signs db $6 ; objects object SPRITE_FISHER2, $6, $3, STAY, LEFT, $1 ; person object SPRITE_GIRL, $1, $3, STAY, RIGHT, $2 ; person object SPRITE_SNAKE2, $6, $4, STAY, LEFT, $3 ; person object SPRITE_SEEL, $1, $4,...
* Spreadsheet 11/03/92 O.Fink * - file loading include win1_keys_wwork include win1_keys_wstatus include win1_keys_qdos_io include win1_keys_err include win1_spread_keys include win1_mac_oli section prog xdef fil_load xref cfg_cgap,cfg_calc xref.l wst_main,mv_mcnr xref...
; ; Sharp OZ family port (graphics routines) ; Stefano Bodrato - Aug 2002 ; ; ; Clear the graph. screen ; ; ; $Id: clg.asm,v 1.4 2015/01/19 01:32:49 pauloscustodio Exp $ ; PUBLIC clg EXTERN base_graphics EXTERN swapgfxbk EXTERN swapgfxbk1 .clg call swapgfxbk ld hl,(base_graphics) ld d,h ...
FishingSlots:: db PALLET_TOWN,STARYU,10,TENTACOOL,10,STARYU,5,CHINCHOU,20 db VIRIDIAN_CITY,POLIWAG,5,POLIWAG,10,POLIWAG,15,POLIWAG,10 db CERULEAN_CITY,GOLDEEN,25,CORSOLA,30,SEAKING,30,SEAKING,40 db VERMILION_CITY,TENTACOOL,15,TENTACOOL,20,TENTACOOL,10,HORSEA,5 db CELADON_CITY,GOLDEEN,5,GOLDEEN,10,GOLDEEN,15,GOLDEE...
dnl AMD K6 mpn_mul_basecase -- multiply two mpn numbers. dnl Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or dnl modify it under the terms of the GNU Lesser General Pu...
COMMENT @----------------------------------------------------------------------- Copyright (c) Geoworks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: importTraverseTree.asm AUTHOR: Cheng, 10/91 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Descr...
namespace debugger { seek(codeCursor) namespace write { //A => character count //X => target index function bpp2 { enter; ldb #$00 vwait(); tay lda.w #render.buffer >> 0; sta $4302 lda.w #render.buffer >> 16; sta $4304 txa; mul(16); add #$8000; lsr; sta $2116 tya; mul(32); sta $4305; se...
; uint z180_get_int_state(void) SECTION code_clib SECTION code_z180 PUBLIC z180_get_int_state EXTERN asm_z180_get_int_state defc z180_get_int_state = asm_z180_get_int_state
;------------------------------------------------------------------------------- ; except.nasm - exceptions handling. ;------------------------------------------------------------------------------- %include "cpu/descript.ah" ; --- Definitions --- ; Macro which sets things up to call the generic exception handler ; ...
;----------------------------------------------- init_object_screen_coordinates: ld a,(n_objects) or a ret z ld iy,objects ld b,a init_object_screen_coordinates_loop: push bc ld a,(iy) bit 7,a ; enemies are marked with the msb = 1 jr z,init_object_screen_coordinates_loop_skip call update_enemy_screen_coo...
; uchar tshc_saddr2py(void *saddr) SECTION code_clib SECTION code_arch PUBLIC tshc_saddr2py EXTERN zx_saddr2py defc tshc_saddr2py = zx_saddr2py
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: netwareEntry.asm AUTHOR: Adam de Boor, Mar 29, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date ...
# Zeynep Cankara -- 15/05/2019 # Course: CS224 # Section: 2 # Lab: 7 # Version: 1.0 # lab7.asm -- Description: Introduction to PIC32 Programming (Programme 1) # ========== TEXT SECTION ============ ### .text .globl __start __start: # // Program No 1 # char junk; # SPI2ACONbits.ON = 0; initspi: # // load th...
TILESET_MENUS_BANK_NUMBER = CURRENT_BANK_NUMBER tileset_menus: ; Tileset's size in tiles (zero means 256) .byt (tileset_menus_end-tileset_menus_tiles)/16 tileset_menus_tiles: ; Full backdrop color ; ; 00000000 ; 00000000 ; 00000000 ; 00000000 ; 00000000 ; 00000000 ; 00000000 ; 00000000 .byt $00, $00, $00, $00, $00,...