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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ef0ee019637713be909d48664bdaada59c4b33c | 965 | asm | Assembly | _build/dispatcher/jmp_ippsMontInit_032ad735.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | 1 | 2021-10-04T10:21:54.000Z | 2021-10-04T10:21:54.000Z | _build/dispatcher/jmp_ippsMontInit_032ad735.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | _build/dispatcher/jmp_ippsMontInit_032ad735.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | extern m7_ippsMontInit:function
extern n8_ippsMontInit:function
extern y8_ippsMontInit:function
extern e9_ippsMontInit:function
extern l9_ippsMontInit:function
extern n0_ippsMontInit:function
extern k0_ippsMontInit:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsMontInit
.Larraddr_ippsMontInit:
dq m7_ippsMontInit
dq n8_ippsMontInit
dq y8_ippsMontInit
dq e9_ippsMontInit
dq l9_ippsMontInit
dq n0_ippsMontInit
dq k0_ippsMontInit
segment .text
global ippsMontInit:function (ippsMontInit.LEndippsMontInit - ippsMontInit)
.Lin_ippsMontInit:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsMontInit:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsMontInit]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsMontInit:
| 24.74359 | 75 | 0.772021 |
389436ab928a5f1de0fe0d912ba9bd59342464da | 710 | asm | Assembly | sw/Demo/single_thread.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | 1 | 2022-02-15T16:03:25.000Z | 2022-02-15T16:03:25.000Z | sw/Demo/single_thread.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | sw/Demo/single_thread.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | // check atomic
bneq r1 r0 .child //will not jump
lbi r19 1
slbi r19 0x0100 // r19 is at start pc
lbi r21 1
slbi r21 0x0400 // r21 is pointing to heap
addi r25 r21 2 // r25 = 0x10402
addi r7 r0 10
st r25 r7 0 // i: mem[0x10402] = 10
lbi r12 1
slbi r12 0xFF
.loop
ld r10 r25 0 //r10 = i
addi r10 r10 1 //r10 += 1
st r25 r10 0 //i = r10
blt r10 r12 .loop // jump if i < 0x100FF
shrt r10 r10 8 //r10 = 1
not r10 r10
shra r10 r10 8
st r0 r10 0 //0x0 : 0xFFFFFFFE
and r11 r10 r21 //r11 = heap start
ld r11 r11 2
st r0 r11 1 //0x1: i= 0x100ff
jal r8 0 //skip kill and jmp to next
beq r8 r0 -1
st r0 r8 2 //get current pc
.child
kill r1 // return | 18.684211 | 43 | 0.602817 |
bb097a0b295dc8ac99b1742e112a35d5a4681723 | 582 | asm | Assembly | programs/oeis/283/A283123.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/283/A283123.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/283/A283123.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A283123: a(n) = sigma(9*n).
; 13,39,40,91,78,120,104,195,121,234,156,280,182,312,240,403,234,363,260,546,320,468,312,600,403,546,364,728,390,720,416,819,480,702,624,847,494,780,560,1170,546,960,572,1092,726,936,624,1240,741,1209,720,1274,702,1092,936,1560,800,1170,780,1680,806,1248,968,1651,1092,1440,884,1638,960,1872,936,1815,962,1482,1240,1820,1248,1680,1040,2418,1093,1638,1092,2240,1404,1716,1200,2340,1170,2178,1456,2184,1280,1872,1560,2520,1274,2223,1452,2821
add $0,1
mul $0,9
sub $0,1
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
| 72.75 | 439 | 0.728522 |
252720bdfee49528c17256a7b09af3b8bae25628 | 779 | asm | Assembly | oeis/307/A307688.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/307/A307688.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/307/A307688.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A307688: a(n) = 2*a(n-1)-2*a(n-2)+a(n-3)+2*a(n-4) with a(0)=a(1)=0, a(2)=2, a(3)=3.
; Submitted by Christian Krause
; 0,0,2,3,2,0,3,14,26,27,22,44,123,234,310,363,586,1224,2259,3382,4642,7227,13070,23092,36555,54450,85022,143883,245282,396720,616803,973214,1600106,2664027,4334662,6887804,10970523,17828154,29272390,47634603,76493626,122646744,198485619,323440582,525543922,847985787,1365295550,2207044612,3582571755,5812321410,9397135022,15166288203,24515771282,39720744000,64370503683,104147867054,168307013306,272130284187,440535416182,713413011404,1154499501243,1866968964234,3019422769750,4886233135083
mov $2,2
lpb $0
sub $0,1
add $4,$1
add $1,$3
mul $1,2
add $2,2
mov $5,$3
add $5,$2
mov $2,$3
add $2,$4
mov $3,$5
sub $3,$1
lpe
mov $0,$1
div $0,4
| 37.095238 | 491 | 0.72914 |
6ad367d53ff2c2b6b7ffc28c20984bc2e8a916b4 | 4,098 | asm | Assembly | asm/x32/core2.asm | drkameleon/elena-lang | 8585e93a3bc0b19f8d60029ffbe01311d0b711a3 | [
"MIT"
] | null | null | null | asm/x32/core2.asm | drkameleon/elena-lang | 8585e93a3bc0b19f8d60029ffbe01311d0b711a3 | [
"MIT"
] | null | null | null | asm/x32/core2.asm | drkameleon/elena-lang | 8585e93a3bc0b19f8d60029ffbe01311d0b711a3 | [
"MIT"
] | null | null | null | // --- Predefined References --
define GC_ALLOC 10001h
define BREAK 10026h
define EXPAND_HEAP 10028h
define CORE_GC_TABLE 20002h
define CORE_STATICROOT 20005h
// GC TABLE OFFSETS
define gc_header 0000h
define gc_start 0004h
define gc_yg_start 0008h
define gc_yg_current 000Ch
define gc_yg_end 0010h
define gc_shadow 0014h
define gc_shadow_end 0018h
define gc_mg_start 001Ch
define gc_mg_current 0020h
define gc_end 0024h
define gc_mg_wbar 0028h
define gc_et_current 002Ch
define gc_stack_frame 0030h
define gc_lock 0034h
define gc_signal 0038h
define tt_ptr 003Ch
define tt_lock 0040h
define gc_rootcount 004Ch
// Page Size
define page_size 10h
define page_size_order 4h
define page_size_order_minus2 2h
define page_mask 0FFFFFFF0h
define page_ceil 17h
define struct_mask 800000h
define struct_mask_inv 7FFFFFh
// Object header fields
define elObjectOffset 0008h
define elSizeOffset 0008h
define elVMTOffset 0004h
define elVMTFlagOffset 0008h
define elVMTSizeOffset 000Ch
define elPackageOffset 0010h
define page_align_mask 000FFFF0h
// --- GC_ALLOC ---
// in: ecx - size ; out: ebx - created object
procedure %GC_ALLOC
mov eax, [data : %CORE_GC_TABLE + gc_yg_current]
mov edx, [data : %CORE_GC_TABLE + gc_yg_end]
add ecx, eax
cmp ecx, edx
jae short labYGCollect
mov [data : %CORE_GC_TABLE + gc_yg_current], ecx
lea ebx, [eax + elObjectOffset]
ret
labYGCollect:
// ; restore ecx
sub ecx, eax
// ; save registers
push ebp
// ; lock frame
mov [data : %CORE_GC_TABLE + gc_stack_frame], esp
push ecx
// ; create set of roots
mov ebp, esp
xor ecx, ecx
push ecx // ; reserve place
push ecx
push ecx
// ; save static roots
mov esi, data : %CORE_STATICROOT
mov ecx, [data : %CORE_GC_TABLE + gc_rootcount]
push esi
push ecx
// ; collect frames
mov eax, [data : %CORE_GC_TABLE + gc_stack_frame]
mov ecx, eax
labYGNextFrame:
mov esi, eax
mov eax, [esi]
test eax, eax
jnz short labYGNextFrame
push ecx
sub ecx, esi
neg ecx
push ecx
mov eax, [esi + 4]
test eax, eax
mov ecx, eax
jnz short labYGNextFrame
// === Minor collection ===
mov [ebp-4], esp // ; save position for roots
// ; save mg -> yg roots
mov ebx, [data : %CORE_GC_TABLE + gc_mg_current]
mov edi, [data : %CORE_GC_TABLE + gc_mg_start]
sub ebx, edi // ; we need to check only MG region
jz labWBEnd // ; skip if it is zero
mov esi, [data : %CORE_GC_TABLE + gc_mg_wbar]
shr ebx, page_size_order
// ; lea edi, [edi + elObjectOffset]
labWBNext:
cmp [esi], 0
lea esi, [esi+4]
jnz short labWBMark
sub ebx, 4
ja short labWBNext
nop
nop
jmp short labWBEnd
labWBMark:
lea eax, [esi-4]
sub eax, [data : %CORE_GC_TABLE + gc_mg_wbar]
mov edx, [esi-4]
shl eax, page_size_order
lea eax, [edi + eax + elObjectOffset]
test edx, 0FFh
jz short labWBMark2
mov ecx, [eax-elSizeOffset]
push eax
and ecx, 0FFFFFh
push ecx
labWBMark2:
lea eax, [eax + page_size]
test edx, 0FF00h
jz short labWBMark3
mov ecx, [eax-elSizeOffset]
push eax
and ecx, 0FFFFFh
push ecx
labWBMark3:
lea eax, [eax + page_size]
test edx, 0FF0000h
jz short labWBMark4
mov ecx, [eax-elSizeOffset]
push eax
and ecx, 0FFFFFh
push ecx
labWBMark4:
lea eax, [eax + page_size]
test edx, 0FF000000h
jz short labWBNext
mov ecx, [eax-elSizeOffset]
push eax
and ecx, 0FFFFFh
push ecx
jmp short labWBNext
labWBEnd:
mov ebx, [ebp]
mov eax, esp
push ebx
push eax
call extern 'rt_dlls.GCCollect
mov ebx, eax
mov esp, ebp
pop ecx
pop ebp
ret
end
| 22.032258 | 91 | 0.623719 |
41d867481c41ed56e38de1e429f331c4420f79f5 | 8,060 | asm | Assembly | src/ldcopy.asm | OS2World/DRV-ldcopy | 374120664a17299eaff3d18d75c2dcc5131ca9eb | [
"BSD-3-Clause"
] | null | null | null | src/ldcopy.asm | OS2World/DRV-ldcopy | 374120664a17299eaff3d18d75c2dcc5131ca9eb | [
"BSD-3-Clause"
] | null | null | null | src/ldcopy.asm | OS2World/DRV-ldcopy | 374120664a17299eaff3d18d75c2dcc5131ca9eb | [
"BSD-3-Clause"
] | null | null | null | PAGE 64,132
TITLE LDCOPY - device driver to copy files on startup
NAME LDCOPY
.286
;
; Description:
; OS/2 device driver for copying files.
; Version:
; 1.1
; Date:
; April 2003
; Author:
; Bob Eager
; rde@tavi.co.uk
;
; This program is released into the public domain. Please do not
; change this notice, or try to make money from the program.
;
; History:
; 1.0 Initial version.
; 1.1 Use noncritical init error code to unload completely.
;
; This device driver performs no useful function except at system
; initialisation time. At that time, it copies a file based on its two
; parameters:
;
; DEVICE=LDCOPY.SYS <fromfile> <tofile>
;
; The idea is that the DEVICE=LDCOPY.SYS... line will appear before that
; for any driver that needs the relevant file.
;
.XLIST
INCLUDE DEVSYM.INC
.LIST
;
; Constants
;
STDOUT EQU 1 ; Standard output handle
DCPY_EXISTING EQU 1 ; DosCopy option
;
CR EQU 0DH ; Carriage return
LF EQU 0AH ; Linefeed
TAB EQU 09H ; Tab
BEL EQU 07H ; Bell!
;
; External references
;
EXTRN DosCopy:FAR
EXTRN DosWrite:FAR
;
SUBTTL Data areas
PAGE+
;
DGROUP GROUP _DATA
;
_DATA SEGMENT WORD PUBLIC 'DATA'
;
; Device driver header
;
HEADER DD -1 ; Link to next device driver
DW (DEV_CHAR_DEV OR DEVLEV_1)
; Device attributes:
; character device
; function level 001
DW OFFSET STRATEGY ; Strategy entry point
DW 0 ; IDC entry point - not used
DB 'LDCOPY$$' ; Device name
DB 8 DUP (0) ; Reserved
;
; Filenames
;
SRCA DB 256 DUP (0) ; Source file
DSTA DB 256 DUP (0) ; Destination file
;
WLEN DW ? ; Receives DosWrite length
;
MES1 DB CR,LF,'LDCOPY: invalid argument on DEVICE= line'
DB BEL,BEL,BEL,CR,LF,0
CMES1 DB 'LDCOPY: File ',0
CMES2 DB ' copied to ',0
CMES3 DB CR,LF,0
CMES4 DB BEL,BEL,BEL,' NOT copied to ',0
;
_DATA ENDS
;
SUBTTL Main code
PAGE+
;
_TEXT SEGMENT WORD PUBLIC 'CODE'
;
ASSUME CS:_TEXT,DS:DGROUP,ES:NOTHING
;
; Strategy entry point; ES:BX points to the request packet
;
; We support only initialise (of course) and deinstall.
; Deinstall allows multiple calls to load this driver, thus allowing
; files to be copied.
; If deinstall were not provided, only the first load would succeed.
;
STRATEGY PROC FAR
;
CMP ES:[BX].PktCmd,CmdInit ; initialise function?
JE STRA10 ; j if so
CMP ES:[BX].PktCmd,CmdDeInstall
; deinstall function?
JNE STRA05 ; j if not - error
MOV AX,STDON ; just 'done'
JMP SHORT STRA20 ; and exit
;
STRA05: MOV AX,(STERR OR STDON OR 3); error and done status, unknown command
JMP SHORT STRA20 ; use common exit code
;
STRA10: CALL INIT ; do the initialisation
;
STRA20: MOV ES:[BX].PktStatus,AX ; store status in request packet
RET ; return to system
;
STRATEGY ENDP
;
SUBTTL Initialisation code
PAGE+
;
; Initialisation code. All of this code is present only during initialisation;
; none of the driver data is used after that time either.
;
ASSUME CS:_TEXT,DS:DGROUP,ES:NOTHING
;
INIT PROC NEAR
;
PUSH BX ; save request packet offset for later
PUSH ES ; save request packet segment for later
PUSH DS ; save data segment for later
PUSH DS ; save it again for ES setting below
;
; Get the arguments; just two strings
;
MOV SI,WORD PTR ES:[BX].InitParms
; offset of INIT arguments
MOV DS,WORD PTR ES:[BX].InitParms+2
; segment of INIT arguments
;
ASSUME CS:_TEXT,DS:NOTHING,ES:NOTHING
;
POP ES ; copy our DS to ES for copying names
CLD ; autoincrement
;
INIT01: LODSB ; skip leading whitespace
CMP AL,' '
JE INIT01
CMP AL,TAB
JE INIT01
DEC SI ; back to first non-space
;
; Now at start of driver filename (after DEVICE=)
;
INIT02: LODSB ; skip driver filename
CMP AL,' '
JE SHORT INIT03 ; found next separator
CMP AL,TAB
JE SHORT INIT03 ; found next separator
CMP AL,0 ; found terminator?
JE SHORT INIT30 ; j if so - error
JMP INIT02 ; else keep looking
;
; Now at end of driver filename (after DEVICE=LDCOPY.SYS)
;
INIT03: LODSB ; strip separating whitespace
CMP AL,' '
JE INIT03
CMP AL,TAB
JE INIT03
;
INIT04: DEC SI ; back to first non-space, if any
MOV DI,OFFSET SRCA ; where to put name; ES already set
;
; We are now at the start of the arguments proper
; (or at the end of the whole line)
;
INIT05: LODSB ; next byte of filename
CMP AL,0 ; terminator?
JE INIT30 ; j if so - error
CMP AL,' ' ; end?
JE INIT06 ; j if so
CMP AL,TAB ; end?
JE INIT06 ; j if so
STOSB ; else store it
JMP INIT05 ; and keep going
;
INIT06: XOR AL,AL ; terminator
STOSB ; store it
;
; Now at start of whitespace preceding second filename (if any)
;
INIT07: LODSB ; strip separating whitespace
CMP AL,' '
JE INIT07
CMP AL,TAB
JE INIT07
;
DEC SI ; back to first non-space, if any
MOV DI,OFFSET DSTA ; where to put name
;
; We are now at the start of the second filename...
;
INIT09: LODSB ; next byte of filename
OR AL,AL ; terminator?
JE INIT10 ; j if so
CMP AL,' ' ; end?
JE INIT10 ; j if so
CMP AL,TAB ; end?
JE INIT10 ; j if so
STOSB ; else store it
JMP INIT09 ; and keep going
;
INIT10: CMP DI,OFFSET DSTA ; check for null filename
JE INIT30 ; j if so - error
XOR AL,AL ; terminator
STOSB ; store it
;
POP DS ; recover register
;
ASSUME CS:_TEXT,DS:DGROUP,ES:NOTHING
;
; Now copy the file
;
MOV AX,OFFSET DGROUP:SRCA ; source file
MOV DX,OFFSET DGROUP:DSTA ; destination file
CALL DOCOPY ; copy it
;
INIT20: POP ES ; recover registers
POP BX
;
XOR AX,AX
MOV WORD PTR ES:[BX+0EH],AX ; lose code segment
MOV WORD PTR ES:[BX+10H],AX ; lose data segment
MOV AX,(STERR OR STDON OR 15H)
; error and done status, noncritical
; initialisation failure
RET
;
; Malformed parameters
;
ASSUME CS:_TEXT,DS:NOTHING,ES:NOTHING
;
INIT30: POP DS ; recover register
;
ASSUME CS:_TEXT,DS:DGROUP,ES:NOTHING
;
MOV AX,OFFSET MES1 ; '..invalid argument'
CALL DOSOUT ; output it
JMP INIT20 ; join exit code
;
INIT ENDP
;
SUBTTL Copy a file
PAGE+
;
; This routine copies a file
;
; Inputs:
; AX - offset of source file name
; DX - offset of destination file name
; DS - data segment
;
; Outputs:
; None
;
ASSUME CS:_TEXT,DS:DGROUP,ES:NOTHING
;
DOCOPY PROC NEAR
;
PUSH DX ; save destination offset
PUSH AX ; save source offset
PUSH DS ; source segment
PUSH AX ; source offset
PUSH DS ; destination segment
PUSH DX ; destination offset
PUSH DCPY_EXISTING ; options
PUSH 0 ; DWORD reserved
PUSH 0
CALL DosCopy ; do the copy
OR AX,AX ; copied OK?
JNZ NOCOPY ; j if not
MOV AX,OFFSET CMES1 ; 'File '
CALL DOSOUT ; output it
POP AX ; source filename
CALL DOSOUT ; output it
MOV AX,OFFSET CMES2 ; ' copied to '
CALL DOSOUT ; output it
POP AX ; destination filename
CALL DOSOUT ; output it
MOV AX,OFFSET CMES3 ; '<CR><LF>'
CALL DOSOUT ; output it
;
RET ; and return
NOCOPY: MOV AX,OFFSET CMES1 ; 'File '
CALL DOSOUT ; output it
POP AX ; source filename
CALL DOSOUT ; output it
MOV AX,OFFSET CMES4 ; ' NOT copied to '
CALL DOSOUT ; output it
POP AX ; destination filename
CALL DOSOUT ; output it
MOV AX,OFFSET CMES3 ; '<CR><LF>'
CALL DOSOUT ; output it
;
RET ; and return
;
DOCOPY ENDP
;
SUBTTL Output message
PAGE+
;
; Routine to output a string to the screen.
;
; Inputs:
; AX - offset of zero terminated message
; DS - data segment
;
; Outputs:
; None
;
ASSUME CS:_TEXT,DS:DGROUP,ES:NOTHING
;
DOSOUT PROC NEAR
;
PUSH ES ; save ES
PUSH AX ; save message offset
PUSH DS ; copy DS...
POP ES ; ...to ES
MOV DI,AX ; ES:DI point to message
XOR AL,AL ; set AL=0 for scan value
MOV CX,100 ; just a large value
REPNZ SCASB ; scan for zero byte
POP AX ; recover message offset
POP ES ; recover ES
SUB DI,AX ; get size to DI
DEC DI ; adjust
PUSH STDOUT ; standard output handle
PUSH DS ; segment of message
PUSH AX ; offset of message
PUSH DI ; length of message
PUSH DS ; segment for length written
PUSH OFFSET DGROUP:WLEN ; offset for length written
CALL DosWrite ; write message
;
RET
;
DOSOUT ENDP
;
_TEXT ENDS
;
END
| 22.704225 | 78 | 0.687593 |
847384cf3c00daccb874f03fcb811b3463b6c74a | 574 | asm | Assembly | oeis/090/A090821.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/090/A090821.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/090/A090821.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A090821: Numbers that are products of two consecutive nonprimes.
; Submitted by Jamie Morken(s2)
; 4,24,48,72,90,120,168,210,240,288,360,420,462,528,600,650,702,756,840,960,1056,1122,1190,1260,1368,1482,1560,1680,1848,1980,2070,2208,2352,2450,2550,2652,2808,2970,3080,3192,3306,3480,3720,3906,4032,4160,4290
add $0,1
mov $4,2
lpb $4
sub $2,$1
sub $4,1
add $0,$4
sub $0,1
sub $1,$5
mov $3,$0
max $3,0
seq $3,18252 ; The nonprime numbers: 1 together with the composite numbers, A002808.
mov $5,$4
mul $5,$3
add $1,$5
lpe
mul $2,$3
sub $1,$2
mov $0,$1
| 24.956522 | 210 | 0.675958 |
ab5e1fe628e8821cf9d16fd9af2e4671d062eb43 | 79 | asm | Assembly | bit_mani_1.asm | Klaus073/Assembly-language | 2ddddf9e3ef6ce6c05f56b015be5697d1ac3c0be | [
"BSD-2-Clause"
] | null | null | null | bit_mani_1.asm | Klaus073/Assembly-language | 2ddddf9e3ef6ce6c05f56b015be5697d1ac3c0be | [
"BSD-2-Clause"
] | null | null | null | bit_mani_1.asm | Klaus073/Assembly-language | 2ddddf9e3ef6ce6c05f56b015be5697d1ac3c0be | [
"BSD-2-Clause"
] | null | null | null | [org 0x0100]
mov ax 0x0004
mov cx,0x0004
xor ax,cx
mov ax, 0x4c00
int 0x21 | 8.777778 | 15 | 0.708861 |
6fe4676670fcb2d880d4dd592d48a0b771307d86 | 8,661 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_1798.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_1798.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_1798.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 %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xfb70, %rsi
lea addresses_A_ht+0x14954, %rdi
clflush (%rdi)
nop
nop
dec %rbx
mov $80, %rcx
rep movsq
nop
add %r10, %r10
lea addresses_WT_ht+0xf454, %rsi
lea addresses_WT_ht+0x1bbc8, %rdi
clflush (%rdi)
nop
nop
nop
cmp %rbp, %rbp
mov $27, %rcx
rep movsq
nop
nop
sub %r10, %r10
lea addresses_A_ht+0x160da, %rbx
nop
sub %rdi, %rdi
movb (%rbx), %r10b
nop
nop
nop
nop
nop
and %r10, %r10
lea addresses_WC_ht+0xb40, %rsi
lea addresses_normal_ht+0xeab8, %rdi
clflush (%rsi)
dec %r15
mov $82, %rcx
rep movsl
nop
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0x15948, %r10
and %r15, %r15
mov $0x6162636465666768, %rbp
movq %rbp, (%r10)
nop
nop
sub $58356, %rdi
lea addresses_A_ht+0x138c8, %rsi
nop
nop
add $14880, %rbx
mov (%rsi), %edi
nop
xor %rsi, %rsi
lea addresses_D_ht+0x197c8, %rcx
nop
nop
nop
sub %r10, %r10
mov $0x6162636465666768, %rdi
movq %rdi, %xmm4
vmovups %ymm4, (%rcx)
nop
nop
nop
nop
nop
cmp $29638, %rdi
lea addresses_A_ht+0x20e8, %rbp
inc %rcx
movb $0x61, (%rbp)
and %rbp, %rbp
lea addresses_A_ht+0xed0, %rbp
nop
xor $16465, %rbx
movups (%rbp), %xmm6
vpextrq $0, %xmm6, %r15
nop
nop
nop
nop
dec %rbp
lea addresses_UC_ht+0x7bc0, %rsi
lea addresses_WT_ht+0xb4a0, %rdi
xor $3897, %r13
mov $118, %rcx
rep movsw
nop
nop
nop
nop
nop
xor %r13, %r13
lea addresses_WC_ht+0x25b0, %rsi
lea addresses_normal_ht+0x16dac, %rdi
clflush (%rdi)
sub %r15, %r15
mov $50, %rcx
rep movsl
nop
nop
sub %rcx, %rcx
lea addresses_normal_ht+0xdbc8, %rsi
lea addresses_A_ht+0x12338, %rdi
nop
nop
dec %r13
mov $26, %rcx
rep movsb
nop
and %rcx, %rcx
lea addresses_normal_ht+0xec88, %rsi
lea addresses_normal_ht+0x1948, %rdi
nop
nop
nop
dec %rbp
mov $102, %rcx
rep movsq
nop
nop
nop
nop
nop
dec %rbp
lea addresses_WC_ht+0x134e8, %rsi
lea addresses_WT_ht+0x1d7a8, %rdi
clflush (%rsi)
nop
nop
nop
add %r13, %r13
mov $111, %rcx
rep movsq
nop
cmp %rbp, %rbp
lea addresses_WT_ht+0x3c8, %r10
nop
nop
nop
nop
inc %rdi
mov $0x6162636465666768, %r13
movq %r13, (%r10)
nop
and %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r15
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %rcx
push %rdx
push %rsi
// Store
lea addresses_WT+0x1478, %rsi
nop
sub $52093, %rdx
movl $0x51525354, (%rsi)
nop
nop
and $35611, %rdx
// Store
lea addresses_RW+0x16488, %r12
dec %rcx
mov $0x5152535455565758, %rsi
movq %rsi, %xmm4
vmovups %ymm4, (%r12)
cmp $46324, %rcx
// Store
lea addresses_US+0xef08, %rdx
nop
nop
and $11183, %r10
mov $0x5152535455565758, %r12
movq %r12, %xmm5
movups %xmm5, (%rdx)
nop
nop
nop
add %r8, %r8
// Faulty Load
lea addresses_UC+0x4bc8, %r10
nop
nop
and $1268, %rcx
mov (%r10), %dx
lea oracles, %r8
and $0xff, %rdx
shlq $12, %rdx
mov (%r8,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rcx
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': True, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': False, 'NT': 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
*/
| 34.233202 | 2,999 | 0.657892 |
2905b4b67ec517df9fed349f43338d65cef9f414 | 1,181 | asm | Assembly | libsrc/video/tms9918/msx_vpeek.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/video/tms9918/msx_vpeek.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/video/tms9918/msx_vpeek.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
; MSX specific routines
;
; Improved functions by Rafael de Oliveira Jannone
; Originally released in 2004 for GFX - a small graphics library
;
; int msx_vpeek(int address);
;
; Read the MSX video memory
;
; $Id: msx_vpeek.asm,v 1.10 2016-06-16 19:30:25 dom Exp $
;
SECTION code_clib
PUBLIC msx_vpeek
PUBLIC _msx_vpeek
EXTERN l_tms9918_disable_interrupts
EXTERN l_tms9918_enable_interrupts
INCLUDE "video/tms9918/vdp.inc"
msx_vpeek:
_msx_vpeek:
; (FASTCALL) -> HL = address
; enter vdp address pointer
ld a,l
call l_tms9918_disable_interrupts
IF VDP_CMD < 0
ld a,l
ld (-VDP_CMD),a
ld a,h
and @00111111
ld (-VDP_CMD),a
ld a,(-VDP_DATAIN)
ELSE
ld bc,VDP_CMD
out (c),l ;LSB of video memory ptr
ld a,h ; MSB of video mem ptr
and @00111111 ; masked with "write command" bits
out (c),a
ld bc,VDP_DATAIN
in a,(c)
ENDIF
ld h,0
ld l,a
call l_tms9918_enable_interrupts
ret
| 22.711538 | 71 | 0.553768 |
86bcdea76a7a71d36d370fd01d53dfc444f6d3df | 164 | asm | Assembly | src/main/fragment/mos6502-common/vdum1=vwum2_rol_3.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/main/fragment/mos6502-common/vdum1=vwum2_rol_3.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/main/fragment/mos6502-common/vdum1=vwum2_rol_3.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | lda {m2}
asl
sta {m1}
lda {m2}+1
rol
sta {m1}+1
lda #0
sta {m1}+3
rol
sta {m1}+2
asl {m1}
rol {m1}+1
rol {m1}+2
rol {m1}+3
asl {m1}
rol {m1}+1
rol {m1}+2
rol {m1}+3 | 9.111111 | 10 | 0.567073 |
f0dc035c74d8e3b05638eb1301ae08b6388472f3 | 822 | asm | Assembly | min_and_max_of_a_vector.asm | CristinaNilvan/assembler-i386-algorithmic-problems | 04f4e2a6e436ef1e40980c39f94183e750ae2454 | [
"MIT"
] | 1 | 2021-04-02T14:52:31.000Z | 2021-04-02T14:52:31.000Z | min_and_max_of_a_vector.asm | CristinaNilvan/assembly-i386-algorithmic-problems | 04f4e2a6e436ef1e40980c39f94183e750ae2454 | [
"MIT"
] | null | null | null | min_and_max_of_a_vector.asm | CristinaNilvan/assembly-i386-algorithmic-problems | 04f4e2a6e436ef1e40980c39f94183e750ae2454 | [
"MIT"
] | 1 | 2021-04-02T14:52:33.000Z | 2021-04-02T14:52:33.000Z | .386
.model flat, stdcall
includelib msvcrt.lib
extern exit: proc
public start
.data
vector_of_elements dw -10, 2, 4, 6, -12
number_of_elements dd 5
minimum dw 0
maximum dw 0
.code
start:
;Finds the minimum and the maximum.
mov eax, 0
mov ebx, 0
mov esi, 0
mov ecx, number_of_elements
mov ax, vector_of_elements[esi]
mov bx, vector_of_elements[esi]
while_loop :
cmp ax, vector_of_elements[esi]
jl check_if_max
mov ax, vector_of_elements[esi]
check_if_max :
cmp bx, vector_of_elements[esi]
jg final_instructions
mov bx, vector_of_elements[esi]
final_instructions :
add esi, 2
loop while_loop
mov minimum, ax
mov maximum, bx
push 0
call exit
end start | 16.117647 | 40 | 0.624088 |
3c0eebb5a4e0c20ba4fdc005154a106f5d2be318 | 874 | asm | Assembly | Application2.4.asm | abdalmoez/applications-on-gnusim-8085 | a8f28efb15a7cd0301db5af21ed027e1c23885c3 | [
"MIT"
] | null | null | null | Application2.4.asm | abdalmoez/applications-on-gnusim-8085 | a8f28efb15a7cd0301db5af21ed027e1c23885c3 | [
"MIT"
] | null | null | null | Application2.4.asm | abdalmoez/applications-on-gnusim-8085 | a8f28efb15a7cd0301db5af21ed027e1c23885c3 | [
"MIT"
] | null | null | null |
;<Bubble SORT Ascending order>
START: LXI H, SIZE ;Load size of array
MVI D, 00H ;Clear D register to set up a flag
MOV C, M ;Set C register with number of elements in list
DCR C ;Decrement C
INX H ;Increment memory to access list
CHECK: MOV A, M ;Retrieve list element in Accumulator
INX H ;Increment memory to access next element
CMP M ;Compare Accumulator with next element
JC NEXTBYTE ;If accumulator is less then jump to NEXTBYTE
MOV B, M ;Swap the two elements
MOV M, A ;
DCX H ;
MOV M, B ;
INX H ;
MVI D, 01H ;If exchange occurs save 01 in D register
NEXTBYTE: DCR C ;Decrement C for next iteration
JNZ CHECK ;Jump to CHECK if C>0
MOV A, D ;Transfer contents of D to Accumulator
CPI 01H ;Compare accumulator contents with 01H
JZ START ;Jump to START if D=01H
HLT ;HALT
SIZE: DB 10
ARRAY: db 12,4,128,3,151,1,7,9,8,18 | 32.37037 | 59 | 0.70595 |
d87cbc71596af37f9ae9fca74ac8b7179ec87220 | 5,504 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_430.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_430.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_430.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 %r14
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x11f17, %rsi
lea addresses_WT_ht+0xca97, %rdi
nop
nop
sub %r9, %r9
mov $47, %rcx
rep movsw
nop
xor %r14, %r14
lea addresses_WT_ht+0xf1cc, %rsi
lea addresses_WT_ht+0x14517, %rdi
inc %r9
mov $13, %rcx
rep movsb
nop
nop
nop
sub $44045, %rcx
lea addresses_normal_ht+0x4517, %rsi
lea addresses_A_ht+0x6117, %rdi
nop
nop
xor $3074, %r13
mov $13, %rcx
rep movsb
nop
cmp %r9, %r9
lea addresses_WT_ht+0x13497, %rsi
lea addresses_WT_ht+0x1917, %rdi
nop
sub $37798, %r10
mov $52, %rcx
rep movsw
nop
sub %r14, %r14
lea addresses_A_ht+0x1ce27, %r14
clflush (%r14)
nop
nop
nop
xor %r13, %r13
movw $0x6162, (%r14)
nop
nop
nop
dec %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r14
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r14
push %r9
push %rbx
push %rdx
// Store
lea addresses_normal+0x32f9, %r14
nop
dec %r10
mov $0x5152535455565758, %rbx
movq %rbx, (%r14)
nop
nop
xor %r10, %r10
// Faulty Load
lea addresses_PSE+0x10517, %r12
dec %r11
vmovups (%r12), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %r9
lea oracles, %r10
and $0xff, %r9
shlq $12, %r9
mov (%r10,%r9,1), %r9
pop %rdx
pop %rbx
pop %r9
pop %r14
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}}
{'OP': 'REPM', 'src': {'same': True, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3}}
{'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
*/
| 45.866667 | 2,999 | 0.662064 |
6899cb987436d952679ab5471bfce7ababf3c2a1 | 12,120 | asm | Assembly | snake.asm | jw0k/ti83-snake | 2bc239c49a8860b176fb5107949211485e4f0ac1 | [
"MIT"
] | 1 | 2019-11-09T23:53:17.000Z | 2019-11-09T23:53:17.000Z | snake.asm | jw0k/ti83-snake | 2bc239c49a8860b176fb5107949211485e4f0ac1 | [
"MIT"
] | null | null | null | snake.asm | jw0k/ti83-snake | 2bc239c49a8860b176fb5107949211485e4f0ac1 | [
"MIT"
] | null | null | null | .NOLIST
#define equ .equ
#define EQU .equ
#define end .end
;#include "ti83asm.inc"
#include "tokens.inc"
#include "squish.inc"
.LIST
#define b_call(X) CALL X
;there are 531 bytes of free space starting at STATVARS
;to use it we have to call _DelRes first to invalidate the statistic results
snake equ STATVARS ; array of snake cells
freecells equ snake + (12*8) ; array of free cells. ends with $FF
food equ freecells + (12*8) ; food position
newsnakecell equ food + 1
oldtail equ newsnakecell + 1
.org 9327h
di
call _runIndicOff
call _ClrLCDFull
call _DelRes
call setupScreen
call initSnake
call initFreeCells
call randomizeFood
gameLoop:
call eraseTail
call drawSnake
call drawFood
ld A, (snakelen)
sub A, 3
srl A
srl A
sla A
ld C, A
ld B, 0
ld HL, delayValues
add HL, BC
ld E, (HL)
inc HL
ld D, (HL)
ld A, (direction)
ld B, A
delayLoop
ld A, $FD ;enter, +, -, x, /, ^, clear
out (1), A
nop
nop
in A, (1)
cp $BF ;clear
jr z, quitWithoutMessage
ld A, $FE ;down, left, right, up
out (1), A
nop
nop
in A, (1)
cp $FE ;down
jr z, downPressed
cp $F7 ;up
jr z, upPressed
cp $FD ;left
jr z, leftPressed
cp $FB ;right
jr z, rightPressed
jr delayEnd
;direction 0=right, 1=down, 2=left, 3=up
downPressed:
ld A, (direction)
cp 3
jr z, delayEnd
ld B, 1
jr delayEnd
upPressed:
ld A, (direction)
cp 1
jr z, delayEnd
ld B, 3
jr delayEnd
leftPressed:
ld A, (direction)
cp 0
jr z, delayEnd
ld B, 2
jr delayEnd
rightPressed:
ld A, (direction)
cp 2
jr z, delayEnd
ld B, 0
;jr delayEnd
delayEnd:
dec DE
ld A, D
or E
jr nz, delayLoop
ld A, B
ld (direction), A
call moveSnake
call checkSelfCollission
jr c, quit
jp gameLoop
;ret
shake:
ld HL, shakeValues
shakeLoop
ld A, (HL)
inc HL
cp A, $FF
jr z, shakeEnd
out ($10), A
ld B, 5
ei
_ halt
djnz -_
di
jr shakeLoop
shakeEnd
ld A, $40
out ($10), A
ret
quitWithoutMessage:
call _clrScrnFull
ei
ret
quit:
call shake
call _clrScrnFull
ld A, 0
ld (CURROW), A
ld A, 0
ld (CURCOL), A
ld HL, byeMessage1
call _puts
ld A, 1
ld (CURROW), A
ld A, 0
ld (CURCOL), A
ld HL, byeMessage2
call _puts
ld A, (score)
cp 10
jr c, lessThan10
ld H, 0
ld L, A
call _divHLby10
ld B, A
ld A, L
add A, '0'
call _putc
ld A, B
lessThan10:
add A, '0'
call _putc
ld A, 2
ld (CURROW), A
ld A, 0
ld (CURCOL), A
ei
ret
replaceFreeCell: ;input: A - value of a free cell that needs to be replaced; B - value that this cell will be replaced with
ld HL, freecells-1
ld C, A
_ inc HL
ld A, (HL)
cp C
jr nz, -_
;now HL points to the found cell
ld (HL), B
ret
removeFreeCell: ;input: B - value of a free cell to remove
ld HL, freecells
_ ld A, (HL)
inc HL
cp B
jr nz, -_
;now HL points to one byte after found cell
ld D, H
ld E, L
dec DE
trimLoop:
ldi
ld A, (DE)
cp $FF
jr nz, trimLoop
ret
initFreeCells:
ld HL, freecells
ld BC, 0
freeCellsLoop:
;A = merge(B,C)
ld A, B
sla A
sla A
sla A
sla A
or C
ld (HL), A
inc HL
inc B
ld A, B
cp $0C
jr c, freeCellsLoop
ld B, 0
inc C
ld A, C
cp $08
jr nz, freeCellsLoop
ld (HL), $FF
ld HL, initialSnakeStart
ld C, initialSnakeEnd-initialSnakeStart
removeLoop:
ld B, (HL)
inc HL
push HL
push BC
call removeFreeCell
pop BC
pop HL
dec C
jr nz, removeLoop
;$00, $10, $20, $30, $40, $50, $60, $70, $80, $90, $A0, $B0
;$01, $71, $81, $91, $A1, $B1
;$02, $12, $22, $32, $42, $52, $62, $72, $82, $92, $A2, $B2
;$03, $13, $23, $33, $43, $53, $63, $73, $83, $93, $A3, $B3
;...
ret
initSnake:
;copy initial snake values
ld HL, initialSnakeStart
ld DE, snake
ld BC, initialSnakeEnd-initialSnakeStart
ldir
;fill rest with zeros
;ld HL, snake + (initialSnakeEnd-initialSnakeStart)
;ld DE, snake + (initialSnakeEnd-initialSnakeStart) + 1
;ld BC, 12*8*2-(initialSnakeEnd-initialSnakeStart) - 1
;ld (HL), 0
;ldir
ret
randomizeFood:
;call _RANDOM ;181465 T-states (!!!)
;ld HL, ninetysix
;call _Mov9ToOP2 ;232 T-states
;call _FPMult ;6702 T-states
;call _Trunc ;3026 T-states
;call _ConvOP1 ;1175 T-states
;now A is a random number between 0 and 95 inclusive
ld A, (snakelen)
cp 12*8
jr nz, randomizeFoodContinue
ld A, $FF
ld (food), A
ret
randomizeFoodContinue:
ld HL, freecells
ld A, R
ld B, A
jr z, randomizeEnd
randomFreeCellLoop:
inc HL
ld A, (HL)
cp $FF
jr nz, _
ld HL, freecells
_ dec B
jr nz, randomFreeCellLoop
randomizeEnd:
ld DE, food
ldi
ret
setHLToHead:
ld BC, (snakelen)
ld B, 0
dec BC
ld HL, snake
add HL, BC
ret
checkFoodCollission:
ld A, (food)
ld B, A
ld A, (newsnakecell)
cp B
jr z, foodCollissionYes
foodCollissionNo:
or A
ret
foodCollissionYes:
scf
ret
checkSelfCollission:
call setHLToHead
ld DE, snake-1
ld A, (snakelen)
ld C, A
dec C
; DE = tail-1, HL = head, C = snakelen-1
selfCollissionLoop:
inc DE
ld A, (DE)
cp (HL)
jr z, selfCollissionYes
dec C
jr nz, selfCollissionLoop
selfCollissionNo:
or A ; clear the carry flag
ret
selfCollissionYes:
scf
ret
moveSnake:
;save tail
ld hl, snake
ld de, oldTail
ldi
ld A, (direction)
cp 3
jr z, up
cp 2
jr z, left
cp 1
jr z, down
right:
call copyLastCell
ld A, (newsnakecell)
add A, $10
cp $C0
jr c, _
and $0F
_ ld (newsnakecell), A
jr moveSnakeEnd
down:
call copyLastCell
ld A, (newsnakecell)
inc A
bit 3, A
jr z, _
and $F0
_ ld (newsnakecell), A
jr moveSnakeEnd
left:
call copyLastCell
ld A, (newsnakecell)
sub A, $10
jp p, _
and $BF
_ ld (newsnakecell), A
jr moveSnakeEnd
up:
call copyLastCell
ld A, (newsnakecell)
and $0F
ld A, (newsnakecell)
jr nz, _
or $08
_ dec A
ld (newsnakecell), A
;jr moveSnakeEnd
moveSnakeEnd:
call checkFoodCollission
jr nc, noFoodCollission
ld IX, snakelen
inc (IX)
call setHLToHead
ld A, (newsnakecell)
ld (HL), A
ld B, A
call removeFreeCell
call randomizeFood
ld IX, score
inc (IX)
ret
noFoodCollission:
ld BC, (snakelen)
ld B, 0
dec C
ld HL, snake
inc HL
ld DE, snake
ldir
; DE is pointing at snake's head
ld HL, newsnakecell
ldd
;update freecells array - oldtail becomes a new free cell, newsnakecell must be removed from freecells
;so let's just find newsnakecell in freecells and override it with oldtail
ld A, (oldtail)
ld B, A
ld A, (newsnakecell)
call replaceFreeCell
ret
copyLastCell
call setHLToHead
ld DE, newsnakecell
ldd
ret
;kolumny $20 - $2B (12 kolumn)
;wiersze:
;0: $80
;1: $88
;2: $90
;3: $98
;4: $A0
;5: $A8
;6: $B0
;7: $B8
setDrawPosition: ; input: DE - cell data
ld A, (DE)
and $F0
srl A
srl A
srl A
srl A
or $20
out ($10), A
call _lcd_busy ; probably can be commented out
ld A, (DE)
and $0F
sla A
sla A
sla A
add A, $80
out ($10), A
call _lcd_busy
ret
drawBlock: ;input: DE - points to cell position info, HL - points to cell data
call setDrawPosition
ld C, $11
ld B, 8
_ outi
call _lcd_busy
jr nz, -_
ret
drawFullCell: ; input: DE - points to cell position info
ld HL, fullCellData
call drawBlock
ret
fullCellData:
.db $7E, $FF, $FF, $FF, $FF, $FF, $FF, $7E
drawEmptyCell: ; input: DE - points to cell position info
ld HL, emptyCellData
call drawBlock
ret
emptyCellData:
.db $00, $00, $00, $00, $00, $00, $00, $00
drawFood:
ld A, (food)
cp $FF
jr z, _
ld DE, food
ld HL, foodData
call drawBlock
_ ret
foodData:
.db $18, $7E, $FF, $FF, $FF, $FF, $7E, $18
drawHead: ; input: DE - points to cell position info
ld A, (direction)
cp 3
jr z, drawUp
cp 2
jr z, drawLeft
cp 1
jr z, drawDown
drawRight:
ld HL, rightHeadData
call drawBlock
ret
drawDown:
ld HL, downHeadData
call drawBlock
ret
drawLeft:
ld HL, leftHeadData
call drawBlock
ret
drawUp:
ld HL, upHeadData
call drawBlock
ret
rightHeadData:
.db $78, $FE, $F6, $FF, $FF, $F6, $FE, $78
downHeadData:
.db $7E, $FF, $FF, $FF, $DB, $7E, $7E, $18
leftHeadData:
.db $1E, $7F, $6F, $FF, $FF, $6F, $7F, $1E
upHeadData:
.db $18, $7E, $7E, $DB, $FF, $FF, $FF, $7E
;B A
;B5, 05 - 40 (left tail)
;05, 15 - 10 (left tail)
;05, B5 - B0 (right tail)
;15, 05 - F0 (right tail)
;57, 50 - F9 (up tail) 1111 1001
;50, 51 - 01 (up tail) 0000 0001
;50, 57 - 07 (down tail) 0000 0111
;51, 50 - FF (down tail) 1111 1111
drawTail: ; input: DE - points to cell position info
ld A, (DE)
ld B, A
inc DE
ld A, (DE)
xor B
and $0F
jr z, leftOrRight
upOrDown:
ld A, (DE)
dec DE
sub B
and $02
jr z, drawTailUp
jr drawTailDown
leftOrRight:
ld A, (DE)
dec DE
sub B
cp $80
jr c, drawTailLeft
jr drawTailRight
drawTailRight:
ld HL, rightTailData
call drawBlock
ret
drawTailDown:
ld HL, downTailData
call drawBlock
ret
drawTailLeft:
ld HL, leftTailData
call drawBlock
ret
drawTailUp:
ld HL, upTailData
call drawBlock
ret
rightTailData:
.db $00, $FC, $FF, $FE, $FE, $F8, $E0, $00
downTailData:
.db $7E, $7E, $7E, $3E, $3E, $1E, $1C, $04
leftTailData:
.db $00, $07, $1F, $7F, $7F, $FF, $3F, $00
upTailData:
.db $20, $38, $78, $7C, $7C, $7E, $7E, $7E
drawSnake:
ld DE, snake
call drawTail
ld A, (snakelen)
dec A
dec A
ld DE, snake
inc DE
_ push AF
call drawFullCell
pop AF
inc DE
dec A
jr nz, -_
call drawHead
ret
eraseTail:
ld DE, oldtail
call drawEmptyCell
ret
setupScreen:
ld A, $05 ;set X auto-increment
out ($10), A
call _lcd_busy
ret
INITALSNAKELEN equ 3
;INITALSNAKELEN equ 80
delayValues ; for snake lengths 3, 7, 11, ..., 95
.dw $3803, $318A, $2BE8, $2700, $22BA, $1F03, $1BC6, $18F5, $1681, $145E, $1282, $10E4
.dw $0F7B, $0E41, $0D30, $0C42, $0B73, $0ABF, $0A22, $0999, $0922, $08BB, $0860, $0812
;.dw $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803
;.dw $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803, $3803
snakelen
.db INITALSNAKELEN ; snake length
direction
.db $00 ; 0=right, 1=down, 2=left, 3=up
initialSnakeStart
.db $11, $21, $31
;.db $00, $10, $20, $30, $40, $50, $60, $70, $80, $90, $A0, $B0
;.db $B1, $A1, $91, $81, $71, $61, $51, $41, $31, $21, $11, $01
;.db $02, $12, $22, $32, $42, $52, $62, $72, $82, $92, $A2, $B2
;.db $B3, $A3, $93, $83, $73, $63, $53, $43, $33, $23, $13, $03
;.db $04, $14, $24, $34, $44, $54, $64, $74, $84, $94, $A4, $B4
;.db $B5, $A5, $95, $85, $75, $65, $55, $45, $35, $25, $15, $05
;.db $06, $16, $26, $36, $46, $56, $66, $76
initialSnakeEnd
shakeValues
.db $40, $46, $40, $46, $40, $46, $40, $45, $40, $45, $40, $42, $40, $42, $40, $41
.db $40, $40, $41, $40, $40, $40, $40, $40, $40, $40, $40, $40, $40, $40, $40, $FF
score
.db $00
byeMessage1
.db "Zjedzonych", 0
byeMessage2
.db "jablek: ", 0
| 16.625514 | 123 | 0.557096 |
2055a775f4305f22c506d07fb16f88af95e59e1b | 431 | asm | Assembly | oeis/134/A134358.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/134/A134358.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/134/A134358.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A134358: Coefficient of y^(n-3) in expansion of (y+n!)^n.
; Submitted by Christian Krause
; 216,55296,17280000,7464960000,4480842240000,3670705963008000,4013916970549248000,5734167100784640000000,10494242565323489280000000,24178734870505319301120000000,69056884663650242455928832000000
mov $1,1
mov $3,$0
lpb $3
mov $0,$3
add $0,3
pow $0,4
mul $1,2
mul $1,$0
add $2,2
div $1,$2
sub $3,1
lpe
mov $0,$1
mul $0,216
| 22.684211 | 195 | 0.735499 |
ee1d8e358aaa777107097e8cf8fc01392c33df2a | 820 | asm | Assembly | oeis/142/A142141.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/142/A142141.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/142/A142141.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A142141: Primes congruent to 32 mod 37.
; Submitted by Jon Maiga
; 439,587,661,809,883,1031,1327,1549,1697,1993,2141,2437,2659,3251,3547,3769,3917,4139,4583,4657,5101,5323,5471,5693,6211,6359,6581,6803,7247,7321,7691,8209,8431,9319,9467,9689,10133,10429,10651,10799,11243,11317,11909,13093,13241,13463,13537,13759,13907,14869,15017,15091,15313,15461,15683,16127,16349,17681,17903,17977,18199,19013,19087,19309,19457,19531,19753,20123,20641,20789,21011,21529,21751,22343,22639,22787,22861,23971,24859,25229,25303,25673,25747,25969,26339,26561,26783,27449,27893,27967
mov $2,$0
add $2,6
pow $2,2
mov $4,9
lpb $2
mov $3,$4
add $3,22
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
mov $1,$0
max $1,0
cmp $1,$0
mul $2,$1
sub $2,1
add $4,37
lpe
mov $0,$4
add $0,23
| 35.652174 | 500 | 0.730488 |
e3d023b830be2478e479fdabbb429a4491e5c6aa | 447 | asm | Assembly | programs/oeis/016/A016035.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/016/A016035.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/016/A016035.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A016035: a(n) = Sum_{j|n, 1 < j < n} phi(j). Also a(n) = n - phi(n) - 1 for n > 1.
; 0,0,0,1,0,3,0,3,2,5,0,7,0,7,6,7,0,11,0,11,8,11,0,15,4,13,8,15,0,21,0,15,12,17,10,23,0,19,14,23,0,29,0,23,20,23,0,31,6,29,18,27,0,35,14,31,20,29,0,43,0,31,26,31,16,45,0,35,24,45,0,47,0,37,34,39,16,53,0,47,26,41,0,59,20,43,30,47,0,65,18,47,32,47,22,63,0,55,38,59
mov $1,$0
seq $1,10 ; Euler totient function phi(n): count numbers <= n and prime to n.
trn $0,$1
| 63.857143 | 262 | 0.590604 |
397d242aa5f3296b403e0951f6e53075244ec749 | 7,761 | asm | Assembly | nasm assembly/assignment 5/qs4.asm | AI-Factor-y/NASM-library | 5141901352a47b73e716e27d628bb719f1891092 | [
"Apache-2.0"
] | null | null | null | nasm assembly/assignment 5/qs4.asm | AI-Factor-y/NASM-library | 5141901352a47b73e716e27d628bb719f1891092 | [
"Apache-2.0"
] | null | null | null | nasm assembly/assignment 5/qs4.asm | AI-Factor-y/NASM-library | 5141901352a47b73e716e27d628bb719f1891092 | [
"Apache-2.0"
] | null | null | null | section .data
msg1 : db 'debug here --',10
l1 : equ $-msg1
msg2 : db 'Enter your string : '
l2 : equ $-msg2
msg3 : db 'smallest words : '
l3 : equ $-msg3
msg4 : db 'largest words : '
l4: equ $-msg4
msg5 : db 'msg 5 here',10
l5: equ $-msg5
space:db ' '
newline:db '',10
section .bss
num: resd 1
counter: resd 1
n: resd 10
string_matrix: resb 1000
section .text
global _start
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg2
mov edx, l2
int 80h
mov ebx, string_matrix
call read_string_as_matrix
call find_min_max
mov eax, 4
mov ebx, 1
mov ecx, newline
mov edx, 1
int 80h
exit:
mov eax,1
mov ebx,0
int 80h
; section for procedures
;----------------------------
find_min_max:
section .bss
size_array: resd 200
size_array_counter: resd 1
min_size: resd 1
max_size: resd 1
min_max_i: resd 1
selected_case_min_max: resd 1
section .text
push rax
push rbx
push rcx
push rdx
call create_size_array
mov ebx, size_array
mov dword[min_size],1000
mov dword[max_size],0
min_max_loop1:
mov eax,[min_max_i]
cmp eax,[size_array_counter]
je exit_min_max_loop1
mov cx, word[ebx+2*eax]
cmp cx, word[min_size]
jae continue_min_search
mov word[min_size],cx
continue_min_search:
cmp cx, word[max_size]
jbe continue_max_search
mov word[max_size],cx
continue_max_search:
inc dword[min_max_i]
jmp min_max_loop1
exit_min_max_loop1:
mov eax, 4
mov ebx, 1
mov ecx, msg3
mov edx, l3
int 80h
mov eax, [min_size]
mov ebx, string_matrix
mov [selected_case_min_max], eax
call print_string_in_matrix
call debugger
mov eax, 4
mov ebx, 1
mov ecx, msg4
mov edx, l4
int 80h
mov eax, [max_size]
mov ebx, string_matrix
mov [selected_case_min_max], eax
call print_string_in_matrix
pop rdx
pop rcx
pop rbx
pop rax
ret
print_array:
; usage
;-------
; 1: base address of array in ebx mov ebx,array
; 2: size of array in n
push rax ; push all
push rbx
push rcx
mov eax,0
print_loop:
cmp eax,dword[n]
je end_print1
mov cx,word[ebx+2*eax]
mov word[num],cx
;;The number to be printed is copied to ’num’
; before calling print num function
push rax
push rbx
call print_num
pop rbx
pop rax
inc eax
jmp print_loop
end_print1:
; popa
pop rcx
pop rbx
pop rax ; pop all
ret
print_num:
;usage
;------
; 1: create a variable num(word)
; 2: move number to print to num (word)
section .data
nwl_for_printnum :db ' ',10
nwl_l_printnum : equ $-nwl_for_printnum
section .bss
count_printnum : resb 10
temp_printnum : resb 1
section .text
push rax ; push all
push rbx
push rcx
mov byte[count_printnum],0
;call push_reg
extract_no:
cmp word[num], 0
je print_no
inc byte[count_printnum]
mov dx, 0
mov ax, word[num]
mov bx, 10
div bx
push dx ; recursion here
mov word[num], ax
jmp extract_no
print_no:
cmp byte[count_printnum], 0
je end_print
dec byte[count_printnum]
pop dx
mov byte[temp_printnum], dl ; dx is further divided into dh and dl
add byte[temp_printnum], 30h
mov eax, 4
mov ebx, 1
mov ecx, temp_printnum
mov edx, 1
int 80h
jmp print_no
end_print:
mov eax,4
mov ebx,1
mov ecx,nwl_for_printnum
mov edx,nwl_l_printnum
int 80h
;;The memory location ’newline’ should be declared with the ASCII key for new popa
;call pop_reg
pop rcx
pop rbx
pop rax ; pop all
ret
read_string_as_matrix:
section .bss
row_size: resd 1
rs_i: resd 1
rs_j: resd 1
rs_pos: resd 1
rs_temp: resb 1
no_of_words: resd 1
section .text
push rax
push rbx
push rcx
push rdx
mov dword[row_size],50
mov dword[rs_i],0
mov dword[rs_j],0
mov dword[no_of_words],1
rs_loop_i:
mov dword[rs_j],0
rs_loop_j:
push rbx
mov eax, 3
mov ebx, 0
mov ecx, rs_temp
mov edx, 1
int 80h
pop rbx
cmp byte[rs_temp], 10 ;; check if the input is ’Enter’
je exit_rs_loop_i
cmp byte[rs_temp],' '
je exit_rs_loop_j
push rbx
mov ax,word[rs_i]
mov bx,word[row_size]
mul bx
add ax,word[rs_j]
mov word[rs_pos],ax
; call debugger
pop rbx
mov cl,byte[rs_temp]
mov eax, [rs_pos]
mov byte[ebx+eax], cl
inc dword[rs_j]
jmp rs_loop_j
exit_rs_loop_j:
push rbx
mov ax,word[rs_i]
mov bx,word[row_size]
mul bx
add ax,word[rs_j]
mov word[rs_pos],ax
pop rbx
mov eax, [rs_pos]
mov byte[ebx+eax], 0
inc dword[no_of_words] ;; finds the total no of words
inc dword[rs_i]
jmp rs_loop_i
exit_rs_loop_i:
push rbx
mov ax,word[rs_i]
mov bx,word[row_size]
mul bx
add ax,word[rs_j]
mov word[rs_pos],ax
pop rbx
mov eax, [rs_pos]
mov byte[ebx+eax], 0
pop rdx
pop rcx
pop rbx
pop rax
ret
print_string_in_matrix:
section .bss
ps_i: resd 1
ps_j: resd 1
ps_pos: resd 1
ps_temp: resb 1
section .text
push rax
push rbx
push rcx
push rdx
mov dword[ps_i],0
mov dword[ps_j],0
ps_loop_i:
mov ax, word[ps_i]
cmp ax, word[no_of_words]
je exit_ps_loop_i
mov dword[ps_j],0
push rbx
push rax
mov eax,[ps_i]
mov ebx, size_array
mov cx, word[ebx+2*eax]
pop rax
pop rbx
cmp cx,word[selected_case_min_max]
jne exit_ps_loop_j2
ps_loop_j:
push rbx
mov ax, word[ps_i]
mov bx, word[row_size]
mul bx
add ax,word[ps_j]
mov word[ps_pos],ax
pop rbx
mov eax, [ps_pos]
mov al, byte[ebx+eax]
mov byte[ps_temp], al
cmp byte[ps_temp],0
je exit_ps_loop_j
push rbx
mov eax, 4
mov ebx, 1
mov ecx, ps_temp
mov edx, 1
int 80h
pop rbx
inc dword[ps_j]
jmp ps_loop_j
exit_ps_loop_j:
call debugger2
exit_ps_loop_j2:
inc dword[ps_i]
jmp ps_loop_i
exit_ps_loop_i:
pop rdx
pop rcx
pop rbx
pop rax
ret
create_size_array:
section .bss
csa_i: resd 1
csa_j: resd 1
csa_pos: resd 1
csa_temp: resb 1
size_count: resd 1
section .text
push rax
push rbx
push rcx
push rdx
mov dword[csa_i],0
mov dword[csa_j],0
csa_loop_i:
mov dword[size_count],0
mov ax, word[csa_i]
cmp ax, word[no_of_words]
je exit_csa_loop_i
mov dword[csa_j],0
csa_loop_j:
push rbx
mov ax, word[csa_i]
mov bx, word[row_size]
mul bx
add ax,word[csa_j]
mov word[csa_pos],ax
pop rbx
mov eax, [csa_pos]
mov al, byte[ebx+eax]
mov byte[csa_temp], al
cmp byte[csa_temp],0
je exit_csa_loop_j
inc dword[csa_j]
inc dword[size_count]
jmp csa_loop_j
exit_csa_loop_j:
inc dword[csa_i]
push rcx
push rbx
push rax
mov ebx, size_array
mov eax, [size_array_counter]
mov cx, word[size_count]
mov word[ebx+2*eax], cx
inc dword[size_array_counter]
pop rax
pop rbx
pop rcx
jmp csa_loop_i
exit_csa_loop_i:
pop rdx
pop rcx
pop rbx
pop rax
ret
debugger:
section .data
msg_debugger : db '',10
msg_debugger_l : equ $-msg_debugger
section .text
push rax
push rbx
push rcx
push rdx
; debug----
mov eax, 4
mov ebx, 1
mov ecx, msg_debugger
mov edx, msg_debugger_l
int 80h
;debug ---
pop rdx
pop rcx
pop rbx
pop rax
; action
ret
debugger2:
section .data
msg_debugger2 : db ' ',
msg_debugger_l2 : equ $-msg_debugger2
section .text
push rax
push rbx
push rcx
push rdx
; debug----
mov eax, 4
mov ebx, 1
mov ecx, msg_debugger2
mov edx, msg_debugger_l2
int 80h
;debug ---
pop rdx
pop rcx
pop rbx
pop rax
; action
ret | 13.266667 | 84 | 0.635872 |
ada7cde3ce0385e471c3dfa4fdb562d9a9983faa | 567 | asm | Assembly | src/mem_layout.asm | Gegel85/RunnerGB | 3d36597b94558cd3b3f613031291086190b45f2f | [
"MIT"
] | null | null | null | src/mem_layout.asm | Gegel85/RunnerGB | 3d36597b94558cd3b3f613031291086190b45f2f | [
"MIT"
] | null | null | null | src/mem_layout.asm | Gegel85/RunnerGB | 3d36597b94558cd3b3f613031291086190b45f2f | [
"MIT"
] | null | null | null | SECTION "crash", ROM0
jp crash
SECTION "vblank", ROM0
jp vblank_interrupt
SECTION "hblank", ROM0
jp hblank_interrupt
SECTION "timer", ROM0
jp timer_interrupt
SECTION "serial", ROM0
jp serial_interrupt
SECTION "joypad", ROM0
jp joypad_interrupt
crash::
ld b, b
.loop:
ld hl, $FF44
ld a, $90
cp [hl]
jr nc, .loop
dec l
xor a
ld [hld], a
ld [hl], a
ld hl, crashText
ld c, 22
ld de, $9800
.copyLoop:
ld a, [hli]
ld [de], a
inc e
dec c
jr nz, .copyLoop
jp lockup
SECTION "Start", ROM0
nop
jp main
SECTION "Header", ROM0
ds $150 - $104
| 11.571429 | 22 | 0.663139 |
f6ea26e06da0716b9bb5583fb42102abc1d5321c | 1,426 | asm | Assembly | programs/oeis/004/A004691.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/004/A004691.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/004/A004691.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A004691: Fibonacci numbers written in base 8.
; 0,1,1,2,3,5,10,15,25,42,67,131,220,351,571,1142,1733,3075,5030,10125,15155,25302,42457,67761,132440,222421,355061,577502,1154563,1754265,3131050,5105335,10236405,15343742,25602347,43146311,70750660,134117171,225070051,361207242,606277313,1167506555,1776006070,3165514645,5163522735,10351237602,15534762537,26106222341,43643205100,71751427441,135614634541,227566264202,365403120743,615171405145,1202574526110,2017766133255,3222562661365,5242551014642,10465333676227,15730104713071,26415440611320,44345545524411,72763206335731,137330754062342,232314162420273,371645136502635,624161321123130,1216026457625765,2042210000751115,3260236460577102,5322446461550217,10602705142347321,16125353624117540,26730260766467061,45055634612606621,74006115601275702,141063752414104523,235072070215402425,376156042631507150,633250133047111575,1231426175700620745,2064676330747732542,3316324526650553507,5403223057620506251,10721547606471261760,16324772666311770231,27246542475003252211,45573535363315242442,75042300060320514653,142636035443635757315,237700335524156474170,402536373170014453505,642436730714173147675,1245175324104207623402,2107634255020402773277,3355031601124612616701,5464666056145215612200,11041717657272030431101,16526605735437246243301,27570525614731276674402
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
seq $0,7094 ; Numbers in base 8.
| 237.666667 | 1,261 | 0.884993 |
2c496641f210d1473b9d4a96636eff4487869c97 | 651 | asm | Assembly | oeis/016/A016009.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/016/A016009.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/016/A016009.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A016009: a(n) = (tau(n^13)+12)/13.
; Submitted by Jon Maiga
; 1,2,2,3,2,16,2,4,3,16,2,30,2,16,16,5,2,30,2,30,16,16,2,44,3,16,4,30,2,212,2,6,16,16,16,57,2,16,16,44,2,212,2,30,30,16,2,58,3,30,16,30,2,44,16,44,16,16,2,408,2,16,30,7,16,212,2,30,16,212,2,84,2,16,30,30,16,212,2,58,5,16,2,408,16,16,16,44,2,408,16,30,16,16,16,72,2,30,30,57
add $0,1
mov $1,1
lpb $0
mov $3,$0
lpb $3
mov $4,$0
mov $6,$2
cmp $6,0
add $2,$6
mod $4,$2
cmp $4,0
cmp $4,0
mov $5,$2
add $2,1
cmp $5,1
max $4,$5
sub $3,$4
lpe
mov $5,1
lpb $0
dif $0,$2
add $5,13
lpe
mul $1,$5
lpe
mov $0,$1
div $0,13
add $0,1
| 19.727273 | 273 | 0.526882 |
908f84cf91e385fe234d8fec515a887e24e5acae | 1,083 | asm | Assembly | writeups/2020/sharkyctf/simple/main.asm | dobsonj/ctf | 76b18123767822977602463438cabd6d1fdf00db | [
"MIT"
] | 7 | 2020-06-02T01:22:40.000Z | 2021-11-08T20:40:32.000Z | writeups/2020/sharkyctf/simple/main.asm | dobsonj/ctf | 76b18123767822977602463438cabd6d1fdf00db | [
"MIT"
] | null | null | null | writeups/2020/sharkyctf/simple/main.asm | dobsonj/ctf | 76b18123767822977602463438cabd6d1fdf00db | [
"MIT"
] | 1 | 2021-04-11T17:12:44.000Z | 2021-04-11T17:12:44.000Z | BITS 64
SECTION .rodata
some_array db 10,2,30,15,3,7,4,2,1,24,5,11,24,4,14,13,5,6,19,20,23,9,10,2,30,15,3,7,4,2,1,24
the_second_array db 0x57,0x40,0xa3,0x78,0x7d,0x67,0x55,0x40,0x1e,0xae,0x5b,0x11,0x5d,0x40,0xaa,0x17,0x58,0x4f,0x7e,0x4d,0x4e,0x42,0x5d,0x51,0x57,0x5f,0x5f,0x12,0x1d,0x5a,0x4f,0xbf
len_second_array equ $ - the_second_array
SECTION .text
GLOBAL main
main:
mov rdx, [rsp]
cmp rdx, 2
jne exit
mov rsi, [rsp+0x10]
mov rdx, rsi
mov rcx, 0
l1:
cmp byte [rdx], 0
je follow_the_label
inc rcx
inc rdx
jmp l1
follow_the_label:
mov al, byte [rsi+rcx-1]
mov rdi, some_array
mov rdi, [rdi+rcx-1]
add al, dil
xor rax, 42
mov r10, the_second_array
add r10, rcx
dec r10
cmp al, byte [r10]
jne exit
dec rcx
cmp rcx, 0
jne follow_the_label
win:
mov rdi, 1
mov rax, 60
syscall
exit:
mov rdi, 0
mov rax, 60
syscall
| 23.543478 | 187 | 0.554017 |
9bcd2a5057ce8c638337b5d1cfb9830134d7e6ee | 5,684 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_1_1671.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_1_1671.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_1_1671.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 %r9
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x8444, %rsi
lea addresses_normal_ht+0x1290c, %rdi
nop
nop
nop
nop
and %r11, %r11
mov $14, %rcx
rep movsl
nop
dec %r15
lea addresses_WC_ht+0x13444, %rsi
lea addresses_WC_ht+0x1de44, %rdi
nop
dec %r9
mov $112, %rcx
rep movsl
nop
nop
nop
nop
nop
xor $25550, %rdi
lea addresses_UC_ht+0x1c974, %rsi
lea addresses_normal_ht+0x162c4, %rdi
nop
dec %r12
mov $59, %rcx
rep movsb
nop
and $59999, %rcx
lea addresses_A_ht+0xd644, %rsi
lea addresses_A_ht+0xb6bc, %rdi
clflush (%rsi)
xor $21297, %r12
mov $29, %rcx
rep movsb
nop
nop
sub %r9, %r9
lea addresses_A_ht+0x1ef24, %r9
nop
xor $36290, %r15
movw $0x6162, (%r9)
nop
nop
nop
add %r11, %r11
lea addresses_A_ht+0x1a21c, %rsi
lea addresses_normal_ht+0x8944, %rdi
inc %r15
mov $21, %rcx
rep movsw
nop
nop
nop
and $36254, %r12
lea addresses_WC_ht+0x6e44, %rcx
nop
nop
nop
inc %rdi
movl $0x61626364, (%rcx)
nop
nop
nop
nop
nop
cmp $65452, %r12
lea addresses_normal_ht+0x18eac, %r12
nop
nop
nop
nop
nop
lfence
movl $0x61626364, (%r12)
nop
nop
nop
nop
inc %rsi
lea addresses_D_ht+0x16644, %rsi
lea addresses_WT_ht+0x8344, %rdi
clflush (%rsi)
dec %r8
mov $105, %rcx
rep movsw
nop
nop
nop
nop
nop
xor %r11, %r11
lea addresses_WT_ht+0xd104, %rsi
lea addresses_WC_ht+0x1347c, %rdi
clflush (%rsi)
nop
nop
nop
nop
and %r11, %r11
mov $20, %rcx
rep movsq
nop
nop
and %rdi, %rdi
lea addresses_WT_ht+0x1384, %rsi
nop
xor %r9, %r9
vmovups (%rsi), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rdi
nop
nop
nop
cmp $27861, %r12
lea addresses_A_ht+0x19ce4, %r11
nop
nop
nop
nop
nop
dec %r9
movw $0x6162, (%r11)
nop
nop
sub $20945, %rsi
lea addresses_A_ht+0xa444, %r11
clflush (%r11)
nop
nop
nop
nop
nop
add $28119, %rsi
movb $0x61, (%r11)
sub %r8, %r8
lea addresses_normal_ht+0x11044, %rsi
lea addresses_WC_ht+0x12844, %rdi
nop
nop
inc %r15
mov $7, %rcx
rep movsq
nop
nop
cmp $20493, %r15
lea addresses_UC_ht+0x9d08, %r11
nop
nop
nop
nop
add %rsi, %rsi
mov $0x6162636465666768, %r8
movq %r8, (%r11)
nop
nop
nop
nop
sub %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_UC+0xe544, %rsi
lea addresses_WT+0x1cc44, %rdi
and %rbp, %rbp
mov $16, %rcx
rep movsq
nop
nop
add $25365, %rsi
// Store
mov $0x541a4f00000004c4, %rbp
sub %rdx, %rdx
movl $0x51525354, (%rbp)
xor %rcx, %rcx
// Store
lea addresses_A+0x1b984, %rsi
nop
nop
nop
cmp $26327, %rax
movw $0x5152, (%rsi)
sub $22808, %rax
// Faulty Load
mov $0xc44, %rsi
nop
sub %r15, %r15
vmovntdqa (%rsi), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rbp
lea oracles, %rcx
and $0xff, %rbp
shlq $12, %rbp
mov (%rcx,%rbp,1), %rbp
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_WT', 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 6}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_P', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 11}, 'dst': {'same': True, 'type': 'addresses_WC_ht', 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': True, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'00': 1}
00
*/
| 21.449057 | 153 | 0.653061 |
1d555b43a65afc7af1f36d71b26f2c517d2ceaa3 | 2,057 | asm | Assembly | programs/oeis/103/A103157.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/103/A103157.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/103/A103157.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A103157: Number of ways to choose 4 distinct points from an (n+1) X (n+1) X (n+1) lattice cube.
; 70,17550,635376,9691375,88201170,566685735,2829877120,11671285626,41417124750,130179173740,370215608400,968104633665,2357084537626,5396491792125,11710951848960,24246290643940,48151733324310,92140804597626,170538695998000,306294282269955,535323344285730,912659131015555,1521020778869376,2482573303218750,3974849293232350,6252036915566520,9673116652256400,14738656119688501,22138454584118250,32812673159081145,48029600424386560,69483794177187720,99419016613713126,140781151435219750,197407166771913840,274257177650997975,377697776875307890,515846055171470751,698985132543984000,940063585875439810,1255292896613145390,1664858971296894660,2193765921898311376,2872832648434043625,3739865359866495930,4841032018528362805,6232467816660833280,7982144210468016876,10172037767578093750,12900639149089218450,16285846969517676720,20468296079957600875,25615175025574066626,31924593063140938875,39630563213665621120,49008674396206965510,60382532769829907070,74131060030358559376,90696744597383946000,110594950416156329565,134424397520975975050,162878938595068490865,196760766551437541376,236995199685762154000,284647203253188971910,340939819434229990590,407274691620529323760,485254883809891490751,576710211693839039250,683725318793566725655,808670748796287914880,954237284109778469130,1123473840635933458126,1319829229913268937500,1547198122143838270800,1809971567253730502545,2113092456091364597850,2462116330198842363501,2863277976354815872000,3323564271340310399220,3850793773180896250710,4453703587530244160170,5142044071943717699376,5926681976610127537875,6819712657730578280290,7834582039222587445875,8986219039854102963840,10291179226346111890126,11767800498496326942750,13436371660043773382760,15319314778890517617040,17441382292499567908485,19829869868876190307626,22514846090594359203625,25529400088933447802880,28909908317427031645080,32696321719082146376230,36932474609291693943126,41666416667124999750000,46950769501333763748775
add $0,2
pow $0,3
bin $0,4
| 293.857143 | 1,930 | 0.929023 |
daafce8e0ca579609e52bece74f12b39aaa77a15 | 2,499 | asm | Assembly | programs/oeis/170/A170792.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/170/A170792.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/170/A170792.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A170792: a(n) = n^9*(n^10 + 1)/2.
; 0,1,262400,581140575,137439084544,9536744140625,304679875044096,5699447612863375,72057594105036800,675425859030206289,5000000000500000000,30579545225386246991,159739999687891353600,730960145193025305025,2988151979484787721984,11084189100284724609375,37778931862991521447936,119536217842634956361825,354117672677768017824000,989209827830318138410879,2621440000000256000000000,6624248320165910202813681,16032488606509786457516800,37307735463796255857284975,83749764955013897439412224,181898940354587554931640625,383233632600183659989150976,785021449541044618619009775,1566652225014709504963379200,3051630623295002998362412769,5811307335000009841500000000,10835331109985211317168219071,19807040628566101990572032000,35541427092480012403900735425,62671404580248339259228459264,108708335736972304651349609375,185659646372829690611073417216,312465995495421128855008462225,518630842213417328115366982400,849566810664416093051627770959,1374389534720000131072000000000,2197168084834401742996209222161,3473013903282936715999940179200,5430885671830208558750453311375,8405641386529486752917658927104,12882725884179993902891712890625,19559998010842339690636019750656,29432645871939743213296598374175,43908996768733634403021461913600,64967405723561510872792871804449,95367431640625000976562500000000,138932339909343565634005384821951,200924794768683668806532507238400,288543653687247217846031314667825,411577325736973203954049248639744,583258537754197564434565005859375,821376961748509246567567427895296,1149720465664695466063366516400625,1599933316226086732757987337452800,2213901148343972228766812807592239,3046798700052480005038848000000000,4170968111636714185655239970257441,5680834076991919546835722826489600,7699108570367854902983329454459775,10384593717069655266068191913181184,13941958335642300717953688962890625,18633943727462148588605481715835136,24796549714202131896875481292196575,32857865364569225392490568826880000,43361343350598715034354120127973329,56994475926865715020176803500000000,74624018143601556590972610501007631,97339124677518106233764527787212800,126504025836542412978482542720342225,163822171846303318769714565189895424,211414129262266214974514007568359375,271911927002388100854835196943794176,348573030827116574591391976165417025,445417684029625329930398773635475200,567393999853440477559842445949546719,720575940379279360067108864000000000,912400181570036563754573306576791521
mov $1,$0
pow $0,9
mov $2,$1
pow $2,10
mul $2,$0
add $0,$2
div $0,2
| 227.181818 | 2,393 | 0.945178 |
2024e578367386532de328558ec9f8d5d484ecd9 | 12,583 | asm | Assembly | src/Inflame.asm | playday3008/Inflame | 2ec10094682f1a6d0f70c1ea3578b7a0da56f3ce | [
"MIT"
] | 65 | 2018-09-11T19:52:41.000Z | 2022-03-26T06:20:16.000Z | src/Inflame.asm | playday3008/Inflame | 2ec10094682f1a6d0f70c1ea3578b7a0da56f3ce | [
"MIT"
] | 6 | 2019-03-14T01:18:05.000Z | 2020-09-27T08:51:57.000Z | src/Inflame.asm | playday3008/Inflame | 2ec10094682f1a6d0f70c1ea3578b7a0da56f3ce | [
"MIT"
] | 16 | 2018-11-10T05:43:15.000Z | 2020-12-31T12:28:42.000Z | format PE console 6.0
entry main
include 'INCLUDE/win32ax.inc'
struct PROCESSENTRY32
dwSize dd ?
cntUsage dd ?
th32ProcessID dd ?
th32DefaultHeapID dd ?
th32ModuleID dd ?
cntThreads dd ?
th32ParentProcessID dd ?
pcPriClassBase dd ?
dwFlags dd ?
szExeFile dw MAX_PATH dup (?)
ends
struct LARGE_INTEGER
LowPart dd ?
HighPart dd ?
ends
struct IMAGE_DOS_HEADER
e_magic dw ?
e_cblp dw ?
e_cp dw ?
e_crlc dw ?
e_cparhdr dw ?
e_minalloc dw ?
e_maxalloc dw ?
e_ss dw ?
e_sp dw ?
e_csum dw ?
e_ip dw ?
e_cs dw ?
e_lfarlc dw ?
e_ovno dw ?
e_res rw 4
e_oemid dw ?
e_oeminfo dw ?
e_res2 rw 10
e_lfanew dd ?
ends
struct IMAGE_FILE_HEADER
Machine dw ?
NumberOfSections dw ?
TimeDateStamp dd ?
PointerToSymbolTable dd ?
NumberOfSymbols dd ?
SizeOfOptionalHeader dw ?
Characteristics dw ?
ends
struct IMAGE_DATA_DIRECTORY
VirtualAddress dd ?
Size dd ?
ends
struct IMAGE_OPTIONAL_HEADER
Magic dw ?
MajorLinkerVersion db ?
MinorLinkerVersion db ?
SizeOfCode dd ?
SizeOfInitializedData dd ?
SizeOfUninitializedData dd ?
AddressOfEntryPoint dd ?
BaseOfCode dd ?
BaseOfData dd ?
ImageBase dd ?
SectionAlignment dd ?
FileAlignment dd ?
MajorOperatingSystemVersion dw ?
MinorOperatingSystemVersion dw ?
MajorImageVersion dw ?
MinorImageVersion dw ?
MajorSubsystemVersion dw ?
MinorSubsystemVersion dw ?
Win32VersionValue dd ?
SizeOfImage dd ?
SizeOfHeaders dd ?
CheckSum dd ?
Subsystem dw ?
DllCharacteristics dw ?
SizeOfStackReserve dd ?
SizeOfStackCommit dd ?
SizeOfHeapReserve dd ?
SizeOfHeapCommit dd ?
LoaderFlags dd ?
NumberOfRvaAndSizes dd ?
DataDirectory db 16 * sizeof.IMAGE_DATA_DIRECTORY dup ?
ends
struct IMAGE_NT_HEADERS
Signature dd ?
FileHeader IMAGE_FILE_HEADER
OptionalHeader IMAGE_OPTIONAL_HEADER
ends
struct IMAGE_SECTION_HEADER
Name rb 8
VirtualSize dd ?
VirtualAddress dd ?
SizeOfRawData dd ?
PointerToRawData dd ?
PointerToRelocations dd ?
PointerToLinenumbers dd ?
NumberOfRelocations dw ?
NumberOfLinenumbers dw ?
Characteristics dd ?
ends
struct IMAGE_BASE_RELOCATION
VirtualAddress dd ?
SizeOfBlock dd ?
ends
section '.text' code executable
proc main
local pid:DWORD, path:rb MAX_PATH
cinvoke __getmainargs, argc, argv, env, 0
cmp [argc], 4
jne .wrongArgumentCount
mov esi, [argv]
lea eax, [path]
invoke GetFullPathNameA, dword [esi + 8], MAX_PATH, eax, 0
mov esi, [argv]
stdcall findProcessId, dword [esi + 12]
mov [pid], eax
cinvoke strcmp, dword [esi + 4], <'-loadlibrary', 0>
test eax, eax
jnz @f
lea eax, [path]
stdcall loadlibrary, eax, [pid]
@@:
mov esi, [argv]
cinvoke strcmp, dword [esi + 4], <'-manual-map', 0>
test eax, eax
jnz .wrongInjectionMethod
lea eax, [path]
stdcall manualmap, eax, [pid]
.wrongInjectionMethod:
stdcall criticalError, <'Wrong injection method!', 0>
.wrongArgumentCount:
stdcall criticalError, <'Wrong amount of command line arguments!', 0>
endp
proc findProcessId, name
local snapshot:DWORD, processEntry:PROCESSENTRY32
invoke CreateToolhelp32Snapshot, 0x2, 0
mov [snapshot], eax
mov [processEntry.dwSize], sizeof.PROCESSENTRY32
lea eax, [processEntry]
invoke Process32First, [snapshot], eax
test eax, eax
jz .error
@@:
lea eax, [processEntry.szExeFile]
cinvoke strcmp, eax, [name]
test eax, eax
jz .return
lea eax, [processEntry]
invoke Process32Next, [snapshot], eax
test eax, eax
jnz @b
.error:
xor eax, eax
ret
.return:
mov eax, [processEntry.th32ProcessID]
ret
endp
proc loadlibrary, path, pid
local handle:DWORD, allocatedMemory:DWORD, pathLength:DWORD
invoke OpenProcess, PROCESS_VM_WRITE + PROCESS_VM_OPERATION + PROCESS_CREATE_THREAD, FALSE, [pid]
mov [handle], eax
cinvoke strlen, [path]
inc eax
mov [pathLength], eax
invoke VirtualAllocEx, [handle], NULL, eax, MEM_COMMIT + MEM_RESERVE, PAGE_READWRITE
mov [allocatedMemory], eax
invoke WriteProcessMemory, [handle], [allocatedMemory], [path], [pathLength], NULL
invoke CreateRemoteThread, [handle], NULL, 0, [LoadLibraryA], [allocatedMemory], 0, NULL
invoke WaitForSingleObject, eax, 0xFFFFFFFF
invoke VirtualFreeEx, [handle], [allocatedMemory], [pathLength], MEM_RELEASE
invoke CloseHandle, [handle]
invoke ExitProcess, 0
endp
proc manualmap, path, pid
cinvoke manualMap, [path], [pid]
invoke ExitProcess, 0
endp
proc criticalError, message
cinvoke printf, <'Critical Error: %s', 0>, [message]
invoke ExitProcess, 0
endp
struct LoaderData
allocationBase dd ?
loadLibraryA dd ?
getProcAddress dd ?
rtlZeroMemory dd ?
imageBase dd ?
relocVirtualAddress dd ?
importVirtualAddress dd ?
addressOfEntryPoint dd ?
ends
proc loadImage, data
local currentReloc:DWORD, delta:DWORD, relocInfo:DWORD
mov eax, [data]
stdcall [eax + LoaderData.loadLibraryA], <'user32.dll', 0>
mov ebx, [data]
stdcall [ebx + LoaderData.getProcAddress], eax, <'MessageBoxA', 0>
stdcall eax, 0, <'Demo', 0>, <'It works!', 0>, MB_OK
mov eax, [data]
mov ebx, [eax + LoaderData.relocVirtualAddress]
add ebx, [eax + LoaderData.allocationBase]
mov [currentReloc], ebx
mov ebx, [eax + LoaderData.allocationBase]
sub ebx, [eax + LoaderData.imageBase]
mov [delta], ebx
ret
endp
loadImageSize dd $ - loadImage
proc manualmap_2, path, pid
local handle:DWORD, fileSize:LARGE_INTEGER, imageMemory:DWORD, heapHandle:DWORD, ntHeaders:DWORD, loaderData:LoaderData, loaderMemory:DWORD
invoke CreateFileA, [path], GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL
mov [fileHandle], eax
lea ebx, [fileSize]
invoke GetFileSizeEx, eax, ebx
cinvoke printf, <'File size: %d', 10, 0>, [fileSize.LowPart]
invoke GetProcessHeap
test eax, eax
jz heapFail
mov [heapHandle], eax
cinvoke printf, <'Heap handle: %p', 10, 0>, [heapHandle]
invoke HeapAlloc, [heapHandle], 0, [fileSize.LowPart]
test eax, eax
jz heapAllocFail
mov [heapMemory], eax
cinvoke printf, <'Heap memory: %p', 10, 0>, eax
invoke ReadFile, [fileHandle], [heapMemory], [fileSize.LowPart], NULL, NULL
test eax, eax
jz readFileFail
cinvoke printf, <'ReadFile: %d', 10, 0>, eax
mov eax, [heapMemory]
xor ebx, ebx
mov bx, [eax + IMAGE_DOS_HEADER.e_magic]
cinvoke printf, <'DOS SIGNATURE: 0x%X', 10, 0>, ebx
mov eax, [heapMemory]
add eax, [eax + IMAGE_DOS_HEADER.e_lfanew]
mov [ntHeaders], eax
cinvoke printf, <'Size of Image: %d', 10, 0>, [eax + IMAGE_NT_HEADERS.OptionalHeader.SizeOfImage]
invoke OpenProcess, PROCESS_VM_WRITE + PROCESS_VM_OPERATION + PROCESS_CREATE_THREAD, FALSE, [pid]
test eax, eax
jz openProcessFail
mov [handle], eax
cinvoke printf, <'Process handle: %p', 10, 0>, eax
mov eax, [ntHeaders]
invoke VirtualAllocEx, [handle], NULL, [eax + IMAGE_NT_HEADERS.OptionalHeader.SizeOfImage], MEM_COMMIT + MEM_RESERVE, PAGE_EXECUTE_READWRITE
mov [imageMemory], eax
cinvoke printf, <'Image memory: %p', 10, 0>, eax
mov eax, [ntHeaders]
xor ebx, ebx
mov bx, [eax + IMAGE_NT_HEADERS.FileHeader.NumberOfSections]
mov ecx, ebx
@@:
push ecx
dec ecx
mov ebx, [ntHeaders]
add ebx, sizeof.IMAGE_NT_HEADERS
mov eax, sizeof.IMAGE_SECTION_HEADER
mul ecx
add ebx, eax
mov edx, [imageMemory]
add edx, [ebx + IMAGE_SECTION_HEADER.VirtualAddress]
mov eax, [heapMemory]
add eax, [ebx + IMAGE_SECTION_HEADER.PointerToRawData]
invoke WriteProcessMemory, [handle], edx, eax, [ebx + IMAGE_SECTION_HEADER.SizeOfRawData], NULL
pop ecx
dec ecx
jnz @b
mov eax, [LoadLibraryA]
mov [loaderData.loadLibraryA], eax
mov eax, [GetProcAddress]
mov [loaderData.getProcAddress], eax
mov eax, [ntHeaders]
mov eax, [eax + IMAGE_NT_HEADERS.OptionalHeader.ImageBase]
mov [loaderData.imageBase], eax
mov eax, [ntHeaders]
mov eax, dword [eax + IMAGE_NT_HEADERS.OptionalHeader.DataDirectory + 5 * sizeof.IMAGE_DATA_DIRECTORY + IMAGE_DATA_DIRECTORY.VirtualAddress]
mov [loaderData.relocVirtualAddress], eax
mov eax, [imageMemory]
mov [loaderData.allocationBase], eax
invoke VirtualAllocEx, [handle], NULL, 4096, MEM_COMMIT + MEM_RESERVE, PAGE_EXECUTE_READ
mov [loaderMemory], eax
cinvoke printf, <'Loader memory: %p', 10, 0>, eax
lea eax, [loaderData]
invoke WriteProcessMemory, [handle], [loaderMemory], eax, sizeof.LoaderData, NULL
mov eax, [loaderMemory]
add eax, sizeof.LoaderData
invoke WriteProcessMemory, [handle], eax, loadImage, [loadImageSize], NULL
mov eax, [loaderMemory]
add eax, sizeof.LoaderData
invoke CreateRemoteThread, [handle], NULL, 0, eax, [loaderMemory], 0, NULL
invoke WaitForSingleObject, eax, 0xFFFFFFFF
invoke VirtualFreeEx, [handle], [loaderMemory], 0, MEM_RELEASE
invoke CloseHandle, [handle]
invoke HeapFree, [heapHandle], 0, [heapMemory]
invoke ExitProcess, 0
heapFail:
stdcall criticalError, <'Failed to get process heap handle!', 0>
heapAllocFail:
stdcall criticalError, <'Failed to allocate heap memory!', 0>
readFileFail:
stdcall criticalError, <'Failed to read dll file!', 0>
openProcessFail:
stdcall criticalError, <'Failed to open process!', 0>
endp
section '.bss' data readable writable
argc dd ?
argv dd ?
env dd ?
heapMemory dd ?
fileHandle dd ?
section '.idata' data readable import
library kernel32, 'kernel32.dll', \
msvcrt, 'msvcrt.dll', \
Inflame, 'Inflame.dll'
import kernel32, \
CloseHandle, 'CloseHandle', \
CreateFileA, 'CreateFileA', \
CreateRemoteThread, 'CreateRemoteThread', \
CreateToolhelp32Snapshot, 'CreateToolhelp32Snapshot', \
ExitProcess, 'ExitProcess', \
GetFileSizeEx, 'GetFileSizeEx', \
GetFullPathNameA, 'GetFullPathNameA', \
GetProcAddress, 'GetProcAddress', \
GetProcessHeap, 'GetProcessHeap', \
HeapAlloc, 'HeapAlloc', \
HeapFree, 'HeapFree', \
LoadLibraryA, 'LoadLibraryA', \
OpenProcess, 'OpenProcess', \
Process32First, 'Process32First', \
Process32Next, 'Process32Next', \
ReadFile, 'ReadFile', \
VirtualAllocEx, 'VirtualAllocEx', \
VirtualFreeEx, 'VirtualFreeEx', \
WaitForSingleObject, 'WaitForSingleObject', \
WriteProcessMemory, 'WriteProcessMemory'
import msvcrt, \
atoi, 'atoi', \
getchar, 'getchar', \
__getmainargs, '__getmainargs', \
printf, 'printf', \
strcmp, 'strcmp', \
strlen, 'strlen'
import Inflame, \
manualMap, 'manualMap'
| 30.840686 | 144 | 0.594612 |
48614cf0d72951c7ecf96f9026491957db0ed92f | 230 | asm | Assembly | libsrc/osca/root_dir.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/osca/root_dir.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | libsrc/osca/root_dir.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | ;
; Get the FLOS version number
; by Stefano Bodrato, 2011
;
;
;
; $Id: root_dir.asm,v 1.1 2011/08/03 08:13:40 stefano Exp $
;
INCLUDE "flos.def"
XLIB root_dir
LIB flos_err
root_dir:
call kjt_root_dir
jp flos_err
| 12.777778 | 59 | 0.669565 |
c61d95cf4e75316f08af0dc5924e42ad4d792d37 | 691 | asm | Assembly | programs/oeis/097/A097073.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/097/A097073.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/097/A097073.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A097073: Expansion of (1-x+2*x^2)/((1+x)*(1-2*x)).
; 1,0,4,4,12,20,44,84,172,340,684,1364,2732,5460,10924,21844,43692,87380,174764,349524,699052,1398100,2796204,5592404,11184812,22369620,44739244,89478484,178956972,357913940,715827884,1431655764,2863311532,5726623060,11453246124,22906492244,45812984492,91625968980,183251937964,366503875924,733007751852,1466015503700,2932031007404,5864062014804,11728124029612,23456248059220,46912496118444,93824992236884,187649984473772,375299968947540,750599937895084,1501199875790164,3002399751580332,6004799503160660
mov $1,1
mov $2,2
mov $4,2
lpb $0
sub $0,1
add $2,$1
add $3,$4
mov $1,$3
trn $1,$2
sub $2,6
trn $2,$3
mov $4,$3
lpe
| 40.647059 | 504 | 0.780029 |
e99d8cbf77b99f2656ff14d1acf38840681b0d8d | 199 | asm | Assembly | programs/oeis/010/A010938.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/010/A010938.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/010/A010938.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A010938: Binomial coefficient C(22,n).
; 1,22,231,1540,7315,26334,74613,170544,319770,497420,646646,705432,646646,497420,319770,170544,74613,26334,7315,1540,231,22,1
mov $1,22
bin $1,$0
mov $0,$1
| 28.428571 | 126 | 0.743719 |
1e3619fb9bd0d3af42f46c06ec079b10300d1de5 | 1,435 | asm | Assembly | _maps/Ring Flash.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 9 | 2021-01-15T13:47:53.000Z | 2022-01-17T15:33:55.000Z | _maps/Ring Flash.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 7 | 2021-01-14T02:18:48.000Z | 2021-03-24T15:44:30.000Z | _maps/Ring Flash.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 2 | 2021-01-14T13:14:26.000Z | 2021-01-29T17:46:04.000Z | ; ---------------------------------------------------------------------------
; Sprite mappings - flash effect when you collect the giant ring
; ---------------------------------------------------------------------------
Map_Flash_internal:
dc.w byte_A084-Map_Flash_internal
dc.w byte_A08F-Map_Flash_internal
dc.w byte_A0A4-Map_Flash_internal
dc.w byte_A0B9-Map_Flash_internal
dc.w byte_A0CE-Map_Flash_internal
dc.w byte_A0E3-Map_Flash_internal
dc.w byte_A0F8-Map_Flash_internal
dc.w byte_A103-Map_Flash_internal
byte_A084: dc.b 2
dc.b $E0, $F, 0, 0, 0
dc.b 0, $F, $10, 0, 0
byte_A08F: dc.b 4
dc.b $E0, $F, 0, $10, $F0
dc.b $E0, 7, 0, $20, $10
dc.b 0, $F, $10, $10, $F0
dc.b 0, 7, $10, $20, $10
byte_A0A4: dc.b 4
dc.b $E0, $F, 0, $28, $E8
dc.b $E0, $B, 0, $38, 8
dc.b 0, $F, $10, $28, $E8
dc.b 0, $B, $10, $38, 8
byte_A0B9: dc.b 4
dc.b $E0, $F, 8, $34, $E0
dc.b $E0, $F, 0, $34, 0
dc.b 0, $F, $18, $34, $E0
dc.b 0, $F, $10, $34, 0
byte_A0CE: dc.b 4
dc.b $E0, $B, 8, $38, $E0
dc.b $E0, $F, 8, $28, $F8
dc.b 0, $B, $18, $38, $E0
dc.b 0, $F, $18, $28, $F8
byte_A0E3: dc.b 4
dc.b $E0, 7, 8, $20, $E0
dc.b $E0, $F, 8, $10, $F0
dc.b 0, 7, $18, $20, $E0
dc.b 0, $F, $18, $10, $F0
byte_A0F8: dc.b 2
dc.b $E0, $F, 8, 0, $E0
dc.b 0, $F, $18, 0, $E0
byte_A103: dc.b 4
dc.b $E0, $F, 0, $44, $E0
dc.b $E0, $F, 8, $44, 0
dc.b 0, $F, $10, $44, $E0
dc.b 0, $F, $18, $44, 0
even | 29.285714 | 77 | 0.496864 |
715e391408093071a4ccd22d280fbb77edec0dd8 | 98,628 | asm | Assembly | Library/SpecUI/CommonUI/CButton/copenButtonCommon.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/SpecUI/CommonUI/CButton/copenButtonCommon.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/SpecUI/CommonUI/CButton/copenButtonCommon.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonUI/COpen (gadgets code common to all specific UIs)
FILE: copenButtonCommon.asm
ROUTINES:
Name Description
---- ------------
INT OLButtonDetermineIfNewState
Draw this button if its state has changed
since the last draw.
INT OLButtonDrawLATERIfNewStateFar
Redraw the button, delaying the update via
the UI queue, or until the next EXPOSE,
whichever is appropriate.
INT OLButtonDrawLATERIfNewState
Redraw the button, delaying the update via
the UI queue, or until the next EXPOSE,
whichever is appropriate.
INT OLButtonActivate This routine sends the ActionDescriptor for
this trigger.
INT OLButtonSendCascadeModeToMenuFar
Calls OLButtonSendCascadeModeToMenu
INT OLButtonSendCascadeModeToMenu
Packages up a MSG_MO_MW_CASCADE_MODE
message and sends it to the menu window
object.
INT OLButtonSaveStateSetBorderedAndOrDepressed
This procedure makes sure that this
GenTrigger is drawn as depressed, which
depending upon the specific UI might mean
DEPRESSED (blackened) and/or BORDERED.
INT OLButtonRestoreBorderedAndDepressedStatusAndDrawNOW
This routine resets the DEPRESSED and
BORDERED flags as necessary, and then
immediately redraws the button if necessary
INT OLButtonSaveBorderedAndDepressedStatus
Save the current BORDERED status of this
button so that it can be
restored. Basically, it is nearly
impossible to tell wether a button at rest
should be bordered or not, because buttons
in pinned menus change.
INT OLButtonRestoreBorderedAndDepressedStatus
Save the current BORDERED status of this
button so that it can be
restored. Basically, it is nearly
impossible to tell wether a button at rest
should be bordered or not, because buttons
in pinned menus change.
INT OLButtonEnsureMouseGrab This procedure makes sure that this button
has the mouse grab (exclusive).
INT OLButtonGrabExclusives This procedure grabs some exclusives for
the button object. Regardless of the carry
flag, the gadget and default exclusives are
grabbed.
MTD MSG_META_GAINED_SYS_FOCUS_EXCL
This procedure is called when the window in
which this button is located decides that
this button has the focus exclusive.
INT OLButtonSaveStateSetCursored
This routine tests if the button is pressed
already, and if not, saves the button's
current bordered and depressed state, and
sets the new state, so that the button
shows the cursored emphasis.
MTD MSG_META_LOST_SYS_FOCUS_EXCL
This procedure is called when the window in
which this button is located decides that
this button does not have the focus
exclusive.
MTD MSG_VIS_LOST_GADGET_EXCL
HandleMem losing of gadget exclusive. We
MUST release any gadget exclusive if we get
this method, for it is used both for the
case of the grab being given to another
gadget & when a window on which this gadget
sits is being closed.
MTD MSG_META_GAINED_DEFAULT_EXCL
This method is sent by the parent window
(see OpenWinGupQuery) when it decides that
this GenTrigger should have the default
exclusive.
INT CallMethodIfApplyOrReset
Calls passed method on itself if apply or
reset button.
MTD MSG_SPEC_NOTIFY_ENABLED We intercept these methods here to make
sure that the button redraws and that we
grab or release the master default
exclusive for the window.
MTD MSG_SPEC_NOTIFY_NOT_ENABLED
We intercept these methods here to make
sure that the button redraws and that we
grab or release the master default
exclusive for the window.
INT FinishChangeEnabled We intercept these methods here to make
sure that the button redraws and that we
grab or release the master default
exclusive for the window.
INT OLButtonResetMasterDefault
Releases "Master Default" exclusive, if
this button has it.
MTD MSG_VIS_DRAW Draw the button
INT UpdateButtonState Note which specific state flags have been
set in order to use this information for
later drawing optimizations. Also, notes
the enabled/disabled state.
INT OLButtonDrawMoniker Draw the moniker for this button.
MTD MSG_VIS_OPEN Called when the button is to be made
visible on the screen. Subclassed to check
if this is a button in the title bar that
required rounded edges.
INT OLButtonReleaseMouseGrab
This procedure makes sure that this button
has released the mouse grab (exclusive).
INT OLButtonReleaseDefaultExclusive
This procedure releases the default
exclusive for this button. The window will
send a method to itself on the queue, so
that if no other button grabs the default
exclusive IMMEDIATELY, the master default
for the window will grab it.
INT OLButtonReleaseAllGrabs Intercept this method here to ensure that
this button has released any grabs it may
have.
MTD MSG_SPEC_SET_LEGOS_LOOK Set the hints on a button according to the
legos look requested, after removing the
hints for its previous look. These hints
are stored in tables that each different
SpecUI will change according to the legos
looks they support.
MTD MSG_SPEC_GET_LEGOS_LOOK Get the legos look of an object
MTD MSG_OL_BUTTON_SET_DRAW_STATE_UNKNOWN
This procedure marks the button as invalid
so that next time it is drawn, no
optimizations are attempted.
MTD MSG_OL_BUTTON_SET_BORDERED
Makes the button bordered/unbordered. This
makes it possible for popup menus to
broadcast a notification to all its button
children to draw their borders when the
window is pinned.
MTD MSG_SPEC_CHANGE Does a "change" for this button.
REVISION HISTORY:
Name Date Description
---- ---- -----------
dlitwin 10/10/94 Broken out of copenButton.asm
DESCRIPTION:
$Id: copenButtonCommon.asm,v 1.2 98/03/11 05:44:50 joon Exp $
------------------------------------------------------------------------------@
CommonFunctional segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonDrawNOWIfNewState
CALLED BY: OLButtonGenActivate
OLButtonMouse
OLButtonRestoreBorderedAndDepressedStatusAndDrawNOW
DESCRIPTION: Draw this button if its state has changed since the last draw.
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp, di
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
;IMPORTANT: THIS IS NOT A DYNAMIC METHOD HANDLER, SO DO NOT EXPECT DS:DI.
OLButtonDrawNOWIfNewState method OLButtonClass, MSG_OL_BUTTON_REDRAW
call OLButtonDetermineIfNewState
jz done ;skip if no state change...
call OpenDrawObject ;draw object and save new state
done:
ret
OLButtonDrawNOWIfNewState endp
OLButtonDetermineIfNewState proc near
mov di, ds:[si]
add di, ds:[di].Vis_offset
mov al, {byte}ds:[di].OLBI_specState ;get new state
xor al, ds:[di].OLBI_optFlags ;compare to old state
call OpenCheckIfKeyboard ;no keyboard, ignore cursored
jnc dontCheckCursored ; state. -cbh
if _OL_STYLE ;--------------------------------------------------------------
test al, mask OLBSS_BORDERED or \
mask OLBSS_DEPRESSED or \
mask OLBSS_DEFAULT or \
mask OLBSS_SELECTED
endif ;--------------------------------------------------------------
if _CUA_STYLE ;--------------------------------------------------------------
;CUA/Motif: if inside a menu, or if is a menu button, ignore the
;cursored flag, because we set the BORDERED/DEPRESSED flag to show
;something as cursored. (Don't ignore if a popup list, with a
;OLBSS_MENU_DOWN_MARK.)
test ds:[di].OLBI_specState, mask OLBSS_IN_MENU or \
mask OLBSS_MENU_RIGHT_MARK
jz 10$ ;skip if standard button...
dontCheckCursored:
;menu button, or button in menu:
test al, mask OLBSS_BORDERED or \
mask OLBSS_DEPRESSED or \
mask OLBSS_DEFAULT or \
mask OLBSS_SELECTED
jmp short 20$
10$: ;standard button
test al, mask OLBSS_BORDERED or \
mask OLBSS_DEPRESSED or \
mask OLBSS_CURSORED or \
mask OLBSS_DEFAULT or \
mask OLBSS_SELECTED
20$:
endif ;--------------------------------------------------------------
ret
OLButtonDetermineIfNewState endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonDrawLATERIfNewState
DESCRIPTION: Redraw the button, delaying the update via the UI queue,
or until the next EXPOSE, whichever is appropriate.
CALLED BY: OLButtonGainedFocusExcl
OLButtonLostFocusExcl
OLButtonGainedDefaultExclusive
OLButtonLostDefaultExclusive
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 6/90 initial version
------------------------------------------------------------------------------@
OLButtonDrawLATERIfNewStateFar proc far
call OLButtonDrawLATERIfNewState
ret
OLButtonDrawLATERIfNewStateFar endp
OLButtonDrawLATERIfNewState proc near
call OLButtonDetermineIfNewState
jz exit
;if there is a MSG_META_EXPOSED event pending for this window,
;just add this button to the invalid region. Sending a method
;to the queue will not help, because when it arrives, its drawing
;may be clipped.
push cx, dx, bp
push si
call VisQueryWindow ;find Window for this OLWinClass
or di, di ;is it realized yet?
jz useManual ;skip if not...
mov si, WIT_FLAGS ;pass which info we need back
call WinGetInfo ;get info on Window structure
test al, mask WRF_EXPOSE_PENDING ;will a MSG_META_EXPOSED arrive?
jz useManual ;skip if not...
pop si
call OpenGetLineBounds
push si
clr bp ;region is rectangular
clr si
call WinInvalReg
afterInval::
pop si
jmp short done
useManual:
pop si
mov ax, MSG_OL_BUTTON_REDRAW
mov bx, ds:[LMBH_handle]
mov di, mask MF_FORCE_QUEUE or mask MF_INSERT_AT_FRONT
call ObjMessage
done:
pop cx, dx, bp
exit:
ret
OLButtonDrawLATERIfNewState endp
CommonFunctional ends
CommonFunctional segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonPtr
DESCRIPTION: HandleMem pointer movement across button
CALLED BY: MSG_META_PTR
PASS: ds:*si - instance data
cx, dx - location
bp - [ UIFunctionsActive | buttonInfo ]
ax - message #
RETURN: ax = MouseReturnFlags
MRF_PROCESSED - event was process by the button
MRF_REPLAY - event was released by the button
DESTROYED: bx, cx, dx, di
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 4/89 Initial version
------------------------------------------------------------------------------@
OLButtonPtr method OLButtonClass, MSG_META_PTR
;if not in a menu and we do not yet have the mouse grab, it means that
;the mouse is simply dragging across this control. IGNORE this event.
mov di, ds:[si]
add di, ds:[di].Vis_offset ; ds:di = SpecificInstance
test ds:[di].OLBI_specState, mask OLBSS_IN_MENU \
or mask OLBSS_IN_MENU_BAR
jz stdButton ;skip if in not in menu...
;CUA/Motif: a menu button can be selected even if the mouse button
;is not pressed. Allow mouse to slide over control without un-selecting
;button.
CUAS < test bp, (mask UIFA_SELECT) shl 8 ;are we dragging? >
CUAS < jz returnProcessed ;skip if not... >
jmp short handlePtrEvent
stdButton:
;want to avoid grabbing the mouse if we don't own it.
test ds:[di].OLBI_specState, mask OLBSS_HAS_MOUSE_GRAB
jz returnProcessed ;if do not have grab, ignore event...
handlePtrEvent:
if BUBBLE_HELP
mov ax, MSG_META_PTR
endif
GOTO OLButtonMouse ;process normally
returnProcessed:
;we are not dragging: we are just sliding across the button.
;no need to upset the button state.
mov ax, mask MRF_PROCESSED or mask MRF_CLEAR_POINTER_IMAGE
ret
OLButtonPtr endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonRelease
DESCRIPTION: HandleMem SELECT or FEATURES release on button. The Trigger OD
is then sent off.
CALLED BY: MSG_META_END_SELECT
PASS: *ds:si - instance data
cx, dx - mouse location
bp - [ UIFunctionsActive | buttonInfo ]
ax - message #
RETURN: ax = MouseReturnFlags
MRF_PROCESSED - event was process by the button
MRF_REPLAY - event was released by the button
DESTROYED: bx, cx, dx, di
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 4/89 Initial version
------------------------------------------------------------------------------@
OLButtonRelease method OLButtonClass, MSG_META_END_SELECT
if BUBBLE_HELP
;
; clear bubble help, if any
;
push cx, dx, bp
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
call OpenCheckBubbleMinTime
jc leaveHelp
call OLButtonDestroyBubbleHelp
leaveHelp:
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_specState, mask OLBSS_HAS_MOUSE_GRAB
jnz leaveGrab
call VisReleaseMouse
leaveGrab:
;
; if disabled, return processed -- we only got here because
; of bubble help (normal case doesn't grab mouse for disabled
; button)
;
call OpenButtonCheckIfFullyEnabled
pop cx, dx, bp
jc continueProcessing
mov ax, mask MRF_PROCESSED or mask MRF_CLEAR_POINTER_IMAGE
ret
continueProcessing:
endif
test bp, (mask UIFA_IN) shl 8 ; see if in bounds
jz 50$ ;skip if not...
;SELECT or MENU ended within button: trigger!
push cx, dx, bp
clr cx ;assume not double press
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_moreAttrs, mask OLBMA_WAS_DOUBLE_CLICKED
jz 10$
and ds:[di].OLBI_moreAttrs, not mask OLBMA_WAS_DOUBLE_CLICKED
dec cx ;else mark as a double press
10$:
call OpenDoClickSound ; doing sound, make a noise
;
; New, exciting code to sleep a little if we're in pen mode, so
; we can see an inverting button.
;
call SysGetPenMode ; ax = TRUE if penBased
tst ax
jz 20$
push ds
mov ax, segment olButtonInvertDelay
mov ds, ax
mov ax, ds:[olButtonInvertDelay]
pop ds
call TimerSleep
20$: ; only called once from jz above
call OLButtonActivate
if SHORT_LONG_TOUCH
call EndShortLongTouch ; send out short/long message if needed
endif
pop cx, dx, bp
50$:
if BUBBLE_HELP
mov ax, MSG_META_END_SELECT
endif
GOTO OLButtonMouse
OLButtonRelease endp
CommonFunctional ends
CommonFunctional segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonActivate
DESCRIPTION: This routine sends the ActionDescriptor for this trigger.
CALLED BY:
PASS: *ds:si = instance data for object
cl -- non-zero if from user double-click
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 6/90 initial version
------------------------------------------------------------------------------@
OLButtonActivate proc far
uses si, es
.enter
mov ax, MSG_GEN_TRIGGER_SEND_ACTION ;assume is GenTrigger
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_fixedAttrs, mask OLBFA_IMMEDIATE_ACTION
pushf ;save results
;if this OLButtonClass object was fabricated to open a command window
;or summons, then send MSG_OL_POPUP_OPEN directly to the window.
mov di, ds:[si] ;point to instance data
les di, ds:[di].MB_class ;set es:di = class table for object
cmp es:[di].Class_masterOffset, offset Vis_offset
;is the specific part the highest-
;level master class for this object?
jne sendMethod ;skip if not (has generic part)...
mov di, ds:[si]
add di, ds:[di].Vis_offset
;make sure that OLSetting is handling activation itself.
EC < test ds:[di].OLBI_specState, mask OLBSS_SETTING >
EC < ERROR_NZ OL_ERROR >
mov si, ds:[di].OLBI_genChunk ;si = chunk handle of window
;(is in same ObjectBlock)
mov ax, MSG_OL_POPUP_ACTIVATE ;bring up command window
sendMethod:
popf ;get IS_IMMEDIATE test results
mov di, mask MF_FORCE_QUEUE or mask MF_INSERT_AT_FRONT or \
mask MF_FIXUP_DS
jz afterCheck ;skip if not immediate...
;this is an IMMEDIATE ACTION trigger: use MF_CALL.
mov di, mask MF_CALL or mask MF_FIXUP_DS
afterCheck:
mov bx, ds:[LMBH_handle]
call ObjMessage
.leave
ret
OLButtonActivate endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonMouse
DESCRIPTION: Process current ptr & function state to determine whether
a button should be up or down
CALLED BY: MSG_META_START_SELECT
OLButtonPtr
OLButtonRelease
PASS: ds:*si - OLButton object
cx, dx - ptr position
bp - [ UIFunctionsActive | buttonInfo ]
RETURN: ax = MouseReturnFlags
MRF_PROCESSED - event was process by the button
MRF_REPLAY - event was released by the button
clear - event was ignored by the button
DESTROYED: bx, cx, dx, di
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 4/89 Initial version
------------------------------------------------------------------------------@
OLButtonStartSelect method OLButtonClass, MSG_META_START_SELECT
if SHORT_LONG_TOUCH
call StartShortLongTouch ;start short/long touch
endif
OLButtonMouse label far
test bp, (mask UIFA_IN) shl 8 ; see if in bounds
jz notInBounds ;if not in bounds, then should be up.
; is SELECT function still on?
test bp, (mask UIFA_SELECT) shl 8
jz short inBoundsNotPressed
inBoundsAndPressed:
;Button has been pressed on. Before depressing it, see if enabled
call OpenButtonCheckIfFullyEnabled
if BUBBLE_HELP
jc continueProcessing
cmp ax, MSG_META_START_SELECT
jne notStartSelect
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP_JUST_CLOSED
call ObjVarDeleteData
jnc notStartSelect ; found and deleted
call VisGrabMouse
call OLButtonCreateBubbleHelp
notStartSelect:
jmp returnProcessed
continueProcessing:
else
jnc returnProcessed ;skip if not enabled...
endif
; Set double-click flag if appropriate
test bp, mask BI_DOUBLE_PRESS
jz 1$
mov di, ds:[si]
add di, ds:[di].Vis_offset
or ds:[di].OLBI_moreAttrs, mask OLBMA_WAS_DOUBLE_CLICKED
1$:
if _CASCADING_MENUS
; if this button is in a menu and is in the process of being selected
; (i.e., it is not yet depressed and/or bordered, but it is going to
; be since it is calling OLButtonSaveStateSetBorderedAndOrDepressed
; next) then send a message to the menu window indicating that this
; button (since it is just a trigger) will not cause the menu to
; cascade.
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_specState, mask OLBSS_IN_MENU
jz dontSendMessage
test ds:[di].OLBI_specState, mask OLBSS_BORDERED or \
mask OLBSS_DEPRESSED
jnz dontSendMessage
push cx
; Flags passed in cl: Not cascading, don't start grab.
clr cx
call OLButtonSendCascadeModeToMenu
pop cx
dontSendMessage:
endif ;_CASCADING_MENUS
;if this button is not yet CURSORED or HAS_MOUSE_GRAB-ed, then save
;the current bordered and depressed state, and set DEPRESSED and/or
;BORDERED as required by specific UI.
call OLButtonSaveStateSetBorderedAndOrDepressed
;grab gadget, focus, keyboard, mouse, and default exclusives
;(As we gain the focus exclusive, will set the OLBSS_CURSORED flag,
;and redraw the button.)
stc ;set flag: grab everything
call OLButtonGrabExclusives
;in case we already had the focus, check draw state flags again
;(DO NOT DRAW USING THE QUEUE! Must draw button for quick mouse
;press-release sequences)
call OLButtonDrawNOWIfNewState ;redraw button if have new state
jmp short returnProcessed
inBoundsNotPressed:
;now reset the BORDERED and or DEPRESSED status to normal and REDRAW
;(DO NOT DRAW USING THE QUEUE! Must draw button for quick mouse
;press-release sequences)
call OLButtonRestoreBorderedAndDepressedStatusAndDrawNOW
call OLButtonReleaseMouseGrab
jmp short returnProcessed
;----------------------------------------------------------------------
notInBounds:
;is SELECT function still on?
test bp, (mask UIFA_SELECT) shl 8
jz short notInBoundsNotPressed
notInBoundsIsPressed:
;the user has dragged the mouse out of the button: draw as
;un-depressed, but KEEP THE MOUSE GRAB to prevent interacting with
;other controls (if is not in a menu or menu bar)
mov di, ds:[si]
add di, ds:[di].Vis_offset ; ds:di = SpecificInstance
test ds:[di].OLBI_specState, mask OLBSS_IN_MENU or \
mask OLBSS_IN_MENU_BAR
jnz isMenuNotInBoundsNotPressed ;skip if in menu or menu bar...
;now reset the BORDERED and or DEPRESSED status to normal and REDRAW
;(DO NOT DRAW USING THE QUEUE! Must draw button for quick mouse
;press-release sequences)
call OLButtonRestoreBorderedAndDepressedStatusAndDrawNOW
returnProcessed:
mov ax, mask MRF_PROCESSED or mask MRF_CLEAR_POINTER_IMAGE
; Say processed if ptr in bounds
ret
isMenuNotInBoundsNotPressed:
;moving off of a menu item: turn off cursored also, so that when
;we get a LOST_FOCUS, we don't redraw again.
mov di, ds:[si]
add di, ds:[di].Vis_offset
ANDNF ds:[di].OLBI_specState, not (mask OLBSS_CURSORED)
notInBoundsNotPressed:
;now reset the BORDERED and or DEPRESSED status to normal and REDRAW
;(DO NOT DRAW USING THE QUEUE! Must draw button for quick mouse
;press-release sequences)
call OLButtonRestoreBorderedAndDepressedStatusAndDrawNOW
call OLButtonReleaseMouseGrab ;returns carry set if released grab
jnc returnProcessed ;skip if did not have grab...
;(i.e. already un-depressed)
;we just released the grab: replay this event
mov ax, mask MRF_REPLAY ; Replay this one, since we didn't
ret
OLButtonStartSelect endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonStartMoveCopy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Start bubble help on MOVE_COPY
CALLED BY: MSG_META_START_MOVE_COPY
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
ds:bx = OLButtonClass object (same as *ds:si)
es = segment of OLButtonClass
ax = message #
cx = X position of mouse
dx = X position of mouse
bp low = ButtonInfo
bp high = UIFunctionsActive
RETURN: ax = MouseReturnFlags
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
joon 11/1/98 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonStartMoveCopy method dynamic OLButtonClass,
MSG_META_START_MOVE_COPY
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP_JUST_CLOSED
call ObjVarDeleteData
jnc callsuper ; found and deleted
call VisGrabMouse
call OLButtonCreateBubbleHelp
callsuper:
mov di, offset OLButtonClass
GOTO ObjCallSuperNoLock
OLButtonStartMoveCopy endm
endif ; BUBBLE_HELP
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonEndMoveCopy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: End bubble help on MOVE_COPY
CALLED BY: MSG_META_END_MOVE_COPY
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
ds:bx = OLButtonClass object (same as *ds:si)
es = segment of OLButtonClass
ax = message #
cx = X position of mouse
dx = X position of mouse
bp low = ButtonInfo
bp high = UIFunctionsActive
RETURN: ax = MouseReturnFlags
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
joon 11/1/98 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonEndMoveCopy method dynamic OLButtonClass,
MSG_META_END_MOVE_COPY
push ax
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
call OpenCheckBubbleMinTime
pop ax
jc leaveHelp
call OLButtonDestroyBubbleHelp
leaveHelp:
call VisReleaseMouse
mov di, offset OLButtonClass
GOTO ObjCallSuperNoLock
OLButtonEndMoveCopy endm
endif ; BUBBLE_HELP
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonSendCascadeModeToMenuFar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Calls OLButtonSendCascadeModeToMenu
CALLED BY: OLItemMouse
PASS: cl = OLMenuWinCascadeModeOptions
OMWCMO_CASCADE
True=Enable/False=Disable cascade mode.
OMWCMO_START_GRAB
If TRUE, will take the grabs and take the gadget
exclusive after setting the cascade mode.
if OMWCMO_CASCADE = TRUE
^ldx:bp = optr to submenu
else
dx, bp are ignored
*ds:si = button object
RETURN: Nothing
DESTROYED: cx, di
SIDE EFFECTS:
WARNING: This routine MAY resize LMem and/or object blocks, moving
them on the heap and invalidating stored segment pointers
and current register or stored offsets to them.
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 5/ 3/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CASCADING_MENUS
OLButtonSendCascadeModeToMenuFar proc far
call OLButtonSendCascadeModeToMenu
ret
OLButtonSendCascadeModeToMenuFar endp
endif ;_CASCADING_MENUS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonSendCascadeModeToMenu
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Packages up a MSG_MO_MW_CASCADE_MODE message and sends
it to the menu window object.
CALLED BY: OLButtonMouse,
OLMenuButtonHandleEvent,
OLMenuButtonHandleMenuFunction,
OLButtonSendCascadeModeToMenuFar
PASS: cl = OLMenuWinCascadeModeOptions
OMWCMO_CASCADE
True=Enable/False=Disable cascade mode.
OMWCMO_START_GRAB
If TRUE, will take the grabs and take the gadget
exclusive after setting the cascade mode.
if OMWCMO_CASCADE = TRUE
^ldx:bp = optr to submenu
else
dx, bp are ignored
*ds:si = button object
RETURN: Nothing
DESTROYED: cx, di
SIDE EFFECTS:
WARNING: This routine MAY resize LMem and/or object blocks, moving
them on the heap and invalidating stored segment pointers
and current register or stored offsets to them.
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 4/22/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _CASCADING_MENUS
OLButtonSendCascadeModeToMenu proc near
uses ax,bx
.enter
if ERROR_CHECK
;If ^ldx:bp should be valid, then ensure that it is valid and that
;it points to an OLMenuWinClass object.
; * * * DESTROYS: ax, bx, di. DS may be fixed up. * * *
test cl, mask OMWCMO_CASCADE
jz skipTest ; not cascading, skip this
push cx, dx, bp, si
movdw bxsi, dxbp
; ensure object has been built out
; ^lbx:si points to object passed in as ^ldx:bp
mov di, mask MF_CALL or mask MF_FIXUP_DS
mov ax, MSG_META_DUMMY
call ObjMessage ; Destroys: ax, cx, dx, bp
; check to be sure it is an OLMenuWinClass object
mov cx, segment OLMenuWinClass
mov dx, offset OLMenuWinClass
mov di, mask MF_CALL or mask MF_FIXUP_DS
mov ax, MSG_META_IS_OBJECT_IN_CLASS
call ObjMessage ; Destroys: ax, cx, dx, bp
ERROR_NC OL_ERROR ; NOT OLMenuWinClass.. bad.
pop cx, dx, bp, si
skipTest:
endif ;ERROR_CHECK
push si
mov bx, segment OLMenuWinClass
mov si, offset OLMenuWinClass
mov ax, MSG_MO_MW_CASCADE_MODE
; cl, and possibly dx & bp, are arguments to this message
mov di, mask MF_RECORD
call ObjMessage
pop si ; restore si for object ptr
mov cx, di ; cx <= ClassedEvent
mov ax, MSG_VIS_VUP_CALL_OBJECT_OF_CLASS
call VisCallParentEnsureStack
; MSG_MO_MW_CASCADE_MODE destroys ax, cx
.leave
ret
OLButtonSendCascadeModeToMenu endp
endif ;_CASCADING_MENUS
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonSaveStateSetBorderedAndOrDepressed
DESCRIPTION: This procedure makes sure that this GenTrigger is
drawn as depressed, which depending upon the specific
UI might mean DEPRESSED (blackened) and/or BORDERED.
CALLED BY: OLButtonMouse
OLButtonActivate
PASS: *ds:si = instance data for object
RETURN: ds, si, cx, dx, bp = same
DESTROYED: bx, di
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 6/90 initial version
------------------------------------------------------------------------------@
OLButtonSaveStateSetBorderedAndOrDepressed proc far
;see if already interacting with this button
mov di, ds:[si]
add di, ds:[di].Vis_offset
if FOCUSED_GADGETS_ARE_INVERTED
test ds:[di].OLBI_specState, mask OLBSS_DEPRESSED or \
mask OLBSS_HAS_MOUSE_GRAB
else
test ds:[di].OLBI_specState, mask OLBSS_CURSORED or \
mask OLBSS_HAS_MOUSE_GRAB
endif
jnz 10$ ;skip if so...
;Before we enforce a new state for the button, save the bordered
;status into OLBI_optFlags so that we can restore when button is
;released (since we don't know if we are in a pinned menu).
;This saves us from all of this conditional logic crap at the end.
call OLButtonSaveBorderedAndDepressedStatus
;does not trash bx, ds, si, di
10$: ;first let's decide which of the DEPRESSED and BORDERED flags
;we are dealing with. Start by assuming this trigger is inside
;a normal window:
; OPEN_LOOK: assume B, set D
; MOTIF: assume B, set D
; PM: assume B, set D
; CUA: assume B, set D
; RUDY: assume B
if FOCUSED_GADGETS_ARE_INVERTED
clr bx
else
mov bx, mask OLBSS_DEPRESSED ;bx = flags to set
endif
test ds:[di].OLBI_specState, mask OLBSS_IN_MENU
jz haveFlags
;this trigger is inside a menu:
; OPEN_LOOK: set B, set D
; (OL: if in pinned menu, B will already be set)
; PM: set B, set D
; MOTIF: set B
; CUA: set D
; MAC: set D
; If _BW_MENU_ITEM_SELECTION_IS_DEPRESSED is TRUE, the buttons
; are depressed if we are in B&W. If _ASSUME_BW_ONLY is true, then
; we do not check confirm that we are in B&W mode, but just assume
; that is the case. --JimG 5/5/94
if _BW_MENU_ITEM_SELECTION_IS_DEPRESSED
mov bx, mask OLBSS_DEPRESSED
endif ;_BW_MENU_ITEM_SELECTION_IS_DEPRESSED
if _BW_MENU_ITEM_SELECTION_IS_DEPRESSED and not _ASSUME_BW_ONLY
call OpenCheckIfBW
jc haveFlags ; if BW, we are done..
endif ;_BW_MENU_ITEM_SELECTION_IS_DEPRESSED and (not _ASSUME_BW_ONLY)
if not _BW_MENU_ITEM_SELECTION_IS_DEPRESSED or (not _ASSUME_BW_ONLY)
MO < mov bx, mask OLBSS_BORDERED >
ISU < mov bx, mask OLBSS_DEPRESSED >
endif ;(not _BW_MENU_ITEM_SELECTION_IS_DEPRESSED) or (not _ASSUME_BW_ONLY)
haveFlags:
ORNF ds:[di].OLBI_specState, bx
done:
ret
OLButtonSaveStateSetBorderedAndOrDepressed endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonRestoreBorderedAndDepressedStatusAndDrawNOW
DESCRIPTION: This routine resets the DEPRESSED and BORDERED flags as
necessary, and then immediately redraws the button if necessary
CALLED BY: OLButtonMouse
OLMenuButtonHandleMenuFunction
OLMenuButtonHandleDefaultFunction
OLMenuButtonGenActivate
OLMenuButtonCloseMenu
OLMenuButtonLeaveStayUpMode
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di, bp
PSEUDO CODE/STRATEGY:
DO NOT DRAW USING THE QUEUE!
Must draw button for quick mouse press-release sequences.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 6/90 initial version
------------------------------------------------------------------------------@
OLButtonRestoreBorderedAndDepressedStatusAndDrawNOW proc far
;restore BORDERED state from bit in OLBI_optFlags.
mov di, ds:[si]
add di, ds:[di].Vis_offset
call OLButtonRestoreBorderedAndDepressedStatus
call OLButtonDrawNOWIfNewState ;redraw if state changed
ret
OLButtonRestoreBorderedAndDepressedStatusAndDrawNOW endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonSaveBorderedAndDepressedStatus
FUNCTION: OLButtonRestoreBorderedAndDepressedStatus
DESCRIPTION: Save the current BORDERED status of this button so that
it can be restored. Basically, it is nearly impossible
to tell wether a button at rest should be bordered or not,
because buttons in pinned menus change.
PASS: *ds:si = instance data for object
ds:di = Spec instance data for object
RETURN: ds, si, di = same
DESTROYED: ax
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonSaveBorderedAndDepressedStatus proc near
;copy status flags from lower byte of OLBI_specState to higher byte.
ANDNF ds:[di].OLBI_specState, not \
(mask OLBSS_WAS_BORDERED or mask OLBSS_WAS_DEPRESSED)
mov al, {byte} ds:[di].OLBI_specState ;get LOW BYTE
ANDNF al, mask OLBSS_BORDERED or mask OLBSS_DEPRESSED
ORNF {byte} ds:[di].OLBI_specState+1, al ;OR into HIGH BYTE
ret
OLButtonSaveBorderedAndDepressedStatus endp
OLButtonRestoreBorderedAndDepressedStatus proc far
;restore status flags from higher byte of OLBI_specState to lower byte.
ANDNF ds:[di].OLBI_specState, not \
(mask OLBSS_BORDERED or mask OLBSS_DEPRESSED)
mov al, {byte} ds:[di].OLBI_specState+1 ;get HIGH BYTE
ANDNF al, mask OLBSS_BORDERED or mask OLBSS_DEPRESSED
ORNF {byte} ds:[di].OLBI_specState, al ;OR into LOW BYTE
done:
ret
OLButtonRestoreBorderedAndDepressedStatus endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonEnsureMouseGrab
DESCRIPTION: This procedure makes sure that this button has the
mouse grab (exclusive).
CALLED BY: OLMenuButtonHandleDefaultFunction
OLButtonMouse
PASS: *ds:si = instance data for object
RETURN: ds, si, cx, dx, bp = same
DESTROYED: di
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonEnsureMouseGrab proc near
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_specState, mask OLBSS_HAS_MOUSE_GRAB
jnz done ;skip if already have it...
ORNF ds:[di].OLBI_specState, mask OLBSS_HAS_MOUSE_GRAB
;set bit so we release later
call VisGrabMouse ;Grab the mouse for this button
done:
ret
OLButtonEnsureMouseGrab endp
CommonFunctional ends
CommonFunctional segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonGrabExclusives
DESCRIPTION: This procedure grabs some exclusives for the button object.
Regardless of the carry flag, the gadget and default
exclusives are grabbed.
CALLED BY: OLButtonMouse
PASS: *ds:si = instance data for object
carry set to grab focus, mouse, and keyboard grab also
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonGrabExclusives proc near
pushf
if _CUA_STYLE ;-------------------------------------------------------
;CUA: if this GenTrigger is not marked as the DEFAULT trigger,
;and is not destructive, request the parent window that this
;trigger be given a temporary default exclusive. (When parent window
;sends this button a MSG_META_GAINED_DEFAULT_EXCL, it will pass a flag
;so that this button does not redraw, because we are also taking the
;FOCUS exclusive.)
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_fixedAttrs, mask OLBFA_CAN_BE_TEMP_DEFAULT_TRIGGER
jz 10$ ;skip if is destructive...
test ds:[di].OLBI_specState, mask OLBSS_IN_MENU or \
mask OLBSS_IN_MENU_BAR or \
mask OLBSS_SYS_ICON
jnz 10$ ;skip if default or nasty...
mov ax, MSG_VIS_VUP_QUERY
mov cx, SVQT_TAKE_DEFAULT_EXCLUSIVE
mov bp, ds:[LMBH_handle] ;pass ^lbp:dx = this object
mov dx, si
call CallOLWin ; call OLWinClass object above us
10$:
endif ;--------------------------------------------------------------
;take gadget exclusive for UI window
mov cx, ds:[LMBH_handle]
mov dx, si
mov ax, MSG_VIS_TAKE_GADGET_EXCL
call VisCallParent
;see if we have been called by OLButtonMouse
popf
jnc done ;skip if only need some exclusives...
;now grab the mouse, BEFORE we grab the focus, because we want the
;OLBSS_HAS_MOUSE_GRAB flag to be set before we gain the focus,
;because we have already saved the BORDERED and DEPRESSED states,
;and don't want to again!
call OLButtonEnsureMouseGrab ;grab mouse, if don't have already
if _CUA_STYLE ;------------------------------------------------------
;MOTIF/PM/CUA:
;If this is not a SYS_ICON or menu bar object, take FOCUS exclusive,
;so other UI object will lose cursored emphasis. (Cannot navigate
;to system icons, so don't allow them to take focus)
mov di, ds:[si]
add di, ds:[di].Vis_offset
if _GCM
test ds:[di].OLBI_fixedAttrs, mask OLBFA_GCM_SYS_ICON
jnz 15$ ;skip if GCM icon (can navigate to it).
endif
if MENU_BAR_IS_A_MENU
;
; if menu bar is a menu, allow menu bar items to grab focus
;
test ds:[di].OLBI_specState, mask OLBSS_SYS_ICON
else
test ds:[di].OLBI_specState, mask OLBSS_SYS_ICON or \
mask OLBSS_IN_MENU_BAR
endif
jnz 20$ ;skip if is icon or in menu bar...
15$:: ;see if the FOCUS is currently on a VisText object or GenView object.
;If on either, then DO NOT take the focus.
call OpenTestIfFocusOnTextEditObject
jnc 20$ ;skip if should not take focus...
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_moreAttrs, mask OLBMA_IN_TOOLBOX
jnz 20$ ;in toolbox, do not take focus...
;take the FOCUS exclusive. Also take keyboard exclusive, so will
;receive non-system keyboard shortcuts directly from the Flow Object.
call MetaGrabFocusExclLow ;see OLButtonGainedFocusExcl
20$:
endif ;--------------------------------------------------------------
done:
ret
OLButtonGrabExclusives endp
CommonFunctional ends
CommonFunctional segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonGainedSystemFocusExcl
DESCRIPTION: This procedure is called when the window in which this button
is located decides that this button has the focus exclusive.
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonGainedSystemFocusExcl method dynamic OLButtonClass,
MSG_META_GAINED_SYS_FOCUS_EXCL
if PARENT_CTRLS_INVERTED_ON_CHILD_FOCUS
push ax
endif
if FOCUSED_GADGETS_ARE_INVERTED
test ds:[di].OLBI_specState, mask OLBSS_DEPRESSED
else
test ds:[di].OLBI_specState, mask OLBSS_CURSORED
endif
jnz done ;skip if already drawn as cursored...
if _GCM
;not necessary. EDS 7/12/90
; test ds:[di].OLBI_fixedAttrs, mask OLBFA_GCM_SYS_ICON
; jnz 10$ ;skip if GCM icon (not menu related)..
endif
;if this button is not yet CURSORED, then save the current bordered
;and depressed state, and set DEPRESSED and/or BORDERED as required
;by the specific UI.
call OLButtonSaveStateSetCursored
;sets OLBSS_CURSORED
10$: ;grab the gadget and default exclusives
clc ;pass flag: nothing else required.
call OLButtonGrabExclusives
;NOTE: TRY MOVING THIS LABEL LOWER TO MINIMIZE METHODS SENT
done:
call OLButtonDrawLATERIfNewState ;send method to self on queue so
;will redraw button if necessary
exit:
if PARENT_CTRLS_INVERTED_ON_CHILD_FOCUS
pop cx
mov dx, 1 or (1 shl 8) ;top, bottom margins for invert
mov ax, MSG_SPEC_NOTIFY_CHILD_CHANGING_FOCUS
call VisCallParent
endif
ret
OLButtonGainedSystemFocusExcl endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonCreateBubbleHelp
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create bubble help
CALLED BY: OLButtonGainedSystemFocusExcl
PASS: *ds:si = OLButtonClass object
RETURN: ds:di = OLButtonClass instance data
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Joon 8/ 5/96 Initial version
Cassie 3/10/97 Added bubble help delay
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonCreateBubbleHelp proc far
uses ax,bx,cx,dx,es,bp
.enter
push ds
mov di, segment olBubbleOptions
mov ds, di
mov cx, ds:[olBubbleHelpDelayTime] ; cx = bubble help delay
mov bp, ds:[olBubbleHelpTime] ; bp = bubble help time
test ds:[olBubbleOptions], mask BO_HELP
pop ds
jz done ; CF = 0
call FindBubbleHelp
jnc done
;
; At this point,
; ds:bx = ptr to help text
; cx = bubble help delay
; bp = bubble help time
;
jcxz noDelay ; open bubble now!
push cx
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
mov cx, size BubbleHelpData
call ObjVarAddData
pop cx
clr ax
mov ds:[bx].BHD_window, ax
mov ds:[bx].BHD_borderRegion, ax
;
; start timer
;
mov ds:[bx].BHD_timer, 0 ; in case no time out
push bx ; save vardata
mov al, TIMER_EVENT_ONE_SHOT
mov dx, MSG_OL_BUTTON_BUBBLE_DELAY_TIME_OUT
mov bx, ds:[LMBH_handle] ; ^lbx:si = object
call TimerStart
pop di ; ds:di = vardata
mov ds:[di].BHD_timer, bx ; save timer handle
mov ds:[di].BHD_timerID, ax ; save timer ID
done:
mov di, ds:[si] ; redeference for lmem moves
add di, ds:[di].Vis_offset
.leave
ret
noDelay:
mov di, ds:[bx].offset
mov bx, ds:[bx].handle
call ObjLockObjBlock
push bx
mov es, ax
mov cx, ax
mov dx, es:[di] ; cx:dx = bubble help text
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
mov bx, MSG_OL_BUTTON_BUBBLE_TIME_OUT
call OpenCreateBubbleHelp
call VisAddButtonPrePassive
pop bx
call MemUnlock
jmp done
OLButtonCreateBubbleHelp endp
FindBubbleHelp proc far
push si, di
mov di, ds:[si]
add di, ds:[di].Vis_offset
call OpenButtonCheckIfFullyEnabled
mov si, ds:[di].OLBI_genChunk
mov ax, ATTR_GEN_FOCUS_HELP
jc haveFocusHelpType
mov ax, ATTR_GEN_FOCUS_DISABLED_HELP
call ObjVarFindData
jc gotFocusHelp ; found disabled help
mov ax, ATTR_GEN_FOCUS_HELP ; no disabled help, try help
haveFocusHelpType:
call ObjVarFindData ; carry set if found
gotFocusHelp:
pop si, di
ret
FindBubbleHelp endp
endif ; BUBBLE_HELP
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonCreateBubbleHelpLow
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Really Create bubble help
CALLED BY: OLButtonCreateBubbleHelp, OLButtonBubbleDelayTimeOut
PASS: *ds:si = OLButtonClass object
RETURN: ds:di = OLButtonClass instance data
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cassie 3/10/97 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonCreateBubbleHelpLow proc near
uses ax,bx,cx,dx,es,bp
.enter
push ds
mov di, segment olBubbleOptions
mov ds, di
mov bp, ds:[olBubbleHelpTime] ; bp = bubble help time
pop ds
call FindBubbleHelp
EC < ERROR_NC -1 >
mov di, ds:[bx].offset
mov bx, ds:[bx].handle
call ObjLockObjBlock
push bx
mov es, ax
mov cx, ax
mov dx, es:[di] ; cx:dx = bubble help text
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
mov bx, MSG_OL_BUTTON_BUBBLE_TIME_OUT
call OpenCreateBubbleHelp
call VisAddButtonPrePassive
pop bx
call MemUnlock
mov di, ds:[si] ; redeference for lmem moves
add di, ds:[di].Vis_offset
.leave
ret
OLButtonCreateBubbleHelpLow endp
endif ; BUBBLE_HELP
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonDestroyBubbleHelp
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Destroy bubble help
CALLED BY: OLButtonLostSystemFocusExcl, OLMenuButtonLostFocusExcl
PASS: *ds:si = OLButtonClass object
RETURN: ds:di = OLButtonClass instance data
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Joon 8/ 5/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonDestroyBubbleHelp proc far
uses ax,bx
.enter
call VisRemoveButtonPrePassive
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
call OpenDestroyBubbleHelp
mov di, ds:[si] ; rederefence, just in case
add di, ds:[di].Vis_offset
done:
.leave
ret
OLButtonDestroyBubbleHelp endp
endif ; BUBBLE_HELP
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonBubbleTimeOut
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: bubble time out, close bubble
CALLED BY: MSG_OL_BUTTON_BUBBLE_TIME_OUT
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
ds:bx = OLButtonClass object (same as *ds:si)
es = segment of OLButtonClass
ax = message #
RETURN: nothing
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 9/27/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonBubbleTimeOut method dynamic OLButtonClass,
MSG_OL_BUTTON_BUBBLE_TIME_OUT
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
call ObjVarFindData
jnc done
mov ds:[bx].BHD_timer, 0
call OLButtonDestroyBubbleHelp
done:
ret
OLButtonBubbleTimeOut endm
endif ; BUBBLE_HELP
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonVisClose
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: object closing, close bubble
CALLED BY: MSG_VIS_CLOSE
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
ds:bx = OLButtonClass object (same as *ds:si)
es = segment of OLButtonClass
ax = message #
RETURN: nothing
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 3/19/99 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonVisClose method dynamic OLButtonClass, MSG_VIS_CLOSE
push ax
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
call ObjVarFindData
pop ax
jnc done
call OLButtonDestroyBubbleHelp
done:
; Ensure that we don't still have the mouse grabbed from either
; START_SELECT or START_MOVE_COPY. -dhunter 2/23/2000
call VisReleaseMouse
mov di, offset OLButtonClass
GOTO ObjCallSuperNoLock
OLButtonVisClose endm
endif ; BUBBLE_HELP
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonPrePassiveButton
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: if another click, close bubble help
CALLED BY: MSG_META_PRE_PASSIVE_BUTTON
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
ds:bx = OLButtonClass object (same as *ds:si)
es = segment of OLButtonClass
ax = message #
bp low = ButtonInfo
RETURN: nothing
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 1/12/98 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonPrePassiveButton method dynamic OLButtonClass,
MSG_META_PRE_PASSIVE_BUTTON
test bp, mask BI_PRESS
jz done
call OLButtonDestroyBubbleHelp
;
; prevent re-opening of bubble help
;
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP_JUST_CLOSED
clr cx
call ObjVarAddData
mov ax, MSG_META_DELETE_VAR_DATA
mov cx, TEMP_OL_BUTTON_BUBBLE_HELP_JUST_CLOSED
mov bx, ds:[LMBH_handle]
mov di, mask MF_FORCE_QUEUE
call ObjMessage
done:
clr ax ; continue with mouse event
ret
OLButtonPrePassiveButton endm
endif ; BUBBLE_HELP
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonBubbleDelayTimeOut
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: bubble delay time out, open bubble
CALLED BY: MSG_OL_BUTTON_BUBBLE_DELAY_TIME_OUT
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
ds:bx = OLButtonClass object (same as *ds:si)
es = segment of OLButtonClass
ax = message #
RETURN: nothing
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 9/27/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonBubbleDelayTimeOut method dynamic OLButtonClass,
MSG_OL_BUTTON_BUBBLE_DELAY_TIME_OUT
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
call ObjVarFindData
jnc done
mov ds:[bx].BHD_timer, 0
call OLButtonCreateBubbleHelpLow
done:
ret
OLButtonBubbleDelayTimeOut endm
endif ; BUBBLE_HELP
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonSaveStateSetCursored
DESCRIPTION: This routine tests if the button is pressed already,
and if not, saves the button's current bordered and depressed
state, and sets the new state, so that the button shows
the cursored emphasis.
SEE ALSO: OLButtonSaveStateSetBorderedAndOrDepressed
CALLED BY: OLButtonGainedFocusExcl
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ax, bx, di
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 6/90 initial version
------------------------------------------------------------------------------@
OLButtonSaveStateSetCursored proc near
;see if already interacting with this button
mov di, ds:[si]
add di, ds:[di].Vis_offset
if FOCUSED_GADGETS_ARE_INVERTED
test ds:[di].OLBI_specState, mask OLBSS_DEPRESSED or \
mask OLBSS_HAS_MOUSE_GRAB
else
test ds:[di].OLBI_specState, mask OLBSS_CURSORED or \
mask OLBSS_HAS_MOUSE_GRAB
endif
jnz 10$ ;skip if so...
;Before we enforce a new state for the button, save the bordered
;status into OLBI_optFlags so that we can restore when button is
;released (since we don't know if we are in a pinned menu).
;This saves us from all of this conditional logic crap at the end.
call OLButtonSaveBorderedAndDepressedStatus
;does not trash bx, ds, si, di
10$: ;now set the CURSORED flag
if not FOCUSED_GADGETS_ARE_INVERTED
ORNF ds:[di].OLBI_specState, mask OLBSS_CURSORED
endif
;first let's decide which of the DEPRESSED and BORDERED flags
;first let's decide which of the DEPRESSED and BORDERED flags
;we are dealing with. Start by assuming this trigger is inside
;a normal window:
; OPEN_LOOK: set nothing (CURSORED flag shown independently)
; MOTIF: set nothing (CURSORED flag shown independently)
; PM: set nothing (CURSORED flag shown independently)
; CUA: set nothing (CURSORED flag shown independently)
; RUDY: set DEPRESSED, don't set CURSORED!
if FOCUSED_GADGETS_ARE_INVERTED
mov bx, mask OLBSS_DEPRESSED
else
clr bx ;bx = flags to set
endif
test ds:[di].OLBI_specState, mask OLBSS_IN_MENU
jz haveFlags
;this trigger is inside a menu:
; OPEN_LOOK: set B, set D
; (OL: if in pinned menu, B will already be set)
; PM: set B, set D
; MOTIF: set B
; CUA: set D
; If _BW_MENU_ITEM_SELECTION_IS_DEPRESSED is TRUE, the buttons
; are depressed if we are in B&W. If _ASSUME_BW_ONLY is true, then
; we do not check confirm that we are in B&W mode, but just assume
; that is the case. --JimG 5/5/94
if _BW_MENU_ITEM_SELECTION_IS_DEPRESSED
mov bx, mask OLBSS_DEPRESSED
endif ;_BW_MENU_ITEM_SELECTION_IS_DEPRESSED
if _BW_MENU_ITEM_SELECTION_IS_DEPRESSED and not _ASSUME_BW_ONLY
call OpenCheckIfBW
jc haveFlags ; if BW, we are done..
endif ;_BW_MENU_ITEM_SELECTION_IS_DEPRESSED and (not _ASSUME_BW_ONLY)
if not _BW_MENU_ITEM_SELECTION_IS_DEPRESSED or (not _ASSUME_BW_ONLY)
MO < mov bx, mask OLBSS_BORDERED >
ISU < mov bx, mask OLBSS_DEPRESSED >
NOT_MO< mov bx, mask OLBSS_DEPRESSED >
endif ;(not _BW_MENU_ITEM_SELECTION_IS_DEPRESSED) or (not _ASSUME_BW_ONLY)
haveFlags:
ORNF ds:[di].OLBI_specState, bx
done:
ret
OLButtonSaveStateSetCursored endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonLostSystemFocusExcl
DESCRIPTION: This procedure is called when the window in which this button
is located decides that this button does not have the
focus exclusive.
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonLostSystemFocusExcl method dynamic OLButtonClass,
MSG_META_LOST_SYS_FOCUS_EXCL
if PARENT_CTRLS_INVERTED_ON_CHILD_FOCUS
push ax
endif
if FOCUSED_GADGETS_ARE_INVERTED
test ds:[di].OLBI_specState, mask OLBSS_DEPRESSED
jz done ;skip if already drawn as not cursored
ANDNF ds:[di].OLBI_specState, not (mask OLBSS_DEPRESSED)
else
test ds:[di].OLBI_specState, mask OLBSS_CURSORED
jz done ;skip if already drawn as not cursored
ANDNF ds:[di].OLBI_specState, not (mask OLBSS_CURSORED)
endif
;if not the master default trigger, release the default exclusive
;so that the master default can gain it.
call OLButtonReleaseDefaultExclusive
;now reset the BORDERED and or DEPRESSED status to normal and REDRAW
mov di, ds:[si]
add di, ds:[di].Vis_offset
call OLButtonRestoreBorderedAndDepressedStatus
;
; Remove the known drawn state. In keyboard-only systems, the
; cursor interferes with the mnemonic underline, so the entire thing
; should be redrawn. (Changed to happen for all keyboard-only systems.)
;
call OpenCheckIfKeyboardOnly
jnc 10$
mov di, ds:[si]
add di, ds:[di].Vis_offset
and ds:[di].OLBI_optFlags, not mask OLBOF_DRAW_STATE_KNOWN
10$:
call OLButtonDrawLATERIfNewState ;send method to self on queue so
;will redraw button if necessary
done:
if PARENT_CTRLS_INVERTED_ON_CHILD_FOCUS
pop cx
mov dx, 1 or (1 shl 8) ;top, bottom margins for invert
mov ax, MSG_SPEC_NOTIFY_CHILD_CHANGING_FOCUS
call VisCallParent
endif
ret
OLButtonLostSystemFocusExcl endm
COMMENT @----------------------------------------------------------------------
METHOD: OLButtonLostGadgetExcl -- MSG_VIS_LOST_GADGET_EXCL
DESCRIPTION: HandleMem losing of gadget exclusive. We MUST release any
gadget exclusive if we get this method, for it is used both
for the case of the grab being given to another gadget &
when a window on which this gadget sits is being closed.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_VIS_LOST_GADGET_EXCL
RETURN: nothing
DESTROYED:
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 7/89 Initial version
------------------------------------------------------------------------------@
OLButtonLostGadgetExcl method dynamic OLButtonClass, MSG_VIS_LOST_GADGET_EXCL
;release the mouse grab
call OLButtonReleaseMouseGrab
;if this button has the FOCUS, let's assume that it will shortly
;lose the focus, and so OLButtonLostFocusExcl will force it to
;redraw. Otherwise, lets reset the button visually now!
if FOCUSED_GADGETS_ARE_INVERTED
test ds:[di].OLBI_specState, mask OLBSS_DEPRESSED
else
test ds:[di].OLBI_specState, mask OLBSS_CURSORED
endif
jnz done ;skip if not cursored...
;now reset the BORDERED and or DEPRESSED status to normal and REDRAW
;pass ds:di
call OLButtonRestoreBorderedAndDepressedStatus
call OLButtonDrawLATERIfNewState
;send method to self on queue so
;will redraw button if necessary
done:
ret
OLButtonLostGadgetExcl endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonGainedDefaultExclusive -- MSG_META_GAINED_DEFAULT_EXCL
DESCRIPTION: This method is sent by the parent window (see OpenWinGupQuery)
when it decides that this GenTrigger should have the
default exclusive.
PASS: *ds:si = instance data for object
ds:di = ptr to intance data
es = class segment
bp = TRUE if this button should redraw itself,
because it did not initiate this GAINED sequence,
and is not gaining any other exclusives that
would cause it to redraw.
RETURN: nothing
ALLOWED TO DESTROY:
nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonGainedDefaultExclusive method static OLButtonClass,
MSG_META_GAINED_DEFAULT_EXCL
uses bx, di, es ; To comply w/static call requirements
.enter ; that bx, si, di, & es are preserved.
; NOTE that es is NOT segment of class
call OpenCheckDefaultRings
jnc done
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_specState, mask OLBSS_DEFAULT
jnz done ;skip if already have default...
ORNF ds:[di].OLBI_specState, mask OLBSS_DEFAULT
tst bp ;check flag passed by OpenWinGupQuery
jz done ;skip if no need to redraw...
call OLButtonDrawLATERIfNewState ;send method to self on queue so
;will redraw button if necessary
done:
.leave
ret
OLButtonGainedDefaultExclusive endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonLostDefaultExclusive -- MSG_META_LOST_DEFAULT_EXCL
DESCRIPTION: This method is sent by the parent window (see OpenWinGupQuery)
when it decides that this GenTrigger should NOT have the
default exclusive.
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonLostDefaultExclusive method OLButtonClass,
MSG_META_LOST_DEFAULT_EXCL
call OpenCheckDefaultRings
jnc done
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_specState, mask OLBSS_DEFAULT
jz done ;skip if do not have default...
ANDNF ds:[di].OLBI_specState, not mask OLBSS_DEFAULT
call OLButtonDrawLATERIfNewState ;send method to self on queue so
;will redraw button if necessary
done:
ret
OLButtonLostDefaultExclusive endp
CommonFunctional ends
CommonFunctional segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonNavigate - MSG_SPEC_NAVIGATION_QUERY handler for
OLButtonClass
DESCRIPTION: This method is used to implement the keyboard navigation
within-a-window mechanism. See method declaration for full
details.
CALLED BY: utility
PASS: *ds:si = instance data for object
cx:dx = OD of object which originated the navigation method
bp = NavigationFlags
RETURN: ds, si = same
cx:dx = OD of replying object
bp = NavigationFlags (in reply)
carry set if found the next/previous object we were seeking
DESTROYED: ax, bx, es, di
PSEUDO CODE/STRATEGY:
OLButtonClass handler:
1) If this OLButtonClass object is subclassed GenItem,
we should not even get this query. The OLItemGroup
should have first received the query, and handled as a leaf
node (should not have sent to children).
2) similarly, if this OLButtonClass object is subclassed
by OLMenuButtonClass, we should not get this query.
3) Otherwise, this must be a GenTrigger object. As a leaf-node
in the subset of the visible tree which is traversed by this
query, this object must handle this method by calling a utility
routine, passing flags indicating whether or not this object
is focusable. (May be trigger in menu bar!)
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonNavigate method OLButtonClass, MSG_SPEC_NAVIGATION_QUERY
;ERROR CHECKING is in OLButtonNavigateCommon
;see if this button is enabled (generic state may come from window
;which is opened by this button)
push cx, dx
call OLButtonGetGenAndSpecState ;returns dh = VI_attrs
;bx = OLBI_specState
if not _KBD_NAVIGATION
;_CR_NAVIGATION might be true, so preserve navigation sequencing.
clr dh ;indicate this node is disabled.
endif
mov cx, bx
clr bl ;default: not root-level node, is not
;composite node, is not focusable
call OpenCheckIfKeyboard
jnc haveFlags ;no keyboard, can't take focus. 4/20/93
test ds:[di].OLBI_moreAttrs, mask OLBMA_IN_TOOLBOX
jnz haveFlags ;in toolbox, do not take focus...
;
; If this button is a SYS_ICON (in the header area), then
; indicate that it is not FOCUSABLE. Users can activate it
; using the system menu.
;
test cx, mask OLBSS_SYS_ICON
jz notSysIcon ;skip if is not a system icon...
if not _GCM
jmp haveFlags ; it's a system icon
else ; _GCM
;
; It's a sys icon. Do something special if it's GCM.
;
test ds:[di].OLBI_fixedAttrs, mask OLBFA_GCM_SYS_ICON
jz haveFlags ;skip if is not a GCM icon...
jnz focusableIfEnabledAndDrawable
endif ; _GCM
notSysIcon:
if not MENU_BAR_IS_A_MENU
;
; if this button has been placed in a menu bar, indicate
; that it is menu related
;
test cx, mask OLBSS_IN_MENU_BAR
jz focusableIfEnabledAndDrawable
ORNF bl, mask NCF_IS_MENU_RELATED
endif ;(not MENU_BAR_IS_A_MENU)
focusableIfEnabledAndDrawable::
;
; Set this button as focusable if it is enabled and drawable
;
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].VI_attrs, mask VA_DRAWABLE
jz haveFlags ;not drawable, branch
call OpenButtonCheckIfFullyEnabled
jnc haveFlags
ORNF bl, mask NCF_IS_FOCUSABLE
haveFlags:
;
; call utility routine, passing flags to indicate that this is
; a leaf node in visible tree, and whether or not this object can
; get the focus. This routine will check the passed NavigationFlags
; and decide what to respond.
;
pop cx, dx
mov di, ds:[si] ;pass *ds:di = generic object
add di, ds:[di].Vis_offset ;which may contain relevant hints
mov di, ds:[di].OLBI_genChunk
call VisNavigateCommon
ret
OLButtonNavigate endm
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonBroadcastForDefaultFocus --
MSG_SPEC_BROADCAST_FOR_DEFAULT_FOCUS handler.
DESCRIPTION: This broadcast method is used to find the object within a windw
which has HINT_DEFAULT_FOCUS{_WIN}.
PASS: *ds:si = instance data for object
RETURN: ^lcx:dx = OD of object with hint
carry set if broadcast handled
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 3/90 initial version
------------------------------------------------------------------------------@
OLButtonBroadcastForDefaultFocus method OLButtonClass, \
MSG_SPEC_BROADCAST_FOR_DEFAULT_FOCUS
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_fixedAttrs, mask OLBFA_DEFAULT_FOCUS
jz done ;skip if not...
mov cx, ds:[LMBH_handle]
mov dx, si
clr bp
done:
ret
OLButtonBroadcastForDefaultFocus endm
CommonFunctional ends
CommonFunctional segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLButtonMakeNotApplyable --
MSG_OL_MAKE_NOT_APPLYALE for OLButtonClass
DESCRIPTION: We get this when an apply or reset happens. If this is an
APPLY/RESET type trigger, we'll disable it.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_OL_MAKE_NOT_APPLYABLE
RETURN: nothing
DESTROYED: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 6/11/90 Initial version
------------------------------------------------------------------------------@
OLButtonMakeApplyable method OLButtonClass, MSG_OL_MAKE_APPLYABLE
mov ax, MSG_GEN_SET_ENABLED ;we'll enable if our button
GOTO CallMethodIfApplyOrReset
OLButtonMakeApplyable endm
OLButtonMakeNotApplyable method OLButtonClass, MSG_OL_MAKE_NOT_APPLYABLE
mov ax, MSG_GEN_SET_NOT_ENABLED ;else disable it
FALL_THRU CallMethodIfApplyOrReset
OLButtonMakeNotApplyable endm
COMMENT @----------------------------------------------------------------------
ROUTINE: CallMethodIfApplyOrReset
SYNOPSIS: Calls passed method on itself if apply or reset button.
CALLED BY: OLButtonMakeApplyable, OLButtonMakeNotApplyable
PASS: *ds:si -- handle of a button
ax -- method to call
RETURN: nothing
DESTROYED: ax, cx, dx, bp, di, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 6/12/90 Initial version
------------------------------------------------------------------------------@
CallMethodIfApplyOrReset proc far
push ax
mov ax, ATTR_GEN_TRIGGER_INTERACTION_COMMAND
call ObjVarFindData
pop ax
jnc exit ;not found, done
VarDataFlagsPtr ds, bx, cx
test cx, mask VDF_EXTRA_DATA
jz exit
cmp {word} ds:[bx], IC_APPLY
je callIt
cmp {word} ds:[bx], IC_RESET
jne exit ;no match, branch
callIt:
EC < mov di, ds:[si] ;gen should match spec >
EC < add di, ds:[di].Vis_offset >
EC < cmp si, ds:[di].OLBI_genChunk >
EC < ERROR_NE OL_ERROR >
mov dl, VUM_NOW ;else call a method on it
GOTO ObjCallInstanceNoLock
exit:
ret
CallMethodIfApplyOrReset endp
CommonFunctional ends
ButtonCommon segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonChangeEnabled -- MSG_SPEC_NOTIFY_ENABLED and
MSG_SPEC_NOTIFY_NOT_ENABLED hander.
DESCRIPTION: We intercept these methods here to make sure that the button
redraws and that we grab or release the master default
exclusive for the window.
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 3/90 initial version
------------------------------------------------------------------------------@
OLButtonNotifyEnabled method static OLButtonClass,
MSG_SPEC_NOTIFY_ENABLED uses bx, di
.enter
if ALLOW_ACTIVATION_OF_DISABLED_MENUS
call OpenButtonCheckIfAlwaysEnabled
jc exit
endif
mov di, offset OLButtonClass
CallSuper MSG_SPEC_NOTIFY_ENABLED
call FinishChangeEnabled
exit::
.leave
ret
OLButtonNotifyEnabled endm
OLButtonNotifyNotEnabled method static OLButtonClass,
MSG_SPEC_NOTIFY_NOT_ENABLED uses bx, di
.enter
if ALLOW_ACTIVATION_OF_DISABLED_MENUS
call OpenButtonCheckIfAlwaysEnabled
jc exit
endif
mov di, offset OLButtonClass
CallSuper MSG_SPEC_NOTIFY_NOT_ENABLED
call FinishChangeEnabled
exit::
.leave
ret
OLButtonNotifyNotEnabled endm
FinishChangeEnabled proc near
push ax, cx, dx, bp
call OLButtonGetGenAndSpecState
test dh, mask VA_FULLY_ENABLED
jnz isEnabled ;skip if enabled...
;we are setting this button NOT enabled. First: if it is CURSORED,
;force navigation to move onto the next object in this window.
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_specState, mask OLBSS_CURSORED
jz 10$ ;skip if not cursored...
mov ax, MSG_GEN_NAVIGATE_TO_NEXT_FIELD
call VisCallParent
10$: ;in case this button has HINT_DEFAULT_DEFAULT_ACTION, release the master default
;exclusive for this window. (If this button is not the master default,
;this does nada). Do this BEFORE you release the DEFAULT exclusive.
call OLButtonResetMasterDefault
;now, force the release of any other grabs that we might have.
;(If this is the only object in the window, it will still have the
;FOCUS and KBD grabs, so this is really important.)
call OLButtonReleaseAllGrabs
jmp short done
isEnabled:
;this button is now enabled. If it has HINT_DEFAULT_DEFAULT_ACTION, request
;the master default for this window.
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_fixedAttrs, mask OLBFA_MASTER_DEFAULT_TRIGGER
;HINT_DEFAULT_DEFAULT_ACTION present?
jz done ;skip if not...
mov cx, SVQT_SET_MASTER_DEFAULT
mov ax, MSG_VIS_VUP_QUERY
mov bp, ds:[LMBH_handle] ; pass ^lbp:dx = this object
mov dx, si
call CallOLWin ; call OLWinClass object above us
done: ;draw object and save new state
pop ax, cx, dx, bp
clc ;return flag: allows Gen handler
exit: ;to continue
ret
FinishChangeEnabled endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonResetMasterDefault
DESCRIPTION: Releases "Master Default" exclusive, if this button has it.
CALLED BY: INTERNAL
OLButtonChangeEnabled
OLButtonVisUnbuildBranch
PASS: *ds:si - OLButton
RETURN: nothing
DESTROYED: ax, cx, dx, bp, di
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 4/92 Initial version
------------------------------------------------------------------------------@
OLButtonResetMasterDefault proc far uses bx, si
.enter
; In case this button has HINT_DEFAULT_DEFAULT_ACTION, release the master default
; exclusive for this window. (If this button is not the master default,
; this does nada).
;
mov bp, ds:[LMBH_handle] ;pass ^lbp:dx = this OLButton
mov dx, si
call SwapLockOLWin ; If no OLWin class above us, done.
jnc done
mov di, ds:[si]
add di, ds:[di].Vis_offset
cmp ds:[di].OLWI_masterDefault.handle, bp ;set new master OD
jne afterResetMasterDefault
cmp ds:[di].OLWI_masterDefault.chunk, dx
jne afterResetMasterDefault
mov cx, SVQT_RESET_MASTER_DEFAULT
mov ax, MSG_VIS_VUP_QUERY
call ObjCallInstanceNoLock
afterResetMasterDefault:
call ObjSwapUnlock
done:
.leave
ret
OLButtonResetMasterDefault endp
COMMENT @----------------------------------------------------------------------
METHOD: OLButtonQueryIsTrigger -- MSG_OL_BUTTON_QUERY_IS_TRIGGER
for OLButtonClass
DESCRIPTION: Respond to a query from an OLMenuItemGroup object in this
visible composite (menu). The query is asking a specific child
- are you a trigger (or sub-menu button)? If the sibling is not
a trigger, it will not respond to the query, so the carry flag
will return cleared.
PASS: *ds:si - instance data
es - segment of OLButtonClass
ax - MSG_OL_BUTTON_QUERY_IS_TRIGGER
cx, dx, bp -
RETURN: carry - set if child can answer query
cx = TRUE / FALSE
DESTROYED: cx
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
respond TRUE or FALSE
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 8/89 Initial version
------------------------------------------------------------------------------@
OLButtonQueryIsTrigger method OLButtonClass, MSG_OL_BUTTON_QUERY_IS_TRIGGER
mov cx, TRUE ;return = TRUE (is trigger)
stc ;return query acknowledged
ret
OLButtonQueryIsTrigger endm
ButtonCommon ends
ButtonCommon segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonMetaExposed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Handle META_EXPOSED for bubble help window
CALLED BY: MSG_META_EXPOSED
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
ds:bx = OLButtonClass object (same as *ds:si)
es = segment of OLButtonClass
ax = message #
RETURN:
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Joon 8/ 2/96 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if BUBBLE_HELP
OLButtonMetaExposed method dynamic OLButtonClass,
MSG_META_EXPOSED
mov di, cx
call GrCreateState
call GrBeginUpdate
mov ax, TEMP_OL_BUTTON_BUBBLE_HELP
call ObjVarFindData
jnc endUpdate
push si
mov si, ds:[bx].BHD_borderRegion
mov si, ds:[si]
clr ax, bx
call GrDrawRegion
pop si
call FindBubbleHelp
jnc endUpdate
mov si, ds:[bx].offset
mov bx, ds:[bx].handle
call ObjLockObjBlock
push bx
mov ds, ax
mov si, ds:[si] ; ds:si = help text
mov ax, BUBBLE_HELP_TEXT_X_MARGIN
mov bx, BUBBLE_HELP_TEXT_Y_MARGIN
clr cx
call GrDrawText
pop bx
call MemUnlock
endUpdate:
call GrEndUpdate
GOTO GrDestroyState
OLButtonMetaExposed endm
endif ; BUBBLE_HELP
COMMENT @----------------------------------------------------------------------
METHOD: OLButtonDraw -- MSG_VIS_DRAW for OLButtonClass
DESCRIPTION: Draw the button
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_VIS_DRAW
cl - DrawFlags: DF_EXPOSED set if updating
bp - GState to use
RETURN: nothing
DESTROYED:
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
Call the correct draw routine based on the display type:
if (black & white) {
DrawBWButton();
} else {
DrawColorButton();
}
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Doug 2/89 Initial version
------------------------------------------------------------------------------@
OLButtonDraw method dynamic OLButtonClass, MSG_VIS_DRAW
;since this procedure can be called directly when the mouse button
;is released, we want to make sure that the button is realized,
;drawable, and not invalid.
; make sure object is drawable
test ds:[di].VI_attrs, mask VA_DRAWABLE
jz common ; if not, skip drawing it
; make sure object is realized
if _HAS_LEGOS_LOOKS
mov bl, ds:[di].OLBI_legosLook
push bx
endif ; legos looks
;get display scheme data
mov di, bp ;put GState in di
push cx, dx
mov ax, GIT_PRIVATE_DATA
call GrGetInfo ;returns ax, bx, cx, dx
pop cx, dx
if _HAS_LEGOS_LOOKS
pop bx
endif
;al = color scheme, ah = display type, cl = update flag
ANDNF ah, mask DF_DISPLAY_TYPE ;keep display type bits
cmp ah, DC_GRAY_1 ;is this a B&W display?
mov ch, cl ;Pass DrawFlags in ch
mov cl, al ;Pass color scheme in cl
;(ax & bx get trashed)
;CUA & MAC use one handler for Color and B&W draws.
push di ;save gstate
;
; pcv is in color, but uses some bw regions :)
if not _ASSUME_BW_ONLY
MO < jnz color ;skip to draw color button... >
ISU < jnz color ;skip to draw color button... >
endif
bw:
;draw black & white button
CallMod DrawBWButton
if ( _OL_STYLE or _MOTIF or _ISUI ) and ( not _ASSUME_BW_ONLY ) ;-------------
jmp short afterDraw
color: ;draw color button
if _HAS_LEGOS_LOOKS
tst bl
jne bw ; if not standard look draw in BW
endif
CallMod DrawColorButton
endif ;--------------------------------------------------------------
; mov bp, di ;
afterDraw:
pop bp ;restore gstate
common: ;both B&W and Color draws finish here:
;copy generic state data from
;GenTrigger object,set DRAW_STATE_KNOWN
call UpdateButtonState
mov di, bp ;pass gstate
mov al, SDM_100 ;make sure these are correct
call GrSetAreaMask ;
call GrSetTextMask ;
call GrSetLineMask
ret
OLButtonDraw endp
COMMENT @----------------------------------------------------------------------
FUNCTION: UpdateButtonState
DESCRIPTION: Note which specific state flags have been set in order to
use this information for later drawing optimizations.
Also, notes the enabled/disabled state.
CALLED BY: OLButtonDraw, OLButtonSpecBuild, OLMenuButtonSetup
PASS: ds:*si - object
RETURN: ds:di = VisInstance
carry set
DESTROYED: ax, dx
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/89 Initial version
------------------------------------------------------------------------------@
;see FALL_THROUGH above...
UpdateButtonState proc far
class OLButtonClass
call OLButtonGetGenAndSpecState
;sets bx = OLBI_specState
;dh = VI_attrs
ANDNF bl, OLBOF_STATE_FLAGS_MASK ;remove non-state flags,
;including OLBOF_ENABLED
call OpenButtonCheckIfFullyEnabled ;use our special routine
jnc 10$
ORNF bl, mask VA_FULLY_ENABLED ;or into OLButtonFlags
10$:
ORNF bl, mask OLBOF_DRAW_STATE_KNOWN ;set draw state known
mov di, ds:[si]
add di, ds:[di].Vis_offset ;ds:di = SpecificInstance
ANDNF ds:[di].OLBI_optFlags, not (OLBOF_STATE_FLAGS_MASK \
or mask OLBOF_ENABLED)
;clear old state flags
ORNF ds:[di].OLBI_optFlags, bl ;and or new flags in
stc
ret
UpdateButtonState endp
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonDrawMoniker
DESCRIPTION: Draw the moniker for this button.
CALLED BY: DrawColorButton, DrawBWButton
PASS: *ds:si = instance data for object
di = GState
al = DrawMonikerFlags (justification, clipping)
cx = OLMonikerAttributes (window mark, cursored)
dl = X inset amount
dh = Y inset amount
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonDrawMoniker proc far
class OLButtonClass
;Draw moniker offset in X and centered in Y
sub sp, size OpenMonikerArgs ;make room for args
mov bp, sp ;pass pointer in bp
EC < call ECInitOpenMonikerArgs ;save IDs on stack for testing >
mov ss:[bp].OMA_gState, di ;pass gstate
clr ah ;high byte not used
mov ss:[bp].OMA_drawMonikerFlags, ax ;pass DrawMonikerFlags
mov ss:[bp].OMA_monikerAttrs, cx ;pass OLMonikerAttrs
mov bl, dh ;keep y inset here
clr dh ;x inset in dx
clr bh ;y inset in bx
mov ss:[bp].OMA_leftInset, dx ;pass left inset
mov ss:[bp].OMA_topInset, bx ;pass top inset
if DRAW_SHADOWS_ON_BW_GADGETS or DRAW_SHADOWS_ON_BW_TRIGGERS_ONLY
push di
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_specState, mask OLBSS_SYS_ICON or \
mask OLBSS_IN_MENU_BAR
jnz 17$
test ds:[di].OLBI_moreAttrs, mask OLBMA_IN_TOOLBOX
jnz 17$
call OpenCheckIfBW
jnc 17$
inc dx
inc bx
17$:
pop di
endif
mov ss:[bp].OMA_rightInset, dx ;pass right inset
mov ss:[bp].OMA_bottomInset, bx ;pass bottom inset
mov bx, ds:[si] ;pass gen chunk in es:bx
add bx, ds:[bx].Vis_offset
;
; Hack in CGA to make mnemonics appear a little better in menus.
; -cbh 2/15/92 CHECK BW FOR CUA LOOK
;
push ds:[bx].VI_bounds.R_top ;is this the worst I've done?
push ds:[bx].VI_bounds.R_bottom
call OpenCheckIfCGA
jnc 8$ ;not CGA, branch
call OpenCheckIfKeyboardNavigation ;Check if using kbd mnemonics
jnc 8$ ; if not, don't bother
test ds:[bx].OLBI_specState, mask OLBSS_IN_MENU_BAR
jz 8$
dec ds:[bx].VI_bounds.R_top ;is this the worst I've done?
dec ds:[bx].VI_bounds.R_bottom
8$:
;
; Center the moniker if desired. (Not an option in Rudy.)
;
test ds:[bx].OLBI_moreAttrs, mask OLBMA_CENTER_MONIKER
jz 10$
or ss:[bp].OMA_drawMonikerFlags, J_CENTER shl offset DMF_X_JUST
10$:
;
; Clip monikers if desired. (Always clip if menu down or right marks
; are displayed. -cbh 12/16/92
;
test ds:[bx].OLBI_specState, (mask OLBSS_MENU_DOWN_MARK or \
mask OLBSS_MENU_RIGHT_MARK)
jnz 15$
test ds:[bx].OLBI_moreAttrs, (mask OLBMA_CAN_CLIP_MONIKER_WIDTH or \
mask OLBMA_CAN_CLIP_MONIKER_HEIGHT)
jz 20$
15$:
or ss:[bp].OMA_drawMonikerFlags, mask DMF_CLIP_TO_MAX_WIDTH
20$:
mov bx, ds:[bx].OLBI_genChunk
segmov es, ds ;pass *es:bx = generic object
;which holds moniker.
call OpenDrawMoniker
EC < call ECVerifyOpenMonikerArgs ;make structure still ok >
mov bx, ds:[si] ;pass gen chunk in es:bx
add bx, ds:[bx].Vis_offset
pop ds:[bx].VI_bounds.R_bottom
pop ds:[bx].VI_bounds.R_top ;is this the worst I've done?
add sp, size OpenMonikerArgs ;dump args
ret
OLButtonDrawMoniker endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonVisOpen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Called when the button is to be made visible on the screen.
Subclassed to check if this is a button in the title bar
that required rounded edges.
CALLED BY: MSG_VIS_OPEN
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
ds:bx = OLButtonClass object (same as *ds:si)
es = segment of OLButtonClass
ax = message #
bp = 0 if top window, else window for object to open on
RETURN: None
DESTROYED: ax, cx, dx, bp
SIDE EFFECTS: None
PSEUDO CODE/STRATEGY:
Sadly enough, this seems to be the best place to do this check
even though it will be done every time the window is opened.
But this will not send a message to the window if the button
is not in the title bar, or if it is and the special bit is
already set. Also, if the button is in the title bar, but
does not have a rounded top corner, then an attribute is set
so that we do not have to keep sending messages to the parent
window.
REVISION HISTORY:
Name Date Description
---- ---- -----------
JimG 4/ 4/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _ROUND_THICK_DIALOGS
OLButtonVisOpen method dynamic OLButtonClass, MSG_VIS_OPEN
push bp ; save bp for call superclass
; See if we have already set this special bit.
test ds:[di].OLBI_optFlags, mask OLBOF_HAS_ROUNDED_TOP_CORNER
jnz done ; already set, skip this
; See if we have already checked this object, and there is no
; need to continue because it is not special.
mov ax, ATTR_OL_BUTTON_NO_ROUNDED_TOP_CORNER
call ObjVarFindData
jc done ; no rounded corner needed,
; alredy checked
; If this button is a sys icon or has asked to seek the title bar,
; then check if it needs a rounded top corner
test ds:[di].OLBI_specState, mask OLBSS_SYS_ICON
jnz checkWindow
mov ax, ATTR_OL_BUTTON_IN_TITLE_BAR
call ObjVarFindData
jnc done
checkWindow:
; Check with parent to see if this button indeed needs to have
; a rounded top corner. Look up the vis tree till we find on
; object of class OLWinClass
; visual tree until we find an object of class OLWinClass.
mov cx, es
mov dx, offset OLWinClass
; *ds:si points to self
mov ax, MSG_VIS_VUP_FIND_OBJECT_OF_CLASS
call ObjCallInstanceNoLock ; Destroys: ax, bp
jnc setNoRoundedTopCorner ; no object of such class
; ^lcx:dx = object ptr for parent of correct class
mov di, ds:[si]
add di, ds:[di].Vis_offset
push si ; preserve handle to self
mov bx, cx
mov si, dx
mov cx, ds:[di].VI_bounds.R_left
mov dx, ds:[di].VI_bounds.R_right
cmp cx, dx
je setNoRoundedTopCornerPopSi ; no width, no rounded corner
; bx:si points to parent of class OLWinClass
mov di, mask MF_CALL or mask MF_FIXUP_DS
mov ax, MSG_OL_WIN_SHOULD_TITLE_BUTTON_HAVE_ROUNDED_CORNER
call ObjMessage ; Destroys: ax?, cx, dx, bp
pop si ; handle to self
jnc setNoRoundedTopCorner ; Doesn't need rounded corner
; Should have a rounded corner!
mov di, ds:[si]
add di, ds:[di].Vis_offset
ornf ds:[di].OLBI_optFlags, mask OLBOF_HAS_ROUNDED_TOP_CORNER
tst ax
jz done ; right corner, done.
mov ax, ATTR_OL_BUTTON_ROUNDED_TOP_LEFT_CORNER
clr cx ; no data
call ObjVarAddData
done:
; Call superclass
pop bp ; restore arg for superclass
mov ax, MSG_VIS_OPEN
mov di, offset OLButtonClass
GOTO ObjCallSuperNoLock ; <= RETURN
setNoRoundedTopCornerPopSi:
pop si ; jumped before we could pop
; Set the no rounded top corner attribute, and then exit.
setNoRoundedTopCorner:
mov ax, ATTR_OL_BUTTON_NO_ROUNDED_TOP_CORNER
clr cx ; no data
call ObjVarAddData
jmp done
OLButtonVisOpen endm
endif ;_ROUND_THICK_DIALOGS
ButtonCommon ends
ButtonCommon segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonReleaseMouseGrab
DESCRIPTION: This procedure makes sure that this button has
released the mouse grab (exclusive).
CALLED BY: OLMenuButtonHandleDefaultFunction
OLButtonMouse
PASS: *ds:si = instance data for object
RETURN: ds, si, di, cx, dx, bp = same
carry set if did release mouse grab
DESTROYED:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonReleaseMouseGrab proc far
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_specState, mask OLBSS_HAS_MOUSE_GRAB
jz done ;skip if not (cy=0)...
ANDNF ds:[di].OLBI_specState, not mask OLBSS_HAS_MOUSE_GRAB
push di
call VisReleaseMouse ;Release the mouse grab
pop di
stc ;return flag: did release mouse
done:
ret
OLButtonReleaseMouseGrab endp
ButtonCommon ends
ButtonCommon segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLButtonReleaseDefaultExclusive
DESCRIPTION: This procedure releases the default exclusive for this
button. The window will send a method to itself on the
queue, so that if no other button grabs the default exclusive
IMMEDIATELY, the master default for the window will grab it.
PASS: *ds:si - instance data
es - segment of MetaClass
RETURN: nothing
DESTROYED:
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 Initial version
------------------------------------------------------------------------------@
OLButtonReleaseDefaultExclusive proc far
;if this GenTrigger is not marked as the DEFAULT trigger,
;and is not destructive, release the teporary default exclusive
;we have been granted. Master Default MUST NOT do this.
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].OLBI_fixedAttrs, mask OLBFA_CAN_BE_TEMP_DEFAULT_TRIGGER
jz 90$ ;skip if destructive...
test ds:[di].OLBI_specState, mask OLBSS_IN_MENU or \
mask OLBSS_IN_MENU_BAR
jnz 90$ ;skip if default or nasty...
mov ax, MSG_VIS_VUP_QUERY
mov cx, SVQT_RELEASE_DEFAULT_EXCLUSIVE
mov bp, ds:[LMBH_handle] ;pass ^lbp:dx = this object
mov dx, si
call CallOLWin ; call OLWinClass object above us
90$:
ret
OLButtonReleaseDefaultExclusive endp
ButtonCommon ends
ButtonCommon segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonReleaseAllGrabs
DESCRIPTION: Intercept this method here to ensure that this button
has released any grabs it may have.
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonReleaseAllGrabs proc far
; Release Mouse, Default, & Focus exlcusives, if we have them.
;
call OLButtonReleaseMouseGrab
call OLButtonReleaseDefaultExclusive
call MetaReleaseFocusExclLow
ret
OLButtonReleaseAllGrabs endp
if _HAS_LEGOS_LOOKS
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLBSpecSetLegosLook
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set the hints on a button according to the legos look
requested, after removing the hints for its previous look.
These hints are stored in tables that each different SpecUI
will change according to the legos looks they support.
CALLED BY: MSG_SPEC_SET_LEGOS_LOOK
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
cl = legos look
RETURN: carry = set if the look was invalid (new look not set)
= clear if the look was valid (new look set)
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
dlitwin 10/10/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLBSpecSetLegosLook method dynamic OLButtonClass,
MSG_SPEC_SET_LEGOS_LOOK
uses ax, cx
.enter
;
; Legos users pass in 0 as the base, we really want
; this to map to the a hint, so we up it to 1.
; We will dec it when in SPEC_GET_LEGOS_LOOK
inc cl
clr bx
mov bl, ds:[di].OLBI_legosLook
cmp bx, LAST_LEGOS_BUTTON_LOOK
jbe validExistingLook
clr bx ; make the look valid if it wasn't
EC< WARNING WARNING_INVALID_LEGOS_LOOK >
validExistingLook:
clr ch
cmp cx, LAST_LEGOS_BUTTON_LOOK
ja invalidNewLook
mov ds:[di].OLBI_legosLook, cl
;
; remove hint from old look
;
shl bx ; byte value to word table offset
mov ax, cs:[legosButtonLookHintTable][bx]
tst ax
jz noHintToRemove
call ObjVarDeleteData
;
; add hints for new look
;
noHintToRemove:
mov bx, cx
shl bx ; byte value to word table offset
mov ax, cs:[legosButtonLookHintTable][bx]
tst ax
jz noHintToAdd
clr cx
call ObjVarAddData
noHintToAdd:
clc
done:
.leave
ret
invalidNewLook:
stc
jmp done
OLBSpecSetLegosLook endm
;
; Make sure this table matches that in copenButtonCommon.asm. The
; only reason the table is in two places it is that I don't want
; to be bringing in the ButtonCommon resource at build time, and it
; is really a small table.
; Make sure any changes in either table are reflected in the other
;
legosButtonLookHintTable label word
word 0 ; standard button has no special hint.
LAST_LEGOS_BUTTON_LOOK equ ((($ - legosButtonLookHintTable)/(size word)) - 1)
CheckHack<LAST_LEGOS_BUTTON_LOOK eq LAST_BUILD_LEGOS_BUTTON_LOOK>
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLBSpecGetLegosLook
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the legos look of an object
CALLED BY: MSG_SPEC_GET_LEGOS_LOOK
PASS: *ds:si = OLButtonClass object
ds:di = OLButtonClass instance data
RETURN: cl = legos look
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
dlitwin 10/11/95 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OLBSpecGetLegosLook method dynamic OLButtonClass,
MSG_SPEC_GET_LEGOS_LOOK
.enter
mov cl, ds:[di].OLBI_legosLook
;
; We inc'd it in set.
dec cl
.leave
ret
OLBSpecGetLegosLook endm
endif ; endif of _HAS_LEGOS_LOOKS
ButtonCommon ends
GadgetCommon segment resource
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonSetDrawStateUnknown --
MSG_OL_BUTTON_SET_DRAW_STATE_UNKNOWN
DESCRIPTION: This procedure marks the button as invalid so that next
time it is drawn, no optimizations are attempted.
PASS: *ds:si = instance data for object
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/90 initial version
------------------------------------------------------------------------------@
OLButtonSetDrawStateUnknown method dynamic OLButtonClass, \
MSG_OL_BUTTON_SET_DRAW_STATE_UNKNOWN
ANDNF ds:[di].OLBI_optFlags, not (mask OLBOF_DRAW_STATE_KNOWN)
ret
OLButtonSetDrawStateUnknown endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonSetBordered
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Makes the button bordered/unbordered. This makes it
possible for popup menus to broadcast a notification to
all its button children to draw their borders when the
window is pinned.
CALLED BY: MSG_OL_BUTTON_SET_BORDERED
PASS: *ds:si = instance data for object
cx = TRUE to make the button bordered, FALSE to not
RETURN: *ds:si = same
DESTROYED: ax, bx, cx, dx, bp, es, di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Clayton 8/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
if _OL_STYLE ;---------------------------------------------------------------
OLButtonSetBordered method dynamic OLButtonClass, \
MSG_OL_BUTTON_SET_BORDERED
ANDNF ds:[di].OLBI_specState, not (mask OLBSS_BORDERED)
cmp cx, FALSE
je 10$
ORNF ds:[di].OLBI_specState, mask OLBSS_BORDERED
10$:
mov cl, mask VOF_GEOMETRY_INVALID
mov dl, VUM_MANUAL
call VisMarkInvalid
clc ;keeps VisIfFlagSetCallVisChildren quick
ret
OLButtonSetBordered endp
endif ;---------------------------------------------------------------
COMMENT @----------------------------------------------------------------------
FUNCTION: OLButtonGetGenPart -- MSG_OL_BUTTON_GET_GEN_PART for
OLButtonClass
DESCRIPTION: This procedure returns the OD of the generic object which
is associated with this button. For simple GenTriggers,
the generic object is the button itself. For others,
the generic object might be a GenInteraction or GenDisplay
which has the moniker for the button.
PASS: ds:*si - instance data
RETURN: ^lcx:dx - OD of generic object
DESTROYED: di
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/89 initial version
------------------------------------------------------------------------------@
OLButtonGetGenPart method OLButtonClass, MSG_OL_BUTTON_GET_GEN_PART
mov di, ds:[si]
add di, ds:[di].Vis_offset
mov cx, ds:[LMBH_handle]
mov dx, ds:[di].OLBI_genChunk ; get chunk holding gen data
ret
OLButtonGetGenPart endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OLButtonChange --
MSG_SPEC_CHANGE for OLButtonClass
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: Does a "change" for this button.
PASS: *ds:si - instance data
es - segment of OLButtonClass
ax - MSG_SPEC_CHANGE
RETURN: nothing
ax, cx, dx, bp - destroyed
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 12/ 1/94 Initial Version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GadgetCommon ends
| 27.028775 | 86 | 0.649217 |
75d1d15aaf5343983bca4823da379a03610abab2 | 518 | asm | Assembly | oeis/037/A037634.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/037/A037634.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/037/A037634.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A037634: Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,3.
; Submitted by Jamie Morken(s2)
; 2,13,81,488,2929,17577,105464,632785,3796713,22780280,136681681,820090089,4920540536,29523243217,177139459305,1062836755832,6377020534993,38262123209961,229572739259768,1377436435558609
mov $2,$0
add $2,1
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$2
add $0,7
mod $0,3
add $0,3
mul $1,6
mov $3,6
sub $3,$0
mul $3,$0
div $3,3
add $1,$3
lpe
mov $0,$1
| 22.521739 | 187 | 0.694981 |
ce42d3deabfc08a90954b80ebd956e665da84fc8 | 1,309 | asm | Assembly | unittests/ASM/X87_F64/D9_F7_F64.asm | Seas0/FEX | 4f4263263b560b0a25e0d48555d5b99ca12c938f | [
"MIT"
] | null | null | null | unittests/ASM/X87_F64/D9_F7_F64.asm | Seas0/FEX | 4f4263263b560b0a25e0d48555d5b99ca12c938f | [
"MIT"
] | null | null | null | unittests/ASM/X87_F64/D9_F7_F64.asm | Seas0/FEX | 4f4263263b560b0a25e0d48555d5b99ca12c938f | [
"MIT"
] | null | null | null | %ifdef CONFIG
{
"RegData": {
"RAX": "0x4060000000000000",
"RBX": "0x4050000000000000",
"RCX": "0x4040000000000000",
"RDX": "0x4030000000000000",
"R8": "0x4020000000000000",
"R9": "0x4000000000000000",
"R10": "0x3ff0000000000000",
"R11": "0x4070000000000000"
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3ff0000000000000 ; 1.0
mov [rdx + 8 * 0], rax
mov rax, 0x4000000000000000 ; 2.0
mov [rdx + 8 * 1], rax
mov rax, 0x4020000000000000 ; 4.0
mov [rdx + 8 * 2], rax
mov rax, 0x4030000000000000
mov [rdx + 8 * 3], rax
mov rax, 0x4040000000000000
mov [rdx + 8 * 4], rax
mov rax, 0x4050000000000000
mov [rdx + 8 * 5], rax
mov rax, 0x4060000000000000
mov [rdx + 8 * 6], rax
mov rax, 0x4070000000000000
mov [rdx + 8 * 7], rax
fld qword [rdx + 8 * 0]
fld qword [rdx + 8 * 1]
fld qword [rdx + 8 * 2]
fld qword [rdx + 8 * 3]
fld qword [rdx + 8 * 4]
fld qword [rdx + 8 * 5]
fld qword [rdx + 8 * 6]
fld qword [rdx + 8 * 7]
fincstp
; dump stack to registers
mov r12, 0xe0000000
fstp qword [r12]
mov rax, [r12]
fstp qword [r12]
mov rbx, [r12]
fstp qword [r12]
mov rcx, [r12]
fstp qword [r12]
mov rdx, [r12]
fstp qword [r12]
mov r8, [r12]
fstp qword [r12]
mov r9, [r12]
fstp qword [r12]
mov r10, [r12]
fstp qword [r12]
mov r11, [r12]
hlt
| 19.833333 | 44 | 0.637128 |
3e2caff3fe8ec440a38710407525e7c50ca8306a | 7,651 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1391.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1391.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_1391.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 %r14
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x695e, %r12
nop
nop
nop
sub $55605, %r14
movups (%r12), %xmm7
vpextrq $0, %xmm7, %rax
nop
nop
sub $59493, %r12
lea addresses_D_ht+0x2b5e, %rcx
nop
inc %r11
mov $0x6162636465666768, %rbx
movq %rbx, (%rcx)
nop
nop
nop
nop
xor $47049, %r12
lea addresses_WC_ht+0xabde, %rsi
lea addresses_UC_ht+0x13e0e, %rdi
lfence
mov $25, %rcx
rep movsl
nop
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_D_ht+0x25c2, %rcx
nop
nop
nop
nop
nop
cmp $7463, %r11
vmovups (%rcx), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %rsi
nop
nop
xor %r11, %r11
lea addresses_D_ht+0x1795e, %r12
clflush (%r12)
nop
nop
nop
add $8999, %r11
mov (%r12), %rsi
nop
nop
nop
nop
nop
sub %rbx, %rbx
lea addresses_WT_ht+0x2aae, %r11
nop
nop
nop
nop
nop
add $7340, %rax
and $0xffffffffffffffc0, %r11
movaps (%r11), %xmm3
vpextrq $1, %xmm3, %r14
nop
nop
and $10527, %r14
lea addresses_UC_ht+0x226, %rax
clflush (%rax)
nop
cmp %rsi, %rsi
and $0xffffffffffffffc0, %rax
movntdqa (%rax), %xmm1
vpextrq $0, %xmm1, %rdi
dec %rbx
lea addresses_WT_ht+0xcf1e, %rcx
nop
nop
nop
and %rsi, %rsi
mov $0x6162636465666768, %r12
movq %r12, %xmm5
vmovups %ymm5, (%rcx)
dec %rbx
lea addresses_UC_ht+0x8f5e, %r14
nop
nop
xor %rcx, %rcx
and $0xffffffffffffffc0, %r14
movntdqa (%r14), %xmm3
vpextrq $0, %xmm3, %rsi
nop
nop
nop
cmp %r11, %r11
lea addresses_A_ht+0x4a5e, %rsi
lea addresses_UC_ht+0x755e, %rdi
nop
nop
and $1262, %rbx
mov $87, %rcx
rep movsq
nop
nop
nop
dec %rax
lea addresses_UC_ht+0x1c860, %rsi
lea addresses_A_ht+0x4dde, %rdi
nop
nop
xor $26381, %r14
mov $91, %rcx
rep movsl
nop
sub $60788, %rsi
lea addresses_UC_ht+0x14488, %rsi
lea addresses_WC_ht+0x1885e, %rdi
nop
nop
nop
nop
xor %r11, %r11
mov $120, %rcx
rep movsl
nop
nop
nop
nop
nop
and %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r14
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
// Store
lea addresses_A+0xab1e, %rbx
nop
nop
and $24036, %r14
movb $0x51, (%rbx)
nop
nop
add $20964, %rbp
// Store
lea addresses_PSE+0x4b5e, %rbx
nop
nop
nop
xor $36472, %rcx
movl $0x51525354, (%rbx)
nop
nop
nop
add $48571, %r14
// Faulty Load
lea addresses_A+0x1a55e, %r14
sub $50301, %r8
mov (%r14), %di
lea oracles, %rbx
and $0xff, %rdi
shlq $12, %rdi
mov (%rbx,%rdi,1), %rdi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': True, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 9}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': True, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': True, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 8}}
{'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
*/
| 33.704846 | 2,999 | 0.6573 |
d5b2e9d39f2cee1d081212853a4f77076d91006e | 2,155 | asm | Assembly | project 08/FunctionCalls/FibonacciElement/compare.asm | jack-zheng/nand2tetris | b783b69e7a1740b3ec2f436f6785646e0f677dd4 | [
"MIT"
] | null | null | null | project 08/FunctionCalls/FibonacciElement/compare.asm | jack-zheng/nand2tetris | b783b69e7a1740b3ec2f436f6785646e0f677dd4 | [
"MIT"
] | null | null | null | project 08/FunctionCalls/FibonacciElement/compare.asm | jack-zheng/nand2tetris | b783b69e7a1740b3ec2f436f6785646e0f677dd4 | [
"MIT"
] | null | null | null | @256
D=A
@SP
M=D
@RETURN_LABEL0
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@0
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Sys.init
0;JMP
(RETURN_LABEL0)
(Main.fibonacci)
@ARG
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@2
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
AM=M-1
D=M
A=A-1
D=M-D
@FALSE0
D;JGE
@SP
A=M-1
M=-1
@CONTINUE0
0;JMP
(FALSE0)
@SP
A=M-1
M=0
(CONTINUE0)
@SP
AM=M-1
D=M
A=A-1
@IF_TRUE
D;JNE
@IF_FALSE
0;JMP
(IF_TRUE)
@ARG
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@FRAME
M=D
@5
A=D-A
D=M
@RET
M=D
@ARG
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG
D=M
@SP
M=D+1
@FRAME
D=M-1
AM=D
D=M
@THAT
M=D
@FRAME
D=M-1
AM=D
D=M
@THIS
M=D
@FRAME
D=M-1
AM=D
D=M
@ARG
M=D
@FRAME
D=M-1
AM=D
D=M
@LCL
M=D
@RET
A=M
0;JMP
(IF_FALSE)
@ARG
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@2
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
AM=M-1
D=M
A=A-1
M=M-D
@RETURN_LABEL1
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Main.fibonacci
0;JMP
(RETURN_LABEL1)
@ARG
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
AM=M-1
D=M
A=A-1
M=M-D
@RETURN_LABEL2
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Main.fibonacci
0;JMP
(RETURN_LABEL2)
@SP
AM=M-1
D=M
A=A-1
M=M+D
@LCL
D=M
@FRAME
M=D
@5
A=D-A
D=M
@RET
M=D
@ARG
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG
D=M
@SP
M=D+1
@FRAME
D=M-1
AM=D
D=M
@THAT
M=D
@FRAME
D=M-1
AM=D
D=M
@THIS
M=D
@FRAME
D=M-1
AM=D
D=M
@ARG
M=D
@FRAME
D=M-1
AM=D
D=M
@LCL
M=D
@RET
A=M
0;JMP
(Sys.init)
@4
D=A
@SP
A=M
M=D
@SP
M=M+1
@RETURN_LABEL3
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Main.fibonacci
0;JMP
(RETURN_LABEL3)
(WHILE)
@WHILE
0;JMP | 5.094563 | 16 | 0.566125 |
5e91296db8506f9600c39bc4d33a28b4067a55e4 | 7,883 | asm | Assembly | Transynther/x86/_processed/NONE/_ht_zr_/i9-9900K_12_0xca.log_21829_1495.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_ht_zr_/i9-9900K_12_0xca.log_21829_1495.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_ht_zr_/i9-9900K_12_0xca.log_21829_1495.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 %r14
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1275, %r11
nop
cmp $6791, %r14
movw $0x6162, (%r11)
nop
nop
nop
nop
dec %rdx
lea addresses_normal_ht+0x7b35, %rdi
nop
and $36461, %r10
movups (%rdi), %xmm3
vpextrq $0, %xmm3, %r13
nop
nop
nop
sub %r10, %r10
lea addresses_D_ht+0x6775, %rsi
lea addresses_normal_ht+0x14735, %rdi
cmp %rbx, %rbx
mov $71, %rcx
rep movsw
nop
nop
nop
sub $16165, %r11
lea addresses_UC_ht+0x5a1d, %r11
nop
nop
nop
nop
nop
cmp $20861, %rcx
movb (%r11), %dl
nop
cmp %r14, %r14
lea addresses_normal_ht+0x1c007, %r10
nop
nop
nop
and %r11, %r11
mov (%r10), %ebx
nop
nop
nop
sub %r11, %r11
lea addresses_UC_ht+0xe095, %rbx
xor $29279, %r13
vmovups (%rbx), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $1, %xmm6, %r11
sub $41106, %rcx
lea addresses_D_ht+0x12dcd, %rbx
nop
nop
nop
nop
nop
cmp %rsi, %rsi
movw $0x6162, (%rbx)
nop
nop
nop
nop
nop
add %rdx, %rdx
lea addresses_UC_ht+0xf8b5, %rsi
nop
nop
nop
nop
nop
cmp $23455, %rdx
vmovups (%rsi), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r13
nop
nop
nop
nop
nop
cmp $47893, %rbx
lea addresses_UC_ht+0x1be35, %rcx
cmp %rbx, %rbx
movb $0x61, (%rcx)
nop
nop
nop
nop
add %r13, %r13
lea addresses_WC_ht+0xe135, %rsi
lea addresses_D_ht+0x16735, %rdi
nop
nop
nop
xor %r11, %r11
mov $74, %rcx
rep movsw
nop
nop
nop
inc %r13
lea addresses_UC_ht+0xf925, %r13
nop
add %r10, %r10
movb (%r13), %cl
nop
nop
nop
and $9440, %rdi
lea addresses_D_ht+0x1335, %rsi
add $2440, %rdi
movups (%rsi), %xmm6
vpextrq $0, %xmm6, %r13
nop
nop
nop
nop
sub $42341, %r14
lea addresses_normal_ht+0x4f35, %rsi
lea addresses_UC_ht+0xca05, %rdi
nop
nop
nop
sub %rdx, %rdx
mov $75, %rcx
rep movsw
nop
nop
xor %rbx, %rbx
lea addresses_D_ht+0x8905, %rsi
nop
nop
nop
nop
nop
cmp $58493, %rdx
and $0xffffffffffffffc0, %rsi
vmovntdqa (%rsi), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %rbx
sub %rdx, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %rax
push %rdi
push %rdx
// Store
lea addresses_D+0x18f35, %rdi
nop
nop
nop
nop
and $55114, %r15
mov $0x5152535455565758, %r11
movq %r11, (%rdi)
nop
nop
nop
nop
add %rdi, %rdi
// Faulty Load
lea addresses_A+0xc735, %r10
nop
nop
nop
nop
nop
xor %rdi, %rdi
movups (%r10), %xmm7
vpextrq $1, %xmm7, %r15
lea oracles, %rdi
and $0xff, %r15
shlq $12, %r15
mov (%rdi,%r15,1), %r15
pop %rdx
pop %rdi
pop %rax
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 8}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': True, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 4}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'44': 14996, '48': 1962, '00': 666, '46': 3915, '47': 290}
44 44 46 46 00 44 44 44 46 44 48 44 44 44 44 44 46 44 44 48 44 46 44 46 44 44 44 48 44 44 44 47 46 46 44 44 44 48 44 44 44 44 46 44 44 44 44 44 44 48 44 46 44 00 44 44 44 44 48 44 46 44 48 44 00 44 46 44 44 00 44 46 44 48 44 44 44 44 44 48 46 44 44 44 46 44 44 48 44 44 44 44 44 44 44 48 44 44 44 44 46 44 44 44 44 46 44 48 44 44 44 44 48 44 46 44 46 44 44 48 46 44 44 48 44 44 44 44 44 46 44 46 44 46 44 44 44 48 44 47 44 44 44 44 46 44 46 44 48 44 44 44 48 44 44 44 44 46 44 48 44 44 46 44 44 44 44 46 48 46 44 44 48 44 48 44 44 00 44 44 44 44 44 46 44 00 44 44 44 48 44 44 44 44 44 44 48 44 44 44 44 44 44 44 44 46 44 46 44 46 44 47 46 48 44 44 44 44 44 44 44 44 44 44 00 44 44 44 44 46 44 44 44 44 00 44 48 44 44 44 44 46 44 46 44 46 44 44 44 44 44 44 44 44 48 44 46 48 44 44 44 48 44 44 44 44 46 44 46 44 44 44 00 44 44 44 44 44 48 44 46 44 48 44 44 44 44 44 46 44 46 44 44 46 44 44 44 44 44 47 46 44 44 44 44 46 44 46 44 44 44 00 44 44 00 44 44 44 46 44 44 44 44 46 44 44 48 44 46 44 48 44 44 44 46 44 44 44 44 44 44 48 44 46 44 48 44 47 46 47 46 44 44 44 44 44 44 44 44 44 44 44 44 44 48 44 46 44 46 44 44 44 48 46 44 44 00 44 46 44 44 44 48 44 44 48 44 48 44 44 44 44 46 44 46 44 46 44 44 48 44 44 44 44 44 44 44 44 44 44 44 44 46 44 46 44 46 44 44 44 46 44 44 44 44 44 44 46 44 46 44 46 44 44 46 44 44 44 44 48 44 44 44 00 44 44 44 44 48 44 44 48 44 44 44 48 44 48 44 44 44 46 44 48 44 46 44 44 44 44 44 46 44 46 44 44 46 44 44 44 44 44 44 44 48 44 44 44 44 44 46 44 46 44 46 44 44 44 48 44 46 44 44 44 44 48 44 44 48 44 48 44 46 44 48 44 44 44 48 44 44 44 44 44 44 44 44 44 44 48 44 46 44 44 44 46 44 46 44 46 44 44 44 44 46 44 46 44 44 44 44 44 44 44 44 48 44 44 48 44 46 44 46 44 44 48 44 44 44 48 44 46 44 44 44 46 44 46 44 46 44 44 48 44 48 44 44 44 44 48 44 48 44 44 44 44 44 44 44 48 44 46 44 44 44 48 44 46 44 46 44 44 44 00 44 46 44 44 46 44 44 44 44 44 44 44 48 44 46 44 48 44 46 44 48 44 44 44 44 00 46 44 46 44 46 44 46 44 44 44 48 46 44 44 44 44 44 48 44 44 44 48 44 44 46 44 46 44 46 44 46 44 44 44 44 44 44 44 48 44 44 44 44 44 46 44 46 44 46 44 44 48 44 44 44 44 44 44 44 48 44 46 44 44 00 44 46 44 48 44 44 44 44 46 44 46 44 44 44 47 46 47 44 44 48 44 44 44 44 00 46 44 48 44 48 44 44 44 44 44 48 44 44 48 44 44 48 44 00 46 44 46 44 46 44 46 44 44 44 44 44 00 44 46 44 44 44 46 44 44 44 44 44 44 46 44 46 44 44 46 44 48 44 44 44 00 44 44 00 46 44 46 44 44 44 44 44 44 48 44 44 44 44 44 46 44 46 44 46 44 46 44 44 46 44 44 44 48 44 44 44 44 48 44 48 44 44 46 44 44 44 44 48 44 44 44 44 44 44 44 48 44 46 44 48 44 47 46 46 44 44 48 44 44 44 44 44 46 44 44 44 44 44 44 48 44 44 44 00 44 44 44 46 44 46 44 46 44 44 44 44 44 46 44 44 48 44 46 44 46 44 46 44 46 44 44 46 44 44 48 44 46 44 44 44 44 44 44 46 44 46 44 46 44 44 44 44 44 44 44 44 44 44 48 46 44 48 44 00 44 44 48 44 46 44 48 44 44 44 44 44 44 44 44 44 44 44 48 44 46 44 44 46 44 44 44 44 44 44 48 44 44 44 44 48 44 48 44 44 44 44 44 44 44 48 44 46 44 44 46 44 46 44 44 44 44 44 46 44 48 44 44 44 44 48 44 46 44 46 44
*/
| 33.261603 | 2,999 | 0.6547 |
bbb6ab2a4f4253d54a3743fc35da77c0ae8d561b | 2,145 | asm | Assembly | programs/oeis/191/A191821.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/191/A191821.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/191/A191821.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A191821: a(n) = n*(2^n - n + 1) + 2^(n-1)*(n^2 - 3*n + 2).
; 2,6,26,100,332,994,2774,7368,18872,47014,114578,274300,647012,1507146,3473198,7929616,17956592,40369870,90177194,200277636,442498652,973078066,2130705926,4647288280,10099883432,21877489014,47244639554,101737037068,218506460372,468151434394,1000727379038,2134598745120,4544075398112,9655086480286,20478404066138,43361989819156,91671781964492,193514046487170,407918813903414,858718581291496,1805398092806552,3791116092569926,7951668092074226,16659800184060060,34867712740030532,72902018968057834,152277962400462734,317785248706328368,662592095176881872,1380353285789054574,2873296562262373898,5976276705520645540,12420927772287825212,25796618665578198226,53538792370180453478,111040752412446946296,230151955357141824392,476733042154931221270,986900807943461008034,2041823984658725990956,4221998549870273622452,8725309946864617910586,18022468960014231924926,37207082796672165605440,76775348834779153821632,158346851128722791067454,326433583128364225392314,672642075903745090121268,1385424266911882164563372,2852309355653265709067554,5869901538206969000619158,12075091096697682811415560,24830202966928594533608312,51039336946855125469620966,104874314851569080905755218,215415469482581736067951036,442315734251502449295616292,907903290530586510204332170,1862954688026143558222211054,3821414515801842821246216016,7836257162742026310445426352,16064206291039192473495660046,32921467919745581685598578026,67448389327939390915206964420,138146371259002905052024136732,282869298976709392814449877874,579046453375736623584065348294,1185018102605930268147186655768,2424505566940417268389934784872,4959187797377233381245891633334,10141204801825835211973625634818,20733019777951548844010532495180,42377163424817137570346820427412,86596381628090920989743537708506,176916486894352265846383641091358,361359649227559643764153957473376,737931105657858040346268353420192,1506602738371250643678831759579870,3075320356153684528031001976232474,6276138121729963766810177569806676
lpb $0
add $1,161
mul $1,2
add $2,$0
sub $0,1
lpe
mov $0,$2
mul $0,$1
add $1,$0
div $1,322
mul $1,2
add $1,2
mov $0,$1
| 126.176471 | 1,955 | 0.905361 |
e4696c7dab185cf54e081156a267557a7aa61726 | 1,707 | asm | Assembly | programs/oeis/282/A282613.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/282/A282613.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/282/A282613.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A282613: Number of inequivalent 3 X 3 matrices with entries in {1,2,3,..,n} up to rotations.
; 0,1,140,4995,65824,489125,2521476,10092775,33562880,96870249,250025500,589527851,1290008160,2651218765,5165397524,9611031375,17180133376,29647326545,49590297900,80672546899,128000804000,198571037301,301818598180,450289780535,660453882624,953676765625,1357378898876,1906402968315,2644618301920,3626791633949,4920756088500,6609912712351,8796101427200,11602880902305,15179259570124,19703922819875,25390004306976,32490452310085,41304045151940,52182112875399,65536025632000,81845512597001,101667878672220,125648189776075,154530501149024,189170206822125,230547592206676,279782675663855,338151428904960,407103470155249,488281328187500,583541379595251,694976566030240,824941002573845,976076592948324,1151341771900375,1354042499806976,1587865639361625,1856914849097980,2165749133497499,2519424194508000,2923536734471101,3384271865718260,3908453787447615,4503599895937024,5177978499682625,5940670316676876,6801633936755395,7771775437748000,8863022350066149,10088402170346500,11462125630848551,12999674937473280,14717897195529385,16635103248724124,18771172163296875,21147661595745376,23787924289217165,26717230950352020,29962899765165199,33554432819456000,37523659696211601,41904888529552300,46735064801931155,52053938178558624,57904237680371125,64331855504301476,71386039807138935,79119596776887040,87589102323238649,96855123726589500,106982451592904251,118040342469732320,130102772486744925,143248702392329524,157562354366033375,173133500994994176,190057766810932705,208436942792810060,228379314248870499
mov $1,$0
pow $0,2
mul $1,2
mul $1,$0
add $0,5
div $1,2
mov $2,$1
pow $1,2
add $0,$1
sub $0,3
mul $0,$2
div $0,4
| 106.6875 | 1,497 | 0.892794 |
f801bf55e7913829c85dfca8d1dfac4949f16ab8 | 37 | asm | Assembly | experiments/litmus/amd/3/thread.1.asm | phlo/concubine | 2a3bc9474878951aef54e8c7b6c47c5b4ac02fb1 | [
"MIT"
] | null | null | null | experiments/litmus/amd/3/thread.1.asm | phlo/concubine | 2a3bc9474878951aef54e8c7b6c47c5b4ac02fb1 | [
"MIT"
] | null | null | null | experiments/litmus/amd/3/thread.1.asm | phlo/concubine | 2a3bc9474878951aef54e8c7b6c47c5b4ac02fb1 | [
"MIT"
] | null | null | null | ADDI 1
STORE 1
ADDI 1
STORE 1
LOAD 0
| 6.166667 | 7 | 0.72973 |
fc07accf63b9e04fb0dc48392d1cb00bd3771f76 | 431 | asm | Assembly | programs/oeis/288/A288383.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/288/A288383.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/288/A288383.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A288383: Positions of 1 in A288381; complement of A288382.
; 4,6,7,9,10,11,12,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109
mov $1,$0
add $1,1
lpb $1
add $0,1
div $1,2
lpe
add $0,3
| 39.181818 | 307 | 0.661253 |
abdcbb831e85b834cfd8a464bd97fc8160506db2 | 963 | asm | Assembly | programs/oeis/001/A001091.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/001/A001091.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/001/A001091.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A001091: a(n) = 8*a(n-1) - a(n-2); a(0) = 1, a(1) = 4.
; 1,4,31,244,1921,15124,119071,937444,7380481,58106404,457470751,3601659604,28355806081,223244789044,1757602506271,13837575261124,108942999582721,857706421400644,6752708371622431,53163960551578804,418558976041008001,3295307847776485204,25943903806170873631,204255922601590503844,1608103477006553157121,12660571893450834753124,99676471670600124867871,784751201471350164189844,6178333140100201188650881,48641913919330259345017204,382956978214541873571486751,3015013911797004729226876804,23737154316161495960243527681,186882220617494962952721344644,1471320610623798207661527229471,11583682664372890698339496491124,91198140704359327379054444699521,718001442970501728334096061105044,5652813403059654499293714044140831,44504505781506734266015616292021604,350383232848994219628831216292032001
mov $1,2
mov $2,1
lpb $0
sub $0,1
add $2,$1
add $1,$2
add $1,$2
add $2,$1
add $2,$1
lpe
div $1,2
mov $0,$1
| 60.1875 | 785 | 0.853583 |
f154a97f10605a1a096456365ff9c9640c88a40c | 1,101 | asm | Assembly | data/pokemon/base_stats/azelf.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/base_stats/azelf.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/base_stats/azelf.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 2 | 2021-08-11T19:47:07.000Z | 2022-01-01T07:07:56.000Z | db 0 ; species ID placeholder
db 75, 125, 70, 115, 125, 70
; hp atk def spd sat sdf
db PSYCHIC, PSYCHIC ; type
db 3 ; catch rate
db 255 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_UNKNOWN ; gender ratio
db 80 ; step cycles to hatch
INCBIN "gfx/pokemon/azelf/front.dimensions"
db GROWTH_SLOW ; growth rate
dn EGG_NONE, EGG_NONE ; egg groups
db 140 ; happiness
; tm/hm learnset
tmhm WATER_PULSE, CALM_MIND, TOXIC, HIDDEN_POWER, SUNNY_DAY, TAUNT, HYPER_BEAM, LIGHT_SCREEN, PROTECT, RAIN_DANCE, SAFEGUARD, FRUSTRATION, IRON_TAIL, THUNDERBOLT, THUNDER, RETURN, PSYCHIC_M, SHADOW_BALL, DOUBLE_TEAM, REFLECT, SHOCK_WAVE, FLAMETHROWER, SANDSTORM, FIRE_BLAST, TORMENT, FACADE, SECRET_POWER, REST, SKILL_SWAP, ENERGY_BALL, FLING, CHARGE_BEAM, ENDURE, EXPLOSION, PAYBACK, RECYCLE, GIGA_IMPACT, FLASH, THUNDER_WAVE, STEALTH_ROCK, PSYCH_UP, SLEEP_TALK, NATURAL_GIFT, DREAM_EATER, GRASS_KNOT, SWAGGER, U_TURN, SUBSTITUTE, TRICK_ROOM, FIRE_PUNCH, HELPING_HAND, ICE_PUNCH, KNOCK_OFF, LAST_RESORT, MUD_SLAP, SIGNAL_BEAM, SNORE, SWIFT, THUNDERPUNCH, TRICK, UPROAR, ZEN_HEADBUTT
; end
| 55.05 | 685 | 0.767484 |
a3d9d879fac01caca9c2629b955043d1f3258e8c | 7,575 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1772.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_0xa0.log_21829_1772.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_0xa0.log_21829_1772.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x13920, %rsi
lea addresses_UC_ht+0x3920, %rdi
clflush (%rsi)
nop
nop
nop
nop
sub $27510, %r9
mov $68, %rcx
rep movsw
nop
sub $61639, %rbx
lea addresses_normal_ht+0xbda0, %r11
nop
nop
nop
add $5273, %r13
mov (%r11), %rcx
nop
nop
nop
nop
nop
and $7619, %rdi
lea addresses_A_ht+0x1c040, %rbx
nop
xor %rdi, %rdi
mov (%rbx), %r11
nop
nop
nop
nop
nop
xor $31869, %r11
lea addresses_normal_ht+0x64a0, %rcx
nop
dec %rsi
movb $0x61, (%rcx)
nop
nop
dec %rdi
lea addresses_D_ht+0x1d20, %rbx
clflush (%rbx)
sub %rdi, %rdi
movb (%rbx), %r11b
nop
nop
nop
nop
nop
and $24246, %r13
lea addresses_UC_ht+0xe920, %rsi
lea addresses_WT_ht+0x165e4, %rdi
nop
nop
cmp $30639, %rbp
mov $29, %rcx
rep movsb
and %r13, %r13
lea addresses_A_ht+0x16120, %rsi
lea addresses_UC_ht+0xbb3, %rdi
nop
nop
add %r13, %r13
mov $1, %rcx
rep movsb
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_A_ht+0x4534, %r11
nop
nop
nop
nop
nop
xor %r9, %r9
movb (%r11), %bl
nop
nop
nop
nop
nop
inc %rcx
lea addresses_A_ht+0x5d20, %rsi
lea addresses_WC_ht+0x1ef8, %rdi
clflush (%rdi)
nop
nop
nop
sub %r13, %r13
mov $18, %rcx
rep movsl
nop
xor %rcx, %rcx
lea addresses_A_ht+0x1ed20, %rsi
lea addresses_D_ht+0x1c720, %rdi
nop
nop
nop
cmp $49040, %r13
mov $100, %rcx
rep movsq
nop
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_WC_ht+0x1c960, %rdi
nop
nop
xor $41611, %rsi
movb $0x61, (%rdi)
nop
nop
and %rbp, %rbp
lea addresses_WC_ht+0x1ea5b, %rsi
lea addresses_D_ht+0x1800c, %rdi
nop
sub $57631, %rbx
mov $47, %rcx
rep movsw
nop
nop
nop
nop
nop
and %rbx, %rbx
lea addresses_WT_ht+0x1ee34, %rsi
lea addresses_UC_ht+0x1d1a0, %rdi
and $61601, %r13
mov $86, %rcx
rep movsb
nop
nop
sub $63066, %r9
lea addresses_D_ht+0x12520, %rdi
nop
nop
nop
nop
nop
xor %r9, %r9
vmovups (%rdi), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %r13
nop
nop
nop
nop
nop
sub %rbx, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %rax
push %rcx
// Faulty Load
lea addresses_US+0x4920, %rcx
xor $38730, %rax
mov (%rcx), %r12
lea oracles, %r13
and $0xff, %r12
shlq $12, %r12
mov (%r13,%r12,1), %r12
pop %rcx
pop %rax
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': True, 'congruent': 10, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'src': {'NT': False, 'same': True, 'congruent': 7, 'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 8}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': True, 'congruent': 1, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1}}
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}}
{'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}}
{'src': {'NT': False, 'same': True, 'congruent': 2, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}}
{'src': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 6, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}}
{'src': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}}
{'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'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
*/
| 34.121622 | 2,999 | 0.658218 |
aee9c5a389aee5d527cadc9a6b2942677a703e1f | 273 | asm | Assembly | programs/oeis/237/A237042.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/237/A237042.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/237/A237042.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A237042: UPC check digits.
; 7,4,1,8,5,2,9,6,3,9,6,3,0,7,4,1,8,5,2,8,5,2,9,6,3,0,7,4,1,7,4,1,8,5,2,9,6,3,0,6,3,0,7,4,1,8,5,2,9,5,2,9,6,3,0,7,4,1,8,4,1,8,5,2,9,6,3,0,7,3,0,7,4,1,8,5,2,9,6,2,9,6,3,0,7,4,1,8,5,1,8,5,2,9,6,3
add $0,2
mul $0,169
div $0,10
add $0,4
mod $0,10
| 30.333333 | 193 | 0.534799 |
115b30b0ad0a48dbf800c3db6d608e8bfb4d935d | 6,764 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_1072_1574.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_1072_1574.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_1072_1574.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x3e8d, %r12
nop
nop
nop
nop
nop
xor %rcx, %rcx
movups (%r12), %xmm2
vpextrq $1, %xmm2, %rbx
nop
nop
nop
sub %r14, %r14
lea addresses_normal_ht+0x1728d, %r8
nop
nop
sub %rdx, %rdx
movups (%r8), %xmm3
vpextrq $0, %xmm3, %r9
nop
nop
nop
inc %r9
lea addresses_normal_ht+0x1a54d, %r9
nop
nop
cmp $52955, %rbx
movb $0x61, (%r9)
nop
nop
nop
xor $15602, %r8
lea addresses_WC_ht+0x193ff, %rsi
lea addresses_WC_ht+0x1bb05, %rdi
inc %rbx
mov $98, %rcx
rep movsw
nop
nop
nop
and %r9, %r9
lea addresses_WC_ht+0x1b3ef, %rsi
lea addresses_A_ht+0x1e40d, %rdi
add $23095, %r12
mov $57, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x166bd, %rsi
lea addresses_normal_ht+0x16de1, %rdi
nop
nop
nop
nop
nop
xor $61444, %rdx
mov $31, %rcx
rep movsl
sub %rbx, %rbx
lea addresses_normal_ht+0x11c8d, %rbx
add $56081, %r12
mov $0x6162636465666768, %r14
movq %r14, %xmm6
movups %xmm6, (%rbx)
nop
nop
nop
nop
nop
cmp $17032, %r14
lea addresses_D_ht+0xe345, %r14
sub %rdi, %rdi
movw $0x6162, (%r14)
nop
nop
cmp $2015, %rbx
lea addresses_A_ht+0x3f5d, %r12
nop
nop
nop
inc %r9
mov (%r12), %ecx
nop
nop
nop
and $3529, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_normal+0x7a8d, %rsi
lea addresses_normal+0xa08d, %rdi
nop
nop
nop
add %r9, %r9
mov $32, %rcx
rep movsw
nop
nop
dec %rcx
// Store
lea addresses_US+0x4241, %r9
nop
nop
add $3678, %r13
movl $0x51525354, (%r9)
nop
nop
nop
nop
nop
add $28011, %r15
// Faulty Load
lea addresses_US+0x1928d, %rcx
nop
cmp $28532, %r15
movb (%rcx), %al
lea oracles, %r15
and $0xff, %rax
shlq $12, %rax
mov (%r15,%rax,1), %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}}
{'00': 1072}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 35.978723 | 2,999 | 0.658486 |
042ae12ef44b87fc4e6677e364a38197e892d176 | 55,840 | asm | Assembly | lab14/lab14.asm | Brant-Skywalker/ZJUI-ECE-120-SP21 | b8d444620f4a57766ac3f1346d7ec4608b35adbe | [
"MIT"
] | null | null | null | lab14/lab14.asm | Brant-Skywalker/ZJUI-ECE-120-SP21 | b8d444620f4a57766ac3f1346d7ec4608b35adbe | [
"MIT"
] | null | null | null | lab14/lab14.asm | Brant-Skywalker/ZJUI-ECE-120-SP21 | b8d444620f4a57766ac3f1346d7ec4608b35adbe | [
"MIT"
] | null | null | null | ; This program takes 1 ASCII value as the character to print to the monitor using a large font
; and another 2 ACSII values as input to specify the pixels in the picture of the font.
; To achieve this, this program first calculates the starting address that contains the
; first pixel in the first row of the character to be printed. Then the program go through the 16 rows
; and 8 columns of the picture, determining which pixel to use basing on the specification in FONT_DATA
; and accomplishing the task.
; R0 holds the character to be printed to the console display
; R2 is used as a counter to trace the font specification in each row
; R3 is used as a temporary counter
; R4 is used as a temporary register in multiplication and row iteration
; R5 is a working copy of R2, used to trace the font specification for individual pixels
.ORIG x3000 ; starting address is x3000
; Calculate the starting address in FONT_DATA
AND R4, R4, #0 ; Initialize the temporary register
LDI R3, CHAR
; Calculate (<ASCII of CHAR> * #16) to determine the offset
MULTIPLY
BRz SET
ADD R4, R4, #8
ADD R4, R4, #8
ADD R3, R3, #-1
BR MULTIPLY
; Set R2 as the pointer
SET LEA R2, FONT_DATA
ADD R2, R2, R4
; Initialize the Row Counter to #16 (R3)
AND R3, R3, #0
ADD R3, R3, #8
ADD R3, R3, #8
; Go through each row
NEXT_ROW
; All printed?
ADD R3, R3, #0
BRz DONE
; Initialize the Column Counter (R4)
AND R4, R4, #0
ADD R4, R4, #8
LDR R5, R2, #0 ; Load the pixel info of this row
; Process through the 8 pixels in each row
NEXT_COLUMN
; End of Row?
ADD R4, R4, #0
BRz DONE_ROW
; Calculate the ASCII to be printed
ADD R5, R5, #0 ; Check Current Pixel
BRn FILL_ONE ; Is this a 1?
; print this pixel
LDI R0, ZERO ; Fill in a character for 0.
OUT
BR DONE_PIXEL
FILL_ONE ; Fill in a character for 1.
LDI R0, ONE
OUT
BR DONE_PIXEL
DONE_PIXEL
; Forward the Row-Pixel info
ADD R5, R5, R5
; Decrement the Column Counter and Move to the Next Column
ADD R4, R4, #-1
BR NEXT_COLUMN
DONE_ROW
; Load and print the Linefeed
LD R0, LINEFEED
OUT
; Decrement the Row Counter
ADD R3, R3, #-1
; Move the pointer (R2) to the next row
ADD R2, R2, #1
; Move to the next row
BR NEXT_ROW
; The table below represents an 8x16 font. For each 8-bit extended ASCII
; character, the table uses 16 memory locations, each of which contains
; 8 bits (the high 8 bits, for your convenience) marking pixels in the
; line for that character.
DONE HALT ; terminate the program
ZERO .FILL x5000
ONE .FILL x5001
CHAR .FILL x5002
LINEFEED .FILL x0A
FONT_DATA
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7E00
.FILL x8100
.FILL xA500
.FILL x8100
.FILL x8100
.FILL xBD00
.FILL x9900
.FILL x8100
.FILL x8100
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7E00
.FILL xFF00
.FILL xDB00
.FILL xFF00
.FILL xFF00
.FILL xC300
.FILL xE700
.FILL xFF00
.FILL xFF00
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6C00
.FILL xFE00
.FILL xFE00
.FILL xFE00
.FILL xFE00
.FILL x7C00
.FILL x3800
.FILL x1000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1000
.FILL x3800
.FILL x7C00
.FILL xFE00
.FILL x7C00
.FILL x3800
.FILL x1000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3C00
.FILL x3C00
.FILL xE700
.FILL xE700
.FILL xE700
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3C00
.FILL x7E00
.FILL xFF00
.FILL xFF00
.FILL x7E00
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3C00
.FILL x3C00
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xE700
.FILL xC300
.FILL xC300
.FILL xE700
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x6600
.FILL x4200
.FILL x4200
.FILL x6600
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xC300
.FILL x9900
.FILL xBD00
.FILL xBD00
.FILL x9900
.FILL xC300
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x1E00
.FILL x0E00
.FILL x1A00
.FILL x3200
.FILL x7800
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x3C00
.FILL x1800
.FILL x7E00
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3F00
.FILL x3300
.FILL x3F00
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x7000
.FILL xF000
.FILL xE000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7F00
.FILL x6300
.FILL x7F00
.FILL x6300
.FILL x6300
.FILL x6300
.FILL x6300
.FILL x6700
.FILL xE700
.FILL xE600
.FILL xC000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL xDB00
.FILL x3C00
.FILL xE700
.FILL x3C00
.FILL xDB00
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x8000
.FILL xC000
.FILL xE000
.FILL xF000
.FILL xF800
.FILL xFE00
.FILL xF800
.FILL xF000
.FILL xE000
.FILL xC000
.FILL x8000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0200
.FILL x0600
.FILL x0E00
.FILL x1E00
.FILL x3E00
.FILL xFE00
.FILL x3E00
.FILL x1E00
.FILL x0E00
.FILL x0600
.FILL x0200
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3C00
.FILL x7E00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x7E00
.FILL x3C00
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x0000
.FILL x6600
.FILL x6600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7F00
.FILL xDB00
.FILL xDB00
.FILL xDB00
.FILL x7B00
.FILL x1B00
.FILL x1B00
.FILL x1B00
.FILL x1B00
.FILL x1B00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL x6000
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL xC600
.FILL x6C00
.FILL x3800
.FILL x0C00
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL xFE00
.FILL xFE00
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3C00
.FILL x7E00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x7E00
.FILL x3C00
.FILL x1800
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3C00
.FILL x7E00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x7E00
.FILL x3C00
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x0C00
.FILL xFE00
.FILL x0C00
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3000
.FILL x6000
.FILL xFE00
.FILL x6000
.FILL x3000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x2800
.FILL x6C00
.FILL xFE00
.FILL x6C00
.FILL x2800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1000
.FILL x3800
.FILL x3800
.FILL x7C00
.FILL x7C00
.FILL xFE00
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL xFE00
.FILL x7C00
.FILL x7C00
.FILL x3800
.FILL x3800
.FILL x1000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3C00
.FILL x3C00
.FILL x3C00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x2400
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6C00
.FILL x6C00
.FILL xFE00
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL xFE00
.FILL x6C00
.FILL x6C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x7C00
.FILL xC600
.FILL xC200
.FILL xC000
.FILL x7C00
.FILL x0600
.FILL x0600
.FILL x8600
.FILL xC600
.FILL x7C00
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC200
.FILL xC600
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x6000
.FILL xC600
.FILL x8600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL x6C00
.FILL x3800
.FILL x7600
.FILL xDC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x6000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x1800
.FILL x0C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3000
.FILL x1800
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6600
.FILL x3C00
.FILL xFF00
.FILL x3C00
.FILL x6600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x7E00
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0200
.FILL x0600
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x6000
.FILL xC000
.FILL x8000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x6C00
.FILL x3800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3800
.FILL x7800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL x0600
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x6000
.FILL xC000
.FILL xC600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL x0600
.FILL x0600
.FILL x3C00
.FILL x0600
.FILL x0600
.FILL x0600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0C00
.FILL x1C00
.FILL x3C00
.FILL x6C00
.FILL xCC00
.FILL xFE00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x1E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xFC00
.FILL x0600
.FILL x0600
.FILL x0600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6000
.FILL xC000
.FILL xC000
.FILL xFC00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL xC600
.FILL x0600
.FILL x0600
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7E00
.FILL x0600
.FILL x0600
.FILL x0600
.FILL x0C00
.FILL x7800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x3000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0600
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x6000
.FILL x3000
.FILL x1800
.FILL x0C00
.FILL x0600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6000
.FILL x3000
.FILL x1800
.FILL x0C00
.FILL x0600
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x6000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL x0C00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xDE00
.FILL xDE00
.FILL xDE00
.FILL xDC00
.FILL xC000
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1000
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL xC600
.FILL xFE00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFC00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x7C00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL xFC00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x6600
.FILL xC200
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xC200
.FILL x6600
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xF800
.FILL x6C00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6C00
.FILL xF800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x6600
.FILL x6200
.FILL x6800
.FILL x7800
.FILL x6800
.FILL x6000
.FILL x6200
.FILL x6600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x6600
.FILL x6200
.FILL x6800
.FILL x7800
.FILL x6800
.FILL x6000
.FILL x6000
.FILL x6000
.FILL xF000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x6600
.FILL xC200
.FILL xC000
.FILL xC000
.FILL xDE00
.FILL xC600
.FILL xC600
.FILL x6600
.FILL x3A00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xFE00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1E00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xE600
.FILL x6600
.FILL x6600
.FILL x6C00
.FILL x7800
.FILL x7800
.FILL x6C00
.FILL x6600
.FILL x6600
.FILL xE600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xF000
.FILL x6000
.FILL x6000
.FILL x6000
.FILL x6000
.FILL x6000
.FILL x6000
.FILL x6200
.FILL x6600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xEE00
.FILL xFE00
.FILL xFE00
.FILL xD600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xE600
.FILL xF600
.FILL xFE00
.FILL xDE00
.FILL xCE00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFC00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x7C00
.FILL x6000
.FILL x6000
.FILL x6000
.FILL x6000
.FILL xF000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xD600
.FILL xDE00
.FILL x7C00
.FILL x0C00
.FILL x0E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFC00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x7C00
.FILL x6C00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL xE600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL x6000
.FILL x3800
.FILL x0C00
.FILL x0600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7E00
.FILL x7E00
.FILL x5A00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x6C00
.FILL x3800
.FILL x1000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xD600
.FILL xD600
.FILL xD600
.FILL xFE00
.FILL xEE00
.FILL x6C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xC600
.FILL x6C00
.FILL x7C00
.FILL x3800
.FILL x3800
.FILL x7C00
.FILL x6C00
.FILL xC600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x3C00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL xC600
.FILL x8600
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x6000
.FILL xC200
.FILL xC600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x8000
.FILL xC000
.FILL xE000
.FILL x7000
.FILL x3800
.FILL x1C00
.FILL x0E00
.FILL x0600
.FILL x0200
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1000
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x3000
.FILL x3000
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7800
.FILL x0C00
.FILL x7C00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xE000
.FILL x6000
.FILL x6000
.FILL x7800
.FILL x6C00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1C00
.FILL x0C00
.FILL x0C00
.FILL x3C00
.FILL x6C00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xFE00
.FILL xC000
.FILL xC000
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL x6400
.FILL x6000
.FILL xF000
.FILL x6000
.FILL x6000
.FILL x6000
.FILL x6000
.FILL xF000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7600
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7C00
.FILL x0C00
.FILL xCC00
.FILL x7800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xE000
.FILL x6000
.FILL x6000
.FILL x6C00
.FILL x7600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL xE600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x3800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0600
.FILL x0600
.FILL x0000
.FILL x0E00
.FILL x0600
.FILL x0600
.FILL x0600
.FILL x0600
.FILL x0600
.FILL x0600
.FILL x6600
.FILL x6600
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xE000
.FILL x6000
.FILL x6000
.FILL x6600
.FILL x6C00
.FILL x7800
.FILL x7800
.FILL x6C00
.FILL x6600
.FILL xE600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xEC00
.FILL xFE00
.FILL xD600
.FILL xD600
.FILL xD600
.FILL xD600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xDC00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xDC00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x7C00
.FILL x6000
.FILL x6000
.FILL xF000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7600
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7C00
.FILL x0C00
.FILL x0C00
.FILL x1E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xDC00
.FILL x7600
.FILL x6600
.FILL x6000
.FILL x6000
.FILL x6000
.FILL xF000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL x6000
.FILL x3800
.FILL x0C00
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1000
.FILL x3000
.FILL x3000
.FILL xFC00
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3000
.FILL x3600
.FILL x1C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x3C00
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xC600
.FILL xD600
.FILL xD600
.FILL xD600
.FILL xFE00
.FILL x6C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL x6C00
.FILL x3800
.FILL x3800
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7E00
.FILL x0600
.FILL x0C00
.FILL xF800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL xCC00
.FILL x1800
.FILL x3000
.FILL x6000
.FILL xC600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0E00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x7000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0E00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x7000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7600
.FILL xDC00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1000
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x6600
.FILL xC200
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xC200
.FILL x6600
.FILL x3C00
.FILL x0C00
.FILL x0600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xCC00
.FILL x0000
.FILL x0000
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xFE00
.FILL xC000
.FILL xC000
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1000
.FILL x3800
.FILL x6C00
.FILL x0000
.FILL x7800
.FILL x0C00
.FILL x7C00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xCC00
.FILL x0000
.FILL x0000
.FILL x7800
.FILL x0C00
.FILL x7C00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6000
.FILL x3000
.FILL x1800
.FILL x0000
.FILL x7800
.FILL x0C00
.FILL x7C00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL x3800
.FILL x0000
.FILL x7800
.FILL x0C00
.FILL x7C00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x6600
.FILL x6000
.FILL x6000
.FILL x6600
.FILL x3C00
.FILL x0C00
.FILL x0600
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1000
.FILL x3800
.FILL x6C00
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xFE00
.FILL xC000
.FILL xC000
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xFE00
.FILL xC000
.FILL xC000
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6000
.FILL x3000
.FILL x1800
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xFE00
.FILL xC000
.FILL xC000
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6600
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3C00
.FILL x6600
.FILL x0000
.FILL x3800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6000
.FILL x3000
.FILL x1800
.FILL x0000
.FILL x3800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL x0000
.FILL x1000
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL xC600
.FILL xFE00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL x3800
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL xC600
.FILL xFE00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3000
.FILL x6000
.FILL x0000
.FILL xFE00
.FILL x6600
.FILL x6000
.FILL x7C00
.FILL x6000
.FILL x6000
.FILL x6600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xCC00
.FILL x7600
.FILL x3600
.FILL x7E00
.FILL xD800
.FILL xD800
.FILL x6E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3E00
.FILL x6C00
.FILL xCC00
.FILL xCC00
.FILL xFE00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1000
.FILL x3800
.FILL x6C00
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6000
.FILL x3000
.FILL x1800
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3000
.FILL x7800
.FILL xCC00
.FILL x0000
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6000
.FILL x3000
.FILL x1800
.FILL x0000
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL x0000
.FILL x0000
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7E00
.FILL x0600
.FILL x0C00
.FILL x7800
.FILL x0000
.FILL x0000
.FILL xC600
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC600
.FILL x0000
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x6600
.FILL x6000
.FILL x6000
.FILL x6000
.FILL x6600
.FILL x3C00
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL x6400
.FILL x6000
.FILL xF000
.FILL x6000
.FILL x6000
.FILL x6000
.FILL x6000
.FILL xE600
.FILL xFC00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6600
.FILL x6600
.FILL x3C00
.FILL x1800
.FILL x7E00
.FILL x1800
.FILL x7E00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xF800
.FILL xCC00
.FILL xCC00
.FILL xF800
.FILL xC400
.FILL xCC00
.FILL xDE00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0E00
.FILL x1B00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x7E00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xD800
.FILL x7000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3000
.FILL x6000
.FILL x0000
.FILL x7800
.FILL x0C00
.FILL x7C00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x0000
.FILL x3800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3000
.FILL x6000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x3000
.FILL x6000
.FILL x0000
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7600
.FILL xDC00
.FILL x0000
.FILL xDC00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7600
.FILL xDC00
.FILL x0000
.FILL xC600
.FILL xE600
.FILL xF600
.FILL xFE00
.FILL xDE00
.FILL xCE00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3C00
.FILL x6C00
.FILL x6C00
.FILL x3E00
.FILL x0000
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL x6C00
.FILL x3800
.FILL x0000
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3000
.FILL x3000
.FILL x0000
.FILL x3000
.FILL x3000
.FILL x6000
.FILL xC000
.FILL xC600
.FILL xC600
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xC000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x0600
.FILL x0600
.FILL x0600
.FILL x0600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC000
.FILL xC000
.FILL xC200
.FILL xC600
.FILL xCC00
.FILL x1800
.FILL x3000
.FILL x6000
.FILL xDC00
.FILL x8600
.FILL x0C00
.FILL x1800
.FILL x3E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xC000
.FILL xC000
.FILL xC200
.FILL xC600
.FILL xCC00
.FILL x1800
.FILL x3000
.FILL x6600
.FILL xCE00
.FILL x9E00
.FILL x3E00
.FILL x0600
.FILL x0600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3C00
.FILL x3C00
.FILL x3C00
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3600
.FILL x6C00
.FILL xD800
.FILL x6C00
.FILL x3600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xD800
.FILL x6C00
.FILL x3600
.FILL x6C00
.FILL xD800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1100
.FILL x4400
.FILL x1100
.FILL x4400
.FILL x1100
.FILL x4400
.FILL x1100
.FILL x4400
.FILL x1100
.FILL x4400
.FILL x1100
.FILL x4400
.FILL x1100
.FILL x4400
.FILL x1100
.FILL x4400
.FILL x5500
.FILL xAA00
.FILL x5500
.FILL xAA00
.FILL x5500
.FILL xAA00
.FILL x5500
.FILL xAA00
.FILL x5500
.FILL xAA00
.FILL x5500
.FILL xAA00
.FILL x5500
.FILL xAA00
.FILL x5500
.FILL xAA00
.FILL xDD00
.FILL x7700
.FILL xDD00
.FILL x7700
.FILL xDD00
.FILL x7700
.FILL xDD00
.FILL x7700
.FILL xDD00
.FILL x7700
.FILL xDD00
.FILL x7700
.FILL xDD00
.FILL x7700
.FILL xDD00
.FILL x7700
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xF800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xF800
.FILL x1800
.FILL xF800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL xF600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xF800
.FILL x1800
.FILL xF800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL xF600
.FILL x0600
.FILL xF600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x0600
.FILL xF600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL xF600
.FILL x0600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xF800
.FILL x1800
.FILL xF800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xF800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1F00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1F00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xFF00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1F00
.FILL x1800
.FILL x1F00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3700
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3700
.FILL x3000
.FILL x3F00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3F00
.FILL x3000
.FILL x3700
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL xF700
.FILL x0000
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL x0000
.FILL xF700
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3700
.FILL x3000
.FILL x3700
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL x0000
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL xF700
.FILL x0000
.FILL xF700
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xFF00
.FILL x0000
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL x0000
.FILL xFF00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3F00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1F00
.FILL x1800
.FILL x1F00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1F00
.FILL x1800
.FILL x1F00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3F00
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL xFF00
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x3600
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xFF00
.FILL x1800
.FILL xFF00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xF800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1F00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL xF000
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL x0F00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7600
.FILL xDC00
.FILL xD800
.FILL xD800
.FILL xD800
.FILL xDC00
.FILL x7600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7800
.FILL xCC00
.FILL xCC00
.FILL xCC00
.FILL xD800
.FILL xCC00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xCC00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL xC600
.FILL xC600
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xC000
.FILL xC000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL xC600
.FILL x6000
.FILL x3000
.FILL x1800
.FILL x3000
.FILL x6000
.FILL xC600
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7E00
.FILL xD800
.FILL xD800
.FILL xD800
.FILL xD800
.FILL xD800
.FILL x7000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x7C00
.FILL x6000
.FILL x6000
.FILL xC000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7600
.FILL xDC00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7E00
.FILL x1800
.FILL x3C00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x3C00
.FILL x1800
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL xC600
.FILL xFE00
.FILL xC600
.FILL xC600
.FILL x6C00
.FILL x3800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL xEE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1E00
.FILL x3000
.FILL x1800
.FILL x0C00
.FILL x3E00
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x6600
.FILL x3C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7E00
.FILL xDB00
.FILL xDB00
.FILL xDB00
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0300
.FILL x0600
.FILL x7E00
.FILL xDB00
.FILL xDB00
.FILL xF300
.FILL x7E00
.FILL x6000
.FILL xC000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1C00
.FILL x3000
.FILL x6000
.FILL x6000
.FILL x7C00
.FILL x6000
.FILL x6000
.FILL x6000
.FILL x3000
.FILL x1C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL xC600
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL xFE00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x7E00
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL xFF00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3000
.FILL x1800
.FILL x0C00
.FILL x0600
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x0000
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0C00
.FILL x1800
.FILL x3000
.FILL x6000
.FILL x3000
.FILL x1800
.FILL x0C00
.FILL x0000
.FILL x7E00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0E00
.FILL x1B00
.FILL x1B00
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL x1800
.FILL xD800
.FILL xD800
.FILL xD800
.FILL x7000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x7E00
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7600
.FILL xDC00
.FILL x0000
.FILL x7600
.FILL xDC00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x3800
.FILL x6C00
.FILL x6C00
.FILL x3800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x1800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0F00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL x0C00
.FILL xEC00
.FILL x6C00
.FILL x6C00
.FILL x3C00
.FILL x1C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL xD800
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL x6C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7000
.FILL xD800
.FILL x3000
.FILL x6000
.FILL xC800
.FILL xF800
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x7C00
.FILL x7C00
.FILL x7C00
.FILL x7C00
.FILL x7C00
.FILL x7C00
.FILL x7C00
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.FILL x0000
.END
| 13.285748 | 104 | 0.693607 |
fac262d2e0fbf1f1cdb2d60273d6b8b26deacf90 | 8,254 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_761.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_761.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_761.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 %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xdee1, %rsi
lea addresses_D_ht+0x13121, %rdi
nop
nop
and $19157, %r15
mov $120, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp %rdx, %rdx
lea addresses_WC_ht+0x7ae1, %r10
nop
cmp %rbp, %rbp
movl $0x61626364, (%r10)
nop
nop
nop
nop
nop
cmp $48634, %r10
lea addresses_A_ht+0x1cca1, %r15
nop
inc %rbp
mov (%r15), %cx
nop
nop
sub $11294, %rsi
lea addresses_D_ht+0x72e1, %rdx
nop
nop
add $55242, %rcx
mov (%rdx), %di
xor %rbp, %rbp
lea addresses_A_ht+0x19ca1, %rsi
nop
nop
nop
add %rcx, %rcx
mov $0x6162636465666768, %rdi
movq %rdi, (%rsi)
nop
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0x1228d, %rsi
lea addresses_UC_ht+0x5771, %rdi
nop
nop
nop
dec %r14
mov $110, %rcx
rep movsw
nop
dec %r15
lea addresses_WC_ht+0x16479, %rsi
lea addresses_UC_ht+0xe939, %rdi
nop
nop
nop
nop
xor %r10, %r10
mov $102, %rcx
rep movsw
nop
nop
inc %rbp
lea addresses_D_ht+0x11b89, %rbp
nop
dec %rdi
movw $0x6162, (%rbp)
nop
nop
nop
add %r14, %r14
lea addresses_WT_ht+0x22e1, %rbp
clflush (%rbp)
nop
nop
xor $53520, %r15
movw $0x6162, (%rbp)
nop
inc %rdx
lea addresses_normal_ht+0x1a529, %r15
nop
dec %rdi
movb $0x61, (%r15)
nop
nop
nop
nop
xor %rcx, %rcx
lea addresses_A_ht+0x13ce1, %r14
nop
nop
nop
nop
add $6813, %rdi
movb $0x61, (%r14)
nop
nop
nop
nop
and %r10, %r10
lea addresses_UC_ht+0x14cf9, %rsi
lea addresses_WT_ht+0x1a561, %rdi
nop
and $24070, %r14
mov $34, %rcx
rep movsw
nop
nop
nop
inc %r15
lea addresses_WC_ht+0x185e1, %rdx
nop
nop
nop
nop
nop
sub %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
and $0xffffffffffffffc0, %rdx
movaps %xmm0, (%rdx)
and $50789, %rdi
lea addresses_D_ht+0x1a6e1, %r15
nop
nop
sub %rsi, %rsi
movups (%r15), %xmm5
vpextrq $1, %xmm5, %r10
nop
nop
xor %r15, %r15
lea addresses_WT_ht+0x72e1, %rsi
lea addresses_D_ht+0x15e1, %rdi
inc %r10
mov $19, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp %r10, %r10
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rsi
// Store
mov $0xae1, %r9
nop
nop
add $27352, %rbx
mov $0x5152535455565758, %rcx
movq %rcx, (%r9)
nop
nop
nop
nop
cmp %r9, %r9
// Store
lea addresses_normal+0x92b3, %r13
nop
nop
nop
add %rsi, %rsi
movb $0x51, (%r13)
nop
nop
nop
nop
nop
cmp %r8, %r8
// Faulty Load
lea addresses_D+0xa2e1, %r8
clflush (%r8)
nop
nop
nop
nop
nop
inc %rax
vmovups (%r8), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %r9
lea oracles, %r13
and $0xff, %r9
shlq $12, %r9
mov (%r13,%r9,1), %r9
pop %rsi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_P', 'size': 8, 'AVXalign': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_normal', 'size': 1, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 10, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': True}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': True, 'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': True, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 7, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': True}}
{'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 31.746154 | 2,999 | 0.655076 |
aae3f35dc1f8acf5185b6c2de0f3125fa66d3e68 | 886 | asm | Assembly | programs/oeis/157/A157088.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/157/A157088.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/157/A157088.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A157088: Consider all consecutive integer Pythagorean septuples (X, X+1, X+2, X+3, Z-2, Z-1, Z) ordered by increasing Z; sequence gives X values.
; 0,21,312,4365,60816,847077,11798280,164328861,2288805792,31878952245,444016525656,6184352406957,86136917171760,1199732487997701,16710117914796072,232741918319147325,3241676738553266496,45150732421426583637,628868577161418904440,8759009347838438078541,121997262292576714195152,1699202662748235560653605,23666840016182721134955336,329636557563809860328721117,4591244965877155323467140320,63947792964716364668211243381,890677856540151950031490267032,12405542198597410935772652495085,172786912923823601150785644664176,2406611238734933005175226372803397,33519770429365238471302383574583400,466870174772378405593058143671364221
mul $0,2
mov $1,1
mov $2,1
lpb $0
sub $0,1
add $2,$1
add $2,$1
add $1,$2
lpe
div $1,2
mul $1,3
mov $0,$1
| 55.375 | 623 | 0.852144 |
bd91af2018fa81f0a1c154d95d57eeeb6388b968 | 473 | asm | Assembly | scripts/celadonpokecenter.asm | etdv-thevoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | 1 | 2022-01-09T05:28:52.000Z | 2022-01-09T05:28:52.000Z | scripts/celadonpokecenter.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | scripts/celadonpokecenter.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | CeladonPokecenterScript:
call Serial_TryEstablishingExternallyClockedConnection
jp EnableAutoTextBoxDrawing
CeladonPokecenterTextPointers:
dw CeladonHealNurseText
dw CeladonPokecenterText2
dw CeladonPokecenterText3
dw CeladonTradeNurseText
CeladonTradeNurseText:
TX_CABLE_CLUB_RECEPTIONIST
CeladonHealNurseText:
TX_POKECENTER_NURSE
CeladonPokecenterText2:
TX_FAR _CeladonPokecenterText2
db "@"
CeladonPokecenterText3:
TX_FAR _CeladonPokecenterText3
db "@"
| 19.708333 | 55 | 0.879493 |
c06bb6810042ed9f9fa352fca49ce7b2b9343a3a | 8,350 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1595.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_1595.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_1595.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 %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x163b6, %rbp
and $29452, %rdi
movb $0x61, (%rbp)
nop
and $34872, %rdi
lea addresses_WT_ht+0xbdb6, %rsi
lea addresses_normal_ht+0xf7f6, %rdi
nop
add %r10, %r10
mov $67, %rcx
rep movsl
nop
nop
nop
inc %rax
lea addresses_WC_ht+0x48b6, %rbp
nop
nop
nop
sub $18323, %r15
mov $0x6162636465666768, %r10
movq %r10, (%rbp)
nop
nop
nop
inc %rax
lea addresses_A_ht+0x1bab6, %rsi
lea addresses_WT_ht+0x8636, %rdi
clflush (%rsi)
sub $31372, %rdx
mov $87, %rcx
rep movsq
nop
add %r10, %r10
lea addresses_normal_ht+0x48b6, %rsi
lea addresses_A_ht+0x109b6, %rdi
nop
nop
sub $19242, %rbp
mov $26, %rcx
rep movsq
nop
nop
add $11049, %rcx
lea addresses_WC_ht+0x90b6, %rdi
nop
nop
dec %rcx
movb (%rdi), %al
nop
nop
nop
nop
nop
sub %r15, %r15
lea addresses_normal_ht+0x8398, %rcx
nop
nop
nop
nop
add %r10, %r10
mov $0x6162636465666768, %rax
movq %rax, (%rcx)
nop
sub $34202, %r15
lea addresses_normal_ht+0xdfb4, %rbp
nop
nop
nop
nop
sub %r10, %r10
vmovups (%rbp), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %rax
nop
nop
sub %rax, %rax
lea addresses_UC_ht+0x140b6, %rbp
nop
dec %rsi
mov (%rbp), %rdx
nop
nop
nop
nop
dec %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_WC+0x17a13, %rbp
nop
nop
nop
cmp $55193, %rbx
movl $0x51525354, (%rbp)
nop
xor %rdi, %rdi
// Store
lea addresses_A+0x15556, %rdi
nop
nop
add %rax, %rax
movl $0x51525354, (%rdi)
nop
nop
xor $46632, %rcx
// Store
mov $0xef6, %rdi
xor %rbp, %rbp
mov $0x5152535455565758, %rax
movq %rax, %xmm3
movups %xmm3, (%rdi)
nop
nop
dec %rbx
// Store
lea addresses_WC+0x7db6, %r14
sub %rsi, %rsi
movl $0x51525354, (%r14)
nop
nop
nop
and $2361, %rcx
// Store
lea addresses_US+0x134b6, %rdi
nop
cmp %r14, %r14
mov $0x5152535455565758, %rcx
movq %rcx, %xmm4
vmovups %ymm4, (%rdi)
inc %rbx
// Store
mov $0x2763480000000956, %rdi
nop
nop
nop
add $15830, %rbp
mov $0x5152535455565758, %rcx
movq %rcx, %xmm2
movups %xmm2, (%rdi)
nop
nop
nop
nop
sub $64690, %rbx
// Store
lea addresses_normal+0xf7d6, %rbp
nop
nop
add $22883, %r14
movb $0x51, (%rbp)
sub %rsi, %rsi
// Load
lea addresses_RW+0x18b6, %r14
sub %rdi, %rdi
mov (%r14), %rbp
nop
nop
nop
sub %rcx, %rcx
// Store
mov $0x13a, %rax
nop
nop
nop
inc %rbx
movb $0x51, (%rax)
dec %rdi
// Faulty Load
lea addresses_WT+0x1c8b6, %rax
and %rbp, %rbp
mov (%rax), %cx
lea oracles, %rsi
and $0xff, %rcx
shlq $12, %rcx
mov (%rsi,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A', 'congruent': 2}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_P', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_NC', 'congruent': 3}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 5}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 11}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_P', 'congruent': 0}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 8}, 'OP': 'STOR'}
{'dst': {'same': True, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': True, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 8, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 11}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal_ht', 'congruent': 1}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 11}}
{'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.266932 | 2,999 | 0.650898 |
ade5ac055612f72710384676d029bbb458e00e70 | 592 | asm | Assembly | oeis/064/A064628.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/064/A064628.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/064/A064628.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A064628: Floor(4^n / 3^n).
; 1,1,1,2,3,4,5,7,9,13,17,23,31,42,56,74,99,133,177,236,315,420,560,747,996,1328,1771,2362,3149,4199,5599,7466,9954,13273,17697,23596,31462,41950,55933,74577,99437,132583,176777,235703,314271,419028,558704,744938,993251,1324335,1765780,2354374,3139166,4185554,5580739,7440986,9921315,13228420,17637893,23517191,31356255,41808340,55744454,74325939,99101252,132135003,176180004,234906672,313208896,417611861,556815815,742421087,989894783,1319859711,1759812949,2346417265,3128556353,4171408471,5561877962
mov $1,24
pow $1,$0
mov $2,18
pow $2,$0
div $1,$2
mov $0,$1
| 59.2 | 501 | 0.79223 |
438d8baf3deb5d2947dda9899c0c793f5abd121f | 5,775 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0xca.log_21829_1552.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0xca.log_21829_1552.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0xca.log_21829_1552.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 %r14
push %rax
push %rbx
push %rcx
push %rsi
lea addresses_A_ht+0x5872, %r14
nop
nop
nop
nop
cmp $21279, %r10
mov (%r14), %rbx
nop
nop
nop
nop
add %r11, %r11
lea addresses_A_ht+0x6f2, %rcx
nop
nop
nop
nop
sub $51855, %rsi
movb $0x61, (%rcx)
nop
and %rcx, %rcx
lea addresses_WT_ht+0x10472, %rax
nop
nop
nop
sub %rbx, %rbx
movb $0x61, (%rax)
nop
nop
nop
inc %rsi
pop %rsi
pop %rcx
pop %rbx
pop %rax
pop %r14
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rdi
// Store
lea addresses_normal+0x1a472, %r9
nop
nop
nop
sub $26602, %rdi
movb $0x51, (%r9)
nop
sub $50956, %rax
// Store
lea addresses_A+0x1ac12, %rcx
nop
nop
nop
and $51256, %r14
mov $0x5152535455565758, %r8
movq %r8, (%rcx)
add $40171, %r8
// Load
lea addresses_UC+0x14df2, %r8
nop
nop
nop
add $54928, %r9
mov (%r8), %r14d
nop
nop
nop
nop
nop
cmp $40384, %r15
// Load
lea addresses_PSE+0x6a72, %rcx
nop
nop
nop
xor %r8, %r8
mov (%rcx), %r14
nop
nop
nop
inc %r15
// Store
lea addresses_WT+0x1cc72, %rax
nop
nop
nop
nop
sub $2585, %rdi
mov $0x5152535455565758, %rcx
movq %rcx, (%rax)
nop
nop
nop
nop
cmp %rax, %rax
// Faulty Load
lea addresses_normal+0x1a472, %rdi
nop
nop
nop
nop
and %r9, %r9
movb (%rdi), %r14b
lea oracles, %r8
and $0xff, %r14
shlq $12, %r14
mov (%r8,%r14,1), %r14
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': True, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_normal'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A'}}
{'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
{'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 10, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 6, 'AVXalign': False, 'same': True, 'size': 1, 'NT': True, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WT_ht'}}
{'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
*/
| 36.09375 | 2,999 | 0.65316 |
366e7668a50bfd76ad9198a71af84561b11c0ae0 | 420 | asm | Assembly | oeis/028/A028154.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/028/A028154.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/028/A028154.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A028154: Expansion of 1/((1-4x)(1-7x)(1-11x)(1-12x)).
; Submitted by Christian Krause
; 1,34,743,13316,213453,3189558,45453091,626299192,8418437225,111046371722,1443490546719,18546769677228,236067224376517,2981598548144926,37417475152222427,467041996357853024
mov $1,1
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
seq $0,19752 ; G.f.: 1/((1-4x)(1-11x)(1-12x)).
mul $1,7
add $1,$0
lpe
mov $0,$1
| 24.705882 | 173 | 0.690476 |
0dae0492a07399a68e59ba9245a991d161a2fdaa | 5,526 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2_notsx.log_1595_1257.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2_notsx.log_1595_1257.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2_notsx.log_1595_1257.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rax
push %rdi
push %rsi
lea addresses_normal_ht+0xb4d8, %r14
nop
nop
sub %rax, %rax
movw $0x6162, (%r14)
nop
nop
nop
nop
nop
sub $57537, %rdi
lea addresses_WT_ht+0x17958, %rdi
nop
nop
nop
nop
nop
and %r12, %r12
movl $0x61626364, (%rdi)
nop
nop
nop
cmp $1738, %rsi
lea addresses_UC_ht+0xb958, %r12
xor $2223, %r8
movb (%r12), %r14b
nop
nop
nop
cmp %r12, %r12
lea addresses_WC_ht+0xdbd8, %r12
nop
nop
and $17716, %r15
movb (%r12), %al
nop
nop
nop
sub %rax, %rax
pop %rsi
pop %rdi
pop %rax
pop %r8
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r15
push %r8
push %r9
push %rbx
// Load
lea addresses_US+0x11b58, %rbx
nop
nop
nop
nop
nop
inc %r12
mov (%rbx), %r15
nop
nop
nop
nop
nop
cmp $62837, %r9
// Load
mov $0x1585a90000000c50, %r9
nop
dec %r12
mov (%r9), %r8w
nop
nop
xor $24900, %rbx
// Store
mov $0x33966300000000c8, %r9
nop
nop
xor $56097, %r10
mov $0x5152535455565758, %rbx
movq %rbx, (%r9)
nop
nop
nop
sub %r9, %r9
// Faulty Load
lea addresses_US+0x1ab58, %rbx
nop
nop
nop
nop
sub $19246, %r14
movups (%rbx), %xmm4
vpextrq $0, %xmm4, %r8
lea oracles, %r15
and $0xff, %r8
shlq $12, %r8
mov (%r15,%r8,1), %r8
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': True}}
{'00': 1595}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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.375 | 2,999 | 0.654361 |
07ee03228ec6e457b2d40603832eaf6e95a53c50 | 7,652 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1121.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1121.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1121.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0xabcc, %rbp
nop
nop
nop
nop
sub %r9, %r9
movb (%rbp), %r8b
nop
nop
nop
nop
sub $10463, %r14
lea addresses_WT_ht+0x1b8de, %rsi
lea addresses_UC_ht+0xd4e4, %rdi
cmp $48871, %r11
mov $126, %rcx
rep movsw
cmp %rcx, %rcx
lea addresses_A_ht+0x18ade, %r9
nop
nop
nop
add %rdi, %rdi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm3
movups %xmm3, (%r9)
nop
nop
nop
nop
and $46255, %r8
lea addresses_normal_ht+0x1e028, %r8
nop
nop
xor $44566, %rbp
mov $0x6162636465666768, %r11
movq %r11, %xmm6
movups %xmm6, (%r8)
and $56425, %r14
lea addresses_UC_ht+0x17b8e, %rsi
lea addresses_WT_ht+0x173de, %rdi
nop
nop
nop
nop
nop
sub $26981, %r9
mov $33, %rcx
rep movsw
nop
nop
nop
nop
add $43626, %r14
lea addresses_D_ht+0x1b80e, %rbp
sub %r8, %r8
movups (%rbp), %xmm2
vpextrq $1, %xmm2, %r9
nop
nop
nop
nop
dec %r8
lea addresses_D_ht+0x11676, %rsi
lea addresses_WT_ht+0x1dc9e, %rdi
nop
nop
nop
and $877, %r9
mov $75, %rcx
rep movsl
nop
nop
nop
sub $57909, %r8
lea addresses_WT_ht+0x5fde, %rdi
cmp %rcx, %rcx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm7
movups %xmm7, (%rdi)
nop
nop
inc %rdi
lea addresses_WT_ht+0x5eda, %rsi
lea addresses_UC_ht+0x1dd46, %rdi
clflush (%rdi)
nop
nop
xor $25828, %r9
mov $18, %rcx
rep movsl
nop
nop
dec %rsi
lea addresses_D_ht+0x1b6de, %rsi
lea addresses_normal_ht+0x1a8de, %rdi
nop
add %r9, %r9
mov $106, %rcx
rep movsq
nop
nop
nop
add %rcx, %rcx
lea addresses_WC_ht+0x1eade, %rsi
lea addresses_UC_ht+0x94ee, %rdi
nop
nop
cmp $31403, %r8
mov $69, %rcx
rep movsq
nop
nop
nop
cmp %r11, %r11
lea addresses_UC_ht+0xdede, %r11
nop
nop
cmp %r9, %r9
mov (%r11), %cx
nop
nop
dec %r14
lea addresses_A_ht+0x7762, %r11
clflush (%r11)
nop
nop
xor $20843, %rbp
movups (%r11), %xmm7
vpextrq $0, %xmm7, %r8
nop
nop
xor $39508, %rcx
lea addresses_D_ht+0xf75e, %r9
clflush (%r9)
add $47261, %rdi
vmovups (%r9), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rbp
nop
nop
cmp %r8, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r9
push %rax
// Faulty Load
lea addresses_UC+0x66de, %r9
nop
nop
nop
nop
nop
xor $3848, %r12
mov (%r9), %r13d
lea oracles, %rax
and $0xff, %r13
shlq $12, %r13
mov (%rax,%r13,1), %r13
pop %rax
pop %r9
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 35.590698 | 2,999 | 0.658521 |
04e4bbc1e2d84e947a1acb4696a02c56f0f78a6a | 1,475 | asm | Assembly | programs/oeis/206/A206526.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/206/A206526.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/206/A206526.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A206526: a(n) = 137*(n-1) - a(n-1) with n>1, a(1)=31.
; 31,106,168,243,305,380,442,517,579,654,716,791,853,928,990,1065,1127,1202,1264,1339,1401,1476,1538,1613,1675,1750,1812,1887,1949,2024,2086,2161,2223,2298,2360,2435,2497,2572,2634,2709,2771,2846,2908,2983,3045,3120,3182,3257,3319,3394,3456,3531,3593,3668,3730,3805,3867,3942,4004,4079,4141,4216,4278,4353,4415,4490,4552,4627,4689,4764,4826,4901,4963,5038,5100,5175,5237,5312,5374,5449,5511,5586,5648,5723,5785,5860,5922,5997,6059,6134,6196,6271,6333,6408,6470,6545,6607,6682,6744,6819,6881,6956,7018,7093,7155,7230,7292,7367,7429,7504,7566,7641,7703,7778,7840,7915,7977,8052,8114,8189,8251,8326,8388,8463,8525,8600,8662,8737,8799,8874,8936,9011,9073,9148,9210,9285,9347,9422,9484,9559,9621,9696,9758,9833,9895,9970,10032,10107,10169,10244,10306,10381,10443,10518,10580,10655,10717,10792,10854,10929,10991,11066,11128,11203,11265,11340,11402,11477,11539,11614,11676,11751,11813,11888,11950,12025,12087,12162,12224,12299,12361,12436,12498,12573,12635,12710,12772,12847,12909,12984,13046,13121,13183,13258,13320,13395,13457,13532,13594,13669,13731,13806,13868,13943,14005,14080,14142,14217,14279,14354,14416,14491,14553,14628,14690,14765,14827,14902,14964,15039,15101,15176,15238,15313,15375,15450,15512,15587,15649,15724,15786,15861,15923,15998,16060,16135,16197,16272,16334,16409,16471,16546,16608,16683,16745,16820,16882,16957,17019,17094
mov $1,$0
add $1,3
div $1,2
mul $1,13
add $1,18
mov $2,$0
mul $2,62
add $1,$2
| 122.916667 | 1,339 | 0.785085 |
731f9e457d2a52c90dc6723a3b3476f2a3f894d6 | 10,358 | asm | Assembly | Driver/Printer/PrintCom/Graphics/graphicsCommon.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Printer/PrintCom/Graphics/graphicsCommon.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Printer/PrintCom/Graphics/graphicsCommon.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: common print routines
FILE: graphicsCommon.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 3/90 initial version
DESCRIPTION:
$Id: graphicsCommon.asm,v 1.1 97/04/18 11:51:23 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LoadSwathHeader
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Takes a HugeArray bitmap and loads it's bitmap header into
the PState
CALLED BY: PrintSwath
PASS: es - pointer to locked PState
dx.cx - VM file and block handle for HugeArray bitmap
RETURN: nothing
DESTROYED: ax
PSEUDO CODE/STRATEGY:
save the VM file handle
lock the VM block;
copy the header into into the PState;
unlock the block;
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jim 1/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
LoadSwathHeader proc near
uses bx, di, ds, es, bp
.enter
mov es:[PS_bitmap].segment, dx ; store bitmap file and
mov es:[PS_bitmap].offset, cx ; block handle
mov bx, dx ; bx = file handle
mov ax, cx ; ax = dir block handle
call VMLock ; lock the HugeArray dir block
mov ds, ax ; ds -> HugeArray dir block
mov bx, size HugeArrayDirectory ; skip past dir header
mov ax, ds:[bx].B_width ; copy the elements
mov es:[PS_swath].B_width, ax
mov ax, ds:[bx].B_height
mov es:[PS_swath].B_height, ax
mov al, ds:[bx].B_type
mov es:[PS_swath].B_type, al
mov es:[PS_swath].B_compact, BMC_UNCOMPACTED
call VMUnlock ; release the VM block
.leave
ret
LoadSwathHeader endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DerefFirstScanline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get pointer to first scan line of HugeBitmap
CALLED BY: PrintSwath
PASS: es - pointer to locked PState block
RETURN: ds:si - pointer to first scan line of the bitmap
adjusted for color number.
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
just use HugeArrayLock
KNOWN BUGS/SIDE EFFECTS/IDEAS:
stores the offset in the PState, for use later
REVISION HISTORY:
Name Date Description
---- ---- -----------
jim 2/ 3/92 Initial version
Dave 3/92 Initial version mods
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DerefFirstScanline proc near
uses ax, dx, bx, di, cx
.enter
clr ax
mov es:[PS_curScanNumber], ax ; save for later
mov es:[PS_newScanNumber], ax ; save for later
mov es:[PS_firstBlockScanNumber], ax ; init the block start
clr dx ; accessing scan line
mov bx, es:[PS_bitmap].segment ; load up VM file and
mov di, es:[PS_bitmap].offset ; block handle
call HugeArrayLock
mov es:[PS_curScanOffset],si ; save the beginning of the
; current scanline.
dec ax ; run to zero remaining instead
; of one.
mov es:[PS_lastBlockScanNumber],ax ;set up last scanline
.leave
ret
DerefFirstScanline endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DerefAScanline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get pointer to a scan line of Locked HugeBitmap
CALLED BY: PrintSwath
PASS: es - pointer to locked PState block
PS_newScanNumber - scanline (element) number to deref.
RETURN: ds:si - pointer to a scan line of the bitmap
adjusted for color number.
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
just use HugeArrayLock
KNOWN BUGS/SIDE EFFECTS/IDEAS:
stores the offset in the PState, for use later
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DerefAScanline proc near
uses dx, bx, di, cx
.enter
mov ax,es:[PS_newScanNumber]
cmp ax,es:[PS_firstBlockScanNumber] ;see if the desired scan is
jb newBlock ;currently dereferenced HAB
cmp ax,es:[PS_lastBlockScanNumber]
jbe haveBlock
newBlock:
;must be in another block, dereference it.
mov si,es:[PS_curScanOffset] ;get index for current scan
call HugeArrayUnlock ;unlock the curent block.
;ax should hold the current scan line # to deref.
mov es:[PS_curScanNumber], ax ; save for later
clr dx ; accessing scan line
mov bx, es:[PS_bitmap].segment ; load up VM file and
mov di, es:[PS_bitmap].offset ; block handle
call HugeArrayLock
EC < or ax,ax >
EC < ERROR_Z DEREFERENCING_OFF_END_OF_BITMAP >
dec cx
dec ax ;get the end of the current
add ax,es:[PS_curScanNumber] ;block.
mov es:[PS_lastBlockScanNumber],ax
mov ax,es:[PS_curScanNumber] ;get the beginning of current
sub ax,cx ;block.
mov es:[PS_firstBlockScanNumber],ax
jmp haveScan
haveBlock:
mov si,es:[PS_curScanOffset]
mov bx,ax ;get the difference.
sub bx,es:[PS_curScanNumber] ;bx now is the number of
;scanlines to move for the next
;scanline.
jz haveScan
mov es:[PS_curScanNumber], ax ; save new scan number.
mov ax,es:[PS_bandBWidth] ;get the byte width of 1 color.
mov cl,es:[PS_swath].[B_type] ;see if its a color bitmap.
and cl,mask BM_FORMAT
cmp cl,BMF_MONO ;Monochrome?
je haveBWidth ;if so, then no adjustment.
cmp cl,BMF_4BIT ;Same goes for 4,8,24 bits
je haveBWidth
cmp cl,BMF_8BIT
je haveBWidth
cmp cl,BMF_24BIT
je haveBWidth
;assume 4 planes passed (even in 3CMY)
shl ax,2 ;now of all 4 colors.
EC< cmp cl,BMF_4CMYK >
EC< je haveBWidth >
EC< cmp cl,BMF_3CMY >
EC< ERROR_NE INVALID_MODE >
haveBWidth:
mul bx ;x scanline difference above.
add si,ax ;point at the beginning of the
;new scanline.
haveScan:
mov es:[PS_curScanOffset],si ; save the beginning of the
; current scanline.
mov cx,es:[PS_curColorNumber] ;set up the offset to CMYK col
jcxz exit
addLoop:
add si,es:[PS_bandBWidth]
loop addLoop ;add that # of widths
clc
exit:
.leave
ret
DerefAScanline endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrLoadPstateVars
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS:
Take the device info table and load the bandHeight, and byteColumn
locations in the PSTATE.
CALLED BY:
Internal
PASS:
es - Segment of PSTATE
RETURN:
cx - number of integral bands in this swath.
dx - number of scanlines left over
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 02/90 Initial version
Dave 03/92 Added swath geometry calculation to end.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrLoadPstateVars proc near
uses ax, ds, si, bx
.enter
mov bx,es:[PS_deviceInfo] ;handle for this printer resource.
push bx ;save printer resource handle.
call MemLock ;
mov ds,ax ;get segment address of print resource.
mov al,es:[PS_mode] ;get the mode for this document.
EC< cmp al,PM_GRAPHICS_HI_RES ;see if its a graphic mode.>
EC< ERROR_A INVALID_MODE >
clr ah ;set up for index.
mov si,ax ;into index reg.
mov si,ds:[PI_firstMode][si] ;get index for table of info for this
;mode.
EC< tst si ;see if feature not supported. >
EC< ERROR_Z FEATURE_NOT_SUPPORTED >
clr ah
mov al,ds:[si][GP_bandHeight] ;get the size of the print data for
mov es:[PS_bandHeight],ax
mov al,ds:[si][GP_buffHeight] ;get the size of the band buffer
mov es:[PS_buffHeight],ax
mov al,ds:[si][GP_interleaveFactor] ;get the number of
; interleaves
mov es:[PS_interleaveFactor],ax
pop bx
call MemUnlock ;unlock the printer info resource.
; get width, and calculate byte width of bitmap
mov ax, es:[PS_swath].B_width
mov bx, ax ;assume 8-bit bitmap
mov cl,es:[PS_swath].[B_type] ;see what kind of bitmap.
and cl,mask BM_FORMAT
cmp cl,BMF_8BIT ;8-bit or 24-bit?
je noRounding ;if so, then don't round.
cmp cl,BMF_24BIT
je noRounding
cmp cl,BMF_4BIT ;4-bit rounds by nibbles
jne not4bit
inc ax ; round up to next byte boundary
and al, 0xfe
jmp noRounding
not4bit: ;all other formats:
add ax, 7 ; round up to next byte boundary
and al, 0xf8
noRounding:
mov es:[PS_bandWidth], ax ; load the dot width.
cmp cl,BMF_8BIT ;8-bit:
je setBWidth ; byte width = dot width
cmp cl,BMF_24BIT ;24-bit:
jne not24bit
mov cx, ax ; byte width = 3 * dot width
add ax, ax
add ax, cx
jmp setBWidth
not24bit:
cmp cl,BMF_4BIT ;4-bit:
jne mustBeOneBit
shr ax, 1 ; byte width = dot width / 2
jmp setBWidth
mustBeOneBit: ;all other formats are 1-bit:
mov cl, 3 ; divide by 8....
shr ax, cl ; to obtain the byte width.
setBWidth:
mov es:[PS_bandBWidth], ax
; calculate the #bands
mov ax,es:[PS_swath].B_height ; get the height of bitmap.
clr dx ; dx:ax = divisor
div es:[PS_bandHeight] ;get number of bands in this
mov cx,ax ;swath for counter.
; dx has remainder of division
; this is the #scans
.leave
ret
PrLoadPstateVars endp
| 30.110465 | 80 | 0.569222 |
81d1ea3d2f9a4f891ae401cf4952f7503ad00873 | 255 | asm | Assembly | libsrc/_DEVELOPMENT/stdio/c/sccz80/fsetpos_unlocked_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/stdio/c/sccz80/fsetpos_unlocked_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/stdio/c/sccz80/fsetpos_unlocked_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; int fsetpos_unlocked(FILE *stream, const fpos_t *pos)
SECTION code_clib
SECTION code_stdio
PUBLIC fsetpos_unlocked_callee
EXTERN asm_fsetpos_unlocked
fsetpos_unlocked_callee:
pop af
pop hl
pop ix
push af
jp asm_fsetpos_unlocked
| 13.421053 | 55 | 0.772549 |
8cbf2a400e0e8a0b3804e2773dfd210d6719068c | 87,633 | asm | Assembly | source/rom22/rom22_intro_cutscene_texture_data.asm | evanbowman/Red | 85735269a46757305a81ad39f47034bc6cd97846 | [
"BSD-2-Clause"
] | 5 | 2021-08-30T16:18:55.000Z | 2021-10-30T20:23:32.000Z | source/rom22/rom22_intro_cutscene_texture_data.asm | evanbowman/gbc-project | 85735269a46757305a81ad39f47034bc6cd97846 | [
"BSD-2-Clause"
] | null | null | null | source/rom22/rom22_intro_cutscene_texture_data.asm | evanbowman/gbc-project | 85735269a46757305a81ad39f47034bc6cd97846 | [
"BSD-2-Clause"
] | null | null | null | SECTION "INTRO_CUTSCENE_2_TILECOUNTS", ROMX, BANK[22]
;;; Generated by cutscene.py
r22_cutscene_face_texture_offsets::
DB $00, $00, $C0, $04, $80, $09, $60, $0E, $30, $13, $00, $18, $D0, $1C, $B0, $21, $60, $26, $10, $2B, $C0, $2F, $80, $34, $30, $39, $D0, $3D,
SECTION "INTRO_CUTSCENE_2_TEXTURES", ROMX, ALIGN[8], BANK[22]
;;; Generated by cutscene.py
r22_cutscene_face_tile_textures::
.face_0
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $0F, $0F, $0F, $0F, $1F, $1F, $1F, $1F, $1F, $1F, $3F, $3F, $3F, $3F, $7F, $7F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC, $FF, $E0, $FF,
DB $FE, $FF, $F8, $FF, $F0, $FF, $E0, $FF, $C0, $FF, $80, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $1F,
DB $1F, $FF, $03, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $3F, $FF, $1F, $FF, $03, $FF, $01, $FB, $00, $73,
DB $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $E0, $E0, $E0, $E0, $E0, $E0,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FE, $FF, $FC, $FF, $FC, $FF, $F8, $FF,
DB $C0, $FF, $C0, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F0, $00, $C0, $00, $60,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FC, $00, $F8, $00, $C0, $00, $00, $00, $03, $00, $0F,
DB $00, $E0, $00, $80, $00, $01, $00, $07, $00, $0F, $00, $7F, $00, $FF, $00, $FF,
DB $00, $3F, $00, $3F, $00, $FF, $00, $FF, $00, $FF, $00, $F8, $00, $C1, $00, $03,
DB $00, $FE, $00, $FC, $00, $F8, $00, $F0, $00, $E0, $00, $C0, $00, $80, $00, $00,
DB $00, $73, $00, $63, $00, $C3, $02, $81, $00, $01, $00, $01, $00, $01, $00, $01,
DB $FF, $FF, $FF, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $1F, $FF, $1F, $FF, $0F, $FF,
DB $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0,
DB $F0, $FE, $F0, $F8, $F0, $F8, $E0, $E8, $E0, $E8, $C0, $D8, $C0, $D0, $80, $90,
DB $00, $18, $00, $0E, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $01, $00, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $00, $FE, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FC, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $06, $00, $1E, $00, $FC, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $0F, $FF, $0F, $FF, $0F, $FF, $07, $FF, $07, $7F, $07, $7F, $07, $7F, $07, $7F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $FF, $FF, $FF, $FF, $FE, $FE, $FE, $FE, $FC, $FC, $F8, $FD, $F8, $FD, $F8, $FE,
DB $00, $10, $00, $30, $00, $20, $00, $40, $00, $C0, $00, $00, $00, $00, $00, $00,
DB $00, $0F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FC, $00, $1F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $F8, $00, $7E, $00, $1F, $00, $03, $01, $00, $08, $00, $04, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $00, $F0, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $03, $00, $07, $00, $1E, $00, $7C, $00, $00,
DB $00, $00, $00, $01, $00, $FF, $00, $F0, $40, $80, $00, $00, $00, $00, $60, $00,
DB $00, $00, $00, $FF, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $07, $7F, $07, $FF, $0F, $7F, $0F, $7F, $8F, $7F, $0F, $FF, $0F, $FF, $1F, $FF,
DB $F8, $F8, $F8, $F8, $FC, $FC, $FC, $FC, $FC, $FC, $FE, $FE, $FE, $FE, $FE, $FE,
DB $F0, $FE, $F0, $FC, $E0, $FC, $E0, $FC, $E0, $FC, $E0, $FE, $E0, $FE, $E0, $FF,
DB $00, $00, $00, $1F, $00, $01, $00, $00, $00, $07, $00, $0F, $00, $0F, $00, $0F,
DB $00, $00, $00, $C0, $00, $F8, $00, $00, $00, $80, $00, $00, $00, $C0, $00, $C0,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $00, $00, $00, $00, $00,
DB $80, $00, $00, $00, $00, $1F, $00, $FC, $00, $00, $00, $3C, $00, $78, $00, $7E,
DB $01, $00, $00, $01, $00, $C1, $02, $01, $02, $01, $00, $03, $00, $03, $00, $03,
DB $1F, $FF, $1F, $FF, $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE,
DB $E0, $FF, $E0, $FF, $E0, $FF, $E0, $FF, $E0, $FF, $E0, $FF, $C0, $FF, $C0, $FF,
DB $00, $80, $00, $80, $00, $C0, $00, $C0, $00, $E0, $00, $E0, $00, $F0, $00, $F0,
DB $00, $0F, $00, $07, $00, $08, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $C0, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $02, $00, $02, $00, $02, $00, $02, $00, $02, $00, $03, $00,
DB $00, $7E, $00, $7C, $00, $3C, $00, $02, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $03, $00, $03, $00, $03, $02, $03, $00, $01, $00, $01, $00, $01,
DB $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $1F, $FF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FF, $FF,
DB $C0, $FF, $C0, $FF, $C0, $FF, $C0, $FF, $C0, $FF, $C0, $FF, $C0, $FF, $C0, $FF,
DB $00, $F8, $00, $FC, $00, $FE, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $00, $E0, $00, $F0, $00, $F8,
DB $03, $00, $03, $00, $03, $00, $03, $00, $03, $00, $03, $00, $03, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80, $00, $80, $00,
DB $0F, $FF, $07, $FF, $03, $FF, $0C, $FF, $06, $7F, $03, $7F, $01, $7F, $00, $7F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $1F, $FF, $CF, $FF, $E7, $FF, $F1, $FF,
DB $00, $00, $80, $80, $80, $80, $C0, $C0, $F0, $F0, $F8, $F8, $F8, $F8, $FC, $FC,
DB $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF,
DB $00, $FC, $00, $FC, $00, $FE, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $E0,
DB $80, $00, $C0, $00, $40, $00, $40, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $80, $7F, $80, $7F, $80, $7F, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $7E, $FF, $3E, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $FE, $FE, $3F, $FF, $BF, $FF, $1F, $FF, $1F, $FF, $0F, $FF, $07, $FF, $01, $FF,
DB $00, $00, $80, $80, $C0, $C0, $F0, $F0, $F8, $F8, $FC, $FC, $FE, $FE, $FE, $FE,
.face_1
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $0F, $0F, $0F, $0F, $1F, $1F, $1F, $1F, $1F, $1F, $3F, $3F, $3F, $3F, $7F, $7F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $E0, $FF,
DB $FF, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $C0, $FF, $80, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $1F,
DB $1F, $FF, $03, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $3F, $FF, $1F, $FF, $03, $FF, $01, $FB, $00, $7B,
DB $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $E0, $E0, $E0, $E0, $E0, $E0,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FC, $FF, $FC, $FF, $F8, $FF, $F8, $FF,
DB $C0, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8, $00, $C0, $00, $60,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FE, $00, $F8, $00, $E0, $00, $00, $00, $01, $00, $07,
DB $00, $E0, $00, $80, $00, $01, $00, $07, $00, $0F, $00, $3F, $00, $FF, $00, $FF,
DB $00, $3F, $00, $3F, $00, $FF, $00, $FF, $00, $FF, $00, $F8, $00, $C0, $00, $01,
DB $00, $FE, $00, $FE, $00, $FC, $00, $F8, $00, $F0, $00, $E0, $00, $C0, $00, $80,
DB $00, $73, $00, $73, $00, $63, $02, $41, $00, $01, $00, $01, $00, $01, $00, $01,
DB $FF, $FF, $FF, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $1F, $FF, $1F, $FF, $0F, $FF,
DB $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0,
DB $F0, $FE, $F0, $F8, $F0, $F8, $E0, $E8, $E0, $E8, $C0, $C8, $C0, $D0, $80, $90,
DB $00, $18, $00, $0F, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $01, $00, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $00, $FF, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FE, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $07, $00, $0E, $00, $7C, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $0F, $FF, $0F, $FF, $0F, $FF, $07, $FF, $07, $7F, $07, $7F, $07, $7F, $07, $7F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $FF, $FF, $FF, $FF, $FE, $FE, $FE, $FE, $FC, $FC, $F8, $FC, $F8, $FD, $F8, $FF,
DB $00, $10, $00, $10, $00, $30, $00, $20, $00, $60, $00, $C0, $00, $80, $00, $00,
DB $00, $0F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FC, $00, $1F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $F8, $00, $7E, $00, $1F, $00, $03, $01, $00, $08, $00, $04, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $00, $F0, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $03, $00, $07, $00, $1E, $00, $7C, $00, $00,
DB $00, $00, $00, $01, $00, $FF, $00, $F0, $40, $80, $00, $00, $00, $00, $60, $00,
DB $00, $00, $00, $FF, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $07, $7F, $07, $FF, $0F, $7F, $0F, $7F, $8F, $7F, $0F, $FF, $0F, $FF, $1F, $FF,
DB $F8, $F8, $F8, $F8, $FC, $FC, $FC, $FC, $FC, $FC, $FE, $FE, $FE, $FE, $FE, $FE,
DB $F0, $FE, $F0, $FC, $E0, $FC, $E0, $FC, $E0, $FC, $E0, $FE, $E0, $FE, $E0, $FF,
DB $00, $00, $00, $1F, $00, $01, $00, $00, $00, $07, $00, $0F, $00, $0F, $00, $0F,
DB $00, $00, $00, $C0, $00, $F8, $00, $00, $00, $80, $00, $00, $00, $C0, $00, $C0,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $00, $00, $00, $00, $00,
DB $80, $00, $00, $00, $00, $1F, $00, $FC, $00, $00, $00, $3C, $00, $78, $00, $7E,
DB $01, $00, $00, $01, $00, $C1, $02, $01, $02, $01, $00, $03, $00, $03, $00, $03,
DB $1F, $FF, $1F, $FF, $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE,
DB $E0, $FF, $E0, $FF, $E0, $FF, $C0, $FF, $C0, $FF, $C0, $FF, $C0, $FF, $C0, $FF,
DB $00, $00, $00, $00, $00, $80, $00, $80, $00, $C0, $00, $C0, $00, $E0, $00, $F0,
DB $00, $0F, $00, $07, $00, $08, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $C0, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $02, $00, $02, $00, $02, $00, $02, $00, $02, $00, $03, $00,
DB $00, $7E, $00, $7C, $00, $3C, $00, $02, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $03, $00, $03, $00, $03, $02, $03, $00, $01, $00, $01, $00, $01,
DB $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $1F, $FF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FF, $FF,
DB $C0, $FF, $C0, $FF, $C0, $FF, $C0, $FF, $C0, $FF, $80, $FF, $80, $FF, $80, $FF,
DB $00, $F8, $00, $FC, $00, $FC, $00, $FE, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $E0,
DB $03, $00, $03, $00, $03, $00, $03, $00, $03, $00, $03, $00, $03, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80, $00, $80, $00,
DB $0F, $FF, $07, $FF, $03, $FF, $19, $FF, $0E, $7F, $07, $7F, $03, $7F, $01, $7F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $3F, $FF, $8F, $FF, $E7, $FF, $F7, $FF,
DB $00, $00, $80, $80, $80, $80, $C0, $C0, $F0, $F0, $F8, $F8, $F8, $F8, $FC, $FC,
DB $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF,
DB $00, $F0, $00, $FC, $00, $FE, $00, $FE, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80, $00, $C0,
DB $80, $00, $C0, $00, $40, $00, $40, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $80, $7F, $80, $7F, $80, $7F, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $F9, $FF, $7C, $FF, $1F, $FF, $07, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $FE, $FE, $FF, $FF, $7F, $FF, $3F, $FF, $1F, $FF, $1F, $FF, $0F, $FF, $03, $FF,
DB $00, $00, $80, $80, $C0, $C0, $F0, $F0, $F8, $F8, $FC, $FC, $FE, $FE, $FE, $FE,
.face_2
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $1F, $1F, $1F, $1F, $3F, $3F, $3F, $3F, $3F, $3F, $7F, $7F, $7F, $7F, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC, $FF, $C0, $FF,
DB $FE, $FF, $F8, $FF, $F0, $FF, $E0, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $3F,
DB $3F, $FF, $07, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE,
DB $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF, $07, $FF, $03, $F7, $01, $F7,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $C0, $C0, $C0, $C0, $C0, $C0,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FF, $FF, $FE, $FF, $FC, $FF, $F8, $FF, $F8, $FF, $F0, $FF, $F0, $FF,
DB $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8, $00, $80, $00, $C0,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FC, $00, $F0, $00, $C0, $00, $00, $00, $01, $00, $07,
DB $00, $C0, $00, $00, $00, $01, $00, $07, $00, $1F, $00, $7F, $00, $FF, $00, $FF,
DB $00, $7F, $00, $7F, $00, $FF, $00, $FF, $00, $FF, $00, $F1, $00, $C1, $00, $03,
DB $00, $FC, $00, $FC, $00, $F8, $00, $F0, $00, $E0, $00, $C0, $00, $80, $00, $80,
DB $01, $E7, $01, $E7, $00, $C7, $04, $C3, $00, $03, $00, $03, $00, $03, $00, $03,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF, $3F, $FF, $1F, $FF,
DB $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0,
DB $E0, $FE, $E0, $F0, $E0, $F0, $C0, $D0, $C0, $D0, $80, $90, $80, $90, $00, $20,
DB $00, $30, $00, $1C, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $01, $00, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $00, $FF, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FE, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $07, $00, $06, $00, $1C, $00, $78, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $01, $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00,
DB $1F, $FF, $1F, $FF, $1F, $FF, $0F, $FF, $0F, $FF, $0F, $FF, $0F, $FF, $0F, $FF,
DB $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0,
DB $FE, $FE, $FE, $FE, $FC, $FC, $FC, $FC, $F8, $F8, $F0, $F8, $F0, $F9, $F0, $FF,
DB $00, $20, $00, $20, $00, $60, $00, $40, $00, $C0, $00, $80, $00, $80, $00, $00,
DB $00, $1F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F8, $00, $3F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $F0, $00, $FC, $00, $3E, $00, $07, $02, $01, $10, $00, $08, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $E0, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $01, $00, $07, $00, $0F, $00, $3C, $00, $F8, $00, $00,
DB $00, $00, $00, $03, $00, $FF, $00, $E0, $80, $00, $00, $00, $00, $00, $C0, $00,
DB $00, $00, $00, $FF, $00, $80, $00, $00, $01, $00, $00, $01, $00, $01, $00, $01,
DB $0F, $FF, $0F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $3F, $FF,
DB $F0, $F0, $F0, $F0, $F8, $F8, $F8, $F8, $F8, $F8, $FC, $FC, $FC, $FC, $FC, $FC,
DB $E0, $FE, $E0, $FC, $C0, $F8, $C0, $F8, $C0, $F8, $C0, $F8, $C0, $FC, $C0, $FC,
DB $00, $00, $00, $3F, $00, $03, $00, $00, $00, $0F, $00, $1E, $00, $1F, $00, $1F,
DB $00, $00, $00, $80, $00, $F0, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $00, $00, $00, $02, $00, $00,
DB $01, $00, $00, $00, $00, $00, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $3F, $00, $F8, $00, $00, $00, $78, $00, $F0, $00, $FC,
DB $02, $01, $00, $03, $00, $83, $04, $03, $04, $03, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC,
DB $C0, $FC, $C0, $FE, $80, $FE, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80, $00, $C0, $00, $E0,
DB $00, $1F, $00, $0F, $00, $10, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $04, $00, $04, $00, $04, $00, $04, $00, $04, $00, $06, $00,
DB $00, $FC, $00, $F8, $00, $78, $00, $04, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $07, $00, $07, $00, $07, $00, $07, $04, $07, $00, $03, $00, $03, $00, $03,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF,
DB $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FE, $FE,
DB $80, $FF, $80, $FF, $80, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $E0, $00, $F0, $00, $F8, $00, $F8, $00, $FC, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0,
DB $06, $00, $06, $00, $06, $00, $06, $00, $06, $00, $07, $00, $07, $00, $01, $00,
DB $00, $01, $00, $01, $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00,
DB $1F, $FF, $0F, $FF, $07, $FF, $21, $FF, $18, $FF, $1F, $FF, $0F, $FF, $07, $FF,
DB $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF, $DF, $FF, $EF, $FF,
DB $00, $00, $00, $00, $00, $00, $80, $80, $E0, $E0, $F0, $F0, $F0, $F0, $F8, $F8,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FE, $FF,
DB $00, $E0, $00, $F0, $00, $F8, $00, $FC, $00, $FE, $00, $FE, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80,
DB $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $80, $00, $80, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $01, $00, $01, $00, $01, $00, $00, $01, $00, $01, $00, $01, $00, $01,
DB $03, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $E7, $FF, $F3, $FF, $79, $FF, $1C, $FF, $06, $FF, $01, $FF, $00, $FF, $00, $FF,
DB $FC, $FC, $FF, $FF, $FF, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $3F, $FF, $1F, $FF,
DB $00, $00, $00, $00, $80, $80, $E0, $E0, $F0, $F0, $F8, $F8, $FC, $FC, $FC, $FC,
.face_3
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $1F, $1F, $1F, $1F, $3F, $3F, $3F, $3F, $3F, $3F, $7F, $7F, $7F, $7F, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $F8, $FF, $C0, $FF,
DB $FE, $FF, $F8, $FF, $F0, $FF, $E0, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $3F,
DB $3F, $FF, $07, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE,
DB $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF, $07, $FF, $03, $F7, $01, $F7,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $C0, $C0, $C0, $C0, $C0, $C0,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FF, $FF, $FE, $FF, $FC, $FF, $F8, $FF, $F8, $FF, $F0, $FF, $F0, $FF,
DB $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8, $00, $80, $00, $C0,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FC, $00, $F0, $00, $80, $00, $00, $00, $01, $00, $07,
DB $00, $C0, $00, $00, $00, $01, $00, $07, $00, $1F, $00, $7F, $00, $FF, $00, $FF,
DB $00, $7F, $00, $7F, $00, $FF, $00, $FF, $00, $FF, $00, $F1, $00, $C1, $00, $03,
DB $00, $FC, $00, $FC, $00, $F8, $00, $F0, $00, $E0, $00, $C0, $00, $C0, $00, $80,
DB $01, $77, $01, $E7, $00, $E7, $04, $C3, $00, $03, $00, $03, $00, $03, $00, $03,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF, $3F, $FF, $1F, $FF,
DB $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0,
DB $E0, $FE, $E0, $F0, $E0, $F0, $C0, $D0, $C0, $D0, $80, $90, $80, $90, $00, $10,
DB $00, $70, $00, $1C, $00, $07, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $01, $00, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $00, $FF, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FC, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $07, $00, $06, $00, $1C, $00, $70, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $01, $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00,
DB $1F, $FF, $1F, $FF, $1F, $FF, $0F, $FF, $0F, $FF, $0F, $FF, $0F, $FF, $0F, $FF,
DB $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0,
DB $FE, $FE, $FE, $FE, $FC, $FC, $FC, $FC, $F8, $F8, $F0, $F8, $F0, $F8, $F0, $FF,
DB $00, $20, $00, $20, $00, $20, $00, $60, $00, $40, $00, $C0, $00, $80, $00, $80,
DB $00, $1F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F8, $00, $3F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $F0, $00, $FC, $00, $3E, $00, $07, $02, $01, $10, $00, $08, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $E0, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $01, $00, $07, $00, $0F, $00, $3C, $00, $F8, $00, $00,
DB $00, $00, $00, $03, $00, $FF, $00, $E0, $80, $00, $00, $00, $00, $00, $C0, $00,
DB $00, $00, $00, $FF, $00, $80, $00, $00, $01, $00, $00, $01, $00, $01, $00, $01,
DB $0F, $FF, $0F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $3F, $FF,
DB $F0, $F0, $F0, $F0, $F8, $F8, $F8, $F8, $F8, $F8, $FC, $FC, $FC, $FC, $FC, $FC,
DB $E0, $FE, $E0, $FC, $C0, $F8, $C0, $F8, $C0, $F8, $C0, $F8, $C0, $FC, $C0, $FC,
DB $00, $00, $00, $3F, $00, $03, $00, $00, $00, $0F, $00, $1E, $00, $1F, $00, $1F,
DB $00, $00, $00, $80, $00, $F0, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $00, $00, $00, $02, $00, $00,
DB $01, $00, $00, $00, $00, $00, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $3F, $00, $F8, $00, $00, $00, $78, $00, $F0, $00, $FC,
DB $02, $01, $00, $03, $00, $83, $04, $03, $04, $03, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC,
DB $C0, $FC, $C0, $FE, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $C0, $00, $E0,
DB $00, $1F, $00, $0F, $00, $10, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $04, $00, $04, $00, $04, $00, $04, $00, $04, $00, $06, $00,
DB $00, $FC, $00, $F8, $00, $78, $00, $04, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $07, $00, $07, $00, $07, $00, $07, $04, $07, $00, $03, $00, $03, $00, $03,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $7F, $FF, $3F, $FF,
DB $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FE, $FE,
DB $80, $FF, $80, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $F0, $00, $F8, $00, $F8, $00, $FC, $00, $FC, $00, $FE, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80,
DB $06, $00, $06, $00, $06, $00, $06, $00, $06, $00, $07, $00, $07, $00, $01, $00,
DB $00, $01, $00, $01, $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00,
DB $1F, $FF, $0F, $FF, $07, $FF, $21, $FF, $18, $FF, $0E, $FF, $07, $FF, $07, $FF,
DB $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $BF, $FF, $CF, $FF,
DB $00, $00, $00, $00, $00, $00, $80, $80, $E0, $E0, $F0, $F0, $F0, $F0, $F8, $F8,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF,
DB $00, $C0, $00, $E0, $00, $F0, $00, $F8, $00, $FC, $00, $FE, $00, $FE, $00, $FF,
DB $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $80, $00, $80, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $01, $00, $01, $00, $01, $00, $00, $01, $00, $01, $00, $01, $00, $01,
DB $03, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $E7, $FF, $F7, $FF, $FB, $FF, $79, $FF, $3C, $FF, $04, $FF, $00, $FF, $00, $FF,
DB $FC, $FC, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF,
DB $00, $00, $00, $00, $80, $80, $E0, $E0, $F0, $F0, $F8, $F8, $FC, $FC, $FC, $FC,
.face_4
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $3F, $3F, $3F, $3F, $7F, $7F, $7F, $7F, $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC, $FF, $F0, $FF, $80, $FF,
DB $FC, $FF, $F0, $FF, $E0, $FF, $C0, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F0,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $7F,
DB $7F, $FF, $0F, $FF, $03, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FD,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $0F, $FF, $07, $EF, $03, $EF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $80, $80, $80, $80,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FE, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $F0, $FF, $E0, $FF, $E0, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FD,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F0, $00, $00, $00, $80,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FE, $00, $F8, $00, $E0, $00, $00, $00, $00, $00, $03, $00, $1F,
DB $00, $80, $00, $00, $00, $03, $00, $0F, $00, $3F, $00, $FF, $00, $FF, $00, $FE,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E3, $00, $83, $00, $07,
DB $00, $F9, $00, $F9, $00, $F1, $00, $E1, $00, $C0, $00, $80, $00, $80, $00, $00,
DB $03, $CF, $03, $CF, $01, $8F, $09, $87, $00, $07, $00, $07, $00, $07, $00, $07,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $7F, $FF, $3F, $FF,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE,
DB $C0, $FC, $C0, $E0, $C0, $E0, $80, $A0, $80, $A0, $00, $20, $00, $20, $00, $20,
DB $00, $E0, $00, $70, $00, $0F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $07, $00, $FE, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F8, $00, $00, $00, $00, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $0E, $00, $1C, $00, $78, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $07, $00, $03, $00, $03, $00, $03, $00, $01, $00, $01, $00, $01, $00, $01,
DB $3F, $FF, $3F, $FF, $3F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF,
DB $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0,
DB $FC, $FC, $FC, $FC, $F8, $F8, $F8, $F8, $F0, $F0, $E0, $F1, $E0, $F3, $E0, $FE,
DB $00, $20, $00, $40, $00, $40, $00, $C0, $00, $C0, $00, $80, $00, $00, $00, $00,
DB $00, $3F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $7F, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $E0, $00, $F8, $00, $7C, $00, $0F, $04, $03, $20, $00, $10, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $00, $00,
DB $00, $00, $00, $00, $00, $03, $00, $0F, $01, $1E, $00, $78, $00, $F0, $01, $00,
DB $00, $00, $00, $07, $00, $FF, $00, $C0, $00, $00, $00, $00, $00, $00, $80, $00,
DB $00, $01, $00, $FF, $00, $01, $00, $01, $02, $01, $00, $03, $00, $03, $00, $03,
DB $1F, $FF, $1F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $7F, $FF,
DB $E0, $E0, $E0, $E0, $F0, $F0, $F0, $F0, $F0, $F0, $F8, $F8, $F8, $F8, $F8, $F8,
DB $C0, $F8, $C0, $F0, $80, $F0, $80, $F0, $80, $F8, $80, $F8, $80, $F8, $80, $F8,
DB $00, $00, $00, $7F, $00, $07, $00, $00, $00, $1E, $00, $3C, $00, $3F, $00, $3F,
DB $00, $00, $00, $00, $00, $E0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $02, $00, $00, $00, $04, $00, $00,
DB $02, $00, $00, $00, $00, $00, $00, $03, $00, $00, $00, $00, $00, $01, $00, $01,
DB $00, $00, $00, $00, $00, $7F, $00, $F0, $00, $00, $00, $F0, $00, $E0, $00, $F8,
DB $04, $03, $00, $07, $00, $07, $08, $07, $09, $07, $01, $0F, $01, $0F, $01, $0F,
DB $7F, $FF, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8,
DB $80, $FC, $80, $FC, $80, $FE, $80, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80, $00, $C0, $00, $E0,
DB $00, $3F, $00, $1E, $00, $20, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $08, $00, $08, $00, $08, $00, $08, $00, $08, $00, $0C, $00,
DB $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F8, $00, $F0, $00, $F0, $00, $08, $00, $00, $00, $00, $00, $00, $00, $00,
DB $01, $0F, $01, $0F, $01, $0F, $01, $0F, $09, $0F, $01, $07, $00, $07, $00, $07,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $FC, $FC,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF,
DB $00, $E0, $00, $F0, $00, $F0, $00, $F8, $00, $FC, $00, $FE, $00, $FE, $00, $FF,
DB $0C, $00, $0C, $00, $0C, $00, $0C, $00, $0C, $00, $0E, $00, $0E, $00, $02, $00,
DB $00, $03, $00, $03, $00, $03, $00, $03, $00, $01, $00, $01, $00, $01, $00, $01,
DB $3F, $FF, $1F, $FF, $0F, $FF, $43, $FF, $31, $FF, $1C, $FF, $0F, $FF, $07, $FF,
DB $FC, $FC, $FE, $FE, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $E0, $E0, $F0, $F0,
DB $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FC, $FF, $FC, $FF,
DB $00, $00, $00, $80, $00, $C0, $00, $E0, $00, $F0, $00, $F0, $00, $FC, $00, $FE,
DB $02, $00, $03, $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $01, $02, $01, $02, $01, $02, $01, $00, $03, $00, $03, $00, $03, $00, $03,
DB $03, $FF, $03, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $9F, $FF, $DF, $FF, $CF, $FF, $E7, $FF, $63, $FF, $01, $FF, $00, $FF, $00, $FF,
DB $F8, $F8, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $F0, $F0, $F8, $F8, $F8, $F8,
.face_5
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $3F, $3F, $3F, $3F, $7F, $7F, $7F, $7F, $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FC, $FF, $F0, $FF, $80, $FF,
DB $FC, $FF, $F0, $FF, $E0, $FF, $C0, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F0,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $7F,
DB $7F, $FF, $0F, $FF, $03, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FD,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $0F, $FF, $07, $EF, $03, $EF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $80, $80, $80, $80,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FE, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $F0, $FF, $E0, $FF, $E0, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FD,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F0, $00, $00, $00, $80,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FE, $00, $F8, $00, $E0, $00, $00, $00, $00, $00, $03, $00, $1F,
DB $00, $80, $00, $00, $00, $03, $00, $0F, $00, $3F, $00, $FF, $00, $FF, $00, $FE,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E3, $00, $87, $00, $07,
DB $00, $F9, $00, $F9, $00, $F1, $00, $E1, $00, $C0, $00, $80, $00, $00, $00, $00,
DB $03, $CF, $03, $CF, $01, $8F, $09, $87, $00, $07, $00, $07, $00, $07, $00, $07,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $7F, $FF, $3F, $FF,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE,
DB $C0, $FC, $C0, $E0, $C0, $E0, $80, $A0, $80, $A0, $00, $20, $00, $20, $00, $20,
DB $00, $E0, $00, $78, $00, $0F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $0F, $00, $FC, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F8, $00, $00, $00, $00, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $0E, $00, $1C, $00, $F0, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $07, $00, $03, $00, $03, $00, $03, $00, $01, $00, $01, $00, $01, $00, $01,
DB $3F, $FF, $3F, $FF, $3F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF,
DB $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0,
DB $FC, $FC, $FC, $FC, $F8, $F8, $F8, $F8, $F0, $F0, $E0, $F0, $E0, $F3, $E0, $FE,
DB $00, $20, $00, $20, $00, $60, $00, $40, $00, $C0, $00, $C0, $00, $80, $00, $00,
DB $00, $3F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $7F, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $E0, $00, $F8, $00, $7C, $00, $0F, $04, $03, $20, $00, $10, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $00, $00,
DB $00, $00, $00, $00, $00, $03, $00, $0F, $01, $1E, $00, $78, $00, $F0, $01, $00,
DB $00, $00, $00, $07, $00, $FF, $00, $C0, $00, $00, $00, $00, $00, $00, $80, $00,
DB $00, $01, $00, $FF, $00, $01, $00, $01, $02, $01, $00, $03, $00, $03, $00, $03,
DB $1F, $FF, $1F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $7F, $FF,
DB $E0, $E0, $E0, $E0, $F0, $F0, $F0, $F0, $F0, $F0, $F8, $F8, $F8, $F8, $F8, $F8,
DB $C0, $F8, $C0, $F0, $C0, $F0, $C0, $F0, $C0, $F8, $80, $F8, $80, $F8, $80, $F8,
DB $00, $00, $00, $7F, $00, $07, $00, $00, $00, $1E, $00, $3C, $00, $3F, $00, $3F,
DB $00, $00, $00, $00, $00, $E0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $02, $00, $00, $00, $04, $00, $00,
DB $02, $00, $00, $00, $00, $00, $00, $03, $00, $00, $00, $00, $00, $01, $00, $01,
DB $00, $00, $00, $00, $00, $7F, $00, $F0, $00, $00, $00, $F0, $00, $E0, $00, $F8,
DB $04, $03, $00, $07, $00, $07, $08, $07, $09, $07, $01, $0F, $01, $0F, $01, $0F,
DB $7F, $FF, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8,
DB $80, $FC, $80, $FC, $80, $FE, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $80, $00, $80, $00, $C0, $00, $E0, $00, $F0,
DB $00, $3F, $00, $1E, $00, $20, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $08, $00, $08, $00, $08, $00, $08, $00, $08, $00, $0C, $00,
DB $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F8, $00, $F0, $00, $F0, $00, $08, $00, $00, $00, $00, $00, $00, $00, $00,
DB $01, $0F, $01, $0F, $01, $0F, $01, $0F, $09, $0F, $01, $07, $00, $07, $00, $07,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $FC, $FC,
DB $80, $FF, $80, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $F8, $00, $F8, $00, $F4, $00, $FA, $00, $FE, $00, $FF, $00, $FF, $00, $FF,
DB $0C, $00, $0C, $00, $0C, $00, $0C, $00, $0C, $00, $0E, $00, $0E, $00, $02, $00,
DB $00, $03, $00, $03, $00, $03, $00, $03, $00, $01, $00, $01, $00, $01, $00, $01,
DB $3F, $FF, $1F, $FF, $0F, $FF, $07, $FF, $33, $FF, $1D, $FF, $0C, $FF, $06, $FF,
DB $FC, $FC, $FE, $FE, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $E0, $E0, $F0, $F0,
DB $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FC, $FF,
DB $00, $80, $00, $80, $00, $C0, $00, $E0, $00, $F0, $00, $F0, $00, $FC, $00, $FE,
DB $02, $00, $03, $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $01, $02, $01, $02, $01, $02, $01, $00, $03, $00, $03, $00, $03, $00, $03,
DB $03, $FF, $01, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $3F, $FF, $9F, $FF, $CF, $FF, $C7, $FF, $67, $FF, $03, $FF, $01, $FF, $00, $FF,
DB $F8, $F8, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $F0, $F0, $F8, $F8, $F8, $F8,
.face_6
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $3F, $3F, $3F, $3F, $7F, $7F, $7F, $7F, $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $F8, $FF, $80, $FF,
DB $FC, $FF, $F0, $FF, $E0, $FF, $C0, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F0,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $7F,
DB $7F, $FF, $0F, $FF, $03, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FD,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $0F, $FF, $07, $EF, $03, $EF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $80, $80, $80, $80,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FE, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $F0, $FF, $E0, $FF, $E0, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FD,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F0, $00, $00, $00, $80,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FE, $00, $F8, $00, $E0, $00, $00, $00, $00, $00, $03, $00, $1F,
DB $00, $80, $00, $00, $00, $03, $00, $0F, $00, $3F, $00, $FF, $00, $FF, $00, $FE,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E3, $00, $87, $00, $07,
DB $00, $F9, $00, $F9, $00, $F1, $00, $E1, $00, $C0, $00, $80, $00, $00, $00, $00,
DB $03, $CF, $03, $CF, $01, $8F, $09, $07, $00, $07, $00, $07, $00, $07, $00, $07,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $7F, $FF, $3F, $FF,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE,
DB $C0, $FC, $C0, $E0, $C0, $E0, $80, $A0, $80, $A0, $00, $20, $00, $20, $00, $20,
DB $00, $E0, $00, $7C, $00, $07, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $01, $00, $1F, $00, $F8, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $00, $00, $00, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $0E, $00, $1C, $00, $F0, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $07, $00, $03, $00, $03, $00, $03, $00, $01, $00, $01, $00, $01, $00, $01,
DB $3F, $FF, $3F, $FF, $3F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF, $1F, $FF,
DB $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0, $C0,
DB $FC, $FC, $FC, $FC, $F8, $F8, $F8, $F8, $F0, $F0, $E0, $F0, $E0, $F1, $E0, $FF,
DB $00, $20, $00, $20, $00, $20, $00, $60, $00, $60, $00, $C0, $00, $80, $00, $00,
DB $00, $3F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $7F, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $E0, $00, $F8, $00, $7C, $00, $0F, $04, $03, $20, $00, $10, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $00, $00,
DB $00, $00, $00, $00, $00, $03, $00, $0F, $01, $1E, $00, $78, $00, $F0, $01, $00,
DB $00, $00, $00, $07, $00, $FF, $00, $C0, $00, $00, $00, $00, $00, $00, $80, $00,
DB $00, $01, $00, $FF, $00, $01, $00, $01, $02, $01, $00, $03, $00, $03, $00, $03,
DB $1F, $FF, $1F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $7F, $FF,
DB $E0, $E0, $E0, $E0, $F0, $F0, $F0, $F0, $F0, $F0, $F8, $F8, $F8, $F8, $F8, $F8,
DB $C0, $F8, $C0, $F0, $C0, $F0, $C0, $F8, $C0, $F8, $C0, $F8, $C0, $F8, $C0, $FC,
DB $00, $00, $00, $7F, $00, $07, $00, $00, $00, $1E, $00, $3C, $00, $3F, $00, $3F,
DB $00, $00, $00, $00, $00, $E0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $02, $00, $00, $00, $04, $00, $00,
DB $02, $00, $00, $00, $00, $00, $00, $03, $00, $00, $00, $00, $00, $01, $00, $01,
DB $00, $00, $00, $00, $00, $7F, $00, $F0, $00, $00, $00, $F0, $00, $E0, $00, $F8,
DB $04, $03, $00, $07, $00, $07, $08, $07, $09, $07, $01, $0F, $01, $0F, $01, $0F,
DB $7F, $FF, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8,
DB $C0, $FC, $80, $FE, $80, $FE, $80, $FF, $80, $FF, $80, $FF, $80, $FF, $80, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $E0, $00, $F0, $00, $F8,
DB $00, $3F, $00, $1E, $00, $20, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $08, $00, $08, $00, $08, $00, $08, $00, $08, $00, $0C, $00,
DB $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F8, $00, $F0, $00, $F0, $00, $08, $00, $00, $00, $00, $00, $00, $00, $00,
DB $01, $0F, $01, $0F, $01, $0F, $01, $0F, $09, $0F, $01, $07, $00, $07, $00, $07,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $F8, $FC, $FC,
DB $80, $FF, $80, $FF, $80, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FC, $00, $F4, $00, $FA, $00, $F9, $00, $FF, $00, $FE, $00, $FE, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $C0, $00, $40,
DB $0C, $00, $0C, $00, $0C, $00, $0C, $00, $0C, $00, $0E, $00, $0E, $00, $02, $00,
DB $00, $03, $00, $03, $00, $03, $00, $03, $00, $01, $00, $01, $00, $01, $00, $01,
DB $3F, $FF, $1F, $FF, $0F, $FF, $07, $FF, $13, $FF, $0D, $FF, $05, $FF, $02, $FF,
DB $FC, $FC, $FE, $FE, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $E0, $E0, $F0, $F0,
DB $FF, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF,
DB $00, $E0, $00, $A0, $00, $E0, $00, $F0, $00, $F0, $00, $F8, $00, $FC, $00, $FF,
DB $02, $00, $03, $00, $01, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $01, $02, $01, $02, $01, $02, $01, $00, $03, $00, $03, $00, $03, $00, $03,
DB $01, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $3F, $FF, $9F, $FF, $DF, $FF, $CF, $FF, $67, $FF, $07, $FF, $01, $FF, $00, $FF,
DB $F8, $F8, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $C0, $C0, $E0, $E0, $F0, $F0, $F8, $F8, $F8, $F8,
.face_7
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $7F, $7F, $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FC, $FF, $F0, $FF, $80, $FF,
DB $F8, $FF, $E0, $FF, $C0, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E0,
DB $FF, $FF, $1F, $FF, $07, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FB,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $1F, $FF, $0F, $DF, $07, $DF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $E0, $FF, $E0, $FF, $C0, $FF, $C0, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $FB,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E0, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FC, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $F0, $00, $C0, $00, $00, $00, $01, $00, $07, $00, $3F,
DB $00, $01, $00, $01, $00, $07, $00, $1F, $00, $7F, $00, $FF, $00, $FF, $00, $FC,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $C7, $00, $0E, $00, $0E,
DB $00, $F3, $00, $F3, $00, $E3, $00, $C2, $00, $80, $00, $00, $00, $00, $00, $00,
DB $07, $9F, $07, $9F, $03, $1F, $13, $0F, $01, $0F, $00, $0F, $00, $0F, $00, $0F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE, $FE, $FE, $FC, $FC,
DB $80, $F8, $80, $C0, $80, $C0, $00, $40, $00, $40, $00, $40, $00, $40, $00, $40,
DB $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $C0, $00, $F8, $00, $0F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $7F, $00, $E0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $F8, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $E0, $00, $00, $00, $01, $00, $0E, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $1C, $00, $70, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $0F, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $7F, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80,
DB $F8, $F8, $F8, $F8, $F0, $F0, $F0, $F0, $E0, $E0, $C0, $E0, $C0, $E3, $C0, $FE,
DB $00, $40, $00, $40, $00, $C0, $00, $C0, $00, $80, $00, $80, $00, $00, $00, $00,
DB $00, $7F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $E0, $00, $FF, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $C0, $00, $F0, $00, $F8, $00, $1E, $08, $07, $40, $00, $20, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $00, $00,
DB $00, $00, $00, $00, $00, $07, $00, $1F, $02, $3C, $00, $F0, $00, $E0, $03, $00,
DB $00, $00, $00, $0F, $00, $FE, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $FF, $00, $03, $00, $03, $04, $03, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $FF, $FF,
DB $C0, $C0, $C0, $C0, $E0, $E0, $E0, $E0, $E0, $E0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $80, $F0, $80, $E0, $80, $E0, $80, $F0, $80, $F0, $80, $F0, $80, $F0, $80, $F8,
DB $00, $00, $00, $FE, $00, $0F, $00, $00, $00, $3C, $00, $78, $00, $7E, $00, $7E,
DB $00, $00, $00, $00, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $04, $00, $00, $00, $08, $00, $00,
DB $04, $00, $00, $00, $00, $00, $00, $07, $00, $00, $00, $01, $00, $03, $00, $03,
DB $00, $00, $00, $00, $00, $FE, $00, $E0, $00, $00, $00, $E0, $00, $C0, $00, $F0,
DB $08, $07, $00, $0F, $01, $0F, $11, $0F, $13, $0F, $03, $1F, $03, $1F, $03, $1F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $80, $F8, $80, $FC, $80, $FE, $80, $FE, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $E0, $00, $F0,
DB $00, $7E, $00, $3C, $00, $40, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $10, $00, $10, $00, $10, $00, $10, $00, $10, $00, $18, $00,
DB $00, $03, $00, $03, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $E0, $00, $E0, $00, $10, $00, $00, $00, $00, $00, $00, $00, $00,
DB $03, $1F, $03, $1F, $03, $1F, $03, $1F, $13, $1F, $01, $0F, $01, $0F, $00, $0F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F8, $F8,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF,
DB $00, $F8, $00, $EC, $00, $F6, $00, $FB, $00, $FF, $00, $FC, $00, $FE, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $40, $00, $60,
DB $18, $00, $18, $00, $18, $00, $18, $00, $18, $00, $1C, $00, $1C, $00, $04, $00,
DB $00, $07, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $7F, $FF, $3F, $FF, $1F, $FF, $0F, $FF, $07, $FF, $0B, $FF, $03, $FF, $05, $FF,
DB $F8, $F8, $FC, $FC, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $C0, $C0, $E0, $E0,
DB $FC, $FF, $FC, $FF, $FC, $FF, $FC, $FF, $FC, $FF, $FC, $FF, $FC, $FF, $FC, $FF,
DB $00, $20, $00, $B0, $00, $B0, $00, $B0, $00, $F8, $00, $FC, $00, $FC, $00, $FE,
DB $04, $00, $06, $00, $02, $00, $02, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $04, $03, $04, $03, $04, $03, $00, $07, $00, $07, $00, $07, $00, $07,
DB $02, $FF, $03, $FF, $01, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $FF, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $9F, $FF, $0F, $FF, $03, $FF, $01, $FF,
DB $F0, $F0, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $E0, $E0, $F0, $F0, $F0, $F0,
.face_8
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $7F, $7F, $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FC, $FF, $F0, $FF, $80, $FF,
DB $F8, $FF, $E0, $FF, $C0, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E0,
DB $FF, $FF, $1F, $FF, $07, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FB,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $1F, $FF, $0F, $DF, $07, $DF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $E0, $FF, $E0, $FF, $C0, $FF, $C0, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $FB,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E0, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FC, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $F0, $00, $C0, $00, $00, $00, $01, $00, $07, $00, $1F,
DB $00, $01, $00, $01, $00, $07, $00, $1F, $00, $7F, $00, $FF, $00, $FF, $00, $FC,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $C7, $00, $0E, $00, $0E,
DB $00, $F3, $00, $F3, $00, $E3, $00, $C3, $00, $80, $00, $00, $00, $00, $00, $00,
DB $07, $9F, $07, $9F, $03, $9F, $13, $0F, $01, $0F, $00, $0F, $00, $0F, $00, $0F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE, $FE, $FE, $FC, $FC,
DB $80, $F8, $80, $C0, $80, $C0, $00, $40, $00, $40, $00, $40, $00, $40, $00, $40,
DB $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $C0, $00, $F0, $00, $1F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $3F, $00, $F0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $E0, $00, $00, $00, $01, $00, $06, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $1C, $00, $78, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $0F, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $7F, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80,
DB $F8, $F8, $F8, $F8, $F0, $F0, $F0, $F0, $E0, $E0, $C0, $E3, $C0, $E6, $C0, $FC,
DB $00, $40, $00, $40, $00, $C0, $00, $C0, $00, $80, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $E0, $00, $FF, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $C0, $00, $F0, $00, $F8, $00, $1E, $08, $07, $40, $00, $20, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $00, $00,
DB $00, $00, $00, $00, $00, $07, $00, $1F, $02, $3C, $00, $F0, $00, $E0, $03, $00,
DB $00, $00, $00, $0F, $00, $FE, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $FF, $00, $03, $00, $03, $04, $03, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $FF, $FF,
DB $C0, $C0, $C0, $C0, $E0, $E0, $E0, $E0, $E0, $E0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $80, $F0, $80, $E0, $80, $E0, $80, $F0, $80, $F0, $80, $F0, $80, $F8, $80, $F8,
DB $00, $00, $00, $FE, $00, $0F, $00, $00, $00, $3C, $00, $78, $00, $7E, $00, $7E,
DB $00, $00, $00, $00, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $04, $00, $00, $00, $08, $00, $00,
DB $04, $00, $00, $00, $00, $00, $00, $07, $00, $00, $00, $01, $00, $03, $00, $03,
DB $00, $00, $00, $00, $00, $FE, $00, $E0, $00, $00, $00, $E0, $00, $C0, $00, $F0,
DB $08, $07, $00, $0F, $01, $0F, $11, $0F, $11, $0F, $01, $1F, $03, $1F, $03, $1F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $80, $FC, $80, $FC, $00, $FE, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $E0, $00, $F0,
DB $00, $7E, $00, $3C, $00, $40, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $10, $00, $10, $00, $10, $00, $10, $00, $10, $00, $18, $00,
DB $00, $03, $00, $03, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $E0, $00, $E0, $00, $10, $00, $00, $00, $00, $00, $00, $00, $00,
DB $03, $1F, $03, $1F, $03, $1F, $03, $1F, $13, $1F, $01, $0F, $01, $0F, $00, $0F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F8, $F8,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF,
DB $00, $F8, $00, $FC, $00, $F6, $00, $FB, $00, $FD, $00, $FE, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $60, $00, $20,
DB $18, $00, $18, $00, $18, $00, $18, $00, $18, $00, $1C, $00, $1C, $00, $04, $00,
DB $00, $07, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $3F, $FF, $1F, $FF, $0F, $FF, $07, $FF, $07, $FF, $03, $FF, $03, $FF, $01, $FF,
DB $F8, $F8, $FC, $FC, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $C0, $C0, $E0, $E0,
DB $FE, $FF, $FE, $FF, $FC, $FF, $FC, $FF, $FC, $FF, $FC, $FF, $FC, $FF, $FC, $FF,
DB $00, $B0, $00, $98, $00, $D8, $00, $CC, $00, $EC, $00, $EE, $00, $F6, $00, $F6,
DB $04, $00, $06, $00, $02, $00, $02, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $04, $03, $04, $03, $04, $03, $00, $07, $00, $07, $00, $07, $00, $07,
DB $02, $FF, $03, $FF, $01, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $FF, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $9F, $FF, $0F, $FF, $03, $FF, $01, $FF,
DB $F0, $F0, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $E0, $E0, $F0, $F0, $F0, $F0,
.face_9
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $7F, $7F, $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FC, $FF, $F0, $FF, $80, $FF,
DB $F8, $FF, $E0, $FF, $C0, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E0,
DB $FF, $FF, $1F, $FF, $07, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FB,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $1F, $FF, $0F, $DF, $07, $DF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $E0, $FF, $E0, $FF, $C0, $FF, $C0, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $FB,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F0, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FC, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $F0, $00, $C0, $00, $00, $00, $01, $00, $07, $00, $0F,
DB $00, $01, $00, $01, $00, $07, $00, $1F, $00, $7F, $00, $FF, $00, $FF, $00, $FC,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $C7, $00, $07, $00, $0E,
DB $00, $F3, $00, $F3, $00, $E3, $00, $C1, $00, $80, $00, $00, $00, $00, $00, $00,
DB $07, $DF, $07, $9F, $03, $9F, $13, $8F, $01, $0F, $00, $0F, $00, $0F, $00, $0F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE, $FE, $FE, $FC, $FC,
DB $80, $F8, $80, $C0, $80, $C0, $00, $40, $00, $40, $00, $40, $00, $40, $00, $C0,
DB $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $C0, $00, $E0, $00, $3F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $1F, $00, $F8, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FE, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $E0, $00, $00, $00, $00, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $1C, $00, $78, $00, $E0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $0F, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $7F, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80,
DB $F8, $F8, $F8, $F8, $F0, $F0, $F0, $F0, $E0, $E1, $C0, $E3, $C0, $EE, $C0, $F8,
DB $00, $C0, $00, $80, $00, $80, $00, $80, $00, $80, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $E0, $00, $FF, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $C0, $00, $F0, $00, $F8, $00, $1E, $08, $07, $40, $00, $20, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $00, $00,
DB $00, $00, $00, $00, $00, $07, $00, $1F, $02, $3C, $00, $F0, $00, $E0, $03, $00,
DB $00, $00, $00, $0F, $00, $FE, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $FF, $00, $03, $00, $03, $04, $03, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $FF, $FF,
DB $C0, $C0, $C0, $C0, $E0, $E0, $E0, $E0, $E0, $E0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $C0, $F0, $80, $E0, $80, $E0, $80, $E0, $80, $F0, $80, $F0, $80, $F0, $80, $F8,
DB $00, $00, $00, $FE, $00, $0F, $00, $00, $00, $3C, $00, $78, $00, $7E, $00, $7E,
DB $00, $00, $00, $00, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $04, $00, $00, $00, $08, $00, $00,
DB $04, $00, $00, $00, $00, $00, $00, $07, $00, $00, $00, $01, $00, $03, $00, $03,
DB $00, $00, $00, $00, $00, $FE, $00, $E0, $00, $00, $00, $E0, $00, $C0, $00, $F0,
DB $08, $07, $00, $0F, $01, $0F, $11, $0F, $11, $0F, $01, $1F, $01, $1F, $03, $1F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $80, $F8, $80, $FC, $80, $FC, $80, $FE, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $E0,
DB $00, $7E, $00, $3C, $00, $40, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $10, $00, $10, $00, $10, $00, $10, $00, $10, $00, $18, $00,
DB $00, $03, $00, $03, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $E0, $00, $E0, $00, $10, $00, $00, $00, $00, $00, $00, $00, $00,
DB $03, $1F, $03, $1F, $03, $1F, $01, $1F, $11, $1F, $01, $0F, $00, $0F, $00, $0F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $3F, $FF,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F8, $F8,
DB $00, $F0, $00, $F8, $00, $FC, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0, $00, $60, $00, $B0,
DB $18, $00, $18, $00, $18, $00, $18, $00, $18, $00, $1C, $00, $1C, $00, $04, $00,
DB $00, $07, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $1F, $FF, $0F, $FF, $07, $FF, $07, $FF, $07, $FF, $03, $FF, $03, $FF, $03, $FF,
DB $F8, $F8, $FC, $FC, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $C0, $C0, $E0, $E0,
DB $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FC, $FF, $FC, $FF, $FC, $FF,
DB $00, $D8, $00, $EC, $00, $EC, $00, $F6, $00, $F6, $00, $F7, $00, $FB, $00, $FB,
DB $04, $00, $06, $00, $02, $00, $02, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $04, $03, $04, $03, $04, $03, $00, $07, $00, $07, $00, $07, $00, $07,
DB $01, $FF, $01, $FF, $00, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF, $BF, $FF, $0F, $FF, $03, $FF, $00, $FF,
DB $F0, $F0, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $E0, $E0, $F0, $F0, $F0, $F0,
.face_10
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $7F, $7F, $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FC, $FF, $F0, $FF, $80, $FF,
DB $F8, $FF, $E0, $FF, $C0, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E0,
DB $FF, $FF, $1F, $FF, $07, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FB,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $1F, $FF, $0F, $DF, $07, $DF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $E0, $FF, $E0, $FF, $C0, $FF, $C0, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $FB,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $F0, $00, $C0, $00, $00, $00, $01, $00, $03, $00, $0F,
DB $00, $01, $00, $01, $00, $07, $00, $1F, $00, $7F, $00, $FF, $00, $FF, $00, $FC,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $C7, $00, $07, $00, $0E,
DB $00, $F3, $00, $F3, $00, $E1, $00, $C1, $00, $80, $00, $80, $00, $00, $00, $00,
DB $07, $DF, $07, $DF, $03, $9F, $13, $8F, $01, $0F, $00, $0F, $00, $0F, $00, $0F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE, $FE, $FE, $FC, $FC,
DB $80, $F8, $80, $C0, $80, $C0, $00, $40, $00, $40, $00, $40, $00, $C0, $00, $C0,
DB $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $80, $00, $E0, $00, $3F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $01, $00, $0F, $00, $FE, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $00, $00, $00, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $1C, $00, $38, $00, $60, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $0F, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $7F, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80,
DB $F8, $F8, $F8, $F8, $F0, $F0, $F0, $F1, $E0, $E3, $C0, $E6, $C0, $EC, $C0, $F8,
DB $00, $80, $00, $80, $00, $80, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $E0, $00, $FF, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $C0, $00, $F0, $00, $F8, $00, $1E, $08, $07, $40, $00, $20, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $00, $00,
DB $00, $00, $00, $00, $00, $07, $00, $1F, $02, $3C, $00, $F0, $00, $E0, $03, $00,
DB $00, $00, $00, $0F, $00, $FE, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $FF, $00, $03, $00, $03, $04, $03, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $FF, $FF,
DB $C0, $C0, $C0, $C0, $E0, $E0, $E0, $E0, $E0, $E0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $C0, $F0, $80, $E0, $80, $E0, $80, $E0, $80, $F0, $80, $F0, $80, $F0, $80, $F8,
DB $00, $00, $00, $FE, $00, $0F, $00, $00, $00, $3C, $00, $78, $00, $7E, $00, $7E,
DB $00, $00, $00, $00, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $04, $00, $00, $00, $08, $00, $00,
DB $04, $00, $00, $00, $00, $00, $00, $07, $00, $00, $00, $01, $00, $03, $00, $03,
DB $00, $00, $00, $00, $00, $FE, $00, $E0, $00, $00, $00, $E0, $00, $C0, $00, $F0,
DB $08, $07, $00, $0F, $01, $0F, $11, $0F, $11, $0F, $01, $1F, $01, $1F, $03, $1F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $80, $F8, $80, $FC, $80, $FC, $80, $FE, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0,
DB $00, $7E, $00, $3C, $00, $40, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $10, $00, $10, $00, $10, $00, $10, $00, $10, $00, $18, $00,
DB $00, $03, $00, $03, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $E0, $00, $E0, $00, $10, $00, $00, $00, $00, $00, $00, $00, $00,
DB $03, $1F, $03, $1F, $03, $1F, $01, $1F, $11, $1F, $01, $0F, $00, $0F, $00, $0F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $3F, $FF,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F8, $F8,
DB $00, $E0, $00, $F0, $00, $F8, $00, $FC, $00, $FE, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C0, $00, $E0,
DB $18, $00, $18, $00, $18, $00, $18, $00, $18, $00, $1C, $00, $1C, $00, $04, $00,
DB $00, $07, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $0F, $FF, $07, $FF, $03, $FF, $03, $FF, $03, $FF, $01, $FF, $01, $FF, $01, $FF,
DB $F8, $F8, $FC, $FC, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $C0, $C0, $E0, $E0,
DB $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FC, $FF, $FC, $FF, $FC, $FF,
DB $00, $F0, $00, $F8, $00, $FC, $00, $FE, $00, $FF, $00, $FD, $00, $FE, $00, $FE,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80,
DB $04, $00, $06, $00, $02, $00, $02, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $04, $03, $04, $03, $04, $03, $00, $07, $00, $07, $00, $07, $00, $07,
DB $01, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF, $1F, $FF, $07, $FF, $01, $FF,
DB $F0, $F0, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $E0, $E0, $F0, $F0, $F0, $F0,
.face_11
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $7F, $7F, $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FC, $FF, $F0, $FF, $80, $FF,
DB $F8, $FF, $E0, $FF, $C0, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E0,
DB $FF, $FF, $1F, $FF, $07, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FB,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $1F, $FF, $0F, $DF, $07, $DF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $E0, $FF, $E0, $FF, $C0, $FF, $C0, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $FB,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $F0, $00, $C0, $00, $00, $00, $01, $00, $03, $00, $0F,
DB $00, $01, $00, $01, $00, $07, $00, $1F, $00, $7F, $00, $FF, $00, $FF, $00, $FC,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $C7, $00, $0F, $00, $0E,
DB $00, $F3, $00, $F3, $00, $E1, $00, $C1, $00, $80, $00, $00, $00, $00, $00, $00,
DB $07, $DF, $07, $DF, $03, $DF, $13, $8F, $01, $0F, $00, $0F, $00, $0F, $00, $0F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE, $FE, $FE, $FC, $FC,
DB $80, $F8, $80, $C0, $80, $C0, $00, $40, $00, $40, $00, $40, $00, $C0, $00, $C0,
DB $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $80, $00, $F0, $00, $1F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $0F, $00, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $00, $00, $00, $00, $07, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $1C, $00, $30, $00, $E0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $0F, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $7F, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80,
DB $F8, $F8, $F8, $F8, $F0, $F1, $F0, $F3, $E0, $E2, $C0, $E6, $C0, $EC, $C0, $F8,
DB $00, $80, $00, $80, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $E0, $00, $FF, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $C0, $00, $F0, $00, $F8, $00, $1E, $08, $07, $40, $00, $20, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $00, $00,
DB $00, $00, $00, $00, $00, $07, $00, $1F, $02, $3C, $00, $F0, $00, $E0, $03, $00,
DB $00, $00, $00, $0F, $00, $FE, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $FF, $00, $03, $00, $03, $04, $03, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $FF, $FF,
DB $C0, $C0, $C0, $C0, $E0, $E0, $E0, $E0, $E0, $E0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $C0, $F0, $80, $E0, $80, $E0, $80, $E0, $80, $F0, $80, $F0, $80, $F8, $80, $F8,
DB $00, $00, $00, $FE, $00, $0F, $00, $00, $00, $3C, $00, $78, $00, $7E, $00, $7E,
DB $00, $00, $00, $00, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $04, $00, $00, $00, $08, $00, $00,
DB $04, $00, $00, $00, $00, $00, $00, $07, $00, $00, $00, $01, $00, $03, $00, $03,
DB $00, $00, $00, $00, $00, $FE, $00, $E0, $00, $00, $00, $E0, $00, $C0, $00, $F0,
DB $08, $07, $00, $0F, $01, $0F, $11, $0F, $11, $0F, $01, $1F, $03, $1F, $03, $1F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $80, $FC, $80, $FC, $80, $FE, $00, $FE, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80, $00, $C0,
DB $00, $7E, $00, $3C, $00, $40, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $10, $00, $10, $00, $10, $00, $10, $00, $10, $00, $18, $00,
DB $00, $03, $00, $03, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $E0, $00, $E0, $00, $10, $00, $00, $00, $00, $00, $00, $00, $00,
DB $03, $1F, $03, $1F, $03, $1F, $03, $1F, $11, $1F, $01, $0F, $00, $0F, $00, $0F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F8, $F8,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF,
DB $00, $C0, $00, $E0, $00, $F0, $00, $F8, $00, $FC, $00, $FE, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $C0,
DB $18, $00, $18, $00, $18, $00, $18, $00, $18, $00, $1C, $00, $1C, $00, $04, $00,
DB $00, $07, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $1F, $FF, $0F, $FF, $07, $FF, $03, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $F8, $F8, $FC, $FC, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $7F, $FF, $7F, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $C0, $C0, $E0, $E0,
DB $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FC, $FF, $FC, $FF, $FC, $FF,
DB $00, $E0, $00, $E0, $00, $F0, $00, $FC, $00, $FC, $00, $FE, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80,
DB $04, $00, $06, $00, $02, $00, $02, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $04, $03, $04, $03, $04, $03, $00, $07, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $3F, $FF, $1F, $FF, $1F, $FF, $0F, $FF, $07, $FF, $01, $FF,
DB $F0, $F0, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $E0, $E0, $F0, $F0, $F0, $F0,
.face_12
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $7F, $7F, $7F, $7F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF, $FC, $FF, $F0, $FF, $80, $FF,
DB $F8, $FF, $E0, $FF, $C0, $FF, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $E0,
DB $FF, $FF, $1F, $FF, $07, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FB,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $1F, $FF, $0F, $DF, $07, $DF,
DB $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $FF, $FF, $FC, $FF, $F8, $FF, $F0, $FF, $E0, $FF, $E0, $FF, $C0, $FF, $C0, $FF,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $FB,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $F8, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FE, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FC, $00, $F0, $00, $C0, $00, $00, $00, $01, $00, $03, $00, $0F,
DB $00, $01, $00, $01, $00, $07, $00, $1F, $00, $7F, $00, $FF, $00, $FF, $00, $FC,
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $C7, $00, $07, $00, $0E,
DB $00, $F3, $00, $F1, $00, $E1, $00, $C0, $00, $80, $00, $00, $00, $00, $00, $00,
DB $07, $DF, $07, $DF, $03, $DF, $13, $8F, $01, $0F, $00, $0F, $00, $0F, $00, $0F,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $7F, $FF,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FE, $FE, $FE, $FC, $FC,
DB $80, $F8, $80, $C0, $80, $C0, $00, $40, $00, $40, $00, $40, $00, $C0, $00, $C0,
DB $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $80, $00, $E0, $00, $3F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $07, $00, $FF, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $FF, $00, $FF, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $00, $00, $00, $00, $07, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $1C, $00, $38, $00, $60, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $0F, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $7F, $FF, $7F, $FF, $7F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF, $3F, $FF,
DB $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80,
DB $F8, $F8, $F8, $F8, $F0, $F1, $F0, $F3, $E0, $E6, $C0, $EC, $C0, $E8, $C0, $F8,
DB $00, $80, $00, $80, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $7F, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $E0, $00, $FF, $00, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $C0, $00, $F0, $00, $F8, $00, $1E, $08, $07, $40, $00, $20, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $00, $00,
DB $00, $00, $00, $00, $00, $07, $00, $1F, $02, $3C, $00, $F0, $00, $E0, $03, $00,
DB $00, $00, $00, $0F, $00, $FE, $00, $80, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $00, $FF, $00, $03, $00, $03, $04, $03, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $7F, $FF, $FF, $FF,
DB $C0, $C0, $C0, $C0, $E0, $E0, $E0, $E0, $E0, $E0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $C0, $F0, $80, $E0, $80, $E0, $80, $E0, $80, $F0, $80, $F0, $80, $F8, $80, $FC,
DB $00, $00, $00, $FE, $00, $0F, $00, $00, $00, $3C, $00, $78, $00, $7E, $00, $7E,
DB $00, $00, $00, $00, $00, $C0, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $04, $00, $00, $00, $08, $00, $00,
DB $04, $00, $00, $00, $00, $00, $00, $07, $00, $00, $00, $01, $00, $03, $00, $03,
DB $00, $00, $00, $00, $00, $FE, $00, $E0, $00, $00, $00, $E0, $00, $C0, $00, $F0,
DB $08, $07, $00, $0F, $01, $0F, $11, $0F, $11, $0F, $03, $1F, $03, $1F, $03, $1F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0,
DB $80, $FE, $80, $FE, $80, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $80, $00, $80, $00, $C0, $00, $C0,
DB $00, $7E, $00, $3C, $00, $40, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $00, $00, $00, $10, $00, $10, $00, $10, $00, $10, $00, $10, $00, $18, $00,
DB $00, $03, $00, $03, $00, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $F0, $00, $E0, $00, $E0, $00, $10, $00, $00, $00, $00, $00, $00, $00, $00,
DB $03, $1F, $03, $1F, $03, $1F, $03, $1F, $11, $1F, $01, $0F, $00, $0F, $00, $0F,
DB $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F8, $F8,
DB $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FE, $FF,
DB $00, $E0, $00, $E0, $00, $F0, $00, $F8, $00, $FC, $00, $FE, $00, $FF, $00, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $80,
DB $18, $00, $18, $00, $18, $00, $18, $00, $18, $00, $1C, $00, $1C, $00, $04, $00,
DB $00, $07, $00, $07, $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $03,
DB $3F, $FF, $0F, $FF, $07, $FF, $03, $FF, $01, $FF, $00, $FF, $00, $FF, $00, $FF,
DB $F8, $F8, $FC, $FC, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $7F, $FF, $3F, $FF,
DB $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $C0, $C0, $E0, $E0,
DB $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FE, $FF, $FC, $FF, $FC, $FF, $FC, $FF,
DB $00, $C0, $00, $E0, $00, $E0, $00, $F0, $00, $F8, $00, $FC, $00, $FE, $00, $FF,
DB $04, $00, $06, $00, $02, $00, $02, $00, $00, $00, $00, $00, $00, $00, $00, $00,
DB $00, $03, $04, $03, $04, $03, $04, $03, $00, $07, $00, $07, $00, $07, $00, $07,
DB $3F, $FF, $3F, $FF, $1F, $FF, $1F, $FF, $0F, $FF, $0F, $FF, $07, $FF, $01, $FF,
DB $F0, $F0, $FC, $FC, $FE, $FE, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF,
DB $00, $00, $00, $00, $00, $00, $80, $80, $C0, $C0, $E0, $E0, $F0, $F0, $F0, $F0,
.face_13
DB $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF,
| 86.168142 | 147 | 0.388027 |
8876c454a3dc61b2c92ebef9aead7d2307a0d511 | 400 | asm | Assembly | test-fasm/hello-nasm.asm | AverageAssemblyProgrammer/Hustle | 03401f44bea259d87e729bf59fd6cfb8cfefdb49 | [
"MIT"
] | 1 | 2022-02-26T13:25:15.000Z | 2022-02-26T13:25:15.000Z | test-fasm/hello-nasm.asm | AverageAssemblyProgrammer/Hustle | 03401f44bea259d87e729bf59fd6cfb8cfefdb49 | [
"MIT"
] | null | null | null | test-fasm/hello-nasm.asm | AverageAssemblyProgrammer/Hustle | 03401f44bea259d87e729bf59fd6cfb8cfefdb49 | [
"MIT"
] | null | null | null | BITS 64
%define SYS_exit 60
%define SYS_write 1
%define STDOUT 1
global _start
section .text
_start:
mov rax, SYS_write
mov rdi, STDOUT
mov rsi, hello
mov rdx, 13
syscall
mov rax, SYS_write
mov rdi, STDOUT
mov rsi, hello2
mov rdx, 17
syscall
section .data
hello: db "Hello, World", 10
hello2: db "Hello, New, World", 10
section .text
mov rax, SYS_exit
mov rdi, 0
syscall
| 13.793103 | 34 | 0.6975 |
0d80f8c86f068993012459c85dc4da9c377e4ea2 | 6,794 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_4694_1852.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.log_4694_1852.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.log_4694_1852.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 %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x513c, %r12
nop
and %rdi, %rdi
mov (%r12), %r10w
nop
nop
and $7534, %rbp
lea addresses_D_ht+0x100bc, %rsi
lea addresses_normal_ht+0x94fe, %rdi
clflush (%rsi)
nop
nop
nop
cmp $49738, %r9
mov $20, %rcx
rep movsq
nop
nop
xor %r10, %r10
lea addresses_WT_ht+0x198bc, %r9
nop
nop
nop
sub $2543, %rdi
movups (%r9), %xmm0
vpextrq $1, %xmm0, %r10
nop
nop
nop
nop
add $30539, %rsi
lea addresses_WC_ht+0x178bc, %rcx
cmp $59655, %r10
movw $0x6162, (%rcx)
nop
nop
nop
add $12022, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %r8
push %rbx
push %rcx
push %rdi
// Load
lea addresses_D+0x11a34, %r10
nop
nop
nop
nop
nop
xor $36678, %r14
mov (%r10), %ecx
nop
nop
nop
nop
sub %r10, %r10
// Store
lea addresses_RW+0x6fbc, %r8
nop
nop
nop
sub %rbx, %rbx
mov $0x5152535455565758, %r10
movq %r10, (%r8)
and $20603, %r10
// Store
mov $0x93c, %r10
nop
nop
nop
nop
sub $8697, %rcx
mov $0x5152535455565758, %rbx
movq %rbx, %xmm2
vmovups %ymm2, (%r10)
nop
nop
nop
nop
sub $32663, %rcx
// Store
lea addresses_A+0x2bbc, %r8
nop
cmp %r10, %r10
movw $0x5152, (%r8)
nop
nop
nop
nop
inc %r8
// Load
lea addresses_D+0xbf3c, %r8
nop
and %r13, %r13
movb (%r8), %bl
nop
nop
nop
nop
sub %rcx, %rcx
// Store
lea addresses_RW+0x18cbc, %rcx
nop
nop
nop
inc %r10
movb $0x51, (%rcx)
nop
nop
nop
nop
and $18079, %r10
// Store
mov $0x3b0f88000000010c, %r8
nop
nop
nop
nop
dec %rcx
movw $0x5152, (%r8)
nop
nop
nop
nop
nop
xor $53341, %rcx
// Store
lea addresses_UC+0x163c, %r14
nop
nop
nop
nop
inc %rdi
movb $0x51, (%r14)
nop
xor $58618, %rdi
// Faulty Load
lea addresses_RW+0xf0bc, %rdi
nop
nop
and $41870, %rbx
mov (%rdi), %r14
lea oracles, %r13
and $0xff, %r14
shlq $12, %r14
mov (%r13,%r14,1), %r14
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 7, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 2, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 7, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}}
{'32': 4694}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 32.352381 | 2,999 | 0.649544 |
3428dd28f8cf6ab7fa3b466482342ae37a452958 | 1,056 | asm | Assembly | programs/oeis/174/A174140.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/174/A174140.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/174/A174140.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A174140: Numbers congruent to k mod 25, where 10 <= k <= 24.
; 10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,410,411,412,413,414,415,416,417,418,419
mov $1,$0
div $1,15
mul $1,10
add $1,10
add $1,$0
| 117.333333 | 941 | 0.71875 |
3c0477660034a24047838857fe5f2f488b268e9d | 149 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrpdown.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrpdown.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrpdown.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; void *zx_saddrpdown(void *saddr)
SECTION code_arch
PUBLIC zx_saddrpdown
zx_saddrpdown:
INCLUDE "arch/zx/display/z80/asm_zx_saddrpdown.asm"
| 13.545455 | 54 | 0.785235 |
7c9edb580a29407b596fa0cf39d523beb54c5292 | 898 | asm | Assembly | alice2/brads_alice2_archive/asm/shortmem.asm | lkesteloot/alice | 44b85caf744e5830536b5e813e761cc0ce3f695e | [
"Apache-2.0"
] | 63 | 2015-08-14T23:27:39.000Z | 2022-03-09T22:46:11.000Z | alice2/brads_alice2_archive/asm/shortmem.asm | lkesteloot/alice | 44b85caf744e5830536b5e813e761cc0ce3f695e | [
"Apache-2.0"
] | 64 | 2015-09-11T23:13:03.000Z | 2018-10-29T09:38:06.000Z | alice2/brads_alice2_archive/asm/shortmem.asm | lkesteloot/alice | 44b85caf744e5830536b5e813e761cc0ce3f695e | [
"Apache-2.0"
] | 9 | 2016-01-06T00:06:33.000Z | 2021-12-07T10:38:15.000Z | BANKREG EQU 0ffH
;
; Main program
;
MAIN
; write 0 to 0x4000
; write 0xCAFE to 0x4000
; must not read back 0xCAFE
LD BC, 0H
LD (4000H), BC
LD BC, 0cafeH
LD (4000H), BC
LD HL, (4000H)
SBC HL, BC
JP NZ, OKAY1
HALT
OKAY1
; write 0 to 0x8000
; write 0xCAFE to 0x8000
; must read back 0xCAFE
LD BC, 0H
LD (8000H), BC
LD BC, 0cafeH
LD (8000H), BC
LD HL, (8000H)
SBC HL, BC
JP Z, OKAY2
HALT
OKAY2
; for all banks
; write 0xBE<bank#> to 0xC000
LD D, 0beh
LD E, 0
LD C, BANKREG
BKLOOP1
LD A, E
CP 16
JP Z, CHECKBANKS
OUT (C), E
LD (0c000H), DE
INC E
JP BKLOOP1
CHECKBANKS
; for all banks
; must read 0xBE<bank#>
LD D, 0beh
LD E, 0
LD C, BANKREG
BKLOOP2
LD A, E
CP 16
JP Z, ALLCOOL
OUT (C), E
LD HL, (0c000H)
SCF ; Set carry
CCF ; Complement carry
SBC HL, DE
JP NZ, BADBANK
INC E
JP BKLOOP2
BADBANK
HALT
ALLCOOL
HALT
END
| 10.089888 | 33 | 0.624722 |
9fbe7329e62236a87aeca8927b946b6113d44643 | 12,695 | asm | Assembly | Source/Scroll.asm | hhprg/C64Engine | 3e23bf2134f1b64aae1fcf502ecf98801bb9764e | [
"MIT"
] | 4 | 2021-09-12T20:39:13.000Z | 2022-01-24T11:32:20.000Z | Source/Scroll.asm | hhprg/C64Engine | 3e23bf2134f1b64aae1fcf502ecf98801bb9764e | [
"MIT"
] | null | null | null | Source/Scroll.asm | hhprg/C64Engine | 3e23bf2134f1b64aae1fcf502ecf98801bb9764e | [
"MIT"
] | null | null | null | /******************************************************************
* Copyright (C) 2015-2021 Henrik Holmdahl <henrikh.git@gmail.com>
******************************************************************/
.filenamespace Scroll
//
.segment Zeropage "Scroll zeropage data"
zpDstScreenMemLo:
.fill 1, 0
zpDstScreenMemHi:
.fill 1, 0
//
.segment Code "Scroll code"
Init:
{
jsr ClearUnresolvedPositionChange
// Back buffer is already shifted right, no need to shift right away.
ldx #0
stx BackbufferIndex
stx IsShiftRequested
inx
stx IsShiftDone
// Fill initial front buffer.
lda #0
sta TileMapCharOffset
ldx #kScrollOffset
NextColumn: stx ColumnIndex
lda TileMapCharOffset:#0
ldx #0
jsr GetResolveColumn
inc TileMapCharOffset
ldx ColumnIndex:#0
jsr SetBackbufferColumn
ldx ColumnIndex
jsr SetColorColumn
ldx ColumnIndex
inx
cpx #kNumVisibleColumns + kScrollOffset
bne NextColumn
// Make newly filled buffer the front buffer.
jsr FlipBackbuffer
// Prepare back buffer = front buffer shifted one column right.
// This code has to be consistent with a call to StartShiftRight.
jsr ShiftColumnsRight
// Position is now position of left side of back buffer.
jsr CharTileMap.DecreasePosition
// Indicate that back buffer's corresponding decreased position hasn't been used.
dec UnresolvedPositionChange // -1
// Set leftmost back buffer screen column.
GetConstCharTileOffset(0)
jsr GetResolveColumn
ldx #0 + kScrollOffset
jsr SetBackbufferColumn
jmp ColorScroll.Init
}
//
// UnresolvedPositionChange = -1 if back buffer was shifted one column right (i.e. was prepared in
// anticipation of scrolling right). In that case we have to undo its DecreasePosition.
StartShiftLeft:
{
lda UnresolvedPositionChange
beq NoIncrease
jsr CharTileMap.IncreasePosition
inc UnresolvedPositionChange // 0
NoIncrease:
// Keep a copy of leftmost back buffer column which will need to be discarded later.
lda #0 + kScrollOffset
jsr GetBackbufferColumn
// Increase back buffer tile map position.
jsr CharTileMap.IncreasePosition
// Indicate that back buffer's corresponding increased position hasn't been used.
inc UnresolvedPositionChange // 1
// Get new column from tile map, discard back buffer column that was copied above and
// finally resolve new column.
GetConstCharTileOffset(kNumVisibleColumns - 1)
jsr GetDiscardResolveColumn
jsr ShiftColumnsLeft
// Set newly resolved column.
// Last column (39) is never visible when scrolling.
ldx #kNumVisibleColumns - 1 + kScrollOffset
jsr SetBackbufferColumn
jsr ColorScroll.StartShiftLeft
jmp ColorScroll.CopyLeftColumn
}
//
// UnresolvedPositionChange = 1 if back buffer was shifted one column left (i.e. was prepared in
// anticipation of scrolling left). In that case we have to undo its IncreasePosition.
StartShiftRight:
{
lda UnresolvedPositionChange
beq NoDecrease
jsr CharTileMap.DecreasePosition
dec UnresolvedPositionChange // 0
NoDecrease:
// Keep a copy of rightmost back buffer column which will need to be discarded later.
lda #kNumVisibleColumns - 1 + kScrollOffset
jsr GetBackbufferColumn
// Decrease back buffer tile map position.
jsr CharTileMap.DecreasePosition
// Indicate that back buffer's corresponding decreased position hasn't been used.
dec UnresolvedPositionChange // -1
// Get new column from tile map, discard back buffer column that was copied above and
// finally resolve new column.
GetConstCharTileOffset(0)
jsr GetDiscardResolveColumn
jsr ShiftColumnsRight
// Set newly resolved column.
ldx #0 + kScrollOffset
jsr SetBackbufferColumn
jmp ColorScroll.StartShiftRight
}
//
// This is case where we scrolled left and then immediately decided to scroll back right.
// Then we can just flip buffers since back buffer already contains front buffer shifted right.
UndoShiftLeft:
{
AddHighPriorityTask(UndoColorShiftLeftTask)
jsr ClearUnresolvedPositionChange
jsr FlipBackbuffer
jmp CharTileMap.DecreasePosition
}
//
UndoColorShiftLeftTask:
{
// Todo: Macro to end task.
jsr ColorScroll.UndoShiftLeft
ReturnFromTask()
}
//
FinishColorShiftTask:
{
jsr ColorScroll.FinishShift
ReturnFromTask()
}
//
FinishShift:
{
AddHighPriorityTask(FinishColorShiftTask)
// We're about to use back buffer, i.e. its position change will be used.
jsr ClearUnresolvedPositionChange
// Fall through to FlipBackbuffer
}
//
FlipBackbuffer:
{
lda BackbufferIndex
eor #1
sta BackbufferIndex
rts
}
//
ClearUnresolvedPositionChange:
{
lda #0
sta UnresolvedPositionChange
rts
}
//
GetDiscardResolveColumn:
{
jsr CharTileMap.GetColumn
jsr CharTileMap.DiscardColumn
jmp CharTileMap.ResolveColumn
}
//
GetResolveColumn:
{
jsr CharTileMap.GetColumn
jmp CharTileMap.ResolveColumn
}
//
// Get column to discard when screen shifts, row by row from top to bottom.
GetBackbufferColumn:
{
ldx BackbufferIndex
}
// a = index of column to get.
// x = screen index (0 or 1).
GetBufferColumn:
{
sta zpDstScreenMemLo
lda ScreenAdrHi,x
sta zpDstScreenMemHi
clc
ldx #0
ldy #0
NextRow: lda (zpDstScreenMemLo),y
sta DiscardColumnPhysicalChars,x
lda zpDstScreenMemLo
adc #kNumScreenColumns
sta zpDstScreenMemLo
bcc NoHi
inc zpDstScreenMemHi
NoHi: inx
cpx #kNumScreenScrollRows
bcc NextRow
rts
}
// Set new column, row by row from top to bottom.
// x = index of column to set (actually offset of first byte in screen column).
SetBackbufferColumn:
{
ldy BackbufferIndex
lda ScreenAdrHi,y
sta zpDstScreenMemHi
lda #<ColumnPhysicalChars
ldy #>ColumnPhysicalChars
}
SetBufferColumn:
{
sta SrcColumnLo
sty SrcColumnHi
// zpDstScreenMemHi is set when we get here.
stx zpDstScreenMemLo
ldx #0
ldy #0
clc
NextRow:
.label SrcColumnLo = *+1
.label SrcColumnHi = *+2
lda kDefaultAdr,x
sta (zpDstScreenMemLo),y
lda zpDstScreenMemLo
adc #kNumScreenColumns
sta zpDstScreenMemLo
bcc NoHi
inc zpDstScreenMemHi
NoHi: inx
cpx #kNumScreenScrollRows
bcc NextRow
rts
}
//
// x = index of column to set.
SetColorColumn:
{
lda #>kColorMem
sta zpDstScreenMemHi
lda #<ColumnColors
ldy #>ColumnColors
bne SetBufferColumn // bra
}
//
.const kDataSize = kNumScreenScrollRows * kNumScreenColumns
.const kNumBlocks = 4
.const kBlockSize = kDataSize / kNumBlocks
// Shift columns right.
ShiftColumnsRight:
{
ldx #kBlockSize-1
ldy #kBlockSize
lda #DEX
bne ShiftColumns // bra
}
// Shift columns left.
ShiftColumnsLeft:
{
ldx #kBlockSize
ldy #kBlockSize-1
lda #DEY
}
// Shift screen columns one step to the left or right.
ShiftColumns:
{
sta Dec0
sta Dec2
eor #DEX^DEY // Turn dex into dey and vice versa.
sta Dec1
sta Dec3
lda BackbufferIndex
beq ToScreen0
// From screen 0 to screen 1.
ToScreen1:
.for (var i = 0; i < kNumBlocks; i++)
{
lda Screen0Mem + i * kBlockSize + kScrollOffset,x
sta Screen1Mem + i * kBlockSize + kScrollOffset,y
}
Dec0: dey
Dec1: dex
bne ToScreen1
rts
// From screen 1 to screen 0.
ToScreen0:
.for (var i = 0; i < kNumBlocks; i++)
{
lda Screen1Mem + i * kBlockSize + kScrollOffset,x
sta Screen0Mem + i * kBlockSize + kScrollOffset,y
}
Dec2: dey
Dec3: dex
bne ToScreen0
rts
}
//
// a = shift direction
RequestShift:
{
sta ShiftDirection
#if DEBUG
lda IsShiftRequested
eor #1
and IsShiftDone
bne Okay
DebugHang()
Okay:
#endif // DEBUG
ldx #0
stx IsShiftDone
inx
stx IsShiftRequested
TaskInput(ShiftTask)
jmp Task.AddMediumPriority
}
//
ShiftTask:
{
lda #0
sta IsShiftRequested
lda ShiftDirection
bmi Right
Left: jsr StartShiftLeft
jmp Done
Right: jsr StartShiftRight
Done: lda #1
sta IsShiftDone
ReturnFromTask()
}
//
.segment Code "Scroll const data"
ScreenAdrBits:
.byte kScreen0AdrBits, kScreen1AdrBits
ScreenAdrHi:
.byte >Screen0Mem, >Screen1Mem
//
.segment BSS2 "Scroll data"
// 1 = left, 0 = stopped, -1 = right
ShiftDirection:
.fill 1, 0
// Set to 1 when shift is done.
IsShiftDone:
.fill 1, 0
// Set to 1 to request shift to start.
IsShiftRequested:
.fill 1, 0
// -1 if back buffer is front buffer shifted right and its content has never been "resolved", i.e. used as front buffer.
// 1 if back buffer is front buffer shifted left and its content has never been "resolved", i.e. used as front buffer.
// 0 if back buffer content has been used as front buffer
// The value {-1,0,1} is the back buffer's char tile map position offset relative to the front buffer's char tile map position.
UnresolvedPositionChange:
.fill 1, 0
// 0 or 1.
BackbufferIndex:
.fill 1, 0
// Vir chars resolved to physical chars by CharTileMap.
ColumnPhysicalChars:
.fill kNumScreenScrollRows, 0
// Old column with physical chars to be discarded.
DiscardColumnPhysicalChars:
.fill kNumScreenScrollRows, 0
.align 32 // Align to avoid ColumnColors page crossing.
// Colors set by CharTileMap.
ColumnColors:
.fill kNumScreenScrollRows, 0
| 27.962555 | 128 | 0.519417 |
6644851b51f8a4140a8f5dca8aad1f92f7212935 | 1,482 | asm | Assembly | tests/devices/nex_file/bmp/savenexBmpL2.asm | fengjixuchui/sjasmplus | df0fabd2411bf89e23637fce46d273f52dafbe16 | [
"BSD-3-Clause"
] | 220 | 2016-10-22T19:44:39.000Z | 2022-03-29T20:57:04.000Z | tests/devices/nex_file/bmp/savenexBmpL2.asm | ped7g/sjasmplus | 487635c8057cd5594c372d9b70bc00a3f3a1ecc4 | [
"BSD-3-Clause"
] | 153 | 2018-05-07T10:31:23.000Z | 2022-03-30T04:35:59.000Z | tests/devices/nex_file/bmp/savenexBmpL2.asm | ped7g/sjasmplus | 487635c8057cd5594c372d9b70bc00a3f3a1ecc4 | [
"BSD-3-Clause"
] | 51 | 2016-05-12T21:27:36.000Z | 2022-03-27T15:16:16.000Z |
DEVICE ZXSPECTRUMNEXT
; empty infinite loop as code
ORG $C000
di
jr $
;; OPEN <filename>[,<startAddress>,<stackAddress>[,<entryBank 0..111>]]
SAVENEX OPEN "savenexBmpL2.nex", $C000, $F000
;; CORE <major 0..15>,<minor 0..15>,<subminor 0..255>
SAVENEX CORE 2,0,0
;; CFG <border 0..7>[,<fileHandle 0/1/$4000+>[,<PreserveNextRegs 0/1>[,<2MbRamReq 0/1>]]]
SAVENEX CFG 0, 0, 0, 0
;; BAR <loadBar 0/1>,<barColour 0..255>[,<startDelay 0..255>[,<bankDelay 0..255>]]
SAVENEX BAR 0, 0
;; SAVENEX SCREEN BMP <filename>[,<savePalette 0/1>]
; errors - [un]expected arguments
SAVENEX SCREEN BMP
SAVENEX SCREEN BMP , 0
SAVENEX SCREEN BMP 9 ,
; errors - missing file / invalid files
SAVENEX SCREEN BMP "missing file . bmp"
SAVENEX SCREEN BMP "savenexBmpL2/savenexBmpL2_16color.bmp", 0
SAVENEX SCREEN BMP "savenexBmpL2/savenexBmpL2_256x8.bmp", 0 ;.. shouldn't warn about colors because savePalette = 0
SAVENEX SCREEN BMP "savenexBmpL2/savenexBmpL2_256x8.bmp", 1 ; ok - to suppres "only 10 color" warning
; correct one (with warning)
SAVENEX SCREEN BMP "savenexBmpL2/savenexBmpL2.bmp", 2 ; will warn: savePalette=2
SAVENEX BANK 0
; revisit screen errors - here no screen should work because bank was written already
SAVENEX SCREEN BMP "savenexBmpL2/savenexBmpL2.bmp"
SAVENEX CLOSE
| 38 | 127 | 0.62888 |
277bad29b15d09955907aa65f04624ec151575b9 | 2,576 | asm | Assembly | src/levelmngr.asm | QuinnPainter/CrossConnect | 0a3d6f94c66f2f62f22c578840fc77c1fe66cec0 | [
"MIT"
] | null | null | null | src/levelmngr.asm | QuinnPainter/CrossConnect | 0a3d6f94c66f2f62f22c578840fc77c1fe66cec0 | [
"MIT"
] | null | null | null | src/levelmngr.asm | QuinnPainter/CrossConnect | 0a3d6f94c66f2f62f22c578840fc77c1fe66cec0 | [
"MIT"
] | null | null | null | SECTION "level_mngr_ram", WRAM0
_curLevelPackAddr:: ds 2
_curLevelWidth:: ds 1
_curLevelHeight:: ds 1
SECTION "level_mngr_hram", HRAM
hCurNodeIndex: ds 1 ; temp value used to store the current node colour
SECTION "level_mngr_functions", ROM0
_loadLevel:: ; level index is in A
ld b, a ; save level index into B
ld hl, _curLevelPackAddr ; Load level pack start address into HL
ld a, [hli]
ld h, [hl]
ld l, a
ld a, b ; restore level index into A
or a
jr z, .doneFindPuzzle ; special case for index 0, HL is already at puzzle
ld b, 0
: ld c, [hl] ; BC = first entry in puzzle definition = number of nodes / bytes
inc c ; skip past num nodes byte and puzzle dimensions byte
inc c
add hl, bc ; go to next entry
dec a
jr nz, :-
.doneFindPuzzle:
; Now HL is at the beginning of the puzzle definition
ld a, [hli] ; save num nodes
ldh [hCurNodeIndex], a
ld a, [hli] ; Save puzzle width and height
ld b, a
swap a
and $0F
inc a ; increment width and height, so the max size is 16x16 not 15x15
ld [_curLevelWidth], a
ld a, b
and $0F
inc a
ld [_curLevelHeight], a
push hl ; save puzzle definition pointer for later
; Clear empty area of the board based on the puzzle's dimensions
ld hl, _board + 18 + 1
ld c, a ; C = curLevelHeight
ld a, [_curLevelWidth]
ld b, a
ld a, 18
sub b
ld e, a
ld d, 0 ; DE = 18 - width
.clearHeightLoop:
ld a, [_curLevelWidth]
ld b, a
xor a
.clearWidthLoop:
ld [hli], a
dec b
jr nz, .clearWidthLoop
add hl, de
dec c
jr nz, .clearHeightLoop
pop bc ; move puzzle definition pointer into BC
.drawNodesLoop:
ld hl, _board + 18 + 1 ; HL = board[1][1]
ld a, [bc]
and $0F ; A = node Y
ld d, a ; save node Y for later
add a ; A = Y * 2
ld e, a ; E = Y * 2
ld a, d ; restore node Y
swap a ; A = Y * 16
ld d, 0
add e ; A = bottom(Y * 18)
ld e, a
rl d ; rotate carry into D, so now DE = Y * 18
add hl, de ; HL = board[y + 1][1]
ld a, [bc]
swap a
and $0F ; A = node X
ld e, a
ld d, 0
add hl, de ; HL = board[y + 1][x + 1]
ldh a, [hCurNodeIndex]
dec a ; take away 1 so it starts at 0
srl a ; divide by 2 to get colour value
swap a ; move colour value into top bits
or $0F ; tile type = node
ld [hl], a ; board[y + 1][x + 1] = node
inc bc ; progress puzzle definition pointer
ldh a, [hCurNodeIndex]
dec a
ldh [hCurNodeIndex], a
jr nz, .drawNodesLoop
ret | 25.50495 | 80 | 0.599767 |
b424e941e87e5b07cbbe4db2425cc9d46b047241 | 368 | asm | Assembly | programs/oeis/206/A206546.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/206/A206546.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/206/A206546.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A206546: Period 8: repeat [1, 7, 11, 13, 13, 11, 7, 1].
; 1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13,13,11,7,1,1,7,11,13
mod $0,8
mov $1,7
sub $1,$0
mul $1,$0
add $1,1
mov $0,$1
| 36.8 | 251 | 0.576087 |
8b3165863fdc22fa7b24836e79e2cd4fe4ab2600 | 684 | asm | Assembly | oeis/259/A259181.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/259/A259181.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/259/A259181.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A259181: a(n) = n*(n+1)*(n+2)*(n+3)*(2*n^2+6*n+7)/360.
; 0,1,9,43,147,406,966,2058,4026,7359,12727,21021,33397,51324,76636,111588,158916,221901,304437,411103,547239,719026,933570,1198990,1524510,1920555,2398851,2972529,3656233,4466232,5420536,6539016,7843528,9358041,11108769,13124307,15435771,18076942,21084414,24497746,28359618,32715991,37616271,43113477,49264413,56129844,63774676,72268140,81683980,92100645,103601485,116274951,130214799,145520298,162296442,180654166,200710566,222589123,246419931,272339929,300493137,331030896,364112112,399903504
lpb $0
mov $2,$0
sub $0,1
seq $2,164938 ; a(n) = (n^5-n)/10, which is always an integer.
add $1,$2
lpe
div $1,3
mov $0,$1
| 57 | 495 | 0.769006 |
992a8ea017d22d2d7eaeccc66305d00100dfee98 | 2,032 | asm | Assembly | programs/oeis/304/A304512.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/304/A304512.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/304/A304512.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A304512: a(n) = 366*2^n - 204 (n >= 1).
; 528,1260,2724,5652,11508,23220,46644,93492,187188,374580,749364,1498932,2998068,5996340,11992884,23985972,47972148,95944500,191889204,383778612,767557428,1535115060,3070230324,6140460852,12280921908,24561844020,49123688244,98247376692,196494753588,392989507380,785979014964,1571958030132,3143916060468,6287832121140,12575664242484,25151328485172,50302656970548,100605313941300,201210627882804,402421255765812,804842511531828,1609685023063860,3219370046127924,6438740092256052,12877480184512308,25754960369024820,51509920738049844,103019841476099892,206039682952199988,412079365904400180,824158731808800564,1648317463617601332,3296634927235202868,6593269854470405940,13186539708940812084,26373079417881624372,52746158835763248948,105492317671526498100,210984635343052996404,421969270686105993012,843938541372211986228,1687877082744423972660,3375754165488847945524,6751508330977695891252,13503016661955391782708,27006033323910783565620,54012066647821567131444,108024133295643134263092,216048266591286268526388,432096533182572537052980,864193066365145074106164,1728386132730290148212532,3456772265460580296425268,6913544530921160592850740,13827089061842321185701684,27654178123684642371403572,55308356247369284742807348,110616712494738569485614900,221233424989477138971230004,442466849978954277942460212,884933699957908555884920628,1769867399915817111769841460,3539734799831634223539683124,7079469599663268447079366452,14158939199326536894158733108,28317878398653073788317466420,56635756797306147576634933044,113271513594612295153269866292,226543027189224590306539732788,453086054378449180613079465780,906172108756898361226158931764,1812344217513796722452317863732,3624688435027593444904635727668,7249376870055186889809271455540,14498753740110373779618542911284,28997507480220747559237085822772,57995014960441495118474171645748,115990029920882990236948343291700,231980059841765980473896686583604,463960119683531960947793373167412
mov $1,2
pow $1,$0
sub $1,1
mul $1,732
add $1,528
mov $0,$1
| 203.2 | 1,928 | 0.925197 |
27e0507e916c886ecdd7920119468ff68f466b4a | 585 | asm | Assembly | programs/oeis/046/A046670.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/046/A046670.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/046/A046670.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A046670: Partial sums of A006530.
; 1,3,6,8,13,16,23,25,28,33,44,47,60,67,72,74,91,94,113,118,125,136,159,162,167,180,183,190,219,224,255,257,268,285,292,295,332,351,364,369,410,417,460,471,476,499,546,549,556,561,578,591,644,647,658,665,684,713,772,777,838,869,876,878,891,902,969,986,1009,1016,1087,1090,1163,1200,1205,1224,1235,1248,1327,1332,1335,1376,1459,1466,1483,1526,1555,1566,1655,1660,1673,1696,1727,1774,1793,1796,1893,1900,1911,1916
lpb $0
mov $2,$0
sub $0,1
seq $2,6530 ; Gpf(n): greatest prime dividing n, for n >= 2; a(1)=1.
add $1,$2
lpe
add $1,1
mov $0,$1
| 48.75 | 411 | 0.702564 |
cf325c715ceeba5610b458dc2cfe62bb9a9dddc0 | 612 | asm | Assembly | untested/ARM/mulDiv.asm | GabrielRavier/Generic-Assembly-Samples | fbf803960a14307b7fce0165058d0d4048abaf42 | [
"Unlicense"
] | null | null | null | untested/ARM/mulDiv.asm | GabrielRavier/Generic-Assembly-Samples | fbf803960a14307b7fce0165058d0d4048abaf42 | [
"Unlicense"
] | null | null | null | untested/ARM/mulDiv.asm | GabrielRavier/Generic-Assembly-Samples | fbf803960a14307b7fce0165058d0d4048abaf42 | [
"Unlicense"
] | null | null | null |
code32
format ELF
public _MulDiv
section '.text' executable align 16
_MulDiv: ; Requires ARMv3m
push {r4, r5, lr}
smull r3, r4, r0, r1
mov r0, r3
lsr r3, r2, #31
cmp r3, r4, lsr #31
mvnne ip, #0
moveq ip, #1
cmp r0, #0
rsblt r0, r0, #0
cmp r2, #0
rsblt r2, r2, #0
asr r1, r0, #31
asr r3, r2, #31
cmp r0, r2
sbcs lr, r1, r3
blt .return0
mov r4, #0
mov r5, #0
.loop:
subs r0, r0, r2
sbc r1, r1, r3
adds r4, r4, #1
adc r5, r5, #0
cmp r0, r2
sbcs lr, r1, r3
bge .loop
umull r0, r1, r4, ip
pop {r4, r5, pc}
.return0:
mov r0, #0
pop {r4, r5, pc} | 11.54717 | 35 | 0.55719 |
61c67dc5b61b35569128e8c72ad148523322d34d | 751 | asm | Assembly | oeis/188/A188676.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/188/A188676.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/188/A188676.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A188676: Alternate partial sums of the binomial coefficients binomial(3*n,n).
; Submitted by Jon Maiga
; 1,2,13,71,424,2579,15985,100295,635176,4051649,25993366,167543354,1084134346,7038291098,45821937982,299045487602,1955803426045,12815265660680,84111082917925,552872886403775,3638971619401720,23980463782961315,158202704198799085,1044734271634389875,6905527390454638225,45683019750694255403,302448403179173759881,2003831044322677242839,13285004591746411644673,88131863375281755113687,585001111131298416116377,3885228340933024053638855,25816519432083642356267560,171627406673018756869306133
mov $3,$0
mov $5,$0
add $5,1
lpb $5
mov $0,$3
sub $5,1
sub $0,$5
mov $2,2
mul $2,$0
add $0,$2
bin $0,$2
mul $4,-1
add $4,$0
lpe
mov $0,$4
| 37.55 | 488 | 0.808256 |
5ceb26ddcb2464564def2b7e65af99daae71c946 | 6,253 | asm | Assembly | Transynther/x86/_processed/NC/_st_zr_un_4k_/i7-7700_9_0x48_notsx.log_4252_8.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_st_zr_un_4k_/i7-7700_9_0x48_notsx.log_4252_8.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_st_zr_un_4k_/i7-7700_9_0x48_notsx.log_4252_8.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 %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x65ef, %r13
cmp %rbx, %rbx
vmovups (%r13), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %r10
nop
nop
nop
nop
nop
and %r8, %r8
lea addresses_WC_ht+0x15aef, %r8
nop
nop
nop
xor $41481, %rdi
movups (%r8), %xmm7
vpextrq $1, %xmm7, %r13
nop
nop
nop
nop
add %r13, %r13
lea addresses_normal_ht+0x182ef, %rax
cmp $33026, %r13
movw $0x6162, (%rax)
nop
nop
sub %rax, %rax
lea addresses_WT_ht+0x185ef, %rsi
lea addresses_UC_ht+0x596f, %rdi
clflush (%rsi)
nop
nop
nop
xor %r10, %r10
mov $39, %rcx
rep movsb
sub %r8, %r8
lea addresses_WT_ht+0xe1cf, %rcx
nop
nop
nop
nop
nop
add $45330, %rbx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
vmovups %ymm3, (%rcx)
nop
add $61130, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r8
push %r9
push %rax
push %rdx
// Store
mov $0x57d8bb00000002ef, %r8
clflush (%r8)
nop
xor %rax, %rax
mov $0x5152535455565758, %r12
movq %r12, (%r8)
nop
nop
cmp $14954, %r13
// Store
lea addresses_WC+0xecef, %r13
nop
sub %r14, %r14
mov $0x5152535455565758, %rax
movq %rax, (%r13)
nop
nop
cmp $64959, %r12
// Store
lea addresses_A+0xaef, %r14
inc %rdx
mov $0x5152535455565758, %r13
movq %r13, %xmm6
vmovups %ymm6, (%r14)
inc %r8
// Store
lea addresses_US+0x1f6e3, %r12
nop
nop
nop
nop
xor $53266, %r13
movl $0x51525354, (%r12)
nop
nop
nop
nop
nop
add %r13, %r13
// Faulty Load
mov $0x7dbaeb00000002ef, %r12
nop
nop
sub $3394, %rax
mov (%r12), %rdx
lea oracles, %r14
and $0xff, %rdx
shlq $12, %rdx
mov (%r14,%rdx,1), %rdx
pop %rdx
pop %rax
pop %r9
pop %r8
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 4, 'type': 'addresses_NC', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_NC', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_WC', 'congruent': 7}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 4, 'type': 'addresses_US', 'congruent': 1}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_NC', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 5}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 10}}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 5}, 'OP': 'STOR'}
{'6d': 16, '58': 4214, '00': 22}
6d 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 6d 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 6d 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 6d 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 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 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 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
*/
| 38.128049 | 2,999 | 0.654886 |
c3a2bb466790a7e59d9981cc10cf630b7c6da7e1 | 350 | asm | Assembly | oeis/020/A020133.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/020/A020133.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/020/A020133.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A020133: Ceiling of GAMMA(n+2/3)/GAMMA(2/3).
; Submitted by Christian Krause
; 1,1,2,3,11,51,288,1916,14685,127263,1230202,13122150,153091745,1939162101,26501882046,388694270001,6089543563341,101492392722343,1793032271428053,33469935733323642,658242069422031619
mov $2,$0
seq $0,20088 ; a(n) = floor(Gamma(n + 2/3)/Gamma(2/3)).
min $2,1
add $0,$2
| 38.888889 | 184 | 0.757143 |
6b4e73f27e23c6c9161a4bc8b0bcc7e21d47c38f | 247 | asm | Assembly | libsrc/_DEVELOPMENT/arch/hbios/c/sccz80/hbios_a_de.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/hbios/c/sccz80/hbios_a_de.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/hbios/c/sccz80/hbios_a_de.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; uint8_t hbios_a_de(uint16_t func_device, uint16_t arg) __smallc
SECTION code_clib
SECTION code_arch
PUBLIC hbios_a_de
EXTERN asm_hbios_a
.hbios_a_de
pop af
pop de
pop bc
push bc
push de
push af
jp asm_hbios_a
| 11.227273 | 65 | 0.712551 |
f608c0a46cd66a7b5ca5391bda6016dccd9a74dc | 558 | asm | Assembly | ESEMPI/MOLTIPLICAZIONE.asm | Porchetta/py-pdp8-tk | 5eba6bb2cf72b97602bfa2239e7bf44c454794e0 | [
"MIT"
] | 8 | 2019-06-07T10:38:41.000Z | 2022-03-24T13:05:12.000Z | ESEMPI/MOLTIPLICAZIONE.asm | Porchetta/py-pdp8-tk | 5eba6bb2cf72b97602bfa2239e7bf44c454794e0 | [
"MIT"
] | 2 | 2015-07-14T12:22:33.000Z | 2018-05-11T08:35:24.000Z | ESEMPI/MOLTIPLICAZIONE.asm | Porchetta/py-pdp8-tk | 5eba6bb2cf72b97602bfa2239e7bf44c454794e0 | [
"MIT"
] | 9 | 2015-05-06T14:35:08.000Z | 2021-03-23T14:27:21.000Z | ORG 100
CLA
CLE
LDA X
CIL
SZE
BUN POS1
BUN SEC
POS1, CIR
CMA
INC
STA X
LDA UNO
ADD SEGNO
STA SEGNO
SEC, LDA Y
CIL
SZE
BUN POS2
BUN START
POS2, CIR
CMA
INC
STA Y
LDA DUE
ADD SEGNO
STA SEGNO
CLA
CLE
BUN START
START, LDA X
CIR
STA X
SZE
BUN SOMMA
NEXT, LDA X
SPA
BUN FINE
LDA Y
CIL
STA Y
BUN START
FINE, LDA SEGNO
SZA
BUN NEG
HLT
NEG, LDA RIS
CMA
INC
STA RIS
HLT
SOMMA, CLE
CLA
LDA Y
ADD RIS
STA RIS
BUN NEXT
UNO, DEC 1
DUE, DEC -1
X, DEC 5
Y, DEC 2
SEGNO, DEC 0
RIS, DEC 0
END
| 7.540541 | 16 | 0.616487 |
0d4b0fb9f27018e0934d4476516472228acd7244 | 219 | nasm | Assembly | Project-Einstein/src/E-Assembly/src/labs/sw2.nasm | FelixLuciano/Elements-of-Computing-Systems | bf36e4f4bbaa75aebefd1b864514a146b371495d | [
"MIT"
] | null | null | null | Project-Einstein/src/E-Assembly/src/labs/sw2.nasm | FelixLuciano/Elements-of-Computing-Systems | bf36e4f4bbaa75aebefd1b864514a146b371495d | [
"MIT"
] | null | null | null | Project-Einstein/src/E-Assembly/src/labs/sw2.nasm | FelixLuciano/Elements-of-Computing-Systems | bf36e4f4bbaa75aebefd1b864514a146b371495d | [
"MIT"
] | 1 | 2022-02-20T21:45:28.000Z | 2022-02-20T21:45:28.000Z | ; Arquivo: sw1.nasm
; Curso: Elementos de Sistemas
; Criado por: Rafael Corsi
; Data: 4/2020
;
; Faça os LEDs serem o inverso das chaves
; LED = !SW
leaw $21185, %A
movw (%A), %D
notw %D
leaw $21184, %A
movw %D, (%A)
| 14.6 | 41 | 0.643836 |
0d14976e973fb4cf5aa364016b974ceeb98800c1 | 435 | asm | Assembly | programs/oeis/018/A018892.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/018/A018892.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/018/A018892.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A018892: Number of ways to write 1/n as a sum of exactly 2 unit fractions.
; 1,2,2,3,2,5,2,4,3,5,2,8,2,5,5,5,2,8,2,8,5,5,2,11,3,5,4,8,2,14,2,6,5,5,5,13,2,5,5,11,2,14,2,8,8,5,2,14,3,8,5,8,2,11,5,11,5,5,2,23,2,5,8,7,5,14,2,8,5,14,2,18,2,5,8,8,5,14,2,14,5,5,2,23,5,5,5,11,2,23,5,8,5,5,5,17,2,8,8,13
add $0,1
pow $0,2
trn $0,2
mov $1,$0
add $0,1
seq $0,94820 ; Partial sums of A038548.
seq $1,94820 ; Partial sums of A038548.
sub $0,$1
| 36.25 | 220 | 0.606897 |
8b4a3e3d34d54ce9f2809a505f6b2f57187bd2ed | 6,068 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1400.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_0xca.log_21829_1400.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_0xca.log_21829_1400.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 %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x3845, %rsi
lea addresses_UC_ht+0x18805, %rdi
mfence
mov $62, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %r9, %r9
lea addresses_UC_ht+0x147f5, %r14
nop
nop
xor $52738, %r11
mov (%r14), %r9d
nop
nop
nop
sub %rsi, %rsi
lea addresses_WC_ht+0x167e5, %rsi
lea addresses_WC_ht+0x10a45, %rdi
nop
add %r11, %r11
mov $39, %rcx
rep movsw
nop
nop
nop
nop
cmp $24006, %rdi
lea addresses_D_ht+0x15c45, %rsi
lea addresses_A_ht+0xa5, %rdi
clflush (%rdi)
nop
cmp $5665, %r14
mov $110, %rcx
rep movsb
nop
nop
nop
add %r9, %r9
lea addresses_A_ht+0x1c645, %rsi
lea addresses_normal_ht+0x1aec5, %rdi
nop
nop
xor %r11, %r11
mov $68, %rcx
rep movsq
nop
nop
nop
and %r11, %r11
lea addresses_WC_ht+0x9a11, %rsi
lea addresses_normal_ht+0x60e1, %rdi
nop
xor %rdx, %rdx
mov $83, %rcx
rep movsl
nop
nop
nop
nop
xor $19402, %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r15
push %r9
push %rbx
push %rdi
// Store
lea addresses_normal+0x160d5, %rdi
cmp $32642, %r11
mov $0x5152535455565758, %r12
movq %r12, (%rdi)
nop
add $37927, %r12
// Store
lea addresses_RW+0xe1d5, %r9
clflush (%r9)
nop
nop
nop
cmp $3951, %r15
mov $0x5152535455565758, %r11
movq %r11, %xmm4
movups %xmm4, (%r9)
nop
nop
nop
nop
sub $42874, %r11
// Faulty Load
lea addresses_WT+0xee45, %r9
nop
and %rdi, %rdi
movb (%r9), %r11b
lea oracles, %r12
and $0xff, %r11
shlq $12, %r11
mov (%r12,%r11,1), %r11
pop %rdi
pop %rbx
pop %r9
pop %r15
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_normal'}}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_RW'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 10, 'same': True, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_normal_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
*/
| 40.18543 | 2,999 | 0.661338 |
669ba0040bd2a9d4d6008ef2f3f295b11c35d312 | 430 | asm | Assembly | Solution/2.asm | 1813355042-Kamal/CSE331L-Section-1-Fall20-NSU | 0d6ce50d466ef5cc2f8a1ee35eea1b5be673bcb6 | [
"MIT"
] | null | null | null | Solution/2.asm | 1813355042-Kamal/CSE331L-Section-1-Fall20-NSU | 0d6ce50d466ef5cc2f8a1ee35eea1b5be673bcb6 | [
"MIT"
] | null | null | null | Solution/2.asm | 1813355042-Kamal/CSE331L-Section-1-Fall20-NSU | 0d6ce50d466ef5cc2f8a1ee35eea1b5be673bcb6 | [
"MIT"
] | null | null | null |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
.DATA
ANS DW ?
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV BX,0
MOV DX,1
MOV CX,10
LABEL:
ADD BX,DX
MOV AX,BX
MOV BX,DX
MOV DX,AX
LOOP LABEL
SUB DX,1
MOV ANS,DX
END MAIN
ret
ret
| 13.4375 | 69 | 0.534884 |
7058972969cf501bca8d76565a1cf908b501bb99 | 416 | asm | Assembly | oeis/259/A259104.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/259/A259104.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/259/A259104.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A259104: A000522(n+2)-A000522(n).
; Submitted by Jamie Morken(s2.)
; 4,14,60,310,1892,13374,107644,972710,9754500,107518702,1292197244,16818292374,235673103460,3537700674590,56637064388412,963304044932614,17346582063731204,329698807289999310,6595909863144795580,138548914038247276022,3048737440173364880484
add $0,1
mov $2,-1
mov $3,$0
lpb $0
sub $0,1
sub $2,$3
sub $3,$2
mul $2,$0
lpe
mov $0,$3
add $0,1
| 26 | 239 | 0.762019 |
437d4af39972b6c2a86e4523cb0b6b1177fb6096 | 8,816 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2545.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2545.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2545.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 %r14
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x18e6e, %rbx
nop
nop
nop
nop
sub %r9, %r9
movb (%rbx), %r14b
nop
nop
sub $49826, %rcx
lea addresses_A_ht+0x476c, %rcx
nop
nop
nop
cmp $13047, %r14
mov (%rcx), %r15
nop
add %rcx, %rcx
lea addresses_WC_ht+0x1d6c, %rbx
nop
nop
nop
nop
sub %r10, %r10
movb (%rbx), %r14b
nop
nop
cmp $20262, %r9
lea addresses_D_ht+0x12ce, %r9
nop
nop
nop
nop
inc %r15
mov (%r9), %r14w
nop
nop
nop
sub %r14, %r14
lea addresses_WT_ht+0x906c, %rsi
lea addresses_WC_ht+0x1a30c, %rdi
nop
nop
nop
nop
cmp $16873, %r9
mov $70, %rcx
rep movsb
nop
inc %r10
lea addresses_D_ht+0x11c2c, %rdi
clflush (%rdi)
sub $25221, %r14
mov (%rdi), %r15d
nop
nop
sub %r14, %r14
lea addresses_WT_ht+0x10af6, %rsi
lea addresses_D_ht+0xb66c, %rdi
nop
xor %r9, %r9
mov $86, %rcx
rep movsw
nop
nop
nop
cmp %r9, %r9
lea addresses_WC_ht+0x1b96c, %rsi
nop
nop
nop
sub %r9, %r9
mov (%rsi), %di
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_normal_ht+0xce6c, %r10
nop
nop
nop
nop
nop
add %r14, %r14
mov (%r10), %r15d
nop
cmp %r10, %r10
lea addresses_D_ht+0x1916c, %rsi
lea addresses_UC_ht+0x406c, %rdi
nop
nop
add %r9, %r9
mov $48, %rcx
rep movsl
nop
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_A_ht+0xf66c, %rdi
nop
cmp $263, %r15
movl $0x61626364, (%rdi)
nop
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_normal_ht+0x17c94, %rcx
nop
nop
nop
nop
nop
and $19485, %r9
movb $0x61, (%rcx)
nop
nop
nop
nop
sub %r9, %r9
lea addresses_A_ht+0x3c6c, %rbx
nop
nop
and %r10, %r10
mov $0x6162636465666768, %r15
movq %r15, (%rbx)
nop
nop
cmp $64547, %rsi
lea addresses_normal_ht+0x1c26c, %rbx
nop
nop
nop
nop
inc %r10
movw $0x6162, (%rbx)
nop
nop
nop
nop
add %r10, %r10
lea addresses_UC_ht+0xda84, %rbx
xor %r14, %r14
and $0xffffffffffffffc0, %rbx
movaps (%rbx), %xmm6
vpextrq $0, %xmm6, %rdi
nop
nop
nop
cmp $23173, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rsi
// Store
lea addresses_US+0x182ec, %r11
nop
nop
nop
dec %r14
movb $0x51, (%r11)
nop
nop
nop
xor %rbx, %rbx
// Store
lea addresses_UC+0x1c2ec, %r11
nop
sub %rsi, %rsi
mov $0x5152535455565758, %r14
movq %r14, %xmm6
vmovups %ymm6, (%r11)
nop
xor $20620, %rbp
// Store
mov $0x4fa60c0000000cfb, %rax
nop
nop
nop
sub %rsi, %rsi
mov $0x5152535455565758, %r14
movq %r14, %xmm6
vmovups %ymm6, (%rax)
nop
nop
nop
nop
dec %r14
// Store
lea addresses_PSE+0x1026c, %rax
clflush (%rax)
nop
nop
nop
nop
inc %rcx
movb $0x51, (%rax)
nop
sub %rax, %rax
// Store
lea addresses_WT+0x194e4, %rax
dec %r14
movw $0x5152, (%rax)
cmp $22080, %r14
// Faulty Load
lea addresses_UC+0x666c, %rax
xor $22587, %rcx
mov (%rax), %r11w
lea oracles, %rbp
and $0xff, %r11
shlq $12, %r11
mov (%rbp,%r11,1), %r11
pop %rsi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 8, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 3, 'size': 16, 'same': True, 'NT': 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
*/
| 30.71777 | 2,999 | 0.650749 |
0dc0c1b9af3f751e024874d9cceae90f8f43b4e3 | 7,877 | asm | Assembly | ee/hxt/exec.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ee/hxt/exec.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ee/hxt/exec.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ; Procedure to set up execute hotkeys V2.00 1990 Tony Tebby QJUMP
section hotkey
xdef hxt_res
xdef hxt_resw
xdef hxt_trn
xdef hxt_trnw
xdef hxt_exec
xdef hxt_wake
xdef hxt_ldex
xdef hxt_ldwk
xref hxt_repl
xref hxt_mkxi
xref hk_dflts
xref hk_newst
xref hxt_prmk
xref gu_hkuse
xref gu_hkfre
xref gu_thjmp
xref gu_achpp
xref gu_rchp
xref gu_fopen
xref gu_fclos
xref gu_iowp
include 'dev8_keys_qdos_sms'
include 'dev8_keys_qdos_ioa'
include 'dev8_keys_qdos_io'
include 'dev8_keys_err'
include 'dev8_keys_hdr'
include 'dev8_keys_thg'
include 'dev8_ee_hk_xhdr'
include 'dev8_ee_hk_data'
include 'dev8_ee_hxt_data'
include 'dev8_mac_thg'
max.name equ $24 ; max length of program name
alc.name equ max.name+4 ; space allocated for max name
;+++
; HOT_RES filename \P parameters \J Job name \W Wake name
;---
hxt_res thg_extn {RES },hxt_resw,hxt_prmk
hex.reg reg d1/d2/d3/d6/a0/a1/a2/a3/a4
stk_parm equ $14
movem.l hex.reg,-(sp)
moveq #hki.xthg,d6 ; execute thing
bra.s hex_file
;+++
; HOT_RESW filename \P parameters \J Job name \W Wake name
;---
hxt_resw thg_extn {RESW},hxt_trn,hxt_prmk
movem.l hex.reg,-(sp)
moveq #hki.wake,d6 ; wake thing
bra.s hex_file
;+++
; HOT_TRN filename \P parameters \J Job name \W Wake name
;---
hxt_trn thg_extn {TRN },hxt_trnw,hxt_prmk
movem.l hex.reg,-(sp)
moveq #hki.xttr,d6 ; execute thing (transient)
bra.s hex_file
;+++
; HOT_TRN filename \P parameters \J Job name \W Wake name
;---
hxt_trnw thg_extn {TRNW},hxt_exec,hxt_prmk
movem.l hex.reg,-(sp)
moveq #hki.wktr,d6 ; wake thing (transient)
hex_file
jsr hxt_repl ; replace Hotkey
bne.l hex_exit
move.l hxt_itnm(a1),a0 ; file name
moveq #ioa.kshr,d3 ; shared
lea gu_fopen,a4 ; open
pea -$70(sp) ; workspace
jsr hk_dflts ; with defaults
move.l (sp)+,a1
bne.l hex_exit
moveq #iof.rhdr,d0 ; read header
moveq #hdr.set,d2 ; minimum
jsr gu_iowp
bne.l hex_fclos ; ... oops, close file
cmp.b #1,hdr_type(a1) ; executable?
bne.l hex_ijob ; ... no
move.l hdr_flen(a1),d2 ; file length
move.l hdr_data(a1),d3 ; data space
move.l a0,a4
moveq #(th.len+thh_strt+4+hkh.hlen)/2+alc.name,d0
add.w d0,d0 ; length of thing
move.l d0,a1 ; start of program
add.l d2,d0 ; plus length of program
jsr gu_achpp
bne.l hex_fclos ; oops
add.l a0,a1 ; abs start of program
move.l a0,a2 ; base of thing
moveq #iof.load,d0 ; load file
move.l a4,a0
jsr gu_iowp
jsr gu_fclos ; finished with the file now
bne.l hex_rthg ; oops, return heap
move.l stk_parm(sp),a0 ; use job name
move.l hxt_jbnm(a0),d0
beq.s hex_pnam ; ... none
move.l d0,a4
move.w (a4),d0 ; length of job name
beq.s hex_pnam ; ... none
cmp.w #max.name,d0 ; too long?
bls.s hex_setth ; ... no
hex_pnam
lea 6(a1),a4 ; program header
cmp.w #hkh.flag,(a4)+ ; flagged?
bne.s hex_fnam ; ... no, use filename
move.w (a4),d0 ; length of program name
beq.s hex_fnam ; ... none
cmp.w #max.name,d0 ; too long?
bls.s hex_setth ; ... no
hex_fnam
move.l hxt_itnm(a0),a4 ; use item name
hex_setth
lea th_name(a2),a0 ; fill in name
move.l a4,a3 ; keep pointer to name
move.w (a3)+,d0
move.w d0,(a0)+
hex_setn
move.w (a3)+,(a0)+ ; create thing name
subq.w #2,d0
bgt.s hex_setn
lea th_name+alc.name(a2),a0
move.l a0,th_thing(a2) ; set pointer to thing
move.l #thh.flag,(a0)+ ; flag
moveq #tht.exec,d0 ; type
move.l d0,(a0)+
moveq #thh_strt+4,d0 ; start of header
move.l d0,(a0)+
moveq #hkh.hlen+max.name+2,d0 ; length of header
move.l d0,(a0)+
move.l d3,(a0)+ ; data space
moveq #thh_strt+4,d0
move.l d0,(a0)+ ; start of code
move.w #hkh.jmpl,(a0)+
move.l a1,(a0)+
move.w #hkh.flag,(a0)+
move.l a4,a3
move.w (a3)+,d0
move.w d0,(a0)+
hex_setp
move.w (a3)+,(a0)+ ; create program name
subq.w #2,d0
bgt.s hex_setp
move.l a2,a1 ; set thing base
moveq #sms.lthg,d0 ; link in thing
jsr gu_thjmp
move.l stk_parm(sp),a1 ; restore parameter pointer
beq.l hex_addi ; thing added, carry on
hex_rthg
move.l a2,a0
jsr gu_rchp ; can't do it, remove our bit of thing
bra.l hex_exit
hex_ijob
moveq #err.ijob,d0 ; invalid job
hex_fclos
jsr gu_fclos
bra.l hex_exit
;+++
; HOT_EXEC filename \P parameters \J Job name \W Wake name
;---
hxt_exec thg_extn {EXEC},hxt_wake,hxt_prmk
movem.l hex.reg,-(sp)
moveq #hki.xthg,d6 ; execute thing
bra.s hex_do
;+++
; HOT_WAKE filename \P parameters \J Job name \W Wake name
;---
hxt_wake thg_extn {WAKE},hxt_ldex,hxt_prmk
movem.l hex.reg,-(sp)
moveq #hki.wake,d6 ; wake thing
bra.s hex_do
;+++
; HOT_EXEC filename \P parameters \J Job name \W Wake name
;---
hxt_ldex thg_extn {LDEX},hxt_ldwk,hxt_prmk
movem.l hex.reg,-(sp)
moveq #hki.xfil,d6 ; execute thing
bra.s hex_do
;+++
; HOT_WAKE filename \P parameters \J Job name \W Wake name
;---
hxt_ldwk thg_extn {LDWK},,hxt_prmk
movem.l hex.reg,-(sp)
moveq #hki.wkxf,d6 ; wake thing
hex_do
move.l hxt_itnm(a1),a4 ; item name
sub.l a2,a2 ; no new thing
jsr hxt_repl ; replace
bne.s hex_exit
hex_addi
jsr hxt_mkxi ; make executable item
bne.s hex_exit
jsr gu_hkuse ; use hotkey
bne.s hex_rchp
move.l a0,a1
jsr hk_newst ; set new one
bne.s hex_rchp
jsr gu_hkfre
hex_exit
tst.l d0
movem.l (sp)+,hex.reg
rts
hex_rchp
jsr gu_rchp ; remove failed remains
move.l a2,d1 ; any thing added?
beq.s hex_exit ; ... no
move.l a2,a0
move.l d0,d3
moveq #sms.rthg,d0 ; remove thing
jsr gu_thjmp
move.l d3,d0
bra.s hex_exit
end
| 30.064885 | 79 | 0.477212 |
cad66f6d33239a6695402e866542d20b4f9db43d | 510 | asm | Assembly | programs/oeis/306/A306546.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/306/A306546.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/306/A306546.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A306546: Modified Collatz Map such that odd numbers are treated the same, but even numbers have all factors of 2 removed.
; 4,1,10,1,16,3,22,1,28,5,34,3,40,7,46,1,52,9,58,5,64,11,70,3,76,13,82,7,88,15,94,1,100,17,106,9,112,19,118,5,124,21,130,11,136,23,142,3,148,25,154,13,160,27,166,7,172,29,178,15,184,31,190,1,196,33,202,17,208,35,214,9,220,37,226,19,232,39,238,5,244,41,250,21,256,43,262,11,268,45,274,23,280,47,286,3,292,49,298,25
mov $2,$0
mul $0,3
add $0,4
add $2,1
lpb $2
dif $2,2
mov $0,$2
lpe
| 42.5 | 313 | 0.680392 |
78e12f360b3a54fc1a382c664c69b30ab23c9bc8 | 478 | asm | Assembly | oeis/251/A251656.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/251/A251656.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/251/A251656.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A251656: 4-step Fibonacci sequence starting with 1,0,1,0.
; Submitted by Christian Krause
; 1,0,1,0,2,3,6,11,22,42,81,156,301,580,1118,2155,4154,8007,15434,29750,57345,110536,213065,410696,791642,1525939,2941342,5669619,10928542,21065442,40604945,78268548,150867477,290806412,560547382,1080489819
mov $2,2
mov $4,-2
lpb $0
sub $0,1
add $1,$5
sub $1,1
sub $2,1
sub $3,$4
mov $4,$2
mov $2,$3
add $2,$1
mov $1,$3
add $5,$4
mov $3,$5
lpe
mov $0,$2
sub $0,1
| 21.727273 | 206 | 0.67364 |
0727f17aef29ca832292bbea8aba51548eaba417 | 144 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_w31.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_w31.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/sfc/ys_w31.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: ys_w31.asm
Type: file
Size: 17935
Last-Modified: '2016-05-13T04:51:45Z'
SHA-1: 6BB1A092AC18359A9DBBF9852EEB3598D2E1F105
Description: null
| 20.571429 | 47 | 0.8125 |
dc6805770a2bb80be6d3945afa2178b4731dce8a | 4,676 | asm | Assembly | sgb/command_mlt_req.asm | endrift/SameSuite | 89ffe653cdd888385935fe9a2f1062d2dcc18cdb | [
"MIT"
] | 21 | 2018-09-09T01:49:32.000Z | 2022-03-22T20:49:05.000Z | sgb/command_mlt_req.asm | endrift/SameSuite | 89ffe653cdd888385935fe9a2f1062d2dcc18cdb | [
"MIT"
] | 3 | 2020-10-18T16:33:08.000Z | 2021-09-04T10:58:51.000Z | sgb/command_mlt_req.asm | endrift/SameSuite | 89ffe653cdd888385935fe9a2f1062d2dcc18cdb | [
"MIT"
] | 9 | 2018-09-29T19:18:03.000Z | 2021-05-15T14:23:08.000Z | RESULTS_START EQU $c000
RESULTS_N_ROWS EQU 3
include "base.inc"
; This test verifies how SGB command MLT_REQ works
SgbPacket: MACRO
push hl
ld hl, \1
call SendSgbPacket
pop hl
ENDM
CorrectResults:
db $FF, $FE, $FF, $FF, $FF, $FF, $FE, $FD
db $FC, $FE, $FF, $FE, $FF, $FF, $FD, $FD
db $FD, $FF, $FF, $FD, $FD, $FD, $FD, $FF
RunTest:
ld de, $c000
; Initial value always reads out as controller 1
SgbPacket MLT_REQ_1
ldh a, [rP1]
call StoreResult
; Check that incrementing works as expected
call Increment
ldh a, [rP1]
call StoreResult
; Test to see if the controller value is reset by going back to 1 player
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_1
ldh a, [rP1]
call StoreResult
; Test to see the controller value in unsupported MLT_REQ 2
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_2
ldh a, [rP1]
call StoreResult
call Increment
ldh a, [rP1]
call StoreResult
; Test to see the controller order in MLT_REQ 3
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
ldh a, [rP1]
call StoreResult
call Increment
ldh a, [rP1]
call StoreResult
call Increment
ldh a, [rP1]
call StoreResult
call Increment
ldh a, [rP1]
call StoreResult
; Test if switching from 3 to 1 retains any state
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
SgbPacket MLT_REQ_1 ; Each of these increments the player 5 times before it gets ANDed
ldh a, [rP1]
call StoreResult
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
call Increment
SgbPacket MLT_REQ_1
ldh a, [rP1]
call StoreResult
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
call Increment
call Increment
SgbPacket MLT_REQ_1
ldh a, [rP1]
call StoreResult
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
call Increment
call Increment
call Increment
SgbPacket MLT_REQ_1
ldh a, [rP1]
call StoreResult
; Test how many times sending a packet increments
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
ldh a, [rP1]
call StoreResult
SgbPacket MLT_REQ_3 ; This should increment the player 6 times before it gets ANDed
ldh a, [rP1]
call StoreResult
; Test if invalid mode 2 has a glitched player 3
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
SgbPacket MLT_REQ_2 ; This should increment the player 5 times
ldh a, [rP1]
call StoreResult
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
call Increment
SgbPacket MLT_REQ_2
ldh a, [rP1]
call StoreResult
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
call Increment
call Increment
SgbPacket MLT_REQ_2
ldh a, [rP1]
call StoreResult
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
call Increment
call Increment
call Increment
SgbPacket MLT_REQ_2
ldh a, [rP1]
call StoreResult
; Test if incrementing within the glitched mode works
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
SgbPacket MLT_REQ_2
call Increment
ldh a, [rP1]
call StoreResult
call Increment
ldh a, [rP1]
call StoreResult
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
call Increment
SgbPacket MLT_REQ_2
call Increment
ldh a, [rP1]
call StoreResult
call Increment
ldh a, [rP1]
call StoreResult
SgbPacket MLT_REQ_0
SgbPacket MLT_REQ_3
call Increment
call Increment
SgbPacket MLT_REQ_2
call Increment
ldh a, [rP1]
call StoreResult
ret
SendSgbPacket:
push bc
push de
ld d, 16
; Reset packet buffer
xor a
ldh [rP1], a
ld a, $30
ldh [rP1], a
.sgbByte:
ld a, [hl+] ; Load next byte
ld c, 8
ld b, a
.sgbByteLoop:
ld a, $10
bit 0, b
jr nz, .sgbBit
sla a
.sgbBit:
ldh [rP1], a
ld a, $30
ldh [rP1], a
srl b
dec c
jr nz, .sgbByteLoop
dec d
jr nz, .sgbByte
; Terminate packet
ld a, $20
ldh [rP1], a
ld a, $30
ldh [rP1], a
pop de
pop bc
SgbWait:
push de
ld de, 7000
.waitloop:
nop
nop
nop
dec de
ld a, e
or d
jr nz, .waitloop
pop de
ret
Increment:
ld a, $10
ldh [rP1], a
ld a, $30
ldh [rP1], a
ret
StoreResult::
ld [de], a
inc de
ret
MLT_REQ_0:
db $89, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
MLT_REQ_1:
db $89, $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
MLT_REQ_2:
db $89, $02, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
MLT_REQ_3:
db $89, $03, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
SGB_MODE
| 17.984615 | 90 | 0.62639 |
f03c40a2212e6acf212bbabec8ca9dafc5137eef | 146 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/chip/ys_mpldt.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/chip/ys_mpldt.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver2/chip/ys_mpldt.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: ys_mpldt.asm
Type: file
Size: 94000
Last-Modified: '2016-05-13T04:51:40Z'
SHA-1: C989B6EA7A173C909F5065EF9BB0630206355E56
Description: null
| 20.857143 | 47 | 0.815068 |
5592eddefec30342b58c5b06c99dec4033b81e46 | 16 | asm | Assembly | test/full-pipeline/should-pass/009-3-inst-5-words-rev.asm | phillid/toy-cpu-assembler | e13abc6d9abca5aa541ec9d7cb8f606b7a948919 | [
"MIT"
] | null | null | null | test/full-pipeline/should-pass/009-3-inst-5-words-rev.asm | phillid/toy-cpu-assembler | e13abc6d9abca5aa541ec9d7cb8f606b7a948919 | [
"MIT"
] | null | null | null | test/full-pipeline/should-pass/009-3-inst-5-words-rev.asm | phillid/toy-cpu-assembler | e13abc6d9abca5aa541ec9d7cb8f606b7a948919 | [
"MIT"
] | null | null | null | nop
jmp 0
jmp 0
| 4 | 5 | 0.6875 |
5594b9cfef833330147f191c0fd2973e88ce10f8 | 2,831 | asm | Assembly | Codes/Chapter07/P11/P07-11.asm | ar-ekt/Dandamudi-Assembly-Solutions | 876097a20420b125b19ec9e71cc480cc08b47997 | [
"MIT"
] | 8 | 2021-03-04T18:31:42.000Z | 2021-11-03T04:41:25.000Z | Codes/Chapter07/P11/P07-11.asm | ar-ekt/Dandamudi-Assembly-Solutions | 876097a20420b125b19ec9e71cc480cc08b47997 | [
"MIT"
] | null | null | null | Codes/Chapter07/P11/P07-11.asm | ar-ekt/Dandamudi-Assembly-Solutions | 876097a20420b125b19ec9e71cc480cc08b47997 | [
"MIT"
] | 1 | 2021-11-09T09:49:00.000Z | 2021-11-09T09:49:00.000Z | global _start
extern ExitProcess
%INCLUDE "lib.h"
section .data
enterLen db 'Enter Length of a box : ',0
enterWidth db 'Enter Width of a box : ',0
enterHeight db 'Enter Height of a box : ',0
volumeMsg db 'Volume = ',0
surfaceVolumeMsg db 'Surface volume = ',0
newline db 10,0
section .bss
len resd 3
width resd 3
height resd 3
resVolume resd 3
surfaceVolume resd 3
res1 resd 3
res2 resd 3
res3 resd 3
section .code
_start:
puts enterLen
fgets len,12
a2i 12,len ;stores length in EAX
mov EBX,EAX ;move length to EBX
puts enterWidth
fgets width,12
a2i 12,width ;stores width in EAX
mov EDX,EAX ;move width to EDX
puts enterHeight
fgets height,12
a2i 12,height ;stores height in EAX
cal_volume:
mul EDX ;(height * width) and stores result in EAX
mul EBX ;(EAX * length) and stores result in EAX
i2a EAX,resVolume ;move result to resVolume
cal_surfaceVolume:
a2i 12,len ;stores length in EAX
mov EBX,EAX ;move length to EBX
a2i 12,height ;stores height in EAX
mul EBX ;(height * length) and stores result in EAX
i2a EAX,res1 ;move result to res1
a2i 12,width ;stores width in EAX
mov EDX,EAX ;move width to EDX
a2i 12,height ;stores height in EAX
mul EDX ;(height * width) and stores result in EAX
i2a EAX,res2 ;move result to res2
a2i 12,len ;stores length in EAX
mov EBX,EAX ;move length to EBX
a2i 12,width ;stores width in EAX
mul EBX ;(length * width) and stores result in EAX
i2a EAX,res3 ;move result to res3
a2i 12,res1
mov EBX,EAX ;stores res1 in EBX
a2i 12,res2
mov EDX,EAX ;stores res2 in EDX
a2i 12,res3 ;stores res3 in EAX
add EAX,EBX
add EAX,EDX ;(res1 + res2 + res3) and stores result in EAX
mov EBX,2 ;put 2 in source operand , to multiply EAX by it
mul EBX ;(EAX * EBX) and stores result in EAX
i2a EAX,surfaceVolume ;move result to surfaceVolume
print:
puts volumeMsg
puts resVolume
puts newline
puts surfaceVolumeMsg
puts surfaceVolume
puts newline
done:
push 0
call ExitProcess
| 34.108434 | 85 | 0.51042 |
7cd4741d43e0b7db440b0252120d587ee2260c20 | 448 | asm | Assembly | semester-5/microprocessor/8mul.asm | saranshbht/bsc-codes | 7386c09cc986de9c84947f7dea7db3dc42219a35 | [
"MIT"
] | 3 | 2021-03-22T12:07:14.000Z | 2021-08-30T17:28:23.000Z | semester-5/microprocessor/8mul.asm | saranshbht/bsc-codes | 7386c09cc986de9c84947f7dea7db3dc42219a35 | [
"MIT"
] | null | null | null | semester-5/microprocessor/8mul.asm | saranshbht/bsc-codes | 7386c09cc986de9c84947f7dea7db3dc42219a35 | [
"MIT"
] | null | null | null | .model small
.data
first db 0ffh
second db 0eeh
msg db "Result: $", 10
.code
.startup
lea dx, msg
mov ah, 09h
int 21h
mov al, first
mul second
mov cx, 4
mov bx, ax
print:
rol bx, 4
mov dl, bl
and dl, 0fh
add dl, 30h
cmp dl, 39h
jbe print1
add dl, 07h
print1:
mov ah, 02h
int 21h
loop print
.exit
end | 13.575758 | 26 | 0.46875 |
8384527d0eee0c28c103c30e0849b55ca36ad00d | 689 | asm | Assembly | oeis/256/A256650.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/256/A256650.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/256/A256650.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A256650: 30-gonal pyramidal numbers: a(n) = n*(n+1)*(28*n-25)/6.
; Submitted by Jamie Morken(s1.)
; 0,1,31,118,290,575,1001,1596,2388,3405,4675,6226,8086,10283,12845,15800,19176,23001,27303,32110,37450,43351,49841,56948,64700,73125,82251,92106,102718,114115,126325,139376,153296,168113,183855,200550,218226,236911,256633,277420,299300,322301,346451,371778,398310,426075,455101,485416,517048,550025,584375,620126,657306,695943,736065,777700,820876,865621,911963,959930,1009550,1060851,1113861,1168608,1225120,1283425,1343551,1405526,1469378,1535135,1602825,1672476,1744116,1817773,1893475,1971250
mov $3,$0
lpb $0
sub $0,1
add $2,$3
add $4,$2
add $1,$4
mov $3,25
lpe
mov $0,$1
| 49.214286 | 497 | 0.766328 |
8b8f14fc6444de6a157d90e3b5142810ee226abf | 6,675 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1166.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1166.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_1166.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 %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x15ba7, %rsi
lea addresses_A_ht+0x199f, %rdi
xor $30078, %r11
mov $9, %rcx
rep movsl
cmp $56885, %rbx
lea addresses_UC_ht+0x17d7b, %rcx
nop
nop
nop
nop
nop
xor %rdi, %rdi
vmovups (%rcx), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %r11
nop
nop
nop
dec %rcx
lea addresses_D_ht+0x14673, %rdi
nop
nop
nop
nop
nop
cmp %r9, %r9
movl $0x61626364, (%rdi)
nop
nop
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x1283b, %rsi
lea addresses_WT_ht+0x127e7, %rdi
clflush (%rdi)
nop
nop
nop
nop
inc %r8
mov $42, %rcx
rep movsq
nop
nop
nop
nop
add $40468, %r11
lea addresses_normal_ht+0x15fe7, %rsi
lea addresses_WT_ht+0x15d67, %rdi
nop
nop
sub $34882, %rax
mov $96, %rcx
rep movsq
nop
nop
and %rax, %rax
lea addresses_A_ht+0x126e7, %rsi
lea addresses_UC_ht+0x29e7, %rdi
nop
xor %rax, %rax
mov $49, %rcx
rep movsw
cmp %rdi, %rdi
lea addresses_WT_ht+0x179e7, %rcx
nop
nop
nop
and $11925, %rbx
vmovups (%rcx), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rsi
and $19248, %r8
lea addresses_A_ht+0xd7e7, %rax
clflush (%rax)
nop
nop
xor $18320, %rdi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm5
vmovups %ymm5, (%rax)
nop
nop
nop
nop
nop
dec %r9
lea addresses_WT_ht+0x1ce37, %rsi
lea addresses_WC_ht+0x1ee5f, %rdi
clflush (%rsi)
and $5520, %r8
mov $30, %rcx
rep movsq
nop
xor %r9, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r8
push %rax
push %rbp
push %rcx
// Load
lea addresses_D+0x2aff, %r11
sub $12121, %rbp
mov (%r11), %r14w
nop
xor %rcx, %rcx
// Faulty Load
lea addresses_normal+0xe1e7, %r8
nop
nop
nop
xor $41276, %rax
vmovups (%r8), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r14
lea oracles, %rcx
and $0xff, %r14
shlq $12, %r14
mov (%rcx,%r14,1), %r14
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': True}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 38.583815 | 2,999 | 0.660075 |
6b6c4b9211ebf407c8e6bbcce80a12ee879b3997 | 346 | asm | Assembly | programs/oeis/059/A059409.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/059/A059409.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/059/A059409.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A059409: a(n) = 4^n * (2^n - 1).
; 0,4,48,448,3840,31744,258048,2080768,16711680,133955584,1072693248,8585740288,68702699520,549688705024,4397778075648,35183298347008,281470681743360,2251782633816064,18014329790005248
mov $2,$0
add $0,$2
add $0,$2
lpb $0,1
mov $3,$4
add $4,$2
add $4,$3
mov $1,$4
sub $2,1
sub $4,$2
sub $0,1
lpe
| 21.625 | 184 | 0.682081 |
0f2b25d241b55786e134740bfc8a778d31611061 | 5,183 | asm | Assembly | kernel/nano_core/src/boot/arch_x86_64/ap_boot.asm | jhutchins/Theseus | fe9edf60878c208116be824371c9992f9e1acb0f | [
"MIT"
] | 1,822 | 2020-09-20T07:30:38.000Z | 2022-03-31T18:18:48.000Z | kernel/nano_core/src/boot/arch_x86_64/ap_boot.asm | Qwaz/Theseus | fbe80b056c75b23e4b51cf0bbd47cf17f05da671 | [
"MIT"
] | 102 | 2020-08-31T22:45:32.000Z | 2022-03-25T09:34:54.000Z | kernel/nano_core/src/boot/arch_x86_64/ap_boot.asm | Qwaz/Theseus | fbe80b056c75b23e4b51cf0bbd47cf17f05da671 | [
"MIT"
] | 87 | 2020-09-01T21:47:00.000Z | 2022-03-12T03:16:58.000Z | %include "defines.asm"
section .init.text32ap progbits alloc exec nowrite
bits 32 ;We are still in protected mode
extern set_up_SSE
%ifdef ENABLE_AVX
extern set_up_AVX
%endif
global ap_start_protected_mode
ap_start_protected_mode:
; xchg bx, bx ; bochs magic breakpoint
mov esp, 0xFC00; set a new stack pointer, 512 bytes below our AP_STARTUP code region
call set_up_SSE ; in boot.asm
%ifdef ENABLE_AVX
call set_up_AVX ; in boot.asm
%endif
call set_up_paging_ap
; each character is reversed in the dword cuz of little endianness
; prints PGTBL
mov dword [0xb8018], 0x4f2E4f2E ; ".."
mov dword [0xb801c], 0x4f504f2E ; ".P"
mov dword [0xb8020], 0x4f544f47 ; "GT"
mov dword [0xb8024], 0x4f4C4f42 ; "BL"
; Load the 64-bit GDT
lgdt [GDT_AP.ptr_low - KERNEL_OFFSET]
; prints GDT
mov dword [0xb8028], 0x4f2E4f2E ; ".."
mov dword [0xb802c], 0x4f474f2E ; ".G"
mov dword [0xb8030], 0x4f544f44 ; "DT"
mov eax, 0x4f004f00
or eax, GDT_AP.code + 0x30 ; convert GDT_AP.code value to ASCII char
mov dword [0xb8034], eax ; prints GDT_AP.code value
; Load the code selector via a far jmp
; From now on instructions are 64 bits
jmp dword GDT_AP.code:long_mode_start_ap; -> !
; an alternative to jmp, we construct a jmp instr on the stack. No difference though.
; push 8
; push long_mode_start_ap
; retf
set_up_paging_ap:
; first, quickly disable paging
mov eax, cr0
and eax, 0x7FFFFFFF ; clear bit 31
mov cr0, eax
; Enable:
; PGE: (Page Global Extentions)
; PAE: (Physical Address Extension)
; PSE: (Physical Size Extentions)
mov eax, cr4
or eax, (1 << 7) | (1 << 5) ; | (1 << 1)
mov cr4, eax
; load P4 to cr3 register (cpu uses this to access the P4 table)
; to set up paging for the newly-booted AP,
; use the same page table that the BSP Rust code set up for us in the trampoline
mov eax, [AP_PAGE_TABLE]
mov cr3, eax
; set the no execute (bit 11), long mode (bit 8), and SYSCALL Enable (bit 0)
; bits in the EFER MSR (which is MSR 0xC0000080)
mov ecx, 0xC0000080
rdmsr
or eax, (1 <<11) | (1 << 8) | (1 << 0) ; NXE, LME, SCE
wrmsr
; enable paging and write protection in the cr0 register
mov eax, cr0
or eax, (1 << 31) | (1 << 16) | (1 << 0); PG | WP | PM
mov cr0, eax
ret
; ---------------------------------------- Long Mode ----------------------------------------
bits 64
section .init.text.highap
global long_mode_start_ap
long_mode_start_ap:
; in long mode, it's okay to set data segment registers to 0
; ; mov rax, GDT_AP.data
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
; Load the new GDT
lgdt [rel GDT_AP.ptr]
; mov rsp, 0xFC00
; each character is reversed in the dword cuz of little endianness
mov dword [0xFFFFFFFF800b8038], 0x4f2E4f2E ; ".."
mov dword [0xFFFFFFFF800b803c], 0x4f4f4f4c ; "LO"
mov dword [0xFFFFFFFF800b8040], 0x4f474f4e ; "NG"
; Long jump to the higher half. Because `jmp` does not take
; a 64 bit address (which we need because we are practically
; jumping to address +254Tb), we must first load the address
; to `rax` and then jump to it
mov rax, start_high_ap
jmp rax
section .text.ap
global start_high_ap
start_high_ap:
cli
; Set up high stack
; add rsp, KERNEL_OFFSET
; set up the segment registers
mov ax, 0 ; a null (0) data segment selector is fine for 64-bit instructions
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
; each character is reversed in the dword cuz of little endianness
mov dword [0xb8048 + KERNEL_OFFSET], 0x4f2E4f2E ; ".."
mov dword [0xb804c + KERNEL_OFFSET], 0x4f494f48 ; "HI"
mov dword [0xb8050 + KERNEL_OFFSET], 0x4f484f47 ; "GH"
mov dword [0xb8054 + KERNEL_OFFSET], 0x4f524f45 ; "ER"
; move to the new stack that was alloc'd for this AP
mov rcx, [AP_STACK_END]
lea rsp, [rcx - 256]
; Rust's calling conventions is as follows:
; RDI, RSI, RDX, RCX, R8, R9, (R10??), others on stack
; This order below MUST MATCH the parameter order in kstart_ap()
mov rdi, [AP_PROCESSOR_ID]
mov rsi, [AP_APIC_ID]
mov rdx, [AP_STACK_START]
mov rcx, [AP_STACK_END]
mov r8, [AP_NMI_LINT]
mov r9, [AP_NMI_FLAGS]
mov rax, qword [AP_CODE]
; we signal the BSP that we're booting into Rust code,
; and that we're done using the trampoline space
mov qword [AP_READY], 1
jmp rax
; If the Rust code returned, which is an error,
; then put the core into an infinite loop.
cli
.loop:
hlt
jmp .loop
; One would expect the GDT to be in rodata, since you shouldn't need to write to it.
; However, during the ap boot phase on real hardware, there is a write page fault
; if you put it in rodata (i.e., map it as read-only).
section .data.ap
GDT_AP:
dq 0 ; zero entry
.code equ $ - GDT_AP
dq (1<<44) | (1<<47) | (1<<41) | (1<<43) | (1<<53) ; code segment
; dq (1<<44) | (1<<47) | (1<<43) | (1<<53) | 0xFFFF; code segment, limit 0xFFFF
.data equ $ - GDT_AP
dq (1<<44) | (1<<47) | (1<<41) ; | (1 << 53) ; data segment
.end equ $
; ALIGN 4
; dw 0 ; padding to make sure GDT pointer is 4-byte aligned
.ptr_low:
dw .end - GDT_AP - 1
dd GDT_AP - KERNEL_OFFSET
; dq GDT_AP - KERNEL_OFFSET
.ptr:
dw .end - GDT_AP - 1
dq GDT_AP | 25.78607 | 93 | 0.673548 |
93ad7b873bab282d4980f8ac1fb453fbf3c1453f | 69 | asm | Assembly | scripts_br/save_screen.asm | hansbonini/smd_beyondoasis | fa15eb880fba84a0a9e372e56cc0e77d0892444c | [
"MIT"
] | 2 | 2020-12-13T18:51:06.000Z | 2020-12-15T14:34:44.000Z | scripts_br/save_screen.asm | hansbonini/smd_beyondoasis | fa15eb880fba84a0a9e372e56cc0e77d0892444c | [
"MIT"
] | null | null | null | scripts_br/save_screen.asm | hansbonini/smd_beyondoasis | fa15eb880fba84a0a9e372e56cc0e77d0892444c | [
"MIT"
] | 1 | 2020-12-15T19:09:48.000Z | 2020-12-15T19:09:48.000Z | origin $003F4000
text_savescreen:
db "Novo Jogo"
db ENDSTRING | 17.25 | 18 | 0.724638 |
7cb4a52dd7e65d173a95fc4e2016ba0334884eb7 | 8,698 | asm | Assembly | src/distance.asm | QuinnPainter/Renegade-Rush | 84f5bf1af0a8fda258e6f963dad411f983923f5a | [
"MIT"
] | 1 | 2021-09-17T08:19:10.000Z | 2021-09-17T08:19:10.000Z | src/distance.asm | QuinnPainter/Renegade-Rush | 84f5bf1af0a8fda258e6f963dad411f983923f5a | [
"MIT"
] | 1 | 2020-05-25T11:19:44.000Z | 2020-05-25T11:19:44.000Z | src/distance.asm | QuinnPainter/Renegade-Rush | 84f5bf1af0a8fda258e6f963dad411f983923f5a | [
"MIT"
] | null | null | null | INCLUDE "hardware.inc"
INCLUDE "macros.inc"
INCLUDE "charmaps.inc"
; This file is in charge of keeping track of the player's travelled distance,
; and for increasing the difficulty accordingly.
DEF AREA1_DISTBOUNDARY EQU $001600 ; 3 byte BCD
DEF AREA2_DISTBOUNDARY EQU $003600
DEF AREA3_DISTBOUNDARY EQU $005400
DEF AREA0_MIN_ROAD_WIDTH EQU 11
DEF AREA1_MIN_ROAD_WIDTH EQU 9
DEF AREA2_MIN_ROAD_WIDTH EQU 7
DEF AREA3_MIN_ROAD_WIDTH EQU 5
DEF AREA0_MAX_ROAD_OFFSET EQU (14 - AREA0_MIN_ROAD_WIDTH)
DEF AREA1_MAX_ROAD_OFFSET EQU (14 - AREA1_MIN_ROAD_WIDTH)
DEF AREA2_MAX_ROAD_OFFSET EQU (14 - AREA2_MIN_ROAD_WIDTH)
DEF AREA3_MAX_ROAD_OFFSET EQU (14 - AREA3_MIN_ROAD_WIDTH)
; Chance of an enemy spawning each frame, out of 65535
; So, if you calculate 1 / (SPAWN_CHANCE / 65535), you get the avg number of frames for it to spawn
DEF AREA0_CAR_SPAWN_CHANCE EQU 127
DEF AREA0_HELI_SPAWN_CHANCE EQU 60
DEF AREA1_CAR_SPAWN_CHANCE EQU 127
DEF AREA1_HELI_SPAWN_CHANCE EQU 100
DEF AREA2_CAR_SPAWN_CHANCE EQU 140
DEF AREA2_HELI_SPAWN_CHANCE EQU 120
DEF AREA3_CAR_SPAWN_CHANCE EQU 200
DEF AREA3_HELI_SPAWN_CHANCE EQU 200
DEF AREA0_HEAVY_CHANCE EQU 0 ; out of 255
DEF AREA1_HEAVY_CHANCE EQU 50
DEF AREA2_HEAVY_CHANCE EQU 100
DEF AREA3_HEAVY_CHANCE EQU 150
DEF AREA0_ROADOBJ_SPAWN_CHANCE EQU 200 ; out of 65535
DEF AREA1_ROADOBJ_SPAWN_CHANCE EQU 200
DEF AREA2_ROADOBJ_SPAWN_CHANCE EQU 250
DEF AREA3_ROADOBJ_SPAWN_CHANCE EQU 300
DEF MENUBAR_TILE_OFFSET EQUS "(((MenuBarTilesVRAM - $8800) / 16) + 128)"
DEF NUMBER_TILE_OFFSET EQUS "(((MenuBarNumbersVRAM - $8800) / 16) + 128)"
DEF ROAD1_TILE_OFFSET EQUS "((RoadTiles1VRAM - $9000) / 16)"
DEF ROAD2_TILE_OFFSET EQUS "((RoadTiles2VRAM - $9000) / 16)"
DEF ROAD3_TILE_OFFSET EQUS "((RoadTiles3VRAM - $9000) / 16)"
DEF ROAD4_TILE_OFFSET EQUS "((RoadTiles4VRAM - $9000) / 16)"
; Input - \1 = Distance boundary value
; Sets - A H L to garbage
MACRO SET_AREA_BOUNDARY
ld hl, NextAreaBoundary
ld a, (\1) & $FF
ld [hli], a
ld a, (\1 >> 8) & $FF
ld [hli], a
ld a, (\1 >> 16) & $FF
ld [hli], a
ENDM
; Input - \1 = Car spawn chance
; Input - \2 = Heli spawn chance
; Input - \3 = Road object spawn chance
; Input - \4 = Heavy car spawn chance
; Sets - A H L to garbage
MACRO SET_SPAWN_CHANCES
ld hl, EnemyCarSpawnChance
ld a, LOW(\1)
ld [hli], a
ld a, HIGH(\1)
ld [hl], a
ld hl, HeliSpawnChance
ld a, LOW(\2)
ld [hli], a
ld a, HIGH(\2)
ld [hl], a
ld hl, RoadObjSpawnChance
ld a, LOW(\3)
ld [hli], a
ld a, HIGH(\3)
ld [hl], a
ld a, \4
ld [HeavySpawnChance], a
ENDM
SECTION "DistanceVars", WRAM0
DistanceTravelled: DS 3 ; Little endian BCD. Counts number of road lines travelled (8 pixels)
BestDistance:: DS 3 ; "High Score" distance
CurrentArea: DS 1 ; Index of the current area. Starts at 0
NextAreaBoundary: DS 3 ; Distance value that marks when it should change to the next area
SECTION "DistanceCode", ROM0
initDistance::
xor a
ld hl, DistanceTravelled
ld [hli], a
ld [hli], a
ld [hli], a
ld [CurrentArea], a
call setArea
ret
; Update the current area
setArea:
ld a, [CurrentArea]
and a
jr z, .area0
dec a
jr z, .area1
dec a
jp z, .area2
; Area 3 - Squares
ld a, ROAD1_TILE_OFFSET
ld [RoadTileOffset], a
ld a, AREA3_MAX_ROAD_OFFSET
ld [MaxRoadOffset], a
SET_SPAWN_CHANCES AREA3_CAR_SPAWN_CHANCE, AREA3_HELI_SPAWN_CHANCE, AREA3_ROADOBJ_SPAWN_CHANCE, AREA3_HEAVY_CHANCE
SET_AREA_BOUNDARY $999999
ret
.area0: ; Area 0 - Grassy
ld a, ROAD2_TILE_OFFSET
ld [RoadTileOffset], a
ld a, AREA0_MAX_ROAD_OFFSET
ld [MaxRoadOffset], a
SET_SPAWN_CHANCES AREA0_CAR_SPAWN_CHANCE, AREA0_HELI_SPAWN_CHANCE, AREA0_ROADOBJ_SPAWN_CHANCE, AREA0_HEAVY_CHANCE
SET_AREA_BOUNDARY AREA1_DISTBOUNDARY
ret
.area1: ; Area 1 - Brick
ld a, ROAD3_TILE_OFFSET
ld [RoadTileOffset], a
ld a, AREA1_MAX_ROAD_OFFSET
ld [MaxRoadOffset], a
SET_SPAWN_CHANCES AREA1_CAR_SPAWN_CHANCE, AREA1_HELI_SPAWN_CHANCE, AREA1_ROADOBJ_SPAWN_CHANCE, AREA1_HEAVY_CHANCE
SET_AREA_BOUNDARY AREA2_DISTBOUNDARY
ret
.area2: ; Area 2 - Rocky
ld a, ROAD4_TILE_OFFSET
ld [RoadTileOffset], a
ld a, AREA2_MAX_ROAD_OFFSET
ld [MaxRoadOffset], a
SET_SPAWN_CHANCES AREA2_CAR_SPAWN_CHANCE, AREA2_HELI_SPAWN_CHANCE, AREA2_ROADOBJ_SPAWN_CHANCE, AREA2_HEAVY_CHANCE
SET_AREA_BOUNDARY AREA3_DISTBOUNDARY
ret
; Add 1 to the distance value
; Sets - A H L to garbage
incrementDistance::
ld hl, DistanceTravelled ; Increment distance value
ld a, [hl]
add 1
daa
ld [hli], a
ld a, [hl]
adc 0
daa
ld [hli], a
ld a, [hl]
adc 0
daa
ld [hli], a
ld hl, DistanceTravelled ; Check if we should transition to the next area
ld a, [NextAreaBoundary]
sub [hl]
inc hl
ld a, [NextAreaBoundary + 1]
sbc [hl]
inc hl
ld a, [NextAreaBoundary + 2]
sbc [hl]
ret nc ; NextAreaBoundary >= DistanceTravelled
ld hl, CurrentArea
inc [hl]
jp setArea
; Sets the best distance if the current distance is greater
; Called when the game is over
; Sets - A H L to garbage
updateBestDistance::
ld hl, DistanceTravelled
ld a, [BestDistance]
sub [hl]
inc hl
ld a, [BestDistance + 1]
sbc [hl]
inc hl
ld a, [BestDistance + 2]
sbc [hl]
ret nc ; BestDistance >= DistanceTravelled
ld hl, DistanceTravelled ; \
ld a, [hli] ; |
ld [BestDistance], a ; |
ld a, [hli] ; | BestDistance = DistanceTravelled
ld [BestDistance + 1], a ; |
ld a, [hli] ; |
ld [BestDistance + 2], a ; /
ret
; Draw the best distance used in the main menu
; Input - HL = Screen address to draw to
; Sets - A B C D to garbage
SETCHARMAP MainMenuCharmap
mainMenuDrawBest::
push hl
ld hl, Scratchpad
ld a, [BestDistance]
ld d, a
ld a, [BestDistance + 1]
ld c, a
ld a, [BestDistance + 2]
ld b, a
ld a, b
and $F0
jr nz, .firstChar
ld a, " "
ld [hli], a
ld a, b
and $0F
jr nz, .secondChar
ld a, " "
ld [hli], a
ld a, c
and $F0
jr nz, .thirdChar
ld a, " "
ld [hli], a
ld a, c
and $0F
jr nz, .fourthChar
ld a, " "
ld [hli], a
ld a, d
and $F0
jr nz, .fifthChar
ld a, " "
ld [hli], a
jr .sixthChar
.firstChar:
ld a, b
and $F0
swap a
add "0"
ld [hli], a
.secondChar:
ld a, b
and $0F
add "0"
ld [hli], a
.thirdChar:
ld a, c
and $F0
swap a
add "0"
ld [hli], a
.fourthChar:
ld a, c
and $0F
add "0"
ld [hli], a
.fifthChar:
ld a, d
and $F0
swap a
add "0"
ld [hli], a
.sixthChar:
ld a, d
and $0F
add "0"
ld [hli], a
pop hl
ld de, Scratchpad
ld c, 6
call LCDMemcpyFast
ret
; Draw the best distance used in the game over panel
; TODO: combine this with mainMenuDrawBest
; Input - HL = Screen address to draw to
; Input - A = 0 to draw DistanceTravelled, 1 to draw BestDistance
; Sets - A B C D to garbage
gameOverDrawDistance::
push hl
ld hl, Scratchpad
and a
jr z, .drawDistanceTravelled
ld a, [BestDistance]
ld d, a
ld a, [BestDistance + 1]
ld c, a
ld a, [BestDistance + 2]
ld b, a
jr .donePickDistance
.drawDistanceTravelled:
ld a, [DistanceTravelled]
ld d, a
ld a, [DistanceTravelled + 1]
ld c, a
ld a, [DistanceTravelled + 2]
ld b, a
.donePickDistance:
ld a, b
and $F0
jr nz, .firstChar
ld a, MENUBAR_TILE_OFFSET + 4 ; Blank Space tile
ld [hli], a
ld a, b
and $0F
jr nz, .secondChar
ld a, MENUBAR_TILE_OFFSET + 4
ld [hli], a
ld a, c
and $F0
jr nz, .thirdChar
ld a, MENUBAR_TILE_OFFSET + 4
ld [hli], a
ld a, c
and $0F
jr nz, .fourthChar
ld a, MENUBAR_TILE_OFFSET + 4
ld [hli], a
ld a, d
and $F0
jr nz, .fifthChar
ld a, MENUBAR_TILE_OFFSET + 4
ld [hli], a
jr .sixthChar
.firstChar:
ld a, b
and $F0
swap a
add NUMBER_TILE_OFFSET
ld [hli], a
.secondChar:
ld a, b
and $0F
add NUMBER_TILE_OFFSET
ld [hli], a
.thirdChar:
ld a, c
and $F0
swap a
add NUMBER_TILE_OFFSET
ld [hli], a
.fourthChar:
ld a, c
and $0F
add NUMBER_TILE_OFFSET
ld [hli], a
.fifthChar:
ld a, d
and $F0
swap a
add NUMBER_TILE_OFFSET
ld [hli], a
.sixthChar:
ld a, d
and $0F
add NUMBER_TILE_OFFSET
ld [hli], a
pop hl
ld de, Scratchpad
ld c, 6
call LCDMemcpyFast
ret | 23.010582 | 117 | 0.643481 |
a95040c1c3bc38b0705d860a7dfc8a7e55bc88ba | 710 | asm | Assembly | oeis/012/A012814.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/012/A012814.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/012/A012814.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A012814: Take every 5th term of Padovan sequence A000931, beginning with the third term.
; Submitted by Jon Maiga
; 0,1,5,21,86,351,1432,5842,23833,97229,396655,1618192,6601569,26931732,109870576,448227521,1828587033,7459895657,30433357674,124155792775,506505428836,2066337330754,8429820731201,34390259761825,140298353215075,572360547759276,2334999585697905,9525854090667496,38861632658305136,158539746514553601,646778056030214957,2638592926751165517,10764392156149521358,43914367129773159679,179152859951018878480,730871223392151275042,2981659044286454020969,12163963187814683883157,49624050985319754606951
mov $2,1
mov $3,$0
lpb $3
add $4,$2
add $1,$4
add $2,$1
sub $3,1
add $4,$1
lpe
mov $0,$1
| 47.333333 | 493 | 0.832394 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.