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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb9cf86bc0885e8b944b7267377feb4a8b96dce5 | 6,807 | asm | Assembly | Transynther/x86/_processed/NC/_st_zr_/i7-7700_9_0x48.log_21829_1704.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_st_zr_/i7-7700_9_0x48.log_21829_1704.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_st_zr_/i7-7700_9_0x48.log_21829_1704.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 %r13
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x13849, %r9
nop
nop
nop
nop
nop
cmp $30335, %r15
mov (%r9), %esi
nop
nop
nop
nop
nop
add $9650, %rbp
lea addresses_WT_ht+0x193d1, %r8
nop
nop
nop
nop
nop
sub %r13, %r13
vmovups (%r8), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %r10
nop
nop
nop
add %r10, %r10
lea addresses_WT_ht+0x33c1, %r13
cmp %r15, %r15
vmovups (%r13), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r9
nop
nop
nop
sub %r15, %r15
lea addresses_UC_ht+0x4b51, %r10
nop
nop
nop
nop
and $45241, %r15
movw $0x6162, (%r10)
nop
sub %r10, %r10
lea addresses_WC_ht+0x14b8d, %rbp
nop
nop
nop
nop
nop
cmp $42602, %r10
movups (%rbp), %xmm3
vpextrq $0, %xmm3, %r13
sub %r15, %r15
lea addresses_UC_ht+0x12d69, %rsi
lea addresses_WC_ht+0xbef5, %rdi
sub $48682, %r9
mov $103, %rcx
rep movsq
nop
cmp $44188, %r9
lea addresses_A_ht+0x11741, %r10
nop
nop
inc %rsi
mov $0x6162636465666768, %r8
movq %r8, %xmm4
vmovups %ymm4, (%r10)
cmp %rdi, %rdi
lea addresses_WT_ht+0x5951, %rsi
lea addresses_UC_ht+0xd4c9, %rdi
add $7071, %r9
mov $82, %rcx
rep movsb
sub $43473, %rbp
lea addresses_UC_ht+0x4fff, %rsi
lea addresses_WC_ht+0x107d1, %rdi
clflush (%rsi)
nop
nop
nop
xor $13551, %r13
mov $60, %rcx
rep movsb
nop
nop
nop
nop
xor %r15, %r15
lea addresses_WT_ht+0x1eee9, %r13
inc %r9
movb (%r13), %r10b
nop
nop
nop
nop
nop
inc %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %rax
push %rdi
push %rdx
// Store
lea addresses_US+0x5bd1, %r14
nop
nop
nop
nop
nop
sub %rax, %rax
mov $0x5152535455565758, %r11
movq %r11, (%r14)
nop
nop
nop
nop
nop
and %rdx, %rdx
// Faulty Load
mov $0x7cd2d00000000bd1, %rax
nop
nop
nop
nop
nop
cmp $16748, %rdi
mov (%rax), %r11d
lea oracles, %r14
and $0xff, %r11
shlq $12, %r11
mov (%r14,%r11,1), %r11
pop %rdx
pop %rdi
pop %rax
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}}
{'58': 21584, '00': 245}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 35.638743 | 2,999 | 0.656824 |
a29d2202e5b624eaf795edb77a77d10ebbfe92f1 | 3,008 | asm | Assembly | src/Native/Runtime/amd64/CallingConventionConverterHelpers.asm | kouvel/corert | c6af4cfc8b625851b91823d9be746c4f7abdc667 | [
"MIT"
] | 3,223 | 2015-11-18T16:04:48.000Z | 2022-03-25T14:40:43.000Z | src/Native/Runtime/amd64/CallingConventionConverterHelpers.asm | kouvel/corert | c6af4cfc8b625851b91823d9be746c4f7abdc667 | [
"MIT"
] | 4,032 | 2015-11-18T15:44:29.000Z | 2020-11-01T06:32:44.000Z | src/Native/Runtime/amd64/CallingConventionConverterHelpers.asm | kouvel/corert | c6af4cfc8b625851b91823d9be746c4f7abdc667 | [
"MIT"
] | 678 | 2015-11-18T15:43:40.000Z | 2022-03-25T07:44:21.000Z | ;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
;; -----------------------------------------------------------------------------------------------------------
;; #include "asmmacros.inc"
;; -----------------------------------------------------------------------------------------------------------
LEAF_ENTRY macro Name, Section
Section segment para 'CODE'
align 16
public Name
Name proc
endm
LEAF_END macro Name, Section
Name endp
Section ends
endm
; - TAILCALL_RAX: ("jmp rax") should be used for tailcalls, this emits an instruction
; sequence which is recognized by the unwinder as a valid epilogue terminator
TAILJMP_RAX TEXTEQU <DB 048h, 0FFh, 0E0h>
POINTER_SIZE equ 08h
;;
;; void CallingConventionConverter_ReturnVoidReturnThunk()
;;
LEAF_ENTRY CallingConventionConverter_ReturnVoidReturnThunk, _TEXT
ret
LEAF_END CallingConventionConverter_ReturnVoidReturnThunk, _TEXT
;;
;; int CallingConventionConverter_ReturnIntegerReturnThunk(int)
;;
LEAF_ENTRY CallingConventionConverter_ReturnIntegerReturnThunk, _TEXT
mov rax, rcx
ret
LEAF_END CallingConventionConverter_ReturnIntegerReturnThunk, _TEXT
;;
;; Note: The "__jmpstub__" prefix is used to indicate to debugger
;; that it must step-through this stub when it encounters it while
;; stepping.
;;
;; __jmpstub__CallingConventionConverter_CommonCallingStub
;;
;;
;; struct CallingConventionConverter_CommonCallingStub_PointerData
;; {
;; void *ManagedCallConverterThunk;
;; void *UniversalThunk;
;; }
;;
;; struct CommonCallingStubInputData
;; {
;; ULONG_PTR CallingConventionId;
;; CallingConventionConverter_CommonCallingStub_PointerData *commonData;
;; }
;;
;; r10 - Points at CommonCallingStubInputData
;;
;;
LEAF_ENTRY __jmpstub__CallingConventionConverter_CommonCallingStub, _TEXT
mov r11, [r10] ; put CallingConventionId into r11 as "parameter" to universal transition thunk
mov r10, [r10 + POINTER_SIZE] ; get pointer to CallingConventionConverter_CommonCallingStub_PointerData into r10
mov rax, [r10 + POINTER_SIZE] ; get address of UniversalTransitionThunk
mov r10, [r10] ; get address of ManagedCallConverterThunk
TAILJMP_RAX
LEAF_END __jmpstub__CallingConventionConverter_CommonCallingStub, _TEXT
;;
;; void CallingConventionConverter_GetStubs(IntPtr *returnVoidStub, IntPtr *returnIntegerStub, IntPtr *commonStub)
;;
LEAF_ENTRY CallingConventionConverter_GetStubs, _TEXT
lea rax, [CallingConventionConverter_ReturnVoidReturnThunk]
mov [rcx], rax
lea rax, [CallingConventionConverter_ReturnIntegerReturnThunk]
mov [rdx], rax
lea rax, [__jmpstub__CallingConventionConverter_CommonCallingStub]
mov [r8], rax
ret
LEAF_END CallingConventionConverter_GetStubs, _TEXT
end
| 34.976744 | 124 | 0.68617 |
258e7ab8a67e1a835adda09c7334729420161954 | 418 | asm | Assembly | programs/oeis/113/A113835.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/113/A113835.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/113/A113835.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A113835: a(n) = a(n-1) + 2^(A007494(n-1)).
; 1,5,13,45,109,365,877,2925,7021,23405,56173,187245,449389,1497965,3595117,11983725,28760941,95869805,230087533,766958445,1840700269,6135667565,14725602157,49085340525,117804817261,392682724205
add $0,1
mul $0,3
seq $0,238549 ; a(n) is one fourth of the total number of free ends of 4 line segments expansion at n iterations (see Comments lines for definition).
div $0,7
| 52.25 | 194 | 0.763158 |
b19166ed3975b81a21805a35ae812dc502073979 | 1,361 | asm | Assembly | stage2/graphics_line_straight.asm | amrwc/8086-graphics | 396ebd087f7747f13fee9b24bb41b54c53f43b9d | [
"MIT"
] | 5 | 2019-11-23T10:07:23.000Z | 2021-05-22T08:13:45.000Z | stage2/graphics_line_straight.asm | amrwc/8086-graphics | 396ebd087f7747f13fee9b24bb41b54c53f43b9d | [
"MIT"
] | null | null | null | stage2/graphics_line_straight.asm | amrwc/8086-graphics | 396ebd087f7747f13fee9b24bb41b54c53f43b9d | [
"MIT"
] | 2 | 2020-11-03T14:48:04.000Z | 2021-05-23T03:50:13.000Z | Graphics_Line_Horizontal:
mov cx, word [bp + x0] ; temp = x0;
cmp cx, word [bp + x1] ; if (x0 <= x1) don't swap
jle skip_swap_x
mov si, word [bp + x1]
mov [bp + x0], si ; x0 = x1;
mov [bp + x1], cx ; x1 = temp;
skip_swap_x:
call Graphics_Set_Display_Mode
mov dx, word [bp + y0] ; Y start
mov ax, word [bp + px_set] ; AH: 0Ch, AL: chosen colour
horizontal_repeat:
int 10h
cmp cx, word [bp + x1]
jne horizontal_continue
ret
horizontal_continue:
inc cx
jmp horizontal_repeat
;____________________
Graphics_Line_Vertical:
mov dx, word [bp + y0] ; temp = y0;
cmp dx, word [bp + y1] ; if (y0 <= y1) don't swap
jle skip_swap_y
mov si, word [bp + y1]
mov [bp + y0], si ; y0 = y1;
mov [bp + y1], dx ; y1 = temp;
skip_swap_y:
call Graphics_Set_Display_Mode
mov cx, word [bp + x0] ; X start
mov ax, word [bp + px_set] ; AH: 0Ch, AL: chosen colour
vertical_repeat:
int 10h
cmp dx, word [bp + y1]
jne vertical_continue
ret
vertical_continue:
inc dx
jmp vertical_repeat | 29.586957 | 69 | 0.484938 |
debca5677187c44c21e0354bfdb320641a9c8c01 | 7,855 | asm | Assembly | src/spread/main/index.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/spread/main/index.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/spread/main/index.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | * Spreadsheet 05/12-91
* - index control
*
include win1_keys_wman
include win1_keys_wwork
include win1_keys_wstatus
include win1_keys_qdos_io
include win1_keys_qdos_pt
include win1_keys_colour
include win1_mac_oli
include win1_spread_keys
xdef idx_ownx,idx_owny
xdef idx_work
xref.s mcx_grid,mcy_grid
section prog
*
* change working defintion for index items
r_work reg a3/d0/d1/d2
idx_work
movem.l r_work,-(sp)
move.l ww_pappl(a4),a3 ; ptr to appl. list
move.l (a3),a3 ; first appl. window
move.w da_ixspx(a6),d0 ; maximum index space
mulu #6,d0 ; in pixels
addq.w #2,d0 ; looks more nice
moveq #11,d1 ; y size
move.w d1,wwa_insp(a3) ; x index spacing
move.w d1,wwa_insz(a3) ; x index size
move.w d0,wwa_insp+wwa.clen(a3) ; y index spacing
move.w d0,wwa_insz+wwa.clen(a3) ; y index size
move.w wwa_watt+wwa_borw(a3),d2 ; add border width to distance
add.w d2,d1 ; single for y
lsl.w #1,d2 ; double for..
add.w d2,d0 ; ..you guess, yeah x
sub.w d0,wwa_xsiz(a3) ; make window smaller
sub.w d1,wwa_ysiz(a3)
add.w d0,wwa_xorg(a3) ; move origin right down
add.w d1,wwa_yorg(a3)
movem.l (sp)+,r_work
rts
*
* Draw myown index list for rows
r_idy reg d0/d4
idx_owny
movem.l r_idy,-(sp)
bsr idx_wind ; set window for index
move.w mcy_grid+wss_nsec(a6),d0 ; number of y sections
moveq #0,d4 ; section offset in status area
owny_lp
bsr.s idx_ydrw
addi.w #wss.ssln,d4 ; next section entry
subq.w #1,d0 ; for all sections
bne.s owny_lp
movem.l (sp)+,r_idy
rts
r_ydrw reg a1/a5/d0/d1/d2/d3
idx_ydrw
movem.l r_ydrw,-(sp)
move.l da_mridx(a6),a5 ; row index objects
move.w mcy_grid+wss_sstt+2(a6,d4.w),d1 ; start row number
mulu #wwm.olen,d1 ; index list entry length
adda.l d1,a5 ; address of first object
move.w mcy_grid+wss_ssiz+2(a6,d4.w),d2 ; number of rows displayed
move.l wwa_yspc(a3),d3 ; y spacing
neg.w d3 ; get actual value
moveq #1,d1 ; first pixel position
add.w mcy_grid+wss_spos+2(a6,d4.w),d1 ; section offset y
add.w wwa_yoff(a3),d1 ; add y offset
add.w wwa_insp(a3),d1 ; add index space of other list
bsr.s idx_yclr ; clear y(row) index
addq.w #1,d1 ; current item border
ydrw_prt
bsr pxpos ; position cursor
move.l wwm_pobj(a5),a1 ; object string
xjsr ut_prstr ; print it
add.w d3,d1 ; next y position
adda.l #wwm.olen,a5 ; next object
subq.w #1,d2 ; count down the rows
bne.s ydrw_prt
movem.l (sp)+,r_ydrw
rts
*
* clear row index
r_yclr reg d1/a1
idx_yclr
movem.l r_yclr,-(sp)
suba.l #8,sp ; we need space for 4 words
move.l sp,a1
move.w wwa_insp+wwa.clen(a3),(a1) ; index space becomes block width
moveq #0,d0 ; and now the rows
move.w wwa_ysiz(a3),d0 ; window height
sub.w wwa_yoff(a3),d0 ; less the offset
sub.w mcy_grid+wss_spos+2(a6),d0 ; less the section offset
subi.w #2*1+ww.scarr,d0 ; less the bottom scroll arrows
move.w d0,2(a1) ; becomes height
move.l d1,4(a1) ; x|y as defined
move.w wwa_iiat+wwa_back+wwa.clen(a3),d1 ; colour
moveq #iow.blok,d0 ; fill block
jsr wm.trap3(a2)
;;; move.l d3,-(sp)
;;; moveq #forever,d3
;;; trap #do.io
;;; move.l (sp)+,d3
adda.l #8,sp ; reframe stack
movem.l (sp)+,r_yclr
rts
*
* clear column index
idx_xclr
movem.l r_yclr,-(sp)
suba.l #8,sp ; we need space for 4 words
move.l sp,a1
moveq #0,d0 ; and now the columns
move.w wwa_xsiz(a3),d0 ; window width
sub.w wwa_xoff(a3),d0 ; less the offset
sub.w mcx_grid+wss_spos+2(a6),d0 ; less the section offset
subi.w #2*2+ww.pnarr,d0 ; less the right pan arrows
move.w d0,(a1) ; becomes block width
move.w wwa_insp(a3),2(a1) ; height is the index space
move.l d1,4(a1) ; x|y as defined
move.w wwa_iiat+wwa_back(a3),d1 ; colour
moveq #iow.blok,d0 ; fill block
jsr wm.trap3(a2)
;;; move.l d3,-(sp)
;;; moveq #forever,d3
;;; trap #do.io
;;; move.l (sp)+,d3
adda.l #8,sp ; reframe stack
movem.l (sp)+,r_yclr
rts
*
* Draw myown index list for columns
r_idx reg d0/d5
idx_ownx
movem.l r_idx,-(sp)
bsr idx_wind ; set window for index
move.w mcx_grid+wss_nsec(a6),d0 ; number for x sections
moveq #0,d5 ; section offset in status area
ownx_lp
bsr.s idx_xdrw ; draw index for current section
addi.w #wss.ssln,d5 ; next section entry
subq.w #1,d0 ; for all sections
bne.s ownx_lp
movem.l (sp)+,r_idx
rts
r_xdrw reg a1/a4/a5/d0-d5
idx_xdrw
movem.l r_xdrw,-(sp)
move.l da_mcidx(a6),a5 ; column index objects
move.w mcx_grid+wss_sstt+2(a6,d5.w),d1 ; start column number
move.w d1,d2
mulu #wwm.olen,d1 ; index list entry length
adda.l d1,a5 ; address of first object
move.l wwa_xspc(a3),a4 ; column spacing list
mulu #wwm.slen,d2 ; get offset for first entry
adda.l d2,a4 ; first spacing entry
moveq #0,d1 ; first pixel position
add.w mcx_grid+wss_spos+2(a6,d5.w),d1 ; section offset x
add.w wwa_xoff(a3),d1 ; add x offset
add.w wwa_insp+wwa.clen(a3),d1 ; add index space of other list
swap d1 ; x is in high word
bsr idx_xclr ; clear y(column) index
move.w #1,d1 ; y = 1 looks better
move.w mcx_grid+wss_ssiz+2(a6,d5.w),d4 ; number of columns displayed
xdrw_prt
move.l d1,d3 ; preserve old position
move.w wwm_spce(a4),d0 ; spacing of current column
move.l wwm_pobj(a5),a1 ; index string
move.w (a1),d2 ; length of string
mulu #6,d2 ; ..in pixels
sub.w d2,d0 ; get difference
bmi.s xdrw_nfit ; it wouldn't fit into it
lsr.w #1,d0 ; centre it
swap d0 ; put it in upper word (x)
clr.w d0 ; clear lower word
add.l d0,d1 ; new position
bsr.s pxpos ; position cursor
xjsr ut_prstr ; write index string
xdrw_nfit
move.l d3,d1 ; get old position
swap d1
add.w wwm_spce(a4),d1 ; next column starting x posn
swap d1
adda.l #wwm.olen,a5 ; next object
adda.l #wwm.slen,a4 ; next spacing entry
subq.w #1,d4 ; all columns displayed
bne.s xdrw_prt
movem.l (sp)+,r_xdrw
rts
*+++
* pixel position cursor
*
* Entry Exit
* A0 channel ID preserved
* D1.l x|y position preserved
*---
pxpos
movem.l d1-d3/a1,-(sp)
move.w d1,d2 ; y position
swap d1 ; x position
moveq #iow.spix,d0 ; set cursor to pixel position
moveq #forever,d3
trap #do.io
tst.l d0
movem.l (sp)+,d1-d3/a1
rts
*+++
* set window for index item drawing
*
* Entry Exit
* A0 channel ID preserved
*---
r_wind reg d1-d3
idx_wind
movem.l r_wind,-(sp)
move.w wwa_iiat+wwa_back+wwa.clen(a3),d1
moveq #iow.sstr,d0
;;; moveq #forever,d3
jsr wm.trap3(a2)
;;; trap #do.io
move.w wwa_iiat+wwa_ink+wwa.clen(a3),d1
moveq #iow.sink,d0
;;; moveq #forever,d3
jsr wm.trap3(a2)
;;; trap #do.io
moveq #0,d1
moveq #iow.sova,d0
;;; moveq #forever,d3
jsr wm.trap3(a2)
;;; trap #do.io
moveq #6,d1 ; info window #6
moveq #-1,d2 ; only area set
jsr wm.swinf(a2) ; set area to cover info window
movem.l (sp)+,r_wind
rts
end
| 27.465035 | 72 | 0.59198 |
bf602af950e896a4dc4ae01c57e34c735eb7fc5f | 853 | asm | Assembly | libsrc/_DEVELOPMENT/l/z80/ascii/num_to_txt/fast/l_fast_utob.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/l/z80/ascii/num_to_txt/fast/l_fast_utob.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/l/z80/ascii/num_to_txt/fast/l_fast_utob.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_l
PUBLIC l_fast_utob
EXTERN l_setmem_de
l_fast_utob:
; write unsigned binary number to ascii buffer
;
; enter : hl = unsigned integer
; de = char *buffer
; carry set to write leading zeroes
;
; exit : de = char *buffer (one byte past last char written)
; carry set if in write loop
;
; uses : af, b, de, hl
inc h
dec h
jr z, eight_bit
ld b,16
jr c, leading_zeroes
no_leading_zeroes:
add hl,hl
jr c, write
djnz no_leading_zeroes
ld a,'0'
ld (de),a
inc de
ret
leading_zeroes:
add hl,hl
write:
ld a,'0'
adc a,0
ld (de),a
inc de
djnz leading_zeroes
scf
ret
eight_bit:
ld b,8
ld h,l
jr nc, no_leading_zeroes
ld a,'0'
call l_setmem_de - 16
jr leading_zeroes
| 11.847222 | 64 | 0.572098 |
8e544ede4cad3bca63cf4316ff73284beb42391c | 3,775 | asm | Assembly | Transynther/x86/_processed/US/_st_4k_/i7-8650U_0xd2.log_8_64.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_st_4k_/i7-8650U_0xd2.log_8_64.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_st_4k_/i7-8650U_0xd2.log_8_64.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 %r13
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x11f25, %r10
nop
add $60906, %r13
mov $0x6162636465666768, %rbp
movq %rbp, %xmm4
movups %xmm4, (%r10)
nop
nop
xor %r8, %r8
lea addresses_WC_ht+0x1e73, %rbx
nop
nop
add $3106, %rbp
mov $0x6162636465666768, %rax
movq %rax, (%rbx)
nop
nop
nop
sub $57682, %r8
lea addresses_WC_ht+0x724f, %rsi
lea addresses_D_ht+0xe9f, %rdi
nop
nop
nop
nop
nop
cmp %rax, %rax
mov $62, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_WT_ht+0x4def, %rbp
and %r8, %r8
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
movups %xmm3, (%rbp)
sub $23301, %rdi
lea addresses_D_ht+0x189c5, %r10
nop
nop
sub $18531, %r13
movb $0x61, (%r10)
nop
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_WC_ht+0x13fc3, %rcx
sub $34674, %rbx
mov $0x6162636465666768, %rax
movq %rax, %xmm0
movups %xmm0, (%rcx)
nop
sub $62199, %r8
lea addresses_UC_ht+0x1ae6f, %rsi
lea addresses_WC_ht+0xd82f, %rdi
nop
dec %r8
mov $105, %rcx
rep movsq
nop
nop
cmp %rsi, %rsi
lea addresses_WC_ht+0x14ea7, %r8
nop
nop
nop
xor $20350, %rax
mov $0x6162636465666768, %rbx
movq %rbx, (%r8)
add %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r9
push %rax
push %rbx
push %rcx
push %rsi
// Store
mov $0x7a9efa000000016f, %r12
nop
nop
nop
xor $51422, %rbx
mov $0x5152535455565758, %r9
movq %r9, %xmm2
vmovaps %ymm2, (%r12)
nop
sub $7011, %rbx
// Store
lea addresses_UC+0x78ef, %r9
nop
nop
nop
nop
nop
cmp %rsi, %rsi
movl $0x51525354, (%r9)
nop
nop
xor $29084, %r14
// Load
lea addresses_A+0xf607, %r12
nop
nop
cmp %rsi, %rsi
mov (%r12), %ebx
nop
nop
nop
nop
and $56170, %rsi
// Faulty Load
lea addresses_US+0x1316f, %r14
clflush (%r14)
cmp $53729, %r9
mov (%r14), %ebx
lea oracles, %rsi
and $0xff, %rbx
shlq $12, %rbx
mov (%rsi,%rbx,1), %rbx
pop %rsi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 32, 'AVXalign': True, 'NT': True, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'58': 8}
58 58 58 58 58 58 58 58
*/
| 20.405405 | 148 | 0.647417 |
527fa618fb3c2c273759732c8291b57bb3265e74 | 87 | asm | Assembly | gfx/pokemon/torchic/anim.asm | Ebernacher90/pokecrystal-allworld | 5d623c760e936842cf92563912c5bd64dd69baef | [
"blessing"
] | null | null | null | gfx/pokemon/torchic/anim.asm | Ebernacher90/pokecrystal-allworld | 5d623c760e936842cf92563912c5bd64dd69baef | [
"blessing"
] | null | null | null | gfx/pokemon/torchic/anim.asm | Ebernacher90/pokecrystal-allworld | 5d623c760e936842cf92563912c5bd64dd69baef | [
"blessing"
] | null | null | null | frame 1, 08
frame 2, 06
frame 3, 05
frame 4, 06
frame 3, 20
frame 5, 08
endanim
| 10.875 | 12 | 0.632184 |
c6a5f9be7111c42cd4c9b86c2a39d2abf538c00c | 437 | asm | Assembly | programs/oeis/053/A053470.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/053/A053470.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/053/A053470.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A053470: a(n) is the cototient of n (A051953) iterated twice.
; 0,0,0,1,0,2,0,2,1,4,0,4,0,4,1,4,0,8,0,8,3,8,0,8,1,8,3,8,0,12,0,8,1,12,1,16,0,12,7,16,0,22,0,16,9,16,0,16,1,22,1,16,0,24,7,16,9,22,0,24,0,16,9,16,1,24,0,24,5,24,0,32,0,20,11,24,1,36,0,32,9,30,0,44,9,24,1,32,0,46,1,32,13,32,1,32,0,32,15,44
seq $0,16035 ; a(n) = Sum_{j|n, 1 < j < n} phi(j). Also a(n) = n - phi(n) - 1 for n > 1.
seq $0,51953 ; Cototient(n) := n - phi(n).
| 72.833333 | 239 | 0.569794 |
d731039a6f784f2fac4c0ada8f02a52474ff8ff9 | 2,034 | asm | Assembly | src/Core/Banks/Banks.asm | stoneface86/GameboyBoilerplateProj | 7d2dedb2c3f6fe49819f8ca32c4f6308022d18c7 | [
"MIT"
] | 25 | 2018-06-08T19:19:53.000Z | 2021-10-03T05:07:38.000Z | src/Core/Banks/Banks.asm | stoneface86/GameboyBoilerplateProj | 7d2dedb2c3f6fe49819f8ca32c4f6308022d18c7 | [
"MIT"
] | 1 | 2020-07-14T20:15:47.000Z | 2020-07-15T20:15:26.000Z | src/Core/Banks/Banks.asm | stoneface86/GameboyBoilerplateProj | 7d2dedb2c3f6fe49819f8ca32c4f6308022d18c7 | [
"MIT"
] | 6 | 2019-05-23T05:32:11.000Z | 2020-04-26T21:26:00.000Z | include "./src/Includes.inc"
section "Banks", rom0
; This game uses Memory Bank Controller 5
; 512 ROM Banks (8MB)
; 16 RAM Banks (128KB)
; Makes a call from anywhere to rom bank1+ and back
; given your calling from the non-home bank
; This makes a lot of clever hacks to get this to work
; BC = Bank #
; HL = Call address
FarcallRom::
ld a, [_ROMX]
ld d, a
ld a, [_ROMX+1]
ld e, a
push de ; Save 9-bit current rom bank
push hl
mbc_select "rom", "runtime" ; Switch to new ROM Bank
pop hl
; We're going to emulate a stack call in a hack
; Save the .return address below onto the stack
; And jp, the next ret will jump there as though
; we made a function call
ld bc, .return
push bc
jp hl ; Jump (call in this case) to address
.return
; This is another hack, the processor popped off the
; above push, so what we're popping off here is actually
; the de from above that we pushed which contained current
; rom bank. We pop it into BC instead here to switch rom banks
pop bc
mbc_select "rom", "runtime" ; Switch to previous ROM Bank
ret
; Switches to new ROM Bank and jumps to an address there
; Callable from anywhere to rom bank 1+
; bc = Bank Number
; hl = Address
FarJpRom::
push hl
mbc_select "rom", "runtime" ; Switch to new ROM Bank
pop hl
jp hl
; Similar to FarCallRom but works for strictly within SRAM
; Makes a call from one sram bank to another and back
; B = Bank #
; HL = Call address
FarcallSRam::
ld a, [_SRAM]
ld d, a
push de ; Save current sram bank
push hl
mbc_select "ram", "runtime" ; Switch to new sram Bank
pop hl
ld bc, .return
push bc
jp hl ; Jump (call in this case) to address
.return
pop bc
mbc_select "ram", "runtime" ; Switch to previous sram Bank
ret
; Switches to new RAM Bank and jumps to an address there
; You can call this or jump to this depending on if your calling
; or jumping to target code
; b = Bank Number
; hl = Address
GotoSram::
push hl
mbc_select "ram", "runtime" ; Switch to new ROM Bank
pop hl
jp hl
| 23.651163 | 66 | 0.695674 |
1c994de8fe41c0aa25f8409ff7a8253cb1425331 | 6,017 | asm | Assembly | ms/uptable.asm | enthought/openssl | 92bdfc15f79c05e5b3d004320a1cab353e654ab4 | [
"OpenSSL"
] | null | null | null | ms/uptable.asm | enthought/openssl | 92bdfc15f79c05e5b3d004320a1cab353e654ab4 | [
"OpenSSL"
] | null | null | null | ms/uptable.asm | enthought/openssl | 92bdfc15f79c05e5b3d004320a1cab353e654ab4 | [
"OpenSSL"
] | 2 | 2017-08-19T21:29:15.000Z | 2020-04-24T09:06:44.000Z | _DATA SEGMENT
PUBLIC OPENSSL_UplinkTable
OPENSSL_UplinkTable DQ 22
DQ $lazy1
DQ $lazy2
DQ $lazy3
DQ $lazy4
DQ $lazy5
DQ $lazy6
DQ $lazy7
DQ $lazy8
DQ $lazy9
DQ $lazy10
DQ $lazy11
DQ $lazy12
DQ $lazy13
DQ $lazy14
DQ $lazy15
DQ $lazy16
DQ $lazy17
DQ $lazy18
DQ $lazy19
DQ $lazy20
DQ $lazy21
DQ $lazy22
_DATA ENDS
_TEXT SEGMENT
EXTERN OPENSSL_Uplink:PROC
ALIGN 4
$lazy1 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,1
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*1
$lazy1 ENDP
ALIGN 4
$lazy2 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,2
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*2
$lazy2 ENDP
ALIGN 4
$lazy3 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,3
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*3
$lazy3 ENDP
ALIGN 4
$lazy4 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,4
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*4
$lazy4 ENDP
ALIGN 4
$lazy5 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,5
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*5
$lazy5 ENDP
ALIGN 4
$lazy6 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,6
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*6
$lazy6 ENDP
ALIGN 4
$lazy7 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,7
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*7
$lazy7 ENDP
ALIGN 4
$lazy8 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,8
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*8
$lazy8 ENDP
ALIGN 4
$lazy9 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,9
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*9
$lazy9 ENDP
ALIGN 4
$lazy10 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,10
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*10
$lazy10 ENDP
ALIGN 4
$lazy11 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,11
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*11
$lazy11 ENDP
ALIGN 4
$lazy12 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,12
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*12
$lazy12 ENDP
ALIGN 4
$lazy13 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,13
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*13
$lazy13 ENDP
ALIGN 4
$lazy14 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,14
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*14
$lazy14 ENDP
ALIGN 4
$lazy15 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,15
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*15
$lazy15 ENDP
ALIGN 4
$lazy16 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,16
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*16
$lazy16 ENDP
ALIGN 4
$lazy17 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,17
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*17
$lazy17 ENDP
ALIGN 4
$lazy18 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,18
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*18
$lazy18 ENDP
ALIGN 4
$lazy19 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,19
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*19
$lazy19 ENDP
ALIGN 4
$lazy20 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,20
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*20
$lazy20 ENDP
ALIGN 4
$lazy21 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,21
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*21
$lazy21 ENDP
ALIGN 4
$lazy22 PROC
push r9
push r8
push rdx
push rcx
sub rsp,40
lea rcx,OFFSET OPENSSL_UplinkTable
mov rdx,22
call OPENSSL_Uplink
add rsp,40
pop rcx
pop rdx
pop r8
pop r9
jmp QWORD PTR OPENSSL_UplinkTable+8*22
$lazy22 ENDP
_TEXT ENDS
END
| 14.820197 | 40 | 0.699352 |
c9a955c08bd481e07a8eccd359aee4488b9346a2 | 88 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/atan2.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/atan2.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sdcc/atan2.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_math32
PUBLIC _atan2
EXTERN _m32_atan2f
defc _atan2 = _m32_atan2f
| 12.571429 | 26 | 0.806818 |
b289618e3a2133450461a654f964c1a925b18f14 | 7,381 | asm | Assembly | c2000/C2000Ware_1_00_06_00/libraries/dsp/FixedPoint/c28/source/fir32_alt.asm | ramok/Themis_ForHPSDR | d0f323a843ac0a488ef816ccb7c828032855a40a | [
"Unlicense"
] | null | null | null | c2000/C2000Ware_1_00_06_00/libraries/dsp/FixedPoint/c28/source/fir32_alt.asm | ramok/Themis_ForHPSDR | d0f323a843ac0a488ef816ccb7c828032855a40a | [
"Unlicense"
] | null | null | null | c2000/C2000Ware_1_00_06_00/libraries/dsp/FixedPoint/c28/source/fir32_alt.asm | ramok/Themis_ForHPSDR | d0f323a843ac0a488ef816ccb7c828032855a40a | [
"Unlicense"
] | 1 | 2021-07-21T08:10:37.000Z | 2021-07-21T08:10:37.000Z | ;;#############################################################################
;;! \file source/fir32_alt.asm
;;!
;;! \brief Alternate 32-bit FIR filter
;;!
;;! \date Aug 29, 2014
;;!
;;
;; Group: C2000
;; Target Family: C28x
;;
;;#############################################################################
;;$TI Release: C28x Fixed Point DSP Library v1.20.00.00 $
;;$Release Date: Thu Oct 18 15:57:22 CDT 2018 $
;;$Copyright: Copyright (C) 2014-2018 Texas Instruments Incorporated -
;; http://www.ti.com/ ALL RIGHTS RESERVED $
;;#############################################################################
;;
;;*****************************************************************************
;; includes
;;*****************************************************************************
;;
;;*****************************************************************************
;; globals
;;*****************************************************************************
; Module definition for external reference
.def _FIR32_alt_init
.def _FIR32_alt_calc
;; Module Structure
;; typedef struct { <------------ XAR4
;; long *coeff_ptr; /* +0 Pointer to Filter coefficient */
;; long * dbuffer_ptr; /* +2 Delay buffer ptr */
;; int cbindex; /* +4 Circular Buffer Index */
;; int order; /* +5 Order of the Filter */
;; int input; /* +6 Latest Input sample */
;; int output; /* +7 Filter Output */
;; void (*init)(void *); /* +8 Ptr to Init funtion */
;; void (*calc)(void *); /* +10 Ptr to calc fn */
;; }FIR32;
;;
ARG_DBUFFER_PTR .set 0
ARG_CBINDEX .set 2
ARG_ORDER .set 3
ARG_INPUT .set 4
ARG_OUTPUT .set 6
;;
;;=============================================================================
;;! \fn FIR_alt_init
;;! \brief Initialization function for the alternate FIR function
;;! \param FIR32_handle pointer to an FIR32 object
;;
;; This routine will zero out the dbuffer
;;
;;=============================================================================
;;
_FIR32_alt_init:
ADDB XAR4, #2 ; XAR4 -> dbuffer_ptr
MOV *+XAR4[ARG_INPUT],#0 ; input=0
MOV *+XAR4[ARG_OUTPUT],#0 ; output=0
MOVL XAR6,*+XAR4[ARG_DBUFFER_PTR] ; XAR6=dbuffer_ptr
ZAPA ; ACC = P = 0
MOV ACC,*+XAR4[ARG_ORDER] << 1 ; AL= order * 2
ADDB AL, #1 ; AL = order * 2 + 1
RPT AL ; repeat order * 2 + 2 times
|| MOV *XAR6++,#0 ; clear out the dbuffer elements
LRETR
;;
;;=============================================================================
;;! \fn FIR_alt_calc
;;! \brief Alternate FIR function
;;! \param FIR32_handle pointer to an FIR32 object
;;
;; This routine will use the LP addressing mode for circular buffer addressing
;; i.e *+XAR6[AR1%++] instead of *AR6%++, allowing for greater than 256 tap filters
;; Transfer Function :
;;
;; \note The filter coefficients need to be stored in the following order for the
;; filter to work correctly i.e. (filter size is L = Order + 1)
;;
;; Index
;; +---------+
;; 0 | h(L-1) |
;; 2 | h(L-2) |
;; 4 | h(L-3) |
;; 6 | h(L-4) |
;; ... | ... |
;; L-3 | h(2) |
;; L-2 | h(1) |
;; L-1 | h(0) |
;; +---------+
;;
;; Register usage:
;; AR0 : repeat block counter (order)
;; AR1H/AR1L : buffer size-1/index pointer
;; XAR7 : coefficient pointer
;; XAR6 : delay line pointer (circular buffer)
;;
;;=============================================================================
;;
ConstTable:
PosSatVal: .long 0x00FFFFFF ; Corresponds to >> 6
NegSatVal: .long 0xFF000000 ; Corresponds to >> 6
FILTER_SIZE .set 44
_FIR32_alt_calc:
PUSH XAR1 ; Context Save
SETC SXM, OVM ; Turn on sign extension and
; overflow mode to saturate
SPM 0 ; no scaling for the product (P) register
; changing this to SPM 1, will shift P left by 1
; during the accumulation giving a Q31 result
MOVL XAR7, *XAR4++ ; XAR7 = coeff_ptr, XAR4 -> dbuffer_ptr
MOVL XAR6, *+XAR4[ARG_DBUFFER_PTR] ; XAR6 = dbuffer_ptr
MOV AH, *+XAR4[ARG_ORDER] ; ACC = [order : 0]
MOV AR0, AH ; AR0 = order (for RPT)
LSL AH, #1 ; = [order*2: 0] (<< 1 to get the 32-bit size)
MOV AL, *+XAR4[ARG_CBINDEX] ; ACC = [order+1*2 : cbindex]
MOVL XAR1, ACC ; XAR1 = [order+1*2 : cbindex]
MOVL ACC, *+XAR4[ARG_INPUT] ; ACC = input
.lp_amode
SETC AMODE ; C2xLP addressing mode to allow
; *+XAR6[AR1%++]
MOVL *+XAR6[AR1%++], ACC ; *XAR6[AR1] = input, AR1+=2
ZAPA
;; <<VC140828 - debug only
;;.asg 0, N
;;.loop
;;QMACL P,*+XAR6[AR1%++],*XAR7++ ; ACC = ACC + P << PM = ACC + P << 0
;; ; P = (signed[*+XAR6[AR1%++]] * signed[*XAR7++]) >> 32
;;.eval N + 1, N ; increment N
;;.break N = FILTER_SIZE
;;.endloop
;; VC140828>>
RPT AR0 ; Repeat order/2 + 1 times
|| QMACL P,*+XAR6[AR1%++],*XAR7++ ; ACC = ACC + P << PM = ACC + P << 0
; P = (signed[*+XAR6[AR1%++]] * signed[*XAR7++]) >> 32
; Let A = input(decimal) B = coeff(decimal)
; C = A << 31 (Q31) D = B << 31 (Q31)
; P = (C * D) >> 32
; = (A*2^31 * B^2^31) * 2^-32
; = (A * B) * 2^30 -> Q30
; ACC = ACC + P << 0 (Q30)
.c28_amode
CLRC AMODE ; Back to C28x addressing mode
ADDL ACC, P ; ACC += P
MOVL *+XAR4[ARG_OUTPUT],ACC ; Store saturated result (Q30)
MOV *+XAR4[ARG_CBINDEX], AR1 ; Store AR1(index for the next sample)
SPM 0
POP XAR1 ; Restore
CLRC SXM, OVM ; Clear sign extension and saturate mode
LRETR
;;#############################################################################
;; End of File
;;#############################################################################
| 43.934524 | 105 | 0.36323 |
6466d1f6e611213b7171f133b6cd1c7c3963dcdb | 50 | asm | Assembly | Fire Alarm - Smoke Detector/files/alarm_rim.asm | sanils2002/ASSEMBLY-PROJECTS | 6974af24bb70c5b710733f5e1cef015f8dc4d708 | [
"MIT"
] | null | null | null | Fire Alarm - Smoke Detector/files/alarm_rim.asm | sanils2002/ASSEMBLY-PROJECTS | 6974af24bb70c5b710733f5e1cef015f8dc4d708 | [
"MIT"
] | null | null | null | Fire Alarm - Smoke Detector/files/alarm_rim.asm | sanils2002/ASSEMBLY-PROJECTS | 6974af24bb70c5b710733f5e1cef015f8dc4d708 | [
"MIT"
] | null | null | null | START: RIM
RAL
JNC START
MVI A,#C0H
SIM
JMP START
| 7.142857 | 10 | 0.74 |
1441a620d202c65edc75e33560bb36d26d5bd36f | 740 | asm | Assembly | Appl/dil/bbxmail/asmcode/asmcodeManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/dil/bbxmail/asmcode/asmcodeManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/dil/bbxmail/asmcode/asmcodeManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Designs in Light 2002 -- All Rights Reserved
PROJECT: Mail
FILE: stylesManager.asm
AUTHOR: Gene Anderson
DESCRIPTION:
$Id$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
include stdapp.def
include Objects/vTextC.def
include stylesStyles.def
global PROCESSRICHTAG:far
global PROCESSHTMLTAG:far
global PROCESSHTMLCHAR:far
global STYLESTACKINIT:far
global STYLESTACKFREE:far
global PROCESSURLSTART:far
global PROCESSURLEND:far
global PARSETIMEZONE:far
SetGeosConvention
include stylesStyles.asm
include stylesStack.asm
include parseTimezone.asm
SetDefaultConvention
| 20 | 79 | 0.624324 |
745ee7c59f1aba7e9a84697dcc56420697ff74de | 599 | asm | Assembly | wof/lcs/123p/99.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 | wof/lcs/123p/99.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | wof/lcs/123p/99.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
0079B0 move.b ($1a,PC,D0.w), ($99,A0) [123p+ 28, 123p+ 2A, enemy+28, enemy+2A]
0079B6 move.w ($8,A1), D1 [123p+ 99, enemy+99]
007E98 moveq #$0, D0 [123p+ 99, enemy+99]
007ECC bra $7ea4
007F2E move.b D0, ($99,A1)
007F32 bra $7ea2 [123p+ 99, enemy+99]
0082FA bne $8308 [123p+ 99, enemy+99]
01173C move.w ($a,PC,D0.w), D1 [123p+ 99]
011C3E cmpi.b #$6, ($99,A0) [enemy+CE]
011C44 bne $11c4a [123p+ 99, enemy+99]
05E50A bne $5e5b8 [123p+ 99, enemy+99]
copyright zengfr site:http://github.com/zengfr/romhack
| 37.4375 | 80 | 0.631052 |
2d13d3e40b93cd529956da5e961bc437bc7ecdb7 | 303 | asm | Assembly | src/third_party/nasm/test/riprel2.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 2,219 | 2018-03-26T02:57:34.000Z | 2022-03-31T00:27:59.000Z | src/third_party/nasm/test/riprel2.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | src/third_party/nasm/test/riprel2.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 473 | 2019-03-24T16:34:23.000Z | 2022-03-31T02:01:05.000Z | ;Testname=unoptimized; Arguments=-fbin -oriprel2.bin -O0; Files=stdout stderr riprel.bin
;Testname=optimized; Arguments=-fbin -oriprel2.bin -Ox; Files=stdout stderr riprel.bin
bits 64
default rel
mov dword [foo],12345678h
mov qword [foo],12345678h
mov [foo],rax
mov dword [foo],12345678h
foo:
| 25.25 | 88 | 0.752475 |
0eab0844b501d4bfe2f945b319999371472cffe8 | 533 | asm | Assembly | programs/oeis/059/A059013.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/059/A059013.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/059/A059013.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A059013: Odd number of 0's and even number of 1's in binary expansion.
; 0,5,6,17,18,20,23,24,27,29,30,65,66,68,71,72,75,77,78,80,83,85,86,89,90,92,95,96,99,101,102,105,106,108,111,113,114,116,119,120,123,125,126,257,258,260,263,264,267,269,270,272,275,277,278,281,282,284,287,288,291,293,294,297,298,300,303,305,306,308,311,312,315,317,318,320,323,325,326,329,330,332,335,337,338,340,343,344,347,349,350,353,354,356,359,360,363,365,366,368
mul $0,2
seq $0,59011 ; Odd number of 0's and 1's in binary expansion.
sub $0,1
div $0,2
| 66.625 | 369 | 0.714822 |
757acc3be2d4e6351ccc524e5148807b6669dee7 | 1,024 | asm | Assembly | firmware-assembler/textos.asm | jlblancoc/GigaMP3-player | caefe2bc1052df9cf063884b3ac9dee081a26488 | [
"CC0-1.0"
] | null | null | null | firmware-assembler/textos.asm | jlblancoc/GigaMP3-player | caefe2bc1052df9cf063884b3ac9dee081a26488 | [
"CC0-1.0"
] | null | null | null | firmware-assembler/textos.asm | jlblancoc/GigaMP3-player | caefe2bc1052df9cf063884b3ac9dee081a26488 | [
"CC0-1.0"
] | null | null | null | ;----------------------------------------------------
; FICHERO: Textos.asm
;
; DESCRIPCION: Para declarar cadenas de texto
;
; Jose Luis Blanco Claraco @ 2001-2002
;----------------------------------------------------
PRIMERA_PANTALLA1:
; .db $01,$02," GigaMP3 ",$01,$02,0,0
.db $01,$02," GigaMP3 ",0,0
PRIMERA_PANTALLA2:
; .db $03,$04," JLBC @2003 ",$03,$04,0,0
.db $03,$04," Jose Luis B. '03 ",0,0
STR_CHK_RAM:
.db "32 Kb RAM...",0,0
STR_TSTHD:
.db "Reset disco...",0,0
STR_OK:
.db "OK",0,0
STR_ER:
.db "ER",0,0
STR_ATAERR:
.db "ATA ERROR:",0,0
STR_FATERR:
.db "FAT ERROR!",0,0
STR_USB:
.db "** Modo USB **",0,0
STR_NO_DIR:
.db "No direct. valido!",0,0
STR_NO_MP3s:
.db "No hay fichs MP3!", 0
; Textos de menus:
; --------------------------
.equ NUM_MENUS = 5
MNU_1: .db "Repr. directorio",0,0
MNU_2: .db "Repr. dir. aleat",0,0
MNU_3: .db "Mejorar bajos",0
MNU_4: .db "Virtual sorround",0,0
MNU_5: .db "Config. mando",0
| 19.320755 | 54 | 0.496094 |
9c6105c603b5ff0de34c37cd3d7b5b53b48def3c | 23,822 | asm | Assembly | third_party/codecs/xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm | Narflex/sagetv | 76cb5755e54fd3b01d2bb708a8a72af0aa1533f1 | [
"Apache-2.0"
] | 292 | 2015-08-10T18:34:55.000Z | 2022-01-26T00:38:45.000Z | third_party/codecs/xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm | Narflex/sagetv | 76cb5755e54fd3b01d2bb708a8a72af0aa1533f1 | [
"Apache-2.0"
] | 366 | 2015-08-10T18:21:02.000Z | 2022-01-22T20:03:41.000Z | third_party/codecs/xvidcore/src/quant/x86_asm/quantize_h263_3dne.asm | Narflex/sagetv | 76cb5755e54fd3b01d2bb708a8a72af0aa1533f1 | [
"Apache-2.0"
] | 227 | 2015-08-10T22:24:29.000Z | 2022-02-25T19:16:21.000Z | ;/**************************************************************************
; *
; * XVID MPEG-4 VIDEO CODEC
; * - 3dne Quantization/Dequantization -
; *
; * Copyright(C) 2002-2003 Jaan Kalda
; *
; * This program is free software ; you can r_EDIstribute it and/or modify
; * it under the terms of the GNU General Public License as published by
; * the Free Software Foundation ; either version 2 of the License, or
; * (at your option) any later version.
; *
; * This program is distributed in the hope that it will be useful,
; * but WITHOUT ANY WARRANTY ; without even the implied warranty of
; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; * GNU General Public License for more details.
; *
; * You should have received a copy of the GNU General Public License
; * along with this program ; if not, write to the Free Software
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
; *
; * $Id: quantize_h263_3dne.asm,v 1.12 2009-09-16 17:07:58 Isibaar Exp $
; *
; *************************************************************************/
;
; these 3dne functions are compatible with iSSE, but are optimized specifically for
; K7 pipelines
; enable dequant saturate [-2048,2047], test purposes only.
%define SATURATE
%include "nasm.inc"
;=============================================================================
; Local data
;=============================================================================
DATA
align SECTION_ALIGN
int_div:
dd 0
%assign i 1
%rep 255
dd (1 << 16) / (i) + 1
%assign i i+1
%endrep
ALIGN SECTION_ALIGN
plus_one:
times 8 dw 1
;-----------------------------------------------------------------------------
; subtract by Q/2 table
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
mmx_sub:
%assign i 1
%rep 31
times 4 dw i / 2
%assign i i+1
%endrep
;-----------------------------------------------------------------------------
;
; divide by 2Q table
;
; use a shift of 16 to take full advantage of _pmulhw_
; for q=1, _pmulhw_ will overflow so it is treated seperately
; (3dnow2 provides _pmulhuw_ which wont cause overflow)
;
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
mmx_div:
%assign i 1
%rep 31
times 4 dw (1 << 16) / (i * 2) + 1
%assign i i+1
%endrep
;-----------------------------------------------------------------------------
; add by (odd(Q) ? Q : Q - 1) table
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
mmx_add:
%assign i 1
%rep 31
%if i % 2 != 0
times 4 dw i
%else
times 4 dw i - 1
%endif
%assign i i+1
%endrep
;-----------------------------------------------------------------------------
; multiple by 2Q table
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
mmx_mul:
%assign i 1
%rep 31
times 4 dw i * 2
%assign i i+1
%endrep
;-----------------------------------------------------------------------------
; saturation limits
;-----------------------------------------------------------------------------
ALIGN SECTION_ALIGN
mmx_32768_minus_2048:
times 4 dw (32768-2048)
mmx_32767_minus_2047:
times 4 dw (32767-2047)
ALIGN SECTION_ALIGN
mmx_2047:
times 4 dw 2047
ALIGN SECTION_ALIGN
mmzero:
dd 0, 0
int2047:
dd 2047
int_2048:
dd -2048
;=============================================================================
; Code
;=============================================================================
TEXT
;-----------------------------------------------------------------------------
;
; uint32_t quant_h263_intra_3dne(int16_t * coeff,
; const int16_t const * data,
; const uint32_t quant,
; const uint32_t dcscalar,
; const uint16_t *mpeg_matrices);
;
;-----------------------------------------------------------------------------
;This is Athlon-optimized code (ca 70 clk per call)
%macro quant_intra1 1
psubw mm1, mm0 ;A3
psubw mm3, mm2 ;B3
%if (%1)
psubw mm5, mm4 ;C8
psubw mm7, mm6 ;D8
%endif
ALIGN SECTION_ALIGN
movq mm4, [_ECX + %1 * 32 +16] ;C1
pmaxsw mm1, mm0 ;A4
movq mm6, [_ECX + %1 * 32 +24] ;D1
pmaxsw mm3, mm2 ;B4
psraw mm0, 15 ;A5
psraw mm2, 15 ;B5
%if (%1)
movq [_EDX + %1 * 32 + 16-32], mm5 ;C9
movq [_EDX + %1 * 32 + 24-32], mm7 ;D9
%endif
psrlw mm1, 1 ;A6
psrlw mm3, 1 ;B6
movq mm5, [_EBX] ;C2
movq mm7, [_EBX] ;D2
pxor mm1, mm0 ;A7
pxor mm3, mm2 ;B7
psubw mm5, mm4 ;C3
psubw mm7, mm6 ;D3
psubw mm1, mm0 ;A8
psubw mm3, mm2 ;B8
%if (%1 == 0)
push _EBP
movq mm0, [_ECX + %1 * 32 +32]
%elif (%1 < 3)
movq mm0, [_ECX + %1 * 32 +32] ;A1
%endif
pmaxsw mm5, mm4 ;C4
%if (%1 < 3)
movq mm2, [_ECX + %1 * 32 +8+32] ;B1
%else
cmp _ESP, _ESP
%endif
pmaxsw mm7, mm6 ;D4
psraw mm4, 15 ;C5
psraw mm6, 15 ;D5
movq [byte _EDX + %1 * 32], mm1 ;A9
movq [_EDX + %1 * 32+8], mm3 ;B9
psrlw mm5, 1 ;C6
psrlw mm7, 1 ;D6
%if (%1 < 3)
movq mm1, [_EBX] ;A2
movq mm3, [_EBX] ;B2
%endif
%if (%1 == 3)
%ifdef ARCH_IS_X86_64
lea r9, [int_div]
imul eax, dword [r9+4*_EDI]
%else
imul _EAX, [int_div+4*_EDI]
%endif
%endif
pxor mm5, mm4 ;C7
pxor mm7, mm6 ;D7
%endm
%macro quant_intra 1
; Rules for athlon:
; 1) schedule latencies
; 2) add/mul and load/store in 2:1 proportion
; 3) avoid spliting >3byte instructions over 8byte boundaries
psubw mm1, mm0 ;A3
psubw mm3, mm2 ;B3
%if (%1)
psubw mm5, mm4 ;C8
psubw mm7, mm6 ;D8
%endif
ALIGN SECTION_ALIGN
movq mm4, [_ECX + %1 * 32 +16] ;C1
pmaxsw mm1, mm0 ;A4
movq mm6, [_ECX + %1 * 32 +24] ;D1
pmaxsw mm3, mm2 ;B4
psraw mm0, 15 ;A5
psraw mm2, 15 ;B5
%if (%1)
movq [_EDX + %1 * 32 + 16-32], mm5 ;C9
movq [_EDX + %1 * 32 + 24-32], mm7 ;D9
%endif
pmulhw mm1, [_ESI] ;A6
pmulhw mm3, [_ESI] ;B6
movq mm5, [_EBX] ;C2
movq mm7, [_EBX] ;D2
nop
nop
pxor mm1, mm0 ;A7
pxor mm3, mm2 ;B7
psubw mm5, mm4 ;C3
psubw mm7, mm6 ;D3
psubw mm1, mm0 ;A8
psubw mm3, mm2 ;B8
%if (%1 < 3)
movq mm0, [_ECX + %1 * 32 +32] ;A1
%endif
pmaxsw mm5, mm4 ;C4
%if (%1 < 3)
movq mm2, [_ECX + %1 * 32 +8+32] ;B1
%else
cmp _ESP, _ESP
%endif
pmaxsw mm7,mm6 ;D4
psraw mm4, 15 ;C5
psraw mm6, 15 ;D5
movq [byte _EDX + %1 * 32], mm1 ;A9
movq [_EDX + %1 * 32+8], mm3 ;B9
pmulhw mm5, [_ESI] ;C6
pmulhw mm7, [_ESI] ;D6
%if (%1 < 3)
movq mm1, [_EBX] ;A2
movq mm3, [_EBX] ;B2
%endif
%if (%1 == 0)
push _EBP
%elif (%1 < 3)
nop
%endif
nop
%if (%1 == 3)
%ifdef ARCH_IS_X86_64
lea r9, [int_div]
imul eax, dword [r9+4*_EDI]
%else
imul _EAX, [int_div+4*_EDI]
%endif
%endif
pxor mm5, mm4 ;C7
pxor mm7, mm6 ;D7
%endmacro
ALIGN SECTION_ALIGN
cglobal quant_h263_intra_3dne
quant_h263_intra_3dne:
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
add _ESP, PTR_SIZE
%ifndef WINDOWS
push prm6
push prm5
%endif
push prm4
push prm3
push prm2
push prm1
sub _ESP, PTR_SIZE
mov [_ESP], TMP0
%endif
mov _EAX, [_ESP + 3*PTR_SIZE] ; quant
mov _ECX, [_ESP + 2*PTR_SIZE] ; data
mov _EDX, [_ESP + 1*PTR_SIZE] ; coeff
cmp al, 1
pxor mm1, mm1
pxor mm3, mm3
movq mm0, [_ECX] ; mm0 = [1st]
movq mm2, [_ECX + 8]
push _ESI
%ifdef ARCH_IS_X86_64
lea _ESI, [mmx_div]
lea _ESI, [_ESI + _EAX*8 - 8]
%else
lea _ESI, [mmx_div + _EAX*8 - 8]
%endif
push _EBX
lea _EBX, [mmzero]
push _EDI
jz near .q1loop
quant_intra 0
mov _EBP, [_ESP + (4+4)*PTR_SIZE] ; dcscalar
; NB -- there are 3 pushes in the function preambule and one more
; in "quant_intra 0", thus an added offset of 16 bytes
movsx _EAX, word [byte _ECX] ; DC
quant_intra 1
mov _EDI, _EAX
sar _EDI, 31 ; sign(DC)
shr _EBP, byte 1 ; _EBP = dcscalar/2
quant_intra 2
sub _EAX, _EDI ; DC (+1)
xor _EBP, _EDI ; sign(DC) dcscalar /2 (-1)
mov _EDI, [_ESP + (4+4)*PTR_SIZE] ; dscalar
lea _EAX, [byte _EAX + _EBP] ; DC + sign(DC) dcscalar/2
mov _EBP, [byte _ESP]
quant_intra 3
psubw mm5, mm4 ;C8
mov _ESI, [_ESP + 3*PTR_SIZE] ; pop back the register value
mov _EDI, [_ESP + 1*PTR_SIZE] ; pop back the register value
sar _EAX, 16
lea _EBX, [byte _EAX + 1] ; workaround for _EAX < 0
cmovs _EAX, _EBX ; conditionnaly move the corrected value
mov [_EDX], ax ; coeff[0] = ax
mov _EBX, [_ESP + 2*PTR_SIZE] ; pop back the register value
add _ESP, byte 4*PTR_SIZE ; "quant_intra 0" pushed _EBP, but we don't restore that one, just correct the stack offset by 16
psubw mm7, mm6 ;D8
movq [_EDX + 3 * 32 + 16], mm5 ;C9
movq [_EDX + 3 * 32 + 24], mm7 ;D9
xor _EAX, _EAX
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
%ifndef WINDOWS
add _ESP, 6*PTR_SIZE
%else
add _ESP, 4*PTR_SIZE
%endif
mov [_ESP], TMP0
%endif
ret
ALIGN SECTION_ALIGN
.q1loop:
quant_intra1 0
mov _EBP, [_ESP + (4+4)*PTR_SIZE] ; dcscalar
movsx _EAX, word [byte _ECX] ; DC
quant_intra1 1
mov _EDI, _EAX
sar _EDI, 31 ; sign(DC)
shr _EBP, byte 1 ; _EBP = dcscalar /2
quant_intra1 2
sub _EAX, _EDI ; DC (+1)
xor _EBP, _EDI ; sign(DC) dcscalar /2 (-1)
mov _EDI, [_ESP + (4+4)*PTR_SIZE] ; dcscalar
lea _EAX, [byte _EAX + _EBP] ; DC + sign(DC) dcscalar /2
mov _EBP, [byte _ESP]
quant_intra1 3
psubw mm5, mm4 ;C8
mov _ESI, [_ESP + 3*PTR_SIZE] ; pop back the register value
mov _EDI, [_ESP + 1*PTR_SIZE] ; pop back the register value
sar _EAX, 16
lea _EBX, [byte _EAX + 1] ; workaround for _EAX < 0
cmovs _EAX, _EBX ; conditionnaly move the corrected value
mov [_EDX], ax ; coeff[0] = ax
mov _EBX, [_ESP + 2*PTR_SIZE] ; pop back the register value
add _ESP, byte 4*PTR_SIZE ; "quant_intra 0" pushed _EBP, but we don't restore that one, just correct the stack offset by 16
psubw mm7, mm6 ;D8
movq [_EDX + 3 * 32 + 16], mm5 ;C9
movq [_EDX + 3 * 32 + 24], mm7 ;D9
xor _EAX, _EAX
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
%ifndef WINDOWS
add _ESP, 6*PTR_SIZE
%else
add _ESP, 4*PTR_SIZE
%endif
mov [_ESP], TMP0
%endif
ret
ENDFUNC
;-----------------------------------------------------------------------------
;
; uint32_t quant_h263_inter_3dne(int16_t * coeff,
; const int16_t const * data,
; const uint32_t quant,
; const uint16_t *mpeg_matrices);
;
;-----------------------------------------------------------------------------
;This is Athlon-optimized code (ca 90 clk per call)
;Optimized by Jaan, 30 Nov 2002
%macro quantinter 1
movq mm1, [_EAX] ;A2
psraw mm3, 15 ;B6
%if (%1)
psubw mm2, mm6 ;C10
%endif
psubw mm1, mm0 ;A3
pmulhw mm4, mm7 ;B7
movq mm6, [_ECX + %1*24+16] ;C1
pmaxsw mm1, mm0 ;A4
paddw mm5, mm4 ;B8
%if (%1)
movq [_EDX + %1*24+16-24], mm2 ;C11
%endif
psubusw mm1, [_EBX] ;A5 mm0 -= sub (unsigned, dont go < 0)
pxor mm4, mm3 ;B9
movq mm2, [_EAX] ;C2
psraw mm0, 15 ;A6
psubw mm4, mm3 ;B10
psubw mm2, mm6 ;C3
pmulhw mm1, mm7 ;A7 mm0 = (mm0 / 2Q) >> 24
movq mm3, [_ECX + %1*24+8] ;B1
pmaxsw mm2, mm6 ;C4
paddw mm5, mm1 ;A8 sum += mm0
%if (%1)
movq [_EDX + %1*24+8-24], mm4 ;B11
%else
movq [_EDX + 120], mm4 ;B11
%endif
psubusw mm2, [_EBX] ;C5
pxor mm1, mm0 ;A9 mm0 *= sign(mm0)
movq mm4, [_EAX] ;B2
psraw mm6, 15 ;C6
psubw mm1, mm0 ;A10 undisplace
psubw mm4, mm3 ;B3
pmulhw mm2, mm7 ;C7
movq mm0, [_ECX + %1*24+24] ;A1 mm0 = [1st]
pmaxsw mm4, mm3 ;B4
paddw mm5, mm2 ;C8
movq [byte _EDX + %1*24], mm1 ;A11
psubusw mm4, [_EBX] ;B5
pxor mm2, mm6 ;C9
%endmacro
%macro quantinter1 1
movq mm0, [byte _ECX + %1*16] ;mm0 = [1st]
movq mm3, [_ECX + %1*16+8] ;
movq mm1, [_EAX]
movq mm4, [_EAX]
psubw mm1, mm0
psubw mm4, mm3
pmaxsw mm1, mm0
pmaxsw mm4, mm3
psubusw mm1, mm6 ; mm0 -= sub (unsigned, dont go < 0)
psubusw mm4, mm6 ;
psraw mm0, 15
psraw mm3, 15
psrlw mm1, 1 ; mm0 = (mm0 / 2Q) >> 16
psrlw mm4, 1 ;
paddw mm5, mm1 ; sum += mm0
pxor mm1, mm0 ; mm0 *= sign(mm0)
paddw mm5, mm4
pxor mm4, mm3 ;
psubw mm1, mm0 ; undisplace
psubw mm4, mm3
cmp _ESP, _ESP
movq [byte _EDX + %1*16], mm1
movq [_EDX + %1*16+8], mm4
%endmacro
ALIGN SECTION_ALIGN
cglobal quant_h263_inter_3dne
quant_h263_inter_3dne:
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
add _ESP, PTR_SIZE
%ifndef WINDOWS
push prm6
push prm5
%endif
push prm4
push prm3
push prm2
push prm1
sub _ESP, PTR_SIZE
mov [_ESP], TMP0
%endif
mov _EDX, [_ESP + 1*PTR_SIZE] ; coeff
mov _ECX, [_ESP + 2*PTR_SIZE] ; data
mov _EAX, [_ESP + 3*PTR_SIZE] ; quant
push _EBX
pxor mm5, mm5 ; sum
nop
%ifdef ARCH_IS_X86_64
lea _EBX, [mmx_div]
movq mm7, [_EBX + _EAX * 8 - 8]
lea _EBX, [mmx_sub]
lea _EBX, [_EBX + _EAX * 8 - 8]
%else
lea _EBX,[mmx_sub + _EAX * 8 - 8] ; sub
movq mm7, [mmx_div + _EAX * 8 - 8] ; divider
%endif
cmp al, 1
lea _EAX, [mmzero]
jz near .q1loop
cmp _ESP, _ESP
ALIGN SECTION_ALIGN
movq mm3, [_ECX + 120] ;B1
pxor mm4, mm4 ;B2
psubw mm4, mm3 ;B3
movq mm0, [_ECX] ;A1 mm0 = [1st]
pmaxsw mm4, mm3 ;B4
psubusw mm4, [_EBX] ;B5
quantinter 0
quantinter 1
quantinter 2
quantinter 3
quantinter 4
psraw mm3, 15 ;B6
psubw mm2, mm6 ;C10
pmulhw mm4, mm7 ;B7
paddw mm5, mm4 ;B8
pxor mm4, mm3 ;B9
psubw mm4, mm3 ;B10
movq [_EDX + 4*24+16], mm2 ;C11
pop _EBX
movq [_EDX + 4*24+8], mm4 ;B11
pmaddwd mm5, [plus_one]
movq mm0, mm5
punpckhdq mm5, mm5
paddd mm0, mm5
movd eax, mm0 ; return sum
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
%ifndef WINDOWS
add _ESP, 6*PTR_SIZE
%else
add _ESP, 4*PTR_SIZE
%endif
mov [_ESP], TMP0
%endif
ret
ALIGN SECTION_ALIGN
.q1loop:
movq mm6, [byte _EBX]
quantinter1 0
quantinter1 1
quantinter1 2
quantinter1 3
quantinter1 4
quantinter1 5
quantinter1 6
quantinter1 7
pmaddwd mm5, [plus_one]
movq mm0, mm5
psrlq mm5, 32
paddd mm0, mm5
movd eax, mm0 ; return sum
pop _EBX
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
%ifndef WINDOWS
add _ESP, 6*PTR_SIZE
%else
add _ESP, 4*PTR_SIZE
%endif
mov [_ESP], TMP0
%endif
ret
ENDFUNC
;-----------------------------------------------------------------------------
;
; uint32_t dequant_h263_intra_3dne(int16_t *data,
; const int16_t const *coeff,
; const uint32_t quant,
; const uint32_t dcscalar,
; const uint16_t *mpeg_matrices);
;
;-----------------------------------------------------------------------------
; this is the same as dequant_inter_3dne, except that we're
; saturating using 'pminsw' (saves 2 cycles/loop => ~5% faster)
;This is Athlon-optimized code (ca 106 clk per call)
%macro dequant 1
movq mm1, [_ECX+%1*24] ; c = coeff[i] ;A2
psubw mm0, mm1 ;-c ;A3 (1st dep)
%if (%1)
paddw mm4, mm6 ;C11 mm6 free (4th+)
%endif
pmaxsw mm0, mm1 ;|c| ;A4 (2nd)
%if (%1)
mov _EBP, _EBP
pminsw mm4, [_EBX] ;C12 saturates to +2047 (5th+) later
%endif
movq mm6, [_ESI] ;0 ;A5 mm6 in use
pandn mm7, [_EAX] ;B9 offset = isZero ? 0 : quant_add (2nd)
%if (%1)
pxor mm5, mm4 ;C13 (6th+) 1later
%endif
movq mm4, [_ESI] ;C1 ;0
mov _ESP, _ESP
pcmpeqw mm6, [_ECX+%1*24] ;A6 (c ==0) ? -1 : 0 (1st)
ALIGN SECTION_ALIGN
psraw mm1, 15 ; sign(c) ;A7 (2nd)
%if (%1)
movq [_EDX+%1*24+16-24], mm5 ; C14 (7th) 2later
%endif
paddw mm7, mm3 ;B10 offset +negate back (3rd)
pmullw mm0, [_EDI] ;*= 2Q ;A8 (3rd+)
paddw mm2, mm7 ;B11 mm7 free (4th+)
lea _EBP, [byte _EBP]
movq mm5, [_ECX+%1*24+16] ;C2 ; c = coeff[i]
psubw mm4, mm5 ;-c ;C3 (1st dep)
pandn mm6, [_EAX] ;A9 offset = isZero ? 0 : quant_add (2nd)
pminsw mm2, [_EBX] ;B12 saturates to +2047 (5th+)
pxor mm3, mm2 ;B13 (6th+)
movq mm2, [byte _ESI] ;B1 ;0
%if (%1)
movq [_EDX+%1*24+8-24], mm3 ;B14 (7th)
%else
movq [_EDX+120], mm3
%endif
pmaxsw mm4, mm5 ;|c| ;C4 (2nd)
paddw mm6, mm1 ;A10 offset +negate back (3rd)
movq mm3, [_ECX+%1*24 + 8] ;B2 ; c = coeff[i]
psubw mm2, mm3 ;-c ;B3 (1st dep)
paddw mm0, mm6 ;A11 mm6 free (4th+)
movq mm6, [byte _ESI] ;0 ;C5 mm6 in use
pcmpeqw mm6, [_ECX+%1*24+16] ;C6 (c ==0) ? -1 : 0 (1st)
pminsw mm0, [_EBX] ;A12 saturates to +2047 (5th+)
pmaxsw mm2, mm3 ;|c| ;B4 (2nd)
pxor mm1, mm0 ;A13 (6th+)
pmullw mm4, [_EDI] ;*= 2Q ;C8 (3rd+)
psraw mm5, 15 ; sign(c) ;C7 (2nd)
movq mm7, [byte _ESI] ;0 ;B5 mm7 in use
pcmpeqw mm7, [_ECX+%1*24 + 8] ;B6 (c ==0) ? -1 : 0 (1st)
%if (%1 < 4)
movq mm0, [byte _ESI] ;A1 ;0
%endif
pandn mm6, [byte _EAX] ;C9 offset = isZero ? 0 : quant_add (2nd)
psraw mm3, 15 ;sign(c) ;B7 (2nd)
movq [byte _EDX+%1*24], mm1 ;A14 (7th)
paddw mm6, mm5 ;C10 offset +negate back (3rd)
pmullw mm2, [_EDI] ;*= 2Q ;B8 (3rd+)
mov _ESP, _ESP
%endmacro
ALIGN SECTION_ALIGN
cglobal dequant_h263_intra_3dne
dequant_h263_intra_3dne:
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
add _ESP, PTR_SIZE
%ifndef WINDOWS
push prm6
push prm5
%endif
push prm4
push prm3
push prm2
push prm1
sub _ESP, PTR_SIZE
mov [_ESP], TMP0
%endif
mov _ECX, [_ESP+ 2*PTR_SIZE] ; coeff
mov _EAX, [_ESP+ 3*PTR_SIZE] ; quant
pxor mm0, mm0
pxor mm2, mm2
push _EDI
push _EBX
%ifdef ARCH_IS_X86_64
lea _EDI, [mmx_mul]
lea _EDI, [_EDI + _EAX*8 - 8] ; 2*quant
%else
lea _EDI, [mmx_mul + _EAX*8 - 8] ; 2*quant
%endif
push _EBP
lea _EBX, [mmx_2047]
movsx _EBP, word [_ECX]
%ifdef ARCH_IS_X86_64
lea r9, [mmx_add]
lea _EAX, [r9 + _EAX*8 - 8] ; quant or quant-1
%else
lea _EAX, [mmx_add + _EAX*8 - 8] ; quant or quant-1
%endif
push _ESI
lea _ESI, [mmzero]
pxor mm7, mm7
movq mm3, [_ECX+120] ;B2 ; c = coeff[i]
pcmpeqw mm7, [_ECX+120] ;B6 (c ==0) ? -1 : 0 (1st)
imul _EBP, [_ESP+(4+4)*PTR_SIZE] ; dcscalar
psubw mm2, mm3 ;-c ;B3 (1st dep)
pmaxsw mm2, mm3 ;|c| ;B4 (2nd)
pmullw mm2, [_EDI] ;*= 2Q ;B8 (3rd+)
psraw mm3, 15 ; sign(c) ;B7 (2nd)
mov _EDX, [_ESP+ (1+4)*PTR_SIZE] ; data
ALIGN SECTION_ALIGN
dequant 0
cmp _EBP, -2048
mov _ESP, _ESP
dequant 1
cmovl _EBP, [int_2048]
nop
dequant 2
cmp _EBP, 2047
mov _ESP, _ESP
dequant 3
cmovg _EBP, [int2047]
nop
dequant 4
paddw mm4, mm6 ;C11 mm6 free (4th+)
pminsw mm4, [_EBX] ;C12 saturates to +2047 (5th+)
pandn mm7, [_EAX] ;B9 offset = isZero ? 0 : quant_add (2nd)
mov _EAX, _EBP
mov _ESI, [_ESP]
mov _EBP, [_ESP+PTR_SIZE]
pxor mm5, mm4 ;C13 (6th+)
paddw mm7, mm3 ;B10 offset +negate back (3rd)
movq [_EDX+4*24+16], mm5 ;C14 (7th)
paddw mm2, mm7 ;B11 mm7 free (4th+)
pminsw mm2, [_EBX] ;B12 saturates to +2047 (5th+)
mov _EBX, [_ESP+2*PTR_SIZE]
mov _EDI, [_ESP+3*PTR_SIZE]
add _ESP, byte 4*PTR_SIZE
pxor mm3, mm2 ;B13 (6th+)
movq [_EDX+4*24+8], mm3 ;B14 (7th)
mov [_EDX], ax
xor _EAX, _EAX
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
%ifndef WINDOWS
add _ESP, 6*PTR_SIZE
%else
add _ESP, 4*PTR_SIZE
%endif
mov [_ESP], TMP0
%endif
ret
ENDFUNC
;-----------------------------------------------------------------------------
;
; uint32_t dequant_h263_inter_3dne(int16_t * data,
; const int16_t * const coeff,
; const uint32_t quant,
; const uint16_t *mpeg_matrices);
;
;-----------------------------------------------------------------------------
; this is the same as dequant_inter_3dne,
; except that we're saturating using 'pminsw' (saves 2 cycles/loop)
; This is Athlon-optimized code (ca 100 clk per call)
ALIGN SECTION_ALIGN
cglobal dequant_h263_inter_3dne
dequant_h263_inter_3dne:
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
add _ESP, PTR_SIZE
%ifndef WINDOWS
push prm6
push prm5
%endif
push prm4
push prm3
push prm2
push prm1
sub _ESP, PTR_SIZE
mov [_ESP], TMP0
%endif
mov _ECX, [_ESP+ 2*PTR_SIZE] ; coeff
mov _EAX, [_ESP+ 3*PTR_SIZE] ; quant
pxor mm0, mm0
pxor mm2, mm2
push _EDI
push _EBX
push _ESI
%ifdef ARCH_IS_X86_64
lea _EDI, [mmx_mul]
lea _EDI, [_EDI + _EAX*8 - 8] ; 2*quant
%else
lea _EDI, [mmx_mul + _EAX*8 - 8] ; 2*quant
%endif
lea _EBX, [mmx_2047]
pxor mm7, mm7
movq mm3, [_ECX+120] ;B2 ; c = coeff[i]
pcmpeqw mm7, [_ECX+120] ;B6 (c ==0) ? -1 : 0 (1st)
%ifdef ARCH_IS_X86_64
lea r9, [mmx_add]
lea _EAX, [r9 + _EAX*8 - 8] ; quant or quant-1
%else
lea _EAX, [mmx_add + _EAX*8 - 8] ; quant or quant-1
%endif
psubw mm2, mm3 ;-c ;B3 (1st dep)
lea _ESI, [mmzero]
pmaxsw mm2, mm3 ;|c| ;B4 (2nd)
pmullw mm2, [_EDI] ;*= 2Q ;B8 (3rd+)
psraw mm3, 15 ; sign(c) ;B7 (2nd)
mov _EDX, [_ESP+ (1+3)*PTR_SIZE] ; data
ALIGN SECTION_ALIGN
dequant 0
dequant 1
dequant 2
dequant 3
dequant 4
paddw mm4, mm6 ;C11 mm6 free (4th+)
pminsw mm4, [_EBX] ;C12 saturates to +2047 (5th+)
pandn mm7, [_EAX] ;B9 offset = isZero ? 0 : quant_add (2nd)
mov _ESI, [_ESP]
pxor mm5, mm4 ;C13 (6th+)
paddw mm7, mm3 ;B10 offset +negate back (3rd)
movq [_EDX+4*24+16], mm5 ;C14 (7th)
paddw mm2, mm7 ;B11 mm7 free (4th+)
pminsw mm2, [_EBX] ;B12 saturates to +2047 (5th+)
mov _EBX, [_ESP+PTR_SIZE]
mov _EDI, [_ESP+2*PTR_SIZE]
add _ESP, byte 3*PTR_SIZE
pxor mm3, mm2 ;B13 (6th+)
movq [_EDX+4*24+8], mm3 ;B14 (7th)
xor _EAX, _EAX
%ifdef ARCH_IS_X86_64
mov TMP0, [_ESP]
%ifndef WINDOWS
add _ESP, 6*PTR_SIZE
%else
add _ESP, 4*PTR_SIZE
%endif
mov [_ESP], TMP0
%endif
ret
ENDFUNC
NON_EXEC_STACK
| 25.505353 | 134 | 0.512048 |
14240c9e1375e4328e3a70a5a716b33e342339a5 | 1,917 | asm | Assembly | text/maps/pewter_city.asm | etdv-thevoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | text/maps/PewterCity.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | text/maps/PewterCity.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | _PewterCityText1::
text "It's rumored that"
line "CLEFAIRYs came"
cont "from the moon!"
para "They appeared "
line "after MOON STONE"
cont "fell on MT.MOON."
done
_PewterCityText2::
text "There aren't many"
line "serious #MON"
cont "trainers here!"
para "They're all like"
line "BUG CATCHERs,"
cont "but PEWTER GYM's"
cont "BROCK is totally"
cont "into it!"
done
_PewterCityText_193f1::
text "Did you check out"
line "the MUSEUM?"
done
_PewterCityText_193f6::
text "Weren't those"
line "fossils from MT."
cont "MOON amazing?"
done
_PewterCityText_193fb::
text "Really?"
line "You absolutely"
cont "have to go!"
done
_PewterCityText13::
text "It's right here!"
line "You have to pay"
cont "to get in, but"
cont "it's worth it!"
cont "See you around!"
done
_PewterCityText_19427::
text "Psssst!"
line "Do you know what"
cont "I'm doing?"
done
_PewterCityText_1942c::
text "That's right!"
line "It's hard work!"
done
_PewterCityText_19431::
text "I'm spraying REPEL"
line "to keep #MON"
cont "out of my garden!"
done
_PewterCityText_1945d::
text "You're a trainer"
line "right? BROCK's"
cont "looking for new"
cont "challengers!"
cont "Follow me!"
done
_PewterCityText14::
text "If you have the"
line "right stuff, go"
cont "take on BROCK!"
done
_PewterCityText6::
text "TRAINER TIPS"
para "Any #MON that"
line "takes part in"
cont "battle, however"
cont "short, earns EXP!"
done
_PewterCityText7::
text "NOTICE!"
para "Thieves have been"
line "stealing #MON"
cont "fossils at MT."
cont "MOON! Please call"
cont "PEWTER POLICE"
cont "with any info!"
done
_PewterCityText10::
text "PEWTER MUSEUM"
line "OF SCIENCE"
done
_PewterCityText11::
text "PEWTER CITY"
line "#MON GYM"
cont "LEADER: BROCK"
para "The Rock Solid"
line "#MON Trainer!"
done
_PewterCityText12::
text "PEWTER CITY"
line "A Stone Gray"
cont "City"
done
| 16.245763 | 26 | 0.697444 |
f7dd58cb28094b5ff1bf564f08feda80dc2dc579 | 433 | asm | Assembly | programs/oeis/178/A178842.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/178/A178842.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/178/A178842.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A178842: a(n) = binomial((n-1)^2, n).
; 0,0,4,126,4368,177100,8347680,450978066,27540584512,1878392407320,141629804643600,11703541346076580,1052134368066259632,102250849636865496528,10683770265451303535424,1194448077521704400002650,142288257910903254700704000,17993390003427864738863790640,2407454876540195826762940031664,339791826615598227670678535591340,50456055894997179066270638463702400
mov $1,$0
pow $0,2
add $1,1
bin $0,$1
| 54.125 | 353 | 0.859122 |
8932ebbf85aef1858a1ddc1572965831541ef72a | 468 | asm | Assembly | samples/led-jumper/led_jumper.asm | fossabot/ancient_cpu | 58e47751d8d9b3486732695db64061b7cfe38b5d | [
"MIT"
] | 17 | 2020-04-29T05:51:31.000Z | 2021-06-09T01:59:10.000Z | samples/led-jumper/led_jumper.asm | Magicianred/VM | c03a82b52d1ab90199e6a835def87830e77147c1 | [
"MIT"
] | 29 | 2019-07-20T00:01:42.000Z | 2020-04-05T04:04:48.000Z | samples/led-jumper/led_jumper.asm | Magicianred/VM | c03a82b52d1ab90199e6a835def87830e77147c1 | [
"MIT"
] | 4 | 2020-07-20T19:15:33.000Z | 2021-12-24T23:14:03.000Z | #{
~label 'on' 0xD
~label 'off' 0xE
~label 'led' 0xB
}
.ldi &(0x2) <| $(0x11)
.ldi &(0x3) <| $(0x01)
.ldi &(0xE) <| $(0x0C)
; if 0x2 == 0xF then set 0x0
.ref.t &(0xD)
; bug
.sub &(0x2) &(0x2) &(0x2)
.ref.t &(0xA)
; enable disable LED
.mvd &(![~led]) &(![~on] ) |> &(0x2)
.mvd &(![~led]) &(![~off]) |> &(0x2)
; if 0xE(0xC value) >= 0x2 (0x2++)
.jump.e &(0xD) ~- &(0x2) &(0xE)
.add &(0x2) &(0x2) &(0x3)
.jump.t &(0xA)
.halt
| 16.714286 | 37 | 0.438034 |
9c9c93a31b3a7ad26c512c7ddc305229ab996a3c | 512 | asm | Assembly | programs/oeis/060/A060566.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/060/A060566.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/060/A060566.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A060566: a(n) = n^2 - 79*n + 1601.
; 1601,1523,1447,1373,1301,1231,1163,1097,1033,971,911,853,797,743,691,641,593,547,503,461,421,383,347,313,281,251,223,197,173,151,131,113,97,83,71,61,53,47,43,41,41,43,47,53,61,71,83,97,113,131,151,173,197,223,251,281,313,347,383,421,461,503,547,593,641,691,743,797,853,911,971,1033,1097,1163,1231,1301,1373,1447,1523,1601,1681,1763,1847,1933,2021,2111,2203,2297,2393,2491,2591,2693,2797,2903,3011,3121,3233,3347,3463,3581
sub $0,39
bin $0,2
sub $0,210
mul $0,2
add $0,461
| 56.888889 | 423 | 0.722656 |
fbde9f2166e111096aaba462f3379215b88a756b | 38,396 | asm | Assembly | Library/Pref/Preflo/preflo.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Pref/Preflo/preflo.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Pref/Preflo/preflo.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: Preferences
MODULE: Lights Out
FILE: preflo.asm
AUTHOR: Adam de Boor
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/7/92 Initial Version
DESCRIPTION:
$Id: preflo.asm,v 1.1 97/04/05 01:32:20 newdeal Exp $
-----------------------------------------------------------------------------@
;------------------------------------------------------------------------------
; Common GEODE stuff
;------------------------------------------------------------------------------
include geos.def
include heap.def
include geode.def
include resource.def
include ec.def
include library.def
include object.def
include graphics.def
include gstring.def
include win.def
include char.def
include Objects/inputC.def
include initfile.def
;-----------------------------------------------------------------------------
; Libraries used
;-----------------------------------------------------------------------------
UseLib ui.def
UseLib config.def
UseLib saver.def
UseLib Objects/vTextC.def
UseLib Internal/im.def
UseLib net.def
;-----------------------------------------------------------------------------
; DEF FILES
;-----------------------------------------------------------------------------
include preflo.def
include preflo.rdef
;-----------------------------------------------------------------------------
; CODE
;-----------------------------------------------------------------------------
idata segment
PrefLODialogClass
PrefLOPasswordTextClass
idata ends
PrefLOCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrefLOGetPrefUITree
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Return the root of the UI tree for "Preferences"
CALLED BY: PrefMgr
PASS: nothing
RETURN: dx:ax - OD of root of tree
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
CDB 3/27/92 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrefLOGetPrefUITree proc far
mov dx, handle PrefLORoot
mov ax, offset PrefLORoot
ret
PrefLOGetPrefUITree endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrefLOGetModuleInfo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Fill in the PrefModuleInfo buffer so that PrefMgr
can decide whether to show this button
CALLED BY: PrefMgr
PASS: ds:si - PrefModuleInfo structure to be filled in
RETURN: ds:si - buffer filled in
DESTROYED: ax,bx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chrisb 10/26/92 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrefLOGetModuleInfo proc far
.enter
clr ax
mov ds:[si].PMI_requiredFeatures, mask PMF_USER
mov ds:[si].PMI_prohibitedFeatures, ax
mov ds:[si].PMI_minLevel, ax
mov ds:[si].PMI_maxLevel, UIInterfaceLevel-1
mov ds:[si].PMI_monikerList.handle, handle LOMonikerList
mov ds:[si].PMI_monikerList.offset, offset LOMonikerList
mov {word} ds:[si].PMI_monikerToken, 'P' or ('F' shl 8)
mov {word} ds:[si].PMI_monikerToken+2, 'L' or ('O' shl 8)
mov {word} ds:[si].PMI_monikerToken+4, MANUFACTURER_ID_APP_LOCAL
.leave
ret
PrefLOGetModuleInfo endp
;==============================================================================
;
; PrefLOPasswordTextClass
;
;==============================================================================
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLOPTStartMoveCopy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Handler for quick move/copy -- refuse to do it.
CALLED BY: MSG_META_START_MOVE_COPY
PASS: *ds:si = instance data
RETURN: ax = MouseReturnFlags (not processed)
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 7/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLOPTStartMoveCopy method dynamic PrefLOPasswordTextClass,
MSG_META_START_MOVE_COPY
.enter
clr ax ; not processed
.leave
ret
PLOPTStartMoveCopy endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLOPTCatchTextChange
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Take note of another character being typed into the object.
CALLED BY: MSG_META_KBD_CHAR
PASS: *ds:si = PrefLOPasswordText object
ds:bx = PrefLOPasswordTextBase
ds:di = PrefLOPasswordTextInstance
es = dgroup
cx = char value
dl = CharFlags
CF_RELEASE - set if release
CF_STATE - set if shift, ctrl, etc.
CF_TEMP_ACCENT - set if accented char pending
dh = ShiftState
bp low = ToggleState (unused)
bp high = scan code (unused)
RETURN: cx, dx, bp - preserved
DESTROYED:
PSEUDO CODE/STRATEGY:
Remember the number of chars in the text at the start.
Call the superclass.
If the object has changed from empty to non-empty, or
non-empty to empty, enable or disable the Lock Screen
trigger appropriately.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 4/18/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLOPTCatchTextChange method dynamic PrefLOPasswordTextClass,
MSG_VIS_TEXT_REPLACE_TEXT,
MSG_META_KBD_CHAR,
MSG_META_CLIPBOARD_PASTE
uses cx, dx, bp
.enter
;
; If marked for only wholesale replacement, nuke everything
;
test ds:[di].PLOPTI_state, mask PLOPTS_REPLACE_ALL
jz passItUp
andnf ds:[di].PLOPTI_state, not mask PLOPTS_REPLACE_ALL
push ax, cx, dx, bp
mov ax, MSG_VIS_TEXT_DELETE_ALL
mov di, offset PrefLOPasswordTextClass
call ObjCallSuperNoLock
mov ax, MSG_VIS_TEXT_SET_USER_MODIFIED
call ObjCallSuperNoLock
mov ax, MSG_GEN_MAKE_APPLYABLE
call ObjCallSuperNoLock
pop ax, cx, dx, bp
passItUp:
;
; Let our superclass handle the message (whatever it is).
;
mov di, offset PrefLOPasswordTextClass
call ObjCallSuperNoLock
;
; If we are the master and we have no text now, disable our pair.
;
mov di, ds:[si]
mov bx, di
add di, ds:[di].PrefLOPasswordText_offset
test ds:[di].PLOPTI_state, mask PLOPTS_AM_MASTER
jz comparePasswords
add bx, ds:[bx].GenText_offset
mov bx, ds:[bx].GTXI_text
ChunkSizeHandle ds, bx, cx
dec cx ; don't count null
; edigeron 10/9/00 - when we disable the paired object, clear out
; the text in it. If we don't, then the user has to do that before
; clearing this one in order to stop the module from complaining
; that the passwords don't match.
mov dl, VUM_NOW
push si
mov si, ds:[di].PLOPTI_pair
mov ax, MSG_GEN_SET_ENABLED
jnz enableDisablePair
mov ax, MSG_GEN_SET_NOT_ENABLED
call ObjCallInstanceNoLock
mov ax, MSG_VIS_TEXT_DELETE_ALL
enableDisablePair:
call ObjCallInstanceNoLock
pop si
comparePasswords:
;
; See if the passwords now match and act accordingly
;
call PLOPTVerifyPassword
.leave
ret
PLOPTCatchTextChange endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLOPTVerifyPassword
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: See if the passwords in this object and its pair are the
same, and set PLOPTS_PASSWORD_VERIFIED in both if so.
CALLED BY: PLOPTCatchTextChange
PASS: *ds:si = PrefLOPasswordText object
es = dgroup
RETURN: nothing
DESTROYED: ax, cx, di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 3/22/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLOPTVerifyPassword proc near
class PrefLOPasswordTextClass
uses es, dx, si, bp
.enter
mov dx, si ; self
;
; Clear the passwordVerified bit for this object, coincidentally
; fetching the chunk of its pair, and the chunk that stores its
; text.
;
mov di, ds:[si]
mov bx, di ; for getting the text chunk...
add di, ds:[di].PrefLOPasswordText_offset
andnf ds:[di].PLOPTI_state, not mask PLOPTS_PASSWORD_VERIFIED
add bx, ds:[bx].GenText_offset
mov si, ds:[bx].GTXI_text
mov bx, di ; save our instance for possibly
; setting passwordVerified bit
mov di, ds:[di].PLOPTI_pair ; *ds:di <- paired object
;
; Clear the passwordVerified bit for the paired object, coincidentally
; fetching the chunk that stores its text.
;
mov di, ds:[di]
mov bp, di ; for getting the text chunk...
add di, ds:[di].PrefLOPasswordText_offset
andnf ds:[di].PLOPTI_state, not mask PLOPTS_PASSWORD_VERIFIED
add bp, ds:[bp].GenText_offset
mov bp, ds:[bp].GTXI_text ; *ds:bp <- text
xchg di, bp ; ds:bp <- pair's instance, for
; possibly setting
; passwordVerified bit.
; *ds:di <- pair's text
;
; ds:bx = master PLOPT
; ds:bp = slave PLOPT
; *ds:si = master text
; *ds:di = slave text
ChunkSizeHandle ds, si, ax
ChunkSizeHandle ds, di, cx
cmp ax, cx
jne done ; if not same length, can't be same
dec cx ; don't count null in comparison
; if password is zero length, still verified as Null string
jz verifiedPassword
mov si, ds:[si] ; ds:si <- source
segmov es, ds
mov di, ds:[di] ; es:di <- dest
repe cmpsb
jne done
verifiedPassword:
;
; The passwords are the same non-zero length and equal in all their
; characters, so they match (really? gosh!)
;
ornf ds:[bx].PLOPTI_state, mask PLOPTS_PASSWORD_VERIFIED
ornf ds:[bp].PLOPTI_state, mask PLOPTS_PASSWORD_VERIFIED
done:
.leave
ret
PLOPTVerifyPassword endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLOPTLoadOptions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Load text from the ini file.
CALLED BY: MSG_GEN_LOAD_OPTIONS
PASS: *ds:si = PrefLOPasswordText object
ss:bp = GenOptionsParams
RETURN: nothing
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 8/92 Initial version
llin 8/4/94 fix bug (no warning message when
password mismatch)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLOPTLoadOptions method dynamic PrefLOPasswordTextClass, MSG_GEN_LOAD_OPTIONS
.enter
;
; Make room for fetching the encrypted password from the .ini file on
; the stack.
;
SBCS < sub sp, SAVER_MAX_PASSWORD >
DBCS < sub sp, SAVER_MAX_PASSWORD*(size wchar) >
mov di, sp
push ds, si
segmov es, ss, cx ; es:di <- buffer
mov ds, cx
lea si, ss:[bp].GOP_category; ds:si <- category
lea dx, ss:[bp].GOP_key ; cx:dx <- key
SBCS < mov bp, SAVER_MAX_PASSWORD-1; bp <- size >
DBCS < mov bp, (SAVER_MAX_PASSWORD-1)*(size wchar); bp <- size>
call InitFileReadData ; cx <- # bytes
pop ds, si
; if the no password input, still display 0 asterisk
; because we need to enable the apply button
;
jnc displayAsterisk
clr cx ; # of asterisk
displayAsterisk:
;
; Set our text to be as many asterisks as there were in the password
; we encrypted, also enable the Apply button
;
if DBCS_PCGEOS
shr cx, 1
mov ax, '*'
rep stosw
clr ax
stosw
else
mov al, '*'
rep stosb
clr al
stosb
endif
mov bp, sp
mov dx, ss
mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR
call ObjCallInstanceNoLock
;
; Select everything, so it's a bit more obvious what we'll do if the
; user types something...
;
mov ax, MSG_VIS_TEXT_SELECT_ALL
call ObjCallInstanceNoLock
;
; Tell ourselves to wipe the whole thing out if the user tries to
; change the object.
;
mov di, ds:[si]
add di, ds:[di].PrefLOPasswordText_offset
ornf ds:[di].PLOPTI_state, mask PLOPTS_REPLACE_ALL or \
mask PLOPTS_WAS_REPLACE_ALL or \
mask PLOPTS_PASSWORD_VERIFIED
;
; Enable the pair ed object, if we're the master, as we've got some
; text.
; edigeron 10/9/00 - only enable paired text object if we have
; text in this object.
;
test ds:[di].PLOPTI_state, mask PLOPTS_AM_MASTER
jz done
mov ax, MSG_VIS_TEXT_GET_TEXT_SIZE
call ObjCallInstanceNoLock
tst ax ; password can't be dword length
jz done
mov si, ds:[di].PLOPTI_pair
mov ax, MSG_GEN_SET_ENABLED
mov dl, VUM_NOW
call ObjCallInstanceNoLock
done:
;
; Clear the stack.
;
SBCS < add sp, SAVER_MAX_PASSWORD >
DBCS < add sp, SAVER_MAX_PASSWORD*(size wchar) >
.leave
ret
PLOPTLoadOptions endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrefLOPTApply
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: Foil our superclass' attempt to clear the MODIFIED
flag. Otherwise our SAVE_OPTIONS handler won't work.
PASS: *ds:si - PrefLOPasswordTextClass object
ds:di - PrefLOPasswordTextClass instance data
es - dgroup
RETURN: nothing
DESTROYED: nothing
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chrisb 12/21/93 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrefLOPTApply method dynamic PrefLOPasswordTextClass,
MSG_GEN_APPLY
mov ax, MSG_VIS_TEXT_GET_USER_MODIFIED_STATE
call ObjCallInstanceNoLock
push cx
mov di, offset PrefLOPasswordTextClass
call ObjCallSuperNoLock
pop cx
jcxz done
mov ax, MSG_VIS_TEXT_SET_USER_MODIFIED
GOTO ObjCallInstanceNoLock
done:
ret
PrefLOPTApply endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLOPTGenPreApply
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: To reset the password dialog box.
CALLED BY: MSG_GEN_PRE_APPLY
PASS: *ds:si = PrefLOPasswordTextClass object
ds:di = PrefLOPasswordTextClass instance data
ds:bx = PrefLOPasswordTextClass object (same as *ds:si)
es = segment of PrefLOPasswordTextClass
ax = message #
RETURN: CF set if dialog box of warning message is brought up
DESTROYED: nothing
SIDE EFFECTS: none
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
LL 8/ 4/94 Initial version
fix bug: no warning when password mismatch
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLOPTGenPreApply method dynamic PrefLOPasswordTextClass,
MSG_GEN_PRE_APPLY
uses ax, bp
.enter
; if the text has not modified yet, no warning message is
; needed
mov ax, MSG_VIS_TEXT_GET_USER_MODIFIED_STATE
call ObjCallInstanceNoLock
jcxz done
;
; check whether the password is verified
;
test ds:[di].PLOPTI_state, mask PLOPTS_AM_MASTER
jz done
test ds:[di].PLOPTI_state, mask PLOPTS_PASSWORD_VERIFIED
jnz done
push si
;
; reset the password dialog box just in case the user clicks
; cancel to exit
;
mov si, offset LOPasswordOptions
mov ax, MSG_GEN_RESET
call ObjCallInstanceNoLock
; reset the state of the text to be not modified in case the
; user clicks cancel to exit and ok to exit Lights out, to
; prevent the dialog box comes up again.
;
pop si
mov ax, MSG_VIS_TEXT_SET_NOT_USER_MODIFIED
call ObjCallInstanceNoLock
;
; Bring up a dialog box notifying the user that the password
; not verified
;
sub sp, size StandardDialogOptrParams
mov bp, sp
mov ss:[bp].SDOP_customFlags, \
(CDT_ERROR shl offset CDBF_DIALOG_TYPE) \
or (GIT_NOTIFICATION shl offset CDBF_INTERACTION_TYPE)
mov ss:[bp].SDOP_customString.handle, handle MismatchStr
mov ss:[bp].SDOP_customString.chunk, offset MismatchStr
mov ss:[bp].SDOP_stringArg1.handle, NULL
mov ss:[bp].SDOP_stringArg2.handle, NULL
mov ss:[bp].SDOP_customTriggers.segment, NULL
mov ss:[bp].SDOP_helpContext.segment, NULL
call UserStandardDialogOptr
stc
done:
.leave
ret
PLOPTGenPreApply endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLOPTSaveOptions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Save the text out, encrypted.
CALLED BY: MSG_GEN_SAVE_OPTIONS
PASS: *ds:si = PrefLOPasswordText object
ss:bp = GenOptionsParams
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 8/92 Initial version
llin 8/4/94 fix bug
(no warning message when password mismatch)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLOPTSaveOptions method dynamic PrefLOPasswordTextClass, MSG_GEN_SAVE_OPTIONS
.enter
;
; Can't make this check as the text object sets itself not-user-modified
; on the GEN_APPLY that caused the MSG_GEN_SAVE_OPTIONS
;
;
; Make sure we've even been modified. If not, there's nothing new
; to save, and saving what we've got would be detrimental, seeing as
; it's garbage...
;
mov ax, MSG_VIS_TEXT_GET_USER_MODIFIED_STATE
call ObjCallInstanceNoLock
clc
jcxz doneNoClear
;
; Make room on the stack for the current text and fetch it.
;
SBCS < sub sp, SAVER_MAX_PASSWORD >
DBCS < sub sp, SAVER_MAX_PASSWORD*(size wchar) >
test ds:[di].PLOPTI_state, mask PLOPTS_AM_MASTER
jz done ; if not master, don't mess with things
push bp
test ds:[di].PLOPTI_state, mask PLOPTS_PASSWORD_VERIFIED
jz reset ; if not verified, => no password
mov bp, sp
inc bp
inc bp
mov dx, ss ; dx:bp <- buffer
mov ax, MSG_VIS_TEXT_GET_ALL_PTR
call ObjCallInstanceNoLock ; cx <- # chars w/o null
LONG jcxz noPassword ; => empty, so nuke key
;
; Use that as the key by which we'll encrypt it.
;
movdw dssi, dxbp ; ds:si <- key
call SaverCryptInit ; bx <- machine token
LONG jc noPassword ; => couldn't create, so act as if no
; password entered
;
; Encrypt the key with itself (cx remains # chars w/o null)
;
call SaverCryptEncrypt
pop bp ; ss:bp <- GenOptionsParams
;
; Write the result to the ini file as raw data.
;
DBCS < shl cx, 1 ; # chars -> # bytes>
lea si, ss:[bp].GOP_category
lea dx, ss:[bp].GOP_key
mov di, sp
segmov es, ss, bp ; es:di <- buffer
mov ds, bp ; ds:si <- category
xchg cx, bp ; cx:dx <- key,
; bp <- # bytes
call InitFileWriteData
;
; Nuke the encryption machine.
;
call SaverCryptEnd
done:
;
; Clear the stack and return.
;
SBCS < add sp, SAVER_MAX_PASSWORD >
DBCS < add sp, SAVER_MAX_PASSWORD*(size wchar) >
doneNoClear:
.leave
ret
reset:
;
; If password not verified, reset both objects to their original
; condition.
;
push si
mov ax, MSG_GEN_RESET
call ObjCallInstanceNoLock
mov di, ds:[si]
add di, ds:[di].PrefLOPasswordText_offset
mov si, ds:[di].PLOPTI_pair
mov ax, MSG_GEN_RESET
call ObjCallInstanceNoLock
pop si
noPassword:
;
; No password entered. Signal this by nuking the key from the
; ini file.
;
pop bp
segmov ds, ss, cx ; ds, cx <- ss
lea si, ss:[bp].GOP_category
lea dx, ss:[bp].GOP_key
call InitFileDeleteEntry
jmp done
PLOPTSaveOptions endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLOPTReset
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Reset the object to the way it was on startup.
CALLED BY: MSG_GEN_RESET
PASS: *ds:si = PrefLOPasswordText object
RETURN: nothing
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLOPTReset method dynamic PrefLOPasswordTextClass, MSG_GEN_RESET
.enter
mov di, offset PrefLOPasswordTextClass
call ObjCallSuperNoLock
;
; If was replace-all when options loaded, make sure it still is,
; and select the whole thing again.
;
mov di, ds:[si]
add di, ds:[di].PrefLOPasswordText_offset
test ds:[di].PLOPTI_state, mask PLOPTS_WAS_REPLACE_ALL
jz done
ornf ds:[di].PLOPTI_state, mask PLOPTS_REPLACE_ALL
mov ax, MSG_VIS_TEXT_SELECT_ALL
call ObjCallInstanceNoLock
done:
.leave
ret
PLOPTReset endm
;==============================================================================
;
; PrefLODialogClass
;
;==============================================================================
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODSetScreenBlank
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell the system what the new state of the screen blanking is
CALLED BY: MSG_PLOD_AUTO_SCREEN_BLANK
PASS: *ds:si = PrefLODialog object
cx = TRUE to enable blanking, FALSE to disable it.
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLODSetScreenBlank method dynamic PrefLODialogClass, MSG_PLOD_AUTO_SCREEN_BLANK
jcxz disable
mov ax, MSG_IM_ENABLE_SCREEN_SAVER
call PLODCallIM
;
; enabling, start up saver, launcher
;
push si
mov si, offset LOList
mov ax, MSG_GEN_ITEM_GROUP_GET_SELECTION
call ObjCallInstanceNoLock ; ax = current saver
pop si
jc done
mov cx, ax ; cx = current saver
jcxz done ; no selection
mov ax, MSG_PLOD_CHANGE_SAVER
call ObjCallInstanceNoLock
done:
ret
disable:
call PLODSetForNothingSpecial
mov ax, MSG_IM_DISABLE_SCREEN_SAVER
GOTO PLODCallIM
PLODSetScreenBlank endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODSetTimeout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the screen-saver timeout.
CALLED BY: MSG_PLOD_SET_TIMEOUT
PASS: *ds:si = PrefLODialog object
dx.cx = timeout (minutes)
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLODSetTimeout method dynamic PrefLODialogClass, MSG_PLOD_SET_TIMEOUT
mov ax, MSG_IM_SET_SCREEN_SAVER_DELAY
mov cx, dx ; cx <- time
FALL_THRU PLODCallIM
PLODSetTimeout endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODCallIM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Call the input manager for something.
CALLED BY: (INTERNAL) PLODSetTimeout, PLODSetScreenBlank
PASS: ax = message to send
*ds:si = PrefLODialog object
cx, dx, bp = arguments to same
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLODCallIM proc far
call ImInfoInputProcess
mov di, mask MF_FIXUP_DS
call ObjMessage
ret
PLODCallIM endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODConnect
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Connect to all savers on the "SSAV",0 list.
CALLED BY: (INTERNAL)
PASS: bx = AppLaunchBlock to use (0 if shouldn't launch)
*ds:si = PrefLODialog object
RETURN: carry set if couldn't connect
carry clear if connected:
bp = IACPConnection
DESTROYED: ax, bx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/10/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ssavToken GeodeToken <<'SSAV'>, 0>
PLODConnect proc near
uses cx, dx, es, di
.enter
segmov es, cs
mov di, offset ssavToken
mov cx, ds:[LMBH_handle]
mov dx, si
mov al, mask IACPCF_CLIENT_OD_SPECIFIED
call IACPConnect
.leave
ret
PLODConnect endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODGenerateAppLaunchBlock
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Generate an AppLaunchBlock for the current saver.
CALLED BY: (INTERNAL) PLODChangeSaver
PASS: *ds:si = PrefLODialog object
cx = identifier
RETURN: bx = handle of AppLaunchBlock
DESTROYED: ax, cx
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/10/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLODGenerateAppLaunchBlock proc near
uses dx, si, di, bp, es
.enter
;
; Get the path of the selected item.
;
mov ax, MSG_PREF_TOC_LIST_GET_SELECTED_ITEM_PATH
mov si, offset LOList
call ObjCallInstanceNoLock
;
; Use that to generate the launch block.
;
push ax
call SaverCreateLaunchBlock
;
; Tell it it's the master saver.
;
call MemLock
mov es, ax
mov es:[ALB_extraData], mask SED_NOT_JUST_TESTING or \
(SID_MASTER_SAVER shl offset SED_SAVER_ID)
call MemUnlock
;
; Free the block holding the saver's path.
;
pop ax
xchg ax, bx
call MemFree
mov_tr bx, ax
.leave
ret
PLODGenerateAppLaunchBlock endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODSetForNothingSpecial
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Shut off any current screen saver and make sure the
launcher isn't loaded on startup.
CALLED BY: (INTERNAL) PLODChangeSaver, PLODSetScreenBlank
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 2/ 3/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLODSetForNothingSpecial proc near
.enter
clr bx ; don't launch
call PLODConnect
jc done ; => nothing in autoexec
; either, as we remove it
; whenever we disable things
mov ax, MSG_META_QUIT
clr bx ; no response
call PLODSendMessageToMaster
segmov ds, cs
mov si, offset launcherName
call UserRemoveAutoExec
done:
.leave
ret
PLODSetForNothingSpecial endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODChangeSaver
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell the master saver to change to the selected one.
CALLED BY: MSG_PLOD_CHANGE_SAVER
PASS: *ds:si = PrefLODialog
cx = saver #
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SBCS <launcherName char 'Lights Out Launcher', 0 >
DBCS <launcherName wchar 'Lights Out App', 0 >
PLODChangeSaver method dynamic PrefLODialogClass, MSG_PLOD_CHANGE_SAVER
.enter
jcxz quitMaster
;
; Do nothing if saver not on
;
push si
mov si, offset LOEnableList
mov ax, MSG_GEN_ITEM_GROUP_GET_SELECTION
call ObjCallInstanceNoLock ; ax = selection
pop si
jc done
cmp ax, TRUE ; on?
jne done ; nope
;
; Create an AppLaunchBlock that we use both for launching, and for
; telling an existing master to change.
;
call PLODGenerateAppLaunchBlock
call PLODConnect ; connect, with ourselves
; as the client object
jc done ; couldn't connect
clr cx ; shutdown client end
call IACPShutdown
segmov ds, cs
mov si, offset launcherName
call UserAddAutoExec
done:
.leave
ret
quitMaster:
call PLODSetForNothingSpecial
jmp done
PLODChangeSaver endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODFreeAppLaunchBlock
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Free the given ALB and close the connection
CALLED BY: MSG_PLOD_FREE_APP_LAUNCH_BLOCK
PASS: *ds:si = PrefLODialog object
^hcx = AppLaunchBlock
bp = IACPConnection to close
RETURN:
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/10/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLODFreeAppLaunchBlock method dynamic PrefLODialogClass,
MSG_PLOD_FREE_APP_LAUNCH_BLOCK
.enter
mov bx, cx
call MemFree
clr cx
call IACPShutdown
.leave
ret
PLODFreeAppLaunchBlock endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODApply
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Take care of telling the master saver to reload its options
once we're sure they're all in the file.
CALLED BY: MSG_GEN_APPLY
PASS: *ds:si = PrefLODialog object
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLODApply method dynamic PrefLODialogClass, MSG_GEN_APPLY
.enter
;
; Let superclass ensure everyone has done what they need to.
;
mov di, offset PrefLODialogClass
call ObjCallSuperNoLock
ifdef GPC_VERSION
push ds, si
endif
;
; Now instruct the master saver to do likewise.
;
clr bx ; don't launch
call PLODConnect
jc done
mov ax, MSG_META_LOAD_OPTIONS
clr bx
call PLODSendMessageToMaster
ifdef GPC_VERSION
;
; Bring up a "How it works" db if it's a first time the user turn
; on the feature.
;
pop ds, si
mov ax, ATTR_GEN_INIT_FILE_CATEGORY
call ObjVarFindData
jnc exit ; ds:bx - pointer to category
mov si, bx ; ds:si - category
mov bx, handle HowItWorks
call MemLock
mov cx, ax
mov es, ax
mov di, offset HowItWorks
mov dx, es:[di] ; cx:dx
call InitFileReadBoolean ; cx <- # bytes
jnc foundKey
mov ax, 1
call InitFileWriteBoolean ; cx <- # bytes
mov bx, ds:[OLMBH_header].LMBH_handle
mov si, offset FirstTime
call UserDoDialog
foundKey:
mov bx, handle Strings
call MemUnlock
jmp exit
endif
done:
ifdef GPC_VERSION
pop ds, si
exit:
endif
.leave
ret
PLODApply endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODSendMessageToMaster
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send a message to the master saver via IACP.
CALLED BY: (INTERNAL)
PASS: *ds:si = PrefLODialog object
ax = message to send to master
bx = completion message to send back to us
bp = IACPConnection to use
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di
SIDE EFFECTS: connection is closed if no completion message, else
completion message is expected to shut it down (passed in
bp)
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 12/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLODSendMessageToMaster proc near
.enter
;
; Record the real message to send.
;
push bx, si
clr bx, si
mov di, mask MF_RECORD
call ObjMessage
;
; Change the owner of the recorded message to be the UI so it
; doesn't get nuked if we should exit (ideally this would
; be the owner of the server object, but we can't get to that
; info)
;
mov bx, di
mov ax, handle ui
call HandleModifyOwner
pop ax, si
push di
clr di ; assume no completion msg.
tst ax
jz haveCompletionMsg
;
; Record the completion message using the same (cx, dx, bp) parameters.
;
mov bx, ds:[LMBH_handle]
mov di, mask MF_RECORD
call ObjMessage
haveCompletionMsg:
pop cx
push di
;
; Now record the message we'll send through IACP that ensures what
; we're sending goes only to the master saver.
;
mov ax, MSG_SAVER_APP_DISPATCH_EVENT_IF_MINE
clr bx, si
mov dx, SID_MASTER_SAVER
mov di, mask MF_RECORD
call ObjMessage
;
; Send the message.
;
mov bx, di ; bx <- message to send
pop cx ; cx <- completion message
mov dx, TO_SELF ; dx <- TravelOption
mov ax, IACPS_CLIENT
push cx
call IACPSendMessage
pop cx
jcxz closeConnection
done:
.leave
ret
closeConnection:
call IACPShutdown ; (cx already 0 => client)
jmp done
PLODSendMessageToMaster endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLODSpecBuild
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Figure if we're running on a network and enable or disable
the UseNetPassword list appropriately.
CALLED BY: MSG_SPEC_BUILD
PASS: *ds:si = PrefDialog object
bp = SpecBuildFlags
RETURN: nothing
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 2/ 3/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PLODSpecBuild method dynamic PrefLODialogClass, MSG_SPEC_BUILD
.enter
mov di, offset PrefLODialogClass
CallSuper MSG_SPEC_BUILD
push ds
sub sp, (size NetLoginNameZT)
segmov ds, ss
mov si, sp
mov ax, enum NetUserGetLoginName
call LOCallNetLib
lea sp, ds:[si+(size NetLoginNameZT)]
pop ds
mov ax, MSG_GEN_SET_USABLE
jnc enableDisable
mov ax, MSG_GEN_SET_NOT_USABLE
enableDisable:
mov si, offset UseNetPassword
mov dl, VUM_NOW
push ax
call ObjCallInstanceNoLock
pop ax
cmp ax, MSG_GEN_SET_USABLE
je done
;
; UseNet not usable, so ensure password group is enabled.
;
mov ax, MSG_GEN_SET_ENABLED
mov dl, VUM_NOW
mov si, offset SaverPasswordGroup
call ObjCallInstanceNoLock
done:
.leave
ret
PLODSpecBuild endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LOCallNetLib
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Common code to call the dynamically loaded net library
CALLED BY: PLODSpecBuild()
PASS: ax - enum of net library routine to call
rest depends on function (undefined for NetVerifyUserPassword)
RETURN: carry - set if error
depends on function
DESTROYED: depends on function
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
gene 3/10/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
EC <LocalDefNLString netLibName <"EC Net Library",0> >
NEC <LocalDefNLString netLibName <"Net Library",0> >
LOCallNetLib proc near
uses bx
.enter
;
; Try loading the library
;
push ax, ds, si
call FilePushDir
mov ax, SP_SYSTEM ;ax <- StandardPath
call FileSetStandardPath
segmov ds, cs
mov si, offset netLibName ;ds:si <- library name
clr ax, bx ;ax, bx <- expected protocol
call GeodeUseLibrary
call FilePopDir ;preserves flags
pop ax, ds, si
jc exitError ;branch if error
;
; Call the library
;
push bx
call ProcGetLibraryEntry
call ProcCallFixedOrMovable
pop bx
;
; Unload the library
;
pushf ;save flags from library call
call GeodeFreeLibrary
popf
exitError:
.leave
ret
LOCallNetLib endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrefLODialogDestroy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: Close password and options dialogs on MSG_GEN_REMOVE and
MSG_GEN_DESTROY_AND_FREE_BLOCK
PASS: *ds:si - PrefLODialogClass object
ds:di - PrefLODialogClass instance data
es - dgroup
RETURN: nothing
DESTROYED: ax,cx,dx,bp
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 7/27/94 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrefLODialogDestroy method dynamic PrefLODialogClass,
MSG_GEN_REMOVE,
MSG_GEN_DESTROY_AND_FREE_BLOCK
push ax, si, dx, bp
mov si, offset LOGeneralOptions
call dismissIt
mov si, offset LOContainer
call dismissIt
mov si, offset LOPasswordOptions
call dismissIt
pop ax, si, dx, bp
mov di, offset PrefLODialogClass
call ObjCallSuperNoLock
ret
dismissIt label near
mov ax, MSG_GEN_GUP_INTERACTION_COMMAND
mov cx, IC_DISMISS
call ObjCallInstanceNoLock
retn
PrefLODialogDestroy endm
PrefLOCode ends
| 25.260526 | 80 | 0.575997 |
b712764702da1f7c9322c4a5951e4c9369099c3a | 973 | asm | Assembly | libsrc/graphics/w_xorcircle_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | null | null | null | libsrc/graphics/w_xorcircle_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | null | null | null | libsrc/graphics/w_xorcircle_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | null | null | null | ;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: w_xorcircle_callee.asm $
;
; Usage: xorcircle(int x, int y, int radius, int skip);
SECTION code_graphics
PUBLIC xorcircle_callee
PUBLIC _xorcircle_callee
PUBLIC ASMDISP_XORCIRCLE_CALLEE
EXTERN w_draw_circle
EXTERN w_xorpixel
EXTERN swapgfxbk
EXTERN __graphics_end
.xorcircle_callee
._xorcircle_callee
; de = x0, hl = y0, bc = radius, a = skip
pop af
ex af,af
pop de ; skip
ld a,e
pop bc ;radius
pop hl ; y
pop de ; x
ex af,af
push af
ex af,af
push ix
.asmentry
push af
call swapgfxbk
pop af
ld ix,w_xorpixel
call w_draw_circle
jp __graphics_end
DEFC ASMDISP_XORCIRCLE_CALLEE = asmentry - xorcircle_callee
| 16.216667 | 59 | 0.596095 |
9d9811992992d18cf5d07969930dfbff458792c5 | 6,473 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca.log_21829_242.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca.log_21829_242.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca.log_21829_242.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 %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1d19b, %rax
nop
xor %rsi, %rsi
vmovups (%rax), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r9
nop
nop
nop
cmp %rcx, %rcx
lea addresses_UC_ht+0xa9cb, %rax
nop
nop
nop
nop
sub %rsi, %rsi
mov $0x6162636465666768, %r14
movq %r14, (%rax)
nop
nop
nop
nop
dec %rax
lea addresses_D_ht+0x41db, %rsi
lea addresses_WT_ht+0x575b, %rdi
nop
nop
nop
sub %rdx, %rdx
mov $117, %rcx
rep movsl
nop
nop
sub $49902, %r14
lea addresses_UC_ht+0xb507, %rsi
lea addresses_UC_ht+0xa81b, %rdi
nop
nop
nop
xor %rdx, %rdx
mov $83, %rcx
rep movsb
nop
nop
add %r14, %r14
lea addresses_UC_ht+0x6cc3, %r9
nop
nop
nop
nop
and $32311, %rax
movups (%r9), %xmm4
vpextrq $0, %xmm4, %rsi
and %r9, %r9
lea addresses_D_ht+0x19a0d, %rsi
lea addresses_UC_ht+0xc72f, %rdi
nop
nop
nop
nop
and %r11, %r11
mov $57, %rcx
rep movsl
nop
inc %r9
lea addresses_WC_ht+0x60c3, %rsi
nop
nop
and $31148, %r11
movl $0x61626364, (%rsi)
nop
and %rdi, %rdi
lea addresses_A_ht+0x12ae3, %rdi
and $8540, %r11
movb (%rdi), %r9b
add $64320, %r14
lea addresses_normal_ht+0x389b, %rsi
lea addresses_WC_ht+0xd41b, %rdi
nop
nop
nop
add $18357, %r9
mov $88, %rcx
rep movsl
nop
nop
nop
and $15173, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r9
push %rax
push %rbp
push %rbx
push %rdx
// Store
lea addresses_WT+0x1a81b, %rbp
nop
and %r14, %r14
movw $0x5152, (%rbp)
nop
nop
dec %rdx
// Faulty Load
mov $0x12830000000c1b, %r12
nop
nop
nop
nop
xor $21515, %rbx
movb (%r12), %dl
lea oracles, %r9
and $0xff, %rdx
shlq $12, %rdx
mov (%r9,%rdx,1), %rdx
pop %rdx
pop %rbx
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}}
{'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
*/
| 38.301775 | 2,999 | 0.657655 |
b2930b1821b480285af9aba275160b3054e2cf1c | 5,489 | asm | Assembly | 45/beef/drv/csd/src/genius.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/beef/drv/csd/src/genius.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/beef/drv/csd/src/genius.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | ;*
;* CW : Character Windows Drivers
;*
;* genius.asm : MDS (Micro Display System) Genius CSD
;*****************************************************************************
include csd_head.inc
include csd_data.inc
;*****************************************************************************
include csd_code.asm ;* first part of code
;* * Display modes table
rgdm:
;;;* mode = 7(IBM), 8(MDS)
;* #0 - IBM text mode
DB 0ffh ;* any
DB 0ffh ;* any
DB 7 ;* mode
DW finstText or finstMonoChrome ;* flags
DB 80,25 ;* screen size
DB 2 ;* coMac
DB 0, 0, 0, 0 ;* INFT
DW 0B000H ;* video address
DW 0C0DH ;* cursor
DW 0800H ;* port 3B8/3D8H
Assert <($-rgdm) EQ SIZE DM>
;* #1 - MDS text mode (80 col)
DB 0ffh ;* any
DB 0ffh ;* any
DB 8 ;* mode
DW finstText or finstMonoChrome ;* flags
DB 80,66 ;* screen size
DB 2 ;* coMac
DB 0, 0, 0, 0 ;* INFT
DW 0B000H ;* video address
DW 0D0EH ;* cursor
DW 0800H ;* port 3B8/3D8H
;* #2 - MDS graphics text mode (63 row)
DB 0ffh ;* any
DB 0ffh ;* any
DB 8 ;* mode
DW finstGraphics or finstMonoChrome OR finstFont ;* flags
DB 91,63 ;* screen size
DB 2 ;* coMac
DB 8, 16, 0, 0 ;* INFT
DW 0 ;* video address
DW 0E0FH ;* cursor
DW 0008H ;* port 3B8/3D8H
cdmMax equ ($ - rgdm) / (size DM) ;* # of modes
Genius_Mode EQU 8 ; Special Genius mode for full screen
CRTPort2 EQU 3B0H ; Genius CRT Control Port # 2
MDSMode_Mask EQU 00000001B ; 1 = MDS Mode, 0 = IBM Mode
Upper_Screen EQU 0A000H
Lower_Screen EQU 0B800H
BWModeCtrlReg EQU 3B8H
ColorModeCtrlReg EQU 3D8H
;*****************************************************************************
;* * Special routines
NonStandard ModeGetCur
NonStandard FInitCsd
;*****************************************************************************
;********** ModeGetCur *********
;* entry: n/a
;* * get current machine mode
;* exit: al = mode, ah = ayMac (or 0 if unknown)
cProc ModeGetCur, <NEAR, PUBLIC, ATOMIC>, <ES>
cBegin ModeGetCur
mov dx,3B0h
in al,dx
and al,1
jnz @F
mov ax,1907h ;ibm 80x25 mono
jmp short exitMGCur
@@:
mov ax,40H
mov es,ax
mov ah,es:[0084H] ;* read BIOS rows
inc ah ;* screen height
cmp ah,66 ;MDS text
je @F
cmp ah,63 ;MDS graphics
je @F
mov ah,66 ;* default to text mode
@@:
mov al,8 ;* MDS mode 8
exitMGCur:
cEnd ModeGetCur
;********** FInitCsd **********
;* entry:
;* pinch = near pointer to INCH structure to fill
;* * Initialize the screen to the given mode
;* exit: AX != 0 if ok
cProc FInitCsd, <FAR, PUBLIC, ATOMIC>, <ds,di>
parmDP pinst
parmDP pinch
localB modeCur
localB fInverse
cBegin FInitCsd
mov di,OFF_lpwDataCsd ;* Data in data segment
;* * save old mode
cCall ModeGetCur ;* al = mode, ah = ayMac
mov modeCur,al ;* current mode
mov bx,pinst
cmp ds:[bx].ayMacInst,ah
je @F ;* same resolution
mov modeCur,0 ;* cause mode reset
@@:
;* * set mode
mov [di].pinstDrv,bx
mov bx,ds:[bx].pdmInst ;* CS:BX => DM info
;* * copy mode info into driver globals
mov ax,cs:[bx].vparmCursOnDm
mov [di].vparmCursOn,ax
mov [di].vparmCursSize,ax
mov ax,cs:[bx].wExtraDm
mov [di].wExtra,ax
mov al,cs:[bx].modeDm
cmp al,modeCur
jne @F
jmp initdone ;* don't reset
@@:
mov dx,3B0h
in al,dx
and al,00100000b ;get inverse bit
mov fInverse,al
mov al,cs:[bx].modeDm
xor ah,ah ;* set mode
int 10h
in al,dx
and al,11011111b
or al,fInverse
cmp cs:[bx].modeDm,7
jne @F
cmp fInverse,0
je @F
or al,10h ;clear bottom graphics screen
@@:
out dx,al
mov ax,40H
mov es,ax
mov al,cs:[bx].modeDm
mov byte ptr es:[0049H],al ;* modes
mov al,cs:[bx].ayMacDm
dec al ; rows - 1
mov byte ptr es:[0084H],al ;* update BIOS rows
mov ax,cs:[bx].wExtraDm
mov dx,3D8h
out dx,al
mov al,ah
mov dx,3B8h
out dx,al
xor al,al
cmp cs:[bx].modeDm,7 ;IBM 80x25 text ?
jne @F
mov al,90h ;set double height character
@@:
mov dx,3B1h
out dx,al
test cs:[bx].finstDm,finstGraphics
jz finittext
; KLUDGE ALERT!! Genius designed themselves into a box, so we need to
; communicate with the mouse through the cursor position for
; page 3 (an arbitrarily chosen location, hopefully safe).
mov ax,40H ;IBM segment
mov es,ax
mov al,cs:[bx].modeDm
mov byte ptr es:[50h + (3 * 2)],al ;CURSOR_POSN
initdone:
xor ah,ah
mov al,cs:[bx].dyCharDm
mov [di].ayBox,ax ;* points
mov [di].SEG_lpbFont,cs ;* 8x16 font
mov [di].OFF_lpbFont,drvOffset rgbVectFont8x16
finitdone:
;* * normally the INCH array would be copied (but since it is already
;* * setup in DATA just leave it alone).
;* * Do other diddling
test cs:[bx].finstDm,finstText
jz @F
finittext:
cCall DiddleBlinkBit
@@:
mov ax,sp ;* success
cEnd FInitCsd
;*****************************************************************************
GENIUSCSD = 1
include update2.asm
include vect8x16.inc ;* hard code font table
;*****************************************************************************
include csd_std.asm ;* standard init/term
include csd_ibm.asm ;* IBM specific routines
;*****************************************************************************
include csd_vram.asm ;* default procs for direct video I/O
include csd_save.asm ;* default screen save (none)
;*****************************************************************************
include csd_tail.asm ;* tail file
;*****************************************************************************
END
| 23.063025 | 78 | 0.56932 |
ee90ba7c91d00907499f4e4784b9a21fb84b267a | 496 | asm | Assembly | oeis/134/A134515.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/134/A134515.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/134/A134515.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A134515: Third column (k=2) of triangle A134832 (circular succession numbers).
; Submitted by Christian Krause
; 1,0,0,10,15,168,1008,8244,73125,726440,7939008,94744494,1225760627,17088219120,255365758560,4072255216296,69021889788969,1239055874931312,23484788783212480,468656477004105810,9821896865573503095
add $0,1
mov $1,1
add $1,$0
mov $3,$0
lpb $3
mul $1,$3
mul $2,2
cmp $4,0
add $5,$4
div $1,$5
div $2,-2
add $2,$1
mul $1,$5
sub $3,1
div $4,$5
lpe
mov $0,$2
div $0,2
| 21.565217 | 196 | 0.703629 |
fba5426e9869ebb2b1c317d33c84915e2e10a3f8 | 1,048 | asm | Assembly | scripts/Route12SuperRodHouse.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | scripts/Route12SuperRodHouse.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | scripts/Route12SuperRodHouse.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | Route12SuperRodHouse_Script:
jp EnableAutoTextBoxDrawing
Route12SuperRodHouse_TextPointers:
dw Route12HouseText1
Route12HouseText1:
text_asm
ld a, [wd728]
bit 5, a ; received super rod?
jr nz, .got_item
ld hl, Route12HouseText_564c0
call PrintText
call YesNoChoice
ld a, [wCurrentMenuItem]
and a
jr nz, .refused
lb bc, SUPER_ROD, 1
call GiveItem
jr nc, .bag_full
ld hl, wd728
set 5, [hl] ; received super rod
ld hl, Route12HouseText_564c5
jr .done
.bag_full
ld hl, Route12HouseText_564d9
jr .done
.refused
ld hl, Route12HouseText_564cf
jr .done
.got_item
ld hl, Route12HouseText_564d4
.done
call PrintText
jp TextScriptEnd
Route12HouseText_564c0:
text_far _Route12HouseText_564c0
text_end
Route12HouseText_564c5:
text_far _Route12HouseText_564c5
sound_get_item_1
text_far _Route12HouseText_564ca
text_end
Route12HouseText_564cf:
text_far _Route12HouseText_564cf
text_end
Route12HouseText_564d4:
text_far _Route12HouseText_564d4
text_end
Route12HouseText_564d9:
text_far _Route12HouseText_564d9
text_end
| 18.068966 | 34 | 0.817748 |
a01332178d33763d624ab542b0b7233b4e295add | 677 | asm | Assembly | oeis/075/A075667.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/075/A075667.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/075/A075667.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A075667: Sum of next n 6th powers.
; Submitted by Jon Maiga
; 1,793,66377,1911234,28504515,271739011,1874885963,10136389172,45311985069,173957200405,589679082421,1802148522758,5045944649967,13108508706879,31915866810295,73427944186856,160710828298553,336507487921137,677266380588289,1315464522556810,2474245133557691,4519960379085723,8040262441946307,13958033289760924,23694815743756325,39401656970080301,64280574021022893,103026397942609102,162426773547445159,252167840790600215,385904887030051311,582671357765108688,868716404031526897,1279881024362231369
add $0,1
mov $2,6
mov $5,$0
bin $5,2
lpb $0
mov $4,$0
sub $0,1
add $4,$5
pow $4,$2
add $3,$4
lpe
mov $0,$3
| 39.823529 | 496 | 0.83161 |
95d47466eba9db4e8a8f05b1c63252b7785b00d3 | 21,230 | asm | Assembly | SrlPrs.asm | qynvi/laserturret | ca93024826c6ea4b5efecf7d2f353f3214d1a78d | [
"MIT"
] | null | null | null | SrlPrs.asm | qynvi/laserturret | ca93024826c6ea4b5efecf7d2f353f3214d1a78d | [
"MIT"
] | null | null | null | SrlPrs.asm | qynvi/laserturret | ca93024826c6ea4b5efecf7d2f353f3214d1a78d | [
"MIT"
] | null | null | null | NAME SerialParser
;--------------------------------------------------------------------------------------------------------
; RoboTrike Serial Parsing
;
; Parses commands from the serial port.
;
; Uses the following functions:
;
; InitSP - initializes an initial idle state for the serial parsing routine
; ParseSerialChar - parse the passed character as part of a serial command
;
; In addition, contains the following private function:
;
; GetSPToken - lookup appropriate token for an ASCII value
;
; Also, utilizes the following slave routines;
;
; SRstall - stalls
; SRerror - notify of an error
; SRcommand - queue the current command
; SRdigit - inject a digit onto current value
; SRsign - change sign
; SRmotor - move
; SRlaser - change status of laser
; SRspreset - reset the serial parsing routine
; SRvector - motor velocity
;----------------------------------------------------------------------------------------------------------
;
; Revision History:
; 05/01/09 William Fan
; - Repackage for final release.
; 04/09/09 William Fan
$INCLUDE(srlprs.inc)
; data segment
DATA SEGMENT PUBLIC 'DATA'
CMtrSp DW ? ;current speed of motor0
CMtrAg DW ? ;current angle setting of motors
CMtrOR DW ? ;current orientation of RoboTrike (controlled by a sign)
NomMtrCmd DB ? ;currently parsed motor command tx/rx
NomVal DW ? ;current value for whatever command
CurrentState DB ? ;current state of the state machine
Sign DB ? ;sign indicator
DATA ENDS
; code segment
CODE SEGMENT PUBLIC 'CODE'
ASSUME CS:CODE, DS:DATA
; InitSP
;
; Description:
; Resets the serial parsing routines to initial statse. Initializes current value
; and current sign to 0 and 1 (positive) respectively.
;
; Operation:
; Changes CurrentState, then puts the values in NomVal and Sign.
;
; Arguments: None
; Return Value: None
;
; Local Variables: None
; Shared Variables:
; Global Variables: None
;
; Input: None
; Output: None
;
; Error Handling: None
;
; Algorithms: None
; Data Structures: None
;
; Registers Changed: Flags, AX
; Stack Depth: None
;
; Revision History:
; 04/06/2009 William Fan
InitSP PROC NEAR
PUBLIC InitSP
InitSPVal:
MOV CurrentState, ST_MAIN ;set current state to idle
MOV CMtrSP, 0 ;put initial values in everything
MOV CMtrAg, 0
MOV CMtrOr, 1
InitSPReset:
CALL SRspreset ;reset serial parsing routines
InitSPFin:
RET
InitSP ENDP
; ParseSerialChar
;
; Description:
; The function is passed a character which is presumed to be from the serial input.
; This character is parsed as a serial command using a state machine algorithm, and
; any errors are reported.
;
; Operation:
; Character c passed in AL is fed to state machine for parsing. AL is assumed
; to come from serial port. AX is changed to high or low state based on if there
; was an error in serial parsing. Commands must be valid in value and must be
; punctuated by a return character.
;
; Arguments: [AL] - Character to parse.
; Return Value: [AX] - Error status. (0 = good, > 0 = bad)
;
; Local Variables: None
; Shared Variables: None
; Global Variables:
;
; Input: None
; Output: None
;
; Error Handling:
; For any error, AX will return a nonzero value so the user will know.
;
; Algorithms: State Machine
; Data Structures: None
;
; Limitations: None
;
; Registers Changed: Flags, AX, BX, CX, DX, SI, DI
; Stack Depth: None
;
; Revision History:
; 04/06/2009 William Fan
; 02/24/2005 Glen George (Originally ParseFP)
ParseSerialChar PROC NEAR
PUBLIC ParseSerialChar
InitParsing:
MOV CL, CurrentState ;recall current state of state machine
DoNextToken:
CALL GetSPToken ;retrieve token
MOV DH, AH ;reserve tokens
MOV CH, AL
ComputeTransition:
MOV AL, NUM_TOKEN_TYPES ;load number of different types of tokens
MUL CL ;transform AX into current state
ADD AL, DH ;arithmetic for transition
ADC AH, 0 ;carry into high byte
;now convert into a table offset
IMUL BX, AX, SIZE TRANSITION_ENTRY
DoAction: ;do the action (don't affect regs)
MOV AL, CH ;get token value back for actions
CALL CS:StateTable[BX].ACTION1
DoTransition:
;go to next state
MOV CL, CS:StateTable[BX].NEXTSTATE
MOV CurrentState, CL
RET
ParseSerialChar ENDP
; StateTable
;
; Description:
; This is the state transition table for the state machine.
; Each entry consists of the next state and actions for that
; transition. The rows are associated with the current
; state and the columns with the input type.
;
; Revision History:
; 04/10/2009 William Fan
; - Adapted for my own use from FloatPTD
; 02/24/2005 Glen George
; - Simplified some code in ParseFP.
; - Updated comments.
; 02/26/2003 Glen George
TRANSITION_ENTRY STRUC ;structure used to define table
NEXTSTATE DB ? ;the next state for the transition
ACTION1 DW ? ;first action for the transition
TRANSITION_ENTRY ENDS
;define a macro to make table a little more readable
;macro just does an offset of the action routine entries to build the STRUC
%*DEFINE(TRANSITION(nxtst, act1)) (
TRANSITION_ENTRY< %nxtst, OFFSET(%act1)>
)
StateTable LABEL TRANSITION_ENTRY
;Current State = ST_MAIN Input Token Type
%TRANSITION(ST_LASER, SRdigit) ;TKN_LSRCMD
%TRANSITION(ST_MOVE, SRcommand) ;TKN_MTRCMD
%TRANSITION(ST_ERROR, SRerror) ;TKN_SIGN
%TRANSITION(ST_ERROR, SRerror) ;TKN_NUM
%TRANSITION(ST_ERROR, SRerror) ;TKN_EOC
%TRANSITION(ST_MAIN, SRstall) ;TKN_STALL
%TRANSITION(ST_ERROR, SRerror) ;TKN_MISC
;Current State = ST_MOVE Input Token Type
%TRANSITION(ST_ERROR, SRerror) ;TKN_LSRCMD
%TRANSITION(ST_ERROR, SRerror) ;TKN_MTRCMD
%TRANSITION(ST_SIGN, SRsign) ;TKN_SIGN
%TRANSITION(ST_NUMBER, SRdigit) ;TKN_NUM
%TRANSITION(ST_ERROR, SRerror) ;TKN_EOC
%TRANSITION(ST_MOVE, SRstall) ;TKN_STALL
%TRANSITION(ST_ERROR, SRerror) ;TKN_MISC
;Current State = ST_SIGN Input Token Type
%TRANSITION(ST_ERROR, SRerror) ;TKN_LSRCMD
%TRANSITION(ST_ERROR, SRerror) ;TKN_MTRCMD
%TRANSITION(ST_ERROR, SRerror) ;TKN_SIGN
%TRANSITION(ST_NUMBER, SRdigit) ;TKN_NUM
%TRANSITION(ST_ERROR, SRerror) ;TKN_EOC
%TRANSITION(ST_SIGN, SRstall) ;TKN_STALL
%TRANSITION(ST_ERROR, SRerror) ;TKN_MISC
;Current State = ST_NUMBER Input Token Type
%TRANSITION(ST_ERROR, SRerror) ;TKN_LSRCMD
%TRANSITION(ST_ERROR, SRerror) ;TKN_MTRCMD
%TRANSITION(ST_ERROR, SRerror) ;TKN_SIGN
%TRANSITION(ST_NUMBER, SRdigit) ;TKN_NUM
%TRANSITION(ST_MAIN, SRmotor) ;TKN_EOC
%TRANSITION(ST_NUMBER, SRstall) ;TKN_STALL
%TRANSITION(ST_ERROR, SRerror) ;TKN_MISC
;Current State = ST_LASER Input Token Type
%TRANSITION(ST_ERROR, SRerror) ;TKN_LSRCMD
%TRANSITION(ST_ERROR, SRerror) ;TKN_MTRCMD
%TRANSITION(ST_ERROR, SRerror) ;TKN_SIGN
%TRANSITION(ST_ERROR, SRerror) ;TKN_NUM
%TRANSITION(ST_MAIN, SRlaser) ;TKN_EOC
%TRANSITION(ST_LASER, SRstall) ;TKN_STALL
%TRANSITION(ST_ERROR, SRerror) ;TKN_MISC
;Current State = ST_ERROR Input Token Type
%TRANSITION(ST_ERROR, SRstall) ;TKN_LSRCMD
%TRANSITION(ST_ERROR, SRstall) ;TKN_MTRCMD
%TRANSITION(ST_ERROR, SRstall) ;TKN_SIGN
%TRANSITION(ST_ERROR, SRstall) ;TKN_NUM
%TRANSITION(ST_ERROR, SRstall) ;TKN_EOC
%TRANSITION(ST_ERROR, SRstall) ;TKN_STALL
%TRANSITION(ST_ERROR, SRstall) ;TKN_MISC
; GetSPToken
;
; Description:
; Returns token class and value. Truncate character to 7 bits.
;
; Operation:
; Looks up class in one table and value in another table.
;
; Arguments: [AL] - Character to lookup.
; Return Value: [AL] - Token value.
; [AH] - Token class.
;
; Local Variables: None
; Shared Variables: None
; Global Variables:
;
; Input: None
; Output: None
;
; Error Handling: None
;
; Algorithms: None
; Data Structures: Token value table.
; Token class table.
;
; Limitations: None
;
; Registers Changed: AX, BX
; Stack Depth: None
;
; Revision History:
; 04/06/2009 William Fan
; 02/26/2003 Glen George (Originally GetFPToken)
GetSPToken PROC NEAR
InitGetSerialToken: ;setup for lookups
AND AL, TOKEN_MASK ;strip unused bits (high bit)
MOV AH, AL ;and preserve value in AH
TokenTypeLookup: ;get the token type
MOV BX, OFFSET(TokenTypeTable) ;BX points at table
XLAT CS:TokenTypeTable ;have token type in AL
XCHG AH, AL ;token type in AH, character in AL
TokenValueLookup: ;get the token value
MOV BX, OFFSET(TokenValueTable) ;BX points at table
XLAT CS:TokenValueTable ;have token value in AL
GetSPTokenFin: ;done looking up type and value
RET
GetSPToken ENDP
; Token Tables
;
; Description:
; This creates the tables of token types and token values.
; Each entry corresponds to the token type and the token
; value for a character. Macros are used to actually build
; two separate tables - TokenTypeTable for token types and
; TokenValueTable for token values.
;
; 04/10/2009 William Fan
; - Adapted for my own use from FloatPTD
; 02/24/2005 Glen George
; - Simplified some code in ParseFP.
; - Updated comments.
; 02/26/2003 Glen George
%*DEFINE(TABLE) (
%TABENT(TKN_MISC, 0) ;<null>
%TABENT(TKN_MISC, 1) ;SOH
%TABENT(TKN_MISC, 2) ;STX
%TABENT(TKN_MISC, 3) ;ETX
%TABENT(TKN_MISC, 4) ;EOT
%TABENT(TKN_MISC, 5) ;ENQ
%TABENT(TKN_MISC, 6) ;ACK
%TABENT(TKN_MISC, 7) ;BEL
%TABENT(TKN_MISC, 8) ;backspace
%TABENT(TKN_STALL, 9) ;TAB
%TABENT(TKN_MISC, 10) ;new line
%TABENT(TKN_MISC, 11) ;vertical tab
%TABENT(TKN_MISC, 12) ;form feed
%TABENT(TKN_EOC, 13) ;carriage return - EOC
%TABENT(TKN_MISC, 14) ;SO
%TABENT(TKN_MISC, 15) ;SI
%TABENT(TKN_MISC, 16) ;DLE
%TABENT(TKN_MISC, 17) ;DC1
%TABENT(TKN_MISC, 18) ;DC2
%TABENT(TKN_MISC, 19) ;DC3
%TABENT(TKN_MISC, 20) ;DC4
%TABENT(TKN_MISC, 21) ;NAK
%TABENT(TKN_MISC, 22) ;SYN
%TABENT(TKN_MISC, 23) ;ETB
%TABENT(TKN_MISC, 24) ;CAN
%TABENT(TKN_MISC, 25) ;EM
%TABENT(TKN_MISC, 26) ;SUB
%TABENT(TKN_MISC, 27) ;escape - RESET
%TABENT(TKN_MISC, 28) ;FS
%TABENT(TKN_MISC, 29) ;GS
%TABENT(TKN_MISC, 30) ;AS
%TABENT(TKN_MISC, 31) ;US
%TABENT(TKN_STALL, ' ') ;space
%TABENT(TKN_MISC, '!') ;!
%TABENT(TKN_MISC, '"') ;"
%TABENT(TKN_MISC, '#') ;#
%TABENT(TKN_MISC, '$') ;$
%TABENT(TKN_MISC, 37) ;percent
%TABENT(TKN_MISC, '&') ;&
%TABENT(TKN_MISC, 39) ;'
%TABENT(TKN_MISC, 40) ;open parentheses
%TABENT(TKN_MISC, 41) ;close parentheses
%TABENT(TKN_MISC, '*') ;*
%TABENT(TKN_SIGN, +1) ;+ (positive sign)
%TABENT(TKN_MISC, 44) ;,
%TABENT(TKN_SIGN, -1) ;- (negative sign)
%TABENT(TKN_MISC, 0) ;.
%TABENT(TKN_MISC, '/') ;/
%TABENT(TKN_NUM, 0) ;0 (digit)
%TABENT(TKN_NUM, 1) ;1 (digit)
%TABENT(TKN_NUM, 2) ;2 (digit)
%TABENT(TKN_NUM, 3) ;3 (digit)
%TABENT(TKN_NUM, 4) ;4 (digit)
%TABENT(TKN_NUM, 5) ;5 (digit)
%TABENT(TKN_NUM, 6) ;6 (digit)
%TABENT(TKN_NUM, 7) ;7 (digit)
%TABENT(TKN_NUM, 8) ;8 (digit)
%TABENT(TKN_NUM, 9) ;9 (digit)
%TABENT(TKN_MISC, ':') ;:
%TABENT(TKN_MISC, ';') ;;
%TABENT(TKN_MISC, '<') ;<
%TABENT(TKN_MISC, '=') ;=
%TABENT(TKN_MISC, '>') ;>
%TABENT(TKN_MISC, '?') ;?
%TABENT(TKN_MISC, '@') ;@
%TABENT(TKN_MISC, 'A') ;A
%TABENT(TKN_MISC, 'B') ;B
%TABENT(TKN_MISC, 'C') ;C
%TABENT(TKN_MISC, 'D') ;D
%TABENT(TKN_MISC, 0) ;E
%TABENT(TKN_LSRCMD, 1) ;F - LASER ON
%TABENT(TKN_MISC, 'G') ;G
%TABENT(TKN_MISC, 'H') ;H
%TABENT(TKN_MISC, 'I') ;I
%TABENT(TKN_MISC, 'J') ;J
%TABENT(TKN_MISC, 'K') ;K
%TABENT(TKN_MISC, 'L') ;L
%TABENT(TKN_MISC, 'M') ;M
%TABENT(TKN_MISC, 'N') ;N
%TABENT(TKN_LSRCMD, 0) ;O - LASER OFF
%TABENT(TKN_MISC, 'P') ;P
%TABENT(TKN_MISC, 'Q') ;Q
%TABENT(TKN_MTRCMD, CMD_TRT) ;R - ROTATE TURRET
%TABENT(TKN_MTRCMD, CMD_SPD) ;S - SET SPEED
%TABENT(TKN_MTRCMD, CMD_TURN) ;T - TURN
%TABENT(TKN_MISC, 'U') ;U
%TABENT(TKN_MTRCMD, CMD_RSPD) ;V - SET RELATIVE SPEED
%TABENT(TKN_MISC, 'W') ;W
%TABENT(TKN_MISC, 'X') ;X
%TABENT(TKN_MISC, 'Y') ;Y
%TABENT(TKN_MISC, 'Z') ;Z
%TABENT(TKN_MISC, '[') ;[
%TABENT(TKN_MISC, '\') ;\
%TABENT(TKN_MISC, ']') ;]
%TABENT(TKN_MISC, '^') ;^
%TABENT(TKN_MISC, '_') ;_
%TABENT(TKN_MISC, '`') ;`
%TABENT(TKN_MISC, 'a') ;a
%TABENT(TKN_MISC, 'b') ;b
%TABENT(TKN_MISC, 'c') ;c
%TABENT(TKN_MISC, 'd') ;d
%TABENT(TKN_MISC, 'e') ;e
%TABENT(TKN_LSRCMD, 1) ;f - LASER ON
%TABENT(TKN_MISC, 'g') ;g
%TABENT(TKN_MISC, 'h') ;h
%TABENT(TKN_MISC, 'i') ;i
%TABENT(TKN_MISC, 'j') ;j
%TABENT(TKN_MISC, 'k') ;k
%TABENT(TKN_MISC, 'l') ;l
%TABENT(TKN_MISC, 'm') ;m
%TABENT(TKN_MISC, 'n') ;n
%TABENT(TKN_LSRCMD, 0) ;O - LASER OFF
%TABENT(TKN_MISC, 'p') ;p
%TABENT(TKN_MISC, 'q') ;q
%TABENT(TKN_MTRCMD, CMD_TRT) ;r - ROTATE TURRET
%TABENT(TKN_MTRCMD, CMD_SPD) ;s - SET SPEED
%TABENT(TKN_MTRCMD, CMD_TURN) ;t - TURN
%TABENT(TKN_MISC, 'u') ;u
%TABENT(TKN_MTRCMD, CMD_RSPD) ;v - SET RELATIVE SPEED
%TABENT(TKN_MISC, 'w') ;w
%TABENT(TKN_MISC, 'x') ;x
%TABENT(TKN_MISC, 'y') ;y
%TABENT(TKN_MISC, 'z') ;z
%TABENT(TKN_MISC, '{') ;{
%TABENT(TKN_MISC, '|') ;|
%TABENT(TKN_MISC, '}') ;}
%TABENT(TKN_MISC, '~') ;~
%TABENT(TKN_MISC, 127) ;rubout
)
; token type table - uses first byte of macro table entry
%*DEFINE(TABENT(tokentype, tokenvalue)) (
DB %tokentype
)
TokenTypeTable LABEL BYTE
%TABLE
; token value table - uses second byte of macro table entry
%*DEFINE(TABENT(tokentype, tokenvalue)) (
DB %tokenvalue
)
TokenValueTable LABEL BYTE
%TABLE
; begin secondary functions
; SRspreset
;
; Description:
; Returns serial parser to a default state.
;
; Operation:
; NomVal is zero, sign is 1 (positive).
;
; Revision History:
; 04/01/2009 William Fan
SRspreset PROC NEAR
PUBLIC SRspreset
MOV NomVal, 0
MOV Sign, 1
XOR AX, AX ;clear error bytes
RET
SRspreset ENDP
; SRstall
;
; Description:
; Has no effect.
;
; Operation:
; Clears error bytes.
;
; Revision History
; 04/01/ 2009 William Fan
SRstall PROC NEAR
XOR AX, AX ;clear error bytes
RET
SRstall ENDP
; SRerror
;
; Description:
; Tells user that an error of some sort has occurred.
;
; Operation:
; Changes AX to error value.
;
; Revision History
; 04/01/2009 William Fan
SRerror PROC NEAR
MOV AX, ErrorWord ;set error bytes
RET
SRerror ENDP
; SRcommand
;
; Description:
; Calls motor command based on a lookuped token value.
;
; Operation:
; NomMtrCmd becomes the identified token value.
;
; Revision History
; 04/01/2009 William Fan
SRcommand PROC NEAR
MOV NomMtrCmd, AL
XOR AX, AX ;clear error bytes
RET
SRcommand ENDP
; SRdigit
;
; Description:
; Inject a digit into NomVal by the token.
;
; Operation:
; NomVal x 10, then + token value.
;
; Local Variables: [AX] - accumulator
; [CL] - sign
;
; Registers Changed: Flags, AX, CX, SI
;
; Revision History
; 04/01/2009 William Fan
SRdigit PROC NEAR
MOV CL, Sign
IMUL CL
CBW
MOV CX, AX ;reserve the token and the lookup value in CX
MOV AX, NomVal ;now put current value into AX
MOV SI, 10
IMUL SI ;advance AX by one place value
JC SRdigitError ;carry flag means error because it's too big for some reason
ADD AX, CX ;add token's value to current value
JO SRdigitError ;overflow flag means error because token value is too big somehow
MOV NomVal, AX ;store new value
XOR AX, AX ;clear error bytes
JMP SRdigitFin
SRdigitError:
CALL SRerror ;call error handler
SRdigitFin:
RET
SRdigit ENDP
; SRsign
;
; Description:
; Sets the sign.
;
; Operation:
; Token value reveals absolute or relative turret adjustment. This will
; set sign depending on whether the command wants absolute or relative
; positioning.
;
; Arguments: [AL] - token value
; Registers Changed: Flags, AX
;
; Revision History:
; 04/01/2009 William Fan
SRsign PROC NEAR
CMP NomMtrCmd, CMD_TRT
JNE StoreSign ;if absolute, store sign
MOV NomMtrCmd, CMD_RTRT ;otherwise, set current command to relative turret angle change
StoreSign:
MOV Sign, AL
XOR AX, AX ;clear error bytes
RET
SRsign ENDP
;ref external laser setting function from motor.asm
EXTRN SetLaser:NEAR
; SRlaser
;
; Description:
; Based on command from the token value, sets laser on/off.
;
; Operation:
; Call external function SetLaser then reset state machine.
;
; Registers Changed: AX
;
; Revision History:
; 04/01/2009 William Fan
SRlaser PROC NEAR
MOV AX, NomVal
CALL SetLaser ;NomVal = 1 turns laser on, else off
CALL SRspreset ;after, need to reset state machine
RET
SRlaser ENDP
;ref external motor functions from motor.asm
EXTRN SetMotorSpeed:NEAR
EXTRN SetTurretAngle:NEAR
EXTRN SetRelTurretAngle:NEAR
; SRmotor
;
; Description:
; Takes action depending on NomMtrCmd.
;
; Operation:
; NomMtrCmd calls motor functions based on the command, whether it is relative,
; and if it refers to the PWM motors or the stepper.
;
; Stack Depth: 1 byte
;
; Revision History:
; 04/01/2009 William Fan
SRmotor PROC NEAR
PUSH BX ;reserve BX
MOV AL, NomMtrCmd ;store nominal command in AL
CMP AL, CMD_SPD
JNE RSPD ;if not a speed command, skip
CALL SRvector ;else, call vector setting SR
JMP SRmotorNE
RSPD:
CMP AL, CMD_RSPD
JNE Turn ;if not relative speed command, skip
MOV AX, CMtrSp
ADD NomVal, AX
JO SRmotorE ;overflow means serious problems
CALL SRvector ;set vector
JMP SRmotorNE
Turn:
CMP AL, CMD_TURN
JNE TRT ;if not a turn command, skip
MOV BX, NomVal
ADD BX, CMtrAg
JO SRmotorE ;overflow implies serious problems
MOV CMtrAg, BX ;store the new angle
MOV AX, 0FFFFh ;store null speed value in AX (one of the args for SetMotorSpeed)
CALL SetMotorSpeed ;set the new motor velocity
JMP SRmotorNE
TRT:
CMP AL, CMD_TRT
JNE RTRT ;if not a turret setting command, skip
MOV AX, NomVal
CALL SetTurretAngle ;call stepper
JMP SRmotorNE
RTRT:
CMP AL, CMD_RTRT
JNE SRmotorFin ;if not relative turret command, skip
MOV AX, NomVal
CALL SetRelTurretAngle ;call relative stepper
JMP SRmotorNE
SRmotorNE: ;no errors
CALL SRspreset ;reset serial parser to default
JMP SRmotorFin
SRmotorE: ;error, bad
CALL SRspreset ;reset serial parser to default
CALL SRerror
;JMP SRmotorFin
SRmotorFin:
POP BX ;restore BX
RET
SRmotor ENDP
; SRvector
;
; Description:
; NomVal defines RoboTrike vector heading and magnitude.
;
; Operation:
; Calls SetMotorSpeed from external to set speed and heading. If NomVal is
; negative, rotates by 180 first to go backwards from relative position.
;
; Registers Changed: AX, BX
;
; Revision History:
; 04/02/2009 William Fan
SRvector PROC NEAR
MOV AX, NomVal
MOV CMtrSp, AX ;load current speed
MOV BX, -32768 ;load angle null change value
IMUL CMtrOr
CMP AX, 0 ;do we need to flip the trike?
JGE SRvectorSet ;call function to set vector with args
;JL SRvectorNEG ;first rotate the heading, then call function to set vector
SRvectorNEG:
ADD CMtrAg, 180 ;180 flip
NEG AX ;remove sign from AX
NEG CMtrOr ;reverse the direction
MOV BX, CMtrAg ;store new motor angle
SRvectorSet:
CALL SetMotorSpeed ;SetMotorSpeed(NomVal, BX)
RET
SRvector ENDP
CODE ENDS
END
| 28.382353 | 108 | 0.621667 |
f8b919a9a43d02a823a8829551c32e8e437be79c | 7,055 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_444.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_444.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_444.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 %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x973c, %r15
nop
nop
add %rsi, %rsi
mov (%r15), %ebx
nop
and $43785, %r8
lea addresses_normal_ht+0x1dcc, %rsi
lea addresses_normal_ht+0x220c, %rdi
nop
cmp $8366, %r8
mov $61, %rcx
rep movsw
add $57953, %rbx
lea addresses_UC_ht+0x25cc, %rdi
nop
cmp $6910, %r11
vmovups (%rdi), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rcx
nop
nop
add %r15, %r15
lea addresses_D_ht+0x75cc, %r8
nop
nop
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm1
and $0xffffffffffffffc0, %r8
movaps %xmm1, (%r8)
nop
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_WC_ht+0x1effc, %rcx
nop
nop
nop
inc %rdi
movw $0x6162, (%rcx)
nop
nop
xor %rbx, %rbx
lea addresses_WT_ht+0x13ccc, %rsi
lea addresses_normal_ht+0x111cc, %rdi
cmp %r12, %r12
mov $46, %rcx
rep movsl
nop
inc %r8
lea addresses_UC_ht+0x51cc, %r8
nop
nop
lfence
mov (%r8), %rdi
nop
nop
add $32340, %rdi
lea addresses_A_ht+0x18d2c, %rsi
lea addresses_WC_ht+0x15fb4, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp %r11, %r11
mov $34, %rcx
rep movsb
nop
nop
nop
nop
nop
and $30533, %r11
lea addresses_UC_ht+0x55cc, %r11
nop
nop
nop
xor %rcx, %rcx
mov $0x6162636465666768, %rbx
movq %rbx, %xmm5
vmovups %ymm5, (%r11)
nop
nop
nop
cmp %r15, %r15
lea addresses_normal_ht+0x66cc, %rbx
sub %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, (%rbx)
cmp %r12, %r12
lea addresses_normal_ht+0x19cc, %rsi
lea addresses_UC_ht+0x8d4c, %rdi
nop
xor $1649, %r12
mov $77, %rcx
rep movsq
nop
dec %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r8
push %r9
push %rbx
// Store
lea addresses_A+0x15ccc, %r8
nop
nop
nop
nop
nop
xor $56657, %rbx
mov $0x5152535455565758, %r9
movq %r9, (%r8)
nop
nop
nop
dec %r14
// Faulty Load
lea addresses_WT+0x161cc, %r10
nop
nop
nop
nop
sub %r9, %r9
movb (%r10), %r8b
lea oracles, %r10
and $0xff, %r8
shlq $12, %r8
mov (%r10,%r8,1), %r8
pop %rbx
pop %r9
pop %r8
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 7, 'size': 8, 'same': False, 'NT': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 10, 'size': 16, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_UC_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
*/
| 36.744792 | 2,999 | 0.659674 |
1d092edf559a8d73c1dc9e7492fd10338d418828 | 4,772 | asm | Assembly | constants/audio_constants.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | constants/audio_constants.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | constants/audio_constants.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | ; pitch
; FrequencyTable indexes (see audio/notes.asm)
const_def
const __ ; 0
const C_ ; 1
const C# ; 2
const D_ ; 3
const D# ; 4
const E_ ; 5
const F_ ; 6
const F# ; 7
const G_ ; 8
const G# ; 9
const A_ ; a
const A# ; b
const B_ ; c
const CC ; d (used for pitchoffset)
; channel
; ChannelPointers indexes (see audio/engine.asm)
const_def
const CHAN1 ; 0
const CHAN2 ; 1
const CHAN3 ; 2
const CHAN4 ; 3
NUM_MUSIC_CHANS EQU const_value
const CHAN5 ; 4
const CHAN6 ; 5
const CHAN7 ; 6
const CHAN8 ; 7
NUM_NOISE_CHANS EQU const_value - NUM_MUSIC_CHANS
NUM_CHANNELS EQU const_value
; channel_struct members (see macros/wram.asm)
CHANNEL_MUSIC_ID EQUS "(wChannel1MusicID - wChannel1)"
CHANNEL_MUSIC_BANK EQUS "(wChannel1MusicBank - wChannel1)"
CHANNEL_FLAGS1 EQUS "(wChannel1Flags1 - wChannel1)"
CHANNEL_FLAGS2 EQUS "(wChannel1Flags2 - wChannel1)"
CHANNEL_FLAGS3 EQUS "(wChannel1Flags3 - wChannel1)"
CHANNEL_MUSIC_ADDRESS EQUS "(wChannel1MusicAddress - wChannel1)"
CHANNEL_LAST_MUSIC_ADDRESS EQUS "(wChannel1LastMusicAddress - wChannel1)"
CHANNEL_NOTE_FLAGS EQUS "(wChannel1NoteFlags - wChannel1)"
CHANNEL_CONDITION EQUS "(wChannel1Condition - wChannel1)"
CHANNEL_DUTY_CYCLE EQUS "(wChannel1DutyCycle - wChannel1)"
CHANNEL_INTENSITY EQUS "(wChannel1Intensity - wChannel1)"
CHANNEL_FREQUENCY EQUS "(wChannel1Frequency - wChannel1)"
CHANNEL_PITCH EQUS "(wChannel1Pitch - wChannel1)"
CHANNEL_OCTAVE EQUS "(wChannel1Octave - wChannel1)"
CHANNEL_PITCH_OFFSET EQUS "(wChannel1PitchOffset - wChannel1)"
CHANNEL_NOTE_DURATION EQUS "(wChannel1NoteDuration - wChannel1)"
CHANNEL_FIELD16 EQUS "(wChannel1Field16 - wChannel1)"
CHANNEL_LOOP_COUNT EQUS "(wChannel1LoopCount - wChannel1)"
CHANNEL_TEMPO EQUS "(wChannel1Tempo - wChannel1)"
CHANNEL_TRACKS EQUS "(wChannel1Tracks - wChannel1)"
CHANNEL_SFX_DUTY_LOOP EQUS "(wChannel1SFXDutyLoop - wChannel1)"
CHANNEL_VIBRATO_DELAY_COUNT EQUS "(wChannel1VibratoDelayCount - wChannel1)"
CHANNEL_VIBRATO_DELAY EQUS "(wChannel1VibratoDelay - wChannel1)"
CHANNEL_VIBRATO_EXTENT EQUS "(wChannel1VibratoExtent - wChannel1)"
CHANNEL_VIBRATO_RATE EQUS "(wChannel1VibratoRate - wChannel1)"
CHANNEL_PITCH_WHEEL_TARGET EQUS "(wChannel1PitchWheelTarget - wChannel1)"
CHANNEL_PITCH_WHEEL_AMOUNT EQUS "(wChannel1PitchWheelAmount - wChannel1)"
CHANNEL_PITCH_WHEEL_AMOUNT_FRACTION EQUS "(wChannel1PitchWheelAmountFraction - wChannel1)"
CHANNEL_FIELD25 EQUS "(wChannel1Field25 - wChannel1)"
CHANNEL_CRY_PITCH EQUS "(wChannel1CryPitch - wChannel1)"
CHANNEL_FIELD29 EQUS "(wChannel1Field29 - wChannel1)"
CHANNEL_FIELD2A EQUS "(wChannel1Field2a - wChannel1)"
CHANNEL_FIELD2C EQUS "(wChannel1Field2c - wChannel1)"
CHANNEL_NOTE_LENGTH EQUS "(wChannel1NoteLength - wChannel1)"
CHANNEL_FIELD2E EQUS "(wChannel1Field2e - wChannel1)"
CHANNEL_FIELD2F EQUS "(wChannel1Field2f - wChannel1)"
CHANNEL_FIELD30 EQUS "(wChannel1Field30 - wChannel1)"
CHANNEL_STRUCT_LENGTH EQUS "(wChannel2 - wChannel1)"
NOISE_CHAN_F EQU 2 ; bit set in CHAN5-CHAN7
; Flags1
const_def
const SOUND_CHANNEL_ON ; 0
const SOUND_SUBROUTINE ; 1
const SOUND_LOOPING ; 2
const SOUND_SFX ; 3
const SOUND_NOISE ; 4
const SOUND_REST ; 5
; Flags2
const_def
const SOUND_VIBRATO ; 0
const SOUND_PITCH_WHEEL ; 1
const SOUND_DUTY ; 2
const SOUND_UNKN_0B ; 3
const SOUND_CRY_PITCH ; 4
const SOUND_UNKN_0D ; 5
const SOUND_UNKN_0E ; 6
const SOUND_UNKN_0F ; 7
; Flags3
const_def
const SOUND_VIBRATO_DIR ; 0
const SOUND_PITCH_WHEEL_DIR ; 1
; NoteFlags
const_def
const NOTE_DUTY_OVERRIDE ; 0
const NOTE_FREQ_OVERRIDE ; 1
const NOTE_UNUSED ; 2
const NOTE_UNKN_3 ; 3
const NOTE_NOISE_SAMPLING ; 4
const NOTE_REST ; 5
const NOTE_VIBRATO_OVERRIDE ; 6
; wVolume
VOLUME_SO1_F EQU 3
VOLUME_SO2_F EQU 7
VOLUME_SO1_LEVEL EQU %00000111
VOLUME_SO2_LEVEL EQU %01110000
MAX_VOLUME EQU $77
; wSoundInput
SOUND_INPUT_CH1_F EQU 0
SOUND_INPUT_CH2_F EQU 1
SOUND_INPUT_CH3_F EQU 2
SOUND_INPUT_CH4_F EQU 3
SOUND_INPUT_GLOBAL_F EQU 7
; wLowHealthAlarm
DANGER_PITCH_F EQU 4
DANGER_ON_F EQU 7
; wMusicFade
MUSIC_FADE_IN_F EQU 7
| 36.427481 | 90 | 0.672674 |
8fc00e99fccb10f64568c3696dd2762410abdd70 | 7,599 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_462.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_462.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_462.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x15c85, %rax
nop
nop
nop
sub $54794, %rcx
mov $0x6162636465666768, %r9
movq %r9, %xmm1
vmovups %ymm1, (%rax)
nop
nop
add $14611, %r11
lea addresses_WT_ht+0x1e92, %r10
nop
sub $33572, %r12
movups (%r10), %xmm0
vpextrq $0, %xmm0, %r15
nop
and %r15, %r15
lea addresses_WC_ht+0x13d2, %rsi
lea addresses_normal_ht+0xf492, %rdi
nop
nop
sub $5505, %r12
mov $112, %rcx
rep movsw
nop
nop
dec %rcx
lea addresses_UC_ht+0x3c7b, %rsi
lea addresses_UC_ht+0x9252, %rdi
nop
nop
nop
and $60089, %r15
mov $25, %rcx
rep movsq
nop
nop
nop
add $50468, %r9
lea addresses_D_ht+0x907a, %rsi
lea addresses_UC_ht+0x1ddd2, %rdi
nop
nop
nop
nop
cmp %r10, %r10
mov $24, %rcx
rep movsb
nop
nop
sub $18108, %r10
lea addresses_D_ht+0x7fa8, %rax
clflush (%rax)
nop
cmp $8754, %r9
mov $0x6162636465666768, %rcx
movq %rcx, (%rax)
nop
sub $37583, %rsi
lea addresses_normal_ht+0xbd2, %r12
nop
xor %rdi, %rdi
movb $0x61, (%r12)
nop
nop
nop
nop
cmp %rax, %rax
lea addresses_A_ht+0x6052, %r11
nop
nop
nop
sub $48962, %r12
vmovups (%r11), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %rax
nop
nop
nop
and %r12, %r12
lea addresses_A_ht+0xa252, %rsi
lea addresses_A_ht+0x4a92, %rdi
nop
nop
nop
nop
nop
and $20468, %r11
mov $105, %rcx
rep movsl
nop
nop
inc %rax
lea addresses_UC_ht+0xedd2, %rcx
nop
nop
nop
nop
and %r10, %r10
mov (%rcx), %r11w
nop
nop
nop
nop
add %r15, %r15
lea addresses_UC_ht+0x18fc2, %rax
sub $42249, %rcx
movw $0x6162, (%rax)
nop
nop
nop
nop
nop
mfence
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
// Store
lea addresses_RW+0xde5a, %rdi
nop
nop
nop
nop
sub $34574, %r15
movw $0x5152, (%rdi)
nop
nop
nop
nop
add %rcx, %rcx
// Store
lea addresses_RW+0x16a35, %r11
add %r15, %r15
mov $0x5152535455565758, %rbx
movq %rbx, (%r11)
nop
cmp $65127, %rbx
// Store
lea addresses_WT+0x18412, %r11
nop
nop
nop
nop
nop
sub $9007, %rbx
mov $0x5152535455565758, %r15
movq %r15, %xmm7
movups %xmm7, (%r11)
nop
nop
nop
cmp %r15, %r15
// Faulty Load
lea addresses_WT+0xd5d2, %r15
nop
sub %r10, %r10
mov (%r15), %bp
lea oracles, %rcx
and $0xff, %rbp
shlq $12, %rbp
mov (%rcx,%rbp,1), %rbp
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_RW', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WT', 'size': 16, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': True}}
{'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'src': {'same': True, 'congruent': 11, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 33.328947 | 2,999 | 0.656797 |
874569739a8f4d08daf3bc0196137b8a4f35ddf6 | 1,076 | asm | Assembly | programs/oeis/198/A198762.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/198/A198762.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/198/A198762.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A198762: 3*5^n-1= 2*A057651(n).
; 2,14,74,374,1874,9374,46874,234374,1171874,5859374,29296874,146484374,732421874,3662109374,18310546874,91552734374,457763671874,2288818359374,11444091796874,57220458984374,286102294921874,1430511474609374,7152557373046874,35762786865234374,178813934326171874,894069671630859374,4470348358154296874,22351741790771484374,111758708953857421874,558793544769287109374,2793967723846435546874,13969838619232177734374,69849193096160888671874,349245965480804443359374,1746229827404022216796874,8731149137020111083984374,43655745685100555419921874,218278728425502777099609374,1091393642127513885498046874,5456968210637569427490234374,27284841053187847137451171874,136424205265939235687255859374,682121026329696178436279296874,3410605131648480892181396484374,17053025658242404460906982421874,85265128291212022304534912109374,426325641456060111522674560546874,2131628207280300557613372802734374,10658141036401502788066864013671874,53290705182007513940334320068359374,266453525910037569701671600341796874
mov $1,5
pow $1,$0
mul $1,3
sub $1,1
mov $0,$1
| 119.555556 | 993 | 0.916357 |
c5186fd53afb0dcb60bcecd2446d07e65f90c9cd | 1,140 | asm | Assembly | 4rth-Sem-Ise/Microprocessors -X86-/binsearch.asm | mvnsia/4th_Sem_Ise | d1e75bf16ff1ee5ded3fa2832017098f86670a18 | [
"MIT"
] | null | null | null | 4rth-Sem-Ise/Microprocessors -X86-/binsearch.asm | mvnsia/4th_Sem_Ise | d1e75bf16ff1ee5ded3fa2832017098f86670a18 | [
"MIT"
] | null | null | null | 4rth-Sem-Ise/Microprocessors -X86-/binsearch.asm | mvnsia/4th_Sem_Ise | d1e75bf16ff1ee5ded3fa2832017098f86670a18 | [
"MIT"
] | null | null | null | assume cs:code,ds:data
data segment
a db 10h,20h,30h,40h,50h ; Sorting only bytes.
n db n-a
key db 20h
msg1 db "Key not found$"
msg2 db "Key found at position: "
pos db ?,"$" ; $ indicates till where message is supposed to be printed
data ends
code segment
start:
mov ax,data
mov ds,ax
mov al,0 ; low
mov dl,n
dec dl ; high = n-1
again:
cmp al,dl
ja failed
mov cl,al
add al,dl ; low + high
shr al,1 ; mid
mov ah,00h
mov si,ax
mov bl,[si] ; [mid] in bl
cmp bl,key
jae loc1 ; [mid] >= key ?
inc al ; no, low = mid+1, to search in second half
jmp again
loc1:
je success ; [mid] = key ?
dec al ; no, high = mid – 1, to search in first half
mov dl,al
mov al,cl
jmp again
failed:
lea dx,msg1 ; key not found
jmp display
success:
inc al
add al,30h ; store ASCII value at pos.
lea dx,msg2
display:
mov ah,9
int 21h
mov ah,4ch
int 21h
code ends
end start
| 20.727273 | 74 | 0.513158 |
c580d4f2b2ced8050a5b351f52394af1e198d3e0 | 407 | asm | Assembly | programs/oeis/067/A067187.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/067/A067187.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/067/A067187.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A067187: Numbers that can be expressed as the sum of two primes in exactly one way.
; 4,5,6,7,8,9,12,13,15,19,21,25,31,33,39,43,45,49,55,61,63,69,73,75,81,85,91,99,103,105,109,111,115,129,133,139,141,151,153,159,165,169,175,181,183,193,195,199,201,213,225,229,231,235,241,243,253,259,265,271
mov $1,$0
sub $0,6
max $0,1
add $0,$1
seq $0,173919 ; Numbers that are prime or one less than a prime.
add $0,2
| 40.7 | 207 | 0.700246 |
fe8e4a955949e2ff8a4d60d5df3f88fdef67adc1 | 3,142 | asm | Assembly | source/main/evaluate/unary/event.asm | paulscottrobson/6502-basic | d4c360041bfa49427a506465e58bb0ef94beaa44 | [
"MIT"
] | 3 | 2021-09-30T19:34:11.000Z | 2021-10-31T06:55:50.000Z | source/main/evaluate/unary/event.asm | paulscottrobson/6502-Basic | d4c360041bfa49427a506465e58bb0ef94beaa44 | [
"MIT"
] | null | null | null | source/main/evaluate/unary/event.asm | paulscottrobson/6502-Basic | d4c360041bfa49427a506465e58bb0ef94beaa44 | [
"MIT"
] | 1 | 2021-12-07T21:58:44.000Z | 2021-12-07T21:58:44.000Z | ; ************************************************************************************************
; ************************************************************************************************
;
; Name: event.asm
; Purpose: Event() function
; Created: 3rd March 2021
; Reviewed: 7th March 2021
; Author: Paul Robson (paul@robsons.org.uk)
;
; ************************************************************************************************
; ************************************************************************************************
.section code
; ************************************************************************************************
;
; EVENT(<lexpr>,<time>) handler
;
; ************************************************************************************************
EventFunction: ;; [event(]
jsr EvaluateReference ; get the variable reference that tracks the event
lda esType,x
cmp #$80 ; must be integer reference
bne _EFType
jsr CheckComma
inx
jsr EvaluateInteger ; get the elapsed time between firing.
jsr CheckRightParen ; finish off with the right bracket
dex
;
lda esInt1,x ; check max of 32767, we use 16 bit for timers and
and #$80 ; it doesn't work > 32767
ora esInt2,x
ora esInt3,x
bne _EFValue
;
.pshy ; get time -> temp1
.pshx
.device_timer
sty temp1+1
sta temp1
.pulx ; restore X.
;
jsr TOSToTemp0 ; set temp0 to the address of the event variable
ldy #3 ; if -ve
lda (temp0),y
bmi _EFFail ; straight out with fail, means "on pause".
;
ldy #0 ; is the fire time zero ?
lda (temp0),y
iny
ora (temp0),y
beq _EFInitialise ; if so, initialise the value but return false.
;
ldy #0 ; calculate trigger - timer
sec
lda (temp0),y
sbc temp1
iny
lda (temp0),y
sbc temp1+1
bpl _EFFail ; if trigger >= timer then return False
;
jsr SetEventTimer ; reset the timer for next time.
jsr MInt32True ; and treutn true as fired.
.puly
rts
;
_EFInitialise:
jsr SetEventTimer ; set trigger time to time + elapsed
_EFFail:
.puly
jsr MInt32False
rts
_EFValue:
.throw BadValue
_EFType:
.throw BadType
;
; Add the event rate to the current clock value.
;
SetEventTimer:
ldy #0
clc
lda temp1
adc esInt0+1,x
sta (temp0),y
iny
lda temp1+1
adc esInt1+1,x
sta (temp0),y
;
dey
ora (temp0),y ; if the result is non zero, exit
bne _SETExit ; zero means initialise.....
lda #1 ; timer zero won't work, so make it 1, which is
sta (temp0),y ; near enough.
_SETExit:
rts
.send code
; ************************************************************************************************
;
; Changes and Updates
;
; ************************************************************************************************
;
; Date Notes
; ==== =====
; 07-Mar-21 Pre code read v0.01
;
; ************************************************************************************************
| 26.627119 | 98 | 0.430617 |
16fb86ea306bcceead48866f5ec3efb26273c421 | 776 | asm | Assembly | oeis/135/A135261.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/135/A135261.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/135/A135261.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A135261: a(n) = 3*A131090(n) - A131090(n+1).
; Submitted by Jon Maiga
; -1,3,-1,2,-1,5,6,17,27,58,111,229,454,913,1819,3642,7279,14565,29126,58257,116507,233018,466031,932069,1864134,3728273,7456539,14913082,29826159,59652325,119304646,238609297,477218587,954437178,1908874351,3817748709,7635497414,15270994833,30541989659,61083979322,122167958639,244335917285,488671834566,977343669137,1954687338267,3909374676538,7818749353071,15637498706149,31274997412294,62549994824593,125099989649179,250199979298362,500399958596719,1000799917193445,2001599834386886
mov $2,$0
mov $4,2
lpb $4
mov $0,$2
sub $4,1
add $0,$4
max $0,0
seq $0,135259 ; a(n) = 3*A131666(n) - A131666(n+1).
mov $3,$0
mov $5,$4
mul $5,$0
add $1,$5
lpe
min $2,1
mul $2,$3
sub $1,$2
mov $0,$1
| 35.272727 | 485 | 0.746134 |
bfa0623398d8329cb7f68137a31aff04b6fa7873 | 7,885 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_101.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_101.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_101.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x15035, %r8
nop
nop
nop
sub $31929, %r12
movl $0x61626364, (%r8)
nop
add $10134, %rdx
lea addresses_UC_ht+0x15e35, %rsi
lea addresses_WC_ht+0x1cae5, %rdi
nop
nop
nop
nop
cmp %r10, %r10
mov $77, %rcx
rep movsw
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_A_ht+0x5cd5, %rsi
lea addresses_normal_ht+0x18c35, %rdi
nop
nop
nop
nop
nop
and $32958, %r15
mov $51, %rcx
rep movsb
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_UC_ht+0x13135, %r12
nop
cmp $36317, %rdx
mov (%r12), %esi
xor %r15, %r15
lea addresses_normal_ht+0x5dcb, %rdx
nop
nop
nop
nop
cmp %r12, %r12
movb (%rdx), %r10b
nop
nop
nop
xor %r12, %r12
lea addresses_WT_ht+0x66b5, %r15
xor $3605, %r8
movb $0x61, (%r15)
nop
nop
nop
nop
nop
and %r15, %r15
lea addresses_UC_ht+0xde35, %rsi
lea addresses_UC_ht+0xce2b, %rdi
nop
nop
nop
nop
nop
add $1344, %rdx
mov $36, %rcx
rep movsw
nop
nop
nop
cmp %r10, %r10
lea addresses_WT_ht+0x140b5, %rdi
nop
nop
cmp %r15, %r15
vmovups (%rdi), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %rdx
nop
nop
nop
nop
nop
cmp %r10, %r10
lea addresses_UC_ht+0xb835, %rsi
lea addresses_UC_ht+0x8835, %rdi
cmp %r10, %r10
mov $86, %rcx
rep movsq
nop
nop
cmp $15516, %rdi
lea addresses_UC_ht+0xdd35, %r10
nop
nop
nop
nop
nop
inc %rdi
and $0xffffffffffffffc0, %r10
vmovntdqa (%r10), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %r8
nop
nop
cmp %r8, %r8
lea addresses_A_ht+0x17835, %rsi
lea addresses_UC_ht+0x15535, %rdi
nop
nop
nop
nop
sub $56897, %rdx
mov $100, %rcx
rep movsb
and %r10, %r10
lea addresses_normal_ht+0x16635, %rsi
lea addresses_WT_ht+0x8ed5, %rdi
nop
nop
cmp $51472, %rdx
mov $117, %rcx
rep movsq
nop
cmp %r10, %r10
lea addresses_WC_ht+0x1668f, %r8
nop
nop
nop
xor %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, (%r8)
nop
xor %r12, %r12
lea addresses_A_ht+0x73f5, %rdi
nop
nop
nop
nop
nop
cmp %rsi, %rsi
vmovups (%rdi), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rdx
nop
cmp $10185, %rcx
lea addresses_WC_ht+0x73b5, %rsi
nop
nop
inc %rcx
movb (%rsi), %r8b
cmp $17629, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %r9
push %rbp
push %rdx
// Faulty Load
lea addresses_PSE+0x9e35, %rbp
nop
and $56835, %r12
mov (%rbp), %r9
lea oracles, %r12
and $0xff, %r9
shlq $12, %r9
mov (%r12,%r9,1), %r9
pop %rdx
pop %rbp
pop %r9
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_PSE', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_PSE', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 4}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 1, 'type': 'addresses_normal_ht', 'congruent': 1}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 4}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 2}}
{'dst': {'same': False, 'congruent': 8, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 6}}
{'dst': {'same': False, 'congruent': 8, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 1}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 4}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 34.432314 | 2,999 | 0.658212 |
85cd6dc183166e2fa030403aa14a4363a49f5bb0 | 151 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrcup.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 38 | 2021-06-18T12:56:15.000Z | 2022-03-12T20:38:40.000Z | libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrcup.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 2 | 2021-06-20T16:28:12.000Z | 2021-11-17T21:33:56.000Z | libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrcup.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 6 | 2021-06-18T18:18:36.000Z | 2021-12-22T08:01:32.000Z |
; void *zx_saddrcup(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC zx_saddrcup
EXTERN asm_zx_saddrcup
defc zx_saddrcup = asm_zx_saddrcup
| 12.583333 | 34 | 0.821192 |
bad75b496f8c611fc6a0bb6aeeba0f7b28cb73e7 | 621 | asm | Assembly | oeis/059/A059839.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/059/A059839.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/059/A059839.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A059839: a(n) = n^8 + n^6 + n^4 + n^2 + 1.
; 1,5,341,7381,69905,406901,1727605,5884901,17043521,43584805,101010101,216145205,432988561,820586261,1483357205,2574332101,4311810305,6999978821,11054078101,17030739605,25664160401,37908820405,54989488181,78459301541,110266749505,152832422501,209136438005,282817489141,378284504081,500841944405,656829810901,853779465605,1100586419201,1407701273221,1787340046805,2253715158101,2823288370705,3515047055861,4350805161461,5355530319205,6557698561601,7989678160805,9688144141621,11694525061301
pow $0,2
mov $2,$0
pow $2,3
add $2,$0
add $0,1
mul $0,$2
div $0,4
mul $0,4
add $0,1
| 47.769231 | 490 | 0.818035 |
7f2004985822d8ea2af45387c561fa828d2aa566 | 53,589 | asm | Assembly | Practica18/Codigo/Debug/List/P18.asm | YosafatM/Microcontroladores | 1f13f0bbe45db27e2f67827120fdf43c45b84f54 | [
"MIT"
] | null | null | null | Practica18/Codigo/Debug/List/P18.asm | YosafatM/Microcontroladores | 1f13f0bbe45db27e2f67827120fdf43c45b84f54 | [
"MIT"
] | null | null | null | Practica18/Codigo/Debug/List/P18.asm | YosafatM/Microcontroladores | 1f13f0bbe45db27e2f67827120fdf43c45b84f54 | [
"MIT"
] | null | null | null |
;CodeVisionAVR C Compiler V3.46a
;(C) Copyright 1998-2021 Pavel Haiduc, HP InfoTech S.R.L.
;http://www.hpinfotech.ro
;Build configuration : Debug
;Chip type : ATmega8535
;Program type : Application
;Clock frequency : 1.000000 MHz
;Memory model : Small
;Optimize for : Size
;(s)printf features : int, width
;(s)scanf features : int, width
;External RAM size : 0
;Data Stack size : 128 byte(s)
;Heap size : 0 byte(s)
;Promote 'char' to 'int': Yes
;'char' is unsigned : Yes
;8 bit enums : Yes
;Global 'const' stored in FLASH: Yes
;Enhanced function parameter passing: Mode 2
;Enhanced core instructions: On
;Automatic register allocation for global variables: On
;Smart register allocation: On
#define _MODEL_SMALL_
#pragma AVRPART ADMIN PART_NAME ATmega8535
#pragma AVRPART MEMORY PROG_FLASH 8192
#pragma AVRPART MEMORY EEPROM 512
#pragma AVRPART MEMORY INT_SRAM SIZE 512
#pragma AVRPART MEMORY INT_SRAM START_ADDR 0x60
.LISTMAC
.EQU UDRE=0x5
.EQU RXC=0x7
.EQU USR=0xB
.EQU UDR=0xC
.EQU SPSR=0xE
.EQU SPDR=0xF
.EQU EERE=0x0
.EQU EEWE=0x1
.EQU EEMWE=0x2
.EQU EECR=0x1C
.EQU EEDR=0x1D
.EQU EEARL=0x1E
.EQU EEARH=0x1F
.EQU WDTCR=0x21
.EQU MCUCR=0x35
.EQU GICR=0x3B
.EQU SPL=0x3D
.EQU SPH=0x3E
.EQU SREG=0x3F
.DEF R0X0=R0
.DEF R0X1=R1
.DEF R0X2=R2
.DEF R0X3=R3
.DEF R0X4=R4
.DEF R0X5=R5
.DEF R0X6=R6
.DEF R0X7=R7
.DEF R0X8=R8
.DEF R0X9=R9
.DEF R0XA=R10
.DEF R0XB=R11
.DEF R0XC=R12
.DEF R0XD=R13
.DEF R0XE=R14
.DEF R0XF=R15
.DEF R0X10=R16
.DEF R0X11=R17
.DEF R0X12=R18
.DEF R0X13=R19
.DEF R0X14=R20
.DEF R0X15=R21
.DEF R0X16=R22
.DEF R0X17=R23
.DEF R0X18=R24
.DEF R0X19=R25
.DEF R0X1A=R26
.DEF R0X1B=R27
.DEF R0X1C=R28
.DEF R0X1D=R29
.DEF R0X1E=R30
.DEF R0X1F=R31
.EQU __SRAM_START=0x0060
.EQU __SRAM_END=0x025F
.EQU __DSTACK_SIZE=0x0080
.EQU __HEAP_SIZE=0x0000
.EQU __CLEAR_SRAM_SIZE=__SRAM_END-__SRAM_START+1
.MACRO __CPD1N
CPI R30,LOW(@0)
LDI R26,HIGH(@0)
CPC R31,R26
LDI R26,BYTE3(@0)
CPC R22,R26
LDI R26,BYTE4(@0)
CPC R23,R26
.ENDM
.MACRO __CPD2N
CPI R26,LOW(@0)
LDI R30,HIGH(@0)
CPC R27,R30
LDI R30,BYTE3(@0)
CPC R24,R30
LDI R30,BYTE4(@0)
CPC R25,R30
.ENDM
.MACRO __CPWRR
CP R@0,R@2
CPC R@1,R@3
.ENDM
.MACRO __CPWRN
CPI R@0,LOW(@2)
LDI R30,HIGH(@2)
CPC R@1,R30
.ENDM
.MACRO __ADDB1MN
SUBI R30,LOW(-@0-(@1))
.ENDM
.MACRO __ADDB2MN
SUBI R26,LOW(-@0-(@1))
.ENDM
.MACRO __ADDW1MN
SUBI R30,LOW(-@0-(@1))
SBCI R31,HIGH(-@0-(@1))
.ENDM
.MACRO __ADDW2MN
SUBI R26,LOW(-@0-(@1))
SBCI R27,HIGH(-@0-(@1))
.ENDM
.MACRO __ADDW1FN
SUBI R30,LOW(-2*@0-(@1))
SBCI R31,HIGH(-2*@0-(@1))
.ENDM
.MACRO __ADDD1FN
SUBI R30,LOW(-2*@0-(@1))
SBCI R31,HIGH(-2*@0-(@1))
SBCI R22,BYTE3(-2*@0-(@1))
.ENDM
.MACRO __ADDD1N
SUBI R30,LOW(-@0)
SBCI R31,HIGH(-@0)
SBCI R22,BYTE3(-@0)
SBCI R23,BYTE4(-@0)
.ENDM
.MACRO __ADDD2N
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
SBCI R24,BYTE3(-@0)
SBCI R25,BYTE4(-@0)
.ENDM
.MACRO __SUBD1N
SUBI R30,LOW(@0)
SBCI R31,HIGH(@0)
SBCI R22,BYTE3(@0)
SBCI R23,BYTE4(@0)
.ENDM
.MACRO __SUBD2N
SUBI R26,LOW(@0)
SBCI R27,HIGH(@0)
SBCI R24,BYTE3(@0)
SBCI R25,BYTE4(@0)
.ENDM
.MACRO __ANDBMNN
LDS R30,@0+(@1)
ANDI R30,LOW(@2)
STS @0+(@1),R30
.ENDM
.MACRO __ANDWMNN
LDS R30,@0+(@1)
ANDI R30,LOW(@2)
STS @0+(@1),R30
LDS R30,@0+(@1)+1
ANDI R30,HIGH(@2)
STS @0+(@1)+1,R30
.ENDM
.MACRO __ANDD1N
ANDI R30,LOW(@0)
ANDI R31,HIGH(@0)
ANDI R22,BYTE3(@0)
ANDI R23,BYTE4(@0)
.ENDM
.MACRO __ANDD2N
ANDI R26,LOW(@0)
ANDI R27,HIGH(@0)
ANDI R24,BYTE3(@0)
ANDI R25,BYTE4(@0)
.ENDM
.MACRO __ORBMNN
LDS R30,@0+(@1)
ORI R30,LOW(@2)
STS @0+(@1),R30
.ENDM
.MACRO __ORWMNN
LDS R30,@0+(@1)
ORI R30,LOW(@2)
STS @0+(@1),R30
LDS R30,@0+(@1)+1
ORI R30,HIGH(@2)
STS @0+(@1)+1,R30
.ENDM
.MACRO __ORD1N
ORI R30,LOW(@0)
ORI R31,HIGH(@0)
ORI R22,BYTE3(@0)
ORI R23,BYTE4(@0)
.ENDM
.MACRO __ORD2N
ORI R26,LOW(@0)
ORI R27,HIGH(@0)
ORI R24,BYTE3(@0)
ORI R25,BYTE4(@0)
.ENDM
.MACRO __DELAY_USB
LDI R24,LOW(@0)
__DELAY_USB_LOOP:
DEC R24
BRNE __DELAY_USB_LOOP
.ENDM
.MACRO __DELAY_USW
LDI R24,LOW(@0)
LDI R25,HIGH(@0)
__DELAY_USW_LOOP:
SBIW R24,1
BRNE __DELAY_USW_LOOP
.ENDM
.MACRO __GETW1P
LD R30,X+
LD R31,X
SBIW R26,1
.ENDM
.MACRO __GETD1S
LDD R30,Y+@0
LDD R31,Y+@0+1
LDD R22,Y+@0+2
LDD R23,Y+@0+3
.ENDM
.MACRO __GETD2S
LDD R26,Y+@0
LDD R27,Y+@0+1
LDD R24,Y+@0+2
LDD R25,Y+@0+3
.ENDM
.MACRO __GETD1P_INC
LD R30,X+
LD R31,X+
LD R22,X+
LD R23,X+
.ENDM
.MACRO __GETD1P_DEC
LD R23,-X
LD R22,-X
LD R31,-X
LD R30,-X
.ENDM
.MACRO __PUTDP1
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __PUTDP1_DEC
ST -X,R23
ST -X,R22
ST -X,R31
ST -X,R30
.ENDM
.MACRO __PUTD1S
STD Y+@0,R30
STD Y+@0+1,R31
STD Y+@0+2,R22
STD Y+@0+3,R23
.ENDM
.MACRO __PUTD2S
STD Y+@0,R26
STD Y+@0+1,R27
STD Y+@0+2,R24
STD Y+@0+3,R25
.ENDM
.MACRO __PUTDZ2
STD Z+@0,R26
STD Z+@0+1,R27
STD Z+@0+2,R24
STD Z+@0+3,R25
.ENDM
.MACRO __CLRD1S
STD Y+@0,R30
STD Y+@0+1,R30
STD Y+@0+2,R30
STD Y+@0+3,R30
.ENDM
.MACRO __CPD10
SBIW R30,0
SBCI R22,0
SBCI R23,0
.ENDM
.MACRO __CPD20
SBIW R26,0
SBCI R24,0
SBCI R25,0
.ENDM
.MACRO __ADDD12
ADD R30,R26
ADC R31,R27
ADC R22,R24
ADC R23,R25
.ENDM
.MACRO __ADDD21
ADD R26,R30
ADC R27,R31
ADC R24,R22
ADC R25,R23
.ENDM
.MACRO __SUBD12
SUB R30,R26
SBC R31,R27
SBC R22,R24
SBC R23,R25
.ENDM
.MACRO __SUBD21
SUB R26,R30
SBC R27,R31
SBC R24,R22
SBC R25,R23
.ENDM
.MACRO __ANDD12
AND R30,R26
AND R31,R27
AND R22,R24
AND R23,R25
.ENDM
.MACRO __ORD12
OR R30,R26
OR R31,R27
OR R22,R24
OR R23,R25
.ENDM
.MACRO __XORD12
EOR R30,R26
EOR R31,R27
EOR R22,R24
EOR R23,R25
.ENDM
.MACRO __XORD21
EOR R26,R30
EOR R27,R31
EOR R24,R22
EOR R25,R23
.ENDM
.MACRO __COMD1
COM R30
COM R31
COM R22
COM R23
.ENDM
.MACRO __MULD2_2
LSL R26
ROL R27
ROL R24
ROL R25
.ENDM
.MACRO __LSRD1
LSR R23
ROR R22
ROR R31
ROR R30
.ENDM
.MACRO __LSLD1
LSL R30
ROL R31
ROL R22
ROL R23
.ENDM
.MACRO __ASRB4
ASR R30
ASR R30
ASR R30
ASR R30
.ENDM
.MACRO __ASRW8
MOV R30,R31
CLR R31
SBRC R30,7
SER R31
.ENDM
.MACRO __LSRD16
MOV R30,R22
MOV R31,R23
LDI R22,0
LDI R23,0
.ENDM
.MACRO __LSLD16
MOV R22,R30
MOV R23,R31
LDI R30,0
LDI R31,0
.ENDM
.MACRO __CWD1
MOV R22,R31
ADD R22,R22
SBC R22,R22
MOV R23,R22
.ENDM
.MACRO __CWD2
MOV R24,R27
ADD R24,R24
SBC R24,R24
MOV R25,R24
.ENDM
.MACRO __SETMSD1
SER R31
SER R22
SER R23
.ENDM
.MACRO __ADDW1R15
CLR R0
ADD R30,R15
ADC R31,R0
.ENDM
.MACRO __ADDW2R15
CLR R0
ADD R26,R15
ADC R27,R0
.ENDM
.MACRO __EQB12
CP R30,R26
LDI R30,1
BREQ PC+2
CLR R30
.ENDM
.MACRO __NEB12
CP R30,R26
LDI R30,1
BRNE PC+2
CLR R30
.ENDM
.MACRO __LEB12
CP R30,R26
LDI R30,1
BRGE PC+2
CLR R30
.ENDM
.MACRO __GEB12
CP R26,R30
LDI R30,1
BRGE PC+2
CLR R30
.ENDM
.MACRO __LTB12
CP R26,R30
LDI R30,1
BRLT PC+2
CLR R30
.ENDM
.MACRO __GTB12
CP R30,R26
LDI R30,1
BRLT PC+2
CLR R30
.ENDM
.MACRO __LEB12U
CP R30,R26
LDI R30,1
BRSH PC+2
CLR R30
.ENDM
.MACRO __GEB12U
CP R26,R30
LDI R30,1
BRSH PC+2
CLR R30
.ENDM
.MACRO __LTB12U
CP R26,R30
LDI R30,1
BRLO PC+2
CLR R30
.ENDM
.MACRO __GTB12U
CP R30,R26
LDI R30,1
BRLO PC+2
CLR R30
.ENDM
.MACRO __CPW01
CLR R0
CP R0,R30
CPC R0,R31
.ENDM
.MACRO __CPW02
CLR R0
CP R0,R26
CPC R0,R27
.ENDM
.MACRO __CPD12
CP R30,R26
CPC R31,R27
CPC R22,R24
CPC R23,R25
.ENDM
.MACRO __CPD21
CP R26,R30
CPC R27,R31
CPC R24,R22
CPC R25,R23
.ENDM
.MACRO __BSTB1
CLT
TST R30
BREQ PC+2
SET
.ENDM
.MACRO __LNEGB1
TST R30
LDI R30,1
BREQ PC+2
CLR R30
.ENDM
.MACRO __LNEGW1
OR R30,R31
LDI R30,1
BREQ PC+2
LDI R30,0
.ENDM
.MACRO __POINTB1MN
LDI R30,LOW(@0+(@1))
.ENDM
.MACRO __POINTW1MN
LDI R30,LOW(@0+(@1))
LDI R31,HIGH(@0+(@1))
.ENDM
.MACRO __POINTD1M
LDI R30,LOW(@0)
LDI R31,HIGH(@0)
LDI R22,BYTE3(@0)
LDI R23,BYTE4(@0)
.ENDM
.MACRO __POINTW1FN
LDI R30,LOW(2*@0+(@1))
LDI R31,HIGH(2*@0+(@1))
.ENDM
.MACRO __POINTD1FN
LDI R30,LOW(2*@0+(@1))
LDI R31,HIGH(2*@0+(@1))
LDI R22,BYTE3(2*@0+(@1))
LDI R23,BYTE4(2*@0+(@1))
.ENDM
.MACRO __POINTB2MN
LDI R26,LOW(@0+(@1))
.ENDM
.MACRO __POINTW2MN
LDI R26,LOW(@0+(@1))
LDI R27,HIGH(@0+(@1))
.ENDM
.MACRO __POINTD2M
LDI R26,LOW(@0)
LDI R27,HIGH(@0)
LDI R24,BYTE3(@0)
LDI R25,BYTE4(@0)
.ENDM
.MACRO __POINTW2FN
LDI R26,LOW(2*@0+(@1))
LDI R27,HIGH(2*@0+(@1))
.ENDM
.MACRO __POINTD2FN
LDI R26,LOW(2*@0+(@1))
LDI R27,HIGH(2*@0+(@1))
LDI R24,BYTE3(2*@0+(@1))
LDI R25,BYTE4(2*@0+(@1))
.ENDM
.MACRO __POINTBRM
LDI R@0,LOW(@1)
.ENDM
.MACRO __POINTWRM
LDI R@0,LOW(@2)
LDI R@1,HIGH(@2)
.ENDM
.MACRO __POINTBRMN
LDI R@0,LOW(@1+(@2))
.ENDM
.MACRO __POINTWRMN
LDI R@0,LOW(@2+(@3))
LDI R@1,HIGH(@2+(@3))
.ENDM
.MACRO __POINTWRFN
LDI R@0,LOW(@2*2+(@3))
LDI R@1,HIGH(@2*2+(@3))
.ENDM
.MACRO __GETD1N
LDI R30,LOW(@0)
LDI R31,HIGH(@0)
LDI R22,BYTE3(@0)
LDI R23,BYTE4(@0)
.ENDM
.MACRO __GETD2N
LDI R26,LOW(@0)
LDI R27,HIGH(@0)
LDI R24,BYTE3(@0)
LDI R25,BYTE4(@0)
.ENDM
.MACRO __GETB1MN
LDS R30,@0+(@1)
.ENDM
.MACRO __GETB1HMN
LDS R31,@0+(@1)
.ENDM
.MACRO __GETW1MN
LDS R30,@0+(@1)
LDS R31,@0+(@1)+1
.ENDM
.MACRO __GETD1MN
LDS R30,@0+(@1)
LDS R31,@0+(@1)+1
LDS R22,@0+(@1)+2
LDS R23,@0+(@1)+3
.ENDM
.MACRO __GETBRMN
LDS R@0,@1+(@2)
.ENDM
.MACRO __GETWRMN
LDS R@0,@2+(@3)
LDS R@1,@2+(@3)+1
.ENDM
.MACRO __GETWRZ
LDD R@0,Z+@2
LDD R@1,Z+@2+1
.ENDM
.MACRO __GETD2Z
LDD R26,Z+@0
LDD R27,Z+@0+1
LDD R24,Z+@0+2
LDD R25,Z+@0+3
.ENDM
.MACRO __GETB2MN
LDS R26,@0+(@1)
.ENDM
.MACRO __GETW2MN
LDS R26,@0+(@1)
LDS R27,@0+(@1)+1
.ENDM
.MACRO __GETD2MN
LDS R26,@0+(@1)
LDS R27,@0+(@1)+1
LDS R24,@0+(@1)+2
LDS R25,@0+(@1)+3
.ENDM
.MACRO __PUTB1MN
STS @0+(@1),R30
.ENDM
.MACRO __PUTW1MN
STS @0+(@1),R30
STS @0+(@1)+1,R31
.ENDM
.MACRO __PUTD1MN
STS @0+(@1),R30
STS @0+(@1)+1,R31
STS @0+(@1)+2,R22
STS @0+(@1)+3,R23
.ENDM
.MACRO __PUTB1EN
LDI R26,LOW(@0+(@1))
LDI R27,HIGH(@0+(@1))
RCALL __EEPROMWRB
.ENDM
.MACRO __PUTW1EN
LDI R26,LOW(@0+(@1))
LDI R27,HIGH(@0+(@1))
RCALL __EEPROMWRW
.ENDM
.MACRO __PUTD1EN
LDI R26,LOW(@0+(@1))
LDI R27,HIGH(@0+(@1))
RCALL __EEPROMWRD
.ENDM
.MACRO __PUTBR0MN
STS @0+(@1),R0
.ENDM
.MACRO __PUTBMRN
STS @0+(@1),R@2
.ENDM
.MACRO __PUTWMRN
STS @0+(@1),R@2
STS @0+(@1)+1,R@3
.ENDM
.MACRO __PUTBZR
STD Z+@1,R@0
.ENDM
.MACRO __PUTWZR
STD Z+@2,R@0
STD Z+@2+1,R@1
.ENDM
.MACRO __GETW1R
MOV R30,R@0
MOV R31,R@1
.ENDM
.MACRO __GETW2R
MOV R26,R@0
MOV R27,R@1
.ENDM
.MACRO __GETWRN
LDI R@0,LOW(@2)
LDI R@1,HIGH(@2)
.ENDM
.MACRO __PUTW1R
MOV R@0,R30
MOV R@1,R31
.ENDM
.MACRO __PUTW2R
MOV R@0,R26
MOV R@1,R27
.ENDM
.MACRO __ADDWRN
SUBI R@0,LOW(-@2)
SBCI R@1,HIGH(-@2)
.ENDM
.MACRO __ADDWRR
ADD R@0,R@2
ADC R@1,R@3
.ENDM
.MACRO __SUBWRN
SUBI R@0,LOW(@2)
SBCI R@1,HIGH(@2)
.ENDM
.MACRO __SUBWRR
SUB R@0,R@2
SBC R@1,R@3
.ENDM
.MACRO __ANDWRN
ANDI R@0,LOW(@2)
ANDI R@1,HIGH(@2)
.ENDM
.MACRO __ANDWRR
AND R@0,R@2
AND R@1,R@3
.ENDM
.MACRO __ORWRN
ORI R@0,LOW(@2)
ORI R@1,HIGH(@2)
.ENDM
.MACRO __ORWRR
OR R@0,R@2
OR R@1,R@3
.ENDM
.MACRO __EORWRR
EOR R@0,R@2
EOR R@1,R@3
.ENDM
.MACRO __GETWRS
LDD R@0,Y+@2
LDD R@1,Y+@2+1
.ENDM
.MACRO __PUTBSR
STD Y+@1,R@0
.ENDM
.MACRO __PUTWSR
STD Y+@2,R@0
STD Y+@2+1,R@1
.ENDM
.MACRO __MOVEWRR
MOV R@0,R@2
MOV R@1,R@3
.ENDM
.MACRO __INWR
IN R@0,@2
IN R@1,@2+1
.ENDM
.MACRO __OUTWR
OUT @2+1,R@1
OUT @2,R@0
.ENDM
.MACRO __CALL1MN
LDS R30,@0+(@1)
LDS R31,@0+(@1)+1
ICALL
.ENDM
.MACRO __CALL1FN
LDI R30,LOW(2*@0+(@1))
LDI R31,HIGH(2*@0+(@1))
RCALL __GETW1PF
ICALL
.ENDM
.MACRO __CALL2EN
PUSH R26
PUSH R27
LDI R26,LOW(@0+(@1))
LDI R27,HIGH(@0+(@1))
RCALL __EEPROMRDW
POP R27
POP R26
ICALL
.ENDM
.MACRO __CALL2EX
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
RCALL __EEPROMRDD
ICALL
.ENDM
.MACRO __GETW1STACK
IN R30,SPL
IN R31,SPH
ADIW R30,@0+1
LD R0,Z+
LD R31,Z
MOV R30,R0
.ENDM
.MACRO __GETD1STACK
IN R30,SPL
IN R31,SPH
ADIW R30,@0+1
LD R0,Z+
LD R1,Z+
LD R22,Z
MOVW R30,R0
.ENDM
.MACRO __NBST
BST R@0,@1
IN R30,SREG
LDI R31,0x40
EOR R30,R31
OUT SREG,R30
.ENDM
.MACRO __PUTB1SN
LDD R26,Y+@0
LDD R27,Y+@0+1
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X,R30
.ENDM
.MACRO __PUTW1SN
LDD R26,Y+@0
LDD R27,Y+@0+1
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1SN
LDD R26,Y+@0
LDD R27,Y+@0+1
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __PUTB1SNS
LDD R26,Y+@0
LDD R27,Y+@0+1
ADIW R26,@1
ST X,R30
.ENDM
.MACRO __PUTW1SNS
LDD R26,Y+@0
LDD R27,Y+@0+1
ADIW R26,@1
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1SNS
LDD R26,Y+@0
LDD R27,Y+@0+1
ADIW R26,@1
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __PUTB1PMN
LDS R26,@0
LDS R27,@0+1
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X,R30
.ENDM
.MACRO __PUTW1PMN
LDS R26,@0
LDS R27,@0+1
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1PMN
LDS R26,@0
LDS R27,@0+1
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __PUTB1PMNS
LDS R26,@0
LDS R27,@0+1
ADIW R26,@1
ST X,R30
.ENDM
.MACRO __PUTW1PMNS
LDS R26,@0
LDS R27,@0+1
ADIW R26,@1
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1PMNS
LDS R26,@0
LDS R27,@0+1
ADIW R26,@1
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __PUTB1RN
MOVW R26,R@0
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X,R30
.ENDM
.MACRO __PUTW1RN
MOVW R26,R@0
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1RN
MOVW R26,R@0
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __PUTB1RNS
MOVW R26,R@0
ADIW R26,@1
ST X,R30
.ENDM
.MACRO __PUTW1RNS
MOVW R26,R@0
ADIW R26,@1
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1RNS
MOVW R26,R@0
ADIW R26,@1
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __PUTB1RON
MOV R26,R@0
MOV R27,R@1
SUBI R26,LOW(-@2)
SBCI R27,HIGH(-@2)
ST X,R30
.ENDM
.MACRO __PUTW1RON
MOV R26,R@0
MOV R27,R@1
SUBI R26,LOW(-@2)
SBCI R27,HIGH(-@2)
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1RON
MOV R26,R@0
MOV R27,R@1
SUBI R26,LOW(-@2)
SBCI R27,HIGH(-@2)
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __PUTB1RONS
MOV R26,R@0
MOV R27,R@1
ADIW R26,@2
ST X,R30
.ENDM
.MACRO __PUTW1RONS
MOV R26,R@0
MOV R27,R@1
ADIW R26,@2
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1RONS
MOV R26,R@0
MOV R27,R@1
ADIW R26,@2
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __GETB1SX
MOVW R30,R28
SUBI R30,LOW(-@0)
SBCI R31,HIGH(-@0)
LD R30,Z
.ENDM
.MACRO __GETB1HSX
MOVW R30,R28
SUBI R30,LOW(-@0)
SBCI R31,HIGH(-@0)
LD R31,Z
.ENDM
.MACRO __GETW1SX
MOVW R30,R28
SUBI R30,LOW(-@0)
SBCI R31,HIGH(-@0)
RCALL __GETW1Z
.ENDM
.MACRO __GETD1SX
MOVW R30,R28
SUBI R30,LOW(-@0)
SBCI R31,HIGH(-@0)
RCALL __GETD1Z
.ENDM
.MACRO __GETB2SX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
LD R26,X
.ENDM
.MACRO __GETW2SX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
RCALL __GETW2X
.ENDM
.MACRO __GETD2SX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
RCALL __GETD2X
.ENDM
.MACRO __GETBRSX
MOVW R30,R28
SUBI R30,LOW(-@1)
SBCI R31,HIGH(-@1)
LD R@0,Z
.ENDM
.MACRO __GETWRSX
MOVW R30,R28
SUBI R30,LOW(-@2)
SBCI R31,HIGH(-@2)
LD R@0,Z+
LD R@1,Z
.ENDM
.MACRO __GETBRSX2
MOVW R26,R28
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
LD R@0,X
.ENDM
.MACRO __GETWRSX2
MOVW R26,R28
SUBI R26,LOW(-@2)
SBCI R27,HIGH(-@2)
LD R@0,X+
LD R@1,X
.ENDM
.MACRO __LSLW8SX
MOVW R30,R28
SUBI R30,LOW(-@0)
SBCI R31,HIGH(-@0)
LD R31,Z
CLR R30
.ENDM
.MACRO __PUTB1SX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
ST X,R30
.ENDM
.MACRO __PUTW1SX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1SX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __CLRW1SX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
ST X+,R30
ST X,R30
.ENDM
.MACRO __CLRD1SX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
ST X+,R30
ST X+,R30
ST X+,R30
ST X,R30
.ENDM
.MACRO __PUTB2SX
MOVW R30,R28
SUBI R30,LOW(-@0)
SBCI R31,HIGH(-@0)
ST Z,R26
.ENDM
.MACRO __PUTW2SX
MOVW R30,R28
SUBI R30,LOW(-@0)
SBCI R31,HIGH(-@0)
ST Z+,R26
ST Z,R27
.ENDM
.MACRO __PUTD2SX
MOVW R30,R28
SUBI R30,LOW(-@0)
SBCI R31,HIGH(-@0)
ST Z+,R26
ST Z+,R27
ST Z+,R24
ST Z,R25
.ENDM
.MACRO __PUTBSRX
MOVW R30,R28
SUBI R30,LOW(-@1)
SBCI R31,HIGH(-@1)
ST Z,R@0
.ENDM
.MACRO __PUTWSRX
MOVW R30,R28
SUBI R30,LOW(-@2)
SBCI R31,HIGH(-@2)
ST Z+,R@0
ST Z,R@1
.ENDM
.MACRO __PUTB1SNX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
LD R0,X+
LD R27,X
MOV R26,R0
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X,R30
.ENDM
.MACRO __PUTW1SNX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
LD R0,X+
LD R27,X
MOV R26,R0
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X+,R30
ST X,R31
.ENDM
.MACRO __PUTD1SNX
MOVW R26,R28
SUBI R26,LOW(-@0)
SBCI R27,HIGH(-@0)
LD R0,X+
LD R27,X
MOV R26,R0
SUBI R26,LOW(-@1)
SBCI R27,HIGH(-@1)
ST X+,R30
ST X+,R31
ST X+,R22
ST X,R23
.ENDM
.MACRO __MULBRR
MULS R@0,R@1
MOVW R30,R0
.ENDM
.MACRO __MULBRRU
MUL R@0,R@1
MOVW R30,R0
.ENDM
.MACRO __MULBRR0
MULS R@0,R@1
.ENDM
.MACRO __MULBRRU0
MUL R@0,R@1
.ENDM
.MACRO __MULBNWRU
LDI R26,@2
MUL R26,R@0
MOVW R30,R0
MUL R26,R@1
ADD R31,R0
.ENDM
;NAME DEFINITIONS FOR GLOBAL VARIABLES ALLOCATED TO REGISTERS
.DEF _tem=R4
.DEF _tem_msb=R5
.DEF _desplz=R6
.DEF _desplz_msb=R7
.DEF _cont_antidelay=R8
.DEF _cont_antidelay_msb=R9
.DEF _time_antidelay=R10
.DEF _time_antidelay_msb=R11
.DEF _unidades=R13
.DEF _decenas=R12
.CSEG
.ORG 0x00
;START OF CODE MARKER
__START_OF_CODE:
;INTERRUPT VECTORS
RJMP __RESET
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
RJMP 0x00
_tbl10_G101:
.DB 0x10,0x27,0xE8,0x3,0x64,0x0,0xA,0x0
.DB 0x1,0x0
_tbl16_G101:
.DB 0x0,0x10,0x0,0x1,0x10,0x0,0x1,0x0
;REGISTER BIT VARIABLES INITIALIZATION
__REG_BIT_VARS:
.DW 0x0000
_0x6:
.DB 0x1E
_0x7:
.DB 0xC
_0x8:
.DB 0x13
_0x9:
.DB 0x63
_0x0:
.DB 0x45,0x53,0x43,0x4F,0x4D,0x0
_0x2000003:
.DB 0x80,0xC0
__GLOBAL_INI_TBL:
.DW 0x01
.DW 0x02
.DW __REG_BIT_VARS*2
.DW 0x01
.DW _dia
.DW _0x6*2
.DW 0x01
.DW _mes
.DW _0x7*2
.DW 0x01
.DW _ye
.DW _0x8*2
.DW 0x01
.DW _ar
.DW _0x9*2
.DW 0x02
.DW __base_y_G100
.DW _0x2000003*2
_0xFFFFFFFF:
.DW 0
#define __GLOBAL_INI_TBL_PRESENT 1
__RESET:
CLI
CLR R30
OUT EECR,R30
;INTERRUPT VECTORS ARE PLACED
;AT THE START OF FLASH
LDI R31,1
OUT GICR,R31
OUT GICR,R30
OUT MCUCR,R30
;CLEAR R2-R14
LDI R24,(14-2)+1
LDI R26,2
CLR R27
__CLEAR_REG:
ST X+,R30
DEC R24
BRNE __CLEAR_REG
;CLEAR SRAM
LDI R24,LOW(__CLEAR_SRAM_SIZE)
LDI R25,HIGH(__CLEAR_SRAM_SIZE)
LDI R26,__SRAM_START
__CLEAR_SRAM:
ST X+,R30
SBIW R24,1
BRNE __CLEAR_SRAM
;GLOBAL VARIABLES INITIALIZATION
LDI R30,LOW(__GLOBAL_INI_TBL*2)
LDI R31,HIGH(__GLOBAL_INI_TBL*2)
__GLOBAL_INI_NEXT:
LPM R24,Z+
LPM R25,Z+
SBIW R24,0
BREQ __GLOBAL_INI_END
LPM R26,Z+
LPM R27,Z+
LPM R0,Z+
LPM R1,Z+
MOVW R22,R30
MOVW R30,R0
__GLOBAL_INI_LOOP:
LPM R0,Z+
ST X+,R0
SBIW R24,1
BRNE __GLOBAL_INI_LOOP
MOVW R30,R22
RJMP __GLOBAL_INI_NEXT
__GLOBAL_INI_END:
;HARDWARE STACK POINTER INITIALIZATION
LDI R30,LOW(__SRAM_END-__HEAP_SIZE)
OUT SPL,R30
LDI R30,HIGH(__SRAM_END-__HEAP_SIZE)
OUT SPH,R30
;DATA STACK POINTER INITIALIZATION
LDI R28,LOW(__SRAM_START+__DSTACK_SIZE)
LDI R29,HIGH(__SRAM_START+__DSTACK_SIZE)
RJMP _main
.ESEG
.ORG 0x00
.DSEG
.ORG 0xE0
.CSEG
#ifndef __SLEEP_DEFINED__
#define __SLEEP_DEFINED__
.EQU __se_bit=0x40
.EQU __sm_mask=0xB0
.EQU __sm_powerdown=0x20
.EQU __sm_powersave=0x30
.EQU __sm_standby=0xA0
.EQU __sm_ext_standby=0xB0
.EQU __sm_adc_noise_red=0x10
.SET power_ctrl_reg=mcucr
#endif
;unsigned char read_adc(unsigned char adc_input)
; 0000 0029 {
.CSEG
_read_adc:
; .FSTART _read_adc
; 0000 002A ADMUX=adc_input | ADC_VREF_TYPE;
RCALL SUBOPT_0x0
; adc_input -> R17
MOV R30,R17
ORI R30,LOW(0x60)
OUT 0x7,R30
; 0000 002B // Delay needed for the stabilization of the ADC input voltage
; 0000 002C delay_us(10);
__DELAY_USB 3
; 0000 002D // Start the AD conversion
; 0000 002E ADCSRA|=(1<<ADSC);
SBI 0x6,6
; 0000 002F // Wait for the AD conversion to complete
; 0000 0030 while ((ADCSRA & (1<<ADIF))==0);
_0x3:
SBIS 0x6,4
RJMP _0x3
; 0000 0031 ADCSRA|=(1<<ADIF);
SBI 0x6,4
; 0000 0032 return ADCH;
IN R30,0x5
RJMP _0x2080001
; 0000 0033 }
; .FEND
.DSEG
;void main(void)
; 0000 0040 {
.CSEG
_main:
; .FSTART _main
; 0000 0041 // Declare your local variables here
; 0000 0042
; 0000 0043 // Input/Output Ports initialization
; 0000 0044 // Port A initialization
; 0000 0045 // Function: Bit7=In Bit6=In Bit5=In Bit4=In Bit3=In Bit2=In Bit1=In Bit0=In
; 0000 0046 DDRA=(0<<DDA7) | (0<<DDA6) | (0<<DDA5) | (0<<DDA4) | (0<<DDA3) | (0<<DDA2) | (0<<DDA1) | (0<<DDA0);
LDI R30,LOW(0)
OUT 0x1A,R30
; 0000 0047 // State: Bit7=T Bit6=T Bit5=T Bit4=T Bit3=T Bit2=T Bit1=T Bit0=T
; 0000 0048 PORTA=(0<<PORTA7) | (0<<PORTA6) | (0<<PORTA5) | (0<<PORTA4) | (0<<PORTA3) | (0<<PORTA2) | (0<<PORTA1) | (0<<PORTA0);
OUT 0x1B,R30
; 0000 0049
; 0000 004A // Port B initialization
; 0000 004B // Function: Bit7=Out Bit6=Out Bit5=Out Bit4=Out Bit3=Out Bit2=Out Bit1=Out Bit0=Out
; 0000 004C DDRB=(1<<DDB7) | (1<<DDB6) | (1<<DDB5) | (1<<DDB4) | (1<<DDB3) | (1<<DDB2) | (1<<DDB1) | (1<<DDB0);
LDI R30,LOW(255)
OUT 0x17,R30
; 0000 004D // State: Bit7=0 Bit6=0 Bit5=0 Bit4=0 Bit3=0 Bit2=0 Bit1=0 Bit0=0
; 0000 004E PORTB=(0<<PORTB7) | (0<<PORTB6) | (0<<PORTB5) | (0<<PORTB4) | (0<<PORTB3) | (0<<PORTB2) | (0<<PORTB1) | (0<<PORTB0);
LDI R30,LOW(0)
OUT 0x18,R30
; 0000 004F
; 0000 0050 // Port C initialization
; 0000 0051 // Function: Bit7=In Bit6=In Bit5=In Bit4=In Bit3=In Bit2=In Bit1=In Bit0=In
; 0000 0052 DDRC=(0<<DDC7) | (0<<DDC6) | (0<<DDC5) | (0<<DDC4) | (0<<DDC3) | (0<<DDC2) | (0<<DDC1) | (0<<DDC0);
OUT 0x14,R30
; 0000 0053 // State: Bit7=T Bit6=T Bit5=T Bit4=T Bit3=T Bit2=T Bit1=T Bit0=T
; 0000 0054 PORTC=(0<<PORTC7) | (0<<PORTC6) | (0<<PORTC5) | (0<<PORTC4) | (0<<PORTC3) | (0<<PORTC2) | (0<<PORTC1) | (0<<PORTC0);
OUT 0x15,R30
; 0000 0055
; 0000 0056 // Port D initialization
; 0000 0057 // Function: Bit7=In Bit6=In Bit5=In Bit4=In Bit3=In Bit2=In Bit1=In Bit0=In
; 0000 0058 DDRD=(0<<DDD7) | (0<<DDD6) | (0<<DDD5) | (0<<DDD4) | (0<<DDD3) | (0<<DDD2) | (0<<DDD1) | (0<<DDD0);
OUT 0x11,R30
; 0000 0059 // State: Bit7=P Bit6=P Bit5=P Bit4=P Bit3=P Bit2=P Bit1=P Bit0=P
; 0000 005A PORTD=(1<<PORTD7) | (1<<PORTD6) | (1<<PORTD5) | (1<<PORTD4) | (1<<PORTD3) | (1<<PORTD2) | (1<<PORTD1) | (1<<PORTD0);
LDI R30,LOW(255)
OUT 0x12,R30
; 0000 005B
; 0000 005C // Timer/Counter 0 initialization
; 0000 005D // Clock source: System Clock
; 0000 005E // Clock value: Timer 0 Stopped
; 0000 005F // Mode: Normal top=0xFF
; 0000 0060 // OC0 output: Disconnected
; 0000 0061 TCCR0=(0<<WGM00) | (0<<COM01) | (0<<COM00) | (0<<WGM01) | (0<<CS02) | (0<<CS01) | (0<<CS00);
LDI R30,LOW(0)
OUT 0x33,R30
; 0000 0062 TCNT0=0x00;
OUT 0x32,R30
; 0000 0063 OCR0=0x00;
OUT 0x3C,R30
; 0000 0064
; 0000 0065 // Timer/Counter 1 initialization
; 0000 0066 // Clock source: System Clock
; 0000 0067 // Clock value: Timer1 Stopped
; 0000 0068 // Mode: Normal top=0xFFFF
; 0000 0069 // OC1A output: Disconnected
; 0000 006A // OC1B output: Disconnected
; 0000 006B // Noise Canceler: Off
; 0000 006C // Input Capture on Falling Edge
; 0000 006D // Timer1 Overflow Interrupt: Off
; 0000 006E // Input Capture Interrupt: Off
; 0000 006F // Compare A Match Interrupt: Off
; 0000 0070 // Compare B Match Interrupt: Off
; 0000 0071 TCCR1A=(0<<COM1A1) | (0<<COM1A0) | (0<<COM1B1) | (0<<COM1B0) | (0<<WGM11) | (0<<WGM10);
OUT 0x2F,R30
; 0000 0072 TCCR1B=(0<<ICNC1) | (0<<ICES1) | (0<<WGM13) | (0<<WGM12) | (0<<CS12) | (0<<CS11) | (0<<CS10);
OUT 0x2E,R30
; 0000 0073 TCNT1H=0x00;
OUT 0x2D,R30
; 0000 0074 TCNT1L=0x00;
OUT 0x2C,R30
; 0000 0075 ICR1H=0x00;
OUT 0x27,R30
; 0000 0076 ICR1L=0x00;
OUT 0x26,R30
; 0000 0077 OCR1AH=0x00;
OUT 0x2B,R30
; 0000 0078 OCR1AL=0x00;
OUT 0x2A,R30
; 0000 0079 OCR1BH=0x00;
OUT 0x29,R30
; 0000 007A OCR1BL=0x00;
OUT 0x28,R30
; 0000 007B
; 0000 007C // Timer/Counter 2 initialization
; 0000 007D // Clock source: System Clock
; 0000 007E // Clock value: Timer2 Stopped
; 0000 007F // Mode: Normal top=0xFF
; 0000 0080 // OC2 output: Disconnected
; 0000 0081 ASSR=0<<AS2;
OUT 0x22,R30
; 0000 0082 TCCR2=(0<<WGM20) | (0<<COM21) | (0<<COM20) | (0<<WGM21) | (0<<CS22) | (0<<CS21) | (0<<CS20);
OUT 0x25,R30
; 0000 0083 TCNT2=0x00;
OUT 0x24,R30
; 0000 0084 OCR2=0x00;
OUT 0x23,R30
; 0000 0085
; 0000 0086 // Timer(s)/Counter(s) Interrupt(s) initialization
; 0000 0087 TIMSK=(0<<OCIE2) | (0<<TOIE2) | (0<<TICIE1) | (0<<OCIE1A) | (0<<OCIE1B) | (0<<TOIE1) | (0<<OCIE0) | (0<<TOIE0);
OUT 0x39,R30
; 0000 0088
; 0000 0089 // External Interrupt(s) initialization
; 0000 008A // INT0: Off
; 0000 008B // INT1: Off
; 0000 008C // INT2: Off
; 0000 008D MCUCR=(0<<ISC11) | (0<<ISC10) | (0<<ISC01) | (0<<ISC00);
OUT 0x35,R30
; 0000 008E MCUCSR=(0<<ISC2);
OUT 0x34,R30
; 0000 008F
; 0000 0090 // USART initialization
; 0000 0091 // USART disabled
; 0000 0092 UCSRB=(0<<RXCIE) | (0<<TXCIE) | (0<<UDRIE) | (0<<RXEN) | (0<<TXEN) | (0<<UCSZ2) | (0<<RXB8) | (0<<TXB8);
OUT 0xA,R30
; 0000 0093
; 0000 0094 // Analog Comparator initialization
; 0000 0095 // Analog Comparator: Off
; 0000 0096 // The Analog Comparator's positive input is
; 0000 0097 // connected to the AIN0 pin
; 0000 0098 // The Analog Comparator's negative input is
; 0000 0099 // connected to the AIN1 pin
; 0000 009A ACSR=(1<<ACD) | (0<<ACBG) | (0<<ACO) | (0<<ACI) | (0<<ACIE) | (0<<ACIC) | (0<<ACIS1) | (0<<ACIS0);
LDI R30,LOW(128)
OUT 0x8,R30
; 0000 009B
; 0000 009C // ADC initialization
; 0000 009D // ADC Clock frequency: 500.000 kHz
; 0000 009E // ADC Voltage Reference: AVCC pin
; 0000 009F // ADC High Speed Mode: Off
; 0000 00A0 // ADC Auto Trigger Source: ADC Stopped
; 0000 00A1 // Only the 8 most significant bits of
; 0000 00A2 // the AD conversion result are used
; 0000 00A3 ADMUX=ADC_VREF_TYPE;
LDI R30,LOW(96)
OUT 0x7,R30
; 0000 00A4 ADCSRA=(1<<ADEN) | (0<<ADSC) | (0<<ADATE) | (0<<ADIF) | (0<<ADIE) | (0<<ADPS2) | (0<<ADPS1) | (1<<ADPS0);
LDI R30,LOW(129)
OUT 0x6,R30
; 0000 00A5 SFIOR=(1<<ADHSM) | (0<<ADTS2) | (0<<ADTS1) | (0<<ADTS0);
LDI R30,LOW(16)
OUT 0x30,R30
; 0000 00A6
; 0000 00A7 // SPI initialization
; 0000 00A8 // SPI disabled
; 0000 00A9 SPCR=(0<<SPIE) | (0<<SPE) | (0<<DORD) | (0<<MSTR) | (0<<CPOL) | (0<<CPHA) | (0<<SPR1) | (0<<SPR0);
LDI R30,LOW(0)
OUT 0xD,R30
; 0000 00AA
; 0000 00AB // TWI initialization
; 0000 00AC // TWI disabled
; 0000 00AD TWCR=(0<<TWEA) | (0<<TWSTA) | (0<<TWSTO) | (0<<TWEN) | (0<<TWIE);
OUT 0x36,R30
; 0000 00AE
; 0000 00AF // Alphanumeric LCD initialization
; 0000 00B0 // Connections are specified in the
; 0000 00B1 // Project|Configure|C Compiler|Libraries|Alphanumeric LCD menu:
; 0000 00B2 // RS: PORTB Bit 0
; 0000 00B3 // RD: PORTB Bit 1
; 0000 00B4 // EN: PORTB Bit 2
; 0000 00B5 // D4: PORTB Bit 4
; 0000 00B6 // D5: PORTB Bit 5
; 0000 00B7 // D6: PORTB Bit 6
; 0000 00B8 // D7: PORTB Bit 7
; 0000 00B9 // Characters/line: 16
; 0000 00BA lcd_init(16);
LDI R26,LOW(16)
RCALL _lcd_init
; 0000 00BB desplz=0;
CLR R6
CLR R7
; 0000 00BC cont_antidelay=0;
RCALL SUBOPT_0x1
; 0000 00BD time_antidelay=20;
LDI R30,LOW(20)
LDI R31,HIGH(20)
MOVW R10,R30
; 0000 00BE while (1)
_0xA:
; 0000 00BF {
; 0000 00C0 delay_ms(50);
LDI R26,LOW(50)
RCALL SUBOPT_0x2
; 0000 00C1
; 0000 00C2 if(cambio==0) btna=0;
SBIC 0x10,0
RJMP _0xD
CLT
RJMP _0x33
; 0000 00C3 else btna=1;
_0xD:
SET
_0x33:
BLD R2,1
; 0000 00C4
; 0000 00C5 if ((btnp==1)&&(btna==0)) {
SBRS R2,0
RJMP _0x10
SBRS R2,1
RJMP _0x11
_0x10:
RJMP _0xF
_0x11:
; 0000 00C6 if(change==0) change=1;
LDS R30,_change
CPI R30,0
BRNE _0x12
LDI R30,LOW(1)
RJMP _0x34
; 0000 00C7 else change=0;
_0x12:
LDI R30,LOW(0)
_0x34:
STS _change,R30
; 0000 00C8 }
; 0000 00C9
; 0000 00CA btnp=btna;
_0xF:
BST R2,1
BLD R2,0
; 0000 00CB
; 0000 00CC lcd_gotoxy(11,0);
LDI R30,LOW(11)
RCALL SUBOPT_0x3
; 0000 00CD lcd_putsf("ESCOM");
__POINTW2FN _0x0,0
RCALL _lcd_putsf
; 0000 00CE cn=read_adc(0);
LDI R26,LOW(0)
RCALL _read_adc
STS _cn,R30
; 0000 00CF cel=50 * cn / 255;
LDI R26,LOW(50)
MUL R30,R26
MOVW R30,R0
MOVW R26,R30
LDI R30,LOW(255)
LDI R31,HIGH(255)
RCALL __DIVW21
LDI R26,LOW(_cel)
LDI R27,HIGH(_cel)
__CWD1
RCALL __CDF1
__PUTDP1
; 0000 00D0 if(cel>99) cel=99;
RCALL SUBOPT_0x4
RCALL SUBOPT_0x5
RCALL __CMPF12
BREQ PC+2
BRCC PC+2
RJMP _0x14
RCALL SUBOPT_0x5
STS _cel,R30
STS _cel+1,R31
STS _cel+2,R22
STS _cel+3,R23
; 0000 00D1
; 0000 00D2 tem=cel*10;
_0x14:
RCALL SUBOPT_0x4
__GETD1N 0x41200000
RCALL __MULF12
RCALL __CFD1
MOVW R4,R30
; 0000 00D3 decenas=tem/100;
MOVW R26,R4
LDI R30,LOW(100)
LDI R31,HIGH(100)
RCALL __DIVW21
MOV R12,R30
; 0000 00D4 tem%=100;
MOVW R26,R4
LDI R30,LOW(100)
LDI R31,HIGH(100)
RCALL __MODW21
MOVW R4,R30
; 0000 00D5 decimas=tem%10;
MOVW R26,R4
RCALL SUBOPT_0x6
RCALL __MODW21
STS _decimas,R30
; 0000 00D6 unidades=tem/10;
MOVW R26,R4
RCALL SUBOPT_0x7
MOV R13,R30
; 0000 00D7 lcd_gotoxy(10,1);
LDI R30,LOW(10)
RCALL SUBOPT_0x8
; 0000 00D8 lcd_putchar(decenas+car);
MOV R26,R12
SUBI R26,-LOW(48)
RCALL _lcd_putchar
; 0000 00D9 lcd_gotoxy(11,1);
LDI R30,LOW(11)
RCALL SUBOPT_0x8
; 0000 00DA lcd_putchar(unidades+car);
MOV R26,R13
SUBI R26,-LOW(48)
RCALL _lcd_putchar
; 0000 00DB lcd_gotoxy(12,1);
LDI R30,LOW(12)
RCALL SUBOPT_0x8
; 0000 00DC lcd_putchar('.');
LDI R26,LOW(46)
RCALL _lcd_putchar
; 0000 00DD lcd_gotoxy(13,1);
LDI R30,LOW(13)
RCALL SUBOPT_0x8
; 0000 00DE lcd_putchar(decimas+car);
LDS R26,_decimas
SUBI R26,-LOW(48)
RCALL _lcd_putchar
; 0000 00DF lcd_gotoxy(14,1);
LDI R30,LOW(14)
RCALL SUBOPT_0x8
; 0000 00E0 lcd_putchar(car+175);
LDI R26,LOW(223)
RCALL _lcd_putchar
; 0000 00E1 lcd_gotoxy(15,1);
LDI R30,LOW(15)
RCALL SUBOPT_0x8
; 0000 00E2 lcd_putchar('C');
LDI R26,LOW(67)
RCALL _lcd_putchar
; 0000 00E3
; 0000 00E4 if(change==1) {
LDS R26,_change
CPI R26,LOW(0x1)
BRNE _0x15
; 0000 00E5 if(ha==0){
SBIC 0x10,1
RJMP _0x16
; 0000 00E6 if(cont_antidelay>time_antidelay) { cont_antidelay=0; hor++;}
RCALL SUBOPT_0x9
BRGE _0x17
RCALL SUBOPT_0x1
RCALL SUBOPT_0xA
; 0000 00E7 else cont_antidelay++;
RJMP _0x18
_0x17:
RCALL SUBOPT_0xB
; 0000 00E8 }
_0x18:
; 0000 00E9
; 0000 00EA if(mm==0){
_0x16:
SBIC 0x10,2
RJMP _0x19
; 0000 00EB if(cont_antidelay>time_antidelay){cont_antidelay=0; min++;}
RCALL SUBOPT_0x9
BRGE _0x1A
RCALL SUBOPT_0x1
RCALL SUBOPT_0xC
; 0000 00EC else cont_antidelay++;
RJMP _0x1B
_0x1A:
RCALL SUBOPT_0xB
; 0000 00ED }
_0x1B:
; 0000 00EE
; 0000 00EF if(sd==0){
_0x19:
SBIC 0x10,3
RJMP _0x1C
; 0000 00F0 if(cont_antidelay>time_antidelay){ cont_antidelay=0; seg++; }
RCALL SUBOPT_0x9
BRGE _0x1D
RCALL SUBOPT_0x1
RCALL SUBOPT_0xD
; 0000 00F1 else{ cont_antidelay++; }
RJMP _0x1E
_0x1D:
RCALL SUBOPT_0xB
_0x1E:
; 0000 00F2 }
; 0000 00F3 } else {
_0x1C:
RJMP _0x1F
_0x15:
; 0000 00F4 if(ha==0){
SBIC 0x10,1
RJMP _0x20
; 0000 00F5 if(cont_antidelay>time_antidelay){
RCALL SUBOPT_0x9
BRGE _0x21
; 0000 00F6 cont_antidelay=0;
RCALL SUBOPT_0x1
; 0000 00F7 ar++;
RCALL SUBOPT_0xE
; 0000 00F8 if(ar>99){ ye++; ar=0; }
RCALL SUBOPT_0xF
BRLO _0x22
RCALL SUBOPT_0x10
; 0000 00F9 } else {
_0x22:
RJMP _0x23
_0x21:
; 0000 00FA cont_antidelay++;
RCALL SUBOPT_0xB
; 0000 00FB }
_0x23:
; 0000 00FC }
; 0000 00FD
; 0000 00FE if(mm==0){
_0x20:
SBIC 0x10,2
RJMP _0x24
; 0000 00FF if(cont_antidelay>time_antidelay){ cont_antidelay=0; mes++; }
RCALL SUBOPT_0x9
BRGE _0x25
RCALL SUBOPT_0x1
RCALL SUBOPT_0x11
; 0000 0100 else{ cont_antidelay++; }
RJMP _0x26
_0x25:
RCALL SUBOPT_0xB
_0x26:
; 0000 0101 }
; 0000 0102
; 0000 0103 if(sd==0){
_0x24:
SBIC 0x10,3
RJMP _0x27
; 0000 0104 if(cont_antidelay>time_antidelay){ cont_antidelay=0; dia++; }
RCALL SUBOPT_0x9
BRGE _0x28
RCALL SUBOPT_0x1
RCALL SUBOPT_0x12
; 0000 0105 else{ cont_antidelay++; }
RJMP _0x29
_0x28:
RCALL SUBOPT_0xB
_0x29:
; 0000 0106 }
; 0000 0107 }
_0x27:
_0x1F:
; 0000 0108
; 0000 0109 if(desplz>49){
LDI R30,LOW(49)
LDI R31,HIGH(49)
CP R30,R6
CPC R31,R7
BRGE _0x2A
; 0000 010A desplz=0;
CLR R6
CLR R7
; 0000 010B seg++;
RCALL SUBOPT_0xD
; 0000 010C } else {
RJMP _0x2B
_0x2A:
; 0000 010D desplz++;
MOVW R30,R6
ADIW R30,1
MOVW R6,R30
; 0000 010E }
_0x2B:
; 0000 010F
; 0000 0110 if(seg>59){ min++; seg=0; }
LDS R26,_seg
CPI R26,LOW(0x3C)
BRLO _0x2C
RCALL SUBOPT_0xC
RCALL SUBOPT_0x13
; 0000 0111 if(min>59){ hor++; min=0; seg=0; }
_0x2C:
LDS R26,_min
CPI R26,LOW(0x3C)
BRLO _0x2D
RCALL SUBOPT_0xA
LDI R30,LOW(0)
STS _min,R30
RCALL SUBOPT_0x13
; 0000 0112 if(hor>23){ dia++; hor=0; seg=0; min=0; }
_0x2D:
LDS R26,_hor
CPI R26,LOW(0x18)
BRLO _0x2E
RCALL SUBOPT_0x12
LDI R30,LOW(0)
STS _hor,R30
RCALL SUBOPT_0x13
LDI R30,LOW(0)
STS _min,R30
; 0000 0113 if(dia>31){ mes++; dia=0; }
_0x2E:
LDS R26,_dia
CPI R26,LOW(0x20)
BRLO _0x2F
RCALL SUBOPT_0x11
LDI R30,LOW(0)
STS _dia,R30
; 0000 0114 if(mes>12){
_0x2F:
LDS R26,_mes
CPI R26,LOW(0xD)
BRLO _0x30
; 0000 0115 ar++;
RCALL SUBOPT_0xE
; 0000 0116 mes=0;
LDI R30,LOW(0)
STS _mes,R30
; 0000 0117 if(ar>99){ ye++; ar=0; }
RCALL SUBOPT_0xF
BRLO _0x31
RCALL SUBOPT_0x10
; 0000 0118 }
_0x31:
; 0000 0119
; 0000 011A lcd_gotoxy(0,1);
_0x30:
LDI R30,LOW(0)
RCALL SUBOPT_0x8
; 0000 011B lcd_putchar(hor/10+car);
LDS R26,_hor
RCALL SUBOPT_0x14
RCALL SUBOPT_0x15
; 0000 011C lcd_gotoxy(1,1);
LDI R30,LOW(1)
RCALL SUBOPT_0x8
; 0000 011D lcd_putchar(hor%10+car);
LDS R26,_hor
RCALL SUBOPT_0x16
; 0000 011E lcd_gotoxy(2,1);
LDI R30,LOW(2)
RCALL SUBOPT_0x8
; 0000 011F lcd_putchar(':');
LDI R26,LOW(58)
RCALL _lcd_putchar
; 0000 0120 lcd_gotoxy(3,1);
LDI R30,LOW(3)
RCALL SUBOPT_0x8
; 0000 0121 lcd_putchar(min/10+car);
LDS R26,_min
RCALL SUBOPT_0x14
RCALL SUBOPT_0x15
; 0000 0122 lcd_gotoxy(4,1);
LDI R30,LOW(4)
RCALL SUBOPT_0x8
; 0000 0123 lcd_putchar(min%10+car);
LDS R26,_min
RCALL SUBOPT_0x16
; 0000 0124 lcd_gotoxy(5,1);
LDI R30,LOW(5)
RCALL SUBOPT_0x8
; 0000 0125 lcd_putchar(':');
LDI R26,LOW(58)
RCALL _lcd_putchar
; 0000 0126 lcd_gotoxy(6,1);
LDI R30,LOW(6)
RCALL SUBOPT_0x8
; 0000 0127 lcd_putchar(seg/10+car);
LDS R26,_seg
RCALL SUBOPT_0x14
RCALL SUBOPT_0x15
; 0000 0128 lcd_gotoxy(7,1);
LDI R30,LOW(7)
RCALL SUBOPT_0x8
; 0000 0129 lcd_putchar(seg%10+car);
LDS R26,_seg
RCALL SUBOPT_0x16
; 0000 012A
; 0000 012B lcd_gotoxy(0,0);
LDI R30,LOW(0)
RCALL SUBOPT_0x3
; 0000 012C lcd_putchar(ye/10+car);
RCALL SUBOPT_0x17
RCALL __DIVW21U
RCALL SUBOPT_0x15
; 0000 012D lcd_gotoxy(1,0);
LDI R30,LOW(1)
RCALL SUBOPT_0x3
; 0000 012E lcd_putchar(ye%10+car);
RCALL SUBOPT_0x17
RCALL __MODW21U
RCALL SUBOPT_0x15
; 0000 012F lcd_gotoxy(2,0);
LDI R30,LOW(2)
RCALL SUBOPT_0x3
; 0000 0130 lcd_putchar(ar/10+car);
RCALL SUBOPT_0x18
RCALL __DIVW21U
RCALL SUBOPT_0x15
; 0000 0131 lcd_gotoxy(3,0);
LDI R30,LOW(3)
RCALL SUBOPT_0x3
; 0000 0132 lcd_putchar(ar%10+car);
RCALL SUBOPT_0x18
RCALL __MODW21U
RCALL SUBOPT_0x15
; 0000 0133 lcd_gotoxy(4,0);
LDI R30,LOW(4)
RCALL SUBOPT_0x3
; 0000 0134 lcd_putchar('-');
LDI R26,LOW(45)
RCALL _lcd_putchar
; 0000 0135 lcd_gotoxy(5,0);
LDI R30,LOW(5)
RCALL SUBOPT_0x3
; 0000 0136 lcd_putchar(mes/10+car);
LDS R26,_mes
RCALL SUBOPT_0x14
RCALL SUBOPT_0x15
; 0000 0137 lcd_gotoxy(6,0);
LDI R30,LOW(6)
RCALL SUBOPT_0x3
; 0000 0138 lcd_putchar(mes%10+car);
LDS R26,_mes
RCALL SUBOPT_0x16
; 0000 0139 lcd_gotoxy(7,0);
LDI R30,LOW(7)
RCALL SUBOPT_0x3
; 0000 013A lcd_putchar('-');
LDI R26,LOW(45)
RCALL _lcd_putchar
; 0000 013B lcd_gotoxy(8,0);
LDI R30,LOW(8)
RCALL SUBOPT_0x3
; 0000 013C lcd_putchar(dia/10+car);
LDS R26,_dia
RCALL SUBOPT_0x14
RCALL SUBOPT_0x15
; 0000 013D lcd_gotoxy(9,0);
LDI R30,LOW(9)
RCALL SUBOPT_0x3
; 0000 013E lcd_putchar(dia%10+car);
LDS R26,_dia
RCALL SUBOPT_0x16
; 0000 013F
; 0000 0140 delay_ms(50);
LDI R26,LOW(50)
RCALL SUBOPT_0x2
; 0000 0141 }
RJMP _0xA
; 0000 0142 }
_0x32:
RJMP _0x32
; .FEND
#ifndef __SLEEP_DEFINED__
#define __SLEEP_DEFINED__
.EQU __se_bit=0x40
.EQU __sm_mask=0xB0
.EQU __sm_powerdown=0x20
.EQU __sm_powersave=0x30
.EQU __sm_standby=0xA0
.EQU __sm_ext_standby=0xB0
.EQU __sm_adc_noise_red=0x10
.SET power_ctrl_reg=mcucr
#endif
.DSEG
.CSEG
__lcd_write_nibble_G100:
; .FSTART __lcd_write_nibble_G100
RCALL SUBOPT_0x0
IN R30,0x18
ANDI R30,LOW(0xF)
MOV R26,R30
MOV R30,R17
ANDI R30,LOW(0xF0)
OR R30,R26
OUT 0x18,R30
RCALL SUBOPT_0x19
SBI 0x18,2
RCALL SUBOPT_0x19
CBI 0x18,2
RCALL SUBOPT_0x19
RJMP _0x2080001
; .FEND
__lcd_write_data:
; .FSTART __lcd_write_data
ST -Y,R26
LD R26,Y
RCALL __lcd_write_nibble_G100
ld r30,y
swap r30
st y,r30
LD R26,Y
RCALL __lcd_write_nibble_G100
__DELAY_USB 17
ADIW R28,1
RET
; .FEND
_lcd_gotoxy:
; .FSTART _lcd_gotoxy
RCALL __SAVELOCR2
MOV R17,R26
LDD R16,Y+2
MOV R30,R17
LDI R31,0
SUBI R30,LOW(-__base_y_G100)
SBCI R31,HIGH(-__base_y_G100)
LD R30,Z
ADD R30,R16
MOV R26,R30
RCALL __lcd_write_data
STS __lcd_x,R16
STS __lcd_y,R17
RCALL __LOADLOCR2
ADIW R28,3
RET
; .FEND
_lcd_clear:
; .FSTART _lcd_clear
LDI R26,LOW(2)
RCALL __lcd_write_data
LDI R26,LOW(3)
RCALL SUBOPT_0x2
LDI R26,LOW(12)
RCALL __lcd_write_data
LDI R26,LOW(1)
RCALL __lcd_write_data
LDI R26,LOW(3)
RCALL SUBOPT_0x2
LDI R30,LOW(0)
STS __lcd_y,R30
STS __lcd_x,R30
RET
; .FEND
_lcd_putchar:
; .FSTART _lcd_putchar
RCALL SUBOPT_0x0
CPI R17,10
BREQ _0x2000005
LDS R30,__lcd_maxx
LDS R26,__lcd_x
CP R26,R30
BRLO _0x2000004
_0x2000005:
LDI R30,LOW(0)
ST -Y,R30
LDS R26,__lcd_y
SUBI R26,-LOW(1)
STS __lcd_y,R26
RCALL _lcd_gotoxy
CPI R17,10
BRNE _0x2000007
RJMP _0x2080001
_0x2000007:
_0x2000004:
LDS R30,__lcd_x
SUBI R30,-LOW(1)
STS __lcd_x,R30
SBI 0x18,0
MOV R26,R17
RCALL __lcd_write_data
CBI 0x18,0
RJMP _0x2080001
; .FEND
_lcd_putsf:
; .FSTART _lcd_putsf
RCALL __SAVELOCR4
MOVW R18,R26
_0x200000B:
MOVW R30,R18
__ADDWRN 18,19,1
LPM R30,Z
MOV R17,R30
CPI R30,0
BREQ _0x200000D
MOV R26,R17
RCALL _lcd_putchar
RJMP _0x200000B
_0x200000D:
RCALL __LOADLOCR4
ADIW R28,4
RET
; .FEND
_lcd_init:
; .FSTART _lcd_init
RCALL SUBOPT_0x0
IN R30,0x17
ORI R30,LOW(0xF0)
OUT 0x17,R30
SBI 0x17,2
SBI 0x17,0
SBI 0x17,1
CBI 0x18,2
CBI 0x18,0
CBI 0x18,1
STS __lcd_maxx,R17
MOV R30,R17
SUBI R30,-LOW(128)
__PUTB1MN __base_y_G100,2
MOV R30,R17
SUBI R30,-LOW(192)
__PUTB1MN __base_y_G100,3
LDI R26,LOW(20)
RCALL SUBOPT_0x2
RCALL SUBOPT_0x1A
RCALL SUBOPT_0x1A
RCALL SUBOPT_0x1A
LDI R26,LOW(32)
RCALL __lcd_write_nibble_G100
__DELAY_USB 33
LDI R26,LOW(40)
RCALL __lcd_write_data
LDI R26,LOW(4)
RCALL __lcd_write_data
LDI R26,LOW(133)
RCALL __lcd_write_data
LDI R26,LOW(6)
RCALL __lcd_write_data
RCALL _lcd_clear
_0x2080001:
LD R17,Y+
RET
; .FEND
#ifndef __SLEEP_DEFINED__
#define __SLEEP_DEFINED__
.EQU __se_bit=0x40
.EQU __sm_mask=0xB0
.EQU __sm_powerdown=0x20
.EQU __sm_powersave=0x30
.EQU __sm_standby=0xA0
.EQU __sm_ext_standby=0xB0
.EQU __sm_adc_noise_red=0x10
.SET power_ctrl_reg=mcucr
#endif
.CSEG
.CSEG
.CSEG
.DSEG
_cel:
.BYTE 0x4
_decimas:
.BYTE 0x1
_cn:
.BYTE 0x1
_seg:
.BYTE 0x1
_min:
.BYTE 0x1
_hor:
.BYTE 0x1
_dia:
.BYTE 0x1
_mes:
.BYTE 0x1
_change:
.BYTE 0x1
_ye:
.BYTE 0x2
_ar:
.BYTE 0x2
__base_y_G100:
.BYTE 0x4
__lcd_x:
.BYTE 0x1
__lcd_y:
.BYTE 0x1
__lcd_maxx:
.BYTE 0x1
.CSEG
;OPTIMIZER ADDED SUBROUTINE, CALLED 4 TIMES, CODE SIZE REDUCTION:1 WORDS
SUBOPT_0x0:
ST -Y,R17
MOV R17,R26
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 7 TIMES, CODE SIZE REDUCTION:4 WORDS
SUBOPT_0x1:
CLR R8
CLR R9
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 5 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0x2:
LDI R27,0
RJMP _delay_ms
;OPTIMIZER ADDED SUBROUTINE, CALLED 11 TIMES, CODE SIZE REDUCTION:18 WORDS
SUBOPT_0x3:
ST -Y,R30
LDI R26,LOW(0)
RJMP _lcd_gotoxy
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:5 WORDS
SUBOPT_0x4:
LDS R26,_cel
LDS R27,_cel+1
LDS R24,_cel+2
LDS R25,_cel+3
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:1 WORDS
SUBOPT_0x5:
__GETD1N 0x42C60000
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 16 TIMES, CODE SIZE REDUCTION:13 WORDS
SUBOPT_0x6:
LDI R30,LOW(10)
LDI R31,HIGH(10)
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 6 TIMES, CODE SIZE REDUCTION:3 WORDS
SUBOPT_0x7:
RCALL SUBOPT_0x6
RCALL __DIVW21
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 14 TIMES, CODE SIZE REDUCTION:24 WORDS
SUBOPT_0x8:
ST -Y,R30
LDI R26,LOW(1)
RJMP _lcd_gotoxy
;OPTIMIZER ADDED SUBROUTINE, CALLED 6 TIMES, CODE SIZE REDUCTION:3 WORDS
SUBOPT_0x9:
__CPWRR 10,11,8,9
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0xA:
LDS R30,_hor
SUBI R30,-LOW(1)
STS _hor,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 6 TIMES, CODE SIZE REDUCTION:8 WORDS
SUBOPT_0xB:
MOVW R30,R8
ADIW R30,1
MOVW R8,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0xC:
LDS R30,_min
SUBI R30,-LOW(1)
STS _min,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0xD:
LDS R30,_seg
SUBI R30,-LOW(1)
STS _seg,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:4 WORDS
SUBOPT_0xE:
LDI R26,LOW(_ar)
LDI R27,HIGH(_ar)
LD R30,X+
LD R31,X+
ADIW R30,1
ST -X,R31
ST -X,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:4 WORDS
SUBOPT_0xF:
LDS R26,_ar
LDS R27,_ar+1
CPI R26,LOW(0x64)
LDI R30,HIGH(0x64)
CPC R27,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:9 WORDS
SUBOPT_0x10:
LDI R26,LOW(_ye)
LDI R27,HIGH(_ye)
LD R30,X+
LD R31,X+
ADIW R30,1
ST -X,R31
ST -X,R30
LDI R30,LOW(0)
STS _ar,R30
STS _ar+1,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0x11:
LDS R30,_mes
SUBI R30,-LOW(1)
STS _mes,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0x12:
LDS R30,_dia
SUBI R30,-LOW(1)
STS _dia,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0x13:
LDI R30,LOW(0)
STS _seg,R30
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 5 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0x14:
LDI R27,0
RJMP SUBOPT_0x7
;OPTIMIZER ADDED SUBROUTINE, CALLED 14 TIMES, CODE SIZE REDUCTION:24 WORDS
SUBOPT_0x15:
SUBI R30,-LOW(48)
MOV R26,R30
RJMP _lcd_putchar
;OPTIMIZER ADDED SUBROUTINE, CALLED 5 TIMES, CODE SIZE REDUCTION:10 WORDS
SUBOPT_0x16:
CLR R27
RCALL SUBOPT_0x6
RCALL __MODW21
RJMP SUBOPT_0x15
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0x17:
LDS R26,_ye
LDS R27,_ye+1
RJMP SUBOPT_0x6
;OPTIMIZER ADDED SUBROUTINE, CALLED 2 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0x18:
LDS R26,_ar
LDS R27,_ar+1
RJMP SUBOPT_0x6
;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:2 WORDS
SUBOPT_0x19:
__DELAY_USB 2
RET
;OPTIMIZER ADDED SUBROUTINE, CALLED 3 TIMES, CODE SIZE REDUCTION:6 WORDS
SUBOPT_0x1A:
LDI R26,LOW(48)
RCALL __lcd_write_nibble_G100
__DELAY_USB 33
RET
;RUNTIME LIBRARY
.CSEG
__SAVELOCR4:
ST -Y,R19
__SAVELOCR3:
ST -Y,R18
__SAVELOCR2:
ST -Y,R17
ST -Y,R16
RET
__LOADLOCR4:
LDD R19,Y+3
__LOADLOCR3:
LDD R18,Y+2
__LOADLOCR2:
LDD R17,Y+1
LD R16,Y
RET
__ANEGW1:
NEG R31
NEG R30
SBCI R31,0
RET
__ANEGD1:
COM R31
COM R22
COM R23
NEG R30
SBCI R31,-1
SBCI R22,-1
SBCI R23,-1
RET
__DIVW21U:
CLR R0
CLR R1
LDI R25,16
__DIVW21U1:
LSL R26
ROL R27
ROL R0
ROL R1
SUB R0,R30
SBC R1,R31
BRCC __DIVW21U2
ADD R0,R30
ADC R1,R31
RJMP __DIVW21U3
__DIVW21U2:
SBR R26,1
__DIVW21U3:
DEC R25
BRNE __DIVW21U1
MOVW R30,R26
MOVW R26,R0
RET
__DIVW21:
RCALL __CHKSIGNW
RCALL __DIVW21U
BRTC __DIVW211
RCALL __ANEGW1
__DIVW211:
RET
__MODW21U:
RCALL __DIVW21U
MOVW R30,R26
RET
__MODW21:
CLT
SBRS R27,7
RJMP __MODW211
NEG R27
NEG R26
SBCI R27,0
SET
__MODW211:
SBRC R31,7
RCALL __ANEGW1
RCALL __DIVW21U
MOVW R30,R26
BRTC __MODW212
RCALL __ANEGW1
__MODW212:
RET
__CHKSIGNW:
CLT
SBRS R31,7
RJMP __CHKSW1
RCALL __ANEGW1
SET
__CHKSW1:
SBRS R27,7
RJMP __CHKSW2
NEG R27
NEG R26
SBCI R27,0
BLD R0,0
INC R0
BST R0,0
__CHKSW2:
RET
__ROUND_REPACK:
TST R21
BRPL __REPACK
CPI R21,0x80
BRNE __ROUND_REPACK0
SBRS R30,0
RJMP __REPACK
__ROUND_REPACK0:
ADIW R30,1
ADC R22,R25
ADC R23,R25
BRVS __REPACK1
__REPACK:
LDI R21,0x80
EOR R21,R23
BRNE __REPACK0
PUSH R21
RJMP __ZERORES
__REPACK0:
CPI R21,0xFF
BREQ __REPACK1
LSL R22
LSL R0
ROR R21
ROR R22
MOV R23,R21
RET
__REPACK1:
PUSH R21
TST R0
BRMI __REPACK2
RJMP __MAXRES
__REPACK2:
RJMP __MINRES
__UNPACK:
LDI R21,0x80
MOV R1,R25
AND R1,R21
LSL R24
ROL R25
EOR R25,R21
LSL R21
ROR R24
__UNPACK1:
LDI R21,0x80
MOV R0,R23
AND R0,R21
LSL R22
ROL R23
EOR R23,R21
LSL R21
ROR R22
RET
__CFD1U:
SET
RJMP __CFD1U0
__CFD1:
CLT
__CFD1U0:
PUSH R21
RCALL __UNPACK1
CPI R23,0x80
BRLO __CFD10
CPI R23,0xFF
BRCC __CFD10
RJMP __ZERORES
__CFD10:
LDI R21,22
SUB R21,R23
BRPL __CFD11
NEG R21
CPI R21,8
BRTC __CFD19
CPI R21,9
__CFD19:
BRLO __CFD17
SER R30
SER R31
SER R22
LDI R23,0x7F
BLD R23,7
RJMP __CFD15
__CFD17:
CLR R23
TST R21
BREQ __CFD15
__CFD18:
LSL R30
ROL R31
ROL R22
ROL R23
DEC R21
BRNE __CFD18
RJMP __CFD15
__CFD11:
CLR R23
__CFD12:
CPI R21,8
BRLO __CFD13
MOV R30,R31
MOV R31,R22
MOV R22,R23
SUBI R21,8
RJMP __CFD12
__CFD13:
TST R21
BREQ __CFD15
__CFD14:
LSR R23
ROR R22
ROR R31
ROR R30
DEC R21
BRNE __CFD14
__CFD15:
TST R0
BRPL __CFD16
RCALL __ANEGD1
__CFD16:
POP R21
RET
__CDF1U:
SET
RJMP __CDF1U0
__CDF1:
CLT
__CDF1U0:
SBIW R30,0
SBCI R22,0
SBCI R23,0
BREQ __CDF10
CLR R0
BRTS __CDF11
TST R23
BRPL __CDF11
COM R0
RCALL __ANEGD1
__CDF11:
MOV R1,R23
LDI R23,30
TST R1
__CDF12:
BRMI __CDF13
DEC R23
LSL R30
ROL R31
ROL R22
ROL R1
RJMP __CDF12
__CDF13:
MOV R30,R31
MOV R31,R22
MOV R22,R1
PUSH R21
RCALL __REPACK
POP R21
__CDF10:
RET
__ZERORES:
CLR R30
CLR R31
MOVW R22,R30
POP R21
RET
__MINRES:
SER R30
SER R31
LDI R22,0x7F
SER R23
POP R21
RET
__MAXRES:
SER R30
SER R31
LDI R22,0x7F
LDI R23,0x7F
POP R21
RET
__MULF12:
PUSH R21
RCALL __UNPACK
CPI R23,0x80
BREQ __ZERORES
CPI R25,0x80
BREQ __ZERORES
EOR R0,R1
SEC
ADC R23,R25
BRVC __MULF124
BRLT __ZERORES
__MULF125:
TST R0
BRMI __MINRES
RJMP __MAXRES
__MULF124:
PUSH R0
PUSH R17
PUSH R18
PUSH R19
PUSH R20
CLR R17
CLR R18
CLR R25
MUL R22,R24
MOVW R20,R0
MUL R24,R31
MOV R19,R0
ADD R20,R1
ADC R21,R25
MUL R22,R27
ADD R19,R0
ADC R20,R1
ADC R21,R25
MUL R24,R30
RCALL __MULF126
MUL R27,R31
RCALL __MULF126
MUL R22,R26
RCALL __MULF126
MUL R27,R30
RCALL __MULF127
MUL R26,R31
RCALL __MULF127
MUL R26,R30
ADD R17,R1
ADC R18,R25
ADC R19,R25
ADC R20,R25
ADC R21,R25
MOV R30,R19
MOV R31,R20
MOV R22,R21
MOV R21,R18
POP R20
POP R19
POP R18
POP R17
POP R0
TST R22
BRMI __MULF122
LSL R21
ROL R30
ROL R31
ROL R22
RJMP __MULF123
__MULF122:
INC R23
BRVS __MULF125
__MULF123:
RCALL __ROUND_REPACK
POP R21
RET
__MULF127:
ADD R17,R0
ADC R18,R1
ADC R19,R25
RJMP __MULF128
__MULF126:
ADD R18,R0
ADC R19,R1
__MULF128:
ADC R20,R25
ADC R21,R25
RET
__CMPF12:
TST R25
BRMI __CMPF120
TST R23
BRMI __CMPF121
CP R25,R23
BRLO __CMPF122
BRNE __CMPF121
CP R26,R30
CPC R27,R31
CPC R24,R22
BRLO __CMPF122
BREQ __CMPF123
__CMPF121:
CLZ
CLC
RET
__CMPF122:
CLZ
SEC
RET
__CMPF123:
SEZ
CLC
RET
__CMPF120:
TST R23
BRPL __CMPF122
CP R25,R23
BRLO __CMPF121
BRNE __CMPF122
CP R30,R26
CPC R31,R27
CPC R22,R24
BRLO __CMPF122
BREQ __CMPF123
RJMP __CMPF121
_delay_ms:
adiw r26,0
breq __delay_ms1
__delay_ms0:
wdr
__DELAY_USW 0xFA
sbiw r26,1
brne __delay_ms0
__delay_ms1:
ret
;END OF CODE MARKER
__END_OF_CODE:
| 17.247827 | 132 | 0.617198 |
96049e1af09e266a9c3d6a6af9e1ead73b1f34a5 | 348 | asm | Assembly | programs/oeis/037/A037492.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/037/A037492.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/037/A037492.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A037492: Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 2,1.
; 2,15,107,750,5252,36765,257357,1801500,12610502,88273515,617914607,4325402250,30277815752,211944710265,1483612971857,10385290803000,72697035621002,508879249347015,3562154745429107
add $0,1
mov $1,7
pow $1,$0
mul $1,5
div $1,16
mov $0,$1
| 34.8 | 181 | 0.787356 |
8e4ed497e48d6c47cbd6f019d19e11e32ae75f2d | 7,778 | asm | Assembly | Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_21829_309.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_21829_309.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xca.log_21829_309.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 %r15
push %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0xdf1e, %rcx
sub $25313, %rdx
mov (%rcx), %rax
xor %r15, %r15
lea addresses_WC_ht+0xeab6, %r13
nop
nop
nop
nop
nop
xor $61844, %r12
movups (%r13), %xmm7
vpextrq $0, %xmm7, %r8
add $13096, %r12
lea addresses_WT_ht+0x16876, %rsi
lea addresses_UC_ht+0x30b6, %rdi
nop
xor %r13, %r13
mov $9, %rcx
rep movsq
nop
nop
nop
sub $26891, %rdi
lea addresses_WT_ht+0x33b6, %rdi
sub $61916, %r15
and $0xffffffffffffffc0, %rdi
movaps (%rdi), %xmm1
vpextrq $1, %xmm1, %rax
nop
nop
nop
and $3829, %r8
lea addresses_WT_ht+0x10db6, %rsi
lea addresses_WT_ht+0x37e6, %rdi
nop
nop
nop
add $49592, %rax
mov $94, %rcx
rep movsq
nop
and %rdi, %rdi
lea addresses_UC_ht+0x2a96, %rcx
nop
sub $51356, %r13
mov (%rcx), %rax
nop
and $59023, %rsi
lea addresses_normal_ht+0x18c97, %rsi
lea addresses_A_ht+0x1bb36, %rdi
and $58292, %r15
mov $61, %rcx
rep movsl
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_UC_ht+0x14856, %rsi
lea addresses_UC_ht+0x14b6, %rdi
nop
nop
and $54245, %r15
mov $53, %rcx
rep movsb
dec %rax
lea addresses_D_ht+0xc98d, %r13
nop
nop
nop
nop
add %rcx, %rcx
mov $0x6162636465666768, %r12
movq %r12, %xmm4
vmovups %ymm4, (%r13)
nop
nop
and %r15, %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r9
push %rbp
push %rcx
push %rdx
// Store
lea addresses_D+0x7fb6, %r9
nop
nop
add $11229, %r10
mov $0x5152535455565758, %r11
movq %r11, %xmm1
vmovups %ymm1, (%r9)
xor $27947, %r11
// Store
lea addresses_normal+0xc7b6, %rbp
nop
nop
nop
nop
nop
add %rdx, %rdx
movb $0x51, (%rbp)
and %rbp, %rbp
// Store
mov $0x5c6eea0000000e1c, %rdx
and $44368, %r11
mov $0x5152535455565758, %r10
movq %r10, %xmm0
vmovups %ymm0, (%rdx)
nop
nop
nop
nop
sub $46158, %rdx
// Store
lea addresses_A+0x72d2, %rbp
inc %rcx
movl $0x51525354, (%rbp)
nop
nop
nop
dec %r12
// Store
lea addresses_UC+0xc8ce, %rcx
clflush (%rcx)
nop
nop
nop
nop
cmp %rdx, %rdx
movl $0x51525354, (%rcx)
nop
add %rdx, %rdx
// Store
lea addresses_normal+0xd1b6, %r9
nop
sub %r11, %r11
movw $0x5152, (%r9)
nop
cmp %r12, %r12
// Faulty Load
lea addresses_WC+0xf7b6, %r11
clflush (%r11)
nop
dec %rdx
movups (%r11), %xmm6
vpextrq $0, %xmm6, %r10
lea oracles, %rdx
and $0xff, %r10
shlq $12, %r10
mov (%rdx,%r10,1), %r10
pop %rdx
pop %rcx
pop %rbp
pop %r9
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 7}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': True, 'AVXalign': False, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 8}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': True, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 2}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'51': 21829}
51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
*/
| 35.515982 | 2,999 | 0.654153 |
65750ec1aa8bb7d51347d010a29c4ef2c2d4ab71 | 41,143 | asm | Assembly | rm.asm | johnhhyang/os2 | 4a6108a836f08fb8e87b183683497ab299d235ba | [
"MIT-0"
] | null | null | null | rm.asm | johnhhyang/os2 | 4a6108a836f08fb8e87b183683497ab299d235ba | [
"MIT-0"
] | null | null | null | rm.asm | johnhhyang/os2 | 4a6108a836f08fb8e87b183683497ab299d235ba | [
"MIT-0"
] | null | null | null |
_rm: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 20 sub $0x20,%esp
int i;
if(argc < 2){
9: 83 7d 08 01 cmpl $0x1,0x8(%ebp)
d: 7f 19 jg 28 <main+0x28>
printf(2, "Usage: rm files...\n");
f: c7 44 24 04 44 08 00 movl $0x844,0x4(%esp)
16: 00
17: c7 04 24 02 00 00 00 movl $0x2,(%esp)
1e: e8 5c 04 00 00 call 47f <printf>
exit();
23: e8 c0 02 00 00 call 2e8 <exit>
}
for(i = 1; i < argc; i++){
28: c7 44 24 1c 01 00 00 movl $0x1,0x1c(%esp)
2f: 00
30: eb 43 jmp 75 <main+0x75>
if(unlink(argv[i]) < 0){
32: 8b 44 24 1c mov 0x1c(%esp),%eax
36: c1 e0 02 shl $0x2,%eax
39: 03 45 0c add 0xc(%ebp),%eax
3c: 8b 00 mov (%eax),%eax
3e: 89 04 24 mov %eax,(%esp)
41: e8 f2 02 00 00 call 338 <unlink>
46: 85 c0 test %eax,%eax
48: 79 26 jns 70 <main+0x70>
printf(2, "rm: %s failed to delete\n", argv[i]);
4a: 8b 44 24 1c mov 0x1c(%esp),%eax
4e: c1 e0 02 shl $0x2,%eax
51: 03 45 0c add 0xc(%ebp),%eax
54: 8b 00 mov (%eax),%eax
56: 89 44 24 08 mov %eax,0x8(%esp)
5a: c7 44 24 04 58 08 00 movl $0x858,0x4(%esp)
61: 00
62: c7 04 24 02 00 00 00 movl $0x2,(%esp)
69: e8 11 04 00 00 call 47f <printf>
break;
6e: eb 0e jmp 7e <main+0x7e>
if(argc < 2){
printf(2, "Usage: rm files...\n");
exit();
}
for(i = 1; i < argc; i++){
70: 83 44 24 1c 01 addl $0x1,0x1c(%esp)
75: 8b 44 24 1c mov 0x1c(%esp),%eax
79: 3b 45 08 cmp 0x8(%ebp),%eax
7c: 7c b4 jl 32 <main+0x32>
printf(2, "rm: %s failed to delete\n", argv[i]);
break;
}
}
exit();
7e: e8 65 02 00 00 call 2e8 <exit>
83: 90 nop
00000084 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
84: 55 push %ebp
85: 89 e5 mov %esp,%ebp
87: 57 push %edi
88: 53 push %ebx
asm volatile("cld; rep stosb" :
89: 8b 4d 08 mov 0x8(%ebp),%ecx
8c: 8b 55 10 mov 0x10(%ebp),%edx
8f: 8b 45 0c mov 0xc(%ebp),%eax
92: 89 cb mov %ecx,%ebx
94: 89 df mov %ebx,%edi
96: 89 d1 mov %edx,%ecx
98: fc cld
99: f3 aa rep stos %al,%es:(%edi)
9b: 89 ca mov %ecx,%edx
9d: 89 fb mov %edi,%ebx
9f: 89 5d 08 mov %ebx,0x8(%ebp)
a2: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
a5: 5b pop %ebx
a6: 5f pop %edi
a7: 5d pop %ebp
a8: c3 ret
000000a9 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
a9: 55 push %ebp
aa: 89 e5 mov %esp,%ebp
ac: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
af: 8b 45 08 mov 0x8(%ebp),%eax
b2: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
b5: 90 nop
b6: 8b 45 0c mov 0xc(%ebp),%eax
b9: 0f b6 10 movzbl (%eax),%edx
bc: 8b 45 08 mov 0x8(%ebp),%eax
bf: 88 10 mov %dl,(%eax)
c1: 8b 45 08 mov 0x8(%ebp),%eax
c4: 0f b6 00 movzbl (%eax),%eax
c7: 84 c0 test %al,%al
c9: 0f 95 c0 setne %al
cc: 83 45 08 01 addl $0x1,0x8(%ebp)
d0: 83 45 0c 01 addl $0x1,0xc(%ebp)
d4: 84 c0 test %al,%al
d6: 75 de jne b6 <strcpy+0xd>
;
return os;
d8: 8b 45 fc mov -0x4(%ebp),%eax
}
db: c9 leave
dc: c3 ret
000000dd <strcmp>:
int
strcmp(const char *p, const char *q)
{
dd: 55 push %ebp
de: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
e0: eb 08 jmp ea <strcmp+0xd>
p++, q++;
e2: 83 45 08 01 addl $0x1,0x8(%ebp)
e6: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
ea: 8b 45 08 mov 0x8(%ebp),%eax
ed: 0f b6 00 movzbl (%eax),%eax
f0: 84 c0 test %al,%al
f2: 74 10 je 104 <strcmp+0x27>
f4: 8b 45 08 mov 0x8(%ebp),%eax
f7: 0f b6 10 movzbl (%eax),%edx
fa: 8b 45 0c mov 0xc(%ebp),%eax
fd: 0f b6 00 movzbl (%eax),%eax
100: 38 c2 cmp %al,%dl
102: 74 de je e2 <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
104: 8b 45 08 mov 0x8(%ebp),%eax
107: 0f b6 00 movzbl (%eax),%eax
10a: 0f b6 d0 movzbl %al,%edx
10d: 8b 45 0c mov 0xc(%ebp),%eax
110: 0f b6 00 movzbl (%eax),%eax
113: 0f b6 c0 movzbl %al,%eax
116: 89 d1 mov %edx,%ecx
118: 29 c1 sub %eax,%ecx
11a: 89 c8 mov %ecx,%eax
}
11c: 5d pop %ebp
11d: c3 ret
0000011e <strlen>:
uint
strlen(char *s)
{
11e: 55 push %ebp
11f: 89 e5 mov %esp,%ebp
121: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
124: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
12b: eb 04 jmp 131 <strlen+0x13>
12d: 83 45 fc 01 addl $0x1,-0x4(%ebp)
131: 8b 45 fc mov -0x4(%ebp),%eax
134: 03 45 08 add 0x8(%ebp),%eax
137: 0f b6 00 movzbl (%eax),%eax
13a: 84 c0 test %al,%al
13c: 75 ef jne 12d <strlen+0xf>
;
return n;
13e: 8b 45 fc mov -0x4(%ebp),%eax
}
141: c9 leave
142: c3 ret
00000143 <memset>:
void*
memset(void *dst, int c, uint n)
{
143: 55 push %ebp
144: 89 e5 mov %esp,%ebp
146: 83 ec 0c sub $0xc,%esp
stosb(dst, c, n);
149: 8b 45 10 mov 0x10(%ebp),%eax
14c: 89 44 24 08 mov %eax,0x8(%esp)
150: 8b 45 0c mov 0xc(%ebp),%eax
153: 89 44 24 04 mov %eax,0x4(%esp)
157: 8b 45 08 mov 0x8(%ebp),%eax
15a: 89 04 24 mov %eax,(%esp)
15d: e8 22 ff ff ff call 84 <stosb>
return dst;
162: 8b 45 08 mov 0x8(%ebp),%eax
}
165: c9 leave
166: c3 ret
00000167 <strchr>:
char*
strchr(const char *s, char c)
{
167: 55 push %ebp
168: 89 e5 mov %esp,%ebp
16a: 83 ec 04 sub $0x4,%esp
16d: 8b 45 0c mov 0xc(%ebp),%eax
170: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
173: eb 14 jmp 189 <strchr+0x22>
if(*s == c)
175: 8b 45 08 mov 0x8(%ebp),%eax
178: 0f b6 00 movzbl (%eax),%eax
17b: 3a 45 fc cmp -0x4(%ebp),%al
17e: 75 05 jne 185 <strchr+0x1e>
return (char*)s;
180: 8b 45 08 mov 0x8(%ebp),%eax
183: eb 13 jmp 198 <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
185: 83 45 08 01 addl $0x1,0x8(%ebp)
189: 8b 45 08 mov 0x8(%ebp),%eax
18c: 0f b6 00 movzbl (%eax),%eax
18f: 84 c0 test %al,%al
191: 75 e2 jne 175 <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
193: b8 00 00 00 00 mov $0x0,%eax
}
198: c9 leave
199: c3 ret
0000019a <gets>:
char*
gets(char *buf, int max)
{
19a: 55 push %ebp
19b: 89 e5 mov %esp,%ebp
19d: 83 ec 28 sub $0x28,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
1a0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
1a7: eb 44 jmp 1ed <gets+0x53>
cc = read(0, &c, 1);
1a9: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
1b0: 00
1b1: 8d 45 ef lea -0x11(%ebp),%eax
1b4: 89 44 24 04 mov %eax,0x4(%esp)
1b8: c7 04 24 00 00 00 00 movl $0x0,(%esp)
1bf: e8 3c 01 00 00 call 300 <read>
1c4: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
1c7: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
1cb: 7e 2d jle 1fa <gets+0x60>
break;
buf[i++] = c;
1cd: 8b 45 f4 mov -0xc(%ebp),%eax
1d0: 03 45 08 add 0x8(%ebp),%eax
1d3: 0f b6 55 ef movzbl -0x11(%ebp),%edx
1d7: 88 10 mov %dl,(%eax)
1d9: 83 45 f4 01 addl $0x1,-0xc(%ebp)
if(c == '\n' || c == '\r')
1dd: 0f b6 45 ef movzbl -0x11(%ebp),%eax
1e1: 3c 0a cmp $0xa,%al
1e3: 74 16 je 1fb <gets+0x61>
1e5: 0f b6 45 ef movzbl -0x11(%ebp),%eax
1e9: 3c 0d cmp $0xd,%al
1eb: 74 0e je 1fb <gets+0x61>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
1ed: 8b 45 f4 mov -0xc(%ebp),%eax
1f0: 83 c0 01 add $0x1,%eax
1f3: 3b 45 0c cmp 0xc(%ebp),%eax
1f6: 7c b1 jl 1a9 <gets+0xf>
1f8: eb 01 jmp 1fb <gets+0x61>
cc = read(0, &c, 1);
if(cc < 1)
break;
1fa: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
1fb: 8b 45 f4 mov -0xc(%ebp),%eax
1fe: 03 45 08 add 0x8(%ebp),%eax
201: c6 00 00 movb $0x0,(%eax)
return buf;
204: 8b 45 08 mov 0x8(%ebp),%eax
}
207: c9 leave
208: c3 ret
00000209 <stat>:
int
stat(char *n, struct stat *st)
{
209: 55 push %ebp
20a: 89 e5 mov %esp,%ebp
20c: 83 ec 28 sub $0x28,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
20f: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
216: 00
217: 8b 45 08 mov 0x8(%ebp),%eax
21a: 89 04 24 mov %eax,(%esp)
21d: e8 06 01 00 00 call 328 <open>
222: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
225: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
229: 79 07 jns 232 <stat+0x29>
return -1;
22b: b8 ff ff ff ff mov $0xffffffff,%eax
230: eb 23 jmp 255 <stat+0x4c>
r = fstat(fd, st);
232: 8b 45 0c mov 0xc(%ebp),%eax
235: 89 44 24 04 mov %eax,0x4(%esp)
239: 8b 45 f4 mov -0xc(%ebp),%eax
23c: 89 04 24 mov %eax,(%esp)
23f: e8 fc 00 00 00 call 340 <fstat>
244: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
247: 8b 45 f4 mov -0xc(%ebp),%eax
24a: 89 04 24 mov %eax,(%esp)
24d: e8 be 00 00 00 call 310 <close>
return r;
252: 8b 45 f0 mov -0x10(%ebp),%eax
}
255: c9 leave
256: c3 ret
00000257 <atoi>:
int
atoi(const char *s)
{
257: 55 push %ebp
258: 89 e5 mov %esp,%ebp
25a: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
25d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
264: eb 23 jmp 289 <atoi+0x32>
n = n*10 + *s++ - '0';
266: 8b 55 fc mov -0x4(%ebp),%edx
269: 89 d0 mov %edx,%eax
26b: c1 e0 02 shl $0x2,%eax
26e: 01 d0 add %edx,%eax
270: 01 c0 add %eax,%eax
272: 89 c2 mov %eax,%edx
274: 8b 45 08 mov 0x8(%ebp),%eax
277: 0f b6 00 movzbl (%eax),%eax
27a: 0f be c0 movsbl %al,%eax
27d: 01 d0 add %edx,%eax
27f: 83 e8 30 sub $0x30,%eax
282: 89 45 fc mov %eax,-0x4(%ebp)
285: 83 45 08 01 addl $0x1,0x8(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
289: 8b 45 08 mov 0x8(%ebp),%eax
28c: 0f b6 00 movzbl (%eax),%eax
28f: 3c 2f cmp $0x2f,%al
291: 7e 0a jle 29d <atoi+0x46>
293: 8b 45 08 mov 0x8(%ebp),%eax
296: 0f b6 00 movzbl (%eax),%eax
299: 3c 39 cmp $0x39,%al
29b: 7e c9 jle 266 <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
29d: 8b 45 fc mov -0x4(%ebp),%eax
}
2a0: c9 leave
2a1: c3 ret
000002a2 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
2a2: 55 push %ebp
2a3: 89 e5 mov %esp,%ebp
2a5: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
2a8: 8b 45 08 mov 0x8(%ebp),%eax
2ab: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
2ae: 8b 45 0c mov 0xc(%ebp),%eax
2b1: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
2b4: eb 13 jmp 2c9 <memmove+0x27>
*dst++ = *src++;
2b6: 8b 45 f8 mov -0x8(%ebp),%eax
2b9: 0f b6 10 movzbl (%eax),%edx
2bc: 8b 45 fc mov -0x4(%ebp),%eax
2bf: 88 10 mov %dl,(%eax)
2c1: 83 45 fc 01 addl $0x1,-0x4(%ebp)
2c5: 83 45 f8 01 addl $0x1,-0x8(%ebp)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
2c9: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
2cd: 0f 9f c0 setg %al
2d0: 83 6d 10 01 subl $0x1,0x10(%ebp)
2d4: 84 c0 test %al,%al
2d6: 75 de jne 2b6 <memmove+0x14>
*dst++ = *src++;
return vdst;
2d8: 8b 45 08 mov 0x8(%ebp),%eax
}
2db: c9 leave
2dc: c3 ret
2dd: 90 nop
2de: 90 nop
2df: 90 nop
000002e0 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
2e0: b8 01 00 00 00 mov $0x1,%eax
2e5: cd 40 int $0x40
2e7: c3 ret
000002e8 <exit>:
SYSCALL(exit)
2e8: b8 02 00 00 00 mov $0x2,%eax
2ed: cd 40 int $0x40
2ef: c3 ret
000002f0 <wait>:
SYSCALL(wait)
2f0: b8 03 00 00 00 mov $0x3,%eax
2f5: cd 40 int $0x40
2f7: c3 ret
000002f8 <pipe>:
SYSCALL(pipe)
2f8: b8 04 00 00 00 mov $0x4,%eax
2fd: cd 40 int $0x40
2ff: c3 ret
00000300 <read>:
SYSCALL(read)
300: b8 05 00 00 00 mov $0x5,%eax
305: cd 40 int $0x40
307: c3 ret
00000308 <write>:
SYSCALL(write)
308: b8 10 00 00 00 mov $0x10,%eax
30d: cd 40 int $0x40
30f: c3 ret
00000310 <close>:
SYSCALL(close)
310: b8 15 00 00 00 mov $0x15,%eax
315: cd 40 int $0x40
317: c3 ret
00000318 <kill>:
SYSCALL(kill)
318: b8 06 00 00 00 mov $0x6,%eax
31d: cd 40 int $0x40
31f: c3 ret
00000320 <exec>:
SYSCALL(exec)
320: b8 07 00 00 00 mov $0x7,%eax
325: cd 40 int $0x40
327: c3 ret
00000328 <open>:
SYSCALL(open)
328: b8 0f 00 00 00 mov $0xf,%eax
32d: cd 40 int $0x40
32f: c3 ret
00000330 <mknod>:
SYSCALL(mknod)
330: b8 11 00 00 00 mov $0x11,%eax
335: cd 40 int $0x40
337: c3 ret
00000338 <unlink>:
SYSCALL(unlink)
338: b8 12 00 00 00 mov $0x12,%eax
33d: cd 40 int $0x40
33f: c3 ret
00000340 <fstat>:
SYSCALL(fstat)
340: b8 08 00 00 00 mov $0x8,%eax
345: cd 40 int $0x40
347: c3 ret
00000348 <link>:
SYSCALL(link)
348: b8 13 00 00 00 mov $0x13,%eax
34d: cd 40 int $0x40
34f: c3 ret
00000350 <mkdir>:
SYSCALL(mkdir)
350: b8 14 00 00 00 mov $0x14,%eax
355: cd 40 int $0x40
357: c3 ret
00000358 <chdir>:
SYSCALL(chdir)
358: b8 09 00 00 00 mov $0x9,%eax
35d: cd 40 int $0x40
35f: c3 ret
00000360 <dup>:
SYSCALL(dup)
360: b8 0a 00 00 00 mov $0xa,%eax
365: cd 40 int $0x40
367: c3 ret
00000368 <getpid>:
SYSCALL(getpid)
368: b8 0b 00 00 00 mov $0xb,%eax
36d: cd 40 int $0x40
36f: c3 ret
00000370 <sbrk>:
SYSCALL(sbrk)
370: b8 0c 00 00 00 mov $0xc,%eax
375: cd 40 int $0x40
377: c3 ret
00000378 <sleep>:
SYSCALL(sleep)
378: b8 0d 00 00 00 mov $0xd,%eax
37d: cd 40 int $0x40
37f: c3 ret
00000380 <uptime>:
SYSCALL(uptime)
380: b8 0e 00 00 00 mov $0xe,%eax
385: cd 40 int $0x40
387: c3 ret
00000388 <halt>:
SYSCALL(halt)
388: b8 16 00 00 00 mov $0x16,%eax
38d: cd 40 int $0x40
38f: c3 ret
00000390 <clone>:
SYSCALL(clone)
390: b8 19 00 00 00 mov $0x19,%eax
395: cd 40 int $0x40
397: c3 ret
00000398 <join>:
SYSCALL(join)
398: b8 1a 00 00 00 mov $0x1a,%eax
39d: cd 40 int $0x40
39f: c3 ret
000003a0 <texit>:
SYSCALL(texit)
3a0: b8 1b 00 00 00 mov $0x1b,%eax
3a5: cd 40 int $0x40
3a7: c3 ret
000003a8 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
3a8: 55 push %ebp
3a9: 89 e5 mov %esp,%ebp
3ab: 83 ec 28 sub $0x28,%esp
3ae: 8b 45 0c mov 0xc(%ebp),%eax
3b1: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
3b4: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
3bb: 00
3bc: 8d 45 f4 lea -0xc(%ebp),%eax
3bf: 89 44 24 04 mov %eax,0x4(%esp)
3c3: 8b 45 08 mov 0x8(%ebp),%eax
3c6: 89 04 24 mov %eax,(%esp)
3c9: e8 3a ff ff ff call 308 <write>
}
3ce: c9 leave
3cf: c3 ret
000003d0 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
3d0: 55 push %ebp
3d1: 89 e5 mov %esp,%ebp
3d3: 83 ec 48 sub $0x48,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
3d6: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
3dd: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
3e1: 74 17 je 3fa <printint+0x2a>
3e3: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
3e7: 79 11 jns 3fa <printint+0x2a>
neg = 1;
3e9: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
3f0: 8b 45 0c mov 0xc(%ebp),%eax
3f3: f7 d8 neg %eax
3f5: 89 45 ec mov %eax,-0x14(%ebp)
3f8: eb 06 jmp 400 <printint+0x30>
} else {
x = xx;
3fa: 8b 45 0c mov 0xc(%ebp),%eax
3fd: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
400: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
407: 8b 4d 10 mov 0x10(%ebp),%ecx
40a: 8b 45 ec mov -0x14(%ebp),%eax
40d: ba 00 00 00 00 mov $0x0,%edx
412: f7 f1 div %ecx
414: 89 d0 mov %edx,%eax
416: 0f b6 90 b4 0a 00 00 movzbl 0xab4(%eax),%edx
41d: 8d 45 dc lea -0x24(%ebp),%eax
420: 03 45 f4 add -0xc(%ebp),%eax
423: 88 10 mov %dl,(%eax)
425: 83 45 f4 01 addl $0x1,-0xc(%ebp)
}while((x /= base) != 0);
429: 8b 55 10 mov 0x10(%ebp),%edx
42c: 89 55 d4 mov %edx,-0x2c(%ebp)
42f: 8b 45 ec mov -0x14(%ebp),%eax
432: ba 00 00 00 00 mov $0x0,%edx
437: f7 75 d4 divl -0x2c(%ebp)
43a: 89 45 ec mov %eax,-0x14(%ebp)
43d: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
441: 75 c4 jne 407 <printint+0x37>
if(neg)
443: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
447: 74 2a je 473 <printint+0xa3>
buf[i++] = '-';
449: 8d 45 dc lea -0x24(%ebp),%eax
44c: 03 45 f4 add -0xc(%ebp),%eax
44f: c6 00 2d movb $0x2d,(%eax)
452: 83 45 f4 01 addl $0x1,-0xc(%ebp)
while(--i >= 0)
456: eb 1b jmp 473 <printint+0xa3>
putc(fd, buf[i]);
458: 8d 45 dc lea -0x24(%ebp),%eax
45b: 03 45 f4 add -0xc(%ebp),%eax
45e: 0f b6 00 movzbl (%eax),%eax
461: 0f be c0 movsbl %al,%eax
464: 89 44 24 04 mov %eax,0x4(%esp)
468: 8b 45 08 mov 0x8(%ebp),%eax
46b: 89 04 24 mov %eax,(%esp)
46e: e8 35 ff ff ff call 3a8 <putc>
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
473: 83 6d f4 01 subl $0x1,-0xc(%ebp)
477: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
47b: 79 db jns 458 <printint+0x88>
putc(fd, buf[i]);
}
47d: c9 leave
47e: c3 ret
0000047f <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
47f: 55 push %ebp
480: 89 e5 mov %esp,%ebp
482: 83 ec 38 sub $0x38,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
485: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
48c: 8d 45 0c lea 0xc(%ebp),%eax
48f: 83 c0 04 add $0x4,%eax
492: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
495: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
49c: e9 7d 01 00 00 jmp 61e <printf+0x19f>
c = fmt[i] & 0xff;
4a1: 8b 55 0c mov 0xc(%ebp),%edx
4a4: 8b 45 f0 mov -0x10(%ebp),%eax
4a7: 01 d0 add %edx,%eax
4a9: 0f b6 00 movzbl (%eax),%eax
4ac: 0f be c0 movsbl %al,%eax
4af: 25 ff 00 00 00 and $0xff,%eax
4b4: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
4b7: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
4bb: 75 2c jne 4e9 <printf+0x6a>
if(c == '%'){
4bd: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
4c1: 75 0c jne 4cf <printf+0x50>
state = '%';
4c3: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
4ca: e9 4b 01 00 00 jmp 61a <printf+0x19b>
} else {
putc(fd, c);
4cf: 8b 45 e4 mov -0x1c(%ebp),%eax
4d2: 0f be c0 movsbl %al,%eax
4d5: 89 44 24 04 mov %eax,0x4(%esp)
4d9: 8b 45 08 mov 0x8(%ebp),%eax
4dc: 89 04 24 mov %eax,(%esp)
4df: e8 c4 fe ff ff call 3a8 <putc>
4e4: e9 31 01 00 00 jmp 61a <printf+0x19b>
}
} else if(state == '%'){
4e9: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
4ed: 0f 85 27 01 00 00 jne 61a <printf+0x19b>
if(c == 'd'){
4f3: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
4f7: 75 2d jne 526 <printf+0xa7>
printint(fd, *ap, 10, 1);
4f9: 8b 45 e8 mov -0x18(%ebp),%eax
4fc: 8b 00 mov (%eax),%eax
4fe: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp)
505: 00
506: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp)
50d: 00
50e: 89 44 24 04 mov %eax,0x4(%esp)
512: 8b 45 08 mov 0x8(%ebp),%eax
515: 89 04 24 mov %eax,(%esp)
518: e8 b3 fe ff ff call 3d0 <printint>
ap++;
51d: 83 45 e8 04 addl $0x4,-0x18(%ebp)
521: e9 ed 00 00 00 jmp 613 <printf+0x194>
} else if(c == 'x' || c == 'p'){
526: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
52a: 74 06 je 532 <printf+0xb3>
52c: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
530: 75 2d jne 55f <printf+0xe0>
printint(fd, *ap, 16, 0);
532: 8b 45 e8 mov -0x18(%ebp),%eax
535: 8b 00 mov (%eax),%eax
537: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
53e: 00
53f: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
546: 00
547: 89 44 24 04 mov %eax,0x4(%esp)
54b: 8b 45 08 mov 0x8(%ebp),%eax
54e: 89 04 24 mov %eax,(%esp)
551: e8 7a fe ff ff call 3d0 <printint>
ap++;
556: 83 45 e8 04 addl $0x4,-0x18(%ebp)
55a: e9 b4 00 00 00 jmp 613 <printf+0x194>
} else if(c == 's'){
55f: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
563: 75 46 jne 5ab <printf+0x12c>
s = (char*)*ap;
565: 8b 45 e8 mov -0x18(%ebp),%eax
568: 8b 00 mov (%eax),%eax
56a: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
56d: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
571: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
575: 75 27 jne 59e <printf+0x11f>
s = "(null)";
577: c7 45 f4 71 08 00 00 movl $0x871,-0xc(%ebp)
while(*s != 0){
57e: eb 1e jmp 59e <printf+0x11f>
putc(fd, *s);
580: 8b 45 f4 mov -0xc(%ebp),%eax
583: 0f b6 00 movzbl (%eax),%eax
586: 0f be c0 movsbl %al,%eax
589: 89 44 24 04 mov %eax,0x4(%esp)
58d: 8b 45 08 mov 0x8(%ebp),%eax
590: 89 04 24 mov %eax,(%esp)
593: e8 10 fe ff ff call 3a8 <putc>
s++;
598: 83 45 f4 01 addl $0x1,-0xc(%ebp)
59c: eb 01 jmp 59f <printf+0x120>
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
59e: 90 nop
59f: 8b 45 f4 mov -0xc(%ebp),%eax
5a2: 0f b6 00 movzbl (%eax),%eax
5a5: 84 c0 test %al,%al
5a7: 75 d7 jne 580 <printf+0x101>
5a9: eb 68 jmp 613 <printf+0x194>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
5ab: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
5af: 75 1d jne 5ce <printf+0x14f>
putc(fd, *ap);
5b1: 8b 45 e8 mov -0x18(%ebp),%eax
5b4: 8b 00 mov (%eax),%eax
5b6: 0f be c0 movsbl %al,%eax
5b9: 89 44 24 04 mov %eax,0x4(%esp)
5bd: 8b 45 08 mov 0x8(%ebp),%eax
5c0: 89 04 24 mov %eax,(%esp)
5c3: e8 e0 fd ff ff call 3a8 <putc>
ap++;
5c8: 83 45 e8 04 addl $0x4,-0x18(%ebp)
5cc: eb 45 jmp 613 <printf+0x194>
} else if(c == '%'){
5ce: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
5d2: 75 17 jne 5eb <printf+0x16c>
putc(fd, c);
5d4: 8b 45 e4 mov -0x1c(%ebp),%eax
5d7: 0f be c0 movsbl %al,%eax
5da: 89 44 24 04 mov %eax,0x4(%esp)
5de: 8b 45 08 mov 0x8(%ebp),%eax
5e1: 89 04 24 mov %eax,(%esp)
5e4: e8 bf fd ff ff call 3a8 <putc>
5e9: eb 28 jmp 613 <printf+0x194>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
5eb: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp)
5f2: 00
5f3: 8b 45 08 mov 0x8(%ebp),%eax
5f6: 89 04 24 mov %eax,(%esp)
5f9: e8 aa fd ff ff call 3a8 <putc>
putc(fd, c);
5fe: 8b 45 e4 mov -0x1c(%ebp),%eax
601: 0f be c0 movsbl %al,%eax
604: 89 44 24 04 mov %eax,0x4(%esp)
608: 8b 45 08 mov 0x8(%ebp),%eax
60b: 89 04 24 mov %eax,(%esp)
60e: e8 95 fd ff ff call 3a8 <putc>
}
state = 0;
613: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
61a: 83 45 f0 01 addl $0x1,-0x10(%ebp)
61e: 8b 55 0c mov 0xc(%ebp),%edx
621: 8b 45 f0 mov -0x10(%ebp),%eax
624: 01 d0 add %edx,%eax
626: 0f b6 00 movzbl (%eax),%eax
629: 84 c0 test %al,%al
62b: 0f 85 70 fe ff ff jne 4a1 <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
631: c9 leave
632: c3 ret
633: 90 nop
00000634 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
634: 55 push %ebp
635: 89 e5 mov %esp,%ebp
637: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
63a: 8b 45 08 mov 0x8(%ebp),%eax
63d: 83 e8 08 sub $0x8,%eax
640: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
643: a1 d0 0a 00 00 mov 0xad0,%eax
648: 89 45 fc mov %eax,-0x4(%ebp)
64b: eb 24 jmp 671 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
64d: 8b 45 fc mov -0x4(%ebp),%eax
650: 8b 00 mov (%eax),%eax
652: 3b 45 fc cmp -0x4(%ebp),%eax
655: 77 12 ja 669 <free+0x35>
657: 8b 45 f8 mov -0x8(%ebp),%eax
65a: 3b 45 fc cmp -0x4(%ebp),%eax
65d: 77 24 ja 683 <free+0x4f>
65f: 8b 45 fc mov -0x4(%ebp),%eax
662: 8b 00 mov (%eax),%eax
664: 3b 45 f8 cmp -0x8(%ebp),%eax
667: 77 1a ja 683 <free+0x4f>
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
669: 8b 45 fc mov -0x4(%ebp),%eax
66c: 8b 00 mov (%eax),%eax
66e: 89 45 fc mov %eax,-0x4(%ebp)
671: 8b 45 f8 mov -0x8(%ebp),%eax
674: 3b 45 fc cmp -0x4(%ebp),%eax
677: 76 d4 jbe 64d <free+0x19>
679: 8b 45 fc mov -0x4(%ebp),%eax
67c: 8b 00 mov (%eax),%eax
67e: 3b 45 f8 cmp -0x8(%ebp),%eax
681: 76 ca jbe 64d <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
683: 8b 45 f8 mov -0x8(%ebp),%eax
686: 8b 40 04 mov 0x4(%eax),%eax
689: c1 e0 03 shl $0x3,%eax
68c: 89 c2 mov %eax,%edx
68e: 03 55 f8 add -0x8(%ebp),%edx
691: 8b 45 fc mov -0x4(%ebp),%eax
694: 8b 00 mov (%eax),%eax
696: 39 c2 cmp %eax,%edx
698: 75 24 jne 6be <free+0x8a>
bp->s.size += p->s.ptr->s.size;
69a: 8b 45 f8 mov -0x8(%ebp),%eax
69d: 8b 50 04 mov 0x4(%eax),%edx
6a0: 8b 45 fc mov -0x4(%ebp),%eax
6a3: 8b 00 mov (%eax),%eax
6a5: 8b 40 04 mov 0x4(%eax),%eax
6a8: 01 c2 add %eax,%edx
6aa: 8b 45 f8 mov -0x8(%ebp),%eax
6ad: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
6b0: 8b 45 fc mov -0x4(%ebp),%eax
6b3: 8b 00 mov (%eax),%eax
6b5: 8b 10 mov (%eax),%edx
6b7: 8b 45 f8 mov -0x8(%ebp),%eax
6ba: 89 10 mov %edx,(%eax)
6bc: eb 0a jmp 6c8 <free+0x94>
} else
bp->s.ptr = p->s.ptr;
6be: 8b 45 fc mov -0x4(%ebp),%eax
6c1: 8b 10 mov (%eax),%edx
6c3: 8b 45 f8 mov -0x8(%ebp),%eax
6c6: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
6c8: 8b 45 fc mov -0x4(%ebp),%eax
6cb: 8b 40 04 mov 0x4(%eax),%eax
6ce: c1 e0 03 shl $0x3,%eax
6d1: 03 45 fc add -0x4(%ebp),%eax
6d4: 3b 45 f8 cmp -0x8(%ebp),%eax
6d7: 75 20 jne 6f9 <free+0xc5>
p->s.size += bp->s.size;
6d9: 8b 45 fc mov -0x4(%ebp),%eax
6dc: 8b 50 04 mov 0x4(%eax),%edx
6df: 8b 45 f8 mov -0x8(%ebp),%eax
6e2: 8b 40 04 mov 0x4(%eax),%eax
6e5: 01 c2 add %eax,%edx
6e7: 8b 45 fc mov -0x4(%ebp),%eax
6ea: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
6ed: 8b 45 f8 mov -0x8(%ebp),%eax
6f0: 8b 10 mov (%eax),%edx
6f2: 8b 45 fc mov -0x4(%ebp),%eax
6f5: 89 10 mov %edx,(%eax)
6f7: eb 08 jmp 701 <free+0xcd>
} else
p->s.ptr = bp;
6f9: 8b 45 fc mov -0x4(%ebp),%eax
6fc: 8b 55 f8 mov -0x8(%ebp),%edx
6ff: 89 10 mov %edx,(%eax)
freep = p;
701: 8b 45 fc mov -0x4(%ebp),%eax
704: a3 d0 0a 00 00 mov %eax,0xad0
}
709: c9 leave
70a: c3 ret
0000070b <morecore>:
static Header*
morecore(uint nu)
{
70b: 55 push %ebp
70c: 89 e5 mov %esp,%ebp
70e: 83 ec 28 sub $0x28,%esp
char *p;
Header *hp;
if(nu < 4096)
711: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
718: 77 07 ja 721 <morecore+0x16>
nu = 4096;
71a: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
721: 8b 45 08 mov 0x8(%ebp),%eax
724: c1 e0 03 shl $0x3,%eax
727: 89 04 24 mov %eax,(%esp)
72a: e8 41 fc ff ff call 370 <sbrk>
72f: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
732: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
736: 75 07 jne 73f <morecore+0x34>
return 0;
738: b8 00 00 00 00 mov $0x0,%eax
73d: eb 22 jmp 761 <morecore+0x56>
hp = (Header*)p;
73f: 8b 45 f4 mov -0xc(%ebp),%eax
742: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
745: 8b 45 f0 mov -0x10(%ebp),%eax
748: 8b 55 08 mov 0x8(%ebp),%edx
74b: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
74e: 8b 45 f0 mov -0x10(%ebp),%eax
751: 83 c0 08 add $0x8,%eax
754: 89 04 24 mov %eax,(%esp)
757: e8 d8 fe ff ff call 634 <free>
return freep;
75c: a1 d0 0a 00 00 mov 0xad0,%eax
}
761: c9 leave
762: c3 ret
00000763 <malloc>:
void*
malloc(uint nbytes)
{
763: 55 push %ebp
764: 89 e5 mov %esp,%ebp
766: 83 ec 28 sub $0x28,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
769: 8b 45 08 mov 0x8(%ebp),%eax
76c: 83 c0 07 add $0x7,%eax
76f: c1 e8 03 shr $0x3,%eax
772: 83 c0 01 add $0x1,%eax
775: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
778: a1 d0 0a 00 00 mov 0xad0,%eax
77d: 89 45 f0 mov %eax,-0x10(%ebp)
780: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
784: 75 23 jne 7a9 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
786: c7 45 f0 c8 0a 00 00 movl $0xac8,-0x10(%ebp)
78d: 8b 45 f0 mov -0x10(%ebp),%eax
790: a3 d0 0a 00 00 mov %eax,0xad0
795: a1 d0 0a 00 00 mov 0xad0,%eax
79a: a3 c8 0a 00 00 mov %eax,0xac8
base.s.size = 0;
79f: c7 05 cc 0a 00 00 00 movl $0x0,0xacc
7a6: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
7a9: 8b 45 f0 mov -0x10(%ebp),%eax
7ac: 8b 00 mov (%eax),%eax
7ae: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
7b1: 8b 45 f4 mov -0xc(%ebp),%eax
7b4: 8b 40 04 mov 0x4(%eax),%eax
7b7: 3b 45 ec cmp -0x14(%ebp),%eax
7ba: 72 4d jb 809 <malloc+0xa6>
if(p->s.size == nunits)
7bc: 8b 45 f4 mov -0xc(%ebp),%eax
7bf: 8b 40 04 mov 0x4(%eax),%eax
7c2: 3b 45 ec cmp -0x14(%ebp),%eax
7c5: 75 0c jne 7d3 <malloc+0x70>
prevp->s.ptr = p->s.ptr;
7c7: 8b 45 f4 mov -0xc(%ebp),%eax
7ca: 8b 10 mov (%eax),%edx
7cc: 8b 45 f0 mov -0x10(%ebp),%eax
7cf: 89 10 mov %edx,(%eax)
7d1: eb 26 jmp 7f9 <malloc+0x96>
else {
p->s.size -= nunits;
7d3: 8b 45 f4 mov -0xc(%ebp),%eax
7d6: 8b 40 04 mov 0x4(%eax),%eax
7d9: 89 c2 mov %eax,%edx
7db: 2b 55 ec sub -0x14(%ebp),%edx
7de: 8b 45 f4 mov -0xc(%ebp),%eax
7e1: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
7e4: 8b 45 f4 mov -0xc(%ebp),%eax
7e7: 8b 40 04 mov 0x4(%eax),%eax
7ea: c1 e0 03 shl $0x3,%eax
7ed: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
7f0: 8b 45 f4 mov -0xc(%ebp),%eax
7f3: 8b 55 ec mov -0x14(%ebp),%edx
7f6: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
7f9: 8b 45 f0 mov -0x10(%ebp),%eax
7fc: a3 d0 0a 00 00 mov %eax,0xad0
return (void*)(p + 1);
801: 8b 45 f4 mov -0xc(%ebp),%eax
804: 83 c0 08 add $0x8,%eax
807: eb 38 jmp 841 <malloc+0xde>
}
if(p == freep)
809: a1 d0 0a 00 00 mov 0xad0,%eax
80e: 39 45 f4 cmp %eax,-0xc(%ebp)
811: 75 1b jne 82e <malloc+0xcb>
if((p = morecore(nunits)) == 0)
813: 8b 45 ec mov -0x14(%ebp),%eax
816: 89 04 24 mov %eax,(%esp)
819: e8 ed fe ff ff call 70b <morecore>
81e: 89 45 f4 mov %eax,-0xc(%ebp)
821: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
825: 75 07 jne 82e <malloc+0xcb>
return 0;
827: b8 00 00 00 00 mov $0x0,%eax
82c: eb 13 jmp 841 <malloc+0xde>
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){
82e: 8b 45 f4 mov -0xc(%ebp),%eax
831: 89 45 f0 mov %eax,-0x10(%ebp)
834: 8b 45 f4 mov -0xc(%ebp),%eax
837: 8b 00 mov (%eax),%eax
839: 89 45 f4 mov %eax,-0xc(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
83c: e9 70 ff ff ff jmp 7b1 <malloc+0x4e>
}
841: c9 leave
842: c3 ret
843: 90 nop
| 33.751436 | 60 | 0.426512 |
e6c22b5a12def745a350948deeec928397475872 | 2,220 | asm | Assembly | src/ianna-sect.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 67 | 2017-10-07T18:48:05.000Z | 2022-02-01T20:37:40.000Z | src/ianna-sect.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | null | null | null | src/ianna-sect.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 9 | 2017-10-06T21:02:55.000Z | 2022-01-06T03:11:58.000Z | FILE_BOOTSECTOR_BIN:
; bootsector.bin
; Side, track, sector
defb #00, #00, #41
; Length in bytes
defw #0200
FILE_STAGE2_BIN:
; stage2.bin
; Side, track, sector
defb #00, #00, #42
; Length in bytes
defw #00ea
FILE_MENU_BIN:
; menu.bin
; Side, track, sector
defb #00, #00, #43
; Length in bytes
defw #0000
FILE_IANNA_BIN:
; ianna.bin
; Side, track, sector
defb #00, #00, #43
; Length in bytes
defw #9e00
FILE_LEVEL1_MAP:
; level1.map
; Side, track, sector
defb #00, #09, #41
; Length in bytes
defw #29df
FILE_LEVEL2_MAP:
; level2.map
; Side, track, sector
defb #00, #0b, #44
; Length in bytes
defw #2ea3
FILE_LEVEL3_MAP:
; level3.map
; Side, track, sector
defb #00, #0e, #41
; Length in bytes
defw #2f25
FILE_LEVEL4_MAP:
; level4.map
; Side, track, sector
defb #00, #10, #47
; Length in bytes
defw #30fe
FILE_LEVEL5_MAP:
; level5.map
; Side, track, sector
defb #00, #13, #45
; Length in bytes
defw #37b0
FILE_LEVEL6_MAP:
; level6.map
; Side, track, sector
defb #00, #16, #46
; Length in bytes
defw #361b
FILE_LEVEL7_MAP:
; level7.map
; Side, track, sector
defb #00, #19, #47
; Length in bytes
defw #2d87
FILE_LEVEL8_MAP:
; level8.map
; Side, track, sector
defb #00, #1c, #43
; Length in bytes
defw #2e30
FILE_LEVEL9_MAP:
; level9.map
; Side, track, sector
defb #00, #1e, #49
; Length in bytes
defw #218d
FILE_LEVEL0_MAP:
; level0.map
; Side, track, sector
defb #00, #20, #48
; Length in bytes
defw #0f3e
FILE_SPRITE_ESQUELETO_CMP:
; sprite_esqueleto.cmp
; Side, track, sector
defb #00, #21, #47
; Length in bytes
defw #0831
FILE_SPRITE_ORC_CMP:
; sprite_orc.cmp
; Side, track, sector
defb #00, #22, #43
; Length in bytes
defw #07e7
FILE_SPRITE_MUMMY_CMP:
; sprite_mummy.cmp
; Side, track, sector
defb #00, #22, #47
; Length in bytes
defw #08b1
FILE_SPRITE_TROLL_CMP:
; sprite_troll.cmp
; Side, track, sector
defb #00, #23, #43
; Length in bytes
defw #08f3
FILE_SPRITE_ROLLINGSTONE_CMP:
; sprite_rollingstone.cmp
; Side, track, sector
defb #00, #23, #48
; Length in bytes
defw #01f3
FILE_SPRITE_GOLEM_INF_CMP:
; sprite_golem_inf.cmp
; Side, track, sector
defb #00, #23, #49
; Length in bytes
defw #09b6
FILE_SPRITE_GOLEM_SUP_CMP:
; sprite_golem_sup.cmp
; Side, track, sector
defb #00, #24, #45
; Length in bytes
defw #0501
| 17.480315 | 29 | 0.716216 |
62ea2422693a225427f413d0bdf7ec3b7cb92b52 | 714 | asm | Assembly | examples/direct/test_divu_modu_mul.asm | hughperkins/toy_proc | 501caddd100e5245658008bb42f17ef8e97d4192 | [
"MIT"
] | 4 | 2022-03-22T06:58:06.000Z | 2022-03-25T12:35:06.000Z | examples/direct/test_divu_modu_mul.asm | hughperkins/toy_proc | 501caddd100e5245658008bb42f17ef8e97d4192 | [
"MIT"
] | null | null | null | examples/direct/test_divu_modu_mul.asm | hughperkins/toy_proc | 501caddd100e5245658008bb42f17ef8e97d4192 | [
"MIT"
] | 1 | 2022-03-25T01:06:32.000Z | 2022-03-25T01:06:32.000Z | ; mul
li x1, 15
li x2, 31
mul x3, x1, x2
outr x3 ; 465
li x1, 0
li x2, 31
mul x3, x1, x2
outr x3 ; 0
li x1, 15
li x2, 0
mul x3, x1, x2
outr x3 ; 0
li x1, 347911
li x2, 12345
mul x3, x1, x2
outr x3 ; 4294961295
; divu, remu
li x1, 4
li x2, 4
divu x3, x1, x2
remu x4, x1, x2
outr x3 ; 1 r 0
outr x4
li x1, 4
li x2, 2
divu x3, x1, x2
remu x4, x1, x2
outr x3 ; 2 r 0
outr x4
li x1, 0
li x2, 0
divu x3, x1, x2
remu x4, x1, x2
outr x3 ; ffffffff r 0
outr x4
li x1, 0
li x2, 2
divu x3, x1, x2
remu x4, x1, x2
outr x3 ; 0 r 0
outr x4
li x1, 2222
li x2, 123
divu x3, x1, x2
remu x4, x1, x2
outr x3 ; 18 r 8
outr x4
li x1, 1111
li x2, 444
divu x3, x1, x2
remu x4, x1, x2
outr x3 ; 2 r 223
outr x4
halt
| 10.5 | 23 | 0.606443 |
da1ac932130662d2543440f74e6bce0c1bcc1cea | 620 | asm | Assembly | PRG/objects/W1A.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/objects/W1A.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/objects/W1A.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | .byte $00 ; Unknown purpose
.byte OBJ_AUTOSCROLL, $00, $0B
.byte OBJ_CLOUDSINBGBEGIN, $03, $09
.byte OBJ_CFIRE_ULCANNON, $13, $0D
.byte OBJ_AIRSHIPPROP, $16, $13
.byte OBJ_CFIRE_ULCANNON, $18, $0D
.byte OBJ_CFIRE_BULLETBILL, $1E, $0C
.byte OBJ_CFIRE_ULCANNON, $24, $10
.byte OBJ_CFIRE_LLCANNON, $28, $09
.byte OBJ_AIRSHIPPROP, $29, $14
.byte OBJ_CFIRE_BULLETBILL, $2C, $0D
.byte OBJ_CFIRE_LLCANNON, $2D, $09
.byte OBJ_CFIRE_4WAY, $38, $0A
.byte OBJ_AIRSHIPPROP, $3D, $14
.byte OBJ_CFIRE_URCANNON, $47, $12
.byte OBJ_CFIRE_BULLETBILL, $4D, $10
.byte OBJ_CFIRE_URCANNON, $4F, $12
.byte $FF ; Terminator
| 31 | 37 | 0.712903 |
950481867015c6953821757afb8cdebadc806b7e | 544 | asm | Assembly | programs/oeis/053/A053405.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/053/A053405.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/053/A053405.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A053405: Definition: A kara B = C, where C is the least nonnegative integer such that: C * B >= A and C * (B-1) < A. Sequence gives smallest a such that n kara a is undefined.
; 3,4,4,5,5,4,6,5,5,6,6,6,5,7,7,6,6,8,7,7,7,6,8,8,8,7,7,9,9,8,8,8,7,9,9,9,9,8,8,10,10,10,9,9,9,8,11,10,10,10,10,9,9,11,11,11,11,10,10,10,9,12,12,11,11,11,11,10,10,12,12,12,12,12,11,11,11,10,13,13,13,12,12,12,12,11,11,14,13,13,13,13,13,12,12,12,11,14,14,14
mov $2,$0
lpb $0
mov $0,$2
add $1,1
add $3,3
div $0,$3
sub $2,1
mov $3,$1
lpe
add $1,3
mov $0,$1
| 36.266667 | 255 | 0.604779 |
9e248c78e96749a298e0a7f925ee90ec2be461c3 | 51,743 | asm | Assembly | Aurora/Aurora/x64/Debug/ata.asm | manaskamal/aurora-xeneva | fe277f7ac155a40465c70f1db3c27046e4d0f7b5 | [
"BSD-2-Clause"
] | 8 | 2021-07-19T04:46:35.000Z | 2022-03-12T17:56:00.000Z | Aurora/Aurora/x64/Debug/ata.asm | manaskamal/aurora-xeneva | fe277f7ac155a40465c70f1db3c27046e4d0f7b5 | [
"BSD-2-Clause"
] | null | null | null | Aurora/Aurora/x64/Debug/ata.asm | manaskamal/aurora-xeneva | fe277f7ac155a40465c70f1db3c27046e4d0f7b5 | [
"BSD-2-Clause"
] | null | null | null | ; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
PUBLIC ?ata_pm@@3EA ; ata_pm
PUBLIC ?ide_buf@@3PAEA ; ide_buf
PUBLIC ?ata_drive@@3EA ; ata_drive
PUBLIC ?ata_slave_drive@@3EA ; ata_slave_drive
PUBLIC ?ata_device_name@@3PADA ; ata_device_name
PUBLIC ?ide_irq_invoked@@3IA ; ide_irq_invoked
_BSS SEGMENT
?ata_pm@@3EA DB 01H DUP (?) ; ata_pm
ALIGN 4
?ide_buf@@3PAEA DB 0200H DUP (?) ; ide_buf
?ata_drive@@3EA DB 01H DUP (?) ; ata_drive
ALIGN 4
?ata_slave_drive@@3EA DB 01H DUP (?) ; ata_slave_drive
ALIGN 4
?ata_device_name@@3PADA DB 028H DUP (?) ; ata_device_name
?ide_irq_invoked@@3IA DD 01H DUP (?) ; ide_irq_invoked
_BSS ENDS
CONST SEGMENT
$SG3087 DB '[ATA]: Primary-Master Device: %s', 0aH, 00H
ORG $+6
$SG3093 DB '[ATA]: Primary-Slave Device: %s', 0aH, 00H
ORG $+3
$SG2925 DB 'slave', 00H
ORG $+6
$SG2924 DB 'master ', 00H
$SG2926 DB 'primary', 00H
$SG2927 DB 'secondary', 00H
ORG $+6
$SG2928 DB 'ATA: %s s has error. disabled, ', 0aH, 00H
ORG $+7
$SG2958 DB '[ATA]: error!, device failure!', 0aH, 00H
$SG2999 DB '[ATA]: Read28 -- no selected io & drive', 0aH, 00H
CONST ENDS
PUBLIC ?ata_initialize@@YAXXZ ; ata_initialize
PUBLIC ?ata_read_28@@YAEIGPEAE@Z ; ata_read_28
PUBLIC ?ata_write_one@@YAEPEAEI@Z ; ata_write_one
PUBLIC ?ata_slave_read_28@@YAEIGPEAE@Z ; ata_slave_read_28
PUBLIC ?ata_slave_write_one@@YAEPEAEI@Z ; ata_slave_write_one
PUBLIC ?ide_select_drive@@YAXEE@Z ; ide_select_drive
PUBLIC ?ide_primary_irq@@YAX_KPEAX@Z ; ide_primary_irq
PUBLIC ?ide_secondary_irq@@YAX_KPEAX@Z ; ide_secondary_irq
PUBLIC ?ide_wait_irq@@YAXXZ ; ide_wait_irq
PUBLIC ?ide_identify@@YA_NEE@Z ; ide_identify
PUBLIC ?ide_400ns_delay@@YAXG@Z ; ide_400ns_delay
PUBLIC ?ide_poll@@YAXG@Z ; ide_poll
PUBLIC ?ata_read_48@@YAX_KGPEAE@Z ; ata_read_48
PUBLIC ?ata_probe@@YAXXZ ; ata_probe
EXTRN x64_cli:PROC
EXTRN x64_sti:PROC
EXTRN x64_outportw:PROC
EXTRN ?inportb@@YAEG@Z:PROC ; inportb
EXTRN ?inportw@@YAGG@Z:PROC ; inportw
EXTRN ?outportb@@YAXGE@Z:PROC ; outportb
EXTRN ?interrupt_end@@YAXI@Z:PROC ; interrupt_end
EXTRN ?interrupt_set@@YAX_KP6AX0PEAX@ZE@Z:PROC ; interrupt_set
EXTRN ?memset@@YAXPEAXEI@Z:PROC ; memset
EXTRN ?printf@@YAXPEBDZZ:PROC ; printf
pdata SEGMENT
$pdata$?ata_initialize@@YAXXZ DD imagerel $LN3
DD imagerel $LN3+64
DD imagerel $unwind$?ata_initialize@@YAXXZ
$pdata$?ata_read_28@@YAEIGPEAE@Z DD imagerel $LN15
DD imagerel $LN15+455
DD imagerel $unwind$?ata_read_28@@YAEIGPEAE@Z
$pdata$?ata_write_one@@YAEPEAEI@Z DD imagerel $LN15
DD imagerel $LN15+457
DD imagerel $unwind$?ata_write_one@@YAEPEAEI@Z
$pdata$?ata_slave_read_28@@YAEIGPEAE@Z DD imagerel $LN15
DD imagerel $LN15+443
DD imagerel $unwind$?ata_slave_read_28@@YAEIGPEAE@Z
$pdata$?ata_slave_write_one@@YAEPEAEI@Z DD imagerel $LN15
DD imagerel $LN15+457
DD imagerel $unwind$?ata_slave_write_one@@YAEPEAEI@Z
$pdata$?ide_select_drive@@YAXEE@Z DD imagerel $LN9
DD imagerel $LN9+94
DD imagerel $unwind$?ide_select_drive@@YAXEE@Z
$pdata$?ata_wait_busy@@YAXG@Z DD imagerel ?ata_wait_busy@@YAXG@Z
DD imagerel ?ata_wait_busy@@YAXG@Z+44
DD imagerel $unwind$?ata_wait_busy@@YAXG@Z
$pdata$?ata_wait_drq@@YAXG@Z DD imagerel ?ata_wait_drq@@YAXG@Z
DD imagerel ?ata_wait_drq@@YAXG@Z+42
DD imagerel $unwind$?ata_wait_drq@@YAXG@Z
$pdata$?reset_ata_controller@@YAXG@Z DD imagerel ?reset_ata_controller@@YAXG@Z
DD imagerel ?reset_ata_controller@@YAXG@Z+131
DD imagerel $unwind$?reset_ata_controller@@YAXG@Z
$pdata$?ide_primary_irq@@YAX_KPEAX@Z DD imagerel $LN3
DD imagerel $LN3+39
DD imagerel $unwind$?ide_primary_irq@@YAX_KPEAX@Z
$pdata$?ide_secondary_irq@@YAX_KPEAX@Z DD imagerel $LN3
DD imagerel $LN3+38
DD imagerel $unwind$?ide_secondary_irq@@YAX_KPEAX@Z
$pdata$?ide_identify@@YA_NEE@Z DD imagerel $LN19
DD imagerel $LN19+433
DD imagerel $unwind$?ide_identify@@YA_NEE@Z
$pdata$?ide_400ns_delay@@YAXG@Z DD imagerel $LN6
DD imagerel $LN6+63
DD imagerel $unwind$?ide_400ns_delay@@YAXG@Z
$pdata$?ide_poll@@YAXG@Z DD imagerel $LN9
DD imagerel $LN9+153
DD imagerel $unwind$?ide_poll@@YAXG@Z
$pdata$?ata_read_48@@YAX_KGPEAE@Z DD imagerel $LN15
DD imagerel $LN15+548
DD imagerel $unwind$?ata_read_48@@YAX_KGPEAE@Z
$pdata$?ata_probe@@YAXXZ DD imagerel $LN11
DD imagerel $LN11+360
DD imagerel $unwind$?ata_probe@@YAXXZ
pdata ENDS
xdata SEGMENT
$unwind$?ata_initialize@@YAXXZ DD 010401H
DD 04204H
$unwind$?ata_read_28@@YAEIGPEAE@Z DD 011201H
DD 08212H
$unwind$?ata_write_one@@YAEPEAEI@Z DD 010d01H
DD 0820dH
$unwind$?ata_slave_read_28@@YAEIGPEAE@Z DD 011201H
DD 08212H
$unwind$?ata_slave_write_one@@YAEPEAEI@Z DD 010d01H
DD 0820dH
$unwind$?ide_select_drive@@YAXEE@Z DD 010c01H
DD 0420cH
$unwind$?ata_wait_busy@@YAXG@Z DD 010901H
DD 04209H
$unwind$?ata_wait_drq@@YAXG@Z DD 010901H
DD 04209H
$unwind$?reset_ata_controller@@YAXG@Z DD 010901H
DD 06209H
$unwind$?ide_primary_irq@@YAX_KPEAX@Z DD 010e01H
DD 0420eH
$unwind$?ide_secondary_irq@@YAX_KPEAX@Z DD 010e01H
DD 0420eH
$unwind$?ide_identify@@YA_NEE@Z DD 010c01H
DD 0820cH
$unwind$?ide_400ns_delay@@YAXG@Z DD 010901H
DD 06209H
$unwind$?ide_poll@@YAXG@Z DD 010901H
DD 06209H
$unwind$?ata_read_48@@YAX_KGPEAE@Z DD 011301H
DD 06213H
$unwind$?ata_probe@@YAXXZ DD 010401H
DD 06204H
xdata ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
i$1 = 32
i$2 = 36
?ata_probe@@YAXXZ PROC ; ata_probe
; 464 : {
$LN11:
sub rsp, 56 ; 00000038H
; 465 : if (ide_identify (ATA_PRIMARY, ATA_MASTER))
xor edx, edx
xor ecx, ecx
call ?ide_identify@@YA_NEE@Z ; ide_identify
movzx eax, al
test eax, eax
je $LN8@ata_probe
; 466 : {
; 467 : ata_pm = 1;
mov BYTE PTR ?ata_pm@@3EA, 1 ; ata_pm
; 468 : memset (ata_device_name, 0, 40);
mov r8d, 40 ; 00000028H
xor edx, edx
lea rcx, OFFSET FLAT:?ata_device_name@@3PADA ; ata_device_name
call ?memset@@YAXPEAXEI@Z ; memset
; 469 : for (int i= 0; i < 40; i += 2)
mov DWORD PTR i$1[rsp], 0
jmp SHORT $LN7@ata_probe
$LN6@ata_probe:
mov eax, DWORD PTR i$1[rsp]
add eax, 2
mov DWORD PTR i$1[rsp], eax
$LN7@ata_probe:
cmp DWORD PTR i$1[rsp], 40 ; 00000028H
jge SHORT $LN5@ata_probe
; 470 : {
; 471 : ata_device_name[i] = ide_buf[ATA_IDENT_MODEL + i + 1];
mov eax, DWORD PTR i$1[rsp]
add eax, 55 ; 00000037H
cdqe
lea rcx, OFFSET FLAT:?ide_buf@@3PAEA ; ide_buf
movsxd rdx, DWORD PTR i$1[rsp]
lea r8, OFFSET FLAT:?ata_device_name@@3PADA ; ata_device_name
movzx eax, BYTE PTR [rcx+rax]
mov BYTE PTR [r8+rdx], al
; 472 : ata_device_name[i + 1] = ide_buf[ATA_IDENT_MODEL + i];
mov eax, DWORD PTR i$1[rsp]
add eax, 54 ; 00000036H
cdqe
lea rcx, OFFSET FLAT:?ide_buf@@3PAEA ; ide_buf
mov edx, DWORD PTR i$1[rsp]
inc edx
movsxd rdx, edx
lea r8, OFFSET FLAT:?ata_device_name@@3PADA ; ata_device_name
movzx eax, BYTE PTR [rcx+rax]
mov BYTE PTR [r8+rdx], al
; 473 : }
jmp SHORT $LN6@ata_probe
$LN5@ata_probe:
; 474 :
; 475 : printf("[ATA]: Primary-Master Device: %s\n", ata_device_name);
lea rdx, OFFSET FLAT:?ata_device_name@@3PADA ; ata_device_name
lea rcx, OFFSET FLAT:$SG3087
call ?printf@@YAXPEBDZZ ; printf
; 476 : ata_drive = (ATA_PRIMARY << 1) | ATA_MASTER;
mov BYTE PTR ?ata_drive@@3EA, 0 ; ata_drive
$LN8@ata_probe:
; 477 : }
; 478 :
; 479 : if (ide_identify (ATA_PRIMARY, ATA_SLAVE)) {
mov dl, 1
xor ecx, ecx
call ?ide_identify@@YA_NEE@Z ; ide_identify
movzx eax, al
test eax, eax
je $LN4@ata_probe
; 480 : //ata_pm = 1;
; 481 : memset (ata_device_name, 0, 40);
mov r8d, 40 ; 00000028H
xor edx, edx
lea rcx, OFFSET FLAT:?ata_device_name@@3PADA ; ata_device_name
call ?memset@@YAXPEAXEI@Z ; memset
; 482 : for (int i= 0; i < 40; i += 2)
mov DWORD PTR i$2[rsp], 0
jmp SHORT $LN3@ata_probe
$LN2@ata_probe:
mov eax, DWORD PTR i$2[rsp]
add eax, 2
mov DWORD PTR i$2[rsp], eax
$LN3@ata_probe:
cmp DWORD PTR i$2[rsp], 40 ; 00000028H
jge SHORT $LN1@ata_probe
; 483 : {
; 484 : ata_device_name[i] = ide_buf[ATA_IDENT_MODEL + i + 1];
mov eax, DWORD PTR i$2[rsp]
add eax, 55 ; 00000037H
cdqe
lea rcx, OFFSET FLAT:?ide_buf@@3PAEA ; ide_buf
movsxd rdx, DWORD PTR i$2[rsp]
lea r8, OFFSET FLAT:?ata_device_name@@3PADA ; ata_device_name
movzx eax, BYTE PTR [rcx+rax]
mov BYTE PTR [r8+rdx], al
; 485 : ata_device_name[i + 1] = ide_buf[ATA_IDENT_MODEL + i];
mov eax, DWORD PTR i$2[rsp]
add eax, 54 ; 00000036H
cdqe
lea rcx, OFFSET FLAT:?ide_buf@@3PAEA ; ide_buf
mov edx, DWORD PTR i$2[rsp]
inc edx
movsxd rdx, edx
lea r8, OFFSET FLAT:?ata_device_name@@3PADA ; ata_device_name
movzx eax, BYTE PTR [rcx+rax]
mov BYTE PTR [r8+rdx], al
; 486 : }
jmp SHORT $LN2@ata_probe
$LN1@ata_probe:
; 487 :
; 488 : ata_slave_drive = (ATA_PRIMARY << 1) | ATA_SLAVE;
mov BYTE PTR ?ata_slave_drive@@3EA, 1 ; ata_slave_drive
; 489 : printf("[ATA]: Primary-Slave Device: %s\n", ata_device_name);
lea rdx, OFFSET FLAT:?ata_device_name@@3PADA ; ata_device_name
lea rcx, OFFSET FLAT:$SG3093
call ?printf@@YAXPEBDZZ ; printf
$LN4@ata_probe:
; 490 : }
; 491 : }
add rsp, 56 ; 00000038H
ret 0
?ata_probe@@YAXXZ ENDP ; ata_probe
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
i$ = 32
cmd$ = 33
io$ = 36
tv65 = 40
tv74 = 44
lba$ = 64
sector_count$ = 72
target$ = 80
?ata_read_48@@YAX_KGPEAE@Z PROC ; ata_read_48
; 294 : {
$LN15:
mov QWORD PTR [rsp+24], r8
mov WORD PTR [rsp+16], dx
mov QWORD PTR [rsp+8], rcx
sub rsp, 56 ; 00000038H
; 295 :
; 296 : uint16_t io = 0;
xor eax, eax
mov WORD PTR io$[rsp], ax
; 297 : switch (ata_drive)
movzx eax, BYTE PTR ?ata_drive@@3EA ; ata_drive
mov BYTE PTR tv65[rsp], al
cmp BYTE PTR tv65[rsp], 0
je SHORT $LN8@ata_read_4
cmp BYTE PTR tv65[rsp], 1
je SHORT $LN7@ata_read_4
cmp BYTE PTR tv65[rsp], 2
je SHORT $LN6@ata_read_4
cmp BYTE PTR tv65[rsp], 3
je SHORT $LN5@ata_read_4
jmp SHORT $LN4@ata_read_4
$LN8@ata_read_4:
; 298 : {
; 299 : case (ATA_PRIMARY << 1 | ATA_MASTER):
; 300 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 301 : ata_drive = ATA_MASTER;
mov BYTE PTR ?ata_drive@@3EA, 0 ; ata_drive
; 302 : break;
jmp SHORT $LN9@ata_read_4
$LN7@ata_read_4:
; 303 : case (ATA_PRIMARY << 1 | ATA_SLAVE):
; 304 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 305 : ata_drive = ATA_SLAVE;
mov BYTE PTR ?ata_drive@@3EA, 1 ; ata_drive
; 306 : break;
jmp SHORT $LN9@ata_read_4
$LN6@ata_read_4:
; 307 : case (ATA_SECONDARY << 1 | ATA_MASTER):
; 308 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 309 : ata_drive = ATA_MASTER;
mov BYTE PTR ?ata_drive@@3EA, 0 ; ata_drive
; 310 : break;
jmp SHORT $LN9@ata_read_4
$LN5@ata_read_4:
; 311 : case (ATA_SECONDARY << 1 | ATA_SLAVE):
; 312 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 313 : ata_drive = ATA_SLAVE;
mov BYTE PTR ?ata_drive@@3EA, 1 ; ata_drive
; 314 : break;
jmp SHORT $LN9@ata_read_4
$LN4@ata_read_4:
; 315 : default:
; 316 : return;
jmp $LN11@ata_read_4
$LN9@ata_read_4:
; 317 : }
; 318 :
; 319 : uint8_t cmd = (ata_drive == ATA_MASTER ? 0x40 : 0x50);
movzx eax, BYTE PTR ?ata_drive@@3EA ; ata_drive
test eax, eax
jne SHORT $LN13@ata_read_4
mov DWORD PTR tv74[rsp], 64 ; 00000040H
jmp SHORT $LN14@ata_read_4
$LN13@ata_read_4:
mov DWORD PTR tv74[rsp], 80 ; 00000050H
$LN14@ata_read_4:
movzx eax, BYTE PTR tv74[rsp]
mov BYTE PTR cmd$[rsp], al
; 320 :
; 321 : outportb (io + ATA_REG_HDDEVSEL, cmd);
movzx eax, WORD PTR io$[rsp]
add eax, 6
movzx edx, BYTE PTR cmd$[rsp]
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 322 : outportb (io + ATA_REG_SECCOUNT0, (sector_count >> 8) & 0xFF);
movzx eax, WORD PTR sector_count$[rsp]
sar eax, 8
and eax, 255 ; 000000ffH
movzx ecx, WORD PTR io$[rsp]
add ecx, 2
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 323 : outportb (io + ATA_REG_LBA0, (lba >> 24) & 0xFF);
mov rax, QWORD PTR lba$[rsp]
shr rax, 24
and rax, 255 ; 000000ffH
movzx ecx, WORD PTR io$[rsp]
add ecx, 3
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 324 : outportb (io + ATA_REG_LBA1, (lba >> 32) & 0xFF);
mov rax, QWORD PTR lba$[rsp]
shr rax, 32 ; 00000020H
and rax, 255 ; 000000ffH
movzx ecx, WORD PTR io$[rsp]
add ecx, 4
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 325 : outportb (io + ATA_REG_LBA2, (lba >> 40) & 0xFF);
mov rax, QWORD PTR lba$[rsp]
shr rax, 40 ; 00000028H
and rax, 255 ; 000000ffH
movzx ecx, WORD PTR io$[rsp]
add ecx, 5
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 326 : outportb (io + ATA_REG_SECCOUNT0, sector_count & 0xFF);
movzx eax, WORD PTR sector_count$[rsp]
and eax, 255 ; 000000ffH
movzx ecx, WORD PTR io$[rsp]
add ecx, 2
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 327 : outportb (io + ATA_REG_LBA0, lba & 0xFF);
mov rax, QWORD PTR lba$[rsp]
and rax, 255 ; 000000ffH
movzx ecx, WORD PTR io$[rsp]
add ecx, 3
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 328 : outportb (io + ATA_REG_LBA1, (lba >> 8) & 0xFF);
mov rax, QWORD PTR lba$[rsp]
shr rax, 8
and rax, 255 ; 000000ffH
movzx ecx, WORD PTR io$[rsp]
add ecx, 4
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 329 : outportb (io + ATA_REG_LBA2, (lba >> 16) & 0xFF);
mov rax, QWORD PTR lba$[rsp]
shr rax, 16
and rax, 255 ; 000000ffH
movzx ecx, WORD PTR io$[rsp]
add ecx, 5
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 330 : outportb (io + ATA_REG_STATUS, ATA_CMD_READ_PIO_EXT);
movzx eax, WORD PTR io$[rsp]
add eax, 7
mov dl, 36 ; 00000024H
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 331 :
; 332 :
; 333 : ide_poll(io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_poll@@YAXG@Z ; ide_poll
; 334 : uint8_t i;
; 335 : for (i = 0; i < 256; i++)
mov BYTE PTR i$[rsp], 0
jmp SHORT $LN3@ata_read_4
$LN2@ata_read_4:
movzx eax, BYTE PTR i$[rsp]
inc al
mov BYTE PTR i$[rsp], al
$LN3@ata_read_4:
movzx eax, BYTE PTR i$[rsp]
cmp eax, 256 ; 00000100H
jge SHORT $LN1@ata_read_4
; 336 : {
; 337 :
; 338 : *(uint16_t*)(target + i * 2) = inportw (io + ATA_REG_DATA);
movzx ecx, WORD PTR io$[rsp]
call ?inportw@@YAGG@Z ; inportw
movzx ecx, BYTE PTR i$[rsp]
shl ecx, 1
movsxd rcx, ecx
mov rdx, QWORD PTR target$[rsp]
mov WORD PTR [rdx+rcx], ax
; 339 :
; 340 : }
jmp SHORT $LN2@ata_read_4
$LN1@ata_read_4:
; 341 :
; 342 : ide_400ns_delay(io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_400ns_delay@@YAXG@Z ; ide_400ns_delay
$LN11@ata_read_4:
; 343 : //kprintf("\nData 48 bit read");
; 344 : }
add rsp, 56 ; 00000038H
ret 0
?ata_read_48@@YAX_KGPEAE@Z ENDP ; ata_read_48
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
status$ = 32
i$1 = 36
io$ = 64
?ide_poll@@YAXG@Z PROC ; ide_poll
; 143 : {
$LN9:
mov WORD PTR [rsp+8], cx
sub rsp, 56 ; 00000038H
; 144 : for (int i = 0; i < 4; i++)
mov DWORD PTR i$1[rsp], 0
jmp SHORT $LN6@ide_poll
$LN5@ide_poll:
mov eax, DWORD PTR i$1[rsp]
inc eax
mov DWORD PTR i$1[rsp], eax
$LN6@ide_poll:
cmp DWORD PTR i$1[rsp], 4
jge SHORT $LN4@ide_poll
; 145 : {
; 146 : inportb (io + ATA_REG_STATUS);
movzx eax, WORD PTR io$[rsp]
add eax, 7
movzx ecx, ax
call ?inportb@@YAEG@Z ; inportb
; 147 : }
jmp SHORT $LN5@ide_poll
$LN4@ide_poll:
$retry$10:
; 148 : retry:
; 149 : uint8_t status = inportb (io + ATA_REG_STATUS);
movzx eax, WORD PTR io$[rsp]
add eax, 7
movzx ecx, ax
call ?inportb@@YAEG@Z ; inportb
mov BYTE PTR status$[rsp], al
; 150 :
; 151 : if (status & ATA_SR_BSY)
movzx eax, BYTE PTR status$[rsp]
and eax, 128 ; 00000080H
test eax, eax
je SHORT $LN3@ide_poll
; 152 : {
; 153 : //kprintf ("\n ATA status busy");
; 154 : goto retry;
jmp SHORT $retry$10
$LN3@ide_poll:
$retry2$11:
; 155 : }
; 156 :
; 157 : retry2:
; 158 : status = inportb (io + ATA_REG_STATUS);
movzx eax, WORD PTR io$[rsp]
add eax, 7
movzx ecx, ax
call ?inportb@@YAEG@Z ; inportb
mov BYTE PTR status$[rsp], al
; 159 : if (status & ATA_SR_ERR)
movzx eax, BYTE PTR status$[rsp]
and eax, 1
test eax, eax
je SHORT $LN2@ide_poll
; 160 : {
; 161 : printf("[ATA]: error!, device failure!\n");
lea rcx, OFFSET FLAT:$SG2958
call ?printf@@YAXPEBDZZ ; printf
$LN2@ide_poll:
; 162 : }
; 163 :
; 164 : if (! (status & ATA_SR_DRQ))
movzx eax, BYTE PTR status$[rsp]
and eax, 8
test eax, eax
jne SHORT $LN1@ide_poll
; 165 : {
; 166 : //printf ("[ATA]: Status, drq");
; 167 : goto retry2;
jmp SHORT $retry2$11
$LN1@ide_poll:
; 168 : }
; 169 :
; 170 : return;
; 171 : }
add rsp, 56 ; 00000038H
ret 0
?ide_poll@@YAXG@Z ENDP ; ide_poll
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
data$1 = 32
i$2 = 36
io$ = 64
?ide_400ns_delay@@YAXG@Z PROC ; ide_400ns_delay
; 134 : {
$LN6:
mov WORD PTR [rsp+8], cx
sub rsp, 56 ; 00000038H
; 135 :
; 136 : for (int i = 0; i < 4; i++)
mov DWORD PTR i$2[rsp], 0
jmp SHORT $LN3@ide_400ns_
$LN2@ide_400ns_:
mov eax, DWORD PTR i$2[rsp]
inc eax
mov DWORD PTR i$2[rsp], eax
$LN3@ide_400ns_:
cmp DWORD PTR i$2[rsp], 4
jge SHORT $LN1@ide_400ns_
; 137 : {
; 138 : uint8_t data = inportb(io + ATA_REG_ALTSTATUS);
movzx eax, WORD PTR io$[rsp]
add eax, 12
movzx ecx, ax
call ?inportb@@YAEG@Z ; inportb
mov BYTE PTR data$1[rsp], al
; 139 : }
jmp SHORT $LN2@ide_400ns_
$LN1@ide_400ns_:
; 140 : }
add rsp, 56 ; 00000038H
ret 0
?ide_400ns_delay@@YAXG@Z ENDP ; ide_400ns_delay
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
status$ = 32
io$ = 36
i$1 = 40
tv68 = 44
tv152 = 48
tv156 = 56
bus$ = 80
drive$ = 88
?ide_identify@@YA_NEE@Z PROC ; ide_identify
; 87 : {
$LN19:
mov BYTE PTR [rsp+16], dl
mov BYTE PTR [rsp+8], cl
sub rsp, 72 ; 00000048H
; 88 : ide_select_drive (bus, drive);
movzx edx, BYTE PTR drive$[rsp]
movzx ecx, BYTE PTR bus$[rsp]
call ?ide_select_drive@@YAXEE@Z ; ide_select_drive
; 89 :
; 90 : uint16_t io = bus == ATA_PRIMARY ? ATA_PRIMARY_IO : ATA_SECONDARY_IO;
movzx eax, BYTE PTR bus$[rsp]
test eax, eax
jne SHORT $LN13@ide_identi
mov DWORD PTR tv68[rsp], 496 ; 000001f0H
jmp SHORT $LN14@ide_identi
$LN13@ide_identi:
mov DWORD PTR tv68[rsp], 368 ; 00000170H
$LN14@ide_identi:
movzx eax, WORD PTR tv68[rsp]
mov WORD PTR io$[rsp], ax
; 91 :
; 92 : outportb(io + ATA_REG_SECCOUNT0, 0);
movzx eax, WORD PTR io$[rsp]
add eax, 2
xor edx, edx
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 93 : outportb(io + ATA_REG_LBA0, 0);
movzx eax, WORD PTR io$[rsp]
add eax, 3
xor edx, edx
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 94 : outportb(io + ATA_REG_LBA1, 0);
movzx eax, WORD PTR io$[rsp]
add eax, 4
xor edx, edx
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 95 : outportb(io + ATA_REG_LBA2, 0);
movzx eax, WORD PTR io$[rsp]
add eax, 5
xor edx, edx
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 96 :
; 97 : // now send identify
; 98 : outportb(io + ATA_REG_COMMAND, ATA_CMD_IDENTIFY);
movzx eax, WORD PTR io$[rsp]
add eax, 7
mov dl, 236 ; 000000ecH
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 99 :
; 100 : //! read status port
; 101 : uint8_t status = inportb (io + ATA_REG_STATUS );
movzx eax, WORD PTR io$[rsp]
add eax, 7
movzx ecx, ax
call ?inportb@@YAEG@Z ; inportb
mov BYTE PTR status$[rsp], al
; 102 : if (status)
movzx eax, BYTE PTR status$[rsp]
test eax, eax
je $LN10@ide_identi
$LN9@ide_identi:
; 103 : {
; 104 : while ((inportb(io + ATA_REG_STATUS) & ATA_SR_BSY) != 0);
movzx eax, WORD PTR io$[rsp]
add eax, 7
movzx ecx, ax
call ?inportb@@YAEG@Z ; inportb
movzx eax, al
and eax, 128 ; 00000080H
test eax, eax
je SHORT $LN8@ide_identi
jmp SHORT $LN9@ide_identi
$LN8@ide_identi:
$pm_stat_read$20:
; 105 : pm_stat_read:
; 106 : status = inportb (io + ATA_REG_STATUS);
movzx eax, WORD PTR io$[rsp]
add eax, 7
movzx ecx, ax
call ?inportb@@YAEG@Z ; inportb
mov BYTE PTR status$[rsp], al
; 107 : if (status & ATA_SR_ERR)
movzx eax, BYTE PTR status$[rsp]
and eax, 1
test eax, eax
je SHORT $LN7@ide_identi
; 108 : {
; 109 : printf("ATA: %s s has error. disabled, \n", bus == ATA_PRIMARY ? "primary" : "secondary",
; 110 : drive == ATA_PRIMARY ? "master " : "slave");
movzx eax, BYTE PTR drive$[rsp]
test eax, eax
jne SHORT $LN15@ide_identi
lea rax, OFFSET FLAT:$SG2924
mov QWORD PTR tv152[rsp], rax
jmp SHORT $LN16@ide_identi
$LN15@ide_identi:
lea rax, OFFSET FLAT:$SG2925
mov QWORD PTR tv152[rsp], rax
$LN16@ide_identi:
movzx eax, BYTE PTR bus$[rsp]
test eax, eax
jne SHORT $LN17@ide_identi
lea rax, OFFSET FLAT:$SG2926
mov QWORD PTR tv156[rsp], rax
jmp SHORT $LN18@ide_identi
$LN17@ide_identi:
lea rax, OFFSET FLAT:$SG2927
mov QWORD PTR tv156[rsp], rax
$LN18@ide_identi:
mov r8, QWORD PTR tv152[rsp]
mov rdx, QWORD PTR tv156[rsp]
lea rcx, OFFSET FLAT:$SG2928
call ?printf@@YAXPEBDZZ ; printf
$LN7@ide_identi:
$LN6@ide_identi:
; 111 : //return false;
; 112 : }
; 113 :
; 114 : while (! (status & ATA_SR_DRQ))
movzx eax, BYTE PTR status$[rsp]
and eax, 8
test eax, eax
jne SHORT $LN5@ide_identi
; 115 : {
; 116 : goto pm_stat_read;
jmp $pm_stat_read$20
; 117 : }
jmp SHORT $LN6@ide_identi
$LN5@ide_identi:
; 118 :
; 119 : for (int i = 0; i < 256;i++ )
mov DWORD PTR i$1[rsp], 0
jmp SHORT $LN4@ide_identi
$LN3@ide_identi:
mov eax, DWORD PTR i$1[rsp]
inc eax
mov DWORD PTR i$1[rsp], eax
$LN4@ide_identi:
cmp DWORD PTR i$1[rsp], 256 ; 00000100H
jge SHORT $LN2@ide_identi
; 120 : {
; 121 : *(uint16_t *) (ide_buf + i*2) = inportw(io + ATA_REG_DATA);
movzx ecx, WORD PTR io$[rsp]
call ?inportw@@YAGG@Z ; inportw
mov ecx, DWORD PTR i$1[rsp]
shl ecx, 1
movsxd rcx, ecx
lea rdx, OFFSET FLAT:?ide_buf@@3PAEA ; ide_buf
mov WORD PTR [rdx+rcx], ax
; 122 : //("\n%x %x", *(uint16_t*) (ide_buf + i * 2) >> 8, *(uint16_t *)(ide_buf + i * 2) & 0xFF);
; 123 : }
jmp SHORT $LN3@ide_identi
$LN2@ide_identi:
; 124 : return true;
mov al, 1
jmp SHORT $LN11@ide_identi
$LN10@ide_identi:
; 125 : }
; 126 : else
; 127 : {
; 128 : //printf("ATA: Status 0\n");
; 129 : }
; 130 : return false;
xor al, al
$LN11@ide_identi:
; 131 : }
add rsp, 72 ; 00000048H
ret 0
?ide_identify@@YA_NEE@Z ENDP ; ide_identify
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
?ide_wait_irq@@YAXXZ PROC ; ide_wait_irq
; 80 : void ide_wait_irq () {
npad 2
$LN2@ide_wait_i:
; 81 : while (!ide_irq_invoked)
cmp DWORD PTR ?ide_irq_invoked@@3IA, 0 ; ide_irq_invoked
jne SHORT $LN1@ide_wait_i
; 82 : ;
jmp SHORT $LN2@ide_wait_i
$LN1@ide_wait_i:
; 83 : ide_irq_invoked = 0;
mov DWORD PTR ?ide_irq_invoked@@3IA, 0 ; ide_irq_invoked
; 84 : }
ret 0
?ide_wait_irq@@YAXXZ ENDP ; ide_wait_irq
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
vector$ = 48
param$ = 56
?ide_secondary_irq@@YAX_KPEAX@Z PROC ; ide_secondary_irq
; 75 : {
$LN3:
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
sub rsp, 40 ; 00000028H
; 76 : reset_ata_controller (ATA_SECONDARY_IO);
mov cx, 368 ; 00000170H
call ?reset_ata_controller@@YAXG@Z ; reset_ata_controller
; 77 : interrupt_end(15);
mov ecx, 15
call ?interrupt_end@@YAXI@Z ; interrupt_end
; 78 : }
add rsp, 40 ; 00000028H
ret 0
?ide_secondary_irq@@YAX_KPEAX@Z ENDP ; ide_secondary_irq
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
vector$ = 48
param$ = 56
?ide_primary_irq@@YAX_KPEAX@Z PROC ; ide_primary_irq
; 69 : {
$LN3:
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
sub rsp, 40 ; 00000028H
; 70 : ide_irq_invoked = 1;
mov DWORD PTR ?ide_irq_invoked@@3IA, 1 ; ide_irq_invoked
; 71 : interrupt_end(14);
mov ecx, 14
call ?interrupt_end@@YAXI@Z ; interrupt_end
; 72 : }
add rsp, 40 ; 00000028H
ret 0
?ide_primary_irq@@YAX_KPEAX@Z ENDP ; ide_primary_irq
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
i$1 = 32
j$2 = 36
io$ = 64
?reset_ata_controller@@YAXG@Z PROC ; reset_ata_controller
; 49 : {
mov WORD PTR [rsp+8], cx
sub rsp, 56 ; 00000038H
; 50 :
; 51 : outportb (io + ATA_REG_CONTROL, 0x04);
movzx eax, WORD PTR io$[rsp]
add eax, 12
mov dl, 4
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 52 : for (int i=0; i<20; i++)
mov DWORD PTR i$1[rsp], 0
jmp SHORT $LN6@reset_ata_
$LN5@reset_ata_:
mov eax, DWORD PTR i$1[rsp]
inc eax
mov DWORD PTR i$1[rsp], eax
$LN6@reset_ata_:
cmp DWORD PTR i$1[rsp], 20
jge SHORT $LN4@reset_ata_
; 53 : ;
jmp SHORT $LN5@reset_ata_
$LN4@reset_ata_:
; 54 :
; 55 : ata_wait_busy(io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_busy@@YAXG@Z ; ata_wait_busy
; 56 :
; 57 : outportb (io + ATA_REG_CONTROL, 0);
movzx eax, WORD PTR io$[rsp]
add eax, 12
xor edx, edx
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 58 :
; 59 : ata_wait_busy (io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_busy@@YAXG@Z ; ata_wait_busy
; 60 :
; 61 : for (int j = 0; j < 30000000; j++)
mov DWORD PTR j$2[rsp], 0
jmp SHORT $LN3@reset_ata_
$LN2@reset_ata_:
mov eax, DWORD PTR j$2[rsp]
inc eax
mov DWORD PTR j$2[rsp], eax
$LN3@reset_ata_:
cmp DWORD PTR j$2[rsp], 30000000 ; 01c9c380H
jge SHORT $LN1@reset_ata_
; 62 : ;
jmp SHORT $LN2@reset_ata_
$LN1@reset_ata_:
; 63 :
; 64 : }
add rsp, 56 ; 00000038H
ret 0
?reset_ata_controller@@YAXG@Z ENDP ; reset_ata_controller
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
io$ = 48
?ata_wait_drq@@YAXG@Z PROC ; ata_wait_drq
; 43 : {
mov WORD PTR [rsp+8], cx
sub rsp, 40 ; 00000028H
$LN2@ata_wait_d:
; 44 : while (!(inportb (io + ATA_REG_STATUS) & STATUS_RDY))
movzx eax, WORD PTR io$[rsp]
add eax, 7
movzx ecx, ax
call ?inportb@@YAEG@Z ; inportb
movzx eax, al
and eax, 64 ; 00000040H
test eax, eax
jne SHORT $LN1@ata_wait_d
; 45 : ;
jmp SHORT $LN2@ata_wait_d
$LN1@ata_wait_d:
; 46 : }
add rsp, 40 ; 00000028H
ret 0
?ata_wait_drq@@YAXG@Z ENDP ; ata_wait_drq
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
io$ = 48
?ata_wait_busy@@YAXG@Z PROC ; ata_wait_busy
; 37 : {
mov WORD PTR [rsp+8], cx
sub rsp, 40 ; 00000028H
$LN2@ata_wait_b:
; 38 : while (inportb(io + ATA_REG_STATUS) & STATUS_BSY)
movzx eax, WORD PTR io$[rsp]
add eax, 7
movzx ecx, ax
call ?inportb@@YAEG@Z ; inportb
movzx eax, al
and eax, 128 ; 00000080H
test eax, eax
je SHORT $LN1@ata_wait_b
; 39 : ;
jmp SHORT $LN2@ata_wait_b
$LN1@ata_wait_b:
; 40 : }
add rsp, 40 ; 00000028H
ret 0
?ata_wait_busy@@YAXG@Z ENDP ; ata_wait_busy
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
bus$ = 48
i$ = 56
?ide_select_drive@@YAXEE@Z PROC ; ide_select_drive
; 22 : {
$LN9:
mov BYTE PTR [rsp+16], dl
mov BYTE PTR [rsp+8], cl
sub rsp, 40 ; 00000028H
; 23 : if (bus == ATA_PRIMARY )
movzx eax, BYTE PTR bus$[rsp]
test eax, eax
jne SHORT $LN6@ide_select
; 24 : if (i == ATA_MASTER)
movzx eax, BYTE PTR i$[rsp]
test eax, eax
jne SHORT $LN5@ide_select
; 25 : outportb(ATA_PRIMARY_IO + ATA_REG_HDDEVSEL, 0xA0);
mov dl, 160 ; 000000a0H
mov cx, 502 ; 000001f6H
call ?outportb@@YAXGE@Z ; outportb
; 26 : else
jmp SHORT $LN4@ide_select
$LN5@ide_select:
; 27 : outportb(ATA_PRIMARY_IO + ATA_REG_HDDEVSEL, 0xB0);
mov dl, 176 ; 000000b0H
mov cx, 502 ; 000001f6H
call ?outportb@@YAXGE@Z ; outportb
$LN4@ide_select:
; 28 : else
jmp SHORT $LN3@ide_select
$LN6@ide_select:
; 29 : if (i == ATA_MASTER)
movzx eax, BYTE PTR i$[rsp]
test eax, eax
jne SHORT $LN2@ide_select
; 30 : outportb(ATA_SECONDARY_IO + ATA_REG_HDDEVSEL, 0xA0);
mov dl, 160 ; 000000a0H
mov cx, 374 ; 00000176H
call ?outportb@@YAXGE@Z ; outportb
; 31 : else
jmp SHORT $LN1@ide_select
$LN2@ide_select:
; 32 : outportb(ATA_SECONDARY_IO + ATA_REG_HDDEVSEL, 0xB0);
mov dl, 176 ; 000000b0H
mov cx, 374 ; 00000176H
call ?outportb@@YAXGE@Z ; outportb
$LN1@ide_select:
$LN3@ide_select:
; 33 : }
add rsp, 40 ; 00000028H
ret 0
?ide_select_drive@@YAXEE@Z ENDP ; ide_select_drive
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
cmd$ = 32
io$ = 36
tv65 = 40
i$1 = 44
tv74 = 48
buf$ = 80
lba$ = 88
?ata_slave_write_one@@YAEPEAEI@Z PROC ; ata_slave_write_one
; 406 : {
$LN15:
mov DWORD PTR [rsp+16], edx
mov QWORD PTR [rsp+8], rcx
sub rsp, 72 ; 00000048H
; 407 : uint16_t io = 0;
xor eax, eax
mov WORD PTR io$[rsp], ax
; 408 : switch (ata_slave_drive)
movzx eax, BYTE PTR ?ata_slave_drive@@3EA ; ata_slave_drive
mov BYTE PTR tv65[rsp], al
cmp BYTE PTR tv65[rsp], 0
je SHORT $LN8@ata_slave_
cmp BYTE PTR tv65[rsp], 1
je SHORT $LN7@ata_slave_
cmp BYTE PTR tv65[rsp], 2
je SHORT $LN6@ata_slave_
cmp BYTE PTR tv65[rsp], 3
je SHORT $LN5@ata_slave_
jmp SHORT $LN4@ata_slave_
$LN8@ata_slave_:
; 409 : {
; 410 : case (ATA_PRIMARY << 1 | ATA_MASTER):
; 411 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 412 : ata_slave_drive = ATA_MASTER;
mov BYTE PTR ?ata_slave_drive@@3EA, 0 ; ata_slave_drive
; 413 : break;
jmp SHORT $LN9@ata_slave_
$LN7@ata_slave_:
; 414 : case (ATA_PRIMARY << 1 | ATA_SLAVE):
; 415 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 416 : ata_slave_drive = ATA_SLAVE;
mov BYTE PTR ?ata_slave_drive@@3EA, 1 ; ata_slave_drive
; 417 : break;
jmp SHORT $LN9@ata_slave_
$LN6@ata_slave_:
; 418 : case (ATA_SECONDARY << 1 | ATA_MASTER):
; 419 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 420 : ata_slave_drive = ATA_MASTER;
mov BYTE PTR ?ata_slave_drive@@3EA, 0 ; ata_slave_drive
; 421 : break;
jmp SHORT $LN9@ata_slave_
$LN5@ata_slave_:
; 422 : case (ATA_SECONDARY << 1 | ATA_SLAVE):
; 423 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 424 : ata_slave_drive = ATA_SLAVE;
mov BYTE PTR ?ata_slave_drive@@3EA, 1 ; ata_slave_drive
; 425 : break;
jmp SHORT $LN9@ata_slave_
$LN4@ata_slave_:
; 426 : default:
; 427 : return 0;
xor al, al
jmp $LN11@ata_slave_
$LN9@ata_slave_:
; 428 : }
; 429 :
; 430 : uint8_t cmd = (ata_slave_drive == ATA_MASTER ? 0xE0 : 0xF0);
movzx eax, BYTE PTR ?ata_slave_drive@@3EA ; ata_slave_drive
test eax, eax
jne SHORT $LN13@ata_slave_
mov DWORD PTR tv74[rsp], 224 ; 000000e0H
jmp SHORT $LN14@ata_slave_
$LN13@ata_slave_:
mov DWORD PTR tv74[rsp], 240 ; 000000f0H
$LN14@ata_slave_:
movzx eax, BYTE PTR tv74[rsp]
mov BYTE PTR cmd$[rsp], al
; 431 :
; 432 : ata_wait_busy (io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_busy@@YAXG@Z ; ata_wait_busy
; 433 : outportb(io + ATA_REG_HDDEVSEL, (cmd | (uint8_t) ((lba >> 24 & 0xFF))));
movzx eax, BYTE PTR cmd$[rsp]
mov ecx, DWORD PTR lba$[rsp]
shr ecx, 24
and ecx, 255 ; 000000ffH
movzx ecx, cl
or eax, ecx
movzx ecx, WORD PTR io$[rsp]
add ecx, 6
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 434 : outportb(io + 1, 0x00);
movzx eax, WORD PTR io$[rsp]
inc eax
xor edx, edx
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 435 :
; 436 : //! single sector write
; 437 : outportb(io + ATA_REG_SECCOUNT0, 1);
movzx eax, WORD PTR io$[rsp]
add eax, 2
mov dl, 1
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 438 :
; 439 : //! select LBA
; 440 : outportb(io + ATA_REG_LBA0, (uint8_t)((lba)));
movzx eax, WORD PTR io$[rsp]
add eax, 3
movzx edx, BYTE PTR lba$[rsp]
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 441 : outportb(io + ATA_REG_LBA1, (uint8_t)((lba) >> 8));
mov eax, DWORD PTR lba$[rsp]
shr eax, 8
movzx ecx, WORD PTR io$[rsp]
add ecx, 4
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 442 : outportb(io + ATA_REG_LBA2, (uint8_t)((lba) >> 16));
mov eax, DWORD PTR lba$[rsp]
shr eax, 16
movzx ecx, WORD PTR io$[rsp]
add ecx, 5
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 443 :
; 444 : //! select write command
; 445 : outportb (io + ATA_REG_COMMAND, ATA_CMD_WRITE_PIO);
movzx eax, WORD PTR io$[rsp]
add eax, 7
mov dl, 48 ; 00000030H
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 446 :
; 447 : //! wait until ready
; 448 : ide_poll(io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_poll@@YAXG@Z ; ide_poll
; 449 :
; 450 : ata_wait_busy (io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_busy@@YAXG@Z ; ata_wait_busy
; 451 : ata_wait_drq (io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_drq@@YAXG@Z ; ata_wait_drq
; 452 : for (int i=0; i < 256; i++)
mov DWORD PTR i$1[rsp], 0
jmp SHORT $LN3@ata_slave_
$LN2@ata_slave_:
mov eax, DWORD PTR i$1[rsp]
inc eax
mov DWORD PTR i$1[rsp], eax
$LN3@ata_slave_:
cmp DWORD PTR i$1[rsp], 256 ; 00000100H
jge SHORT $LN1@ata_slave_
; 453 : {
; 454 :
; 455 : x64_outportw(io + ATA_REG_DATA, *(uint16_t *)(buf + i * 2));
mov eax, DWORD PTR i$1[rsp]
shl eax, 1
cdqe
mov rcx, QWORD PTR buf$[rsp]
movzx edx, WORD PTR [rcx+rax]
movzx ecx, WORD PTR io$[rsp]
call x64_outportw
; 456 : }
jmp SHORT $LN2@ata_slave_
$LN1@ata_slave_:
; 457 :
; 458 : ide_400ns_delay (io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_400ns_delay@@YAXG@Z ; ide_400ns_delay
; 459 : return 1;
mov al, 1
$LN11@ata_slave_:
; 460 : }
add rsp, 72 ; 00000048H
ret 0
?ata_slave_write_one@@YAEPEAEI@Z ENDP ; ata_slave_write_one
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
cmd$ = 32
io$ = 36
tv65 = 40
i$1 = 44
tv74 = 48
lba$ = 80
sec_count$ = 88
buf$ = 96
?ata_slave_read_28@@YAEIGPEAE@Z PROC ; ata_slave_read_28
; 347 : {
$LN15:
mov QWORD PTR [rsp+24], r8
mov WORD PTR [rsp+16], dx
mov DWORD PTR [rsp+8], ecx
sub rsp, 72 ; 00000048H
; 348 : //! we only support 28 bit LBA so far
; 349 : uint16_t io = 0;
xor eax, eax
mov WORD PTR io$[rsp], ax
; 350 : switch (ata_slave_drive)
movzx eax, BYTE PTR ?ata_slave_drive@@3EA ; ata_slave_drive
mov BYTE PTR tv65[rsp], al
cmp BYTE PTR tv65[rsp], 0
je SHORT $LN8@ata_slave_
cmp BYTE PTR tv65[rsp], 1
je SHORT $LN7@ata_slave_
cmp BYTE PTR tv65[rsp], 2
je SHORT $LN6@ata_slave_
cmp BYTE PTR tv65[rsp], 3
je SHORT $LN5@ata_slave_
jmp SHORT $LN4@ata_slave_
$LN8@ata_slave_:
; 351 : {
; 352 : case (ATA_PRIMARY << 1 | ATA_MASTER):
; 353 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 354 : ata_slave_drive = ATA_MASTER;
mov BYTE PTR ?ata_slave_drive@@3EA, 0 ; ata_slave_drive
; 355 : break;
jmp SHORT $LN9@ata_slave_
$LN7@ata_slave_:
; 356 : case (ATA_PRIMARY << 1 | ATA_SLAVE):
; 357 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 358 : ata_slave_drive = ATA_SLAVE;
mov BYTE PTR ?ata_slave_drive@@3EA, 1 ; ata_slave_drive
; 359 : break;
jmp SHORT $LN9@ata_slave_
$LN6@ata_slave_:
; 360 : case (ATA_SECONDARY << 1 | ATA_MASTER):
; 361 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 362 : ata_slave_drive = ATA_MASTER;
mov BYTE PTR ?ata_slave_drive@@3EA, 0 ; ata_slave_drive
; 363 : break;
jmp SHORT $LN9@ata_slave_
$LN5@ata_slave_:
; 364 : case (ATA_SECONDARY << 1 | ATA_SLAVE):
; 365 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 366 : ata_slave_drive = ATA_SLAVE;
mov BYTE PTR ?ata_slave_drive@@3EA, 1 ; ata_slave_drive
; 367 : break;
jmp SHORT $LN9@ata_slave_
$LN4@ata_slave_:
; 368 : default:
; 369 : return 0;
xor al, al
jmp $LN11@ata_slave_
$LN9@ata_slave_:
; 370 : }
; 371 :
; 372 : uint8_t cmd = (ata_slave_drive == ATA_MASTER ? 0xE0 : 0xF0);
movzx eax, BYTE PTR ?ata_slave_drive@@3EA ; ata_slave_drive
test eax, eax
jne SHORT $LN13@ata_slave_
mov DWORD PTR tv74[rsp], 224 ; 000000e0H
jmp SHORT $LN14@ata_slave_
$LN13@ata_slave_:
mov DWORD PTR tv74[rsp], 240 ; 000000f0H
$LN14@ata_slave_:
movzx eax, BYTE PTR tv74[rsp]
mov BYTE PTR cmd$[rsp], al
; 373 :
; 374 : ata_wait_busy (io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_busy@@YAXG@Z ; ata_wait_busy
; 375 :
; 376 : outportb (io + ATA_REG_HDDEVSEL, (cmd | (uint8_t) ((lba >> 24 & 0x0F))));
movzx eax, BYTE PTR cmd$[rsp]
mov ecx, DWORD PTR lba$[rsp]
shr ecx, 24
and ecx, 15
movzx ecx, cl
or eax, ecx
movzx ecx, WORD PTR io$[rsp]
add ecx, 6
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 377 : outportb (io + 1, 0x00);
movzx eax, WORD PTR io$[rsp]
inc eax
xor edx, edx
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 378 :
; 379 : //! single sector read
; 380 : outportb (io + ATA_REG_SECCOUNT0, sec_count);
movzx eax, WORD PTR io$[rsp]
add eax, 2
movzx edx, BYTE PTR sec_count$[rsp]
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 381 :
; 382 : //! select LBA
; 383 : outportb (io + ATA_REG_LBA0, (uint8_t)((lba)));
movzx eax, WORD PTR io$[rsp]
add eax, 3
movzx edx, BYTE PTR lba$[rsp]
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 384 : outportb (io + ATA_REG_LBA1, (uint8_t)((lba) >> 8));
mov eax, DWORD PTR lba$[rsp]
shr eax, 8
movzx ecx, WORD PTR io$[rsp]
add ecx, 4
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 385 : outportb (io + ATA_REG_LBA2, (uint8_t)((lba) >> 16));
mov eax, DWORD PTR lba$[rsp]
shr eax, 16
movzx ecx, WORD PTR io$[rsp]
add ecx, 5
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 386 :
; 387 : //! select read command
; 388 : outportb (io + ATA_REG_COMMAND, ATA_CMD_READ_PIO);
movzx eax, WORD PTR io$[rsp]
add eax, 7
mov dl, 32 ; 00000020H
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 389 :
; 390 : //! wait untill ready
; 391 : ide_poll (io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_poll@@YAXG@Z ; ide_poll
; 392 :
; 393 : for (int i = 0; i < 256; i++ )
mov DWORD PTR i$1[rsp], 0
jmp SHORT $LN3@ata_slave_
$LN2@ata_slave_:
mov eax, DWORD PTR i$1[rsp]
inc eax
mov DWORD PTR i$1[rsp], eax
$LN3@ata_slave_:
cmp DWORD PTR i$1[rsp], 256 ; 00000100H
jge SHORT $LN1@ata_slave_
; 394 : {
; 395 :
; 396 : *(uint16_t*)(buf + i * 2) = inportw (io + ATA_REG_DATA);
movzx ecx, WORD PTR io$[rsp]
call ?inportw@@YAGG@Z ; inportw
mov ecx, DWORD PTR i$1[rsp]
shl ecx, 1
movsxd rcx, ecx
mov rdx, QWORD PTR buf$[rsp]
mov WORD PTR [rdx+rcx], ax
; 397 : }
jmp SHORT $LN2@ata_slave_
$LN1@ata_slave_:
; 398 :
; 399 :
; 400 : ide_400ns_delay(io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_400ns_delay@@YAXG@Z ; ide_400ns_delay
; 401 : //ide_wait_irq ();
; 402 : return 0;
xor al, al
$LN11@ata_slave_:
; 403 : }
add rsp, 72 ; 00000048H
ret 0
?ata_slave_read_28@@YAEIGPEAE@Z ENDP ; ata_slave_read_28
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
cmd$ = 32
io$ = 36
tv65 = 40
i$1 = 44
tv74 = 48
buf$ = 80
lba$ = 88
?ata_write_one@@YAEPEAEI@Z PROC ; ata_write_one
; 174 : {
$LN15:
mov DWORD PTR [rsp+16], edx
mov QWORD PTR [rsp+8], rcx
sub rsp, 72 ; 00000048H
; 175 : uint16_t io = 0;
xor eax, eax
mov WORD PTR io$[rsp], ax
; 176 : switch (ata_drive)
movzx eax, BYTE PTR ?ata_drive@@3EA ; ata_drive
mov BYTE PTR tv65[rsp], al
cmp BYTE PTR tv65[rsp], 0
je SHORT $LN8@ata_write_
cmp BYTE PTR tv65[rsp], 1
je SHORT $LN7@ata_write_
cmp BYTE PTR tv65[rsp], 2
je SHORT $LN6@ata_write_
cmp BYTE PTR tv65[rsp], 3
je SHORT $LN5@ata_write_
jmp SHORT $LN4@ata_write_
$LN8@ata_write_:
; 177 : {
; 178 : case (ATA_PRIMARY << 1 | ATA_MASTER):
; 179 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 180 : ata_drive = ATA_MASTER;
mov BYTE PTR ?ata_drive@@3EA, 0 ; ata_drive
; 181 : break;
jmp SHORT $LN9@ata_write_
$LN7@ata_write_:
; 182 : case (ATA_PRIMARY << 1 | ATA_SLAVE):
; 183 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 184 : ata_drive = ATA_SLAVE;
mov BYTE PTR ?ata_drive@@3EA, 1 ; ata_drive
; 185 : break;
jmp SHORT $LN9@ata_write_
$LN6@ata_write_:
; 186 : case (ATA_SECONDARY << 1 | ATA_MASTER):
; 187 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 188 : ata_drive = ATA_MASTER;
mov BYTE PTR ?ata_drive@@3EA, 0 ; ata_drive
; 189 : break;
jmp SHORT $LN9@ata_write_
$LN5@ata_write_:
; 190 : case (ATA_SECONDARY << 1 | ATA_SLAVE):
; 191 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 192 : ata_drive = ATA_SLAVE;
mov BYTE PTR ?ata_drive@@3EA, 1 ; ata_drive
; 193 : break;
jmp SHORT $LN9@ata_write_
$LN4@ata_write_:
; 194 : default:
; 195 : return 0;
xor al, al
jmp $LN11@ata_write_
$LN9@ata_write_:
; 196 : }
; 197 :
; 198 : uint8_t cmd = (ata_drive == ATA_MASTER ? 0xE0 : 0xF0);
movzx eax, BYTE PTR ?ata_drive@@3EA ; ata_drive
test eax, eax
jne SHORT $LN13@ata_write_
mov DWORD PTR tv74[rsp], 224 ; 000000e0H
jmp SHORT $LN14@ata_write_
$LN13@ata_write_:
mov DWORD PTR tv74[rsp], 240 ; 000000f0H
$LN14@ata_write_:
movzx eax, BYTE PTR tv74[rsp]
mov BYTE PTR cmd$[rsp], al
; 199 :
; 200 : ata_wait_busy (io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_busy@@YAXG@Z ; ata_wait_busy
; 201 : outportb(io + ATA_REG_HDDEVSEL, (cmd | (uint8_t) ((lba >> 24 & 0xFF))));
movzx eax, BYTE PTR cmd$[rsp]
mov ecx, DWORD PTR lba$[rsp]
shr ecx, 24
and ecx, 255 ; 000000ffH
movzx ecx, cl
or eax, ecx
movzx ecx, WORD PTR io$[rsp]
add ecx, 6
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 202 : outportb(io + 1, 0x00);
movzx eax, WORD PTR io$[rsp]
inc eax
xor edx, edx
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 203 :
; 204 : //! single sector write
; 205 : outportb(io + ATA_REG_SECCOUNT0, 1);
movzx eax, WORD PTR io$[rsp]
add eax, 2
mov dl, 1
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 206 :
; 207 : //! select LBA
; 208 : outportb(io + ATA_REG_LBA0, (uint8_t)((lba)));
movzx eax, WORD PTR io$[rsp]
add eax, 3
movzx edx, BYTE PTR lba$[rsp]
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 209 : outportb(io + ATA_REG_LBA1, (uint8_t)((lba) >> 8));
mov eax, DWORD PTR lba$[rsp]
shr eax, 8
movzx ecx, WORD PTR io$[rsp]
add ecx, 4
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 210 : outportb(io + ATA_REG_LBA2, (uint8_t)((lba) >> 16));
mov eax, DWORD PTR lba$[rsp]
shr eax, 16
movzx ecx, WORD PTR io$[rsp]
add ecx, 5
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 211 :
; 212 : //! select write command
; 213 : outportb (io + ATA_REG_COMMAND, ATA_CMD_WRITE_PIO);
movzx eax, WORD PTR io$[rsp]
add eax, 7
mov dl, 48 ; 00000030H
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 214 :
; 215 : //! wait until ready
; 216 : ide_poll(io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_poll@@YAXG@Z ; ide_poll
; 217 :
; 218 : ata_wait_busy (io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_busy@@YAXG@Z ; ata_wait_busy
; 219 : ata_wait_drq (io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_drq@@YAXG@Z ; ata_wait_drq
; 220 : for (int i=0; i < 256; i++)
mov DWORD PTR i$1[rsp], 0
jmp SHORT $LN3@ata_write_
$LN2@ata_write_:
mov eax, DWORD PTR i$1[rsp]
inc eax
mov DWORD PTR i$1[rsp], eax
$LN3@ata_write_:
cmp DWORD PTR i$1[rsp], 256 ; 00000100H
jge SHORT $LN1@ata_write_
; 221 : {
; 222 :
; 223 : x64_outportw(io + ATA_REG_DATA, *(uint16_t *)(buf + i * 2));
mov eax, DWORD PTR i$1[rsp]
shl eax, 1
cdqe
mov rcx, QWORD PTR buf$[rsp]
movzx edx, WORD PTR [rcx+rax]
movzx ecx, WORD PTR io$[rsp]
call x64_outportw
; 224 : }
jmp SHORT $LN2@ata_write_
$LN1@ata_write_:
; 225 :
; 226 : ide_400ns_delay (io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_400ns_delay@@YAXG@Z ; ide_400ns_delay
; 227 : return 1;
mov al, 1
$LN11@ata_write_:
; 228 : }
add rsp, 72 ; 00000048H
ret 0
?ata_write_one@@YAEPEAEI@Z ENDP ; ata_write_one
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
cmd$ = 32
io$ = 36
tv65 = 40
i$1 = 44
tv75 = 48
lba$ = 80
sec_count$ = 88
buf$ = 96
?ata_read_28@@YAEIGPEAE@Z PROC ; ata_read_28
; 231 : {
$LN15:
mov QWORD PTR [rsp+24], r8
mov WORD PTR [rsp+16], dx
mov DWORD PTR [rsp+8], ecx
sub rsp, 72 ; 00000048H
; 232 : //! we only support 28 bit LBA so far
; 233 : uint16_t io = 0;
xor eax, eax
mov WORD PTR io$[rsp], ax
; 234 : switch (ata_drive)
movzx eax, BYTE PTR ?ata_drive@@3EA ; ata_drive
mov BYTE PTR tv65[rsp], al
cmp BYTE PTR tv65[rsp], 0
je SHORT $LN8@ata_read_2
cmp BYTE PTR tv65[rsp], 1
je SHORT $LN7@ata_read_2
cmp BYTE PTR tv65[rsp], 2
je SHORT $LN6@ata_read_2
cmp BYTE PTR tv65[rsp], 3
je SHORT $LN5@ata_read_2
jmp SHORT $LN4@ata_read_2
$LN8@ata_read_2:
; 235 : {
; 236 : case (ATA_PRIMARY << 1 | ATA_MASTER):
; 237 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 238 : ata_drive = ATA_MASTER;
mov BYTE PTR ?ata_drive@@3EA, 0 ; ata_drive
; 239 : break;
jmp SHORT $LN9@ata_read_2
$LN7@ata_read_2:
; 240 : case (ATA_PRIMARY << 1 | ATA_SLAVE):
; 241 : io = ATA_PRIMARY_IO;
mov eax, 496 ; 000001f0H
mov WORD PTR io$[rsp], ax
; 242 : ata_drive = ATA_SLAVE;
mov BYTE PTR ?ata_drive@@3EA, 1 ; ata_drive
; 243 : break;
jmp SHORT $LN9@ata_read_2
$LN6@ata_read_2:
; 244 : case (ATA_SECONDARY << 1 | ATA_MASTER):
; 245 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 246 : ata_drive = ATA_MASTER;
mov BYTE PTR ?ata_drive@@3EA, 0 ; ata_drive
; 247 : break;
jmp SHORT $LN9@ata_read_2
$LN5@ata_read_2:
; 248 : case (ATA_SECONDARY << 1 | ATA_SLAVE):
; 249 : io = ATA_SECONDARY_IO;
mov eax, 368 ; 00000170H
mov WORD PTR io$[rsp], ax
; 250 : ata_drive = ATA_SLAVE;
mov BYTE PTR ?ata_drive@@3EA, 1 ; ata_drive
; 251 : break;
jmp SHORT $LN9@ata_read_2
$LN4@ata_read_2:
; 252 : default:{
; 253 : printf ("[ATA]: Read28 -- no selected io & drive\n");
lea rcx, OFFSET FLAT:$SG2999
call ?printf@@YAXPEBDZZ ; printf
; 254 : return 0;
xor al, al
jmp $LN11@ata_read_2
$LN9@ata_read_2:
; 255 : }
; 256 : }
; 257 :
; 258 : /*printf ("[ATA]: Read28 -- io device selected -> %x\n", io);
; 259 : printf ("[ATA]: Read28 -- ata drive selected -> %x\n", ata_drive);*/
; 260 : uint8_t cmd = (ata_drive == ATA_MASTER ? 0xE0 : 0xF0);
movzx eax, BYTE PTR ?ata_drive@@3EA ; ata_drive
test eax, eax
jne SHORT $LN13@ata_read_2
mov DWORD PTR tv75[rsp], 224 ; 000000e0H
jmp SHORT $LN14@ata_read_2
$LN13@ata_read_2:
mov DWORD PTR tv75[rsp], 240 ; 000000f0H
$LN14@ata_read_2:
movzx eax, BYTE PTR tv75[rsp]
mov BYTE PTR cmd$[rsp], al
; 261 :
; 262 : ata_wait_busy (io);
movzx ecx, WORD PTR io$[rsp]
call ?ata_wait_busy@@YAXG@Z ; ata_wait_busy
; 263 :
; 264 : outportb (io + ATA_REG_HDDEVSEL, (cmd | (uint8_t) ((lba >> 24 & 0x0F))));
movzx eax, BYTE PTR cmd$[rsp]
mov ecx, DWORD PTR lba$[rsp]
shr ecx, 24
and ecx, 15
movzx ecx, cl
or eax, ecx
movzx ecx, WORD PTR io$[rsp]
add ecx, 6
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 265 : outportb (io + 1, 0x00);
movzx eax, WORD PTR io$[rsp]
inc eax
xor edx, edx
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 266 :
; 267 : //! single sector read
; 268 : outportb (io + ATA_REG_SECCOUNT0, sec_count);
movzx eax, WORD PTR io$[rsp]
add eax, 2
movzx edx, BYTE PTR sec_count$[rsp]
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 269 :
; 270 : //! select LBA
; 271 : outportb (io + ATA_REG_LBA0, (uint8_t)((lba)));
movzx eax, WORD PTR io$[rsp]
add eax, 3
movzx edx, BYTE PTR lba$[rsp]
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 272 : outportb (io + ATA_REG_LBA1, (uint8_t)((lba) >> 8));
mov eax, DWORD PTR lba$[rsp]
shr eax, 8
movzx ecx, WORD PTR io$[rsp]
add ecx, 4
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 273 : outportb (io + ATA_REG_LBA2, (uint8_t)((lba) >> 16));
mov eax, DWORD PTR lba$[rsp]
shr eax, 16
movzx ecx, WORD PTR io$[rsp]
add ecx, 5
movzx edx, al
call ?outportb@@YAXGE@Z ; outportb
; 274 :
; 275 : //! select read command
; 276 : outportb (io + ATA_REG_COMMAND, ATA_CMD_READ_PIO);
movzx eax, WORD PTR io$[rsp]
add eax, 7
mov dl, 32 ; 00000020H
movzx ecx, ax
call ?outportb@@YAXGE@Z ; outportb
; 277 :
; 278 : //! wait untill ready
; 279 : ide_poll (io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_poll@@YAXG@Z ; ide_poll
; 280 :
; 281 : for (int i = 0; i < 256; i++ )
mov DWORD PTR i$1[rsp], 0
jmp SHORT $LN3@ata_read_2
$LN2@ata_read_2:
mov eax, DWORD PTR i$1[rsp]
inc eax
mov DWORD PTR i$1[rsp], eax
$LN3@ata_read_2:
cmp DWORD PTR i$1[rsp], 256 ; 00000100H
jge SHORT $LN1@ata_read_2
; 282 : {
; 283 :
; 284 : *(uint16_t*)(buf + i * 2) = inportw (io + ATA_REG_DATA);
movzx ecx, WORD PTR io$[rsp]
call ?inportw@@YAGG@Z ; inportw
mov ecx, DWORD PTR i$1[rsp]
shl ecx, 1
movsxd rcx, ecx
mov rdx, QWORD PTR buf$[rsp]
mov WORD PTR [rdx+rcx], ax
; 285 : }
jmp SHORT $LN2@ata_read_2
$LN1@ata_read_2:
; 286 :
; 287 :
; 288 : ide_400ns_delay(io);
movzx ecx, WORD PTR io$[rsp]
call ?ide_400ns_delay@@YAXG@Z ; ide_400ns_delay
; 289 : //ide_wait_irq ();
; 290 : return 0;
xor al, al
$LN11@ata_read_2:
; 291 : }
add rsp, 72 ; 00000048H
ret 0
?ata_read_28@@YAEIGPEAE@Z ENDP ; ata_read_28
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\drivers\ata.cpp
_TEXT SEGMENT
?ata_initialize@@YAXXZ PROC ; ata_initialize
; 493 : void ata_initialize (){
$LN3:
sub rsp, 40 ; 00000028H
; 494 :
; 495 : x64_cli();
call x64_cli
; 496 :
; 497 : interrupt_set(35, ide_primary_irq, 14);
mov r8b, 14
lea rdx, OFFSET FLAT:?ide_primary_irq@@YAX_KPEAX@Z ; ide_primary_irq
mov ecx, 35 ; 00000023H
call ?interrupt_set@@YAX_KP6AX0PEAX@ZE@Z ; interrupt_set
; 498 :
; 499 : interrupt_set(36, ide_secondary_irq,15);
mov r8b, 15
lea rdx, OFFSET FLAT:?ide_secondary_irq@@YAX_KPEAX@Z ; ide_secondary_irq
mov ecx, 36 ; 00000024H
call ?interrupt_set@@YAX_KP6AX0PEAX@ZE@Z ; interrupt_set
; 500 :
; 501 : ata_probe ();
call ?ata_probe@@YAXXZ ; ata_probe
; 502 :
; 503 : x64_sti();
call x64_sti
; 504 : }
add rsp, 40 ; 00000028H
ret 0
?ata_initialize@@YAXXZ ENDP ; ata_initialize
_TEXT ENDS
END
| 21.559583 | 102 | 0.655895 |
e3c5c6ce88a23c0141870d53785ae6d60a67768c | 436 | asm | Assembly | programs/oeis/131/A131369.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/131/A131369.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/131/A131369.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A131369: Period 10: repeat [5, 4, 5, 4, 3, 4, 5, 4, 5, 0].
; 5,4,5,4,3,4,5,4,5,0,5,4,5,4,3,4,5,4,5,0,5,4,5,4,3,4,5,4,5,0,5,4,5,4,3,4,5,4,5,0,5,4,5,4,3,4,5,4,5,0,5,4,5,4,3,4,5,4,5,0,5,4,5,4,3,4,5,4,5,0,5,4,5,4,3,4,5,4,5,0,5,4,5,4,3,4,5,4,5,0,5,4,5,4,3,4,5,4,5,0,5,4,5,4,3
mov $3,$0
mov $0,6
lpb $0,1
mov $0,1
mov $1,6
mov $2,$3
add $2,1
gcd $2,10
div $2,2
mov $4,12
sub $4,$2
lpe
mul $4,2
add $1,$4
sub $1,20
div $1,2
| 21.8 | 211 | 0.497706 |
3184a588685c0762594e5f9db495d51bb2870f4b | 147 | asm | Assembly | 6502EMU/Instructions/CLC.asm | austinbentley/6502toAVR | 98f43db3554741e6e25c0ab5acd394120a121c0d | [
"BSD-3-Clause"
] | null | null | null | 6502EMU/Instructions/CLC.asm | austinbentley/6502toAVR | 98f43db3554741e6e25c0ab5acd394120a121c0d | [
"BSD-3-Clause"
] | null | null | null | 6502EMU/Instructions/CLC.asm | austinbentley/6502toAVR | 98f43db3554741e6e25c0ab5acd394120a121c0d | [
"BSD-3-Clause"
] | null | null | null | /*
* CLC.asm
*
* Created: 5/13/2018 2:52:01 PM
* Author: ROTP
*/
CLC_implied:
swapPCwithTEMPPC
CBR SR, CARRY_FLAG
ADIW ZH:ZL, 1
RET | 10.5 | 33 | 0.619048 |
0231c063b8818f7b1cc8659cef9d07643bcca49a | 370 | asm | Assembly | src/test/resources/data/potests/test22.asm | cpcitor/mdlz80optimizer | 75070d984e1f08474e6d397c7e0eb66d8be0c432 | [
"Apache-2.0"
] | 36 | 2020-06-29T06:52:26.000Z | 2022-02-10T19:41:58.000Z | src/test/resources/data/potests/test22.asm | cpcitor/mdlz80optimizer | 75070d984e1f08474e6d397c7e0eb66d8be0c432 | [
"Apache-2.0"
] | 39 | 2020-07-02T18:19:34.000Z | 2022-03-27T18:08:54.000Z | src/test/resources/data/potests/test22.asm | cpcitor/mdlz80optimizer | 75070d984e1f08474e6d397c7e0eb66d8be0c432 | [
"Apache-2.0"
] | 7 | 2020-07-02T06:00:05.000Z | 2021-11-28T17:31:13.000Z | ; Test case: a macro called before it's defined, inside another macro
; - This is to make sure the parser can handle it
; - also the ld a,1 of the first macro, should be optimized out
load_n_in_a1: macro ?n
ld a,1
load_n_in_a2 ?n
endm
load_n_in_a1 -2
ld (var),a
end:
jp end
var:
db 0
load_n_in_a2: macro ?n
IF ?n > 0
ld a,?n
ELSE
ld a,-?n
ENDIF
endm
| 14.230769 | 69 | 0.678378 |
0263cf65e2b702cdfbd908ef5e8f5ce534108267 | 10,490 | asm | Assembly | FailDos/failDOS.asm | objectDisorientedProgrammer/8086Assembly | ec0e268d40da1bb272d4d7f199a30845638a9682 | [
"MIT"
] | 1 | 2015-10-02T12:24:39.000Z | 2015-10-02T12:24:39.000Z | FailDos/failDOS.asm | objectDisorientedProgrammer/8086Assembly | ec0e268d40da1bb272d4d7f199a30845638a9682 | [
"MIT"
] | 3 | 2016-05-07T21:15:15.000Z | 2019-02-05T05:43:25.000Z | FailDos/failDOS.asm | objectDisorientedProgrammer/8086Assembly | ec0e268d40da1bb272d4d7f199a30845638a9682 | [
"MIT"
] | null | null | null | ; FailDOS
; created April 27, 2012
; finished [4/29/12]
; by Douglas Chidester
;
; This program simulates a GUI for DOS
;
;
; MIT License
;
; Copyright (c) 2012 Douglas Chidester
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; copies of the Software, and to permit persons to whom the Software is
; furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included in all
; copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
; SOFTWARE.
;==========================================================
;=================== Macro functions ======================
;==========================================================
; write a string to the screen
printm macro string
mov ah, 09h
mov dx, offset string
int 21h
endm
; move the cursor to row r, column c
cursor macro row, col
mov ah, 02
mov bh, 00
mov dh, row
mov dl, col
int 10h
endm
; draw a box
drawRect macro startRow, startCol, endRow, endCol, color
local outterLoop, innerLoop
mov dx, startRow
outterLoop:
mov cx, startCol
innerLoop:
mov ah, 0Ch
mov al, color ; set color
int 10h
inc cx
cmp cx, endCol ; check if end of row
jne innerLoop
inc dx
cmp dx, endRow ; check for more rows
jne outterLoop
endm
;==========================================================
;===================== Main Program =======================
;==========================================================
.model small
.stack 100h
.data
tickCount dw 00
lowCount dw 00
highCount dw 00
oldVidMode db ?
newVidMode db 13h ; 320 x 200 px 256 color, graph, 1 page
screenXmax = 200
screenYmax = 320
month db "May $"
day db "2,$"
year db "2012$"
titleMsg db "FailDOS GUI simulator$"
credits db "Created by Douglas Chidester$"
quitMsg db "Press ESC or 'q' to exit...$"
continueMsg db "press the any key to boot$"
startupMsg db "FailDOS is setting up$"
loadingMsg1 db "loading$"
loadingMsg2 db "loading . $"
loadingMsg3 db "loading . . $"
loadingMsg4 db "loading . . .$"
endBtnTxt db "end$"
programs db "programs$"
pong db "pong$"
shutdown db "shutdown$"
bosdMsg1 db "FailDOS has encountered an unexpected$"
bosdMsg2 db "error. Please contact your system$"
bosdMsg3 db "administrator to resolve this issue.$"
bosdMsg4 db "You must be root to shutdown.$"
bosdMsg5 db "Try: 'sudo shutdown' from the terminal.$"
mouseX dw ?
mouseY dw ?
.code
main proc
mov ax, @data
mov ds, ax ; load data
mov ah, 0Fh
int 10h
mov oldVidMode, al ; save old video mode
mov ah, 00
mov al, newVidMode ; set new video mode
int 10h
cursor 4, 7
printm titleMsg
cursor 6, 5
printm credits
cursor 10, 6
printm quitMsg ; tell user how to exit
mov tickCount, 36 ; 2 sec delay
call delay
cursor 15, 8
printm continueMsg
mov ah, 10h ; wait for key
int 16h
cmp al, 1Bh ; check for esc and q
je exit1
cmp al, 71h
je exit1
drawRect 0, 0, screenXmax, screenYmax, 0h ; clear entire screen
call loadingScreen
mov ax, 0 ; initialize mouse
int 33h
mov ax, 01 ; show cursor
int 33h
drawRect 0, 0, screenXmax, screenYmax, 0h ; clear entire screen
redrawDesktop:
call showDesktop
mainLoop:
mov ax, 03h ; get mouse status
int 33h
cmp bx, 0001h ; check for mouse click
je leftClick
checkKey:
mov ah, 11h ; check for key press
int 16h ; key is in AL
cmp al, 1Bh ; check ESC key
je exit1
cmp al, 71h ; check 'q'
je exit1
jmp mainLoop
exit1:
jmp exit
leftClick:
;check if click on bottom of screen (end button)
cmp dx, 173
jge checkEndButton
jmp checkKey
checkEndButton:
;if click isnt in end button, dont draw menu
cmp cx, 80
ja checkKey
; if it is, display menu
call endBtnMenu
mov tickCount, 18 ; 1 sec delay
call delay
mov ax, 03h ; get mouse status
int 33h
; check if mouse is in the menu box
cmp dx, 55
jb redrawDesktop1
cmp dx, 173
jge redrawDesktop1
cmp cx, 160
ja redrawDesktop1
jmp checkMenuItemClick
redrawDesktop1:
jmp redrawDesktop
; mouse is inside menu
checkMenuItemClick:
mov ax, 03h ; get mouse status
int 33h
cmp bx, 0001h
je checkWhichItem ; check for click on programs
jmp checkMenuItemClick
checkWhichItem:
; check if mouse is still in the menu box
cmp cx, 160
ja redrawDesktop1
cmp dx, 55
jb redrawDesktop1
cmp dx, 173
jge redrawDesktop1
cmp dx, 85 ; check for click in "programs"
jb programsClicked
cmp dx, 130 ; check for click in "pong"
jb pongClicked
cmp dx, 130 ; check for click in "shutdown"
ja shutdownClicked
jmp redrawDesktop1
programsClicked:
call programsWindow
jmp mainLoop
pongClicked:
call pongWindow
jmp mainLoop
shutdownClicked:
mov ax, 2 ; hide the mouse
int 33h
call shutdownWindow
mov tickCount, 180 ; delay 10 sec
call delay
jmp exit
exit:
mov ax, 2 ; hide the mouse
int 33h
mov ah, 00
mov al, oldVidMode ; restore old video mode
int 10h
mov ah, 4Ch ; return to DOS
int 21h
main endp
; This procedure is used for animation delay
delay proc
mov ah, 0h
int 1Ah
add dx, tickCount
add cx, tickCount
mov lowCount, dx
mov highCount, cx
cont:
mov ah, 0h
int 1Ah
cmp dx, lowCount
je done
cmp cx, highCount
je done
jmp cont
done:
ret
delay endp
; This is the loading screen
loadingScreen proc
cursor 7, 7
printm startupMsg
mov tickCount, 27 ; 1.5 sec delay
call delay
cursor 13, 10
printm loadingMsg1
mov tickCount, 18 ; 1 sec delay
call delay
drawRect 100, 0, 180, screenYmax, 0h ; clear bottom of screen
mov cx, 4
loadingLoop:
push cx
call loadingAnimation
pop cx
loop loadingLoop
ret
loadingScreen endp
; This is the ". . ." animation for the loading screen
loadingAnimation proc
;drawRect 100, 0, screenXmax, screenYmax, 0h ; clear loading msg
cursor 13, 10
printm loadingMsg2
mov tickCount, 18 ; 1 sec delay
call delay
drawRect 100, 140, 180, screenYmax, 0h ; clear loading msg
cursor 13, 10
printm loadingMsg3
mov tickCount, 18 ; 1 sec delay
call delay
drawRect 100, 140, 180, screenYmax, 0h ; clear loading msg
cursor 13, 10
printm loadingMsg4
mov tickCount, 18 ; 1 sec delay
call delay
drawRect 100, 140, 180, screenYmax, 0h ; clear loading msg
ret
loadingAnimation endp
; Draw the desktop and all its glory
showDesktop proc
mov tickCount, 1 ; 55 ms delay
call delay
; Draw desktop, startbar, startbutton, icons
drawRect 0, 0, screenXmax, screenYmax, 00000011b ; desktop background
drawRect 175, 0, screenXmax, screenYmax, 07h ; start bar
drawRect 173, 0 175, screenYmax, 00001011b ; separator line
drawRect 175, 0, screenXmax, 40, 0Fh ; start button
drawRect 10, 270, 15, 300, 2Ah ; recycle bin icon
drawRect 15, 275, 35, 295, 2Ah
drawRect 40, 270, 58, 300, 07h ; computer icon
drawRect 42, 273, 56, 297, 01h
drawRect 56, 265, 64, 305, 07h
cursor 23, 1
printm endBtnTxt
cursor 23, 68
printm month
cursor 23, 72
printm day
cursor 23, 74
printm year
ret
showDesktop endp
; Create the end button menu
endBtnMenu proc
drawRect 55, 0, 173, 80, 0Fh
drawRect 60, 5, 170, 75, 00h
cursor 9, 1
printm programs
cursor 14, 2
printm pong
cursor 19, 1
printm shutdown
ret
endBtnMenu endp
; Displays installed programs
programsWindow proc
call showDesktop ; redraw the desktop
drawRect 20, 60, 140, 260, 0Fh ; create a programs window
drawRect 25, 65, 135, 255, 00h
drawRect 30, 70, 48, 100, 07h ; computer icon
drawRect 32, 73, 46, 97, 01h
drawRect 46, 66, 54, 104, 07h
drawRect 30, 115, 35, 145, 2Ah ; recycle bin icon
drawRect 35, 120, 55, 140, 2Ah
drawRect 30, 155, 55, 160, 04h ; pong icon
drawRect 43, 160, 46, 163, 0Fh
drawRect 30, 175, 55, 180, 0Ah
ret
programsWindow endp
; Pong window
pongWindow proc
call showDesktop ; redraw the desktop
drawRect 20, 60, 140, 260, 0Fh ; create a window
drawRect 25, 65, 135, 255, 00h
drawRect 30, 70, 75, 75, 04h ; red player
drawRect 30, 245, 75, 250, 0Ah ; green player
drawRect 25, 159, 135, 161, 07h ; seperator bar
drawRect 30, 150, 40, 155, 07h ; red score
drawRect 31, 151, 39, 154, 00h
drawRect 30, 165, 40, 170, 07h ; green score
drawRect 31, 166, 39, 169, 00h
drawRect 75, 150, 78, 153, 0Fh ; ball
ret
pongWindow endp
; Blue screen of death
shutdownWindow proc
drawRect 0, 0, screenXmax, screenYmax, 01h
cursor 1, 1
printm bosdMsg1 ; print first message
cursor 3, 1
printm bosdMsg2 ; print second message
cursor 5, 1
printm bosdMsg3 ; print third message
cursor 14, 1
printm bosdMsg4 ; print fourth message
cursor 16, 1
printm bosdMsg5 ; print fifth message
ret
shutdownWindow endp
end main
| 26.897436 | 80 | 0.613823 |
435406d0dff16f6b0852efdd3b34fe6f7eb5fa26 | 8,819 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca.log_21829_241.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca.log_21829_241.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_/i7-7700_9_0xca.log_21829_241.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 %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0xe693, %rbp
nop
nop
nop
nop
nop
and $51402, %rsi
movw $0x6162, (%rbp)
cmp $29838, %r15
lea addresses_A_ht+0x1193f, %r15
clflush (%r15)
inc %rbp
vmovups (%r15), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %r13
nop
nop
nop
nop
xor $35836, %r15
lea addresses_WC_ht+0x6279, %rcx
nop
nop
nop
add $52157, %r11
vmovups (%rcx), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %r8
nop
nop
nop
cmp $22290, %rcx
lea addresses_A_ht+0x2693, %r13
nop
nop
nop
nop
xor $57426, %r8
movl $0x61626364, (%r13)
nop
nop
nop
nop
add %r8, %r8
lea addresses_WC_ht+0x11b93, %r11
nop
nop
nop
inc %r13
mov (%r11), %ecx
nop
nop
nop
nop
cmp %r15, %r15
lea addresses_WT_ht+0x18213, %r8
xor %rcx, %rcx
movb $0x61, (%r8)
nop
cmp $64620, %r13
lea addresses_WT_ht+0xb493, %r11
nop
nop
nop
nop
lfence
mov (%r11), %si
nop
nop
nop
nop
nop
cmp $439, %r13
lea addresses_normal_ht+0x3e93, %r13
sub %r11, %r11
movw $0x6162, (%r13)
nop
nop
sub $19620, %rbp
lea addresses_A_ht+0x9fa7, %rsi
lea addresses_A_ht+0xbe93, %rdi
nop
nop
and $27264, %r15
mov $8, %rcx
rep movsb
nop
nop
nop
nop
nop
xor $7681, %r15
lea addresses_D_ht+0x10193, %rcx
nop
sub %r8, %r8
mov $0x6162636465666768, %r15
movq %r15, %xmm4
vmovups %ymm4, (%rcx)
nop
nop
xor %rcx, %rcx
lea addresses_WT_ht+0x2ef5, %rsi
lea addresses_A_ht+0xfbd3, %rdi
nop
nop
nop
cmp $32019, %r11
mov $126, %rcx
rep movsq
and %rdi, %rdi
lea addresses_normal_ht+0xb723, %rsi
nop
nop
nop
nop
inc %rbp
mov $0x6162636465666768, %r15
movq %r15, (%rsi)
nop
nop
nop
nop
add %rbp, %rbp
lea addresses_WT_ht+0x1c893, %rsi
lea addresses_UC_ht+0x6693, %rdi
nop
nop
nop
dec %r11
mov $70, %rcx
rep movsb
nop
sub %r8, %r8
lea addresses_normal_ht+0x3a93, %rsi
lea addresses_D_ht+0xe993, %rdi
nop
nop
nop
add $27685, %r15
mov $67, %rcx
rep movsl
nop
nop
cmp %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_A+0x1be93, %r13
nop
nop
add $51760, %r12
movw $0x5152, (%r13)
nop
nop
cmp $21196, %rsi
// Store
lea addresses_PSE+0x18a93, %rdi
nop
nop
add $22086, %rsi
mov $0x5152535455565758, %rbp
movq %rbp, (%rdi)
nop
nop
nop
sub $31500, %rcx
// Load
lea addresses_PSE+0x19813, %r13
nop
nop
nop
inc %rbp
mov (%r13), %esi
xor %rsi, %rsi
// Store
lea addresses_PSE+0x8e93, %r12
nop
nop
nop
nop
xor $57242, %r9
movb $0x51, (%r12)
nop
nop
nop
nop
nop
add $19899, %r13
// Store
lea addresses_WC+0x1e6b3, %r12
nop
nop
nop
xor %r9, %r9
mov $0x5152535455565758, %rcx
movq %rcx, %xmm6
vmovaps %ymm6, (%r12)
nop
xor %rcx, %rcx
// Faulty Load
lea addresses_PSE+0x8e93, %rdi
and $28746, %r13
vmovaps (%rdi), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %rbp
lea oracles, %rcx
and $0xff, %rbp
shlq $12, %rbp
mov (%rcx,%rbp,1), %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_PSE'}}
{'src': {'congruent': 6, 'AVXalign': True, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_PSE'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': True, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': True, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 1, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': True, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 2, 'same': True, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': True, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': True, 'size': 8, 'NT': True, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 6, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}}
{'44': 15627, '49': 2, '00': 6200}
00 44 44 00 44 44 00 44 00 00 44 00 44 00 00 44 44 00 44 44 00 44 44 44 44 44 00 00 00 44 44 44 00 44 00 44 44 44 44 44 44 44 44 00 44 00 44 44 44 44 44 44 44 00 00 44 00 00 44 00 00 00 44 44 44 44 00 00 44 44 00 44 44 00 44 44 44 44 00 44 00 44 44 44 00 44 00 44 44 44 44 00 44 44 00 44 44 00 00 44 44 00 44 44 44 44 44 44 00 00 44 44 00 00 44 00 44 00 00 00 44 44 44 00 44 00 44 44 44 44 44 44 44 44 00 00 44 00 00 44 44 44 00 44 44 44 00 44 44 44 44 00 44 00 00 44 44 00 44 44 44 44 44 44 44 00 44 44 00 00 44 00 44 00 00 44 00 00 00 00 44 44 00 00 00 44 00 44 00 44 00 44 44 00 44 44 00 44 44 44 00 44 44 44 44 00 44 44 44 44 44 44 00 44 44 00 44 00 44 00 44 00 44 44 44 44 44 00 44 00 44 00 44 44 44 44 44 44 44 00 44 44 44 00 44 44 44 00 44 44 00 44 44 44 44 44 44 44 44 00 44 44 44 44 44 44 44 44 44 44 44 44 00 44 00 00 44 00 00 44 00 44 44 44 44 44 00 44 44 44 44 44 00 44 44 44 44 44 00 44 00 44 44 00 44 44 44 44 00 44 00 44 44 00 44 00 44 44 00 44 44 44 44 44 00 44 00 44 00 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 00 44 00 44 00 44 44 00 44 44 44 44 44 44 44 44 00 00 44 44 44 44 44 44 00 44 44 00 00 00 44 44 44 00 00 44 44 44 44 00 44 44 00 00 44 44 44 44 44 00 44 44 44 44 44 44 00 44 44 44 44 44 44 44 44 44 00 44 44 00 44 00 00 44 44 44 00 44 44 44 44 44 44 44 44 44 00 00 44 44 00 44 44 44 44 44 00 44 44 00 44 44 00 44 44 00 00 44 44 44 44 44 44 44 00 44 44 44 44 00 44 44 44 00 00 44 44 44 44 44 44 44 44 44 00 44 44 44 44 44 00 44 44 00 44 00 44 44 44 44 44 44 00 44 44 00 44 44 44 44 44 44 44 44 44 00 00 44 44 44 44 00 44 44 44 00 44 44 00 44 44 44 44 44 44 44 44 44 00 00 44 44 00 44 00 44 44 44 00 00 44 44 00 44 44 44 44 00 44 00 44 44 44 44 44 00 00 00 44 44 44 00 44 00 44 00 44 00 44 44 00 44 00 44 44 44 44 00 00 44 44 44 44 44 44 44 44 00 44 44 00 44 44 44 44 00 44 44 00 00 44 00 44 44 00 44 44 44 44 44 44 00 44 44 44 44 44 00 00 44 00 44 00 44 00 44 44 00 44 44 44 44 44 00 00 00 44 44 44 44 44 00 44 44 44 00 44 44 44 44 44 44 44 44 44 00 44 44 44 00 00 44 44 00 44 44 00 44 44 00 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 00 44 44 00 44 44 00 44 44 44 44 44 44 44 44 44 44 44 00 44 44 44 44 44 44 00 44 00 44 44 44 00 00 44 44 00 44 00 44 00 00 44 00 44 00 00 44 44 00 00 44 00 44 44 44 00 44 00 44 44 00 00 00 00 44 44 44 00 44 44 00 44 44 44 44 00 00 44 44 44 44 00 44 00 44 44 44 00 44 00 44 00 44 00 44 44 00 44 44 00 44 44 44 44 44 44 44 44 44 44 00 44 44 00 00 44 44 44 00 00 44 44 00 44 44 00 44 00 44 44 44 44 44 44 44 44 44 44 44 44 44 00 00 44 44 44 00 00 00 44 00 44 00 00 00 44 44 44 00 00 44 44 44 44 00 00 44 00 44 44 00 00 44 44 44 44 44 44 44 44 44 00 44 44 00 44 44 00 00 44 44 44 44 44 44 00 44 00 44 44 44 44 44 00 44 00 44 00 44 44 44 44 00 44 00 44 44 00 44 44 00 44 44 44 00 00 00 44 44 00 44 44 44 44 44 44 44 44 44 00 44 00 44 00 00 44 44 44 44 44 00 44 00 44 00 44 44 44 00 44 00 44 44 00 44 44 44 44 00 44 00 44 44 44 44 00 00 44 44 44 44 00 00 44 44 00 44 44 44 00 00 44 44 00 44 44 44 44 00 44 00 44 44 44 44 44 00 44 44 44 44
*/
| 31.384342 | 2,999 | 0.653022 |
3643b43e2a9b74a6d89488dcc7e34c1783682359 | 865 | asm | Assembly | programs/oeis/142/A142013.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/142/A142013.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/142/A142013.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A142013: Primes congruent to 9 mod 31.
; 71,257,443,691,877,1063,1187,1249,1373,1559,1621,1931,1993,2179,2551,2861,3109,3853,4349,4597,4721,4783,4969,5279,5527,5651,6271,6581,6829,7573,7759,7883,8069,8317,8627,8689,8999,9371,9433,9619,9743,9929,10177,10301,10487,10859,11789,12037,12161,12347,12409,12781,12967,13339,13463,13649,13711,14083,14207,14827,14951,15013,15137,15199,15881,16067,16253,16811,17183,17431,17989,18671,18919,19477,19973,20407,20593,20717,20903,21089,21523,21647,22391,22453,22639,23011,23197,23321,23879,24251,24499,24623,24809,25057,25243,25367,25801,26111,26297,26669
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,8
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,23
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
div $1,2
sub $1,22
mul $1,2
add $1,23
mov $0,$1
| 36.041667 | 553 | 0.730636 |
a6a5ed13c4a9d53735914173801db2a011863736 | 705 | asm | Assembly | oeis/102/A102731.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/102/A102731.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/102/A102731.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A102731: Numbers k such that 11*k + 23 is prime.
; Submitted by Christian Krause
; 0,4,6,16,28,30,34,36,40,54,58,60,64,76,78,84,88,90,100,114,118,126,130,144,160,168,180,186,190,196,204,208,210,214,216,228,240,244,246,258,264,268,274,286,288,294,298,300,306,310,316,328,334,336,348,354,364,366,370,376,394,400,418,420,448,450,456,468,474,478,480,484,490,496,498,520,534,544,546,550,568,574,576,586,588,606,610,634,636,646,648,660,666,670,676,678,684,688,700,706
mov $2,$0
add $2,2
pow $2,2
lpb $2
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,22
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
sub $0,22
div $0,11
| 32.045455 | 380 | 0.673759 |
f1d901b00861ce37c6786898cac2b71c1ac4f701 | 763 | asm | Assembly | oeis/167/A167859.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/167/A167859.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/167/A167859.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A167859: a(n) = 4^n * Sum_{k=0..n} binomial(2*k, k)^2 / 4^k.
; Submitted by Christian Krause
; 1,8,68,672,7588,93856,1229200,16695424,232418596,3293578784,47309094672,686870685312,10059942413584,148412250014336,2202990595617344,32873407393419776,492791264816231204,7416883049287613216,112025612910456542864,1697390124733416611456,25791226006656757038224,392886443423293833466496,5998778222820753210104384,91784494437470878242177536,1407045921052168198194320144,21607825104168900179828094080,332366491738075313344869571136,5120039094095301488030727449088,78982624282542306512429178789952
mov $1,1
mov $2,1
mov $3,$0
mov $4,1
lpb $3
mul $1,$4
mul $1,$4
mul $1,4
mul $2,8
add $5,$4
div $1,$5
div $2,2
add $2,$1
sub $3,1
add $4,2
lpe
mov $0,$2
| 34.681818 | 493 | 0.790301 |
ed3d9fe38ccfe2fc824248fb1f610f32d1947f95 | 602 | asm | Assembly | asm/por_fix_the_creature_boss_death_flag.asm | Iemnur/DSVEdit | 1f52feb6de8a47c7d223a17d739e69bb40aedd3f | [
"MIT"
] | 70 | 2017-02-25T15:06:47.000Z | 2022-03-16T03:05:35.000Z | asm/por_fix_the_creature_boss_death_flag.asm | Iemnur/DSVEdit | 1f52feb6de8a47c7d223a17d739e69bb40aedd3f | [
"MIT"
] | 58 | 2017-03-12T21:34:50.000Z | 2022-01-31T17:22:36.000Z | asm/por_fix_the_creature_boss_death_flag.asm | Iemnur/DSVEdit | 1f52feb6de8a47c7d223a17d739e69bb40aedd3f | [
"MIT"
] | 26 | 2017-03-04T16:35:13.000Z | 2021-11-24T20:52:19.000Z | .nds
.relativeinclude on
.erroronwarning on
; This patch fixes the bug where the common enemy version of The Creature sets his boss death flag.
.open "ftc/overlay9_60", 022D7900h
.org 0x022D7D14
; Check if Var A is 0 (common enemy/boss rush version) and skip setting the boss death flag if so.
; This code already existed around here in vanilla, we're just moving it up a few lines to before setting the boss death flag instead of after.
ldrh r1, [r1, 3Ch]
cmp r1, 0h
beq 0x022D7D30
; Then set the boss death flag.
ldr r2, [r0, 76Ch]
orr r2, r2, 200h
str r2, [r0, 76Ch]
.close
| 27.363636 | 145 | 0.72093 |
13fa9e7300a079a01b660ecce2e9f2304e6d5955 | 1,806 | asm | Assembly | util/gut/schp.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | util/gut/schp.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | util/gut/schp.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ; Save file from heap V1.00 Apr 1988 J.R.Oakley QJUMP
section gen_util
xdef gu_schp
xref gu_trap3
xref gu_fclos
include 'dev8_keys_hdr'
include 'dev8_keys_qdos_io'
;+++
; Save a file from the common heap. The bytes of the file and those of the
; 14-byte header are pointed to individually.
;
; a0 c channel ID - closed on exit
; a1 c p pointer to file header
; a2 c p pointer to file data
; error returns standard
; uses $0C bytes of stack + gu_trap3/gu_fclos
;---
gu_schph
regschp reg d1/d2/a1
movem.l regschp,-(sp)
moveq #-hdr.set,d2 ; difference between header end...
sub.l a1,d2
add.l a2,d2 ; ...and data start is this
bra.s ugs_shdr
;+++
; Save a file from the common heap. The bytes of the file should be immediately
; preceded by a 14-byte header in the standard form. The heap is not
; released.
;
; a0 c channel ID - closed on exit
; a1 c p pointer to file header & file data
; error returns standard
; uses $0C bytes of stack + gu_trap3/gu_fclos
;---
gu_schp
movem.l regschp,-(sp)
moveq #0,d2 ; data follows header
ugs_shdr
moveq #iof.shdr,d0 ; set header
jsr gu_trap3(pc)
bne.s ugs_close ; ...oops
move.l hdr_flen-hdr.set(a1),d1 ; length is in the header
add.l d2,a1 ; skip to data
move.l d1,d2 ; length should be here
moveq #iof.save,d0
jsr gu_trap3(pc)
ugs_close
jsr gu_fclos ; close file, set CCR
movem.l (sp)+,regschp
rts
end
| 30.610169 | 80 | 0.543189 |
a104a2fa7c8b6143dac3e425680a5d12ad887ab1 | 609 | asm | Assembly | oeis/138/A138364.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/138/A138364.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/138/A138364.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A138364: The number of Motzkin n-paths with exactly one flat step.
; 0,1,0,3,0,10,0,35,0,126,0,462,0,1716,0,6435,0,24310,0,92378,0,352716,0,1352078,0,5200300,0,20058300,0,77558760,0,300540195,0,1166803110,0,4537567650,0,17672631900,0,68923264410,0,269128937220,0,1052049481860,0,4116715363800,0,16123801841550,0,63205303218876,0,247959266474052,0,973469712824056,0,3824345300380220,0,15033633249770520,0,59132290782430712,0,232714176627630544,0,916312070471295267,0,3609714217008132870,0,14226520737620288370,0,56093138908331422716,0,221256270138418389602,0
mov $1,$0
add $0,1
dif $0,2
bin $1,$0
mov $0,$1
| 67.666667 | 490 | 0.811166 |
8a869294baca3d2330b5b9ab3466eec189d702d9 | 287 | asm | Assembly | basic-assembly-programs/M5S1-FORMATIVE.asm | ralphcajipe/assembly-8086 | 3a8763886dc789025bfe18b8d7540c0879c974a8 | [
"MIT"
] | null | null | null | basic-assembly-programs/M5S1-FORMATIVE.asm | ralphcajipe/assembly-8086 | 3a8763886dc789025bfe18b8d7540c0879c974a8 | [
"MIT"
] | null | null | null | basic-assembly-programs/M5S1-FORMATIVE.asm | ralphcajipe/assembly-8086 | 3a8763886dc789025bfe18b8d7540c0879c974a8 | [
"MIT"
] | null | null | null | .MODEL SMALL
ORG 100h ;DIRECTIVE that defines where the machine code to be placed in memory.
;MOV REG,REG
MOV AX,CX
;MOV REG,IMM
MOV BX,320H ;copies hexadecimal value 320h to BX
MOV DS, BX ;copies value of BX into DS
RET | 22.076923 | 86 | 0.58885 |
1929c5ff8a3c01102821cb792ed3552a2182e2ce | 465 | asm | Assembly | oeis/174/A174030.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/174/A174030.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/174/A174030.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A174030: Partial sums of A007694.
; Submitted by Christian Krause
; 1,3,7,13,21,33,49,67,91,123,159,207,261,325,397,493,601,729,873,1035,1227,1443,1699,1987,2311,2695,3127,3613,4125,4701,5349,6117,6981,7953,8977,10129,11425,12883,14419,16147,18091,20139,22443,25035,27951,31023
mov $1,$0
bin $1,$0
lpb $0
sub $0,$1
mov $2,$0
max $2,0
seq $2,3586 ; 3-smooth numbers: numbers of the form 2^i*3^j with i, j >= 0.
add $3,$2
lpe
mov $0,$3
mul $0,2
add $0,1
| 27.352941 | 211 | 0.683871 |
39aa0eefdb0238fa986da9ac8e4845e18fe77ea9 | 435 | asm | Assembly | programs/oeis/068/A068212.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/068/A068212.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/068/A068212.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A068212: a(n) = phi(n) divided by its largest prime factor.
; 1,1,2,1,2,2,2,2,2,2,4,2,4,4,8,2,6,4,4,2,2,4,4,4,6,4,4,4,6,8,4,8,8,4,12,6,8,8,8,4,6,4,8,2,2,8,6,4,16,8,4,6,8,8,12,4,2,8,12,6,12,16,16,4,6,16,4,8,10,8,24,12,8,12,12,8,6,16,18,8,2,8,32,6,8,8,8,8,24,4,12,2,24
add $0,2
seq $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
sub $0,1
seq $0,52126 ; a(1) = 1; for n>1, a(n)=n/(largest prime dividing n).
| 54.375 | 206 | 0.597701 |
ae2f19ca19bbff59260fa6342d804f9b31935c93 | 1,268 | asm | Assembly | base/Kernel/Native/arm/Crt/callcode.asm | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | base/Kernel/Native/arm/Crt/callcode.asm | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | base/Kernel/Native/arm/Crt/callcode.asm | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains ARM-specific assembly code.
;;;
; **************************************************************************
; Stolen from armtrap.s
IF Thumbing
MACRO
CALL $Fn
ldr r12, =$Fn
mov lr, pc
bx r12
MEND
MACRO
CALLEQ $Fn
ldreq r12, =$Fn
moveq lr, pc
bxeq r12
MEND
MACRO
RETURN
bx lr
MEND
MACRO
RETURN_EQ
bxeq lr
MEND
MACRO
RETURN_NE
bxne lr
MEND
ELSE
MACRO
CALL $Fn
bl $Fn
MEND
MACRO
CALLEQ $Fn
bleq $Fn
MEND
MACRO
RETURN
mov pc, lr
MEND
MACRO
RETURN_EQ
moveq pc, lr
MEND
MACRO
RETURN_NE
movne pc, lr
MEND
ENDIF
MACRO
mfc15 $cpureg, $cp15reg
mrc p15,0,$cpureg,$cp15reg,c0,0
MEND
; End of stuff stolen from armtrap.s
; **************************************************************************
END
| 15.095238 | 99 | 0.390379 |
800a7020cae6065e45b455f61fc0a29ada5bffca | 417 | asm | Assembly | Working Disassembly/General/Title/Map - ANDKnuckles Subtitle.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | 5 | 2021-07-09T08:17:56.000Z | 2022-02-27T19:57:47.000Z | Working Disassembly/General/Title/Map - ANDKnuckles Subtitle.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | Working Disassembly/General/Title/Map - ANDKnuckles Subtitle.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | Map_60938: dc.w word_6093E-Map_60938
dc.w word_6094C-Map_60938
dc.w word_60966-Map_60938
word_6093E: dc.w 2
dc.b $FC, $C, 0, 0, $FF, $E0
dc.b $FC, $C, 0, 4, 0, 0
word_6094C: dc.w 4
dc.b $F8, $D, 0, 8, $FF, $C8
dc.b $F8, $D, 0, $10, $FF, $E8
dc.b $F8, $D, 0, $18, 0, 8
dc.b $F8, 5, 0, $20, 0, $28
word_60966: dc.w 1
dc.b $FC, 4, 0, $24, $FF, $F8
| 29.785714 | 37 | 0.479616 |
965163b4cfe49ad86b315c2f7eb540282db01d37 | 278 | asm | Assembly | programs/oeis/168/A168094.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/168/A168094.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/168/A168094.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A168094: a(n) = number of natural numbers m such that n - 4 <= m <= n + 4.
; 4,5,6,7,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9
min $0,5
add $0,4
| 46.333333 | 181 | 0.521583 |
0cb20de0fb21d0583678e98ff42929888ef5cacf | 376 | asm | Assembly | oeis/052/A052629.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/052/A052629.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/052/A052629.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A052629: E.g.f. (1-x)/(1-5x+3x^2).
; Submitted by Jon Maiga
; 1,4,34,438,7536,162120,4185360,126060480,4339278720,168038478720,7230318681600,342214829510400,17669683572710400,988372892015308800,59538455210371737600,3842709218808235776000,264549049753191211008000
mov $2,1
mov $3,$0
lpb $3
mul $1,$3
mul $2,$3
add $1,$2
mul $2,3
add $2,$1
sub $3,1
lpe
mov $0,$2
| 23.5 | 202 | 0.726064 |
72ccfe3b51f75726de568a98bb7759de077464fa | 100 | asm | Assembly | DHP-Mars45/TestFiles/output/swap.asm | sollybr/college-projects-2020 | 1e74f7a4ca276e9095544d7b91102554ef8b47ea | [
"Unlicense"
] | null | null | null | DHP-Mars45/TestFiles/output/swap.asm | sollybr/college-projects-2020 | 1e74f7a4ca276e9095544d7b91102554ef8b47ea | [
"Unlicense"
] | null | null | null | DHP-Mars45/TestFiles/output/swap.asm | sollybr/college-projects-2020 | 1e74f7a4ca276e9095544d7b91102554ef8b47ea | [
"Unlicense"
] | null | null | null | sll $t1,$a1,2
add $t1,$a0,$t1
lw $t0,0x0($t1)
lw $t2,0x4($t1)
sw $t2,0x0($t1)
sw $t0,0x4($t1)
| 14.285714 | 16 | 0.53 |
5a3ddb2444a57c067cfe22981bcb4237e8aec465 | 415 | asm | Assembly | oeis/152/A152035.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/152/A152035.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/152/A152035.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A152035: G.f.: (1-2*x^2)/(1-2*x-2*x^2).
; Submitted by Jon Maiga
; 1,2,4,12,32,88,240,656,1792,4896,13376,36544,99840,272768,745216,2035968,5562368,15196672,41518080,113429504,309895168,846649344,2313089024,6319476736,17265131520,47169216512,128868696064,352075825152,961889042432,2627929735168,7179637555200,19615134580736
mov $2,1
lpb $0
sub $0,1
add $2,$4
mul $2,2
mov $4,$3
mov $3,$2
lpe
mov $0,$2
| 29.642857 | 258 | 0.73494 |
3e324d5a840a101393550ba04111ba7a0483d4ae | 181 | asm | Assembly | libsrc/balloc/ba_BlockCount.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | 8 | 2017-01-18T12:02:17.000Z | 2021-06-12T09:40:28.000Z | libsrc/balloc/ba_BlockCount.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | 1 | 2017-03-06T07:41:56.000Z | 2017-03-06T07:41:56.000Z | libsrc/balloc/ba_BlockCount.asm | RC2014Z80/z88dk | e5b9447b970e5fae26544b6d8aa5957c98ba0e6a | [
"ClArtistic"
] | 3 | 2017-03-07T03:19:40.000Z | 2021-09-15T17:59:19.000Z | ; 05.2005 aralbrec
SECTION code_clib
PUBLIC ba_BlockCount
PUBLIC _ba_BlockCount
EXTERN BABlockCount
.ba_BlockCount
._ba_BlockCount
call BABlockCount
ld l,c
ld h,b
ret
| 12.928571 | 21 | 0.779006 |
a7c3e803fe04d33a1a0457917f8850529d0fc9a6 | 120 | asm | Assembly | 03-Transport-Squad.spped.size.asm | blueset/7bh-solutions | 988afddf87411bec06ec9e90179b55fb55345a5d | [
"MIT"
] | null | null | null | 03-Transport-Squad.spped.size.asm | blueset/7bh-solutions | 988afddf87411bec06ec9e90179b55fb55345a5d | [
"MIT"
] | null | null | null | 03-Transport-Squad.spped.size.asm | blueset/7bh-solutions | 988afddf87411bec06ec9e90179b55fb55345a5d | [
"MIT"
] | null | null | null | -- 7 Billion Humans --
-- 03: Transport Squad --
-- Size: 5/5 --
-- Speed: 2/3 --
step s
pickup c
step s
step s
drop
| 9.230769 | 25 | 0.575 |
847f5ccb84460197cc6b3ca8ab9ee16647beda38 | 1,003 | asm | Assembly | Working Disassembly/Levels/SSZ/Misc Object Data/Map - Floating Platform.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | 5 | 2021-07-09T08:17:56.000Z | 2022-02-27T19:57:47.000Z | Working Disassembly/Levels/SSZ/Misc Object Data/Map - Floating Platform.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | Working Disassembly/Levels/SSZ/Misc Object Data/Map - Floating Platform.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | dc.w word_4690E-Map_SSZFloatingPlatform
dc.w word_46910-Map_SSZFloatingPlatform
dc.w word_4691E-Map_SSZFloatingPlatform
dc.w word_46938-Map_SSZFloatingPlatform
dc.w word_46940-Map_SSZFloatingPlatform
dc.w word_46948-Map_SSZFloatingPlatform
dc.w word_46950-Map_SSZFloatingPlatform
word_4690E: dc.w 0 ; DATA XREF: ROM:00046900o
word_46910: dc.w 2 ; DATA XREF: ROM:00046900o
dc.b $F0, $F, 0, 0, $FF, $E0
dc.b $F0, $F, 8, 0, 0, 0
word_4691E: dc.w 4 ; DATA XREF: ROM:00046900o
dc.b $E0, $D, 0, 0, $FF, $F0
dc.b $F0, $D, 0, 0, $FF, $F0
dc.b 0, $D, 0, 0, $FF, $F0
dc.b $10, $D, 0, 8, $FF, $F0
word_46938: dc.w 1 ; DATA XREF: ROM:00046900o
dc.b $F8, 5, 0, 0, $FF, $F8
word_46940: dc.w 1 ; DATA XREF: ROM:00046900o
dc.b $F8, 5, 0, 4, $FF, $F8
word_46948: dc.w 1 ; DATA XREF: ROM:00046900o
dc.b $F8, 5, 0, 8, $FF, $F8
word_46950: dc.w 1 ; DATA XREF: ROM:00046900o
dc.b $F8, 5, 0, $C, $FF, $F8
| 40.12 | 48 | 0.605184 |
1f284cbcdec6e2fa9d9a89f05c3b100d67e342e8 | 553 | asm | Assembly | programs/oeis/083/A083877.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/083/A083877.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/083/A083877.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A083877: Absolute value of determinant of n X n matrix where the element a(i,j) = if i + j > n then 2*(i + j -n) - 1, else 2*(n + 1 - i - j).
; 1,5,25,101,385,1397,4921,16949,57409,191909,634777,2081477,6775873,21921941,70548793,225995285,721032577,2292237893,7264134169,22954663973,72350776321,227512682165,713919106105,2235900497141,6990131027905,21817681693157,67994910907801,211610330208389,657707783080129,2041753726605269,6331152311910457
mov $1,$0
mul $1,2
lpb $0
sub $0,1
add $1,1
mov $2,$1
mul $2,2
add $1,$2
lpe
div $1,2
add $1,1
| 36.866667 | 302 | 0.735986 |
1f346e81254e16f12d80064a77e08e2b325a245d | 633 | asm | Assembly | oeis/217/A217239.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/217/A217239.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/217/A217239.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A217239: n!*(!n-1) = n!*(Sum k!, k=1..n-1)
; Submitted by Jon Maiga
; 0,0,2,18,216,3960,110160,4399920,238412160,16777031040,1484589254400,161180565638400,21054377854540800,3256459838542310400,588451470350449305600,122827588903536701184000,29325437466043778002944000,7940505760778460119298048000,2420172940793861345481252864000,824800678163231745224333500416000,312446622632761019175358754488320000,130860634884476462796448809325854720000,60305190151303560585441893077668003840000,30444705002505591565848693292670959288320000
sub $0,1
mov $1,1
mov $2,1
lpb $0
sub $0,1
add $2,1
add $3,$1
mul $1,$2
lpe
mul $1,$3
mov $0,$1
| 39.5625 | 457 | 0.824645 |
3937d0c98f8b5db2344f84a11f593e21e1314b66 | 1,603 | asm | Assembly | programs/oeis/120/A120743.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/120/A120743.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/120/A120743.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A120743: a(n) = (1/2)*(1 + 3*i)^n + (1/2)*(1 - 3*i)^n where i = sqrt(-1).
; 1,-8,-26,28,316,352,-2456,-8432,7696,99712,122464,-752192,-2729024,2063872,31417984,42197248,-229785344,-881543168,534767104,9884965888,14422260736,-70005137408,-284232882176,131585609728,3105500041216,4895143985152,-21264712441856,-91480864735232,29685394948096,974179437248512,1651504925016064,-6438784522452992,-29392618295066624,5602608634396672,305131400219459584,554236714094952448,-1942840574004690944,-9428048288958906368,572309162129096704,95425101213847257088,185127110806403547136,-583996790525665476608,-3019264689115366424576,-198561472974078083072,29795523945205508079616,61576662620151796989952,-174801914211751486816256,-965370454625020943532032,-182721767132527018901504,9288261011985155397517312,20403739695295580984049664,-52075130729260392007073792,-308187658411476593854644224,-95624009530349267638550528,2890628565054067403269341184,6737497225411627482924187648,-15431291199717419066845036544,-98237554653551112962931949568,-42162197309928035257413533696,898051151915655059114492428288,2217724276930590470803120193536,-4545062965295369649538683895808,-31267368699896644007108569726976,-17084107746839591518830300495872,278505471505287257033425096278016,727852020478970429255153197514752,-1329350674094931711823944567750656,-9937221552979567716199421110648832,-6580936365009818314159396543791104,86210342799776040533675418018906112,238230049249650264208944801475723264,-385643329498459876918864577237614592
mov $1,1
mov $2,2
lpb $0
sub $0,1
mul $1,2
mul $2,5
sub $1,$2
add $2,$1
lpe
mov $0,$1
| 114.5 | 1,429 | 0.873362 |
6c7bab0431565f70cb1e5ffe0a9381d85a6cb01e | 4,380 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_1_1002.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_1_1002.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48_notsx.log_1_1002.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x63ee, %rsi
lea addresses_WT_ht+0x8eee, %rdi
nop
nop
nop
xor %r8, %r8
mov $31, %rcx
rep movsq
nop
nop
nop
nop
nop
and %r10, %r10
lea addresses_D_ht+0x1896e, %r10
nop
nop
sub $761, %r11
mov (%r10), %cx
nop
nop
nop
xor %rsi, %rsi
lea addresses_normal_ht+0x1540e, %rsi
lea addresses_normal_ht+0x402e, %rdi
nop
sub $1929, %r13
mov $31, %rcx
rep movsb
nop
nop
nop
nop
sub %r10, %r10
lea addresses_WC_ht+0x19e09, %r10
nop
nop
nop
cmp %rsi, %rsi
mov (%r10), %r11w
xor $32046, %r10
lea addresses_WT_ht+0x808e, %rcx
clflush (%rcx)
sub %r8, %r8
movl $0x61626364, (%rcx)
nop
xor %r11, %r11
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %rax
push %rbp
push %rbx
push %rcx
push %rdx
// Store
lea addresses_PSE+0x140ee, %rax
nop
nop
dec %rbp
movb $0x51, (%rax)
nop
nop
nop
nop
nop
xor %rdx, %rdx
// Store
lea addresses_WC+0x172ee, %rax
nop
nop
nop
nop
nop
and %r10, %r10
mov $0x5152535455565758, %rbx
movq %rbx, %xmm7
movups %xmm7, (%rax)
nop
sub %rbp, %rbp
// Store
mov $0x6fb2e20000000aee, %r10
nop
sub $48404, %r12
movl $0x51525354, (%r10)
nop
nop
xor %rcx, %rcx
// Store
lea addresses_UC+0x1582e, %r10
nop
dec %rbx
movl $0x51525354, (%r10)
inc %rbx
// Store
lea addresses_WC+0x80ee, %rcx
nop
nop
xor $60453, %rdx
movl $0x51525354, (%rcx)
nop
nop
nop
and %rbx, %rbx
// Store
lea addresses_UC+0x160ee, %r12
nop
nop
add %rbx, %rbx
movl $0x51525354, (%r12)
and %rbp, %rbp
// Store
lea addresses_WC+0xa38e, %rbx
nop
nop
nop
nop
sub %r10, %r10
mov $0x5152535455565758, %rbp
movq %rbp, %xmm2
movaps %xmm2, (%rbx)
nop
nop
nop
nop
add $16282, %r12
// Load
lea addresses_WC+0x10cee, %rbx
nop
nop
nop
sub $15321, %r10
mov (%rbx), %cx
nop
nop
nop
nop
nop
xor %rbx, %rbx
// Store
lea addresses_normal+0x1b8ee, %rbx
nop
cmp $58021, %rbp
mov $0x5152535455565758, %r10
movq %r10, (%rbx)
nop
nop
nop
nop
nop
cmp %rcx, %rcx
// Faulty Load
lea addresses_normal+0x1b8ee, %r12
nop
nop
nop
cmp %rcx, %rcx
movb (%r12), %dl
lea oracles, %rbp
and $0xff, %rdx
shlq $12, %rdx
mov (%rbp,%rdx,1), %rdx
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_PSE', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_NC', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC', 'congruent': 10}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_WC', 'congruent': 5}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC', 'congruent': 10}}
{'dst': {'same': True, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 7, 'type': 'addresses_normal_ht'}}
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 4}}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 0}}
{'dst': {'same': True, 'NT': True, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 5}, 'OP': 'STOR'}
{'58': 1}
58
*/
| 19.466667 | 156 | 0.642694 |
450f801a3cf58f2b027c617a3050490bdd734a2f | 373 | asm | Assembly | oeis/097/A097205.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/097/A097205.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/097/A097205.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A097205: Numbers of the form 3^p * p^3 for p prime.
; 72,729,30375,750141,235782657,3502727631,634465620819,7971951402153,1145440056788109,1673826273552131487,18401108148695065077,22808230685096689428039,2513755383310987769681163,26098726706637459430889889,2760530473190044863847909701
seq $0,40 ; The prime numbers.
mov $2,$0
seq $2,62074 ; a(n) = n^3 * 3^n.
mov $0,$2
| 46.625 | 233 | 0.801609 |
621ac89ebc3b2bdf1e44bc2abfcd447f39ab36e2 | 384 | asm | Assembly | programs/oeis/182/A182386.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/182/A182386.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/182/A182386.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A182386: a(0) = 1, a(n) = 1 - n * a(n-1).
; 1,0,1,-2,9,-44,265,-1854,14833,-133496,1334961,-14684570,176214841,-2290792932,32071101049,-481066515734,7697064251745,-130850092279664,2355301661033953,-44750731559645106
mov $1,1
sub $1,$0
sub $0,$0
sub $1,1
sub $0,$1
add $0,1
mov $2,1
mov $4,1
lpb $0
sub $0,1
add $1,1
mov $3,$2
sub $4,2
add $4,$2
mul $1,$4
lpe
add $1,$3
| 18.285714 | 173 | 0.630208 |
399e5fad02153403ecfa0e42327927d33f15651f | 3,183 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_94_494.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_94_494.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xca.log_94_494.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x5811, %r15
nop
nop
nop
nop
nop
sub %r9, %r9
movups (%r15), %xmm5
vpextrq $0, %xmm5, %rsi
nop
nop
nop
cmp %rbx, %rbx
lea addresses_WC_ht+0x1d111, %rbp
nop
xor $45717, %r13
movw $0x6162, (%rbp)
nop
add $32997, %r15
lea addresses_UC_ht+0x5511, %rsi
lea addresses_WT_ht+0x3111, %rdi
nop
and $60621, %r9
mov $4, %rcx
rep movsw
and $50122, %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %rax
push %rbp
push %rbx
push %rdx
push %rsi
// Store
mov $0xab1, %rax
nop
nop
nop
xor %rbx, %rbx
mov $0x5152535455565758, %rbp
movq %rbp, (%rax)
nop
nop
nop
nop
nop
xor $28573, %r13
// Store
lea addresses_D+0x5d61, %rbp
nop
nop
cmp %rsi, %rsi
mov $0x5152535455565758, %r13
movq %r13, %xmm7
movaps %xmm7, (%rbp)
nop
nop
add $19635, %r13
// Store
lea addresses_normal+0x17d17, %r13
nop
nop
and %rax, %rax
movb $0x51, (%r13)
nop
nop
and $51704, %r13
// Store
lea addresses_A+0x5f11, %rdx
nop
nop
add %r10, %r10
movb $0x51, (%rdx)
nop
nop
nop
cmp %rbp, %rbp
// Load
lea addresses_RW+0xcc51, %rsi
nop
and $48166, %rbp
vmovups (%rsi), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %r13
nop
add %rsi, %rsi
// Faulty Load
lea addresses_US+0x1f511, %rbp
nop
nop
add %rax, %rax
mov (%rbp), %esi
lea oracles, %rbx
and $0xff, %rsi
shlq $12, %rsi
mov (%rbx,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rbx
pop %rbp
pop %rax
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': True, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 5}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_US', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 6}}
{'00': 94}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 20.940789 | 281 | 0.641847 |
147004774cdd869743edac5259b2fabac770f82a | 1,413 | asm | Assembly | programs/oeis/078/A078642.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/078/A078642.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/078/A078642.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A078642: Numbers with two representations as the sum of two Fibonacci numbers.
; 4,6,10,16,26,42,68,110,178,288,466,754,1220,1974,3194,5168,8362,13530,21892,35422,57314,92736,150050,242786,392836,635622,1028458,1664080,2692538,4356618,7049156,11405774,18454930,29860704,48315634,78176338,126491972,204668310,331160282,535828592,866988874,1402817466,2269806340,3672623806,5942430146,9615053952,15557484098,25172538050,40730022148,65902560198,106632582346,172535142544,279167724890,451702867434,730870592324,1182573459758,1913444052082,3096017511840,5009461563922,8105479075762,13114940639684,21220419715446,34335360355130,55555780070576,89891140425706,145446920496282,235338060921988,380784981418270,616123042340258,996908023758528,1613031066098786,2609939089857314,4222970155956100,6832909245813414,11055879401769514,17888788647582928,28944668049352442,46833456696935370,75778124746287812,122611581443223182,198389706189510994,321001287632734176,519390993822245170,840392281454979346,1359783275277224516,2200175556732203862,3559958832009428378,5760134388741632240,9320093220751060618,15080227609492692858,24400320830243753476,39480548439736446334,63880869269980199810,103361417709716646144,167242286979696845954,270603704689413492098,437845991669110338052,708449696358523830150,1146295688027634168202,1854745384386157998352
mov $1,4
mov $3,6
lpb $0
sub $0,1
mov $2,$1
mov $1,$3
add $3,$2
lpe
mov $0,$1
| 108.692308 | 1,244 | 0.884643 |
80a85591695f7cd7d8c752d3099bec9e4b0154c2 | 309 | asm | Assembly | programs/oeis/089/A089207.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/089/A089207.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/089/A089207.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A089207: a(n) = 4n^3 + 2n^2.
; 6,40,126,288,550,936,1470,2176,3078,4200,5566,7200,9126,11368,13950,16896,20230,23976,28158,32800,37926,43560,49726,56448,63750,71656,80190,89376,99238,109800,121086,133120,145926,159528,173950,189216
add $0,1
mul $0,2
mov $1,$0
pow $0,3
pow $1,2
add $0,$1
div $0,4
mul $0,2
| 25.75 | 202 | 0.711974 |
4ce7fe2f6a7ad88178252c8419a1a3008ee743d8 | 756 | asm | Assembly | oeis/106/A106515.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/106/A106515.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/106/A106515.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A106515: A Fibonacci-Pell convolution.
; Submitted by Christian Krause
; 1,2,6,15,38,94,231,564,1372,3329,8064,19512,47177,114010,275430,665247,1606534,3879302,9366735,22615356,54601628,131825377,318263328,768369744,1855031473,4478479058,10812064614,26102729679,63017720390,152138488270,367295211159,886729742628,2140756042684,5168244006305,12477247579872,30122744868936,72722746545209,175568252889706,423859276482438,1023286844942751,2470433029613926,5964153006504758,14398739208203583,34761631690826220,83922003023350460,202605638438935873,489133281036125376
mov $5,1
lpb $0
sub $0,1
mov $2,$1
add $1,$3
add $1,1
sub $4,2
sub $3,$4
add $3,$5
mov $4,$2
mov $2,$3
add $5,$4
mov $3,$5
add $4,$1
add $5,$2
lpe
add $3,1
mov $0,$3
| 32.869565 | 489 | 0.775132 |
427e2abcdcb2a5f918879c921acc671cb935b29a | 724 | asm | Assembly | programs/oeis/081/A081118.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/081/A081118.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/081/A081118.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A081118: Triangle of first n numbers per row having exactly n 1's in binary representation.
; 1,3,5,7,11,13,15,23,27,29,31,47,55,59,61,63,95,111,119,123,125,127,191,223,239,247,251,253,255,383,447,479,495,503,507,509,511,767,895,959,991,1007,1015,1019,1021,1023,1535,1791,1919,1983,2015,2031,2039,2043,2045,2047,3071,3583,3839,3967,4031,4063,4079,4087,4091,4093,4095,6143,7167,7679,7935,8063,8127,8159,8175,8183,8187,8189,8191,12287,14335,15359,15871,16127,16255,16319,16351,16367,16375,16379,16381,16383,24575,28671,30719,31743,32255,32511,32639,32703
lpb $0
mov $2,$0
sub $0,1
seq $2,57728 ; A triangular table of decreasing powers of two (with first column all ones).
add $1,$2
lpe
mul $1,2
add $1,1
mov $0,$1
| 55.692308 | 460 | 0.745856 |
7e9364069a861f77816b9f7639712cb133563e23 | 98,351 | asm | Assembly | projects/Kirbys_Dream_Land_2.windfish/disassembly/bank_04.asm | jverkoey/awaken | 743755248996deb7181ae92f6e60be5656439c44 | [
"Apache-2.0"
] | 68 | 2020-12-16T10:06:48.000Z | 2022-03-29T19:54:01.000Z | projects/Kirbys_Dream_Land_2.windfish/disassembly/bank_04.asm | jverkoey/awaken | 743755248996deb7181ae92f6e60be5656439c44 | [
"Apache-2.0"
] | 62 | 2020-12-19T04:28:41.000Z | 2021-02-15T22:18:16.000Z | projects/Kirbys_Dream_Land_2.windfish/disassembly/bank_04.asm | jverkoey/awaken | 743755248996deb7181ae92f6e60be5656439c44 | [
"Apache-2.0"
] | 4 | 2021-01-17T03:51:22.000Z | 2021-01-21T16:26:53.000Z | SECTION "ROM Bank 04", ROMX[$4000], BANK[$04]
db $05, $02, $9B, $4D, $03, $33, $4E, $03
db $00, $00, $00, $2A, $4F, $03, $FF, $32
db $00, $00, $00, $33, $4E, $03, $00, $00
db $00, $33, $4E, $03, $60, $00, $00, $FF
db $00, $10, $80, $01, $60, $00, $80, $FE
db $0A, $20, $80, $01, $00, $00, $00, $FF
db $00, $10, $80, $01, $60, $00, $00, $FF
db $00, $10, $80, $01, $60, $00, $80, $FE
db $0A, $20, $80, $01, $00, $00, $00, $FF
db $00, $10, $80, $01, $30, $70, $D0, $60
db $30, $70, $D0, $60, $F0, $04, $08, $08
db $F0, $04, $08, $08, $00, $04, $08, $08
db $F0, $04, $08, $08, $F0, $04, $08, $08
db $00, $04, $08, $08, $06, $14, $08, $02
db $06, $14, $08, $02, $10, $80, $01, $10
db $80, $01, $FA, $00, $06, $00, $00, $FC
db $00, $04, $FC, $FD, $FC, $03, $04, $FD
db $04, $03, $00, $00, $00, $FD, $25, $01
db $3B, $FD, $1F, $02, $E1, $FD, $C5, $02
db $DB, $FE, $00, $03, $00, $00, $C5, $02
db $25, $01, $1F, $02, $1F, $02, $25, $01
db $C5, $02, $00, $00, $00, $03, $DB, $FE
db $C5, $02, $E1, $FD, $1F, $02, $3B, $FD
db $25, $01, $00, $FD, $00, $00, $3B, $FD
db $DB, $FE, $E1, $FD, $E1, $FD, $DB, $FE
db $3B, $FD, $17, $FF, $0D, $0F, $62, $05
db $27, $0D, $80, $1F, $11, $9D, $41, $01
db $01, $0F, $27, $00, $06, $EC, $40, $27
db $0D, $C9, $43, $4C, $40, $0D, $1E, $44
db $14, $03, $FA, $40, $0D, $8E, $43, $1C
db $40, $01, $00, $03, $68, $42, $44, $24
db $0D, $00, $18, $0F, $40, $00, $03, $42
db $43, $44, $10, $5C, $12, $25, $41, $19
db $00, $0C, $19, $01, $08, $19, $02, $08
db $19, $01, $08, $19, $00, $0C, $19, $01
db $08, $19, $02, $08, $19, $01, $08, $19
db $03, $08, $06, $40, $41, $19, $00, $0C
db $19, $01, $08, $19, $02, $08, $19, $01
db $08, $19, $00, $0C, $19, $01, $08, $19
db $02, $08, $19, $01, $08, $19, $03, $08
db $22, $89, $41, $04, $01, $04, $12, $69
db $41, $09, $14, $0D, $50, $0F, $10, $A8
db $B2, $05, $06, $0A, $19, $03, $08, $19
db $01, $08, $19, $00, $08, $19, $01, $08
db $19, $02, $10, $19, $01, $08, $06, $DF
db $40, $09, $14, $0D, $50, $0F, $10, $A8
db $B2, $05, $06, $0A, $19, $03, $08, $19
db $01, $08, $19, $00, $08, $19, $01, $08
db $19, $02, $10, $19, $01, $08, $06, $DF
db $40, $0F, $3B, $1E, $0F, $47, $10, $05
db $02, $0F, $47, $00, $05, $02, $0D, $A5
db $44, $12, $8C, $41, $00, $03, $EC, $42
db $44, $0D, $42, $20, $74, $40, $01, $00
db $00, $08, $00, $00, $2A, $00, $24, $0E
db $03, $0D, $43, $44, $10, $5C, $12, $C5
db $41, $19, $01, $04, $19, $02, $08, $19
db $01, $08, $06, $CE, $41, $19, $01, $04
db $19, $02, $08, $19, $01, $08, $28, $1A
db $3F, $0D, $F4, $23, $DC, $41, $11, $D9
db $40, $06, $FA, $40, $40, $60, $08, $00
db $00, $2A, $00, $24, $0E, $03, $0D, $43
db $44, $10, $5C, $12, $FA, $41, $19, $01
db $04, $19, $02, $08, $19, $01, $08, $06
db $DF, $40, $19, $01, $04, $19, $02, $08
db $19, $01, $08, $06, $DF, $40, $08, $00
db $00, $0D, $E7, $43, $54, $40, $03, $9A
db $42, $44, $24, $0E, $10, $5C, $12, $23
db $42, $19, $01, $04, $19, $02, $08, $19
db $01, $08, $00, $19, $01, $04, $19, $02
db $08, $19, $01, $08, $00, $03, $13, $43
db $44, $0D, $42, $20, $74, $40, $01, $00
db $00, $17, $FF, $0D, $04, $6A, $6F, $0C
db $0F, $4C, $01, $0D, $F9, $1F, $0F, $61
db $00, $0D, $0F, $20, $02, $02, $08, $0D
db $52, $44, $03, $85, $43, $44, $24, $39
db $05, $01, $19, $05, $02, $0F, $47, $10
db $05, $02, $0F, $47, $00, $05, $02, $16
db $1E, $26, $1A, $B7, $28, $04, $3D, $12
db $18, $03, $CD, $EB, $21, $CD, $A4, $0D
db $01, $00, $40, $CD, $5B, $25, $D8, $CD
db $85, $23, $CD, $75, $23, $CD, $25, $1A
db $CB, $7F, $20, $06, $CB, $6F, $C8, $C3
db $F9, $1E, $1E, $04, $01, $06, $42, $C3
db $46, $08, $1E, $3F, $1A, $FE, $01, $20
db $03, $CD, $E6, $1E, $CD, $A4, $0D, $01
db $00, $40, $CD, $5B, $25, $D8, $CD, $85
db $23, $CD, $75, $23, $CD, $CB, $19, $B7
db $20, $08, $1E, $04, $01, $2D, $42, $C3
db $46, $08, $CB, $6F, $28, $09, $CD, $F9
db $1E, $1E, $11, $1A, $2F, $3C, $12, $2E
db $26, $62, $35, $C0, $1E, $3F, $1A, $FE
db $02, $28, $09, $3C, $12, $1E, $3C, $83
db $5F, $1A, $77, $C9, $1E, $04, $01, $DF
db $40, $C3, $46, $08, $CD, $EB, $21, $CD
db $A4, $0D, $01, $00, $40, $CD, $5B, $25
db $D8, $CD, $85, $23, $CD, $75, $23, $CD
db $25, $1A, $CB, $7F, $C8, $1E, $04, $01
db $A9, $41, $C3, $46, $08, $01, $00, $40
db $C3, $5B, $25, $CD, $EB, $21, $CD, $A4
db $0D, $01, $00, $40, $CD, $5B, $25, $D8
db $CD, $85, $23, $CD, $75, $23, $CD, $25
db $1A, $CB, $7F, $28, $08, $1E, $04, $01
db $DE, $41, $C3, $46, $08, $CB, $6F, $C8
db $CD, $F9, $1E, $1E, $11, $1A, $2F, $3C
db $12, $C9, $01, $00, $40, $CD, $5B, $25
db $D8, $CD, $CB, $19, $B7, $C0, $21, $74
db $40, $CD, $48, $20, $62, $2E, $1F, $36
db $44, $2C, $36, $43, $2C, $36, $60, $C9
db $CD, $EB, $21, $CD, $A4, $0D, $01, $00
db $40, $CD, $5B, $25, $D8, $CD, $85, $23
db $CD, $75, $23, $CD, $25, $1A, $CB, $7F
db $C8, $62, $2E, $1F, $36, $44, $2C, $36
db $43, $2C, $36, $42, $C9, $CD, $A4, $0D
db $01, $0E, $40, $C3, $5B, $25, $0A, $6F
db $03, $0A, $67, $03, $C5, $1E, $27, $1A
db $CB, $37, $0F, $47, $1E, $5C, $1A, $B7
db $28, $02, $3E, $18, $80, $85, $6F, $30
db $01, $24, $CD, $F9, $20, $1E, $0F, $2A
db $12, $1C, $2A, $12, $1E, $26, $2A, $12
db $1E, $12, $2A, $12, $1E, $39, $2A, $12
db $1C, $7E, $12, $AF, $1E, $11, $12, $C1
db $C9, $0A, $6F, $03, $0A, $67, $03, $1E
db $5C, $1A, $07, $07, $85, $6F, $30, $01
db $24, $1E, $3D, $2A, $12, $1C, $2A, $12
db $1C, $2A, $12, $1C, $7E, $12, $C9, $0A
db $6F, $03, $0A, $67, $03, $C5, $1E, $27
db $1A, $07, $07, $47, $1E, $5C, $1A, $B7
db $28, $02, $3E, $0C, $80, $85, $6F, $30
db $01, $24, $1E, $45, $1A, $07, $2A, $30
db $02, $2F, $3C, $1E, $11, $12, $1E, $26
db $2A, $12, $1E, $3D, $2A, $12, $1C, $7E
db $12, $AF, $1C, $12, $C1, $C9, $C5, $1E
db $3D, $1A, $47, $1E, $04, $CD, $9C, $1F
db $30, $0D, $CD, $47, $06, $62, $2E, $40
db $BE, $30, $04, $3E, $03, $18, $16, $CD
db $47, $06, $62, $2E, $3E, $BE, $30, $03
db $AF, $18, $0A, $23, $BE, $30, $04, $3E
db $01, $18, $02, $3E, $02, $1E, $27, $12
db $C1, $C9, $C5, $CD, $47, $06, $E6, $E0
db $CB, $37, $21, $7A, $40, $85, $6F, $30
db $01, $24, $2A, $4F, $17, $9F, $47, $1E
db $04, $1A, $81, $12, $1C, $1A, $88, $12
db $7E, $4F, $17, $9F, $47, $1E, $07, $1A
db $81, $12, $1C, $1A, $88, $12, $CD, $47
db $06, $E6, $07, $C6, $04, $62, $2E, $40
db $86, $E6, $0F, $77, $07, $07, $21, $8A
db $40, $85, $6F, $30, $01, $24, $1E, $0D
db $2A, $12, $1C, $2A, $12, $1C, $2A, $12
db $1C, $7E, $12, $C1, $C9, $1E, $3B, $1A
db $3D, $12, $1E, $27, $12, $C9, $FF, $02
db $9B, $4D, $03, $33, $4E, $03, $00, $00
db $00, $2A, $4F, $03, $FF, $02, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $51, $45, $5E, $45, $A4, $4D
db $B1, $4D, $6F, $55, $7F, $55, $B2, $5B
db $BC, $5B, $F7, $61, $FD, $61, $5D, $6C
db $63, $6C, $12, $74, $19, $74, $40, $40
db $80, $FE, $18, $80, $01, $40, $00, $00
db $80, $FE, $18, $80, $01, $60, $00, $00
db $80, $FE, $18, $80, $01, $C0, $FF, $00
db $80, $FE, $18, $80, $01, $A0, $FF, $00
db $00, $FE, $40, $00, $02, $00, $00, $00
db $00, $FE, $40, $00, $02, $00, $00, $00
db $18, $08, $18, $08, $08, $04, $10, $00
db $02, $2C, $10, $FF, $02, $00, $00, $00
db $09, $7D, $04, $00, $00, $00, $09, $7D
db $04, $FF, $12, $00, $00, $00, $09, $7D
db $04, $00, $00, $00, $09, $7D, $04, $00
db $02, $9B, $4D, $03, $33, $4E, $03, $00
db $00, $00, $2A, $4F, $03, $F9, $06, $F9
db $06, $00, $01, $02, $80, $00, $02, $80
db $01, $02, $00, $00, $FF, $0D, $00, $01
db $02, $C0, $00, $02, $C0, $01, $02, $00
db $00, $FF, $0D, $00, $80, $40, $80, $80
db $FD, $10, $00, $00, $00, $00, $00, $80
db $FD, $10, $00, $00, $00, $00, $00, $00
db $FF, $20, $00, $02, $80, $FF, $00, $00
db $FF, $20, $00, $02, $80, $FF, $00, $00
db $FE, $20, $00, $02, $00, $00, $00, $00
db $FE, $20, $00, $02, $00, $00, $00, $00
db $00, $F0, $00, $00, $A0, $01, $00, $00
db $00, $E0, $00, $00, $00, $02, $00, $80
db $FE, $18, $80, $01, $80, $FF, $00, $80
db $FE, $18, $80, $01, $40, $FF, $00, $00
db $FF, $10, $00, $01, $40, $00, $00, $00
db $FF, $10, $00, $01, $40, $00, $00, $20
db $00, $02, $20, $00, $02, $F4, $FA, $FA
db $F4, $F6, $FC, $F6, $04, $F6, $FC, $F6
db $04, $00, $FE, $40, $00, $FE, $40, $80
db $FE, $10, $80, $01, $F0, $80, $01, $F0
db $80, $FE, $10, $80, $FE, $10, $80, $FE
db $10, $27, $0D, $69, $4C, $0D, $8A, $4C
db $E8, $44, $0E, $03, $0B, $46, $22, $46
db $A9, $7C, $16, $03, $60, $49, $44, $0F
db $40, $00, $01, $00, $1F, $45, $22, $18
db $45, $03, $6F, $49, $44, $01, $01, $24
db $0D, $00, $03, $60, $49, $44, $0F, $40
db $01, $01, $00, $1F, $45, $22, $1A, $45
db $03, $6F, $49, $44, $01, $03, $24, $0D
db $00, $0D, $46, $4D, $03, $60, $49, $44
db $28, $1A, $3F, $0D, $F4, $23, $6B, $45
db $11, $53, $47, $10, $5C, $12, $56, $46
db $19, $02, $18, $06, $59, $46, $19, $02
db $0C, $01, $01, $0F, $27, $00, $0D, $8A
db $4C, $6F, $45, $03, $D0, $49, $44, $24
db $0D, $00, $28, $1A, $3F, $0D, $F4, $23
db $6D, $45, $11, $C7, $46, $03, $60, $49
db $44, $10, $5C, $12, $8A, $46, $19, $02
db $10, $08, $20, $01, $26, $20, $01, $06
db $93, $46, $19, $02, $08, $08, $20, $01
db $26, $20, $01, $03, $03, $4A, $44, $24
db $3E, $0D, $E6, $22, $27, $1E, $0D, $E6
db $22, $27, $00, $19, $06, $02, $0D, $E6
db $22, $27, $00, $19, $07, $02, $06, $9E
db $46, $0D, $77, $0F, $0E, $01, $03, $0F
db $27, $01, $0D, $8A, $4C, $6F, $45, $0F
db $40, $02, $03, $6F, $49, $44, $00, $0D
db $1D, $20, $11, $E0, $46, $03, $3E, $4A
db $44, $01, $03, $10, $5C, $12, $DC, $46
db $08, $60, $00, $00, $08, $A0, $00, $00
db $03, $60, $49, $44, $08, $00, $00, $10
db $5C, $12, $F5, $46, $19, $02, $10, $26
db $80, $01, $06, $FB, $46, $19, $02, $08
db $26, $00, $02, $03, $68, $4A, $44, $24
db $3E, $0D, $E6, $22, $27, $1E, $09, $02
db $0D, $E6, $22, $27, $02, $19, $08, $02
db $0D, $E6, $22, $27, $02, $19, $09, $02
db $0A, $0D, $E6, $22, $27, $21, $06, $06
db $47, $0D, $77, $0F, $0E, $0F, $27, $04
db $0D, $8A, $4C, $6F, $45, $03, $90, $4A
db $44, $19, $03, $0C, $19, $01, $08, $01
db $05, $00, $0D, $77, $0F, $0E, $0F, $27
db $05, $0D, $8A, $4C, $6F, $45, $03, $6F
db $49, $44, $0F, $40, $02, $19, $01, $10
db $01, $03, $00, $03, $60, $49, $44, $10
db $5C, $12, $62, $47, $19, $02, $18, $06
db $65, $47, $19, $02, $0C, $0F, $27, $02
db $0D, $8A, $4C, $6F, $45, $01, $01, $0F
db $26, $0C, $03, $BB, $4A, $44, $24, $0D
db $00, $03, $60, $49, $44, $08, $00, $00
db $10, $5C, $12, $8E, $47, $19, $02, $20
db $0F, $26, $28, $06, $94, $47, $19, $02
db $10, $0F, $26, $20, $0F, $27, $03, $0D
db $8A, $4C, $6F, $45, $03, $0A, $4B, $44
db $05, $08, $03, $32, $4B, $44, $24, $3E
db $0D, $E6, $22, $27, $1E, $09, $02, $0D
db $E6, $22, $27, $03, $19, $08, $02, $0D
db $E6, $22, $27, $03, $19, $09, $02, $0A
db $0D, $E6, $22, $27, $21, $06, $AD, $47
db $07, $00, $00, $08, $00, $00, $03, $60
db $49, $44, $10, $5C, $12, $DD, $47, $19
db $03, $18, $06, $75, $46, $19, $03, $18
db $06, $75, $46, $28, $1A, $3F, $0D, $F4
db $23, $E6, $44, $12, $F6, $47, $10, $5B
db $0E, $02, $F9, $45, $54, $4E, $27, $0F
db $3F, $02, $03, $E3, $7D, $44, $0F, $27
db $02, $0D, $8A, $4C, $E8, $44, $01, $02
db $1F, $45, $22, $1C, $45, $01, $03, $03
db $7E, $4B, $44, $24, $0D, $00, $27, $10
db $5B, $0E, $02, $F9, $45, $54, $4E, $06
db $7E, $7C, $01, $03, $0C, $09, $06, $19
db $03, $02, $19, $04, $02, $0A, $01, $03
db $0C, $04, $53, $72, $0C, $01, $05, $0C
db $0D, $EB, $4C, $D5, $45, $06, $CD, $48
db $08, $00, $FF, $0D, $D1, $1F, $08, $00
db $26, $80, $00, $08, $00, $FF, $2A, $10
db $03, $C7, $4B, $44, $04, $52, $6F, $0B
db $0F, $46, $00, $09, $04, $19, $08, $02
db $19, $09, $02, $19, $0A, $02, $19, $07
db $02, $0A, $24, $41, $26, $40, $00, $08
db $80, $FF, $2A, $08, $09, $04, $19, $08
db $02, $19, $09, $02, $19, $0A, $02, $19
db $07, $02, $0A, $24, $41, $22, $3B, $5F
db $1D, $03, $48, $4C, $44, $01, $08, $1F
db $45, $22, $21, $45, $16, $0D, $EB, $4C
db $D9, $45, $06, $CD, $48, $0D, $EB, $4C
db $DD, $45, $06, $CD, $48, $0D, $D1, $1F
db $F8, $00, $08, $00, $01, $0D, $16, $52
db $26, $80, $00, $0D, $5F, $20, $BF, $48
db $03, $EE, $4B, $44, $06, $EA, $48, $10
db $80, $01, $08, $00, $FF, $0D, $D1, $1F
db $08, $00, $06, $AD, $48, $03, $57, $49
db $44, $04, $52, $6F, $0B, $0F, $46, $00
db $19, $05, $02, $19, $04, $01, $0F, $47
db $10, $05, $01, $16, $17, $FF, $0D, $06
db $D1, $48, $04, $52, $6F, $0B, $0F, $46
db $00, $19, $08, $02, $19, $09, $02, $19
db $0A, $02, $19, $07, $02, $06, $F1, $48
db $24, $41, $08, $80, $FF, $2A, $08, $26
db $40, $00, $03, $1B, $4C, $44, $19, $08
db $02, $19, $09, $02, $19, $0A, $02, $19
db $07, $02, $06, $0E, $49, $24, $41, $22
db $3B, $5F, $1D, $03, $48, $4C, $44, $01
db $08, $1F, $45, $22, $21, $45, $16, $1B
db $00, $40, $03, $04, $83, $77, $0B, $0F
db $46, $00, $22, $3B, $5F, $1D, $19, $00
db $02, $19, $01, $02, $19, $02, $02, $19
db $03, $02, $19, $04, $02, $19, $05, $02
db $19, $06, $02, $19, $07, $02, $16, $CD
db $E6, $1E, $CD, $D3, $1E, $C3, $A4, $0D
db $01, $23, $45, $CD, $3C, $23, $D0, $1E
db $04, $01, $D9, $7C, $C3, $46, $08, $CD
db $E3, $7D, $D8, $CD, $EB, $21, $CD, $A4
db $0D, $1E, $5B, $1A, $07, $21, $CC, $49
db $85, $6F, $30, $01, $24, $2A, $46, $4F
db $CD, $CD, $24, $CB, $7F, $20, $14, $CB
db $6F, $20, $09, $CB, $77, $C8, $AF, $1E
db $0F, $12, $1C, $12, $AF, $1E, $0D, $12
db $1C, $12, $C9, $1E, $0E, $21, $99, $42
db $3E, $1E, $CD, $CF, $05, $F0, $9A, $57
db $1E, $40, $1A, $FE, $01, $28, $0A, $38
db $0B, $1E, $04, $01, $E3, $47, $C3, $46
db $08, $CD, $C0, $1E, $1E, $04, $01, $7E
db $7C, $C3, $46, $08, $4D, $45, $92, $4D
db $01, $23, $45, $CD, $3C, $23, $38, $23
db $1E, $0F, $1A, $4F, $1C, $1A, $B1, $28
db $12, $CD, $D3, $1E, $CD, $A4, $0D, $CD
db $25, $1A, $CB, $77, $C8, $AF, $1E, $0F
db $12, $1C, $12, $1E, $04, $01, $6A, $46
db $C3, $46, $08, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $01, $31, $45, $CD, $3C
db $23, $38, $2B, $CD, $A4, $0D, $CD, $25
db $1A, $CB, $7F, $28, $0F, $1E, $27, $3E
db $01, $CD, $19, $23, $1E, $04, $01, $B1
db $46, $C3, $46, $08, $CB, $6F, $C8, $1E
db $27, $3E, $05, $CD, $19, $23, $1E, $04
db $01, $B1, $46, $C3, $46, $08, $1E, $04
db $01, $D9, $7C, $C3, $46, $08, $01, $23
db $45, $CD, $3C, $23, $38, $1A, $CD, $A4
db $0D, $06, $04, $1E, $07, $CD, $9C, $1F
db $38, $06, $CD, $25, $1A, $CB, $7F, $C8
db $1E, $04, $01, $E0, $46, $C3, $46, $08
db $1E, $04, $01, $D9, $7C, $C3, $46, $08
db $01, $31, $45, $CD, $3C, $23, $38, $18
db $CD, $A4, $0D, $CD, $25, $1A, $CB, $6F
db $C8, $1E, $27, $3E, $06, $CD, $19, $23
db $1E, $04, $01, $21, $47, $C3, $46, $08
db $1E, $04, $01, $D9, $7C, $C3, $46, $08
db $01, $23, $45, $CD, $3C, $23, $38, $1B
db $CD, $EB, $21, $CD, $A4, $0D, $CD, $25
db $1A, $CB, $7F, $C8, $1E, $27, $3E, $05
db $CD, $19, $23, $1E, $04, $01, $3A, $47
db $C3, $46, $08, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $01, $23, $45, $CD, $3C
db $23, $38, $3F, $1E, $0F, $1A, $4F, $1C
db $1A, $B1, $20, $0A, $1E, $26, $1A, $B7
db $28, $04, $3D, $12, $18, $06, $CD, $D3
db $1E, $CD, $A4, $0D, $CD, $25, $1A, $CB
db $77, $28, $07, $AF, $1E, $0F, $12, $1C
db $12, $C9, $CB, $7F, $C8, $1E, $0E, $21
db $99, $42, $3E, $1E, $CD, $CF, $05, $F0
db $9A, $57, $1E, $04, $01, $79, $47, $C3
db $46, $08, $1E, $04, $01, $D9, $7C, $C3
db $46, $08, $01, $23, $45, $CD, $3C, $23
db $38, $18, $CD, $A4, $0D, $CD, $25, $1A
db $CB, $6F, $C8, $1E, $27, $3E, $05, $CD
db $19, $23, $1E, $04, $01, $B1, $46, $C3
db $46, $08, $1E, $04, $01, $D9, $7C, $C3
db $46, $08, $01, $31, $45, $CD, $3C, $23
db $38, $3C, $1E, $26, $1A, $B7, $28, $28
db $3D, $12, $CD, $D3, $1E, $CD, $A4, $0D
db $CD, $25, $1A, $CB, $77, $28, $07, $AF
db $1E, $0F, $12, $1C, $12, $C9, $CB, $6F
db $C8, $1E, $27, $3E, $05, $CD, $19, $23
db $1E, $04, $01, $B1, $46, $C3, $46, $08
db $1E, $45, $1A, $2F, $3C, $12, $1E, $04
db $01, $C8, $47, $C3, $46, $08, $1E, $04
db $01, $D9, $7C, $C3, $46, $08, $CD, $E3
db $7D, $D8, $CD, $EB, $21, $CD, $A4, $0D
db $1E, $5B, $1A, $07, $21, $C3, $4B, $85
db $6F, $30, $01, $24, $2A, $46, $4F, $CD
db $CD, $24, $CB, $77, $28, $07, $AF, $1E
db $0F, $12, $1C, $12, $C9, $CB, $7F, $C8
db $1E, $0D, $CD, $7A, $0F, $2E, $3F, $62
db $35, $28, $08, $1E, $04, $01, $FA, $47
db $C3, $46, $08, $1E, $04, $01, $16, $48
db $C3, $46, $08, $4D, $45, $92, $4D, $CD
db $D3, $1E, $CD, $A4, $0D, $01, $AE, $44
db $CD, $5B, $25, $D8, $CD, $25, $1A, $CB
db $6F, $C8, $1E, $41, $21, $99, $42, $3E
db $1E, $CD, $CF, $05, $F0, $9A, $57, $AF
db $1E, $0D, $12, $1C, $12, $C9, $CD, $EB
db $21, $CD, $A4, $0D, $01, $AE, $44, $CD
db $5B, $25, $D8, $CD, $25, $1A, $CB, $7F
db $28, $08, $1E, $04, $01, $00, $49, $C3
db $46, $08, $CB, $6F, $C8, $1E, $41, $21
db $99, $42, $3E, $1E, $CD, $CF, $05, $F0
db $9A, $57, $C8, $CD, $D3, $1E, $CD, $A4
db $0D, $01, $AE, $44, $CD, $5B, $25, $D8
db $CD, $25, $1A, $CB, $7F, $28, $08, $1E
db $04, $01, $1D, $49, $C3, $46, $08, $CB
db $6F, $C8, $1E, $41, $21, $99, $42, $3E
db $1E, $CD, $CF, $05, $F0, $9A, $57, $C9
db $01, $AE, $44, $C3, $5B, $25, $1E, $5B
db $1A, $07, $07, $6F, $1E, $5C, $1A, $07
db $85, $21, $CA, $44, $85, $6F, $30, $01
db $24, $1E, $3D, $2A, $12, $1C, $7E, $12
db $C9, $1E, $3D, $1A, $6F, $1C, $1A, $67
db $2A, $FE, $FF, $20, $0A, $2A, $2F, $3C
db $85, $6F, $3E, $FF, $8C, $67, $2A, $1E
db $27, $12, $1E, $3D, $7D, $12, $1C, $7C
db $12, $C9, $0A, $6F, $03, $0A, $67, $03
db $1E, $27, $1A, $C5, $CB, $37, $4F, $1E
db $5C, $1A, $CB, $37, $0F, $81, $85, $6F
db $30, $01, $24, $1E, $0F, $2A, $12, $1C
db $2A, $12, $CD, $53, $20, $CD, $F9, $20
db $C1, $C9, $1E, $3D, $1A, $6F, $1C, $1A
db $67, $2A, $B7, $28, $1F, $5F, $CD, $47
db $06, $BB, $38, $08, $3E, $01, $EA, $60
db $DD, $AF, $18, $05, $AF, $EA, $60, $DD
db $3C, $1E, $27, $12, $1E, $3D, $7D, $12
db $1C, $7C, $12, $C9, $FA, $60, $DD, $B7
db $20, $06, $2A, $B7, $28, $E6, $18, $D5
db $23, $18, $E1, $0A, $6F, $03, $0A, $03
db $C5, $4D, $47, $CD, $47, $06, $E6, $02
db $81, $4F, $30, $01, $04, $CD, $D1, $1F
db $C1, $21, $E1, $45, $CD, $BE, $20, $CD
db $F9, $20, $C3, $23, $21, $0A, $6F, $03
db $0A, $67, $03, $C3, $04, $4D, $C5, $26
db $A8, $0E, $0A, $2E, $00, $7E, $FE, $FF
db $28, $17, $2E, $48, $7E, $BA, $20, $11
db $79, $E0, $80, $1E, $04, $01, $E4, $48
db $CD, $49, $08, $F0, $9A, $57, $F0, $80
db $4F, $0D, $28, $03, $24, $18, $DC, $C1
db $C9, $21, $60, $DD, $34, $C9, $1E, $04
db $21, $51, $DB, $1A, $96, $38, $0D, $FE
db $30, $38, $09, $FE, $70, $D8, $3E, $C0
db $1E, $45, $12, $C9, $3E, $40, $18, $F8
db $0D, $D1, $1F, $00, $04, $06, $F5, $72
db $FF, $02, $00, $00, $00, $09, $7D, $04
db $00, $00, $00, $09, $7D, $04, $FF, $32
db $00, $00, $00, $09, $7D, $04, $00, $00
db $00, $09, $7D, $04, $05, $02, $9B, $4D
db $03, $33, $4E, $03, $00, $00, $00, $2A
db $4F, $03, $F9, $09, $F9, $06, $FF, $32
db $00, $00, $00, $33, $4E, $03, $00, $00
db $00, $2A, $4F, $03, $00, $01, $02, $80
db $00, $02, $80, $01, $02, $00, $00, $FF
db $0D, $00, $01, $02, $C0, $00, $02, $C0
db $01, $02, $00, $00, $FF, $0D, $80, $60
db $C0, $A0, $40, $40, $40, $40, $A0, $E0
db $40, $40, $40, $60, $80, $C0, $80, $60
db $80, $60, $00, $C0, $00, $01, $F0, $0C
db $20, $01, $EE, $08, $80, $01, $F4, $80
db $20, $01, $EE, $80, $C0, $FD, $12, $40
db $02, $C0, $00, $00, $80, $FD, $14, $80
db $02, $C0, $00, $00, $C0, $FD, $10, $00
db $00, $00, $00, $00, $80, $FD, $10, $00
db $00, $00, $00, $00, $00, $FE, $10, $00
db $02, $00, $01, $00, $00, $FE, $10, $00
db $02, $40, $01, $00, $00, $FF, $10, $00
db $01, $C0, $00, $00, $00, $FF, $10, $00
db $01, $00, $01, $00, $00, $FE, $20, $00
db $02, $00, $00, $00, $00, $FE, $20, $00
db $02, $00, $00, $00, $C0, $FD, $12, $00
db $00, $00, $00, $00, $80, $FD, $14, $00
db $00, $00, $00, $00, $18, $1C, $C0, $00
db $FA, $00, $00, $01, $F8, $00, $20, $C0
db $01, $20, $40, $02, $27, $03, $1D, $52
db $44, $0D, $69, $4C, $0D, $8A, $4C, $E8
db $44, $0E, $03, $0B, $46, $22, $46, $A9
db $7C, $16, $03, $1D, $52, $44, $28, $1A
db $3F, $0D, $F4, $23, $BE, $4D, $12, $84
db $4E, $0D, $F4, $23, $C0, $4D, $12, $3C
db $4F, $06, $9A, $4F, $27, $0D, $19, $55
db $10, $11, $DA, $4E, $28, $1A, $3F, $0D
db $F4, $23, $C4, $4D, $12, $DA, $4E, $03
db $3B, $52, $44, $08, $00, $00, $0F, $3F
db $00, $0D, $E1, $54, $D4, $4D, $01, $02
db $00, $03, $2C, $52, $44, $19, $02, $10
db $09, $12, $0D, $BA, $22, $27, $07, $19
db $0A, $02, $19, $0B, $02, $19, $0A, $02
db $19, $0B, $02, $0A, $28, $1A, $3F, $0D
db $F4, $23, $CA, $4D, $12, $E3, $47, $0D
db $F4, $23, $CC, $4D, $12, $9A, $4F, $06
db $3C, $4F, $03, $1D, $52, $44, $28, $1A
db $3F, $0D, $F4, $23, $C2, $4D, $12, $84
db $4E, $10, $5C, $12, $F8, $4E, $19, $00
db $0C, $27, $19, $02, $0C, $06, $FF, $4E
db $19, $00, $06, $27, $19, $02, $06, $27
db $0F, $27, $00, $0D, $8A, $4C, $E4, $4D
db $03, $DB, $52, $44, $01, $01, $24, $0D
db $00, $03, $1D, $52, $44, $07, $00, $00
db $08, $00, $00, $27, $0D, $77, $0F, $0D
db $09, $08, $19, $0A, $02, $19, $0B, $02
db $0A, $24, $36, $0D, $BA, $22, $27, $08
db $09, $10, $19, $0A, $02, $19, $0B, $02
db $0A, $06, $C4, $4E, $27, $28, $14, $80
db $6A, $4F, $0D, $BA, $22, $27, $09, $03
db $1D, $52, $44, $19, $06, $3C, $24, $3D
db $19, $07, $04, $0D, $AE, $23, $4F, $54
db $44, $19, $08, $20, $28, $1A, $3F, $0D
db $F4, $23, $CE, $4D, $12, $E3, $47, $06
db $84, $4E, $01, $01, $0F, $27, $01, $0D
db $8A, $4C, $E4, $4D, $03, $25, $53, $44
db $24, $0D, $00, $0D, $BA, $22, $27, $0A
db $03, $1D, $52, $44, $19, $06, $3C, $24
db $3D, $19, $07, $04, $03, $5B, $53, $44
db $0D, $AE, $23, $B3, $54, $44, $19, $08
db $20, $00, $27, $01, $06, $0D, $03, $22
db $F0, $11, $B2, $4F, $28, $1A, $3F, $0D
db $F4, $23, $C6, $4D, $12, $18, $50, $06
db $BD, $4F, $28, $1A, $3F, $0D, $F4, $23
db $C8, $4D, $12, $18, $50, $0F, $27, $04
db $0D, $8A, $4C, $E4, $4D, $03, $8F, $53
db $44, $00, $24, $0E, $03, $1D, $52, $44
db $10, $5C, $12, $DB, $4F, $19, $07, $10
db $06, $DE, $4F, $19, $07, $08, $19, $08
db $04, $0D, $BA, $22, $27, $0B, $19, $0E
db $02, $19, $08, $0E, $0D, $BA, $22, $27
db $0B, $19, $0E, $02, $10, $5C, $12, $FF
db $4F, $19, $08, $40, $06, $02, $50, $19
db $08, $30, $28, $1A, $3F, $0D, $F4, $23
db $D0, $4D, $12, $E3, $47, $0D, $F4, $23
db $D2, $4D, $12, $3C, $4F, $06, $84, $4E
db $0F, $27, $05, $0D, $8A, $4C, $E4, $4D
db $03, $C1, $53, $44, $24, $0D, $00, $03
db $1D, $52, $44, $10, $5C, $12, $35, $50
db $05, $10, $06, $37, $50, $05, $08, $19
db $08, $04, $03, $F7, $53, $44, $0D, $BA
db $22, $27, $0B, $19, $0E, $02, $19, $08
db $0E, $0D, $BA, $22, $27, $0B, $19, $0E
db $02, $01, $08, $00, $24, $0E, $03, $1D
db $52, $44, $10, $5C, $12, $64, $50, $05
db $20, $06, $02, $50, $05, $10, $06, $02
db $50, $09, $06, $19, $03, $02, $19, $04
db $02, $0A, $01, $03, $0C, $04, $45, $73
db $0C, $01, $05, $0C, $0F, $4C, $01, $04
db $45, $73, $0C, $0D, $F9, $1F, $0D, $0F
db $20, $04, $04, $3F, $0D, $52, $44, $0D
db $A8, $50, $03, $1E, $54, $44, $24, $39
db $05, $01, $19, $09, $02, $0F, $47, $10
db $05, $02, $0F, $47, $00, $05, $02, $16
db $1E, $07, $1A, $D6, $01, $12, $1C, $1A
db $DE, $00, $12, $C9, $0F, $4C, $01, $04
db $45, $73, $0C, $0D, $F9, $1F, $0F, $60
db $3F, $0D, $D1, $1F, $0C, $03, $0F, $26
db $10, $0D, $15, $21, $44, $4E, $03, $27
db $54, $44, $24, $39, $0D, $BA, $22, $27
db $1F, $19, $0F, $02, $19, $10, $02, $19
db $0F, $02, $0D, $BA, $22, $27, $1F, $19
db $10, $02, $19, $0F, $02, $19, $10, $02
db $06, $D4, $50, $0F, $40, $00, $0F, $27
db $02, $0D, $8A, $4C, $E4, $4D, $06, $15
db $51, $10, $5C, $12, $0F, $51, $08, $80
db $01, $26, $80, $01, $06, $15, $51, $08
db $C0, $01, $26, $C0, $01, $04, $E6, $72
db $0B, $0F, $46, $00, $0D, $D1, $1F, $00
db $E7, $19, $1B, $04, $19, $1A, $03, $19
db $19, $02, $19, $18, $02, $19, $17, $02
db $19, $16, $02, $19, $15, $01, $19, $14
db $01, $19, $13, $01, $19, $07, $01, $04
db $52, $6F, $0B, $19, $08, $02, $19, $09
db $02, $19, $0A, $02, $19, $07, $02, $19
db $08, $02, $19, $09, $02, $19, $0A, $02
db $19, $07, $02, $0D, $05, $55, $19, $08
db $02, $19, $09, $02, $19, $0A, $02, $19
db $07, $02, $06, $5E, $51, $1B, $66, $49
db $03, $04, $83, $77, $0B, $0F, $46, $00
db $03, $DB, $54, $44, $0D, $0F, $20, $0C
db $0C, $3F, $24, $11, $0F, $47, $10, $09
db $04, $19, $00, $02, $19, $01, $02, $19
db $02, $02, $19, $03, $02, $19, $04, $02
db $19, $05, $02, $19, $06, $02, $19, $07
db $02, $0A, $0F, $47, $00, $16, $0F, $4C
db $01, $04, $45, $73, $0C, $0D, $F9, $1F
db $0D, $D1, $1F, $00, $FF, $0D, $0F, $20
db $04, $04, $3F, $0D, $8A, $21, $4E, $4E
db $03, $CF, $54, $44, $24, $1D, $19, $0C
db $02, $19, $0D, $02, $06, $C6, $51, $28
db $13, $40, $DF, $51, $13, $80, $F3, $51
db $13, $C0, $F6, $51, $0D, $16, $52, $0D
db $D1, $1F, $06, $03, $26, $00, $02, $0D
db $32, $10, $E0, $08, $00, $FE, $2A, $20
db $06, $07, $52, $0D, $16, $52, $0D, $D1
db $1F, $02, $01, $26, $40, $00, $0D, $32
db $10, $FC, $08, $40, $FD, $2A, $2C, $04
db $46, $72, $0B, $0F, $46, $00, $03, $57
db $49, $44, $19, $00, $10, $16, $1E, $45
db $1A, $2F, $3C, $12, $C9, $01, $68, $4D
db $CD, $3C, $23, $D0, $1E, $04, $01, $D9
db $7C, $C3, $46, $08, $01, $76, $4D, $CD
db $3C, $23, $D0, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $01, $68, $4D, $CD, $3C
db $23, $38, $32, $1E, $0D, $1A, $4F, $1C
db $1A, $B1, $28, $3D, $CD, $E6, $1E, $CD
db $A4, $0D, $01, $92, $4D, $CD, $B9, $24
db $B7, $20, $22, $21, $1E, $45, $2A, $1E
db $12, $12, $1E, $39, $2A, $12, $1C, $7E
db $12, $62, $2E, $1F, $36, $44, $2C, $36
db $52, $2C, $36, $B4, $C9, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $CB, $6F, $C8
db $1E, $11, $1A, $2F, $3C, $12, $C3, $F9
db $1E, $1E, $3F, $1A, $B7, $20, $1D, $1E
db $26, $1A, $B7, $28, $07, $3D, $12, $1E
db $15, $AF, $12, $C9, $1E, $3F, $3E, $01
db $12, $3E, $02, $1E, $15, $12, $21, $DC
db $4D, $C3, $E7, $54, $1E, $04, $01, $A9
db $4E, $C3, $46, $08, $01, $68, $4D, $CD
db $3C, $23, $38, $17, $CD, $EB, $21, $CD
db $A4, $0D, $01, $92, $4D, $CD, $CD, $24
db $CB, $7F, $C8, $1E, $04, $01, $A9, $4E
db $C3, $46, $08, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $01, $68, $4D, $CD, $3C
db $23, $38, $3A, $1E, $0F, $1A, $4F, $1C
db $1A, $B1, $20, $0F, $1E, $04, $06, $10
db $CD, $9C, $1F, $30, $06, $1E, $0D, $AF
db $12, $1C, $12, $CD, $EB, $21, $CD, $A4
db $0D, $01, $92, $4D, $CD, $CD, $24, $CB
db $7F, $20, $0A, $CB, $6F, $C8, $AF, $1E
db $0D, $12, $1C, $12, $C9, $1E, $04, $01
db $11, $4F, $C3, $46, $08, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $01, $68, $4D
db $CD, $3C, $23, $38, $26, $1E, $0F, $1A
db $4F, $1C, $1A, $B1, $28, $15, $CD, $D3
db $1E, $CD, $A4, $0D, $01, $92, $4D, $CD
db $CD, $24, $CB, $77, $C8, $AF, $1E, $0F
db $12, $1C, $12, $1E, $04, $01, $7B, $4F
db $C3, $46, $08, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $01, $68, $4D, $CD, $3C
db $23, $38, $24, $CD, $D3, $1E, $CD, $A4
db $0D, $01, $92, $4D, $CD, $CD, $24, $CB
db $7F, $C8, $1E, $0E, $21, $99, $42, $3E
db $1E, $CD, $CF, $05, $F0, $9A, $57, $1E
db $04, $01, $5C, $4F, $C3, $46, $08, $1E
db $04, $01, $D9, $7C, $C3, $46, $08, $01
db $68, $4D, $CD, $3C, $23, $38, $22, $CD
db $D3, $1E, $CD, $A4, $0D, $01, $92, $4D
db $CD, $CD, $24, $CB, $7F, $20, $0A, $CB
db $77, $C8, $AF, $1E, $0F, $12, $1C, $12
db $C9, $1E, $04, $01, $CA, $4F, $C3, $46
db $08, $1E, $04, $01, $D9, $7C, $C3, $46
db $08, $01, $68, $4D, $CD, $3C, $23, $38
db $26, $1E, $0F, $1A, $4F, $1C, $1A, $B1
db $28, $15, $CD, $D3, $1E, $CD, $A4, $0D
db $01, $92, $4D, $CD, $CD, $24, $CB, $77
db $C8, $AF, $1E, $0F, $12, $1C, $12, $1E
db $04, $01, $27, $50, $C3, $46, $08, $1E
db $04, $01, $D9, $7C, $C3, $46, $08, $01
db $68, $4D, $CD, $3C, $23, $38, $17, $CD
db $D3, $1E, $CD, $A4, $0D, $01, $92, $4D
db $CD, $CD, $24, $CB, $7F, $C8, $1E, $04
db $01, $54, $50, $C3, $46, $08, $1E, $04
db $01, $D9, $7C, $C3, $46, $08, $CD, $A4
db $0D, $01, $96, $4D, $C3, $5B, $25, $CD
db $E6, $1E, $CD, $A4, $0D, $01, $96, $4D
db $CD, $5B, $25, $D8, $CD, $F3, $19, $62
db $B7, $28, $11, $CB, $6F, $20, $0D, $CB
db $67, $20, $09, $2E, $26, $35, $C0, $1E
db $11, $AF, $12, $C9, $C3, $BA, $0B, $CD
db $EB, $21, $CD, $A4, $0D, $01, $AE, $44
db $CD, $5B, $25, $D8, $CD, $25, $1A, $CB
db $6F, $28, $08, $1E, $04, $01, $6D, $51
db $C3, $46, $08, $CB, $7F, $C8, $1E, $40
db $1A, $B7, $28, $18, $21, $46, $4E, $CD
db $E7, $54, $AF, $1E, $0F, $12, $1C, $12
db $62, $2E, $1F, $36, $44, $2C, $36, $54
db $2C, $36, $96, $C9, $3C, $12, $21, $E4
db $4D, $3E, $03, $C3, $93, $4C, $1E, $0D
db $1A, $4F, $1C, $1A, $B1, $28, $0C, $CD
db $E6, $1E, $CD, $A4, $0D, $01, $AE, $44
db $C3, $5B, $25, $1E, $04, $01, $6D, $51
db $C3, $46, $08, $CD, $A4, $0D, $01, $AE
db $44, $CD, $5B, $25, $D8, $CD, $25, $1A
db $CB, $7F, $20, $03, $CB, $6F, $C8, $1E
db $04, $01, $71, $51, $C3, $46, $08, $CD
db $C5, $21, $CD, $A4, $0D, $01, $96, $4D
db $C3, $5B, $25, $01, $BC, $44, $C3, $5B
db $25, $0A, $6F, $03, $0A, $67, $03, $1E
db $5C, $1A, $07, $07, $85, $6F, $30, $01
db $24, $CD, $F9, $20, $CD, $23, $21, $1E
db $26, $7E, $12, $C9, $26, $A0, $2E, $4D
db $7E, $1E, $27, $12, $C9, $1E, $48, $1A
db $67, $2E, $45, $CB, $7E, $1E, $15, $20
db $04, $3E, $08, $18, $02, $3E, $02, $12
db $C9, $1E, $07, $0A, $03, $C5, $47, $CD
db $9C, $1F, $C1, $1E, $27, $38, $03, $AF
db $18, $02, $3E, $01, $12, $C9, $1E, $04
db $C3, $1B, $55, $06, $02, $00, $00, $00
db $09, $7D, $04, $00, $00, $00, $09, $7D
db $04, $06, $02, $9B, $4D, $03, $33, $4E
db $03, $00, $00, $00, $2A, $4F, $03, $06
db $02, $30, $59, $04, $33, $4E, $03, $00
db $00, $00, $2A, $4F, $03, $FF, $22, $00
db $00, $00, $33, $4E, $03, $00, $00, $00
db $33, $4E, $03, $F9, $0B, $F9, $06, $00
db $02, $C0, $01, $02, $00, $C0, $00, $02
db $C0, $01, $02, $00, $C0, $FF, $10, $00
db $02, $C0, $01, $02, $00, $C0, $00, $02
db $C0, $01, $02, $00, $C0, $FF, $10, $80
db $80, $C0, $80, $00, $C0, $40, $40, $C0
db $C0, $40, $20, $80, $80, $C0, $C0, $60
db $80, $C0, $E0, $00, $FE, $20, $00, $02
db $80, $FF, $00, $00, $FE, $20, $00, $02
db $40, $FF, $00, $00, $FF, $10, $00, $01
db $00, $00, $00, $00, $FF, $10, $00, $01
db $00, $00, $00, $00, $FE, $20, $00, $02
db $00, $00, $00, $00, $FE, $20, $00, $02
db $00, $00, $00, $00, $FE, $10, $00, $02
db $60, $00, $00, $00, $FE, $10, $00, $02
db $60, $00, $00, $E0, $FE, $09, $00, $00
db $20, $01, $00, $E0, $FE, $09, $00, $00
db $60, $01, $00, $00, $FF, $08, $00, $00
db $20, $01, $00, $00, $FF, $08, $00, $00
db $60, $01, $00, $80, $FC, $1C, $00, $00
db $C0, $00, $00, $40, $FC, $1E, $00, $00
db $C0, $00, $00, $00, $FE, $10, $00, $00
db $C0, $00, $00, $C0, $FD, $12, $00, $00
db $C0, $00, $00, $00, $FF, $08, $00, $00
db $C0, $00, $00, $C0, $FE, $0A, $00, $00
db $C0, $00, $00, $18, $10, $80, $00, $C0
db $00, $20, $00, $00, $30, $00, $00, $20
db $10, $08, $04, $08, $04, $10, $0C, $08
db $04, $10, $0C, $08, $04, $40, $20, $40
db $20, $F8, $08, $F8, $06, $FA, $08, $08
db $08, $08, $06, $06, $08, $27, $0D, $69
db $4C, $0E, $03, $6A, $56, $78, $56, $A9
db $7C, $16, $03, $4B, $59, $44, $01, $00
db $1F, $45, $22, $33, $56, $06, $5D, $56
db $03, $4B, $59, $44, $0F, $26, $03, $27
db $19, $01, $02, $19, $02, $02, $19, $01
db $02, $19, $03, $02, $0D, $9A, $56, $11
db $5D, $56, $28, $14, $C0, $7F, $56, $06
db $5D, $56, $1E, $26, $1A, $3D, $12, $1E
db $27, $12, $C9, $28, $1A, $3F, $0D, $F4
db $23, $8F, $55, $11, $4D, $57, $08, $00
db $00, $0D, $D3, $20, $35, $56, $22, $FF
db $56, $04, $03, $6C, $59, $44, $28, $13
db $80, $C9, $56, $0F, $43, $00, $06, $CC
db $56, $0F, $43, $01, $0D, $E6, $22, $27
db $0C, $19, $01, $02, $0D, $E6, $22, $27
db $0C, $19, $02, $02, $0D, $E6, $22, $27
db $0C, $19, $01, $02, $0D, $E6, $22, $27
db $0C, $19, $03, $02, $24, $22, $10, $43
db $11, $CC, $56, $0D, $B0, $5A, $11, $CC
db $56, $0F, $1C, $80, $06, $5D, $56, $10
db $5C, $11, $0E, $57, $0D, $E6, $22, $27
db $22, $05, $04, $06, $04, $57, $00, $0D
db $77, $0F, $0E, $0D, $8A, $4C, $A3, $55
db $03, $AF, $59, $44, $01, $01, $00, $08
db $00, $00, $0D, $3A, $21, $39, $56, $03
db $D6, $59, $44, $24, $0E, $0D, $E6, $22
db $27, $0D, $05, $02, $06, $2D, $57, $28
db $1A, $3F, $0D, $F4, $23, $91, $55, $12
db $5D, $56, $0D, $F4, $23, $93, $55, $12
db $4D, $57, $06, $AE, $56, $03, $4B, $59
db $44, $01, $00, $1F, $45, $22, $3F, $56
db $01, $02, $1F, $45, $22, $41, $56, $01
db $04, $1F, $45, $22, $43, $56, $01, $09
db $1F, $45, $22, $45, $56, $09, $03, $01
db $0A, $1F, $45, $22, $47, $56, $01, $0B
db $1F, $45, $22, $49, $56, $01, $0A, $1F
db $45, $22, $4B, $56, $0A, $19, $04, $04
db $27, $0F, $27, $01, $0D, $8A, $4C, $A3
db $55, $0D, $BA, $22, $27, $0E, $03, $0C
db $5A, $44, $0D, $19, $55, $18, $11, $AF
db $57, $28, $1A, $3F, $0D, $F4, $23, $97
db $55, $12, $BD, $57, $06, $F4, $57, $28
db $1A, $3F, $0D, $F4, $23, $95, $55, $12
db $BD, $57, $06, $F4, $57, $19, $01, $10
db $19, $02, $10, $19, $04, $1C, $19, $05
db $04, $01, $06, $0D, $20, $5B, $00, $24
db $5C, $1F, $45, $22, $4D, $56, $28, $1A
db $3F, $0D, $F4, $23, $99, $55, $12, $5D
db $56, $0D, $F4, $23, $9B, $55, $12, $AE
db $56, $0D, $F4, $23, $9D, $55, $12, $28
db $58, $06, $4D, $57, $19, $01, $04, $19
db $0D, $04, $19, $0C, $04, $19, $04, $04
db $19, $01, $08, $19, $0D, $08, $19, $0C
db $08, $19, $04, $08, $19, $01, $04, $19
db $0D, $04, $19, $0C, $04, $19, $07, $04
db $01, $08, $0D, $20, $5B, $01, $24, $5C
db $1F, $45, $22, $4F, $56, $06, $D6, $57
db $10, $5C, $12, $5A, $58, $0F, $27, $02
db $09, $03, $24, $0D, $03, $0C, $5A, $44
db $0D, $8A, $4C, $A3, $55, $19, $01, $08
db $09, $03, $19, $02, $02, $19, $01, $02
db $19, $03, $02, $19, $01, $02, $0A, $19
db $01, $04, $0D, $77, $0F, $0E, $0A, $06
db $84, $58, $0F, $27, $02, $09, $02, $24
db $0D, $03, $0C, $5A, $44, $0D, $8A, $4C
db $A3, $55, $19, $01, $08, $09, $03, $19
db $02, $02, $19, $01, $02, $19, $03, $02
db $19, $01, $02, $0A, $19, $01, $04, $0D
db $77, $0F, $0E, $0A, $28, $1A, $3F, $0D
db $F4, $23, $9F, $55, $12, $AE, $56, $0D
db $F4, $23, $A1, $55, $12, $4D, $57, $06
db $6A, $56, $01, $01, $0C, $0D, $FB, $5A
db $09, $04, $19, $00, $02, $19, $0F, $02
db $0A, $0C, $04, $DE, $75, $0C, $01, $01
db $0C, $0D, $CF, $5A, $51, $56, $06, $CD
db $48, $0D, $CF, $5A, $57, $56, $06, $CD
db $48, $0F, $4C, $01, $04, $DE, $75, $0C
db $0D, $F9, $1F, $0D, $D1, $1F, $00, $F8
db $01, $0E, $0F, $27, $03, $0D, $8A, $4C
db $A3, $55, $03, $4D, $5A, $44, $10, $46
db $1A, $3E, $0F, $3D, $01, $05, $40, $0F
db $3D, $00, $18, $04, $52, $6F, $0B, $0F
db $46, $00, $0F, $47, $10, $19, $06, $02
db $0F, $47, $00, $05, $02, $10, $3F, $12
db $0F, $59, $10, $3E, $1A, $46, $0F, $40
db $02, $0F, $27, $04, $06, $19, $59, $10
db $3E, $1A, $46, $0F, $40, $03, $0F, $27
db $06, $04, $DE, $75, $0C, $01, $0E, $0D
db $8A, $4C, $A3, $55, $03, $74, $5A, $44
db $00, $01, $0E, $03, $59, $5A, $44, $00
db $04, $DE, $75, $0C, $10, $3E, $1A, $46
db $01, $0E, $1B, $9B, $4D, $03, $0F, $46
db $00, $04, $E6, $72, $0B, $24, $2E, $1B
db $A1, $4E, $03, $01, $33, $55, $CD, $3C
db $23, $38, $11, $01, $6B, $55, $CD, $A5
db $24, $CB, $7F, $C0, $1E, $04, $01, $4F
db $7C, $C3, $46, $08, $1E, $04, $01, $D9
db $7C, $C3, $46, $08, $01, $33, $55, $CD
db $3C, $23, $38, $2B, $CD, $A4, $0D, $01
db $6B, $55, $CD, $B9, $24, $CB, $7F, $28
db $26, $CB, $67, $20, $0A, $CB, $6F, $20
db $0E, $FA, $2C, $DD, $CB, $5F, $C8, $1E
db $04, $01, $37, $57, $C3, $46, $08, $1E
db $04, $01, $0F, $57, $C3, $46, $08, $1E
db $04, $01, $D9, $7C, $C3, $46, $08, $1E
db $04, $01, $4F, $7C, $C3, $46, $08, $01
db $33, $55, $CD, $3C, $23, $38, $17, $CD
db $EB, $21, $CD, $A4, $0D, $01, $6B, $55
db $CD, $CD, $24, $CB, $7F, $C8, $1E, $04
db $01, $1F, $57, $C3, $46, $08, $1E, $04
db $01, $D9, $7C, $C3, $46, $08, $01, $33
db $55, $CD, $3C, $23, $38, $1E, $2E, $0D
db $62, $2A, $B6, $28, $1F, $CD, $E6, $1E
db $CD, $A4, $0D, $01, $6B, $55, $CD, $A5
db $24, $CB, $7F, $C0, $1E, $04, $01, $4F
db $7C, $C3, $46, $08, $1E, $04, $01, $D9
db $7C, $C3, $46, $08, $1E, $04, $01, $37
db $57, $C3, $46, $08, $01, $33, $55, $CD
db $3C, $23, $38, $31, $CD, $D3, $1E, $CD
db $A4, $0D, $01, $6B, $55, $CD, $CD, $24
db $CB, $7F, $C8, $AF, $1E, $0F, $12, $1C
db $12, $1E, $12, $12, $1E, $0E, $21, $99
db $42, $3E, $1E, $CD, $CF, $05, $F0, $9A
db $57, $62, $2E, $1F, $36, $44, $2C, $36
db $59, $2C, $36, $4B, $C9, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $CD, $D3, $1E
db $CD, $A4, $0D, $01, $4F, $55, $C3, $5B
db $25, $CD, $D3, $1E, $CD, $A4, $0D, $01
db $4F, $55, $CD, $5B, $25, $D8, $CD, $25
db $1A, $CB, $7F, $C8, $1E, $04, $01, $3E
db $59, $C3, $46, $08, $CD, $D3, $1E, $CD
db $A4, $0D, $01, $4F, $55, $CD, $5B, $25
db $D8, $CD, $25, $1A, $CB, $6F, $20, $20
db $CB, $7F, $C8, $2E, $40, $62, $35, $28
db $17, $2E, $27, $34, $21, $A3, $55, $CD
db $90, $4C, $1E, $0E, $21, $99, $42, $3E
db $1E, $CD, $CF, $05, $F0, $9A, $57, $C9
db $1E, $04, $01, $3E, $59, $C3, $46, $08
db $1E, $04, $6B, $26, $A0, $1A, $96, $1C
db $2C, $1A, $9E, $1E, $45, $1A, $38, $07
db $07, $38, $07, $3E, $01, $18, $04, $07
db $38, $F9, $AF, $1E, $27, $12, $C9, $0A
db $6F, $03, $0A, $03, $C5, $4D, $47, $CD
db $47, $06, $FE, $56, $38, $08, $FE, $AB
db $38, $07, $3E, $02, $18, $05, $AF, $18
db $02, $3E, $01, $07, $81, $4F, $30, $01
db $04, $CD, $D1, $1F, $C1, $21, $E1, $45
db $C3, $04, $4D, $1E, $48, $1A, $67, $2E
db $00, $7E, $FE, $FF, $C8, $2E, $5B, $7E
db $FE, $0E, $C0, $2E, $3D, $7E, $B7, $C8
db $2E, $4C, $7E, $B7, $C8, $C5, $1E, $04
db $01, $29, $59, $CD, $49, $08, $C1, $C9
db $1E, $48, $1A, $67, $2E, $3F, $0A, $03
db $77, $C9, $04, $52, $6F, $0B, $0F, $46
db $00, $0F, $60, $88, $03, $4D, $5B, $44
db $0D, $5C, $5B, $0D, $D1, $1F, $0A, $FC
db $19, $04, $04, $09, $03, $19, $05, $02
db $19, $04, $02, $0A, $16, $CD, $E6, $1E
db $CD, $D3, $1E, $CD, $A4, $0D, $01, $5D
db $55, $C3, $5B, $25, $CD, $47, $06, $E6
db $03, $21, $76, $5B, $07, $5F, $07, $83
db $85, $6F, $30, $01, $24, $CD, $F9, $20
db $CD, $23, $21, $C3, $BE, $20, $80, $02
db $F8, $00, $00, $F8, $00, $02, $F8, $00
db $00, $F0, $40, $02, $F8, $80, $00, $F8
db $00, $02, $F8, $00, $01, $F0, $FF, $02
db $00, $00, $00, $09, $7D, $04, $00, $00
db $00, $09, $7D, $04, $02, $02, $9B, $4D
db $03, $33, $4E, $03, $00, $00, $00, $2A
db $4F, $03, $F9, $09, $F7, $08, $FA, $05
db $FA, $05, $00, $02, $00, $80, $00, $02
db $00, $80, $FF, $0A, $00, $02, $00, $C0
db $00, $02, $00, $80, $FF, $0A, $80, $80
db $C0, $E0, $80, $80, $C0, $E0, $80, $FE
db $18, $00, $00, $80, $FF, $00, $80, $FE
db $18, $00, $00, $80, $FF, $00, $00, $FF
db $20, $00, $00, $C0, $FF, $00, $C0, $FE
db $20, $00, $00, $C0, $FF, $00, $00, $FF
db $20, $00, $00, $80, $00, $00, $00, $FF
db $20, $00, $00, $80, $00, $00, $00, $01
db $40, $01, $80, $01, $C0, $01, $20, $80
db $02, $20, $10, $0C, $08, $04, $02, $04
db $02, $10, $08, $80, $00, $00, $01, $80
db $01, $18, $10, $20, $80, $02, $18, $10
db $18, $10, $00, $FF, $C0, $FD, $12, $80
db $FF, $E0, $FE, $12, $00, $01, $00, $FD
db $30, $80, $00, $C0, $FE, $14, $00, $FF
db $00, $FD, $30, $80, $FF, $C0, $FE, $14
db $27, $0D, $69, $4C, $0E, $03, $4D, $5C
db $40, $5C, $A9, $7C, $16, $03, $27, $5F
db $44, $10, $5C, $12, $65, $5C, $19, $00
db $0D, $19, $03, $03, $19, $04, $0D, $19
db $03, $03, $06, $40, $5C, $19, $00, $0A
db $19, $03, $02, $19, $04, $0A, $19, $03
db $02, $06, $40, $5C, $28, $13, $80, $7C
db $5C, $06, $CE, $5D, $03, $27, $5F, $44
db $27, $10, $5C, $12, $9A, $5C, $09, $04
db $19, $00, $02, $19, $01, $04, $19, $00
db $02, $19, $02, $04, $24, $22, $0A, $06
db $B6, $5C, $19, $00, $02, $19, $01, $04
db $19, $00, $02, $19, $02, $04, $24, $22
db $19, $00, $02, $19, $01, $04, $19, $00
db $02, $19, $02, $04, $24, $22, $22, $20
db $5D, $04, $03, $36, $5F, $44, $0D, $D3
db $20, $FE, $5B, $28, $13, $80, $CE, $5C
db $0F, $43, $00, $06, $D1, $5C, $0F, $43
db $01, $19, $00, $04, $0D, $D3, $20, $02
db $5C, $0D, $32, $10, $E0, $19, $01, $04
db $24, $22, $29, $00, $0D, $D3, $20, $FE
db $5B, $19, $00, $04, $0D, $D3, $20, $02
db $5C, $0D, $32, $10, $E0, $19, $02, $04
db $29, $00, $10, $43, $24, $22, $11, $D1
db $5C, $0D, $B0, $5A, $11, $D1, $5C, $0F
db $1C, $80, $28, $1A, $3F, $0D, $F4, $23
db $C6, $5B, $12, $CE, $5D, $0D, $F4, $23
db $C8, $5B, $12, $7C, $5C, $06, $40, $5C
db $0D, $E6, $22, $27, $0C, $05, $02, $06
db $20, $5D, $18, $03, $27, $5F, $44, $09
db $04, $19, $00, $01, $19, $01, $02, $19
db $00, $01, $19, $02, $02, $24, $22, $0A
db $0D, $42, $20, $06, $5C, $01, $07, $03
db $F3, $60, $44, $00, $0D, $77, $0F, $0E
db $0D, $E6, $22, $27, $12, $0D, $E6, $22
db $27, $0F, $03, $27, $5F, $44, $09, $04
db $19, $06, $02, $19, $05, $02, $0A, $0F
db $27, $00, $0D, $8A, $4C, $CE, $5B, $03
db $74, $5F, $44, $24, $0D, $00, $03, $BC
db $5F, $44, $19, $00, $02, $19, $01, $02
db $19, $00, $02, $19, $02, $02, $24, $22
db $06, $7A, $5D, $24, $0E, $0F, $27, $01
db $0D, $8A, $4C, $CE, $5B, $03, $F7, $5F
db $44, $01, $02, $00, $24, $0E, $08, $00
db $00, $26, $C0, $FF, $0D, $32, $10, $08
db $03, $32, $60, $44, $00, $03, $27, $5F
db $44, $1F, $45, $22, $09, $5C, $06, $0A
db $5D, $0D, $77, $0F, $0E, $0D, $E6, $22
db $27, $12, $0D, $E6, $22, $27, $0F, $03
db $56, $60, $44, $01, $02, $00, $0F, $40
db $02, $0F, $3F, $02, $27, $03, $27, $5F
db $44, $01, $00, $1F, $45, $22, $0B, $5C
db $01, $03, $1F, $45, $22, $0D, $5C, $0F
db $27, $02, $0D, $8A, $4C, $CE, $5B, $03
db $7D, $60, $44, $24, $0D, $19, $04, $10
db $00, $03, $27, $5F, $44, $19, $03, $04
db $06, $D5, $5D, $03, $27, $5F, $44, $19
db $03, $04, $10, $40, $11, $16, $5E, $0D
db $2E, $55, $40, $11, $D4, $5D, $03, $27
db $5F, $44, $01, $00, $1F, $45, $22, $11
db $5C, $19, $04, $14, $01, $03, $08, $80
db $FD, $2A, $10, $0D, $69, $61, $03, $C5
db $60, $44, $24, $0D, $00, $03, $27, $5F
db $44, $01, $07, $18, $2A, $00, $1F, $45
db $22, $19, $5C, $0D, $42, $20, $1B, $5C
db $03, $F3, $60, $44, $00, $0D, $77, $0F
db $0E, $0D, $E6, $22, $27, $10, $0D, $E6
db $22, $27, $11, $18, $03, $27, $5F, $44
db $09, $03, $19, $08, $02, $19, $07, $02
db $0A, $1F, $45, $22, $1E, $5C, $01, $00
db $1F, $45, $22, $20, $5C, $28, $1A, $3F
db $0D, $F4, $23, $CA, $5B, $12, $7C, $5C
db $0D, $F4, $23, $CC, $5B, $12, $CE, $5D
db $06, $40, $5C, $01, $07, $0C, $0D, $77
db $0F, $0E, $09, $03, $19, $08, $02, $19
db $07, $02, $0A, $1F, $45, $22, $1E, $5C
db $01, $00, $1F, $45, $22, $20, $5C, $06
db $40, $5C, $10, $5C, $12, $B9, $5E, $09
db $04, $19, $09, $02, $19, $0E, $02, $0A
db $0C, $19, $09, $02, $19, $0E, $02, $19
db $09, $02, $19, $0E, $02, $0C, $04, $8E
db $77, $0C, $01, $0F, $0C, $0D, $D1, $1F
db $0A, $00, $0F, $27, $00, $06, $EB, $5E
db $0D, $D1, $1F, $0A, $08, $0F, $27, $02
db $06, $EB, $5E, $0D, $D1, $1F, $F6, $08
db $0F, $27, $04, $0D, $0F, $20, $07, $07
db $00, $0F, $40, $02, $0F, $4C, $01, $04
db $8E, $77, $0C, $0D, $F9, $1F, $0D, $8D
db $61, $22, $5C, $03, $1A, $61, $44, $19
db $0A, $08, $19, $0B, $08, $19, $0C, $08
db $19, $0D, $08, $06, $07, $5F, $00, $24
db $0E, $03, $63, $61, $44, $05, $10, $1B
db $66, $49, $03, $1B, $33, $4E, $03, $01
db $8E, $5B, $CD, $3C, $23, $D0, $1E, $04
db $01, $D9, $7C, $C3, $46, $08, $01, $8E
db $5B, $CD, $3C, $23, $38, $2E, $CD, $A4
db $0D, $01, $AA, $5B, $CD, $B9, $24, $B7
db $28, $12, $CB, $6F, $20, $16, $FA, $2C
db $DD, $CB, $5F, $C8, $1E, $04, $01, $0A
db $5D, $C3, $46, $08, $1E, $04, $01, $2A
db $5D, $C3, $46, $08, $1E, $04, $01, $4C
db $5D, $C3, $46, $08, $1E, $04, $01, $D9
db $7C, $C3, $46, $08, $01, $8E, $5B, $CD
db $3C, $23, $38, $38, $62, $2E, $0F, $2A
db $B6, $28, $29, $CD, $D3, $1E, $CD, $A4
db $0D, $01, $AA, $5B, $CD, $CD, $24, $CB
db $77, $20, $13, $CB, $6F, $C8, $AF, $2E
db $0D, $62, $22, $22, $22, $77, $1E, $04
db $01, $B9, $5D, $C3, $46, $08, $AF, $1E
db $0F, $12, $1C, $12, $1E, $04, $01, $76
db $5D, $C3, $46, $08, $1E, $04, $01, $D9
db $7C, $C3, $46, $08, $01, $8E, $5B, $CD
db $3C, $23, $38, $2B, $CD, $D3, $1E, $CD
db $A4, $0D, $01, $AA, $5B, $CD, $CD, $24
db $CB, $7F, $20, $13, $CB, $6F, $C8, $AF
db $2E, $0D, $62, $22, $22, $22, $77, $1E
db $04, $01, $B9, $5D, $C3, $46, $08, $1E
db $04, $01, $8B, $5D, $C3, $46, $08, $1E
db $04, $01, $D9, $7C, $C3, $46, $08, $01
db $8E, $5B, $CD, $3C, $23, $38, $2B, $CD
db $D3, $1E, $CD, $A4, $0D, $01, $AA, $5B
db $CD, $CD, $24, $CB, $7F, $20, $13, $CB
db $6F, $C8, $AF, $2E, $0D, $62, $22, $22
db $22, $77, $1E, $04, $01, $B9, $5D, $C3
db $46, $08, $1E, $04, $01, $9C, $5D, $C3
db $46, $08, $1E, $04, $01, $D9, $7C, $C3
db $46, $08, $62, $2E, $0D, $2A, $B6, $28
db $15, $CD, $E6, $1E, $CD, $A4, $0D, $01
db $8E, $5B, $CD, $3C, $23, $D0, $1E, $04
db $01, $D9, $7C, $C3, $46, $08, $1E, $04
db $01, $AD, $5D, $C3, $46, $08, $01, $8E
db $5B, $CD, $3C, $23, $38, $17, $CD, $D3
db $1E, $CD, $A4, $0D, $01, $AA, $5B, $CD
db $CD, $24, $CB, $7F, $C8, $1E, $04, $01
db $AD, $5D, $C3, $46, $08, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $01, $8E, $5B
db $CD, $3C, $23, $38, $38, $CD, $D3, $1E
db $CD, $A4, $0D, $01, $AA, $5B, $CD, $CD
db $24, $CB, $7F, $C8, $1E, $0E, $21, $99
db $42, $3E, $1E, $CD, $CF, $05, $F0, $9A
db $57, $62, $2E, $3F, $35, $28, $08, $1E
db $04, $01, $F9, $5D, $C3, $46, $08, $2E
db $40, $35, $2D, $36, $01, $1E, $04, $01
db $03, $5E, $C3, $46, $08, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $01, $8E, $5B
db $CD, $3C, $23, $38, $1E, $62, $2E, $0F
db $2A, $B6, $28, $0F, $CD, $D3, $1E, $CD
db $A4, $0D, $01, $AA, $5B, $CD, $CD, $24
db $CB, $6F, $C8, $1E, $04, $01, $35, $5E
db $C3, $46, $08, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $01, $8E, $5B, $CD, $3C
db $23, $38, $17, $CD, $EB, $21, $CD, $A4
db $0D, $01, $AA, $5B, $CD, $CD, $24, $CB
db $7F, $C8, $1E, $04, $01, $4D, $5E, $C3
db $46, $08, $1E, $04, $01, $D9, $7C, $C3
db $46, $08, $CD, $D3, $1E, $CD, $A4, $0D
db $01, $AE, $44, $CD, $5B, $25, $D8, $01
db $AE, $5B, $CD, $CD, $24, $CB, $7F, $20
db $0E, $CB, $6F, $C8, $AF, $1E, $0D, $12
db $1C, $12, $1E, $40, $3C, $12, $C9, $1E
db $0E, $21, $99, $42, $3E, $1E, $CD, $CF
db $05, $F0, $9A, $57, $62, $2E, $40, $35
db $28, $09, $2E, $27, $34, $21, $22, $5C
db $C3, $93, $61, $1E, $04, $01, $17, $5F
db $C3, $46, $08, $01, $AE, $44, $C3, $5B
db $25, $C5, $06, $20, $1E, $04, $CD, $9C
db $1F, $38, $0E, $06, $31, $1E, $04, $CD
db $9C, $1F, $38, $0A, $21, $17, $5C, $18
db $08, $21, $13, $5C, $18, $03, $21, $15
db $5C, $C1, $C3, $F9, $20, $0A, $6F, $03
db $0A, $67, $03, $1E, $27, $1A, $5F, $07
db $07, $83, $85, $6F, $30, $01, $24, $CD
db $F9, $20, $C3, $BE, $20, $FF, $02, $00
db $00, $00, $09, $7D, $04, $00, $00, $00
db $09, $7D, $04, $03, $02, $9B, $4D, $03
db $33, $4E, $03, $00, $00, $00, $2A, $4F
db $03, $FF, $02, $9B, $4D, $03, $33, $4E
db $03, $00, $00, $00, $2A, $4F, $03, $FF
db $02, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $FF, $12, $00
db $00, $00, $33, $4E, $03, $00, $00, $00
db $2A, $4F, $03, $F9, $0A, $F9, $06, $FB
db $04, $FB, $06, $FD, $02, $FD, $02, $00
db $02, $00, $80, $FF, $06, $00, $02, $00
db $C0, $FF, $06, $A0, $80, $E0, $C0, $80
db $60, $C0, $A0, $A0, $A0, $E0, $E0, $80
db $80, $E0, $E0, $20, $FF, $20, $FF, $20
db $FF, $00, $C0, $80, $FD, $10, $00, $00
db $00, $00, $00, $80, $FD, $10, $00, $00
db $00, $00, $00, $00, $FF, $08, $00, $FE
db $20, $10, $0C, $10, $08, $10, $08, $10
db $08, $10, $08, $40, $FD, $16, $C0, $FC
db $1A, $10, $08, $10, $10, $08, $08, $08
db $04, $08, $04, $C0, $00, $00, $01, $80
db $00, $C0, $00, $40, $00, $80, $00, $00
db $FF, $10, $C0, $00, $00, $01, $FA, $F8
db $08, $04, $08, $04, $10, $08, $04, $02
db $04, $02, $08, $04, $80, $FD, $14, $00
db $FD, $18, $10, $08, $20, $10, $00, $FE
db $20, $08, $08, $10, $0C, $18, $00, $03
db $10, $0C, $30, $40, $50, $60, $70, $20
db $38, $38, $38, $50, $38, $68, $38, $80
db $38, $80, $38, $68, $38, $50, $38, $38
db $38, $20, $38, $14, $80, $02, $1C, $80
db $03, $00, $FF, $00, $00, $12, $80, $FF
db $E0, $FE, $12, $40, $30, $00, $00, $14
db $00, $00, $12, $C0, $FD, $08, $00, $FD
db $0C, $27, $0D, $69, $4C, $0E, $03, $C5
db $62, $C5, $62, $A9, $7C, $03, $2C, $68
db $44, $10, $5C, $12, $DD, $62, $19, $00
db $0C, $19, $01, $06, $19, $02, $0C, $19
db $01, $06, $06, $FC, $62, $19, $00, $08
db $19, $01, $04, $19, $02, $08, $19, $01
db $04, $06, $FC, $62, $28, $13, $40, $FC
db $62, $13, $80, $08, $64, $13, $C0, $6D
db $65, $06, $73, $66, $27, $0D, $03, $22
db $E0, $11, $1A, $63, $28, $1A, $3F, $0D
db $F4, $23, $03, $62, $12, $96, $63, $0D
db $F4, $23, $05, $62, $12, $30, $63, $06
db $F4, $63, $28, $10, $3F, $0D, $F4, $23
db $07, $62, $12, $30, $63, $0D, $F4, $23
db $09, $62, $12, $96, $63, $06, $F4, $63
db $0F, $3B, $00, $03, $2C, $68, $44, $01
db $00, $1F, $45, $22, $31, $62, $0D, $AD
db $20, $2B, $62, $24, $0D, $03, $3B, $68
db $44, $01, $05, $1F, $45, $22, $33, $62
db $01, $06, $00, $03, $60, $68, $44, $01
db $05, $1F, $45, $22, $35, $62, $01, $07
db $00, $27, $03, $2C, $68, $44, $01, $03
db $1F, $45, $22, $37, $62, $0D, $E6, $22
db $27, $13, $01, $04, $1F, $45, $22, $39
db $62, $10, $3B, $12, $FA, $63, $18, $28
db $1A, $3F, $0D, $F4, $23, $13, $62, $12
db $B9, $62, $28, $13, $20, $08, $64, $13
db $E0, $6D, $65, $06, $73, $66, $03, $2C
db $68, $44, $01, $00, $1F, $45, $22, $41
db $62, $24, $0D, $03, $94, $68, $44, $0D
db $AD, $20, $3B, $62, $01, $05, $1F, $45
db $22, $43, $62, $01, $06, $00, $03, $2C
db $68, $44, $01, $05, $1F, $45, $22, $45
db $62, $27, $01, $07, $1F, $45, $22, $47
db $62, $03, $B9, $68, $44, $19, $03, $06
db $0D, $E6, $22, $27, $14, $19, $04, $0A
db $19, $03, $06, $0D, $E6, $22, $27, $14
db $19, $04, $0A, $00, $03, $2C, $68, $44
db $19, $02, $10, $19, $01, $06, $19, $00
db $10, $06, $7E, $63, $0F, $3B, $01, $06
db $33, $63, $03, $2C, $68, $44, $01, $00
db $1F, $45, $22, $49, $62, $06, $A1, $63
db $27, $0D, $2E, $55, $40, $12, $35, $64
db $03, $ED, $68, $44, $09, $04, $07, $00
db $00, $19, $00, $08, $0D, $D3, $20, $4B
db $62, $19, $01, $04, $0D, $D3, $20, $4F
db $62, $19, $02, $08, $0D, $D3, $20, $53
db $62, $19, $01, $04, $0A, $24, $23, $0D
db $D3, $20, $5A, $62, $0D, $15, $21, $5E
db $62, $03, $55, $69, $44, $19, $07, $20
db $0D, $03, $22, $E0, $11, $65, $64, $28
db $1A, $3F, $0D, $F4, $23, $0B, $62, $12
db $F9, $64, $0D, $F4, $23, $0D, $62, $12
db $44, $65, $06, $93, $64, $28, $10, $3F
db $0D, $F4, $23, $0F, $62, $12, $93, $64
db $0D, $F4, $23, $11, $62, $12, $44, $65
db $06, $F9, $64, $0D, $5F, $20, $1E, $45
db $03, $21, $69, $44, $01, $07, $00, $0D
db $5F, $20, $1E, $45, $03, $7B, $69, $44
db $01, $07, $00, $0F, $27, $00, $24, $3A
db $0D, $E6, $22, $27, $15, $0D, $CA, $20
db $57, $62, $03, $AF, $69, $44, $19, $05
db $08, $19, $06, $08, $19, $07, $10, $01
db $02, $12, $C7, $64, $1F, $45, $22, $60
db $62, $01, $01, $1F, $45, $22, $62, $62
db $01, $00, $1F, $45, $22, $64, $62, $1F
db $45, $22, $66, $62, $01, $01, $1F, $45
db $22, $68, $62, $01, $00, $1F, $45, $22
db $6A, $62, $11, $E1, $64, $18, $06, $4A
db $65, $18, $28, $1A, $3F, $0D, $F4, $23
db $15, $62, $12, $B9, $62, $28, $13, $60
db $FC, $62, $13, $80, $6D, $65, $06, $73
db $66, $24, $0D, $0D, $AD, $20, $6C, $62
db $03, $AF, $69, $44, $19, $05, $08, $19
db $06, $10, $19, $05, $08, $03, $2C, $68
db $44, $01, $07, $1F, $45, $22, $72, $62
db $03, $AF, $69, $44, $24, $3A, $0D, $E6
db $22, $27, $16, $19, $05, $08, $19, $06
db $08, $19, $07, $10, $01, $02, $1F, $45
db $22, $60, $62, $01, $01, $1F, $45, $22
db $62, $62, $01, $00, $1F, $45, $22, $64
db $62, $06, $E1, $64, $0F, $27, $01, $06
db $96, $64, $0F, $27, $00, $0D, $D3, $20
db $5A, $62, $0D, $15, $21, $5E, $62, $03
db $E7, $69, $44, $19, $07, $20, $06, $96
db $64, $0D, $5F, $20, $1E, $45, $03, $0D
db $6A, $44, $01, $07, $00, $27, $03, $2C
db $68, $44, $01, $00, $1F, $45, $22, $79
db $62, $01, $03, $1F, $45, $22, $7B, $62
db $0F, $1F, $80, $24, $4E, $0D, $E6, $22
db $27, $19, $10, $46, $04, $E6, $72, $0B
db $0F, $46, $00, $22, $5B, $66, $04, $19
db $1C, $01, $19, $1D, $01, $19, $1E, $01
db $19, $1F, $01, $19, $20, $01, $19, $21
db $01, $19, $22, $02, $19, $23, $01, $19
db $24, $01, $19, $25, $01, $19, $26, $01
db $19, $27, $01, $19, $28, $08, $24, $37
db $04, $CA, $78, $0C, $1A, $46, $01, $03
db $27, $09, $04, $0D, $96, $6B, $09, $05
db $0D, $AC, $6B, $05, $02, $0A, $0A, $0D
db $DD, $6B, $24, $39, $04, $E6, $72, $0B
db $0F, $46, $00, $19, $1B, $04, $19, $1A
db $03, $19, $19, $02, $19, $18, $02, $19
db $17, $02, $19, $16, $02, $19, $15, $01
db $19, $14, $01, $19, $13, $01, $19, $07
db $01, $04, $CA, $78, $0C, $1A, $46, $27
db $08, $80, $FE, $0D, $5F, $20, $7D, $62
db $03, $41, $6A, $44, $19, $05, $10, $01
db $07, $00, $0D, $E6, $22, $27, $17, $03
db $2C, $68, $44, $1F, $45, $22, $80, $62
db $27, $10, $5C, $12, $3A, $66, $19, $02
db $0C, $19, $01, $08, $19, $00, $10, $06
db $43, $66, $19, $02, $08, $19, $01, $04
db $19, $00, $08, $18, $28, $1A, $3F, $0D
db $F4, $23, $17, $62, $12, $B9, $62, $28
db $13, $60, $FC, $62, $13, $E0, $08, $64
db $06, $73, $66, $0F, $47, $00, $05, $05
db $0F, $47, $10, $05, $03, $0F, $47, $00
db $05, $05, $0F, $47, $10, $05, $03, $0F
db $47, $00, $00, $27, $03, $2C, $68, $44
db $01, $00, $1F, $45, $22, $74, $62, $0D
db $CA, $20, $76, $62, $24, $0D, $03, $70
db $6A, $44, $19, $05, $08, $19, $06, $08
db $19, $05, $08, $01, $07, $00, $03, $2C
db $68, $44, $0D, $77, $0F, $0D, $24, $5C
db $0D, $E6, $22, $27, $17, $10, $5C, $12
db $B9, $66, $19, $07, $20, $19, $02, $0C
db $19, $01, $08, $19, $00, $10, $06, $C5
db $66, $19, $07, $10, $19, $02, $08, $19
db $01, $04, $19, $00, $08, $18, $28, $1A
db $3F, $0D, $F4, $23, $19, $62, $12, $B9
db $62, $28, $13, $C0, $FC, $62, $13, $E0
db $08, $64, $06, $6D, $65, $01, $07, $0C
db $10, $5C, $12, $F1, $66, $19, $02, $10
db $19, $01, $06, $19, $00, $10, $06, $B9
db $62, $19, $02, $08, $19, $01, $04, $19
db $00, $08, $06, $B9, $62, $09, $06, $19
db $05, $02, $19, $0E, $02, $0A, $0C, $06
db $B9, $62, $04, $CA, $78, $0C, $01, $0F
db $0C, $03, $97, $6A, $44, $24, $3D, $04
db $CA, $78, $0C, $0D, $F9, $1F, $0D, $0F
db $20, $07, $07, $88, $0D, $D1, $1F, $08
db $00, $0D, $8A, $21, $9B, $62, $10, $5C
db $12, $43, $67, $19, $0D, $03, $19, $0C
db $03, $19, $0B, $03, $19, $0C, $03, $06
db $33, $67, $00, $19, $0D, $02, $19, $0C
db $02, $19, $0B, $02, $19, $0C, $02, $06
db $43, $67, $00, $03, $B4, $6A, $44, $06
db $15, $67, $24, $41, $0F, $60, $00, $01
db $0B, $0F, $27, $00, $0D, $8D, $61, $A1
db $62, $03, $D1, $6A, $44, $00, $24, $41
db $0F, $60, $00, $01, $0B, $0F, $26, $02
db $0F, $40, $02, $03, $0D, $6B, $44, $1F
db $45, $22, $AB, $62, $16, $08, $00, $FF
db $2A, $10, $04, $CA, $78, $0C, $0D, $F9
db $1F, $0D, $D1, $1F, $0C, $00, $0D, $0F
db $20, $05, $10, $3F, $19, $08, $08, $03
db $2A, $6B, $44, $01, $09, $09, $04, $0F
db $47, $10, $05, $02, $0F, $47, $00, $05
db $02, $0A, $0F, $1F, $80, $19, $0A, $08
db $16, $0D, $AD, $20, $AD, $62, $06, $8A
db $67, $04, $46, $72, $0B, $0F, $46, $00
db $0D, $0F, $20, $04, $04, $BF, $0D, $D1
db $1F, $08, $08, $08, $00, $FE, $2A, $20
db $26, $C0, $00, $0F, $40, $02, $03, $36
db $6B, $44, $01, $00, $0D, $E6, $22, $27
db $18, $05, $04, $06, $E4, $67, $07, $00
db $00, $0D, $AD, $20, $B3, $62, $03, $7F
db $6B, $44, $0D, $E6, $22, $27, $18, $05
db $04, $06, $FA, $67, $04, $52, $6F, $0B
db $0F, $46, $00, $0F, $47, $10, $19, $04
db $03, $19, $05, $02, $19, $04, $02, $19
db $05, $02, $19, $04, $03, $16, $04, $52
db $6F, $0B, $0F, $47, $10, $19, $05, $08
db $19, $04, $08, $16, $01, $A5, $61, $CD
db $3C, $23, $D0, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $01, $A5, $61, $CD, $3C
db $23, $38, $0D, $62, $2E, $0F, $2A, $B6
db $28, $0E, $CD, $D3, $1E, $C3, $A4, $0D
db $1E, $04, $01, $D9, $7C, $C3, $46, $08
db $1E, $04, $01, $53, $63, $C3, $46, $08
db $01, $A5, $61, $CD, $3C, $23, $38, $24
db $CD, $D3, $1E, $CD, $A4, $0D, $01, $EB
db $61, $CD, $CD, $24, $CB, $7F, $C8, $1E
db $22, $21, $99, $42, $3E, $1E, $CD, $CF
db $05, $F0, $9A, $57, $1E, $04, $01, $61
db $63, $C3, $46, $08, $1E, $04, $01, $D9
db $7C, $C3, $46, $08, $01, $A5, $61, $CD
db $3C, $23, $38, $0D, $62, $2E, $0F, $2A
db $B6, $28, $0E, $CD, $D3, $1E, $C3, $A4
db $0D, $1E, $04, $01, $D9, $7C, $C3, $46
db $08, $1E, $04, $01, $B6, $63, $C3, $46
db $08, $01, $A5, $61, $CD, $3C, $23, $38
db $24, $CD, $D3, $1E, $CD, $A4, $0D, $01
db $EB, $61, $CD, $CD, $24, $CB, $7F, $C8
db $1E, $22, $21, $99, $42, $3E, $1E, $CD
db $CF, $05, $F0, $9A, $57, $1E, $04, $01
db $E4, $63, $C3, $46, $08, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $CD, $A4, $0D
db $01, $A5, $61, $CD, $3C, $23, $38, $21
db $01, $EB, $61, $CD, $A5, $24, $B7, $28
db $10, $06, $40, $1E, $04, $CD, $9C, $1F
db $C0, $1E, $04, $01, $35, $64, $C3, $46
db $08, $1E, $04, $01, $7B, $64, $C3, $46
db $08, $1E, $04, $01, $D9, $7C, $C3, $46
db $08, $01, $A5, $61, $CD, $3C, $23, $38
db $24, $CD, $D3, $1E, $CD, $A4, $0D, $01
db $EB, $61, $CD, $CD, $24, $CB, $7F, $C8
db $1E, $22, $21, $99, $42, $3E, $1E, $CD
db $CF, $05, $F0, $9A, $57, $1E, $04, $01
db $35, $64, $C3, $46, $08, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $CD, $E6, $1E
db $CD, $A4, $0D, $01, $A5, $61, $CD, $3C
db $23, $38, $10, $01, $EB, $61, $CD, $A5
db $24, $B7, $C0, $1E, $04, $01, $87, $64
db $C3, $46, $08, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $01, $A5, $61, $CD, $3C
db $23, $38, $24, $CD, $D3, $1E, $CD, $A4
db $0D, $01, $EB, $61, $CD, $CD, $24, $CB
db $7F, $C8, $1E, $22, $21, $99, $42, $3E
db $1E, $CD, $CF, $05, $F0, $9A, $57, $1E
db $04, $01, $48, $64, $C3, $46, $08, $1E
db $04, $01, $D9, $7C, $C3, $46, $08, $01
db $A5, $61, $CD, $3C, $23, $38, $28, $CD
db $D3, $1E, $CD, $A4, $0D, $01, $EB, $61
db $CD, $CD, $24, $CB, $7F, $C8, $1E, $22
db $21, $99, $42, $3E, $1E, $CD, $CF, $05
db $F0, $9A, $57, $62, $2E, $1F, $36, $44
db $2C, $36, $68, $2C, $36, $2C, $C9, $1E
db $04, $01, $D9, $7C, $C3, $46, $08, $CD
db $E6, $1E, $CD, $A4, $0D, $01, $A5, $61
db $CD, $3C, $23, $38, $10, $01, $EB, $61
db $CD, $A5, $24, $B7, $C0, $1E, $04, $01
db $61, $65, $C3, $46, $08, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $01, $A5, $61
db $CD, $3C, $23, $38, $24, $CD, $D3, $1E
db $CD, $A4, $0D, $01, $EB, $61, $CD, $CD
db $24, $CB, $7F, $C8, $1E, $22, $21, $99
db $42, $3E, $1E, $CD, $CF, $05, $F0, $9A
db $57, $1E, $04, $01, $93, $64, $C3, $46
db $08, $1E, $04, $01, $D9, $7C, $C3, $46
db $08, $01, $A5, $61, $CD, $3C, $23, $38
db $1F, $CD, $EB, $21, $CD, $A4, $0D, $01
db $EB, $61, $CD, $CD, $24, $CB, $7F, $C8
db $1E, $0D, $CD, $7A, $0F, $F0, $9A, $57
db $1E, $04, $01, $1A, $66, $C3, $46, $08
db $1E, $04, $01, $D9, $7C, $C3, $46, $08
db $01, $A5, $61, $CD, $3C, $23, $38, $17
db $CD, $D3, $1E, $CD, $A4, $0D, $01, $EB
db $61, $CD, $CD, $24, $CB, $7F, $C8, $1E
db $04, $01, $96, $66, $C3, $46, $08, $1E
db $04, $01, $D9, $7C, $C3, $46, $08, $CD
db $C5, $21, $CD, $A4, $0D, $01, $C1, $61
db $CD, $5B, $25, $D8, $01, $EF, $61, $CD
db $CD, $24, $B7, $C8, $1E, $04, $01, $6E
db $67, $C3, $46, $08, $CD, $C5, $21, $CD
db $A4, $0D, $01, $C1, $61, $CD, $5B, $25
db $D8, $01, $EF, $61, $CD, $CD, $24, $B7
db $C8, $1E, $04, $01, $5A, $67, $C3, $46
db $08, $CD, $D3, $1E, $CD, $A4, $0D, $01
db $C1, $61, $CD, $5B, $25, $D8, $01, $EF
db $61, $CD, $CD, $24, $CB, $7F, $20, $0E
db $CB, $6F, $C8, $AF, $1E, $0D, $12, $1C
db $12, $1E, $27, $3C, $12, $C9, $1E, $27
db $1A, $3C, $FE, $02, $28, $07, $12, $21
db $A1, $62, $C3, $93, $61, $1E, $04, $01
db $6E, $67, $C3, $46, $08, $01, $C1, $61
db $CD, $5B, $25, $D8, $1E, $26, $1A, $B7
db $28, $03, $3D, $12, $C9, $1E, $47, $1A
db $EE, $10, $12, $1E, $40, $1A, $1E, $26
db $12, $C9, $CD, $D3, $1E, $CD, $A4, $0D
db $01, $CF, $61, $C3, $5B, $25, $CD, $D3
db $1E, $CD, $A4, $0D, $01, $DD, $61, $CD
db $5B, $25, $D8, $01, $F3, $61, $CD, $CD
db $24, $CB, $7F, $20, $0E, $CB, $6F, $C8
db $AF, $1E, $0D, $12, $1C, $12, $3C, $1E
db $40, $12, $C9, $1E, $41, $21, $99, $42
db $3E, $1E, $CD, $CF, $05, $F0, $9A, $57
db $2E, $40, $62, $35, $20, $08, $1E, $04
db $01, $EE, $67, $C3, $46, $08, $2E, $0F
db $62, $36, $00, $2C, $36, $FE, $C9, $62
db $2E, $0F, $2A, $B6, $28, $0C, $CD, $D3
db $1E, $CD, $A4, $0D, $01, $DD, $61, $C3
db $5B, $25, $62, $C3, $BA, $0B, $1E, $45
db $1A, $07, $38, $05, $21, $87, $62, $18
db $03, $21, $91, $62, $1E, $3B, $7D, $12
db $1C, $7C, $12, $C9, $C5, $1E, $3B, $1A
db $6F, $1C, $1A, $67, $44, $4D, $21, $51
db $DB, $1E, $04, $0A, $86, $12, $1C, $23
db $7E, $CE, $00, $12, $03, $21, $53, $DB
db $1E, $07, $0A, $86, $12, $1C, $23, $7E
db $CE, $00, $12, $03, $1E, $3B, $79, $12
db $1C, $78, $12, $C1, $C9, $C5, $CD, $47
db $06, $0E, $00, $06, $34, $90, $38, $03
db $0C, $18, $FA, $79, $E0, $80, $21, $82
db $62, $85, $6F, $30, $01, $24, $06, $00
db $50, $7E, $21, $51, $DB, $86, $4F, $23
db $78, $8E, $47, $3E, $70, $21, $53, $DB
db $86, $5F, $23, $7A, $8E, $57, $C5, $CD
db $46, $16, $C1, $FE, $00, $20, $0B, $F0
db $80, $3C, $FE, $05, $38, $CE, $D6, $05
db $18, $CA, $F0, $9A, $57, $1E, $04, $79
db $12, $C1, $C9, $FF, $02, $00, $00, $00
db $09, $7D, $04, $00, $00, $00, $09, $7D
db $04, $01, $02, $9B, $4D, $03, $33, $4E
db $03, $00, $00, $00, $2A, $4F, $03, $FF
db $02, $9B, $4D, $03, $33, $4E, $03, $00
db $00, $00, $2A, $4F, $03, $F9, $0E, $F9
db $06, $FD, $05, $FB, $04, $00, $02, $00
db $40, $FF, $06, $00, $02, $00, $80, $FF
db $06, $C0, $80, $40, $60, $80, $A0, $C0
db $E0, $40, $60, $80, $A0, $C0, $E0, $40
db $60, $80, $80, $C0, $E0, $00, $FE, $40
db $00, $FD, $60, $08, $04, $04, $02, $08
db $04, $08, $04, $08, $04, $08, $02, $08
db $00, $01, $10, $80, $01, $0C, $00, $00
db $10, $08, $20, $C0, $00, $10, $0C, $80
db $FD, $10, $10, $08, $10, $08, $10, $08
db $08, $10, $08, $00, $01, $10, $80, $01
db $00, $01, $00, $FE, $10, $20, $01, $80
db $FD, $14, $90, $00, $00, $FF, $10, $A0
db $00, $80, $FE, $18, $00, $01, $80, $FF
db $08, $20, $01, $80, $FF, $08, $80, $00
db $00, $FE, $20, $80, $00, $00, $FE, $20
db $10, $0C, $0D, $20, $6D, $03, $6F, $70
db $44, $0D, $1B, $6D, $0D, $69, $4C, $0E
db $03, $EF, $6C, $EF, $6C, $A9, $7C, $27
db $08, $00, $FF, $2A, $20, $03, $6F, $70
db $44, $0D, $E6, $22, $27, $25, $19, $00
db $08, $24, $0D, $03, $7E, $70, $44, $19
db $01, $08, $19, $00, $08, $19, $02, $08
db $0D, $B2, $73, $18, $2A, $00, $29, $00
db $06, $DA, $6C, $AF, $EA, $5D, $DD, $C9
db $AF, $21, $5E, $DD, $22, $77, $C9, $27
db $0F, $27, $03, $0D, $E6, $22, $27, $25
db $03, $6F, $70, $44, $01, $00, $1F, $45
db $22, $83, $6C, $0D, $AD, $20, $7D, $6C
db $03, $B6, $70, $44, $01, $01, $24, $0D
db $00, $0D, $77, $0F, $0D, $03, $E3, $7D
db $44, $01, $02, $1F, $45, $22, $85, $6C
db $0D, $B2, $73, $12, $2B, $6D, $18, $2A
db $00, $29, $00, $28, $1A, $3F, $0D, $F4
db $23, $69, $6C, $12, $EF, $6C, $28, $13
db $60, $7A, $6D, $13, $C0, $C8, $6E, $06
db $AE, $6F, $0D, $E6, $22, $27, $25, $0F
db $40, $00, $27, $01, $00, $1F, $45, $22
db $87, $6C, $19, $01, $08, $19, $00, $08
db $01, $02, $1F, $45, $22, $89, $6C, $27
db $01, $00, $1F, $45, $22, $87, $6C, $19
db $01, $08, $19, $00, $08, $01, $02, $1F
db $45, $22, $89, $6C, $27, $01, $00, $1F
db $45, $22, $8B, $6C, $26, $80, $00, $08
db $80, $FE, $2A, $30, $03, $7E, $70, $44
db $19, $01, $08, $19, $00, $08, $18, $2A
db $00, $03, $6F, $70, $44, $1F, $45, $22
db $8D, $6C, $10, $5C, $12, $F0, $6D, $19
db $03, $10, $19, $01, $04, $0D, $E6, $22
db $27, $1A, $24, $5C, $19, $04, $10, $19
db $09, $08, $19, $07, $10, $06, $06, $6E
db $19, $03, $0C, $19, $01, $02, $0D, $E6
db $22, $27, $1A, $24, $5C, $19, $04, $0C
db $19, $09, $04, $19, $07, $08, $0D, $B2
db $73, $27, $03, $05, $71, $44, $0D, $32
db $10, $0C, $19, $07, $10, $26, $C0, $00
db $2A, $FC, $03, $30, $71, $44, $24, $51
db $0D, $E6, $22, $27, $23, $0D, $E6, $22
db $27, $24, $09, $10, $0D, $E6, $22, $27
db $20, $19, $05, $02, $19, $06, $02, $0A
db $0D, $B2, $73, $10, $5C, $12, $57, $6E
db $0D, $9F, $21, $95, $6C, $0D, $42, $20
db $8F, $6C, $03, $58, $71, $44, $19, $07
db $08, $19, $09, $08, $01, $00, $00, $0B
db $5D, $6E, $06, $40, $6E, $0F, $41, $20
db $0F, $3F, $00, $0F, $26, $08, $0D, $5F
db $20, $9A, $6C, $0D, $9F, $21, $9A, $6C
db $03, $EB, $71, $44, $24, $51, $0D, $E6
db $22, $27, $23, $0D, $E6, $22, $27, $24
db $09, $08, $0D, $E6, $22, $27, $20, $19
db $05, $02, $19, $06, $02, $0A, $0D, $B2
db $73, $0C, $0D, $E6, $22, $27, $25, $03
db $6F, $70, $44, $01, $02, $1F, $45, $22
db $98, $6C, $0D, $B2, $73, $18, $2A, $00
db $29, $00, $28, $1A, $3F, $0D, $F4, $23
db $6B, $6C, $12, $C8, $6E, $0D, $F4, $23
db $6D, $6C, $12, $27, $6D, $0D, $F4, $23
db $6F, $6C, $12, $AE, $6F, $06, $EF, $6C
db $0D, $E6, $22, $27, $25, $0F, $40, $01
db $03, $6F, $70, $44, $27, $01, $00, $1F
db $45, $22, $9D, $6C, $0D, $CA, $20, $9F
db $6C, $01, $01, $03, $B5, $71, $44, $00
db $0D, $B2, $73, $03, $6F, $70, $44, $18
db $10, $5C, $12, $0E, $6F, $19, $02, $0C
db $19, $03, $10, $19, $01, $04, $0D, $E6
db $22, $27, $1B, $24, $5C, $19, $04, $10
db $19, $09, $08, $06, $24, $6F, $19, $02
db $08, $19, $03, $10, $19, $01, $02, $0D
db $E6, $22, $27, $1B, $24, $5C, $19, $04
db $0C, $19, $09, $04, $27, $2A, $08, $03
db $05, $71, $44, $19, $07, $10, $0D, $15
db $21, $A8, $6C, $1F, $45, $22, $A4, $6C
db $03, $30, $71, $44, $26, $80, $00, $2A
db $FC, $24, $51, $0D, $E6, $22, $27, $23
db $0D, $E6, $22, $27, $24, $09, $14, $0D
db $E6, $22, $27, $20, $19, $05, $02, $19
db $06, $02, $0A, $0D, $B2, $73, $10, $5C
db $12, $7A, $6F, $07, $00, $00, $29, $00
db $0D, $42, $20, $AA, $6C, $03, $58, $71
db $44, $19, $07, $08, $19, $09, $08, $01
db $00, $00, $0B, $5D, $6E, $06, $63, $6F
db $03, $6F, $70, $44, $01, $02, $1F, $45
db $22, $A6, $6C, $18, $2A, $00, $29, $00
db $28, $1A, $3F, $0D, $F4, $23, $71, $6C
db $12, $7A, $6D, $0D, $F4, $23, $73, $6C
db $12, $27, $6D, $0D, $F4, $23, $75, $6C
db $12, $AE, $6F, $06, $EF, $6C, $27, $03
db $05, $71, $44, $0D, $32, $10, $0C, $19
db $07, $10, $26, $C0, $00, $2A, $FC, $03
db $30, $71, $44, $24, $51, $0D, $E6, $22
db $27, $23, $0D, $E6, $22, $27, $24, $09
db $10, $0D, $E6, $22, $27, $20, $19, $05
db $02, $19, $06, $02, $0A, $0D, $B2, $73
db $0F, $40, $02, $29, $00, $08, $00, $00
db $06, $24, $6F, $03, $6F, $70, $44, $01
db $02, $1F, $45, $22, $A6, $6C, $18, $2A
db $00, $29, $00, $28, $1A, $3F, $0D, $F4
db $23, $77, $6C, $12, $C8, $6E, $0D, $F4
db $23, $79, $6C, $12, $27, $6D, $0D, $F4
db $23, $7B, $6C, $12, $7A, $6D, $06, $EF
db $6C, $01, $00, $0C, $01, $02, $1F, $45
db $22, $85, $6C, $06, $DA, $6C, $09, $04
db $19, $08, $02, $19, $09, $02, $0A, $0C
db $06, $DA, $6C, $04, $EE, $7B, $0C, $01
db $0B, $0C, $0F, $3F, $00, $06, $43, $70
db $0F, $3F, $02, $0F, $40, $02, $0D, $0F
db $20, $06, $06, $00, $0D, $CE, $72, $04
db $EE, $7B, $0C, $0D, $F9, $1F, $0D, $D1
db $1F, $10, $00, $01, $0A, $03, $92, $72
db $44, $00, $03, $C8, $72, $44, $1F, $45
db $22, $D8, $6C, $1B, $66, $49, $03, $01
db $2B, $6C, $CD, $3C, $23, $D0, $1E, $04
db $01, $D9, $7C, $C3, $46, $08, $01, $2B
db $6C, $CD, $3C, $23, $38, $28, $CD, $D3
db $1E, $CD, $A4, $0D, $01, $55, $6C, $CD
db $CD, $24, $CB, $7F, $C8, $1E, $22, $21
db $99, $42, $3E, $1E, $CD, $CF, $05, $F0
db $9A, $57, $62, $2E, $1F, $36, $44, $2C
db $36, $70, $2C, $36, $6F, $C9, $1E, $04
db $01, $D9, $7C, $C3, $46, $08, $01, $2B
db $6C, $CD, $3C, $23, $38, $3F, $62, $2E
db $0F, $2A, $B6, $20, $04, $2E, $15, $36
db $00, $CD, $D3, $1E, $CD, $A4, $0D, $01
db $55, $6C, $CD, $CD, $24, $CB, $77, $28
db $08, $62, $2E, $0F, $36, $00, $2C, $36
db $00, $CB, $7F, $C8, $1E, $22, $21, $99
db $42, $3E, $1E, $CD, $CF, $05, $F0, $9A
db $57, $62, $2E, $27, $35, $1E, $04, $01
db $49, $6D, $C3, $46, $08, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $01, $2B, $6C
db $CD, $3C, $23, $38, $1B, $CD, $D3, $1E
db $CD, $E6, $1E, $CD, $A4, $0D, $01, $55
db $6C, $CD, $CD, $24, $CB, $6F, $C8, $1E
db $11, $1A, $2F, $3C, $12, $C3, $F9, $1E
db $1E, $04, $01, $D9, $7C, $C3, $46, $08
db $01, $2B, $6C, $CD, $3C, $23, $38, $18
db $CD, $D3, $1E, $CD, $A4, $0D, $01, $55
db $6C, $CD, $CD, $24, $CB, $6F, $C8, $1E
db $11, $1A, $2F, $3C, $12, $C3, $F9, $1E
db $1E, $04, $01, $D9, $7C, $C3, $46, $08
db $01, $2B, $6C, $CD, $3C, $23, $30, $08
db $1E, $04, $01, $D9, $7C, $C3, $46, $08
db $CD, $C5, $21, $CD, $EB, $21, $CD, $A4
db $0D, $01, $55, $6C, $CD, $CD, $24, $CB
db $7F, $20, $0C, $CB, $6F, $C8, $1E, $11
db $1A, $2F, $3C, $12, $C3, $F9, $1E, $1E
db $22, $21, $99, $42, $3E, $1E, $CD, $CF
db $05, $F0, $9A, $57, $1E, $40, $1A, $FE
db $01, $38, $12, $28, $08, $1E, $04, $01
db $EB, $6F, $C3, $46, $08, $1E, $04, $01
db $80, $6F, $C3, $46, $08, $1E, $04, $01
db $92, $6E, $C3, $46, $08, $01, $2B, $6C
db $CD, $3C, $23, $38, $26, $CD, $D3, $1E
db $CD, $A4, $0D, $62, $2E, $0F, $2A, $B6
db $28, $11, $01, $55, $6C, $CD, $CD, $24
db $CB, $77, $C8, $62, $2E, $0F, $36, $00
db $2C, $36, $00, $1E, $04, $01, $E8, $6E
db $C3, $46, $08, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $01, $2B, $6C, $CD, $3C
db $23, $30, $08, $1E, $04, $01, $D9, $7C
db $C3, $46, $08, $CD, $D8, $21, $CD, $C5
db $21, $CD, $A4, $0D, $01, $55, $6C, $CD
db $CD, $24, $CB, $6F, $28, $13, $1E, $3B
db $1A, $2F, $C6, $01, $12, $1C, $1A, $2F
db $CE, $00, $12, $1E, $45, $1A, $2F, $3C
db $12, $62, $2E, $26, $35, $C0, $36, $08
db $CD, $3D, $20, $1E, $3C, $1A, $30, $05
db $07, $30, $2E, $18, $03, $07, $38, $29
db $62, $2E, $3F, $CB, $46, $20, $08, $CB
db $C6, $2E, $11, $36, $00, $18, $1A, $CB
db $86, $2E, $11, $1E, $41, $1A, $77, $2E
db $3B, $7E, $2F, $C6, $01, $22, $7E, $2F
db $CE, $00, $77, $1E, $45, $1A, $2F, $3C
db $12, $CD, $2B, $20, $1E, $3A, $1A, $30
db $04, $07, $D0, $18, $02, $07, $D8, $62
db $2E, $3F, $CB, $4E, $20, $07, $CB, $CE
db $2E, $12, $36, $00, $C9, $CB, $8E, $2E
db $12, $1E, $41, $1A, $77, $2E, $39, $7E
db $2F, $C6, $01, $22, $7E, $2F, $CE, $00
db $77, $C9, $CD, $D3, $1E, $CD, $A4, $0D
db $01, $47, $6C, $CD, $5B, $25, $D8, $01
db $59, $6C, $CD, $CD, $24, $CB, $7F, $20
db $0B, $CB, $6F, $C8, $1E, $11, $1A, $2F
db $3C, $C3, $F9, $1E, $62, $2E, $40, $35
db $28, $06, $2E, $3F, $34, $C3, $CE, $72
db $1E, $04, $01, $62, $70, $C3, $46, $08
db $01, $47, $6C, $C3, $5B, $25, $1E, $3F
db $1A, $07, $5F, $07, $07, $83, $6F, $1E
db $5C, $1A, $5F, $07, $07, $83, $85, $21
db $B0, $6C, $85, $6F, $30, $01, $24, $CD
db $F9, $20, $C3, $BE, $20, $0D, $07, $73
db $0D, $D1, $1F, $FD, $08, $08, $00, $02
db $04, $52, $6F, $0B, $0F, $46, $00, $03
db $17, $73, $44, $19, $FF, $08, $16, $21
db $5D, $DD, $7E, $3C, $E6, $01, $77, $C0
db $1E, $45, $1A, $2F, $3C, $12, $C9, $CD
db $A4, $0D, $01, $2B, $73, $CD, $CD, $24
db $CB, $7F, $C8, $1E, $04, $01, $35, $73
db $C3, $46, $08, $FD, $02, $FE, $02, $07
db $00, $00, $08, $00, $00, $08, $00, $00
db $2A, $E8, $26, $00, $FE, $0D, $32, $10
db $10, $03, $57, $49, $44, $19, $04, $02
db $19, $05, $03, $19, $04, $03, $16, $03
db $6A, $73, $44, $0D, $86, $73, $04, $EE
db $7B, $0C, $0D, $0F, $20, $02, $02, $BF
db $01, $FF, $00, $03, $78, $73, $44, $06
db $53, $73, $01, $76, $73, $CD, $E8, $24
db $01, $47, $6C, $C3, $5B, $25, $F6, $FE
db $01, $84, $73, $CD, $E8, $24, $01, $47
db $6C, $C3, $5B, $25, $0A, $FE, $21, $5E
db $DD, $7E, $B7, $28, $01, $23, $72, $C9
db $0D, $86, $73, $04, $EE, $7B, $0C, $03
db $A4, $73, $44, $0D, $0F, $20, $03, $02
db $BF, $01, $FF, $00, $01, $B0, $73, $CD
db $E8, $24, $01, $47, $6C, $C3, $5B, $25
db $00, $0D, $C5, $21, $5E, $DD, $7E, $B7
db $28, $0D, $36, $00, $67, $2E, $00, $7E
db $FE, $FF, $28, $03, $CD, $BA, $0B, $21
db $5F, $DD, $7E, $B7, $28, $0D, $36, $00
db $67, $2E, $00, $7E, $FE, $FF, $28, $03
db $CD, $BA, $0B, $F0, $9A, $57, $C1, $C9
db $FF, $02, $00, $00, $00, $09, $7D, $04
db $00, $00, $00, $09, $7D, $04, $04, $02
db $9B, $4D, $03, $33, $4E, $03, $00, $00
db $00, $2A, $4F, $03, $FF, $02, $D2, $77
db $04, $33, $4E, $03, $00, $00, $00, $2A
db $4F, $03, $F9, $0A, $F7, $08, $F9, $08
db $F9, $06, $00, $00, $02, $00, $40, $FF
db $07, $00, $00, $02, $00, $80, $FF, $07
db $00, $02, $00, $03, $80, $00, $C0, $00
db $0C, $80, $01, $05, $0A, $10, $0C, $10
db $08, $08, $04, $40, $28, $38, $28, $00
db $FF, $00, $FE, $20, $40, $10, $00, $01
db $10, $20, $01, $20, $10, $20, $10, $10
db $08, $00, $02, $80, $02, $10, $14, $00
db $FF, $10, $E0, $FF, $80, $FF, $08, $70
db $50, $18, $80, $02, $C0, $FF, $00, $FF
db $10, $4C, $20, $80, $FE, $0C, $00, $FF
db $10, $3C, $20, $0F, $60, $3F, $27, $03
db $D8, $77, $44, $0D, $69, $4C, $0E, $03
db $7E, $74, $7E, $74, $A9, $7C, $19, $00
db $04, $19, $01, $0C, $19, $00, $04, $19
db $02, $0C, $06, $6E, $74, $28, $13, $60
db $99, $74, $13, $A0, $5C, $75, $06, $E5
db $75, $27, $0D, $2A, $7B, $0D, $19, $55
db $30, $12, $AC, $74, $28, $13, $C0, $B4
db $74, $06, $52, $75, $28, $13, $40, $B4
db $74, $06, $52, $75, $0D, $38, $7B, $03
db $59, $78, $44, $0D, $44, $7B, $20, $74
db $19, $00, $04, $0D, $44, $7B, $24, $74
db $19, $01, $0C, $0D, $44, $7B, $20, $74
db $19, $00, $04, $0D, $44, $7B, $24, $74
db $19, $02, $0C, $0D, $44, $7B, $20, $74
db $19, $00, $04, $0D, $44, $7B, $24, $74
db $19, $01, $0C, $0D, $44, $7B, $20, $74
db $19, $00, $04, $0D, $44, $7B, $24, $74
db $19, $02, $0C, $28, $13, $40, $45, $75
db $0D, $44, $7B, $20, $74, $19, $00, $04
db $0D, $44, $7B, $24, $74, $19, $01, $0C
db $0D, $44, $7B, $20, $74, $19, $00, $04
db $0D, $44, $7B, $24, $74, $19, $02, $0C
db $28, $13, $80, $45, $75, $0D, $44, $7B
db $20, $74, $19, $00, $04, $0D, $44, $7B
db $24, $74, $19, $01, $0C, $0D, $44, $7B
db $20, $74, $19, $00, $04, $0D, $44, $7B
db $24, $74, $19, $02, $0C, $18, $29, $00
db $2A, $00, $28, $13, $80, $5C, $75, $06
db $E5, $75, $0D, $3E, $7B, $03, $ED, $77
db $44, $06, $BB, $74, $27, $0D, $2A, $7B
db $0D, $74, $7B, $0D, $DA, $7B, $28, $74
db $03, $DF, $78, $44, $0F, $26, $10, $19
db $00, $04, $19, $01, $0C, $19, $00, $04
db $19, $02, $0C, $06, $6F, $75, $27, $18
db $01, $00, $03, $D8, $77, $44, $1F, $45
db $22, $2D, $74, $0D, $32, $10, $F8, $03
db $92, $79, $44, $19, $03, $10, $07, $00
db $00, $29, $00, $1F, $45, $22, $2F, $74
db $19, $00, $02, $26, $00, $04, $19, $04
db $02, $24, $3E, $0D, $E6, $22, $27, $1C
db $01, $05, $0D, $D3, $20, $37, $74, $0D
db $15, $21, $3B, $74, $0F, $60, $2D, $03
db $A5, $79, $44, $1F, $45, $22, $31, $74
db $08, $00, $FF, $0D, $42, $20, $3D, $74
db $03, $C1, $79, $44, $1F, $45, $22, $33
db $74, $03, $DE, $77, $44, $1F, $45, $22
db $35, $74, $06, $C4, $76, $03, $D8, $77
db $44, $27, $19, $00, $02, $19, $01, $06
db $19, $00, $02, $19, $02, $06, $27, $19
db $00, $02, $19, $01, $06, $19, $00, $02
db $19, $02, $06, $10, $5C, $12, $22, $76
db $27, $19, $00, $02, $19, $01, $06, $19
db $00, $02, $19, $02, $06, $27, $19, $00
db $02, $19, $01, $06, $19, $00, $02, $19
db $02, $06, $26, $00, $FE, $0D, $32, $10
db $20, $03, $F7, $79, $44, $19, $04, $10
db $01, $00, $03, $D8, $77, $44, $1F, $45
db $22, $47, $74, $24, $36, $22, $6E, $76
db $04, $03, $18, $7A, $44, $0D, $D3, $20
db $49, $74, $10, $5C, $12, $5B, $76, $19
db $03, $0A, $19, $00, $02, $19, $04, $0C
db $06, $64, $76, $19, $03, $08, $19, $00
db $02, $19, $04, $06, $0D, $15, $21, $4D
db $74, $03, $32, $7A, $44, $00, $05, $04
db $0D, $E6, $22, $27, $21, $06, $6E, $76
db $18, $29, $00, $2A, $00, $28, $13, $40
db $6E, $74, $13, $60, $99, $74, $13, $A0
db $5C, $75, $06, $E5, $75, $0D, $77, $0F
db $0E, $0D, $E6, $22, $27, $1D, $0F, $60
db $2D, $03, $DE, $77, $44, $19, $06, $02
db $19, $08, $02, $19, $06, $02, $19, $08
db $02, $01, $06, $26, $C0, $FF, $0D, $CA
db $20, $4F, $74, $0F, $40, $02, $03, $5E
db $7A, $44, $00, $03, $DE, $77, $44, $1F
db $45, $22, $57, $74, $08, $00, $00, $0F
db $60, $3F, $03, $94, $7A, $44, $26, $00
db $FE, $19, $05, $02, $26, $00, $02, $05
db $04, $26, $00, $FE, $05, $02, $03, $D8
db $77, $44, $24, $4D, $19, $00, $04, $01
db $01, $1F, $45, $22, $43, $74, $19, $00
db $04, $01, $02, $1F, $45, $22, $45, $74
db $18, $29, $00, $2A, $00, $28, $13, $40
db $6E, $74, $13, $A0, $99, $74, $06, $5C
db $75, $0F, $60, $3F, $01, $00, $0C, $09
db $08, $19, $08, $02, $19, $06, $02, $0A
db $0C, $06, $6E, $74, $04, $1A, $7D, $0C
db $01, $09, $0C, $0D, $0F, $20, $08, $0A
db $08, $04, $1A, $7D, $0C, $0D, $F9, $1F
db $26, $40, $02, $29, $00, $22, $49, $77
db $04, $03, $A3, $7A, $44, $19, $07, $10
db $0D, $32, $10, $F8, $05, $18, $29, $00
db $00, $05, $08, $0D, $E6, $22, $27, $21
db $06, $49, $77, $24, $19, $0D, $0F, $20
db $05, $05, $00, $01, $0A, $22, $3B, $5F
db $1D, $0F, $40, $02, $26, $80, $FF, $08
db $80, $FE, $0D, $5F, $20, $59, $74, $03
db $C1, $7A, $44, $00, $22, $3B, $5F, $1D
db $03, $EB, $7A, $44, $1F, $45, $22, $61
db $74, $1B, $66, $49, $03, $0D, $0F, $20
db $08, $0A, $00, $04, $1A, $7D, $0C, $0D
db $F9, $1F, $01, $07, $26, $60, $FF, $0D
db $CA, $20, $63, $74, $22, $3B, $5F, $1D
db $03, $F1, $7A, $44, $00, $0D, $0F, $20
db $05, $05, $00, $0D, $F9, $1F, $26, $C0
db $FF, $0D, $CA, $20, $66, $74, $22, $3B
db $5F, $1D, $03, $0F, $7B, $44, $01, $0A
db $00, $22, $3B, $5F, $1D, $03, $EB, $7A
db $44, $1F, $45, $22, $69, $74, $1B, $66
db $49, $03, $01, $0A, $1B, $9B, $4D, $03
db $01, $E0, $73, $C3, $5B, $25, $01, $E0
db $73, $CD, $3C, $23, $D0, $1E, $04, $01
db $D9, $7C, $C3, $46, $08, $CD, $A4, $0D
db $01, $E0, $73, $CD, $5B, $25, $01, $0A
db $74, $CD, $A5, $24, $CB, $6F, $C8, $62
db $2E, $43, $CB, $FE, $1E, $07, $1A, $21
db $53, $DB, $86, $FE, $65, $30, $2D, $FE
db $1B, $38, $05, $CD, $2B, $20, $30, $24
db $62, $2E, $43, $1E, $45, $1A, $CB, $86
db $07, $38, $24, $1E, $0F, $62, $2E, $0D
db $2A, $12, $1C, $3A, $12, $AF, $22, $77
db $62, $2E, $1F, $36, $44, $2C, $36, $78
db $2C, $36, $59, $C9, $62, $2E, $43, $1E
db $45, $1A, $CB, $C6, $07, $38, $DC, $1E
db $0F, $62, $2E, $0D, $2A, $2F, $C6, $01
db $12, $1C, $3A, $2F, $CE, $00, $12, $18
db $D4, $CD, $A4, $0D, $01, $E0, $73, $CD
db $5B, $25, $01, $0A, $74, $CD, $CD, $24
db $CB, $77, $C2, $7F, $78, $CB, $7F, $20
db $0E, $1E, $07, $1A, $21, $53, $DB, $86
db $FE, $1B, $38, $03, $FE, $65, $D8, $62
db $2E, $43, $CB, $BE, $1E, $04, $1A, $21
db $51, $DB, $86, $FE, $1C, $38, $0F, $FE
db $84, $30, $2F, $CD, $C0, $1E, $1E, $45
db $1A, $07, $38, $2B, $18, $05, $1E, $45
db $3E, $40, $12, $1E, $43, $1A, $0F, $38
db $24, $1E, $0D, $62, $2E, $0F, $2A, $12
db $1C, $3A, $12, $AF, $22, $77, $62, $2E
db $1F, $36, $44, $2C, $36, $77, $2C, $36
db $ED, $C9, $1E, $45, $3E, $C0, $12, $1E
db $43, $1A, $0F, $38, $DC, $1E, $0D, $62
db $2E, $0F, $2A, $2F, $C6, $01, $12, $1C
db $3A, $2F, $CE, $00, $12, $18, $D4, $CD
db $D8, $21, $CD, $C5, $21, $CD, $A4, $0D
db $01, $E0, $73, $CD, $5B, $25, $01, $0A
db $74, $CD, $CD, $24, $2E, $26, $62, $35
db $C0, $36, $10, $2E, $40, $35, $28, $1B
db $06, $08, $1E, $07, $CD, $9C, $1F, $30
db $1A, $06, $40, $1E, $04, $CD, $9C, $1F
db $30, $11, $06, $30, $1E, $04, $CD, $9C
db $1F, $38, $08, $1E, $04, $01, $7E, $75
db $C3, $46, $08, $1E, $45, $1A, $E0, $80
db $1E, $43, $1A, $E0, $81, $CD, $74, $7B
db $1E, $45, $1A, $21, $80, $FF, $BE, $28
db $28, $62, $2E, $3F, $CB, $46, $20, $0D
db $CB, $C6, $2E, $11, $36, $00, $1E, $45
db $F0, $80, $12, $18, $14, $CB, $86, $2E
db $11, $1E, $41, $1A, $77, $2E, $3B, $7E
db $2F, $C6, $01, $22, $7E, $2F, $CE, $00
db $77, $CD, $2B, $20, $1E, $3A, $1A, $30
db $04, $07, $D0, $18, $02, $07, $D8, $62
db $2E, $3F, $CB, $4E, $20, $07, $CB, $CE
db $2E, $12, $36, $00, $C9, $CB, $8E, $2E
db $12, $1E, $41, $1A, $77, $2E, $39, $7E
db $2F, $C6, $01, $22, $7E, $2F, $CE, $00
db $77, $C9, $CD, $E6, $1E, $CD, $A4, $0D
db $01, $E0, $73, $CD, $5B, $25, $D8, $01
db $0A, $74, $C3, $CD, $24, $CD, $E6, $1E
db $CD, $A4, $0D, $01, $E0, $73, $CD, $3C
db $23, $38, $06, $01, $0A, $74, $C3, $CD
db $24, $1E, $04, $01, $D9, $7C, $C3, $46
db $08, $01, $E0, $73, $CD, $3C, $23, $38
db $26, $CD, $EB, $21, $CD, $A4, $0D, $01
db $0A, $74, $CD, $CD, $24, $CB, $7F, $20
db $0A, $1E, $07, $1A, $21, $53, $DB, $86
db $FE, $65, $D8, $62, $2E, $1F, $36, $44
db $2C, $36, $77, $2C, $36, $DE, $C9, $1E
db $04, $01, $D9, $7C, $C3, $46, $08, $CD
db $E6, $1E, $CD, $A4, $0D, $01, $E0, $73
db $CD, $5B, $25, $01, $0A, $74, $CD, $CD
db $24, $CB, $6F, $C8, $62, $2E, $1F, $36
db $44, $2C, $36, $77, $2C, $36, $D8, $C9
db $CD, $A4, $0D, $01, $E0, $73, $CD, $5B
db $25, $01, $0A, $74, $CD, $CD, $24, $CB
db $6F, $C8, $1E, $04, $01, $8D, $76, $C3
db $46, $08, $CD, $E6, $1E, $CD, $A4, $0D
db $01, $E0, $73, $CD, $5B, $25, $01, $0A
db $74, $CD, $CD, $24, $CB, $6F, $20, $0E
db $62, $2E, $0D, $2A, $B6, $C0, $1E, $04
db $01, $78, $76, $C3, $46, $08, $1E, $04
db $01, $8D, $76, $C3, $46, $08, $01, $E0
db $73, $CD, $3C, $23, $38, $26, $CD, $D3
db $1E, $CD, $A4, $0D, $01, $0A, $74, $CD
db $CD, $24, $CB, $7F, $C8, $62, $2E, $40
db $35, $28, $09, $21, $52, $74, $CD, $F9
db $20, $C3, $BE, $20, $1E, $04, $01, $BB
db $76, $C3, $46, $08, $1E, $04, $01, $D9
db $7C, $C3, $46, $08, $CD, $A4, $0D, $01
db $E0, $73, $CD, $5B, $25, $01, $0A, $74
db $C3, $A5, $24, $CD, $E6, $1E, $CD, $A4
db $0D, $01, $FC, $73, $CD, $5B, $25, $D8
db $01, $0E, $74, $CD, $CD, $24, $CB, $6F
db $C8, $1E, $04, $01, $53, $77, $C3, $46
db $08, $CD, $EB, $21, $CD, $A4, $0D, $01
db $FC, $73, $CD, $5B, $25, $D8, $CD, $25
db $1A, $CB, $7F, $C8, $2E, $40, $62, $35
db $28, $09, $21, $5C, $74, $CD, $F9, $20
db $C3, $BE, $20, $1E, $04, $01, $74, $77
db $C3, $46, $08, $01, $FC, $73, $C3, $5B
db $25, $CD, $D3, $1E, $CD, $A4, $0D, $01
db $FC, $73, $CD, $5B, $25, $D8, $01, $0E
db $74, $CD, $CD, $24, $CB, $7F, $C8, $1E
db $04, $01, $A5, $77, $C3, $46, $08, $CD
db $D3, $1E, $CD, $A4, $0D, $01, $FC, $73
db $CD, $5B, $25, $D8, $CD, $25, $1A, $CB
db $7F, $C8, $1E, $04, $01, $C1, $77, $C3
db $46, $08, $CD, $2B, $20, $2E, $43, $62
db $30, $03, $CB, $86, $C9, $CB, $C6, $C9
db $62, $2E, $43, $CB, $FE, $C9, $62, $2E
db $43, $CB, $BE, $C9, $0A, $6F, $03, $0A
db $67, $03, $1E, $43, $1A, $07, $D2, $F0
db $20, $1E, $5C, $1A, $07, $85, $6F, $30
db $01, $24, $1E, $43, $1A, $0F, $1E, $0F
db $38, $06, $2A, $12, $1C, $2A, $12, $C9
db $2A, $2F, $C6, $01, $12, $1C, $2A, $2F
db $CE, $00, $12, $C9, $C5, $26, $A0, $2E
db $04, $1E, $45, $1A, $07, $38, $2E, $2A
db $D6, $30, $4F, $7E, $DE, $00, $38, $44
db $47, $79, $21, $51, $DB, $96, $5F, $23
db $78, $9E, $38, $38, $7B, $FE, $1C, $38
db $33, $1E, $04, $1A, $91, $1C, $1A, $98
db $30, $04, $3E, $40, $18, $02, $3E, $C0
db $1E, $45, $12, $C1, $C9, $2A, $C6, $30
db $4F, $7E, $CE, $00, $47, $79, $21, $51
db $DB, $96, $FE, $64, $38, $DB, $26, $A0
db $2E, $04, $2A, $D6, $30, $4F, $7E, $DE
db $00, $47, $18, $CD, $26, $A0, $2E, $04
db $2A, $C6, $30, $4F, $7E, $CE, $00, $47
db $18, $BF, $0A, $6F, $03, $0A, $67, $03
db $2A, $1E, $11, $12, $1C, $12, $1E, $41
db $12, $1E, $45, $1A, $07, $1E, $3B, $38
db $07, $2A, $12, $1C, $3A, $12, $18, $0B
db $2A, $2F, $C6, $01, $12, $1C, $3A, $2F
db $CE, $00, $12, $1E, $43, $1A, $0F, $1E
db $39, $38, $07, $2A, $12, $1C, $2A, $12
db $18, $0B, $2A, $2F, $C6, $01, $12, $1C
db $2A, $2F, $CE, $00, $12, $1E, $5C, $1A
db $85, $6F, $30, $01, $24, $1E, $40, $7E
db $12, $AF, $1D, $12, $C9, $17, $FF, $0D
db $0F, $44, $FF, $0D, $5F, $22, $0D, $72
db $22, $0D, $A7, $7E, $0D, $F6, $7E, $0F
db $60, $2D, $0D, $D4, $7E, $0D, $4E, $4C
db $0D, $AC, $7E, $12, $6B, $7C, $27, $0D
db $5F, $20, $1E, $45, $10, $5B, $1E, $07
db $22, $48, $22, $48, $9A, $58, $8B, $5E
db $DD, $66, $19, $70, $09, $77, $03, $0E
db $7E, $44, $00, $10, $5B, $0E, $07, $F9
db $45, $54, $4E, $5D, $56, $40, $5C, $B9
db $62, $DA, $6C, $6B, $74, $16, $10, $5B
db $0E, $07, $FA, $45, $55, $4E, $5D, $56
db $40, $5C, $07, $67, $DA, $6C, $C4, $76
db $16, $18, $03, $E3, $7D, $44, $10, $5B
db $0E, $07, $F9, $45, $54, $4E, $5D, $56
db $8E, $5E, $E0, $66, $1C, $70, $6E, $74
db $16, $0D, $B2, $4C, $12, $C1, $7C, $10
db $5B, $0E, $07, $F9, $45, $54, $4E, $5D
db $56, $40, $5C, $B9, $62, $DA, $6C, $6E
db $74, $0D, $41, $4D, $0F, $40, $02, $10
db $5B, $0E, $07, $39, $46, $6A, $4E, $A3
db $56, $74, $5C, $EC, $62, $6E, $6D, $8D
db $74, $0F, $41, $01, $1C, $F6, $7C, $04
db $10, $5B, $1E, $07, $25, $48, $69, $50
db $9D, $58, $AA, $5E, $FD, $66, $26, $70
db $0F, $77, $0F, $41, $00, $00, $03, $23
db $23, $40, $18, $0D, $72, $22, $0F, $60
db $3F, $0D, $E6, $22, $27, $04, $24, $34
db $1D, $0D, $7B, $22, $0F, $4B, $00, $0F
db $4A, $00, $08, $00, $00, $0D, $16, $4D
db $10, $46, $04, $83, $77, $0B, $0F, $46
db $00, $24, $11, $0F, $47, $10, $09, $04
db $19, $00, $02, $19, $01, $02, $19, $02
db $02, $19, $03, $02, $19, $04, $02, $19
db $05, $02, $19, $06, $02, $19, $07, $02
db $0A, $0F, $47, $00, $1A, $46, $10, $5B
db $1E, $07, $31, $48, $75, $50, $AA, $58
db $C6, $5E, $0A, $67, $33, $70, $1C, $77
db $07, $00, $00, $08, $00, $FE, $0D, $5F
db $20, $1E, $45, $03, $43, $7E, $44, $0F
db $60, $00, $0F, $61, $40, $0F, $4C, $01
db $0D, $82, $22, $00, $03, $78, $7E, $44
db $24, $0E, $05, $B4, $0F, $1F, $80, $1B
db $52, $43, $05, $17, $FF, $0D, $0F, $61
db $00, $0D, $0F, $20, $08, $08, $00, $0F
db $4C, $01, $10, $5B, $0E, $26, $38, $48
db $40, $48, $95, $48, $9D, $48, $2F, $49
db $C2, $48, $A5, $48, $7C, $50, $B4, $50
db $F3, $50, $01, $51, $A6, $51, $B1, $58
db $B9, $58, $C1, $58, $CD, $5E, $D8, $5E
db $E3, $5E, $23, $5F, $11, $67, $53, $67
db $85, $67, $B9, $67, $C1, $67, $04, $68
db $1E, $68, $3A, $70, $40, $70, $23, $77
db $85, $77, $33, $49, $CF, $51, $ED, $72
db $60, $4D, $2A, $5B, $4F, $73, $63, $73
db $90, $73, $16, $1E, $5B, $1A, $07, $21
db $00, $7E, $85, $6F, $30, $01, $24, $2A
db $4F, $46, $CD, $3C, $23, $D0, $1E, $04
db $01, $D9, $7C, $CD, $46, $08, $37, $C9
db $23, $45, $68, $4D, $33, $55, $8E, $5B
db $A5, $61, $2B, $6C, $E0, $73, $CD, $E3
db $7D, $D8, $CD, $EB, $21, $CD, $A4, $0D
db $1E, $5B, $1A, $21, $35, $7E, $07, $85
db $6F, $30, $01, $24, $2A, $46, $4F, $CD
db $CD, $24, $CB, $7F, $C8, $1E, $04, $01
db $91, $7C, $C3, $46, $08, $4D, $45, $92
db $4D, $6B, $55, $AA, $5B, $EB, $61, $55
db $6C, $0A, $74, $CD, $78, $7E, $D8, $CD
db $EB, $21, $CD, $A4, $0D, $1E, $5B, $1A
db $21, $6A, $7E, $07, $85, $6F, $30, $01
db $24, $2A, $46, $4F, $CD, $CD, $24, $CB
db $7F, $C8, $1E, $04, $01, $74, $7D, $C3
db $46, $08, $4D, $45, $92, $4D, $6B, $55
db $AA, $5B, $EB, $61, $55, $6C, $0A, $74
db $1E, $5B, $1A, $07, $21, $99, $7E, $85
db $6F, $30, $01, $24, $2A, $4F, $46, $CD
db $5B, $25, $D8, $FA, $2C, $DD, $CB, $5F
db $C8, $1E, $03, $01, $33, $4E, $C3, $46
db $08, $3F, $45, $84, $4D, $41, $55, $9C
db $5B, $B3, $61, $39, $6C, $EE, $73, $7A
db $EA, $61, $DD, $C9, $C5, $1E, $5B, $1A
db $21, $C6, $7E, $07, $85, $6F, $30, $01
db $24, $2A, $46, $4F, $CD, $91, $24, $E6
db $80, $1E, $27, $12, $C1, $C9, $4D, $45
db $92, $4D, $6B, $55, $AA, $5B, $EB, $61
db $55, $6C, $0A, $74, $1E, $5B, $1A, $07
db $21, $E8, $7E, $85, $6F, $30, $01, $24
db $1E, $5E, $2A, $12, $1C, $2A, $12, $C9
db $08, $08, $08, $0A, $06, $0C, $08, $0A
db $07, $0B, $08, $08, $06, $0C, $AF, $EA
db $60, $DD, $C9, $FF, $FF, $FF, $FF, $FF
db $06, $04, $00, $00, $60, $04, $80, $00
db $00, $00, $10, $00, $00, $00, $04, $04
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $DF, $FF, $FF, $FF, $DF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $02, $00, $46, $00, $01, $00, $0C, $00
db $00, $00, $24, $20, $00, $00, $02, $02
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FD, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $80, $00, $01, $02, $40, $00, $82, $00
db $00, $41, $08, $00, $00, $10, $84, $02
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FB, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $16, $00, $40, $21, $00, $00, $00, $08
db $00, $00, $24, $08, $01, $00, $01, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $00, $00, $00, $00, $00, $00, $00, $00
db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
db $FF, $FF, $FF, $FF, $FF, $BF, $FF, $FF
db $BF, $FF, $FF, $FF, $DF, $FF, $F9, $DF
db $FF, $FF, $DF, $FF, $FF, $FF, $FF, $FF
| 47.952706 | 47 | 0.375126 |
d1f9defb99f3ca84f48dbf53e3b7157f010b2cfb | 708 | asm | Assembly | oeis/238/A238846.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/238/A238846.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/238/A238846.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A238846: Expansion of (1-2*x)/(1-3*x+x^2)^2.
; 1,4,13,40,120,354,1031,2972,8495,24110,68016,190884,533293,1484020,4115185,11375764,31358376,86223942,236540915,647556620,1769374931,4826148314,13142564448,35736448200,97037995225,263156279524,712795854421,1928547574912,5212430732760,14074179919530,37966831051871,102331044018044,275583771322103,741587950125830,1994125649268240,5358458028139884,14389309956321541,38615987373874132,103570137243278905,277622364056847340,743769288951939336,1991574565172114574,5330149259659159883,14258568710716487660
add $0,1
lpb $0
mov $2,$0
sub $0,1
seq $2,59502 ; a(n) = (3*n*F(2n-1) + (3-n)*F(2n))/5 where F() = Fibonacci numbers A000045.
add $1,$2
lpe
mov $0,$1
| 59 | 501 | 0.800847 |
c4db0607bec82ccafc796e78394fab7a1a17c928 | 9,399 | asm | Assembly | base/ntos/ke/amd64/start.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/ntos/ke/amd64/start.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/ntos/ke/amd64/start.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | title "System Startup"
;++
;
; Copyright (c) 2000 Microsoft Corporation
;
; Module Name:
;
; start.asm
;
; Abstract:
;
; This module implements the code necessary to initially startup the NT
; system on an AMD64 system.
;
; Author:
;
; David N. Cutler (davec) 22-Sep-2000
;
; Environment:
;
; Kernel mode only.
;
;--
include ksamd64.inc
extern KdInitSystem:proc
extern KeLoaderBlock:qword
extern KiBarrierWait:dword
extern KiIdleLoop:proc
extern KiInitializeBootStructures:proc
extern KiInitializeKernel:proc
extern KiInitialPCR:byte
TotalFrameLength EQU (LEGACY_SAVE_AREA_LENGTH + KEXCEPTION_FRAME_LENGTH + KSWITCH_FRAME_LENGTH)
subttl "System Startup"
;++
;
; Routine Description:
;
; This routine is called at system startup to perform early initialization
; and to inititialize the kernel debugger. This allows breaking into the
; kernel debugger very early during system startup. After kernel debugger
; initialization, kernel initialization is performed. On return from kernel
; initialization the idle loop is entered. The idle loop begins execution
; and immediately finds the system startup (phase 1) thread ready to run.
; Phase 1 initialization is performed and all other processors are started.
; As each process starts it also passes through the system startup code, but
; it does not initialization the kernel debugger.
;
; Arguments:
;
; LoaderBlock (rcx) - Supplies a pointer to the loader block.
;
; Implicit Arguments:
;
; When the system starts up the loader has done some initialization. In
; particular all structures have at least been zeroed and the GDT and
; TSS have been completely initialized.
;
; The loader block has been reformatted by the loader into a 64-bit loader
; block and all pertinent fields have been filled in.
;
; The address of the PRCB is passed in the loader block (only for processors
; other than zero).
;
; The address of the idle thread and idle process are passed in the loader
; block (only for processors other than zero).
;
; The GDT and IDT address and limits are contained in the gdtr and idtr
; registers.
;
; The address of the TSS must be extraced from the appropriate GDT entry
; and stored in the PCR.
;
; The stack register (RSP) is loaded with the idle thread stack and the
; kernel stack field of the loader block contains the address of the DPC
; stack.
;
; Return Value:
;
; None - function does not return.
;
;--
SsFrame struct
P1Home dq ? ;
P2Home dq ? ;
P3Home dq ? ;
P4Home dq ? ;
P5 dq ? ; parameter 5
P6 dq ? ; parameter 6
Fill dq ? ; fill to 8 mode 16
SsFrame ends
NESTED_ENTRY KiSystemStartup, INIT
alloc_stack (sizeof SsFrame) ; allocate stack frame
END_PROLOGUE
;
; Save the address of the loader block.
;
; N.B. This is the same address for all processors.
;
mov KeLoaderBlock, rcx ; save loader block address
;
; Initialize PCR self address and the current PRCB address.
;
mov rdx, LpbPrcb[rcx] ; get specified PRCB address
lea rax, KiInitialPCR + PcPrcb ; get builtin PRCB address
test rdx, rdx ; test if PRCB address specified
cmovz rdx, rax ; if z, set builtin PRCB address
mov LpbPrcb[rcx], rdx ; set loader block PRCB address
mov r8, rdx ; copy PRCB address
sub rdx, PcPrcb ; compute PCR address
mov PcSelf[rdx], rdx ; set PCR self address
mov PcCurrentPrcb[rdx], r8 ; set current PRCB address
;
; Initialize kernel special registers and the address of the GDT, TSS, and
; IDT in the PRCB and PCR.
;
; N.B. The debug registers are zeroed in the PRCB.
;
mov r8, cr0 ; save CR0
mov PcCr0[rdx], r8 ;
mov r8, cr2 ; save CR2
mov PcCr2[rdx], r8 ;
mov r8, cr3 ; save CR3
mov PcCr3[rdx], r8 ;
mov r8, cr4 ; save CR4
mov PcCr4[rdx], r8 ;
sgdt PcGdtrLimit[rdx] ; save GDT limit and base
mov r8, PcGdtrBase[rdx] ; set GDT base address
mov PcGdt[rdx], r8 ;
sidt PcIdtrLimit[rdx] ; save IDT limit and base
mov r9, PcIdtrBase[rdx] ; set IDT base address
mov PcIdt[rdx], r9 ;
str word ptr PcTr[rdx] ; save TR selector
sldt word ptr PcLdtr[rdx] ; save LDT selector
mov dword ptr PcMxCsr[rdx], INITIAL_MXCSR ; set initial MXCSR
;
; Set connical selector values (note CS, GS, and SS are already set).
;
mov ax, KGDT64_R3_DATA or RPL_MASK ;
mov ds, ax ;
mov es, ax ;
mov ax, KGDT64_R3_CMTEB or RPL_MASK ;
mov fs, ax ;
;
; Load a NULL selector into the LDT.
;
xor eax, eax ; set NULL selector for LDT
lldt ax ;
;
; Extract TSS address from GDT entry and store in PCR.
;
mov ax, KGDT64_SYS_TSS + KgdtBaseLow[r8] ; set low 16-bits
mov PcTss[rdx], ax ;
mov al, KGDT64_SYS_TSS + KgdtBaseMiddle[r8] ; set middle 8-bits
mov PcTss + 2[rdx], al ;
mov al, KGDT64_SYS_TSS + KgdtBaseHigh[r8] ; set high 8-bits
mov PcTss + 3[rdx], al ;
mov eax, KGDT64_SYS_TSS +KgdtBaseUpper[r8] ; set upper 32-bits
mov PcTss + 4[rdx], eax ;
;
; Initialize the GS base and swap addresses.
;
mov eax, edx ; set low 32-bits of address
shr rdx, 32 ; set high 32-bits of address
mov ecx, MSR_GS_BASE ; get GS base address MSR number
wrmsr ; write GS base address
mov ecx, MSR_GS_SWAP ; get GS swap base MSR number
wrmsr ; write GS swap base address
;
; Initialize boot structures.
;
mov rcx, KeLoaderBlock ; set loader block address
call KiInitializeBootStructures ; initialize boot structures
;
; Initialize the kernel debugger if this is processor zero.
;
xor ecx, ecx ; set phase to 0
mov rdx, KeLoaderBlock ; set loader block address
call KdInitSystem ; initialize debugger
;
; Raise IRQL to high level and initialize the kernel.
;
KiSS10: mov ecx, HIGH_LEVEL ; set high IRQL
SetIrql ;
;
; Reserve space for idle thread stack initialization.
;
; N.B. This reservation ensures that the initialization of the thread stack
; does not overwrite any information on the current stack which is the
; same stack.
;
sub rsp, TotalFrameLength ; allocate stack
;
; Initialize kernel.
;
mov rax, KeLoaderBlock ; set loader block address
mov rcx, LpbProcess[rax] ; set idle process address
mov rdx, LpbThread[rax] ; set idle thread address
mov r8, gs:[PcTss] ; set idle stack address
mov r8, TssRsp0[r8] ;
mov r9, LpbPrcb[rax] ; set PRCB address
mov r10b, PbNumber[r9] ; set processor number
mov SsFrame.P5[rsp], r10 ;
mov SsFrame.P6[rsp], rax ; set loader block address
call KiInitializeKernel ; Initialize kernel
;
; Reset stack to include only the space for the legacy NPX state.
;
mov rcx, gs:[PcTss] ; get TSS address
mov rcx, TssRsp0[rcx] ; get idle stack address
lea rsp, (-LEGACY_SAVE_AREA_LENGTH)[rcx] ; deallocate stack space
;
; Enable interrupts, lower IRQL to dispatch level, and set the wait IRQL for
; the idle thread.
;
sti ; enable interrupts
mov ecx, DISPATCH_LEVEL ; set dispatch IRQL
SetIrql ;
mov rcx, gs:[PcCurrentThread] ; get current thread address
mov byte ptr ThWaitIrql[rcx], DISPATCH_LEVEL ; set wait IRQL
;
; In a multiprocessor system the boot processor proceeds directly into the
; idle loop. As other processors start executing, however, they do not enter
; the idle loop directly - they spin until all processors have been started
; and the boot master allows them to proceed.
;
ifndef NT_UP
KiSS20: cmp KiBarrierWait, 0 ; check if barrier set
jnz short KiSS20 ; if nz, barrier set
endif
call KiIdleLoop ; enter idle loop - no return
NESTED_END KisystemStartup, INIT
end
| 33.329787 | 96 | 0.570593 |
97d3619e62c3c1d5e59626b3dfebd5283874db2e | 14,787 | asm | Assembly | src/drivers/storage/ahci.asm | moneytech/BareMetal-kernel | 7d5aed7a5c2b9bfd97c10dd3c0ebffb82e3970de | [
"BSD-2-Clause"
] | 289 | 2015-01-02T06:54:12.000Z | 2020-01-19T12:45:22.000Z | src/drivers/storage/ahci.asm | moneytech/BareMetal-kernel | 7d5aed7a5c2b9bfd97c10dd3c0ebffb82e3970de | [
"BSD-2-Clause"
] | 37 | 2015-01-14T18:13:35.000Z | 2018-10-25T19:06:03.000Z | src/drivers/storage/ahci.asm | moneytech/BareMetal-kernel | 7d5aed7a5c2b9bfd97c10dd3c0ebffb82e3970de | [
"BSD-2-Clause"
] | 83 | 2015-02-13T16:09:40.000Z | 2020-01-16T13:38:31.000Z | ; =============================================================================
; BareMetal -- a 64-bit OS written in Assembly for x86-64 systems
; Copyright (C) 2008-2020 Return Infinity -- see LICENSE.TXT
;
; AHCI Driver
; =============================================================================
; -----------------------------------------------------------------------------
ahci_init:
; Probe for an AHCI hard drive controller
mov edx, 0x00000002 ; Start at register 2 of the first device
ahci_init_probe_next:
call os_pci_read
shr eax, 16 ; Move the Class/Subclass code to AX
cmp ax, 0x0106 ; Mass Storage Controller (01) / SATA Controller (06)
je ahci_init_found ; Found a SATA Controller
add edx, 0x00000100 ; Skip to next PCI device
cmp edx, 0x00FFFF00 ; Maximum of 65536 devices
jge ahci_init_not_found
jmp ahci_init_probe_next
ahci_init_found:
mov dl, 9
xor eax, eax
call os_pci_read ; BAR5 (AHCI Base Address Register)
mov [ahci_base], rax
mov rsi, rax ; RSI holds the ABAR
; Enable AHCI
xor eax, eax
bts eax, 31
mov [rsi+AHCI_GHC], eax
; Search the implemented ports for connected devices
mov edx, [rsi+AHCI_PI] ; PI – Ports Implemented
xor ecx, ecx
ahci_init_search_ports:
cmp ecx, 32 ; Maximum number of AHCI ports
je ahci_init_search_ports_done
bt edx, ecx ; Is this port marked as implemented?
jnc ahci_init_skip_port ; If not, skip it
mov ebx, ecx ; Copy current port
shl ebx, 7 ; Multiply by 128 (0x80) for start of port registers
add ebx, 0x128 ; Add 0x100 port registers and 0x28 for PxSSTS
mov eax, [rsi+rbx]
and al, 0x0F ; Keep bits 3-0
cmp al, 0x03 ; Check if device is present and comm enabled
jne ahci_init_skip_port ; If not skip the port
bts dword [ahci_PA], ecx ; Set the port # as active
ahci_init_skip_port:
inc rcx
jmp ahci_init_search_ports
ahci_init_search_ports_done:
; Configure the active ports
mov edx, [ahci_PA]
xor ecx, ecx
ahci_init_config_active:
cmp ecx, 32 ; Maximum number of AHCI ports
je ahci_init_config_active_done
bt edx, ecx ; Is this port marked as active?
jnc ahci_init_config_active_skip
mov rdi, rsi ; RSI holds the AHCI Base address
add rdi, 0x100 ; Offset to port 0
shl rcx, 7 ; Quick multiply by 0x80
add rdi, rcx
shr rcx, 7
mov eax, [rdi+AHCI_PxCMD] ; Stop the port
btr eax, 4 ; FRE
btr eax, 0 ; ST
mov [rdi+AHCI_PxCMD], eax
xor eax, eax
mov [rdi+AHCI_PxCI], eax ; Clear all command slots
mov rax, ahci_CLB ; Command List (1K with 32 entries, 32 bytes each)
shl rcx, 10
add rax, rcx ; Add offset to base
shr rcx, 10
stosd ; Offset 00h: PxCLB – Port x Command List Base Address
shr rax, 32 ; 63..32 bits of address
stosd ; Offset 04h: PxCLBU – Port x Command List Base Address Upper 32-bits
mov rax, ahci_FB ; Received FIS (4096 bytes per port)
shl rcx, 12
add rax, rcx ; Add offset to base
shr rcx, 12
stosd ; Offset 08h: PxFB – Port x FIS Base Address
shr rax, 32 ; 63..32 bits of address
stosd ; Offset 0Ch: PxFBU – Port x FIS Base Address Upper 32-bits
xor eax, eax
stosd ; Offset 10h: PxIS – Port x Interrupt Status
stosd ; Offset 14h: PxIE – Port x Interrupt Enable
ahci_init_config_active_skip:
inc rcx
jmp ahci_init_config_active
ahci_init_config_active_done:
ahci_init_not_found:
ret
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
; ahci_read -- Read data from a SATA hard drive
; IN: RAX = starting sector # to read (48-bit LBA address)
; RCX = number of sectors to read (up to 8192 = 4MiB)
; RDX = disk #
; RDI = memory location to store sectors
; OUT: RAX = RAX + number of sectors that were read
; RCX = number of sectors that were read (0 on error)
; RDI = RDI + (number of sectors read * 512)
; All other registers preserved
ahci_read:
push rdx
push rbx
push rdi
push rsi
push rcx
push rax
bt dword [ahci_PA], edx ; Is the requested disk marked as active?
jnc achi_read_error ; If not, bail out
push rcx ; Save the sector count
push rdi ; Save the destination memory address
push rax ; Save the block number
push rax
mov rsi, [ahci_base]
push rdx
shl rdx, 7 ; Quick multiply by 0x80
add rdx, 0x100 ; Offset to port 0
add rsi, rdx
pop rdx
; Build the Command List Header
mov rdi, ahci_CLB ; Command List (1K with 32 entries, 32 bytes each)
shl rdx, 10
add rdi, rdx
shr rdx, 10
mov eax, 0x00010005 ; 1 PRDTL Entry, Command FIS Length = 20 bytes
stosd ; DW 0 - Description Information
xor eax, eax
stosd ; DW 1 - Command Status
mov eax, ahci_CMD
stosd ; DW 2 - Command Table Base Address
shr rax, 32 ; 63..32 bits of address
stosd ; DW 3 - Command Table Base Address Upper
xor eax, eax
stosq ; DW 4 - 7 are reserved
stosq
; Build the Command Table
mov rdi, ahci_CMD ; Build a command table for Port 0
mov eax, 0x00258027 ; 25 READ DMA EXT, bit 15 set, FIS 27 H2D
stosd ; feature 7:0, command, c, FIS
pop rax ; Restore the start sector number
shl rax, 36
shr rax, 36 ; Upper 36 bits cleared
bts rax, 30 ; bit 30 set for LBA
stosd ; device, LBA 23:16, LBA 15:8, LBA 7:0
pop rax ; Restore the start sector number
shr rax, 24
stosd ; feature 15:8, LBA 47:40, LBA 39:32, LBA 31:24
mov rax, rcx ; Read the number of sectors given in rcx
stosd ; control, ICC, count 15:8, count 7:0
xor eax, eax
stosd ; reserved
; PRDT setup
mov rdi, ahci_CMD + 0x80
pop rax ; Restore the destination memory address
stosd ; Data Base Address
shr rax, 32
stosd ; Data Base Address Upper
xor eax, eax
stosd ; Reserved
pop rax ; Restore the sector count
shl rax, 9 ; multiply by 512 for bytes
dec rax ; subtract 1 (4.2.3.3, DBC is number of bytes - 1)
stosd ; Description Information (DBC is 21:00)
xor eax, eax
mov [rsi+AHCI_PxIS], eax ; Port x Interrupt Status
mov eax, 0x00000001 ; Execute Command Slot 0
mov [rsi+AHCI_PxCI], eax
xor eax, eax
bts eax, 4 ; FIS Recieve Enable (FRE)
bts eax, 0 ; Start (ST)
mov [rsi+AHCI_PxCMD], eax ; Offset to port 0 Command and Status
ahci_read_poll:
mov eax, [rsi+AHCI_PxCI]
test eax, eax
jnz ahci_read_poll
mov eax, [rsi+AHCI_PxCMD] ; Offset to port 0
btr eax, 4 ; FIS Receive Enable (FRE)
btr eax, 0 ; Start (ST)
mov [rsi+AHCI_PxCMD], eax
pop rax ; rax = start
pop rcx ; rcx = number of sectors read
add rax, rcx ; rax = start + number of sectors read
pop rsi
pop rdi
mov rbx, rcx ; rdi = dest addr + number of bytes read
shl rbx, 9
add rdi, rbx
pop rbx
pop rdx
ret
achi_read_error:
pop rax ; rax = start
pop rcx ; rcx = number of sectors read
pop rsi
pop rdi
pop rbx
pop rdx
xor ecx, ecx
ret
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
; ahci_write -- Write data to a SATA hard drive
; IN: RAX = starting sector # to write (48-bit LBA Address)
; RCX = number of sectors to write (up to 8192 = 4MiB)
; RDX = disk #
; RSI = memory location of sectors
; OUT: RAX = RAX + number of sectors that were written
; RCX = number of sectors that were written (0 on error)
; RSI = RSI + (number of sectors written * 512)
; All other registers preserved
ahci_write:
push rdx
push rbx
push rdi
push rsi
push rcx
push rax
bt dword [ahci_PA], edx ; Is the requested disk marked as active?
jnc achi_write_error ; If not, bail out
push rcx ; Save the sector count
push rsi ; Save the source memory address
push rax ; Save the block number
push rax
mov rsi, [ahci_base]
push rdx
shl rdx, 7 ; Quick multiply by 0x80
add rdx, 0x100 ; Offset to port 0
add rsi, rdx
pop rdx
; Build the Command List Header
mov rdi, ahci_CLB ; Command List (1K with 32 entries, 32 bytes each)
shl rdx, 10
add rdi, rdx
shr rdx, 10
mov eax, 0x00010045 ; 1 PRDTL Entry, write flag (bit 6), Command FIS Length = 20 bytes
stosd ; DW 0 - Description Information
xor eax, eax
stosd ; DW 1 - Command Status
mov rax, ahci_CMD
stosd ; DW 2 - Command Table Base Address
shr rax, 32 ; 63..32 bits of address
stosd ; DW 3 - Command Table Base Address Upper
xor eax, eax
stosq ; DW 4 - 7 are reserved
stosq
; Build the Command Table
mov rdi, ahci_CMD ; Build a command table for Port 0
mov eax, 0x00358027 ; 35 WRITE DMA EXT, bit 15 set, FIS 27 H2D
stosd ; feature 7:0, command, c, FIS
pop rax ; Restore the start sector number
shl rax, 36
shr rax, 36 ; Upper 36 bits cleared
bts rax, 30 ; bit 30 set for LBA
stosd ; device, LBA 23:16, LBA 15:8, LBA 7:0
pop rax ; Restore the start sector number
shr rax, 24
stosd ; feature 15:8, LBA 47:40, LBA 39:32, LBA 31:24
mov rax, rcx ; Read the number of sectors given in rcx
stosd ; control, ICC, count 15:8, count 7:0
xor eax, eax
stosd ; reserved
; PRDT setup
mov rdi, ahci_CMD + 0x80
pop rax ; Restore the source memory address
stosd ; Data Base Address
shr rax, 32
stosd ; Data Base Address Upper
xor eax, eax
stosd ; Reserved
pop rax ; Restore the sector count
shl rax, 9 ; multiply by 512 for bytes
dec rax ; subtract 1 (4.2.3.3, DBC is number of bytes - 1)
stosd ; Description Information (DBC is 21:00)
xor eax, eax
mov [rsi+AHCI_PxIS], eax ; Port x Interrupt Status
mov eax, 0x00000001 ; Execute Command Slot 0
mov [rsi+AHCI_PxCI], eax
xor eax, eax
bts eax, 4 ; FIS Recieve Enable (FRE)
bts eax, 0 ; Start (ST)
mov [rsi+AHCI_PxCMD], eax ; Offset to port 0 Command and Status
ahci_write_poll:
mov eax, [rsi+AHCI_PxCI]
test eax, eax
jnz ahci_write_poll
mov eax, [rsi+AHCI_PxCMD] ; Offset to port 0
btr eax, 4 ; FIS Receive Enable (FRE)
btr eax, 0 ; Start (ST)
mov [rsi+AHCI_PxCMD], eax
pop rax ; rax = start
pop rcx ; rcx = number of sectors read
add rax, rcx ; rax = start + number of sectors written
pop rsi
pop rdi
mov rbx, rcx ; rdi = dest addr + number of bytes written
shl rbx, 9
add rdi, rbx
pop rbx
pop rdx
ret
achi_write_error:
pop rax
pop rcx
pop rsi
pop rdi
pop rbx
pop rdx
xor ecx, ecx
ret
; -----------------------------------------------------------------------------
; -----------------------------------------------------------------------------
; ahci_id -- Identify a SATA drive
; IN: RDX = Port # to query
; RDI = memory location to store details (512 bytes)
; OUT: Nothing, all registers preserved
ahci_id:
push rdi
push rsi
push rdx
push rax
push rdi ; Save the destination memory address
bt dword [ahci_PA], edx ; Is the requested disk marked as active?
jnc ahci_id_error ; If not, bail out
mov rsi, [ahci_base]
push rdx
shl rdx, 7 ; Quick multiply by 0x80
add rdx, 0x100 ; Offset to port 0
add rsi, rdx
pop rdx
; Build the Command List Header
mov rdi, ahci_CLB ; Command List (1K with 32 entries, 32 bytes each)
shl rdx, 10
add rdi, rdx
shr rdx, 10
mov eax, 0x00010005 ; 1 PRDTL Entry, Command FIS Length = 20 bytes
stosd ; DW 0 - Description Information
xor eax, eax
stosd ; DW 1 - Command Status
mov rax, ahci_CMD
stosd ; DW 2 - Command Table Base Address
shr rax, 32 ; 63..32 bits of address
stosd ; DW 3 - Command Table Base Address Upper
xor eax, eax
stosq ; DW 4 - 7 are reserved
stosq
; Build the Command Table
mov rdi, ahci_CMD ; Build a command table for Port 0
mov eax, 0x00EC8027 ; EC identify, bit 15 set, FIS 27 H2D
stosd ; feature 7:0, command, c, FIS
xor eax, eax
stosq ; the rest of the table can be clear
stosq
; PRDT - pysical region descriptor table
mov rdi, ahci_CMD + 0x80
pop rax ; Restore the destination memory address
stosd ; Data Base Address
shr rax, 32
stosd ; Data Base Address Upper
xor eax, eax
stosd ; Reserved
mov eax, 0x000001FF ; 512 - 1
stosd ; Description Information
xor eax, eax
mov [rsi+AHCI_PxIS], eax ; Port x Interrupt Status
mov eax, 0x00000001 ; Execute Command Slot 0
mov [rsi+AHCI_PxCI], eax
xor eax, eax
bts eax, 4 ; FIS Recieve Enable (FRE)
bts eax, 0 ; Start (ST)
mov [rsi+AHCI_PxCMD], eax ; Offset to port 0 Command and Status
ahci_id_poll:
mov eax, [rsi+AHCI_PxCI] ; Read Command Slot 0 status
test eax, eax
jnz ahci_id_poll
mov eax, [rsi+AHCI_PxCMD] ; Offset to port 0
btr eax, 4 ; FIS Receive Enable (FRE)
btr eax, 0 ; Start (ST)
mov [rsi+AHCI_PxCMD], eax
pop rax
pop rdx
pop rsi
pop rdi
ret
ahci_id_error:
pop rdi
pop rax
pop rdx
pop rsi
pop rdi
mov eax, 0xFFFFFFFF
ret
; -----------------------------------------------------------------------------
; HBA Memory Registers
; 0x0000 - 0x002B Generic Host Control
; 0x002C - 0x005F Reserved
; 0x0060 - 0x009F Reserved for NVMHCI
; 0x00A0 - 0x00FF Vendor Specific Registers
; 0x0100 - 0x017F Port 0
; 0x0180 - 0x01FF Port 1
; ...
; 0x1000 - 0x107F Port 30
; 0x1080 - 0x10FF Port 31
; Generic Host Control
AHCI_CAP equ 0x0000 ; HBA Capabilities
AHCI_GHC equ 0x0004 ; Global HBA Control
AHCI_IS equ 0x0008 ; Interrupt Status Register
AHCI_PI equ 0x000C ; Ports Implemented
AHCI_VS equ 0x0010 ; AHCI Version
AHCI_CCC_CTL equ 0x0014 ; Command Completion Coalescing Control
AHCI_CCC_PORTS equ 0x0018 ; Command Completion Coalescing Ports
AHCI_EM_LOC equ 0x001C ; Enclosure Management Location
AHCI_EM_CTL equ 0x0020 ; Enclosure Management Control
AHCI_CAP2 equ 0x0024 ; HBA Capabilities Extended
AHCI_BOHC equ 0x0028 ; BIOS/OS Handoff Control and Status
; Port Registers
; Port 0 starts at 100h, port 1 starts at 180h, port 2 starts at 200h, port 3 at 280h, etc.
AHCI_PxCLB equ 0x0000 ; Port x Command List Base Address
AHCI_PxCLBU equ 0x0004 ; Port x Command List Base Address Upper 32-bits
AHCI_PxFB equ 0x0008 ; Port x FIS Base Address
AHCI_PxFBU equ 0x000C ; Port x FIS Base Address Upper 32-bits
AHCI_PxIS equ 0x0010 ; Port x Interrupt Status
AHCI_PxIE equ 0x0014 ; Port x Interrupt Enable
AHCI_PxCMD equ 0x0018 ; Port x Command and Status
AHCI_PxTFD equ 0x0020 ; Port x Task File Data
AHCI_PxSIG equ 0x0024 ; Port x Signature
AHCI_PxSSTS equ 0x0028 ; Port x Serial ATA Status (SCR0: SStatus)
AHCI_PxSCTL equ 0x002C ; Port x Serial ATA Control (SCR2: SControl)
AHCI_PxSERR equ 0x0030 ; Port x Serial ATA Error (SCR1: SError)
AHCI_PxSACT equ 0x0034 ; Port x Serial ATA Active (SCR3: SActive)
AHCI_PxCI equ 0x0038 ; Port x Command Issue
AHCI_PxSNTF equ 0x003C ; Port x Serial ATA Notification (SCR4: SNotification)
AHCI_PxFBS equ 0x0040 ; Port x FIS-based Switching Control
AHCI_PxDEVSLP equ 0x0044 ; Port x Device Sleep
; 0x0048 - 0x006F Reserved
; 0x0070 - 0x007F Port x Vendor Specific
; =============================================================================
; EOF
| 28.937378 | 91 | 0.661054 |
4b7320dcd91e873464e9f4bf98d6573ec54e9ecd | 357 | asm | Assembly | programs/oeis/236/A236967.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/236/A236967.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/236/A236967.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A236967: Expansion of (1+3*x)^2/(1-3*x)^2.
; 1,12,72,324,1296,4860,17496,61236,209952,708588,2361960,7794468,25509168,82904796,267846264,860934420,2754990144,8781531084,27894275208,88331871492,278942752080,878669669052,2761533245592,8661172452084,27113235502176,84728860944300
mov $3,$0
mul $0,4
mov $4,$0
cmp $4,0
add $0,$4
mov $2,3
pow $2,$3
mul $0,$2
| 29.75 | 233 | 0.761905 |
7b493f97a12caec25afc68dcbb4340e6baa44664 | 689 | asm | Assembly | oeis/052/A052907.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/052/A052907.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/052/A052907.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A052907: Expansion of 1/(1 - 2*x^2 - 2*x^3).
; Submitted by Christian Krause
; 1,0,2,2,4,8,12,24,40,72,128,224,400,704,1248,2208,3904,6912,12224,21632,38272,67712,119808,211968,375040,663552,1174016,2077184,3675136,6502400,11504640,20355072,36014080,63719424,112738304,199467008,352915456,624410624,1104764928,1954652160,3458351104,6118834176,10826006528,19154370560,33889681408,59960754176,106088103936,187700871168,332097716224,587577950208,1039597174784,1839351332864,3254350249984,5757897015296,10187403165696,18024494530560,31890600361984,56423795392512,99830189785088
mov $4,1
lpb $0
sub $0,1
mov $1,$4
mul $2,2
mov $4,$2
mov $2,$1
add $2,$3
mov $3,$1
lpe
mov $0,$4
| 43.0625 | 496 | 0.783745 |
2d86800d72fbc47761a3b2c5ea3b048c662a116d | 424 | asm | Assembly | programs/oeis/145/A145064.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/145/A145064.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/145/A145064.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A145064: Reduced numerators of the first convergent to the cube root of n using the recursion x = (2*x+n/x^2)/3.
; 2,1,4,5,2,7,8,3,10,11,4,13,14,5,16,17,6,19,20,7,22,23,8,25,26,9,28,29,10,31,32,11,34,35,12,37,38,13,40,41,14,43,44,15,46,47,16,49,50,17,52,53,18,55,56,19,58,59,20,61,62,21,64,65,22,67,68,23,70,71,24,73,74,25,76,77,26,79,80,27,82,83,28,85,86,29,88,89,30,91,92,31,94,95,32,97,98,33,100,101
add $0,2
dif $0,3
| 70.666667 | 289 | 0.665094 |
9e941615be0a3e46a8434282b33f264e0c15072c | 1,327 | asm | Assembly | c_projects/project1/boot/switch_to_pm.asm | darbinreyes/subparprogrammer | e3588adc494a69a564fe0a9859ff296fc710eab0 | [
"MIT"
] | null | null | null | c_projects/project1/boot/switch_to_pm.asm | darbinreyes/subparprogrammer | e3588adc494a69a564fe0a9859ff296fc710eab0 | [
"MIT"
] | 1 | 2021-05-11T22:20:01.000Z | 2021-05-11T22:20:01.000Z | c_projects/project1/ch4/switch_to_pm.asm | darbinreyes/subparprogrammer | e3588adc494a69a564fe0a9859ff296fc710eab0 | [
"MIT"
] | null | null | null | ; Performs the final steps of switching the CPU from 16 bit real mode to
; 32 bit protected mode.
[bits 16] ; We start in 16 bit real mode.
switch_to_pm:
cli ; Disable interrupts. Interrupts work completely differently in 32 bit
; protected mode. We need to configure things before we turn them on again.
; Not doing this will lead to a crash.
lgdt [gdt_descriptor] ; Load our basic flat model global descriptor table.
mov eax, cr0 ; The lowest order bit in the CR0 control register does the actual switch.
; Like the segment registers, we cannot set CR0 directly.
or eax, 0x1 ; Set the lowest order bit.
mov cr0, eax
jmp CODE_SEG:init_pm ; Use a far jump to trigger a pipeline flush, this is a
; safety precaution that is standard procedure when switching CPU modes. Recall
; that CODE_SEG is just an offset into our GDT.
[bits 32] ; Tell the assembler to output 32 bit encoded instructions.
; Initialize segment registers and the stack once in protected mode (PM).
init_pm:
mov ax, DATA_SEG; Now in PM, our old segments are meaningless, so we point our segment
; registers to the data segment descriptor in our GDT.
; Note the use of the 16 bit AX register here.
mov ds, ax
mov ss, ax
mov es, ax
mov fs, ax
mov gs, ax
; Stack init.
mov ebp, 0x90000
mov esp, ebp
call BEGIN_PM ; Finally, call some well known label.
| 32.365854 | 87 | 0.757347 |
7fa585f3078dac12676c7e80ac0837d58b28c884 | 788 | asm | Assembly | oeis/288/A288317.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/288/A288317.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/288/A288317.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A288317: a(n) = a(n-1) + 3*a(n-2) - 2*a(n-3) - a(n-4) for n >= 4, where a(0) = 2, a(1) = 4, a(2) = 7, a(3) = 12.
; Submitted by Christian Krause
; 2,4,7,12,22,40,75,139,262,489,922,1726,3252,6097,11479,21540,40531,76096,143130,268816,505483,949575,1785262,3354205,6305358,11847874,22270276,41848977,78658699,147817204,277825071,522110308,981292414,1844155992,3465987547,6513760387,12242118630,23007268705,43240116274,81263924742,152727617524,287031890497,539446777311,1013823289012,1905372222427,3580916644344,6729939956290,12648122155456,23770736513211,44674306422655,83960331695086,157793655781173,296555301507910,557341299038602
mov $1,1
mov $3,1
lpb $0
sub $0,1
add $2,$1
add $2,$1
trn $2,3
sub $1,$2
add $1,$3
add $3,$2
add $2,$1
add $3,2
lpe
mov $0,$2
add $0,2
| 39.4 | 486 | 0.729695 |
e37e1602fdc035b5c0002a9d0a61823061d7f66b | 51 | asm | Assembly | PRG/maps/World3OH.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/maps/World3OH.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/maps/World3OH.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | .byte $02, $02, $00, $00, $01, $00, $00, $00, $00
| 25.5 | 50 | 0.431373 |
3419fc0654976556b7a7c7a822c5c349232efcf8 | 1,074 | asm | Assembly | programs/oeis/048/A048585.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/048/A048585.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/048/A048585.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A048585: Pisot sequence L(6,7).
; 6,7,9,12,16,22,31,44,63,91,132,192,280,409,598,875,1281,1876,2748,4026,5899,8644,12667,18563,27204,39868,58428,85629,125494,183919,269545,395036,578952,848494,1243527,1822476,2670967,3914491,5736964,8407928,12322416,18059377,26467302,38789715,56849089,83316388,122106100,178955186,262271571,384377668,563332851,825604419,1209982084,1773314932,2598919348,3808901429,5582216358,8181135703,11990037129,17572253484,25753389184,37743426310,55315679791,81069068972,118812495279,174128175067,255197244036,374009739312,548137914376,803335158409,1177344897718,1725482812091,2528817970497,3706162868212,5431645680300,7960463650794,11666626519003,17098272199300,25058735850091,36725362369091,53823634568388,78882370418476,115607732787564,169431367355949,248313737774422,363921470561983,533352837917929,781666575692348,1145588046254328,1678940884172254,2460607459864599,3606195506118924,5285136390291175,7745743850155771
add $0,4
mov $1,1
mov $4,2
lpb $0
sub $0,1
mov $3,$2
mov $2,$1
add $3,1
sub $4,1
mov $1,$4
add $4,$3
lpe
add $1,3
| 63.176471 | 910 | 0.837989 |
dc3ba628c5e0f26df21538bffa9c8f0672dac80c | 360 | asm | Assembly | programs/oeis/101/A101688.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/101/A101688.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/101/A101688.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A101688: Once 1, once 0, repeat, twice 1, twice 0, repeat, thrice 1, thrice 0... and so on.
; 1,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1
seq $0,127948 ; Triangle, A004736 * A127899.
max $0,0
min $0,1
| 51.428571 | 201 | 0.566667 |
a97baf368506f8470554e892504c21f4910e365d | 1,625 | asm | Assembly | likeadragon/lib/src/interceptor.asm | etra0/yakuza-freecam | 5710c5c004aa769f4b8506eb0c2270595494dcac | [
"MIT"
] | 105 | 2020-05-06T23:00:40.000Z | 2022-01-03T01:22:11.000Z | likeadragon/lib/src/interceptor.asm | etra0/yakuza-freecam | 5710c5c004aa769f4b8506eb0c2270595494dcac | [
"MIT"
] | 8 | 2020-05-09T17:54:29.000Z | 2022-02-04T15:36:36.000Z | likeadragon/lib/src/interceptor.asm | etra0/yakuza-freecam | 5710c5c004aa769f4b8506eb0c2270595494dcac | [
"MIT"
] | 11 | 2020-05-09T17:46:24.000Z | 2022-03-05T02:49:46.000Z | .data
EXTERN g_get_camera_data: qword
EXTERN g_get_timestop: qword
EXTERN g_get_timestop_rip: qword
EXTERN g_get_timestop_first_offset: qword
EXTERN g_get_controller: qword
EXTERN xinput_interceptor: qword
EXTERN g_camera_struct: qword
EXTERN g_camera_active: byte
EXTERN g_engine_speed: dword
; Function that intercepts the values written into the camera
.code
asm_get_camera_data PROC
pushf
mov al, g_camera_active
cmp g_camera_active, 0
je original
cmp g_camera_struct, 0
jne force_ret
mov g_camera_struct, rcx
force_ret:
popf
ret
original:
popf
push rdi
sub rsp, 40h
mov qword ptr [rsp + 20h], 0FFFFFFFFFFFFFFFEh
jmp qword ptr [g_get_camera_data]
asm_get_camera_data ENDP
asm_get_timestop PROC
pushf
push rax
mov al, g_camera_active
cmp g_camera_active, 0
je @f
; vmovss xmm8, g_engine_speed
vmovss xmm6, g_engine_speed
vmovss xmm3, g_engine_speed
@@:
; If g_get_timestop_rip is 0 we can't start writing to the
; right address
cmp g_get_timestop_rip, 0
je @f
cmp g_get_timestop_first_offset, 0
je @f
mov rax, g_get_timestop_rip
add rax, 8h
add rax, g_get_timestop_first_offset
vmovss dword ptr [rax], xmm8
add rax, 4h
vmovss dword ptr [rax], xmm6
add rax, 0Ch
vmovss dword ptr [rax], xmm3
@@:
pop rax
popf
jmp [g_get_timestop]
asm_get_timestop ENDP
asm_get_controller PROC
lea rdx, [rsp + 20h]
mov rsi, r8
lea rax, xinput_interceptor
call rax
test eax, eax
jmp [g_get_controller]
asm_get_controller ENDP
END
| 18.895349 | 62 | 0.708923 |
d84aa7c2de7f492e71bad116aca6f18b41a36bf1 | 486 | asm | Assembly | src/game_logic/convert_coord.asm | lawrimon/SnakeV | 619a7e3697ef60950960ac0cce4b2f57f25d526f | [
"MIT"
] | 2 | 2021-12-08T18:10:44.000Z | 2022-03-11T09:24:51.000Z | src/game_logic/convert_coord.asm | lawrimon/SnakeV | 619a7e3697ef60950960ac0cce4b2f57f25d526f | [
"MIT"
] | null | null | null | src/game_logic/convert_coord.asm | lawrimon/SnakeV | 619a7e3697ef60950960ac0cce4b2f57f25d526f | [
"MIT"
] | 1 | 2021-11-03T17:10:56.000Z | 2021-11-03T17:10:56.000Z |
.text
convert_coord:
# inputs:
# -a0 (32 Bit coordinate)
#
# output:
# - a1 x-coordinate 512x512
# - a2 y-coordinate 512x512
addi sp,sp,-12
sw t0,0(sp)
sw t1,4(sp)
sw ra,8(sp)
li t0, 0x0000FFFF
li t1, 0xFFFF0000
slli a0,a0,SQUARE_SIZE_SHIFT #convert coordinates to 8x8 squares
and a1, t1, a0 # last 16bits x-coordinate
and a2, t0, a0 # first 16bits y-coordinate
srli a1, a1, 16 #Remove leading zeros
lw t0,0(sp)
lw t1,4(sp)
lw ra,8(sp)
addi sp,sp,12
ret
| 15.1875 | 64 | 0.664609 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.