content stringlengths 23 1.05M |
|---|
start:
readnumber r2
set r3 0
store r3 r2
readnumber r2
set r3 4
store r3 r2
set r2 0
load r2 r2
set r3 4
load r3 r3
add r4 r2 r3
set r2 8
store r2 r4
set r2 8
load r2 r2
writenumber r2
stop
|
[BITS 16]
[ORG 0x7C00]
lowMemAddr: equ 0
inputBuf: equ 0
stackLow: equ 0
inputBufLength: equ 0xFFFF
highMemAddr: equ 0xFFFF
stackHigh: equ 0xFFFF
memAddrLength: equ highMemAddr - lowMemAddr - 1
index:
DW 0
_start:
; clearing screen
XOR AH, AH
MOV AL, 0x03
INT 0x10
IN AL, 0x92 ; a20 line
OR AL, 2 ; a20 l... |
; The code will start executing at the first instruction. Technically you do not
; need to label the "Init", but is a nice convention to think of it as a
; procedure.
Init:
mov $3, %c1
push %c1
call :Multiply_by_five
add $4, %stk ; remove c1 from stack
halt ; Needed for graceful shutdown
Multiply_by_f... |
Sound_9C_Header:
smpsHeaderStartSong 3
smpsHeaderVoice Sound_9C_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cFM5, Sound_9C_FM5, $F0, $00
; FM5 Data
Sound_9C_FM5:
smpsSetvoice $00
smpsModSet $01, $01, $F7, $EA
Sound_9C_Loop00:
dc.b nAb5, $02, $03, nRst, $02
... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) Geoworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE:
AUTHOR: Cheng, 3/91
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- ---... |
org 100h
section .text
start:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
add al,al ;0x00
add [0],al ;0x00
add ax,ax ;0x01
add [1],ax ;0x01
add al,[2] ;0x02
add ax,[3] ;0x03
add al,4 ;0x04
add ax,5 ;0x05
push es ;0x06
pop es ;0x07
or al,al ;0x08
or [0],al ;0x08
or ax,ax ;0x09
o... |
; uses built-in stack to push 2 numbers, then
; pops them and adds them
; initialization
not sp ; sp = 0xffff
not x6 ; bp = 0xffff
; summon 2 values from the void
; and send them to The Stack
xor x0 5 ; x0 = 5
push x0 ; push(x0, sp)
xor x0 3 ; x0 = 3
push x0 ; push(x0, sp)
; summon values fr... |
[bits 32]
; Declare constants for the multiboot header.
MBALIGN equ 1 << 0 ; align loaded modules on page boundaries
MEMINFO equ 1 << 1 ; provide memory map
FLAGS equ MBALIGN | MEMINFO ; this is the Multiboot 'flag' field
MAGIC equ 0x1BADB002 ; 'magic number' lets bootloader fin... |
push ebp ; Save stack-frame base pointer
mov ebp, esp ; Set location of the stack
mov eax, 0x66 ; sys_socketcall
mov ebx, 0x3 ; sys_connect
lea ecx, [ebp+8] ; address of parameter array
int 0x80
mov esp, ebp ; Restore stack pointer
pop ebp ; Restore calling function frame
... |
/*
* All Video Processing kernels
* Copyright © <2010>, Intel Corporation.
*
* 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... |
wpRamWave::
db $FF, $88, $00, $88, $FF, $88, $00, $88, $FF, $88, $00, $88, $FF, $88, $00, $88
initWPRAM::
ld hl, wpRamWave
ld de, WPRAM
ld bc, 16
call copyMemory
playChannel1Sound::
ld de, CHANNEL1_SWEEP
ld c, 5
.loop:
ld a, [hli]
ld [de], a
inc de
dec c
jr nz, .loop
ret
playChannel2Soun... |
UnknownDungeon1Object:
db $7d ; border block
db $9 ; warps
db $11, $18, $6, $ff
db $11, $19, $6, $ff
db $1, $1b, $0, UNKNOWN_DUNGEON_2
db $7, $17, $1, UNKNOWN_DUNGEON_2
db $9, $12, $2, UNKNOWN_DUNGEON_2
db $1, $7, $3, UNKNOWN_DUNGEON_2
db $3, $1, $4, UNKNOWN_DUNGEON_2
db $b, $3, $5, UNKNOWN_DUNGEON_2
db $6,... |
.MODEL SMALL
.STACK 100H
.DATA
MSG DB "THE SUM OF FIST 10 NUMBERS ARE:"
C DW 10
R DW 0
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
MOV CX, 10
MOV AX, 0
SUM:
ADD AX, CX
LOOP SUM
MOV BX, AX
TO_DECIMAL:
MOV DX, 0
MOV AX, BX
DIV C
INC R
PUSH DX
... |
lda {m2}
eor {m3}
sta {m1}
lda {m2}+1
eor {m3}+1
sta {m1}+1
|
; ba_stack_t *ba_stack_init_callee(void *p, void *data, size_t capacity)
SECTION code_clib
SECTION code_adt_ba_stack
PUBLIC _ba_stack_init_callee
EXTERN _b_array_init_callee
defc _ba_stack_init_callee = _b_array_init_callee
|
ret
push $register64
neg $register
neg $address
mov $register64, $constant64
mov $register64, $register64
mov $register32, $register32
mov $register16, $register16
mov $register8, $register8
add $address64, $register64
add $address32, $register32
add $address16, $register16
add $address8, $register8
sub $register6... |
; Fix the THING system V0.00 1988 Tony Tebby QJUMP
section thing
xdef th_fix
xref cv_lostr
xref th_enfix
xref th_exfix
include 'dev8_keys_sys'
include 'dev8_keys_thg'
include 'dev8_keys_qdos_sms'
;+++
; Fix the Thing system to t... |
SECTION code_driver
SECTION code_driver_terminal_input
PUBLIC rc_01_input_sioa_stdio_msg_flsh
EXTERN _sioa_flush_Rx_di
EXTERN console_01_input_stdio_msg_flsh
rc_01_input_sioa_stdio_msg_flsh:
; get rid of any pending chars in the sioa buffer
call _sioa_flush_Rx_di
jp console_01_input_stdio_msg_flsh
|
;fluidcore
;4 channel wavetable player for the zx spectrum beeper
;by utz 03'2016
NMOS EQU 1
CMOS EQU 2
IF Z80=NMOS ;values for NMOS Z80
pon equ #18fe
poff equ 0
seta equ #af ;xor a
ENDIF
IF Z80=CMOS ;values for CMOS Z80
pon equ #00fe
poff equ #18
seta equ #79 ;ld c,a
ENDIF
;org #8065
org origin ;org a... |
Route15GateLeftBinoculars:
ld a, [wSpritePlayerStateData1FacingDirection]
cp SPRITE_FACING_UP
ret nz
call EnableAutoTextBoxDrawing
tx_pre Route15UpstairsBinocularsText
ld a, ARTICUNO
ld [wcf91], a
call PlayCry
jp DisplayMonFrontSpriteInBox
Route15UpstairsBinocularsText::
text_far _Route15UpstairsBinocularsTe... |
// Test operator WORD1()
// Commodore 64 PRG executable file
.file [name="operator-word1.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.con... |
;
; Generic trick to adapt a classic function to the CALLEE mode
;
; ----- void __CALLEE__ undraw(int x, int y, int x2, int y2)
;
;
; $Id: undraw_callee.asm $
;
SECTION smc_clib
PUBLIC undraw_callee
PUBLIC _undraw_callee
EXTERN undraw
.undraw_callee
._undraw_callee
ld hl,retaddr
ex (sp),hl
ld (retaddr0+1),... |
; void *heap_destroy(void *heap)
SECTION code_alloc_malloc
PUBLIC heap_destroy
defc heap_destroy = asm_heap_destroy
INCLUDE "alloc/malloc/z80/asm_heap_destroy.asm"
|
/*****************************************************************************
Name : tasarestore.pds.asm
Title : PDS Assembly Code
Author : Imagination Technologies
Created : 01/01/2008
Copyright : 2007 by Imagination Technologies Limited. All rights reserved.
No part of this software, either materia... |
build/mmu.elf: file format elf32-littleriscv
Disassembly of section .crt_section:
80000000 <_start>:
80000000: 00000e93 li t4,0
80000004: 00000097 auipc ra,0x0
80000008: 59008093 addi ra,ra,1424 # 80000594 <trap>
8000000c: 30509073 csrw mtvec,ra
80000010 <test1>:
8000001... |
BITS 16
;===========
; Start of the bootloader
;===========
start:
mov ax,07C0h ; Set up 4K stack space after this bootloader
add ax,288 ; (4096 + 512) / 16 bytes per paragraph
mov ss,ax
mov sp,4096
mov ax,07C0h ; Set data segment ... |
;,; SC00_000
;,; <- ibpcaablocks
;,; <- player_ivars
;,; <- player_songdata
;,; <- lyrics
;,; &- init
!src "demosrc/smac.inc"
; method 4 ( clrscr0 bytes ) -- 31 bytes (31 cumu)
; method 5 ( clrscr0 ibpc0 bytes ) -- 31 bytes (31 cumu)
; method 6 ( clrscr0 bytes ) -- 31 bytes (31 cumu)
; method 7 ( clrscr0 ibpc0 ibpcaa ... |
processor 6502
ORG $0200
framework_begin
SAFETY_OFFSET = $08
;-------------------------------------------------------------------------------
; interface
;-------------------------------------------------------------------------------
jumptable
jmp load
jmp decrunch
jmp topirq_install
... |
; Test for struct definition and usage
SCOLOR: equ 3
SCOLOR.RED: equ 0
SCOLOR.GREEN: equ 1
SCOLOR.BLUE: equ 2
SDOT: equ 5
SDOT.X: equ 0
SDOT.Y: equ 1
SDOT.C: equ 2 ; use new default values
SDOT.C.RED: equ 2
SDOT.C.GREEN: equ 3
SDOT.C.BLUE: equ 4
COLORTABLE:
db 0
db 0
db 0
db 1
db 2
db 3
db ... |
; A145004: Values of n at which the number of roots of the function x+n*cos(x) increases.
; 0,3,7,10,13,16,19,22,26,29,32,35,38,41,44,48,51
mul $0,3
mov $2,$0
mul $0,2
add $0,232
div $0,40
add $2,$0
mov $0,$2
sub $0,5
|
; ---------------------------------------------------------------------------
; Sprite mappings - waterfalls (LZ)
; ---------------------------------------------------------------------------
dc.w byte_12B6C-Map_obj65, byte_12B72-Map_obj65
dc.w byte_12B7D-Map_obj65, byte_12B88-Map_obj65
dc.w byte_12B8E-Map_obj65,... |
Name: Ending1-p.asm
Type: file
Size: 20197
Last-Modified: '1992-07-20T15:00:00Z'
SHA-1: 4EB2C7ADD1C2A861D253492B1ACDE394C19E90B7
Description: null
|
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; SgemvKernelNeon.asm
;
; Abstract:
;
; This module implements the kernels for the single precision matrix/vector
; multiply operation (SGEMV).
;
;--
#include "kxarm64.h"
TEXTAREA
;+... |
; *****************************************************************************
; *****************************************************************************
;
; Name: substring.asm
; Purpose: Unary SubString functions
; Created: 17th April 2020
; Reviewed: TODO
; Author: Paul Robson (paul@robsons.org.uk)
;
;... |
DELAY:
MOV R0, #195; 1
ROT1:
MOV R1, #41;1
ROT2:
DJNZ R1, ROT2; 2*R1
DJNZ R0, ROT1; (1+2*R1+2)*R0
nop;1
nop;1
RET; 2
;T = 5 + [2*41 + 3] * 195 = 8000
|
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; Get the first sector used by a file
;
; $Id: get_first_file_cluster.asm,v 1.3 2012/03/08 07:16:46 stefano Exp $
;
INCLUDE "flos.def"
XLIB get_first_file_cluster
get_first_file_cluster:
; __FASTCALL__, HL points to filename
pu... |
.386
.model flat, stdcall
includelib msvcrt.lib
extern exit: proc
public start
.data
number dd 3
number_of_elemnets dd 5
vector db 1, 2, 3, 3, 2
frequency db 0, 0, 0, 0
.code
start:
;In this vector the numbers are from 1 to a given number. One o them appears once, and the others appear twice.
;This program fin... |
musicChan3SleepingTheme::
setRegisters $80, $00, $00, $AC, $85
stopMusic
jump musicChan3SleepingTheme
repeat 27 * 4
enableTerminals %00000100
disableTerminals %01000000
setVolume %01000000
wait SEMIQUAVER
setVolume %01100000
wait SEMIQUAVER
enableTerminals %01000000
disableTerminals %00000100
setVolum... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; ENTER
mov rax, rsp
mov rdi, rbp
mov rbx, rsp
sub rbx, 0x8
;TEST_BEGIN_RECORDING
enter 0x8, 0x0
cmp rbp, rbx
mov rbp, 0x0
;TEST_END_RECORDING
mov rsp, rax
mov rbp, rdi
|
#Definita in memoria una matrice di 4 righe e 4 colonne
#con elementi byte, stampare in output la somma
#degli elementi presenti lungo una colonna ESEMPIO
#MEMORIA
#3 6 7 8
#1 5 2 0
#6 8 10 5
#4 1 -9 2
#OUTPUT
#COLONNA 1: 14
#COLONNA 2: 20
#COLONNA 3: 10
#COLONNA 4: 15
.text
.globl main
main:
li $t0, 1 #indice scorr... |
db "SAVAGE@" ; species name
db "They form packs to"
next "attack boats and"
next "rip out their"
page "hulls to sink"
next "them. They live in"
next "jungle rivers.@"
|
;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~;~~
;
; STARSAVE
;
; Parses filename then resumes execution of the BIOS' save routine.
;
STARSAVE:
jsr read_filename ; copy filename into $140
jsr $f844 ; set $c9\a = $140, set x = $c9
jmp $fabe ... |
// push constant 10
@10
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop LCL 0
@LCL
D=M
@0
D=A+D
@R13
M=D
@SP
M=M-1
A=M
D=M
@R13
A=M
M=D
// push constant 21
@21
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 22
@22
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop ARG 2
@ARG
D=M
@2
D=A+D
@R13
M=D
@SP
M=M-1
A=M
D=M
@R13
A=M
M=D
// pop ARG 1
@ARG
D=M
@1
D=A... |
.data
.text
main:
lui $t1,1
lui $t2,2
lui $t3,10
add $t2,$t1,$t3
sw $t1,($t2)
lw $t1,($t2)
j loop
exit:
syscall
loop:
addiu $t1,$t3,8
ori $t2,$t3,12
beq $t1,$t2,exit
|
[CPU 486]
[BITS 32]
GLOBAL api_initmalloc
section .text
api_initmalloc: ; void api_initmalloc(void);
PUSH EBX
MOV EDX, 8
MOV EBX, [CS:0x0020] ; malloc領域の番地
MOV EAX, EBX
ADD EAX, 32 * 1024 ; 32KBを足す
MOV ECX, [CS:0x0000] ; データセグメントの大きさ
... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) MyTurn.com 2000 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: printer drivers
FILE: pageStartCanonRGB.asm
AUTHOR: Dave Hunter
ROUTINES:
Name Description
---- -----------
PrintStartPage initialize... |
; uint16_t fzx_glyph_width_callee(struct fzx_font *ff, int c)
SECTION code_font_fzx
PUBLIC _fzx_glyph_width_callee, l0_fzx_glyph_width_callee
EXTERN asm_fzx_glyph_width
_fzx_glyph_width_callee:
pop af
pop hl
pop bc
push af
l0_fzx_glyph_width_callee:
ld a,c
call asm_fzx_glyph_width
ld l,... |
global _start
extern print
section .text
_start:
call print
mov rax, 60
mov rdi, 0
syscall |
# Group No. 54
# Assignment: 7
# Problem : 3
# Name : Avijit Mandal
# Roll No. : 18CS30010
# Name : Sumit Kumar Yadav
# Roll No.: 18CS30042
##########Data Segment########################
.data
input: .asciiz "Enter 9 numbers : "
sorted_array: .asciiz "Array in ascending order is : "
key_input: .asciiz "... |
# WORD : i 0
# WORD : j 4
# WORD: moves 8
# WORD: gotKey 12
# TOTAL SIZE : 16 BYTES
.data
.include "resources/heroImage.s"
.text
# a0 = this
# a1 = i
# a2 = j
# a3 = moves
player_initialize:
# this.i = i
sw a1, 0(a0)
# this.j = j
sw a2, 4(a0)
# this.moves = moves
sw a3, 8(a0)
# gotKey = false
sw zero, ... |
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; SgemmKernelFma3.asm
;
; Abstract:
;
; This module implements the kernels for the single precision matrix/matrix
; multiply operation (SGEMM).
;
; This implementation uses AVX fused multiply... |
; void *wv_priority_queue_data(wv_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_wv_priority_queue
PUBLIC wv_priority_queue_data
EXTERN asm_wv_priority_queue_data
defc wv_priority_queue_data = asm_wv_priority_queue_data
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _wv_priority_queue_data
defc _wv_priori... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: AnsiC
FILE: stdio_asm.asm
AUTHOR: Maryann Simmons, May 7, 1992
ROUTINES:
Name Description
---- -----------
GLOBAL:
GLB fopen Open ... |
title "LdrInitializeThunk"
;++
;
; Copyright (c) 1989 Microsoft Corporation
;
; Module Name:
;
; ldrthunk.s
;
; Abstract:
;
; This module implements the thunk for the LdrpInitialize APC routine.
;
; Author:
;
; Steven R. Wood (stevewo) 27-Apr-1990
;
; Environment:
;
; ... |
;-----------------------------------------------------
;Execute shell command
;I: none
;O: none
;-----------------------------------------------------
_exec_cmd:
;Check for Empty Comamnd
mov si,strCmd
cmp BYTE[si],0x00
je _cmd_done
_cmd_ver:
mov si,strCmd
mov di,cmdInfo
mov cx,5
rep... |
init_netplay_launch_screen:
.(
jsr set_menu_chr
SWITCH_BANK(#NETPLAY_LAUNCH_SCREEN_EXTRA_BANK_NUMBER)
jmp init_netplay_launch_screen_extra
;rts ; useless, jump to a subroutine
.)
netplay_launch_screen_tick:
.(
SWITCH_BANK(#NETPLAY_LAUNCH_SCREEN_EXTRA_BANK_NUMBER)
jmp netplay_launch_screen_tick_extra
;rts ; us... |
; ASM MiniLibC
; strstr
; arthur.delattre@epitech.eu
%ifndef __MINILIBC_STRSTR__
%define __MINILIBC_STRSTR__ __MINILIBC_STRSTR__
[BITS 64]
SECTION .text
global strstr:function
;; char *strstr(const char *haystack, const char *needle);
strstr:
push rcx
push rdx
push r8
push r9
push r10
xor r8, r8
xor r9, r9
... |
; GDT
gdt_start:
gdt_null: ; Mandantory Null Descriptor
dd 0x0
dd 0x0
gdt_code:
dw 0xffff ; Limit
dw 0x0 ; base
db 0x0 ; base
db 10011010b ; 1st Flag(Present, privilege, DT), Type Flag(Code, Conforming, readable, accessed)
db 11001111b ; 2nd Flag(Granularity, 32-bit default, 64-bit code se... |
FLAT:003FFFFF ;
FLAT:003FFFFF ; +-------------------------------------------------------------------------+
FLAT:003FFFFF ; | This file was generated by The Interactive Disassembler (IDA) |
FLAT:003FFFFF ; | Copyright (c) 2021 Hex-Rays, <support@hex-rays.com> |
FLAT:003FFFFF ; | ... |
;===============================================================================
; Copyright 2014-2021 Intel Corporation
;
; 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 a copy of the License at
;
; http://www.apa... |
SECTION code_fp_math16
PUBLIC cm16_sdcc___uint2h
EXTERN asm_f24_u16
EXTERN asm_f16_f24
.cm16_sdcc___uint2h
pop bc ;return
pop hl ;value
push hl
push bc
call asm_f24_u16
jp asm_f16_f24
|
; A259343: A001116(n) + 1.
; Submitted by Simon Strandgaard
; 1,3,7,13,25,41,73,127,241,273
mov $2,2
pow $2,$0
div $2,12
mov $3,$0
mul $3,$2
mov $1,$3
add $1,$0
mod $1,196
mov $4,$0
mul $4,$0
add $1,$4
mov $0,$1
div $0,2
mul $0,2
add $0,1
|
.686p
.mmx
;.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
PUBLIC __mod
PUBLIC __c
addmod PROTO :DWORD, :DWORD, :DWORD
adduintmod PROTO :DWORD, :DWORD, :DWORD
compare PROTO :DWORD, :DWORD
comparezero PROTO :DWORD
compareone PROTO :DWORD
converth2bmod PROTO :DWORD, :DWORD
copy PRO... |
addi r1 r0 0
addi r10 r0 10
cicle:
beq r1 r10 error
rnd r20
rnd r30
bne r20 r30 end
addi r1 r1 1
j cicle
end:
addi r1 r0 65
tty r1
halt
error:
halt
#prints A
|
;; This file contains the system call numbers.
SYS_EXIT equ 1
SYS_FORK equ 2
SYS_READ equ 3
SYS_WRITE equ 4
SYS_OPEN equ 5
SYS_CLOSE equ 6
SYS_WAITPID equ 7
SYS_CREAT equ 8
... |
; /*aes_asm . asm
; *
; *Copyright[C]2006 -2014 wolfSSL Inc .
; *
; *This file is part of wolfssl. (formerly known as CyaSSL)
; *
; *wolfSSL is free software/ you can redistribute it and/or modify
; *it under the terms of the GNU General Public License as published by
; *the Free Software Foundation/ either version 2 o... |
global threadTrampoline
threadTrampoline:
mov ax, 0x23
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
; iret to the thread!
iret
global changeStack
changeStack:
mov ebx, [esp + 4]
mov [ebx], esp
mov esp, [esp + 8]
ret |
; *****************************************************************************
; *****************************************************************************
;
; Name : enctest.asm
; Purpose : Encode test code
; Author : Paul Robson (paul@robsons.org.uk)
; Date : 14th January 2020
;
; *************************... |
include emu8086.inc
ORG 100h
MOV row, 0
JMP getfirstnumber
getfirstnumber:
ADD row, 1
GOTOXY 0, row
PRINT 'Digite um numero inteiro entre 00 e 99: '
MOV AH, 01
INT 21h
MOV BH, AL
INT 21h
MOV BL, AL
CMP BH, 30h
JB... |
Music_AfterTheRivalFight:
musicheader 4, 1, Music_AfterTheRivalFight_Ch1
musicheader 1, 2, Music_AfterTheRivalFight_Ch2
musicheader 1, 3, Music_AfterTheRivalFight_Ch3
musicheader 1, 4, Music_AfterTheRivalFight_Ch4
Music_AfterTheRivalFight_Ch1:
Music_AfterTheRivalFight_Ch2:
Music_AfterTheRivalFight_Ch3:
Music_After... |
addi $sp,$sp,0xffff
sw $ra,0x4($sp)
sw $a0,0x0($sp)
slti $t0,$a0,0x1
beq $t0,$zero,0x3
addi $v0,$zero,0x1
addi $sp,$sp,0x8
jr $ra
addi $a0,$a0,0xffff
jal 0x100000
lw $a0,0x0($sp)
lw $ra,0x4($sp)
addi $sp,$sp,0x8
PSEUDO
jr $ra
|
SECTION code_clib
PUBLIC printc_MODE2
PUBLIC generic_console_xypos_graphics
EXTERN __multi8_ink
EXTERN __multi8_paper
EXTERN generic_console_font32
EXTERN generic_console_udg32
EXTERN generic_console_flags
EXTERN __vram_in
EXTERN l_push_di
EXTE... |
// Commodore 64 PRG executable file
.file [name="const-identification.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.label plots = $1000
... |
/*
** basic loader
*/
.macro BasicLoader(start){
.pc = $0801 "Basic Loader"
.word nextline
.word 3880
.byte $9e
.text toIntString(start)
.byte 0
nextline:
.word 0
}
/*
** read a full charset
*/
.macro CharSet(file){
.var charset = LoadPicture(file, List().add($ffffff, $000000))
.for (var y=0; y<8; y... |
; A217058: Van der Waerden numbers w(j+2; t_0,t_1,...,t_{j-1}, 3, 4) with t_0 = t_1 = ... = t_{j-1} = 2.
; Submitted by Jon Maiga
; 18,21,25,29,33,36,40,42,45,48,52,55
add $0,1
mov $3,$0
sub $0,1
mov $1,$0
add $0,1
mov $2,$0
trn $2,2
add $2,$0
lpb $1
mov $0,$1
add $1,8
div $1,3
lpe
add $0,$2
add $0,$3
add $0,15
|
; name: MOV with address having SIB (SIB special cases, ebp|rbp + disp)
; code: "8B4C45778B8C45AA9988778B4D778B8DAA998877678B4C4577678B8C45AA998877488B4C4577488B8C45AA998877678B4D77678B8DAA998877488B4D77488B8DAA998877"
[bits 32]
mov ecx, [eax*2+ebp+0x77]
mov ecx, [eax*2+ebp+0x778899AA]
mov ecx, [ebp+0x77]
mov ecx, [eb... |
; SMSQmulator Read keyboard / mouse V 1.03 (c) W. Lenerz 2020
; read by SMSQE during polling interrupt.
; this "reads" the keyboard coming from the emulator & puts the keystrokes
; into the keyboard queue
; 1.03 read kbd loops until no more chars in java kbd queue (queue in & out in java are synchronized)
; 1.02 mou... |
.data
num: .space 1024
.text
li $v0, 5
syscall
move $s0, $v0 #read n -> $s0
li $s1, 1 #len = 1 -> $s1
sw $s1, num($zero) #num[0] = 1
while_1_begin: #while (n)
beqz $s0, while_1_end
li $t0, 0 #for (int i = 0; i < len; i ++)
for_1_begin:
beq $t0,... |
// seed 4
lbi r0, 49 // icount 0
slbi r0, 240 // icount 1
lbi r1, 14 // icount 2
slbi r1, 103 // icount 3
lbi r2, 181 // icount 4
slbi r2, 255 // icount 5
lbi r3, 163 // icount 6
slbi r3, 39 // icount 7
lbi r4, 132 // icount 8
slbi r4, 118 // icount 9
lbi r5, 35 // icount 10
slbi r5, 164 // icount 11
lbi r6, 140 // ico... |
;,; lyrics_themostmarvelous .withinpagefrom=lyrics
;,; <- lyrics
!byte $1d,$1a ; THE
!byte $18,$60,$24,$09 ; MOS(T)
!byte $28,$4a ; MAR
!byte $26,$23 ; VE
!byte $27,$20,$24,$19 ; LOUS
!byte $1d,$21,$02 ; THING
!byte $21,$66 ; YOU
!byte $67 ; 'LL
!byte $c3 ; E
!byte $26,$ca ; VER
!byt... |
%include "graphics_ellipse_main.asm"
%include "graphics_ellipse_algorithm.asm"
Graphics_Ellipse:
push word 100d ; x0 ; Default rectangle (edges of ellipse)
push word 50d ; y0
push word 115d ; x1
push word 60d ; y1
call Graphics_Ellipse_Main
ret
; This... |
<%
from pwnlib.shellcraft.mips import nop
from pwnlib.shellcraft.mips.linux import fork
from pwnlib.shellcraft.common import label
%>
<%docstring>
Performs a forkbomb attack.
</%docstring>
<%
dosloop = label('fork_bomb')
%>
${dosloop}:
${fork()}
.set noat
beq $at, $at, ${dosloop}
${nop()... |
;;
;; Copyright (c) 2012-2018, 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... |
export CG_PositionEntityOnTag
code
proc CG_PositionEntityOnTag 84 24
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRLP4 4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
CNSTI4 96
ADDP4
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
CNSTI4 80
ADDP4
INDIRI4
ARGI4
CNSTF4 1065353216
ADDRFP4 4
INDIRP4
CNSTI4 10... |
inst_rom.om: file format elf32-tradbigmips
Disassembly of section .text:
00000000 <_start>:
0: 3401000f li at,0xf
4: 40815800 mtc0 at,c0_compare
8: 3c011000 lui at,0x1000
c: 34210401 ori at,at,0x401
10: 40816000 mtc0 at,c0_status
14: 40026000 mfc0 v0,c0_status
00000018 <_loop>:
18: 08000... |
.data
a: .word 7
b: .word -5
p_si: .word 0
g: .half 0
h: .half 0
k: .half 43
p1_ss: .half 0
p2_ss: .half g
x: .byte 0
y: .byte 31
z: .byte 99
pi_uc: .byte 0
p2_uc: .byte 0
.text
# p_si=&b;
la $t0,b
sw $t0,p_si
# *p_si+=1; ==> *p_si = *p_si + 1
la $s0,p_si
lw $t0,($s0)
add $t0,$t0,1
sw $t0,($s0)
# a... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonUI/CUtils (common code for all specific UIs)
FILE: cutilsManager.asm (main file for all gadget code)
REVISION HISTORY:
Name Date Description
... |
Name: kart-main-j.asm
Type: file
Size: 18766
Last-Modified: '1992-08-06T07:17:14Z'
SHA-1: 9C343C23AB5716B786C2257BCAFD21A8F4CA3E22
Description: null
|
* Sprite f10
section sprite
xdef mes_f10
include 'dev8_keys_sysspr'
mes_f10
dc.b 0,sp.f10
*
end
|
.equ XLENB, 4
.macro LOAD a1, a2 # 读取内存地址 sp+a2*4 的值到寄存器 a1
lw \a1, \a2*XLENB(sp)
.endm
.macro STORE a1, a2 # 将寄存器 a1 的值保存到内存地址 sp+a2*4
sw \a1, \a2*XLENB(sp)
.endm
.macro SAVE_ALL
# If coming from userspace, preserve the user stack pointer and load
# the kernel stack pointer. If we came from the k... |
HPZ_Header:
smpsHeaderStartSong 2, 1
smpsHeaderVoice HPZ_Voices
smpsHeaderChan $06, $03
smpsHeaderTempo $02, $E0
smpsHeaderDAC HPZ_DAC
smpsHeaderFM HPZ_FM1, $00, $06
smpsHeaderFM HPZ_FM2, $0C, $10
smpsHeaderFM HPZ_FM3, $00, $14
smpsHeaderFM HPZ_FM4, $00, $0E
smp... |
0: CPi 49 100
1: CPI 50 49
2: ADDi 50 1
3: CPIi 49 50
4: CPi 49 101
5: CPI 50 49
6: ADDi 50 1
7: CPIi 49 50
8: CPi 49 102
9: CPI 50 49
10: ADDi 50 1
11: CPIi 49 50
49: 0
50: 0
100: 91
101: 96
102: 5
|
section .data
helloworld: db 'hello world!', 10
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, helloworld
mov rdx, 14
syscall
mov rax, 60
xor rdi, rdi
syscall
|
org 0x9000
%include "blfunc.asm"
%include "common.asm"
BaseOfStack equ 0x9000
BaseOfTarget equ 0xD000
Target db "KERNEL "
TarLen equ $-Target
[section .gdt]
; GDT definition
GDT_ENTRY : Descriptor 0, 0, 0
CODE32_DESC : Descriptor 0, ... |
;RaTol Symbolinen konekieli: Harjoitus 1, tehtävä 5
;Tero Kukka IY96A
;Tiedosto: teht15.asm
;Luotu 12.2.1998
;Hyväksytty []
;Ohjelma laskee yhteen; luku1 = luku1 + luku2
;Makrot
exit MACRO ;esimerkkimakro 'exit'
mov ax, 4c00h
int 2... |
.586
.model flat
.code
_asmFunction_ proc
public _asmFunction_
push ebp
mov ebp,esp
push ecx
push esi
push edi
push edx
mov edi,[ebp+8]
mov esi,[ebp+24]
mov ecx,[ebp+12]
beg:
cmp byte ptr[edi], 'K'
jne nen
inc edi
cmp byte ptr[edi], 'N'
jne neno
dec edi
mov al, byte ptr[edi]
mov byte ptr[esi], al
inc edi
i... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.0 #11528 (MINGW64)
;--------------------------------------------------------
; MODULE main
.optsdcc -mgbz80
; Generated using the rgbds tokens.
; We have to define these here as sdcc doe... |
# $Id: timer.asm,v 1.1 2001/02/21 12:39:41 ellard Exp $
#
# Copyright 2001 by the President and Fellows of Harvard College.
# See LICENSE.txt for license information.
#
# timer.asm - a very simple example of the timer and the timer
# exception.
lc r3, 10 # cycles between timer interrupts.
lcl r4, 'a' # characters ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Text/TextAttr
FILE: taStyleMerge.asm
AUTHOR: Tony
ROUTINES:
Name Description
---- -----------
SendCharAttrParaAttrChange
REVISION HIST... |
; startup == 3
; msx cartridge rom
; April 2014
; submitted by Timmy
; For cartridge I am not sure what facilities are available from the MSX
; system, if any. So this CRT only provides the bare minimum.
;
; Declarations
;
defc TAR__clib_exit_stack_size = 0
defc TAR__register_sp = -0xfc4a
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.