hexsha stringlengths 40 40 | size int64 6 1.05M | ext stringclasses 3 values | lang stringclasses 1 value | max_stars_repo_path stringlengths 4 232 | max_stars_repo_name stringlengths 7 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 7 | max_stars_count int64 1 33.5k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 232 | max_issues_repo_name stringlengths 7 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 7 | max_issues_count int64 1 37.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 232 | max_forks_repo_name stringlengths 7 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 7 | max_forks_count int64 1 12.6k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 6 1.05M | avg_line_length float64 1.16 19.7k | max_line_length int64 2 938k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
049596ac1eee0fcdc40a6fec4c1db1e4c3ee84f8 | 3,483 | asm | Assembly | quiz.asm | AshisPadhi/QUIZ | b3251fc7429f0e954e8cae887ecf8817ce5de427 | [
"MIT"
] | null | null | null | quiz.asm | AshisPadhi/QUIZ | b3251fc7429f0e954e8cae887ecf8817ce5de427 | [
"MIT"
] | null | null | null | quiz.asm | AshisPadhi/QUIZ | b3251fc7429f0e954e8cae887ecf8817ce5de427 | [
"MIT"
] | null | null | null | .data
answer: .byte 'a','b','c','a','a'
ask_op: .asciiz"Answer: "
game: .asciiz"\n\tQUIZ"
line: .asciiz"______________________________"
fullmarks: .asciiz"\tF.M=5\n"
ques1: .asciiz"\n\n1. What is the capital of India ?\n"
q1opa: .asciiz"a)Delhi\n"
q1opb: .asciiz"b)Mumbai\n"
q1opc: .asciiz"c)Agra\n"
q1opd: .asciiz"d)Bhubaneswar\n"
ques2: .asciiz"\n\n2. What is my name ?\n"
q2opa: .asciiz"a)A.K.P\n"
q2opb: .asciiz"b)ASHIS\n"
q2opc: .asciiz"c)PADHI\n"
q2opd: .asciiz"d)AK\n"
ques3: .asciiz"\n\n3. What is my age ?\n"
q3opa: .asciiz"a)19\n"
q3opb: .asciiz"b)20\n"
q3opc: .asciiz"c)21\n"
q3opd: .asciiz"d)24\n"
ques4: .asciiz"\n\n4. What is my NUMBER ?\n"
q4opa: .asciiz"a)7064247858\n"
q4opb: .asciiz"b)7124568957\n"
q4opc: .asciiz"c)6987598545\n"
q4opd: .asciiz"d)9845687515\n"
ques5: .asciiz"\n\n5. What is my favourite game ?\n"
q5opa: .asciiz"a)FIFA\n"
q5opb: .asciiz"b)WWE\n"
q5opc: .asciiz"c)PUBG\n"
q5opd: .asciiz"d)CS\n"
score: .word 0
box1: .asciiz"\n -------------\n"
s_card: .asciiz" | SCORECARD |\n"
box2: .asciiz" -------------\n"
name: .asciiz"\nNAME:"
buffer: .space 30
ask_name: .asciiz"\nEnter your name(30 letters maximum)=>"
score_out: .asciiz"\nSCORE:"
percentile: .asciiz"\nPERCENTILE:"
.text
main:
#li $t6, 5
la $a0, ask_name
li $v0, 4
syscall
li $v0, 8
la $a0, buffer
li $a1,20
move $t4, $a0
syscall
la $a0, game
li $v0, 4
syscall
la $a0, fullmarks
li $v0, 4
syscall
la $a0,line
li $v0, 4
syscall
la $a0, ques1
li $v0, 4
syscall
la $a0, q1opa
li $v0, 4
syscall
la $a0, q1opb
li $v0, 4
syscall
la $a0, q1opc
li $v0, 4
syscall
la $a0, q1opd
li $v0, 4
syscall
la $a0, ask_op
li $v0, 4
syscall
li $v0, 12
syscall
#addi $t6, $t6, -1
#bnez $t6, EXIT
la $t0, answer
lb $t1, 0($t0)
bne $t1, $v0,L1
addi $t7,$t7,1
L1:move $v0, $0
la $a0, ques2
li $v0, 4
syscall
la $a0, q2opa
li $v0, 4
syscall
la $a0, q2opb
li $v0, 4
syscall
la $a0, q2opc
li $v0, 4
syscall
la $a0, q2opd
li $v0, 4
syscall
la $a0, ask_op
li $v0, 4
syscall
li $v0, 12
syscall
#addi $t6, $t6, -1
#bnez $t6, EXIT
lb $t1, 1($t0)
bne $t1, $v0,L2
addi $t7,$t7,1
L2:move $v0, $0
la $a0, ques3
li $v0, 4
syscall
la $a0, q3opa
li $v0, 4
syscall
la $a0, q3opb
li $v0, 4
syscall
la $a0, q3opc
li $v0, 4
syscall
la $a0, q3opd
li $v0, 4
syscall
la $a0, ask_op
li $v0, 4
syscall
li $v0, 12
syscall
lb $t1, 2($t0)
bne $t1, $v0,L3
addi $t7,$t7,1
L3:move $v0, $0
la $a0, ques4
li $v0, 4
syscall
la $a0, q4opa
li $v0, 4
syscall
la $a0, q4opb
li $v0, 4
syscall
la $a0, q4opc
li $v0, 4
syscall
la $a0, q4opd
li $v0, 4
syscall
la $a0, ask_op
li $v0, 4
syscall
li $v0, 12
syscall
lb $t1, 3($t0)
bne $t1, $v0,L4
addi $t7,$t7,1
L4:move $v0, $0
la $a0, ques5
li $v0, 4
syscall
la $a0, q5opa
li $v0, 4
syscall
la $a0, q5opb
li $v0, 4
syscall
la $a0, q5opc
li $v0, 4
syscall
la $a0, q5opd
li $v0, 4
syscall
la $a0, ask_op
li $v0, 4
syscall
li $v0, 12
syscall
lb $t1, 4($t0)
bne $t1, $v0, EXIT
addi $t7,$t7,1
EXIT:
add $t9,$t9,$t7
sw $t9,score
la $a0, box1
li $v0, 4
syscall
la $a0, s_card
li $v0, 4
syscall
la $a0, box2
li $v0, 4
syscall
la $a0, name
li $v0, 4
syscall
la $a0, buffer
move $a0, $t4
li $v0, 4
syscall
la $a0, score_out
li $v0, 4
syscall
move $a0, $t9
li $v0, 1
syscall
move $v0, $0
li $v0,10
syscall
| 13.143396 | 59 | 0.589722 |
24a06351613c684a18e48ef832f17aecf1c5f122 | 638 | asm | Assembly | oeis/313/A313296.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/313/A313296.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/313/A313296.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A313296: Coordination sequence Gal.6.209.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Simon Strandgaard
; 1,4,9,15,21,27,33,39,45,51,56,60,64,69,75,81,87,93,99,105,111,116,120,124,129,135,141,147,153,159,165,171,176,180,184,189,195,201,207,213,219,225,231,236,240,244,249,255,261,267
mov $1,$0
add $0,1
add $0,$1
add $0,1
mov $2,$1
mov $3,$1
mul $1,2
sub $1,3
trn $3,1
add $0,$3
add $0,4
lpb $1
add $0,$1
sub $0,1
sub $1,6
trn $1,10
sub $0,$1
add $0,1
trn $1,6
lpe
sub $0,3
lpb $2
add $0,1
sub $2,1
lpe
sub $0,2
| 20.580645 | 179 | 0.658307 |
6d50399e6a146e55d52d2792e8b6546f6ca237fd | 667 | asm | Assembly | programs/oeis/152/A152390.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/152/A152390.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/152/A152390.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A152390: Arises in enumerating non-degenerate colorings in Brook's Theorem.
; 6,68,252,648,1370,2556,4368,6992,10638,15540,21956,30168,40482,53228,68760,87456,109718,135972,166668,202280,243306,290268,343712,404208,472350,548756,634068,728952,834098,950220,1078056,1218368,1371942
mov $1,6
mov $2,25
mov $5,$0
mov $6,$0
lpb $2
add $1,$5
sub $2,1
lpe
mov $3,$6
lpb $3
sub $3,1
add $4,$5
lpe
mov $2,27
mov $5,$4
lpb $2
add $1,$5
sub $2,1
lpe
mov $3,$6
mov $4,0
lpb $3
sub $3,1
add $4,$5
lpe
mov $2,9
mov $5,$4
lpb $2
add $1,$5
sub $2,1
lpe
mov $3,$6
mov $4,0
lpb $3
sub $3,1
add $4,$5
lpe
mov $2,1
mov $5,$4
lpb $2
add $1,$5
sub $2,1
lpe
| 14.191489 | 204 | 0.643178 |
ea7166c45086460a9bda1132d87454779a8d79a4 | 310 | asm | Assembly | programs/oeis/021/A021120.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/021/A021120.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/021/A021120.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A021120: Decimal expansion of 1/116.
; 0,0,8,6,2,0,6,8,9,6,5,5,1,7,2,4,1,3,7,9,3,1,0,3,4,4,8,2,7,5,8,6,2,0,6,8,9,6,5,5,1,7,2,4,1,3,7,9,3,1,0,3,4,4,8,2,7,5,8,6,2,0,6,8,9,6,5,5,1,7,2,4,1,3,7,9,3,1,0,3,4,4,8,2,7,5,8,6,2,0,6,8,9,6,5,5,1,7,2
add $0,2
mov $1,10
pow $1,$0
mul $1,4
div $1,4640
mod $1,10
mov $0,$1
| 28.181818 | 199 | 0.541935 |
e3c6a77f41dc83281619d35c9a2319a291163eaf | 2,084 | asm | Assembly | Kernel/interrupciones/interrupts.asm | sebitokazu/TPE-Arqui-2020 | 426bec0ba6f8cc4840a92cc19a0f9940760cfa5f | [
"BSD-3-Clause"
] | null | null | null | Kernel/interrupciones/interrupts.asm | sebitokazu/TPE-Arqui-2020 | 426bec0ba6f8cc4840a92cc19a0f9940760cfa5f | [
"BSD-3-Clause"
] | null | null | null | Kernel/interrupciones/interrupts.asm | sebitokazu/TPE-Arqui-2020 | 426bec0ba6f8cc4840a92cc19a0f9940760cfa5f | [
"BSD-3-Clause"
] | null | null | null |
GLOBAL _cli
GLOBAL _sti
GLOBAL picMasterMask
GLOBAL picSlaveMask
GLOBAL haltcpu
GLOBAL _hlt
GLOBAL _irq00Handler
GLOBAL _irq01Handler
GLOBAL _irq02Handler
GLOBAL _irq03Handler
GLOBAL _irq04Handler
GLOBAL _irq05Handler
GLOBAL _irq80Handler
GLOBAL _exception0Handler
GLOBAL _exception6Handler
EXTERN irqDispatcher
EXTERN exceptionDispatcher
EXTERN syscallDispatcher
SECTION .text
%macro pushState 0
push rbx
push rcx
push rdx
push rbp
push rdi
push rsi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
%endmacro
%macro popState 0
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rsi
pop rdi
pop rbp
pop rdx
pop rcx
pop rbx
%endmacro
%macro irqHandlerMaster 1
push rax
pushState
mov rdi, %1 ; pasaje de parametro
mov rsi,rsp
call irqDispatcher
; signal pic EOI (End of Interrupt)
mov al, 20h
out 20h, al
popState
pop rax
iretq
%endmacro
%macro exceptionHandler 1
push rax
pushState
mov rdi, %1
mov rsi,rsp
call exceptionDispatcher
popState
pop rax
iretq
%endmacro
%macro syscallHandler 1
pushState
push r9
mov r9, r8
mov r8, rcx
mov rcx,rdx
mov rdx,rsi
mov rsi,rdi
mov rdi,rax
call syscallDispatcher
pop r9
popState
iretq
%endmacro
_hlt:
sti
hlt
ret
_cli:
cli
ret
_sti:
sti
ret
picMasterMask:
push rbp
mov rbp, rsp
mov ax, di
out 21h,al
pop rbp
retn
picSlaveMask:
push rbp
mov rbp, rsp
mov ax, di ; ax = mascara de 16 bits
out 0A1h,al
pop rbp
retn
;8254 Timer (Timer Tick)
_irq00Handler:
irqHandlerMaster 0
;Keyboard
_irq01Handler:
irqHandlerMaster 1
;Cascade pic never called
_irq02Handler:
irqHandlerMaster 2
;Serial Port 2 and 4
_irq03Handler:
irqHandlerMaster 3
;Serial Port 1 and 3
_irq04Handler:
irqHandlerMaster 4
;USB
_irq05Handler:
irqHandlerMaster 5
_irq80Handler:
syscallHandler rax
;Zero Division Exception
_exception0Handler:
exceptionHandler 0
;Invalid Opcode Exception
_exception6Handler:
exceptionHandler 6
haltcpu:
cli
hlt
ret
SECTION .bss
aux resq 1 | 11.204301 | 45 | 0.744242 |
a77758ccb84588376df889b771967720b340b217 | 2,163 | asm | Assembly | loader/loader.asm | hakonmagnus/ether | 87b772c51a5862ced8feabda4929e0f85d5960a1 | [
"MIT"
] | 2 | 2021-02-05T16:48:41.000Z | 2021-02-05T16:49:48.000Z | loader/loader.asm | hakonmagnus/ether | 87b772c51a5862ced8feabda4929e0f85d5960a1 | [
"MIT"
] | null | null | null | loader/loader.asm | hakonmagnus/ether | 87b772c51a5862ced8feabda4929e0f85d5960a1 | [
"MIT"
] | null | null | null | ;=============================================================================|
; _______ _________ _______ _______ |
; ( ____ \\__ __/|\ /|( ____ \( ____ ) |
; | ( \/ ) ( | ) ( || ( \/| ( )| |
; | (__ | | | (___) || (__ | (____)| By Hákon Hjaltalín. |
; | __) | | | ___ || __) | __) Licensed under MIT. |
; | ( | | | ( ) || ( | (\ ( |
; | (____/\ | | | ) ( || (____/\| ) \ \__ |
; (_______/ )_( |/ \|(_______/|/ \__/ |
;=============================================================================|
org 0x500
bits 16
;=============================================================================;
; start ;
; Loader 16-bit entry point ;
;=============================================================================;
start:
cli
xor ax, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
mov sp, 0xFFFF
sti
mov byte [boot_info.biosdev], dl
call gdt_install
call a20_enable
xor eax, eax
xor ebx, ebx
call bios_get_memory_size
mov word [boot_info.mem_lower], ax
mov word [boot_info.mem_upper], bx
mov eax, 0
mov ds, ax
mov di, 0x9000
call bios_get_memory_map
mov eax, 0
mov ax, bp
mov bx, 24
mul bx
mov si, boot_info
add word [si], ax
add si, boot_info_end - boot_info
mov word [si], 6
mov word [si+4], ax
mov word [si+8], 24
add si, 16
cld
mov di, si
mov si, 0x9000
mov bx, 2
div bx
mov cx, ax
rep movsw
.entries_done:
cli
mov eax, cr0
or eax, 1
mov cr0, eax
jmp 0x8:loader32
%include "./loader/rm/gdt.asm"
%include "./loader/rm/a20.asm"
%include "./loader/rm/memory.asm"
%include "./loader/bootinfo.asm"
%include "./loader/loader32.asm"
| 26.060241 | 79 | 0.351364 |
6060cd4723a32d61ca9b207a1320da79baad3838 | 803 | asm | Assembly | data/pokemon/base_stats/hippowdon.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/base_stats/hippowdon.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/base_stats/hippowdon.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 2 | 2021-08-11T19:47:07.000Z | 2022-01-01T07:07:56.000Z | db 0 ; species ID placeholder
db 108, 112, 118, 47, 68, 72
; hp atk def spd sat sdf
db GROUND, GROUND ; type
db 60 ; catch rate
db 184 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 30 ; step cycles to hatch
INCBIN "gfx/pokemon/hippowdon/front.dimensions"
db GROWTH_SLOW ; growth rate
dn EGG_GROUND, EGG_GROUND ; egg groups
db 70 ; happiness
; tm/hm learnset
tmhm WATER_PULSE, ROAR, TOXIC, HIDDEN_POWER, SUNNY_DAY, HYPER_BEAM, PROTECT, FRUSTRATION, IRON_TAIL, EARTHQUAKE, RETURN, DOUBLE_TEAM, SANDSTORM, ROCK_TOMB, FACADE, SECRET_POWER, REST, ATTRACT, ENDURE, GIGA_IMPACT, STONE_EDGE, STEALTH_ROCK, CAPTIVATE, ROCK_SLIDE, SLEEP_TALK, NATURAL_GIFT, SWAGGER, SUBSTITUTE, STRENGTH, ROCK_SMASH, EARTH_POWER, IRON_HEAD, MUD_SLAP, SNORE, SUPERPOWER
; end
| 40.15 | 385 | 0.748443 |
0b9cf579d33d6910d2ac176a231a4bebd08201f2 | 15,476 | a51 | Assembly | app/src/main/cpp/zipgateway/libs2/crypto/curve25519/c51/bigint.a51 | huimumua/Project_sig_ma | 1181776845d67e8f185a57f3e145f0080f7a5a78 | [
"Apache-2.0"
] | 2 | 2018-11-17T14:02:34.000Z | 2020-06-13T08:43:06.000Z | app/src/main/cpp/zipgateway/libs2/crypto/curve25519/c51/bigint.a51 | huimumua/ZwaveControlServer_ZipGateway281 | 1181776845d67e8f185a57f3e145f0080f7a5a78 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/zipgateway/libs2/crypto/curve25519/c51/bigint.a51 | huimumua/ZwaveControlServer_ZipGateway281 | 1181776845d67e8f185a57f3e145f0080f7a5a78 | [
"Apache-2.0"
] | null | null | null | ;/****************************************************************************
; *
; * Copyright (c) 2001-2015
; * Sigma Designs, Inc.
; * All Rights Reserved
; *
; *---------------------------------------------------------------------------
; *
; * Description: Intel 8051 assembly language optimized version of "bigint"
; * functions for calculating mul, add, and sub of 256 bits integers.
; *
; * This work is based upon the below work:
; *
;/*
; * File: avrnacl_8bitc/shared/bigint.c
; * Author: Michael Hutter, Peter Schwabe
; * Version: Tue Aug 12 08:23:16 2014 +0200
; * Public Domain
; */
; *
; * Author: Erik Friis Harck
; *
; * Last Changed By: $Author: iza $
; * Revision: $Revision: 22797 $
; * Last Changed: $Date: 2012-05-10 15:55:06 +0200 (to, 10 maj 2012) $
; *
; ****************************************************************************/
; bigint.src generated from: BIGINT.C
; COMPILER INVOKED BY:
; C:\KEIL\C51\bin\C51.exe BIGINT.C WARNINGLEVEL(2) DEBUG OBJECTADVANCED OBJECTEXTEND LARGE CODE LISTINCLUDE NOINTPROMOTE NOCOND INTVECTOR(0X1800) OPTIMIZE(11,SIZE) INCDIR(E:\code\mantra\trunk\Z-Wave\include,E:\code\mantra\trunk\Z-Wave\IO_defines,.\build,.\build\WallController_slave_enhanced_232_ZW050x_EU\Rels,C:\KEIL\C51\inc,..\ApplicationUtilities,..\ApplicationCommandHandlers,..\..\zlib\cmdclass,..\..\zlib\devtypes,..\..\zlib\handler,E:\code\mantra\trunk\Z-Wave\\IO_defines) SYMBOLS DF(ZW_DEBUG,ZW_DEBUG_APP,EU,ZW_SLAVE,ZW_SLAVE_32,ZW_SLAVE_ENHANCED_232,ZW_SLAVE_ROUTING,ZW050x,ZW0501,NEW_NODEINFO,ZW_SELF_HEAL,BANKING,ENDPOINT_SUPPORT,MULTI_CHANNEL_TRANSPORT,NON_BATT,bigint,slave_enhanced_232) PR(.\build\WallController_slave_enhanced_232_ZW050x_EU\list\bigint.lst) OJ(.\build\WallController_slave_enhanced_232_ZW050x_EU\Rels\bigint.obj) SRC(bigint.src)
$CA
NAME BIGINT
?PR?_bigint_add?BIGINT SEGMENT CODE
?ID?_bigint_add?BIGINT SEGMENT IDATA OVERLAYABLE
?XD?_bigint_add?BIGINT SEGMENT XDATA OVERLAYABLE
?PR?_bigint_sub?BIGINT SEGMENT CODE
?XD?_bigint_sub?BIGINT SEGMENT XDATA OVERLAYABLE
?PR?_bigint_mul?BIGINT SEGMENT CODE
?XD?_bigint_mul?BIGINT SEGMENT XDATA OVERLAYABLE
?DT?_bigint_mul?BIGINT SEGMENT DATA OVERLAYABLE
?PR?_bigint_cmov?BIGINT SEGMENT CODE
?XD?_bigint_cmov?BIGINT SEGMENT XDATA OVERLAYABLE
PUBLIC ?_bigint_cmov?BYTE
PUBLIC _bigint_cmov
PUBLIC _bigint_mul32
PUBLIC ?_bigint_mul?BYTE
PUBLIC _bigint_mul
PUBLIC ?_bigint_sub?BYTE
PUBLIC _bigint_sub
PUBLIC ?_bigint_add?BYTE
PUBLIC _bigint_add
RSEG ?ID?_bigint_add?BIGINT
; Overlaying local variables bigint_add_a, bigint_sub_a, and bigint_mul_a arrays (this is not nice)
; But it will do, as long as these functions do not call each other.
bigint_add_a:
bigint_sub_a:
bigint_mul_a:
bigint_cmov_x: DS 32
RSEG ?DT?_bigint_mul?BIGINT
; Overlaying local variables bigint_add_b, bigint_sub_b, and bigint_mul_b arrays (this is not nice)
; But it will do, as long as these functions do not call each other.
bigint_add_b:
bigint_sub_b:
bigint_mul_b: DS 32
RSEG ?XD?_bigint_add?BIGINT
?_bigint_add?BYTE:
r?040: DS 2
ORG 2
a?041: DS 2
ORG 4
b?042: DS 2
ORG 6
len?043: DS 1
ORG 7
;---- Variable 'tmp?045' assigned to Register 'R5,R6' ----
tmp?045: DS 2
RSEG ?XD?_bigint_cmov?BIGINT
?_bigint_cmov?BYTE:
;---- Parameter 'r?683' assigned to Register 'R6,R7' ----
r?683: DS 2
ORG 2
;---- Parameter 'x?684' assigned to Register 'R4,R5' ----
x?684: DS 2
;---- Parameter 'b?685' assigned to Register 'R3' ----
b?685: DS 1
ORG 5
len?686: DS 1
ORG 6
i?687: DS 1
ORG 7
mask?688: DS 1
RSEG ?XD?_bigint_sub?BIGINT
?_bigint_sub?BYTE:
r?146: DS 2
ORG 2
a?147: DS 2
ORG 4
b?148: DS 2
ORG 6
len?149: DS 1
ORG 7
;---- Variable 'tmp?151' assigned to Register 'R5,R6' ----
tmp?151: DS 2
RSEG ?XD?_bigint_mul?BIGINT
?_bigint_mul?BYTE:
;---- Parameter 'r?252' assigned to Register 'R6,R7' ----
r?252: DS 2
ORG 2
;---- Parameter 'a?253' assigned to Register 'R4,R5' ----
a?253: DS 2
ORG 4
;---- Parameter 'b?254' assigned to Register 'R2,R3' ----
b?254: DS 2
ORG 6
len?255: DS 1
ORG 7
j?257: DS 1
ORG 8
t?258: DS 2
; #pragma optimize (8, SPEED)
;
; /*
; * File: avrnacl_8bitc/shared/bigint.c
; * Author: Michael Hutter, Peter Schwabe
; * Version: Tue Aug 12 08:23:16 2014 +0200
; * Public Domain
; */
;
; #ifdef __C51__
; #include <ZW_stdint.h>
; #include <ZW_uart_api.h>
; #else
; #include <stdint.h>
; #endif
; #include "avrnacl.h"
; #include "bigint.h"
; #include "wc_util.h"
;
; uint8_t bigint_add(uint8_t xdata *r, const uint8_t xdata *a, const uint8_t xdata *b, uint8_t len)
RSEG ?PR?_bigint_add?BIGINT
_bigint_add:
USING 0
MOV DPTR,#r?040
MOV A,R6
MOVX @DPTR,A
INC DPTR
MOV A,R7
MOVX @DPTR,A
INC DPTR
MOV A,R4
MOVX @DPTR,A
INC DPTR
MOV A,R5
MOVX @DPTR,A
INC DPTR
MOV A,R2
MOVX @DPTR,A
INC DPTR
MOV A,R3
MOVX @DPTR,A
; R3 is really not used for low part of *b parameter
MOV DPTR,#len?043
MOVX A,@DPTR
MOV R3,A ; Use R3 for len?043 instead
; {
MOV DPTR,#a?041
MOVX A,@DPTR
MOV R2,A ; R2 = HIGH a
INC DPTR
MOVX A,@DPTR
MOV DPL,A
MOV A,R2
MOV DPH,A
MOV R0,#bigint_add_a
MOV A,R3 ; len?043
MOV R2,A ; R2 = len
?bigint_add_a_copy:
MOVX A,@DPTR ; A = *a++
INC DPTR
MOV @R0,A ; *bigint_add_a++ = A
INC R0
DJNZ R2,?bigint_add_a_copy
MOV DPTR,#b?042
MOVX A,@DPTR
MOV R2,A ; R2 = HIGH b
INC DPTR
MOVX A,@DPTR
MOV DPL,A
MOV A,R2
MOV DPH,A
MOV R0,#bigint_add_b
MOV A,R3 ; len?043
MOV R2,A ; R2 = len
?bigint_add_b_copy:
MOVX A,@DPTR ; A = *b++
INC DPTR
MOV @R0,A ; *bigint_add_b++ = A
INC R0
DJNZ R2,?bigint_add_b_copy
; uint8_t i;
; crypto_uint16 tmp = 0;
MOV DPTR,#r?040
MOVX A,@DPTR
MOV R2,A ; R2 = HIGH r
INC DPTR
MOVX A,@DPTR
MOV DPL,A
MOV A,R2 ; A = HIGH r
MOV DPH,A
;---- Variable 'tmp?045' assigned to Register 'R5,R6' ----
CLR C ; Start do..while loop with no carry.
MOV R0,#bigint_add_a
MOV R1,#bigint_add_b
; for (i=0; i<len; i++)
?C0001:
; {
; tmp = ((uint16_t)a[i]) + ((uint16_t)b[i]) + tmp;
MOV A,@R1 ; A = b[i]
INC R1
MOV R7,A ; R7 = b[i]
MOV A,@R0 ; A = a[i]
INC R0
ADDC A,R7 ; A = a[i] + b[i]
; r[i] = tmp & 0xff;
MOVX @DPTR,A ; r[i] = LOW (tmp)
; tmp >>= 8;
INC DPTR
; }
DJNZ R3,?C0001
; return (uint8_t)tmp;
CLR A
RLC A
MOV R7,A ; return carry from MSB addition
; }
RET
; END OF _bigint_add
;
; uint8_t bigint_sub(uint8_t xdata *r, const uint8_t xdata *a, const uint8_t xdata *b, uint8_t len)
RSEG ?PR?_bigint_sub?BIGINT
_bigint_sub:
USING 0
MOV DPTR,#r?146
MOV A,R6
MOVX @DPTR,A
INC DPTR
MOV A,R7
MOVX @DPTR,A
INC DPTR
MOV A,R4
MOVX @DPTR,A
INC DPTR
MOV A,R5
MOVX @DPTR,A
INC DPTR
MOV A,R2
MOVX @DPTR,A
INC DPTR
MOV A,R3
MOVX @DPTR,A
; R3 is really not used for low part of *b parameter
MOV DPTR,#len?149
MOVX A,@DPTR
MOV R3,A ; Use R3 for len?149 instead
; {
MOV DPTR,#a?147
MOVX A,@DPTR
MOV R2,A ; R2 = HIGH a
INC DPTR
MOVX A,@DPTR
MOV DPL,A
MOV A,R2
MOV DPH,A
MOV R0,#bigint_sub_a
MOV A,R3 ; len?149
MOV R2,A ; R2 = len
?bigint_sub_a_copy:
MOVX A,@DPTR ; A = *a++
INC DPTR
MOV @R0,A ; *bigint_sub_a++ = A
INC R0
DJNZ R2,?bigint_sub_a_copy
MOV DPTR,#b?148
MOVX A,@DPTR
MOV R2,A ; R2 = HIGH b
INC DPTR
MOVX A,@DPTR
MOV DPL,A
MOV A,R2
MOV DPH,A
MOV R0,#bigint_sub_b
MOV A,R3 ; len?149
MOV R2,A ; R2 = len
?bigint_sub_b_copy:
MOVX A,@DPTR ; A = *b++
INC DPTR
MOV @R0,A ; *bigint_sub_b++ = A
INC R0
DJNZ R2,?bigint_sub_b_copy
; uint8_t i;
; crypto_uint16 tmp = 0;
MOV DPTR,#r?146
MOVX A,@DPTR
MOV R2,A ; R2 = HIGH r
INC DPTR
MOVX A,@DPTR
MOV DPL,A
MOV A,R2 ; A = HIGH r
MOV DPH,A
CLR C ; Start do..while loop with no carry.
MOV R0,#bigint_sub_a
MOV R1,#bigint_sub_b
; for (i=0; i<len; i++)
?C0005:
; {
; tmp = ((uint16_t)a[i]) - ((uint16_t)b[i]) - tmp;
MOV A,@R1 ; A = b[i]
INC R1
MOV R7,A ; R7 = b[i]
MOV A,@R0 ; A = a[i]
INC R0
SUBB A,R7 ; A = a[i] - b[i]
; r[i] = tmp & 0xff;
MOVX @DPTR,A ; r[i] = LOW (tmp)
; tmp >>= 15;
INC DPTR
; }
DJNZ R3,?C0005
; return (uint8_t)tmp;
CLR A
RLC A
MOV R7,A ; return carry from MSB subtraction
; }
RET
; END OF _bigint_sub
;
; void bigint_mul32(uint8_t xdata *r, const uint8_t xdata *a, const uint8_t xdata *b)
RSEG ?PR?_bigint_mul?BIGINT
_bigint_mul32:
USING 0
;---- Variable 'r?575' assigned to Register 'R6/R7' ----
;---- Variable 'b?577' assigned to Register 'R2/R3' ----
;---- Variable 'a?576' assigned to Register 'R4/R5' ----
; {
; bigint_mul(r, a, b, 32);
MOV DPTR,#?_bigint_mul?BYTE+06H
MOV A,#020H
MOVX @DPTR,A
; Drop through to _bigint_mul
; END OF _bigint_mul32
; }
;
; void bigint_mul(unsigned char xdata *r, const unsigned char xdata *a, const unsigned char xdata *b, uint8_t len)
_bigint_mul:
;---- Parameter 'r?252' assigned to Register 'R6,R7' ----
MOV DPTR,#r?252
MOV A,R6
MOVX @DPTR,A
INC DPTR
MOV A,R7
MOVX @DPTR,A
INC DPTR
;---- Parameter 'a?253' assigned to Register 'R4,R5' ----
MOV A,R4
MOVX @DPTR,A
INC DPTR
MOV A,R5
MOVX @DPTR,A
INC DPTR
;---- Parameter 'b?254' assigned to Register 'R2,R3' ----
MOV A,R2
MOVX @DPTR,A
INC DPTR
MOV A,R3
MOVX @DPTR,A
; R3 is really not used for low part of *b parameter
MOV DPTR,#len?255
MOVX A,@DPTR
MOV R3,A ; Use R3 for len?255 instead
; {
MOV DPTR,#a?253
MOVX A,@DPTR
MOV R1,A ; R1 = HIGH a
INC DPTR
MOVX A,@DPTR
MOV DPL,A
MOV A,R1
MOV DPH,A
MOV R0,#bigint_mul_a
MOV A,R3 ; len?255
MOV R1,A ; R1 = len
?bigint_mul_a_copy:
MOVX A,@DPTR ; A = *a++
INC DPTR
MOV @R0,A ; *bigint_mul_a++ = A
INC R0
DJNZ R1,?bigint_mul_a_copy
MOV DPTR,#b?254
MOVX A,@DPTR
MOV R1,A ; R1 = HIGH b
INC DPTR
MOVX A,@DPTR ; A = LOW b
MOV DPL,A
MOV A,R1 ;
MOV DPH,A
MOV R0,#bigint_mul_b
MOV A,R3 ; len?255
MOV R1,A ; R1 = len
?bigint_mul_b_copy:
MOVX A,@DPTR ; A = *a++
INC DPTR
MOV @R0,A ; *bigint_mul_b++ = A
INC R0
DJNZ R1,?bigint_mul_b_copy
; uint8_t i;
; uint8_t j;
; uint16_t t;
; for(i=0;i<2*len;i++)
MOV A,R3 ; len?255
ADD A,ACC
MOV R1,A
; r[i] = 0;
MOV DPTR,#r?252
MOVX A,@DPTR
MOV R7,A ; R7 = HIGH (r?252)
INC DPTR
MOVX A,@DPTR
MOV R2,A ; R2 = LOW (r?252)
MOV DPL,A
MOV A,R7 ;
MOV DPH,A
CLR A
?C0009:
MOVX @DPTR,A
INC DPTR
DJNZ R1,?C0009
; DPTR = r?252;
MOV A,R2 ;
MOV DPL,A ; DPL = LOW (r?252)
MOV A,R7 ;
MOV DPH,A ; DPH = HIGH (r?252)
;
; for (i = 0; i < len; i++)
;---- idata * variable 'bigint_mul_a' assigned to Register 'R1' ----
MOV A,R3 ; len?255
MOV R6,A
MOV R1,#bigint_mul_a
?C0012:
; {
; t = 0;
CLR A
; t?258 = 0
;---- Variable 't?258' assigned to Register 'R2' ----
; both HIGH (t?258) and LOW (t?258), but not at the same time.
MOV R2,A ; t?258 = 0
; for (j = 0; j < len; j++)
MOV A,R3 ; len?255
MOV R4,A
;---- data * variable 'bigint_mul_b' assigned to Register 'R0' ----
MOV R0,#bigint_mul_b
PUSH DPH
PUSH DPL
?C0015:
; {
; t = r[i + j] + ((uint16_t)(a[i] * b[j])) + (t >> 8);
MOV A,@R0 ; A = *bigint_mul_b = b[j]
MOV B,A ; B = b[j]
MOV A,@R1 ; A = *bigint_mul_a = a[i]
MUL AB
MOV R7,A
MOVX A,@DPTR ; A = r[i + j]
ADD A,R7
MOV R5,A ; R5 = r[i + j] + ((uint16_t)(a[i] * b[j]))
CLR A
ADDC A,B
MOV R7,A
MOV A,R2 ; A = t?258
ADD A,R5
MOVX @DPTR,A ; r[i + j] = r[i + j] + ((uint16_t)(a[i] * b[j])) + (t >> 8) ; (t & 0xFF)
CLR A ;
ADDC A,R7 ; add multiplication carry
MOV R2,A ; R2 = t?258
; r[i + j] = (t & 0xFF);
INC DPTR ; DPTR = (r + i + j)++
; }
INC R0 ; bigint_mul_b++
DJNZ R4,?C0015
; r[i + len] = (t >> 8);
MOV A,R2 ; A = t?258
MOVX @DPTR,A ; r[i + len] = (t >> 8)
POP DPL
POP DPH
INC DPTR ; DPTR = (r + i + j)++
; }
INC R1 ; bigint_mul_a++
DJNZ R6,?C0012
; }
RET
; END OF _bigint_mul
;
; void bigint_cmov(uint8_t xdata *r, const uint8_t xdata *x, uint8_t b, uint8_t len)
RSEG ?PR?_bigint_cmov?BIGINT
_bigint_cmov:
USING 0
;---- Parameter 'r?683' assigned to Register 'R6,R7' ----
MOV DPTR,#r?683
MOV A,R6
MOVX @DPTR,A
INC DPTR
MOV A,R7
;---- Parameter 'x?684' assigned to Register 'R4,R5' ----
MOVX @DPTR,A
INC DPTR
MOV A,R4
MOVX @DPTR,A
INC DPTR
MOV A,R5
MOVX @DPTR,A
; R5 is really not used for low part of *x parameter
MOV DPTR,#len?686
MOVX A,@DPTR
MOV R5,A ; Use R5 for len?686 instead
;---- Parameter 'b?685' assigned to Register 'R3' ----
; {
MOV DPTR,#x?684
MOVX A,@DPTR
MOV R2,A ; R2 = HIGH x
INC DPTR
MOVX A,@DPTR
MOV DPL,A
MOV A,R2
MOV DPH,A
MOV R0,#bigint_cmov_x
MOV A,R5 ; len?686
MOV R2,A ; R2 = len
?bigint_cmov_x_copy:
MOVX A,@DPTR ; A = *x++
INC DPTR
MOV @R0,A ; *bigint_cmov_x++ = A
INC R0
DJNZ R2,?bigint_cmov_x_copy
; uint8_t i;
; uint8_t mask = b;
;---- Variable 'mask?688' assigned to Register 'R3' ----
; mask = -mask;
MOV A,R3 ; A = mask = b
CPL A
INC A
MOV R3,A ; R3 = -mask
; for(i=0;i<len;i++)
MOV DPTR,#r?683 ; DPTR = r
MOVX A,@DPTR
MOV R4,A
INC DPTR
MOVX A,@DPTR
MOV DPL,A
MOV A,R4
MOV DPH,A
MOV R0,#bigint_cmov_x
?C0031:
; r[i] ^= mask & (x[i] ^ r[i]);
MOVX A,@DPTR
MOV R7,A
MOV A,@R0 ;
INC R0 ;
XRL A,R7
MOV R6,A
MOV A,R3 ;
ANL A,R6
MOV R6,A
MOV A,R7
XRL A,R6
MOVX @DPTR,A
INC DPTR ;
DJNZ R5,?C0031 ;
; }
RET
; END OF _bigint_cmov
END
| 25.750416 | 868 | 0.532437 |
f6b8ff4b8e033817396c3dea72cd9f7a681327dd | 55,975 | asm | Assembly | grep.asm | Ankitchan/xv6OS | 63ae6d4678178b0b2ae472855d6394ecb08e6d9c | [
"MIT-0"
] | null | null | null | grep.asm | Ankitchan/xv6OS | 63ae6d4678178b0b2ae472855d6394ecb08e6d9c | [
"MIT-0"
] | null | null | null | grep.asm | Ankitchan/xv6OS | 63ae6d4678178b0b2ae472855d6394ecb08e6d9c | [
"MIT-0"
] | null | null | null |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <grep>:
char buf[1024];
int match(char*, char*);
void
grep(char *pattern, int fd)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 18 sub $0x18,%esp
int n, m;
char *p, *q;
m = 0;
6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){
d: e9 b6 00 00 00 jmp c8 <grep+0xc8>
m += n;
12: 8b 45 ec mov -0x14(%ebp),%eax
15: 01 45 f4 add %eax,-0xc(%ebp)
buf[m] = '\0';
18: 8b 45 f4 mov -0xc(%ebp),%eax
1b: 05 c0 0e 00 00 add $0xec0,%eax
20: c6 00 00 movb $0x0,(%eax)
p = buf;
23: c7 45 f0 c0 0e 00 00 movl $0xec0,-0x10(%ebp)
while((q = strchr(p, '\n')) != 0){
2a: eb 4a jmp 76 <grep+0x76>
*q = 0;
2c: 8b 45 e8 mov -0x18(%ebp),%eax
2f: c6 00 00 movb $0x0,(%eax)
if(match(pattern, p)){
32: 83 ec 08 sub $0x8,%esp
35: ff 75 f0 pushl -0x10(%ebp)
38: ff 75 08 pushl 0x8(%ebp)
3b: e8 9a 01 00 00 call 1da <match>
40: 83 c4 10 add $0x10,%esp
43: 85 c0 test %eax,%eax
45: 74 26 je 6d <grep+0x6d>
*q = '\n';
47: 8b 45 e8 mov -0x18(%ebp),%eax
4a: c6 00 0a movb $0xa,(%eax)
write(1, p, q+1 - p);
4d: 8b 45 e8 mov -0x18(%ebp),%eax
50: 83 c0 01 add $0x1,%eax
53: 89 c2 mov %eax,%edx
55: 8b 45 f0 mov -0x10(%ebp),%eax
58: 29 c2 sub %eax,%edx
5a: 89 d0 mov %edx,%eax
5c: 83 ec 04 sub $0x4,%esp
5f: 50 push %eax
60: ff 75 f0 pushl -0x10(%ebp)
63: 6a 01 push $0x1
65: e8 43 05 00 00 call 5ad <write>
6a: 83 c4 10 add $0x10,%esp
}
p = q+1;
6d: 8b 45 e8 mov -0x18(%ebp),%eax
70: 83 c0 01 add $0x1,%eax
73: 89 45 f0 mov %eax,-0x10(%ebp)
while((q = strchr(p, '\n')) != 0){
76: 83 ec 08 sub $0x8,%esp
79: 6a 0a push $0xa
7b: ff 75 f0 pushl -0x10(%ebp)
7e: e8 89 03 00 00 call 40c <strchr>
83: 83 c4 10 add $0x10,%esp
86: 89 45 e8 mov %eax,-0x18(%ebp)
89: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
8d: 75 9d jne 2c <grep+0x2c>
}
if(p == buf)
8f: 81 7d f0 c0 0e 00 00 cmpl $0xec0,-0x10(%ebp)
96: 75 07 jne 9f <grep+0x9f>
m = 0;
98: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
if(m > 0){
9f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
a3: 7e 23 jle c8 <grep+0xc8>
m -= p - buf;
a5: 8b 45 f0 mov -0x10(%ebp),%eax
a8: ba c0 0e 00 00 mov $0xec0,%edx
ad: 29 d0 sub %edx,%eax
af: 29 45 f4 sub %eax,-0xc(%ebp)
memmove(buf, p, m);
b2: 83 ec 04 sub $0x4,%esp
b5: ff 75 f4 pushl -0xc(%ebp)
b8: ff 75 f0 pushl -0x10(%ebp)
bb: 68 c0 0e 00 00 push $0xec0
c0: e8 83 04 00 00 call 548 <memmove>
c5: 83 c4 10 add $0x10,%esp
while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){
c8: 8b 45 f4 mov -0xc(%ebp),%eax
cb: ba ff 03 00 00 mov $0x3ff,%edx
d0: 29 c2 sub %eax,%edx
d2: 89 d0 mov %edx,%eax
d4: 89 c2 mov %eax,%edx
d6: 8b 45 f4 mov -0xc(%ebp),%eax
d9: 05 c0 0e 00 00 add $0xec0,%eax
de: 83 ec 04 sub $0x4,%esp
e1: 52 push %edx
e2: 50 push %eax
e3: ff 75 0c pushl 0xc(%ebp)
e6: e8 ba 04 00 00 call 5a5 <read>
eb: 83 c4 10 add $0x10,%esp
ee: 89 45 ec mov %eax,-0x14(%ebp)
f1: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
f5: 0f 8f 17 ff ff ff jg 12 <grep+0x12>
}
}
}
fb: 90 nop
fc: c9 leave
fd: c3 ret
000000fe <main>:
int
main(int argc, char *argv[])
{
fe: 8d 4c 24 04 lea 0x4(%esp),%ecx
102: 83 e4 f0 and $0xfffffff0,%esp
105: ff 71 fc pushl -0x4(%ecx)
108: 55 push %ebp
109: 89 e5 mov %esp,%ebp
10b: 53 push %ebx
10c: 51 push %ecx
10d: 83 ec 10 sub $0x10,%esp
110: 89 cb mov %ecx,%ebx
int fd, i;
char *pattern;
if(argc <= 1){
112: 83 3b 01 cmpl $0x1,(%ebx)
115: 7f 17 jg 12e <main+0x30>
printf(2, "usage: grep pattern [file ...]\n");
117: 83 ec 08 sub $0x8,%esp
11a: 68 50 0b 00 00 push $0xb50
11f: 6a 02 push $0x2
121: e8 42 06 00 00 call 768 <printf>
126: 83 c4 10 add $0x10,%esp
exit();
129: e8 5f 04 00 00 call 58d <exit>
}
pattern = argv[1];
12e: 8b 43 04 mov 0x4(%ebx),%eax
131: 8b 40 04 mov 0x4(%eax),%eax
134: 89 45 f0 mov %eax,-0x10(%ebp)
if(argc <= 2){
137: 83 3b 02 cmpl $0x2,(%ebx)
13a: 7f 15 jg 151 <main+0x53>
grep(pattern, 0);
13c: 83 ec 08 sub $0x8,%esp
13f: 6a 00 push $0x0
141: ff 75 f0 pushl -0x10(%ebp)
144: e8 b7 fe ff ff call 0 <grep>
149: 83 c4 10 add $0x10,%esp
exit();
14c: e8 3c 04 00 00 call 58d <exit>
}
for(i = 2; i < argc; i++){
151: c7 45 f4 02 00 00 00 movl $0x2,-0xc(%ebp)
158: eb 74 jmp 1ce <main+0xd0>
if((fd = open(argv[i], 0)) < 0){
15a: 8b 45 f4 mov -0xc(%ebp),%eax
15d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
164: 8b 43 04 mov 0x4(%ebx),%eax
167: 01 d0 add %edx,%eax
169: 8b 00 mov (%eax),%eax
16b: 83 ec 08 sub $0x8,%esp
16e: 6a 00 push $0x0
170: 50 push %eax
171: e8 57 04 00 00 call 5cd <open>
176: 83 c4 10 add $0x10,%esp
179: 89 45 ec mov %eax,-0x14(%ebp)
17c: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
180: 79 29 jns 1ab <main+0xad>
printf(1, "grep: cannot open %s\n", argv[i]);
182: 8b 45 f4 mov -0xc(%ebp),%eax
185: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
18c: 8b 43 04 mov 0x4(%ebx),%eax
18f: 01 d0 add %edx,%eax
191: 8b 00 mov (%eax),%eax
193: 83 ec 04 sub $0x4,%esp
196: 50 push %eax
197: 68 70 0b 00 00 push $0xb70
19c: 6a 01 push $0x1
19e: e8 c5 05 00 00 call 768 <printf>
1a3: 83 c4 10 add $0x10,%esp
exit();
1a6: e8 e2 03 00 00 call 58d <exit>
}
grep(pattern, fd);
1ab: 83 ec 08 sub $0x8,%esp
1ae: ff 75 ec pushl -0x14(%ebp)
1b1: ff 75 f0 pushl -0x10(%ebp)
1b4: e8 47 fe ff ff call 0 <grep>
1b9: 83 c4 10 add $0x10,%esp
close(fd);
1bc: 83 ec 0c sub $0xc,%esp
1bf: ff 75 ec pushl -0x14(%ebp)
1c2: e8 ee 03 00 00 call 5b5 <close>
1c7: 83 c4 10 add $0x10,%esp
for(i = 2; i < argc; i++){
1ca: 83 45 f4 01 addl $0x1,-0xc(%ebp)
1ce: 8b 45 f4 mov -0xc(%ebp),%eax
1d1: 3b 03 cmp (%ebx),%eax
1d3: 7c 85 jl 15a <main+0x5c>
}
exit();
1d5: e8 b3 03 00 00 call 58d <exit>
000001da <match>:
int matchhere(char*, char*);
int matchstar(int, char*, char*);
int
match(char *re, char *text)
{
1da: 55 push %ebp
1db: 89 e5 mov %esp,%ebp
1dd: 83 ec 08 sub $0x8,%esp
if(re[0] == '^')
1e0: 8b 45 08 mov 0x8(%ebp),%eax
1e3: 0f b6 00 movzbl (%eax),%eax
1e6: 3c 5e cmp $0x5e,%al
1e8: 75 17 jne 201 <match+0x27>
return matchhere(re+1, text);
1ea: 8b 45 08 mov 0x8(%ebp),%eax
1ed: 83 c0 01 add $0x1,%eax
1f0: 83 ec 08 sub $0x8,%esp
1f3: ff 75 0c pushl 0xc(%ebp)
1f6: 50 push %eax
1f7: e8 38 00 00 00 call 234 <matchhere>
1fc: 83 c4 10 add $0x10,%esp
1ff: eb 31 jmp 232 <match+0x58>
do{ // must look at empty string
if(matchhere(re, text))
201: 83 ec 08 sub $0x8,%esp
204: ff 75 0c pushl 0xc(%ebp)
207: ff 75 08 pushl 0x8(%ebp)
20a: e8 25 00 00 00 call 234 <matchhere>
20f: 83 c4 10 add $0x10,%esp
212: 85 c0 test %eax,%eax
214: 74 07 je 21d <match+0x43>
return 1;
216: b8 01 00 00 00 mov $0x1,%eax
21b: eb 15 jmp 232 <match+0x58>
}while(*text++ != '\0');
21d: 8b 45 0c mov 0xc(%ebp),%eax
220: 8d 50 01 lea 0x1(%eax),%edx
223: 89 55 0c mov %edx,0xc(%ebp)
226: 0f b6 00 movzbl (%eax),%eax
229: 84 c0 test %al,%al
22b: 75 d4 jne 201 <match+0x27>
return 0;
22d: b8 00 00 00 00 mov $0x0,%eax
}
232: c9 leave
233: c3 ret
00000234 <matchhere>:
// matchhere: search for re at beginning of text
int matchhere(char *re, char *text)
{
234: 55 push %ebp
235: 89 e5 mov %esp,%ebp
237: 83 ec 08 sub $0x8,%esp
if(re[0] == '\0')
23a: 8b 45 08 mov 0x8(%ebp),%eax
23d: 0f b6 00 movzbl (%eax),%eax
240: 84 c0 test %al,%al
242: 75 0a jne 24e <matchhere+0x1a>
return 1;
244: b8 01 00 00 00 mov $0x1,%eax
249: e9 99 00 00 00 jmp 2e7 <matchhere+0xb3>
if(re[1] == '*')
24e: 8b 45 08 mov 0x8(%ebp),%eax
251: 83 c0 01 add $0x1,%eax
254: 0f b6 00 movzbl (%eax),%eax
257: 3c 2a cmp $0x2a,%al
259: 75 21 jne 27c <matchhere+0x48>
return matchstar(re[0], re+2, text);
25b: 8b 45 08 mov 0x8(%ebp),%eax
25e: 8d 50 02 lea 0x2(%eax),%edx
261: 8b 45 08 mov 0x8(%ebp),%eax
264: 0f b6 00 movzbl (%eax),%eax
267: 0f be c0 movsbl %al,%eax
26a: 83 ec 04 sub $0x4,%esp
26d: ff 75 0c pushl 0xc(%ebp)
270: 52 push %edx
271: 50 push %eax
272: e8 72 00 00 00 call 2e9 <matchstar>
277: 83 c4 10 add $0x10,%esp
27a: eb 6b jmp 2e7 <matchhere+0xb3>
if(re[0] == '$' && re[1] == '\0')
27c: 8b 45 08 mov 0x8(%ebp),%eax
27f: 0f b6 00 movzbl (%eax),%eax
282: 3c 24 cmp $0x24,%al
284: 75 1d jne 2a3 <matchhere+0x6f>
286: 8b 45 08 mov 0x8(%ebp),%eax
289: 83 c0 01 add $0x1,%eax
28c: 0f b6 00 movzbl (%eax),%eax
28f: 84 c0 test %al,%al
291: 75 10 jne 2a3 <matchhere+0x6f>
return *text == '\0';
293: 8b 45 0c mov 0xc(%ebp),%eax
296: 0f b6 00 movzbl (%eax),%eax
299: 84 c0 test %al,%al
29b: 0f 94 c0 sete %al
29e: 0f b6 c0 movzbl %al,%eax
2a1: eb 44 jmp 2e7 <matchhere+0xb3>
if(*text!='\0' && (re[0]=='.' || re[0]==*text))
2a3: 8b 45 0c mov 0xc(%ebp),%eax
2a6: 0f b6 00 movzbl (%eax),%eax
2a9: 84 c0 test %al,%al
2ab: 74 35 je 2e2 <matchhere+0xae>
2ad: 8b 45 08 mov 0x8(%ebp),%eax
2b0: 0f b6 00 movzbl (%eax),%eax
2b3: 3c 2e cmp $0x2e,%al
2b5: 74 10 je 2c7 <matchhere+0x93>
2b7: 8b 45 08 mov 0x8(%ebp),%eax
2ba: 0f b6 10 movzbl (%eax),%edx
2bd: 8b 45 0c mov 0xc(%ebp),%eax
2c0: 0f b6 00 movzbl (%eax),%eax
2c3: 38 c2 cmp %al,%dl
2c5: 75 1b jne 2e2 <matchhere+0xae>
return matchhere(re+1, text+1);
2c7: 8b 45 0c mov 0xc(%ebp),%eax
2ca: 8d 50 01 lea 0x1(%eax),%edx
2cd: 8b 45 08 mov 0x8(%ebp),%eax
2d0: 83 c0 01 add $0x1,%eax
2d3: 83 ec 08 sub $0x8,%esp
2d6: 52 push %edx
2d7: 50 push %eax
2d8: e8 57 ff ff ff call 234 <matchhere>
2dd: 83 c4 10 add $0x10,%esp
2e0: eb 05 jmp 2e7 <matchhere+0xb3>
return 0;
2e2: b8 00 00 00 00 mov $0x0,%eax
}
2e7: c9 leave
2e8: c3 ret
000002e9 <matchstar>:
// matchstar: search for c*re at beginning of text
int matchstar(int c, char *re, char *text)
{
2e9: 55 push %ebp
2ea: 89 e5 mov %esp,%ebp
2ec: 83 ec 08 sub $0x8,%esp
do{ // a * matches zero or more instances
if(matchhere(re, text))
2ef: 83 ec 08 sub $0x8,%esp
2f2: ff 75 10 pushl 0x10(%ebp)
2f5: ff 75 0c pushl 0xc(%ebp)
2f8: e8 37 ff ff ff call 234 <matchhere>
2fd: 83 c4 10 add $0x10,%esp
300: 85 c0 test %eax,%eax
302: 74 07 je 30b <matchstar+0x22>
return 1;
304: b8 01 00 00 00 mov $0x1,%eax
309: eb 29 jmp 334 <matchstar+0x4b>
}while(*text!='\0' && (*text++==c || c=='.'));
30b: 8b 45 10 mov 0x10(%ebp),%eax
30e: 0f b6 00 movzbl (%eax),%eax
311: 84 c0 test %al,%al
313: 74 1a je 32f <matchstar+0x46>
315: 8b 45 10 mov 0x10(%ebp),%eax
318: 8d 50 01 lea 0x1(%eax),%edx
31b: 89 55 10 mov %edx,0x10(%ebp)
31e: 0f b6 00 movzbl (%eax),%eax
321: 0f be c0 movsbl %al,%eax
324: 3b 45 08 cmp 0x8(%ebp),%eax
327: 74 c6 je 2ef <matchstar+0x6>
329: 83 7d 08 2e cmpl $0x2e,0x8(%ebp)
32d: 74 c0 je 2ef <matchstar+0x6>
return 0;
32f: b8 00 00 00 00 mov $0x0,%eax
}
334: c9 leave
335: c3 ret
00000336 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
336: 55 push %ebp
337: 89 e5 mov %esp,%ebp
339: 57 push %edi
33a: 53 push %ebx
asm volatile("cld; rep stosb" :
33b: 8b 4d 08 mov 0x8(%ebp),%ecx
33e: 8b 55 10 mov 0x10(%ebp),%edx
341: 8b 45 0c mov 0xc(%ebp),%eax
344: 89 cb mov %ecx,%ebx
346: 89 df mov %ebx,%edi
348: 89 d1 mov %edx,%ecx
34a: fc cld
34b: f3 aa rep stos %al,%es:(%edi)
34d: 89 ca mov %ecx,%edx
34f: 89 fb mov %edi,%ebx
351: 89 5d 08 mov %ebx,0x8(%ebp)
354: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
357: 90 nop
358: 5b pop %ebx
359: 5f pop %edi
35a: 5d pop %ebp
35b: c3 ret
0000035c <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
35c: 55 push %ebp
35d: 89 e5 mov %esp,%ebp
35f: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
362: 8b 45 08 mov 0x8(%ebp),%eax
365: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
368: 90 nop
369: 8b 45 08 mov 0x8(%ebp),%eax
36c: 8d 50 01 lea 0x1(%eax),%edx
36f: 89 55 08 mov %edx,0x8(%ebp)
372: 8b 55 0c mov 0xc(%ebp),%edx
375: 8d 4a 01 lea 0x1(%edx),%ecx
378: 89 4d 0c mov %ecx,0xc(%ebp)
37b: 0f b6 12 movzbl (%edx),%edx
37e: 88 10 mov %dl,(%eax)
380: 0f b6 00 movzbl (%eax),%eax
383: 84 c0 test %al,%al
385: 75 e2 jne 369 <strcpy+0xd>
;
return os;
387: 8b 45 fc mov -0x4(%ebp),%eax
}
38a: c9 leave
38b: c3 ret
0000038c <strcmp>:
int
strcmp(const char *p, const char *q)
{
38c: 55 push %ebp
38d: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
38f: eb 08 jmp 399 <strcmp+0xd>
p++, q++;
391: 83 45 08 01 addl $0x1,0x8(%ebp)
395: 83 45 0c 01 addl $0x1,0xc(%ebp)
while(*p && *p == *q)
399: 8b 45 08 mov 0x8(%ebp),%eax
39c: 0f b6 00 movzbl (%eax),%eax
39f: 84 c0 test %al,%al
3a1: 74 10 je 3b3 <strcmp+0x27>
3a3: 8b 45 08 mov 0x8(%ebp),%eax
3a6: 0f b6 10 movzbl (%eax),%edx
3a9: 8b 45 0c mov 0xc(%ebp),%eax
3ac: 0f b6 00 movzbl (%eax),%eax
3af: 38 c2 cmp %al,%dl
3b1: 74 de je 391 <strcmp+0x5>
return (uchar)*p - (uchar)*q;
3b3: 8b 45 08 mov 0x8(%ebp),%eax
3b6: 0f b6 00 movzbl (%eax),%eax
3b9: 0f b6 d0 movzbl %al,%edx
3bc: 8b 45 0c mov 0xc(%ebp),%eax
3bf: 0f b6 00 movzbl (%eax),%eax
3c2: 0f b6 c0 movzbl %al,%eax
3c5: 29 c2 sub %eax,%edx
3c7: 89 d0 mov %edx,%eax
}
3c9: 5d pop %ebp
3ca: c3 ret
000003cb <strlen>:
uint
strlen(char *s)
{
3cb: 55 push %ebp
3cc: 89 e5 mov %esp,%ebp
3ce: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
3d1: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
3d8: eb 04 jmp 3de <strlen+0x13>
3da: 83 45 fc 01 addl $0x1,-0x4(%ebp)
3de: 8b 55 fc mov -0x4(%ebp),%edx
3e1: 8b 45 08 mov 0x8(%ebp),%eax
3e4: 01 d0 add %edx,%eax
3e6: 0f b6 00 movzbl (%eax),%eax
3e9: 84 c0 test %al,%al
3eb: 75 ed jne 3da <strlen+0xf>
;
return n;
3ed: 8b 45 fc mov -0x4(%ebp),%eax
}
3f0: c9 leave
3f1: c3 ret
000003f2 <memset>:
void*
memset(void *dst, int c, uint n)
{
3f2: 55 push %ebp
3f3: 89 e5 mov %esp,%ebp
stosb(dst, c, n);
3f5: 8b 45 10 mov 0x10(%ebp),%eax
3f8: 50 push %eax
3f9: ff 75 0c pushl 0xc(%ebp)
3fc: ff 75 08 pushl 0x8(%ebp)
3ff: e8 32 ff ff ff call 336 <stosb>
404: 83 c4 0c add $0xc,%esp
return dst;
407: 8b 45 08 mov 0x8(%ebp),%eax
}
40a: c9 leave
40b: c3 ret
0000040c <strchr>:
char*
strchr(const char *s, char c)
{
40c: 55 push %ebp
40d: 89 e5 mov %esp,%ebp
40f: 83 ec 04 sub $0x4,%esp
412: 8b 45 0c mov 0xc(%ebp),%eax
415: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
418: eb 14 jmp 42e <strchr+0x22>
if(*s == c)
41a: 8b 45 08 mov 0x8(%ebp),%eax
41d: 0f b6 00 movzbl (%eax),%eax
420: 3a 45 fc cmp -0x4(%ebp),%al
423: 75 05 jne 42a <strchr+0x1e>
return (char*)s;
425: 8b 45 08 mov 0x8(%ebp),%eax
428: eb 13 jmp 43d <strchr+0x31>
for(; *s; s++)
42a: 83 45 08 01 addl $0x1,0x8(%ebp)
42e: 8b 45 08 mov 0x8(%ebp),%eax
431: 0f b6 00 movzbl (%eax),%eax
434: 84 c0 test %al,%al
436: 75 e2 jne 41a <strchr+0xe>
return 0;
438: b8 00 00 00 00 mov $0x0,%eax
}
43d: c9 leave
43e: c3 ret
0000043f <gets>:
char*
gets(char *buf, int max)
{
43f: 55 push %ebp
440: 89 e5 mov %esp,%ebp
442: 83 ec 18 sub $0x18,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
445: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
44c: eb 42 jmp 490 <gets+0x51>
cc = read(0, &c, 1);
44e: 83 ec 04 sub $0x4,%esp
451: 6a 01 push $0x1
453: 8d 45 ef lea -0x11(%ebp),%eax
456: 50 push %eax
457: 6a 00 push $0x0
459: e8 47 01 00 00 call 5a5 <read>
45e: 83 c4 10 add $0x10,%esp
461: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
464: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
468: 7e 33 jle 49d <gets+0x5e>
break;
buf[i++] = c;
46a: 8b 45 f4 mov -0xc(%ebp),%eax
46d: 8d 50 01 lea 0x1(%eax),%edx
470: 89 55 f4 mov %edx,-0xc(%ebp)
473: 89 c2 mov %eax,%edx
475: 8b 45 08 mov 0x8(%ebp),%eax
478: 01 c2 add %eax,%edx
47a: 0f b6 45 ef movzbl -0x11(%ebp),%eax
47e: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
480: 0f b6 45 ef movzbl -0x11(%ebp),%eax
484: 3c 0a cmp $0xa,%al
486: 74 16 je 49e <gets+0x5f>
488: 0f b6 45 ef movzbl -0x11(%ebp),%eax
48c: 3c 0d cmp $0xd,%al
48e: 74 0e je 49e <gets+0x5f>
for(i=0; i+1 < max; ){
490: 8b 45 f4 mov -0xc(%ebp),%eax
493: 83 c0 01 add $0x1,%eax
496: 3b 45 0c cmp 0xc(%ebp),%eax
499: 7c b3 jl 44e <gets+0xf>
49b: eb 01 jmp 49e <gets+0x5f>
break;
49d: 90 nop
break;
}
buf[i] = '\0';
49e: 8b 55 f4 mov -0xc(%ebp),%edx
4a1: 8b 45 08 mov 0x8(%ebp),%eax
4a4: 01 d0 add %edx,%eax
4a6: c6 00 00 movb $0x0,(%eax)
return buf;
4a9: 8b 45 08 mov 0x8(%ebp),%eax
}
4ac: c9 leave
4ad: c3 ret
000004ae <stat>:
int
stat(char *n, struct stat *st)
{
4ae: 55 push %ebp
4af: 89 e5 mov %esp,%ebp
4b1: 83 ec 18 sub $0x18,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
4b4: 83 ec 08 sub $0x8,%esp
4b7: 6a 00 push $0x0
4b9: ff 75 08 pushl 0x8(%ebp)
4bc: e8 0c 01 00 00 call 5cd <open>
4c1: 83 c4 10 add $0x10,%esp
4c4: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
4c7: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
4cb: 79 07 jns 4d4 <stat+0x26>
return -1;
4cd: b8 ff ff ff ff mov $0xffffffff,%eax
4d2: eb 25 jmp 4f9 <stat+0x4b>
r = fstat(fd, st);
4d4: 83 ec 08 sub $0x8,%esp
4d7: ff 75 0c pushl 0xc(%ebp)
4da: ff 75 f4 pushl -0xc(%ebp)
4dd: e8 03 01 00 00 call 5e5 <fstat>
4e2: 83 c4 10 add $0x10,%esp
4e5: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
4e8: 83 ec 0c sub $0xc,%esp
4eb: ff 75 f4 pushl -0xc(%ebp)
4ee: e8 c2 00 00 00 call 5b5 <close>
4f3: 83 c4 10 add $0x10,%esp
return r;
4f6: 8b 45 f0 mov -0x10(%ebp),%eax
}
4f9: c9 leave
4fa: c3 ret
000004fb <atoi>:
int
atoi(const char *s)
{
4fb: 55 push %ebp
4fc: 89 e5 mov %esp,%ebp
4fe: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
501: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
508: eb 25 jmp 52f <atoi+0x34>
n = n*10 + *s++ - '0';
50a: 8b 55 fc mov -0x4(%ebp),%edx
50d: 89 d0 mov %edx,%eax
50f: c1 e0 02 shl $0x2,%eax
512: 01 d0 add %edx,%eax
514: 01 c0 add %eax,%eax
516: 89 c1 mov %eax,%ecx
518: 8b 45 08 mov 0x8(%ebp),%eax
51b: 8d 50 01 lea 0x1(%eax),%edx
51e: 89 55 08 mov %edx,0x8(%ebp)
521: 0f b6 00 movzbl (%eax),%eax
524: 0f be c0 movsbl %al,%eax
527: 01 c8 add %ecx,%eax
529: 83 e8 30 sub $0x30,%eax
52c: 89 45 fc mov %eax,-0x4(%ebp)
while('0' <= *s && *s <= '9')
52f: 8b 45 08 mov 0x8(%ebp),%eax
532: 0f b6 00 movzbl (%eax),%eax
535: 3c 2f cmp $0x2f,%al
537: 7e 0a jle 543 <atoi+0x48>
539: 8b 45 08 mov 0x8(%ebp),%eax
53c: 0f b6 00 movzbl (%eax),%eax
53f: 3c 39 cmp $0x39,%al
541: 7e c7 jle 50a <atoi+0xf>
return n;
543: 8b 45 fc mov -0x4(%ebp),%eax
}
546: c9 leave
547: c3 ret
00000548 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
548: 55 push %ebp
549: 89 e5 mov %esp,%ebp
54b: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
54e: 8b 45 08 mov 0x8(%ebp),%eax
551: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
554: 8b 45 0c mov 0xc(%ebp),%eax
557: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
55a: eb 17 jmp 573 <memmove+0x2b>
*dst++ = *src++;
55c: 8b 45 fc mov -0x4(%ebp),%eax
55f: 8d 50 01 lea 0x1(%eax),%edx
562: 89 55 fc mov %edx,-0x4(%ebp)
565: 8b 55 f8 mov -0x8(%ebp),%edx
568: 8d 4a 01 lea 0x1(%edx),%ecx
56b: 89 4d f8 mov %ecx,-0x8(%ebp)
56e: 0f b6 12 movzbl (%edx),%edx
571: 88 10 mov %dl,(%eax)
while(n-- > 0)
573: 8b 45 10 mov 0x10(%ebp),%eax
576: 8d 50 ff lea -0x1(%eax),%edx
579: 89 55 10 mov %edx,0x10(%ebp)
57c: 85 c0 test %eax,%eax
57e: 7f dc jg 55c <memmove+0x14>
return vdst;
580: 8b 45 08 mov 0x8(%ebp),%eax
}
583: c9 leave
584: c3 ret
00000585 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
585: b8 01 00 00 00 mov $0x1,%eax
58a: cd 40 int $0x40
58c: c3 ret
0000058d <exit>:
SYSCALL(exit)
58d: b8 02 00 00 00 mov $0x2,%eax
592: cd 40 int $0x40
594: c3 ret
00000595 <wait>:
SYSCALL(wait)
595: b8 03 00 00 00 mov $0x3,%eax
59a: cd 40 int $0x40
59c: c3 ret
0000059d <pipe>:
SYSCALL(pipe)
59d: b8 04 00 00 00 mov $0x4,%eax
5a2: cd 40 int $0x40
5a4: c3 ret
000005a5 <read>:
SYSCALL(read)
5a5: b8 05 00 00 00 mov $0x5,%eax
5aa: cd 40 int $0x40
5ac: c3 ret
000005ad <write>:
SYSCALL(write)
5ad: b8 10 00 00 00 mov $0x10,%eax
5b2: cd 40 int $0x40
5b4: c3 ret
000005b5 <close>:
SYSCALL(close)
5b5: b8 15 00 00 00 mov $0x15,%eax
5ba: cd 40 int $0x40
5bc: c3 ret
000005bd <kill>:
SYSCALL(kill)
5bd: b8 06 00 00 00 mov $0x6,%eax
5c2: cd 40 int $0x40
5c4: c3 ret
000005c5 <exec>:
SYSCALL(exec)
5c5: b8 07 00 00 00 mov $0x7,%eax
5ca: cd 40 int $0x40
5cc: c3 ret
000005cd <open>:
SYSCALL(open)
5cd: b8 0f 00 00 00 mov $0xf,%eax
5d2: cd 40 int $0x40
5d4: c3 ret
000005d5 <mknod>:
SYSCALL(mknod)
5d5: b8 11 00 00 00 mov $0x11,%eax
5da: cd 40 int $0x40
5dc: c3 ret
000005dd <unlink>:
SYSCALL(unlink)
5dd: b8 12 00 00 00 mov $0x12,%eax
5e2: cd 40 int $0x40
5e4: c3 ret
000005e5 <fstat>:
SYSCALL(fstat)
5e5: b8 08 00 00 00 mov $0x8,%eax
5ea: cd 40 int $0x40
5ec: c3 ret
000005ed <link>:
SYSCALL(link)
5ed: b8 13 00 00 00 mov $0x13,%eax
5f2: cd 40 int $0x40
5f4: c3 ret
000005f5 <mkdir>:
SYSCALL(mkdir)
5f5: b8 14 00 00 00 mov $0x14,%eax
5fa: cd 40 int $0x40
5fc: c3 ret
000005fd <chdir>:
SYSCALL(chdir)
5fd: b8 09 00 00 00 mov $0x9,%eax
602: cd 40 int $0x40
604: c3 ret
00000605 <dup>:
SYSCALL(dup)
605: b8 0a 00 00 00 mov $0xa,%eax
60a: cd 40 int $0x40
60c: c3 ret
0000060d <getpid>:
SYSCALL(getpid)
60d: b8 0b 00 00 00 mov $0xb,%eax
612: cd 40 int $0x40
614: c3 ret
00000615 <sbrk>:
SYSCALL(sbrk)
615: b8 0c 00 00 00 mov $0xc,%eax
61a: cd 40 int $0x40
61c: c3 ret
0000061d <sleep>:
SYSCALL(sleep)
61d: b8 0d 00 00 00 mov $0xd,%eax
622: cd 40 int $0x40
624: c3 ret
00000625 <uptime>:
SYSCALL(uptime)
625: b8 0e 00 00 00 mov $0xe,%eax
62a: cd 40 int $0x40
62c: c3 ret
0000062d <gettime>:
SYSCALL(gettime)
62d: b8 16 00 00 00 mov $0x16,%eax
632: cd 40 int $0x40
634: c3 ret
00000635 <settickets>:
SYSCALL(settickets)
635: b8 17 00 00 00 mov $0x17,%eax
63a: cd 40 int $0x40
63c: c3 ret
0000063d <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
63d: 55 push %ebp
63e: 89 e5 mov %esp,%ebp
640: 83 ec 18 sub $0x18,%esp
643: 8b 45 0c mov 0xc(%ebp),%eax
646: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
649: 83 ec 04 sub $0x4,%esp
64c: 6a 01 push $0x1
64e: 8d 45 f4 lea -0xc(%ebp),%eax
651: 50 push %eax
652: ff 75 08 pushl 0x8(%ebp)
655: e8 53 ff ff ff call 5ad <write>
65a: 83 c4 10 add $0x10,%esp
}
65d: 90 nop
65e: c9 leave
65f: c3 ret
00000660 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
660: 55 push %ebp
661: 89 e5 mov %esp,%ebp
663: 53 push %ebx
664: 83 ec 24 sub $0x24,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
667: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
66e: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
672: 74 17 je 68b <printint+0x2b>
674: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
678: 79 11 jns 68b <printint+0x2b>
neg = 1;
67a: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
681: 8b 45 0c mov 0xc(%ebp),%eax
684: f7 d8 neg %eax
686: 89 45 ec mov %eax,-0x14(%ebp)
689: eb 06 jmp 691 <printint+0x31>
} else {
x = xx;
68b: 8b 45 0c mov 0xc(%ebp),%eax
68e: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
691: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
698: 8b 4d f4 mov -0xc(%ebp),%ecx
69b: 8d 41 01 lea 0x1(%ecx),%eax
69e: 89 45 f4 mov %eax,-0xc(%ebp)
6a1: 8b 5d 10 mov 0x10(%ebp),%ebx
6a4: 8b 45 ec mov -0x14(%ebp),%eax
6a7: ba 00 00 00 00 mov $0x0,%edx
6ac: f7 f3 div %ebx
6ae: 89 d0 mov %edx,%eax
6b0: 0f b6 80 7c 0e 00 00 movzbl 0xe7c(%eax),%eax
6b7: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
}while((x /= base) != 0);
6bb: 8b 5d 10 mov 0x10(%ebp),%ebx
6be: 8b 45 ec mov -0x14(%ebp),%eax
6c1: ba 00 00 00 00 mov $0x0,%edx
6c6: f7 f3 div %ebx
6c8: 89 45 ec mov %eax,-0x14(%ebp)
6cb: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
6cf: 75 c7 jne 698 <printint+0x38>
if(neg)
6d1: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
6d5: 74 2d je 704 <printint+0xa4>
buf[i++] = '-';
6d7: 8b 45 f4 mov -0xc(%ebp),%eax
6da: 8d 50 01 lea 0x1(%eax),%edx
6dd: 89 55 f4 mov %edx,-0xc(%ebp)
6e0: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
while(--i >= 0)
6e5: eb 1d jmp 704 <printint+0xa4>
putc(fd, buf[i]);
6e7: 8d 55 dc lea -0x24(%ebp),%edx
6ea: 8b 45 f4 mov -0xc(%ebp),%eax
6ed: 01 d0 add %edx,%eax
6ef: 0f b6 00 movzbl (%eax),%eax
6f2: 0f be c0 movsbl %al,%eax
6f5: 83 ec 08 sub $0x8,%esp
6f8: 50 push %eax
6f9: ff 75 08 pushl 0x8(%ebp)
6fc: e8 3c ff ff ff call 63d <putc>
701: 83 c4 10 add $0x10,%esp
while(--i >= 0)
704: 83 6d f4 01 subl $0x1,-0xc(%ebp)
708: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
70c: 79 d9 jns 6e7 <printint+0x87>
}
70e: 90 nop
70f: 8b 5d fc mov -0x4(%ebp),%ebx
712: c9 leave
713: c3 ret
00000714 <printlong>:
static void
printlong(int fd, unsigned long long xx, int base, int sgn)
{
714: 55 push %ebp
715: 89 e5 mov %esp,%ebp
717: 83 ec 28 sub $0x28,%esp
71a: 8b 45 0c mov 0xc(%ebp),%eax
71d: 89 45 e0 mov %eax,-0x20(%ebp)
720: 8b 45 10 mov 0x10(%ebp),%eax
723: 89 45 e4 mov %eax,-0x1c(%ebp)
// Force hexadecimal
uint upper, lower;
upper = xx >> 32;
726: 8b 45 e0 mov -0x20(%ebp),%eax
729: 8b 55 e4 mov -0x1c(%ebp),%edx
72c: 89 d0 mov %edx,%eax
72e: 31 d2 xor %edx,%edx
730: 89 45 f4 mov %eax,-0xc(%ebp)
lower = xx & 0xffffffff;
733: 8b 45 e0 mov -0x20(%ebp),%eax
736: 89 45 f0 mov %eax,-0x10(%ebp)
if(upper) printint(fd, upper, 16, 0);
739: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
73d: 74 13 je 752 <printlong+0x3e>
73f: 8b 45 f4 mov -0xc(%ebp),%eax
742: 6a 00 push $0x0
744: 6a 10 push $0x10
746: 50 push %eax
747: ff 75 08 pushl 0x8(%ebp)
74a: e8 11 ff ff ff call 660 <printint>
74f: 83 c4 10 add $0x10,%esp
printint(fd, lower, 16, 0);
752: 8b 45 f0 mov -0x10(%ebp),%eax
755: 6a 00 push $0x0
757: 6a 10 push $0x10
759: 50 push %eax
75a: ff 75 08 pushl 0x8(%ebp)
75d: e8 fe fe ff ff call 660 <printint>
762: 83 c4 10 add $0x10,%esp
}
765: 90 nop
766: c9 leave
767: c3 ret
00000768 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
// bdg 10/05/2015: Add %l
void
printf(int fd, char *fmt, ...)
{
768: 55 push %ebp
769: 89 e5 mov %esp,%ebp
76b: 83 ec 28 sub $0x28,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
76e: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
775: 8d 45 0c lea 0xc(%ebp),%eax
778: 83 c0 04 add $0x4,%eax
77b: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
77e: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
785: e9 88 01 00 00 jmp 912 <printf+0x1aa>
c = fmt[i] & 0xff;
78a: 8b 55 0c mov 0xc(%ebp),%edx
78d: 8b 45 f0 mov -0x10(%ebp),%eax
790: 01 d0 add %edx,%eax
792: 0f b6 00 movzbl (%eax),%eax
795: 0f be c0 movsbl %al,%eax
798: 25 ff 00 00 00 and $0xff,%eax
79d: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
7a0: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
7a4: 75 2c jne 7d2 <printf+0x6a>
if(c == '%'){
7a6: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
7aa: 75 0c jne 7b8 <printf+0x50>
state = '%';
7ac: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
7b3: e9 56 01 00 00 jmp 90e <printf+0x1a6>
} else {
putc(fd, c);
7b8: 8b 45 e4 mov -0x1c(%ebp),%eax
7bb: 0f be c0 movsbl %al,%eax
7be: 83 ec 08 sub $0x8,%esp
7c1: 50 push %eax
7c2: ff 75 08 pushl 0x8(%ebp)
7c5: e8 73 fe ff ff call 63d <putc>
7ca: 83 c4 10 add $0x10,%esp
7cd: e9 3c 01 00 00 jmp 90e <printf+0x1a6>
}
} else if(state == '%'){
7d2: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
7d6: 0f 85 32 01 00 00 jne 90e <printf+0x1a6>
if(c == 'd'){
7dc: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
7e0: 75 1e jne 800 <printf+0x98>
printint(fd, *ap, 10, 1);
7e2: 8b 45 e8 mov -0x18(%ebp),%eax
7e5: 8b 00 mov (%eax),%eax
7e7: 6a 01 push $0x1
7e9: 6a 0a push $0xa
7eb: 50 push %eax
7ec: ff 75 08 pushl 0x8(%ebp)
7ef: e8 6c fe ff ff call 660 <printint>
7f4: 83 c4 10 add $0x10,%esp
ap++;
7f7: 83 45 e8 04 addl $0x4,-0x18(%ebp)
7fb: e9 07 01 00 00 jmp 907 <printf+0x19f>
} else if(c == 'l') {
800: 83 7d e4 6c cmpl $0x6c,-0x1c(%ebp)
804: 75 29 jne 82f <printf+0xc7>
printlong(fd, *(unsigned long long *)ap, 10, 0);
806: 8b 45 e8 mov -0x18(%ebp),%eax
809: 8b 50 04 mov 0x4(%eax),%edx
80c: 8b 00 mov (%eax),%eax
80e: 83 ec 0c sub $0xc,%esp
811: 6a 00 push $0x0
813: 6a 0a push $0xa
815: 52 push %edx
816: 50 push %eax
817: ff 75 08 pushl 0x8(%ebp)
81a: e8 f5 fe ff ff call 714 <printlong>
81f: 83 c4 20 add $0x20,%esp
// long longs take up 2 argument slots
ap++;
822: 83 45 e8 04 addl $0x4,-0x18(%ebp)
ap++;
826: 83 45 e8 04 addl $0x4,-0x18(%ebp)
82a: e9 d8 00 00 00 jmp 907 <printf+0x19f>
} else if(c == 'x' || c == 'p'){
82f: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
833: 74 06 je 83b <printf+0xd3>
835: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
839: 75 1e jne 859 <printf+0xf1>
printint(fd, *ap, 16, 0);
83b: 8b 45 e8 mov -0x18(%ebp),%eax
83e: 8b 00 mov (%eax),%eax
840: 6a 00 push $0x0
842: 6a 10 push $0x10
844: 50 push %eax
845: ff 75 08 pushl 0x8(%ebp)
848: e8 13 fe ff ff call 660 <printint>
84d: 83 c4 10 add $0x10,%esp
ap++;
850: 83 45 e8 04 addl $0x4,-0x18(%ebp)
854: e9 ae 00 00 00 jmp 907 <printf+0x19f>
} else if(c == 's'){
859: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
85d: 75 43 jne 8a2 <printf+0x13a>
s = (char*)*ap;
85f: 8b 45 e8 mov -0x18(%ebp),%eax
862: 8b 00 mov (%eax),%eax
864: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
867: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
86b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
86f: 75 25 jne 896 <printf+0x12e>
s = "(null)";
871: c7 45 f4 86 0b 00 00 movl $0xb86,-0xc(%ebp)
while(*s != 0){
878: eb 1c jmp 896 <printf+0x12e>
putc(fd, *s);
87a: 8b 45 f4 mov -0xc(%ebp),%eax
87d: 0f b6 00 movzbl (%eax),%eax
880: 0f be c0 movsbl %al,%eax
883: 83 ec 08 sub $0x8,%esp
886: 50 push %eax
887: ff 75 08 pushl 0x8(%ebp)
88a: e8 ae fd ff ff call 63d <putc>
88f: 83 c4 10 add $0x10,%esp
s++;
892: 83 45 f4 01 addl $0x1,-0xc(%ebp)
while(*s != 0){
896: 8b 45 f4 mov -0xc(%ebp),%eax
899: 0f b6 00 movzbl (%eax),%eax
89c: 84 c0 test %al,%al
89e: 75 da jne 87a <printf+0x112>
8a0: eb 65 jmp 907 <printf+0x19f>
}
} else if(c == 'c'){
8a2: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
8a6: 75 1d jne 8c5 <printf+0x15d>
putc(fd, *ap);
8a8: 8b 45 e8 mov -0x18(%ebp),%eax
8ab: 8b 00 mov (%eax),%eax
8ad: 0f be c0 movsbl %al,%eax
8b0: 83 ec 08 sub $0x8,%esp
8b3: 50 push %eax
8b4: ff 75 08 pushl 0x8(%ebp)
8b7: e8 81 fd ff ff call 63d <putc>
8bc: 83 c4 10 add $0x10,%esp
ap++;
8bf: 83 45 e8 04 addl $0x4,-0x18(%ebp)
8c3: eb 42 jmp 907 <printf+0x19f>
} else if(c == '%'){
8c5: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
8c9: 75 17 jne 8e2 <printf+0x17a>
putc(fd, c);
8cb: 8b 45 e4 mov -0x1c(%ebp),%eax
8ce: 0f be c0 movsbl %al,%eax
8d1: 83 ec 08 sub $0x8,%esp
8d4: 50 push %eax
8d5: ff 75 08 pushl 0x8(%ebp)
8d8: e8 60 fd ff ff call 63d <putc>
8dd: 83 c4 10 add $0x10,%esp
8e0: eb 25 jmp 907 <printf+0x19f>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
8e2: 83 ec 08 sub $0x8,%esp
8e5: 6a 25 push $0x25
8e7: ff 75 08 pushl 0x8(%ebp)
8ea: e8 4e fd ff ff call 63d <putc>
8ef: 83 c4 10 add $0x10,%esp
putc(fd, c);
8f2: 8b 45 e4 mov -0x1c(%ebp),%eax
8f5: 0f be c0 movsbl %al,%eax
8f8: 83 ec 08 sub $0x8,%esp
8fb: 50 push %eax
8fc: ff 75 08 pushl 0x8(%ebp)
8ff: e8 39 fd ff ff call 63d <putc>
904: 83 c4 10 add $0x10,%esp
}
state = 0;
907: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
for(i = 0; fmt[i]; i++){
90e: 83 45 f0 01 addl $0x1,-0x10(%ebp)
912: 8b 55 0c mov 0xc(%ebp),%edx
915: 8b 45 f0 mov -0x10(%ebp),%eax
918: 01 d0 add %edx,%eax
91a: 0f b6 00 movzbl (%eax),%eax
91d: 84 c0 test %al,%al
91f: 0f 85 65 fe ff ff jne 78a <printf+0x22>
}
}
}
925: 90 nop
926: c9 leave
927: c3 ret
00000928 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
928: 55 push %ebp
929: 89 e5 mov %esp,%ebp
92b: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
92e: 8b 45 08 mov 0x8(%ebp),%eax
931: 83 e8 08 sub $0x8,%eax
934: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
937: a1 a8 0e 00 00 mov 0xea8,%eax
93c: 89 45 fc mov %eax,-0x4(%ebp)
93f: eb 24 jmp 965 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
941: 8b 45 fc mov -0x4(%ebp),%eax
944: 8b 00 mov (%eax),%eax
946: 3b 45 fc cmp -0x4(%ebp),%eax
949: 77 12 ja 95d <free+0x35>
94b: 8b 45 f8 mov -0x8(%ebp),%eax
94e: 3b 45 fc cmp -0x4(%ebp),%eax
951: 77 24 ja 977 <free+0x4f>
953: 8b 45 fc mov -0x4(%ebp),%eax
956: 8b 00 mov (%eax),%eax
958: 3b 45 f8 cmp -0x8(%ebp),%eax
95b: 77 1a ja 977 <free+0x4f>
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
95d: 8b 45 fc mov -0x4(%ebp),%eax
960: 8b 00 mov (%eax),%eax
962: 89 45 fc mov %eax,-0x4(%ebp)
965: 8b 45 f8 mov -0x8(%ebp),%eax
968: 3b 45 fc cmp -0x4(%ebp),%eax
96b: 76 d4 jbe 941 <free+0x19>
96d: 8b 45 fc mov -0x4(%ebp),%eax
970: 8b 00 mov (%eax),%eax
972: 3b 45 f8 cmp -0x8(%ebp),%eax
975: 76 ca jbe 941 <free+0x19>
break;
if(bp + bp->s.size == p->s.ptr){
977: 8b 45 f8 mov -0x8(%ebp),%eax
97a: 8b 40 04 mov 0x4(%eax),%eax
97d: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
984: 8b 45 f8 mov -0x8(%ebp),%eax
987: 01 c2 add %eax,%edx
989: 8b 45 fc mov -0x4(%ebp),%eax
98c: 8b 00 mov (%eax),%eax
98e: 39 c2 cmp %eax,%edx
990: 75 24 jne 9b6 <free+0x8e>
bp->s.size += p->s.ptr->s.size;
992: 8b 45 f8 mov -0x8(%ebp),%eax
995: 8b 50 04 mov 0x4(%eax),%edx
998: 8b 45 fc mov -0x4(%ebp),%eax
99b: 8b 00 mov (%eax),%eax
99d: 8b 40 04 mov 0x4(%eax),%eax
9a0: 01 c2 add %eax,%edx
9a2: 8b 45 f8 mov -0x8(%ebp),%eax
9a5: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
9a8: 8b 45 fc mov -0x4(%ebp),%eax
9ab: 8b 00 mov (%eax),%eax
9ad: 8b 10 mov (%eax),%edx
9af: 8b 45 f8 mov -0x8(%ebp),%eax
9b2: 89 10 mov %edx,(%eax)
9b4: eb 0a jmp 9c0 <free+0x98>
} else
bp->s.ptr = p->s.ptr;
9b6: 8b 45 fc mov -0x4(%ebp),%eax
9b9: 8b 10 mov (%eax),%edx
9bb: 8b 45 f8 mov -0x8(%ebp),%eax
9be: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
9c0: 8b 45 fc mov -0x4(%ebp),%eax
9c3: 8b 40 04 mov 0x4(%eax),%eax
9c6: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
9cd: 8b 45 fc mov -0x4(%ebp),%eax
9d0: 01 d0 add %edx,%eax
9d2: 3b 45 f8 cmp -0x8(%ebp),%eax
9d5: 75 20 jne 9f7 <free+0xcf>
p->s.size += bp->s.size;
9d7: 8b 45 fc mov -0x4(%ebp),%eax
9da: 8b 50 04 mov 0x4(%eax),%edx
9dd: 8b 45 f8 mov -0x8(%ebp),%eax
9e0: 8b 40 04 mov 0x4(%eax),%eax
9e3: 01 c2 add %eax,%edx
9e5: 8b 45 fc mov -0x4(%ebp),%eax
9e8: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
9eb: 8b 45 f8 mov -0x8(%ebp),%eax
9ee: 8b 10 mov (%eax),%edx
9f0: 8b 45 fc mov -0x4(%ebp),%eax
9f3: 89 10 mov %edx,(%eax)
9f5: eb 08 jmp 9ff <free+0xd7>
} else
p->s.ptr = bp;
9f7: 8b 45 fc mov -0x4(%ebp),%eax
9fa: 8b 55 f8 mov -0x8(%ebp),%edx
9fd: 89 10 mov %edx,(%eax)
freep = p;
9ff: 8b 45 fc mov -0x4(%ebp),%eax
a02: a3 a8 0e 00 00 mov %eax,0xea8
}
a07: 90 nop
a08: c9 leave
a09: c3 ret
00000a0a <morecore>:
static Header*
morecore(uint nu)
{
a0a: 55 push %ebp
a0b: 89 e5 mov %esp,%ebp
a0d: 83 ec 18 sub $0x18,%esp
char *p;
Header *hp;
if(nu < 4096)
a10: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
a17: 77 07 ja a20 <morecore+0x16>
nu = 4096;
a19: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
a20: 8b 45 08 mov 0x8(%ebp),%eax
a23: c1 e0 03 shl $0x3,%eax
a26: 83 ec 0c sub $0xc,%esp
a29: 50 push %eax
a2a: e8 e6 fb ff ff call 615 <sbrk>
a2f: 83 c4 10 add $0x10,%esp
a32: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
a35: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
a39: 75 07 jne a42 <morecore+0x38>
return 0;
a3b: b8 00 00 00 00 mov $0x0,%eax
a40: eb 26 jmp a68 <morecore+0x5e>
hp = (Header*)p;
a42: 8b 45 f4 mov -0xc(%ebp),%eax
a45: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
a48: 8b 45 f0 mov -0x10(%ebp),%eax
a4b: 8b 55 08 mov 0x8(%ebp),%edx
a4e: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
a51: 8b 45 f0 mov -0x10(%ebp),%eax
a54: 83 c0 08 add $0x8,%eax
a57: 83 ec 0c sub $0xc,%esp
a5a: 50 push %eax
a5b: e8 c8 fe ff ff call 928 <free>
a60: 83 c4 10 add $0x10,%esp
return freep;
a63: a1 a8 0e 00 00 mov 0xea8,%eax
}
a68: c9 leave
a69: c3 ret
00000a6a <malloc>:
void*
malloc(uint nbytes)
{
a6a: 55 push %ebp
a6b: 89 e5 mov %esp,%ebp
a6d: 83 ec 18 sub $0x18,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
a70: 8b 45 08 mov 0x8(%ebp),%eax
a73: 83 c0 07 add $0x7,%eax
a76: c1 e8 03 shr $0x3,%eax
a79: 83 c0 01 add $0x1,%eax
a7c: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
a7f: a1 a8 0e 00 00 mov 0xea8,%eax
a84: 89 45 f0 mov %eax,-0x10(%ebp)
a87: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
a8b: 75 23 jne ab0 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
a8d: c7 45 f0 a0 0e 00 00 movl $0xea0,-0x10(%ebp)
a94: 8b 45 f0 mov -0x10(%ebp),%eax
a97: a3 a8 0e 00 00 mov %eax,0xea8
a9c: a1 a8 0e 00 00 mov 0xea8,%eax
aa1: a3 a0 0e 00 00 mov %eax,0xea0
base.s.size = 0;
aa6: c7 05 a4 0e 00 00 00 movl $0x0,0xea4
aad: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
ab0: 8b 45 f0 mov -0x10(%ebp),%eax
ab3: 8b 00 mov (%eax),%eax
ab5: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
ab8: 8b 45 f4 mov -0xc(%ebp),%eax
abb: 8b 40 04 mov 0x4(%eax),%eax
abe: 3b 45 ec cmp -0x14(%ebp),%eax
ac1: 72 4d jb b10 <malloc+0xa6>
if(p->s.size == nunits)
ac3: 8b 45 f4 mov -0xc(%ebp),%eax
ac6: 8b 40 04 mov 0x4(%eax),%eax
ac9: 3b 45 ec cmp -0x14(%ebp),%eax
acc: 75 0c jne ada <malloc+0x70>
prevp->s.ptr = p->s.ptr;
ace: 8b 45 f4 mov -0xc(%ebp),%eax
ad1: 8b 10 mov (%eax),%edx
ad3: 8b 45 f0 mov -0x10(%ebp),%eax
ad6: 89 10 mov %edx,(%eax)
ad8: eb 26 jmp b00 <malloc+0x96>
else {
p->s.size -= nunits;
ada: 8b 45 f4 mov -0xc(%ebp),%eax
add: 8b 40 04 mov 0x4(%eax),%eax
ae0: 2b 45 ec sub -0x14(%ebp),%eax
ae3: 89 c2 mov %eax,%edx
ae5: 8b 45 f4 mov -0xc(%ebp),%eax
ae8: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
aeb: 8b 45 f4 mov -0xc(%ebp),%eax
aee: 8b 40 04 mov 0x4(%eax),%eax
af1: c1 e0 03 shl $0x3,%eax
af4: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
af7: 8b 45 f4 mov -0xc(%ebp),%eax
afa: 8b 55 ec mov -0x14(%ebp),%edx
afd: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
b00: 8b 45 f0 mov -0x10(%ebp),%eax
b03: a3 a8 0e 00 00 mov %eax,0xea8
return (void*)(p + 1);
b08: 8b 45 f4 mov -0xc(%ebp),%eax
b0b: 83 c0 08 add $0x8,%eax
b0e: eb 3b jmp b4b <malloc+0xe1>
}
if(p == freep)
b10: a1 a8 0e 00 00 mov 0xea8,%eax
b15: 39 45 f4 cmp %eax,-0xc(%ebp)
b18: 75 1e jne b38 <malloc+0xce>
if((p = morecore(nunits)) == 0)
b1a: 83 ec 0c sub $0xc,%esp
b1d: ff 75 ec pushl -0x14(%ebp)
b20: e8 e5 fe ff ff call a0a <morecore>
b25: 83 c4 10 add $0x10,%esp
b28: 89 45 f4 mov %eax,-0xc(%ebp)
b2b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
b2f: 75 07 jne b38 <malloc+0xce>
return 0;
b31: b8 00 00 00 00 mov $0x0,%eax
b36: eb 13 jmp b4b <malloc+0xe1>
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
b38: 8b 45 f4 mov -0xc(%ebp),%eax
b3b: 89 45 f0 mov %eax,-0x10(%ebp)
b3e: 8b 45 f4 mov -0xc(%ebp),%eax
b41: 8b 00 mov (%eax),%eax
b43: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
b46: e9 6d ff ff ff jmp ab8 <malloc+0x4e>
}
}
b4b: c9 leave
b4c: c3 ret
| 36.442057 | 60 | 0.424511 |
53e86aa6ca1b79dc14bab35d6c00c962a6215340 | 2,828 | asm | Assembly | 45/qb/ir/ssdata.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/qb/ir/ssdata.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/qb/ir/ssdata.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | TITLE ssdata - Scanner specific data declarations
;***
;ssdata - Scanner specific data declarations
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; This module contains scanner specific data declarations only.
;
;
;****************************************************************************
.xlist
include version.inc
SSDATA_ASM = ON
.list
assumes ds, DATA
assumes es, NOTHING
assumes SS, DATA
sBegin CODE
foo label byte
sEnd CODE
subttl Static data area definitons.
sBegin DATA
public SegCode
SegCode dw seg foo
public SsErrOTx
SsErrOTx DW 0 ;Text offset of pcode which was replaced by opEot
public SsErr
SsErr DW 0 ;Error code to be returned by scanner.
public SsErrOpcode
SsErrOpcode DW 0 ;Opcode which was replaced by opEot
public SsDelayErr,SsDelayLoc,SsDelayCnt
SsDelayErr dw 0 ;Error code of delayed error
SsDelayLoc dw 0 ;oTx of delayed error
SsDelayCnt dw 0 ;Count of pending delayed errors
public ScanRet
ScanRet DW 0 ;Scan loop return address
public f_Static
f_Static DB 0 ;TRUE if $STATIC in effect
public f_StaticCalc
f_StaticCalc DB 0 ;Move to temporary for calcualtion
public SsExec,SsExecFlag,SsExecTmp
SsExec label word ;Flags below referenced as one word
SsExecFlag DB 0 ;OPA_fExecute ORed in if can't allow COMMON
SsExecTmp DB 0 ;Temporary hold for SsExecFlag during CONST
public ScannerFlags,SsBosFlags,SsFlags
ScannerFlags label word ;Flags below referenced as one word
SsBosFlags DB 0 ;Scanner begin of statement flags
SsFlags DB 0 ;General scanner flags
public SsOTxPatchBos
SsOTxPatchBos DW 0 ; Address of word to be patched at next Bos
public SsOTxStart
SsOTxStart DW 0 ; Address of point where stack is empty
public SsOTxBOS
SsOTxBOS DW 0 ;oTx for BOS for statement being scanned
public SsCbTxExpand
SsCbTxExpand DW 0 ;Count of bytes by which the text table has expanded.
public SsLinkCtl
SsLinkCtl DW 0 ;Address of Label control structure
public SsCbFrameTemp
SsCbFrameTemp DW 0 ;Bytes of temp space for current statement
public SsStackSave
SsStackSave DW 0 ;Save location for sp from start of scan
public SsLineCount
SsLineCount DW 0 ;No. of lines scanned
;Descan uses these to keep track of return address on the stack
public SsNextOTx,SsReturnBp
SsNextOTx DW 0 ;oTx of return address
SsReturnBp DW 0 ;offset in stack of return frame
;ScanAndExec needs the following
public SsScanExStart,SsScanExSrc
SsScanExStart DW 0 ;Starting address of execution
SsScanExSrc DW 0 ;oTx of original source
;Ss_StCall uses these to count parameter bytes for CDECL calls
public SsCbParmCur,SsParmCnt
SsCbParmCur dw 0 ;cb of all params so far
SsParmCnt dw 0 ;Number of parameters
public SsOtxHeapMove
SsOtxHeapMove dw 0 ;oTx of last possible heap movement
public SsBosStack
SsBosStack dw 0 ;SP-2 at BOS
sEnd DATA
end
| 23.966102 | 77 | 0.768388 |
cfef993267650a2a3e8e0afddf06d5e4583c9f07 | 689 | asm | Assembly | oeis/278/A278142.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/278/A278142.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/278/A278142.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A278142: Denominators of partial sums of a Ramanujan series converging to 2^(3/2)/(sqrt(Pi)*Gamma(3/4)^2) given in A278146.
; 1,256,1048576,268435456,17592186044416,4503599627370496,18446744073709551616,4722366482869645213696,4951760157141521099596496896,1267650600228229401496703205376,5192296858534827628530496329220096,1329227995784915872903807060280344576,87112285931760246646623899502532662132736,22300745198530623141535718272648361505980416,91343852333181432387730302044767688728495783936,23384026197294446691258957323460528314494920687616,392318858461667547739736838950479151006397215279002157056
mov $2,$0
lpb $2
add $0,$2
div $2,2
lpe
add $2,4
mul $2,4
pow $2,$0
mov $0,$2
| 53 | 479 | 0.865022 |
0f1c7d3d10393a34bf339289830b03fbb25abf50 | 5,312 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2_notsx.log_160_244.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2_notsx.log_160_244.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2_notsx.log_160_244.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1c7f8, %rcx
clflush (%rcx)
nop
nop
nop
and $56164, %rdx
movl $0x61626364, (%rcx)
nop
and %r15, %r15
lea addresses_WT_ht+0x1180, %r14
nop
nop
nop
nop
nop
add $9618, %r8
movb (%r14), %dl
nop
nop
nop
nop
dec %rcx
lea addresses_A_ht+0x8e18, %rax
nop
nop
nop
xor $62868, %r15
mov (%rax), %dx
nop
cmp $1219, %rdx
lea addresses_WT_ht+0x12a18, %rcx
cmp $42594, %rax
mov $0x6162636465666768, %r8
movq %r8, %xmm5
vmovups %ymm5, (%rcx)
nop
nop
add %r14, %r14
lea addresses_WT_ht+0x102fc, %rax
clflush (%rax)
nop
nop
nop
nop
nop
cmp %r8, %r8
movw $0x6162, (%rax)
nop
nop
nop
sub %r15, %r15
lea addresses_UC_ht+0x2d28, %r14
nop
xor %r15, %r15
mov $0x6162636465666768, %rcx
movq %rcx, (%r14)
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_WT_ht+0x16878, %rcx
nop
nop
nop
nop
dec %r14
mov $0x6162636465666768, %rdx
movq %rdx, (%rcx)
cmp $42772, %rdx
lea addresses_D_ht+0x4858, %r8
clflush (%r8)
nop
nop
nop
nop
nop
sub %rbp, %rbp
vmovups (%r8), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %rcx
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_UC_ht+0x15bf8, %rsi
lea addresses_D_ht+0xbec8, %rdi
clflush (%rdi)
nop
nop
nop
nop
add %rbp, %rbp
mov $119, %rcx
rep movsw
nop
nop
nop
nop
xor %r15, %r15
lea addresses_A_ht+0x1c998, %rdx
nop
nop
nop
nop
nop
cmp %rcx, %rcx
mov (%rdx), %r14d
nop
nop
nop
nop
inc %rsi
lea addresses_A_ht+0x478, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub %rsi, %rsi
movups (%rdi), %xmm0
vpextrq $1, %xmm0, %rax
nop
nop
nop
sub %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_A+0x7c50, %rsi
lea addresses_WT+0x5f58, %rdi
nop
sub $36783, %r8
mov $110, %rcx
rep movsb
and $6129, %rdx
// Store
lea addresses_normal+0x1d215, %rdi
cmp %r13, %r13
movl $0x51525354, (%rdi)
nop
nop
nop
nop
dec %rcx
// Store
mov $0x768, %rdx
cmp %rcx, %rcx
mov $0x5152535455565758, %rsi
movq %rsi, (%rdx)
nop
nop
add $44592, %rdi
// Store
lea addresses_normal+0x6778, %r8
nop
add $43398, %rdi
mov $0x5152535455565758, %r13
movq %r13, %xmm5
movups %xmm5, (%r8)
nop
xor $53825, %r13
// Faulty Load
lea addresses_A+0xd778, %rcx
clflush (%rcx)
nop
nop
cmp %rdx, %rdx
vmovups (%rcx), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rsi
lea oracles, %rdx
and $0xff, %rsi
shlq $12, %rsi
mov (%rdx,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'00': 160}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 21.681633 | 479 | 0.646461 |
a10bc0e476e06f6cb85924740954d339cbbe94c7 | 3,504 | asm | Assembly | Working Disassembly/Levels/FBZ/Misc Object Data/Map - Screw Door.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | 5 | 2021-07-09T08:17:56.000Z | 2022-02-27T19:57:47.000Z | Working Disassembly/Levels/FBZ/Misc Object Data/Map - Screw Door.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | Working Disassembly/Levels/FBZ/Misc Object Data/Map - Screw Door.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | dc.w word_3BDA6-Map_FBZScrewDoor
dc.w word_3BDC6-Map_FBZScrewDoor
dc.w word_3BDE6-Map_FBZScrewDoor
dc.w word_3BE06-Map_FBZScrewDoor
dc.w word_3BE26-Map_FBZScrewDoor
dc.w word_3BE40-Map_FBZScrewDoor
dc.w word_3BE5A-Map_FBZScrewDoor
dc.w word_3BE74-Map_FBZScrewDoor
dc.w word_3BE8E-Map_FBZScrewDoor
dc.w word_3BEC0-Map_FBZScrewDoor
dc.w word_3BEF2-Map_FBZScrewDoor
dc.w word_3BF24-Map_FBZScrewDoor
word_3BDA6: dc.w 5 ; DATA XREF: ROM:0003BD8Eo
dc.b $E0, 5, 0, 0, $FF, $F8
dc.b $F0, 5, 0, 0, $FF, $F8
dc.b 0, 5, 0, 0, $FF, $F8
dc.b $10, 5, 0, 0, $FF, $F8
dc.b $20, 4, 0, 4, $FF, $F8
word_3BDC6: dc.w 5 ; DATA XREF: ROM:0003BD8Eo
dc.b $E0, 5, 0, 6, $FF, $F8
dc.b $F0, 5, 0, 6, $FF, $F8
dc.b 0, 5, 0, 6, $FF, $F8
dc.b $10, 5, 0, 6, $FF, $F8
dc.b $20, 4, 0, $A, $FF, $F8
word_3BDE6: dc.w 5 ; DATA XREF: ROM:0003BD8Eo
dc.b $E0, 5, 0, $C, $FF, $F8
dc.b $F0, 5, 0, $C, $FF, $F8
dc.b 0, 5, 0, $C, $FF, $F8
dc.b $10, 5, 0, $C, $FF, $F8
dc.b $20, 4, 0, $10, $FF, $F8
word_3BE06: dc.w 5 ; DATA XREF: ROM:0003BD8Eo
dc.b $E0, 5, 0, $12, $FF, $F8
dc.b $F0, 5, 0, $12, $FF, $F8
dc.b 0, 5, 0, $12, $FF, $F8
dc.b $10, 5, 0, $12, $FF, $F8
dc.b $20, 4, 0, $16, $FF, $F8
word_3BE26: dc.w 4 ; DATA XREF: ROM:0003BD8Eo
dc.b $F8, 9, 0, $18, $FF, $D8
dc.b $F8, 5, 0, $1A, $FF, $F0
dc.b $F8, 5, 0, $1A, 0, 0
dc.b $F8, 5, 0, $1A, 0, $10
word_3BE40: dc.w 4 ; DATA XREF: ROM:0003BD8Eo
dc.b $F8, 9, 0, $1E, $FF, $D8
dc.b $F8, 5, 0, $20, $FF, $F0
dc.b $F8, 5, 0, $20, 0, 0
dc.b $F8, 5, 0, $20, 0, $10
word_3BE5A: dc.w 4 ; DATA XREF: ROM:0003BD8Eo
dc.b $F8, 9, 0, $24, $FF, $D8
dc.b $F8, 5, 0, $26, $FF, $F0
dc.b $F8, 5, 0, $26, 0, 0
dc.b $F8, 5, 0, $26, 0, $10
word_3BE74: dc.w 4 ; DATA XREF: ROM:0003BD8Eo
dc.b $F8, 9, 0, $2A, $FF, $D8
dc.b $F8, 5, 0, $2C, $FF, $F0
dc.b $F8, 5, 0, $2C, 0, 0
dc.b $F8, 5, 0, $2C, 0, $10
word_3BE8E: dc.w 8 ; DATA XREF: ROM:0003BD8Eo
dc.b $F8, 9, 0, $18, $FF, $B8
dc.b $F8, 5, 0, $1A, $FF, $D0
dc.b $F8, 5, 0, $1A, $FF, $E0
dc.b $F8, 5, 0, $1A, $FF, $F0
dc.b $F8, 5, 0, $1A, 0, 0
dc.b $F8, 5, 0, $1A, 0, $10
dc.b $F8, 5, 0, $1A, 0, $20
dc.b $F8, 5, 0, $1A, 0, $30
word_3BEC0: dc.w 8 ; DATA XREF: ROM:0003BD8Eo
dc.b $F8, 9, 0, $1E, $FF, $B8
dc.b $F8, 5, 0, $20, $FF, $D0
dc.b $F8, 5, 0, $20, $FF, $E0
dc.b $F8, 5, 0, $20, $FF, $F0
dc.b $F8, 5, 0, $20, 0, 0
dc.b $F8, 5, 0, $20, 0, $10
dc.b $F8, 5, 0, $20, 0, $20
dc.b $F8, 5, 0, $20, 0, $30
word_3BEF2: dc.w 8 ; DATA XREF: ROM:0003BD8Eo
dc.b $F8, 9, 0, $24, $FF, $B8
dc.b $F8, 5, 0, $26, $FF, $D0
dc.b $F8, 5, 0, $26, $FF, $E0
dc.b $F8, 5, 0, $26, $FF, $F0
dc.b $F8, 5, 0, $26, 0, 0
dc.b $F8, 5, 0, $26, 0, $10
dc.b $F8, 5, 0, $26, 0, $20
dc.b $F8, 5, 0, $26, 0, $30
word_3BF24: dc.w 8 ; DATA XREF: ROM:0003BD8Eo
dc.b $F8, 9, 0, $2A, $FF, $B8
dc.b $F8, 5, 0, $2C, $FF, $D0
dc.b $F8, 5, 0, $2C, $FF, $E0
dc.b $F8, 5, 0, $2C, $FF, $F0
dc.b $F8, 5, 0, $2C, 0, 0
dc.b $F8, 5, 0, $2C, 0, $10
dc.b $F8, 5, 0, $2C, 0, $20
dc.b $F8, 5, 0, $2C, 0, $30
| 37.677419 | 48 | 0.453767 |
1b1ebaefa6aa63316d245bfd4b360b505dad46f9 | 40,610 | asm | Assembly | 45/runtime/rt/nhlhcore.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/runtime/rt/nhlhcore.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/runtime/rt/nhlhcore.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | TITLE NHLHCORE - Core Local Heap utilities
;***
;NHLHCORE - Core Local Heap utilities
;
; Copyright <C> 1987, Microsoft Corporation
;
;Purpose:
; This module contains the core local heap utilities that are required to
; support /O programs which use string space and simple OPEN statements. Field
; manipulations and additional CHAIN support is elsewhere.
;
;******************************************************************************
;
; Near Heap Support
;
; The near heap support code deals with three pieces:
;
; Local Heap - Contains FDBs & Dynamic (small) arrays & QBI tables
; String Space - Strings and FIELDed string entries
; Variable Heap - Interpeter Only, value tables
;
; In memory, the heaps, associated variables and stack are layed out as
; follows:
;
; High Memory (DGROUP)
;
; +--+--+--+--+--+--+--+--+
; b$HEAP_FIRST --> | | odd: last useable physical
; +--+--+--+--+--+--+--+--+ byte of Heap
; b$NH_last --> | | even: last useable physical
; \ \ word of Heap
; Local Heap
; \ \
; | |
; +--+--+--+--+--+--+--+--+
; b$HEAP_END --> | LH_END Constant | odd: ?
; +--+--+--+--+--+--+--+--+
; | |
; + +
; b$STRING_END --> | | even: word containing 0xFFFF
; \ \
; String Space
; b$NH_First -\ \ \
; b$STRING_FIRST --\--> | | first useable byte/word
; +--+--+--+--+--+--+--+--+ \
; b$HEAP_FIRST_SWAP --> | | \
; \ \ \
; Variable Heap Interpeter Only
; \ \ /
; b$HEAP_END_SWAP --> | | /
; +--+--+--+--+--+--+--+--+ /
; | |
; + +
; __atopsp --> | | last useable word of stack
; \ \
; Stack
; \ \
; b$pend --> | | first useable word of stack
; +--+--+--+--+--+--+--+--+
;
;==============================================================================
;
;
; Heap Entry:
;
; +--+--+--+--+--+--+--+--+ High memory
; Pointer to entry --> | Entry Type Byte |
; +--+--+--+--+--+--+--+--+
; | File #, if applicable |
; +--+--+--+--+--+--+--+--+
; | |
; + Total Entry Size +
; | |
; +--+--+--+--+--+--+--+--+
; | Back Pointer |
; + (Pointer to +
; | owner pointer) |
; +--+--+--+--+--+--+--+--+
; | (offset part of sd |
; + for fielded string +
; | if applicable) |
; +--+--+--+--+--+--+--+--+
; | (length part of sd |
; + for fielded string +
; | if applicable) |
; +--+--+--+--+--+--+--+--+
; | |
; \ \
; Data
; \ \
; Start of Data --> | |
; +--+--+--+--+--+--+--+--+
; | |
; + Total Entry Size +
; | (Same as in header) |
; +--+--+--+--+--+--+--+--+ Low memory
;
; The pointer to an entry normally points to the type byte in the header; since
; length of the entry (hdr + data + trailer length word) is kept at the start
; and the end of the block, it is easy to access; subtract that length from the
; current entry pointer, and it will be pointing to the same place in the next
; hdr - - - yes, since the heap grows down, subtracting from the pointer moves
; you "forward" in the heap. Heap entries can be of any even-byte size; headers
; are 6 bytes in length, except for fdb's, which have 10-byte headers.
;
;==============================================================================
;
; Internal structure of (simple) fielded strings.
;
; FDB:
;
; /--+-----------------------+--/ /--+---------------+--/ /--+-------+
; | Field Buffer | | String Desc | |LH_FILE|
; /--+-----------------------+--/ /--+------------+--+--/ /--+-------+
; ^ ^ ^ ^ |
; | | | | |
; Individual | | +-----------+ | |
; Static | | | | |
; String | +-------+ | | |
; Descriptors: | | | | |
; | | | | |
; +-------+ +-------+ +-------+ | |
; | SD | | SD | | SD | | |
; +-------+ +-------+ +-------+ | |
; ^ ^ ^ | |
; Fielded | | | | |
; String +----+ ++ +--+ | |
; BackPointer | | | | |
; String: | | | | |
; | | | | |
; +---------------------------------+ |
; | | | | |
; | +----------------------------------+
; | \/ | | |
; +---+---+----+--+----+--+----+--+--/
; | BkPtr | SD Ptr| SD Ptr| SD Ptr|
; +-------+-------+-------+-------+--/
;
; In summary, the FDB contains a string descriptor which references a string
; (the fielded string backpointer string) containing pointers to several string
; descriptors. These string descriptors (static, in this example) reference
; locations in the FIELD buffer in the FDB, and define the position and length
; of the individual FIELDs.
;
; The backpointer string can grow as additional FIELD statements are executed,
; and can shrink at CHAIN time. Since it is a string, it is also subject to
; movement as string-space compaction occurs. The compaction code must be
; sensitive to the pointers involved in such movement.
;
; When the fielded strings are defined in a static string array, operation is
; essentially the same as individual static strings. The static SD's do not
; move, and dereferencing performed by any calling code looks exactly like
; static individual SD's.
;
;
; Internal structure of fielded strings in dynamic arrays.
;
; FDB:
;
; /--+-----------------------+--/ /--+---------------+--/ /--+-------+
; | Field Buffer | | String Desc | |LH_FILE|
; /--+-----------------------+--/ /--+------------+--+--/ /--+-------+
; ^ ^ ^ ^ |
; | | | | +------------------+
; Array of | | +---+ | |
; String | | | +---------------------+ |
; Descriptors: | +---+ | | |
; | | | | |
; +------++------++------++--/ /--+-------+--/ /--+-------+ | |
; | SD | SD | SD | | BkPtr | |LH_ARRA| | |
; +-------+-------+-------+--/ /--+-----+-+--/ /--+-------+ | |
; ^ ^ ^ | | |
; Fielded | | | | | |
; String +-----+ +-----+ +-----+ +----+ | |
; BackPointer ^ | | | | | |
; String: +-----|-------|-------|----------+ | | |
; | | | | | | |
; +-------------------------------------------------------+ |
; | | | | | | |
; | +-----------------------------------------------------+
; | \/ | | | | |
; +---+---+----+--+----+--+----+--+--/ | |
; | BkPtr | SD Ptr| SD Ptr| SD Ptr| | |
; +-------+-------+-------+-------+--/ | |
; | |
; String +------------------------------+ |
; Array | |
; Descriptor: | +---------------------------+
; | \/
; ++------+--/
; |DatPtr |
; +-------+--/
;
;
; The added complication of dynamic fielded string arrays is that the string
; descriptors live in the local heap, and hence can move, in addition to the
; backpoint string, which lives in string space and can also move. Both LH and
; SS code must update pointers appropriately.
;
;==============================================================================
INCLUDE switch.inc
INCLUDE baslibma.inc
INCLUDE files.inc
INCLUDE rmacros.inc
USESEG _DATA
USESEG _BSS
USESEG NH_TEXT
INCLUDE seg.inc
INCLUDE nhutil.inc ;for heap definitions
INCLUDE idmac.inc
INCLUDE array.inc ;for array definitions
sBegin _BSS
externW b$STRING_END ;defined in NHSTUTIL.ASM
externW b$STRING_FREE ; defined in NHSTUTIL.ASM
externW b$NH_first ;defined in NHINIT.ASM
externW b$PTRFIL ;defined in GLOBAL.INC
;NOTE: Variable Heap support code requires next 4 data items be contiguous [23]
globalW b$HEAP_FIRST,,1 ;heap start pointer
globalW b$HEAP_FREE,,1
globalW b$HEAP_END,,1
globalW b$P_HEAP_GROW,,1
;NOTE: Variable Heap support code requires next 4 data items be contiguous [23]
globalW b$HEAP_FIRST_SWAP,,1
globalW b$HEAP_FREE_SWAP,,1
globalW b$HEAP_END_SWAP,,1
staticW P_HEAP_GROW_SWAP,,1
globalW b$fVarHeapActive,,1 ; non-0 when variable heap
; is active
sEnd _BSS
sBegin _DATA
globalW b$pFHRaiseBottom,Near_Ret,1 ;vector for B$FHRaiseBottom
globalB b$Clearing,0,1 ; CLEAR statement in process flag
sEnd _DATA
externFP B$ULDataRelease ;releases ul Data images
externFP CompressHelp
sBegin NH_TEXT
ASSUMES CS,NH_TEXT
PUBLIC B$LHNXTFIL ; find next file entry in heap
PUBLIC B$LHADJ ;adjust heap entry
PUBLIC B$LHDALC ;deallocate heap entry
PUBLIC B$LHFLDDESCADJ ; delete/adjust descriptor in backpointer string
PUBLIC B$LHDALCALLFLD ; deallocate all fielded strings from heap entry
PUBLIC B$LHSetFree ;set free heap entry pointer
PUBLIC B$LH_ALC_FREE ;[ln]
PUBLIC B$LH_PTR_FROM_DATA
PUBLIC B$LH_CPCT
PUBLIC B$LH_FROM_SS ;[ln]
PUBLIC B$LH_PTR_CHECK ;[ln] check entry at [SI] for consistency
PUBLIC B$LH_SCAN ;[ln]
PUBLIC B$NHINIT ;initialize dynamic space
externNP B$LH_I_ADJ ;[ln] adjust backptrs to any owners in this entry
externNP B$VAR_ALC_GROW ;[ln]
externNP B$ERR_SSC
externNP B$STCPCT
externNP B$STADJ
externNP B$STINIT
externNP B$STSetFree
externNP B$SSClean ; clean string space
ASSERT_NOT_VARHEAP MACRO SEG ;
ENDM ;
PAGE
;***
; LH_ALC_GROW - Grow local heap to support allocation of a block of given size
; Purpose:
; Added with revision [23].
;
; Inputs:
; ES = DS
; BX = total size of local heap space to be allocated
; DL = type of heap entry to allocate.
; CL = if DL=LH_FILE, file number
; CX = if DL anything else, ptr to owner (where backptr should point to)
; Outputs:
; Carry Clear if allocation accomplished successfully
; Modifies:
; SI
; Exceptions:
;
;****
DbPub LH_ALC_GROW
LH_ALC_GROW:
; Step 3 - Get free string entry to heap space, test free entry.
CALL B$LH_FROM_SS ;[ln] get free string from string space
CALL B$LH_ALC_FREE ;test free entry for room
JNC LH_ALC_GROW_DONE; allocated - jump to return to string
; Step 4 - Perform string compaction, get free string, test free entry.
CALL B$STCPCT ;perform the string compaction
CALL B$LH_FROM_SS ;[ln] get free string from string space
CALL B$LH_ALC_FREE ;test free entry for room
JNC LH_ALC_GROW_DONE; allocated - jump to return to string
;
; Step 5 - Kick FH out of DS if possible
;
CALL [b$pFHRaiseBottom] ;[46]
CALL B$LH_FROM_SS ;[ln] get free string from string space
CALL B$LH_ALC_FREE ; test free entry for room
JNC LH_ALC_GROW_DONE;allocated jump to return string
;
; Step 6 - Kick UL data images out of FH and raise the bottom
PUSH AX ;preserve AX-DX across call to
PUSH BX ;B$ULDataRelease, as the far
PUSH CX ;call dispatcher to the quicklibrary
PUSH DX ;can honk on these registers.
CALL B$ULDataRelease ;free UL data images if allocated
POP DX
POP CX
POP BX
POP AX ;recover regs
CALL [b$pFHRaiseBottom] ;give FH's free space to NH
CALL B$LH_FROM_SS ;[ln]get free string from string space
CALL B$LH_ALC_FREE ;test free entry for room
JNC LH_ALC_GROW_DONE;allocated jump to return string
;
; Step 7 - Kick Help out of FH and raise the bottom
PUSH AX ;preserve AX-DX across call to
PUSH BX ;CompressHelp
PUSH CX
PUSH DX
CALL CompressHelp ;Free the help system
POP DX
POP CX
POP BX
POP AX ;recover regs
CALL [b$pFHRaiseBottom] ;give FH's free space to NH
CALL B$LH_FROM_SS ;get free string from string space
CALL B$LH_ALC_FREE ;test free entry for room
Near_Ret: ;Near Return for vector
LH_ALC_GROW_DONE:
RET
;***
; B$LH_FROM_SS - get local heap space from string space
; Purpose:
; Determine if a free entry exists at the end of
; string space. If so, change the string and heap
; space pointers so that it is now part of the local
; heap space.
;
; Mostly rewritten with revision [53].
;
; Strategy (order of attempts swapped with revision [64]):
; (1) If the last entry in the LH is a free entry, tack the free
; string bytes onto that entry and move b$HEAP_END past it.
;
; (2) If the last entry in the LH is NOT a free entry and the free
; string is large enough to create a heap entry (LH_STD_HDR_LEN
; bytes + 2 bytes for back length), then create a new LH entry
; with the free space.
;
; If neither (1) or (2) is possible, then we can't give any of
; the free string to the LH, just exit.
;
; Inputs:
; None.
; Outputs:
; [b$HEAP_FREE] = pointer to new (or enlarged) free heap entry.
; Modifies:
; None.
; Exceptions:
; None.
;****
B$LH_FROM_SS:
ASSERT_NOT_VARHEAP NH_TEXT
PUSH AX ;save registers...
PUSH SI
PUSH DI
CALL B$STSetFree ;SI points to trailing free string
MOV AX,[b$STRING_END] ;get end pointer in AX
SUB AX,SI ;compute size of free string
JZ LH_SS_RETURN ;if no free bytes, exit quickly
; Size of free string (including header) is in AX.
; Pointer to free string header is in SI.
DbAssertTst AX,Z,1,NH_TEXT,<Free string size odd in B$LH_FROM_SS>
; (1) If the last entry in the LH is free, tack the new empty space
; on to it.
MOV DI,[b$HEAP_END] ;[DI] = heap END entry
CMP DI,[B$HEAP_FIRST] ; is END the only entry?
JE LH_SS_TRY_2 ; yes, go create a free entry
ADD DI,[DI+1] ;[DI] = last entry before END
CMP [DI].LHTYPE,LOW LH_FREE ;is entry unallocated?
JNE LH_SS_TRY_2 ;no, go try next option
ADD AX,[DI].LHLEN ;compute new length
JMP SHORT LH_SS_FINISH_UP ; finish updating pointers and exit
; (2) If there are enough free bytes to create a new free entry at the
; end of the LH, do that.
LH_SS_TRY_2:
CMP AX,LH_STD_HDR_LEN+2 ;enough free space?
JB LH_SS_RETURN ;if not, we can't do anything
; Create the new heap entry from the empty space.
MOV DI,SI ;[DI] = what will be string END entry
ADD DI,LH_STD_HDR_LEN+1 ;[DI] = what will be heap END entry
ADD DI,AX ;[DI] = new entry being created
LH_SS_FINISH_UP:
; When we get here:
; SI points to new string space end location
; DI points to new (or enlarged) free heap entry
; AX = size of new (or enlarged) free heap entry
; Define the new string space end entry and its pointer.
MOV [SI],0FFFFH ;set string end entry
MOV [b$STRING_END],SI ;set string end pointer
MOV [b$STRING_FREE],SI ;set free string pointer
; Define the new heap END entry and its pointer.
ADD SI,LH_STD_HDR_LEN+1 ;point to new END entry
MOV [SI].LHTYPE,LOW LH_END ;define the entry type
MOV [b$HEAP_END],SI ;define the heap end pointer
; Update header for new or enlarged free heap entry and set
; b$HEAP_FREE to point to it.
MOV [DI].LHTYPE,LOW LH_FREE ;set heap entry type
MOV [DI].LHLEN,AX ;set free heap entry length
MOV [SI+1],AX ;set free heap entry backlength
MOV [b$HEAP_FREE],DI ;set heap free entry pointer
LH_SS_RETURN:
POP DI ;restore registers...
POP SI
POP AX
RET ;return with new heap free entry
;***
; B$LH_SCAN -Scan the entire local heap area for an entry of the
; requested amount of storage. Adjacent unallocated
; entries are combined before tested for allocation.
;
; Inputs: BX - amount of heap storage to allocate.
; DL - type of heap entry to allocate.
; CL - if DL=LH_FILE, file number
; CX - if DL=LH_ARRAY, array descriptor offset
; [b$HEAP_FIRST] - pointer to first entry to test
;
; Outputs: CF=0 - allocation was successful.
; SI - pointer to data in allocated entry.
; CF=1 - allocation failed.
;
; Start the scan with the entry pointed by [b$HEAP_FIRST].
;****
B$LH_SCAN:
MOV SI,[b$HEAP_FIRST] ;starting point of scan
; No pending unallocated entries. If END entry, then failed.
; If FREE entry, then jump to try to combine subsequent ones.
LH_SCAN_NEXT:
CMP [SI].LHTYPE,LOW LH_END ;test if last local heap entry
JE LH_SCAN_FAIL ;if so, then allocation failed
CMP [SI].LHTYPE,LOW LH_FREE ;test if entry is unallocated
JE LH_SCAN_FREE ;if so, jump to scan for next free entries
SUB SI,[SI].LHLEN ;move pointer to the next entry
JMP SHORT LH_SCAN_NEXT ;and try again
; Pending unallocated entry. Test the next entry. If END, try
; a final allocation attempt. If allocated, attempt allocation
; and continue scan if it fails. If FREE, combine the two entries
; and loop back. Keep size of free entry in AX until allocation.
LH_SCAN_FREE:
MOV AX,[SI].LHLEN ;get size of first free block
LH_SCAN_NEXT_FREE:
MOV DI,SI ;get copy of present scan pointer
SUB DI,AX ;now points to following entry
CMP [DI].LHTYPE,LOW LH_END ;test if next entry is END
JE LH_SCAN_TRY ;if so, try a final allocation
CMP [DI].LHTYPE,LOW LH_FREE ;test if next entry is FREE
JNE LH_SCAN_TRY ;if not, try allocation, but continue
ADD AX,[DI].LHLEN ;add for length of both FREE entries
JMP SHORT LH_SCAN_NEXT_FREE ;and loop to try again
; Try to allocate from the entry at [SI]. If failure, point
; past the allocated entry at [DI] and continue scan if not at
; heap end. If at heap end, return with failure.
LH_SCAN_TRY:
MOV [SI].LHLEN,AX ;set the new length of the combined block
SUB SI,AX ;point to next block (one after backlength)
MOV [SI+1],AX ;set the backlength
ADD SI,AX ;return pointer to start of combined block
CMP AX,BX ;test entry against allocation needed
JAE LH_ALC ;if enough room, finish allocation
CMP [DI].LHTYPE,LOW LH_END ;test if at end of heap
JE LH_SCAN_FAIL ;if so, then just fail
SUB DI,[DI].LHLEN ;point to entry after allocated one
MOV SI,DI ;move pointer to continue scan
JMP SHORT LH_SCAN_NEXT ;and jump to continue it
; Allocate not possible, return with carry set for failure.
LH_SCAN_FAIL:
MOV [b$HEAP_FREE],SI ;set free entry to last unallocated one
STC ;carry set for failure
RET ;and return to caller
; B$LH_ALC_FREE - test if free heap entry can allocate the
; requested amount of storage
; Inputs: BX - amount of heap storage to allocate.
; DL - type of heap entry to allocate.
; CL - if DL=LH_FILE, file number
; CX - if DL=LH_ARRAY, array descriptor offset
; [b$HEAP_FREE] - pointer to entry to test
; Outputs: CF=0 - allocation was successful.
; SI - pointer to data in allocated entry.
; CF=1 - allocation failed.
; Test if free local heap entry is unallocated and large enough.
; If so, then allocate it, otherwise fail.
B$LH_ALC_FREE:
MOV SI,[b$HEAP_FREE] ;point to free local heap entry
CMP [SI].LHTYPE,LOW LH_FREE ;test if free entry is unallocated
JNE LH_ALC_FAIL ;if not free, then jump to fail
MOV AX,[SI].LHLEN ;get length of the entry
CMP AX,BX ;test if entry is large enough
JAE LH_ALC ;if so, then jump to allocate
LH_ALC_FAIL:
STC ;set carry to note failure
RET ;return to caller
; There wasn't enough room to split entry and allocate a new FREE
; entry. Allocate the whole entry instead of splitting it.
LH_ALC_ALL:
ADD BX,AX ;change requested block size to whole entry
JMP SHORT LH_ALC_EXACT ;allocate whole block
; The entry at [SI] can be allocated. If the entry is larger than
; the size needed, split it into two entries with the higher one
; used in the allocation.
LH_ALC:
JE LH_ALC_EXACT ;if exact allocation, then no split needed
SUB AX,BX ;size of remainder block
CMP AX,LH_STD_HDR_LEN ;is there enough room for new header?
JB LH_ALC_ALL ;allocate whole entry if not enough room
SUB SI,BX ;point to header of new remainder entry
MOV [SI].LHTYPE,LOW LH_FREE ;set type for FREE entry
MOV [SI].LHLEN,AX ;put size into new entry header
SUB SI,AX ;point to next entry (byte before backlength)
MOV [SI+1],AX ;put in backlength for the present entry
ADD SI,AX ;point back to remainder block
ADD SI,BX ;point back to newly allocated block
LH_ALC_EXACT:
; Clear the new heap entry to zeroes.
PUSH CX ;save registers for clear...
PUSH DI
PUSH ES
PUSH DS
POP ES ;set ES = DS
MOV DI,SI ;copy pointer to header of allocated block
SUB DI,BX ;point to header of previous block
MOV [b$HEAP_FREE],DI ;free entry is now previous block
INC DI ;now point to data of block to be allocated
XOR AX,AX ;value to set entry locations
MOV CX,BX ;get size of entry in bytes
SHR CX,1 ;convert size to words
REP STOSW ;clear the entry
POP ES
POP DI ;restore registers...
POP CX
; Finish by setting the header values
MOV [SI].LHTYPE,DL ;set the heap entry type
MOV [SI].LHLEN,BX ;set the heap entry length
SUB SI,BX ;point to next entry (byte before backlength)
MOV [SI+1],BX ;set the backlength
ADD SI,BX ;set point back to entry header
CMP [SI].LHTYPE,LOW LH_FILE ;test if FILE entry
JNE LH_ALC_NOT_FILE ;if not, then branch
MOV [SI].LHFNUM,CL ;set file number
JMP SHORT LH_ALC_EXIT
LH_ALC_NOT_FILE:
MOV [SI].LHBAKP,CX ;all entries have backpointers except fdb's
LH_ALC_EXIT:
SUB SI,BX ;point to previous entry
ADD SI,3 ;set to start of entry data (past backlength)
RET ;return with carry clear
page
;***
; B$LHDALC_CPCT -- deallocate heap entry and compact heap. Added with [44].
;
;Purpose:
; Deallocates heap entry, and then compacts local heap, so that no
; no "holes" develop in the heap.
;
;Entry/Exit/Uses/Exceptions:
; Same as B$LHDALC/B$LH_CPCT.
;
;******************************************************************************
cProc B$LHDALC_CPCT,<PUBLIC,NEAR>
cBegin
CALL B$LHDALC ; deallocate heap entry
cEnd <nogen> ; fall into B$LH_CPCT
;***
; B$LH_CPCT - compact local heap space
; Purpose:
; Compacts all allocated local heap entries to the top of
; the local heap space. The backpointers in the ARRAY and FILE
; entries are adjusted appropriately to reflect their movement.
; The remaining unallocated space is made into the free entry.
; NOTE: The scan (and compaction) moves from high memory to low.
;
; Inputs:
; None
; Outputs:
; [b$HEAP_FREE] points to the new free heap entry.
; Exceptions:
; B$ERR_SSC - nontrappable error if compaction finds corruption
; in the local heap space structure.
;****
B$LH_CPCT PROC NEAR
PUSH ES
PUSH DS
POP ES ;Set ES = DS
PUSH AX ;save registers used...
PUSH BX
PUSH CX
PUSH SI
PUSH DI
MOV SI,[b$HEAP_FIRST] ;pointer to heap scan
; Skip over leading allocated entries which can be ignored since
; they will not be moved. While skipping, an END entry implies
; no compaction need to be done. Check all allocated entries.
B$LH_CPCT_SKIP:
CMP [SI].LHTYPE,LOW LH_END ;test for end of local heap
JE B$LH_CPCT_DONE ;if so, no compact, just return
CALL B$LH_PTR_CHECK ;check entry at [SI] for consistency
CMP [SI].LHTYPE,LOW LH_FREE ;test if leading allocated entry
JE B$LH_CPCT_FIRST_FREE ;if not, then skipping is over
SUB SI,[SI].LHLEN ;point to next entry
JMP SHORT B$LH_CPCT_SKIP ;and try again
; First unallocated heap entry found. Initialize compacted pointer DI.
B$LH_CPCT_FIRST_FREE:
MOV DI,SI ;SI=scan pointer - DI=compacted pointer
; Unallocated heap entry just advances the scan pointer SI.
B$LH_CPCT_NEXT_FREE:
SUB SI,[SI].LHLEN ;point to entry after unallocated one
; Process the entry at [SI]. First check consistency of entry.
B$LH_CPCT_NEXT:
; If END entry, compaction is done - jump to finish up.
CMP [SI].LHTYPE,LOW LH_END ;test for END entry
JE B$LH_CPCT_SETUP_FREE ;jump to set up free entry
; If FREE entry, jump to advance scan pointer SI.
CALL B$LH_PTR_CHECK ;check entry at [SI]
CMP [SI].LHTYPE,LOW LH_FREE ;test for FREE entry
JE B$LH_CPCT_NEXT_FREE ;jump to advance scan pointer
; Allocated entry - adjust the entry backpointers to reflect
; its new location at [DI].
MOV AX,DI ;set to new entry location
SUB AX,SI ;subtract to get adjustment factor
CALL B$LHADJ ;adjust the entry using the factor in AX
; Move the entry from [SI] to [DI] with direction flag SET.
MOV CX,[SI].LHLEN ;get length of entry in bytes
SHR CX,1 ;make the length in words
DEC SI ;point to word address in source
DEC DI ;point to word address in destination
STD ;all strings move down in memory
REP MOVSW ;move the entry to its new location
CLD ;restore direction flag
INC SI ;point back to byte in source
INC DI ;also in destination
; Now make the space between the moved entry and the next entry
; a free heap entry. This will ensure heap consistency and
; allow routines called during the middle of compaction to
; walk the heap.
MOV [DI].LHTYPE,LOW LH_FREE ;set type of FREE entry
MOV [DI].LHLEN,AX ;set size of new entry
MOV [SI+1],AX ;also set backlength of new entry
JMP SHORT B$LH_CPCT_NEXT ;try again (SI and DI are already adjusted)
; Compaction is done - set up the unused space as a FREE entry and
; point to it for the next allocation.
B$LH_CPCT_SETUP_FREE:
MOV AX,DI ;get length of remaining entry...
SUB AX,SI ;by the difference of the pointers
JZ B$LH_CPCT_NO_FREE ;if no entry left, then jump
MOV [DI].LHTYPE,LOW LH_FREE ;set type of FREE entry
MOV [DI].LHLEN,AX ;set size of new entry
MOV [SI+1],AX ;also set backlength of new entry
B$LH_CPCT_NO_FREE:
MOV [b$HEAP_FREE],DI ;new entry for next allocation
; Restore registers and return.
B$LH_CPCT_DONE:
POP DI ;restore registers...
POP SI
POP CX
POP BX
POP AX
B$LH_CPCT_EXIT:
POP ES
RET ;return to caller
B$LH_CPCT ENDP
;***
; B$LHDALC - deallocate heap entry
; Purpose:
; To deallocate the heap entry whose data area is pointed by SI.
;
; Inputs:
; SI = pointer to heap entry data area
; Outputs:
; None.
; Modifies:
; ES, if interpreter version
; Exceptions:
; None.
;****
B$LHDALC PROC NEAR
PUSH ES
PUSH DS
POP ES ;Set ES = DS
PUSH AX ;save registers...
PUSH SI
CALL B$LH_PTR_FROM_DATA ;get entry pointer from SI data pointer
XOR AX,AX ;set flag for entry deallocation
CALL B$LHADJ ;call to deallocate all string data in entry
MOV [SI].LHTYPE,LOW LH_FREE ;set array type to FREE
POP SI ;restore registers...
POP AX
POP ES
RET ;return to caller
B$LHDALC ENDP
;***
; B$LHADJ - delete/adjust a heap entry
; Function:
; Deallocates or adjusts the heap entry pointed by SI.
; If AX=0, all string data referenced by descriptors within
; the entry is deallocated.
; If AX<>0, all backpointers referenced within the entry are
; adjusted by the value of AX.
;
; NOTE: In QB versions, B$LHDALC can call this routine to deallocate [23]
; NOTE: an entry in the variable heap while the local heap is active. [23]
; NOTE: This causes no problems in this routine as it is now, because [23]
; NOTE: we'll never have an LH_FILE or LH_ARRAY entry in the variable [23]
; NOTE: heap. [23]
;
; Inputs:
; AX = adjustment value
; AX=0 - deallocate all entry string data.
; AX<>0 - adjust all entry backpointers.
; SI = address of heap entry.
; DS = segment that heap is in
; ES = segment that state vars are in
; Outputs:
; None.
; Modifies:
; None.
; Exceptions:
; None.
;****
assumes ES,DGROUP
assumes DS,NOTHING
B$LHADJ PROC NEAR
PUSH BX ;save registers...
PUSH CX
CMP [SI].LHTYPE,LOW LH_FILE ;test if entry is FILE
JNE ADJLHP_NOT_FILE ;if not, then jump [23]
ASSERT_NOT_VARHEAP NH_TEXT
LEA BX,[SI+3] ;point to 1 word past heap header
SUB BX,[SI].LHLEN ;point at heap entry data
CMP BX,ES:[b$PTRFIL] ;are we moving PTRFIL?
JNZ NotPtrFil ;brif not
ADD ES:[b$PTRFIL],AX ;adjust if moving ptrfil
NotPtrFil:
; Entry is FILE - deallocate/adjust the fielded string backpointer
; if it exists.
CMP WORD PTR [SI].LHPLEN,0 ;test if fielded string is null
JZ ADJLHP_EXIT ;if so, then just return
MOV BX,[SI].LHPOFF ;get offset of fielded string data
ADD [BX-2],AX ;add adjustment to the string backpointer
OR AX,AX ;test if deallocation was requested
; JNZ ADJLHP_QUIT ;if just adjustment, then jump
JNZ ADJLHP_ALL_FLDS ;if adjustment, then adust fielded strings
MOV [SI].LHTYPE,LOW LH_FREE ;mark the deallocated block free
CALL B$LHDALCALLFLD ; otherwise deallocate all fielded strings
JMP SHORT ADJLHP_QUIT ;jump to return to caller
; Entry contains fielded strings - adjust pointers into field buffer
ADJLHP_ALL_FLDS:
MOV CX,[SI].LHPLEN ;get size of string entry for fielded strs
SHR CX,1 ;compute number of fielded strings
PUSH SI ;preserve heap pointer
ADJ_FLD_LOOP:
MOV SI,[BX] ;get pointer to field variable
ADD [SI+2],AX ;adjust pointer into field buffer
INC BX ;move to next field variable
INC BX
LOOP ADJ_FLD_LOOP ;loop until all ptrs to field buffer have
;been adjusted
POP SI ;recover heap pointer
ADJLHP_EXIT:
JMP SHORT ADJLHP_QUIT ;jump to return to caller
; If entry is not ARRAY, then return.
ADJLHP_NOT_FILE:
CMP [SI].LHTYPE,LOW LH_ARRAY ;test if entry is ARRAY
JNE ADJLHP_INTERP ;if not, consider interp. entries (if any)
; Entry is ARRAY, first clear/adjust the array descriptor pointer.
MOV BX,[SI].LHBAKP ;get offset of array descriptor
OR AX,AX ;test if array is being deallocated
JNZ ADJLHP_ADJUST ;if just being adjusted, then jump
MOV [BX].AD_fhd.FHD_hData,AX ;deallocated - clear the descriptor
MOV [SI].LHBAKP,AX ;also clear the heap backpointer
MOV [SI].LHTYPE,LOW LH_FREE ;mark the deallocated block free
ADJLHP_ADJUST:
; Next, get pointer to start of array data and deallocate/adjust
; the backpointers of all nonnull strings in the array.
MOV CX,[SI].LHLEN ;get length of heap entry (hdr+data+backlen)
MOV BX,SI ;get copy of heap entry pointer
SUB BX,CX ;point to next heap entry
ADD BX,3 ;move past backlength to array start
SUB CX,LH_STD_HDR_LEN+2 ;data length less header and backlength
SHR CX,1 ;data length in words...
SHR CX,1 ;length in doublewords (number of descs)
; For each nonnull descriptor, deallocate/adjust the string data.
; Process null strings through B$STADJ, fielded ones must be adjusted.
ADJLHP_LOOP:
; CMP WORD PTR [BX],0 ;test if string is nonnull
; JZ ADJLHP_NEXT ;if so, then skip this entry
CALL B$STADJ ;deallocate/adjust the string at desc [BX]
ADJLHP_NEXT:
ADD BX,4 ;point to next descriptor
LOOP ADJLHP_LOOP ;loop to process the next one
ADJLHP_INTERP:
OR AX,AX
JZ ADJLHP_QUIT ;brif deallocation - the below is for adjustment
CALL B$LH_I_ADJ ;[ln] adjust backptrs to any owners in this entry
ADJLHP_DONE:
;NOTE: important to update the owner LAST, after interpreter call
; back work is done.
MOV BX,[SI].LHBAKP ;get pointer to owner
ADD [BX],AX ;add adjustment to owner pointer
CMP [SI].LHTYPE,LOW LH_ARRAY; test if entry is ARRAY
JNE ADJLHP_QUIT ; jump if not
ADD [BX].AD_oAdjusted,AX ; else update adjusted pointer
ADJLHP_QUIT:
POP CX ;restore registers...
POP BX
RET ;return to caller
B$LHADJ ENDP
assumes DS,DGROUP
assumes ES,NOTHING
;***
; B$LHDALCALLFLD - deallocate all fielded strings for heap entry
; Purpose:
; To deallocate all fielded strings associated with the heap
; entry pointed by SI. The heap backpointer string is also
; deallocated.
;
; Inputs:
; SI = pointer to heap entry
; Outputs:
; None.
; Modifies:
; None.
; Exceptions:
; None.
;****
B$LHDALCALLFLD:
ASSERT_NOT_VARHEAP NH_TEXT
PUSH AX ;save registers...
PUSH BX
PUSH CX
PUSH DI
XOR AX,AX ;clear AX to zero
MOV BX,AX ;same for BX...
MOV CX,AX ;and CX
XCHG CX,[SI].LHPLEN ;swap bkptr str len and 0
XCHG BX,[SI].LHPOFF ;swap bkptr str off and 0
INC CX ;add one for backpointer value
MOV [BX-2],CX ;free string by setting backpointer value
SHR CX,1 ;number of words to process
DALCALLFLD_LOOP:
MOV DI,[BX] ;get next word from string
MOV [DI],AX ;clear descr length
MOV [DI+2],AX ;clear descr offset
ADD BX,2 ;point to next descriptor in string
LOOP DALCALLFLD_LOOP ;if not done, then loop
POP DI ;restore registers...
POP CX
POP BX
POP AX
RET ;return to caller
;***
; B$LHFLDDESCADJ - delete/adjust descriptor in field backpointer string.
; Purpose:
; Search through the local heap FILE entries for the descriptor
; address specified in BX. If AX=0, then remove it from the
; field backpointer string. If AX<>0, then just adjust the
; backpointer string element by adding AX to it.
;
; Inputs:
; AX = adjustment factor
; AX=0 - delete descriptor BX from backpointer string.
; AX<>0 - adjust descriptor BX in backpointer string by AX.
; BX = address of descriptor to be deleted/adjusted.
; DS = segment that heap is in
; ES = segment that state vars are in
; Outputs:
; None.
; Modifies:
; SI.
; Exceptions:
; B$ERR_SSC if descriptor offset not found.
;****
B$LHFLDDESCADJ:
assumes ES,DGROUP
assumes DS,NOTHING
ASSERT_NOT_VARHEAP NH_TEXT
PUSH AX ;save registers...
PUSH BX
PUSH CX
PUSH DX
PUSH DI
XCHG DX,AX ; [DX] = adjustment factor
XCHG AX,BX ; [AX] = object of searches
XOR BX,BX ;start at beginning of heap
FLDDESCADJ_NEXT:
MOV SI,BX ;put current FDB point in for test
CALL NXTFIL_ES ;get next FILE data pointer in SI
JZ FLDDESCADJ_ERROR ;if no more entries, then done
MOV BX,SI ;save current FDB point for next time
CALL B$LH_PTR_FROM_DATA ;get heap entry pointer in SI
; Heap entry is for a file. Determine if a backpointer string
; is defined. If so, then scan string for descriptor value in AX.
MOV CX,[SI].LHPLEN ;get length of string
JCXZ FLDDESCADJ_NEXT ;if null string, then try next entry
SHR CX,1 ;make it in words
MOV DI,[SI].LHPOFF ;get offset of the string
PUSH ES ;make sure that we use the proper
PUSH DS ;segment in case that
POP ES ;we are in the middle of unwinding a CHAIN
REPNE SCASW ;scan for word in AX
POP ES ;recover correct ES = BASIC DS
JNZ FLDDESCADJ_NEXT ;if not there, try next
; Word found in string. DI is pointing just after the word
; while CX contains the number of words in the string AFTER
; the one searched. If modifying (DX<>0), just add the adjustment
; factor to the word.
ADD [DI-2],DX ;assume adjustment is made (deleted otherwise)
OR DX,DX ;test if adjustment really wanted
JNZ FLDDESCADJ_DONE ;if so, then jump to return now
; If deleting (DX=0), start at DI and move CX words left by two
; and put a null free string header where the last word of the
; string was.
SUB WORD PTR [SI].LHPLEN,2 ;string size is less by 2
JZ FLDDESCADJ_CLR ;jump if string is now empty
MOV SI,DI ;SI points to byte after
DEC DI ;point DI to...
DEC DI ;the word before (AX value)
PUSH ES ;make sure that we use the proper
PUSH DS ;segment in case that
POP ES ;we are in the middle of unwinding a CHAIN
REP MOVSW ;move the string left 2
POP ES ;recover correct ES = BASIC DS
MOV WORD PTR [DI],1 ;null string free header
JMP SHORT FLDDESCADJ_DONE ;done, jump to finish
FLDDESCADJ_CLR:
XOR DI,DI ;clear register
XCHG DI,[SI].LHPOFF ;clear descr offset, get it
MOV WORD PTR [DI-2],3 ;set ptr to empty string
FLDDESCADJ_DONE:
POP DI ;restore registers...
POP DX
POP CX
POP BX
POP AX
RET ;return to caller
FLDDESCADJ_ERROR:
JMP B$ERR_SSC ; report string space corruption
assumes DS,DGROUP
assumes ES,NOTHING
;***
; B$LHNXTFIL, NXTFIL_ES - return FDB pointer of next file in heap after [SI]
; Purpose:
; To return a pointer to the next FDB in the heap. The
; local heap is searched from the last FDB specified in SI
; (or the first if SI=0).
;
; Inputs:
; SI = pointer to FDB to start search from (0 if first FDB
; pointer is to be returned).
; Outputs:
; SI = pointer to next FDB after the one specified on routine
; entry (0 if no more FDB's in the heap).
; ZF = clear if FDB returned
; set if none returned
; Modifies:
; None.
; Exceptions:
; None.
;****
NXTFIL_ES: ;Assumes ES already set up
PUSH ES
JMP SHORT NXTFIL_COMMON
B$LHNXTFIL:
PUSH ES
PUSH DS
POP ES ;set ES = DS
NXTFIL_COMMON: ;common entry
ASSERT_NOT_VARHEAP NH_TEXT
assumes ES,DGROUP
assumes DS,NOTHING
OR SI,SI ;test if first file is to be searched
JNZ NXTFIL_NEXT ;if so, then branch
MOV SI,ES:[b$HEAP_FIRST] ;initialize to start of local heap
ADD SI,3 ;adjust to avoid extra jump
NXTFIL_NEXT:
SUB SI,3 ;move from FDB over backlength to next entry
NXTFIL_LOOP:
CMP [SI].LHTYPE,LOW LH_END ;test if last entry in heap
JE NXTFIL_END ;if so, then jump
CMP [SI].LHTYPE,LOW LH_FILE ;test if entry is file
JE NXTFIL_FILE ;if so, then jump
SUB SI,[SI].LHLEN ;point to next heap entry
JMP SHORT NXTFIL_LOOP ;and continue the search
NXTFIL_FILE:
SUB SI,[SI].LHLEN ;point to previous entry
ADD SI,3 ;move over backlength to entry FDB
assumes ES,NOTHING
POP ES
RET ;return to caller (ZF clear)
NXTFIL_END:
XOR SI,SI ;clear to show no more files
POP ES
RET ;return to caller (ZF set)
;***
;B$LH_PTR_FROM_DATA - get heap entry pointer from data pointer
;LH_PTR_FROM_BLEN - get heap entry pointer from backlength pointer
;B$LH_PTR_CHECK - check heap entry referenced by its pointer
;
;Purpose:
; From the pointer given return the heap entry data pointer. Also check the
; heap entry by matching its length and backlength values and confirming that
; the length is nonzero.
;
;Inputs:
; SI = specified pointer
;
;Outputs:
;
; SI = heap entry header pointer
;
;Modifies:
; None.
;
;Exceptions:
; If heap entry is inconsistent, jump to B$ERR_SSC.
;****
B$LH_PTR_FROM_DATA:
SUB SI,2 ;now point to entry backlength
LH_PTR_FROM_BLEN:
ADD SI,[SI] ;point to one past header entry
DEC SI ;point to header entry
B$LH_PTR_CHECK:
PUSH AX ;save registers...
PUSH DI
MOV AX,[SI].LHLEN ;get length of heap entry
MOV DI,SI ;compute offset of entry backlength...
SUB DI,AX ;by moving the pointer to before backlength
CMP [DI+1],AX ;compare entry length and backlength
JNE LH_PTR_ERROR ;if not equal, then report error
OR AX,AX ;test for illegal zero value
JZ LH_PTR_ERROR ;if so, then jump
POP DI ;restore registers...
POP AX
RET ;return to caller
LH_PTR_ERROR:
PUSH ES ;force DS = basic dgroup in case
POP DS ;we are unwinding chain
assumes DS,DGROUP
DbHalt NH_TEXT,<B$LH_PTR_CHECK found inconsistent heap entry>
JMP B$ERR_SSC ;note heap is inconsistent if ID_RELEASE version
;***
; B$LHSetFree - set free heap entry pointer
; Purpose:
; Determines if the current free heap entry is both the last
; heap entry and unallocated. If so, its current value is
; returned in DI. Otherwise, the free heap entry pointer
; [b$HEAP_FREE] is set to the heap space end and its value returned
; in DI.
;
; Inputs:
; None.
; Outputs:
; DI = pointer to free heap entry [b$HEAP_FREE].
; Modifies:
; AX.
; Exceptions:
; None.
;****
B$LHSetFree PROC NEAR
MOV DI,[b$HEAP_FREE] ;point to free heap entry
CMP [DI].LHTYPE,LOW LH_FREE ;test if entry unallocated
JNE LH_SET_END ;if allocated, then jump
MOV AX,DI ;get pointer to free entry
SUB AX,[DI].LHLEN ;point to entry after free one
CMP AX,[b$HEAP_END] ;test if free entry was last in space
JE LH_SET_RETURN ;if so, jump leaving pointer unchanged
LH_SET_END:
MOV DI,[b$HEAP_END] ;get pointer to heap end
CMP DI,[b$HEAP_FIRST] ; Empty heap?
JZ LH_SET_FREE ; then don't try anything fancy
MOV AX,DI ; [AX] = pointer to end entry
ADD AX,[DI+1] ; [AX] = pointer to entry before end
XCHG AX,DI ; [AX] = ptr to end, [DI] = entry before
CMP [DI].LHTYPE,LOW LH_FREE ; test if entry after unallocated
JZ LH_SET_FREE ; if so, that's the free entry
XCHG AX,DI ; else use end entry
LH_SET_FREE:
MOV [b$HEAP_FREE],DI ;and set the free pointer to it
LH_SET_RETURN:
RET ;return with DI pointing to free entry
B$LHSetFree ENDP
SUBTTL B$NHINIT - Initialize dynamic space
PAGE
;***
; B$NHINIT - Initialize dynamic space
; Purpose:
; Initialize the necessary pointers and structures for string and
; local heap space.
; Inputs:
; AX = first word of dynamic space.
; CX = last word of dynamic space.
; Outputs:
; None.
; Modifies:
; None.
; Exceptions:
; None.
;****
cProc B$NHINIT,<PUBLIC,NEAR>,<AX,BX,CX,SI,DI>
cBegin
MOV SI,CX ;get last word of dynamic space
INC SI ;point to last byte of space
MOV [b$HEAP_FIRST],SI ;the local heap starts here...
MOV [b$HEAP_FREE],SI ;has its free entry here...
MOV [b$HEAP_END],SI ;and ends here
MOV [SI].LHTYPE,LOW LH_END ;set the heap entry type
ADD AX,LH_STD_HDR_LEN ; dyn space starts after var heap
MOV [b$NH_first],AX
MOV BX,AX
DEC BX ; point to last byte of var heap
MOV [b$HEAP_FIRST_SWAP],BX ; the variable heap starts here...
MOV [b$HEAP_FREE_SWAP],BX ; has its free entry here...
MOV [b$HEAP_END_SWAP],BX ; and ends here
MOV [BX].LHTYPE,LOW LH_END ; set heap entry type
;Set up pointers to routine to be called when B$ILHALC needs to
; grow the appropriate heap
MOV [P_HEAP_GROW_SWAP],NH_TEXTOFFSET B$VAR_ALC_GROW ;[ln]
MOV [b$P_HEAP_GROW],NH_TEXTOFFSET LH_ALC_GROW ;[ln]
SUB SI,LH_STD_HDR_LEN+1 ;point to even address before entry
CMP b$Clearing,0 ;are we doing a CLEAR statement?
JZ NotClearing ;no, go initialize string space
CALL B$SSClean ; clean out entries, so we don't
JMP SHORT InitExit ; bash function keys
NotClearing:
CALL B$STINIT ;initialize string space
InitExit:
cEnd
sEnd NH_TEXT
END
| 31.286595 | 79 | 0.666412 |
7ca59874e009162a414517462908536e480c06f9 | 689 | asm | Assembly | libsrc/stdio/_sscanf.asm | dikdom/z88dk | 40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0 | [
"ClArtistic"
] | 1 | 2022-03-08T11:55:58.000Z | 2022-03-08T11:55:58.000Z | libsrc/stdio/_sscanf.asm | dikdom/z88dk | 40c55771062b0ea9bb2f0d5b73e2f754fc12b6b0 | [
"ClArtistic"
] | 2 | 2022-03-20T22:17:35.000Z | 2022-03-24T16:10:00.000Z | libsrc/stdio/_sscanf.asm | jorgegv/z88dk | 127130cf11f9ff268ba53e308138b12d2b9be90a | [
"ClArtistic"
] | null | null | null | MODULE sscanf
SECTION code_clib
PUBLIC _sscanf
EXTERN asm_scanf
; sdcc version
;void sscanf(char *buf, char *fmt,...)
;{
; printf1(fp, ungetc, getc, sccz80_delta, *ct,ct-1);
;}
_sscanf:
ld hl,2
add hl,sp ;points to buf
IF !__CPU_INTEL__
push ix ;save callers
ENDIF
ld c,(hl) ;buf
inc hl
ld b,(hl)
inc hl ;&fmt
ex de,hl ;de=&fmt
ld hl,1+2+128 ;h=ungetc, l=_IOREAD|_IOSTRING|_IOUSE
push hl ;
push bc ;buf
ld hl,0
add hl,sp
push hl ;fp
ld bc,0 ;sdcc
push bc
ex de,hl ;hl=&fmt
ld c,(hl) ;fmt
inc hl
ld b,(hl)
inc hl
push bc
push hl ;&ap
call asm_scanf
pop bc
pop bc
pop bc
pop bc
pop bc
pop bc
IF !__CPU_INTEL__
pop ix
ENDIF
ret
| 12.527273 | 59 | 0.637155 |
5881fa692f9bf7a2dd317af8bfdc5df53cf7b7bc | 8,087 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1957.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1957.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0x84_notsx.log_21829_1957.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x5cbb, %r8
nop
nop
nop
xor $14175, %rbx
mov $0x6162636465666768, %r13
movq %r13, (%r8)
cmp %rsi, %rsi
lea addresses_UC_ht+0x1312e, %rsi
lea addresses_D_ht+0x1c54e, %rdi
nop
xor %rdx, %rdx
mov $94, %rcx
rep movsl
nop
xor $19165, %r13
lea addresses_A_ht+0x1aaae, %rsi
nop
add %r8, %r8
mov $0x6162636465666768, %rbx
movq %rbx, %xmm2
vmovups %ymm2, (%rsi)
nop
nop
cmp %r8, %r8
lea addresses_UC_ht+0xb52e, %rsi
lea addresses_WC_ht+0x1b62e, %rdi
nop
nop
nop
sub %r11, %r11
mov $1, %rcx
rep movsb
nop
nop
and $57795, %rdi
lea addresses_WT_ht+0x19ece, %rsi
lea addresses_WT_ht+0x171ae, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
and $47848, %r13
mov $20, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp $36180, %r8
lea addresses_A_ht+0x1044e, %rdx
nop
nop
xor %rdi, %rdi
mov $0x6162636465666768, %rbx
movq %rbx, (%rdx)
lfence
lea addresses_UC_ht+0x14d6e, %r8
nop
nop
nop
nop
and %r13, %r13
mov $0x6162636465666768, %rdx
movq %rdx, %xmm6
and $0xffffffffffffffc0, %r8
movntdq %xmm6, (%r8)
nop
nop
nop
nop
nop
sub %rbx, %rbx
lea addresses_UC_ht+0x131ae, %rsi
lea addresses_WT_ht+0x2243, %rdi
nop
nop
nop
nop
inc %r13
mov $66, %rcx
rep movsw
nop
inc %r13
lea addresses_WT_ht+0x18ae, %rsi
lea addresses_A_ht+0x16ae, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
add $50674, %rbx
mov $112, %rcx
rep movsw
nop
sub %rsi, %rsi
lea addresses_UC_ht+0xbcee, %r11
clflush (%r11)
nop
nop
nop
nop
xor $39333, %rbx
movb (%r11), %cl
nop
nop
and $3895, %rbx
lea addresses_A_ht+0x32ae, %rsi
lea addresses_D_ht+0x1a8ae, %rdi
nop
nop
sub $63650, %r13
mov $123, %rcx
rep movsq
nop
nop
sub %rbx, %rbx
lea addresses_normal_ht+0x6128, %rdx
nop
cmp %r13, %r13
and $0xffffffffffffffc0, %rdx
vmovaps (%rdx), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rsi
nop
nop
nop
nop
nop
inc %rdx
lea addresses_normal_ht+0x14e76, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
sub $535, %rdx
mov $0x6162636465666768, %r8
movq %r8, %xmm5
vmovups %ymm5, (%rdi)
nop
nop
nop
nop
nop
and $14983, %r8
lea addresses_WT_ht+0x1792d, %rcx
nop
nop
nop
nop
nop
xor %rsi, %rsi
movl $0x61626364, (%rcx)
nop
nop
sub $26879, %rsi
lea addresses_WC_ht+0x12ae, %rsi
lea addresses_WT_ht+0xa1fe, %rdi
nop
and $39810, %r8
mov $67, %rcx
rep movsq
nop
nop
sub $29995, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r13
push %rbx
// Faulty Load
lea addresses_RW+0x42ae, %r12
nop
nop
nop
nop
cmp %r10, %r10
mov (%r12), %ebx
lea oracles, %r12
and $0xff, %rbx
shlq $12, %rbx
mov (%r12,%rbx,1), %rbx
pop %rbx
pop %r13
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'same': True, 'size': 4, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 33.143443 | 2,999 | 0.661927 |
2bb367a8cd70779ccbd0ef17aeb2c7c020360e0c | 1,397 | asm | Assembly | asm/task.asm | lavenderos/lvk | fe04682b6b97bfec03823c9f421668929ba92954 | [
"BSD-2-Clause"
] | null | null | null | asm/task.asm | lavenderos/lvk | fe04682b6b97bfec03823c9f421668929ba92954 | [
"BSD-2-Clause"
] | null | null | null | asm/task.asm | lavenderos/lvk | fe04682b6b97bfec03823c9f421668929ba92954 | [
"BSD-2-Clause"
] | null | null | null | global task_spinup
global force_resched
extern scheduler_lock
extern resched_lock
extern task_resched
section .data
signal_trampoline_size equ signal_trampoline.end - signal_trampoline
global signal_trampoline_size
global signal_trampoline
signal_trampoline:
mov rax, rdi
shr rdi, 48 ; signum
mov rdx, 0x0000ffffffffffff
and rax, rdx
call rax ; handler address
mov rax, 28
syscall ; end of signal syscall
.end:
section .text
task_spinup:
test rsi, rsi
jz .dont_load_cr3
mov cr3, rsi
.dont_load_cr3:
mov rsp, rdi
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rbp
pop rdi
pop rsi
pop rdx
pop rcx
pop rbx
mov rax, qword [rsp+32+8]
mov ds, ax
mov es, ax
; release relevant locks
lock inc qword [scheduler_lock]
lock inc qword [resched_lock]
pop rax
iretq
force_resched:
cli
mov rax, rsp
push 0x10
push rax
push 0x202
push 0x08
mov rax, .done
push rax
push rax
push rbx
push rcx
push rdx
push rsi
push rdi
push rbp
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
; release relevant locks
lock inc qword [scheduler_lock]
mov rdi, rsp
.retry:
call task_resched
jmp .retry
.done:
ret
| 14.255102 | 68 | 0.634216 |
5a44d5a55c6d34ee5899e65d9335a71e16574ea6 | 449 | asm | Assembly | programs/oeis/049/A049581.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/049/A049581.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/049/A049581.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A049581: Table T(n,k) = |n-k| read by antidiagonals (n >= 0, k >= 0).
; 0,1,1,2,0,2,3,1,1,3,4,2,0,2,4,5,3,1,1,3,5,6,4,2,0,2,4,6,7,5,3,1,1,3,5,7,8,6,4,2,0,2,4,6,8,9,7,5,3,1,1,3,5,7,9,10,8,6,4,2,0,2,4,6,8,10,11,9,7,5,3,1,1,3,5,7,9,11,12,10,8,6,4,2,0,2,4,6,8,10,12,13,11,9,7,5,3,1,1,3
seq $0,114327 ; Table T(n,m) = n - m read by upwards antidiagonals.
pow $0,2
seq $0,194 ; n appears 2n times, for n >= 1; also nearest integer to square root of n.
| 64.142857 | 211 | 0.581292 |
9fd20eb5ed9bdd920d176fef70cdab633d603513 | 5,702 | asm | Assembly | transformy/tables/gen/001e.asm | mborik/regression | 25b5f2204ce668594449e8ce804779288b895ac0 | [
"MIT"
] | 3 | 2019-09-18T05:34:22.000Z | 2020-12-04T17:46:52.000Z | transformy/tables/gen/001e.asm | mborik/regression | 25b5f2204ce668594449e8ce804779288b895ac0 | [
"MIT"
] | null | null | null | transformy/tables/gen/001e.asm | mborik/regression | 25b5f2204ce668594449e8ce804779288b895ac0 | [
"MIT"
] | 1 | 2020-01-17T01:04:24.000Z | 2020-01-17T01:04:24.000Z | ld a, 3
ld (basescradr + #0b34), a
ld (basescradr + #0c4b), a
ld (basescradr + #0d6c), a
ld (basescradr + #0d8d), a
ld (basescradr + #0dae), a
ld (basescradr + #0dcf), a
ld (basescradr + #0df0), a
ld (basescradr + #1511), a
ld (basescradr + #1532), a
ld a, 255
ld hl, basescradr + #0855
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0b35
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0b6d
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0c34
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0c4c
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0d33
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #1213
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0851
ld (hl), a
inc hl
ld (hl), a
inc hl
ld (hl), a
inc hl
ld (hl), a
ld d,a
ld e,a
ld (basescradr + #0953), de
ld (basescradr + #0f31), de
ld (basescradr + #0e32), a
ld (basescradr + #0f8e), a
ld a, 128
ld hl, basescradr + #0876
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #08d5
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #0b36), a
ld (basescradr + #0f56), a
ld (basescradr + #1214), a
ld (basescradr + #1314), a
ld a, 7
ld (basescradr + #0c33), a
ld (basescradr + #0c6c), a
ld (basescradr + #0c8d), a
ld (basescradr + #0cae), a
ld (basescradr + #0ccf), a
ld (basescradr + #0cf0), a
ld (basescradr + #1411), a
ld a, 192
ld hl, basescradr + #0856
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0c36
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #0eb5), a
ld (basescradr + #0fb5), a
ld (basescradr + #1014), a
ld (basescradr + #1114), a
ld (basescradr + #1433), a
ld a, 15
ld (basescradr + #0b6c), a
ld (basescradr + #0b8d), a
ld (basescradr + #0bae), a
ld (basescradr + #0bcf), a
ld (basescradr + #0bf0), a
ld (basescradr + #0d32), a
ld (basescradr + #0e31), a
ld (basescradr + #1311), a
ld (basescradr + #1432), a
xor a
ld hl, basescradr + #084c
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0896
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #08ef
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0c76
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #1010
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #1031
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld d,a
ld e,a
ld (basescradr + #084d), de
ld hl, basescradr + #0f2c
ld (hl), a
inc hl
ld (hl), a
inc hl
ld (hl), a
ld (basescradr + #1051), de
ld (basescradr + #08ce), a
ld (basescradr + #094d), a
ld (basescradr + #09ce), a
ld (basescradr + #0bd5), a
ld (basescradr + #0cd5), a
ld (basescradr + #0e2c), a
ld (basescradr + #0fae), a
ld (basescradr + #0fcf), a
ld (basescradr + #0ff0), a
ld (basescradr + #1030), a
ld (basescradr + #1632), a
ld (basescradr + #1732), a
ld a, 31
ld (basescradr + #084f), a
ld (basescradr + #094e), a
ld (basescradr + #0a6c), a
ld (basescradr + #0a8d), a
ld (basescradr + #0acf), a
ld (basescradr + #0af0), a
ld (basescradr + #0f30), a
ld (basescradr + #1211), a
ld (basescradr + #1332), a
ld a, 127
ld (basescradr + #086c), a
ld (basescradr + #088d), a
ld (basescradr + #08cf), a
ld (basescradr + #08f0), a
ld (basescradr + #0a4d), a
ld (basescradr + #0b4c), a
ld (basescradr + #1011), a
ld (basescradr + #1132), a
ld a, 1
ld (basescradr + #0d4b), a
ld (basescradr + #0e4b), a
ld (basescradr + #0e6c), a
ld (basescradr + #0e8d), a
ld (basescradr + #0eae), a
ld (basescradr + #0ecf), a
ld (basescradr + #0ef0), a
ld (basescradr + #1611), a
ld (basescradr + #1711), a
ld a, 63
ld (basescradr + #096c), a
ld (basescradr + #098d), a
ld (basescradr + #09cf), a
ld (basescradr + #09f0), a
ld (basescradr + #1111), a
ld (basescradr + #1232), a
ld a, 254
ld hl, basescradr + #0895
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #0dd4), a
ld (basescradr + #0f75), a
ld (basescradr + #1513), a
ld (basescradr + #1613), a
ld a, 252
ld hl, basescradr + #0b95
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #09f4), a
ld (basescradr + #1713), a
ld a, 248
ld (basescradr + #08b5), a
ld (basescradr + #0bf4), a
ld (basescradr + #0e95), a
ld (basescradr + #0f95), a
ld (basescradr + #1033), a
ld a, 240
ld (basescradr + #09b5), a
ld (basescradr + #0ab5), a
ld (basescradr + #0cf4), a
ld (basescradr + #0df4), a
ld (basescradr + #1133), a
ld a, 224
ld hl, basescradr + #0bb5
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld (basescradr + #0ef4), a
ld (basescradr + #0ff4), a
ld (basescradr + #1233), a
ld (basescradr + #1333), a
ret
| 17.930818 | 29 | 0.535426 |
c381b26d9b3eac6d53bc4ff919d4d1d84642faf7 | 241 | asm | Assembly | libsrc/_DEVELOPMENT/l/z80/l_ex_bc_de.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/l/z80/l_ex_bc_de.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/l/z80/l_ex_bc_de.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_l
PUBLIC l_ex_bc_de
l_ex_bc_de:
; enter : bc = A
; de = B
;
; exit : bc = B
; de = A
;
; uses : a, bc, de
ld a,e
ld e,c
ld c,a
ld a,d
ld d,b
ld b,a
ret
| 9.64 | 22 | 0.39834 |
7e175caba4400c19a99da5f58a15edc2ee173b1e | 462 | asm | Assembly | programs/oeis/047/A047339.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/047/A047339.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/047/A047339.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A047339: Numbers that are congruent to {2, 3, 4} mod 7.
; 2,3,4,9,10,11,16,17,18,23,24,25,30,31,32,37,38,39,44,45,46,51,52,53,58,59,60,65,66,67,72,73,74,79,80,81,86,87,88,93,94,95,100,101,102,107,108,109,114,115,116,121,122,123,128,129,130,135,136,137,142,143,144,149,150,151,156,157,158,163,164,165,170,171,172,177,178,179,184,185,186,191,192,193,198,199,200,205,206,207,212,213,214,219,220,221,226,227,228,233
mov $1,$0
div $1,3
mul $1,4
add $0,$1
add $0,2
| 51.333333 | 355 | 0.688312 |
b4c61d27d93699d922d10b2838407ddec8d38d7b | 686 | asm | Assembly | oeis/001/A001039.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/001/A001039.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/001/A001039.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A001039: a(n) = (p^p-1)/(p-1) where p = prime(n).
; Submitted by Christian Krause
; 3,13,781,137257,28531167061,25239592216021,51702516367896047761,109912203092239643840221,949112181811268728834319677753,91703076898614683377208150526107718802981,568972471024107865287021434301977158534824481,293198193216049539279953613499884248503538780093616651181,33271940765817799967834981024083656399647233254041274858128448841,412946984929292083807232887828857908531144346166954570311375409499893,84302701379661926579709743177268059889094454377047954731354904954054269240497
seq $0,40 ; The prime numbers.
seq $0,23037 ; a(n) = n^0+n^1+...+n^(n-1), or a(n) = (n^n-1)/(n-1) with a(0)=0; a(1)=1.
| 98 | 481 | 0.838192 |
0011dcbf0fd7703a0986498b5599d6ba7cbc8108 | 554 | asm | Assembly | programs/oeis/187/A187327.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/187/A187327.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/187/A187327.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A187327: Floor(n/5)+floor(2n/5)+floor(3n/5).
; 0,0,1,2,3,6,6,7,8,9,12,12,13,14,15,18,18,19,20,21,24,24,25,26,27,30,30,31,32,33,36,36,37,38,39,42,42,43,44,45,48,48,49,50,51,54,54,55,56,57,60,60,61,62,63,66,66,67,68,69,72,72,73,74,75,78,78,79,80,81,84,84,85,86,87,90,90,91,92,93,96,96,97,98,99,102,102,103,104,105,108,108,109,110,111,114,114,115,116,117,120,120,121,122,123,126,126,127,128,129,132,132,133,134,135,138,138,139,140,141,144
mov $2,6
mul $2,$0
gcd $0,5
mov $1,2
mov $4,$0
mul $4,2
add $2,$4
mov $3,$2
add $3,22
mul $1,$3
div $1,10
sub $1,6
| 34.625 | 390 | 0.649819 |
344e6792e1f0847cac915772db5a66f7f09adeef | 698 | asm | Assembly | oeis/071/A071182.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/071/A071182.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/071/A071182.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A071182: SPF(n+1)-SPF(n), where SPF(n) denotes the smallest prime factor of n.
; Submitted by Simon Strandgaard
; 1,-1,3,-3,5,-5,1,-1,9,-9,11,-11,1,-1,15,-15,17,-17,1,-1,21,-21,3,-3,1,-1,27,-27,29,-29,1,-1,3,-3,35,-35,1,-1,39,-39,41,-41,1,-1,45,-45,5,-5,1,-1,51,-51,3,-3,1,-1,57,-57,59,-59,1,-1,3,-3,65,-65,1,-1,69,-69,71,-71,1,-1,5,-5,77,-77,1,-1,81,-81,3,-3,1
mov $3,2
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
add $0,$3
add $0,1
seq $0,20639 ; Lpf(n): least prime dividing n (when n > 1); a(1) = 1. Or, smallest prime factor of n, or smallest prime divisor of n.
sub $0,2
mov $2,$3
mov $4,$0
lpb $2
mov $1,$4
sub $2,1
lpe
lpe
lpb $5
sub $1,$4
mov $5,0
lpe
mov $0,$1
| 26.846154 | 249 | 0.553009 |
7f59f1f0f6b70009b9b59e48f7fe2ddfb746f9f9 | 7,583 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-8650U_0xd2.log_12422_1458.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-8650U_0xd2.log_12422_1458.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-8650U_0xd2.log_12422_1458.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1237f, %rsi
lea addresses_D_ht+0xaa3f, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
sub %rdx, %rdx
mov $84, %rcx
rep movsq
nop
nop
nop
nop
sub $54619, %rsi
lea addresses_D_ht+0x97bf, %r12
clflush (%r12)
inc %rbx
mov $0x6162636465666768, %rcx
movq %rcx, (%r12)
nop
nop
xor %rcx, %rcx
lea addresses_normal_ht+0x16a3f, %r12
clflush (%r12)
nop
nop
nop
nop
sub $40814, %rax
vmovups (%r12), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %rbx
nop
nop
nop
nop
nop
cmp $65482, %rax
lea addresses_A_ht+0x1d5bf, %rdi
inc %rax
movb $0x61, (%rdi)
nop
nop
cmp %rcx, %rcx
lea addresses_WC_ht+0x1992f, %rsi
lea addresses_D_ht+0x1eb9f, %rdi
inc %rbx
mov $49, %rcx
rep movsl
nop
nop
cmp $56823, %rcx
lea addresses_WC_ht+0x833f, %rsi
lea addresses_normal_ht+0x10e3f, %rdi
clflush (%rsi)
nop
nop
inc %r12
mov $84, %rcx
rep movsw
nop
nop
sub $18533, %rsi
lea addresses_normal_ht+0x9f50, %r12
nop
cmp $59789, %rdx
mov (%r12), %ebx
nop
nop
nop
nop
dec %rdi
lea addresses_WT_ht+0xcc1f, %rsi
lea addresses_D_ht+0xc81f, %rdi
nop
nop
sub %r15, %r15
mov $38, %rcx
rep movsl
nop
nop
nop
nop
nop
xor %r15, %r15
lea addresses_WT_ht+0x16a48, %rsi
nop
nop
nop
cmp $15126, %rbx
mov $0x6162636465666768, %rcx
movq %rcx, %xmm0
vmovups %ymm0, (%rsi)
add %rbx, %rbx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r8
push %rax
push %rbp
push %rdx
// Store
lea addresses_US+0x1677f, %rdx
nop
nop
nop
inc %rax
mov $0x5152535455565758, %r8
movq %r8, (%rdx)
nop
nop
nop
nop
add %rax, %rax
// Load
lea addresses_RW+0x1f83f, %r13
cmp %r10, %r10
mov (%r13), %r8w
cmp %rbp, %rbp
// Store
mov $0x4028700000003bf, %rax
nop
nop
nop
nop
nop
add %r8, %r8
mov $0x5152535455565758, %r10
movq %r10, %xmm7
movups %xmm7, (%rax)
and %r10, %r10
// Store
lea addresses_A+0x48ef, %r10
nop
nop
cmp $44044, %rdx
mov $0x5152535455565758, %rbp
movq %rbp, (%r10)
dec %rdx
// Store
lea addresses_US+0x323f, %rdx
clflush (%rdx)
nop
nop
dec %r11
movl $0x51525354, (%rdx)
nop
nop
nop
xor %rax, %rax
// Faulty Load
lea addresses_US+0x323f, %r11
nop
nop
xor $44927, %rbp
mov (%r11), %r13d
lea oracles, %r10
and $0xff, %r13
shlq $12, %r13
mov (%r10,%r13,1), %r13
pop %rdx
pop %rbp
pop %rax
pop %r8
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'54': 12422}
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
| 34.157658 | 2,999 | 0.656073 |
24b3ad71f388f3184b877ad35b2c426f7889a22b | 410 | asm | Assembly | mc-sema/validator/x86/tests/PEXTRWri.asm | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 2 | 2021-08-07T16:21:29.000Z | 2021-11-17T10:58:37.000Z | mc-sema/validator/x86/tests/PEXTRWri.asm | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | null | null | null | mc-sema/validator/x86/tests/PEXTRWri.asm | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | null | null | null | BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_SF|FLAG_PF
;TEST_FILE_META_END
;TEST_BEGIN_RECORDING
lea ecx, [esp-0x30]
and ecx, 0xFFFFFFF0
mov eax, 0xFFFFFFFF
mov dword [ecx+0x00], 0xAAAAAAAA
mov dword [ecx+0x04], 0xBBBBBBBB
mov dword [ecx+0x08], 0xCCCCCCCC
mov dword [ecx+0x0C], 0xDDDDDDDD
movdqu xmm1, [ecx]
pextrw eax, xmm1, 5
mov ecx, 0
;TEST_END_RECORDING
cvtsi2sd xmm1, ecx
| 17.826087 | 33 | 0.782927 |
cb5f029bdd3e3e486f22fe82ad492b998baaeb5d | 663 | asm | Assembly | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/8_31.asm | gxw1/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 640 | 2019-03-30T11:32:43.000Z | 2022-03-31T14:05:18.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/8_31.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 6 | 2019-07-22T01:57:24.000Z | 2022-01-20T15:03:16.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/8_31.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 212 | 2019-04-10T02:31:50.000Z | 2022-03-30T02:32:47.000Z | DATA SEGMENT
STUD RECORD NUM:4,SEX:1,AGE:6,HOME:5
ARRAY STUD 30 DUP(< >)
COUNT DB 0
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: PUSH DS
MOV AX,0
PUSH AX
MOV AX,DATA
MOV DS,AX
MOV CH,30
MOV BX,OFFSET ARRAY
NEXT: MOV AX,[BX]
TEST AX,MASK SEX
JZ NEXT1
MOV CL,WIDTH HOME
MOV DX,MASK AGE
AND AX,DX
SHR AX,CL
CMP AL,20
JL NEXT1
INC COUNT
NEXT1: ADD BX,2
DEC CH
JNE NEXT
RET
CODE ENDS
END START
| 21.387097 | 40 | 0.443439 |
635fbc972b7f47a0ed59dde162ec4bcb22526395 | 168 | asm | Assembly | Tests/yasm-regression/jmp64-5.asm | 13xforever/x86-assembly-textmate-bundle | f1bb62f77b776d87d0fd85b0276d4237ff72c43c | [
"MIT"
] | 69 | 2015-04-16T18:01:22.000Z | 2022-02-15T07:54:26.000Z | Tests/yasm-regression/jmp64-5.asm | javiercbk/x86-assembly-textmate-bundle | 62d700e0196f62ef4353a9b95c2e64beb0a6afda | [
"MIT"
] | 17 | 2016-09-20T08:49:09.000Z | 2021-02-19T15:01:04.000Z | Tests/yasm-regression/jmp64-5.asm | javiercbk/x86-assembly-textmate-bundle | 62d700e0196f62ef4353a9b95c2e64beb0a6afda | [
"MIT"
] | 19 | 2016-05-31T07:11:14.000Z | 2021-07-19T10:17:12.000Z | [bits 64]
l1:
mov dword [l2], l2 ; out: c7 04 25 12 00 01 00 12 00 01 00
jc l3 ; out: 0f 82 01 00 01 00
times 0x10001 db 0x0 ; rep-out: 0x10001 00
l3:
l2 equ $-l1
| 21 | 59 | 0.625 |
96402765ebac98bdf39936becddbe32585784f0b | 1,471 | asm | Assembly | programs/oeis/065/A065384.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/065/A065384.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/065/A065384.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A065384: Largest prime <= n * (n + 1) / 2.
; 3,5,7,13,19,23,31,43,53,61,73,89,103,113,131,151,167,181,199,229,251,271,293,317,349,373,401,433,463,491,523,557,593,619,661,701,739,773,811,859,887,941,983,1033,1069,1123,1171,1223,1259,1321,1373,1429,1483,1531,1583,1637,1709,1759,1823,1889,1951,2011,2069,2143,2207,2273,2341,2411,2477,2551,2621,2699,2767,2843,2917,3001,3079,3137,3229,3319,3391,3469,3559,3643,3739,3823,3911,4003,4093,4177,4273,4363,4463,4549,4651,4751,4831,4943,5039,5147,5237,5351,5449,5563,5669,5749,5881,5987,6101,6211,6323,6427,6553,6661,6781,6899,7019,7129,7253,7369,7499,7621,7741,7873,7993,8123,8243,8377,8513,8641,8761,8893,9043,9173,9311,9439,9587,9721,9859,10009,10151,10289,10433,10567,10729,10867,11003,11173,11321,11471,11621,11779,11933,12073,12241,12401,12553,12713,12853,13037,13187,13339,13523,13693,13859,14011,14177,14347,14533,14699,14869,15031,15217,15391,15569,15749,15923,16103,16273,16453,16651,16831,17011,17203,17389,17573,17761,17939,18143,18329,18523,18719,18913,19087,19301,19501,19699,19891,20089,20297,20483,20693,20903,21107,21319,21523,21727,21943,22153,22349,22573,22787,23003,23209,23431,23633,23869,24083,24281,24527,24749,24971,25189,25423,25643,25873,26099,26321,26561,26783,27017,27259,27487,27701,27961,28201,28439,28669,28909,29153,29401,29641,29881,30133,30367,30593,30871,31123,31357,31607
mov $2,$0
sub $0,$0
add $2,4
add $0,$2
sub $0,1
bin $0,2
cal $0,136548 ; a(n) = max {k >= 1 | sigma(k) <= n}.
mov $1,$0
| 122.583333 | 1,304 | 0.771584 |
a37058870b3263bb5f0de0aa2c59421f4cea4b34 | 252 | asm | Assembly | solutions/36 - Seek and Destroy 2/size-8_speed-159.asm | michaelgundlach/7billionhumans | 02c6f3963364362c95cb516cbc6ef1efc073bb2e | [
"MIT"
] | 45 | 2018-09-05T04:56:59.000Z | 2021-11-22T08:57:26.000Z | solutions/36 - Seek and Destroy 2/size-8_speed-159.asm | michaelgundlach/7billionhumans | 02c6f3963364362c95cb516cbc6ef1efc073bb2e | [
"MIT"
] | 36 | 2018-09-01T11:34:26.000Z | 2021-05-19T23:20:49.000Z | solutions/36 - Seek and Destroy 2/size-8_speed-159.asm | michaelgundlach/7billionhumans | 02c6f3963364362c95cb516cbc6ef1efc073bb2e | [
"MIT"
] | 36 | 2018-09-01T07:44:19.000Z | 2021-09-10T19:07:35.000Z | -- 7 Billion Humans (2087) --
-- 36: Seek and Destroy 2 --
-- Author: landfillbaby
-- Size: 8
-- Speed: 159
mem2 = nearest shredder
a:
step n
if n <= mem1 or
mem1 != datacube:
mem1 = set n
endif
if n == wall:
pickup mem1
giveto mem2
endif
jump a
| 12.6 | 29 | 0.642857 |
9b063ecc7b1ca9174abbf68487229122d0ec1eb7 | 70 | asm | Assembly | iTunesSupport/breakpoint.asm | cqjjjzr/iTunesSupport | c5859377744b437efc51aa0aab8dfd90b2a3fc73 | [
"Apache-2.0"
] | null | null | null | iTunesSupport/breakpoint.asm | cqjjjzr/iTunesSupport | c5859377744b437efc51aa0aab8dfd90b2a3fc73 | [
"Apache-2.0"
] | null | null | null | iTunesSupport/breakpoint.asm | cqjjjzr/iTunesSupport | c5859377744b437efc51aa0aab8dfd90b2a3fc73 | [
"Apache-2.0"
] | 1 | 2021-01-11T03:28:20.000Z | 2021-01-11T03:28:20.000Z | public _breakpoint
.code
_breakpoint proc
int 3
_breakpoint endp
end | 10 | 18 | 0.828571 |
21334926e8abd31b4173a0bee9f5819b901d0194 | 585 | asm | Assembly | test/br560873.asm | km2m/nasm | 4c3798b7e6a1258122722d55d85ecd820721db5d | [
"BSD-2-Clause"
] | 2,219 | 2018-03-26T02:57:34.000Z | 2022-03-31T00:27:59.000Z | test/br560873.asm | km2m/nasm | 4c3798b7e6a1258122722d55d85ecd820721db5d | [
"BSD-2-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | test/br560873.asm | km2m/nasm | 4c3798b7e6a1258122722d55d85ecd820721db5d | [
"BSD-2-Clause"
] | 473 | 2019-03-24T16:34:23.000Z | 2022-03-31T02:01:05.000Z | ;Testname=unoptimized; Arguments=-O0 -frdf -obr560873.rdf; Files=stdout stderr br560873.rdf
;Testname=optimized; Arguments=-Ox -frdf -obr560873.rdf; Files=stdout stderr br560873.rdf
label:
bits 16
call far dword label
mov [label],ax
mov [label],eax
mov [word label],ax
mov [word label],eax
mov [dword label],ax
mov [dword label],eax
push 3700
push word 3700
push dword 3700
bits 32
call far word label
mov [label],ax
mov [label],eax
mov [word label],ax
mov [word label],eax
mov [dword label],ax
mov [dword label],eax
push 3700
push word 3700
push dword 3700
| 20.892857 | 91 | 0.724786 |
f1a1f4506146003e7402146271f47ff0425bf2cf | 1,453 | asm | Assembly | CsHook/mods/mechgame/asm/changes.asm | taedixon/injection-story | b7b9bbfc0f8595c7c76d82c5cb761045e3bb982f | [
"Apache-2.0"
] | 5 | 2018-04-20T15:45:11.000Z | 2018-04-24T12:18:20.000Z | CsHook/mods/mechgame/asm/changes.asm | taedixon/injection-story | b7b9bbfc0f8595c7c76d82c5cb761045e3bb982f | [
"Apache-2.0"
] | null | null | null | CsHook/mods/mechgame/asm/changes.asm | taedixon/injection-story | b7b9bbfc0f8595c7c76d82c5cb761045e3bb982f | [
"Apache-2.0"
] | 4 | 2018-04-20T15:45:12.000Z | 2019-03-21T12:34:23.000Z |
offset 410815
; reordered calls to rendering HUD
push ebx
mov ebx, [49E1E8]
and ebx, 2
push ebx
call 41A1D0 ; draw HP / ui background
add esp, 4
push 0
call 414250 ; draw map name
add esp, 4
push ebx
call 419D10 ; draw weapon stuff
add esp, 4
push 68
push 78
call 41A350 ; draw air
add esp, 8
call 40E770 ; put fade
pop ebx
jmp 41085B
offset 41C2B9
; allow organya to fade in as well as out
#define
orgvol=4937A4
orgfade=4A4E10
#enddefine
mov ecx, orgvol
cmp [orgfade], 0
jnz :isFadeOut
cmp [ecx], 5F
jge :end
add [ecx], 5
jmp :end
:isFadeOut
cmp [ecx], 1
jle :end
sub [ecx], 2
; padding
and ecx, 12345678
and ecx, 12345678
fnop
fnop
fnop
:end
offset 415EE6
; make BoosterV0.8 give bigger boosts, spawn a better FX
mov dword [49E670], -480
; create fx
push 17F
push 0
push 0
push 200
push 0
mov eax, [49E688]
cdq
sub eax, edx
sar eax, 1
add eax, [49E658]
push eax
mov edx, [49E654]
push edx
push 29
call 46EFD0
add esp, 10
push 1
push 1b
call 420640
add esp, 8
jmp 415F33
offset 48B900
; Load cshook.dll and call HookMod()
push ebp
mov ebp, esp
mov eax, :STR_LIBNAME
push eax
call [48C0AC]
mov ecx, :STR_FUNCNAME
push ecx
push eax
call [48C134]
call eax
pop ebp
retn
:STR_LIBNAME
data 63 73 68 6f 6f 6b 2e 64 6c 6c 00 ; cshook.dll
:STR_FUNCNAME
data 48 6f 6f 6b 4d 6f 64 00 ; HookMod
offset 412445
; inject call to LoadLibrary
cmp eax, 0
je :gotMutex
push eax
call [48C0D8]
add esp, 4
xor eax, eax
jmp 412B83
:gotMutex
call 48B900
jmp 412467 | 13.09009 | 56 | 0.733655 |
f29e4338f6043001a2181346e734a0ff75fc97c5 | 703 | asm | Assembly | CLICK_DRUMS/ud/test/test.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 4d336dec9d7abc979a97af76d515104a9263f127 | [
"BSD-3-Clause"
] | 59 | 2015-02-28T14:15:56.000Z | 2022-03-26T12:06:01.000Z | CLICK_DRUMS/ud/test/test.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 4d336dec9d7abc979a97af76d515104a9263f127 | [
"BSD-3-Clause"
] | 1 | 2016-08-22T05:32:43.000Z | 2016-08-22T09:33:28.000Z | CLICK_DRUMS/ud/test/test.asm | bushy555/ZX-Spectrum-1-Bit-Routines | 4d336dec9d7abc979a97af76d515104a9263f127 | [
"BSD-3-Clause"
] | 9 | 2015-02-28T14:16:31.000Z | 2022-01-18T17:52:48.000Z | ;;; test code
org #8000
di
init
ld sp,td
ld b,1+((td_end-td)/2)
DRUM_RETURN_ADDRESS
dec b
jr z,init
jr wait
endwait
jp ud_init
drum1
db #f0,#00,#01,#40,#00,#00,#03
drum3
db #b0,#40,#01,#40,#04,#00,#03
drum2
db #00,#f0,#00,#00,#01,#00,#03
drum3a
db #60,#90,#04,#40,#04,#00,#03
drum3b
db #40,#70,#04,#40,#04,#00,#03
drum3c
db #20,#50,#04,#40,#04,#00,#03
drum3d
db #10,#30,#04,#40,#04,#00,#03
wait
ld de,0
_lp
dec de
ld a,d
or e
jr nz,_lp
jr endwait
drum_player
include "../ud.asm"
td
dw drum1
dw drum3
dw drum2
dw drum3
dw drum3a
dw drum3b
dw drum3c
dw drum3d
td_end
| 10.815385 | 34 | 0.532006 |
3fd472dc531c167fc5bb2b6e34fc6028cb75c452 | 3,905 | asm | Assembly | Transynther/x86/_processed/US/_st_4k_/i7-8650U_0xd2_notsx.log_75_470.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_st_4k_/i7-8650U_0xd2_notsx.log_75_470.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_st_4k_/i7-8650U_0xd2_notsx.log_75_470.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x177e6, %rsi
lea addresses_A_ht+0x2c7e, %rdi
nop
nop
cmp %r11, %r11
mov $33, %rcx
rep movsb
nop
and %r8, %r8
lea addresses_normal_ht+0x1827e, %r9
nop
nop
nop
dec %r10
movw $0x6162, (%r9)
and $23113, %rdi
lea addresses_UC_ht+0xae7e, %rsi
nop
nop
dec %r11
mov (%rsi), %r10
nop
nop
add %r9, %r9
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r15
push %rax
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_D+0x12e7e, %rsi
lea addresses_A+0xa67e, %rdi
xor %rax, %rax
mov $3, %rcx
rep movsw
nop
nop
nop
nop
xor %r15, %r15
// Load
lea addresses_WC+0xfb7e, %rsi
nop
nop
nop
nop
nop
dec %rdi
vmovups (%rsi), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %r13
nop
nop
nop
nop
nop
sub $27087, %rax
// Store
lea addresses_WT+0x1627e, %r13
cmp $14933, %rsi
movl $0x51525354, (%r13)
nop
nop
nop
sub $25825, %r15
// Store
lea addresses_PSE+0x13a1f, %rdi
nop
nop
nop
nop
nop
sub $57666, %rsi
mov $0x5152535455565758, %r13
movq %r13, %xmm6
vmovntdq %ymm6, (%rdi)
xor $12641, %rax
// Store
lea addresses_WT+0xcc7e, %r15
dec %rdi
movl $0x51525354, (%r15)
nop
nop
nop
nop
cmp $39801, %r13
// Store
lea addresses_PSE+0x764e, %r13
clflush (%r13)
nop
nop
nop
inc %rdi
movl $0x51525354, (%r13)
cmp %r15, %r15
// Store
lea addresses_WT+0xca7e, %rsi
nop
xor $63980, %rax
mov $0x5152535455565758, %rcx
movq %rcx, %xmm2
vmovups %ymm2, (%rsi)
nop
nop
nop
nop
nop
add %rsi, %rsi
// Store
lea addresses_A+0x1fdca, %rsi
nop
nop
nop
add $59436, %r10
movl $0x51525354, (%rsi)
nop
nop
cmp $36220, %rdi
// Faulty Load
lea addresses_US+0xd27e, %rcx
nop
nop
nop
nop
nop
sub %rsi, %rsi
movb (%rcx), %r13b
lea oracles, %r10
and $0xff, %r13
shlq $12, %r13
mov (%r10,%r13,1), %r13
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A', 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 10, 'same': True}}
{'54': 75}
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
| 20.233161 | 224 | 0.644814 |
bf2d085d947f8a5c85091952643f8362479dd7e2 | 398 | asm | Assembly | programs/oeis/332/A332026.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/332/A332026.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/332/A332026.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A332026: Savannah problem: number of new possibilities after n weeks.
; 3,4,3,5,4,4,6,5,5,5,7,6,6,6,6,8,7,7,7,7,7,9,8,8,8,8,8,8,10,9,9,9,9,9,9,9,11,10,10,10,10,10,10,10,10,12,11,11,11,11,11,11,11,11,11,13,12,12,12,12,12,12,12,12,12
mov $2,$0
mov $4,7
lpb $2,1
add $1,$0
lpb $4,1
mov $0,1
mov $1,1
mov $4,1
lpe
trn $2,1
pow $3,$2
trn $2,$1
lpe
add $1,$3
trn $1,1
add $1,3
| 19.9 | 161 | 0.572864 |
9cf8d4ad263abdadcb2d24dbc7a780ddfc9d2653 | 92 | asm | Assembly | boot/kernel_entry.asm | SolindekDev/Sonix | b16c2710d42bbcefa9314dc8b908db0b556be017 | [
"MIT"
] | 15 | 2021-12-27T16:55:43.000Z | 2021-12-29T17:34:52.000Z | boot2/kernel_entry.asm | SolindekDev/GoofOS | ba6c63454fec94e7f69751d0eb45ef178e13e315 | [
"MIT"
] | null | null | null | boot2/kernel_entry.asm | SolindekDev/GoofOS | ba6c63454fec94e7f69751d0eb45ef178e13e315 | [
"MIT"
] | null | null | null | global _start;
[bits 32]
_start:
[extern start_kernel]
call start_kernel
jmp $ | 13.142857 | 26 | 0.663043 |
a5208a7e5736b77d43ee00bcbd91001ad32c67e1 | 12,652 | asm | Assembly | c6ers/interlnk/paragon/lib/initscr.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | c6ers/interlnk/paragon/lib/initscr.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | c6ers/interlnk/paragon/lib/initscr.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | ;***
;* $Workfile: initscr.asm $
;* $Revision: 1.0 $
;* $Author: Dave Sewell $
;* $Date: 11 Sep 1990 8:46:06 $
;***
% .MODEL MEDIUM, PASCAL
; Hercules Graphics InColor Card constants
DMC_PORT EQU 03B8H ; Display mode control port
STATUS_PORT EQU 03BAH ; Display status port
INDEX_REG EQU 03B4H ; 6845 index register
DATA_REG EQU 03B5H ; 6845 data register
XMODE_REG EQU 14H ; character mode option port
UNDERSCORE_REG EQU 15H ; register to set underscore
OVERSTRIKE_REG EQU 16H ; register to set overstrike
EXCEPTION_REG EQU 17H ; bit 0-3 cursor color
; bit 4 palette enable/disable
; bit 5 normal/alternate attributes
; bit 6-7 unused
PALETTE_REG EQU 1CH
ID_MASK EQU 01110000B ; to detect the presence of
ID_CODE EQU 01010000B ; a GB222 (InColor card)
MOTOROLA_6845 EQU 3DAH
REVERSE_BIT EQU 1
UNDERLINE_BIT EQU 2
NORMAL_BIT EQU 4
BOLD_BIT EQU 8
BIOS_SEG SEGMENT AT 40H
ORG 49H
crt_mode DB ?
crt_cols DW ?
crt_len DW ?
crt_start DW ?
cursor_posn DW ?
ORG 84H
crt_rows DB ?
BIOS_SEG ENDS
.DATA?
EXTRN HerculesInColor:BYTE
EXTRN __attrib:WORD
EXTRN _desqview:BYTE
EXTRN _cursor_column:BYTE
EXTRN _cursor_row:BYTE
EXTRN _cursor_location:WORD
EXTRN _cursor_value:WORD
EXTRN _scr_rows:BYTE
EXTRN _scr_cols:BYTE
EXTRN is_mono:BYTE
topview DB ?
HerculesReset DB ? ; Non-zero if users palette was loaded
; Zero if to reset to Default palette
.DATA
EXTRN _display_segment:WORD
EXTRN _display_offset:WORD
EXTRN _retrace_wait:BYTE
EXTRN _force_mono:BYTE
EXTRN _on_cursor_value:WORD
EXTRN _off_cursor_value:WORD
old_video_mode DB 0FFH
; EGA/VGA compatable palette defined below. This area is also used for the
; buffer when reading the user desired palette from the HPAL file.
;
HerculesPalette DB 0, 1, 2, 3, 4, 5, 20, 7, 56, 57, 58, 59, 60, 61, 62, 63
DB 00010011B ; Palette enabled, alternate attributes
; Cursor Color set to palette index 3
DB 01101101B ; Underscore color = index 6, line = 13
PALETTE_LENGTH EQU ($ - HerculesPalette)
EXTRN PASCAL LoadHerculesPalette:FAR
EXTRN PASCAL SetTopview:FAR
.CODE FAR_TEXT
;*** The following macro generates code to wait for horizontal retrace
;*** intervals. This is necessary to prevent screen snow when using the
;*** IBM color adapter. Interrupts are disabled during the wait.
;*** DX must have the address of the Motorola 6845 status port.
;*** AL is clobbered.
RetraceWait MACRO
LOCAL WaitForLow, WaitForHigh
WaitForLow: IN AL, DX
RCR AL, 1
JC WaitForLow
CLI
WaitForHigh: IN AL, DX
RCR AL, 1
JNC WaitForHigh
ENDM
CheckHercules PROC NEAR USES ES SI
mov ax, 40H
mov es, ax
mov si, 6CH
mov HerculesInColor, 0 ;Pre-set for not Hercules
mov dx, STATUS_PORT ; record state
in al, dx
and al, 80h ; save bit 7 for test
mov bl, al
mov cx, es:[si]
@@: in al, dx ; take another reading
and al, 80h ; again, save bit seven
cmp al, bl
jne hgc_ok ; if bit 7 changes, then it
mov ax, es:[si]
sub ax, cx
cmp ax, 2
jb @B ;No - keep looking
jmp SHORT exit ; Test failed - leave flag zero
hgc_ok: in al, dx ; test for GB222
and al, ID_MASK ; clear all but bits 4, 5, and 6
cmp al, ID_CODE ; test ID bits
jne exit ; exit if failed - not a GB222
inc HerculesInColor ; It is a GB222, set flag non-zero
exit: ret
CheckHercules ENDP
; SetHerculesPalette loads the HerculesPalette data into the InColor palette
; registers, enables the palette and the alternate
; attribute set.
SetHerculesPalette PROC
mov dx, INDEX_REG
mov al, PALETTE_REG ; point at GB222 palette registers
out dx, al
inc dx ; increment to 6845 data register
in al, dx ; reset the palette pointer
mov cx, 16 ; 16 registers in the palette
mov si, OFFSET HerculesPalette
@@: lodsb ; load 1st 16 bytes into color index
out dx, al ; registers
loop @B
dec dx ; Set Palette, Attribute set, and cursor color
mov al, EXCEPTION_REG
out dx, al
inc dx
lodsb
out dx, al
dec dx ; Set the underscore position and color
mov al, UNDERSCORE_REG
out dx, al
inc dx
lodsb
out dx, al
mov dx, DMC_PORT
mov al, 00001000B ; Page zero, blink off, enable video,
out dx, al ; text mode
ret
SetHerculesPalette ENDP
; Sets Hercules InColor card to default (hardware) settings. This routine is
; called if the users palette could not be loaded for any reason.
;
SetHerculesDefault PROC
mov dx, INDEX_REG
mov al, EXCEPTION_REG
out dx, al
inc dx
mov al, 00100000B ; Normal attributes, palette disabled
out dx, al
dec dx
mov al, UNDERSCORE_REG
out dx, al
inc dx
mov al, 0 ; reset underscore register
out dx, al
ret
SetHerculesDefault ENDP
init_scr PROC FAR USES BP DI SI
LOCAL mode_set:WORD
;* extern int _far _pascal init_scr(void);
mov _scr_rows, 25
mov _scr_cols, 80
xor ax, ax
mov _retrace_wait, al
mov mode_set, ax
mov ah, 1AH ;AH = 0x1A, AL = 0
INT 10H
cmp al, 1AH
jne check_ega
cmp bl, 2
jne determine_mode
need_retrace: inc _retrace_wait
jmp short determine_mode
check_ega: mov ah, 12H
mov bl, 10H
INT 10H
cmp bl, 10H
jne determine_mode
INT 11H ;Get BIOS equipment list
and al, 30H
cmp al, 30H
jne need_retrace
determine_mode: mov ah, 15
INT 10H
mov old_video_mode, al
cmp ah, 80 ; Insure we are in 80 column mode
jne set_mode
cmp al, 7
je check_rows
cmp al, 3
jne set_mode
check_rows: mov bx, 40H
mov es, bx
mov bl, es:crt_rows
cmp bl, 24 ; 25 line mode OK
je save_rows
cmp bl, 42 ; 43 line mode OK
je save_rows
cmp bl, 49
je save_rows
set_mode: mov ax, 3
INT 10H
inc mode_set
mov bl, es:crt_rows
cmp bl, 24 ; 25 line mode OK
je save_rows
cmp bl, 42
je save_rows
cmp bl, 49
jne determine_seg
save_rows: inc bl
mov _scr_rows, bl
determine_seg: mov ah, 3
INT 10H
mov _cursor_location, dx
mov _cursor_value, cx
mov ah, 15
INT 10H
cmp al, 7
je mono_seg
color_seg: mov _display_segment, 0B800H
mov is_mono, 0
mov _on_cursor_value, 0607H
mov _off_cursor_value, 2607H
jmp short check_dv
mono_seg: mov _display_segment, 0B000H
mov is_mono, 1
mov _on_cursor_value, 0B0CH
mov _off_cursor_value, 2B0CH
mov _retrace_wait, 0
call CheckHercules ; See if we are on an InColor Card
cmp HerculesInColor, 0
je check_dv
call SetHerculesPalette ; Set Palette to EGA/VGA colors
; If using an InColor card, load (but do not set) the users default palette.
; Restore_screen may be called from the critical error handler. During
; critical error handling the users palette could not be loaded as the load
; process involves DOS I/O. However, since we load the users palette here,
; there is no problem calling restore_screen from the critical error
; handler.
push ds ; Seg:offset of palette buffer
mov ax, OFFSET HerculesPalette
push ax
mov ax, PALETTE_LENGTH
push ax ; buffer length
call LoadHerculesPalette
mov HerculesReset, al
check_dv: mov _desqview, 0
mov topview, 0
mov cx, 'DE'
mov dx, 'SQ'
mov ax, 2B01H
int 21H
cmp al, 0FFH
je @F
inc _desqview
@@: mov es, _display_segment
mov di, _display_offset
mov ah, 0FEH
INT 10H ;Check for TopView windowing
mov ax, es
cmp ax, _display_segment
jne display_change
cmp di, _display_offset
je init_done
display_change: mov _display_segment, es
mov _display_offset, di
mov _retrace_wait, 0
cmp _desqview, 0
jne init_done
inc topview ;Topview (needs update calls)
mov al, topview
call SetTopview
init_done: mov ax, mode_set
ret
init_scr ENDP
restore_scr PROC FAR USES BP DI SI, restore_mode:WORD
;* extern void _far _pascal restore_scr(int restore_mode);
cmp HerculesInColor, 0
je reset_mode
cmp HerculesReset, 0
je @F
call SetHerculesPalette
jmp short reset_mode
@@: call SetHerculesDefault
reset_mode: cmp restore_mode, 0
je restore_ret
mov al, old_video_mode
xor ah, ah
INT 10H
restore_ret: ret
restore_scr ENDP
END
| 32.03038 | 86 | 0.453209 |
8ad28c6b3bd26f6b64d5058106dcf4734eb4a420 | 970 | asm | Assembly | programs/oeis/187/A187180.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/187/A187180.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/187/A187180.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A187180: Parse the infinite string 0101010101... into distinct phrases 0, 1, 01, 010, 10, ...; a(n) = length of n-th phrase.
; 1,1,2,3,2,3,4,5,4,5,6,7,6,7,8,9,8,9,10,11,10,11,12,13,12,13,14,15,14,15,16,17,16,17,18,19,18,19,20,21,20,21,22,23,22,23,24,25,24,25,26,27,26,27,28,29,28,29,30,31,30,31,32,33,32,33,34,35,34,35,36,37,36,37,38,39,38,39,40,41,40,41,42,43,42,43,44,45,44,45,46,47,46,47,48,49,48,49,50,51,50,51,52,53,52,53,54,55,54,55,56,57,56,57,58,59,58,59,60,61,60,61,62,63,62,63,64,65,64,65,66,67,66,67,68,69,68,69,70,71,70,71,72,73,72,73,74,75,74,75,76,77,76,77,78,79,78,79,80,81,80,81,82,83,82,83,84,85,84,85,86,87,86,87,88,89,88,89,90,91,90,91,92,93,92,93,94,95,94,95,96,97,96,97,98,99,98,99,100,101,100,101,102,103,102,103,104,105,104,105,106,107,106,107,108,109,108,109,110,111,110,111,112,113,112,113,114,115,114,115,116,117,116,117,118,119,118,119,120,121,120,121,122,123,122,123,124,125,124,125
mov $1,$0
mod $0,4
add $1,$0
sub $1,1
div $1,2
add $1,1
| 97 | 785 | 0.670103 |
19bff40b3275e007155c8e9ec041cb4b03a2509d | 242 | asm | Assembly | mc-sema/validator/x86/tests/FYL2X.asm | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 2 | 2021-08-07T16:21:29.000Z | 2021-11-17T10:58:37.000Z | mc-sema/validator/x86/tests/FYL2X.asm | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | null | null | null | mc-sema/validator/x86/tests/FYL2X.asm | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | null | null | null | BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_FPU_PE
;TEST_FILE_META_END
lea edi, [esp-0xc]
mov word [edi], 0x10
FILD word [edi]
FILD word [edi]
;TEST_BEGIN_RECORDING
FYL2X ;st1 = 16 * log2(16)
;TEST_END_RECORDING
| 15.125 | 29 | 0.77686 |
cc10d44a0ce9e10d432a6970cbba6daa91189536 | 2,142 | asm | Assembly | mbr/bootsector2/move.asm | icecoobe/oslab | bd282e0f1249f6db5f0cc8daa2da05976f173012 | [
"Unlicense"
] | 52 | 2019-04-13T01:50:34.000Z | 2022-01-14T02:08:32.000Z | mbr/bootsector2/move.asm | icecoobe/oslab | bd282e0f1249f6db5f0cc8daa2da05976f173012 | [
"Unlicense"
] | 1 | 2016-04-08T08:35:34.000Z | 2018-08-31T16:45:06.000Z | mbr/bootsector2/move.asm | icecoobe/nasm | bd282e0f1249f6db5f0cc8daa2da05976f173012 | [
"Unlicense"
] | 19 | 2019-04-21T03:48:31.000Z | 2022-01-07T08:18:57.000Z |
org 6000h
row resb 1 ;
col resb 1 ;
start:
;; 将DS ES与CS保持一致, 指向相同的段
;; 在数据操作时候, 能够正确定位到.
mov ax, cs
mov ds, ax
mov es, ax
;; 640x200 彩色EGA模式
;mov ax, 000Eh
;int 10h
mov al, 32
call Disp1ByteInHex
call dispdate
mov byte [row], 10h
mov byte [col], 10h
mov ch, 0h
mov cl, 7h
mov ah, 1
int 10h
call movecursor
inkey:
mov ah,0
int 16H ;调用BIOS中断,获取键盘扫描码
cmp ah, 48H ;方向键"上"的通码
jz up ;如果按下"上",跳转到"up"
cmp ah, 50H ;方向键"下"的通码
jz down
cmp ah, 4Bh
jz left
cmp ah, 4Dh
jz right
;; 在光标位置显示字符al
mov cx, 1
mov bh, 0
mov ah, 0ah
int 10h
;cmp ah, 1CH ;回车的通码
;;jz enter ;同理
jmp inkey ;;short inkey
up:
sub byte [row], 1
call movecursor
jmp inkey
down:
add byte [row], 1
call movecursor
jmp inkey
left:
sub byte [col], 1
call movecursor
jmp inkey
right:
add byte [col], 1
call movecursor
jmp inkey
;; func_puts
;; ax: 字符串的首地址
;; cx: 长度
func_puts:
mov bp, ax ; ES:BP = 串地址
;;mov cx, 12 ; CX = 串长度
mov ax, 1301h ; AH = 13, AL = 01h
;;mov bx, 000ch ; 页号为0(BH = 0) 黑底红字(BL = 0Ch,高亮)
mov bx, 00AFh ; 页号为0(BH = 0) 绿底白字(BL = AFh,高亮)
mov dl, 0
int 10h ; 10h 号中断
ret
;; al
func_putc:
mov ah, 0EH ; 显示字符
mov bx, 0007H
int 10h
ret
;; movecursor
;; dh: row
;; dl: col
movecursor:
mov dh, [row]
mov dl, [col]
mov bh, 0
mov ah, 02h
int 10h
ret
;; 对于子过程还需要继续实验, 目前的方法可能不是最佳的
Disp4Bit:
cmp al, 0
jae CMP_9
CMP_9:
cmp al, 9
jbe Disp09
cmp al, 15
jbe DispAF
ja DispNG
Disp09:
add al, '0'
call func_putc
ret
DispAF:
sub al, 10
add al, 'A'
call func_putc
ret
DispNG:
mov al, 'N'
call func_putc
ret
;; 以16进制显示1字节的数
;;
;; [输入]:
;; al
;; [输出]:
;; 会改变ax, bx的内容
Disp1ByteInHex:
mov bl, al
xor ax, ax
mov al, bl
mov bl, 16
div bl
mov bh, ah
call Disp4Bit
mov al, bh
call Disp4Bit
ret
dispdate:
mov ah, 04h
int 1Ah
mov al, CH
call Disp1ByteInHex
mov al, CL
call Disp1ByteInHex
mov al, DH
call Disp1ByteInHex
mov al, DL
call Disp1ByteInHex
ret
times (512-($-$$) - 2) db 0
;;size equ $ - start
;;%if size+2 >512
;;%error "code is too large forboot sector"
;;%endif
db 0x55, 0xAA ;2 byte boot signature `
| 12.903614 | 51 | 0.623249 |
3e9e0d7bcc6a68decea899a82fc84a957b05a023 | 4,576 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2078.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2078.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2078.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x9951, %rsi
lea addresses_WC_ht+0xeea1, %rdi
nop
nop
nop
cmp %r12, %r12
mov $17, %rcx
rep movsw
xor %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %rbp
push %rbx
push %rcx
push %rdx
// Store
lea addresses_US+0x17771, %rbx
nop
nop
nop
nop
nop
xor %r14, %r14
mov $0x5152535455565758, %rdx
movq %rdx, (%rbx)
nop
nop
nop
dec %rdx
// Store
lea addresses_PSE+0x143c1, %r12
nop
nop
nop
inc %rcx
movw $0x5152, (%r12)
nop
nop
nop
inc %rdx
// Faulty Load
lea addresses_UC+0x188c1, %r12
nop
xor $45454, %r8
movb (%r12), %cl
lea oracles, %r12
and $0xff, %rcx
shlq $12, %rcx
mov (%r12,%rcx,1), %rcx
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 3, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': True}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 49.73913 | 2,999 | 0.660839 |
9a17a5236c9cc79276e1c58ac07dc6f00596b157 | 626 | asm | Assembly | oeis/248/A248697.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/248/A248697.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/248/A248697.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A248697: Primes of the form k+(k+3)^2 where k is a nonnegative integer.
; Submitted by Jamie Morken(w2)
; 17,53,107,179,269,503,647,809,1187,1637,1889,2447,2753,3779,4157,4967,5399,5849,6317,6803,7307,7829,8369,10709,11987,12653,13337,14759,15497,16253,17027,19457,26729,29753,31859,32939,35153,38609,42227,44729,47303,52667,55457,61253,65789,68903,70487,72089,73709,75347
mov $2,332202
mov $5,-2
lpb $2
mov $3,$6
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,18
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,18
add $5,$1
mov $6,$5
lpe
mov $0,$6
add $0,1
| 28.454545 | 268 | 0.691693 |
5bd99638f3f5a76a3a4163b4917b1b746e2d2bda | 418 | asm | Assembly | oeis/072/A072205.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/072/A072205.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/072/A072205.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A072205: a(n) = (p^2 - p + 2)/2 for p = prime(n); number of squares modulo p^2.
; Submitted by Jamie Morken(w2)
; 2,4,11,22,56,79,137,172,254,407,466,667,821,904,1082,1379,1712,1831,2212,2486,2629,3082,3404,3917,4657,5051,5254,5672,5887,6329,8002,8516,9317,9592,11027,11326,12247,13204,13862,14879,15932,16291,18146,18529
mul $0,2
trn $0,1
seq $0,147846 ; Triangular numbers n*(n+1)/2 with n or n+1 prime.
add $0,1
| 46.444444 | 209 | 0.705742 |
386dd10a6292f9b1075406e286af407bb1464684 | 468 | asm | Assembly | _maps/obj24.asm | NatsumiFox/AMPS-Sonic-1-2005 | ac8730799f1b96291358c77a4b64529de94ce8a4 | [
"Apache-2.0"
] | 2 | 2020-04-09T19:36:35.000Z | 2021-01-05T14:20:17.000Z | _maps/obj24.asm | NatsumiFox/AMPS-Sonic-1-2005 | ac8730799f1b96291358c77a4b64529de94ce8a4 | [
"Apache-2.0"
] | null | null | null | _maps/obj24.asm | NatsumiFox/AMPS-Sonic-1-2005 | ac8730799f1b96291358c77a4b64529de94ce8a4 | [
"Apache-2.0"
] | 1 | 2020-06-17T14:16:35.000Z | 2020-06-17T14:16:35.000Z | ; ---------------------------------------------------------------------------
; Sprite mappings - explosion
; ---------------------------------------------------------------------------
dc.w byte_8EAE-Map_obj24, byte_8EB4-Map_obj24
dc.w byte_8EBA-Map_obj24, byte_8EC0-Map_obj24
byte_8EAE: dc.b 1
dc.b $F4, $A, 0, 0, $F4
byte_8EB4: dc.b 1
dc.b $F4, $A, 0, 9, $F4
byte_8EBA: dc.b 1
dc.b $F4, $A, 0, $12, $F4
byte_8EC0: dc.b 1
dc.b $F4, $A, 0, $1B, $F4
even | 33.428571 | 77 | 0.425214 |
19636040f755e91cc57538574168f338e786c9e4 | 2,613 | asm | Assembly | programs/oeis/172/A172075.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/172/A172075.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/172/A172075.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A172075: a(n) = n*(n+1)*(9*n^2 - n - 5)/6.
; 0,1,29,146,450,1075,2191,4004,6756,10725,16225,23606,33254,45591,61075,80200,103496,131529,164901,204250,250250,303611,365079,435436,515500,606125,708201,822654,950446,1092575,1250075,1424016,1615504,1825681,2055725,2306850,2580306,2877379,3199391,3547700,3923700,4328821,4764529,5232326,5733750,6270375,6843811,7455704,8107736,8801625,9539125,10322026,11152154,12031371,12961575,13944700,14982716,16077629,17231481,18446350,19724350,21067631,22478379,23958816,25511200,27137825,28841021,30623154,32486626,34433875,36467375,38589636,40803204,43110661,45514625,48017750,50622726,53332279,56149171,59076200,62116200,65272041,68546629,71942906,75463850,79112475,82891831,86805004,90855116,95045325,99378825,103858846,108488654,113271551,118210875,123310000,128572336,134001329,139600461,145373250,151323250,157454051,163769279,170272596,176967700,183858325,190948241,198241254,205741206,213451975,221377475,229521656,237888504,246482041,255306325,264365450,273663546,283204779,292993351,303033500,313329500,323885661,334706329,345795886,357158750,368799375,380722251,392931904,405432896,418229825,431327325,444730066,458442754,472470131,486816975,501488100,516488356,531822629,547495841,563512950,579878950,596598871,613677779,631120776,648933000,667119625,685685861,704636954,723978186,743714875,763852375,784396076,805351404,826723821,848518825,870741950,893398766,916494879,940035931,964027600,988475600,1013385681,1038763629,1064615266,1090946450,1117763075,1145071071,1172876404,1201185076,1230003125,1259336625,1289191686,1319574454,1350491111,1381947875,1413951000,1446506776,1479621529,1513301621,1547553450,1582383450,1617798091,1653803879,1690407356,1727615100,1765433725,1803869881,1842930254,1882621566,1922950575,1963924075,2005548896,2047831904,2090780001,2134400125,2178699250,2223684386,2269362579,2315740911,2362826500,2410626500,2459148101,2508398529,2558385046,2609114950,2660595575,2712834291,2765838504,2819615656,2874173225,2929518725,2985659706,3042603754,3100358491,3158931575,3218330700,3278563596,3339638029,3401561801,3464342750,3527988750,3592507711,3657907579,3724196336,3791382000,3859472625,3928476301,3998401154,4069255346,4141047075,4213784575,4287476116,4362130004,4437754581,4514358225,4591949350,4670536406,4750127879,4830732291,4912358200,4995014200,5078708921,5163451029,5249249226,5336112250,5424048875,5513067911,5603178204,5694388636,5786708125
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
mov $4,1
mov $6,$0
sub $6,1
mul $6,6
add $4,$6
mov $5,$0
pow $5,2
mov $6,$4
mul $6,$5
add $1,$6
lpe
| 124.428571 | 2,384 | 0.854573 |
5a5fbe8de9a55c43c15b0af2be966d626e7d8a5b | 405 | asm | Assembly | oeis/040/A040030.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/040/A040030.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/040/A040030.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A040030: Continued fraction for sqrt(37).
; Submitted by Christian Krause
; 6,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12
min $0,1
add $0,1
mul $0,6
| 50.625 | 300 | 0.674074 |
2f0f1191f947f103742b82a60009b082b40b8720 | 5,317 | asm | Assembly | 8-AVR/LCD_show_number_decimal.asm | etzinis/micro_lab_ntua | 968bfe3f438c5f10607ec76921bf73214f831254 | [
"MIT"
] | null | null | null | 8-AVR/LCD_show_number_decimal.asm | etzinis/micro_lab_ntua | 968bfe3f438c5f10607ec76921bf73214f831254 | [
"MIT"
] | null | null | null | 8-AVR/LCD_show_number_decimal.asm | etzinis/micro_lab_ntua | 968bfe3f438c5f10607ec76921bf73214f831254 | [
"MIT"
] | null | null | null | .include "m16def.inc"
.def hundreds=r17
.def decades=r18
.def units=r19
.def counter=r20
ldi r26,low(RAMEND) ;initialize stack pointer
out SPL,r26
ldi r26,high(RAMEND)
out SPH,r26
clr r26
out DDRB,r26 ;set PINB as input
ldi r24,0xfc
out DDRD ,r24 ;set PORTD as output
call lcd_init ;initialize the lcd screen
start:
in r26,PINB ;read the input
mov r23,r26
backagain:
ldi r24 ,0x01 ; clear display
rcall lcd_command
ldi r24 ,low(1530)
ldi r25 ,high(1530)
rcall wait_usec
mov r28,r26 ;r28 has the value of the input
ldi counter,8
loopa:
mov r30,r28 ;loop to show the binary number we read to the lcd screen
andi r30,0x80
cpi r30,0x80
brne not_equal
ldi r24,'1'
jmp show
not_equal:
ldi r24,'0'
show: call lcd_data
lsl r28
dec counter
cpi counter,0
brne loopa
ldi r24,'=' ;show '=' to the lcd screen
call lcd_data
mov r27,r26
andi r26,0x80
cpi r26,0x80 ;check if the value we read is negative(check if the 7-bit is equal to 1)
brne positive
ldi r24,'-' ;if so get the compliment of 2 of the value and show '-' to the lcd screen
call lcd_data
neg r27
jmp next
positive:
ldi r24,'+' ;if not just show '+' to the lcd screen
call lcd_data
next: ;get the bcd value of the binary number we read
ldi hundreds,0
ldi decades,0
ldi units,0
cpi r27,100
brlo hundreds_ok
ldi hundreds,1
subi r27,100
hundreds_ok:
cpi r27,10
brlo decades_ok
inc decades
subi r27,10
jmp hundreds_ok
decades_ok:
mov units,r27
ldi r21,0x30
add hundreds,r21 ;show the number of hundreds to the lcd screen
mov r24,hundreds
call lcd_data
ldi r21,0x30
add decades,r21 ;show the number of decades to the lcd screen
mov r24,decades
call lcd_data
ldi r21,0x30
add units,r21 ;show the number of units to the lcd screen
mov r24,units
call lcd_data
wait: in r26,PINB
cp r26,r23
breq wait
mov r23,r26
jmp backagain ;continuous functionality
write_2_nibbles:
push r24 ; st???e? ta 4 MSB
in r25 ,PIND ; d?aß????ta? ta 4 LSB ?a? ta ?a?ast?????µe
andi r25 ,0x0f ; ??a ?a µ?? ?a??s??µe t?? ?p??a p??????µe?? ?at?stas?
andi r24 ,0xf0 ; ap?µ??????ta? ta 4 MSB ?a?
add r24 ,r25 ; s??d?????ta? µe ta p???p?????ta 4 LSB
out PORTD ,r24 ; ?a? d????ta? st?? ???d?
sbi PORTD ,PD3 ; d?µ?????e?ta? pa?µ?? ?nable st?? a???d??t? PD3
cbi PORTD ,PD3 ; PD3=1 ?a? µet? PD3=0
pop r24 ; st???e? ta 4 LSB. ??a?t?ta? t? byte.
swap r24 ; e?a???ss??ta? ta 4 MSB µe ta 4 LSB
andi r24 ,0xf0 ; p?? µe t?? se??? t??? ap?st?????ta?
add r24 ,r25
out PORTD ,r24
sbi PORTD ,PD3 ; ???? pa?µ?? ?nable
cbi PORTD ,PD3
ret
lcd_data:
sbi PORTD ,PD2 ; ep????? t?? ?ata????t? ded?µ???? (PD2=1)
rcall write_2_nibbles ; ap?st??? t?? byte
ldi r24 ,43 ; a?aµ??? 43µsec µ???? ?a ?????????e? ? ????
ldi r25 ,0 ; t?? ded?µ???? ap? t?? e?e??t? t?? lcd
rcall wait_usec
ret
lcd_command:
cbi PORTD ,PD2 ; ep????? t?? ?ata????t? e?t???? (PD2=1)
rcall write_2_nibbles ; ap?st??? t?? e?t???? ?a? a?aµ??? 39µsec
ldi r24 ,39 ; ??a t?? ????????s? t?? e?t??es?? t?? ap? t?? e?e??t? t?? lcd.
ldi r25 ,0 ; S??.: ?p?????? d?? e?t????, ?? clear display ?a? return home,
rcall wait_usec ; p?? apa?t??? s?µa?t??? µe?a??te?? ??????? d??st?µa.
ret
lcd_init:
ldi r24 ,40 ; ?ta? ? e?e??t?? t?? lcd t??f?d?te?ta? µe
ldi r25 ,0 ; ?e?µa e?te?e? t?? d??? t?? a?????p???s?.
rcall wait_msec ; ??aµ??? 40 msec µ???? a?t? ?a ?????????e?.
ldi r24 ,0x30 ; e?t??? µet?ßas?? se 8 bit mode
out PORTD ,r24 ; epe?d? de? µp????µe ?a e?µaste ß?ßa???
sbi PORTD ,PD3 ; ??a t? d?aµ??f?s? e?s?d?? t?? e?e??t?
cbi PORTD ,PD3 ; t?? ??????, ? e?t??? ap?st???eta? d?? f????
ldi r24 ,39
ldi r25 ,0 ; e?? ? e?e??t?? t?? ?????? ß??s?eta? se 8-bit mode
rcall wait_usec ; de? ?a s?µße? t?p?ta, a??? a? ? e?e??t?? ??e? d?aµ??f?s?
; e?s?d?? 4 bit ?a µetaße? se d?aµ??f?s? 8 bit
ldi r24 ,0x30
out PORTD ,r24
sbi PORTD ,PD3
cbi PORTD ,PD3
ldi r24 ,39
ldi r25 ,0
rcall wait_usec
ldi r24 ,0x20 ; a??a?? se 4-bit mode
out PORTD ,r24
sbi PORTD ,PD3
cbi PORTD ,PD3
ldi r24 ,39
ldi r25 ,0
rcall wait_usec
ldi r24 ,0x28 ; ep????? ?a?a?t???? µe?????? 5x8 ?????d??
rcall lcd_command ; ?a? eµf???s? d?? ??aµµ?? st?? ?????
ldi r24 ,0x0c ; e?e???p???s? t?? ??????, ap?????? t?? ???s??a
rcall lcd_command
ldi r24 ,0x01 ; ?a?a??sµ?? t?? ??????
rcall lcd_command
ldi r24 ,low(1530)
ldi r25 ,high(1530)
rcall wait_usec
ldi r24 ,0x06 ; e?e???p???s? a?t?µat?? a???s?? ?at? 1 t?? d?e????s??
rcall lcd_command ; p?? e??a? ap????e?µ??? st?? µet??t? d?e????se?? ?a?
; ape?e???p???s? t?? ???s??s?? ????????? t?? ??????
ret
;delay routines
wait_usec:
sbiw r24 ,1 ;2 cycle (0.250 micro sec)
nop ;1 cycle (0.125 micro sec)
nop
nop
nop
brne wait_usec ;1 or 2 cycles (0.125 or 0.250 micro sec)
ret ;4 cycles (0.500 micro sec)
wait_msec:
push r24
push r25
ldi r24 , low(998)
ldi r25 , high(998)
rcall wait_usec
pop r25
pop r24
sbiw r24 , 1
brne wait_msec
ret
| 27.127551 | 91 | 0.549182 |
692b3c7314413c7e0c5580a6000bcdfe6b0216aa | 1,946 | asm | Assembly | programs/oeis/270/A270109.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/270/A270109.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/270/A270109.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A270109: a(n) = n^3 + (n+1)*(n+2).
; 2,7,20,47,94,167,272,415,602,839,1132,1487,1910,2407,2984,3647,4402,5255,6212,7279,8462,9767,11200,12767,14474,16327,18332,20495,22822,25319,27992,30847,33890,37127,40564,44207,48062,52135,56432,60959,65722,70727,75980,81487,87254,93287,99592,106175,113042,120199,127652,135407,143470,151847,160544,169567,178922,188615,198652,209039,219782,230887,242360,254207,266434,279047,292052,305455,319262,333479,348112,363167,378650,394567,410924,427727,444982,462695,480872,499519,518642,538247,558340,578927,600014,621607,643712,666335,689482,713159,737372,762127,787430,813287,839704,866687,894242,922375,951092,980399,1010302,1040807,1071920,1103647,1135994,1168967,1202572,1236815,1271702,1307239,1343432,1380287,1417810,1456007,1494884,1534447,1574702,1615655,1657312,1699679,1742762,1786567,1831100,1876367,1922374,1969127,2016632,2064895,2113922,2163719,2214292,2265647,2317790,2370727,2424464,2479007,2534362,2590535,2647532,2705359,2764022,2823527,2883880,2945087,3007154,3070087,3133892,3198575,3264142,3330599,3397952,3466207,3535370,3605447,3676444,3748367,3821222,3895015,3969752,4045439,4122082,4199687,4278260,4357807,4438334,4519847,4602352,4685855,4770362,4855879,4942412,5029967,5118550,5208167,5298824,5390527,5483282,5577095,5671972,5767919,5864942,5963047,6062240,6162527,6263914,6366407,6470012,6574735,6680582,6787559,6895672,7004927,7115330,7226887,7339604,7453487,7568542,7684775,7802192,7920799,8040602,8161607,8283820,8407247,8531894,8657767,8784872,8913215,9042802,9173639,9305732,9439087,9573710,9709607,9846784,9985247,10125002,10266055,10408412,10552079,10697062,10843367,10991000,11139967,11290274,11441927,11594932,11749295,11905022,12062119,12220592,12380447,12541690,12704327,12868364,13033807,13200662,13368935,13538632,13709759,13882322,14056327,14231780,14408687,14587054,14766887,14948192,15130975,15315242,15500999
mov $1,$0
mul $1,$0
add $1,3
add $1,$0
mul $1,$0
add $1,2
| 194.6 | 1,849 | 0.844296 |
1a4e6e22d14121d0aeb2124751a3b845a5f721f3 | 2,306 | asm | Assembly | msx/apps/utils.asm | zoggins/yellow-msx-series-for-rc2014 | dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd | [
"MIT"
] | 19 | 2021-02-20T11:48:37.000Z | 2022-03-14T21:02:14.000Z | msx/apps/utils.asm | zoggins/yellow-msx-series-for-rc2014 | dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd | [
"MIT"
] | 3 | 2021-06-11T06:07:16.000Z | 2021-11-14T07:43:11.000Z | msx/apps/utils.asm | zoggins/yellow-msx-series-for-rc2014 | dbc95fa1480bc7bc541fd985fb4a67aab6c8b0fd | [
"MIT"
] | 2 | 2021-05-03T19:09:36.000Z | 2021-11-13T19:16:52.000Z |
EXTERN CPUSCL
PUBLIC VDELAY, DELAY
SECTION CODE
include "cfg.inc"
; DELAY 16US * DE (CPU SPEED COMPENSATED)
; REGISTER DE, A, AND FLAGS DESTROYED
; NO COMPENSATION FOR Z180 MEMORY WAIT STATES
; THERE IS A 27TS OVERHEAD FOR CALL/RET PER INVOCATION
; IMPACT OF OVERHEAD DIMINISHES AS DE AND/OR CPU SPEED INCREASES
;
; CPU SCALER (CPUSCL) = (CPUHMZ - 2) FOR 16US OUTER LOOP COST
; NOTE: CPUSCL MUST BE > 0!
;
; EXAMPLE: 8MHZ CPU, DE=6250 (DELAY GOAL IS .1 SEC OR 100,000US)
; INNER LOOP = ((16 * 6) - 5) = 91TS
; OUTER LOOP = ((91 + 37) * 6250) = 800,000TS
; ACTUAL DELAY = ((800,000 + 27) / 8) = 100,003US
;
; --- TOTAL COST = (OUTER LOOP + 27) TS ------------------------+
VDELAY: ; 17TS (FROM INVOKING CALL) |
; |
; --- OUTER LOOP = ((INNER LOOP + 37) * DE) TS ---------+ |
LD A,(CPUSCL) ; 13TS | |
; | |
VDELAY1: ; | |
; --- INNER LOOP = ((CPUSCL * 16) - 5) TS ------+ | |
DEC A ; 4TS | | |
JR NZ,VDELAY1 ; 12TS (NZ) / 7TS (Z) | | |
; ----------------------------------------------+ | |
; | |
DEC DE ; 6TS | |
LD A,D ; 4TS | |
OR E ; 4TS | |
JP NZ,VDELAY ; 10TS | |
;-------------------------------------------------------+ |
; |
RET ; 10TS (FINAL RETURN) |
;---------------------------------------------------------------+
; DELAY 16US (CPU SPEED COMPENSATED) INCUDING CALL/RET INVOCATION
; REGISTER A AND FLAGS DESTROYED
; NO COMPENSATION FOR Z180 MEMORY WAIT STATES
; THERE IS AN OVERHEAD OF 3TS PER INVOCATION
; IMPACT OF OVERHEAD DIMINISHES AS CPU SPEED INCREASES
;
; CPU SCALER (CPUSCL) = (CPUHMZ - 2) FOR 16US + 3TS DELAY
; NOTE: CPUSCL MUST BE >= 1!
;
; EXAMPLE: 8MHZ CPU (DELAY GOAL IS 16US)
; LOOP = ((6 * 16) - 5) = 91TS
; TOTAL COST = (91 + 40) = 131TS
; ACTUAL DELAY = (131 / 8) = 16.375US
;
; --- TOTAL COST = (LOOP COST + 40) TS -----------------+
DELAY: ; 17TS (FROM INVOKING CALL) |
LD A,(CPUSCL) ; 13TS |
; |
DELAY1: ; |
; --- LOOP = ((CPUSCL * 16) - 5) TS ------------+ |
DEC A ; 4TS | |
JR NZ,DELAY1 ; 12TS (NZ) / 7TS (Z) | |
; ----------------------------------------------+ |
; |
RET ; 10TS (RETURN) |
;-------------------------------------------------------+
;
SECTION DATA
CPUSCL: DB CPUMHZ - 2 ; OTHERWISE 2 LESS THAN PHI MHZ
| 29.948052 | 66 | 0.481787 |
89bdee547ad5400e8f58b55aabc7a21378a21e30 | 802 | asm | Assembly | libsrc/target/zx/zx_lprintc.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/target/zx/zx_lprintc.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/target/zx/zx_lprintc.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
; ZX printer for the ZX spectrum, print character via ROM call
;
; (HL)=char to display
;
;----------------------------------------------------------------
;
; $Id: zx_lprintc.asm $
;
;----------------------------------------------------------------
;
SECTION code_clib
PUBLIC zx_lprintc
;IF FORts2068
;EXTERN call_extrom
;ELSE
;EXTERN call_rom3
;ENDIF
.zx_lprintc
ld hl,2
add hl,sp
ld a,(hl)
.doput
IF STANDARDESCAPECHARS
cp 10 ; CR?
jr nz,NoLF
ELSE
cp 13 ; CR?
jr nz,NoLF
ENDIF
ld a,13
.NoLF
ld iy,23610 ; restore the right iy value,
set 1,(iy+1) ; Set "printer in use" flag
;IF FORts2068
rst 16
;ELSE
; call call_rom3
; defw 16 ;call ROM3 outc routine
;ENDIF
res 1,(iy+1) ; Reset "printer in use" flag
ret
| 14.581818 | 65 | 0.514963 |
9d4641381fafb29b5e71f2fe5e3ca2387633b351 | 2,036 | asm | Assembly | src/test/ref/strip.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/test/ref/strip.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/test/ref/strip.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | // Tests of strip() function from https://news.ycombinator.com/item?id=12080871
// Commodore 64 PRG executable file
.file [name="strip.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 screen = 6
.segment Code
main: {
// strip(msg1, ' ')
ldx #' '
lda #<msg1
sta.z strip.dest
lda #>msg1
sta.z strip.dest+1
jsr strip
// print(msg1)
lda #<$400
sta.z screen
lda #>$400
sta.z screen+1
lda #<msg1
sta.z print.msg
lda #>msg1
sta.z print.msg+1
jsr print
// strip(msg2, 'y')
ldx #'y'
lda #<msg2
sta.z strip.dest
lda #>msg2
sta.z strip.dest+1
jsr strip
// print(msg2)
lda #<msg2
sta.z print.msg
lda #>msg2
sta.z print.msg+1
jsr print
// }
rts
}
// void strip(__zp(8) char *p, __register(X) char c)
strip: {
.label dest = 4
.label p = 8
.label p_1 = 2
lda.z dest
sta.z p_1
lda.z dest+1
sta.z p_1+1
__b1:
// if(*p!=c)
txa
ldy #0
cmp (p_1),y
beq __b2
// *dest++=*p
lda (p_1),y
sta (dest),y
// *dest++=*p;
inc.z dest
bne !+
inc.z dest+1
!:
__b2:
// while(*p++!=0)
clc
lda.z p_1
adc #1
sta.z p
lda.z p_1+1
adc #0
sta.z p+1
ldy #0
lda (p_1),y
cmp #0
bne __b4
// }
rts
__b4:
lda.z p
sta.z p_1
lda.z p+1
sta.z p_1+1
jmp __b1
}
// void print(__zp(2) char *msg)
print: {
.label msg = 2
__b1:
// *screen++ = *msg++
ldy #0
lda (msg),y
sta (screen),y
// *screen++ = *msg++;
inc.z screen
bne !+
inc.z screen+1
!:
inc.z msg
bne !+
inc.z msg+1
!:
// while(*msg!=0)
ldy #0
lda (msg),y
cmp #0
bne __b1
// }
rts
}
.segment Data
msg1: .text "hello world!"
.byte 0
msg2: .text "goodbye blue sky!"
.byte 0
| 16.826446 | 79 | 0.522102 |
6f149838da389e14765fc7e7db1e32b01a443261 | 146 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/ツール/tool/cos2/chip/ys_chip7.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/ツール/tool/cos2/chip/ys_chip7.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/ツール/tool/cos2/chip/ys_chip7.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: ys_chip7.asm
Type: file
Size: 38906
Last-Modified: '2016-05-13T04:52:57Z'
SHA-1: 4585360FB4DACB01E02230CE77D4199E94DF1BA5
Description: null
| 20.857143 | 47 | 0.815068 |
267a191a8d3b7e2fc06d1fd1d7edcd3053d5f9b9 | 57 | asm | Assembly | engine/events/hidden_objects/pokemon_stuff.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | engine/events/hidden_objects/pokemon_stuff.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | engine/events/hidden_objects/pokemon_stuff.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | PokemonStuffText::
text_far _PokemonStuffText
text_end
| 14.25 | 27 | 0.859649 |
f7667d8fea8284377ea03ff2724f30f36a51e792 | 48 | asm | Assembly | 3e.asm | sekharkaredla/8085 | bca7395498d013c0a337f696aad49ead34f8cbdd | [
"MIT"
] | 1 | 2019-07-31T04:41:42.000Z | 2019-07-31T04:41:42.000Z | 3e.asm | sekharkaredla/8085 | bca7395498d013c0a337f696aad49ead34f8cbdd | [
"MIT"
] | null | null | null | 3e.asm | sekharkaredla/8085 | bca7395498d013c0a337f696aad49ead34f8cbdd | [
"MIT"
] | 1 | 2022-01-11T07:50:34.000Z | 2022-01-11T07:50:34.000Z | MVI B,13H
MVI C,17H
ADD B
ADD C
ADI 16H
ADI 14H
| 6.857143 | 9 | 0.708333 |
797aa415f389c756622576990d582343515f6239 | 1,313 | asm | Assembly | src/unittests/unittest_turn.asm | lawrimon/SnakeV | 619a7e3697ef60950960ac0cce4b2f57f25d526f | [
"MIT"
] | 2 | 2021-12-08T18:10:44.000Z | 2022-03-11T09:24:51.000Z | src/unittests/unittest_turn.asm | lawrimon/SnakeV | 619a7e3697ef60950960ac0cce4b2f57f25d526f | [
"MIT"
] | null | null | null | src/unittests/unittest_turn.asm | lawrimon/SnakeV | 619a7e3697ef60950960ac0cce4b2f57f25d526f | [
"MIT"
] | 1 | 2021-11-03T17:10:56.000Z | 2021-11-03T17:10:56.000Z | .data
.include "../global_constants.asm"
.text
#initialization
la s4,snake #Vector of snake
li t0,3 #inital size of snake
sw t0,0(s4) #store size
li t0, 0x0014000F #first element of the snake
sw t0, 4(s4)
li t0, 0x0015000F #second element of the snake
sw t0, 8(s4)
li t0, 0x0016000F #third element of the snake
sw t0, 12(s4)
jal draw_snake
jal turn_right
jal turn_down
jal turn_down
jal turn_left
jal turn_up
li t2, 0x00160010
slli t0,t0,2
add t1,t0,s4 #address of head
lw t1,(t1) #Coordinates of head
bne t1,t2, error_test
li a0, 5 #if program finishes with code 5 the unittest was successfully
li a7,93
ecall
error_test:
li a0, 10 #if program finishes with code 10 the unittest failed
li a7,93
ecall
game_start:
field_init: # labels are needed for inclusion of ui_controller.asm, but won't affect the outcome of this unittest
.include "../draw_functions/draw_pixel.asm"
.include "../draw_functions/draw_point.asm"
.include "../draw_functions/draw_snake.asm"
.include "../game_logic/turn.asm"
.include "../game_logic/convert_coord.asm"
.include "../game_logic/grow_snake.asm"
.include "../game_logic/verification.asm"
.include "../game_logic/selfverification.asm"
.include "../game_logic/fruit.asm"
.include "../game_logic/keyboard.asm"
.include "../user_interface/ui_controller.asm"
| 20.515625 | 113 | 0.749429 |
fb6b5810ec25068483230a4e0d18624bee84961d | 733 | asm | Assembly | MIPS/Pre/矩阵转化.asm | JJLeo/BUAA-CO-2020 | 1d1a3797f7188530464a1dfbe8a017dd01bb817a | [
"MIT"
] | 9 | 2021-03-04T07:22:24.000Z | 2021-11-30T02:56:08.000Z | MIPS/Pre/矩阵转化.asm | johnnyamazing/BUAA-CO-2020 | 1d1a3797f7188530464a1dfbe8a017dd01bb817a | [
"MIT"
] | null | null | null | MIPS/Pre/矩阵转化.asm | johnnyamazing/BUAA-CO-2020 | 1d1a3797f7188530464a1dfbe8a017dd01bb817a | [
"MIT"
] | 3 | 2021-09-28T07:41:35.000Z | 2021-12-14T08:55:28.000Z | .data
a: .space 3000
b: .space 3000
c: .space 3000
space: .asciiz " "
enter: .asciiz "\n"
.text
li $v0, 5
syscall
move $t0, $v0
li $v0, 5
syscall
move $t1, $v0
li $t4, 0
li $t2, 1
fori:
bgt $t2, $t0 endi
li $t3, 1
forj:
bgt $t3, $t1 endj
li $v0, 5
syscall
beq $v0, $0, else
sw $t2 a($t4)
sw $t3 b($t4)
sw $v0 c($t4)
addi $t4, $t4, 4
else:
addi $t3, $t3, 1
j forj
endj:
addi $t2, $t2, 1
j fori
endi:
for:
beq $t4, $0, end
addi $t4, $t4, -4
lw $a0, a($t4)
li $v0, 1
syscall
la $a0 space
li $v0, 4
syscall
lw $a0, b($t4)
li $v0, 1
syscall
la $a0 space
li $v0, 4
syscall
lw $a0, c($t4)
li $v0, 1
syscall
la $a0 enter
li $v0, 4
syscall
j for
end:
li $v0, 10
syscall
| 9.905405 | 19 | 0.544338 |
f760b4319b7f1b6f94fc2b65a33abf264da15a7e | 58 | asm | Assembly | bondgo/src/test/source011-for.go.asm | mmirko/bondmachine | 80427496e24498bbb8c4a401978c1f4ffc04e78e | [
"MIT"
] | 6 | 2018-11-03T03:17:38.000Z | 2022-01-17T11:57:28.000Z | bondgo/src/test/source011-for.go.asm | innovatefpga/2018-EM083 | 80427496e24498bbb8c4a401978c1f4ffc04e78e | [
"MIT"
] | null | null | null | bondgo/src/test/source011-for.go.asm | innovatefpga/2018-EM083 | 80427496e24498bbb8c4a401978c1f4ffc04e78e | [
"MIT"
] | 2 | 2018-07-17T17:43:57.000Z | 2018-10-25T01:13:11.000Z | clr r0
clr r1
rset r2 5
cpy r3 r0
add r2 r3
cpy r1 r2
j 2
| 7.25 | 9 | 0.689655 |
5747a6840b0950e1608946c534d9c090f6a4382e | 3,466 | asm | Assembly | engine/math/bcd.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | engine/math/bcd.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | engine/math/bcd.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | ; divide hMoney by hDivideBCDDivisor
; return output in hDivideBCDQuotient (same as hDivideBCDDivisor)
; used only to halve player money upon losing a fight
DivideBCDPredef::
DivideBCDPredef2::
DivideBCDPredef3:: ; only used function
DivideBCDPredef4::
call GetPredefRegisters
DivideBCD::
xor a
ldh [hDivideBCDBuffer], a
ldh [hDivideBCDBuffer+1], a
ldh [hDivideBCDBuffer+2], a
ld d, $1
.mulBy10Loop
; multiply the divisor by 10 until the leading digit is nonzero
; to set up the standard long division algorithm
ldh a, [hDivideBCDDivisor]
and $f0
jr nz, .next
inc d
ldh a, [hDivideBCDDivisor]
swap a
and $f0
ld b, a
ldh a, [hDivideBCDDivisor+1]
swap a
ldh [hDivideBCDDivisor+1], a
and $f
or b
ldh [hDivideBCDDivisor], a
ldh a, [hDivideBCDDivisor+1]
and $f0
ld b, a
ldh a, [hDivideBCDDivisor+2]
swap a
ldh [hDivideBCDDivisor+2], a
and $f
or b
ldh [hDivideBCDDivisor+1], a
ldh a, [hDivideBCDDivisor+2]
and $f0
ldh [hDivideBCDDivisor+2], a
jr .mulBy10Loop
.next
push de
push de
call DivideBCD_getNextDigit
pop de
ld a, b
swap a
and $f0
ldh [hDivideBCDBuffer], a
dec d
jr z, .next2
push de
call DivideBCD_divDivisorBy10
call DivideBCD_getNextDigit
pop de
ldh a, [hDivideBCDBuffer]
or b
ldh [hDivideBCDBuffer], a
dec d
jr z, .next2
push de
call DivideBCD_divDivisorBy10
call DivideBCD_getNextDigit
pop de
ld a, b
swap a
and $f0
ldh [hDivideBCDBuffer+1], a
dec d
jr z, .next2
push de
call DivideBCD_divDivisorBy10
call DivideBCD_getNextDigit
pop de
ldh a, [hDivideBCDBuffer+1]
or b
ldh [hDivideBCDBuffer+1], a
dec d
jr z, .next2
push de
call DivideBCD_divDivisorBy10
call DivideBCD_getNextDigit
pop de
ld a, b
swap a
and $f0
ldh [hDivideBCDBuffer+2], a
dec d
jr z, .next2
push de
call DivideBCD_divDivisorBy10
call DivideBCD_getNextDigit
pop de
ldh a, [hDivideBCDBuffer+2]
or b
ldh [hDivideBCDBuffer+2], a
.next2
ldh a, [hDivideBCDBuffer]
ldh [hDivideBCDQuotient], a ; the same memory location as hDivideBCDDivisor
ldh a, [hDivideBCDBuffer+1]
ldh [hDivideBCDQuotient+1], a
ldh a, [hDivideBCDBuffer+2]
ldh [hDivideBCDQuotient+2], a
pop de
ld a, $6
sub d
and a
ret z
.divResultBy10loop
push af
call DivideBCD_divDivisorBy10
pop af
dec a
jr nz, .divResultBy10loop
ret
DivideBCD_divDivisorBy10:
ldh a, [hDivideBCDDivisor+2]
swap a
and $f
ld b, a
ldh a, [hDivideBCDDivisor+1]
swap a
ldh [hDivideBCDDivisor+1], a
and $f0
or b
ldh [hDivideBCDDivisor+2], a
ldh a, [hDivideBCDDivisor+1]
and $f
ld b, a
ldh a, [hDivideBCDDivisor]
swap a
ldh [hDivideBCDDivisor], a
and $f0
or b
ldh [hDivideBCDDivisor+1], a
ldh a, [hDivideBCDDivisor]
and $f
ldh [hDivideBCDDivisor], a
ret
DivideBCD_getNextDigit:
ld bc, $3
.loop
ld de, hMoney ; the dividend
ld hl, hDivideBCDDivisor
push bc
call StringCmp
pop bc
ret c
inc b
ld de, hMoney + 2 ; since SubBCD works starting from the least significant digit
ld hl, hDivideBCDDivisor + 2
push bc
call SubBCD
pop bc
jr .loop
AddBCDPredef::
call GetPredefRegisters
AddBCD::
and a
ld b, c
.add
ld a, [de]
adc [hl]
daa
ld [de], a
dec de
dec hl
dec c
jr nz, .add
jr nc, .done
ld a, $99
inc de
.fill
ld [de], a
inc de
dec b
jr nz, .fill
.done
ret
SubBCDPredef::
call GetPredefRegisters
SubBCD::
and a
ld b, c
.sub
ld a, [de]
sbc [hl]
daa
ld [de], a
dec de
dec hl
dec c
jr nz, .sub
jr nc, .done
ld a, $00
inc de
.fill
ld [de], a
inc de
dec b
jr nz, .fill
scf
.done
ret
| 15.826484 | 81 | 0.71408 |
383992009702cc00a64c14c6a87598ba568f5cc9 | 6,149 | asm | Assembly | base/mvdm/wow16/win87em/emlsint.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/mvdm/wow16/win87em/emlsint.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/mvdm/wow16/win87em/emlsint.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | page ,132
subttl emlsint.asm - Load/Store 16/32-bit integers
;***
;emlsint.asm - Load/Store 16/32-bit integers
;
; Copyright (c) 1986-89, Microsoft Corporation
;
;Purpose:
; Load/Store 16/32-bit integers
;
; This Module contains Proprietary Information of Microsoft
; Corporation and should be treated as Confidential.
;
;Revision History:
; See emulator.hst
;
;*******************************************************************************
;*********************************************************************;
; ;
; Load Single (16 Bit) Integer ;
; ;
;*********************************************************************;
; ES:SI: memory address of 16 bit integer
ProfBegin LSINT
pub eFLDsi
LDUS2AX ; Fetch the integer
MOV DI,AX ; into DI:BP:BX:DX
OR DI,DI
JZ short LoadZero
XOR BP,BP
MOV BX,BP
MOV DX,BX
MOV AX,15 ; Exponent would be 15 if no shifts needed
PUSHST ; Get a new TOS
XOR CL,CL
MOV Tag[esi],CL ; Tag number as valid non-zero
MOV CX,DI ; Sign of Integer to CH
AND CH,Sign
if fastSP
OR CH,Single
endif
JNS short SETFLAG16 ; If positive integer set the flag
NEG DI ; Otherwise compliment the number first
pub SETFLAG16
MOV Flag[esi],CH
JMP IntegerToInternal
pub LoadZero
PUSHST ; Get a new TOS
XOR AX,AX
MOV MB0[esi],AX
MOV MB2[esi],AX
MOV MB4[esi],AX
MOV MB6[esi],AX
MOV Expon[esi],IexpMin - IexpBias
MOV Flag[esi],AH
MOV AH,ZROorINF
MOV Tag[esi],AH
RET
PAGE
;*********************************************************************;
; ;
; Store Single (16 Bit) Integer ;
; ;
;*********************************************************************;
;
; ES:SI: memory address of 16 bit integer
pub eFSTsi
PUSH esi ; Save memory address for store
MOV esi,[CURstk]
; Test for special conditions
TEST byte ptr Tag[esi],Special ; If number is not in range it is overflow
JNZ short IntegerOverflow16
TEST byte ptr Tag[esi],ZROorINF
JNZ short StoreIntegerZero16
; Fetch Exponent & test fo blatent overflow
MOV CX,Expon[esi]
CMP CX,15
JG short IntegerOverflow16
if fastSP
MOV BX,MB4[esi] ; Fetch mantissa to DI:BP:BX:DX
MOV DI,MB6[esi]
TEST byte ptr Flag[esi],Single
JZ SSID
XOR BL,BL
MOV BP,BX
XOR BX,BX
MOV DX,BX
SSI:
else
MOV BP,MB4[esi] ; Fetch mantissa to DI:BP:BX:DX
MOV DI,MB6[esi]
MOV DX,MB0[esi]
MOV BX,MB2[esi]
endif
CALL InternalToInteger
; Integer now in BX:DX (not yet 2's compliment)
OR BX,BX ; Test again for Overflow
JNZ short IntegerOverflow16
MOV AH,Flag[esi] ; See if we need to compliment
OR AH,AH
JNS short Int16in2sComp
NEG DX
JZ short Store16 ; Special case 0
pub Int16in2sComp
XOR AX,DX ; If Signs agree we did not overflow
JS short IntegerOverflow16
pub Store16
POP edi ; Restore Memory address
MOV AX,DX
STAX2US
RET
if fastSP
SSID:
MOV BP,BX
MOV DX,MB0[esi]
MOV BX,MB2[esi]
JMP SSI
endif
pub StoreIntegerZero16
XOR DX,DX
JMP Store16
pub IntegerOverflow16
OR [CURerr],Invalid
MOV DX,8000H ; Integer Indefinite
JMP Store16
page
;*********************************************************************;
; ;
; Load Double (32 Bit) Integer ;
; ;
;*********************************************************************;
;
; ES:SI: memory address of 32 bit integer
pub eFLDdi
LDUS2AX ; Fetch the integer
MOV BP,AX ; into DI:BP:BX:DX
LDUS2AX
MOV DI,AX
OR AX,BP
JZ short JMPLoadZeroBecauseThisLanguageHasNoFarConditionalJump
XOR BX,BX
MOV DX,BX
MOV AX,31 ; Exponent would be 31 if no shifts needed
PUSHST ; Get a new TOS
XOR CL,CL
MOV Tag[esi],CL ; Tag number as valid non-zero
MOV CX,DI ; Sign of Integer to CH
AND CH,Sign
JNS short SETFLAG32 ; If positive integer set the flag
XOR DI,0FFFFH ; Otherwise compliment the number first
XOR BP,0FFFFH
ADD BP,1
ADC DI,0
pub SETFLAG32
MOV Flag[esi],CH
OR DI,DI
JZ short SPEEDSHIFT32
JMP IntegerToInternal
JMPLoadZeroBecauseThisLanguageHasNoFarConditionalJump:
JMP LoadZero
pub SPEEDSHIFT32
MOV DI,BP
XOR BP,BP
SUB AX,16
JMP IntegerToInternal
page
;*********************************************************************;
; ;
; Store Double (32 Bit) Integer ;
; ;
;*********************************************************************;
;
; ES:SI: memory address of 32 bit integer
pub eFSTdi
PUSH esi
call TOSto32int ; convert TOS to 32-bit integer
POP edi ; Restore Memory address
MOV AX,DX
STAX2US
MOV AX,BX
STAX2US
RET
pub TOSto32int
MOV esi,[CURstk]
; Test for special conditions
TEST byte ptr Tag[esi],Special ; If number is not in range it is overflow
JNZ short IntegerOverflow32
TEST byte ptr Tag[esi],ZROorINF
JNZ short StoreIntegerZero32
; Fetch Exponent & test fo blatent overflow
MOV CX,Expon[esi]
CMP CX,31
JG short IntegerOverflow32
if fastSP
MOV BX,MB4[esi] ; Fetch mantissa to DI:BP:BX:DX
MOV DI,MB6[esi]
TEST byte ptr Flag[esi],Single
JZ SDID
XOR BL,BL
MOV BP,BX
XOR BX,BX
MOV DX,BX
SDI:
else
MOV BP,MB4[esi] ; Fetch mantissa to DI:BP:BX:DX
MOV DI,MB6[esi]
MOV DX,MB0[esi]
MOV BX,MB2[esi]
endif
CALL InternalToInteger
; Integer in BP:BX:DX (not yet 2's compliment)
OR BP,BP ; Test again for Overflow
JNZ short IntegerOverflow32
MOV AH,Flag[esi] ; See if we need to compliment
OR AH,AH
JNS short Int32in2sComp
XOR BX,0FFFFH ; 2's Compliment of BX:DX
XOR DX,0FFFFH
ADD DX,1
ADC BX,0
pub Int32in2sComp
XOR AX,BX ; If Signs agree we did not overflow
JS short IntOverOrZero32 ; Special case is -0 which we let pass
pub Store32
ret
if fastSP
SDID:
MOV BP,BX
MOV DX,MB0[esi]
MOV BX,MB2[esi]
JMP SDI
endif
pub StoreIntegerZero32
XOR DX,DX
MOV BX,DX
ret
pub IntOverOrZero32
OR BX,DX
JZ Store32
pub IntegerOverflow32
OR CURerr,Invalid
MOV BX,8000H ; Integer Indefinite
XOR DX,DX
ret
ProfEnd LSINT
| 21.575439 | 81 | 0.596032 |
652614075e2d40d9e398776262146b0bebeb8d5e | 27,854 | asm | Assembly | Palmtree.Math.Core.Sint/vs_build/x86_Debug/pmc_greatestcommondivisor.asm | rougemeilland/Palmtree.Math.Core.Sint | 0895fd4988b146f01ec705e091ef3fd79a721b40 | [
"MIT"
] | null | null | null | Palmtree.Math.Core.Sint/vs_build/x86_Debug/pmc_greatestcommondivisor.asm | rougemeilland/Palmtree.Math.Core.Sint | 0895fd4988b146f01ec705e091ef3fd79a721b40 | [
"MIT"
] | null | null | null | Palmtree.Math.Core.Sint/vs_build/x86_Debug/pmc_greatestcommondivisor.asm | rougemeilland/Palmtree.Math.Core.Sint | 0895fd4988b146f01ec705e091ef3fd79a721b40 | [
"MIT"
] | null | null | null | ; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Sint\Palmtree.Math.Core.Sint\pmc_greatestcommondivisor.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM _uint_number_zero:DWORD
COMM _uint_number_one:DWORD
_DATA ENDS
msvcjmc SEGMENT
__7B7A869E_ctype@h DB 01H
__457DD326_basetsd@h DB 01H
__4384A2D9_corecrt_memcpy_s@h DB 01H
__4E51A221_corecrt_wstring@h DB 01H
__2140C079_string@h DB 01H
__1887E595_winnt@h DB 01H
__9FC7C64B_processthreadsapi@h DB 01H
__FA470AEC_memoryapi@h DB 01H
__F37DAFF1_winerror@h DB 01H
__7A450CCC_winbase@h DB 01H
__B4B40122_winioctl@h DB 01H
__86261D59_stralign@h DB 01H
__8CA3E54E_pmc_inline_func@h DB 01H
__3666D5C6_pmc_greatestcommondivisor@c DB 01H
msvcjmc ENDS
PUBLIC _PMC_GreatestCommonDivisor_I_X@12
PUBLIC _PMC_GreatestCommonDivisor_L_X@16
PUBLIC _PMC_GreatestCommonDivisor_UX_X@12
PUBLIC _PMC_GreatestCommonDivisor_X_I@12
PUBLIC _PMC_GreatestCommonDivisor_X_L@16
PUBLIC _PMC_GreatestCommonDivisor_X_UX@12
PUBLIC _PMC_GreatestCommonDivisor_X_X@12
PUBLIC __JustMyCode_Default
EXTRN _CheckNumber:PROC
EXTRN @_RTC_CheckStackVars@8:PROC
EXTRN @__CheckForDebuggerJustMyCode@4:PROC
EXTRN @__security_check_cookie@4:PROC
EXTRN __RTC_CheckEsp:PROC
EXTRN __RTC_InitBase:PROC
EXTRN __RTC_Shutdown:PROC
EXTRN _ep_uint:BYTE
EXTRN ___security_cookie:DWORD
; COMDAT rtc$TMZ
rtc$TMZ SEGMENT
__RTC_Shutdown.rtc$TMZ DD FLAT:__RTC_Shutdown
rtc$TMZ ENDS
; COMDAT rtc$IMZ
rtc$IMZ SEGMENT
__RTC_InitBase.rtc$IMZ DD FLAT:__RTC_InitBase
rtc$IMZ ENDS
; Function compile flags: /Odt
; COMDAT __JustMyCode_Default
_TEXT SEGMENT
__JustMyCode_Default PROC ; COMDAT
push ebp
mov ebp, esp
pop ebp
ret 0
__JustMyCode_Default ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.uint\palmtree.math.core.uint\pmc_inline_func.h
; COMDAT _GET_ABS_64
_TEXT SEGMENT
tv68 = -200 ; size = 8
_u$ = 8 ; size = 8
_sign$ = 16 ; size = 4
_GET_ABS_64 PROC ; COMDAT
; 800 : {
push ebp
mov ebp, esp
sub esp, 200 ; 000000c8H
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-200]
mov ecx, 50 ; 00000032H
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, OFFSET __8CA3E54E_pmc_inline_func@h
call @__CheckForDebuggerJustMyCode@4
; 801 : if (u > 0)
cmp DWORD PTR _u$[ebp+4], 0
jl SHORT $LN2@GET_ABS_64
jg SHORT $LN9@GET_ABS_64
cmp DWORD PTR _u$[ebp], 0
jbe SHORT $LN2@GET_ABS_64
$LN9@GET_ABS_64:
; 802 : {
; 803 : *sign = 1;
mov eax, DWORD PTR _sign$[ebp]
mov BYTE PTR [eax], 1
; 804 : return ((_UINT64_T)u);
mov eax, DWORD PTR _u$[ebp]
mov edx, DWORD PTR _u$[ebp+4]
jmp SHORT $LN1@GET_ABS_64
; 805 : }
jmp SHORT $LN1@GET_ABS_64
$LN2@GET_ABS_64:
; 806 : else if (u == 0)
mov eax, DWORD PTR _u$[ebp]
or eax, DWORD PTR _u$[ebp+4]
jne SHORT $LN4@GET_ABS_64
; 807 : {
; 808 : *sign = 0;
mov eax, DWORD PTR _sign$[ebp]
mov BYTE PTR [eax], 0
; 809 : return (0);
xor eax, eax
xor edx, edx
jmp SHORT $LN1@GET_ABS_64
; 810 : }
jmp SHORT $LN1@GET_ABS_64
$LN4@GET_ABS_64:
; 811 : else
; 812 : {
; 813 : *sign = -1;
mov eax, DWORD PTR _sign$[ebp]
mov BYTE PTR [eax], -1
; 814 : return ((_UINT64_T)u == 0x8000000000000000UL ? 0x8000000000000000UL : (_UINT64_T)-u);
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN7@GET_ABS_64
cmp DWORD PTR _u$[ebp+4], -2147483648 ; 80000000H
jne SHORT $LN7@GET_ABS_64
mov DWORD PTR tv68[ebp], 0
mov DWORD PTR tv68[ebp+4], -2147483648 ; 80000000H
jmp SHORT $LN8@GET_ABS_64
$LN7@GET_ABS_64:
mov eax, DWORD PTR _u$[ebp]
neg eax
mov ecx, DWORD PTR _u$[ebp+4]
adc ecx, 0
neg ecx
mov DWORD PTR tv68[ebp], eax
mov DWORD PTR tv68[ebp+4], ecx
$LN8@GET_ABS_64:
mov eax, DWORD PTR tv68[ebp]
mov edx, DWORD PTR tv68[ebp+4]
$LN1@GET_ABS_64:
; 815 : }
; 816 : }
pop edi
pop esi
pop ebx
add esp, 200 ; 000000c8H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 0
_GET_ABS_64 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.uint\palmtree.math.core.uint\pmc_inline_func.h
; COMDAT _GET_ABS_32
_TEXT SEGMENT
tv68 = -196 ; size = 4
_u$ = 8 ; size = 4
_sign$ = 12 ; size = 4
_GET_ABS_32 PROC ; COMDAT
; 780 : {
push ebp
mov ebp, esp
sub esp, 196 ; 000000c4H
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-196]
mov ecx, 49 ; 00000031H
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, OFFSET __8CA3E54E_pmc_inline_func@h
call @__CheckForDebuggerJustMyCode@4
; 781 : if (u > 0)
cmp DWORD PTR _u$[ebp], 0
jle SHORT $LN2@GET_ABS_32
; 782 : {
; 783 : *sign = 1;
mov eax, DWORD PTR _sign$[ebp]
mov BYTE PTR [eax], 1
; 784 : return ((_UINT32_T)u);
mov eax, DWORD PTR _u$[ebp]
jmp SHORT $LN1@GET_ABS_32
; 785 : }
jmp SHORT $LN1@GET_ABS_32
$LN2@GET_ABS_32:
; 786 : else if (u == 0)
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN4@GET_ABS_32
; 787 : {
; 788 : *sign = 0;
mov eax, DWORD PTR _sign$[ebp]
mov BYTE PTR [eax], 0
; 789 : return (0);
xor eax, eax
jmp SHORT $LN1@GET_ABS_32
; 790 : }
jmp SHORT $LN1@GET_ABS_32
$LN4@GET_ABS_32:
; 791 : else
; 792 : {
; 793 : *sign = -1;
mov eax, DWORD PTR _sign$[ebp]
mov BYTE PTR [eax], -1
; 794 : return ((_UINT32_T)u == 0x80000000U ? 0x80000000U : (_UINT32_T)-u);
cmp DWORD PTR _u$[ebp], -2147483648 ; 80000000H
jne SHORT $LN7@GET_ABS_32
mov DWORD PTR tv68[ebp], -2147483648 ; 80000000H
jmp SHORT $LN8@GET_ABS_32
$LN7@GET_ABS_32:
mov eax, DWORD PTR _u$[ebp]
neg eax
mov DWORD PTR tv68[ebp], eax
$LN8@GET_ABS_32:
mov eax, DWORD PTR tv68[ebp]
$LN1@GET_ABS_32:
; 795 : }
; 796 : }
pop edi
pop esi
pop ebx
add esp, 196 ; 000000c4H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 0
_GET_ABS_32 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_greatestcommondivisor.c
; COMDAT _PMC_GreatestCommonDivisor_X_X@12
_TEXT SEGMENT
_nv$ = -32 ; size = 4
_nu$ = -20 ; size = 4
_result$ = -8 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w$ = 16 ; size = 4
_PMC_GreatestCommonDivisor_X_X@12 PROC ; COMDAT
; 134 : {
push ebp
mov ebp, esp
sub esp, 228 ; 000000e4H
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-228]
mov ecx, 57 ; 00000039H
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, OFFSET __3666D5C6_pmc_greatestcommondivisor@c
call @__CheckForDebuggerJustMyCode@4
; 135 : if (u == NULL)
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN2@PMC_Greate
; 136 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp $LN1@PMC_Greate
$LN2@PMC_Greate:
; 137 : if (v == NULL)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN3@PMC_Greate
; 138 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN3@PMC_Greate:
; 139 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN4@PMC_Greate
; 140 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN4@PMC_Greate:
; 141 : PMC_STATUS_CODE result;
; 142 : NUMBER_HEADER* nu = (NUMBER_HEADER*)u;
mov eax, DWORD PTR _u$[ebp]
mov DWORD PTR _nu$[ebp], eax
; 143 : NUMBER_HEADER* nv = (NUMBER_HEADER*)v;
mov eax, DWORD PTR _v$[ebp]
mov DWORD PTR _nv$[ebp], eax
; 144 : if ((result = CheckNumber(nu)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nu$[ebp]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Greate
; 145 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN5@PMC_Greate:
; 146 : if ((result = CheckNumber(nv)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nv$[ebp]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN6@PMC_Greate
; 147 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN6@PMC_Greate:
; 148 : if ((result = ep_uint.GreatestCommonDivisor_X_X(nu->ABS, nv->ABS, w)) != PMC_STATUS_OK)
mov esi, esp
mov eax, DWORD PTR _w$[ebp]
push eax
mov ecx, DWORD PTR _nv$[ebp]
mov edx, DWORD PTR [ecx+12]
push edx
mov eax, DWORD PTR _nu$[ebp]
mov ecx, DWORD PTR [eax+12]
push ecx
call DWORD PTR _ep_uint+260
cmp esi, esp
call __RTC_CheckEsp
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN7@PMC_Greate
; 149 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN7@PMC_Greate:
; 150 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Greate:
; 151 : }
pop edi
pop esi
pop ebx
add esp, 228 ; 000000e4H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 12 ; 0000000cH
_PMC_GreatestCommonDivisor_X_X@12 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_greatestcommondivisor.c
; COMDAT _PMC_GreatestCommonDivisor_X_UX@12
_TEXT SEGMENT
_nu$ = -20 ; size = 4
_result$ = -8 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w$ = 16 ; size = 4
_PMC_GreatestCommonDivisor_X_UX@12 PROC ; COMDAT
; 117 : {
push ebp
mov ebp, esp
sub esp, 216 ; 000000d8H
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-216]
mov ecx, 54 ; 00000036H
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, OFFSET __3666D5C6_pmc_greatestcommondivisor@c
call @__CheckForDebuggerJustMyCode@4
; 118 : if (u == NULL)
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN2@PMC_Greate
; 119 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN2@PMC_Greate:
; 120 : if (v == NULL)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN3@PMC_Greate
; 121 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN3@PMC_Greate:
; 122 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN4@PMC_Greate
; 123 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN4@PMC_Greate:
; 124 : PMC_STATUS_CODE result;
; 125 : NUMBER_HEADER* nu = (NUMBER_HEADER*)u;
mov eax, DWORD PTR _u$[ebp]
mov DWORD PTR _nu$[ebp], eax
; 126 : if ((result = CheckNumber(nu)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nu$[ebp]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Greate
; 127 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN5@PMC_Greate:
; 128 : if ((result = ep_uint.GreatestCommonDivisor_X_X(nu->ABS, v, w)) != PMC_STATUS_OK)
mov esi, esp
mov eax, DWORD PTR _w$[ebp]
push eax
mov ecx, DWORD PTR _v$[ebp]
push ecx
mov edx, DWORD PTR _nu$[ebp]
mov eax, DWORD PTR [edx+12]
push eax
call DWORD PTR _ep_uint+260
cmp esi, esp
call __RTC_CheckEsp
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN6@PMC_Greate
; 129 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN6@PMC_Greate:
; 130 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Greate:
; 131 : }
pop edi
pop esi
pop ebx
add esp, 216 ; 000000d8H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 12 ; 0000000cH
_PMC_GreatestCommonDivisor_X_UX@12 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_greatestcommondivisor.c
; COMDAT _PMC_GreatestCommonDivisor_X_L@16
_TEXT SEGMENT
_v_abs$ = -52 ; size = 8
_v_sign$ = -33 ; size = 1
_nu$ = -24 ; size = 4
_result$ = -12 ; size = 4
__$ArrayPad$ = -4 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 8
_w$ = 20 ; size = 4
_PMC_GreatestCommonDivisor_X_L@16 PROC ; COMDAT
; 100 : {
push ebp
mov ebp, esp
sub esp, 248 ; 000000f8H
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-248]
mov ecx, 62 ; 0000003eH
mov eax, -858993460 ; ccccccccH
rep stosd
mov eax, DWORD PTR ___security_cookie
xor eax, ebp
mov DWORD PTR __$ArrayPad$[ebp], eax
mov ecx, OFFSET __3666D5C6_pmc_greatestcommondivisor@c
call @__CheckForDebuggerJustMyCode@4
; 101 : if (u == NULL)
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN2@PMC_Greate
; 102 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN2@PMC_Greate:
; 103 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN3@PMC_Greate
; 104 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN3@PMC_Greate:
; 105 : PMC_STATUS_CODE result;
; 106 : NUMBER_HEADER* nu = (NUMBER_HEADER*)u;
mov eax, DWORD PTR _u$[ebp]
mov DWORD PTR _nu$[ebp], eax
; 107 : if ((result = CheckNumber(nu)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nu$[ebp]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN4@PMC_Greate
; 108 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN4@PMC_Greate:
; 109 : char v_sign;
; 110 : _UINT64_T v_abs = GET_ABS_64(v, &v_sign);
lea eax, DWORD PTR _v_sign$[ebp]
push eax
mov ecx, DWORD PTR _v$[ebp+4]
push ecx
mov edx, DWORD PTR _v$[ebp]
push edx
call _GET_ABS_64
add esp, 12 ; 0000000cH
mov DWORD PTR _v_abs$[ebp], eax
mov DWORD PTR _v_abs$[ebp+4], edx
; 111 : if ((result = ep_uint.GreatestCommonDivisor_X_L(nu->ABS, v_abs, w)) != PMC_STATUS_OK)
mov esi, esp
mov eax, DWORD PTR _w$[ebp]
push eax
mov ecx, DWORD PTR _v_abs$[ebp+4]
push ecx
mov edx, DWORD PTR _v_abs$[ebp]
push edx
mov eax, DWORD PTR _nu$[ebp]
mov ecx, DWORD PTR [eax+12]
push ecx
call DWORD PTR _ep_uint+256
cmp esi, esp
call __RTC_CheckEsp
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Greate
; 112 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN5@PMC_Greate:
; 113 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Greate:
; 114 : }
push edx
mov ecx, ebp
push eax
lea edx, DWORD PTR $LN9@PMC_Greate
call @_RTC_CheckStackVars@8
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
add esp, 248 ; 000000f8H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 16 ; 00000010H
npad 3
$LN9@PMC_Greate:
DD 1
DD $LN8@PMC_Greate
$LN8@PMC_Greate:
DD -33 ; ffffffdfH
DD 1
DD $LN7@PMC_Greate
$LN7@PMC_Greate:
DB 118 ; 00000076H
DB 95 ; 0000005fH
DB 115 ; 00000073H
DB 105 ; 00000069H
DB 103 ; 00000067H
DB 110 ; 0000006eH
DB 0
_PMC_GreatestCommonDivisor_X_L@16 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_greatestcommondivisor.c
; COMDAT _PMC_GreatestCommonDivisor_X_I@12
_TEXT SEGMENT
_v_abs$ = -48 ; size = 4
_v_sign$ = -33 ; size = 1
_nu$ = -24 ; size = 4
_result$ = -12 ; size = 4
__$ArrayPad$ = -4 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w$ = 16 ; size = 4
_PMC_GreatestCommonDivisor_X_I@12 PROC ; COMDAT
; 83 : {
push ebp
mov ebp, esp
sub esp, 244 ; 000000f4H
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-244]
mov ecx, 61 ; 0000003dH
mov eax, -858993460 ; ccccccccH
rep stosd
mov eax, DWORD PTR ___security_cookie
xor eax, ebp
mov DWORD PTR __$ArrayPad$[ebp], eax
mov ecx, OFFSET __3666D5C6_pmc_greatestcommondivisor@c
call @__CheckForDebuggerJustMyCode@4
; 84 : if (u == NULL)
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN2@PMC_Greate
; 85 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN2@PMC_Greate:
; 86 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN3@PMC_Greate
; 87 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN3@PMC_Greate:
; 88 : PMC_STATUS_CODE result;
; 89 : NUMBER_HEADER* nu = (NUMBER_HEADER*)u;
mov eax, DWORD PTR _u$[ebp]
mov DWORD PTR _nu$[ebp], eax
; 90 : if ((result = CheckNumber(nu)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nu$[ebp]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN4@PMC_Greate
; 91 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN4@PMC_Greate:
; 92 : char v_sign;
; 93 : _UINT32_T v_abs = GET_ABS_32(v, &v_sign);
lea eax, DWORD PTR _v_sign$[ebp]
push eax
mov ecx, DWORD PTR _v$[ebp]
push ecx
call _GET_ABS_32
add esp, 8
mov DWORD PTR _v_abs$[ebp], eax
; 94 : if ((result = ep_uint.GreatestCommonDivisor_X_I(nu->ABS, v_abs, w)) != PMC_STATUS_OK)
mov esi, esp
mov eax, DWORD PTR _w$[ebp]
push eax
mov ecx, DWORD PTR _v_abs$[ebp]
push ecx
mov edx, DWORD PTR _nu$[ebp]
mov eax, DWORD PTR [edx+12]
push eax
call DWORD PTR _ep_uint+252
cmp esi, esp
call __RTC_CheckEsp
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Greate
; 95 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN5@PMC_Greate:
; 96 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Greate:
; 97 : }
push edx
mov ecx, ebp
push eax
lea edx, DWORD PTR $LN9@PMC_Greate
call @_RTC_CheckStackVars@8
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
add esp, 244 ; 000000f4H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 12 ; 0000000cH
npad 2
$LN9@PMC_Greate:
DD 1
DD $LN8@PMC_Greate
$LN8@PMC_Greate:
DD -33 ; ffffffdfH
DD 1
DD $LN7@PMC_Greate
$LN7@PMC_Greate:
DB 118 ; 00000076H
DB 95 ; 0000005fH
DB 115 ; 00000073H
DB 105 ; 00000069H
DB 103 ; 00000067H
DB 110 ; 0000006eH
DB 0
_PMC_GreatestCommonDivisor_X_I@12 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_greatestcommondivisor.c
; COMDAT _PMC_GreatestCommonDivisor_UX_X@12
_TEXT SEGMENT
_nv$ = -20 ; size = 4
_result$ = -8 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w$ = 16 ; size = 4
_PMC_GreatestCommonDivisor_UX_X@12 PROC ; COMDAT
; 66 : {
push ebp
mov ebp, esp
sub esp, 216 ; 000000d8H
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-216]
mov ecx, 54 ; 00000036H
mov eax, -858993460 ; ccccccccH
rep stosd
mov ecx, OFFSET __3666D5C6_pmc_greatestcommondivisor@c
call @__CheckForDebuggerJustMyCode@4
; 67 : if (u == NULL)
cmp DWORD PTR _u$[ebp], 0
jne SHORT $LN2@PMC_Greate
; 68 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN2@PMC_Greate:
; 69 : if (v == NULL)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN3@PMC_Greate
; 70 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN3@PMC_Greate:
; 71 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN4@PMC_Greate
; 72 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN4@PMC_Greate:
; 73 : PMC_STATUS_CODE result;
; 74 : NUMBER_HEADER* nv = (NUMBER_HEADER*)v;
mov eax, DWORD PTR _v$[ebp]
mov DWORD PTR _nv$[ebp], eax
; 75 : if ((result = CheckNumber(nv)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nv$[ebp]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Greate
; 76 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN5@PMC_Greate:
; 77 : if ((result = ep_uint.GreatestCommonDivisor_X_X(u, nv->ABS, w)) != PMC_STATUS_OK)
mov esi, esp
mov eax, DWORD PTR _w$[ebp]
push eax
mov ecx, DWORD PTR _nv$[ebp]
mov edx, DWORD PTR [ecx+12]
push edx
mov eax, DWORD PTR _u$[ebp]
push eax
call DWORD PTR _ep_uint+260
cmp esi, esp
call __RTC_CheckEsp
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN6@PMC_Greate
; 78 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN6@PMC_Greate:
; 79 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Greate:
; 80 : }
pop edi
pop esi
pop ebx
add esp, 216 ; 000000d8H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 12 ; 0000000cH
_PMC_GreatestCommonDivisor_UX_X@12 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_greatestcommondivisor.c
; COMDAT _PMC_GreatestCommonDivisor_L_X@16
_TEXT SEGMENT
_u_abs$ = -52 ; size = 8
_u_sign$ = -33 ; size = 1
_nv$ = -24 ; size = 4
_result$ = -12 ; size = 4
__$ArrayPad$ = -4 ; size = 4
_u$ = 8 ; size = 8
_v$ = 16 ; size = 4
_w$ = 20 ; size = 4
_PMC_GreatestCommonDivisor_L_X@16 PROC ; COMDAT
; 49 : {
push ebp
mov ebp, esp
sub esp, 248 ; 000000f8H
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-248]
mov ecx, 62 ; 0000003eH
mov eax, -858993460 ; ccccccccH
rep stosd
mov eax, DWORD PTR ___security_cookie
xor eax, ebp
mov DWORD PTR __$ArrayPad$[ebp], eax
mov ecx, OFFSET __3666D5C6_pmc_greatestcommondivisor@c
call @__CheckForDebuggerJustMyCode@4
; 50 : if (v == NULL)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN2@PMC_Greate
; 51 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN2@PMC_Greate:
; 52 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN3@PMC_Greate
; 53 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN3@PMC_Greate:
; 54 : PMC_STATUS_CODE result;
; 55 : NUMBER_HEADER* nv = (NUMBER_HEADER*)v;
mov eax, DWORD PTR _v$[ebp]
mov DWORD PTR _nv$[ebp], eax
; 56 : if ((result = CheckNumber(nv)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nv$[ebp]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN4@PMC_Greate
; 57 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN4@PMC_Greate:
; 58 : char u_sign;
; 59 : _UINT64_T u_abs = GET_ABS_64(u, &u_sign);
lea eax, DWORD PTR _u_sign$[ebp]
push eax
mov ecx, DWORD PTR _u$[ebp+4]
push ecx
mov edx, DWORD PTR _u$[ebp]
push edx
call _GET_ABS_64
add esp, 12 ; 0000000cH
mov DWORD PTR _u_abs$[ebp], eax
mov DWORD PTR _u_abs$[ebp+4], edx
; 60 : if ((result = ep_uint.GreatestCommonDivisor_L_X(u_abs, nv->ABS, w)) != PMC_STATUS_OK)
mov esi, esp
mov eax, DWORD PTR _w$[ebp]
push eax
mov ecx, DWORD PTR _nv$[ebp]
mov edx, DWORD PTR [ecx+12]
push edx
mov eax, DWORD PTR _u_abs$[ebp+4]
push eax
mov ecx, DWORD PTR _u_abs$[ebp]
push ecx
call DWORD PTR _ep_uint+248
cmp esi, esp
call __RTC_CheckEsp
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Greate
; 61 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN5@PMC_Greate:
; 62 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Greate:
; 63 : }
push edx
mov ecx, ebp
push eax
lea edx, DWORD PTR $LN9@PMC_Greate
call @_RTC_CheckStackVars@8
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
add esp, 248 ; 000000f8H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 16 ; 00000010H
npad 3
$LN9@PMC_Greate:
DD 1
DD $LN8@PMC_Greate
$LN8@PMC_Greate:
DD -33 ; ffffffdfH
DD 1
DD $LN7@PMC_Greate
$LN7@PMC_Greate:
DB 117 ; 00000075H
DB 95 ; 0000005fH
DB 115 ; 00000073H
DB 105 ; 00000069H
DB 103 ; 00000067H
DB 110 ; 0000006eH
DB 0
_PMC_GreatestCommonDivisor_L_X@16 ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_greatestcommondivisor.c
; COMDAT _PMC_GreatestCommonDivisor_I_X@12
_TEXT SEGMENT
_u_abs$ = -48 ; size = 4
_u_sign$ = -33 ; size = 1
_nv$ = -24 ; size = 4
_result$ = -12 ; size = 4
__$ArrayPad$ = -4 ; size = 4
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w$ = 16 ; size = 4
_PMC_GreatestCommonDivisor_I_X@12 PROC ; COMDAT
; 32 : {
push ebp
mov ebp, esp
sub esp, 244 ; 000000f4H
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-244]
mov ecx, 61 ; 0000003dH
mov eax, -858993460 ; ccccccccH
rep stosd
mov eax, DWORD PTR ___security_cookie
xor eax, ebp
mov DWORD PTR __$ArrayPad$[ebp], eax
mov ecx, OFFSET __3666D5C6_pmc_greatestcommondivisor@c
call @__CheckForDebuggerJustMyCode@4
; 33 : if (v == NULL)
cmp DWORD PTR _v$[ebp], 0
jne SHORT $LN2@PMC_Greate
; 34 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN2@PMC_Greate:
; 35 : if (w == NULL)
cmp DWORD PTR _w$[ebp], 0
jne SHORT $LN3@PMC_Greate
; 36 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
jmp SHORT $LN1@PMC_Greate
$LN3@PMC_Greate:
; 37 : PMC_STATUS_CODE result;
; 38 : NUMBER_HEADER* nv = (NUMBER_HEADER*)v;
mov eax, DWORD PTR _v$[ebp]
mov DWORD PTR _nv$[ebp], eax
; 39 : if ((result = CheckNumber(nv)) != PMC_STATUS_OK)
mov eax, DWORD PTR _nv$[ebp]
push eax
call _CheckNumber
add esp, 4
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN4@PMC_Greate
; 40 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN4@PMC_Greate:
; 41 : char u_sign;
; 42 : _UINT32_T u_abs = GET_ABS_32(u, &u_sign);
lea eax, DWORD PTR _u_sign$[ebp]
push eax
mov ecx, DWORD PTR _u$[ebp]
push ecx
call _GET_ABS_32
add esp, 8
mov DWORD PTR _u_abs$[ebp], eax
; 43 : if ((result = ep_uint.GreatestCommonDivisor_I_X(u_abs, nv->ABS, w)) != PMC_STATUS_OK)
mov esi, esp
mov eax, DWORD PTR _w$[ebp]
push eax
mov ecx, DWORD PTR _nv$[ebp]
mov edx, DWORD PTR [ecx+12]
push edx
mov eax, DWORD PTR _u_abs$[ebp]
push eax
call DWORD PTR _ep_uint+244
cmp esi, esp
call __RTC_CheckEsp
mov DWORD PTR _result$[ebp], eax
cmp DWORD PTR _result$[ebp], 0
je SHORT $LN5@PMC_Greate
; 44 : return (result);
mov eax, DWORD PTR _result$[ebp]
jmp SHORT $LN1@PMC_Greate
$LN5@PMC_Greate:
; 45 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@PMC_Greate:
; 46 : }
push edx
mov ecx, ebp
push eax
lea edx, DWORD PTR $LN9@PMC_Greate
call @_RTC_CheckStackVars@8
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
add esp, 244 ; 000000f4H
cmp ebp, esp
call __RTC_CheckEsp
mov esp, ebp
pop ebp
ret 12 ; 0000000cH
npad 2
$LN9@PMC_Greate:
DD 1
DD $LN8@PMC_Greate
$LN8@PMC_Greate:
DD -33 ; ffffffdfH
DD 1
DD $LN7@PMC_Greate
$LN7@PMC_Greate:
DB 117 ; 00000075H
DB 95 ; 0000005fH
DB 115 ; 00000073H
DB 105 ; 00000069H
DB 103 ; 00000067H
DB 110 ; 0000006eH
DB 0
_PMC_GreatestCommonDivisor_I_X@12 ENDP
_TEXT ENDS
END
| 21.426154 | 119 | 0.666762 |
71055e7bd7f7f4d04dc5b5ceb0dbde46ca52bf1f | 469 | asm | Assembly | oeis/077/A077901.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/077/A077901.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/077/A077901.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A077901: Expansion of (1-x)^(-1)/(1+x-x^2-2*x^3).
; Submitted by Christian Krause
; 1,0,2,1,2,4,1,8,2,9,10,4,25,0,34,17,18,68,-15,120,2,89,154,-60,393,-144,418,225,-94,1156,-799,1768,-254,425,2858,-2940,6649,-3872,4642,4785,-7886,21956,-20271,26456,-2814,-11271,61370,-78268,117097,-72624,33186,128385,-240446,435204
add $0,1
mov $2,3
mov $4,6
lpb $0
sub $0,1
sub $3,$1
add $4,$1
mov $1,$3
mov $3,$2
mov $2,$4
mov $4,$3
lpe
mov $0,$2
sub $0,3
div $0,3
| 23.45 | 234 | 0.618337 |
d3215e72d99748cbcfaa888f1e9fba9de65ccd50 | 12,739 | asm | Assembly | syslinux/core/pxelinux.asm | TooDumbForAName/modern-boot-floppy | c0f4352ee356aab3f31d214af73d2462bde28198 | [
"BSD-2-Clause"
] | null | null | null | syslinux/core/pxelinux.asm | TooDumbForAName/modern-boot-floppy | c0f4352ee356aab3f31d214af73d2462bde28198 | [
"BSD-2-Clause"
] | null | null | null | syslinux/core/pxelinux.asm | TooDumbForAName/modern-boot-floppy | c0f4352ee356aab3f31d214af73d2462bde28198 | [
"BSD-2-Clause"
] | null | null | null | ; -*- fundamental -*- (asm-mode sucks)
; ****************************************************************************
;
; pxelinux.asm
;
; A program to boot Linux kernels off a TFTP server using the Intel PXE
; network booting API. It is based on the SYSLINUX boot loader for
; MS-DOS floppies.
;
; Copyright 1994-2009 H. Peter Anvin - All Rights Reserved
; Copyright 2009 Intel Corporation; author: H. Peter Anvin
;
; This program 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, Inc., 53 Temple Place Ste 330,
; Boston MA 02111-1307, USA; either version 2 of the License, or
; (at your option) any later version; incorporated herein by reference.
;
; ****************************************************************************
%define IS_PXELINUX 1
%include "head.inc"
%include "pxe.inc"
; gPXE extensions support
%define GPXE 1
;
; Some semi-configurable constants... change on your own risk.
;
my_id equ pxelinux_id
NULLFILE equ 0 ; Zero byte == null file name
NULLOFFSET equ 0 ; Position in which to look
REBOOT_TIME equ 5*60 ; If failure, time until full reset
%assign HIGHMEM_SLOP 128*1024 ; Avoid this much memory near the top
TFTP_BLOCKSIZE_LG2 equ 9 ; log2(bytes/block)
TFTP_BLOCKSIZE equ (1 << TFTP_BLOCKSIZE_LG2)
SECTOR_SHIFT equ TFTP_BLOCKSIZE_LG2
SECTOR_SIZE equ TFTP_BLOCKSIZE
; ---------------------------------------------------------------------------
; BEGIN CODE
; ---------------------------------------------------------------------------
;
; Memory below this point is reserved for the BIOS and the MBR
;
section .earlybss
global trackbuf
trackbufsize equ 8192
trackbuf resb trackbufsize ; Track buffer goes here
; ends at 2800h
; These fields save information from before the time
; .bss is zeroed... must be in .earlybss
global InitStack
InitStack resd 1
section .bss16
alignb FILENAME_MAX
PXEStack resd 1 ; Saved stack during PXE call
alignb 4
global DHCPMagic, RebootTime, APIVer, BIOSName
RebootTime resd 1 ; Reboot timeout, if set by option
StrucPtr resw 2 ; Pointer to PXENV+ or !PXE structure
APIVer resw 1 ; PXE API version found
LocalBootType resw 1 ; Local boot return code
DHCPMagic resb 1 ; PXELINUX magic flags
BIOSName resw 1 ; Dummy variable - always 0
section .text16
global StackBuf
StackBuf equ STACK_TOP-44 ; Base of stack if we use our own
StackHome equ StackBuf
; PXE loads the whole file, but assume it can't be more
; than (384-31)K in size.
MaxLMA equ 384*1024
;
; Primary entry point.
;
bootsec equ $
_start:
jmp 0:_start1 ; Canonicalize the address and skip
; the patch header
;
; Patch area for adding hardwired DHCP options
;
align 4
hcdhcp_magic dd 0x2983c8ac ; Magic number
hcdhcp_len dd 7*4 ; Size of this structure
hcdhcp_flags dd 0 ; Reserved for the future
; Parameters to be parsed before the ones from PXE
bdhcp_offset dd 0 ; Offset (entered by patcher)
bdhcp_len dd 0 ; Length (entered by patcher)
; Parameters to be parsed *after* the ones from PXE
adhcp_offset dd 0 ; Offset (entered by patcher)
adhcp_len dd 0 ; Length (entered by patcher)
_start1:
pushfd ; Paranoia... in case of return to PXE
pushad ; ... save as much state as possible
push ds
push es
push fs
push gs
cld ; Copy upwards
xor ax,ax
mov ds,ax
mov es,ax
%if 0 ; debugging code only... not intended for production use
; Clobber the stack segment, to test for specific pathologies
mov di,STACK_BASE
mov cx,STACK_LEN >> 1
mov ax,0xf4f4
rep stosw
; Clobber the tail of the 64K segment, too
extern __bss1_end
mov di,__bss1_end
sub cx,di ; CX = 0 previously
shr cx,1
rep stosw
%endif
; That is all pushed onto the PXE stack. Save the pointer
; to it and switch to an internal stack.
mov [InitStack],sp
mov [InitStack+2],ss
lss esp,[BaseStack]
sti ; Stack set up and ready
;
; Initialize screen (if we're using one)
;
%include "init.inc"
;
; Tell the user we got this far
;
mov si,syslinux_banner
call writestr_early
mov si,copyright_str
call writestr_early
;
; do fs initialize
;
mov eax,ROOT_FS_OPS
xor ebp,ebp
pm_call fs_init
section .rodata
alignz 4
ROOT_FS_OPS:
extern pxe_fs_ops
dd pxe_fs_ops
dd 0
section .text16
;
; Initialize the idle mechanism
;
call reset_idle
;
; Now we're all set to start with our *real* business.
;
; In previous versions I avoided using 32-bit registers because of a
; rumour some BIOSes clobbered the upper half of 32-bit registers at
; random. I figure, though, that if there are any of those still left
; they probably won't be trying to install Linux on them...
;
; The code is still ripe with 16-bitisms, though. Not worth the hassle
; to take'm out. In fact, we may want to put them back if we're going
; to boot ELKS at some point.
;
;
; Linux kernel loading code is common. However, we need to define
; a couple of helper macros...
;
; Unload PXE stack
%define HAVE_UNLOAD_PREP
%macro UNLOAD_PREP 0
pm_call unload_pxe
%endmacro
;
; Jump to 32-bit ELF space
;
pm_call load_env32
jmp kaboom ; load_env32() shouldn't return. If it does, then kaboom!
print_hello:
enter_command:
auto_boot:
pm_call hello
;
; Save hardwired DHCP options. This is done before the C environment
; is initialized, so it has to be done in assembly.
;
%define MAX_DHCP_OPTS 4096
bits 32
section .savedata
global bdhcp_data, adhcp_data
bdhcp_data: resb MAX_DHCP_OPTS
adhcp_data: resb MAX_DHCP_OPTS
section .textnr
pm_save_data:
mov eax,MAX_DHCP_OPTS
movzx ecx,word [bdhcp_len]
cmp ecx,eax
jna .oksize
mov ecx,eax
mov [bdhcp_len],ax
.oksize:
mov esi,[bdhcp_offset]
add esi,_start
mov edi,bdhcp_data
add ecx,3
shr ecx,2
rep movsd
adhcp_copy:
movzx ecx,word [adhcp_len]
cmp ecx,eax
jna .oksize
mov ecx,eax
mov [adhcp_len],ax
.oksize:
mov esi,[adhcp_offset]
add esi,_start
mov edi,adhcp_data
add ecx,3
shr ecx,2
rep movsd
ret
bits 16
; As core/ui.inc used to be included here in core/pxelinux.asm, and it's no
; longer used, its global variables that were previously used by
; core/pxelinux.asm are now declared here.
section .bss16
alignb 4
Kernel_EAX resd 1
Kernel_SI resw 1
section .bss16
alignb 4
ThisKbdTo resd 1 ; Temporary holder for KbdTimeout
ThisTotalTo resd 1 ; Temporary holder for TotalTimeout
KernelExtPtr resw 1 ; During search, final null pointer
FuncFlag resb 1 ; Escape sequences received from keyboard
KernelType resb 1 ; Kernel type, from vkernel, if known
global KernelName
KernelName resb FILENAME_MAX ; Mangled name for kernel
section .text16
;
; COMBOOT-loading code
;
%include "comboot.inc"
%include "com32.inc"
;
; Boot sector loading code
;
;
; Abort loading code
;
;
; Hardware cleanup common code
;
%include "localboot.inc"
;
; kaboom: write a message and bail out. Wait for quite a while,
; or a user keypress, then do a hard reboot.
;
; Note: use BIOS_timer here; we may not have jiffies set up.
;
global kaboom
kaboom:
RESET_STACK_AND_SEGS AX
.patch: mov si,bailmsg
call writestr_early ; Returns with AL = 0
.drain: call pollchar
jz .drained
call getchar
jmp short .drain
.drained:
mov edi,[RebootTime]
mov al,[DHCPMagic]
and al,09h ; Magic+Timeout
cmp al,09h
je .time_set
mov edi,REBOOT_TIME
.time_set:
mov cx,18
.wait1: push cx
mov ecx,edi
.wait2: mov dx,[BIOS_timer]
.wait3: call pollchar
jnz .keypress
call do_idle
cmp dx,[BIOS_timer]
je .wait3
loop .wait2,ecx
mov al,'.'
pm_call pm_writechr
pop cx
loop .wait1
.keypress:
pm_call crlf
mov word [BIOS_magic],0 ; Cold reboot
jmp 0F000h:0FFF0h ; Reset vector address
;
; pxenv
;
; This is the main PXENV+/!PXE entry point, using the PXENV+
; calling convention. This is a separate local routine so
; we can hook special things from it if necessary. In particular,
; some PXE stacks seem to not like being invoked from anything but
; the initial stack, so humour it.
;
; While we're at it, save and restore all registers.
;
global pxenv
pxenv:
pushfd
pushad
; We may be removing ourselves from memory
cmp bx,PXENV_RESTART_TFTP
jz .disable_timer
cmp bx,PXENV_FILE_EXEC
jnz .store_stack
.disable_timer:
call timer_cleanup
.store_stack:
pushf
cli
inc word [cs:PXEStackLock]
jnz .skip1
mov [cs:PXEStack],sp
mov [cs:PXEStack+2],ss
lss sp,[cs:InitStack]
.skip1:
popf
; Pre-clear the Status field
mov word [es:di],cs
; This works either for the PXENV+ or the !PXE calling
; convention, as long as we ignore CF (which is redundant
; with AX anyway.)
push es
push di
push bx
.jump: call 0:0
add sp,6
mov [cs:PXEStatus],ax
pushf
cli
dec word [cs:PXEStackLock]
jns .skip2
lss sp,[cs:PXEStack]
.skip2:
popf
mov bp,sp
and ax,ax
setnz [bp+32] ; If AX != 0 set CF on return
; This clobbers the AX return, but we already saved it into
; the PXEStatus variable.
popad
; If the call failed, it could return.
cmp bx,PXENV_RESTART_TFTP
jz .enable_timer
cmp bx,PXENV_FILE_EXEC
jnz .pop_flags
.enable_timer:
call timer_init
.pop_flags:
popfd ; Restore flags (incl. IF, DF)
ret
; Must be after function def due to NASM bug
global PXEEntry
PXEEntry equ pxenv.jump+1
;
; The PXEStackLock keeps us from switching stacks if we take an interrupt
; (which ends up calling pxenv) while we are already on the PXE stack.
; It will be -1 normally, 0 inside a PXE call, and a positive value
; inside a *nested* PXE call.
;
section .data16
alignb 2
PXEStackLock dw -1
section .bss16
alignb 2
PXEStatus resb 2
section .text16
;
; Invoke INT 1Ah on the PXE stack. This is used by the "Plan C" method
; for finding the PXE entry point.
;
global pxe_int1a
pxe_int1a:
mov [cs:PXEStack],sp
mov [cs:PXEStack+2],ss
lss sp,[cs:InitStack]
int 1Ah ; May trash registers
lss sp,[cs:PXEStack]
ret
;
; Special unload for gPXE: this switches the InitStack from
; gPXE to the ROM PXE stack.
;
%if GPXE
global gpxe_unload
gpxe_unload:
mov bx,PXENV_FILE_EXIT_HOOK
mov di,pxe_file_exit_hook
call pxenv
jc .plain
; Now we actually need to exit back to gPXE, which will
; give control back to us on the *new* "original stack"...
pushfd
push ds
push es
mov [PXEStack],sp
mov [PXEStack+2],ss
lss sp,[InitStack]
pop gs
pop fs
pop es
pop ds
popad
popfd
xor ax,ax
retf
.resume:
cli
; gPXE will have a stack frame looking much like our
; InitStack, except it has a magic cookie at the top,
; and the segment registers are in reverse order.
pop eax
pop ax
pop bx
pop cx
pop dx
push ax
push bx
push cx
push dx
mov [cs:InitStack],sp
mov [cs:InitStack+2],ss
lss sp,[cs:PXEStack]
pop es
pop ds
popfd
.plain:
ret
writestr_early:
pm_call pm_writestr
ret
pollchar:
pm_call pm_pollchar
ret
getchar:
pm_call pm_getchar
ret
section .data16
alignz 4
pxe_file_exit_hook:
.status: dw 0
.offset: dw gpxe_unload.resume
.seg: dw 0
%endif
section .text16
; -----------------------------------------------------------------------------
; PXE modules
; -----------------------------------------------------------------------------
%if IS_LPXELINUX
%include "pxeisr.inc"
%endif
; -----------------------------------------------------------------------------
; Common modules
; -----------------------------------------------------------------------------
%include "common.inc" ; Universal modules
; -----------------------------------------------------------------------------
; Begin data section
; -----------------------------------------------------------------------------
section .data16
global copyright_str, syslinux_banner
copyright_str db ' Copyright (C) 1994-'
asciidec YEAR
db ' H. Peter Anvin et al', CR, LF, 0
err_bootfailed db CR, LF, 'Boot failed: press a key to retry, or wait for reset...', CR, LF, 0
bailmsg equ err_bootfailed
localboot_msg db 'Booting from local disk...', CR, LF, 0
syslinux_banner db CR, LF, MY_NAME, ' ', VERSION_STR, ' ', DATE_STR, ' ', 0
;
; Misc initialized (data) variables
;
section .data16
global KeepPXE
KeepPXE db 0 ; Should PXE be kept around?
;
; IP information. Note that the field are in the same order as the
; Linux kernel expects in the ip= option.
;
section .bss16
alignb 4
global IPInfo
IPInfo:
.IPv4 resd 1 ; IPv4 information
.MyIP resd 1 ; My IP address
.ServerIP resd 1
.GatewayIP resd 1
.Netmask resd 1
| 22.232112 | 94 | 0.663788 |
a40a13e8898884d716299c709181aa2d203e3543 | 334 | asm | Assembly | examples/fgx.asm | Benderx2/FVM | 520ba257509069d0afeb8771b1b254681e4becfb | [
"BSD-2-Clause"
] | 2 | 2017-07-20T00:37:43.000Z | 2017-09-24T14:33:12.000Z | examples/fgx.asm | Benderx2/FVM | 520ba257509069d0afeb8771b1b254681e4becfb | [
"BSD-2-Clause"
] | null | null | null | examples/fgx.asm | Benderx2/FVM | 520ba257509069d0afeb8771b1b254681e4becfb | [
"BSD-2-Clause"
] | null | null | null | ; FGX - Flouronix Graphics X. lol.
; Shows a demonstration of using FGX to switch to higher resolutions
include 'a32.inc'
_start:
LOAD_R0 320
OUT 0x3D
LOAD_R0 200
OUT 0x3E
LOAD_R0 32
OUT 0x3F
; Set resolution
LOAD_R0 0x47E3
OUT 0x3B
.ploop:
LOAD_R1 'V'
VM_CALL 0
JMPF .ploop
_end_start:
_data:
_end_data:
_bss:
_end_bss:
| 14.521739 | 68 | 0.742515 |
7a7c547944304033429d59c5e75b9abd0aed84bf | 766 | asm | Assembly | programs/oeis/118/A118263.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/118/A118263.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/118/A118263.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A118263: a(3n) = 2^n, a(3n+1) = 3^n, a(3n+2) = 4^n.
; 1,1,1,2,3,4,4,9,16,8,27,64,16,81,256,32,243,1024,64,729,4096,128,2187,16384,256,6561,65536,512,19683,262144,1024,59049,1048576,2048,177147,4194304,4096,531441,16777216,8192,1594323,67108864,16384,4782969,268435456,32768,14348907,1073741824,65536,43046721,4294967296,131072,129140163,17179869184,262144,387420489,68719476736,524288,1162261467,274877906944,1048576,3486784401,1099511627776,2097152,10460353203,4398046511104,4194304,31381059609,17592186044416,8388608,94143178827,70368744177664,16777216,282429536481,281474976710656,33554432,847288609443,1125899906842624,67108864,2541865828329,4503599627370496,134217728,7625597484987
sub $0,1
lpb $0
mov $3,$0
sub $0,3
mov $1,$3
add $2,1
lpe
pow $1,$2
| 63.833333 | 634 | 0.79765 |
76ace68c08f46b7b0177e310c8593a124e012c39 | 12,550 | asm | Assembly | P6/data_P6_2/ALUTest76.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | 1 | 2022-01-23T09:24:47.000Z | 2022-01-23T09:24:47.000Z | P6/data_P6_2/ALUTest76.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6_2/ALUTest76.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | addiu $6,$6,-27189
lb $5,3($0)
srav $3,$0,$3
lh $1,8($0)
sw $3,4($0)
sw $3,0($0)
sb $5,16($0)
addiu $1,$1,-6653
nor $4,$4,$3
srav $6,$4,$3
nor $3,$4,$3
slt $3,$1,$3
addu $0,$2,$3
sw $0,0($0)
addu $5,$2,$3
lhu $3,4($0)
sltiu $0,$4,-4216
addu $5,$5,$3
sltiu $4,$3,32113
ori $3,$3,9300
sh $4,6($0)
addu $5,$3,$3
and $6,$5,$3
srav $3,$3,$3
lb $1,16($0)
xori $1,$1,45602
sllv $4,$4,$3
addiu $0,$0,-28010
addu $4,$3,$3
nor $0,$6,$3
lw $3,16($0)
and $5,$0,$3
sltu $5,$1,$3
addu $3,$3,$3
andi $4,$3,59565
srlv $1,$0,$3
sltu $4,$3,$3
sltiu $5,$3,-25320
lh $1,4($0)
addiu $5,$2,25623
nor $5,$3,$3
sll $3,$3,9
sllv $1,$4,$3
sltu $5,$5,$3
lb $3,5($0)
lhu $1,12($0)
lbu $6,8($0)
xori $4,$1,33863
lw $5,16($0)
sw $5,12($0)
subu $4,$3,$3
sltiu $5,$5,29530
sltiu $5,$4,-30508
sw $0,8($0)
sw $1,8($0)
addu $4,$5,$3
slti $5,$3,22951
sh $4,12($0)
addiu $4,$0,26183
lhu $1,2($0)
ori $4,$4,37494
lb $6,16($0)
sllv $1,$4,$3
lh $3,12($0)
subu $3,$3,$3
srav $3,$0,$3
xori $3,$3,21862
lw $6,0($0)
sltu $5,$3,$3
sra $0,$3,4
ori $3,$3,64488
lbu $5,15($0)
srav $3,$6,$3
sltiu $3,$3,-22480
lw $3,12($0)
slt $4,$4,$3
sra $3,$1,20
ori $4,$5,30498
lb $4,9($0)
addu $5,$3,$3
addu $3,$3,$3
sw $1,0($0)
nor $6,$6,$3
sra $6,$4,6
addu $1,$3,$3
lbu $3,7($0)
slti $4,$4,-25671
sh $4,16($0)
sb $1,0($0)
sll $3,$3,25
sh $4,12($0)
lbu $3,2($0)
xor $3,$3,$3
srav $3,$0,$3
lh $4,10($0)
sltu $3,$3,$3
slt $5,$3,$3
slt $5,$6,$3
addiu $4,$5,21726
lh $5,14($0)
sb $5,8($0)
sh $4,10($0)
xor $3,$6,$3
lw $4,8($0)
lbu $5,7($0)
slt $4,$6,$3
or $4,$5,$3
subu $4,$5,$3
xor $1,$6,$3
addu $1,$4,$3
lw $3,16($0)
lh $1,16($0)
sll $4,$4,31
andi $3,$4,19557
sll $4,$3,30
addu $1,$1,$3
addu $0,$3,$3
lw $3,4($0)
nor $3,$4,$3
lh $1,2($0)
lhu $5,0($0)
and $3,$6,$3
sw $3,12($0)
addiu $3,$0,-13595
or $5,$4,$3
addiu $4,$3,-11849
xor $4,$0,$3
srlv $1,$5,$3
xori $3,$3,3014
lh $4,12($0)
xori $5,$5,52645
srl $3,$1,27
xor $3,$1,$3
addu $4,$3,$3
subu $1,$0,$3
addu $4,$5,$3
lw $5,8($0)
addiu $3,$3,8615
lbu $3,5($0)
nor $3,$6,$3
nor $3,$3,$3
sb $5,11($0)
addu $5,$5,$3
and $0,$5,$3
sw $5,0($0)
sll $5,$0,22
srav $4,$3,$3
srl $3,$5,20
xor $1,$4,$3
andi $3,$0,47583
slti $4,$4,13941
subu $1,$0,$3
xor $1,$3,$3
srlv $3,$3,$3
sb $3,11($0)
sltu $5,$4,$3
slt $3,$3,$3
sh $3,0($0)
xori $5,$3,59841
lhu $5,8($0)
sh $5,8($0)
andi $1,$5,61208
sb $3,7($0)
or $5,$4,$3
sllv $3,$3,$3
subu $5,$4,$3
srav $4,$3,$3
addiu $4,$0,-19446
slti $3,$3,-13330
addu $5,$5,$3
subu $4,$5,$3
sw $4,0($0)
srlv $3,$4,$3
srl $1,$3,24
sllv $5,$3,$3
srl $0,$2,7
sll $3,$0,6
lbu $3,8($0)
ori $6,$3,54516
subu $3,$5,$3
addiu $1,$1,-7359
xor $3,$0,$3
sh $4,2($0)
slti $4,$6,12409
lbu $5,2($0)
sh $4,6($0)
srlv $1,$3,$3
addiu $1,$3,13474
addiu $1,$3,-21867
lh $3,12($0)
xor $3,$1,$3
slti $5,$6,-22886
sllv $3,$3,$3
and $6,$6,$3
addu $3,$3,$3
sh $3,12($0)
addiu $6,$4,-26037
subu $0,$5,$3
lh $4,6($0)
srlv $0,$6,$3
addu $5,$5,$3
slti $1,$2,27920
addu $6,$3,$3
srl $5,$3,26
slti $4,$5,15515
sb $0,8($0)
addiu $0,$4,-9595
nor $3,$3,$3
sra $5,$3,27
srav $5,$5,$3
sh $4,8($0)
lh $3,0($0)
nor $4,$4,$3
sllv $3,$0,$3
or $3,$0,$3
lh $5,16($0)
xor $4,$5,$3
sll $3,$3,10
slti $5,$5,-4266
and $6,$1,$3
slti $5,$1,17760
sw $5,0($0)
andi $4,$4,48549
sra $3,$4,20
sb $6,16($0)
andi $1,$4,54002
sra $1,$3,10
xor $1,$4,$3
srl $3,$6,11
sra $6,$6,19
sllv $3,$3,$3
addu $4,$4,$3
slt $1,$4,$3
srl $5,$4,26
sllv $3,$6,$3
lbu $3,15($0)
andi $3,$0,18461
sra $4,$3,28
addiu $3,$4,-6772
srav $5,$5,$3
srlv $5,$1,$3
sltu $5,$1,$3
sh $3,14($0)
andi $1,$1,1653
andi $0,$4,39391
lh $3,0($0)
lhu $6,10($0)
or $0,$3,$3
andi $4,$0,61928
sh $0,14($0)
sltiu $3,$3,21564
sra $5,$5,15
xori $6,$5,42416
subu $1,$1,$3
addiu $4,$4,-22544
and $6,$1,$3
sb $3,3($0)
addu $3,$4,$3
srav $3,$3,$3
lbu $3,10($0)
addu $3,$3,$3
srav $6,$3,$3
or $3,$1,$3
sltiu $5,$6,-3788
nor $5,$5,$3
addiu $3,$3,-15049
srlv $6,$3,$3
lw $3,12($0)
sll $3,$5,3
sh $4,12($0)
ori $3,$3,4999
xor $3,$4,$3
srl $6,$4,25
slti $5,$3,-4209
nor $1,$5,$3
sltu $3,$6,$3
subu $5,$3,$3
and $3,$3,$3
sb $3,9($0)
slt $4,$5,$3
subu $6,$5,$3
subu $1,$6,$3
sllv $3,$5,$3
srl $5,$5,17
sllv $3,$3,$3
nor $3,$5,$3
subu $5,$3,$3
srav $0,$4,$3
sw $4,8($0)
slt $3,$3,$3
andi $3,$2,28625
sh $4,4($0)
subu $6,$3,$3
lbu $3,4($0)
sltiu $3,$5,-27287
sh $6,16($0)
addiu $1,$6,-3802
addu $1,$1,$3
sltu $3,$5,$3
sltiu $5,$3,-1411
sll $6,$4,28
xori $4,$6,14292
xor $0,$3,$3
slti $0,$4,-16298
lh $4,0($0)
subu $1,$3,$3
ori $1,$5,17661
sra $4,$3,21
addiu $3,$3,24035
sltiu $4,$3,-27842
ori $4,$4,40907
lbu $3,5($0)
lh $3,6($0)
addu $0,$5,$3
lh $4,14($0)
lw $1,0($0)
srlv $5,$5,$3
lw $4,0($0)
addu $4,$4,$3
or $3,$3,$3
lbu $5,16($0)
or $1,$5,$3
sh $3,14($0)
lb $1,2($0)
addu $5,$3,$3
lb $3,9($0)
sll $4,$4,4
andi $4,$3,37172
xor $1,$1,$3
andi $5,$1,3597
or $0,$3,$3
srl $3,$2,19
sb $0,3($0)
xori $3,$3,3783
sltiu $0,$3,-1796
ori $3,$3,59011
lw $5,0($0)
sllv $4,$3,$3
slt $5,$5,$3
subu $6,$6,$3
sw $1,0($0)
slt $4,$0,$3
sltiu $1,$4,-14749
srlv $1,$0,$3
nor $4,$4,$3
sw $4,16($0)
addiu $4,$4,-18605
or $4,$5,$3
sh $1,8($0)
slti $6,$6,-454
subu $2,$2,$3
srl $4,$2,8
andi $5,$3,12051
sllv $4,$3,$3
sb $5,4($0)
and $3,$3,$3
srl $6,$5,30
lw $6,4($0)
addiu $1,$6,2405
addiu $3,$3,-14584
sh $1,14($0)
sra $5,$5,4
sb $5,6($0)
sra $3,$6,28
slt $5,$4,$3
and $3,$1,$3
andi $1,$0,19789
subu $5,$2,$3
addu $1,$1,$3
slti $1,$6,-31128
lb $6,8($0)
sw $4,8($0)
xori $0,$0,64838
sltu $4,$4,$3
xori $0,$3,4482
lb $3,14($0)
sw $3,12($0)
srlv $3,$4,$3
sh $3,0($0)
slt $1,$3,$3
sltu $5,$3,$3
ori $4,$0,23194
addiu $4,$5,-12013
sllv $1,$3,$3
lbu $4,16($0)
lb $3,16($0)
sltu $3,$3,$3
slt $5,$3,$3
sw $1,4($0)
ori $0,$3,18827
sh $3,4($0)
slt $3,$1,$3
slt $4,$4,$3
sll $4,$4,11
sra $4,$3,13
lhu $6,12($0)
sh $5,0($0)
sltu $4,$1,$3
addiu $3,$6,-1637
sh $1,14($0)
slti $4,$3,8429
sb $3,3($0)
slti $5,$5,14989
andi $0,$4,36504
ori $4,$6,40947
ori $4,$3,43531
andi $4,$0,53922
sltu $5,$1,$3
andi $1,$3,44284
addu $5,$4,$3
sll $3,$3,1
or $3,$3,$3
srav $1,$1,$3
sllv $3,$0,$3
lhu $4,14($0)
slt $0,$4,$3
slt $3,$5,$3
addiu $6,$3,29378
subu $5,$3,$3
sra $0,$4,10
subu $3,$4,$3
nor $4,$6,$3
addu $5,$3,$3
xor $1,$4,$3
and $3,$5,$3
addu $3,$3,$3
sltiu $3,$6,-28954
lb $1,12($0)
addiu $1,$1,-22290
sltu $6,$6,$3
andi $5,$5,12086
lh $4,8($0)
xor $4,$4,$3
sra $3,$2,27
lhu $4,0($0)
lbu $4,11($0)
addu $4,$3,$3
slt $1,$3,$3
srav $4,$5,$3
subu $0,$5,$3
slt $3,$1,$3
sw $5,4($0)
subu $1,$3,$3
addu $6,$3,$3
xor $4,$1,$3
srlv $4,$3,$3
sra $6,$0,28
srav $4,$6,$3
lbu $6,6($0)
sltiu $4,$1,-13620
srlv $1,$3,$3
addu $0,$6,$3
xor $3,$3,$3
sw $1,12($0)
srav $3,$4,$3
addu $6,$0,$3
subu $1,$3,$3
srlv $1,$0,$3
sll $5,$5,15
sw $3,0($0)
addiu $6,$3,-5742
sb $4,9($0)
addu $3,$1,$3
sltu $4,$1,$3
ori $3,$2,3019
srav $4,$4,$3
sw $5,8($0)
addu $0,$5,$3
xor $1,$5,$3
subu $3,$4,$3
sltiu $4,$4,-21976
sra $5,$4,23
srav $5,$1,$3
sh $0,10($0)
sra $3,$4,30
xor $1,$4,$3
addiu $1,$1,-3749
andi $4,$4,14754
addu $6,$6,$3
sw $3,12($0)
slti $4,$5,-6917
srlv $6,$6,$3
addiu $3,$5,17553
lw $1,12($0)
sb $4,2($0)
srlv $5,$3,$3
sllv $4,$1,$3
sw $3,4($0)
ori $4,$4,22619
and $3,$1,$3
andi $3,$5,65159
addiu $5,$5,-20235
lbu $1,15($0)
nor $1,$1,$3
sltu $0,$3,$3
subu $4,$0,$3
ori $4,$3,39156
slt $5,$3,$3
subu $3,$6,$3
nor $4,$3,$3
and $4,$5,$3
ori $4,$6,27569
lw $4,4($0)
lb $1,6($0)
subu $1,$1,$3
addiu $3,$5,10423
lhu $6,12($0)
lhu $3,8($0)
sb $5,16($0)
srlv $3,$3,$3
ori $1,$6,25357
lh $3,12($0)
xori $3,$3,57395
slti $3,$3,-4867
lhu $1,8($0)
addu $3,$3,$3
sh $1,0($0)
srlv $3,$4,$3
lh $1,16($0)
nor $6,$6,$3
slt $1,$5,$3
srlv $0,$4,$3
ori $3,$3,46297
subu $3,$3,$3
xor $6,$6,$3
lhu $4,12($0)
andi $3,$4,45731
xor $3,$5,$3
andi $1,$5,12869
sw $6,8($0)
sltiu $4,$4,1282
sh $1,8($0)
andi $6,$4,56500
addiu $0,$4,-6553
sltu $4,$5,$3
ori $4,$3,25109
addu $3,$3,$3
lb $1,5($0)
addiu $5,$5,-20921
lbu $4,13($0)
slt $3,$3,$3
xori $5,$1,15643
lhu $1,10($0)
addiu $3,$1,-28919
addiu $6,$5,9863
addu $4,$4,$3
lh $3,0($0)
subu $3,$4,$3
sll $1,$3,31
sltiu $5,$5,-1276
addu $3,$1,$3
sra $4,$5,9
xor $6,$6,$3
or $1,$0,$3
nor $1,$5,$3
sltiu $4,$0,31052
sltiu $4,$4,-24400
addiu $1,$3,-32006
sw $4,4($0)
sll $1,$1,14
srl $3,$5,20
sllv $1,$1,$3
sw $3,8($0)
xori $3,$3,61747
sb $1,12($0)
lb $4,11($0)
lw $5,8($0)
srav $4,$1,$3
xori $5,$1,40196
sll $3,$3,7
sb $1,10($0)
slt $0,$3,$3
sltu $4,$0,$3
subu $5,$3,$3
or $0,$1,$3
andi $4,$4,51585
srlv $5,$4,$3
and $3,$3,$3
nor $5,$5,$3
nor $5,$3,$3
or $6,$4,$3
andi $1,$6,60957
srl $3,$5,26
sw $3,0($0)
srl $0,$0,22
lw $3,0($0)
subu $4,$0,$3
sh $5,10($0)
lh $3,8($0)
or $3,$3,$3
lw $3,12($0)
ori $6,$4,61690
sw $5,0($0)
sb $0,12($0)
subu $1,$1,$3
xor $3,$1,$3
sw $5,4($0)
slti $4,$4,-19326
xor $3,$3,$3
addu $4,$4,$3
srav $0,$4,$3
srlv $3,$1,$3
subu $3,$4,$3
srl $3,$3,13
sh $3,10($0)
addu $4,$4,$3
subu $1,$4,$3
addu $1,$4,$3
sw $1,12($0)
sllv $1,$3,$3
srav $1,$4,$3
srlv $5,$5,$3
addiu $3,$5,22151
andi $3,$5,9568
or $3,$4,$3
ori $3,$3,8480
sltu $3,$0,$3
and $3,$3,$3
sll $6,$0,4
addiu $5,$6,29666
xori $6,$6,56408
sh $4,0($0)
sllv $3,$3,$3
lb $1,16($0)
addu $4,$2,$3
ori $4,$0,43138
sh $3,2($0)
subu $5,$6,$3
addiu $0,$3,-24710
sra $0,$2,7
addu $3,$5,$3
srl $4,$4,30
sltiu $3,$3,12015
sllv $1,$3,$3
xor $1,$3,$3
or $1,$3,$3
xor $1,$5,$3
subu $1,$1,$3
slt $4,$4,$3
and $4,$4,$3
nor $5,$2,$3
xori $3,$5,60577
sb $4,11($0)
lhu $4,8($0)
or $1,$3,$3
addu $1,$1,$3
sra $4,$3,4
lh $6,14($0)
srlv $1,$3,$3
srlv $3,$4,$3
andi $3,$5,24461
ori $4,$1,41502
sltu $1,$4,$3
addiu $3,$3,-30530
lw $4,4($0)
andi $0,$3,22430
sltu $1,$3,$3
slt $5,$1,$3
slt $2,$2,$3
subu $4,$4,$3
sw $6,12($0)
sllv $1,$1,$3
sw $0,4($0)
sw $1,4($0)
andi $5,$5,26912
lh $1,4($0)
addu $3,$3,$3
addiu $1,$5,8905
addiu $0,$3,19633
subu $0,$5,$3
addiu $4,$6,-23084
slti $1,$3,-8192
slti $0,$3,-14983
lbu $1,0($0)
or $5,$1,$3
addu $6,$1,$3
sb $3,12($0)
slti $1,$3,31127
sllv $4,$5,$3
sra $5,$5,9
subu $5,$3,$3
slt $3,$0,$3
lbu $3,8($0)
srav $6,$1,$3
lh $4,0($0)
nor $0,$3,$3
lhu $4,8($0)
xor $6,$6,$3
srl $3,$0,17
ori $3,$3,43238
lb $3,15($0)
and $6,$6,$3
addiu $3,$0,-10834
addu $4,$4,$3
addiu $3,$6,790
lbu $1,10($0)
sh $3,6($0)
sh $0,10($0)
sltu $0,$1,$3
lbu $5,16($0)
lh $3,14($0)
lh $4,16($0)
addu $5,$3,$3
sra $1,$4,27
lb $1,9($0)
addu $4,$5,$3
andi $4,$6,6012
srl $4,$4,30
srav $5,$5,$3
sll $5,$0,8
addiu $4,$1,8905
or $1,$2,$3
srlv $3,$0,$3
addu $5,$4,$3
addu $3,$3,$3
and $5,$5,$3
addiu $6,$6,7315
srl $2,$2,23
srav $4,$4,$3
ori $6,$3,58062
srlv $4,$2,$3
addiu $1,$4,-10308
lh $4,0($0)
sltu $4,$1,$3
xor $4,$3,$3
xor $4,$4,$3
addiu $5,$4,-14068
srlv $6,$3,$3
xor $4,$4,$3
lhu $3,2($0)
addiu $4,$3,-16961
xor $3,$0,$3
subu $3,$1,$3
sll $1,$1,9
sb $3,3($0)
nor $4,$0,$3
sh $4,12($0)
sra $3,$3,10
srlv $4,$3,$3
slt $4,$3,$3
subu $5,$3,$3
addiu $3,$3,-4928
sra $6,$6,7
subu $5,$5,$3
sra $3,$3,1
lbu $0,7($0)
srlv $0,$0,$3
andi $1,$1,55555
lw $0,4($0)
ori $5,$5,28894
sltiu $3,$3,19065
ori $5,$6,63615
subu $6,$6,$3
addiu $4,$3,-18304
subu $3,$2,$3
sw $3,4($0)
andi $4,$5,44469
addu $1,$1,$3
sh $4,16($0)
sw $5,0($0)
ori $1,$5,10349
srlv $4,$0,$3
sb $3,14($0)
srl $1,$4,20
lbu $3,9($0)
slti $4,$5,-13171
addiu $3,$5,-22084
sllv $4,$4,$3
ori $1,$5,59123
addu $5,$3,$3
srlv $6,$4,$3
sh $5,4($0)
addiu $0,$4,21864
and $6,$4,$3
srav $0,$5,$3
or $1,$4,$3
sll $4,$3,6
lw $1,0($0)
xor $6,$0,$3
and $4,$4,$3
srav $3,$3,$3
lh $3,8($0)
ori $4,$4,51922
lh $3,2($0)
and $3,$5,$3
sll $3,$5,7
sra $3,$5,21
srlv $3,$3,$3
and $3,$4,$3
srlv $3,$3,$3
andi $4,$5,6705
slt $3,$3,$3
sllv $4,$4,$3
sltu $5,$2,$3
sh $5,6($0)
lw $3,0($0)
lw $4,16($0)
and $4,$3,$3
slt $4,$4,$3
ori $4,$3,5024
sra $3,$1,11
sb $3,14($0)
sra $1,$5,13
xor $1,$4,$3
sllv $1,$1,$3
sllv $3,$3,$3
srlv $3,$6,$3
sra $5,$5,29
andi $0,$0,50690
lh $0,8($0)
sltiu $0,$0,-2526
nor $0,$0,$3
xori $6,$4,32186
xor $4,$1,$3
addiu $4,$1,27621
subu $6,$1,$3
slt $1,$5,$3
lb $3,13($0)
or $3,$1,$3
sll $3,$6,4
addiu $3,$0,9637
sb $5,9($0)
nor $1,$1,$3
addiu $3,$4,28658
sllv $3,$3,$3
andi $4,$4,27236
xori $5,$4,5630
addu $4,$4,$3
lw $4,16($0)
slti $4,$1,-14114
lhu $3,10($0)
ori $0,$3,50955
lb $3,15($0)
sh $3,0($0)
slti $1,$1,20757
addiu $4,$3,-17193
sltu $3,$4,$3
sll $4,$3,10
addu $4,$4,$3
lb $5,13($0)
sh $3,10($0)
sltiu $3,$3,-4758
srlv $5,$4,$3
and $0,$0,$3
lh $4,12($0)
subu $4,$4,$3
addiu $1,$3,22654
xor $1,$1,$3
lb $0,9($0)
srav $3,$4,$3
addu $4,$0,$3
ori $4,$4,43630
or $5,$3,$3
or $3,$3,$3
subu $1,$1,$3
or $3,$3,$3
sh $1,6($0)
nor $3,$5,$3
sh $5,16($0)
andi $3,$0,14871
andi $5,$4,32024
xori $4,$5,35700
lbu $4,16($0)
addiu $4,$5,-16385
sll $3,$1,21
addiu $4,$4,5564
nor $3,$2,$3
ori $3,$6,51236
lhu $3,8($0)
addiu $3,$3,14550
sltiu $5,$0,-17318
lbu $3,16($0)
addiu $3,$4,-26454
nor $0,$5,$3
lhu $3,8($0)
addu $1,$1,$3
srlv $4,$0,$3
lh $3,12($0)
ori $4,$3,53747
lw $3,12($0)
ori $0,$6,17817
nor $3,$3,$3
srl $4,$3,25
subu $6,$4,$3
sb $6,11($0)
lh $3,6($0)
nor $3,$3,$3
sltu $1,$4,$3
| 14.116985 | 18 | 0.521673 |
ec8169c8bc6b73934176c6aafe141ac55f102b94 | 235 | asm | Assembly | programs/oeis/033/A033324.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/033/A033324.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/033/A033324.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A033324: [ 4/n ].
; 4,2,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
add $0,1
mov $1,4
div $1,$0
| 33.571429 | 185 | 0.493617 |
397f775b14f98f6ed42befb2070f3456cc51efdd | 779 | asm | Assembly | contention_test.asm | gasman/kisskill | 9f8112a8fb282dc1cf1d0c8ed5f91eacbb59485d | [
"MIT"
] | 2 | 2015-05-26T12:49:13.000Z | 2018-09-09T16:43:06.000Z | contention_test.asm | gasman/kisskill | 9f8112a8fb282dc1cf1d0c8ed5f91eacbb59485d | [
"MIT"
] | null | null | null | contention_test.asm | gasman/kisskill | 9f8112a8fb282dc1cf1d0c8ed5f91eacbb59485d | [
"MIT"
] | null | null | null | org 0x8000
; set up interrupt table at 0xbe00
ld hl,0xbe00
ld de,0xbe01
ld (hl),0xbf
ld bc,0x0100
ldir
ld a,0xc3 ; JP
ld (0xbfbf),a
ld hl,interrupt
ld (0xbfc0),hl
ld d,0x11
call check_contended
ld d,0x13
call check_contended
ld d,0x14
call check_contended
ld d,0x16
call check_contended
ret
check_contended
ld bc,0x7ffd
out (c),d
di
ld a,0xbe
ld i,a
im 2
ei
ld bc,0
halt
or a
countlp
ld hl,(0xc000)
inc bc
jr nc,countlp
di
im 1
ei
ld a,b
cp 8
jr c,is_contended
; not contended - record page from 25000 onward
uncont_list
ld hl,25000
ld (hl),d
inc hl
ld (uncont_list+1),hl
ret
is_contended
; contended - record page from 25002 onward
cont_list
ld hl,25002
ld (hl),d
inc hl
ld (cont_list+1),hl
ret
interrupt
scf
ei
ret | 10.971831 | 47 | 0.695764 |
627c3df17ec26b89536cd11f16274db16d2c0219 | 754 | asm | Assembly | oeis/313/A313023.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/313/A313023.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/313/A313023.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A313023: Coordination sequence Gal.6.130.6 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Jon Maiga
; 1,4,9,14,18,22,26,30,34,38,43,48,52,56,61,66,70,74,78,82,86,90,95,100,104,108,113,118,122,126,130,134,138,142,147,152,156,160,165,170,174,178,182,186,190,194,199,204,208,212
mov $3,$0
add $3,1
mov $7,$0
lpb $3
mov $0,$7
sub $3,1
sub $0,$3
mov $2,1
lpb $2
sub $2,1
mov $4,$0
mul $0,2
mov $5,1
mov $6,$4
lpb $0
mov $0,4
mov $5,2
div $6,2
gcd $6,6
trn $5,$6
lpe
add $5,$0
mul $5,2
sub $5,2
div $5,2
add $5,2
lpe
mov $0,$5
sub $0,1
add $8,$0
lpe
mov $0,$8
| 20.378378 | 177 | 0.575597 |
307886d59d45f967c615dd186059538549ebc4a1 | 980 | asm | Assembly | sbsext/ext/respr.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | sbsext/ext/respr.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | sbsext/ext/respr.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | * Respr handling V0.12 1985 Tony Tebby QJUMP
*
* RESPR (nbytes) allocate in res proc area
*
section exten
*
xdef respr
*
xref ext_flint
xref ut_rtfd1
*
include dev8_sbsext_ext_keys
*
* allocate in res proc area
*
respr
bsr.s ext_flint get one long integer argument
bne.s resp_exit ... oops
moveq #mt.alres,d0 allocate resident procedure area
move.l d1,d4 save length
trap #1
tst.l d0
beq.s resps ... ok
move.l d4,d1
moveq #mt.alchp,d0 try heap
moveq #-1,d2 allocate permanent
trap #1
tst.l d0
bne.s resp_exit ... oops
resps
move.l a0,d1 return the base address
bra.l ut_rtfd1
resp_exit
rts
end
| 25.789474 | 72 | 0.458163 |
d64295697d737db614bc3dbd4c0a7ac764f427b8 | 568 | asm | Assembly | oeis/168/A168675.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/168/A168675.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/168/A168675.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A168675: a(n) = n^8*(n + 1)/2.
; 0,1,384,13122,163840,1171875,5878656,23059204,75497472,215233605,550000000,1286153286,2794881024,5710115047,11068417920,20503125000,36507222016,62781816969,104689625472,169835630410,268800000000,416051452971,631072545664,939731823372,1375941427200,1983642578125,2819165371776,3954013510734,5478128975872,7503696194415,10169550000000,13646256599056,18141941858304,23908946510097,31251393335680,40533757031250,52190533287936,66737109624499,84781946700672,107040185209620,134348800000000
mov $1,$0
pow $0,8
pow $1,9
add $0,$1
div $0,2
| 63.111111 | 486 | 0.850352 |
b7d8fba914a510dc28e321e016cdbfb6fb4936c2 | 61,038 | asm | Assembly | Library/SpecUI/CommonUI/CWin/cwinClassMisc.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/SpecUI/CommonUI/CWin/cwinClassMisc.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/SpecUI/CommonUI/CWin/cwinClassMisc.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @---------------------------------------------------------------------
Copyright (c) GeoWorks 1994 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: GEOS
MODULE: CommonUI/CWin (common code for several specific ui's)
FILE: cwinClassMisc.asm
ROUTINES:
Name Description
---- -----------
INT EnsureHeaderGCMIcons Ensure Header GCM Icons :)
INT OLWinCreateGCMChildTrigger
Creates a GCM child trigger in parent
object's block, gives it a
ATTR_GEN_TRIGGER_ACTION_DATA w/OD of parent
object, adds it with a one-way linkage, &
SPEC_BUILD's it.
MTD MSG_GEN_SET_WIN_POSITION
This method is used by applications to
override a window's positioning attributes
and update the window.
MTD MSG_GEN_SET_WIN_SIZE This method is used by applications to
override a window's sizing attributes and
update the window.
MTD MSG_GEN_SET_WIN_CONSTRAIN
This method is used by applications to
override a window's constrain attributes
and update the window.
MTD MSG_OL_WIN_IS_MAXIMIZED Returns whether maximized.
MTD MSG_OL_WIN_IS_DEFAULT_ACTION_NAVIGATE_TO_NEXT_FIELD
Returns whether default action is navigate
to next field.
MTD MSG_SPEC_NAVIGATE_TO_PREVIOUS_FIELD
Returns whether default action is navigate
to next field.
MTD MSG_SPEC_NAVIGATION_QUERY
This method is used to implement the
keyboard navigation within-a-window
mechanism. See method declaration for full
details.
INT OpenWinGetHeaderTitleBounds
This procedure returns the bounds of the
title area of an OLWinClass object (this is
the Header area, less the area taken up by
system icons). This bounds information
comes directly from the instance data for
this object - see
OpenWinCalcWindowheaderGeometry for code
which sets this instance data.
MTD MSG_META_FUP_KBD_CHAR This method is sent by child which 1) is
the focused object and 2) has received a
MSG_META_FUP_KBD_CHAR which is does not
care about. Since we also don't care about
the character, we forward this method up to
the parent in the focus hierarchy.
At this class level, the parent in the
focus hierarchy is either the generic
parent (if this is a Display) or
GenApplication object.
MTD MSG_OL_WIN_ACTIVATE_DEFAULT_OR_NAVIGATE
Activate default or navigate if no default
INT HandleMenuToggling Figures out whether we should toggle menu
navigation.
INT MenuKeyToggles? See if key press toggles menus.
INT AnyMouseButtonDown? Returns non-zero if any mouse button is
down. Uses VUP method to do this, so is
not particularly fast.
INT HandleMenuNavigation Handles any menu navigation.
MTD MSG_OL_WIN_TOGGLE_MENU_NAVIGATION
A window sends this method to itself when
then user presses the Alt key, to begin or
end menu navigation.
MTD MSG_OL_WIN_QUERY_MENU_BAR
Returns menu bar handle in cx. The class
default is none.
MTD MSG_OL_WIN_QUERY_MENU_BAR_HAS_FOCUS
Sees if menu bar currently has the focus.
MTD MSG_SPEC_NOTIFY_ENABLED Handles notifying an object that it is
enabled.
INT SendToChild Handles notifying an object that it is
enabled.
MTD MSG_SPEC_SET_LEGOS_LOOK Set the hints on a window according to the
legos look requested, after removing the
hints for its previous look. these hintes
are stored in tables that each different
SpecUI will change according to the legos
looks they support.
MTD MSG_SPEC_GET_LEGOS_LOOK Get the legos look.
MTD MSG_OL_WIN_CHECK_IF_POTENTIAL_NEXT_WINDOW
see if this window should be "next window"
for Alt-F6 function.
MTD MSG_OL_WIN_CLEAR_TOGGLE_MENU_NAV_PENDING
clears OLWMS_TOGGLE_MENU_NAV_PENDING
REVISION HISTORY:
Name Date Description
---- ---- -----------
dlitwin 10/10/94 Broken out of cwinClass.asm
DESCRIPTION:
$Id: cwinClassMisc.asm,v 1.2 98/03/11 06:07:49 joon Exp $
------------------------------------------------------------------------------@
CommonUIClassStructures segment resource
OLWinClass mask CLASSF_DISCARD_ON_SAVE or \
mask CLASSF_NEVER_SAVED
CommonUIClassStructures ends
;---------------------------------------------------
WinClasses segment resource
if _GCM
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EnsureHeaderGCMIcons
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Ensure Header GCM Icons :)
CALLED BY:
PASS:
RETURN:
DESTROYED:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
EnsureHeaderGCMIcons proc far
;ERROR CHECK: make sure this is a base window!
call WinClasses_DerefVisSpec_DI
mov bl, ds:[di].OLBWI_gcmFlags
push bx
test bl, mask GCMF_LEFT_ICON ; see if left icon needed
jz noLeftIcon
tst ds:[di].OLBWI_gcmLeftIcon
jnz noLeftIcon ; skip if already created
; Create object and SPEC_BUILD_BRANCH
;
mov ax, MSG_OL_WIN_CLOSE
mov cx, ds:[LMBH_handle] ; destination is self
mov dx, si
mov di, handle GCMHeaderExitMoniker
mov bp, offset GCMHeaderExitMoniker
call OLWinCreateGCMChildTrigger
call WinClasses_DerefVisSpec_DI
mov ds:[di].OLBWI_gcmLeftIcon, dx ; save away chunk
noLeftIcon:
pop bx
ret
EnsureHeaderGCMIcons endp
endif ; _GCM
COMMENT @----------------------------------------------------------------------
FUNCTION: OLWinCreateGCMChildTrigger
DESCRIPTION: Creates a GCM child trigger in parent object's block,
gives it a ATTR_GEN_TRIGGER_ACTION_DATA w/OD of parent object,
adds it with a one-way linkage, & SPEC_BUILD's it.
CALLED BY: INTERNAL
PASS: *ds:si - parent for trigger
ax - actionMessage to set
^lcx:dx - destination to set
^ldi:bp - VisMoniker/VisMonikerList for trigger
RETURN: ^lcx:dx - trigger
DESTROYED: nothing
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 5/92 Initial version
------------------------------------------------------------------------------@
if _GCM
OLWinCreateGCMChildTrigger proc near uses ax, bx
.enter
mov bx, HINT_GCM_SYS_ICON
stc ; one-way upward link
call OpenCreateChildTrigger
push cx
xchg si, dx ; get *ds:si = GenTrigger object,
; *ds:dx = parent
mov ax, ATTR_GEN_TRIGGER_ACTION_DATA
mov cx, size optr
call ObjVarAddData
mov ax, ds:[LMBH_handle] ; set CXDX data = parent
mov ds:[bx].handle, ax
mov ds:[bx].chunk, dx
xchg si, dx ; get *ds:si = parent,
; ^lcx:dx = new trigger
pop cx
.leave
ret
OLWinCreateGCMChildTrigger endp
endif ; _GCM
WinClasses ends
ActionObscure segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OpenWinGenSetWinPosition - MSG_GEN_SET_WIN_POSITION
DESCRIPTION: This method is used by applications to override a window's
positioning attributes and update the window.
PASS: *ds:si = instance data for object
dl = VisUpdateMode
dh = WinPositionType (WPS_AT_RATIO, etc)
cx = X position (SpecWinSizeSpec)
bp = Y position (SpecWinSizeSpec)
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 1/90 initial version
------------------------------------------------------------------------------@
OpenWinGenSetWinPosition method dynamic OLWinClass, MSG_GEN_SET_WIN_POSITION
EC < test dl, 0ffh AND (not mask SBF_UPDATE_MODE) >
EC < ERROR_NZ OL_BAD_VIS_UPDATE_MODE >
;EC < test dh, not WinPositionType >
;EC < ERROR_NZ OL_BAD_WIN_POSITION_TYPE >
mov bx, bp ;bx = Y position
;first get two offsets which can be used to update instance data
lea bp, ds:[di].VI_bounds ;set ds:bp = VI_bounds
test ds:[di].OLWI_specState, mask OLWSS_MAXIMIZED
pushf ;save result for later
pushf
add di, offset offset OLWI_winPosSizeFlags
popf
jz haveOffsets ;skip if not maximized...
;window is maximized: update offsets so that we save this new info
;in the "Previous State" area. Will be used when window is un-maximized.
add di, (offset OLWI_prevWinPosSizeFlags - offset OLWI_winPosSizeFlags)
add bp, (offset OLWI_prevWinBounds) - (offset VI_bounds)
haveOffsets:
;Now ds:di points to OLWI_winPosSizeFlags/State or
;OLWI_prevWinPosSizeFlags/State, and ds:bp points to VI_bounds
;OR OLWI_prevWinBounds
cmp dh, WPT_AT_SPECIFIC_POSITION
jne checkIfRatio
xchg di, bp ;SAVE BYTES here
;pass ds:di = Rectangle
;ds:[bp]+2 = winPosSizeState field
call EnsureRightBottomBoundsAreIndependent
xchg di, bp
and byte ptr ds:[di]+2, not mask WPSS_VIS_POS_IS_SPEC_PAIR
;SPEC_BUILD must examine to convert
;to pixel units.
cmp ds:[bp].R_left, cx
jne 10$
cmp ds:[bp].R_top, bx
10$:
pushf ;save whether any change happening
mov ds:[bp].R_left, cx ;set new position values
mov ds:[bp].R_top, bx
xchg di, bp ;SAVE BYTES here
;pass ds:di = Rectangle
;ds:[bp]+2 = winPosSizeState field
call EnsureBoundsAreDependent ;make "chris hawley" bounds
; if no spec stuff left now
xchg di, bp
popf
jne setFlags ;something changing go invalidate stuff
jmp short done ;else get out
checkIfRatio:
cmp dh, WPT_AT_RATIO ;ratio?
jne setFlags ;skip if not...
;first make sure that the size of this object is not descibed using
;the difference between bounds values.
xchg di, bp ;SAVE BYTES here
;pass ds:di = Rectangle
;ds:[bp]+2 = winPosSizeState field
call EnsureRightBottomBoundsAreIndependent
xchg di, bp
or byte ptr ds:[di]+2, mask WPSS_VIS_POS_IS_SPEC_PAIR
;SPEC_BUILD must examine to convert
;to pixel units.
mov ds:[bp].R_left, cx ;set new position values
mov ds:[bp].R_top, bx
setFlags: ;check passed position mode
mov al, dh ;al = WinPositionType
clr ah
mov cl, offset WPSF_POSITION_TYPE
shl ax, cl
;clear WinPositionType
ANDNF {word} ds:[di]+0, not mask WPSF_POSITION_TYPE
ORNF ds:[di]+0, ax ;set winPosSizeFlags (WinPositionType)
ORNF {word} ds:[di]+2, mask WPSS_POSITION_INVALID or \
mask WPSS_HAS_MOVED_OR_RESIZED
;set winPosSizeState
;if window is maximized we are done. When window is RESTORED,
;this info will be applied.
popf
pushf
jnz done ;skip if maximized...
;updateWindow:
;first: if the visible bounds for this object are actually
;ratios of the Parent/Field window, convert to pixel coordinates now.
;(Note: if parent geometry is not yet valid, this does nothing)
push dx
call ConvertSpecWinSizePairsToPixels
;now update the window according to new info. IMPORTANT: if this sets
;visible size = 4000h (DESIRED), it will set geometry invalid
;so that this is converted into a pixel value before we try to display
;or convert into a Ratio as window closes...
call UpdateWinPosSize ;update window position and size if
;have enough info. If not, then wait
;until OpenWinOpenWin to do this.
;(VisSetSize call will set window
;invalid)
pop dx ;get VisUpdateMode
mov cl, mask VOF_WINDOW_INVALID
call VisMarkInvalid
done:
popf ;cleanup stack
ret
OpenWinGenSetWinPosition endm
COMMENT @----------------------------------------------------------------------
FUNCTION: OpenWinGenSetWinSize - MSG_GEN_SET_WIN_SIZE
DESCRIPTION: This method is used by applications to override a window's
sizing attributes and update the window.
PASS: *ds:si = instance data for object
dl = VisUpdateMode
dh = WinSizeType (WPS_AS_RATIO, etc)
cx = width (SpecWinSizeSpec)
bp = height (SpecWinSizeSpec)
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 1/90 initial version
------------------------------------------------------------------------------@
OpenWinGenSetWinSize method dynamic OLWinClass, MSG_GEN_SET_WIN_SIZE
EC < test dl, 0ffh AND (not mask SBF_UPDATE_MODE) >
EC < ERROR_NZ OL_BAD_VIS_UPDATE_MODE >
;EC < test dh, not WinSizeType >
;EC < ERROR_NZ OL_BAD_WIN_SIZE_TYPE >
mov bx, bp ;bx = height info if any
;first get two offsets which can be used to update instance data
lea bp, ds:[di].VI_bounds ;set ds:bp = VI_bounds
test ds:[di].OLWI_specState, mask OLWSS_MAXIMIZED
pushf ;save result for later
pushf
add di, offset offset OLWI_winPosSizeFlags
popf
jz haveOffsets ;skip if not maximized...
;window is maximized: update offsets so that we save this new info
;in the "Previous State" area. Will be used when window is un-maximized.
add di, (offset OLWI_prevWinPosSizeFlags - offset OLWI_winPosSizeFlags)
add bp, (offset OLWI_prevWinBounds) - (offset VI_bounds)
haveOffsets:
;Now ds:di points to OLWI_winPosSizeFlags/State or
;OLWI_prevWinPosSizeFlags/State, and ds:bp points to VI_bounds
;OR OLWI_prevWinBounds
mov ax, mask WPSS_VIS_SIZE_IS_SPEC_PAIR_FIELD
cmp dh, WST_AS_RATIO_OF_FIELD
je haveRatio ;skip if stuffing value...
cmp dh, WST_AS_RATIO_OF_PARENT
jne setFlags ;skip if stuffing value...
mov ax, mask WPSS_VIS_SIZE_IS_SPEC_PAIR_PARENT
haveRatio:
;stuff sizing value into visible bounds. Will be converted later.
;set "VIS_BOUNDS_IS_SPEC_PAIR_" flags
or ds:[di]+2, ax ;set WPSS_VIS_SIZE_IS_SPEC_PAIR_PARENT
;or WPSS_VIS_SIZE_IS_SPEC_PAIR_FIELD
mov ds:[bp].R_right, cx ;save size info in bounds
mov ds:[bp].R_bottom, bx
setFlags: ;check passed size mode
mov al, dh ;al = WinSizeType
clr ah
mov cl, offset WPSF_SIZE_TYPE
shl ax, cl
; clear WinSizeType
ANDNF {word} ds:[di]+0, not mask WPSF_SIZE_TYPE
ORNF ds:[di]+0, ax ;set winPosSizeFlags (WinSizeType)
ORNF {word} ds:[di]+2, mask WPSS_SIZE_INVALID or \
mask WPSS_HAS_MOVED_OR_RESIZED
;set winPosSizeState
;if window is maximized we are done. When window is RESTORED,
;this info will be applied.
popf
pushf
jnz done ;skip if maximized...
;updateWindow:
;first: if the visible bounds for this object are actually
;ratios of the Parent/Field window, convert to pixel coordinates now.
;(Note: if parent geometry is not yet valid, this does nothing)
push dx
call ConvertSpecWinSizePairsToPixels
;now update the window according to new info. IMPORTANT: if this sets
;visible size = 4000h (DESIRED), it will set geometry invalid
;so that this is converted into a pixel value before we try to display
;or convert into a Ratio as window closes...
call UpdateWinPosSize ;update window position and size if
;have enough info. If not, then wait
;until OpenWinOpenWin to do this.
;(VisSetSize call will set window
;invalid)
pop dx ;get VisUpdateMode
mov cl, mask VOF_GEOMETRY_INVALID or mask VOF_WINDOW_INVALID \
or mask VOF_IMAGE_INVALID
call VisMarkInvalid
done:
popf ;cleanup stack
ret
OpenWinGenSetWinSize endm
COMMENT @----------------------------------------------------------------------
FUNCTION: OpenWinGenSetWinConstrain - MSG_GEN_SET_WIN_CONSTRAIN
DESCRIPTION: This method is used by applications to override a window's
constrain attributes and update the window.
PASS: *ds:si = instance data for object
dl = VisUpdateMode
dh = WinConstrainType (WCT_KEEP_VISIBLE, etc)
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 1/90 initial version
------------------------------------------------------------------------------@
OpenWinGenSetWinConstrain method dynamic OLWinClass,
MSG_GEN_SET_WIN_CONSTRAIN
EC < test dl, 0ffh AND (not mask SBF_UPDATE_MODE) >
EC < ERROR_NZ OL_BAD_VIS_UPDATE_MODE >
;EC < cmp dh, WinConstrainType >
;EC < ERROR_NZ OL_BAD_WIN_CONSTRAIN_TYPE >
mov bx, bp ;bx = height info if any
;first get two offsets which can be used to update instance data
test ds:[di].OLWI_specState, mask OLWSS_MAXIMIZED
pushf ;save result for later
pushf
add di, offset offset OLWI_winPosSizeFlags
popf
jz haveOffsets ;skip if not maximized...
;window is maximized: update offsets so that we save this new info
;in the "Previous State" area. Will be used when window is un-maximized.
add di, (offset OLWI_prevWinPosSizeFlags - offset OLWI_winPosSizeFlags)
haveOffsets:
;Now ds:di points to OLWI_winPosSizeFlags/State or
;OLWI_prevWinPosSizeFlags/State.
mov al, dh ;al = WinConstrainType
clr ah
mov cl, offset WPSF_CONSTRAIN_TYPE
shl ax, cl
ANDNF ds:[di]+0, not (mask WPSF_CONSTRAIN_TYPE)
ORNF ds:[di]+0, ax ;set winPosSizeFlags
; ORNF {word} ds:[di]+2, mask WPSS_POSITION_INVALID
; ;set winPosSizeState
;if window is maximized we are done. When window is RESTORED,
;this info will be applied.
popf
pushf
jnz done ;skip if maximized...
;updateWindow:
;first: if the visible bounds for this object are actually
;ratios of the Parent/Field window, convert to pixel coordinates now.
;(Note: if parent geometry is not yet valid, this does nothing)
push dx
;now update the window according to new info. IMPORTANT: if this sets
;visible size = 4000h (DESIRED), it will set geometry invalid
;so that this is converted into a pixel value before we try to display
;or convert into a Ratio as window closes...
call UpdateWinPosSize ;update window position and size if
;have enough info. If not, then wait
;until OpenWinOpenWin to do this.
;(VisSetSize call will set window
;invalid)
pop dx ;get VisUpdateMode
mov cl, mask VOF_WINDOW_INVALID
call VisMarkInvalid
done:
popf ;cleanup stack
ret
OpenWinGenSetWinConstrain endm
ActionObscure ends
;-------------------------------
WinMethods segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLWinIsMaximized --
MSG_OL_WIN_IS_MAXIMIZED for OLWinClass
DESCRIPTION: Returns whether maximized.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_OL_WIN_IS_MAXIMIZED
RETURN: carry set if maximized
ax, cx, dx, bp - preserved
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 2/ 6/92 Initial Version
------------------------------------------------------------------------------@
OLWinIsMaximized method dynamic OLWinClass, \
MSG_OL_WIN_IS_MAXIMIZED
test ds:[di].OLWI_attrs, mask OWA_MAXIMIZABLE
jz exit ;not maximizable, exit, carry clear
test ds:[di].OLWI_specState, mask OLWSS_MAXIMIZED
jz exit ;not maximized, exit carry clear
stc ;else set carry
exit:
ret
OLWinIsMaximized endm
COMMENT @----------------------------------------------------------------------
METHOD: OLWinIsDefaultActionNavigateToNextField --
MSG_OL_WIN_IS_DEFAULT_ACTION_NAVIGATE_TO_NEXT_FIELD for
OLWinClass
DESCRIPTION: Returns whether default action is navigate to next field.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_OL_WIN_IS_DEFAULT_ACTION_NAVIGATE_TO_NEXT_FIELD
RETURN: carry set if default action is navigate to next field
ax, cx, dx, bp - preserved
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 7/28/92 Initial Version
------------------------------------------------------------------------------@
OLWinIsDefaultActionNavigateToNextField method dynamic OLWinClass, \
MSG_OL_WIN_IS_DEFAULT_ACTION_NAVIGATE_TO_NEXT_FIELD
test ds:[di].OLWI_moreFixedAttr, \
mask OWMFA_DEFAULT_ACTION_IS_NAVIGATE_TO_NEXT_FIELD
jz exit ;not navigate, exit, carry clear
stc ;else set carry
exit:
ret
OLWinIsDefaultActionNavigateToNextField endm
WinMethods ends
KbdNavigation segment resource
OpenWinSpecNavigateToPreviousField method dynamic OLWinClass, \
MSG_SPEC_NAVIGATE_TO_PREVIOUS_FIELD
mov bp, mask NF_TRAVEL_CIRCUIT or mask NF_BACKTRACK_AFTER_TRAVELING
;pass flags: we are trying to navigate
;backards.
;pass ds:di = VisSpec instance data
call OpenWinNavigateCommon
ret
OpenWinSpecNavigateToPreviousField endm
KbdNavigation ends
;-------------------------------
WinMethods segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OpenWinNavigate - MSG_SPEC_NAVIGATION_QUERY handler
for OLWinClass
DESCRIPTION: This method is used to implement the keyboard navigation
within-a-window mechanism. See method declaration for full
details.
CALLED BY: utility
PASS: *ds:si = instance data for object
cx:dx = OD of object which originated the navigation method
bp = NavigationFlags
RETURN: ds, si = same
cx:dx = OD of replying object
bp = NavigationFlags (in reply)
carry set if found the next/previous object we were seeking
DESTROYED: ax, bx, es, di
PSEUDO CODE/STRATEGY:
OLWinClass handler:
This OLWinClass object serves as the root-level node of the
visible tree in this window. It can receive this method
in two situations:
1) a MSG_SPEC_NAVIGATE_TO_NEXT/PREVIOUS_FIELD method
was sent, travelled up the visible tree to this node,
and this MSG_SPEC_NAVIGATION_QUERY was sent to this object,
seeking the first leaf node in this window in which no object
has the focus exclusive. (If there was an object which
had the focus exclusive, the MSG_SPEC_NAVIGATION_QUERY
method dynamic would have been sent directly to it.)
2) Case 1 applied, and the MSG_SPEC_NAVIGATION_QUERY
travelled through one or more visible children of this window.
After reaching the last child, it was sent up through the
parent linkages back to this object. Since the navigation
path forms a circuit, we must wrap around from the last node
to the first node in the list by sending this method to
our first visible child.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OpenWinNavigate method dynamic OLWinClass, MSG_SPEC_NAVIGATION_QUERY
;ERROR CHECKING is in VisNavigateCommon
;call utility routine, passing flags to indicate that this is
;the root-level composite node, and that this object cannot
;get the FOCUS_EXCLUSIVE (windows such as this one CAN get
;the FOCUS_EXCLUSIVE, that is a different mechanism altogether).
;This routine will check the passed NavigationFlags and decide
;what to respond.
mov bl, mask NCF_IS_ROOT_NODE or mask NCF_IS_COMPOSITE
;pass flags: is root node, is composite,
;is not focusable.
clr di ;should be no reason to scan hints in
;this object.
call VisNavigateCommon
ret
OpenWinNavigate endm
WinMethods ends
;-------------------------------
if _FXIP
RegionResourceXIP segment resource
else
WinCommon segment resource
endif
if DRAW_SHADOWS_ON_BW_GADGETS
windowRegionBW label Region
; Implied Bounds (UL - LR): (PARAM_0, PARAM_1) - (PARAM_2, PARAM_3)
word PARAM_1-1, EOREGREC
word PARAM_1, PARAM_0, PARAM_2-1, EOREGREC
word PARAM_3-1, PARAM_0, PARAM_2, EOREGREC
word PARAM_3, PARAM_0+1, PARAM_2, EOREGREC
word EOREGREC
endif ; end of if DRAW_SHADOWS_ON_BW_GADGETS
; NOTE: _ROUND_THICK_DIALOGS and DRAW_SHADOWS_ON_BW_GADGETS are
; mutually exclusive!
if _ROUND_THICK_DIALOGS
; Define a region with rounded corners and thicker edges.
; Coincidentally, the Jedi and Stylus windows have the same
; mask region, so we don't define a new one for Jedi.
; This affects the region used to draw the window as defined in
; Stylus/Win/winDraw.asm (label: STWindow_thickDialogBorder). Also,
; it affects the title bar button shapes defined in copenButtonData.asm
; (labels: STBWButton_titleLeftInterior and STBWButton_titleRightInterior).
windowRegionBW label Region
; Implied Bounds (UL - LR): (PARAM_0, PARAM_1) - (PARAM_2, PARAM_3)
word PARAM_1-1, EOREGREC
word PARAM_1, PARAM_0+4, PARAM_2-4, EOREGREC
word PARAM_1+1, PARAM_0+2, PARAM_2-2, EOREGREC
word PARAM_1+3, PARAM_0+1, PARAM_2-1, EOREGREC
word PARAM_3-4, PARAM_0, PARAM_2, EOREGREC
word PARAM_3-2, PARAM_0+1, PARAM_2-1, EOREGREC
word PARAM_3-1, PARAM_0+2, PARAM_2-2, EOREGREC
word PARAM_3, PARAM_0+4, PARAM_2-4, EOREGREC
word EOREGREC
endif ;_ROUND_THICK_DIALOGS
if _FXIP
RegionResourceXIP ends
else
WinCommon ends
endif
;------------------
Resident segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OpenWinGetTitleBounds
DESCRIPTION: This procedure returns the bounds of the title area
of an OLWinClass object (this is the Header area,
less the area taken up by system icons).
This bounds information comes directly from the instance
data for this object - see OpenWinCalcWindowheaderGeometry
for code which sets this instance data.
CALLED BY: utility
PASS: ds:*si - handle of instance data
RETURN: (ax, bx, cx, dx) = bounds
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 9/89 Initial version
------------------------------------------------------------------------------@
OpenWinGetHeaderTitleBounds proc far
class OLWinClass
push di
call Res_DerefVisDI
mov ax, ds:[di].OLWI_titleBarBounds.R_left
mov bx, ds:[di].OLWI_titleBarBounds.R_top
mov cx, ds:[di].OLWI_titleBarBounds.R_right
mov dx, ds:[di].OLWI_titleBarBounds.R_bottom
pop di
ret
OpenWinGetHeaderTitleBounds endp
Resident ends
KbdNavigation segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OpenWinFupKbdChar - MSG_META_FUP_KBD_CHAR handler for OLWinClass
DESCRIPTION: This method is sent by child which 1) is the focused object
and 2) has received a MSG_META_FUP_KBD_CHAR
which is does not care about. Since we also don't care
about the character, we forward this method up to the
parent in the focus hierarchy.
At this class level, the parent in the focus hierarchy is
either the generic parent (if this is a Display) or
GenApplication object.
PASS: *ds:si = instance data for object
cx = character value
dl = CharFlags
dh = ShiftState (ModBits)
bp low = ToggleState
bp high = scan code
RETURN: carry set if handled
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OpenWinFupKbdChar method dynamic OLWinClass,
MSG_META_FUP_KBD_CHAR
if HANDLE_MENU_TOGGLING
call HandleMenuToggling ;handle menu toggling.
LONG jc done ;menu was toggled, we're done
endif
;pass ds:di = instance data
call HandleMenuNavigation ;do menu navigation, if needed
LONG jc done ;handled, exit
;Don't handle state keys (shift, ctrl, etc).
test dl, mask CF_STATE_KEY or mask CF_TEMP_ACCENT
LONG jnz sendUpFocusHierarchy ;let application deal with these
test dl, mask CF_FIRST_PRESS or mask CF_REPEAT_PRESS
LONG jz sendUpFocusHierarchy ;skip if not press event...
if _KBD_NAVIGATION ;------------------------------------------------------
push es
;set es:di = table of shortcuts
;and matching methods
mov di, cs
mov es, di
mov di, offset cs:OLWinKbdBindings
call ConvertKeyToMethod
pop es
LONG jc sendMethod ;skip if found...
endif ;----------------------------------------------------------------------
if _CR_DEFAULT ;------------------------------------------------------
push es
;set es:di = table of shortcuts
;and matching methods
segmov es, cs
mov di, offset OLWinKbdBindings2
call ConvertKeyToMethod
pop es
LONG jc sendMethod ;skip if found...
endif ;----------------------------------------------------------------------
;Try using the character as a mnemonic, unless some stay-up window
;currently has the focus exclusive. (I'm not sure why this is done.
;Presumably the opened menu will be checked first. -cbh 10/13/93)
call KN_DerefVisSpec_DI
test ds:[di].OLWI_menuState, mask OLWMS_HAS_MENU_IN_STAY_UP_MODE
jnz tryAccelerators ;has stay up menu, skip
test dh, CTRL_KEYS ;are these down?
jnz tryAccelerators ;yes, forget mnemonics
; No mnemonic check if not in focus tree - brianc 10/3/94
test ds:[di].OLWI_focusExcl.FTVMC_flags, mask MAEF_SYS_EXCL
jz tryAccelerators
push cx, dx, bp
mov ax, MSG_SPEC_ACTIVATE_OBJECT_WITH_MNEMONIC
call ObjCallInstanceNoLock
pop cx, dx, bp
jc done ;mnemonic found, exit
tryAccelerators:
;Before sending up the key to the application, to look for application
;accelerators, we'll look for accelerators in this window's system menu
;(if CUAS) or popup menu (if OLS).
;ISUI: we need to check for a custom sys menu before checking the
; standard sys menu.
if _ISUI ;--------------------------------------------------------------------
call KN_DerefVisSpec_DI
cmp ds:[di].OLWI_type, MOWT_PRIMARY_WINDOW ;only primaries have
jne checkSysMenu ; custom sys menus
mov bx, ds:[di].OLBWI_titleBarMenu.handle ;custom sys menu handle
tst bx
jz checkSysMenu
push si, cx, dx, bp
mov si, ds:[di].OLBWI_titleBarMenu.chunk
mov di, mask MF_CALL or mask MF_FIXUP_DS
mov ax, MSG_GEN_FIND_KBD_ACCELERATOR
call ObjMessage
pop si, cx, dx, bp
jc foundKbdAccel ;found, branch
checkSysMenu:
endif ;----------------------------------------------------------------------
call KN_DerefVisSpec_DI
OLS < mov bx, ds:[di].OLWI_menu ;get popup menu button handle >
CUAS < mov bx, ds:[di].OLWI_sysMenu ;get system menu button handle>
tst bx ;is there one?
jz 10$ ;no, branch
test ds:[di].OLWI_menuState, mask OWA_SYS_MENU_IS_CLOSE_BUTTON
jnz 10$
push si, cx, dx, bp
mov si, offset StandardWindowMenu
mov di, mask MF_CALL or mask MF_FIXUP_DS
mov ax, MSG_GEN_FIND_KBD_ACCELERATOR
call ObjMessage
pop si, cx, dx, bp
jnc 10$ ;nothing found, branch
;found and executed kbd accelerator --
;call a utility routine to send a method to the Flow object that
;will force the dismissal of all menus in stay-up-mode.
foundKbdAccel:
call OLReleaseAllStayUpModeMenus
jmp short handled
10$:
sendUpFocusHierarchy:
;we don't care about this keyboard event. Forward it up the
;focus hierarchy.
mov ax, MSG_META_FUP_KBD_CHAR
; call GenApplication or GenParent
; (must be call, as is in different
; resource)
call OpenWinCallParentOfWindow
ret
sendMethod:
;found a shortcut: send method to self.
call ObjCallInstanceNoLock
handled:
stc ;say handled
done:
ret
OpenWinFupKbdChar endm
if _KBD_NAVIGATION ;------------------------------------------------------
;Keyboard shortcut bindings for OLWinClass (do not separate tables)
OLWinKbdBindings label word
word length OLWShortcutList
if DBCS_PCGEOS
;p a c s c
;h l t h h
;y t r f a
;s l t r
;
OLWShortcutList KeyboardShortcut \
<0, 0, 0, 0, C_SYS_TAB and mask KS_CHAR>, ;next field
<0, 0, 0, 1, C_SYS_TAB and mask KS_CHAR>, ;previous field
<0, 0, 1, 0, C_SYS_TAB and mask KS_CHAR>, ;next field
<0, 0, 1, 1, C_SYS_TAB and mask KS_CHAR>, ;previous field
<0, 0, 0, 0, C_SYS_DOWN and mask KS_CHAR>,
<0, 0, 0, 0, C_SYS_UP and mask KS_CHAR> , ;PREVIOUS FIELD
<0, 0, 0, 0, C_SYS_RIGHT and mask KS_CHAR>, ;NEXT FIELD
<0, 0, 0, 0, C_SYS_LEFT and mask KS_CHAR> ;PREVIOUS FIELD
else
;P C S C
;h A t h S h
;y l r f e a
;s t l t t r
OLWShortcutList KeyboardShortcut \
<0, 0, 0, 0, 0xf, VC_TAB>, ;NEXT FIELD
<0, 0, 0, 1, 0xf, VC_TAB>, ;PREVIOUS FIELD
<0, 0, 1, 0, 0xf, VC_TAB>, ;NEXT FIELD
<0, 0, 1, 1, 0xf, VC_TAB>, ;PREVIOUS FIELD
<0, 0, 0, 0, 0xf, VC_DOWN>, ;NEXT FIELD
<0, 0, 0, 0, 0xf, VC_UP>, ;PREVIOUS FIELD
<0, 0, 0, 0, 0xf, VC_RIGHT>, ;NEXT FIELD
<0, 0, 0, 0, 0xf, VC_LEFT> ;PREVIOUS FIELD
endif
word MSG_GEN_NAVIGATE_TO_NEXT_FIELD
word MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD
word MSG_GEN_NAVIGATE_TO_NEXT_FIELD
word MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD
word MSG_GEN_NAVIGATE_TO_NEXT_FIELD
word MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD
word MSG_GEN_NAVIGATE_TO_NEXT_FIELD
word MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD
endif ;----------------------------------------------------------------------
if _CR_DEFAULT ;------------------------------------------------------
;Keyboard shortcut bindings for OLWinClass (do not separate tables)
OLWinKbdBindings2 label word
word length OLWShortcutList2
;P C S C
;h A t h S h
;y l r f e a
;s t l t t r
if DBCS_PCGEOS
;p a c s c
;h l t h h
;y t r f a
;s l t r
;
OLWShortcutList2 KeyboardShortcut \
<0, 0, 0, 0, C_SYS_ENTER and mask KS_CHAR> ;activate default
else
OLWShortcutList2 KeyboardShortcut \
<0, 0, 0, 0, 0xf, VC_ENTER> ;ACTIVATE DEFAULT
endif
;OLWMethodList2 label word
word MSG_GEN_ACTIVATE_INTERACTION_DEFAULT
endif ;----------------------------------------------------------------------
KbdNavigation ends
;-------------------------------
KbdNavigation segment resource
COMMENT @----------------------------------------------------------------------
ROUTINE: HandleMenuToggling
SYNOPSIS: Figures out whether we should toggle menu navigation.
CALLED BY: OpenWinFupKbdChar
PASS: *ds:si -- handle
cx = character value
dl = CharFlags
dh = ShiftState (ModBits)
bp low = ToggleState
bp high = scan code
RETURN: carry set if handled
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 5/18/90 Initial version
------------------------------------------------------------------------------@
if HANDLE_MENU_TOGGLING
HandleMenuToggling proc near
class OLWinClass
;
; Allow escape to toggle in displays, so the right thing happens.
; -cbh 11/24/92
;
SBCS < cmp cx, (CS_CONTROL shl 8) or VC_ESCAPE ;escape key? >
DBCS < cmp cx, C_SYS_ESCAPE ;escape key? >
je checkToggling ;yes, allow toggling
call KN_DerefVisSpec_DI
CUAS < cmp ds:[di].OLWI_type, MOWT_DISPLAY_WINDOW >
OLS < cmp ds:[di].OLWI_type, OLWT_DISPLAY_WINDOW >
je notHandled
checkToggling:
;first check for ALT presses and releases
call MenuKeyToggles? ;well, does it?
;do not trash ds:di
jz resetAndExitNotHandled ;no, move on
jc sendToggle ;yes, and do it NOW
;else wait for release
;isToggleKey:
;
; On the alt and F10 key presses, we'll toggle on the release, provided
; no other keys have come along in the meantime.
;
test dl, mask CF_FIRST_PRESS
jz 10$
test ds:[di].OLWI_menuState,mask OLWMS_TOGGLE_MENU_NAV_PENDING
jnz resetAndExitNotHandled ;another first press,
;get out!
ORNF ds:[di].OLWI_menuState,mask OLWMS_TOGGLE_MENU_NAV_PENDING
jmp short handled ;changed from returning
; not handled 12/20/92
10$: test dl, mask CF_RELEASE
jz notHandled
test ds:[di].OLWI_menuState,mask OLWMS_TOGGLE_MENU_NAV_PENDING
jz notHandled
sendToggle:
;
; Clear the pending flag and send out a toggle method.
;
ANDNF ds:[di].OLWI_menuState, not mask OLWMS_TOGGLE_MENU_NAV_PENDING
mov ax, MSG_OL_WIN_TOGGLE_MENU_NAVIGATION
call ObjCallInstanceNoLock
handled:
stc ;say handled
ret
resetAndExitNotHandled:
call KN_DerefVisSpec_DI
ANDNF ds:[di].OLWI_menuState, not mask OLWMS_TOGGLE_MENU_NAV_PENDING
notHandled:
clc ;say not handled
ret
HandleMenuToggling endp
endif
COMMENT @----------------------------------------------------------------------
ROUTINE: MenuKeyToggles?
SYNOPSIS: See if key press toggles menus.
CALLED BY: HandleMenuToggling
PASS: *ds:si = instance data for object
ds:di = pointer to SpecInstance
cx = character value
dl = CharFlags
dh = ShiftState (ModBits)
bp low = ToggleState
bp high = scan code
RETURN: zero flag clear (jnz) if this key toggles the menu bar, with
carry set if the press should immediately toggle
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
if a menu is up, return not togglable
elif ALT pressed, return togglable
elif menu bar has focus
if F10 pressed
return togglable
elif ESCAPE pressed
return immediately togglable.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 5/ 4/90 Initial version
------------------------------------------------------------------------------@
if HANDLE_MENU_TOGGLING
MenuKeyToggles? proc near
class OLWinClass
;
; If there's a menu currently up, let's not do any toggling whatsoever.
;
test ds:[di].OLWI_focusExcl.FTVMC_flags, mask MAEF_OD_IS_MENU_RELATED
jz checkToggleKeys ;skip if not doing menus
test ds:[di].OLWI_focusExcl.FTVMC_flags, mask MAEF_OD_IS_WINDOW
jnz notTogglable ;menu up, skip these
checkToggleKeys:
; not togglable if CTRL-ALT-release ALT or SHIFT-ALT-release ALT
SBCS < cmp cx, (CS_CONTROL shl 8) or VC_LALT ;left ALT key? >
DBCS < cmp cx, C_SYS_LEFT_ALT ;left ALT key? >
je mayBeTogglable ;ya, activate on release
SBCS < cmp cx, (CS_CONTROL shl 8) or VC_RALT ;right ALT key? >
DBCS < cmp cx, C_SYS_RIGHT_ALT ;right ALT key? >
jne 10$
mayBeTogglable:
test dh, LCTRL or RCTRL or LSHIFT or RSHIFT
jz togglable ; yes, if keys NOT down
10$:
test ds:[di].OLWI_focusExcl.FTVMC_flags, mask MAEF_OD_IS_MENU_RELATED
jz notDoingMenus ;skip if not doing menus
;
; If the menu bar has the focus, escape will toggle.
;
test dh, LCTRL or RCTRL or LALT or RALT or LSHIFT or RSHIFT
jnz notTogglable ;must be escape only
SBCS < cmp cx, (CS_CONTROL shl 8) or VC_ESCAPE ;escape key? >
DBCS < cmp cx, C_SYS_ESCAPE ;escape key? >
jne notTogglable ;nope, branch
call AnyMouseButtonDown? ; If mouse button down, skip
jnz notTogglable
tst cl ;else clear zero flag
stc ;and don't wait for
ret ; release.
notDoingMenus:
if _USE_KBD_ACCELERATORS and 0
;
; If the menu bar doesn't have the focus, F10 will toggle.
;
test dh, LCTRL or RCTRL or LALT or RALT or LSHIFT or RSHIFT
jnz notTogglable ;must be F10 only
SBCS < cmp cx, (CS_CONTROL shl 8) or VC_F10 ;F10 key? >
DBCS < cmp cx, C_SYS_F10 ;F10 key? >
jne notTogglable ;nope, branch
else
jmp short notTogglable ;F10 does NOT toggle
endif
;else activate onrelease
togglable:
call AnyMouseButtonDown? ; If mouse button down, skip
jnz notTogglable
reallyTogglable:
tst cl ;clear zero flag
jmp short notImmediate ;and branch
notTogglable:
test cl, 0 ;set zero flag
notImmediate:
clc ;toggle on a release
ret
MenuKeyToggles? endp
endif
COMMENT @----------------------------------------------------------------------
FUNCTION: AnyMouseButtonDown?
DESCRIPTION: Returns non-zero if any mouse button is down. Uses VUP
method to do this, so is not particularly fast.
CALLED BY: INTERNAL
MenuKeyToggles?
PASS: *ds:si - visible object
RETURN: zero flag - non-zero if mouse button down
DESTROYED:
nothing
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 5/91 Initial version
------------------------------------------------------------------------------@
if HANDLE_MENU_TOGGLING
AnyMouseButtonDown? proc near uses ax, cx, dx, bp
.enter
;
; Any buttons down? If so, don't do any toggling.
;
mov ax, MSG_VIS_VUP_GET_MOUSE_STATUS
call ObjCallInstanceNoLock
mov ax, bp
test al, mask BI_B3_DOWN or mask BI_B2_DOWN or \
mask BI_B1_DOWN or mask BI_B0_DOWN
.leave
ret
AnyMouseButtonDown? endp
endif
COMMENT @----------------------------------------------------------------------
ROUTINE: HandleMenuNavigation
SYNOPSIS: Handles any menu navigation.
CALLED BY: OpenWinFupKbdChar
PASS: *ds:si -- object
ds:di = instance data
cx = character value
dl = CharFlags
dh = ShiftState (ModBits)
bp low = ToggleState
bp high = scan code
RETURN: carry set if handled
DESTROYED: di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 5/18/90 Initial version
------------------------------------------------------------------------------@
HandleMenuNavigation proc near
class OLWinClass
if _MENU_NAVIGATION ;------------------------------------------------------
push ax ;save method
test dl, mask CF_FIRST_PRESS or mask CF_REPEAT_PRESS
jz exitNotHandled ;skip if not press event...
;if we are navigating the menu bar, Translate:
; LEFT_ARROW = NAVIGATE TO PREVIOUS
; RIGHT_ARROW = NAVIGATE TO NEXT
; UP_ARROW = ACTIVATE (send to focused object -menu button)
; DOWN_ARROW = ACTIVATE (send to focused object -menu button)
test ds:[di].OLWI_focusExcl.FTVMC_flags, mask MAEF_OD_IS_MENU_RELATED
jz exitNotHandled ;skip if not doing menus
push es ;set es:di = table of shortcuts
mov di, cs ;and matching methods
mov es, di
mov di, offset cs:OLMenuNavKbdBindings
call ConvertKeyToMethod
pop es
jnc exitNotHandled ;skip if none found...
;found a shortcut: send method to self.
cmp di, OLMNSendToFocus ;send to focused object or menu?
jl sendToSelf ;skip to send to menu...
;trigger the menu button which has the focus exclusive
call OpenSaveNavigationChar ;save KBD char in idata so that when
;menu (and genlist inside it) gains
;focus, it knows whether to start at
;top or bottom of the menu/genlist.
push si
call KN_DerefVisSpec_DI
mov si, ds:[di].OLWI_focusExcl.FTVMC_OD.chunk
mov bx, ds:[di].OLWI_focusExcl.FTVMC_OD.handle
;just in case we are getting this FUP method late, and the Focus
;is now nil (John was able to make this happen), test:
tst bx ;if OD = nil, then skip to end
jz finishUp
tst si
jz finishUp
if ERROR_CHECK
push ax, cx, dx, bp
mov cx, segment OLButtonClass
mov dx, offset OLButtonClass
mov ax, MSG_META_IS_OBJECT_IN_CLASS
mov di, mask MF_FIXUP_DS or mask MF_CALL
call ObjMessage
ERROR_NC OL_ERROR
pop ax, cx, dx, bp
endif
mov ax, MSG_OL_BUTTON_KBD_ACTIVATE
mov di, mask MF_FIXUP_DS or mask MF_CALL
call ObjMessage
finishUp:
pop si
clr cx
call OpenSaveNavigationChar ;reset our saved KBD char to "none"
;so that if a menu gains the focus
;due to mouse usage, the menu does not
;begin navigation at the bottom item.
exitCarry:
stc ;key handled
jmp exit
sendToSelf:
call ObjCallInstanceNoLock
jmp exitCarry
exitNotHandled:
clc ;key not handled
exit:
pop ax
endif ;------------------------------------------------------
ret
HandleMenuNavigation endp
if _MENU_NAVIGATION ;------------------------------------------------------
;Keyboard shortcut bindings for OLMenuedWinClass, USED ONLY IN CASE WHERE
;we are navigating in the menu bar. (do not separate tables)
OLMenuNavKbdBindings label word
word length OLMNShortcutList
;these first key bindings cause a method to be sent to this object
;(do not move this comment inside the list!
if DBCS_PCGEOS
;p a c s c
;h l t h h
;y t r f a
;s l t r
;
OLMNShortcutList KeyboardShortcut \
<0, 0, 0, 0, C_SYS_LEFT and mask KS_CHAR>, ;navigate left
<0, 0, 0, 0, C_SYS_RIGHT and mask KS_CHAR>, ;navigate right
;these key bindings cause a method to be sent to the focused object
<0, 0, 0, 0, C_SYS_UP and mask KS_CHAR>, ;open menu
<0, 0, 0, 0, C_SYS_DOWN and mask KS_CHAR> ;open menu
else
OLMNShortcutList KeyboardShortcut \
<0, 0, 0, 0, 0xf, VC_LEFT>, ;NAVIGATE TO LEFT
<0, 0, 0, 0, 0xf, VC_RIGHT>, ;NAVIGATE TO RIGHT
;these key bindings cause a method to be sent to the focused object
<0, 0, 0, 0, 0xf, VC_UP>, ;OPEN MENU
<0, 0, 0, 0, 0xf, VC_DOWN> ;OPEN MENU
endif
OLMNMethodList label word
;these methods are sent to this object (OLMenuedWinClass, so will
;move FOCUS to next menu button in sequence.
word MSG_GEN_NAVIGATE_TO_PREVIOUS_FIELD
word MSG_GEN_NAVIGATE_TO_NEXT_FIELD
OLMNMethodListFocus label word
;these methods are sent to the focused object (menu button)
word MSG_GEN_ACTIVATE
word MSG_GEN_ACTIVATE
OLMNSendToFocus = (offset OLMNMethodListFocus) - (offset OLMNMethodList)
;any method past this offset in the
;above table are send to the focused
;object (menu button) instead of the
;menu itself.
endif ;----------------------------------------------------------------------
COMMENT @----------------------------------------------------------------------
FUNCTION: MSG_OL_WIN_TOGGLE_MENU_NAVIGATION
DESCRIPTION: A window sends this method to itself when then user
presses the Alt key, to begin or end menu navigation.
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
Joon 8/92 PM extensions
------------------------------------------------------------------------------@
if _KBD_NAVIGATION and _MENU_NAVIGATION ;--------------------------------------
;SAVE BYTES: I should be able to do this better. Why can't I use the navigation
;query to find the first menu-related object in the window?
OLWinToggleMenuNavigation method dynamic OLWinClass, \
MSG_OL_WIN_TOGGLE_MENU_NAVIGATION
if HANDLE_MENU_TOGGLING
test ds:[di].OLWI_focusExcl.FTVMC_flags, mask MAEF_OD_IS_MENU_RELATED
jnz exitMenuBar ;if we currently have focus
;branch
;if there's a menu bar, then let's try to give its first child the
;grab. Otherwise, we'll give it to the system menu.
mov ax, MSG_OL_WIN_QUERY_MENU_BAR
call ObjCallInstanceNoLock ;see if there's a menu bar
tst cx ;is there one?
jz useSysMenu ;no, we'll take whatever we get
if MENU_BAR_IS_A_MENU
mov si, cx ;activate the menu bar
mov ax, MSG_GEN_ACTIVATE
GOTO ObjCallInstanceNoLock
else
mov di, cx ;move to di
mov di, ds:[di] ;point to instance
add di, ds:[di].Vis_offset ;ds:[di] -- VisInstance
mov cx, ds:[di].VCI_comp.CP_firstChild.handle
tst cx
jz useSysMenu ;no children, use system menu
mov dx, ds:[di].VCI_comp.CP_firstChild.chunk
jmp setFocus
endif ; MENU_BAR_IS_A_MENU
useSysMenu:
call KN_DerefVisSpec_DI
if _ISUI ;--------------------------------------------------------------------
call GetSystemMenuBlockHandle ;returns bx = block handle
; zf - if no titleBarMenu
mov ax, offset StandardWindowMenu
jz haveSysMenu
mov ax, ds:[di].OLBWI_titleBarMenu.chunk
haveSysMenu:
tst bx
jz exitMenuBar
test ds:[di].OLWI_menuState, mask OWA_SYS_MENU_IS_CLOSE_BUTTON
jnz exitMenuBar
push si
mov si, ax
else ;----------------------------------------------------------------------
mov bx, ds:[di].OLWI_sysMenu ;start pointing to sys menu
tst bx ;any sys menu?
jz exitMenuBar ;none, let's give up on this
test ds:[di].OLWI_menuState, mask OWA_SYS_MENU_IS_CLOSE_BUTTON
jnz exitMenuBar
push si
mov si, offset StandardWindowMenu
endif ;----------------------------------------------------------------------
mov di, mask MF_CALL or mask MF_FIXUP_DS
mov ax, MSG_OL_POPUP_FIND_BUTTON ;point to its button
call ObjMessage
pop si
tst dx ;any button?
jz exitMenuBar ;no, let's give up
setFocus:
mov bp, mask MAEF_OD_IS_MENU_RELATED or \
mask MAEF_GRAB or mask MAEF_FOCUS
mov ax, MSG_META_MUP_ALTER_FTVMC_EXCL
callAndExit:
call ObjCallInstanceNoLock
; Start a pre-passive grab so we can release the menu focus on ANY
; mouse click. -cbh 10/22/90
call VisAddButtonPrePassive
exit:
ret
exitMenuBar:
; No previous focus exclusive, there's not much point in leaving menu
; focus mode, so don't do it. -cbh 12/10/92
call KN_DerefVisSpec_DI
tst ds:[di].OLWI_prevFocusExcl.FTVMC_OD.chunk
jz exit
mov ax, MSG_VIS_VUP_RELEASE_MENU_FOCUS
jmp callAndExit
else
ret
endif
OLWinToggleMenuNavigation endm
endif ;----------------------------------------------------------------------
KbdNavigation ends
KbdNavigation segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLWinQueryMenuBar --
MSG_OL_WIN_QUERY_MENU_BAR for OLWinClass
DESCRIPTION: Returns menu bar handle in cx. The class default is none.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_OL_WIN_QUERY_MENU_BAR
RETURN: cx - menu bar handle, of zero if none
DESTROYED: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 5/18/90 Initial version
------------------------------------------------------------------------------@
OLWinQueryMenuBar method dynamic OLWinClass, MSG_OL_WIN_QUERY_MENU_BAR
clr cx ;default is no menu bar.
ret
OLWinQueryMenuBar endm
COMMENT @----------------------------------------------------------------------
METHOD: OLWinMenuBarHasFocus --
MSG_OL_WIN_QUERY_MENU_BAR_HAS_FOCUS for OLWinClass
DESCRIPTION: Sees if menu bar currently has the focus.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_OL_WIN_QUERY_MENU_BAR_HAS_FOCUS
RETURN: carry set if menu bar has the focus
DESTROYED: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 5/31/90 Initial version
------------------------------------------------------------------------------@
OLWinQueryMenuBarHasFocus method dynamic OLWinClass, \
MSG_OL_WIN_QUERY_MENU_BAR_HAS_FOCUS
test ds:[di].OLWI_focusExcl.FTVMC_flags, mask MAEF_OD_IS_MENU_RELATED
jz exit ;skip if not (cy=0)...
stc ;return flag: we have the focus
exit:
ret
OLWinQueryMenuBarHasFocus endm
KbdNavigation ends
;-------------------------------
WinMethods segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLWinNotifyEnabled --
MSG_SPEC_NOTIFY_ENABLED for OLWinClass
DESCRIPTION: Handles notifying an object that it is enabled.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_SPEC_NOTIFY_ENABLED
dl - VisUpdateMode
dh - NotifyEnabledFlags:
mask NEF_STATE_CHANGING if this is the object
getting its enabled state changed
RETURN: nothing
ax, cx, dx, bp - destroyed
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 12/13/91 Initial Version
------------------------------------------------------------------------------@
OLWinNotifyEnabled method dynamic OLWinClass, MSG_SPEC_NOTIFY_ENABLED,
MSG_SPEC_NOTIFY_NOT_ENABLED
push ax, dx ;save method
mov di, offset OLWinClass
call ObjCallSuperNoLock ;call superclass
DoPop dx, ax ;restore method
jnc exit ;no state change, exit
if NORMAL_HEADERS_ON_DISABLED_WINDOWS
;never disable if normal headers
cmp ax, MSG_SPEC_NOTIFY_NOT_ENABLED
je afterNotifications
endif
mov di, ds:[si]
add di, ds:[di].Vis_offset
mov bx, ds:[di].OLWI_sysMenu ;get block that objects are in
tst bx
jz afterNotifications
mov si, ds:[di].OLWI_sysMenuButton
test ds:[di].OLWI_menuState, mask OWA_SYS_MENU_IS_CLOSE_BUTTON
pushf
call ObjSwapLock
call SendToChild ;send to OLWI_sysMenuButton
popf
jnz doneButtonNotify
mov si, offset StandardWindowMenu
call SendToChild
doneButtonNotify:
mov si, offset SMI_MinimizeIcon
call SendToChild
mov si, offset SMI_MaximizeIcon
call SendToChild
mov si, offset SMI_RestoreIcon
call SendToChild
call ObjSwapUnlock
afterNotifications:
stc ;return state changed
exit:
ret
OLWinNotifyEnabled endm
SendToChild proc near
tst si
jz 10$
push dx, ax
call ObjCallInstanceNoLock
pop dx, ax
10$:
ret
SendToChild endp
if _HAS_LEGOS_LOOKS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLWSpecSetLegosLook
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the hints on a window according to the legos look
requested, after removing the hints for its previous look.
these hintes are stored in tables that each different SpecUI
will change according to the legos looks they support.
CALLED BY: MSG_SPEC_SET_LEGOS_LOOK
PASS: *ds:si = OLWinClass object
ds:di = OLWinClass instance data
cl = legos look
RETURN: carry = set if the look was invalid (new look not set)
= clear if the look was valid (new look set)
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
dlitwin 10/11/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLWSpecSetLegosLook method dynamic OLWinClass,
MSG_SPEC_SET_LEGOS_LOOK
uses ax, cx
.enter
clr bx
mov bl, ds:[di].OLWI_legosLook
cmp bx, LAST_LEGOS_WINDOW_LOOK
jbe validExistingLook
clr bx ; make the look valid if it wasn't
EC< WARNING WARNING_INVALID_LEGOS_LOOK >
validExistingLook:
clr ch
cmp cx, LAST_LEGOS_WINDOW_LOOK
ja invalidNewLook
mov ds:[di].OLWI_legosLook, cl
;
; remove hint from old look
;
shl bx ; byte value to word table offset
mov ax, cs:[legosWindowLookHintTable][bx]
tst ax
jz noHintToRemove
call ObjVarDeleteData
;
; add hints for new look
;
noHintToRemove:
mov bx, cx
shl bx ; byte value to word table offset
mov ax, cs:[legosWindowLookHintTable][bx]
jz noHintToAdd
clr cx
call ObjVarAddData
noHintToAdd:
clc
done:
.leave
ret
invalidNewLook:
stc
jmp done
OLWSpecSetLegosLook endm
;
; Make sure this table matches that in cwinClassCommonHigh.asm. The
; only reason the table is in two places it is that I don't want
; to be bringing in the WinMethods resource at build time, and it
; is really a small table.
; Make sure any changes in either table are reflected in the other
;
legosWindowLookHintTable label word
word 0
LAST_LEGOS_WINDOW_LOOK equ ((($ - legosWindowLookHintTable)/(size word)) - 1)
CheckHack<LAST_LEGOS_WINDOW_LOOK eq LAST_BUILD_LEGOS_WINDOW_LOOK>
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLWSpecGetLegosLook
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the legos look.
CALLED BY: MSG_SPEC_GET_LEGOS_LOOK
PASS: *ds:si = OLWinClass object
ds:di = OLWinClass instance data
RETURN: cl = legos look
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
dlitwin 10/11/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLWSpecGetLegosLook method dynamic OLWinClass,
MSG_SPEC_GET_LEGOS_LOOK
.enter
mov cl, ds:[di].OLWI_legosLook
.leave
ret
OLWSpecGetLegosLook endm
endif ; if _HAS_LEGOS_LOOKS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLWinRotateDisplay
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Resize ourselves
CALLED BY: MSG_GEN_ROTATE_DISPLAY
PASS: *ds:si = OLWinClass object
ds:di = OLWinClass instance data
RETURN: nothing
DESTROYED: ax, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
stevey 2/ 9/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if RECTANGULAR_ROTATION
OLWinRotateDisplay method dynamic OLWinClass, MSG_GEN_ROTATE_DISPLAY
.enter
;
; Set flag for OpenWinSaveState, so it'll save new window
; position and size in case application is shut down.
;
ornf ds:[di].OLWI_winPosSizeState, \
mask WPSS_HAS_MOVED_OR_RESIZED
;
; Set the Magic Flag that will cause our Window to be sized
; the same as the parent, plus all the other necessary shme.
;
ornf ds:[di].OLWI_winPosSizeState, mask WPSS_SIZE_INVALID
mov ax, MSG_VIS_MOVE_RESIZE_WIN
call ObjCallInstanceNoLock
noWindow:
;
; Invalidate children.
;
mov dl, VUM_MANUAL
mov ax, MSG_VIS_INVAL_ALL_GEOMETRY
call ObjCallInstanceNoLock
;
; Force redraw.
;
mov cl, mask VOF_GEOMETRY_INVALID \
or mask VOF_WINDOW_INVALID \
or mask VOF_IMAGE_INVALID
mov dl, VUM_NOW
mov ax, MSG_VIS_MARK_INVALID
call ObjCallInstanceNoLock
.leave
ret
OLWinRotateDisplay endm
endif ; RECTANGULAR_ROTATION
WinMethods ends
KbdNavigation segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLWinCheckIfPotentiatNextWindow
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: see if this window should be "next window" for Alt-F6
function.
CALLED BY: MSG_OL_WIN_CHECK_IF_POTENTIAL_NEXT_WINDOW
PASS: *ds:si = OLWinClass object
ds:di = OLWinClass instance data
es = segment of OLWinClass
ax = MSG_OL_WIN_CHECK_IF_POTENTIAL_NEXT_WINDOW
RETURN: carry set if so
ALLOWED TO DESTROY:
ax, cx, dx, bp
bx, si, di, ds, es
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 12/11/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLWinCheckIfPotentiatNextWindow method dynamic OLWinClass,
MSG_OL_WIN_CHECK_IF_POTENTIAL_NEXT_WINDOW
test ds:[di].OLWI_attrs, mask OWA_FOCUSABLE
jz done ; not focusable (carry clear)
test ds:[di].OLWI_moreFixedAttr, mask OWMFA_NO_DISTURB
jnz done ; not focusable (carry clear)
test ds:[di].VI_attrs, mask VA_REALIZED
jz done ; not realized (carry clear)
stc ; else, allow becoming "next window"
done:
ret
OLWinCheckIfPotentiatNextWindow endm
KbdNavigation ends
;--------------------
CommonFunctional segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLWinClearToggleMenuNavPending
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: clears OLWMS_TOGGLE_MENU_NAV_PENDING
CALLED BY: MSG_OL_WIN_CLEAR_TOGGLE_MENU_NAV_PENDING
PASS: *ds:si = OLWinClass object
ds:di = OLWinClass instance data
es = segment of OLWinClass
ax = MSG_OL_WIN_CLEAR_TOGGLE_MENU_NAV_PENDING
RETURN: nothing
ALLOWED TO DESTROY:
ax, cx, dx, bp
bx, si, di, ds, es
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 1/8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLWinClearToggleMenuNavPending method dynamic OLWinClass,
MSG_OL_WIN_CLEAR_TOGGLE_MENU_NAV_PENDING
andnf ds:[di].OLWI_menuState, not mask OLWMS_TOGGLE_MENU_NAV_PENDING
ret
OLWinClearToggleMenuNavPending endm
CommonFunctional ends
| 27.261277 | 80 | 0.647826 |
fc7bd52551fa4d8640f7f8317a725bf13749e195 | 654 | asm | Assembly | programs/oeis/101/A101979.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/101/A101979.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/101/A101979.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A101979: Antidiagonal sums of A101309, which is the matrix logarithm of A047999 (Pascal's triangle mod 2).
; 0,1,1,0,2,1,1,0,2,1,3,0,2,1,1,0,2,1,3,0,4,1,3,0,2,1,3,0,2,1,1,0,2,1,3,0,4,1,3,0,4,1,5,0,4,1,3,0,2,1,3,0,4,1,3,0,2,1,3,0,2,1,1,0,2,1,3,0,4,1,3,0,4,1,5,0,4,1,3,0,4,1,5,0,6,1,5,0,4,1,5,0,4,1,3,0,2,1,3,0
mov $5,2
mov $6,$0
lpb $5
mov $0,$6
mov $3,0
sub $5,1
add $0,$5
sub $0,1
lpb $0
mov $2,$0
trn $0,2
max $2,0
seq $2,5811 ; Number of runs in binary expansion of n (n>0); number of 1's in Gray code for n.
add $3,$2
lpe
mov $4,$5
mul $4,$3
add $1,$4
mov $7,$3
lpe
min $6,1
mul $6,$7
sub $1,$6
mov $0,$1
| 23.357143 | 201 | 0.550459 |
ac6dd0ab3efcade5d5147cc6257c29319eb17e8c | 5,950 | asm | Assembly | Transynther/x86/_processed/US/_st_zr_/i9-9900K_12_0xa0_notsx.log_21829_658.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_st_zr_/i9-9900K_12_0xa0_notsx.log_21829_658.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_st_zr_/i9-9900K_12_0xa0_notsx.log_21829_658.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x116df, %rbp
nop
nop
nop
xor %rdi, %rdi
mov (%rbp), %edx
nop
nop
nop
nop
nop
dec %r8
lea addresses_normal_ht+0xb86f, %rsi
lea addresses_WC_ht+0xc85f, %rdi
clflush (%rsi)
xor $16130, %rbp
mov $120, %rcx
rep movsb
nop
nop
nop
nop
and $29444, %rcx
lea addresses_WT_ht+0xc417, %r8
nop
nop
nop
nop
nop
cmp %rax, %rax
mov (%r8), %rdi
nop
xor %rsi, %rsi
lea addresses_D_ht+0x10bc7, %rsi
lea addresses_WT_ht+0x511f, %rdi
nop
nop
nop
nop
dec %r12
mov $61, %rcx
rep movsq
nop
nop
nop
nop
inc %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_PSE+0x585f, %r10
add $36413, %r12
movl $0x51525354, (%r10)
nop
sub $5617, %r10
// Store
lea addresses_RW+0x837f, %rdx
nop
nop
xor %rbx, %rbx
mov $0x5152535455565758, %rdi
movq %rdi, %xmm5
movups %xmm5, (%rdx)
and %r10, %r10
// REPMOV
lea addresses_PSE+0xe5df, %rsi
lea addresses_US+0x1505f, %rdi
nop
sub $11018, %r12
mov $8, %rcx
rep movsw
xor %rbx, %rbx
// Store
lea addresses_UC+0xf29f, %rcx
sub %rdi, %rdi
movl $0x51525354, (%rcx)
nop
nop
nop
nop
nop
and %r11, %r11
// Faulty Load
lea addresses_US+0x1505f, %r11
and %rdx, %rdx
mov (%r11), %cx
lea oracles, %rsi
and $0xff, %rcx
shlq $12, %rcx
mov (%rsi,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 5}}
{'src': {'type': 'addresses_PSE', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_US', 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 3}}
[Faulty Load]
{'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}}
{'33': 18088, '00': 3741}
00 00 33 33 33 33 33 00 33 00 33 33 33 33 00 33 33 33 33 33 33 00 33 00 33 33 00 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 00 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 00 33 00 33 33 33 00 33 33 33 33 00 33 33 33 00 33 33 33 33 33 33 33 00 00 33 33 33 33 33 33 33 33 00 33 00 33 33 00 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 00 33 33 00 33 33 33 33 33 33 00 33 33 33 33 33 33 00 33 33 33 00 33 33 00 33 33 33 00 33 33 00 00 33 33 33 33 00 33 33 33 33 33 00 33 00 33 33 00 33 00 33 33 33 00 33 33 33 33 33 33 33 33 33 00 00 33 00 33 00 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 00 33 33 00 33 33 33 00 33 33 33 33 33 33 33 00 33 33 00 33 00 33 33 33 33 00 33 33 33 33 33 33 33 33 00 33 00 33 33 33 33 33 33 33 33 00 33 33 33 00 33 33 33 33 33 33 00 33 33 33 33 00 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 00 33 33 00 33 33 33 00 33 00 33 33 00 33 33 00 33 00 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 00 33 33 33 33 33 33 33 33 00 33 33 00 33 33 33 33 33 33 00 33 33 33 33 00 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 00 33 33 00 33 33 33 00 33 00 33 33 00 33 33 33 33 00 33 33 33 00 33 33 33 33 33 33 00 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 00 33 33 33 00 33 33 33 33 33 33 33 33 00 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 00 33 00 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 00 33 00 33 33 33 00 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 00 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 00 00 00 33 33 00 33 33 33 00 33 33 33 33 00 33 33 33 33 33 00 33 00 00 33 33 33 33 00 33 33 33 33 00 00 33 00 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 00 33 33 00 33 33 33 33 00 33 33 33 33 33 33 00 33 33 33 33 00 33 33 33 00 33 33 33 00 33 00 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 33 33 00 33 33 00 33 33 33 33 00 33 33 00 33 33 33 00 33 33 33 33 33 33 33 33 33 33 00 33 33 33 33 33 33 33 33 00 33 33 33 33 33 00 33 33 33 33 33 33 00 33 33 33 33 33 33 00 33 00 33 33 00 33 00 00 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 00 33 00 33 33 33 00 33 00 33 33 33 33 33 33 33 33 00 00 33 33 33 33 33 33 33 33 00 00 00 33 33 33 33 33 00 00 33 33 00 33 33 33 33 33 33 33 33 00 33 00 33 33 00 33 00 33 33 33
*/
| 39.144737 | 2,999 | 0.656639 |
ded66f4cdc08b166f59cd653d1c84db24c190f30 | 217 | asm | Assembly | MOS/OS.asm | Mishin870/MOS | cf2a94b0a0ace3380dd58adc4848baed78097df2 | [
"MIT"
] | 1 | 2020-10-10T08:31:42.000Z | 2020-10-10T08:31:42.000Z | MOS/OS.asm | Mishin870/MOS | cf2a94b0a0ace3380dd58adc4848baed78097df2 | [
"MIT"
] | null | null | null | MOS/OS.asm | Mishin870/MOS | cf2a94b0a0ace3380dd58adc4848baed78097df2 | [
"MIT"
] | null | null | null | macro align value { db value-1 - ($ + value-1) mod (value) dup 0 }
HEADS = 1
SPT = 12 ;4 сектора по 512 байт
Begin:
file "boot.bin", 512
file "kernel.bin"
align 4096
file "data.txt"
align 512
align HEADS*SPT*512 | 21.7 | 66 | 0.668203 |
76ce57fc44fae54c7c5e1a47232da4467d474b6b | 133 | asm | Assembly | Project4/Sandbox/test3.asm | orrinjelo/virtual-machine | 2236db81b5e5e6b99161dc8c5aa5d5f3c9ca0a01 | [
"MIT"
] | null | null | null | Project4/Sandbox/test3.asm | orrinjelo/virtual-machine | 2236db81b5e5e6b99161dc8c5aa5d5f3c9ca0a01 | [
"MIT"
] | null | null | null | Project4/Sandbox/test3.asm | orrinjelo/virtual-machine | 2236db81b5e5e6b99161dc8c5aa5d5f3c9ca0a01 | [
"MIT"
] | null | null | null | JMP START
OVERFLOW TRP 0
UNDERFLOW TRP 0
START MOV R0 FP
MOV R1 SP
MOV R2 SB
MOV R3 SL
TRP 0
| 12.090909 | 17 | 0.526316 |
ab11e7d93ac1f72d3be8f4376e67676b0a9f8cba | 754 | asm | Assembly | UcrtPrintf/setup32.asm | huangqinjin/compiler-issue | 17119f2adaa952eebb952c0734ef271f89c64cdf | [
"BSL-1.0"
] | null | null | null | UcrtPrintf/setup32.asm | huangqinjin/compiler-issue | 17119f2adaa952eebb952c0734ef271f89c64cdf | [
"BSL-1.0"
] | null | null | null | UcrtPrintf/setup32.asm | huangqinjin/compiler-issue | 17119f2adaa952eebb952c0734ef271f89c64cdf | [
"BSL-1.0"
] | null | null | null | .686
.model flat, C
; https://docs.microsoft.com/en-us/cpp/porting/overview-of-potential-upgrade-issues-visual-cpp#libraries
includelib legacy_stdio_definitions.lib
extern printf: PROTO C fmt:PTR BYTE, :VARARG
extern setlocale: PROTO C category:SDWORD, locale:PTR BYTE
.const
fmt db "ACP locale: %s", 0ah, 0
locale db ".ACP", 0
.code
; Set the locale to the user-default ANSI code page obtained from the
; operating system. This is required for wide/narrow conversion, since
; the locale "C" (set at program startup) cannot handle MBCS.
setup PROC
push ebp
mov ebp, esp
invoke setlocale, 0, ADDR locale
cmp eax, 0
je @F
invoke printf, ADDR fmt, eax
mov eax, 1
@@:
mov esp, ebp
pop ebp
ret
setup ENDP
END
| 20.944444 | 104 | 0.708223 |
89c95e5dbaf3024e10097d8bbafdb321f5cd89e7 | 334 | asm | Assembly | skyInicialize.asm | laerreal/flyshooter | c4a512b48788647d5cf946bcc39253b724f581c7 | [
"BSD-3-Clause"
] | null | null | null | skyInicialize.asm | laerreal/flyshooter | c4a512b48788647d5cf946bcc39253b724f581c7 | [
"BSD-3-Clause"
] | null | null | null | skyInicialize.asm | laerreal/flyshooter | c4a512b48788647d5cf946bcc39253b724f581c7 | [
"BSD-3-Clause"
] | null | null | null | ; push sky
skyInicialize:
push bp
mov bp,sp
push bx
mov bx,[bp+4]
mov cx,[bx]
add bx,4
add bx,2
skyInicialize_loop1:
push cx
call rnd
xor dx,dx
mov cx,340
div cx
mov [bx],dx
add bx,2
call rnd
xor dx,dx
mov cx,200
div cx
mov [bx],dx
add bx,2
pop cx
loop skyInicialize_loop1
pop bx
mov sp,bp
pop bp
retn 2
| 9.277778 | 24 | 0.661677 |
97f679f990855f9abc8205040628715f02db68f4 | 109 | asm | Assembly | lab3_test_harness/Lab1test/jsrrR7.asm | Zaydax/PipelineProcessor | f45f7d1a245f291218d53a7f16fd7f98a50ce47e | [
"MIT"
] | 2 | 2017-03-05T17:40:26.000Z | 2017-03-15T01:41:25.000Z | lab3_test_harness/Lab1test/jsrrR7.asm | Zaydax/PipelineProcessor | f45f7d1a245f291218d53a7f16fd7f98a50ce47e | [
"MIT"
] | null | null | null | lab3_test_harness/Lab1test/jsrrR7.asm | Zaydax/PipelineProcessor | f45f7d1a245f291218d53a7f16fd7f98a50ce47e | [
"MIT"
] | null | null | null | .ORIG x3000
LEA R7, B
ADD R0, R0, #5
JSRR R7
ADD R0, R0, #5
HALT
B ADD R1, R1, #-8
RET
HALT
.END
| 9.909091 | 17 | 0.550459 |
3930b7d4cc6486e60edba3907db987a72c33dfcf | 7,905 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_783.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_783.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_21829_783.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x16741, %r13
nop
nop
nop
nop
nop
and $53307, %r9
movw $0x6162, (%r13)
nop
nop
xor %rax, %rax
lea addresses_WC_ht+0x841, %rbp
and $37494, %rax
movb (%rbp), %r9b
nop
nop
cmp $63481, %rbp
lea addresses_normal_ht+0x1d7e5, %r9
nop
nop
nop
nop
and $9901, %r15
movw $0x6162, (%r9)
nop
and %r13, %r13
lea addresses_normal_ht+0x7221, %rbp
nop
nop
nop
nop
inc %rsi
movb (%rbp), %dl
nop
nop
xor $27270, %rsi
lea addresses_UC_ht+0x8a61, %rsi
lea addresses_UC_ht+0x8f1c, %rdi
nop
add %r15, %r15
mov $53, %rcx
rep movsb
nop
nop
nop
nop
cmp %r13, %r13
lea addresses_WC_ht+0x16c41, %r15
nop
nop
nop
nop
nop
xor %r9, %r9
mov (%r15), %eax
nop
nop
nop
nop
sub $43193, %r9
lea addresses_UC_ht+0x1b831, %rbp
nop
nop
add %rdi, %rdi
vmovups (%rbp), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %rcx
nop
nop
nop
nop
add $39237, %r9
lea addresses_UC_ht+0x1a041, %rsi
lea addresses_WT_ht+0x1d149, %rdi
nop
nop
nop
nop
nop
xor %rbp, %rbp
mov $12, %rcx
rep movsq
nop
nop
nop
nop
nop
sub %r9, %r9
lea addresses_UC_ht+0x19ed1, %r13
nop
nop
cmp $9179, %rdi
movw $0x6162, (%r13)
nop
nop
nop
nop
nop
add %rsi, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r8
push %r9
push %rbp
push %rcx
push %rdi
// Load
lea addresses_D+0x181c1, %rdi
cmp $9619, %r8
movups (%rdi), %xmm4
vpextrq $0, %xmm4, %rcx
and $33987, %r9
// Store
lea addresses_normal+0x1d17f, %rcx
and %rbp, %rbp
movw $0x5152, (%rcx)
nop
add %r11, %r11
// Store
mov $0x1cd, %rcx
nop
nop
nop
xor %r13, %r13
movb $0x51, (%rcx)
nop
nop
add %rbp, %rbp
// Store
lea addresses_RW+0xdbc1, %rdi
nop
xor $1972, %r13
movl $0x51525354, (%rdi)
nop
xor %rcx, %rcx
// Store
lea addresses_PSE+0x1bd41, %r13
nop
nop
nop
nop
sub $7790, %r8
mov $0x5152535455565758, %rbp
movq %rbp, %xmm6
vmovups %ymm6, (%r13)
nop
nop
nop
cmp %rbp, %rbp
// Store
mov $0x4fc4160000000751, %r9
and %r8, %r8
mov $0x5152535455565758, %r13
movq %r13, %xmm5
movups %xmm5, (%r9)
nop
nop
inc %rbp
// Load
mov $0x3037c80000000b41, %r9
nop
nop
nop
xor %r11, %r11
vmovups (%r9), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r13
and $18404, %r9
// Faulty Load
lea addresses_US+0xe541, %rdi
nop
cmp %rcx, %rcx
mov (%rdi), %r8
lea oracles, %r13
and $0xff, %r8
shlq $12, %r8
mov (%r13,%r8,1), %r8
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 9}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': True, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 32.265306 | 2,999 | 0.649842 |
499ec45c3e14865d6efccb6e1779e17ed919f37e | 4,444 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_291.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_291.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_291.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %r9
push %rbp
push %rbx
push %rdx
// Store
lea addresses_WT+0x16152, %r12
nop
nop
nop
inc %r10
movl $0x51525354, (%r12)
nop
nop
and $397, %r12
// Store
lea addresses_D+0x72d2, %rbx
nop
dec %r10
movl $0x51525354, (%rbx)
nop
nop
nop
nop
nop
sub %r8, %r8
// Store
lea addresses_normal+0x1d9a, %rbp
nop
nop
nop
nop
nop
inc %rdx
movw $0x5152, (%rbp)
nop
nop
nop
nop
nop
xor $50501, %r9
// Faulty Load
lea addresses_D+0x2292, %r10
clflush (%r10)
nop
nop
nop
sub $15075, %rbp
movb (%r10), %r12b
lea oracles, %rbp
and $0xff, %r12
shlq $12, %r12
mov (%rbp,%r12,1), %r12
pop %rdx
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}}
[Faulty Load]
{'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 50.5 | 2,999 | 0.658416 |
4d2b5b9bf592286cd9bf92173397ad891ba5d750 | 680 | asm | Assembly | test/fixtures/block.asm | majacQ/retroputer | 807fef1c17feeaf54dcc0f8b0d5c79f5fcdfe2c4 | [
"MIT"
] | 58 | 2017-11-16T18:53:24.000Z | 2021-11-02T18:14:10.000Z | test/fixtures/block.asm | kerrishotts/retroputer | 807fef1c17feeaf54dcc0f8b0d5c79f5fcdfe2c4 | [
"MIT"
] | 28 | 2019-05-23T12:21:44.000Z | 2022-02-12T22:40:37.000Z | test/fixtures/block.asm | majacQ/retroputer | 807fef1c17feeaf54dcc0f8b0d5c79f5fcdfe2c4 | [
"MIT"
] | 4 | 2021-01-02T18:49:55.000Z | 2021-04-24T23:54:22.000Z | # code.regs: A=0x8000 C=0xFFFF
# code.flags: Z- C+ N+
.segment code 0x02000 {
ld a, 0x0000 {$10 $00 $00 $00}
ld c, 0xFFFE {$14 $00 $FF $FE}
label: {
_loop:
inc a {$C0}
loops _loop, c {$84 $01 $FC}
}
ld c, 0x7FFE {$14 $00 $7F $FE}
{
_loop: # making sure we can redeclare!
dec a {$D0}
loops _loop, c {$84 $01 $FC}
br _done
_done:
nop
}
brk {$3F}
}
| 30.909091 | 97 | 0.305882 |
2fce1667a3583da2de1f35532931f32cd91b3997 | 8,367 | asm | Assembly | hardware.asm | juzzas/bbcbasic-z80 | 3956d2e61efd056265a17427c7f02301f17e0f11 | [
"Zlib"
] | 24 | 2020-02-08T16:27:43.000Z | 2022-01-17T19:33:34.000Z | hardware.asm | juzzas/bbcbasic-z80 | 3956d2e61efd056265a17427c7f02301f17e0f11 | [
"Zlib"
] | null | null | null | hardware.asm | juzzas/bbcbasic-z80 | 3956d2e61efd056265a17427c7f02301f17e0f11 | [
"Zlib"
] | 9 | 2020-03-01T21:42:53.000Z | 2022-03-10T00:40:47.000Z | ; Copyright (c) 2020 J.B. Langston
;
; 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 software for any purpose,
; including commercial applications, and to alter it and redistribute it
; freely, subject to the following restrictions:
;
; 1. The origin of this software must not be misrepresented; you must not
; claim that you wrote the original software. If you use this software
; in a product, an acknowledgment in the product documentation would be
; appreciated but is not required.
; 2. Altered source versions must be plainly marked as such, and must not be
; misrepresented as being the original software.
; 3. This notice may not be removed or altered from any source distribution.
; HARDWARE FUNCTIONS
PUBLIC CLG
PUBLIC COLOUR
PUBLIC DRAW
PUBLIC ENVEL
PUBLIC GCOL
PUBLIC MODE
PUBLIC MOVE
PUBLIC PLOT
PUBLIC SOUND
PUBLIC ADVAL
PUBLIC POINT
PUBLIC GETIMS
PUBLIC PUTIMS
PUBLIC CLRSCN
PUBLIC PUTCSR
PUBLIC GETCSR
PUBLIC PUTIME
PUBLIC GETIME
EXTERN EXTERR
EXTERN TELL
EXTERN PBCDL
EXTERN OUTCHR
EXTERN EXPRI
EXTERN COMMA
EXTERN XEQ
ESC EQU 27
;CLRSCN - Clear screen.
; (Alter characters to suit your VDU)
; Destroys: A,D,E,H,L,F
CLRSCN: PUSH BC
CALL TELL
DEFB ESC,"[;H" ; home cursor
DEFB ESC,"[2J" ; clear screen
DEFB 0
LD BC,0
LD (TEXTX),BC
LD (TEXTY),BC
POP BC
RET
;PUTCSR - Move cursor to specified position.
; Inputs: DE = horizontal position (LHS=0)
; HL = vertical position (TOP=0)
; Destroys: A,D,E,H,L,F
PUTCSR: LD (TEXTX),DE ;SAVE X & Y FOR LATER
LD (TEXTY),HL
LD A,ESC
CALL OUTCHR
LD A,'['
CALL OUTCHR
LD DE,(TEXTX)
CALL PBCDL
LD A,';'
CALL OUTCHR
LD HL,(TEXTY)
CALL PBCDL
LD A,'H'
CALL OUTCHR
RET
;GETCSR - Return cursor coordinates.
; Outputs: DE = X coordinate (POS)
; HL = Y coordinate (VPOS)
; Destroys: A,D,E,H,L,F
GETCSR: LD DE,(TEXTX)
LD HL,(TEXTY)
RET
;GETIME - Read elapsed-time clock.
; Outputs: DEHL = elapsed time (centiseconds)
; Destroys: A,D,E,H,L,F
GETIME: LD DE,0
LD HL,0
RET
;PUTIME - Load elapsed-time clock.
; Inputs: DEHL = time to load (centiseconds)
; Destroys: A,D,E,H,L,F
PUTIME: RET
;
;COLOUR - Set text color
COLOUR: CALL EXPRI
EXX
LD A,L
AND 7
BIT 7,L
JP Z,FGCLR
ADD 10
FGCLR: ADD 30
BIT 3,L
JP Z,OUTCLR
ADD 60
OUTCLR: LD L,A
LD A,ESC
CALL OUTCHR
LD A,'['
CALL OUTCHR
CALL PBCDL
LD A,'m'
CALL OUTCHR
JP XEQ
; GCOL - Set graphics color
; destroys HL, A
GCOL: CALL EXPRI
EXX
LD A,L
AND 0FH
LD E,A ; E contains new color in background nybble
ADD A,A
ADD A,A
ADD A,A
ADD A,A
LD D,A ; D contains new color in foreground nybble
BIT 7,L ; bit 7 set indicates backdrop color
JP NZ,BDGCOL
LD A,(CGCOL)
BIT 6,L ; bit 6 set indicates cell background color
JP NZ,BGGCOL
AND 0FH ; clear existing foreground
OR D ; set new foreground
LD (CGCOL),A
JP XEQ
BGGCOL: LD A,(CGCOL)
AND 0F0H ; clear existing background
OR E ; set new background
LD (CGCOL),A
JP XEQ
BDGCOL: LD A,(CCOLOR) ; get current backdrop colors
AND 0F0H ; clear existing backdrop
OR E ; set new backdrop
LD (CCOLOR),A ; save backdrop colors
LD BC,(VDPADR) ; send to vdp
INC C
LD B,87H
OUT (C),A
OUT (C),B
JP XEQ
; set backdrop color
; MODE - Set graphics mode
; destroys all registers
MODE: CALL EXPRI ; get mode
EXX
LD A,L
CALL VDPINI
JP XEQ
; PLOT - Plot graphics
;
PLOT: CALL GETXY ;DE <- X, HL <- Y
LD B,L
LD C,E
CALL BMPLOT
XEQ1: JP XEQ
GETXY: CALL EXPRI ;"X"
EXX
PUSH HL
CALL COMMA
CALL EXPRI ;"Y"
EXX
POP DE
RET
; unimplemented functions
CLG:
DRAW:
MOVE:
POINT:
ENVEL:
SOUND:
ADVAL:
GETIMS:
PUTIMS:
XOR A
CALL EXTERR
DEFM "Not implemented"
DEFB 0
; VDP state
VDPADR: DEFB 0BEH ; VDP base port
VDPINT: DEFB 0 ; 0 = NMI, 1 = INT
CMODE: DEFB 2 ; Current graphics mode
CGCOL: DEFB 0F0H ; Current graphics color
CCOLOR: DEFB 0F0H ; Current text color
GRAPHX: DEFW 0 ; Current graphics X coordinate
GRAPHY: DEFW 0 ; Current graphics Y coordinate
TEXTX: DEFW 0 ; Current text X coordinate
TEXTY: DEFW 0 ; Current text Y coordinate
; VDP table addresses
NAMTAB EQU 3800H ; name table
COLTAB EQU 2000H ; color table
PATTAB EQU 0H ; pattern table
SPATAB EQU 3BC0H ; sprite attribute table
SPPTAB EQU 1800H ; sprite pattern table
; default register values
DEFREG: DEFB 0, 80H ; blank, 16KB enabled
DEFB NAMTAB/400H
DEFB COLTAB/40H ; calculate register values from
DEFB PATTAB/800H ; addresses defined above
DEFB SPATAB/80H
DEFB SPPTAB/800H
; mode-specific register values
MODREG: DEFB 0, 0D0H ; MODE 0: text
DEFB 0, 0C0H ; MODE 1: tile graphics
DEFB 2, 0C0H ; MODE 2: bitmap graphics
DEFB 0, 0C8H ; MODE 3: multicolor graphics
; initialize vdp registers to default values
; A = mode to set
VDPINI: AND 3 ; limit to modes 0-3
LD (CMODE),A ; save mode for later
LD BC,(VDPADR)
INC C ; select vdp register port
LD HL,DEFREG ; look up default register values
LD B,7 ; register counter
LD D,80H ; register address
REGLP: LD E,(HL)
OUT (C),E
OUT (C),D
INC HL
INC D
DJNZ REGLP
LD A,(CCOLOR) ; restore saved colors
OUT (C),A
OUT (C),D
; clear vram
LD DE,4000H ; 16KB of memory
OUT (C),E ; write at start of memory
OUT (C),D
DEC C ; select vram port
CLRLP: OUT (C),B
DEC DE
LD A,D
OR E
JP NZ,CLRLP
; mode-specific initialization
LD A,(CMODE)
CP 3
JP Z,MODE3
CP 2
JP NZ,SETREG
; initialize bitmap graphics (MODE 2)
INC C ; select vdp register port
LD B,83H ; color table register
LD A,0FFH ; color table at 2000H
OUT (C),A
OUT (C),B
LD B,84H ; pattern table register
LD A,3 ; pattern table at 0H
OUT (C),A
OUT (C),B
LD DE,NAMTAB ; write to name table
SET 6,D
OUT (C),E
OUT (C),D
DEC C ; select vram port
LD B,3 ; initialize name table with 3 sets
XOR A ; of 256 bytes ranging from 00-FF
M2LOOP: OUT (C),A
NOP ; extra time to finish vram write
INC A
JP NZ,M2LOOP
DJNZ M2LOOP
JP SETREG
; initialize multicolor graphics (MODE 3)
MODE3: INC C ; select vdp register port
LD DE,NAMTAB ; write to name table
SET 6,D
OUT (C),E
OUT (C),D
DEC C ; select vram port
XOR A ; first section starts at 0
LD D,6 ; nametable has 6 different sections
M3LP1: LD E,4 ; each section has 4 identical lines
M3LP2: PUSH AF ; save line starting value
LD B,32 ; each line is 32 bytes long
M3LP3: OUT (C),A
NOP ; extra time to finish vram write
INC A
DJNZ M3LP3
POP AF ; recover line starting value
DEC E ; line counter
JP NZ,M3LP2
ADD A,32 ; increase line's starting value
DEC D ; section counter
JP NZ,M3LP1
; set mode specific registers
SETREG: LD A,(CMODE)
LD D,0
LD E,A
LD HL,MODREG ; look up mode register values
ADD HL,DE
ADD HL,DE
INC C ; select vdp register port
LD A,(HL) ; send mode register 1
LD B,80H
OUT (C),A
OUT (C),B
INC HL ; send mode register 2
LD A,(HL)
INC B
OUT (C),A
OUT (C),B
RET
; Bit mask values for X coordinates 0 through 7
MASK: DEFB 80H, 40H, 20H, 10H, 8H, 4H, 2H, 1H
; plot the pixel at X/Y coordinates
; B = Y position
; C = X position
BMPLOT: LD A,(CMODE) ; only plot in mode 2
CP 2
RET NZ
LD A,B ; don't plot Y coord > 191
CP 192
RET NC
; calculate address offset to X,Y coord in DE
RRCA
RRCA
RRCA
AND 1FH ; D = (Y / 8)
LD D,A
LD A,C ; E = (X & F8)
AND 0F8H
LD E,A
LD A,B ; E |= (Y & 7)
AND 7
OR E
LD E,A
; set bit in pattern table
LD HL,MASK ; look up bit mask in table
LD A,C ; from lower 3 bits of X coord
AND 7
LD B,0
LD C,A
ADD HL,BC
LD A,(HL) ; get mask in A
LD BC,(VDPADR)
INC C ; select vdp register port
LD HL,PATTAB
ADD HL,DE
OUT (C),L ; set read address in pattern table
OUT (C),H
DEC C ; select vram port
IN B,(C) ; read previous pattern
MASKOP: OR B ; combine mask with previous pattern
SET 6,H ; set write address in pattern table
INC C ; vdp register port
OUT (C),L
OUT (C),H
DEC C ; select vram port
OUT (C),A
; set byte in color table
INC C ; select vdp register port
LD HL,COLTAB ; add the color table base address
ADD HL,DE
SET 6,H ; set write address in color table
OUT (C),L
OUT (C),H
LD A,(CGCOL) ; get current color
DEC C ; select vram port
OUT (C),A ; set color in color table
RET | 20.865337 | 76 | 0.681009 |
95bdae55e4f3c59857e5b6caa7c062c43d2d3256 | 61 | asm | Assembly | gfx/pokemon/raichu/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | gfx/pokemon/raichu/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | gfx/pokemon/raichu/anim_idle.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | frame 0, 06
frame 4, 06
frame 0, 04
frame 4, 04
endanim
| 10.166667 | 12 | 0.639344 |
edc86d7959c45c5e0e04cdd4a24ae94bebb54323 | 559 | asm | Assembly | oeis/259/A259110.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/259/A259110.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/259/A259110.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A259110: 2*A000447(n).
; 0,2,20,70,168,330,572,910,1360,1938,2660,3542,4600,5850,7308,8990,10912,13090,15540,18278,21320,24682,28380,32430,36848,41650,46852,52470,58520,65018,71980,79422,87360,95810,104788,114310,124392,135050,146300,158158,170640,183762,197540,211990,227128,242970,259532,276830,294880,313698,333300,353702,374920,396970,419868,443630,468272,493810,520260,547638,575960,605242,635500,666750,699008,732290,766612,801990,838440,875978,914620,954382,995280,1037330,1080548,1124950,1170552,1217370,1265420
mul $0,2
add $0,1
bin $0,3
mul $0,2
| 69.875 | 496 | 0.808587 |
c5b7d0d1bc756bf453204a37a9bf4123cf412b66 | 838 | asm | Assembly | oeis/142/A142232.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/142/A142232.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/142/A142232.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A142232: Primes congruent to 35 mod 41.
; Submitted by Jon Maiga
; 199,281,691,773,937,1019,1429,1511,2003,2659,2741,3643,3889,4217,4463,5119,5693,5857,5939,6841,7333,7907,8317,8563,9137,9547,9629,10039,10531,10613,10859,11351,11597,12007,12253,13729,14057,14221,14303,14549,14713,15287,15451,16189,16763,16927,17419,17747,17911,18731,19141,19387,19469,19961,21191,21601,21683,21929,22093,23159,24061,24799,25127,25373,25537,26029,26111,26357,26849,27259,27751,27997,28571,28817,29063,29473,30047,30211,30293,30539,30703,30949,31277,31687,31769,32261,32507,32917
mov $1,17
mov $2,$0
add $2,2
pow $2,2
lpb $2
sub $2,1
mov $3,$1
mul $3,2
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,41
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,135
mul $0,2
add $0,189
| 33.52 | 497 | 0.729117 |
ec115c4e4813256bf523f12d61ae79ee45c7f949 | 35,379 | asm | Assembly | src/qt/src/3rdparty/webkit/Source/JavaScriptCore/generated/GeneratedJITStubs_MSVC.asm | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 46 | 2015-01-08T14:32:34.000Z | 2022-02-05T16:48:26.000Z | src/qt/src/3rdparty/webkit/Source/JavaScriptCore/generated/GeneratedJITStubs_MSVC.asm | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 7 | 2015-01-20T14:28:12.000Z | 2017-01-18T17:21:44.000Z | src/qt/src/3rdparty/webkit/Source/JavaScriptCore/generated/GeneratedJITStubs_MSVC.asm | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 14 | 2015-10-27T06:17:48.000Z | 2020-03-03T06:15:50.000Z | AREA Trampoline, CODE
EXPORT ctiTrampoline
EXPORT ctiVMThrowTrampoline
EXPORT ctiOpThrowNotCaught
ctiTrampoline PROC
stmdb sp!, {r1-r3}
stmdb sp!, {r4-r8, lr}
sub sp, sp, #68 ; sync with PRESERVEDR4_OFFSET
mov r4, r2
mov r5, #512
; r0 contains the code
mov lr, pc
bx r0
add sp, sp, #68 ; sync with PRESERVEDR4_OFFSET
ldmia sp!, {r4-r8, lr}
add sp, sp, #12
bx lr
ctiTrampoline ENDP
ctiVMThrowTrampoline PROC
mov r0, sp
mov lr, pc
bl cti_vm_throw
ctiOpThrowNotCaught
add sp, sp, #68 ; sync with PRESERVEDR4_OFFSET
ldmia sp!, {r4-r8, lr}
add sp, sp, #12
bx lr
ctiVMThrowTrampoline ENDP
EXPORT cti_op_create_this
IMPORT JITStubThunked_op_create_this
cti_op_create_this PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_create_this
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_create_this ENDP
EXPORT cti_op_convert_this
IMPORT JITStubThunked_op_convert_this
cti_op_convert_this PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_convert_this
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_convert_this ENDP
EXPORT cti_op_convert_this_strict
IMPORT JITStubThunked_op_convert_this_strict
cti_op_convert_this_strict PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_convert_this_strict
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_convert_this_strict ENDP
EXPORT cti_op_add
IMPORT JITStubThunked_op_add
cti_op_add PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_add
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_add ENDP
EXPORT cti_op_pre_inc
IMPORT JITStubThunked_op_pre_inc
cti_op_pre_inc PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_pre_inc
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_pre_inc ENDP
EXPORT cti_timeout_check
IMPORT JITStubThunked_timeout_check
cti_timeout_check PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_timeout_check
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_timeout_check ENDP
EXPORT cti_register_file_check
IMPORT JITStubThunked_register_file_check
cti_register_file_check PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_register_file_check
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_register_file_check ENDP
EXPORT cti_op_loop_if_lesseq
IMPORT JITStubThunked_op_loop_if_lesseq
cti_op_loop_if_lesseq PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_loop_if_lesseq
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_loop_if_lesseq ENDP
EXPORT cti_op_new_object
IMPORT JITStubThunked_op_new_object
cti_op_new_object PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_new_object
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_new_object ENDP
EXPORT cti_op_put_by_id_generic
IMPORT JITStubThunked_op_put_by_id_generic
cti_op_put_by_id_generic PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_id_generic
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_id_generic ENDP
EXPORT cti_op_put_by_id_direct_generic
IMPORT JITStubThunked_op_put_by_id_direct_generic
cti_op_put_by_id_direct_generic PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_id_direct_generic
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_id_direct_generic ENDP
EXPORT cti_op_get_by_id_generic
IMPORT JITStubThunked_op_get_by_id_generic
cti_op_get_by_id_generic PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_generic
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_generic ENDP
EXPORT cti_op_put_by_id
IMPORT JITStubThunked_op_put_by_id
cti_op_put_by_id PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_id
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_id ENDP
EXPORT cti_op_put_by_id_direct
IMPORT JITStubThunked_op_put_by_id_direct
cti_op_put_by_id_direct PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_id_direct
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_id_direct ENDP
EXPORT cti_op_put_by_id_fail
IMPORT JITStubThunked_op_put_by_id_fail
cti_op_put_by_id_fail PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_id_fail
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_id_fail ENDP
EXPORT cti_op_put_by_id_direct_fail
IMPORT JITStubThunked_op_put_by_id_direct_fail
cti_op_put_by_id_direct_fail PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_id_direct_fail
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_id_direct_fail ENDP
EXPORT cti_op_put_by_id_transition_realloc
IMPORT JITStubThunked_op_put_by_id_transition_realloc
cti_op_put_by_id_transition_realloc PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_id_transition_realloc
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_id_transition_realloc ENDP
EXPORT cti_op_get_by_id_method_check
IMPORT JITStubThunked_op_get_by_id_method_check
cti_op_get_by_id_method_check PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_method_check
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_method_check ENDP
EXPORT cti_op_get_by_id
IMPORT JITStubThunked_op_get_by_id
cti_op_get_by_id PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id ENDP
EXPORT cti_op_get_by_id_self_fail
IMPORT JITStubThunked_op_get_by_id_self_fail
cti_op_get_by_id_self_fail PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_self_fail
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_self_fail ENDP
EXPORT cti_op_get_by_id_getter_stub
IMPORT JITStubThunked_op_get_by_id_getter_stub
cti_op_get_by_id_getter_stub PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_getter_stub
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_getter_stub ENDP
EXPORT cti_op_get_by_id_custom_stub
IMPORT JITStubThunked_op_get_by_id_custom_stub
cti_op_get_by_id_custom_stub PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_custom_stub
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_custom_stub ENDP
EXPORT cti_op_get_by_id_proto_list
IMPORT JITStubThunked_op_get_by_id_proto_list
cti_op_get_by_id_proto_list PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_proto_list
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_proto_list ENDP
EXPORT cti_op_get_by_id_proto_list_full
IMPORT JITStubThunked_op_get_by_id_proto_list_full
cti_op_get_by_id_proto_list_full PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_proto_list_full
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_proto_list_full ENDP
EXPORT cti_op_get_by_id_proto_fail
IMPORT JITStubThunked_op_get_by_id_proto_fail
cti_op_get_by_id_proto_fail PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_proto_fail
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_proto_fail ENDP
EXPORT cti_op_get_by_id_array_fail
IMPORT JITStubThunked_op_get_by_id_array_fail
cti_op_get_by_id_array_fail PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_array_fail
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_array_fail ENDP
EXPORT cti_op_get_by_id_string_fail
IMPORT JITStubThunked_op_get_by_id_string_fail
cti_op_get_by_id_string_fail PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_id_string_fail
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_id_string_fail ENDP
EXPORT cti_op_check_has_instance
IMPORT JITStubThunked_op_check_has_instance
cti_op_check_has_instance PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_check_has_instance
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_check_has_instance ENDP
EXPORT cti_op_instanceof
IMPORT JITStubThunked_op_instanceof
cti_op_instanceof PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_instanceof
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_instanceof ENDP
EXPORT cti_op_del_by_id
IMPORT JITStubThunked_op_del_by_id
cti_op_del_by_id PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_del_by_id
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_del_by_id ENDP
EXPORT cti_op_mul
IMPORT JITStubThunked_op_mul
cti_op_mul PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_mul
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_mul ENDP
EXPORT cti_op_new_func
IMPORT JITStubThunked_op_new_func
cti_op_new_func PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_new_func
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_new_func ENDP
EXPORT cti_op_call_jitCompile
IMPORT JITStubThunked_op_call_jitCompile
cti_op_call_jitCompile PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_call_jitCompile
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_call_jitCompile ENDP
EXPORT cti_op_construct_jitCompile
IMPORT JITStubThunked_op_construct_jitCompile
cti_op_construct_jitCompile PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_construct_jitCompile
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_construct_jitCompile ENDP
EXPORT cti_op_call_arityCheck
IMPORT JITStubThunked_op_call_arityCheck
cti_op_call_arityCheck PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_call_arityCheck
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_call_arityCheck ENDP
EXPORT cti_op_construct_arityCheck
IMPORT JITStubThunked_op_construct_arityCheck
cti_op_construct_arityCheck PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_construct_arityCheck
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_construct_arityCheck ENDP
EXPORT cti_vm_lazyLinkCall
IMPORT JITStubThunked_vm_lazyLinkCall
cti_vm_lazyLinkCall PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_vm_lazyLinkCall
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_vm_lazyLinkCall ENDP
EXPORT cti_vm_lazyLinkConstruct
IMPORT JITStubThunked_vm_lazyLinkConstruct
cti_vm_lazyLinkConstruct PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_vm_lazyLinkConstruct
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_vm_lazyLinkConstruct ENDP
EXPORT cti_op_push_activation
IMPORT JITStubThunked_op_push_activation
cti_op_push_activation PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_push_activation
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_push_activation ENDP
EXPORT cti_op_call_NotJSFunction
IMPORT JITStubThunked_op_call_NotJSFunction
cti_op_call_NotJSFunction PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_call_NotJSFunction
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_call_NotJSFunction ENDP
EXPORT cti_op_create_arguments
IMPORT JITStubThunked_op_create_arguments
cti_op_create_arguments PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_create_arguments
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_create_arguments ENDP
EXPORT cti_op_create_arguments_no_params
IMPORT JITStubThunked_op_create_arguments_no_params
cti_op_create_arguments_no_params PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_create_arguments_no_params
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_create_arguments_no_params ENDP
EXPORT cti_op_tear_off_activation
IMPORT JITStubThunked_op_tear_off_activation
cti_op_tear_off_activation PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_tear_off_activation
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_tear_off_activation ENDP
EXPORT cti_op_tear_off_arguments
IMPORT JITStubThunked_op_tear_off_arguments
cti_op_tear_off_arguments PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_tear_off_arguments
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_tear_off_arguments ENDP
EXPORT cti_op_profile_will_call
IMPORT JITStubThunked_op_profile_will_call
cti_op_profile_will_call PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_profile_will_call
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_profile_will_call ENDP
EXPORT cti_op_profile_did_call
IMPORT JITStubThunked_op_profile_did_call
cti_op_profile_did_call PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_profile_did_call
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_profile_did_call ENDP
EXPORT cti_op_new_array
IMPORT JITStubThunked_op_new_array
cti_op_new_array PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_new_array
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_new_array ENDP
EXPORT cti_op_resolve
IMPORT JITStubThunked_op_resolve
cti_op_resolve PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_resolve
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_resolve ENDP
EXPORT cti_op_construct_NotJSConstruct
IMPORT JITStubThunked_op_construct_NotJSConstruct
cti_op_construct_NotJSConstruct PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_construct_NotJSConstruct
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_construct_NotJSConstruct ENDP
EXPORT cti_op_get_by_val
IMPORT JITStubThunked_op_get_by_val
cti_op_get_by_val PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_val
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_val ENDP
EXPORT cti_op_get_by_val_string
IMPORT JITStubThunked_op_get_by_val_string
cti_op_get_by_val_string PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_val_string
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_val_string ENDP
EXPORT cti_op_get_by_val_byte_array
IMPORT JITStubThunked_op_get_by_val_byte_array
cti_op_get_by_val_byte_array PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_by_val_byte_array
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_by_val_byte_array ENDP
EXPORT cti_op_sub
IMPORT JITStubThunked_op_sub
cti_op_sub PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_sub
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_sub ENDP
EXPORT cti_op_put_by_val
IMPORT JITStubThunked_op_put_by_val
cti_op_put_by_val PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_val
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_val ENDP
EXPORT cti_op_put_by_val_byte_array
IMPORT JITStubThunked_op_put_by_val_byte_array
cti_op_put_by_val_byte_array PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_val_byte_array
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_val_byte_array ENDP
EXPORT cti_op_lesseq
IMPORT JITStubThunked_op_lesseq
cti_op_lesseq PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_lesseq
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_lesseq ENDP
EXPORT cti_op_load_varargs
IMPORT JITStubThunked_op_load_varargs
cti_op_load_varargs PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_load_varargs
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_load_varargs ENDP
EXPORT cti_op_negate
IMPORT JITStubThunked_op_negate
cti_op_negate PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_negate
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_negate ENDP
EXPORT cti_op_resolve_base
IMPORT JITStubThunked_op_resolve_base
cti_op_resolve_base PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_resolve_base
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_resolve_base ENDP
EXPORT cti_op_resolve_base_strict_put
IMPORT JITStubThunked_op_resolve_base_strict_put
cti_op_resolve_base_strict_put PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_resolve_base_strict_put
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_resolve_base_strict_put ENDP
EXPORT cti_op_ensure_property_exists
IMPORT JITStubThunked_op_ensure_property_exists
cti_op_ensure_property_exists PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_ensure_property_exists
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_ensure_property_exists ENDP
EXPORT cti_op_resolve_skip
IMPORT JITStubThunked_op_resolve_skip
cti_op_resolve_skip PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_resolve_skip
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_resolve_skip ENDP
EXPORT cti_op_resolve_global
IMPORT JITStubThunked_op_resolve_global
cti_op_resolve_global PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_resolve_global
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_resolve_global ENDP
EXPORT cti_op_div
IMPORT JITStubThunked_op_div
cti_op_div PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_div
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_div ENDP
EXPORT cti_op_pre_dec
IMPORT JITStubThunked_op_pre_dec
cti_op_pre_dec PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_pre_dec
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_pre_dec ENDP
EXPORT cti_op_jless
IMPORT JITStubThunked_op_jless
cti_op_jless PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_jless
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_jless ENDP
EXPORT cti_op_jlesseq
IMPORT JITStubThunked_op_jlesseq
cti_op_jlesseq PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_jlesseq
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_jlesseq ENDP
EXPORT cti_op_not
IMPORT JITStubThunked_op_not
cti_op_not PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_not
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_not ENDP
EXPORT cti_op_jtrue
IMPORT JITStubThunked_op_jtrue
cti_op_jtrue PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_jtrue
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_jtrue ENDP
EXPORT cti_op_post_inc
IMPORT JITStubThunked_op_post_inc
cti_op_post_inc PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_post_inc
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_post_inc ENDP
EXPORT cti_op_eq
IMPORT JITStubThunked_op_eq
cti_op_eq PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_eq
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_eq ENDP
EXPORT cti_op_eq_strings
IMPORT JITStubThunked_op_eq_strings
cti_op_eq_strings PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_eq_strings
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_eq_strings ENDP
EXPORT cti_op_lshift
IMPORT JITStubThunked_op_lshift
cti_op_lshift PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_lshift
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_lshift ENDP
EXPORT cti_op_bitand
IMPORT JITStubThunked_op_bitand
cti_op_bitand PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_bitand
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_bitand ENDP
EXPORT cti_op_rshift
IMPORT JITStubThunked_op_rshift
cti_op_rshift PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_rshift
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_rshift ENDP
EXPORT cti_op_bitnot
IMPORT JITStubThunked_op_bitnot
cti_op_bitnot PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_bitnot
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_bitnot ENDP
EXPORT cti_op_resolve_with_base
IMPORT JITStubThunked_op_resolve_with_base
cti_op_resolve_with_base PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_resolve_with_base
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_resolve_with_base ENDP
EXPORT cti_op_new_func_exp
IMPORT JITStubThunked_op_new_func_exp
cti_op_new_func_exp PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_new_func_exp
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_new_func_exp ENDP
EXPORT cti_op_mod
IMPORT JITStubThunked_op_mod
cti_op_mod PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_mod
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_mod ENDP
EXPORT cti_op_less
IMPORT JITStubThunked_op_less
cti_op_less PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_less
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_less ENDP
EXPORT cti_op_post_dec
IMPORT JITStubThunked_op_post_dec
cti_op_post_dec PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_post_dec
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_post_dec ENDP
EXPORT cti_op_urshift
IMPORT JITStubThunked_op_urshift
cti_op_urshift PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_urshift
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_urshift ENDP
EXPORT cti_op_bitxor
IMPORT JITStubThunked_op_bitxor
cti_op_bitxor PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_bitxor
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_bitxor ENDP
EXPORT cti_op_new_regexp
IMPORT JITStubThunked_op_new_regexp
cti_op_new_regexp PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_new_regexp
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_new_regexp ENDP
EXPORT cti_op_bitor
IMPORT JITStubThunked_op_bitor
cti_op_bitor PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_bitor
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_bitor ENDP
EXPORT cti_op_call_eval
IMPORT JITStubThunked_op_call_eval
cti_op_call_eval PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_call_eval
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_call_eval ENDP
EXPORT cti_op_throw
IMPORT JITStubThunked_op_throw
cti_op_throw PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_throw
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_throw ENDP
EXPORT cti_op_get_pnames
IMPORT JITStubThunked_op_get_pnames
cti_op_get_pnames PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_get_pnames
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_get_pnames ENDP
EXPORT cti_has_property
IMPORT JITStubThunked_has_property
cti_has_property PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_has_property
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_has_property ENDP
EXPORT cti_op_push_scope
IMPORT JITStubThunked_op_push_scope
cti_op_push_scope PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_push_scope
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_push_scope ENDP
EXPORT cti_op_pop_scope
IMPORT JITStubThunked_op_pop_scope
cti_op_pop_scope PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_pop_scope
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_pop_scope ENDP
EXPORT cti_op_typeof
IMPORT JITStubThunked_op_typeof
cti_op_typeof PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_typeof
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_typeof ENDP
EXPORT cti_op_is_undefined
IMPORT JITStubThunked_op_is_undefined
cti_op_is_undefined PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_is_undefined
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_is_undefined ENDP
EXPORT cti_op_is_boolean
IMPORT JITStubThunked_op_is_boolean
cti_op_is_boolean PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_is_boolean
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_is_boolean ENDP
EXPORT cti_op_is_number
IMPORT JITStubThunked_op_is_number
cti_op_is_number PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_is_number
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_is_number ENDP
EXPORT cti_op_is_string
IMPORT JITStubThunked_op_is_string
cti_op_is_string PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_is_string
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_is_string ENDP
EXPORT cti_op_is_object
IMPORT JITStubThunked_op_is_object
cti_op_is_object PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_is_object
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_is_object ENDP
EXPORT cti_op_is_function
IMPORT JITStubThunked_op_is_function
cti_op_is_function PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_is_function
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_is_function ENDP
EXPORT cti_op_stricteq
IMPORT JITStubThunked_op_stricteq
cti_op_stricteq PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_stricteq
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_stricteq ENDP
EXPORT cti_op_to_primitive
IMPORT JITStubThunked_op_to_primitive
cti_op_to_primitive PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_to_primitive
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_to_primitive ENDP
EXPORT cti_op_strcat
IMPORT JITStubThunked_op_strcat
cti_op_strcat PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_strcat
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_strcat ENDP
EXPORT cti_op_nstricteq
IMPORT JITStubThunked_op_nstricteq
cti_op_nstricteq PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_nstricteq
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_nstricteq ENDP
EXPORT cti_op_to_jsnumber
IMPORT JITStubThunked_op_to_jsnumber
cti_op_to_jsnumber PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_to_jsnumber
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_to_jsnumber ENDP
EXPORT cti_op_in
IMPORT JITStubThunked_op_in
cti_op_in PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_in
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_in ENDP
EXPORT cti_op_push_new_scope
IMPORT JITStubThunked_op_push_new_scope
cti_op_push_new_scope PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_push_new_scope
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_push_new_scope ENDP
EXPORT cti_op_jmp_scopes
IMPORT JITStubThunked_op_jmp_scopes
cti_op_jmp_scopes PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_jmp_scopes
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_jmp_scopes ENDP
EXPORT cti_op_put_by_index
IMPORT JITStubThunked_op_put_by_index
cti_op_put_by_index PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_by_index
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_by_index ENDP
EXPORT cti_op_switch_imm
IMPORT JITStubThunked_op_switch_imm
cti_op_switch_imm PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_switch_imm
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_switch_imm ENDP
EXPORT cti_op_switch_char
IMPORT JITStubThunked_op_switch_char
cti_op_switch_char PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_switch_char
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_switch_char ENDP
EXPORT cti_op_switch_string
IMPORT JITStubThunked_op_switch_string
cti_op_switch_string PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_switch_string
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_switch_string ENDP
EXPORT cti_op_del_by_val
IMPORT JITStubThunked_op_del_by_val
cti_op_del_by_val PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_del_by_val
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_del_by_val ENDP
EXPORT cti_op_put_getter
IMPORT JITStubThunked_op_put_getter
cti_op_put_getter PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_getter
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_getter ENDP
EXPORT cti_op_put_setter
IMPORT JITStubThunked_op_put_setter
cti_op_put_setter PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_put_setter
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_put_setter ENDP
EXPORT cti_op_throw_reference_error
IMPORT JITStubThunked_op_throw_reference_error
cti_op_throw_reference_error PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_throw_reference_error
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_throw_reference_error ENDP
EXPORT cti_op_debug
IMPORT JITStubThunked_op_debug
cti_op_debug PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_op_debug
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_op_debug ENDP
EXPORT cti_vm_throw
IMPORT JITStubThunked_vm_throw
cti_vm_throw PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_vm_throw
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_vm_throw ENDP
EXPORT cti_to_object
IMPORT JITStubThunked_to_object
cti_to_object PROC
str lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bl JITStubThunked_to_object
ldr lr, [sp, #64] ; sync with THUNK_RETURN_ADDRESS_OFFSET
bx lr
cti_to_object ENDP
END
| 32.547378 | 61 | 0.778173 |
09dd93653283602d923e6fa6324b6b3ef7c3e9d7 | 5,349 | asm | Assembly | App64bitJni1/exampleJni.asm | HJLebbink/Asm-Examples-Visual-Studio | c117ff7cb4df98b5b99f8d617138dbd991905b72 | [
"MIT"
] | 3 | 2017-03-09T14:16:30.000Z | 2021-06-20T08:55:33.000Z | App64bitJni1/exampleJni.asm | HJLebbink/Asm-Examples-Visual-Studio | c117ff7cb4df98b5b99f8d617138dbd991905b72 | [
"MIT"
] | null | null | null | App64bitJni1/exampleJni.asm | HJLebbink/Asm-Examples-Visual-Studio | c117ff7cb4df98b5b99f8d617138dbd991905b72 | [
"MIT"
] | 1 | 2020-11-06T12:59:56.000Z | 2020-11-06T12:59:56.000Z | BITS 64
ALIGN 8, nop
;#region JNI macros
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%macro GetArrayLength 0
sub rsp, 4*8
mov rbx, [rcx]
call qword [rbx+8*171] ; call getArrayLength(JNIEnv, J_MS_OUT)
add rsp, 4*8
%endmacro
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%macro GetIntArrayElements 0
sub rsp, 4*8
mov rbx, [rcx]
call qword [rbx+8*187] ; call GETIntArrayElements(JNIEnv, JIntArrayPTR, NULL) returns *carray in eax
add rsp, 4*8
%endmacro
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%macro ReleaseIntArrayElements 0
sub rsp, 4*8
mov rbx, [rcx]
call qword [rbx+8*195] ; call ReleaseIntArrayElements(JNIEnv, JIntArrayPTR, CArrayPTR, 0)
add rsp, 4*8
%endmacro
;#endregion macros
;#region Java Wrapper for the C method testCode
;---------------------------------------------------------------------
GLOBAL Java_JniTest1_testCode
Java_JniTest1_testCode: ; proc JNIEnv:QWORD, self:QWORD, DATA_J:QWORD, NITEMS1_J:QWORD, NITEMS2_J: QWORD, NITEMS3_J: QWORD;
; params
%define JNIEnv qword [rbp+2*8]
%define self qword [rbp+3*8]
%define DATA_J qword [rbp+4*8]
%define NITEMS1_J qword [rbp+5*8]
%define NITEMS2_J qword [rbp+6*8]
%define NITEMS3_J qword [rbp+7*8]
%define PARAM_SIZE 7*8
;----------------------------------------------------------------
; local variables
%define DATA_C qword [rbp-1*8]
%define DATA_C_SIZE qword [rbp-2*8]
%define NITEMS1_C qword [rbp-3*8]
%define NITEMS2_C qword [rbp-4*8]
%define NITEMS3_C qword [rbp-5*8]
%define RESULT qword [rbp-6*8]
%define LOCAL_VAR_SIZE 6*8
;----------------------------------------------------------------
int 3
push rbp
mov rbp, rsp
sub rsp, LOCAL_VAR_SIZE
;----------------------------------------------------------------
; save params as locals, in case the caller had not done that
mov JNIEnv, rcx
; mov self, rdx ; class is static, no need for self
mov DATA_J, r8
mov NITEMS1_J, r9
;----------------------------------------------------------------
mov rcx, JNIEnv ; first param
mov rdx, DATA_J ; second param
xor r8, r8 ; third param
GetIntArrayElements
mov qword DATA_C, rax
;----------------------------------------------------------------
mov rcx, JNIEnv ; first param
mov rdx, DATA_J ; second param
GetArrayLength
mov qword DATA_C_SIZE, rax
;----------------------------------------------------------------
mov rax, NITEMS1_C
mov NITEMS1_J, rax
mov rax, NITEMS2_C
mov NITEMS2_J, rax
mov rax, NITEMS3_J
mov NITEMS3_C, rax
mov r9, NITEMS3_C ; fourth param
push r9
; mov [rsp+4*8], r9
mov r8, NITEMS2_C ; third param
push r8
; mov [rsp+3*8], r8
mov rdx, NITEMS1_C ; second param
push rdx
; mov [rsp+2*8], rdx
mov rcx, DATA_C ; first param
push rcx
; mov [rsp+1*8], rcx
call testCode ;rcx <= data; rdx <= nItems1; r8 <= nItems2; r9 <= nItems3
mov RESULT, rax ; store result of testCode
add rsp, 4*8
;----------------------------------------------------------------
mov rcx, JNIEnv ; first param
mov rdx, DATA_J ; second param
mov r8, DATA_C ; third param
xor r9, r9 ; fourth param; 0=update DATA_J; 2=do not update DATA_J;
ReleaseIntArrayElements
;----------------------------------------------------------------
mov rax, RESULT ; restore the return value for getResults in eax
mov rsp, rbp
pop rbp
ret PARAM_SIZE
;#endregion
;#region testCode
testCode:
global testCode
; extern "C" void testCode(
; unsigned long * const data,
; const unsigned long long nItems1,
; const unsigned long long nItems2,
; const unsigned long long nItems3)
;
; rcx <= data
; rdx <= nItems1
; r8 <= nItems2
; r9 <= nItems3
; The Microsoft x64 calling convention uses registers RCX, RDX, R8, R9 for the first four integer or
; pointer arguments (in that order), and XMM0, XMM1, XMM2, XMM3 are used for floating point arguments.
; Additional arguments are pushed onto the stack (right to left). Integer return values (similar to x86)
; are returned in RAX if 64 bits or less. Floating point return values are returned in XMM0. Parameters
; less than 64 bits long are not zero extended; the high bits are not zeroed.
;
;#region PROLOG
;---------------------------------------------------------------------
sub rsp, 8*8
mov qword [rsp+0*8], r15
mov qword [rsp+1*8], r14
mov qword [rsp+2*8], r13
mov qword [rsp+3*8], r12
mov qword [rsp+4*8], rbx
mov qword [rsp+5*8], rdi
mov qword [rsp+6*8], rsi
mov qword [rsp+7*8], rbp
;#endregion PROLOG
;#region PAYLOAD
;---------------------------------------------------------------------
; int 3
mov r15, rdx
imul r15, r8
imul r15, r9
test r15, r15
jz EPILOG
align 16
MY_LOOP:
dec r15
mov dword [rcx + 4*r15], r15d
jnz MY_LOOP
;#endregion PAYLOAD
;#region EPILOG
;---------------------------------------------------------------------
EPILOG:
mov r15, qword [rsp+0*8]
mov r14, qword [rsp+1*8]
mov r13, qword [rsp+2*8]
mov r12, qword [rsp+3*8]
mov rbx, qword [rsp+4*8]
mov rdi, qword [rsp+5*8]
mov rsi, qword [rsp+6*8]
mov rbp, qword [rsp+7*8]
add rsp, 8*8
ret
;#endregion testCode
;#endregion testCode
| 28.913514 | 124 | 0.540288 |
8dfb1f2e683976a695340ec580353a03ef41fd0d | 670 | asm | Assembly | programs/oeis/313/A313982.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/313/A313982.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/313/A313982.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A313982: Coordination sequence Gal.3.57.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,5,10,17,22,29,34,39,44,49,56,61,68,73,78,83,88,95,100,107,112,117,122,127,134,139,146,151,156,161,166,173,178,185,190,195,200,205,212,217,224,229,234,239,244,251,256,263,268,273
mov $2,$0
mov $5,2
mov $7,$0
lpb $5
mov $0,$7
sub $5,1
add $0,$5
sub $0,1
mov $6,$0
mul $0,9
sub $0,$6
mov $3,1
mul $6,$0
add $6,$0
div $6,7
mul $6,2
add $3,$6
mov $4,$5
mov $6,$3
lpb $4
mov $1,$6
sub $4,1
lpe
lpe
lpb $7
sub $1,$6
mov $7,0
lpe
add $1,$2
mov $0,$1
| 19.705882 | 181 | 0.61194 |
b588eae5f708be92e8e1c1481699be156080d5ef | 1,732 | asm | Assembly | iod/con2/ql/gw_pixad.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | iod/con2/ql/gw_pixad.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | iod/con2/ql/gw_pixad.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | section gw
* sets up pixel address and masks
xdef GW_PIXAD
include 'dev8_Minerva_INC_GW'
include 'dev8_Minerva_INC_SV'
include 'dev8_Minerva_INC_SD'
* D0 -ip - x coordinate (lsw)
* D1 -ip - y coordinate (lsw)
* D2 - o- pixel mask within word (msw preserved)
* D3 - o- colour masks (lsw for line at y coordinate)
* A0 -ip - channel definition block
* A5 - o- screen address of word containing pixel
* A6 -ip - graphics stack frame
gw_pixad
move.w D0,-(SP) save x coordinate
move.w D1,D2 copy y coordinate
add.w SD_XMIN(A0),D0 adjust for window position
add.w SD_YMIN(A0),D2
move.l SD_SCRB(A0),A5 get screen base address
move.w SD_LINEL(A0),D3
move.w D3,LINEL(A6) set line length
neg.w D3
move.w D3,LINEM(A6) and its negation
muls D2,D3 multiply line length by line number (NB signed)
sub.l D3,A5 pixel line address (Note D3 was negated)
move.l SD_IMASK(A0),D3 basic colour mask
lsr.b #1,D2
bcs.s NOSWAP
swap D3 if line number is even then swap colour masks
noswap
move.w #$8080,D2 basic pixel mask for 4 colour
btst D2,XINC+1(A6)
bne.s ROTATE
move.w #$C0C0,D2 basic pixel mask for 8 colour
rotate
ror.w D0,D2 rotate pixel mask over pixel position in word
asr.w #3,D0 word number in line
add.w D0,D0 byte offset in line
add.w D0,A5 finally, pixel word address
move.w (SP)+,D0 reload original x coordinate
rts
end
| 33.307692 | 79 | 0.569861 |
28e9fc558bbc7001d4ae479b542cfd84cad7fd8e | 766 | asm | Assembly | oeis/249/A249184.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/249/A249184.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/249/A249184.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A249184: A249183 seen as binary numbers.
; Submitted by Christian Krause
; 1,7,27,119,427,1799,6939,30583,109227,458759,1769499,7798903,27984299,117901063,454761243,2004318071,7158278827,30064771079,115964117019,511101108343,1833951035819,7726646167303,29802778073883,131352984844151,469126392949419,1970354902204423,7599940337074203,33496033337475191,120191649034469803,506381209866536711,1953184666628070171,8608480567731124087,30744573456182586027,129127208515966861319,498062089990157893659,2195162544771436642423,7876759719473978540459,33185692588603483358983
lpb $0
trn $0,1
seq $0,48711 ; 2nd row of Family 1 "90 X 150 array": generations 0 .. n of Rule 90 starting from seed pattern 7.
mov $2,$0
mov $0,$1
lpe
mov $0,$2
div $0,2
mul $0,2
add $0,1
| 51.066667 | 491 | 0.826371 |
59e5ba87c94cd4268f5bf05cd255634670cde829 | 7,168 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_624.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_624.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_624.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xbdf6, %rsi
nop
sub $51370, %r10
movb $0x61, (%rsi)
nop
nop
xor $52089, %rsi
lea addresses_WC_ht+0xb476, %rbx
clflush (%rbx)
nop
xor $34436, %r15
mov $0x6162636465666768, %r8
movq %r8, %xmm5
vmovups %ymm5, (%rbx)
nop
and $18800, %r8
lea addresses_WT_ht+0xe7f6, %r12
nop
nop
cmp $58971, %rdi
mov (%r12), %rsi
add $40983, %r15
lea addresses_normal_ht+0xc5f6, %r12
nop
dec %r8
and $0xffffffffffffffc0, %r12
vmovaps (%r12), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rbx
nop
nop
nop
and $62292, %rbx
lea addresses_D_ht+0x10af6, %rsi
lea addresses_WC_ht+0xbad6, %rdi
nop
nop
nop
cmp $12984, %r8
mov $25, %rcx
rep movsw
nop
nop
nop
nop
cmp $7914, %r15
lea addresses_D_ht+0x5f6, %rsi
nop
nop
nop
nop
add $2159, %r15
movups (%rsi), %xmm5
vpextrq $0, %xmm5, %r8
nop
nop
nop
nop
inc %rdi
lea addresses_WT_ht+0x53f6, %r10
mfence
mov (%r10), %r8
nop
and %r12, %r12
lea addresses_WT_ht+0x1c696, %rsi
lea addresses_UC_ht+0xa41c, %rdi
xor $45289, %r15
mov $29, %rcx
rep movsw
cmp $41844, %rcx
lea addresses_normal_ht+0x174b6, %rsi
lea addresses_WC_ht+0x15f6, %rdi
xor %r12, %r12
mov $119, %rcx
rep movsw
and $57022, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r9
push %rbp
push %rbx
push %rdx
push %rsi
// Store
lea addresses_UC+0xe5f6, %r14
and %r9, %r9
movb $0x51, (%r14)
xor %r15, %r15
// Store
lea addresses_PSE+0x16f76, %r15
nop
nop
xor $53578, %rbp
movw $0x5152, (%r15)
nop
nop
nop
nop
cmp %rsi, %rsi
// Store
lea addresses_normal+0x98f6, %rbx
nop
nop
dec %r15
movb $0x51, (%rbx)
nop
nop
nop
inc %rbp
// Load
lea addresses_UC+0x32f6, %rsi
nop
nop
nop
nop
add $4406, %rbx
movb (%rsi), %r14b
sub %r14, %r14
// Faulty Load
lea addresses_WT+0xfdf6, %r15
nop
nop
nop
cmp %rbx, %rbx
vmovups (%r15), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %r9
lea oracles, %rdx
and $0xff, %r9
shlq $12, %r9
mov (%rdx,%r9,1), %r9
pop %rsi
pop %rdx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 1, 'NT': True, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}}
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 7}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 8, 'NT': True, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 37.528796 | 2,999 | 0.654157 |
c2e6b70f3672276558151c9c6e834e6d9f459b26 | 409 | asm | Assembly | data/maps/objects/ViridianNicknameHouse.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/maps/objects/ViridianNicknameHouse.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/maps/objects/ViridianNicknameHouse.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | ViridianNicknameHouse_Object:
db $a ; border block
def_warps
warp 2, 7, 3, LAST_MAP
warp 3, 7, 3, LAST_MAP
def_signs
def_objects
object SPRITE_BALDING_GUY, 5, 3, STAY, NONE, 1 ; person
object SPRITE_LITTLE_GIRL, 1, 4, WALK, UP_DOWN, 2 ; person
object SPRITE_BIRD, 5, 5, WALK, LEFT_RIGHT, 3 ; person
object SPRITE_CLIPBOARD, 4, 0, STAY, NONE, 4 ; person
def_warps_to VIRIDIAN_NICKNAME_HOUSE
| 24.058824 | 59 | 0.733496 |
8502a87444bd9ae965e4a5131fb7776a6810c5b9 | 149,280 | asm | Assembly | cgb-acid-hell.asm | mattcurrie/cgb-acid-hell | 107b7c5a875f26473ebc1193e32c59394bdd3049 | [
"MIT"
] | 2 | 2021-05-27T18:29:57.000Z | 2021-09-29T00:05:57.000Z | cgb-acid-hell.asm | mattcurrie/cgb-acid-hell | 107b7c5a875f26473ebc1193e32c59394bdd3049 | [
"MIT"
] | 1 | 2021-03-20T19:28:31.000Z | 2021-03-22T02:48:49.000Z | cgb-acid-hell.asm | mattcurrie/cgb-acid-hell | 107b7c5a875f26473ebc1193e32c59394bdd3049 | [
"MIT"
] | null | null | null | ld_long: MACRO
IF STRLWR("\1") == "a"
; ld a, [$ff40]
db $FA
dw \2
ELSE
IF STRLWR("\2") == "a"
; ld [$ff40], a
db $EA
dw \1
ENDC
ENDC
ENDM
INCLUDE "hardware.inc"
SECTION "ROM Bank $000", ROM0[$0]
Call_000_0000:
or $80
ldh [rBCPS], a
ld c, $69
jr_000_0006:
ld a, [hl+]
ld [c], a
dec b
jr nz, jr_000_0006
ret
Call_000_000c:
or $80
ldh [rOCPS], a
ld c, $6b
jr_000_0012:
ld a, [hl+]
ld [c], a
dec b
jr nz, jr_000_0012
ret
Call_000_0018:
ld d, a
jr_000_0019:
ld [hl+], a
dec bc
ld a, b
or c
ld a, d
jr nz, jr_000_0019
ret
Call_000_0021:
ld hl, $ff40
bit 7, [hl]
ret z
call Call_000_002d
res 7, [hl]
ret
Call_000_002d:
jr_000_002d:
ldh a, [rLY]
cp $90
jr nz, jr_000_002d
ret
Call_000_0034:
jr_000_0034:
ld a, [hl+]
ld [de], a
inc de
dec bc
ld a, b
or c
jr nz, jr_000_0034
ret
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jp $0150
adc $ed
ld h, [hl]
ld h, [hl]
call z, $000d
dec bc
inc bc
ld [hl], e
nop
add e
nop
inc c
nop
dec c
nop
ld [$1f11], sp
adc b
adc c
nop
ld c, $dc
call z, $e66e
db $dd
db $dd
reti
sbc c
cp e
cp e
ld h, a
ld h, e
ld l, [hl]
ld c, $ec
call z, $dcdd
sbc c
sbc a
cp e
cp c
inc sp
ld a, $43
ld b, a
ld b, d
dec l
ld b, c
ld b, e
ld c, c
ld b, h
dec l
ld c, b
ld b, l
ld c, h
ld c, h
nop
nop
ret nz
nop
nop
nop
nop
nop
nop
nop
nop
nop
res 4, e
call nc, Call_000_31f3
cp $ff
push af
call Call_000_0021
pop af
cp $11
jp nz, Jump_000_1ab3
xor a
ld [$c000], a
ld hl, $fe00
ld bc, $00a0
ld a, $ff
call Call_000_0018
ld hl, $1b65
ld de, $fe00
ld bc, $00a0
call Call_000_0034
ld hl, $1b2c
ld b, $18
xor a
call Call_000_0000
ld hl, $1b2c
ld b, $18
xor a
call Call_000_000c
call Call_000_1ab6
ld a, $01
ldh [rVBK], a
ld hl, $1f64
ld de, $9100
ld bc, $00e0
call Call_000_0034
ld hl, $9c00
ld a, $0a
ld c, $0e
jr_000_01a5:
ld [hl+], a
dec c
jr nz, jr_000_01a5
ld a, $01
ld hl, $9800
ld bc, $0400
push hl
call Call_000_0018
ld de, $0020
ld c, $10
pop hl
jr_000_01bb:
ld [hl], d
add hl, de
dec c
jr nz, jr_000_01bb
xor a
ldh [rVBK], a
ld hl, $1b64
ld de, $9800
ld bc, $0400
call Call_000_0034
ld hl, $9c00
ld a, $10
ld c, $0e
jr_000_01d6:
ld [hl+], a
inc a
dec c
jr nz, jr_000_01d6
ld c, $ff
ld de, $8010
jr_000_01e0:
push bc
ld hl, $1b44
ld bc, $0010
call Call_000_0034
pop bc
dec c
jr nz, jr_000_01e0
ld c, $7f
ld de, $9010
jr_000_01f3:
push bc
ld hl, $1b44
ld bc, $0010
call Call_000_0034
pop bc
dec c
jr nz, jr_000_01f3
ld hl, $1b54
ld de, $8690
ld bc, $0010
call Call_000_0034
ld a, $40
ldh [rSTAT], a
ld a, $b4
ldh [rSCX], a
ld a, $21
ldh [rWX], a
ld a, $88
ldh [rWY], a
xor a
ldh [rLYC], a
ldh [rIF], a
ld a, $02
ldh [rIE], a
ld hl, $ff40
ld de, $80e1
ld bc, $e3f3
ld [hl], c
Jump_000_0230:
call Call_000_002d
ld a, [$c000]
inc a
cp $0a
jr nz, jr_000_023d
xor a
ld b, b
jr_000_023d:
ld [$c000], a
ld a, $00
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $81
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $01
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $9e
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $02
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $bb
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $03
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $d8
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $04
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $f5
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $05
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $92
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $06
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $af
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $07
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $cc
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $08
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $e9
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $09
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $86
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $0a
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $a3
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $0b
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $c0
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $0c
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $dd
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $0d
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $7a
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $0e
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $97
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $0f
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $b4
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $10
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $d1
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $11
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $ee
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $12
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $8b
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $13
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $a8
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $14
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $c5
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $15
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $e2
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $16
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $7f
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $17
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $9c
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $18
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $b9
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $19
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $d6
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $1a
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $73
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $1b
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $90
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $1c
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $ad
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $1d
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $ca
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $1e
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $67
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $1f
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $84
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $20
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $a1
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $21
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $be
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $22
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $db
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $23
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $78
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $24
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $95
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $25
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $b2
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $26
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $cf
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
Call_000_093c:
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $27
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $6c
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $28
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $89
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $29
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $a6
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $2a
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $c3
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $2b
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $60
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $2c
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $7d
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $2d
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $9a
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $2e
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $b7
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $2f
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $54
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $30
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $71
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $31
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $8e
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $32
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $ab
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $33
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $c8
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $34
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $65
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $35
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $82
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $36
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $9f
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $37
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $bc
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $38
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $59
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $39
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $76
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $3a
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $93
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $3b
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $b0
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $3c
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $4d
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $3d
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $6a
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $3e
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $87
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $3f
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $a4
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $40
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $c8
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $41
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $d0
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $42
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $d8
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $43
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $e0
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $44
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $e8
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $45
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $f0
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $46
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $f8
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $47
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $00
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $48
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $89
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $49
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $92
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $4a
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $9b
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $4b
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $a4
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $4c
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $ad
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $4d
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $36
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $4e
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $3f
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $4f
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $48
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $50
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $51
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $51
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $5a
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $52
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $63
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $53
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $6c
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $54
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $75
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $55
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $7e
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $56
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $87
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $57
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $90
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $58
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $99
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $59
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $a2
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $5a
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $2b
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $5b
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $34
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $5c
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $3d
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $5d
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $46
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $5e
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $4f
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $5f
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $58
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $60
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $61
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $61
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $6a
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $62
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $73
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $63
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $7c
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $64
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $85
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $65
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $8e
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $66
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $97
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $67
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $20
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $68
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $29
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $69
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $32
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $6a
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $3b
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $6b
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $44
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $6c
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $4d
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $6d
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $56
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $6e
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $5f
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $6f
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $68
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $70
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $71
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $71
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $7a
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $72
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $83
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $73
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $8c
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $74
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $15
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $75
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $1e
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $76
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $27
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $77
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $30
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $78
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $39
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $79
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $42
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $7a
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $4b
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $7b
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $54
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $7c
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $5d
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $7d
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $66
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $7e
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $6f
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $7f
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $78
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $80
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $01
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $81
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $0a
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $82
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $13
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $83
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $1c
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $84
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $25
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $85
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $2e
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $86
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $37
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld a, $87
ldh [rLYC], a
xor a
ldh [rIF], a
halt
ld a, $40
ldh [rSCY], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
ld [hl], c
ld [hl], d
ld [hl], e
ld [hl], d
ld [hl], c
ld [hl], b
jp Jump_000_0230
Jump_000_1ab3:
jp Jump_000_1adb
Call_000_1ab6:
ld hl, $fea0
ld b, $55
jr_000_1abb:
ldh a, [rSTAT]
and $02
jr nz, jr_000_1abb
ld [hl], b
ld hl, $feb8
ld b, $44
jr_000_1ac7:
ldh a, [rSTAT]
and $02
jr nz, jr_000_1ac7
ld [hl], b
ld hl, $fea0
jr_000_1ad1:
ldh a, [rSTAT]
and $02
jr nz, jr_000_1ad1
ld a, [hl]
cp $55
ret nz
Jump_000_1adb:
ld a, $01
ldh [rVBK], a
ld hl, $2044
ld de, $9100
ld bc, $00e0
call Call_000_0034
ld hl, $9c00
ld a, $0a
ld c, $0e
jr_000_1af2:
ld [hl+], a
dec c
jr nz, jr_000_1af2
ld a, $01
ld hl, $9800
ld bc, $0400
push hl
call Call_000_0018
xor a
ldh [rVBK], a
ld hl, $9800
ld a, $00
ld bc, $0400
call Call_000_0018
ld hl, $9c00
ld a, $10
ld c, $0e
jr_000_1b17:
ld [hl+], a
inc a
dec c
jr nz, jr_000_1b17
ld a, $21
jr_000_1b1e:
ldh [rWX], a
ld a, $88
ldh [rWY], a
ld hl, $ff40
ld b, $e1
ld [hl], b
jr_000_1b2a:
jr jr_000_1b2a
rst $38
ld a, a
rst $38
inc bc
nop
nop
nop
nop
rst $38
ld a, a
rst $38
ld a, a
rst $38
ld a, a
rst $38
ld a, a
rst $38
ld a, a
rst $38
ld a, a
rst $38
ld a, a
nop
nop
inc e
inc e
ld a, $22
ld a, a
ld d, l
ld a, a
ld b, c
ld a, a
ld e, l
ld a, a
ld b, c
ld a, $22
inc e
inc e
inc e
inc e
jr_000_1b56:
ld a, $22
ld a, a
ld d, l
ld a, a
ld b, c
ld a, a
ld d, l
ld a, a
ld c, c
ld a, $22
inc e
inc e
add e
jr jr_000_1b1e
ld l, c
nop
cpl
ret nz
ld a, c
ld h, l
inc h
add l
scf
add c
jp hl
call nc, $f360
reti
and b
xor b
adc [hl]
ld c, a
ld bc, $01b9
ld a, d
pop af
ld [hl], d
ei
add l
add $b2
inc e
ld [hl], b
ld sp, hl
dec [hl]
rst $18
jp hl
ld e, e
rst $18
rrca
sbc l
sub h
ld h, [hl]
ld e, c
cp c
scf
ret nc
and $0b
ld c, d
db $db
ld e, b
daa
ld d, d
di
add c
pop af
ld e, c
jr nc, jr_000_1c1e
rst $38
sbc h
adc l
ld [hl+], a
rlca
add hl, sp
jr_000_1ba7:
jr z, jr_000_1baf
inc b
call z, $b267
sbc c
jr_000_1bae:
jp hl
jr_000_1baf:
ld b, h
add $89
ld [hl-], a
sbc h
add c
ld l, c
ld a, [hl-]
dec b
ld de, $df55
xor e
ld [bc], a
ld d, a
nop
ld a, [c]
ld e, b
cp $a9
db $e4
ld d, l
sub a
ld a, l
ld de, $e24b
dec a
jr jr_000_1b56
ld e, b
adc [hl]
ld [$cb39], a
ld a, [bc]
jr z, jr_000_1c0d
rst $18
dec sp
add hl, sp
rst $10
ld a, [c]
set 3, l
ld [hl], l
jr_000_1bdd:
add sp, -$51
rst $18
cp d
and c
sub l
ld b, a
ld b, c
sub a
ld e, b
cp c
ld e, a
ld d, d
pop de
sbc e
ret nz
ld a, [$a5dc]
xor e
or l
ld e, d
ld c, [hl]
xor c
dec bc
ld l, e
ret nc
ld c, c
jr jr_000_1bdd
ld b, d
ld a, $31
call z, Call_000_2e24
rst $08
cp a
sbc $55
rlca
xor l
ld e, [hl]
sbc l
add [hl]
ld sp, $2fbb
jr_000_1c0d:
ld l, $e0
scf
ldh [rOBP0], a
add [hl]
ld h, c
db $eb
rst $00
ei
jr nz, jr_000_1bae
add [hl]
ld b, d
ld a, d
sbc c
db $fd
jr_000_1c1e:
ld b, e
and a
jr jr_000_1ba7
ld [$4959], a
adc d
jp hl
rrca
ld a, d
jr_000_1c29:
dec hl
or [hl]
inc h
ret z
ld c, l
adc $3f
dec e
add hl, bc
ld b, b
sbc $bd
db $eb
ld c, e
cp d
ld l, [hl]
or a
inc d
xor b
sub [hl]
sbc [hl]
ld h, e
ld c, b
and h
rlca
ld e, a
ldh [rNR43], a
ret c
ld a, [bc]
ld bc, $66d5
inc bc
rst $30
db $eb
push hl
jr nz, jr_000_1c29
adc [hl]
ld a, h
sbc d
jp c, $ff94
ld a, [de]
ld hl, $53ea
db $f4
xor h
sub l
or e
ld [hl], $81
ld e, b
ld de, $1731
inc e
db $e3
ret nc
ld [hl], e
inc c
cpl
ret nc
dec de
ld d, a
db $ec
ld h, c
jp $6a2e
ld h, a
or [hl]
ld e, c
ld b, a
ret nc
ld h, e
db $eb
inc d
push de
jp hl
inc l
ld e, l
add $79
dec sp
ld h, h
db $76
and $1a
ld l, e
rst $28
or d
db $fc
ld d, h
ld l, $d4
ld a, h
inc sp
sbc l
call nz, $c015
cpl
inc a
ld e, l
jr_000_1c95:
cp l
and h
xor e
ld hl, $0a6c
xor h
inc d
adc e
ld d, h
ld h, e
ld b, e
ld a, [hl+]
jp nc, $432e
dec a
add [hl]
rla
ld d, c
and c
and h
ld b, c
db $ec
ret nz
ld b, a
cp l
ldh a, [$34]
ld l, h
ld h, a
dec d
jp nc, $78ab
dec c
sub l
ld sp, $bed3
call z, $4f58
dec l
dec a
add l
ld [bc], a
ld d, h
db $ec
dec d
ld e, a
and [hl]
or b
ld e, [hl]
ld sp, $2fb3
cp b
sub d
add b
ld a, $ad
res 4, [hl]
sub c
ld e, e
ld [c], a
db $db
and c
cp [hl]
jr nc, jr_000_1c95
ld c, a
cp [hl]
ld a, d
sub d
db $fc
and b
push bc
xor b
ld h, e
adc c
sub d
or l
inc b
db $db
or h
dec a
sub h
xor $bd
ld d, l
ld a, [hl]
ld h, d
ld b, $f0
push bc
xor b
inc h
ld h, $68
cp $0f
ld hl, $34b3
ld l, l
jr @-$0c
ld e, e
add hl, de
ld hl, sp+$73
ld [hl+], a
or h
ld e, l
add b
ld a, $ae
dec b
ret nc
jp $cfa5
adc c
cp d
db $ed
ld a, [$0472]
cp a
ld a, d
ld b, $f7
db $ed
add c
or e
inc hl
rla
Call_000_1d20:
ldh [$57], a
adc l
add hl, sp
ld h, d
push bc
ld bc, $39db
or l
sub e
dec b
and b
dec b
sub c
xor c
dec hl
ld a, [bc]
or e
daa
ld a, h
ld e, e
and d
jp nz, $d1f8
ld [hl], h
pop bc
ld [hl], $f4
adc [hl]
ld b, c
ld h, b
adc $70
db $f4
adc $58
add d
ld [c], a
jp z, $c398
xor e
pop af
dec h
sbc e
ld b, $a4
add e
adc e
dec h
jr z, jr_000_1db0
ret nc
ld b, c
ld [hl+], a
ret c
jp c, $ffb7
ld c, l
ld c, e
ld sp, hl
xor c
push bc
dec e
ld h, c
adc h
ld [hl], l
call nz, $d5ef
cp $3b
or a
inc l
inc d
dec [hl]
call c, $9bf4
ld [bc], a
ld d, a
adc e
ld h, $86
xor c
sub e
ld l, h
or b
xor l
rst $00
ccf
ld d, l
ld d, c
rst $00
ld hl, sp+$5f
and e
inc hl
adc d
add hl, sp
ld sp, hl
ld [hl], c
add hl, sp
ld [hl], h
ld c, l
rra
ld hl, sp+$6a
jp nz, $b050
add h
scf
or b
ld d, [hl]
add hl, de
cp c
call c, $c2a1
db $d3
ld [hl-], a
ld e, l
ldh a, [$7a]
ld c, b
dec sp
db $db
ld e, $bf
scf
inc de
ld l, e
adc h
ld c, a
sbc b
or h
sub b
or h
pop bc
ld [hl], a
jr_000_1db0:
ld c, a
cpl
nop
dec a
ld bc, $5f00
ld e, d
sbc [hl]
ld l, a
db $d3
ld c, c
sbc $f3
adc a
ret nc
dec bc
adc c
sbc e
inc hl
pop hl
and e
sub [hl]
cp l
ld h, b
jr nc, jr_000_1e16
ld l, h
ld h, a
sub b
sub a
add b
xor d
ld c, a
nop
and c
jp nz, $f42d
ld l, d
inc bc
db $76
ld d, e
ld l, [hl]
db $fc
ld [hl], b
add hl, de
or [hl]
rlca
nop
ld_long a, $ff79
and d
xor [hl]
rst $18
rst $00
adc l
push af
ld sp, hl
ld d, [hl]
ld d, b
cp e
ld h, $57
ld a, [hl]
ldh [$65], a
ld a, l
sub e
ld d, $b4
ld b, d
add l
sub $ef
db $eb
ld e, a
xor d
adc a
dec h
call nz, $aaeb
ld [hl], a
ld [hl], $8d
and c
rst $00
ld l, [hl]
push hl
ld b, $21
ld sp, $350f
ld c, b
call nc, Call_000_093c
or a
add e
jr_000_1e16:
ld l, e
ld l, c
rlca
ld l, b
call Call_000_1d20
xor l
ld l, $02
ld a, h
ld e, [hl]
dec c
bit 2, [hl]
dec [hl]
ld b, l
cp c
ld a, a
rst $10
db $e3
sub $51
ld l, d
ld a, [c]
rst $00
sbc l
ei
ld a, [c]
rst $28
jr z, @+$71
db $10
ld d, [hl]
adc c
sub $41
and e
sbc e
add $25
add h
ld l, h
jr_000_1e41:
add hl, sp
xor d
adc [hl]
dec [hl]
ld b, [hl]
ld b, d
ld [hl], e
sbc a
ld e, $d4
rst $28
or h
ld h, [hl]
ld [hl], a
dec c
pop de
dec c
ld a, e
rst $18
ld b, [hl]
add l
ld hl, sp+$0a
db $e4
db $eb
reti
ld a, [c]
ld l, e
call $90a1
sub c
adc l
jr nc, @-$24
ret z
db $fd
ld a, e
ld d, e
rst $28
ld l, [hl]
ld h, $d5
add c
and [hl]
cp e
and e
rst $38
ld l, e
ld a, h
ld b, e
and $77
adc e
jr nz, jr_000_1e41
ld e, [hl]
and c
sbc $3c
ld [de], a
sbc h
call $7c3e
ld l, [hl]
sub a
dec d
sub l
rra
reti
ld b, l
rl l
ld [hl], b
pop af
ret z
ld l, l
ld [hl], h
ld a, c
jp Jump_000_2d4b
jr nc, jr_000_1f14
ld d, c
sbc b
xor e
inc sp
ld l, l
ld a, [hl+]
adc d
rst $20
dec [hl]
ld b, a
push bc
ei
ld l, h
ld a, e
jp nc, $a1d2
ld a, [hl+]
and $ac
add hl, hl
db $d3
ld a, c
ld [$d04c], a
or h
db $e3
ld d, [hl]
ld [hl], d
ld l, b
xor $45
jp nz, $8ef4
add hl, sp
ld [hl], h
rlca
cp $39
ld h, e
sbc [hl]
ld l, $61
ld e, b
jp z, $d9e5
and b
db $db
add $f3
xor c
db $ec
sub b
ldh a, [$f5]
rst $08
dec [hl]
sub h
xor [hl]
ld h, c
ld d, l
jp hl
ld l, e
ld [$bab2], a
ld b, b
pop de
sbc $46
ret z
push hl
dec h
or d
ld h, c
rlca
adc h
ld l, $99
inc a
cpl
rlca
ld e, c
nop
ld b, d
rrca
db $fc
db $10
add [hl]
db $f4
ld c, [hl]
sbc $22
ld d, c
xor b
db $ed
ld b, $ff
adc e
db $fd
ld [hl], h
or c
ld d, e
ld c, e
ei
sub e
sub $49
add hl, bc
db $dd
inc c
call nc, Call_000_36eb
ld [hl], b
sub h
ld h, [hl]
rst $38
add h
ld c, a
sub h
inc c
ld e, h
jr_000_1f14:
add hl, hl
dec [hl]
rla
adc [hl]
jr jr_000_1f61
add hl, hl
pop de
xor h
inc bc
ld a, [de]
and l
cp l
add hl, sp
ld a, a
inc a
add hl, bc
inc a
dec h
sub c
ld [hl-], a
ld b, $3d
ld hl, sp-$6c
jp $939f
sbc h
ld a, [c]
ld a, c
rst $20
sub h
ld c, e
ld d, b
sub c
ld e, h
sub [hl]
sub c
db $10
add h
and $50
ld sp, $c96d
inc hl
rst $18
rrca
rst $38
rst $28
ld b, $7b
cp h
ld [hl], c
rst $30
ld e, $3b
xor $68
inc [hl]
ld hl, $4f04
ld e, h
ld a, a
ld a, $1b
dec sp
res 7, [hl]
db $10
ld de, $ec0c
rra
cpl
jr_000_1f61:
add c
xor d
ld a, [c]
db $ec
db $ec
adc d
adc d
xor $ee
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ret nz
ret nz
xor $ee
ldh [$e0], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld c, [hl]
ld c, [hl]
add sp, -$18
xor [hl]
xor [hl]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
or b
or b
xor e
xor e
or b
or b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec hl
dec hl
cp e
cp e
dec hl
dec hl
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and d
and d
ld [hl+], a
ld [hl+], a
cp e
cp e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc bc
inc bc
inc bc
inc bc
add e
add e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jr z, jr_000_1ffe
cp b
cp b
sub b
sub b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add hl, sp
add hl, sp
dec sp
dec sp
ld a, [hl+]
ld a, [hl+]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec sp
dec sp
sub c
sub c
sub c
sub c
nop
nop
nop
nop
jr_000_1ffe:
nop
nop
nop
nop
nop
nop
add e
add e
ld [bc], a
ld [bc], a
inc bc
inc bc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor e
xor e
dec hl
dec hl
cp d
cp d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [hl-], a
ld [hl-], a
cp d
cp d
xor d
xor d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ldh [$e0], a
ret nz
ret nz
ldh [$e0], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld l, [hl]
ld l, [hl]
ld c, d
ld c, d
adc $ce
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call z, $eecc
xor $aa
xor d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and b
and b
ldh [$e0], a
ld b, b
ld b, b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor [hl]
xor [hl]
ld [$4eea], a
ld c, [hl]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and b
and b
and b
and b
ldh [$e0], a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
adc $ce
xor d
xor d
adc $ce
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
db $eb
db $eb
and c
and c
and c
and c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add e
add e
ld [bc], a
ld [bc], a
inc bc
inc bc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec sp
dec sp
or c
or c
cp c
cp c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add e
add e
ld bc, $0101
ld bc, $0000
nop
nop
nop
nop
nop
nop
nop
nop
cp b
cp b
jr z, jr_000_2110
jr c, jr_000_2122
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld a, [hl-]
ld a, [hl-]
ld a, [hl-]
ld a, [hl-]
inc hl
inc hl
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
ld [de], a
ld [de], a
dec sp
dec sp
xor c
xor c
nop
nop
nop
nop
nop
nop
jr_000_2110:
nop
nop
nop
nop
add b
add b
add b
add b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jr_000_2122:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Jump_000_2d4b:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Call_000_2e24:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Call_000_31f3:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Call_000_36eb:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
| 9.730787 | 33 | 0.375167 |
9d961486a622711e76ba7227fdbeeb253540e913 | 6,268 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_1905.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_1905.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_1905.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xce20, %rsi
lea addresses_WC_ht+0xebf0, %rdi
nop
nop
and %rbp, %rbp
mov $45, %rcx
rep movsq
lfence
lea addresses_WC_ht+0x1aafe, %r8
nop
nop
nop
nop
dec %rax
movb (%r8), %r13b
nop
nop
nop
nop
nop
xor $61284, %rsi
lea addresses_UC_ht+0x7aa0, %rsi
lea addresses_D_ht+0x17964, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp %r13, %r13
mov $75, %rcx
rep movsb
nop
nop
nop
nop
nop
add %rbp, %rbp
lea addresses_D_ht+0x11d6c, %rcx
nop
nop
nop
nop
cmp %rsi, %rsi
movb (%rcx), %al
nop
xor %rsi, %rsi
lea addresses_WT_ht+0x19290, %rsi
lea addresses_D_ht+0x1c0f0, %rdi
xor $61046, %r9
mov $3, %rcx
rep movsw
nop
cmp %rsi, %rsi
lea addresses_WT_ht+0x9818, %rsi
lea addresses_D_ht+0xadf0, %rdi
nop
nop
nop
nop
xor $13172, %r13
mov $118, %rcx
rep movsb
nop
nop
nop
add %r8, %r8
lea addresses_WT_ht+0xd870, %r9
nop
nop
nop
nop
and $60684, %rdi
mov (%r9), %r8w
xor $27335, %rax
lea addresses_WT_ht+0x3070, %rsi
lea addresses_WC_ht+0x76f6, %rdi
clflush (%rdi)
and $49180, %r9
mov $95, %rcx
rep movsw
nop
nop
nop
xor %r9, %r9
lea addresses_normal_ht+0x1aef0, %rsi
lea addresses_UC_ht+0x19b70, %rdi
clflush (%rdi)
nop
nop
nop
dec %r13
mov $104, %rcx
rep movsw
nop
nop
nop
sub $47082, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %r9
push %rcx
// Faulty Load
lea addresses_RW+0x55f0, %r15
nop
sub %rcx, %rcx
movb (%r15), %r14b
lea oracles, %r11
and $0xff, %r14
shlq $12, %r14
mov (%r11,%r14,1), %r14
pop %rcx
pop %r9
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 38.691358 | 2,999 | 0.660338 |
720c2cf4f2cdae082bf1ea1fef8e95fe4f5a4439 | 504 | asm | Assembly | examples/labels_advanced.asm | mbs-cs-2016/lmc-examples | 6412a4555296c78303e513ec6cea30f72b43bbbf | [
"BSD-3-Clause"
] | 1 | 2019-07-16T19:51:46.000Z | 2019-07-16T19:51:46.000Z | examples/labels_advanced.asm | mbs-cs-2016/lmc-examples | 6412a4555296c78303e513ec6cea30f72b43bbbf | [
"BSD-3-Clause"
] | null | null | null | examples/labels_advanced.asm | mbs-cs-2016/lmc-examples | 6412a4555296c78303e513ec6cea30f72b43bbbf | [
"BSD-3-Clause"
] | null | null | null | START INP # Waits for input and stores it in the accumulator
STA NUM # Stores the contents of the accumulator to the memory address of the label: NUM
INP # Waits for input and stores it in the accumulator
ADD NUM # Add the contents of memory address of the label: NUM to the accumulator
OUT # Outputs the contents of the accumulator
HLT # Signify the end of the program
NUM DAT 1 # Defines the label: NUM as containing data, and sets it to a preset of 1
| 63 | 94 | 0.698413 |
d7a77b47ad6340a801116616b0e39cb2d5211fd4 | 472 | asm | Assembly | oeis/347/A347400.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/347/A347400.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/347/A347400.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A347400: Lexicographically earliest sequence of distinct terms > 0 such that concatenating n to a(n) forms a palindrome in base 10.
; 1,2,3,4,5,6,7,8,9,101,11,21,31,41,51,61,71,81,91,102,12,22,32,42,52,62,72,82,92,103,13,23,33,43,53,63,73,83,93,104,14,24,34,44,54,64,74,84,94,105,15,25,35,45,55,65,75,85,95,106,16,26,36,46,56,66,76,86,96,107,17,27,37,47,57
add $0,1
lpb $0
mov $2,$0
div $0,10
mul $1,10
add $1,1
sub $2,1
mod $2,10
add $1,$2
lpe
mov $0,$1
| 31.466667 | 224 | 0.654661 |
dedf70b8681480572dec19e7486f727eb46dd3ac | 371 | asm | Assembly | programs/oeis/088/A088705.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/088/A088705.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/088/A088705.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A088705: First differences of A000120. One minus exponent of 2 in n.
; 0,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-3,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-4,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-3,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-5,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-3,1,0,1,-1,1,0,1,-2,1,0,1,-1,1,0,1,-4,1,0,1
mul $0,2
mov $2,1
lpb $0
dif $0,2
mov $1,$2
sub $2,1
lpe
mov $0,$1
| 30.916667 | 225 | 0.514825 |
e9153caea30fd3be136865830075fed48ef195f2 | 88 | asm | Assembly | asm_call/call.asm | nitrojacob/8051 | d9a5b266a064ad0eff0dc57284b9a3fcd7cd32e6 | [
"MIT"
] | null | null | null | asm_call/call.asm | nitrojacob/8051 | d9a5b266a064ad0eff0dc57284b9a3fcd7cd32e6 | [
"MIT"
] | null | null | null | asm_call/call.asm | nitrojacob/8051 | d9a5b266a064ad0eff0dc57284b9a3fcd7cd32e6 | [
"MIT"
] | null | null | null | mov A, #0x0A
call lp_fn
end: jmp end
lp_fn: push PSW
lp: dec A
jnz lp
pop PSW
ret
| 8.8 | 15 | 0.659091 |
0e6d597593df0c605e3c31f47aaf85d476065fd4 | 146 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/chip/ys_chip5.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/chip/ys_chip5.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/chip/ys_chip5.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: ys_chip5.asm
Type: file
Size: 58275
Last-Modified: '2016-05-13T04:51:15Z'
SHA-1: 29A90C95390077F924DAD8A8680AB8F252B45B9C
Description: null
| 20.857143 | 47 | 0.815068 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.