content stringlengths 23 1.05M |
|---|
EDIT_GRID_MENU = 0
EDIT_DRUM_MENU = 1
EDIT_SONG_MENU = 2
EDIT_ECHO_MENU = 3
EDIT_CLEAR_MENU = 4
editMenuText:
.BYTE $7b,$1f,$23,$1d,$ff,$14,$13,$18,$23,$ff,$7c
.BYTE $7b,$4f,$42,$4f,$58,$fc,$4f,$47,$51,$fc,$7c
.BYTE $7b,$fc,$42,$4f,$58,$fc,$4f,$53,$4d,$fc,$7c
.BYTE $7b,$fc,$42,$54,$53,$fc,$4f,$47,$51,$fc,$7c
.BYT... |
INCLUDE MACROS
PUBLIC TEMP_RECORD
.DATA?
TEMP_RECORD DB TEMP_RECORD_SIZE+16 DUP(?)
PUBLIC SLR_PREV_SEG,SLRBUF_PTR,NEXT_AVAIL,NEXT_AVAIL_2,COMPRESS_TABLE,COMPRESS_TABLE_LENGTH,PUTSTUFF_SMALL
PUBLIC PUTSTUFF,SLR_FLUSHSTUFF,FIX_BUFFERS,SLR_NEXT_SEG,OLD_MATCHED_COUNT,OLD_OFFSET,INPTR,INCNT,INFILE_BYTES_LEFT
... |
processor 6502
org $0801 ; sys2061
sysline:
.byte $0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00
org $080d ; sys2061
;clear screen
jsr $e544
; disable interrupts
sei
lda #$7f
sta $dc0d
sta $dd0d
lda #$01
sta $d01a
; set text mode
lda #$1b
ldx #$08
ldy #$14
sta $d011
stx $d016
sty $d014
; i... |
.byte $00 ; Unknown purpose
.byte OBJ_HOTFOOT_SHY, $10, $10
.byte OBJ_HOTFOOT_SHY, $18, $10
.byte OBJ_HOTFOOT_SHY, $27, $14
.byte OBJ_THWOMPLEFTSLIDE, $22, $14
.byte OBJ_THWOMPLEFTSLIDE, $30, $15
.byte OBJ_HOTFOOT_SHY, $32, $10
.byte OBJ_HOTFOOT_SHY, $3A, $11
.byte OBJ_THWOMPRIGHTSLIDE, $41, $10
.byte OBJ_HO... |
Map_3501E0: dc.w Frame_3501E4-Map_3501E0 ; ...
dc.w Frame_350264-Map_3501E0
Frame_3501E4: dc.w $15
dc.b $10, $F, 0, 0,$FF,$98
dc.b $10, $F, 0,$10,$FF,$B8
dc.b $10, $F, 0,$20,$FF,$D8
dc.b $10, $F, 0,$30,$FF,$F8
dc.b $10, $F, 0,$40, 0,$18
dc.b $10, $F, 0,$50, 0,$38
dc.b $10, 7, 8, 0, 0,$58
... |
; Copyright (c) 2009-2012, Michael Alyn Miller <malyn@strangeGizmo.com>.
; 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 copyright notic... |
mov byte [0x00],'L'
mov [0x00],al
;mov [0x01],'L' ;错误'L'可以是1~2B
;mov [0x1001],'L' ;错误'L'可以是1~2B
;mov [0x00],'L' ;错误
;mov byte al,bx ;错误 长度不同,加单位没用
;mov ax,bl ;错误 长度不同
mov [0x01],bl ;正确只能取bl
mov [0x01],bh ;正确只能取bh
mov [0x01],bx ;正确只... |
CODE SEGMENT
ASSUME CS:CODE
START:
MOV AH, 0
INT 31H
INT 30H
JMP START
CODE ENDS
END START
|
obj/bootblock.o: file format elf32-i386
Disassembly of section .startup:
00007c00 <start>:
# start address should be 0:7c00, in real mode, the beginning address of the running bootloader
.globl start
start:
.code16 # Assemble for 16-bit mode
cli ... |
kp_song
kp_reloc
dc.w kp_song_registers
dc.w kp_speed
dc.w kp_grooveboxpos
dc.w kp_grooveboxlen
dc.w kp_groovebox
dc.w kp_patternlen
dc.w kp_patternmap_lo
dc.w kp_patternmap_hi
dc.w kp_insmap_lo
dc.w kp_insmap_hi
dc.w kp_volmap_lo
dc.w kp_volmap_hi
dc.w kp_sequence
kp_song_registers
kp_speed
dc.b $02
kp_g... |
pwdChallenge: file format elf64-x86-64
Contents of section .interp:
0238 2f6c6962 36342f6c 642d6c69 6e75782d /lib64/ld-linux-
0248 7838362d 36342e73 6f2e3200 x86-64.so.2.
Contents of section .note.ABI-tag:
0254 04000000 10000000 01000000 474e5500 ............GNU.
0264 00000000 03000000 02000000 00... |
.DATA
coordX DW 78
coordY DW 78
largeur DW 100
hauteur DW 100
.CODE
LEA SP, STACK
;on efface l'écran au début
LD R0,0
OUT R0,5
;Dessin du carré initial au centre de l'écran
PUSH coordX
PUSH coordY
PUSH largeur
PUSH hauteur
CALL carre100 ;appel procédure dessin
boucle:
;Attente de clic sur les bou... |
; vim:noet:sw=8:ts=8:ai:syn=pic
;
; USB 512-Word CDC Bootloader for PIC16(L)F1454/5/9
; Copyright (c) 2015, Matt Sarnoff (msarnoff.org)
; v1.0, February 12, 2015
; Released under a 3-clause BSD license: see the accompanying LICENSE file.
;
; Minimal, low-latency UART logging system.
; Uses a 256-byte circular buffer al... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Text Library
FILE: uiRulerShowControl.asm
ROUTINES:
Name Description
---- -----------
GLB RulerShowControlClass Style menu object
REVIS... |
Let
matrix = [42 42 64 64]
id = [1 0 0 1]
poly = [0 1]
near = [100 200 300 400]
In
^ matrix
* near
* id
+ matrix
@ near
|
; ++
;
; File:
;
; intrinsics.asm
;
; Author:
;
; Dude719
;
; Environment:
;
; 32 bit
;
; --
.386
.MODEL flat, stdcall
;*********************************************************************
; .data section
.DATA
;*********************************************************************
; .text section
.CODE
;*******... |
#subruledef Reg
{
x => 0x00
y => 0xff
}
#ruledef
{
add {r: Reg} =>
{
assert((r & 0xff) != 0xff)
r
}
}
add x
add y
; error:_:17: failed to resolve
; error:_:11: assertion |
IF !__CPU_INTEL__ && !__CPU_GBZ80__
SECTION code_sound_ay
PUBLIC _ay_wyz_init
PUBLIC _ay_wyz_init_fastcall
EXTERN asm_wyz_player_init
EXTERN asm_wyz_TABLA_PAUTAS
EXTERN asm_wyz_TABLA_SONIDOS
EXTERN asm_wyz_TABLA_SONG
EXTERN asm_wyz_DATOS_NOTAS
; void ay_wyz_init(wyz_... |
UndergroundPathRoute8_Script:
ld a, ROUTE_8
ld [wLastMap], a
jp EnableAutoTextBoxDrawing
UndergroundPathRoute8_TextPointers:
dw UndergroundPathEntranceRoute8Text1
UndergroundPathEntranceRoute8Text1:
text_far _UndergroundPathEntRoute8Text1
text_end
|
[bits 64]
shl rax, 5 ; 48 c1 e0 05
shl rax, 32 ; 48 c1 e0 20
shr rax, 5 ; 48 c1 e8 05
shr rax, 32 ; 48 c1 e8 20
|
.data
.text
main: li $v0, 5
syscall
sw $v0, 2048($0) # 2048 store n
addiu $sp, $sp, -20
sw $0, 0($sp)
jal FA
li $v0, 10
syscall
FA:
lw $s0, 0($sp) # $s0 = index
lw $t0, 2048($0) # $t0 = n
li $t1, 0 # $t1 = for i
beq $s0, $t0, print
reFA: beq $t1, $t0, exit # if i==n, break
sll $t... |
lda {m1}+3
cmp #>{c1}>>$10
bne !+
lda {m1}+2
cmp #<{c1}>>$10
bne !+
lda {m1}+1
cmp #>{c1}
bne !+
lda {m1}
cmp #<{c1}
beq {la1}
!: |
format PE64 GUI 4.0
entry start
INFINITE = 0xffffffff
IDI_APPLICATION = 32512
IDC_ARROW = 32512
WS_VISIBLE = 010000000h
WS_OVERLAPPED = 000000000h
WS_CAPTION = 000C00000h
WS_SYSMENU = 000080000h
WS_VISIBLE = 010000000h
WS_MINIMIZEBOX = 000020000h
CW_USEDEFAULT = 80000000h
PM_REMOVE = 0001h
WM_QUIT = 0012h
WM_KEYDOWN =... |
; Copyright (C) 2014 Renesas Electronics Corporation
; RENESAS ELECTRONICS CONFIDENTIAL AND PROPRIETARY.
; This program must be used solely for the purpose for which
; it was furnished by Renesas Electronics Corporation. No part of this
; program may be reproduced or disclosed to others, in any
; form, without the... |
bits 32
extern load_start
extern load_end
extern bss_end
global start
section .mboot
; Multiboot stuff
MBOOT_PAGE_ALIGN equ 1
MBOOT_MEM_INFO equ 2
MBOOT_USE_ADDRS equ 1 << 16
MBOOT_HEADER_MAGIC equ 0x1BADB002
MBOOT_HEADER_FLAGS equ MBOOT_PAGE_ALIGN | MBOOT_MEM_INFO | MBOOT_USE_ADDRS
MBOOT_CHECKSUM equ -(MBOOT... |
%include "TiberianSun.inc"
%include "macros/patch.inc"
%macro CacheMixFile 1
hack %1
call 0x00559A10
test eax, eax
jz hackend
push eax
push 0
mov ecx, eax
call 0x00559F30
pop eax
jmp hackend
%endmacro
%if 0
hack 0x004E3EE8
call 0x00559A10
test eax, eax
jz h... |
; ====================== ZagrOS ======================
; Zagros Open Source Operating System
; Saeid Bostandoust (ssbostan@linuxmail.org)
; Bostandoust.IR
; ====================== ZagrOS ======================
; ==================== tools_time ====================
tools_time:
push ax
push c... |
;
; SAM Coup� C Library
;
; Print character to the screen
;
; We will corrupt any register
;
;
; Frode Tenneb� - 29/12/2002
SECTION code_driver
PUBLIC fputc_cons_native
EXTERN THIS_FUNCTION_ONLY_WORKS_WITH_BASIC_SUBTYPE
PUBLIC ___fputc_cons_native_protection
defc ___fputc_cons_nati... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, 14/09/2006
;
; int zx_fullerstick();
;
; The result is:
; - 1 (true) if a fuller Joystickstick is present
; - 0 (false) otherwise
;
; $Id: zx_fullerstick.asm,v 1.3 2016-06-10 20:02:05 dom Exp $
;
SECTION code_clib
PUBLIC zx_fullerstick
PUBLIC _zx_fullerstick
... |
; 0301 - EOR immediate
.segment "VECTORS"
.word $eaea
.word init
.word $eaea
.code
init:
eor #%10000000 ; Test negative
eor #%10000000 ; Test zero
|
include cmacros.inc
sBegin DATA
assumes DS,DGROUP
globalW fFillBlock,-1
globalW wFillBlock,0CCCCH
globalW fNew,0
sEnd
PUBLIC kludge_sn, kludge_q
kludge_sn EQU 0
sBegin code
labelFP kludge_q
cProc SbMgrError, <FAR, PUBLIC>
cBegin SbMgrError
int 3
cEnd SbMgrError
;********** StartCowMeas **********
;* * ... |
; vim:ts=4:et:
; FASTCALL boolean xor 8 version.
; result in Accumulator (0 False, not 0 True)
; __FASTCALL__ version (operands: A, H)
; Performs 8bit xor 8bit and returns the boolean
__XOR16:
ld a, h
or l
ld h, a
ld a, d
or e
__XOR8:
sub 1
sbc a, a
ld l, a ; l = 00h or FFh
ld a, h
sub ... |
;
; Initially include the zcc_opt.def file to find out lots of lovely
; information about what we should do..
;
IFNDEF CRT_ORG_CODE
defc CRT_ORG_CODE = 40000
ENDIF
defc TAR__clib_exit_stack_size = 32
defc TAR__register_sp = -1
INCLUDE "crt/classic/crt_rules.inc"
org CRT_ORG_C... |
name "faradv"
org 100h ; set location counter to 100h
jmp start
adr_a dw offset a
seg_a dw ?
adr_c dw offset c
seg_c dw ?
; set segments, requred because we don't know where
; the program will be loaded by the operating system
start:
mov ax, cs
mov seg_a, ax
mov seg_c, ax
call far adr_a
call b
call far adr_... |
dc.l end+1024 ; start up SP
dc.l start ; start up PC
; demonstrates the 128x64 frame buffer display and the VBL plugin
; this got a bit out of hand and some sections of code rely
; on certain registers not getting changed... not terribly good practice!
rorg $400
frame:
... |
BITS 32
section .text
foo:
bt si, si
btc [dword 300+edx], si
btr [8*eax], edi
bts edi, edi
bt si, 9
btc word [dword 300+edx], byte 9
btr edi, 9
bts dword [8*eax], byte 9
|
;
; todo -
;
.include "atmmc2def.asm"
; OS overrides
;
TOP =$0d
PAGE =$12
ARITHWK =$23
; these need to be in ZP
;
RWPTR =$ac ; W - data target vector
ZPTW =$ae ; [3] - general use temp vector, used by vechexs, RS, WS
LFNPTR =$c9 ; W -p... |
; asmsyntax=apricos
; ===================================
; == ==
; == ApricotOS Display Library ==
; == ==
; == Revision 2 ==
; == ==
; == (C) 2014-17 Nick Stones-Havas ==
; == ... |
object_const_def ; object_event constants
const ROUTE27SANDSTORMHOUSE_GRANNY
Route27SandstormHouse_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
SandstormHouseWoman:
faceplayer
opentext
checkevent EVENT_GOT_TM37_SANDSTORM
iftrue .AlreadyGotItem
special GetFirstPokemonHappiness
writetext SandstormHouseW... |
nata segment 'code'
assume cs:nata
org 100h
begin: jmp main
;--------------------------------- DATA
Roads DB 11,'MOC11 ',12,'HAR12 '
DB 13,'KIR13 ',14,'LOP14 '
DB 15,'JUN15 ',16,'POC16 '
DB 17,'YIV17 ',18,'AUT18 '
DB 19,'SET19 ',20,'XOR20 '
Rezult DB 9 Dup(?),'$'
Buf DB 3,3 Dup(?)
Number... |
0x0000 (0x000000) 0x2118- f:00020 d: 280 | A = OR[280]
0x0001 (0x000002) 0xB434- f:00132 d: 52 | R = OR[52], A = 0
0x0002 (0x000004) 0x0000- f:00000 d: 0 | PASS
0x0003 (0x000006) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
... |
.model small
.stack
.data
arr db 01h,00h,-03h,00h,-05h,06h,07h,08h
len db 07h
MSG DB 0DH,0AH, ' GREATER $'
MSG1 DB 0DH,0AH, ' LESSER $'
MSG2 DB 0DH,0AH, ' ZERO $'
.code
mov ax,@data
mov ds,ax
mov ax,0h;
mov cx,0h;
mov cl,len;
mov s... |
org 0x100
K_BACKSPACE equ 0x08
K_RETURN equ 0x0D
K_ESCAPE equ 0x1B
K_HOME equ 0x4700
K_UP equ 0x4800
K_PGUP equ 0x4900
K_LEFT equ 0x4B00
K_RIGHT equ 0x4D00
K_END equ 0x4F00
K_DOWN equ 0x5000
K_PGDOWN equ 0x5100
X:
mov ax, .CommandList
... |
*PROCESS DUPALIAS
*
* Compiled by DCC Version 2.25.07 Mar 6 2021 08:51:07
* on Fri Apr 30 15:35:26 2021
*
WXTRN @@ZARCH#
*
*
*
* Code Section
*
@CODE ALIAS X'7CD9C4D2C1C6D2C16DC2E4C6'
@CODE CSECT
@CODE AMODE ANY
@CODE RMODE ANY
@DATA ALIAS X'7C998492818692816D82A486'
write ALI... |
; int mtx_lock_fastcall(mtx_t *m)
SECTION code_threads_mutex
PUBLIC _mtx_lock_fastcall
EXTERN asm_mtx_lock
defc _mtx_lock_fastcall = asm_mtx_lock
|
section .data
section .text
global _start
_start:
nop
; Put your experiments between the two nops...
; Put your experiments between the two nops...
nop
section .bss
|
; Copyright 2001-2010 Mersenne Research, Inc. All rights reserved
; Author: George Woltman
; Email: woltman@alum.mit.edu
;
TITLE setup
IFNDEF X86_64
.686
.XMM
.MODEL FLAT
ENDIF
INCLUDE unravel.mac
INCLUDE extrn.mac
INCLUDE xarch.mac
INCLUDE xbasics.mac
INCLUDE xmult.mac
INCLUDE memory.mac
INCLUDE xnormal.mac... |
; Test for array definitions
db 10 * 20
db "A"
db 20
|
.mem LINE 4 RO
.data 1 "\n========================================"
.mem BOARD 4 RW
.data 64 [32] # 32 = space
.mem XCOORDS 4 RW
.data 8 [0]
.mem COUNTER 4 RW
.data 4 [0]
.fun exit NORMAL [] = [U32]
# live_out: ['r0']
.reg U32 [$r0_U32 out]
.reg A32 [$sp_A32]
.bbl start
syscall arm_syscall_exit 1:U32
... |
; String Positioning in Column-Centric of 80x80 terminal — STR_POS.asm
; Copyright (c) 2021 Janrey Licas
; This code is licensed under MIT license. (see LICENSE for details)
.MODEL TINY
.DATA ; String to be displayed. Basically, my information.
FN_STR DB "Janrey T. Licas$"
SN_STR DB "1810386$"
PR_STR DB "CpE Program... |
global _main
extern _puts
section .text
_main:
push message
call _puts
add esp, 4
ret
section .data
message:
db 'Hello, World!', 0
|
;===================================================
;=== Scale_ADC_PRO.ASM
;===================================================
_ProcAdc:
MOVFF TempRam1,H_DR
MOVFF TempRam2,M_DR
MOVFF TempRam3,L_DR
MOVFF TempRam4,H_DATA
MOVFF TempRam5,M_DATA
MOVFF TempRam6,L_DATA
CALL _Sub3_3
CALL _Neg3
... |
.data # variable declarations follow this line
var1: .word 3 # int a;
var2: .word 5 # int b;
result: .word 0 # int result;
.text
main:
addi $sp, $sp, -12 # stack frame
sw $ra, 0($sp) # store $ra
lw $a0, var1 # a = 3
lw $a1, var2 # b = 3
lw $a2, result # result = 0
sw $a2, 4($sp) # s... |
; William Barden, Jr. 'TRS-80 Assembly-Language Programming', 1979 pg 190.
;
; Multiplies a 16-bit number by an 8-bit number.
;
; Entry: de 16-bit multiplicand, unsigned
; b 8-bit multiplier, unsigned
; Exit: hl product
; de addr destination area + 1
; bc 0
barden_mul16: ld hl,0 ; Clear in... |
ori $ra,$ra,0xf
mthi $4
lb $4,11($0)
addu $6,$3,$3
addu $5,$2,$4
addiu $1,$5,-16596
lb $6,1($0)
mthi $5
srav $5,$5,$4
sll $0,$0,20
sll $3,$3,6
divu $2,$ra
addiu $0,$0,-25695
divu $4,$ra
addu $4,$3,$3
addiu $4,$1,16249
ori $1,$0,20410
sb $4,8($0)
lb $1,16($0)
div $6,$ra
multu $5,$1
lb $6,13($0)
sb $5,15($0)
multu $0,$2
... |
; Interface to RS232INT.EXE module
CODESEG SEGMENT PARA PUBLIC 'CODE'
PUBLIC REFRESH
PUBLIC SETSENSE
PUBLIC SENDBREAK
PUBLIC BUFSIZE
PUBLIC RECEIVE
PUBLIC SEND
;
; TABLE OFF ADDRESSES TO BE FILLED FOR JUMPS
SZ DW 0
FIRST DW ?
SB DW 10H
D... |
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
;IN USING, DISPLAYI... |
.file "linuxaudiodev.c"
.data
.local n_audio_types
.type n_audio_types, @object
n_audio_types:
.long 9
.size n_audio_types, 4
# ----------------------
.section .data.rel,"wa",@progbits
.local Ladtype
.type Ladtype, @object
Ladtype:
.long 1
.long PyType_Type
.long 0
.long .LC00000000.str1.4
.long 28
... |
; Reimplementation of stack operations (without using `pop` and
; `push` instructinos).
; This stack grows to the right.
xor x0 0xff ; stack starts at, say, 0x00FF
xor x1 3 ; value to be pushed
;; push ;;
inc! x0 ; increment stack pointer
; stack base will always be 0
xchg x1 x0 ; exchange value of r1 and value ... |
;
; Copyright (C) 2008-2012 Intel Corporation.
; SPDX-License-Identifier: MIT
;
.686
.xmm
.model flat,c
.CODE
ALIGN 4
mix_fp_save PROC
mov ecx, DWORD PTR[esp+4]
fxsave BYTE PTR [ecx]
emms
ret
mix_fp_save ENDP
.CODE
ALIGN 4
mix_fp_restore PROC
mov ecx, DWORD PTR[esp+4]
fxrstor BYTE PTR [ecx]
ret
mi... |
0x0000 (0x000000) 0x2119- f:00020 d: 281 | A = OR[281]
0x0001 (0x000002) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0002 (0x000004) 0x2908- f:00024 d: 264 | OR[264] = A
0x0003 (0x000006) 0x3108- f:00030 d: 264 | A = (OR[264])
... |
GLOBAL getTempTargetInfo
GLOBAL getTempOffsetInfo
getTempTargetInfo:
push rbp
mov rbp,rsp
mov ecx,1A2h; setear la direc de memoria para temperature_status
;rdmsr; me tira la info de la temp en edx:eax
mov eax,0x5640000
mov rsp, rbp
pop rbp
ret
getTempOffsetInfo:
push rbp
... |
;
; Enterprise 64/128 C stub
;
; Stefano Bodrato - 2011
;
;
; $Id: enterprise_crt0.asm,v 1.11 2011/04/01 06:50:45 stefano Exp $
;
; There are a couple of #pragma commands which affect
; this file:
;
; #pragma no-streams - No stdio disc files
; #pragma no-fileio - No fileio at all
; #pragma no-... |
*****************************************************************************
; Name : IntroPrototype.asm
; Coded by : Antiriad (Jonathan Bennett <jon@autoitscript.com>)
; Description : Shared useful functions that can be turned on from IntroConfig.i.
; Date last edited : 04/02/2020
**************************... |
; 2018 July feilipu
SECTION code_clib
SECTION code_math
PUBLIC l_z80n_mulu_24_16x8
l_z80n_mulu_24_16x8:
; multiplication of 16-bit number and 8-bit number into a 24-bit product
;
; enter : hl = 16-bit multiplier = x
; e = 8-bit multiplicand = y
;
; exit : ahl = 24-bit product
... |
page 60,132
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
; $SALUT (4,25,30,41)
INCLUDE pridefs.INC
BREAK <Resident Portion Messages>
;
; DOS PRINT
;
; Resident Portion Messages
;
; 02/... |
;Write X86 program to sort the list of integers in ;ascending/descending order.
;Read the input from the text file and write the sorted data back ;to the same text file using bubble sort
section .data
fname db 'a.txt',0
msg1 db 'File opened Sucessfully',0xa
len1 equ $-msg1
msg2 db 'Error in opening File ',0xa
... |
BITS 64
section .text
global _start
_start:
;; fork
xor rax, rax
xor rdi, rdi
mov al, 0x39; syscall fork
syscall
cmp rax, 0x0; check return value
jg pause; int3 if in parent
watchdog:
;; fork to exec agent
xor rax, rax
xor rdi, rdi
mov al, 0x39; syscall fork
syscall
cmp rax, 0x0; check return va... |
; KalioOS (C) 2020 Pranav Bagur
;
; The specific BIOS routine we are interested in here is accessed by raising
; interrupt 0x13 after setting the register al to 0x02. This BIOS routine expects
; us to set up a few other registers with details of which disk device to use,
; which blocks we wish to read from the disk, a... |
; DirectDraw programming example
format PE GUI 4.0
entry start
include '%include%\win32a.inc'
include 'ddraw.inc'
section '.data' data readable writeable
_title db 'flat assembler DirectDraw application',0
_class db 'FDDRAW32',0
_error db 'Error',0
_ddraw_error db 'Direct Draw initializat... |
asm coffeeVendingMachine
//Una macchinetta automatica dispensa caffe', te' e latte. La macchinetta accetta solo
//monete da 50 centesimi e da 1 euro. Se viene inserita una moneta da 50 centesimi, la
//macchinetta dispensa latte (se disponibile); se viene inserita una moneta da 1 euro,
//invece, la macchinetta decide i... |
[bits 64]
init_pit:
push rax
; Set the PIT mode, timer 0, square wave gen, hex
mov al, 0x34
out 0x43, al
; Lower bits
mov al, 0xFF
out 0x40, al
; Upper bits
mov al, 0xFF
out 0x40, al
pop rax
ret
; ecx -> Hardware P-state [0, 7] (not checked for validity!)
; rax <- Frequency of the corresponding ... |
COMMAND = 0xFFF0
CMD_ARG = 0xFFF1
CMD_EXIT = 0
CMD_GETCH = 1
CMD_PUTCH = 2
PTR = 0xC0
.r65c02
.area CODE (ABS)
.org 0xFF00
start:
ldx #0xFF
txs
;; msg
lda #<msg
ldx #>msg
jsr putstr
;; echo
loop:
jsr getch
cmp #0x1F
beq exit
jsr putch
bra loop
exit:
lda #CMD_EXIT
sta COMMAND
... |
/**
SEÑALES DE ENTRADA
PUERTO B
M: SE ACTIVA CUANDO EL USUARIO METE UNA MONEDA -->BIT2
S1 Y S0: FORMAN EL SENSOR DE MONEDAS --> BIT1 Y BIT0
SEÑALES DE SALIDA
PUERTO C
P: DEVUELVE EL PRODUCTO --> BIT0
C50: DEVUELVE CAMBIO DE 50 --> BIT1
C1: DA COMO CAMBIO UN EURO --> BIT2
TODO: DEVUELVE TODAS LAS MONEDAS INTRODUCIDAS... |
MtMoonPokecenterScript:
call Serial_TryEstablishingExternallyClockedConnection
jp EnableAutoTextBoxDrawing
MtMoonPokecenterTextPointers:
dw MtMoonHealNurseText
dw MtMoonPokecenterText2
dw MtMoonPokecenterText3
dw MagikarpSalesmanText
dw MtMoonPokecenterText5
dw MtMoonTradeNurseText
MtMoonHealNurseText:
db $f... |
SECTION TEXT
H_INPUT OP1
H_INPUT OP2
LOAD OP1
ADD OP2
STORE SOMA
LOAD OP1
SUB OP2
STORE SUBTRACAO
LOAD OP1
DIV OP2
STORE DIVISAO
LOAD OP1
MULT OP2
STORE MULTIPLICACAO
COPY OP1, COPIA
JMP PRINT
; Jump com printf so para teste da instrucao
PRINT:
H_OUTPUT SOMA
S_OUTPUT NEWLINE,1
H_OUTPUT SUBTRACAO
S_OUTPUT NEWLIN... |
; Write a block V2.01 1998 Tony Tebby
;
; 2016-04-16 2.01 Added alpha blending support (MK)
;
; Registers:
; Entry Exit
; D0 error code
; D1 colour (QL)
; A0 ^ cdb
; A1 ^ block descriptor
; A2 ^ primary colour, secondary colour, stipple
;
section con
include 'dev8_keys_con'
include 'dev8_keys_err'
... |
device zxspectrum128
org #7ff1
start
disp #1eb4
ld a,77h
out (3),a
wdn in a,(4)
rla
jr c,wdn
ret
wdy in a,(4)
rla
jr nc,wdy
ret
di
ld (#1234),sp
ld a,77h
out (3),a
ld a,77h
out (3),a
ld a,77h
ou... |
xor r0,r0,r0
ldl $8000
and r7,r7,r2
xor r3,r3,r3
ldl $8002
and r7,r7,r6
ldl #textsize
load r0,r7,r1
ldl #textptr
and r7,r7,r4
>loop
load r0,r4,r5
ldl $1
add r7,r4,r4
add r7,r3,r3
sub r1,r7,r1
store r0,r2,r3
nop r0,r0,r0
store r0,r6,r5
ldl #out
cmp r1,r0,r0
je r0,r7,r0
ldl #loop
jmp r0,r7,r0
>out
nop r0,r0,r0
hlt
>texts... |
BITS 32
SEGMENT .text
;this function needs to mock up what a 'ret' does
;we take 2 parameters -
; * the return address to branch to
; * a pointer to the register context structure
; * we need to take all of the registers that are in
; the register parameter structure and
global _doRet
; void doRet(uint32_t... |
.data
A: .word 10 -4 6 91
B: .word 21 2 -1 15
C: .word 2 0 1 7
space: .asciiz " "
.text
.globl main
main:
la $a0, A
la $a1, B
la $a2, C
li $a3, 4
jal combineArr
move $a0, $v0
li $v0, 1
syscall
la $s0, C
lw $a0, ($s0)
li $v0, 1
syscall
li $v0, 4
la $a0, space
syscall
li $v0, 1
lw... |
copyright zengfr site:http://github.com/zengfr/romhack
0039FA movem.l D0-D3, -(A6)
0039FE movem.l D0-D3, -(A6)
009ACA dbra D5, $9ac8
057C52 move.w #$2, ($52,A6) [weapon+50]
057C58 move.w #$480, ($54,A6) [weapon+52]
057CDC move.w #$2, ($52,A6) [weapon+50]
057CE2 move.w #$300, ($54,A6) [weapon+52]
058C6... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Kernel/Graphics
FILE: graphicsPath.asm
AUTHOR: Don Reeves
ROUTINES:
Name Description
---- -----------
GLB GrBeginPath Opens a subPath f... |
D8_Header:
sHeaderInit ; Z80 offset is $DEB4
sHeaderPatch D8_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, D8_FM5, $00, $02
D8_FM5:
sPatFM $00
dc.b nAb5, $15
sStop
D8_Patches:
; Patch $00
; $3E
; $34, $00, $75, $02, $59, $D9, $5F, $9C
; $0F, $04, $0F, $0A, $02, $02, $05, $05
; $FF, $F... |
global _start
global _early_stack_end
global _early_stack
extern kernel_main
section .bss nobits
_early_stack_end:
resb 0xf000
_early_stack:
section .text exec
bits 64
_start:
;; Target of far jump to long mode
;; rdi should theoretically contain the boot proto ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Kernel/Graphics
FILE: graphicsPatternHatch.asm
AUTHOR: Don Reeves, Mar 19, 1992
REVISION HISTORY:
Name Date Description
---- ---- -----------... |
; We all love zookeeper !!!!
; Submitted by Anonymous
ldx #0
lda #0
hupsu:
sta $200,x
sta $300,x
sta $400,x
sta $500,x
bne hupsu
lda #1
ldx #0
fill:
txa
tay
lda seko,x
tax
lda kuva,x
sta $200,x
lda kuva_0,x
sta $300,x
lda kuva_1,x
sta $400,x
lda kuva_2,x
sta $500,x
tya
tax
inx
bne fill
r... |
.text
.global _start
_start:
add $5, %al
int $0x80
|
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.1.0 #12072 (Linux)
;--------------------------------------------------------
.module stm8l10x_it
.optsdcc -mstm8
;--------------------------------------------------------
; Public variable... |
assume cs:code
code segment
mov ax,0ffffh
mov ds,ax
mov ax,0020h
mov es,ax
mov bx,0
mov cx,12
s: mov dl,[bx]
mov es:[bx],dl
inc bx
loop s
mov ax,4c00h
int 21h
code ends
end
|
RGB: MACRO
rept _NARG / 3
dw palred (\1) + palgreen (\2) + palblue (\3)
shift
shift
shift
endr
ENDM
palred EQUS "(1 << 0) *"
palgreen EQUS "(1 << 5) *"
palblue EQUS "(1 << 10) *"
palettes EQUS "* PALETTE_SIZE"
palette EQUS "+ PALETTE_SIZE *"
color EQUS "+ PAL_COLOR_SIZE *"
tiles EQUS "* LEN_2BPP_TILE"
til... |
include mpcp.inc
.data
msg BYTE "123456789", 0
output_error BYTE "The arguments are invalid!", 13,10,0
output BYTE "The string was shrinked with sucess! Result:", 13, 10, 0
.code
; proto
SHRINK_RIGTH PROTO C string:ptr byte, len:dword, n:dword
SHRINK_LEFT PROTO C string:ptr byte, len:dword, n:dword
TRIM... |
SECTION code_fp_math16
PUBLIC logf16
EXTERN _m16_logf
defc logf16 = _m16_logf
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _logf16
defc _logf16 = logf16
ENDIF
|
org 0000h
LJMP START ;Pula incondicionalmente para START
org 000Bh
INT_TEMP0:
CPL P1.7 ;complementa P1.7
RETI ;Retorna da interrupção
org 0080h
START:
MOV TMOD,#00001110b ;Usa modo 02 e Habilita o Contador
MOV TH0, #236 ;valor para a recarga
MOV TL0, #236 ;valor para a contagem
SETB EA ;Habilita as interrupçõe... |
; PLAY68 PWM output
; by Robin Grosset
code
org $1EE0
ldab #$E8 ; amplitude
ldx #$0FFF ; duration
pwm ldaa #$AA ; frequency
pulse deca ; pulse delay
inca ; waste time pt1
deca ; waste time pt2
bne pulse
stab... |
MODULE generic_console_ioctl
PUBLIC generic_console_ioctl
SECTION code_clib
INCLUDE "ioctl.def"
EXTERN generic_console_cls
EXTERN generic_console_font32
EXTERN generic_console_udg32
EXTERN __mc1000_modeval
EXTERN __mc1000_mode
EXTERN __console_w
INCLUDE "target/mc1000/def/mc1000.def"
; a = ioctl
; de =... |
; vi:syntax=z80
; ZEnv - Forth for the ZX Spectrum
; Copyright 2021 (C) - Christopher Leonard, MIT Licence
; https://github.com/veltas/zenv
; Master assembly/definitions file
tokenised: EQU 1
t_attr_init: EQU 0x38
load_addr: EQU 0x8000
disp_file_val: EQU 0x4000
disp_size_val: EQU 0x1800
attr_file_val: EQU 0x5800
at... |
;***********************************************************
; Version 2.40.00
;***********************************************************
; Function: hilb16
; Processor: C55xx
; Description: Hilbert tansformer using FIR filter - single MAC approach
;
;
; Useage:... |
; 64-bit Library (Irvine64.asm)
; Version 1.0, 1/1/2014
COMMENT !
This library was created exlusively for use with the book,
"Assembly Language for Intel-Based Computers", 7th Edition,
by Kip R. Irvine, 2014.
Copyright 2014, Prentice-Hall Publishing. No part of this file may be
reproduced, in any form or by any othe... |
BURN_LINES_PAL = 100
SEPARATION = 10
INCLUDE main.inc
SEG.U VARS_TEST
ORG $80
Counter DS.B 1
SEG CODE_TEST
ORG $F200
Test1 SUBROUTINE
CLC
LDA #12
STA Counter
LDA #$A0
LDX #0
LDY #02
.loop
STA HMM0
STA HMM1
STX WSYNC
STX ENAM0
STX ENAM0
STX ENA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.