content
stringlengths
23
1.05M
#if VERBOSE = 1 LASTINIT SET . #endif processor 6502 multicolor SUBROUTINE ; Prepare data struct for MultiColor mode ; ---------------------------------------------------------------------- multicolorInit: ; Tell VIC-II to use: ; - screen text memory at $400 = $400 * 1 ; - characters ROM at $2000 = $400 * 8 l...
; float __fssub (float left, float right) SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdcciyp_dssub EXTERN cm48_sdcciyp_dread2, am48_dsub, cm48_sdcciyp_m482d cm48_sdcciyp_dssub: ; subtract two sdcc floats ; ; enter : stack = sdcc_float right, sdcc_float left, ret ; ; exit : dehl = sdcc_fl...
dnl mpn_copyi dnl Copyright 2009 Jason Moxham dnl This file is part of the MPIR Library. dnl The MPIR 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; either version 2.1 of the Licen...
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it) ; * ; * Licens...
; Original address was $B73A ; 2-5 .word W205_BonusL ; Alternate level layout .word Empty_ObjLayout ; Alternate object layout .byte LEVEL1_SIZE_10 | LEVEL1_YSTART_180 .byte LEVEL2_BGPAL_04 | LEVEL2_OBJPAL_10 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_09 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT .byte LEVEL4_BGBA...
EXTERN exit-1 section .text global _main _main: call exit-1
macro hR0 m0,m1,m2,m3,m4,m5,m6,m7,lim,src { vpaddq ymm0,ymm0,ymm4 vpaddq ymm1,ymm1,ymm5 vpaddq ymm2,ymm2,ymm6 vpaddq ymm3,ymm3,ymm7 if m0<lim vpaddq ymm0,ymm0, yword [src+m0*32] end if if m1<lim vpaddq ymm1,ymm1, yword [src+m1*32] end if if m2<lim vpaddq ymm2,ymm2, yword [src+m2*32] end if if m3<lim vpa...
; size_t wv_priority_queue_max_size(wv_priority_queue_t *q) SECTION code_clib SECTION code_adt_wv_priority_queue PUBLIC wv_priority_queue_max_size EXTERN asm_wv_priority_queue_max_size defc wv_priority_queue_max_size = asm_wv_priority_queue_max_size ; SDCC bridge for Classic IF __CLASSIC PUBLIC _wv_priority_queue...
;/*! ; @file ; ; @ingroup fapi ; ; @brief DosQHandType DOS wrapper ; ; (c) osFree Project 2018, <http://www.osFree.org> ; for licence see licence.txt in root directory, or project website ; ; This is Family API implementation for DOS, used with BIND tools ; to link required API ; ; @author Yuri Prokushe...
segment .data fmt: db "%d",10,0 fmt2: db "even",10,0 fmt3: db "odd",10,0 segment .bss a: resq 1 b: resq 1 segment .text global main extern printf extern scanf main: push RBP xor rax,rax mov rcx ,10 xor rbx,rbx rp: inc rax push rax push rcx add rbx,rax pop rcx pop rax loop rp mov rdi, fmt mov rsi, rbx call printf pop ...
; cod segment assume es:cod, ds:dan mov ax,dan mov ds,ax ; mov ax,351bh int 21h mov wordptr vec_1bh,bx mov wordptr vec_1bh+2,es ; mov ax,251bh push ds push cs pop ds lea dx,break int 21h ; mov ax,2523h lea dx,ctrlc int 21h pop ds ; ring:mov ah,02h mov dl,sym int 21h ; jmp ring ; break:...
bits 16 actively_cause_global_warming16: test cx, cx jz .done push bx push ax xor al, al .warm_up: mov bx, 0xffff .warm_up1: out 0x80, al dec bx jnz .warm_up1 dec cx jnz .warm_up pop ax pop bx .done: ret demo_lines: db 0 puts16: push ax push bx mov ah,...
object_const_def ; object_event constants const WILLSROOM_WILL WillsRoom_MapScripts: db 2 ; scene scripts scene_script .LockDoor ; SCENE_DEFAULT scene_script .DummyScene ; SCENE_FINISHED db 1 ; callbacks callback MAPCALLBACK_TILES, .WillsRoomDoors .LockDoor: prioritysjump .WillsDoorLocksBehindYou end .Dumm...
/* * This test calculates a CRC-32 checksum of a small byte array * CRC32("123456789")=0xCBF43926 */ lc r100, 0x10000000 // test result output pointer lc r101, halt lc r102, failure lc r16, 0x10000004 // output pointer lc r17, 0xFFFFFFFF // initial CRC value lc r18, 0xEDB88320 // polynom lc r19, data // in...
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h .MODEL SMALL .STACK 100H .DATA PROMT_1 DB 'ENTER THE LOWER CLASS ALPHABET : $' PROMT_2 DB 0DH,0AH, 'THE UPPER CLASS ALPHABET IS : $' .CODE MAIN PROC ...
[org 0x0100] mov ax,0 ; setting to 0 Loop: add ax,[num1] sub ax,400 ;comparing / or checking the desire condition jnz Loop ; checking flag if set or not then play the loop again mov ax, 0x4c00 int 0x21 num1: dw 20
MODULE __printf_handle_x SECTION code_clib PUBLIC __printf_handle_x PUBLIC __printf_handle_p EXTERN __printf_number EXTERN __printf_set_base EXTERN __printf_disable_plus_flag EXTERN __printf_set_upper __printf_handle_x: __printf_handle_p: IF __CPU_INTEL__ | __CPU_GBZ80__ ld ...
; The LCD-to-CPU alignment can change when switching ; to double speed and back to single speed. ; ; Verified: ; 2021-10-21 pass: CPU CGB E - CPU-CGB-06 ; 2021-10-21 pass: CPU CGB B - CPU-CGB-02 ; 2021-10-21 fail: DMG-CPU C (blob) - DMG-CPU-08 ; INCLUDE "hardware.inc" DEF CART_COMPATIBILITY EQU CART_COMPATIBLE_GB...
section .text global ft_list_push_front ft_list_push_front: mov rbx, [rdi] mov [rdx+8], rbx mov rbx, rsi
pha lda ({z1}),y sta $fe iny lda ({z1}),y sta $ff pla ldy #0 sta ($fe),y
;**************************************************************** .include "m48def.inc" .include "service.inc" .macro incm lds r16, @0 lds r17, @0+1 subi r16,(-1) sbci r17,(-1) sts @0, r16 sts @0+1, r17 .endm ;**************************************************************** ; Data ;*********************...
.ORIG x4000 .FILL 31 .STRINGZ "lunch" .FILL 6 .FILL 31 .STRINGZ "dinner" .FILL 11 .FILL 10 .STRINGZ "ECE220" .FILL 3 .FILL 10 .STRINGZ "lecture" .FILL 4 .FILL 8 .STRINGZ "220 lab" .FILL 5 .FILL 16 .STRINGZ "MATH213" .FILL 10 .FILL 4 .STRINGZ "MATH213" .FILL 12 .FILL 1 .STRINGZ "213 disc"...
; ---------------------------------------------------------------------------- ; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and ; Amstrad CPC. ; ---------------------------------------------------------------------------- ; Routines that depend on the CPC. CPC_ZX_SCR .equ 1 ; ------------------ ; ...
; This file is generated from a similarly-named Perl script in the BoringSSL ; source tree. Do not edit by hand. %ifdef BORINGSSL_PREFIX %include "boringssl_prefix_symbols_nasm.inc" %endif %ifidn __OUTPUT_FORMAT__,obj section code use32 class=code align=64 %elifidn __OUTPUT_FORMAT__,win32 %ifdef __YASM_VERSION_ID__ %i...
copyright zengfr site:http://github.com/zengfr/romhack 0013DC movea.w (A4)+, A1 [base+2E8] 0013E2 subq.w #1, ($2fa,A5) [base+2E8] 0014D2 move.w A0, -(A4) [base+2E8] 0014D8 addq.w #1, ($2fa,A5) [base+2E8] 01A77A move.w A6, ($2e8,A5) [base+2FA] 01A77E lea ($40bc,A5), A0 [base+2E8] copyright zengfr site:htt...
MODULE l_f64_uchar2f SECTION code_fp_mbf64 PUBLIC l_f64_uchar2f PUBLIC l_f64_uint2f PUBLIC l_f64_schar2f PUBLIC l_f64_sint2f EXTERN ___mbf64_set_zero EXTERN l_neg_hl EXTERN ___mbf64_FA EXTERN msbios ; Convert signed char/int in l to floating p...
; @@@ void mikeos_int_to_string(char *buf, unsigned int value); %include "os_vector.inc" section .text use16 global _mikeos_int_to_string _mikeos_int_to_string: push bp mov bp, sp push si push di mov ax, [bp + 6] mov bx, os_int_to_string call bx mov di, [bp + 4] mov si, ax mov bx, os_string_copy cal...
;------------------- ; test for adiw/sreg ;------------------- .equ sreg = 0x3f ;------------------- ldi r24,0x00 ldi r25,0x00 ldi r26,0x01 ldi r27,0x00 ldi r28,0xff ldi r29,0x7f ldi r30,0xff ldi r31,0xff movw r0 ,r24 movw r2 ,r26 movw r4 ,r28 movw r6 ,r30 ;-...
; GDT gdt_start : gdt_null : ; the mandatory null descriptor dd 0 x0 ; ’dd ’ means define double word ( i.e. 4 bytes ) dd 0 x0 gdt_code : ; the code segment descriptor ; base =0x0 , limit =0 xfffff , ; 1st flags : ( present )1 ( privilege )00 ( descriptor type )1 -> 1001 b ; type flags : ( code )1 ( conforming )0 ( rea...
segment .rdata, align=16 correct dq 0000800000008000h, 0000800000008000h round dq 0000200000002000h, 0000200000002000h round1 dq 0000020000000200h, 0000020000000200h round2 dq 0002000000020000h, 0002000000020000h segment .text %include "a_triblt.inc" extern _kVDCubicInterpTableFX14_0...
; BIOS32 function: ; Execute function in BIOS (see VESA32 in idt-asm.asm for VESA related bios functions) ; ; Inputs: ; al - Function ; other registers, vary ; ; Outputs: ; varies ; ; Note: you will most likely have to reload the PIT ; Macros to make it easier to access data and code copied to 0x7C00 %d...
;Addition of two 8 bit numbers MVI A, 05H MVI B, 01H ADD B STA 2050H HLT
#include "Platform.inc" #include "FarCalls.inc" #include "Isr.inc" #include "Adc.inc" #include "Motor.inc" #include "TestFixture.inc" radix decimal INITIAL_PSTRCON equ 0x1f EXPECTED_PSTRCON equ INITIAL_PSTRCON & ~MOTOR_PSTRCON_OUTPUT_MASK extern isr udata global adcChannel adcChannel res 1 expectedMotorF...
; Learn Multi platform Z80 Assembly Programming... With Vampires! ;Please see my website at www.chibiakumas.com/z80/ ;for the 'textbook', useful resources and video tutorials ;File Simple Monitor ;Version V1.0 ;Date 2018/3/29 ;Content Provides simple ability to show the Program Counter, and to show register...
.data array: .space 440 .text li $t2,50 sw $t2,0($0) li $t2,49 sw $t2,4($0) li $t2,48 sw $t2,8($0) li $t2,47 sw $t2,12($0) li $t2,46 sw $t2,16($0) li $t2,45 sw $t2,20($0) li $t2,44 sw $t2,24($0) li $t2,43 sw $t2,28($0) li $t2,42 sw $t2,32($0) li $t2,41 sw $t2,36($0) li $t2,40...
DLI_color_schemas dta $0a,$e6,$68,$34,$00 ; predefined theme set ; dta $00,$00,$00,$30,$02 ; dta $a8,$a3,$ad,$a6,$00 ; dta $c2,$c4,$cd,$c6,$cb ; dta $84,$84,$84,$0f,$00 ; dta $00,$00,$00,$04,$0F
.MODEL SMALL .STACK 100H .DATA MES1 DB "WELCOME TO THE FIRST APP$" NTR DB "-YES MAN-" FIR DB 34 SEC DB 54 RES DB ? .CODE MAIN PROC MOV AX,@DATA MOV DS,AX LEA DX,MES1 MOV AH,9 INT 21H MOV AH,2 MOV CX,1000 MOV DL,0 Print_Loop: INT 21H INC DL DEC CX MOV DL,'!' MOV AH,2 INT 21H JNZ PRINT_LOOP MOV...
DungeonMons2: db $0F db 52,GENGAR db 57,GOLBAT db 50,GOLEM db 56,SANDSLASH db 50,RHYHORN db 60,RHYDON db 58,GLOOM db 58,WEEPINBELL db 60,LICKITUNG db 58,XATU db $00
; test program for user button on Z80 MBC clock board ; by Andrew Lynch, 6 Jul 2021 ORG 00100H MAIN_LOOP: IN A,($70) ; READ USER BUTTON STATUS AND %01000000 ; REMOVE ALL EXCEPT USER BUTTON (D6) ; 0=PRESSED, 1=NOT PRESSED JR NZ,MAIN_LOOP ; IF NOT PRESSED TRY AGAIN LD A,%00000011 ; ...
section .realmode int_08_ticks_counter: dd 0 int_08_callback: dd 0 int_08_isr: bits 16 pushf inc dword [cs:int_08_ticks_counter] popf jmp far [cs:int_08_callback] bits 32 extern getchar_internal global _pit_sleep_and_quit_on_keypress _pit_sleep_and_quit_on_keypress: ; Hook int 0x08 ...
; ; 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...
////////////////////////////////////////////////////////////////////////////// // branch8_mem_x_test.asm // Copyright(c) 2021 Neal Smith. // License: MIT. See LICENSE file in root directory. ////////////////////////////////////////////////////////////////////////////// // This program demonstrates and tests the 8bit br...
ldy #0 lda {c1},x clc adc ({z2}),y sta {z1} iny lda {c1}+1,x adc ({z2}),y sta {z1}+1
LDA 00A0H MOV B,A MVI C,64H CALL MULTIPLY MOV E,B LDA 00A1H MOV D,A ANI 0F0H ADI 00H RAR RAR RAR RAR MOV B,A MVI C,0AH CALL MULTIPLY MOV A,E ADD B MOV E,A MOV A,D ANI 0FH ADD E STA 00B0H HLT ;Input : B,C ;Output : B MULTIPLY: SUB A MUL_LOOP: ADD B DCR C JNZ MUL_LOO...
extern exit extern printf SECTION .data message: db '%d', 10, 0 SECTION .bss fib1: resb 8 fib2: resb 8 sum: resb 8 SECTION .text GLOBAL _start _start: ; Init two fibonacci numbers. mov rax, 1 mov [fib1], rax mov [fib2], rax ; Init sum of fibonacci numbers. mov rax, 0 ...
; void _lldivu_(lldivu_t *ld, uint64_t numer, uint64_t denom) SECTION code_clib SECTION code_stdlib PUBLIC __lldivu_ EXTERN asm__lldivu __lldivu_: ld ix,4 add ix,sp jp asm__lldivu
; Sprite type definitions SPR_24x32_NOMIRROR: EQU 0 ; 24x32 sprite, no mirroring SPR_24x32_MIRROR: EQU 128 ; 24x32 sprite, mirrored MAX_SPRITES: EQU 16 ; Maximum 16 sprites ; Init sprite structures ; The sprite structure has 8 bytes per sprite, with the following structure: ; ; spraddress: 2 bytes (sprite address i...
//Push constant @17 D=A @SP A=M M=D @SP M=M+1 //Push constant @17 D=A @SP A=M M=D @SP M=M+1 //Equal Command @SP A=M-1 D=M @R13 M=D @SP M=M-1 @SP A=M-1 D=M @R13 D=D-M @EQUAL_0 D;JEQ @SP A=M-1 M=0 @NOT_EQUAL_0 0;JMP (EQUAL_0) @SP A=M-1 M=-1 (NOT_EQUAL_0) //Push constant @17 D=A @SP A=M M=D @SP M=M+1 //Push constant @16 D...
; size_t balloc_blockcount(unsigned char queue) SECTION code_clib SECTION code_alloc_balloc PUBLIC balloc_blockcount EXTERN asm_balloc_blockcount defc balloc_blockcount = asm_balloc_blockcount ; SDCC bridge for Classic IF __CLASSIC PUBLIC _balloc_blockcount defc _balloc_blockcount = balloc_blockcount ENDIF
; SBAS_LOOPADD - Convert LOOP Stmt to Address V2.00  1995 Tony Tebby section sbas xdef sb_loopadd xdef sb_loopstt xref sb_sttaddx xref sb_addsttx include 'dev8_keys_sbasic' include 'dev8_smsq_sbas_inter_keys' include 'dev8_mac_assert' ;+++ ; SBASIC Convert LOOP line, statement number and offset to addre...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1994 -- All Rights Reserved PROJECT: MODULE: FILE: vmstoreInit.asm AUTHOR: Adam de Boor, Apr 14, 1994 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Descrip...
; void *p_list_back(p_list_t *list) SECTION code_adt_p_list PUBLIC p_list_back p_list_back: INCLUDE "adt/p_list/z80/asm_p_list_back.asm"
; A334084: Integers m such that only 2 binomial coefficients C(m,k), with 0<=k<=m, are practical numbers. ; 1,3,5,7,15,31,63,127,255,511,1023 mov $1,$0 sub $1,1 mov $2,2 pow $2,$1 bin $0,$2 add $0,$2 sub $0,1 mul $0,2 add $0,1
; The BIOS parameter block, which contains all information about the FAT12 file system on the boot medium OemIdentifier db "Axiom " NumberOfBytesPerSector dw 512 NumberOfSectorsPerCluster db 1 NumberOfReservedSectors dw 1 NumberOfFileAllocationTables db 2 NumberOfDirectoryEntri...
Underground_Coll:: INCBIN "gfx/tilesets/underground.tilecoll" Overworld_Coll:: INCBIN "gfx/tilesets/overworld.tilecoll" RedsHouse1_Coll:: RedsHouse2_Coll:: INCBIN "gfx/tilesets/reds_house.tilecoll" Mart_Coll:: Pokecenter_Coll:: INCBIN "gfx/tilesets/pokecenter.tilecoll" Dojo_Coll:: Gym_Coll:: INCBIN...
; ; stack switching code for MASM on x641 ; Kristjan Valur Jonsson, sept 2005 ; ;prototypes for our calls slp_save_state PROTO slp_restore_state PROTO pushxmm MACRO reg sub rsp, 16 .allocstack 16 movaps [rsp], reg ; faster than movups, but we must be aligned ; .savexmm128 reg, offset (don't know w...
.ORIG x3000 ; TEST: Immediate value out of range ADD R0, R0, #32 AND R1, R1, #16 ADD R2, R2, x1F .END
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. ;; See the LICENSE file in the project root for more information. .586 .model flat option casemap:none .code include AsmMacros.inc RhpCallFuncle...
;; Params: ;; dh - number of sectors to read ;; ES:BX - buffer to write data into read_disk: mov al, dh ; move argument into correct register mov dh, 0x00 ; head number mov dl, 0x80 ; drive number mov ch, 0x00 ; cylinder numb...
ORG 400 LDA 409 CMA STA 409 LDA 40A STA 40C LDA 40B STA 40A LDA 40C STA 40B AND FFE I 9FC6 00AB FFFF END
PORT equ 254 ON equ %00010000 OFF equ %11101111 macro m_beep, off_count, on_count, loop_count proc ; nb. A must contain the border color local _repeat, _next_off, _next_on ld b, loop_count _repeat push bc ; Send 0s and OFF ld b, off_count _next_off out (PORT), a djnz _next_off ; Send 1s or ON ld b, on...
SafariZoneNorth_Object: db $0 ; border block def_warps warp 2, 35, 0, SAFARI_ZONE_WEST warp 3, 35, 1, SAFARI_ZONE_WEST warp 8, 35, 2, SAFARI_ZONE_WEST warp 9, 35, 3, SAFARI_ZONE_WEST warp 20, 35, 4, SAFARI_ZONE_CENTER warp 21, 35, 5, SAFARI_ZONE_CENTER warp 39, 30, 0, SAFARI_ZONE_EAST warp 39, 31, 1, SAF...
;;======================================================= ;; Copyright (C) Manas Kamal Choudhury 2021 ;; ;; _fast_copy.asm -- Memcpy definition ;; ;; /PROJECT - Aurora's Xneva ;; /AUTHOR - Manas Kamal Choudhury ;; ;;======================================================= section .text [BITS 64] global fastcpy f...
; void p_forward_list_clear_fastcall(p_forward_list_t *list) SECTION code_clib SECTION code_adt_p_forward_list PUBLIC _p_forward_list_clear_fastcall EXTERN asm_p_forward_list_clear defc _p_forward_list_clear_fastcall = asm_p_forward_list_clear
0: CP 130 120 // max = x; 1: CP 134 120 // tmp = x; 2: LT 134 121 // tmp = tmp < y 3: BZJ 5 134 // if(tmp == 0) 4: CP 130 121 //max = y; 5: CP 135 130 //tmp1 = max; 6: LT 135 122 //tmp1 = tmp1 < z; 7: BZJ 9 135 // if(tmp1 == 0) 8: CP 130 122 // max = z; 9: CP 136 130 //tmp2=max; 10: LT 136 123 // tmp2=tmp2<g; 11...
[org 0x7C00] %define NEWLINE 0x0A %define PORT 0 %define MEM_START 0x7E00 ; Starting address of where to put the kernel. _entry: xor ax, ax mov ds, ax mov al, NEWLINE call putch call putch mov si, welcome call puts ; initialize serial port call sinit ; write id packet mov al, 0b00010001 ; opcode 1...
// Copyright Janet Davis, January 2018. // Free for educational use. // Exercises all possible jumps. // This is not a program and cannot be tested by running the resulting // .hack file. Instead, compare to the .hack file produced by the // given assembler. D D;JGT D;JEQ D;JGE D;JLT D;JNE D;JLE 0;JMP
SECTION code_l PUBLIC l_fast_ldir loop: ldi ldi ldi ldi ldi ldi ldi ldi jp pe, loop l_fast_ldir: ret
SECTION rodata_clib PUBLIC keys_cursor PUBLIC keys_qaop PUBLIC keys_vi PUBLIC keys_8246 keys_cursor: defw $0200, $0800, $0400, $0100, $0103, $0402, $0000 keys_qaop: defw $0403, $0203, $0206, $0104, $0801, $4001, $0000 keys_vi: defw $0205, $4002, $0101, $0805, $0406, $0806, $0000 keys_8246: defw $4004, $20...
.data vetor: .word 0:10 resto: .word 0:10 lenght: .word 0 newLine: .asciiz "\n" .text li $v0, 5 syscall move $s0, $v0 sw $v0, lenght #addi $s0, $zero, #addi $s0, $zero, 4 addi $s1, $zero, 10 addi $s2, $zero, 12 # Index = $t0 addi $t0, $zero, 0 sw $s0, vetor($t0) #store $s0 in $t0 addi $t0, $t0, ...
; int p_stack_empty_fastcall(p_stack_t *s) SECTION code_clib SECTION code_adt_p_stack PUBLIC _p_stack_empty_fastcall EXTERN asm_p_stack_empty defc _p_stack_empty_fastcall = asm_p_stack_empty
Name: ppidrv.asm Type: file Size: 1962 Last-Modified: '1991-10-30T10:00:33Z' SHA-1: 20AC40F03F114F1C168536CA7ABFC003E665DC6A Description: null
.386 .MODEL FLAT LOCALS @@ PUBLIC __ClassCreate,__ClassDestroy,__AfterConstruction,__BeforeDestruction vtAfterConstruction EQU -28 vtBeforeDestruction EQU -24 vtNewInstance EQU -12 vtFreeInstance EQU -8 .CODE __ClassCreate PROC ; -> EAX = pointer to VMT ; <- EAX = pointer to instance P...
# Si scriva il codice che calcola la somma dei primi N-1 numeri elevati al quadrato. # Nel caso in cui l’i-esimo numero da aggiungere sia multiplo del valore iniziale della somma, si termini il ciclo for. # # V = <intero inserito dall’utente>; # N = <intero inserito dall’utente>; # # Sum = V; # for (i = 1; i < N; i++) ...
; lzee depacker for Z80 sjasm ; ; license:zlib license ; ; Copyright (c) 2019 uniabis ; ; This software is provided 'as-is', without any express or implied ; warranty. In no event will the authors be held liable for any damages ; arising from the use of this software. ; ; Permission is granted to anyone to use this sof...
section gw * draw in a pixel, filling a line if need be (identical to QL version) xdef GW_PIXEL xref bm_block,bm_xblok CS_FILL,CS_OVER include 'dev8_Minerva_INC_GW' include 'dev8_Minerva_INC_SD' include 'dev8_Minerva_INC_HP' include 'dev8_Minerva_INC_assert' * The fill buffer is arranged to have space for up ...
; ; Z88dk Generic Floating Point Math Library ; ; bc ix de = FA PUBLIC ldbcfa EXTERN fa .ldbcfa LD DE,(fa) LD IX,(fa+2) LD BC,(fa+4) RET
; void zx_cls_attr(uchar attr) SECTION code_clib SECTION code_arch PUBLIC zx_cls_attr EXTERN asm_zx_cls_attr defc zx_cls_attr = asm_zx_cls_attr
SHORTCUTS_SUBMENU: %menu_header("CONTROLLER SHORTCUTS", 12) %ctrl_shortcut_final("LTTPHack menu", final_static_short_PracMenuShortcut) %ctrl_shortcut("Load last preset", !config_ctrl_load_last_preset) %ctrl_shortcut("Save state", !config_ctrl_save_state) %ctrl_shortcut("Load state", !config_ctrl_load_state) %ctrl_...
; ; 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...
; ; Fast background restore ; ; Generic version (just a bit slow) ; ; $Id: bkrestore.asm $ ; IF !__CPU_INTEL__ & !__CPU_GBZ80__ SECTION smc_clib PUBLIC bkrestore PUBLIC _bkrestore EXTERN pixeladdress .bkrestore ._bkrestore push ix ; __FASTCALL__ : sprite ptr in HL push hl pop ix ld h,(ix+2) ld l,(...
SFX_Battle_14_Ch8: noise_note 8, 15, -7, 50 noise_note 8, 15, 4, 67 noise_note 8, 15, 2, 84 noise_note 8, 15, 1, 101 sound_ret
; ; 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...
-- 7 Billion Humans -- -- 19: Content Creators Bug Fix -- -- Size: 4/4 -- -- Speed: 27/28 -- takefrom s a: giveto se takefrom sw jump a
; A238381: Minimal number of V-trominoes needed to prevent any further V-trominoe from being placed on an n X n grid. ; Submitted by Jamie Morken(s1) ; 0,1,2,3,4,6,8,11,14,18,21,25,30,35,40 add $0,1 pow $0,2 sub $0,1 div $0,2 mov $1,$0 add $0,2 div $0,3 div $1,41 add $0,$1
; ; Generic graphics routines ; Self modifying code version ; ; Stefano Bodrato - 4/1/2007 ; ; ; Invert pixel at (x,y) coordinate. ; ; ; $Id: xorpixl_smc.asm,v 1.2 2015-01-19 01:32:47 pauloscustodio Exp $ ; PUBLIC xorpixel EXTERN pixel EXTERN pixmode .xorpixel push hl ld hl,174 ; XOR (HL)...
tiescreen: # Create a tie screen # Inputs: None # Outputs: None # Save the callee save registers on the stack addi sp sp -20 sw ra (sp) sw a1, 4 (sp) sw a2, 8 (sp) sw a3, 12 (sp) sw a5, 16 (sp) # Clear the screen jal blackscreen # Start coordinates li a1 86 li a2 118 li a3 0xffffff # Write a 'T' to...
; ; MSX specific routines ; by Stefano Bodrato, 30/11/2007 ; ; void msx_noblank(); ; ; Enable screen ; ; $Id: msx_noblank.asm,v 1.3 2009/06/22 21:44:17 dom Exp $ ; XLIB msx_noblank LIB msxbios INCLUDE "msxbios.def" msx_noblank: ld ix,ENASCR jp msxbios
; QPC clear display  1999 Tony Tebby section con xdef cn_disp_clear include 'dev8_smsq_qpc_keys' ;+++ ; Clear screen and copy ;--- cn_disp_clear cnd.reg reg a0/a1 movem.l cnd.reg,-(sp) move.l #qpc_scr_work,a1 move.w qpc_scrl(a1),d0 mulu qpc_scry(a1),d0 move.l qpc_scrb(a1),a0 lsr.l #4,d0 ; clear i...
#problem2a.asm #uses only main procedure to calculate the sum of first n squares .data .text .globl main main: li $s0, 5 #n li $s1, 0 #initially the sum is set to 0 li $t0, 1 #start with 1 loop: #loop to add ith square in ith run mul $t1, $t0, ...
[bits 16] switch_to_pm: cli ; Switch of interrupts until we set up protected mode lgdt [gdt_descriptor] mov eax, cr0 ; Set first bit of CR0, a control register or eax, 0x1 mov cr0, eax jmp CODE_SEG:init_pm ; Make a far jump to 32-bit code. [bits 32] ; Initalize registers and the stack ...
[BITS 32] SECTION .text global _strlenASM,_strlenASMv2 _strlenASM: push ebp mov ebp, esp xor ecx, ecx mov eax, [ebp + 8] @2: mov dl, [eax] test dl, dl jz @1 inc ecx inc eax jmp @2 @1: mov eax, ecx pop ebp ret _strlenASMv2: push ebp mov ebp, esp push edi xor ecx, ecx dec ecx ; ecx = 0xFFFFFFFF ...
inc {m1} bne !+ inc {m1}+1 bne !+ inc {m1}+2 bne !+ inc {m1}+3 !:
;; @file ; This is the code that goes from real-mode to protected mode. ; It consumes the reset vector, configures the stack. ; ; Copyright (c) 2015, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ;; ; ; Define assembler characteristics ; .586p .xmm .model fla...
;@DOES draws a vertical line ;@INPUT HL line X coordinate ;@INPUT E line Y coordinate ;@INPUT B line length ;@DESTROYS HL,DE,BC,AF gfx_VertLine: dec b call gfx_Compute ; hl -> drawing location .computed: ld a,(color_primary) ld de,LCD_WIDTH .loop: ld (hl),a ; loop for height add hl,de djnz .loop ret
CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP include errcodes.i ; pj_dwrite(int file_handle, char *buffer, int size) ; returns bytes actually written public pj_dwrite pj_dwrite proc near pjwrite struc pjw_savebp dd ? pjw_ret dd ? pjw_handle dd ? pjw_buffer dd ? pjw_si...
;; ==++== ;; ;; ;; Copyright (c) 2006 Microsoft Corporation. All rights reserved. ;; ;; The use and distribution terms for this software are contained in the file ;; named license.txt, which can be found in the root of this distribution. ;; By using this software in any fashion, you are agreei...
Name: Car-p.asm Type: file Size: 60364 Last-Modified: '1992-07-29T15:00:00Z' SHA-1: 3349106AAE5DC42E0F96A8BE1133F99FA14BA123 Description: null
dnl Intel Pentium-4 mpn_addlsh1_n -- mpn x+2*y. dnl Copyright 2001-2004, 2006 Free Software Foundation, Inc. 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 modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public...
; 0202 - TXA .segment "VECTORS" .word $eaea .word init .word $eaea .code init: txa ; Positive number case, X will be $42. txa ; Zero number case, X will be $0. txa ; Negative number case, X will be %10010101.