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
23356defbf3657f026aff6d0e251f8f7ab390824
438
asm
Assembly
programs/oeis/167/A167374.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/167/A167374.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/167/A167374.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A167374: Triangle, read by rows, given by [ -1,1,0,0,0,0,0,0,0,...] DELTA [1,0,0,0,0,0,0,0,0,...] where DELTA is the operator defined in A084938. ; 1,-1,1,0,-1,1,0,0,-1,1,0,0,0,-1,1,0,0,0,0,-1,1,0,0,0,0,0,-1,1,0,0,0,0,0,0,-1,1,0,0,0,0,0,0,0,-1,1,0,0,0,0,0,0,0,0,-1,1,0,0,0,0,0,0,0,0,0,-1,1,0,0,0,0,0,0,0,0,0,0,-1,1,0,0,0,0,0,0,0,0,0,0,0,-1,1 add $0,1 mul $0,2 add $0,1 lpb $0 mov $1,24 add $2,2 sub $0,$2 lpe mul $0,$1 div $1,$0
31.285714
195
0.531963
88426fa853ee48b1228b58787ce47b3117129763
182,371
asm
Assembly
project/ntstub/i386/10_0_14393_sp0_ssdt_sysenter.asm
rmusser01/windows-syscall-table
6216a2559d714eb04bad278792a6544ab8f21d41
[ "BSD-3-Clause" ]
6
2018-01-18T02:30:27.000Z
2020-01-11T03:42:33.000Z
project/ntstub/i386/10_0_14393_sp0_ssdt_sysenter.asm
stonedreamforest/windows-syscall-table
6216a2559d714eb04bad278792a6544ab8f21d41
[ "BSD-3-Clause" ]
null
null
null
project/ntstub/i386/10_0_14393_sp0_ssdt_sysenter.asm
stonedreamforest/windows-syscall-table
6216a2559d714eb04bad278792a6544ab8f21d41
[ "BSD-3-Clause" ]
3
2017-12-29T07:50:35.000Z
2020-10-15T09:28:54.000Z
; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; ssdt asm stub for 10.0.14393-sp0-windows-10-rs1-1607 i386 .686 .mmx .xmm .model flat,stdcall option casemap:none option prologue:none option epilogue:none .code ; ULONG __stdcall NtAccessCheck( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheck PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 0 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheck ENDP ; ULONG __stdcall NtWorkerFactoryWorkerReady( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWorkerFactoryWorkerReady PROC STDCALL arg_01:DWORD mov eax , 1 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWorkerFactoryWorkerReady ENDP ; ULONG __stdcall NtAcceptConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAcceptConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 2 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAcceptConnectPort ENDP ; ULONG __stdcall NtYieldExecution( ); _10_0_14393_sp0_windows_10_rs1_1607_NtYieldExecution PROC STDCALL mov eax , 3 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtYieldExecution ENDP ; ULONG __stdcall NtWriteVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWriteVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWriteVirtualMemory ENDP ; ULONG __stdcall NtWriteRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWriteRequestData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 5 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWriteRequestData ENDP ; ULONG __stdcall NtWriteFileGather( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWriteFileGather PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 6 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWriteFileGather ENDP ; ULONG __stdcall NtWriteFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWriteFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 7 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWriteFile ENDP ; ULONG __stdcall NtWaitLowEventPair( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWaitLowEventPair PROC STDCALL arg_01:DWORD mov eax , 8 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWaitLowEventPair ENDP ; ULONG __stdcall NtWaitHighEventPair( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWaitHighEventPair PROC STDCALL arg_01:DWORD mov eax , 9 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWaitHighEventPair ENDP ; ULONG __stdcall NtWaitForWorkViaWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForWorkViaWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 10 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForWorkViaWorkerFactory ENDP ; ULONG __stdcall NtWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForSingleObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 11 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForSingleObject ENDP ; ULONG __stdcall NtWaitForMultipleObjects32( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForMultipleObjects32 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 12 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForMultipleObjects32 ENDP ; ULONG __stdcall NtWaitForMultipleObjects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForMultipleObjects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 13 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForMultipleObjects ENDP ; ULONG __stdcall NtWaitForKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 14 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForKeyedEvent ENDP ; ULONG __stdcall NtWaitForDebugEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForDebugEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 15 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForDebugEvent ENDP ; ULONG __stdcall NtWaitForAlertByThreadId( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForAlertByThreadId PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 16 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtWaitForAlertByThreadId ENDP ; ULONG __stdcall NtVdmControl( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtVdmControl PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 17 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtVdmControl ENDP ; ULONG __stdcall NtUnsubscribeWnfStateChange( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUnsubscribeWnfStateChange PROC STDCALL arg_01:DWORD mov eax , 18 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUnsubscribeWnfStateChange ENDP ; ULONG __stdcall NtUpdateWnfStateData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUpdateWnfStateData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 19 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUpdateWnfStateData ENDP ; ULONG __stdcall NtUnmapViewOfSection( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUnmapViewOfSection PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 20 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUnmapViewOfSection ENDP ; ULONG __stdcall NtUnmapViewOfSectionEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUnmapViewOfSectionEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 21 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUnmapViewOfSectionEx ENDP ; ULONG __stdcall NtUnlockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUnlockVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 22 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUnlockVirtualMemory ENDP ; ULONG __stdcall NtUnlockFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUnlockFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 23 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUnlockFile ENDP ; ULONG __stdcall NtUnloadKeyEx( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUnloadKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 24 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUnloadKeyEx ENDP ; ULONG __stdcall NtUnloadKey2( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUnloadKey2 PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 25 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUnloadKey2 ENDP ; ULONG __stdcall NtUnloadKey( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUnloadKey PROC STDCALL arg_01:DWORD mov eax , 26 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUnloadKey ENDP ; ULONG __stdcall NtUnloadDriver( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUnloadDriver PROC STDCALL arg_01:DWORD mov eax , 27 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUnloadDriver ENDP ; ULONG __stdcall NtUmsThreadYield( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtUmsThreadYield PROC STDCALL arg_01:DWORD mov eax , 28 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtUmsThreadYield ENDP ; ULONG __stdcall NtTranslateFilePath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtTranslateFilePath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 29 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtTranslateFilePath ENDP ; ULONG __stdcall NtTraceEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtTraceEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 30 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtTraceEvent ENDP ; ULONG __stdcall NtTraceControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtTraceControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 31 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtTraceControl ENDP ; ULONG __stdcall NtThawTransactions( ); _10_0_14393_sp0_windows_10_rs1_1607_NtThawTransactions PROC STDCALL mov eax , 32 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtThawTransactions ENDP ; ULONG __stdcall NtThawRegistry( ); _10_0_14393_sp0_windows_10_rs1_1607_NtThawRegistry PROC STDCALL mov eax , 33 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtThawRegistry ENDP ; ULONG __stdcall NtTestAlert( ); _10_0_14393_sp0_windows_10_rs1_1607_NtTestAlert PROC STDCALL mov eax , 34 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtTestAlert ENDP ; ULONG __stdcall NtTerminateThread( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtTerminateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 35 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtTerminateThread ENDP ; ULONG __stdcall NtTerminateProcess( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtTerminateProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 36 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtTerminateProcess ENDP ; ULONG __stdcall NtTerminateJobObject( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtTerminateJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 37 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtTerminateJobObject ENDP ; ULONG __stdcall NtSystemDebugControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSystemDebugControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 38 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSystemDebugControl ENDP ; ULONG __stdcall NtSuspendThread( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSuspendThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 39 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSuspendThread ENDP ; ULONG __stdcall NtSuspendProcess( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSuspendProcess PROC STDCALL arg_01:DWORD mov eax , 40 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSuspendProcess ENDP ; ULONG __stdcall NtSubscribeWnfStateChange( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSubscribeWnfStateChange PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 41 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSubscribeWnfStateChange ENDP ; ULONG __stdcall NtStopProfile( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtStopProfile PROC STDCALL arg_01:DWORD mov eax , 42 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtStopProfile ENDP ; ULONG __stdcall NtStartProfile( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtStartProfile PROC STDCALL arg_01:DWORD mov eax , 43 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtStartProfile ENDP ; ULONG __stdcall NtSinglePhaseReject( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSinglePhaseReject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 44 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSinglePhaseReject ENDP ; ULONG __stdcall NtSignalAndWaitForSingleObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSignalAndWaitForSingleObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 45 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSignalAndWaitForSingleObject ENDP ; ULONG __stdcall NtShutdownWorkerFactory( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtShutdownWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 46 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtShutdownWorkerFactory ENDP ; ULONG __stdcall NtShutdownSystem( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtShutdownSystem PROC STDCALL arg_01:DWORD mov eax , 47 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtShutdownSystem ENDP ; ULONG __stdcall NtSetWnfProcessNotificationEvent( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetWnfProcessNotificationEvent PROC STDCALL arg_01:DWORD mov eax , 48 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetWnfProcessNotificationEvent ENDP ; ULONG __stdcall NtSetVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetVolumeInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 49 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetVolumeInformationFile ENDP ; ULONG __stdcall NtSetValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 50 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetValueKey ENDP ; ULONG __stdcall NtSetUuidSeed( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetUuidSeed PROC STDCALL arg_01:DWORD mov eax , 51 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetUuidSeed ENDP ; ULONG __stdcall NtSetTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetTimerResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 52 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetTimerResolution ENDP ; ULONG __stdcall NtSetTimerEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetTimerEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 53 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetTimerEx ENDP ; ULONG __stdcall NtSetTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 54 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetTimer ENDP ; ULONG __stdcall NtSetThreadExecutionState( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetThreadExecutionState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 55 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetThreadExecutionState ENDP ; ULONG __stdcall NtSetSystemTime( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemTime PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 56 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemTime ENDP ; ULONG __stdcall NtSetSystemPowerState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemPowerState PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 57 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemPowerState ENDP ; ULONG __stdcall NtSetSystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 58 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemInformation ENDP ; ULONG __stdcall NtSetSystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemEnvironmentValueEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 59 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemEnvironmentValueEx ENDP ; ULONG __stdcall NtSetSystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemEnvironmentValue PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 60 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetSystemEnvironmentValue ENDP ; ULONG __stdcall NtSetSecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetSecurityObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 61 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetSecurityObject ENDP ; ULONG __stdcall NtSetQuotaInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetQuotaInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 62 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetQuotaInformationFile ENDP ; ULONG __stdcall NtSetLowWaitHighEventPair( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetLowWaitHighEventPair PROC STDCALL arg_01:DWORD mov eax , 63 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetLowWaitHighEventPair ENDP ; ULONG __stdcall NtSetLowEventPair( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetLowEventPair PROC STDCALL arg_01:DWORD mov eax , 64 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetLowEventPair ENDP ; ULONG __stdcall NtSetLdtEntries( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetLdtEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 65 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetLdtEntries ENDP ; ULONG __stdcall NtSetIRTimer( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetIRTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 66 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetIRTimer ENDP ; ULONG __stdcall NtSetTimer2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetTimer2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 67 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetTimer2 ENDP ; ULONG __stdcall NtCancelTimer2( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCancelTimer2 PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 68 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCancelTimer2 ENDP ; ULONG __stdcall NtSetIoCompletionEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetIoCompletionEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 69 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetIoCompletionEx ENDP ; ULONG __stdcall NtSetIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 70 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetIoCompletion ENDP ; ULONG __stdcall NtSetIntervalProfile( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetIntervalProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 71 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetIntervalProfile ENDP ; ULONG __stdcall NtSetInformationWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 72 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationWorkerFactory ENDP ; ULONG __stdcall NtSetInformationTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 73 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationTransactionManager ENDP ; ULONG __stdcall NtSetInformationTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 74 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationTransaction ENDP ; ULONG __stdcall NtSetInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 75 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationToken ENDP ; ULONG __stdcall NtSetInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 76 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationThread ENDP ; ULONG __stdcall NtSetInformationResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 77 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationResourceManager ENDP ; ULONG __stdcall NtSetInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 78 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationProcess ENDP ; ULONG __stdcall NtSetInformationObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 79 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationObject ENDP ; ULONG __stdcall NtSetInformationKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 80 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationKey ENDP ; ULONG __stdcall NtSetInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 81 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationJobObject ENDP ; ULONG __stdcall NtSetInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 82 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationFile ENDP ; ULONG __stdcall NtSetInformationEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 83 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationEnlistment ENDP ; ULONG __stdcall NtSetInformationDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationDebugObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 84 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationDebugObject ENDP ; ULONG __stdcall NtSetHighWaitLowEventPair( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetHighWaitLowEventPair PROC STDCALL arg_01:DWORD mov eax , 85 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetHighWaitLowEventPair ENDP ; ULONG __stdcall NtSetHighEventPair( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetHighEventPair PROC STDCALL arg_01:DWORD mov eax , 86 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetHighEventPair ENDP ; ULONG __stdcall NtSetEventBoostPriority( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetEventBoostPriority PROC STDCALL arg_01:DWORD mov eax , 87 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetEventBoostPriority ENDP ; ULONG __stdcall NtSetEvent( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 88 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetEvent ENDP ; ULONG __stdcall NtSetEaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetEaFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 89 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetEaFile ENDP ; ULONG __stdcall NtSetDriverEntryOrder( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetDriverEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 90 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetDriverEntryOrder ENDP ; ULONG __stdcall NtSetDefaultUILanguage( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetDefaultUILanguage PROC STDCALL arg_01:DWORD mov eax , 91 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetDefaultUILanguage ENDP ; ULONG __stdcall NtSetDefaultLocale( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetDefaultLocale PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 92 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetDefaultLocale ENDP ; ULONG __stdcall NtSetDefaultHardErrorPort( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetDefaultHardErrorPort PROC STDCALL arg_01:DWORD mov eax , 93 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetDefaultHardErrorPort ENDP ; ULONG __stdcall NtSetDebugFilterState( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetDebugFilterState PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 94 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetDebugFilterState ENDP ; ULONG __stdcall NtSetContextThread( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetContextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 95 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetContextThread ENDP ; ULONG __stdcall NtSetCachedSigningLevel2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetCachedSigningLevel2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 96 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetCachedSigningLevel2 ENDP ; ULONG __stdcall NtSetCachedSigningLevel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetCachedSigningLevel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 97 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetCachedSigningLevel ENDP ; ULONG __stdcall NtSetBootOptions( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetBootOptions PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 98 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetBootOptions ENDP ; ULONG __stdcall NtSetBootEntryOrder( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetBootEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 99 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetBootEntryOrder ENDP ; ULONG __stdcall NtSerializeBoot( ); _10_0_14393_sp0_windows_10_rs1_1607_NtSerializeBoot PROC STDCALL mov eax , 100 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSerializeBoot ENDP ; ULONG __stdcall NtSecureConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSecureConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 101 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSecureConnectPort ENDP ; ULONG __stdcall NtSaveMergedKeys( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSaveMergedKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 102 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSaveMergedKeys ENDP ; ULONG __stdcall NtSaveKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSaveKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 103 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSaveKeyEx ENDP ; ULONG __stdcall NtSaveKey( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSaveKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 104 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSaveKey ENDP ; ULONG __stdcall NtRollforwardTransactionManager( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRollforwardTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 105 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRollforwardTransactionManager ENDP ; ULONG __stdcall NtRollbackTransaction( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRollbackTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 106 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRollbackTransaction ENDP ; ULONG __stdcall NtRollbackEnlistment( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRollbackEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 107 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRollbackEnlistment ENDP ; ULONG __stdcall NtRollbackComplete( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRollbackComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 108 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRollbackComplete ENDP ; ULONG __stdcall NtRevertContainerImpersonation( ); _10_0_14393_sp0_windows_10_rs1_1607_NtRevertContainerImpersonation PROC STDCALL mov eax , 109 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRevertContainerImpersonation ENDP ; ULONG __stdcall NtResumeThread( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtResumeThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 110 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtResumeThread ENDP ; ULONG __stdcall NtResumeProcess( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtResumeProcess PROC STDCALL arg_01:DWORD mov eax , 111 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtResumeProcess ENDP ; ULONG __stdcall NtRestoreKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRestoreKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 112 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRestoreKey ENDP ; ULONG __stdcall NtResetWriteWatch( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtResetWriteWatch PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 113 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtResetWriteWatch ENDP ; ULONG __stdcall NtResetEvent( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtResetEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 114 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtResetEvent ENDP ; ULONG __stdcall NtRequestWaitReplyPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRequestWaitReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 115 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRequestWaitReplyPort ENDP ; ULONG __stdcall NtRequestPort( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRequestPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 116 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRequestPort ENDP ; ULONG __stdcall NtReplyWaitReplyPort( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReplyWaitReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 117 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReplyWaitReplyPort ENDP ; ULONG __stdcall NtReplyWaitReceivePortEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReplyWaitReceivePortEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 118 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReplyWaitReceivePortEx ENDP ; ULONG __stdcall NtReplyWaitReceivePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReplyWaitReceivePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 119 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReplyWaitReceivePort ENDP ; ULONG __stdcall NtReplyPort( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReplyPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 120 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReplyPort ENDP ; ULONG __stdcall NtReplacePartitionUnit( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReplacePartitionUnit PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 121 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReplacePartitionUnit ENDP ; ULONG __stdcall NtReplaceKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReplaceKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 122 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReplaceKey ENDP ; ULONG __stdcall NtRenameTransactionManager( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRenameTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 123 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRenameTransactionManager ENDP ; ULONG __stdcall NtRenameKey( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRenameKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 124 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRenameKey ENDP ; ULONG __stdcall NtRemoveProcessDebug( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRemoveProcessDebug PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 125 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRemoveProcessDebug ENDP ; ULONG __stdcall NtRemoveIoCompletionEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRemoveIoCompletionEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 126 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRemoveIoCompletionEx ENDP ; ULONG __stdcall NtRemoveIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRemoveIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 127 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRemoveIoCompletion ENDP ; ULONG __stdcall NtReleaseWorkerFactoryWorker( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReleaseWorkerFactoryWorker PROC STDCALL arg_01:DWORD mov eax , 128 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReleaseWorkerFactoryWorker ENDP ; ULONG __stdcall NtReleaseSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReleaseSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 129 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReleaseSemaphore ENDP ; ULONG __stdcall NtReleaseMutant( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReleaseMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 130 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReleaseMutant ENDP ; ULONG __stdcall NtReleaseKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReleaseKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 131 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReleaseKeyedEvent ENDP ; ULONG __stdcall NtRegisterThreadTerminatePort( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRegisterThreadTerminatePort PROC STDCALL arg_01:DWORD mov eax , 132 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRegisterThreadTerminatePort ENDP ; ULONG __stdcall NtRegisterProtocolAddressInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRegisterProtocolAddressInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 133 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRegisterProtocolAddressInformation ENDP ; ULONG __stdcall NtRecoverTransactionManager( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRecoverTransactionManager PROC STDCALL arg_01:DWORD mov eax , 134 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRecoverTransactionManager ENDP ; ULONG __stdcall NtRecoverResourceManager( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRecoverResourceManager PROC STDCALL arg_01:DWORD mov eax , 135 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRecoverResourceManager ENDP ; ULONG __stdcall NtRecoverEnlistment( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRecoverEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 136 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRecoverEnlistment ENDP ; ULONG __stdcall NtReadVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReadVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 137 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReadVirtualMemory ENDP ; ULONG __stdcall NtReadRequestData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReadRequestData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 138 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReadRequestData ENDP ; ULONG __stdcall NtReadOnlyEnlistment( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReadOnlyEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 139 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReadOnlyEnlistment ENDP ; ULONG __stdcall NtReadFileScatter( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReadFileScatter PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 140 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReadFileScatter ENDP ; ULONG __stdcall NtReadFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtReadFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 141 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtReadFile ENDP ; ULONG __stdcall NtRaiseHardError( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRaiseHardError PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 142 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRaiseHardError ENDP ; ULONG __stdcall NtRaiseException( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRaiseException PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 143 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRaiseException ENDP ; ULONG __stdcall NtQueueApcThreadEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueueApcThreadEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 144 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueueApcThreadEx ENDP ; ULONG __stdcall NtQueueApcThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueueApcThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 145 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueueApcThread ENDP ; ULONG __stdcall NtQueryWnfStateData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryWnfStateData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 146 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryWnfStateData ENDP ; ULONG __stdcall NtQueryWnfStateNameInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryWnfStateNameInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 147 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryWnfStateNameInformation ENDP ; ULONG __stdcall NtQueryVolumeInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryVolumeInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 148 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryVolumeInformationFile ENDP ; ULONG __stdcall NtQueryVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 149 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryVirtualMemory ENDP ; ULONG __stdcall NtQueryValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 150 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryValueKey ENDP ; ULONG __stdcall NtQueryTimerResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryTimerResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 151 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryTimerResolution ENDP ; ULONG __stdcall NtQueryTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 152 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryTimer ENDP ; ULONG __stdcall NtQuerySystemTime( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemTime PROC STDCALL arg_01:DWORD mov eax , 153 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemTime ENDP ; ULONG __stdcall NtQuerySystemInformationEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemInformationEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 154 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemInformationEx ENDP ; ULONG __stdcall NtQuerySystemInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 155 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemInformation ENDP ; ULONG __stdcall NtQuerySystemEnvironmentValueEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemEnvironmentValueEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 156 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemEnvironmentValueEx ENDP ; ULONG __stdcall NtQuerySystemEnvironmentValue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemEnvironmentValue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 157 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySystemEnvironmentValue ENDP ; ULONG __stdcall NtQuerySymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 158 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySymbolicLinkObject ENDP ; ULONG __stdcall NtQuerySemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 159 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySemaphore ENDP ; ULONG __stdcall NtQuerySecurityPolicy( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySecurityPolicy PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 160 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySecurityPolicy ENDP ; ULONG __stdcall NtQuerySecurityObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySecurityObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 161 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySecurityObject ENDP ; ULONG __stdcall NtQuerySecurityAttributesToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySecurityAttributesToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 162 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySecurityAttributesToken ENDP ; ULONG __stdcall NtQuerySection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 163 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQuerySection ENDP ; ULONG __stdcall NtQueryQuotaInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryQuotaInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 164 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryQuotaInformationFile ENDP ; ULONG __stdcall NtQueryPortInformationProcess( ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryPortInformationProcess PROC STDCALL mov eax , 165 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryPortInformationProcess ENDP ; ULONG __stdcall NtQueryPerformanceCounter( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryPerformanceCounter PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 166 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryPerformanceCounter ENDP ; ULONG __stdcall NtQueryOpenSubKeysEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryOpenSubKeysEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 167 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryOpenSubKeysEx ENDP ; ULONG __stdcall NtQueryOpenSubKeys( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryOpenSubKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 168 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryOpenSubKeys ENDP ; ULONG __stdcall NtQueryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 169 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryObject ENDP ; ULONG __stdcall NtQueryMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 170 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryMutant ENDP ; ULONG __stdcall NtQueryMultipleValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryMultipleValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 171 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryMultipleValueKey ENDP ; ULONG __stdcall NtQueryLicenseValue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryLicenseValue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 172 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryLicenseValue ENDP ; ULONG __stdcall NtQueryKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 173 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryKey ENDP ; ULONG __stdcall NtQueryIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 174 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryIoCompletion ENDP ; ULONG __stdcall NtQueryIntervalProfile( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryIntervalProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 175 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryIntervalProfile ENDP ; ULONG __stdcall NtQueryInstallUILanguage( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInstallUILanguage PROC STDCALL arg_01:DWORD mov eax , 176 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInstallUILanguage ENDP ; ULONG __stdcall NtQueryInformationWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 177 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationWorkerFactory ENDP ; ULONG __stdcall NtQueryInformationTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 178 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationTransactionManager ENDP ; ULONG __stdcall NtQueryInformationTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 179 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationTransaction ENDP ; ULONG __stdcall NtQueryInformationToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 180 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationToken ENDP ; ULONG __stdcall NtQueryInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 181 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationThread ENDP ; ULONG __stdcall NtQueryInformationResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 182 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationResourceManager ENDP ; ULONG __stdcall NtQueryInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 183 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationProcess ENDP ; ULONG __stdcall NtQueryInformationPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 184 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationPort ENDP ; ULONG __stdcall NtQueryInformationJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 185 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationJobObject ENDP ; ULONG __stdcall NtQueryInformationFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 186 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationFile ENDP ; ULONG __stdcall NtQueryInformationEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 187 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationEnlistment ENDP ; ULONG __stdcall NtQueryInformationAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 188 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryInformationAtom ENDP ; ULONG __stdcall NtQueryFullAttributesFile( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryFullAttributesFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 189 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryFullAttributesFile ENDP ; ULONG __stdcall NtQueryEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 190 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryEvent ENDP ; ULONG __stdcall NtQueryEaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryEaFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 191 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryEaFile ENDP ; ULONG __stdcall NtQueryDriverEntryOrder( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDriverEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 192 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDriverEntryOrder ENDP ; ULONG __stdcall NtQueryDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDirectoryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 193 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDirectoryObject ENDP ; ULONG __stdcall NtQueryDirectoryFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDirectoryFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 194 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDirectoryFile ENDP ; ULONG __stdcall NtQueryDefaultUILanguage( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDefaultUILanguage PROC STDCALL arg_01:DWORD mov eax , 195 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDefaultUILanguage ENDP ; ULONG __stdcall NtQueryDefaultLocale( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDefaultLocale PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 196 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDefaultLocale ENDP ; ULONG __stdcall NtQueryDebugFilterState( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDebugFilterState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 197 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryDebugFilterState ENDP ; ULONG __stdcall NtQueryBootOptions( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryBootOptions PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 198 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryBootOptions ENDP ; ULONG __stdcall NtQueryBootEntryOrder( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryBootEntryOrder PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 199 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryBootEntryOrder ENDP ; ULONG __stdcall NtQueryAttributesFile( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtQueryAttributesFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 200 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtQueryAttributesFile ENDP ; ULONG __stdcall NtPulseEvent( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPulseEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 201 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPulseEvent ENDP ; ULONG __stdcall NtProtectVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtProtectVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 202 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtProtectVirtualMemory ENDP ; ULONG __stdcall NtPropagationFailed( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPropagationFailed PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 203 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPropagationFailed ENDP ; ULONG __stdcall NtPropagationComplete( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPropagationComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 204 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPropagationComplete ENDP ; ULONG __stdcall NtPrivilegeObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPrivilegeObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 205 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPrivilegeObjectAuditAlarm ENDP ; ULONG __stdcall NtPrivilegedServiceAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPrivilegedServiceAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 206 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPrivilegedServiceAuditAlarm ENDP ; ULONG __stdcall NtPrivilegeCheck( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPrivilegeCheck PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 207 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPrivilegeCheck ENDP ; ULONG __stdcall NtSetInformationVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 208 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationVirtualMemory ENDP ; ULONG __stdcall NtPrePrepareEnlistment( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPrePrepareEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 209 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPrePrepareEnlistment ENDP ; ULONG __stdcall NtPrePrepareComplete( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPrePrepareComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 210 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPrePrepareComplete ENDP ; ULONG __stdcall NtPrepareEnlistment( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPrepareEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 211 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPrepareEnlistment ENDP ; ULONG __stdcall NtPrepareComplete( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPrepareComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 212 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPrepareComplete ENDP ; ULONG __stdcall NtPowerInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPowerInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 213 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPowerInformation ENDP ; ULONG __stdcall NtPlugPlayControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtPlugPlayControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 214 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtPlugPlayControl ENDP ; ULONG __stdcall NtOpenTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 215 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenTransactionManager ENDP ; ULONG __stdcall NtOpenTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 216 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenTransaction ENDP ; ULONG __stdcall NtOpenTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 217 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenTimer ENDP ; ULONG __stdcall NtOpenThreadTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenThreadTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 218 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenThreadTokenEx ENDP ; ULONG __stdcall NtOpenThreadToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenThreadToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 219 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenThreadToken ENDP ; ULONG __stdcall NtOpenThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 220 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenThread ENDP ; ULONG __stdcall NtOpenSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenSymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 221 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenSymbolicLinkObject ENDP ; ULONG __stdcall NtOpenSession( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenSession PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 222 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenSession ENDP ; ULONG __stdcall NtOpenSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 223 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenSemaphore ENDP ; ULONG __stdcall NtOpenSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 224 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenSection ENDP ; ULONG __stdcall NtOpenResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 225 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenResourceManager ENDP ; ULONG __stdcall NtOpenPartition( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenPartition PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 226 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenPartition ENDP ; ULONG __stdcall NtOpenProcessTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenProcessTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 227 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenProcessTokenEx ENDP ; ULONG __stdcall NtOpenProcessToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenProcessToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 228 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenProcessToken ENDP ; ULONG __stdcall NtOpenProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 229 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenProcess ENDP ; ULONG __stdcall NtOpenPrivateNamespace( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenPrivateNamespace PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 230 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenPrivateNamespace ENDP ; ULONG __stdcall NtOpenObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD mov eax , 231 call _label_sysenter ret 48 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenObjectAuditAlarm ENDP ; ULONG __stdcall NtOpenMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 232 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenMutant ENDP ; ULONG __stdcall NtOpenKeyTransactedEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKeyTransactedEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 233 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKeyTransactedEx ENDP ; ULONG __stdcall NtOpenKeyTransacted( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKeyTransacted PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 234 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKeyTransacted ENDP ; ULONG __stdcall NtOpenKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 235 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKeyEx ENDP ; ULONG __stdcall NtOpenKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 236 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKeyedEvent ENDP ; ULONG __stdcall NtOpenKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 237 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenKey ENDP ; ULONG __stdcall NtOpenJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 238 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenJobObject ENDP ; ULONG __stdcall NtOpenIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 239 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenIoCompletion ENDP ; ULONG __stdcall NtOpenFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 240 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenFile ENDP ; ULONG __stdcall NtOpenEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenEventPair PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 241 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenEventPair ENDP ; ULONG __stdcall NtOpenEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 242 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenEvent ENDP ; ULONG __stdcall NtOpenEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 243 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenEnlistment ENDP ; ULONG __stdcall NtOpenDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenDirectoryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 244 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenDirectoryObject ENDP ; ULONG __stdcall NtNotifyChangeSession( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtNotifyChangeSession PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 245 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtNotifyChangeSession ENDP ; ULONG __stdcall NtNotifyChangeMultipleKeys( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 ); _10_0_14393_sp0_windows_10_rs1_1607_NtNotifyChangeMultipleKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD mov eax , 246 call _label_sysenter ret 48 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtNotifyChangeMultipleKeys ENDP ; ULONG __stdcall NtNotifyChangeKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _10_0_14393_sp0_windows_10_rs1_1607_NtNotifyChangeKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 247 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtNotifyChangeKey ENDP ; ULONG __stdcall NtNotifyChangeDirectoryFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtNotifyChangeDirectoryFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 248 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtNotifyChangeDirectoryFile ENDP ; ULONG __stdcall NtManagePartition( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtManagePartition PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 249 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtManagePartition ENDP ; ULONG __stdcall NtModifyDriverEntry( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtModifyDriverEntry PROC STDCALL arg_01:DWORD mov eax , 250 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtModifyDriverEntry ENDP ; ULONG __stdcall NtModifyBootEntry( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtModifyBootEntry PROC STDCALL arg_01:DWORD mov eax , 251 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtModifyBootEntry ENDP ; ULONG __stdcall NtMapViewOfSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _10_0_14393_sp0_windows_10_rs1_1607_NtMapViewOfSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 252 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtMapViewOfSection ENDP ; ULONG __stdcall NtMapUserPhysicalPagesScatter( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtMapUserPhysicalPagesScatter PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 253 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtMapUserPhysicalPagesScatter ENDP ; ULONG __stdcall NtMapUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtMapUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 254 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtMapUserPhysicalPages ENDP ; ULONG __stdcall NtMapCMFModule( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtMapCMFModule PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 255 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtMapCMFModule ENDP ; ULONG __stdcall NtMakeTemporaryObject( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtMakeTemporaryObject PROC STDCALL arg_01:DWORD mov eax , 256 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtMakeTemporaryObject ENDP ; ULONG __stdcall NtMakePermanentObject( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtMakePermanentObject PROC STDCALL arg_01:DWORD mov eax , 257 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtMakePermanentObject ENDP ; ULONG __stdcall NtLockVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtLockVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 258 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtLockVirtualMemory ENDP ; ULONG __stdcall NtLockRegistryKey( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtLockRegistryKey PROC STDCALL arg_01:DWORD mov eax , 259 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtLockRegistryKey ENDP ; ULONG __stdcall NtLockProductActivationKeys( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtLockProductActivationKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 260 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtLockProductActivationKeys ENDP ; ULONG __stdcall NtLockFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _10_0_14393_sp0_windows_10_rs1_1607_NtLockFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 261 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtLockFile ENDP ; ULONG __stdcall NtLoadKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtLoadKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 262 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtLoadKeyEx ENDP ; ULONG __stdcall NtLoadKey2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtLoadKey2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 263 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtLoadKey2 ENDP ; ULONG __stdcall NtLoadKey( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtLoadKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 264 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtLoadKey ENDP ; ULONG __stdcall NtLoadEnclaveData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtLoadEnclaveData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 265 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtLoadEnclaveData ENDP ; ULONG __stdcall NtLoadDriver( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtLoadDriver PROC STDCALL arg_01:DWORD mov eax , 266 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtLoadDriver ENDP ; ULONG __stdcall NtListenPort( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtListenPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 267 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtListenPort ENDP ; ULONG __stdcall NtIsUILanguageComitted( ); _10_0_14393_sp0_windows_10_rs1_1607_NtIsUILanguageComitted PROC STDCALL mov eax , 268 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtIsUILanguageComitted ENDP ; ULONG __stdcall NtIsSystemResumeAutomatic( ); _10_0_14393_sp0_windows_10_rs1_1607_NtIsSystemResumeAutomatic PROC STDCALL mov eax , 269 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtIsSystemResumeAutomatic ENDP ; ULONG __stdcall NtIsProcessInJob( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtIsProcessInJob PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 270 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtIsProcessInJob ENDP ; ULONG __stdcall NtInitiatePowerAction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtInitiatePowerAction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 271 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtInitiatePowerAction ENDP ; ULONG __stdcall NtInitializeRegistry( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtInitializeRegistry PROC STDCALL arg_01:DWORD mov eax , 272 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtInitializeRegistry ENDP ; ULONG __stdcall NtInitializeNlsFiles( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtInitializeNlsFiles PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 273 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtInitializeNlsFiles ENDP ; ULONG __stdcall NtInitializeEnclave( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtInitializeEnclave PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 274 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtInitializeEnclave ENDP ; ULONG __stdcall NtImpersonateThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtImpersonateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 275 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtImpersonateThread ENDP ; ULONG __stdcall NtImpersonateClientOfPort( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtImpersonateClientOfPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 276 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtImpersonateClientOfPort ENDP ; ULONG __stdcall NtImpersonateAnonymousToken( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtImpersonateAnonymousToken PROC STDCALL arg_01:DWORD mov eax , 277 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtImpersonateAnonymousToken ENDP ; ULONG __stdcall NtGetWriteWatch( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetWriteWatch PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 278 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetWriteWatch ENDP ; ULONG __stdcall NtGetNotificationResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetNotificationResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 279 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetNotificationResourceManager ENDP ; ULONG __stdcall NtGetNlsSectionPtr( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetNlsSectionPtr PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 280 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetNlsSectionPtr ENDP ; ULONG __stdcall NtGetNextThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetNextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 281 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetNextThread ENDP ; ULONG __stdcall NtGetNextProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetNextProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 282 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetNextProcess ENDP ; ULONG __stdcall NtGetMUIRegistryInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetMUIRegistryInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 283 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetMUIRegistryInfo ENDP ; ULONG __stdcall NtGetDevicePowerState( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetDevicePowerState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 284 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetDevicePowerState ENDP ; ULONG __stdcall NtGetCurrentProcessorNumberEx( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetCurrentProcessorNumberEx PROC STDCALL arg_01:DWORD mov eax , 285 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetCurrentProcessorNumberEx ENDP ; ULONG __stdcall NtGetCurrentProcessorNumber( ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetCurrentProcessorNumber PROC STDCALL mov eax , 286 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetCurrentProcessorNumber ENDP ; ULONG __stdcall NtGetContextThread( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetContextThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 287 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetContextThread ENDP ; ULONG __stdcall NtGetCompleteWnfStateSubscription( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetCompleteWnfStateSubscription PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 288 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetCompleteWnfStateSubscription ENDP ; ULONG __stdcall NtGetCachedSigningLevel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtGetCachedSigningLevel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 289 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtGetCachedSigningLevel ENDP ; ULONG __stdcall NtFsControlFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFsControlFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 290 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFsControlFile ENDP ; ULONG __stdcall NtFreezeTransactions( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFreezeTransactions PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 291 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFreezeTransactions ENDP ; ULONG __stdcall NtFreezeRegistry( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFreezeRegistry PROC STDCALL arg_01:DWORD mov eax , 292 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFreezeRegistry ENDP ; ULONG __stdcall NtFreeVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFreeVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 293 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFreeVirtualMemory ENDP ; ULONG __stdcall NtFreeUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFreeUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 294 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFreeUserPhysicalPages ENDP ; ULONG __stdcall NtFlushWriteBuffer( ); _10_0_14393_sp0_windows_10_rs1_1607_NtFlushWriteBuffer PROC STDCALL mov eax , 295 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFlushWriteBuffer ENDP ; ULONG __stdcall NtFlushVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFlushVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 296 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFlushVirtualMemory ENDP ; ULONG __stdcall NtFlushProcessWriteBuffers( ); _10_0_14393_sp0_windows_10_rs1_1607_NtFlushProcessWriteBuffers PROC STDCALL mov eax , 297 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFlushProcessWriteBuffers ENDP ; ULONG __stdcall NtFlushKey( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFlushKey PROC STDCALL arg_01:DWORD mov eax , 298 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFlushKey ENDP ; ULONG __stdcall NtFlushInstructionCache( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFlushInstructionCache PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 299 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFlushInstructionCache ENDP ; ULONG __stdcall NtFlushInstallUILanguage( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFlushInstallUILanguage PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 300 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFlushInstallUILanguage ENDP ; ULONG __stdcall NtFlushBuffersFile( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFlushBuffersFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 301 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFlushBuffersFile ENDP ; ULONG __stdcall NtFlushBuffersFileEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFlushBuffersFileEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 302 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFlushBuffersFileEx ENDP ; ULONG __stdcall NtFindAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFindAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 303 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFindAtom ENDP ; ULONG __stdcall NtFilterToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFilterToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 304 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFilterToken ENDP ; ULONG __stdcall NtFilterTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFilterTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD mov eax , 305 call _label_sysenter ret 56 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFilterTokenEx ENDP ; ULONG __stdcall NtFilterBootOption( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtFilterBootOption PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 306 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtFilterBootOption ENDP ; ULONG __stdcall NtExtendSection( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtExtendSection PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 307 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtExtendSection ENDP ; ULONG __stdcall NtEnumerateValueKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 308 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateValueKey ENDP ; ULONG __stdcall NtEnumerateTransactionObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateTransactionObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 309 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateTransactionObject ENDP ; ULONG __stdcall NtEnumerateSystemEnvironmentValuesEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateSystemEnvironmentValuesEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 310 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateSystemEnvironmentValuesEx ENDP ; ULONG __stdcall NtEnumerateKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 311 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateKey ENDP ; ULONG __stdcall NtEnumerateDriverEntries( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateDriverEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 312 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateDriverEntries ENDP ; ULONG __stdcall NtEnumerateBootEntries( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateBootEntries PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 313 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtEnumerateBootEntries ENDP ; ULONG __stdcall NtEnableLastKnownGood( ); _10_0_14393_sp0_windows_10_rs1_1607_NtEnableLastKnownGood PROC STDCALL mov eax , 314 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtEnableLastKnownGood ENDP ; ULONG __stdcall NtDuplicateToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDuplicateToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 315 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDuplicateToken ENDP ; ULONG __stdcall NtDuplicateObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDuplicateObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 316 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDuplicateObject ENDP ; ULONG __stdcall NtDrawText( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDrawText PROC STDCALL arg_01:DWORD mov eax , 317 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDrawText ENDP ; ULONG __stdcall NtDisplayString( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDisplayString PROC STDCALL arg_01:DWORD mov eax , 318 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDisplayString ENDP ; ULONG __stdcall NtDisableLastKnownGood( ); _10_0_14393_sp0_windows_10_rs1_1607_NtDisableLastKnownGood PROC STDCALL mov eax , 319 call _label_sysenter ret _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDisableLastKnownGood ENDP ; ULONG __stdcall NtDeviceIoControlFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeviceIoControlFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 320 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeviceIoControlFile ENDP ; ULONG __stdcall NtDeleteWnfStateName( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteWnfStateName PROC STDCALL arg_01:DWORD mov eax , 321 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteWnfStateName ENDP ; ULONG __stdcall NtDeleteWnfStateData( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteWnfStateData PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 322 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteWnfStateData ENDP ; ULONG __stdcall NtDeleteValueKey( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteValueKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 323 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteValueKey ENDP ; ULONG __stdcall NtDeletePrivateNamespace( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeletePrivateNamespace PROC STDCALL arg_01:DWORD mov eax , 324 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeletePrivateNamespace ENDP ; ULONG __stdcall NtDeleteObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 325 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteObjectAuditAlarm ENDP ; ULONG __stdcall NtDeleteKey( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteKey PROC STDCALL arg_01:DWORD mov eax , 326 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteKey ENDP ; ULONG __stdcall NtDeleteFile( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteFile PROC STDCALL arg_01:DWORD mov eax , 327 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteFile ENDP ; ULONG __stdcall NtDeleteDriverEntry( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteDriverEntry PROC STDCALL arg_01:DWORD mov eax , 328 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteDriverEntry ENDP ; ULONG __stdcall NtDeleteBootEntry( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteBootEntry PROC STDCALL arg_01:DWORD mov eax , 329 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteBootEntry ENDP ; ULONG __stdcall NtDeleteAtom( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteAtom PROC STDCALL arg_01:DWORD mov eax , 330 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDeleteAtom ENDP ; ULONG __stdcall NtDelayExecution( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDelayExecution PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 331 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDelayExecution ENDP ; ULONG __stdcall NtDebugContinue( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDebugContinue PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 332 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDebugContinue ENDP ; ULONG __stdcall NtDebugActiveProcess( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtDebugActiveProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 333 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtDebugActiveProcess ENDP ; ULONG __stdcall NtCreatePartition( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreatePartition PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 334 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreatePartition ENDP ; ULONG __stdcall NtCreateWorkerFactory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateWorkerFactory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 335 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateWorkerFactory ENDP ; ULONG __stdcall NtCreateWnfStateName( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateWnfStateName PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 336 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateWnfStateName ENDP ; ULONG __stdcall NtCreateWaitCompletionPacket( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateWaitCompletionPacket PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 337 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateWaitCompletionPacket ENDP ; ULONG __stdcall NtCreateWaitablePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateWaitablePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 338 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateWaitablePort ENDP ; ULONG __stdcall NtCreateUserProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateUserProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 339 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateUserProcess ENDP ; ULONG __stdcall NtCreateTransactionManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTransactionManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 340 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTransactionManager ENDP ; ULONG __stdcall NtCreateTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 341 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTransaction ENDP ; ULONG __stdcall NtCreateToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD mov eax , 342 call _label_sysenter ret 52 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateToken ENDP ; ULONG __stdcall NtCreateLowBoxToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateLowBoxToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 343 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateLowBoxToken ENDP ; ULONG __stdcall NtCreateTokenEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 , ULONG arg_17 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTokenEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD , arg_17:DWORD mov eax , 344 call _label_sysenter ret 68 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTokenEx ENDP ; ULONG __stdcall NtCreateTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 345 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTimer ENDP ; ULONG __stdcall NtCreateThreadEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateThreadEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 346 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateThreadEx ENDP ; ULONG __stdcall NtCreateThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 347 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateThread ENDP ; ULONG __stdcall NtCreateSymbolicLinkObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateSymbolicLinkObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 348 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateSymbolicLinkObject ENDP ; ULONG __stdcall NtCreateSemaphore( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateSemaphore PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 349 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateSemaphore ENDP ; ULONG __stdcall NtCreateSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 350 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateSection ENDP ; ULONG __stdcall NtCreateResourceManager( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateResourceManager PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 351 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateResourceManager ENDP ; ULONG __stdcall NtCreateProfileEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateProfileEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 352 call _label_sysenter ret 40 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateProfileEx ENDP ; ULONG __stdcall NtCreateProfile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateProfile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 353 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateProfile ENDP ; ULONG __stdcall NtCreateProcessEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateProcessEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 354 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateProcessEx ENDP ; ULONG __stdcall NtCreateProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 355 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateProcess ENDP ; ULONG __stdcall NtCreatePrivateNamespace( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreatePrivateNamespace PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 356 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreatePrivateNamespace ENDP ; ULONG __stdcall NtCreatePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreatePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 357 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreatePort ENDP ; ULONG __stdcall NtCreatePagingFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreatePagingFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 358 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreatePagingFile ENDP ; ULONG __stdcall NtCreateNamedPipeFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateNamedPipeFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD mov eax , 359 call _label_sysenter ret 56 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateNamedPipeFile ENDP ; ULONG __stdcall NtCreateMutant( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateMutant PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 360 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateMutant ENDP ; ULONG __stdcall NtCreateMailslotFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateMailslotFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 361 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateMailslotFile ENDP ; ULONG __stdcall NtCreateKeyTransacted( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateKeyTransacted PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 362 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateKeyTransacted ENDP ; ULONG __stdcall NtCreateKeyedEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateKeyedEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 363 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateKeyedEvent ENDP ; ULONG __stdcall NtCreateKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 364 call _label_sysenter ret 28 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateKey ENDP ; ULONG __stdcall NtCreateJobSet( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateJobSet PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 365 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateJobSet ENDP ; ULONG __stdcall NtCreateJobObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 366 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateJobObject ENDP ; ULONG __stdcall NtCreateIRTimer( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateIRTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 367 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateIRTimer ENDP ; ULONG __stdcall NtCreateTimer2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTimer2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 368 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateTimer2 ENDP ; ULONG __stdcall NtCreateIoCompletion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateIoCompletion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 369 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateIoCompletion ENDP ; ULONG __stdcall NtCreateFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 370 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateFile ENDP ; ULONG __stdcall NtCreateEventPair( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateEventPair PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 371 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateEventPair ENDP ; ULONG __stdcall NtCreateEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 372 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateEvent ENDP ; ULONG __stdcall NtCreateEnlistment( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 373 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateEnlistment ENDP ; ULONG __stdcall NtCreateEnclave( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateEnclave PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 374 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateEnclave ENDP ; ULONG __stdcall NtCreateDirectoryObjectEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateDirectoryObjectEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 375 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateDirectoryObjectEx ENDP ; ULONG __stdcall NtCreateDirectoryObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateDirectoryObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 376 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateDirectoryObject ENDP ; ULONG __stdcall NtCreateDebugObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateDebugObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 377 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateDebugObject ENDP ; ULONG __stdcall NtContinue( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtContinue PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 378 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtContinue ENDP ; ULONG __stdcall NtConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 379 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtConnectPort ENDP ; ULONG __stdcall NtCompressKey( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCompressKey PROC STDCALL arg_01:DWORD mov eax , 380 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCompressKey ENDP ; ULONG __stdcall NtCompleteConnectPort( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCompleteConnectPort PROC STDCALL arg_01:DWORD mov eax , 381 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCompleteConnectPort ENDP ; ULONG __stdcall NtCompareTokens( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCompareTokens PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 382 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCompareTokens ENDP ; ULONG __stdcall NtCompareObjects( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCompareObjects PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 383 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCompareObjects ENDP ; ULONG __stdcall NtCompactKeys( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCompactKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 384 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCompactKeys ENDP ; ULONG __stdcall NtCommitTransaction( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCommitTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 385 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCommitTransaction ENDP ; ULONG __stdcall NtCommitEnlistment( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCommitEnlistment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 386 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCommitEnlistment ENDP ; ULONG __stdcall NtCommitComplete( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCommitComplete PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 387 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCommitComplete ENDP ; ULONG __stdcall NtCloseObjectAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCloseObjectAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 388 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCloseObjectAuditAlarm ENDP ; ULONG __stdcall NtClose( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtClose PROC STDCALL arg_01:DWORD mov eax , 389 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtClose ENDP ; ULONG __stdcall NtClearEvent( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtClearEvent PROC STDCALL arg_01:DWORD mov eax , 390 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtClearEvent ENDP ; ULONG __stdcall NtCancelWaitCompletionPacket( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCancelWaitCompletionPacket PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 391 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCancelWaitCompletionPacket ENDP ; ULONG __stdcall NtCancelTimer( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCancelTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 392 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCancelTimer ENDP ; ULONG __stdcall NtCancelSynchronousIoFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCancelSynchronousIoFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 393 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCancelSynchronousIoFile ENDP ; ULONG __stdcall NtCancelIoFileEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCancelIoFileEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 394 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCancelIoFileEx ENDP ; ULONG __stdcall NtCancelIoFile( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCancelIoFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 395 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCancelIoFile ENDP ; ULONG __stdcall NtCallbackReturn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCallbackReturn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 396 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCallbackReturn ENDP ; ULONG __stdcall NtAssociateWaitCompletionPacket( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAssociateWaitCompletionPacket PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 397 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAssociateWaitCompletionPacket ENDP ; ULONG __stdcall NtAssignProcessToJobObject( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAssignProcessToJobObject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 398 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAssignProcessToJobObject ENDP ; ULONG __stdcall NtAreMappedFilesTheSame( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAreMappedFilesTheSame PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 399 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAreMappedFilesTheSame ENDP ; ULONG __stdcall NtApphelpCacheControl( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtApphelpCacheControl PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 400 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtApphelpCacheControl ENDP ; ULONG __stdcall NtAlpcSetInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcSetInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 401 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcSetInformation ENDP ; ULONG __stdcall NtAlpcSendWaitReceivePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcSendWaitReceivePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 402 call _label_sysenter ret 32 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcSendWaitReceivePort ENDP ; ULONG __stdcall NtAlpcRevokeSecurityContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcRevokeSecurityContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 403 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcRevokeSecurityContext ENDP ; ULONG __stdcall NtAlpcQueryInformationMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcQueryInformationMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 404 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcQueryInformationMessage ENDP ; ULONG __stdcall NtAlpcQueryInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcQueryInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 405 call _label_sysenter ret 20 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcQueryInformation ENDP ; ULONG __stdcall NtAlpcOpenSenderThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcOpenSenderThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 406 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcOpenSenderThread ENDP ; ULONG __stdcall NtAlpcOpenSenderProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcOpenSenderProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 407 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcOpenSenderProcess ENDP ; ULONG __stdcall NtAlpcImpersonateClientOfPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcImpersonateClientOfPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 408 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcImpersonateClientOfPort ENDP ; ULONG __stdcall NtAlpcImpersonateClientContainerOfPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcImpersonateClientContainerOfPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 409 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcImpersonateClientContainerOfPort ENDP ; ULONG __stdcall NtAlpcDisconnectPort( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDisconnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 410 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDisconnectPort ENDP ; ULONG __stdcall NtAlpcDeleteSecurityContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDeleteSecurityContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 411 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDeleteSecurityContext ENDP ; ULONG __stdcall NtAlpcDeleteSectionView( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDeleteSectionView PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 412 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDeleteSectionView ENDP ; ULONG __stdcall NtAlpcDeleteResourceReserve( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDeleteResourceReserve PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 413 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDeleteResourceReserve ENDP ; ULONG __stdcall NtAlpcDeletePortSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDeletePortSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 414 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcDeletePortSection ENDP ; ULONG __stdcall NtAlpcCreateSecurityContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreateSecurityContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 415 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreateSecurityContext ENDP ; ULONG __stdcall NtAlpcCreateSectionView( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreateSectionView PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 416 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreateSectionView ENDP ; ULONG __stdcall NtAlpcCreateResourceReserve( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreateResourceReserve PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 417 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreateResourceReserve ENDP ; ULONG __stdcall NtAlpcCreatePortSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreatePortSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 418 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreatePortSection ENDP ; ULONG __stdcall NtAlpcCreatePort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreatePort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 419 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCreatePort ENDP ; ULONG __stdcall NtAlpcConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 420 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcConnectPort ENDP ; ULONG __stdcall NtAlpcConnectPortEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcConnectPortEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 421 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcConnectPortEx ENDP ; ULONG __stdcall NtAlpcCancelMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCancelMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 422 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcCancelMessage ENDP ; ULONG __stdcall NtAlpcAcceptConnectPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcAcceptConnectPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 423 call _label_sysenter ret 36 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlpcAcceptConnectPort ENDP ; ULONG __stdcall NtAllocateVirtualMemory( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateVirtualMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 424 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateVirtualMemory ENDP ; ULONG __stdcall NtAllocateUuids( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateUuids PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 425 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateUuids ENDP ; ULONG __stdcall NtAllocateUserPhysicalPages( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateUserPhysicalPages PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 426 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateUserPhysicalPages ENDP ; ULONG __stdcall NtAllocateReserveObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateReserveObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 427 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateReserveObject ENDP ; ULONG __stdcall NtAllocateLocallyUniqueId( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateLocallyUniqueId PROC STDCALL arg_01:DWORD mov eax , 428 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAllocateLocallyUniqueId ENDP ; ULONG __stdcall NtAlertThreadByThreadId( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlertThreadByThreadId PROC STDCALL arg_01:DWORD mov eax , 429 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlertThreadByThreadId ENDP ; ULONG __stdcall NtAlertThread( ULONG arg_01 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlertThread PROC STDCALL arg_01:DWORD mov eax , 430 call _label_sysenter ret 4 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlertThread ENDP ; ULONG __stdcall NtAlertResumeThread( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAlertResumeThread PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 431 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAlertResumeThread ENDP ; ULONG __stdcall NtAdjustPrivilegesToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAdjustPrivilegesToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 432 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAdjustPrivilegesToken ENDP ; ULONG __stdcall NtAdjustGroupsToken( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAdjustGroupsToken PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 433 call _label_sysenter ret 24 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAdjustGroupsToken ENDP ; ULONG __stdcall NtAdjustTokenClaimsAndDeviceGroups( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAdjustTokenClaimsAndDeviceGroups PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD mov eax , 434 call _label_sysenter ret 64 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAdjustTokenClaimsAndDeviceGroups ENDP ; ULONG __stdcall NtAddDriverEntry( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAddDriverEntry PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 435 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAddDriverEntry ENDP ; ULONG __stdcall NtAddBootEntry( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAddBootEntry PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 436 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAddBootEntry ENDP ; ULONG __stdcall NtAddAtom( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAddAtom PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 437 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAddAtom ENDP ; ULONG __stdcall NtAddAtomEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAddAtomEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 438 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAddAtomEx ENDP ; ULONG __stdcall NtAccessCheckByTypeResultListAndAuditAlarmByHandle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 , ULONG arg_17 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByTypeResultListAndAuditAlarmByHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD , arg_17:DWORD mov eax , 439 call _label_sysenter ret 68 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByTypeResultListAndAuditAlarmByHandle ENDP ; ULONG __stdcall NtAccessCheckByTypeResultListAndAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByTypeResultListAndAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD mov eax , 440 call _label_sysenter ret 64 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByTypeResultListAndAuditAlarm ENDP ; ULONG __stdcall NtAccessCheckByTypeResultList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByTypeResultList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 441 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByTypeResultList ENDP ; ULONG __stdcall NtAccessCheckByTypeAndAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByTypeAndAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD mov eax , 442 call _label_sysenter ret 64 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByTypeAndAuditAlarm ENDP ; ULONG __stdcall NtAccessCheckByType( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByType PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 443 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckByType ENDP ; ULONG __stdcall NtAccessCheckAndAuditAlarm( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckAndAuditAlarm PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 444 call _label_sysenter ret 44 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtAccessCheckAndAuditAlarm ENDP ; ULONG __stdcall NtSetInformationSymbolicLink( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationSymbolicLink PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 445 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtSetInformationSymbolicLink ENDP ; ULONG __stdcall NtCreateRegistryTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCreateRegistryTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 446 call _label_sysenter ret 16 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCreateRegistryTransaction ENDP ; ULONG __stdcall NtOpenRegistryTransaction( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); _10_0_14393_sp0_windows_10_rs1_1607_NtOpenRegistryTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 447 call _label_sysenter ret 12 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtOpenRegistryTransaction ENDP ; ULONG __stdcall NtCommitRegistryTransaction( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtCommitRegistryTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 448 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtCommitRegistryTransaction ENDP ; ULONG __stdcall NtRollbackRegistryTransaction( ULONG arg_01 , ULONG arg_02 ); _10_0_14393_sp0_windows_10_rs1_1607_NtRollbackRegistryTransaction PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 449 call _label_sysenter ret 8 _label_sysenter: mov edx , esp ;sysenter db 0Fh , 34h ret _10_0_14393_sp0_windows_10_rs1_1607_NtRollbackRegistryTransaction ENDP
23.780284
352
0.803247
129fdfe9fcf9848c0e388fb3d5b260dcfde95b01
233
asm
Assembly
libsrc/z80_crt0s/r2k/sccz80/l_mult.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/z80_crt0s/r2k/sccz80/l_mult.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/z80_crt0s/r2k/sccz80/l_mult.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
SECTION code_crt0_sccz80 PUBLIC l_mult ; Entry: hl = value1 ; de = value2 ; Exit: hl = value1 * value2 .l_mult ld c,l ld b,h defb 0xf7 ; mul : hlbc = bc * de ld l,c ld h,b ret
13.705882
42
0.506438
f01e5be3e32386d70d872bf80b23f3e67ad821fe
300
asm
Assembly
data/wild/maps/SeaRoutes.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/wild/maps/SeaRoutes.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/wild/maps/SeaRoutes.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
SeaRoutesWildMons: def_grass_wildmons 0 ; encounter rate end_grass_wildmons def_water_wildmons 5 ; encounter rate db 43, HORSEA db 45, GOLDEEN db 47, STARYU db 47, SHELLDER db 48, TENTACOOL db 46, POLIWHIRL db 46, STARYU db 49, SEADRA db 48, GOLDUCK db 50, GYARADOS end_water_wildmons
17.647059
38
0.763333
b84708beae0d248d387f3e3f8045ec77711f4790
3,100
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_12_112.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_12_112.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_12_112.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 %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1e259, %rsi lea addresses_normal_ht+0x14659, %rdi xor %r13, %r13 mov $76, %rcx rep movsl nop nop nop nop and $60384, %r10 lea addresses_UC_ht+0x11a19, %rcx sub %r15, %r15 mov (%rcx), %r10w nop nop xor %r15, %r15 lea addresses_D_ht+0x2359, %rdi nop nop nop and $18490, %rdx mov $0x6162636465666768, %r13 movq %r13, %xmm3 movups %xmm3, (%rdi) nop sub %rdx, %rdx lea addresses_normal_ht+0x2445, %rsi lea addresses_WT_ht+0x98d9, %rdi clflush (%rsi) cmp $18383, %rax mov $98, %rcx rep movsq sub $37799, %rdi lea addresses_WT_ht+0xe259, %r13 nop nop nop nop nop cmp $5495, %rdx movups (%r13), %xmm1 vpextrq $0, %xmm1, %rdi nop nop nop xor %rdi, %rdi lea addresses_WT_ht+0xe9bd, %r13 add %rcx, %rcx vmovups (%r13), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %rax nop nop and $63420, %rax lea addresses_D_ht+0x9259, %rsi lea addresses_WT_ht+0x113a1, %rdi nop nop nop cmp %rdx, %rdx mov $113, %rcx rep movsw sub %r10, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r15 push %rax push %rbp push %rcx push %rdi push %rsi // REPMOV mov $0x697fd90000000ee1, %rsi mov $0xeb9, %rdi clflush (%rdi) nop nop inc %rbp mov $7, %rcx rep movsb nop nop nop nop add $38776, %rcx // Faulty Load lea addresses_WT+0x16a59, %rdi nop nop nop nop xor %r11, %r11 movb (%rdi), %r15b lea oracles, %rcx and $0xff, %r15 shlq $12, %r15 mov (%rcx,%r15,1), %r15 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_NC', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_P', 'congruent': 5}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WT', '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': 9}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 7}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 11}, 'dst': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 3}} {'00': 12} 00 00 00 00 00 00 00 00 00 00 00 00 */
20.945946
153
0.652258
34e6aba426950b0f834b20c890bcfa1df107a8f5
5,906
asm
Assembly
scripts/route8.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
null
null
null
scripts/route8.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
null
null
null
scripts/route8.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
null
null
null
Route8Script: call EnableAutoTextBoxDrawing ld hl, Route8TrainerHeaders ld de, Route8ScriptPointers ld a, [wRoute8CurScript] call ExecuteCurMapScriptInTable ld [wRoute8CurScript], a ret Route8ScriptPointers: dw CheckFightingMapTrainers dw DisplayEnemyTrainerTextAndStartBattle dw EndTrainerBattle Route8TextPointers: dw Route8Text1 dw Route8Text2 dw Route8Text3 dw Route8Text4 dw Route8Text5 dw Route8Text6 dw Route8Text7 dw Route8Text8 dw Route8Text9 dw Route8Text10 Route8TrainerHeaders: Route8TrainerHeader0: dbEventFlagBit EVENT_BEAT_ROUTE_8_TRAINER_0 db ($4 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_8_TRAINER_0 dw Route8BattleText1 ; TextBeforeBattle dw Route8AfterBattleText1 ; TextAfterBattle dw Route8EndBattleText1 ; TextEndBattle dw Route8EndBattleText1 ; TextEndBattle Route8TrainerHeader1: dbEventFlagBit EVENT_BEAT_ROUTE_8_TRAINER_1 db ($4 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_8_TRAINER_1 dw Route8BattleText2 ; TextBeforeBattle dw Route8AfterBattleText2 ; TextAfterBattle dw Route8EndBattleText2 ; TextEndBattle dw Route8EndBattleText2 ; TextEndBattle Route8TrainerHeader2: dbEventFlagBit EVENT_BEAT_ROUTE_8_TRAINER_2 db ($4 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_8_TRAINER_2 dw Route8BattleText3 ; TextBeforeBattle dw Route8AfterBattleText3 ; TextAfterBattle dw Route8EndBattleText3 ; TextEndBattle dw Route8EndBattleText3 ; TextEndBattle Route8TrainerHeader3: dbEventFlagBit EVENT_BEAT_ROUTE_8_TRAINER_3 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_8_TRAINER_3 dw Route8BattleText4 ; TextBeforeBattle dw Route8AfterBattleText4 ; TextAfterBattle dw Route8EndBattleText4 ; TextEndBattle dw Route8EndBattleText4 ; TextEndBattle Route8TrainerHeader4: dbEventFlagBit EVENT_BEAT_ROUTE_8_TRAINER_4 db ($3 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_8_TRAINER_4 dw Route8BattleText5 ; TextBeforeBattle dw Route8AfterBattleText5 ; TextAfterBattle dw Route8EndBattleText5 ; TextEndBattle dw Route8EndBattleText5 ; TextEndBattle Route8TrainerHeader5: dbEventFlagBit EVENT_BEAT_ROUTE_8_TRAINER_5 db ($3 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_8_TRAINER_5 dw Route8BattleText6 ; TextBeforeBattle dw Route8AfterBattleText6 ; TextAfterBattle dw Route8EndBattleText6 ; TextEndBattle dw Route8EndBattleText6 ; TextEndBattle Route8TrainerHeader6: dbEventFlagBit EVENT_BEAT_ROUTE_8_TRAINER_6 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_8_TRAINER_6 dw Route8BattleText7 ; TextBeforeBattle dw Route8AfterBattleText7 ; TextAfterBattle dw Route8EndBattleText7 ; TextEndBattle dw Route8EndBattleText7 ; TextEndBattle Route8TrainerHeader7: dbEventFlagBit EVENT_BEAT_ROUTE_8_TRAINER_7, 1 db ($2 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_8_TRAINER_7, 1 dw Route8BattleText8 ; TextBeforeBattle dw Route8AfterBattleText8 ; TextAfterBattle dw Route8EndBattleText8 ; TextEndBattle dw Route8EndBattleText8 ; TextEndBattle Route8TrainerHeader8: dbEventFlagBit EVENT_BEAT_ROUTE_8_TRAINER_8, 1 db ($4 << 4) ; trainer's view range dwEventFlagAddress EVENT_BEAT_ROUTE_8_TRAINER_8, 1 dw Route8BattleText9 ; TextBeforeBattle dw Route8AfterBattleText9 ; TextAfterBattle dw Route8EndBattleText9 ; TextEndBattle dw Route8EndBattleText9 ; TextEndBattle db $ff Route8Text1: TX_ASM ld hl, Route8TrainerHeader0 call TalkToTrainer jp TextScriptEnd Route8BattleText1: TX_FAR _Route8BattleText1 db "@" Route8EndBattleText1: TX_FAR _Route8EndBattleText1 db "@" Route8AfterBattleText1: TX_FAR _Route8AfterBattleText1 db "@" Route8Text2: TX_ASM ld hl, Route8TrainerHeader1 call TalkToTrainer jp TextScriptEnd Route8BattleText2: TX_FAR _Route8BattleText2 db "@" Route8EndBattleText2: TX_FAR _Route8EndBattleText2 db "@" Route8AfterBattleText2: TX_FAR _Route8AfterBattleText2 db "@" Route8Text3: TX_ASM ld hl, Route8TrainerHeader2 call TalkToTrainer jp TextScriptEnd Route8BattleText3: TX_FAR _Route8BattleText3 db "@" Route8EndBattleText3: TX_FAR _Route8EndBattleText3 db "@" Route8AfterBattleText3: TX_FAR _Route8AfterBattleText3 db "@" Route8Text4: TX_ASM ld hl, Route8TrainerHeader3 call TalkToTrainer jp TextScriptEnd Route8BattleText4: TX_FAR _Route8BattleText4 db "@" Route8EndBattleText4: TX_FAR _Route8EndBattleText4 db "@" Route8AfterBattleText4: TX_FAR _Route8AfterBattleText4 db "@" Route8Text5: TX_ASM ld hl, Route8TrainerHeader4 call TalkToTrainer jp TextScriptEnd Route8BattleText5: TX_FAR _Route8BattleText5 db "@" Route8EndBattleText5: TX_FAR _Route8EndBattleText5 db "@" Route8AfterBattleText5: TX_FAR _Route8AfterBattleText5 db "@" Route8Text6: TX_ASM ld hl, Route8TrainerHeader5 call TalkToTrainer jp TextScriptEnd Route8BattleText6: TX_FAR _Route8BattleText6 db "@" Route8EndBattleText6: TX_FAR _Route8EndBattleText6 db "@" Route8AfterBattleText6: TX_FAR _Route8AfterBattleText6 db "@" Route8Text7: TX_ASM ld hl, Route8TrainerHeader6 call TalkToTrainer jp TextScriptEnd Route8BattleText7: TX_FAR _Route8BattleText7 db "@" Route8EndBattleText7: TX_FAR _Route8EndBattleText7 db "@" Route8AfterBattleText7: TX_FAR _Route8AfterBattleText7 db "@" Route8Text8: TX_ASM ld hl, Route8TrainerHeader7 call TalkToTrainer jp TextScriptEnd Route8BattleText8: TX_FAR _Route8BattleText8 db "@" Route8EndBattleText8: TX_FAR _Route8EndBattleText8 db "@" Route8AfterBattleText8: TX_FAR _Route8AfterBattleText8 db "@" Route8Text9: TX_ASM ld hl, Route8TrainerHeader8 call TalkToTrainer jp TextScriptEnd Route8BattleText9: TX_FAR _Route8BattleText9 db "@" Route8EndBattleText9: TX_FAR _Route8EndBattleText9 db "@" Route8AfterBattleText9: TX_FAR _Route8AfterBattleText9 db "@" Route8Text10: TX_FAR _Route8Text10 db "@"
21.398551
51
0.828141
271e3c8cb70d5f056bdc62f90eb34decf75873fd
693
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sccz80/memccpy.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/string/c/sccz80/memccpy.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/string/c/sccz80/memccpy.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
null
null
null
; void *memccpy(void * restrict s1, const void * restrict s2, int c, size_t n) SECTION code_clib SECTION code_string PUBLIC memccpy EXTERN asm_memccpy memccpy: IF __CPU_INTEL__ ld hl,2 add hl,sp ld c,(hl) inc hl ld b,(hl) inc hl ld a,(hl) inc hl inc hl ld e,(hl) inc hl ld d,(hl) inc hl push de ld e,(hl) inc hl ld d,(hl) pop hl ELSE pop ix pop bc pop de ld a,e pop hl pop de push de push hl push de push bc push ix ENDIF jp asm_memccpy ; SDCC bridge for Classic IF __CLASSIC PUBLIC _memccpy defc _memccpy = memccpy ENDIF
12.6
78
0.554113
8062d62587172b1b5d28c33e38baf8bab6bad6fb
413
asm
Assembly
output/assembleurtrue.asm
jodorganistaca/Projet_SI
e640ccf37252cb22a92a858ab2d1fd409a63aecf
[ "MIT" ]
null
null
null
output/assembleurtrue.asm
jodorganistaca/Projet_SI
e640ccf37252cb22a92a858ab2d1fd409a63aecf
[ "MIT" ]
null
null
null
output/assembleurtrue.asm
jodorganistaca/Projet_SI
e640ccf37252cb22a92a858ab2d1fd409a63aecf
[ "MIT" ]
null
null
null
AFC 1 5 COP 20 1 AFC 2 5 INF 3 20 2 JMF 3 11 AFC 4 2 AFC 5 2 MUL 6 4 5 COP 20 6 JMP 37 AFC 7 5 SUP 8 20 7 JMF 8 29 AFC 9 2 EQU 10 20 9 JMF 10 20 AFC 11 3 COP 20 11 JMP 26 AFC 12 2 SUP 13 20 12 JMF 13 26 AFC 14 4 COP 20 14 JMP 26 AFC 15 0 COP 20 15 JMP 37 AFC 16 5 EQU 17 20 16 JMF 17 35 AFC 18 2 COP 20 18 JMP 37 AFC 19 4 COP 20 19 PRI 20
10.868421
13
0.552058
d498f26c3a46ba52a801f499515b2252bfe8ce94
619
asm
Assembly
tests/data/labels/projects/sjasmplus/wpmem_assertion_logpoint/main.asm
jacobly0/DeZog
cabeec9b873362cc78802ee7d205eb8757b71758
[ "MIT" ]
93
2020-01-18T15:29:16.000Z
2022-03-13T09:03:58.000Z
tests/data/labels/projects/sjasmplus/wpmem_assertion_logpoint/main.asm
jacobly0/DeZog
cabeec9b873362cc78802ee7d205eb8757b71758
[ "MIT" ]
54
2020-02-08T20:31:47.000Z
2022-03-31T15:46:25.000Z
tests/data/labels/projects/sjasmplus/wpmem_assertion_logpoint/main.asm
jacobly0/DeZog
cabeec9b873362cc78802ee7d205eb8757b71758
[ "MIT" ]
18
2020-03-13T13:38:24.000Z
2022-03-23T23:58:03.000Z
DEVICE NOSLOT64K SLDOPT COMMENT WPMEM, LOGPOINT, ASSERTION ORG 0xA000 MACRO MEMGUARD defs 1 ; WPMEM ENDM defs 0x10 ; WPMEM defs 0x10 ; WPMEM, 5, w ; WPMEM 0x7000, 10, r ; This is a watchpoint WPMEM 0x6000, 5, w, A == 0 ; WPMEMx 0x9000, 5, w, A == 0 ; Should now also work: no address and no used bytes: WPMEM ORG 0xA040 MEMGUARD MEMGUARD ORG 0xA100 nop ; ASSERTION nop ; ASSERTION B==1 nop ; ASSERTIONx ORG 0xA200 nop ; LOGPOINT [GROUP1] ${A} nop ; LOGPOINT [GROUP1] BC=${hex:BC} nop ; LOGPOINT [GROUP1] nop ; LOGPOINT MY LOG nop ; LOGPOINTx [GROUP2] ${A}
15.871795
60
0.641357
85d674375b6a1eaf6549baf86e7ed8d246c4a9ae
118
asm
Assembly
study/argument.asm
caio-vinicius/libasm
f8e22fa21f79cdee80de6eb9ee72e3414054c804
[ "MIT" ]
null
null
null
study/argument.asm
caio-vinicius/libasm
f8e22fa21f79cdee80de6eb9ee72e3414054c804
[ "MIT" ]
null
null
null
study/argument.asm
caio-vinicius/libasm
f8e22fa21f79cdee80de6eb9ee72e3414054c804
[ "MIT" ]
null
null
null
section .text global argument argument: mov edi, 7 call argument2 add eax, 1 ret argument2: mov eax, edi ret
9.076923
16
0.711864
f02bb92d139349f42771cca035c96ee062cee2fe
5,466
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1891.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_1891.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_1891.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r15 push %r9 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xf935, %rbp nop nop nop and $62651, %r9 movw $0x6162, (%rbp) nop nop nop nop nop cmp %r9, %r9 lea addresses_normal_ht+0xa175, %rdx clflush (%rdx) nop nop nop nop add %r15, %r15 mov (%rdx), %ebp nop nop and %r15, %r15 lea addresses_WT_ht+0x15a5, %rax nop nop nop cmp $59030, %rbx movl $0x61626364, (%rax) nop nop nop nop inc %r15 lea addresses_D_ht+0x19435, %rsi lea addresses_UC_ht+0xd825, %rdi clflush (%rdi) nop nop xor %rax, %rax mov $9, %rcx rep movsw nop nop and $13771, %rdi lea addresses_WC_ht+0x13775, %rsi lea addresses_WC_ht+0x18235, %rdi dec %rbx mov $73, %rcx rep movsl nop xor $59744, %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r9 pop %r15 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %rbx push %rdi push %rdx // Store lea addresses_normal+0xec35, %rdx nop nop nop nop dec %r12 mov $0x5152535455565758, %r10 movq %r10, %xmm5 vmovups %ymm5, (%rdx) nop nop nop nop xor $48325, %rdi // Faulty Load lea addresses_PSE+0x18235, %rbx inc %r12 mov (%rbx), %di lea oracles, %rdx and $0xff, %rdi shlq $12, %rdi mov (%rdx,%rdi,1), %rdi pop %rdx pop %rdi pop %rbx pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_normal', 'size': 32, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}} {'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 */
40.791045
2,999
0.661361
0bb8fe534f322bed542280742c6693fabe432f6b
629
asm
Assembly
oeis/178/A178936.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/178/A178936.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/178/A178936.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A178936: Floor((2*3^n+3*2^n)/5). ; Submitted by Jon Maiga ; 1,2,6,15,42,116,330,951,2778,8180,24234,72087,215034,642644,1923018,5759223,17258010,51734708,155125482,465219159,1395342906,4185399572,12554940426,37662304695,112981880922,338935576436,1016786596650,3050319524631,9150878043258,27452473068500,82357097082954,247070647003767,741210652521114,2223629380582964,6670882987788138,20012638655442903,60037895350485690,180113644819771028,540340851995941002,1621022391061078839,4863066843329748186,14589199870282267892,43767598291432850346 mov $1,3 pow $1,$0 mov $2,2 pow $2,$0 add $1,$2 mul $1,2 add $1,$2 mov $0,$1 div $0,5
44.928571
481
0.826709
66641a5ec85f158dcab29a228ca15228b0a06098
908
asm
Assembly
src/Shaders/HlslCrossCompiler/ps5/conservative_depth_le.asm
tgjones/slimshader-cpp
a1833e2eccf32cccfe33aa7613772503eca963ee
[ "MIT" ]
20
2015-03-29T02:14:03.000Z
2021-11-14T12:27:02.000Z
src/Shaders/HlslCrossCompiler/ps5/conservative_depth_le.asm
tgjones/slimshader-cpp
a1833e2eccf32cccfe33aa7613772503eca963ee
[ "MIT" ]
null
null
null
src/Shaders/HlslCrossCompiler/ps5/conservative_depth_le.asm
tgjones/slimshader-cpp
a1833e2eccf32cccfe33aa7613772503eca963ee
[ "MIT" ]
12
2015-05-04T06:39:10.000Z
2022-02-23T06:48:04.000Z
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384 // // /// // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // COLOR 0 xyzw 0 NONE float x // DEPTH 0 x 1 NONE float x // // // Output signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_Target 0 x 0 TARGET float x // SV_DepthLessEqual 0 N/A oDepthLE DEPTHLE float YES // ps_5_0 dcl_globalFlags refactoringAllowed dcl_input_ps linear v0.x dcl_input_ps linear v1.x dcl_output o0.x dcl_output oDepthLE mov o0.x, v0.x mov oDepthLE, v1.x ret // Approximately 3 instruction slots used
28.375
69
0.480176
fab8ad8e1ae56567712695245230b00a00d1d0f8
332
asm
Assembly
oeis/021/A021955.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021955.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021955.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021955: Decimal expansion of 1/951. ; Submitted by Christian Krause ; 0,0,1,0,5,1,5,2,4,7,1,0,8,3,0,7,0,4,5,2,1,5,5,6,2,5,6,5,7,2,0,2,9,4,4,2,6,9,1,9,0,3,2,5,9,7,2,6,6,0,3,5,7,5,1,8,4,0,1,6,8,2,4,3,9,5,3,7,3,2,9,1,2,7,2,3,4,4,9,0,0,1,0,5,1,5,2,4,7,1,0,8,3,0,7,0,4,5,2 add $0,1 mov $1,10 pow $1,$0 div $1,951 mov $0,$1 mod $0,10
30.181818
199
0.566265
d58db973c63d0708009d2834dbe3cc06d0f10b6c
1,650
asm
Assembly
programs/oeis/226/A226488.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/226/A226488.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/226/A226488.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A226488: a(n) = n*(13*n - 9)/2. ; 0,2,17,45,86,140,207,287,380,486,605,737,882,1040,1211,1395,1592,1802,2025,2261,2510,2772,3047,3335,3636,3950,4277,4617,4970,5336,5715,6107,6512,6930,7361,7805,8262,8732,9215,9711,10220,10742,11277,11825,12386,12960,13547,14147,14760,15386,16025,16677,17342,18020,18711,19415,20132,20862,21605,22361,23130,23912,24707,25515,26336,27170,28017,28877,29750,30636,31535,32447,33372,34310,35261,36225,37202,38192,39195,40211,41240,42282,43337,44405,45486,46580,47687,48807,49940,51086,52245,53417,54602,55800,57011,58235,59472,60722,61985,63261,64550,65852,67167,68495,69836,71190,72557,73937,75330,76736,78155,79587,81032,82490,83961,85445,86942,88452,89975,91511,93060,94622,96197,97785,99386,101000,102627,104267,105920,107586,109265,110957,112662,114380,116111,117855,119612,121382,123165,124961,126770,128592,130427,132275,134136,136010,137897,139797,141710,143636,145575,147527,149492,151470,153461,155465,157482,159512,161555,163611,165680,167762,169857,171965,174086,176220,178367,180527,182700,184886,187085,189297,191522,193760,196011,198275,200552,202842,205145,207461,209790,212132,214487,216855,219236,221630,224037,226457,228890,231336,233795,236267,238752,241250,243761,246285,248822,251372,253935,256511,259100,261702,264317,266945,269586,272240,274907,277587,280280,282986,285705,288437,291182,293940,296711,299495,302292,305102,307925,310761,313610,316472,319347,322235,325136,328050,330977,333917,336870,339836,342815,345807,348812,351830,354861,357905,360962,364032,367115,370211,373320,376442,379577,382725,385886,389060,392247,395447,398660,401886 mov $1,13 mul $1,$0 sub $1,9 mul $1,$0 div $1,2
183.333333
1,566
0.821818
6f84369b27880ff6491a331a39bc7c23d57b30f9
1,268
asm
Assembly
tests/mips8.asm
QuarticCat/qc-mips-cpu
500a8f82c7cb9876584c9cdeee9438534f110f5b
[ "MIT" ]
null
null
null
tests/mips8.asm
QuarticCat/qc-mips-cpu
500a8f82c7cb9876584c9cdeee9438534f110f5b
[ "MIT" ]
null
null
null
tests/mips8.asm
QuarticCat/qc-mips-cpu
500a8f82c7cb9876584c9cdeee9438534f110f5b
[ "MIT" ]
null
null
null
.text # To test the data hazard of beq and bne addi $t1, $zero, 12 addi $t2, $zero, -2 addi $t3, $zero, 23 addi $v0, $zero, 0 addi $v1, $zero, 19 addi $a0, $zero, 1 addi $t0, $zero, -1 addi $a2, $zero, 1 # meaningless instruction, just to avoid other hazards addi $a2, $zero, 1 # meaningless instruction, just to avoid other hazards addi $a2, $zero, 1 # meaningless instruction, just to avoid other hazards addi $a1, $zero, 0 # The loop starts here. addi $v0, $v0, 1 sub $t0, $t0, $a0 slt $a1, $v0, $v1 bne $a1, $a0, -5 # If the data hazard is not handled correctly, the loop will never end sw $t0, 8($zero) # if the branch is handled correctly, # $t0 shoule be -2, and the value is stored in DATA_MEM[2] addi $a2, $zero, 1 # meaningless instruction, just to avoid other hazards lw $t1, 8($zero) # $t1 should be -2 beq $t1, $t2, 2 # since $t1 = $t2, it should branch addi $t3, $zero, 3 # If the beq succeeds, this should be skipped. Thus, $t3 should be 23 addi $a2, $zero, 1 # meaningless instruction, just to avoid other hazards addi $a2, $zero, 1 # meaningless instruction, just to avoid other hazards addi $a2, $zero, 1 # meaningless instruction, just to avoid other hazards sw $t3, 12($zero) # store $t3 in DATA_MEM[3], which should be 23
45.285714
88
0.677445
48f60b1289f58369b2d4401697ccd6cdf264ad69
386
asm
Assembly
src/ben-eater-6502/set-value.asm
lewismoten/6502-program-1
f4ea14505066da3502b792a16863ff0f6217e3b0
[ "MIT" ]
1
2021-03-04T20:09:55.000Z
2021-03-04T20:09:55.000Z
src/ben-eater-6502/set-value.asm
lewismoten/6502-program-1
f4ea14505066da3502b792a16863ff0f6217e3b0
[ "MIT" ]
null
null
null
src/ben-eater-6502/set-value.asm
lewismoten/6502-program-1
f4ea14505066da3502b792a16863ff0f6217e3b0
[ "MIT" ]
null
null
null
; 32KB ; Offset 0x8000. ; Set default value for padding as no-op instruction FILLVALUE $EA ; start assembling at address 0 ORG $0000 ; Load accumulator with value of 0x42 lda #$42 ; A9 4C ; store value in accumulator at address 6000 sta $6000 ; Skip to entry address PAD $7FFC ; Now at entry address (0xFFFC and 0xFFFD) ; start program at 0x8000 HEX 0080 ; Fill to 32K PAD $8000
15.44
52
0.733161
6438cf46d82b1ce27032fec96dde92d718a54f70
210
asm
Assembly
programs/oeis/182/A182741.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/182/A182741.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/182/A182741.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A182741: A shell model of partitions as a binary code. ; 1,1,1,1,0,1,1,0,1,1,1,0,0,1,1,1,0,1,1,1,1,1 trn $0,2 pow $0,5 mod $0,46 mov $1,10 lpb $0,1 mov $0,6 mov $1,1 sub $2,5 mul $0,$2 lpe div $1,10
14
56
0.57619
418686d7965eb3b883d9d32980877585db17e489
321
asm
Assembly
programs/oeis/061/A061353.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/061/A061353.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/061/A061353.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A061353: First column of array shown in A061352. ; 1,3,4,0,1,1,2,6,7,5,6,8,9,5,6,6,7,1,2,0,1,3,4,0,1,1,2,6,7,5,6,8,9,5,6,6,7,1,2,0,1,3,4,0,1,1,2,6,7,5,6,8,9,5,6,6,7,1,2,0,1,3,4,0,1,1,2,6,7,5,6,8,9,5,6,6,7,1,2,0,1,3,4,0,1,1,2,6,7,5,6,8,9,5,6,6,7,1,2,0 mov $2,$0 dif $0,2 bin $2,2 add $2,$0 add $0,$2 add $0,1 mod $0,10
29.181818
201
0.545171
da7a196c02d4b82b862369e8ba5fbcae0be54c72
192
asm
Assembly
libsrc/stdio_new/error/stdio_error_einval_zc.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/stdio_new/error/stdio_error_einval_zc.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/stdio_new/error/stdio_error_einval_zc.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; stdio_error_einval_zc ; 06.2008 aralbrec PUBLIC stdio_error_einval_zc EXTERN stdio_errno_zc INCLUDE "../stdio.def" pop hl .stdio_error_einval_zc ld hl,EINVAL jp stdio_errno_zc
12.8
28
0.776042
c28fbe1db3b49a7cb6ed6e4972ce8627e97f2a60
8,513
asm
Assembly
uuu/src/apps/nic_detector/nic_detector.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
7
2019-03-04T08:53:33.000Z
2022-01-28T19:32:12.000Z
uuu/src/apps/nic_detector/nic_detector.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
null
null
null
uuu/src/apps/nic_detector/nic_detector.asm
ekscrypto/Unununium
4b67e7c5e63cf1be2157382ffd4c1e9d12957a1f
[ "BSD-2-Clause" ]
null
null
null
; Unununium Operating Engine ; Copyright (C) 2001, Dave Poirier ; Distributed under the BSD License ; ; Please see the pci_detector application, which is based on this one but ; much more complete. ; section nic_detector nic_database: dd 0x0082, str_3COM dd 0xFFFF, str_3C905 dd -1 dd 0x008D, str_3COM dd 0xFFFF, str_3C905 dd -1 dd 0x1011, str_DEC dd 0x0002, str_DECCHIP21040 dd 0x0009, str_DECCHIP21140 dd 0x0014, str_DECCHIP21041 dd 0x0019, str_DECCHIP21142 dd 0x500B, str_DE500 dd -1 dd 0x1014, str_DEC dd 0x0001, str_ETHERJET dd -1 dd 0x1014, str_XIRCOM dd 0x0181, str_ETHERJET dd 0x0182, str_ETHERJET dd 0x0183, str_ETHERJET dd 0x1182, str_ETHERJET dd -1 dd 0x1025, str_DEC dd 0x0315, str_ALN315 dd -1 dd 0x1028, str_3COM dd 0x0080, str_3C905B dd 0x0081, str_3C905B dd 0x0082, str_3C905B dd 0x0083, str_3C905B dd 0x0084, str_3C905B dd 0x0085, str_3C905B dd 0x0086, str_3C905B dd 0x0087, str_3C905B dd 0x0088, str_3C905B dd 0x0089, str_3C905B dd 0x0090, str_3C905B dd 0x0091, str_3C905B dd 0x0092, str_3C905B dd 0x0093, str_3C905B dd 0x0094, str_3C905B dd 0x0095, str_3C905B dd 0x0096, str_3C905B dd 0x0097, str_3C905B dd 0x0098, str_3C905B dd 0x0099, str_3C905B dd -1 dd 0x108D, str_DEC dd 0x0016, str_RAPIDFIRE2327 dd -1 dd 0x10B7, str_3COM dd 0x5900, str_3C590 dd 0x5920, str_3C592 dd 0x5950, str_3C595_TX dd 0x5951, str_3C595_T4 dd 0x5952, str_3C595_MII dd 0x9000, str_3C900_TPO dd 0x9001, str_3C900_COMBO dd 0x9004, str_3C900B_TPO dd 0x9005, str_3C900B_COMBO dd 0x9006, str_3C900B_TPC dd 0x900A, str_3C900B_FL dd 0x9050, str_3C905_TX dd 0x9051, str_3C905_T4 dd 0x9055, str_3C905B dd 0x9056, str_3C905B_T4 dd 0x9058, str_3C905B_COMBO dd 0x905A, str_3C905B_FX dd -1 dd 0x10B8, str_DEC dd 0x2001, str_SMC9332BDT dd 0x2002, str_SMC9332BVT dd 0x2003, str_SMC9334BDT dd 0x2005, str_SMC8032DT dd -1 dd 0x10EF, str_DEC dd 0x8169, str_CARDBUS dd -1 dd 0x1109, str_DEC dd 0x2400, str_ANA6944ATX dd 0x2A00, str_ANA6911ATX dd 0x2B00, str_ANA6911ATXC dd 0x3000, str_ANA6922TX dd -1 dd 0x1112, str_DEC dd 0x2300, str_RNS2300 dd 0x2320, str_RNS2320 dd 0x2340, str_RNS2340 dd -1 dd 0x1113, str_DEC dd 0x1207, str_EN1207TX dd 0x2220, str_CARDBUS dd -1 dd 0x115D, str_DEC dd 0x0002, str_CARDBUS10_100 dd -1 dd 0x115D, str_XIRCOM dd 0x0003, str_CARDBUS dd 0x0005, str_CARDBUS dd 0x0007, str_CARDBUS dd 0x000B, str_CARDBUS dd 0x000F, str_CARDBUS dd 0x0101, str_CARDBUS dd 0x0103, str_CARDBUS dd 0x0181, str_CARDBUS dd 0x1181, str_CARDBUS dd 0x0182, str_ETHERJET dd 0x1182, str_ETHERJET dd 0x0183, str_ETHERJET dd -1 dd 0x1179, str_DEC dd 0x0203, str_FASTETHERNET dd 0x0204, str_CARDBUS dd -1 dd 0x1186, str_DEC dd 0x0100, str_DE530PLUS dd 0x1100, str_DFE500TX dd 0x1101, str_DFE500TX dd 0x1102, str_DFE500TX dd -1 dd 0x1266, str_DEC dd 0x0004, str_EAGLE_ETHERMAX dd -1 dd 0x1282, str_DEC dd 0x9100, str_AEF380TXD dd -1 dd 0x12AF, str_DEC dd 0x0019, str_NETFLYER_CARDBUS dd -1 dd 0x1395, str_DEC dd 0x0001, str_CARDBUS10_100 dd -1 dd 0x2646, str_DEC dd 0x0001, str_KNE100TX dd -1 dd 0x8086, str_DEC dd 0x0001, str_ETHEREXPRESSPRO100 dd -1 dd -1 str_3COM: db "3COM Corporation",0 str_3C590: db "3C590 PCI Ethernet Adapter 10bT",0 str_3C592: db "3C592 EISA 10mbps Demon/Vortex",0 str_3C595_TX: db "3C595 PCI Ethernet Adapter 100bTX",0 str_3C595_T4: db "3C595 PCI Ethernet Adapter 100bT4",0 str_3C595_MII: db "3C595 PCI Ethernet Adapater 100b-MII",0 str_3C900_TPO: db "3C900-TPO Fast Ethernet",0 str_3C900_COMBO: db "3C900-COMBO Fast Etherlink",0 str_3C900B_TPO: db "3C900B-TPO Etherlink XL TPO 10Mb",0 str_3C900B_COMBO: db "3C900B-COMBO Etherlink XL Combo",0 str_3C900B_TPC: db "3C900B-TPC Etherlink XL TPC",0 str_3C900B_FL: db "3C900B-FL Etherlink XL FL",0 str_3C905: db "3C905 Fast Etherlink 10/100",0 str_3C905_TX: db "3C905-TX Fast Etherlink 10/100",0 str_3C905_T4: db "3C905-T4 Fast Etherlink XL 10/100",0 str_3C905B: db "3C905B Fast Etherlink XL 10/100",0 str_3C905B_T4: db "3C905B-T4 Fast Etherlink XL 10/100",0 str_3C905B_COMBO: db "3C905B-COMBO Deluxe Etherlink 10/100",0 str_3C905B_FX: db "3C905B-FX Fast Etherlink FX",0 str_AEF380TXD: db "AEF-380TXD Fast Ethernet",0 str_ALN315: db "ALN315 Fast Ethernet Adapter",0 str_ANA6911ATX: db "ANA-6911A/TX Fast Ethernet Adapter",0 str_ANA6911ATXC: db "ANA-6911A/TXC Fast Ethernet Adapter",0 str_ANA6922TX: db "ANA-6922/TX Fast Ethernet Adapter",0 str_ANA6944ATX: db "ANA-6944A/TX Fast Ethernet",0 str_CARDBUS: db "Cardbus Fast Ethernet Adapter",0 str_CARDBUS10_100: db "Cardbus Ethernet 10/100 Adapter",0 str_DE500: db "DE500 Fast Ethernet Adapter",0 str_DE530PLUS: db "DE-530+ Ethernet Adapter",0 str_DEC: db "Digital Equipment Corporation (DEC)",0 str_DECCHIP21040: db "DecChip 21040 'Tulip' Ethernet Adapter",0 str_DECCHIP21041: db "DecChip 21041 'Tulip Plus' Ethernet Adapter",0 str_DECCHIP21140: db "DecChip 21140 Fast Ethernet Adapter",0 str_DECCHIP21142: db "DecChip 21142/3 10/100 Ethernet Adapter",0 str_DFE500TX: db "DFE-500TX Fast Ethernet",0 str_EAGLE_ETHERMAX: db "Eagle Fast EtherMAX",0 str_EN1207TX: db "EN-1207-TX Fast Ethernet or Cheetah Fast Ethernet Adapter",0 str_ETHEREXPRESSPRO100: db "EtherExpress PRO/100 Mobile CardBus 32 Adapter",0 str_ETHERJET: db "10/100 EtherJet Cardbus Adapter",0 str_FASTETHERNET: db "Fast Ethernet Adapter",0 str_KNE100TX: db "KNE100TX Fast Ethernet",0 str_NETFLYER_CARDBUS: db "NetFlyer Cardbus Fast Ethernet Adapter",0 str_RAPIDFIRE2327: db "Rapidfire 2327 10/100 Ethernet Adapter",0 str_RNS2300: db "RNS2300 Fast Ethernet",0 str_RNS2320: db "RNS2320 Fast Ethernet",0 str_RNS2340: db "RNS2340 Fast Ethernet",0 str_SMC8032DT: db "SMC8032DT Extreme Ethernet 10/100 Adapte",0 str_SMC9332BDT: db "SMC9332BDT EtherPower 10/100",0 str_SMC9332BVT: db "SMC9332BVT EtherPower T4 10/100",0 str_SMC9334BDT: db "SMC9334BDT EtherPower 10/100 (1-port)",0 str_XIRCOM: db "Xircom",0 str_and_function_number: db " and function number: ",1 str_end_of_list: db "Search completed.",0 str_found_device_on_bus: db "Found device on bus: ",1 str_of_this_type: db " of this DeviceID/VendorID",0 str_searching_Device: db "Searching for DeviceID: ",1 str_searching_Vendor: db "Searching with VendorID: ",1 str_separator: db " - ",1 str_this_is_index: db ". This is index ",1 str_title: db "Network Interface Card Detector version 0.2, by Dave Poirier",0 str_using_device_number: db ", using device number: ",1 global app_nic_detector app_nic_detector: lea esi, [str_title] externfunc __string_out, system_log lea ebp, [nic_database] ;]--Load Vendor ID .search_vendor: mov eax, [ebp] lea ebp, [ebp + 4] cmp eax, dword -1 jz .end_of_list lea esi, [str_searching_Vendor] externfunc __string_out, system_log mov edx, eax externfunc __hex_out, system_log lea esi, [str_separator] externfunc __string_out, system_log mov esi, [ebp] lea ebp, [ebp + 4] externfunc __string_out, system_log ;]--Load/display Device ID .check_device: push eax lea esi, [str_searching_Device] externfunc __string_out, system_log mov edx, [ebp] externfunc __hex_out, system_log lea esi, [str_separator] externfunc __string_out, system_log mov esi, [ebp + 4] externfunc __string_out, system_log xor esi, esi .retry_device_id: mov ecx, edx mov edx, eax push ebp externfunc __find_pci_device, noclass pop ebp pop eax jnc .found_device .try_next_device: lea ebp, [ebp + 8] cmp [ebp], dword -1 jnz .check_device .try_next_vendor: lea ebp, [ebp + 4] cmp [ebp], dword -1 jnz .search_vendor .end_of_list: lea esi, [str_end_of_list] externfunc __string_out, system_log retn .found_device: push esi lea esi, [str_found_device_on_bus] externfunc __string_out, system_log xor edx, edx mov dl, bh externfunc __hex_out, system_log lea esi, [str_using_device_number] externfunc __string_out, system_log mov dl, bl shr dl, 3 externfunc __hex_out, system_log lea esi, [str_and_function_number] externfunc __string_out, system_log mov dl, bl and dl, 0x07 externfunc __hex_out, system_log lea esi, [str_this_is_index] externfunc __string_out, system_log pop edx push edx externfunc __hex_out, system_log lea esi, [str_of_this_type] externfunc __string_out, system_log pop esi inc esi mov edx, [ebp] push eax jmp near .retry_device_id
25.641566
79
0.754376
169911fc06176b5305acff2358700750236ebad6
468
asm
Assembly
library/02_functions_batch1/unknown_10003750.asm
SamantazFox/dds140-reverse-engineering
4c8c286ffc20f2ee07061c83b0a0a68204d90148
[ "Unlicense" ]
1
2021-06-05T23:41:15.000Z
2021-06-05T23:41:15.000Z
library/02_functions_batch1/unknown_10003750.asm
SamantazFox/dds140-reverse-engineering
4c8c286ffc20f2ee07061c83b0a0a68204d90148
[ "Unlicense" ]
null
null
null
library/02_functions_batch1/unknown_10003750.asm
SamantazFox/dds140-reverse-engineering
4c8c286ffc20f2ee07061c83b0a0a68204d90148
[ "Unlicense" ]
null
null
null
10003750: a1 10 52 01 10 mov eax,ds:0x10015210 10003755: 85 c0 test eax,eax 10003757: 74 06 je 0x1000375f 10003759: 50 push eax 1000375a: e8 e7 00 00 00 call 0x10003846 1000375f: b8 01 00 00 00 mov eax,0x1 10003764: c7 05 10 52 01 10 ff mov DWORD PTR ds:0x10015210,0xffffffff 1000376b: ff ff ff 1000376e: c3 ret 1000376f: cc int3
42.545455
73
0.542735
fc55d29e741f79b0a48060c4327c9235f5772d83
8,468
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0.log_21829_752.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0.log_21829_752.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i9-9900K_12_0xa0.log_21829_752.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 %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x15c06, %rcx nop nop nop nop nop and %r12, %r12 mov $0x6162636465666768, %r9 movq %r9, %xmm5 and $0xffffffffffffffc0, %rcx vmovaps %ymm5, (%rcx) nop nop nop sub $36808, %r9 lea addresses_WT_ht+0x4d86, %rsi lea addresses_WC_ht+0xef95, %rdi nop nop dec %r12 mov $119, %rcx rep movsq nop nop nop add %r9, %r9 lea addresses_WT_ht+0x181c6, %rsi lea addresses_WC_ht+0x2f06, %rdi nop nop cmp $30697, %rbx mov $76, %rcx rep movsb nop nop inc %rdi lea addresses_D_ht+0x17b6d, %rcx nop nop dec %r14 mov $0x6162636465666768, %r12 movq %r12, %xmm7 movups %xmm7, (%rcx) nop nop nop nop dec %rbx lea addresses_A_ht+0xc06, %rbx nop nop nop nop nop sub %rsi, %rsi mov (%rbx), %r12d nop nop nop cmp %r14, %r14 lea addresses_A_ht+0xcb06, %r14 nop nop nop xor %rcx, %rcx mov $0x6162636465666768, %r9 movq %r9, (%r14) nop nop nop and $62961, %rbx lea addresses_A_ht+0x1e7ae, %rcx nop nop nop nop xor $32895, %rdi movups (%rcx), %xmm3 vpextrq $0, %xmm3, %rbx nop add $13624, %r9 lea addresses_A_ht+0x19786, %r9 nop nop nop nop nop inc %rdi movl $0x61626364, (%r9) nop dec %r9 lea addresses_WT_ht+0xc6ae, %rcx nop nop nop nop nop sub $63664, %r12 vmovups (%rcx), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %r9 nop nop nop nop and %rdi, %rdi lea addresses_UC_ht+0x706, %rcx nop nop xor %r9, %r9 mov $0x6162636465666768, %r14 movq %r14, %xmm0 movups %xmm0, (%rcx) cmp $40796, %r14 lea addresses_WT_ht+0xad86, %rsi lea addresses_A_ht+0x76d2, %rdi nop nop sub $57968, %rax mov $49, %rcx rep movsq nop nop nop cmp %r14, %r14 lea addresses_WT_ht+0x1cf06, %rcx add $55223, %rbx vmovups (%rcx), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $1, %xmm3, %rsi nop add %r9, %r9 lea addresses_D_ht+0x1c9ba, %rsi lea addresses_D_ht+0x1e906, %rdi clflush (%rdi) nop nop xor %rbx, %rbx mov $23, %rcx rep movsq nop nop nop nop nop sub $13844, %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r9 push %rbp push %rbx push %rdi push %rsi // Store lea addresses_UC+0xf706, %r9 nop nop nop dec %r11 movl $0x51525354, (%r9) xor %rdi, %rdi // Store lea addresses_WT+0xfd36, %r14 nop cmp $36815, %rbx mov $0x5152535455565758, %r9 movq %r9, %xmm6 movups %xmm6, (%r14) nop nop nop nop nop inc %r9 // Store lea addresses_RW+0x2d86, %rbp nop nop nop nop cmp $22443, %rdi movw $0x5152, (%rbp) nop nop nop sub $16773, %rbx // Store lea addresses_WC+0x19b06, %rbx nop nop nop nop cmp $41291, %rsi movb $0x51, (%rbx) and $62258, %r11 // Faulty Load lea addresses_A+0x19b06, %rsi nop nop nop nop and %r14, %r14 vmovups (%rsi), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %rdi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdi pop %rbx pop %rbp pop %r9 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_UC', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WT', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 11, 'type': 'addresses_WC', 'AVXalign': False, 'size': 1}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_A', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_normal_ht', 'AVXalign': True, 'size': 32}} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 0, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': True, 'size': 8}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D_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 */
31.018315
2,999
0.655999
d57d7f73538ad43af9805f9bba1671097a6b3642
10,319
asm
Assembly
base/mvdm/dos/v86/cmd/command/comequ.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/dos/v86/cmd/command/comequ.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/dos/v86/cmd/command/comequ.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ; SCCSID = @(#)comequ.asm 1.1 85/05/14 ; SCCSID = @(#)comequ.asm 1.1 85/05/14 ;************************************* ; COMMAND EQUs which are not switch dependant include curdir.inc ; to get DIRSTRLEN ; Note dossym.inc must already have been included! EMGDEBUG = FALSE SYM EQU ">" ifdef JAPAN LINESPERPAGE EQU 24 else ; if Not JAPAN LINESPERPAGE EQU 25 ;AC000; default lines per page endif NORMPERLIN EQU 1 WIDEPERLIN EQU 5 COMBUFLEN EQU 128 ; Length of commmand buffer EXECPATHLEN EQU 273 ; MAX_PATH+13 (expanded for ntvdm) BatLen EQU 32 ; buffer for batch files YES_ECHO EQU 1 ; echo line NO_ECHO EQU 0 ; don't echo line No_Echo_Char EQU "@" ; don't echo line if this is first char call_in_progress EQU 1 ; indicate we're in the CALL command length_call EQU 4 ; length of CALL max_nest EQU 10 ; max # levels of batch nesting allowed fail_allowed EQU 00001000b ; critical error retry_allowed EQU 00010000b ; critical error Ignore_allowed EQU 00100000b ; critical error nullcommand EQU 1 ; no command on command line end_of_line EQU -1 ;AN000; end of line return from parser end_of_line_out EQU 0 ;AN000; end of line for output end_of_line_in EQU 0dh ;AN000; end of line for input result_number EQU 1 ;AN000; number returned from parser result_string EQU 3 ;AN000; string returned from parser result_filespec EQU 5 ;AN000; filespec returned from parser result_drive EQU 6 ;AN000; drive returned from parser result_date EQU 7 ;AN000; date returned from parser result_time EQU 8 ;AN000; time returned from parser result_no_error EQU 0 ;AN000; no error returned from parser no_cont_flag EQU 0 ;AN000; no control flags for message util_msg_class EQU -1 ;AN000; message class for utility ext_msg_class EQU 1 ;AN000; message class for extended error parse_msg_class EQU 2 ;AN000; message class for parse error crit_msg_class EQU 3 ;AN000; message class for critical error ext_crlf_class EQU 081h ;AN054; message class for extended error with no CRLF colon_char EQU ":" ;AN000; colon character crt_ioctl_ln EQU 14 ;AN000; default length of data for display ioctl text_mode EQU 1 ;AN000; text mode return from ioctl get_generic EQU 07Fh ;AN000; generic ioctl - get device info set_crit_dev EQU 0100H ;AN000; device attribute for critical error on I/0 mult_ansi EQU 01Ah ;AC064; multiplex for ansi.sys mult_shell_get EQU 01902h ;AC065; multiplex for Shell - get next command mult_shell_brk EQU 01903h ;AN000; multiplex for Shell - ^C batch check shell_action equ 0ffh ;AN000; SHELL - return for taking SHELL specific action bat_not_open EQU -1 ;AN000; batch handle will be set to this if not open bat_open_handle EQU 19 ;AN000; handle will be in this position in JFN table Ptr_seg_pos equ 7 ;AN000; Offset from start of message block for subst segment Ptr_off_pos equ 5 ;AN000; Offset from start of message block for subst offset Parm_off_pos equ word ptr 2 ;AN000; Offset from start of subst list for subst offset parm_block_size equ 11 ;AN000; size of message subst block blank equ " " ;AN000; blank character no_subst equ 0 ;AN000; no substitutions for messages one_subst equ 1 ;AN000; one substitution for messages no_handle_out equ -1 ;AN000; use function 1 thru 12 for message retriever res_subst equ 2 ;AN000; offset from start of message definition to number of subst read_open_mode equ 0000000000000000b ;AN024; extended open mode for read deny_write equ 0000000000100000b ; deny write sharing mode ;M031 deny_none equ 0000000001000000b ; deny none sharing mode ;Myyy read_open_flag equ 0000000100000001b ;AN000; extended open flags for read write_open_mode equ 0000000000000001b ;AN024; extended open mode for read write_open_flag equ 0000000100000001b ;AN000; extended open flags for read creat_open_flag equ 0000000100010010b ;AN000; extended open flags for read capital_A equ 'A' ;AC000; vbar equ '|' ;AC000; labracket equ '<' ;AC000; rabracket equ '>' ;AC000; dollar equ '$' ;AC000; lparen equ '(' ;AC000; rparen equ ')' ;AC000; nullrparen equ 29h ;AC000; in_word equ 4e49h ;AC000; 'NI' ('IN' backwards) do_word equ 4f44h ;AC000; 'OD' ('DO' backwards) star equ '*' ;AC000; plus_chr equ '+' ;AC000; small_a equ 'a' ;AC000; small_z equ 'z' ;AC000; dot_chr equ '.' ;AC000; tab_chr equ 9 ;AN032; equal_chr equ '=' ;AN032; semicolon equ ';' ;AN049; dot_qmark equ 2e3fh ;AC000; '.?' dot_colon equ 2e3ah ;AC000; '.:' capital_n equ 0 ;AC000; result from Y/N call if N entered capital_y equ 1 ;AC000; result from Y/N call if Y entered AppendInstall equ 0B700H ;AN020; append install check AppendDOS equ 0B702H ;AN020; append DOS version check AppendGetState equ 0B706H ;AN020; append get current state AppendSetState equ 0B707H ;AN020; append set current state AppendTruename equ 0B711H ;AN042; Get file's real location for Batch search_attr equ attr_read_only+attr_hidden+attr_directory ;AC042; ;************************************* ;* PARSE ERROR MESSAGES ;************************************* MoreArgs_Ptr equ 1 ;AN000;"Too many parameters" message number LessArgs_Ptr equ 2 ;AN000;"Required parameter missing" message number BadSwt_Ptr equ 3 ;AN000;"Invalid switch" message number BadParm_Ptr equ 10 ;AN000;"Invalid parameter" message number ;************************************* ;* EQUATES FOR MESSAGE RETRIEVER ;************************************* GET_EXTENDED_MSG EQU 0 ;AN000; get extended message address SET_EXTENDED_MSG EQU 1 ;AN000; set extended message address GET_PARSE_MSG EQU 2 ;AN000; get parse message address SET_PARSE_MSG EQU 3 ;AN000; set parse message address GET_CRITICAL_MSG EQU 4 ;AN000; get critical message address SET_CRITICAL_MSG EQU 5 ;AN000; set critical message address MESSAGE_2F EQU 46 ;AN000; minor code for message retriever ;********************************* ;* EQUATES FOR INT 10H ;********************************* VIDEO_IO_INT EQU 10H ;AN000; equate for int 10h SET_VIDEO_MODE EQU 0 ;AN000; set video mode SET_CURSOR_POSITION EQU 2 ;AN000; set new cursor position SCROLL_VIDEO_PAGE EQU 6 ;AN000; scroll active page up VIDEO_ATTRIBUTE EQU 7 ;AN000; attribute to be used on blank line SET_COLOR_PALETTE EQU 11 ;AN000; set color for video GET_VIDEO_STATE EQU 15 ;AN000; get current video state VIDEO_ALPHA EQU 3 ;AN000; alpha video is 3 or below VIDEO_BW EQU 7 ;AN000; mode for 80X25 black & white AltPipeChr equ "|" ; alternate pipe character FCB EQU 5CH VARSTRUC STRUC ISDIR DB ? SIZ DB ? TTAIL DW ? INFO DB ? BUF DB DIRSTRLEN + 20 DUP (?) VARSTRUC ENDS ; ; Flags for internal command parsing ; fCheckDrive equ 00000001b ; validate drive letter fSwitchAllowed equ 00000010b ; switches allowed fLimitHelp equ 00000100b ; /? must appear alone ; ; Test switches ; fParse EQU 0001h ; display results of parseline ; ; Batch segment structure ; ; BYTE type of segment ; BYTE echo state of parent on entry to batch file ; WORD segment of last batch file ; WORD segment for FOR command ; BYTE FOR flag state on entry to batch file ; DWORD offset for next line ; 10 WORD pointers to parameters. -1 is empty parameter ; ASCIZ file name (with . and ..) ; BYTES CR-terminated parameters ; BYTE 0 flag to indicate end of parameters ; BatchType equ 0 BatchSegment struc BatType DB BatchType ; signature Batechoflag DB 0 ; G state of echo BatchEOF DB 0 ;records if EOF reached on file Batlast DW 0 ; G segment of last batch file Batforptr DW 0 ; G segment for FOR command Batforflag DB 0 ; G state of FOR BatSeek DD ? ; lseek position of next char BatParm DW 10 dup (?) ; pointers to parameters BatFile DB ? ; beginning of batch file name BatchSegment ends ANULL equ 0 ; terminates an argv string ARGMAX equ 64 ; max args on a command line ARGBLEN equ 2*128 ; 1char each plus term NUL tplen equ 64 ; max size of one argument arg_cnt_error equ 1 ; number of args > MAXARG arg_buf_ovflow equ 2 ; overflowed argbuffer argv_ele STRUC ; elements in the argv array argpointer DW (?) ; pointer to the argstring argflags DB (?) ; cparse flags for this argstring argstartel DW (?) ; the result of cparse's [STARTEL] arglen DW (?) ; cparse's char count + one (for null) argsw_word DW (?) ; any switches after this? what kinds? arg_ocomptr DW (?) ; pointer into original command string argv_ele ENDS arg_unit STRUC argv DB (ARGMAX * SIZE argv_ele) DUP (?) argvcnt DW (?) ; number of arguments argswinfo DW (?) ; Switch information for entire line argbuf DW ARGBLEN DUP (?) ; storage for argv strings argforcombuf db COMBUFLEN DUP (?) ; Original for loop command string arg_unit ENDS parseflags RECORD special_delim:1, unused:4, path_sep:1, wildcard:1, sw_flag:1 SwitchQues EQU 20h SwitchV EQU 10h SwitchB EQU 08h SwitchA EQU 04h SwitchP EQU 02h SwitchW EQU 01h fSwitch EQU 8000h fBadSwitch EQU 4000h SwitchDir EQU SwitchP + SwitchW + fSwitch SwitchCopy EQU SwitchV + SwitchA + SwitchB + fSwitch break <Trap: Get the attention of MSDOS> ; TRAP snares the operating system for a service call ; AX, as well as any other registers MS-DOS takes a fancy to, will be crunched. trap MACRO dos_function,dos_info ifnb <dos_info> mov AX, (dos_function SHL 8) + dos_info else mov AX, (dos_function SHL 8) endif int 21h ENDM ; ; Equates for initialization ; initInit equ 01h ; initialization in progress initSpecial equ 02h ; in initialization time/date routine initCtrlC equ 04h ; already in ^C handler ;M052 BETA3WARN equ 1 ; Yank anything related to this EQU ; out before we ship 
39.841699
85
0.689505
576a30bf1397020c47085c616e543a9a2a4b3a13
2,661
asm
Assembly
programs/oeis/188/A188480.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/188/A188480.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/188/A188480.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A188480: a(n) = (n^4 + 16*n^3 + 65*n^2 + 26*n + 12)/12. ; 1,10,39,99,203,366,605,939,1389,1978,2731,3675,4839,6254,7953,9971,12345,15114,18319,22003,26211,30990,36389,42459,49253,56826,65235,74539,84799,96078,108441,121955,136689,152714,170103,188931,209275,231214,254829,280203,307421,336570,367739,401019,436503,474286,514465,557139,602409,650378,701151,754835,811539,871374,934453,1000891,1070805,1144314,1221539,1302603,1387631,1476750,1570089,1667779,1769953,1876746,1988295,2104739,2226219,2352878,2484861,2622315,2765389,2914234,3069003,3229851,3396935,3570414,3750449,3937203,4130841,4331530,4539439,4754739,4977603,5208206,5446725,5693339,5948229,6211578,6483571,6764395,7054239,7353294,7661753,7979811,8307665,8645514,8993559,9352003,9721051,10100910,10491789,10893899,11307453,11732666,12169755,12618939,13080439,13554478,14041281,14541075,15054089,15580554,16120703,16674771,17242995,17825614,18422869,19035003,19662261,20304890,20963139,21637259,22327503,23034126,23757385,24497539,25254849,26029578,26821991,27632355,28460939,29308014,30173853,31058731,31962925,32886714,33830379,34794203,35778471,36783470,37809489,38856819,39925753,41016586,42129615,43265139,44423459,45604878,46809701,48038235,49290789,50567674,51869203,53195691,54547455,55924814,57328089,58757603,60213681,61696650,63206839,64744579,66310203,67904046,69526445,71177739,72858269,74568378,76308411,78078715,79879639,81711534,83574753,85469651,87396585,89355914,91347999,93373203,95431891,97524430,99651189,101812539,104008853,106240506,108507875,110811339,113151279,115528078,117942121,120393795,122883489,125411594,127978503,130584611,133230315,135916014,138642109,141409003,144217101,147066810,149958539,152892699,155869703,158889966,161953905,165061939,168214489,171411978,174654831,177943475,181278339,184659854,188088453,191564571,195088645,198661114,202282419,205953003,209673311,213443790,217264889,221137059,225060753,229036426,233064535,237145539,241279899,245468078,249710541,254007755,258360189,262768314,267232603,271753531,276331575,280967214,285660929,290413203,295224521,300095370,305026239,310017619,315070003,320183886,325359765,330598139,335899509,341264378 mov $10,$0 mov $12,$0 add $12,1 lpb $12,1 clr $0,10 mov $0,$10 sub $12,1 sub $0,$12 mov $7,$0 mov $9,$0 add $9,1 lpb $9,1 mov $0,$7 sub $9,1 sub $0,$9 mov $3,$0 add $3,1 mov $0,$3 mov $2,$3 add $2,4 sub $4,$4 lpb $0,1 mov $0,0 mul $3,$2 add $4,$3 mov $2,$4 add $4,1 trn $4,19 mov $6,3 trn $6,$4 sub $2,$6 lpe sub $2,1 add $0,$2 add $8,$0 lpe add $11,$8 lpe mov $1,$11
61.883721
2,103
0.780909
c665e088f792d5a0a48546c14552f30cc6a3f137
100
asm
Assembly
gfx/pokemon/tyranitar/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/tyranitar/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/tyranitar/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
frame 1, 14 frame 2, 16 frame 3, 16 frame 1, 14 frame 4, 16 frame 0, 16 frame 4, 16 endanim
11.111111
12
0.63
17dca5fed8a5f8154a60558fdae71a34c01844b7
741
asm
Assembly
oeis/222/A222467.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/222/A222467.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/222/A222467.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A222467: Denominator sequence of the n-th convergent of the continued fraction 1/(1 + 2/(2 + 2/(3 + 2/(4 + ... ; Submitted by Jon Maiga ; 1,1,4,14,64,348,2216,16208,134096,1239280,12660992,141749472,1726315648,22725602368,321611064448,4869617171456,78557096872192,1345209881170176,24370892054807552,465737368803683840,9363489160183291904,197564747101456497664,4365151414552409532416,100793612028908332240896,2427776991522904792846336,60896012012130436485640192,1588151866298437158212337664,43001892414082064144704397312,1207229291326894670368147800064,35095653233308109568965694996480,1055284055581897076409707145494528 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 mul $1,2 mul $2,$0 lpe mov $0,$1 div $0,2
43.588235
483
0.811066
466c14afcf6762a978d0b2ca0a82baf476bb35e6
815
asm
Assembly
oeis/207/A207929.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/207/A207929.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/207/A207929.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A207929: Number of 3 X n 0..1 arrays avoiding 0 0 0 and 0 1 0 horizontally and 0 0 0 and 1 1 1 vertically. ; Submitted by Christian Krause ; 6,36,72,144,360,900,2160,5184,12528,30276,73080,176400,425880,1028196,2482272,5992704,14467680,34928100,84323880,203575824,491475528,1186526916,2864529360,6915585600,16695700560,40306986756,97309674072,234926334864,567162343800,1369251022500,3305664388800,7980579800064,19266823988928,46514227777956,112295279544840,271104786867600,654504853280040,1580114493427716,3814733840135472,9209582173698624,22233898187532720,53677378548764100,129588655285060920,312854689118885904,755298033522832728 lpb $0 sub $0,1 add $4,2 add $4,$1 add $1,$3 add $1,$3 add $5,$2 mov $2,$3 add $2,$4 mov $3,$5 add $4,1 add $2,$4 mov $5,1 lpe mov $0,$2 mul $0,6 add $0,6
37.045455
493
0.77546
9cb5730aacb0e306b234f5853e3c1126e6b595a0
1,056
asm
Assembly
programs/oeis/130/A130482.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/130/A130482.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/130/A130482.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A130482: a(n) = Sum_{k=0..n} (k mod 4) (Partial sums of A010873). ; 0,1,3,6,6,7,9,12,12,13,15,18,18,19,21,24,24,25,27,30,30,31,33,36,36,37,39,42,42,43,45,48,48,49,51,54,54,55,57,60,60,61,63,66,66,67,69,72,72,73,75,78,78,79,81,84,84,85,87,90,90,91,93,96,96,97,99,102,102,103,105,108,108,109,111,114,114,115,117,120,120,121,123,126,126,127,129,132,132,133,135,138,138,139,141,144,144,145,147,150,150,151,153,156,156,157,159,162,162,163,165,168,168,169,171,174,174,175,177,180,180,181,183,186,186,187,189,192,192,193,195,198,198,199,201,204,204,205,207,210,210,211,213,216,216,217,219,222,222,223,225,228,228,229,231,234,234,235,237,240,240,241,243,246,246,247,249,252,252,253,255,258,258,259,261,264,264,265,267,270,270,271,273,276,276,277,279,282,282,283,285,288,288,289,291,294,294,295,297,300,300,301,303,306,306,307,309,312,312,313,315,318,318,319,321,324,324,325,327,330,330,331,333,336,336,337,339,342,342,343,345,348,348,349,351,354,354,355,357,360,360,361,363,366,366,367,369,372,372,373 lpb $0,1 mov $2,$0 sub $0,1 mod $2,4 add $1,$2 lpe
105.6
927
0.705492
6fdc1d471970fda25cd4ed6c05a53cf33710e16b
2,722
asm
Assembly
libtool/src/gmp-6.1.2/mpn/powerpc64/mode32/sub_n.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
1,602
2015-01-06T11:26:31.000Z
2022-03-30T06:17:21.000Z
libtool/src/gmp-6.1.2/mpn/powerpc64/mode32/sub_n.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
libtool/src/gmp-6.1.2/mpn/powerpc64/mode32/sub_n.asm
kroggen/aergo
05af317eaa1b62b21dc0144ef74a9e7acb14fb87
[ "MIT" ]
498
2015-01-08T18:58:18.000Z
2022-03-20T15:37:45.000Z
dnl PowerPC-64/mode32 mpn_sub_n -- Subtract two limb vectors of the same dnl length and store difference in a third limb vector. dnl Copyright 1999-2001, 2003, 2005 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C POWER3/PPC630: ? C POWER4/PPC970: 4.25 C INPUT PARAMETERS C rp r3 C up r4 C vp r5 C n r6 ASM_START() PROLOGUE(mpn_sub_n) mtctr r6 C copy size into CTR addic r0, r6, -1 C set cy ld r8, 0(r4) C load least significant s1 limb ld r0, 0(r5) C load least significant s2 limb addi r3, r3, -8 C offset res_ptr, it's updated before it's used bdz L(end) C If done, skip loop L(oop): ld r9, 8(r4) C load s1 limb ld r10, 8(r5) C load s2 limb subfe r7, r0, r8 C subtract limbs with cy, set cy srdi r6, r0, 32 srdi r11, r8, 32 subfe r6, r6, r11 std r7, 8(r3) C store result limb bdz L(exit) C decrement CTR and exit if done ldu r8, 16(r4) C load s1 limb and update s1_ptr ldu r0, 16(r5) C load s2 limb and update s2_ptr subfe r7, r10, r9 C subtract limbs with cy, set cy srdi r6, r10, 32 srdi r11, r9, 32 subfe r6, r6, r11 stdu r7, 16(r3) C store result limb and update res_ptr bdnz L(oop) C decrement CTR and loop back L(end): subfe r7, r0, r8 srdi r6, r0, 32 srdi r11, r8, 32 subfe r6, r6, r11 std r7, 8(r3) C store ultimate result limb subfe r3, r0, r0 C load !cy into ... subfic r4, r3, 0 C ... return value register li r3, 0 C zero extend return value blr L(exit): subfe r7, r10, r9 srdi r6, r10, 32 srdi r11, r9, 32 subfe r6, r6, r11 std r7, 16(r3) subfe r3, r0, r0 C load !cy into ... subfic r4, r3, 0 C ... return value register li r3, 0 C zero extend return value blr EPILOGUE()
30.58427
79
0.712711
01e03b1173be10806c3c84c55611e3580812446e
644
asm
Assembly
libsrc/oz/ozserial/ozsetrxhandshaking.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/oz/ozserial/ozsetrxhandshaking.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/oz/ozserial/ozsetrxhandshaking.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; Serial libraries ; buffered serial input ; ; ------ ; $Id: ozsetrxhandshaking.asm,v 1.2 2015/01/19 01:33:04 pauloscustodio Exp $ ; PUBLIC ozsetrxhandshaking EXTERN serial_int EXTERN SerialBuffer EXTERN ozrxhandshaking EXTERN ozrxxoff ozsetrxhandshaking: pop hl pop de push de ld a,e or a jr z,load_it ld a,0 load_it: ld (ozrxhandshaking),a xor a ld (ozrxxoff),a jp (hl)
16.512821
76
0.571429
d0ff1fb35dd32021d48e674c5142346a6a1768e6
469
asm
Assembly
programs/oeis/226/A226088.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/226/A226088.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/226/A226088.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A226088: a(n) is the number of the distinct quadrilaterals in a regular n-gon, which Q3 type are excluded. ; 0,1,1,3,4,8,10,15,19,26,31,39,46,56,64,75,85,98,109,123,136,152,166,183,199,218 mov $4,$0 mov $6,$0 lpb $4,1 mov $0,$6 sub $4,1 sub $0,$4 mul $0,3 lpb $0,1 mul $0,5 mov $2,$0 div $0,10 mod $2,10 mov $3,1 add $3,$0 mov $0,2 add $3,$2 sub $3,5 div $3,2 lpe mul $3,2 mov $5,$3 div $5,2 add $1,$5 lpe
16.75
108
0.54371
0970fc805c2bde9aa3b89f7f78a41d6fa0ac06cc
272
asm
Assembly
programs/oeis/144/A144596.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/144/A144596.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/144/A144596.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A144596: Christoffel word of slope 2/7. ; 0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,0 mul $0,2 mod $0,9 div $0,7
38.857143
201
0.536765
3eefbae89a10c6c37c3caa95351943921ac159b1
706
asm
Assembly
oeis/053/A053818.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/053/A053818.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/053/A053818.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A053818: a(n) = Sum_{k=1..n, gcd(n,k) = 1} k^2. ; Submitted by Jamie Morken(m3a) ; 1,1,5,10,30,26,91,84,159,140,385,196,650,406,620,680,1496,654,2109,1080,1806,1650,3795,1544,4150,2756,4365,3164,7714,2360,9455,5456,7370,6256,9940,5196,16206,8778,12324,8560,22140,6972,25585,12980,16260,15686,33511,12304,33565,16700,28016,21736,48230,17514,40700,25144,39330,31668,66729,19120,73810,38750,47754,43680,68120,28820,98021,49504,70334,38920,116795,41496,127020,66156,75100,69540,119350,48360,161239,68320,118071,90200,187165,56280,155040,104146,142100,103400,231044,64680,199836,124476 add $0,1 mov $2,$0 lpb $2 mov $3,$2 gcd $3,$0 cmp $3,1 mul $3,$2 add $1,$3 sub $2,1 add $4,$1 lpe mov $0,$4
41.529412
499
0.725212
f97999a699f2221440db8ab76cf3ad372406b47e
244
asm
Assembly
libsrc/compress/zx7/dzx7_agile_rcs_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/compress/zx7/dzx7_agile_rcs_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/compress/zx7/dzx7_agile_rcs_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
; void dzx7_agile_rcs_callee(void *src, void *dst) SECTION code_clib SECTION code_compress_zx7 PUBLIC _dzx7_agile_rcs_callee EXTERN asm_dzx7_agile_rcs _dzx7_agile_rcs_callee: pop hl pop de ex (sp),hl jp asm_dzx7_agile_rcs
13.555556
50
0.77459
3b1283cc1e65227cbbe88372108961f319b4d67f
592
asm
Assembly
oeis/072/A072869.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/072/A072869.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/072/A072869.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A072869: a(n) = sigma(sigma(n)-n), where sigma = A000203, sum of the divisors of n. ; Submitted by Christian Krause ; 1,1,4,1,12,1,8,7,15,1,31,1,18,13,24,1,32,1,36,12,24,1,91,12,31,14,56,1,96,1,32,24,42,14,72,1,36,18,93,1,120,1,90,48,42,1,140,15,44,32,72,1,144,18,127,24,63,1,280,1,54,42,104,20,168,1,90,40,114,1,168,1,90,57,127,20,234,1,162,90,84,1,336,24,72,48,168,1,403,32,140,48,93,31,392,1,74,80,182,1 add $0,2 mov $2,2 lpb $2 trn $0,1 seq $0,294015 ; Sum of the even divisors of 2n, minus the (n-1)st odd number. add $1,$0 div $0,2 sub $2,1 lpe mov $0,$1 div $0,2 sub $0,1
34.823529
290
0.640203
4ac2852a951643d0bd1f71f4c34aa069e8b98778
305
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_derror_erange_longc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_derror_erange_longc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/z80/am48_derror_erange_longc.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_clib SECTION code_fp_math48 PUBLIC am48_derror_erange_longc EXTERN error_erange_zc am48_derror_erange_longc: ; return LONG_MIN or LONG_MAX call error_erange_zc ld e,l ld d,$80 bit 7,b ret nz ; if negative dec de dec hl ret
12.708333
44
0.645902
145de96b6bba46722d5e9a379eea550312b1be87
375
asm
Assembly
oeis/280/A280710.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/280/A280710.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/280/A280710.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A280710: Characteristic function of squarefree semiprimes. ; Submitted by Jon Maiga ; 0,0,0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,1,1,1,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,1,1,0,0,0,1,0,1,1,1,0,0,0,0,0 seq $0,329484 ; Dirichlet convolution of the Louiville function with itself. cmp $0,4
53.571429
201
0.632
9d83427aa0937f5b25d8016876a13e89f21130ce
46,335
asm
Assembly
wc.asm
gangwareGremlins/PA3
2d9b6103a93a2633e0328f9ba30347b01a37cde3
[ "MIT-0" ]
null
null
null
wc.asm
gangwareGremlins/PA3
2d9b6103a93a2633e0328f9ba30347b01a37cde3
[ "MIT-0" ]
null
null
null
wc.asm
gangwareGremlins/PA3
2d9b6103a93a2633e0328f9ba30347b01a37cde3
[ "MIT-0" ]
null
null
null
_wc: file format elf32-i386 Disassembly of section .text: 00000000 <wc>: char buf[512]; void wc(int fd, char *name) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 28 sub $0x28,%esp int i, n; int l, w, c, inword; l = w = c = 0; 6: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp) d: 8b 45 e8 mov -0x18(%ebp),%eax 10: 89 45 ec mov %eax,-0x14(%ebp) 13: 8b 45 ec mov -0x14(%ebp),%eax 16: 89 45 f0 mov %eax,-0x10(%ebp) inword = 0; 19: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) while((n = read(fd, buf, sizeof(buf))) > 0){ 20: eb 63 jmp 85 <wc+0x85> for(i=0; i<n; i++){ 22: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 29: eb 52 jmp 7d <wc+0x7d> c++; 2b: ff 45 e8 incl -0x18(%ebp) if(buf[i] == '\n') 2e: 8b 45 f4 mov -0xc(%ebp),%eax 31: 05 00 0c 00 00 add $0xc00,%eax 36: 8a 00 mov (%eax),%al 38: 3c 0a cmp $0xa,%al 3a: 75 03 jne 3f <wc+0x3f> l++; 3c: ff 45 f0 incl -0x10(%ebp) if(strchr(" \r\t\n\v", buf[i])) 3f: 8b 45 f4 mov -0xc(%ebp),%eax 42: 05 00 0c 00 00 add $0xc00,%eax 47: 8a 00 mov (%eax),%al 49: 0f be c0 movsbl %al,%eax 4c: 83 ec 08 sub $0x8,%esp 4f: 50 push %eax 50: 68 21 09 00 00 push $0x921 55: e8 25 02 00 00 call 27f <strchr> 5a: 83 c4 10 add $0x10,%esp 5d: 85 c0 test %eax,%eax 5f: 74 09 je 6a <wc+0x6a> inword = 0; 61: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 68: eb 10 jmp 7a <wc+0x7a> else if(!inword){ 6a: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 6e: 75 0a jne 7a <wc+0x7a> w++; 70: ff 45 ec incl -0x14(%ebp) inword = 1; 73: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ for(i=0; i<n; i++){ 7a: ff 45 f4 incl -0xc(%ebp) 7d: 8b 45 f4 mov -0xc(%ebp),%eax 80: 3b 45 e0 cmp -0x20(%ebp),%eax 83: 7c a6 jl 2b <wc+0x2b> int i, n; int l, w, c, inword; l = w = c = 0; inword = 0; while((n = read(fd, buf, sizeof(buf))) > 0){ 85: 83 ec 04 sub $0x4,%esp 88: 68 00 02 00 00 push $0x200 8d: 68 00 0c 00 00 push $0xc00 92: ff 75 08 pushl 0x8(%ebp) 95: e8 71 03 00 00 call 40b <read> 9a: 83 c4 10 add $0x10,%esp 9d: 89 45 e0 mov %eax,-0x20(%ebp) a0: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) a4: 0f 8f 78 ff ff ff jg 22 <wc+0x22> w++; inword = 1; } } } if(n < 0){ aa: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) ae: 79 17 jns c7 <wc+0xc7> printf(1, "wc: read error\n"); b0: 83 ec 08 sub $0x8,%esp b3: 68 27 09 00 00 push $0x927 b8: 6a 01 push $0x1 ba: e8 b6 04 00 00 call 575 <printf> bf: 83 c4 10 add $0x10,%esp exit(); c2: e8 2c 03 00 00 call 3f3 <exit> } printf(1, "%d %d %d %s\n", l, w, c, name); c7: 83 ec 08 sub $0x8,%esp ca: ff 75 0c pushl 0xc(%ebp) cd: ff 75 e8 pushl -0x18(%ebp) d0: ff 75 ec pushl -0x14(%ebp) d3: ff 75 f0 pushl -0x10(%ebp) d6: 68 37 09 00 00 push $0x937 db: 6a 01 push $0x1 dd: e8 93 04 00 00 call 575 <printf> e2: 83 c4 20 add $0x20,%esp } e5: c9 leave e6: c3 ret 000000e7 <main>: int main(int argc, char *argv[]) { e7: 8d 4c 24 04 lea 0x4(%esp),%ecx eb: 83 e4 f0 and $0xfffffff0,%esp ee: ff 71 fc pushl -0x4(%ecx) f1: 55 push %ebp f2: 89 e5 mov %esp,%ebp f4: 53 push %ebx f5: 51 push %ecx f6: 83 ec 10 sub $0x10,%esp f9: 89 cb mov %ecx,%ebx int fd, i; if(argc <= 1){ fb: 83 3b 01 cmpl $0x1,(%ebx) fe: 7f 17 jg 117 <main+0x30> wc(0, ""); 100: 83 ec 08 sub $0x8,%esp 103: 68 44 09 00 00 push $0x944 108: 6a 00 push $0x0 10a: e8 f1 fe ff ff call 0 <wc> 10f: 83 c4 10 add $0x10,%esp exit(); 112: e8 dc 02 00 00 call 3f3 <exit> } for(i = 1; i < argc; i++){ 117: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 11e: e9 82 00 00 00 jmp 1a5 <main+0xbe> if((fd = open(argv[i], 0)) < 0){ 123: 8b 45 f4 mov -0xc(%ebp),%eax 126: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 12d: 8b 43 04 mov 0x4(%ebx),%eax 130: 01 d0 add %edx,%eax 132: 8b 00 mov (%eax),%eax 134: 83 ec 08 sub $0x8,%esp 137: 6a 00 push $0x0 139: 50 push %eax 13a: e8 f4 02 00 00 call 433 <open> 13f: 83 c4 10 add $0x10,%esp 142: 89 45 f0 mov %eax,-0x10(%ebp) 145: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 149: 79 29 jns 174 <main+0x8d> printf(1, "wc: cannot open %s\n", argv[i]); 14b: 8b 45 f4 mov -0xc(%ebp),%eax 14e: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 155: 8b 43 04 mov 0x4(%ebx),%eax 158: 01 d0 add %edx,%eax 15a: 8b 00 mov (%eax),%eax 15c: 83 ec 04 sub $0x4,%esp 15f: 50 push %eax 160: 68 45 09 00 00 push $0x945 165: 6a 01 push $0x1 167: e8 09 04 00 00 call 575 <printf> 16c: 83 c4 10 add $0x10,%esp exit(); 16f: e8 7f 02 00 00 call 3f3 <exit> } wc(fd, argv[i]); 174: 8b 45 f4 mov -0xc(%ebp),%eax 177: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 17e: 8b 43 04 mov 0x4(%ebx),%eax 181: 01 d0 add %edx,%eax 183: 8b 00 mov (%eax),%eax 185: 83 ec 08 sub $0x8,%esp 188: 50 push %eax 189: ff 75 f0 pushl -0x10(%ebp) 18c: e8 6f fe ff ff call 0 <wc> 191: 83 c4 10 add $0x10,%esp close(fd); 194: 83 ec 0c sub $0xc,%esp 197: ff 75 f0 pushl -0x10(%ebp) 19a: e8 7c 02 00 00 call 41b <close> 19f: 83 c4 10 add $0x10,%esp if(argc <= 1){ wc(0, ""); exit(); } for(i = 1; i < argc; i++){ 1a2: ff 45 f4 incl -0xc(%ebp) 1a5: 8b 45 f4 mov -0xc(%ebp),%eax 1a8: 3b 03 cmp (%ebx),%eax 1aa: 0f 8c 73 ff ff ff jl 123 <main+0x3c> exit(); } wc(fd, argv[i]); close(fd); } exit(); 1b0: e8 3e 02 00 00 call 3f3 <exit> 000001b5 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 1b5: 55 push %ebp 1b6: 89 e5 mov %esp,%ebp 1b8: 57 push %edi 1b9: 53 push %ebx asm volatile("cld; rep stosb" : 1ba: 8b 4d 08 mov 0x8(%ebp),%ecx 1bd: 8b 55 10 mov 0x10(%ebp),%edx 1c0: 8b 45 0c mov 0xc(%ebp),%eax 1c3: 89 cb mov %ecx,%ebx 1c5: 89 df mov %ebx,%edi 1c7: 89 d1 mov %edx,%ecx 1c9: fc cld 1ca: f3 aa rep stos %al,%es:(%edi) 1cc: 89 ca mov %ecx,%edx 1ce: 89 fb mov %edi,%ebx 1d0: 89 5d 08 mov %ebx,0x8(%ebp) 1d3: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 1d6: 5b pop %ebx 1d7: 5f pop %edi 1d8: 5d pop %ebp 1d9: c3 ret 000001da <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 1da: 55 push %ebp 1db: 89 e5 mov %esp,%ebp 1dd: 83 ec 10 sub $0x10,%esp char *os; os = s; 1e0: 8b 45 08 mov 0x8(%ebp),%eax 1e3: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 1e6: 90 nop 1e7: 8b 45 08 mov 0x8(%ebp),%eax 1ea: 8d 50 01 lea 0x1(%eax),%edx 1ed: 89 55 08 mov %edx,0x8(%ebp) 1f0: 8b 55 0c mov 0xc(%ebp),%edx 1f3: 8d 4a 01 lea 0x1(%edx),%ecx 1f6: 89 4d 0c mov %ecx,0xc(%ebp) 1f9: 8a 12 mov (%edx),%dl 1fb: 88 10 mov %dl,(%eax) 1fd: 8a 00 mov (%eax),%al 1ff: 84 c0 test %al,%al 201: 75 e4 jne 1e7 <strcpy+0xd> ; return os; 203: 8b 45 fc mov -0x4(%ebp),%eax } 206: c9 leave 207: c3 ret 00000208 <strcmp>: int strcmp(const char *p, const char *q) { 208: 55 push %ebp 209: 89 e5 mov %esp,%ebp while(*p && *p == *q) 20b: eb 06 jmp 213 <strcmp+0xb> p++, q++; 20d: ff 45 08 incl 0x8(%ebp) 210: ff 45 0c incl 0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 213: 8b 45 08 mov 0x8(%ebp),%eax 216: 8a 00 mov (%eax),%al 218: 84 c0 test %al,%al 21a: 74 0e je 22a <strcmp+0x22> 21c: 8b 45 08 mov 0x8(%ebp),%eax 21f: 8a 10 mov (%eax),%dl 221: 8b 45 0c mov 0xc(%ebp),%eax 224: 8a 00 mov (%eax),%al 226: 38 c2 cmp %al,%dl 228: 74 e3 je 20d <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 22a: 8b 45 08 mov 0x8(%ebp),%eax 22d: 8a 00 mov (%eax),%al 22f: 0f b6 d0 movzbl %al,%edx 232: 8b 45 0c mov 0xc(%ebp),%eax 235: 8a 00 mov (%eax),%al 237: 0f b6 c0 movzbl %al,%eax 23a: 29 c2 sub %eax,%edx 23c: 89 d0 mov %edx,%eax } 23e: 5d pop %ebp 23f: c3 ret 00000240 <strlen>: uint strlen(char *s) { 240: 55 push %ebp 241: 89 e5 mov %esp,%ebp 243: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 246: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 24d: eb 03 jmp 252 <strlen+0x12> 24f: ff 45 fc incl -0x4(%ebp) 252: 8b 55 fc mov -0x4(%ebp),%edx 255: 8b 45 08 mov 0x8(%ebp),%eax 258: 01 d0 add %edx,%eax 25a: 8a 00 mov (%eax),%al 25c: 84 c0 test %al,%al 25e: 75 ef jne 24f <strlen+0xf> ; return n; 260: 8b 45 fc mov -0x4(%ebp),%eax } 263: c9 leave 264: c3 ret 00000265 <memset>: void* memset(void *dst, int c, uint n) { 265: 55 push %ebp 266: 89 e5 mov %esp,%ebp stosb(dst, c, n); 268: 8b 45 10 mov 0x10(%ebp),%eax 26b: 50 push %eax 26c: ff 75 0c pushl 0xc(%ebp) 26f: ff 75 08 pushl 0x8(%ebp) 272: e8 3e ff ff ff call 1b5 <stosb> 277: 83 c4 0c add $0xc,%esp return dst; 27a: 8b 45 08 mov 0x8(%ebp),%eax } 27d: c9 leave 27e: c3 ret 0000027f <strchr>: char* strchr(const char *s, char c) { 27f: 55 push %ebp 280: 89 e5 mov %esp,%ebp 282: 83 ec 04 sub $0x4,%esp 285: 8b 45 0c mov 0xc(%ebp),%eax 288: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 28b: eb 12 jmp 29f <strchr+0x20> if(*s == c) 28d: 8b 45 08 mov 0x8(%ebp),%eax 290: 8a 00 mov (%eax),%al 292: 3a 45 fc cmp -0x4(%ebp),%al 295: 75 05 jne 29c <strchr+0x1d> return (char*)s; 297: 8b 45 08 mov 0x8(%ebp),%eax 29a: eb 11 jmp 2ad <strchr+0x2e> } char* strchr(const char *s, char c) { for(; *s; s++) 29c: ff 45 08 incl 0x8(%ebp) 29f: 8b 45 08 mov 0x8(%ebp),%eax 2a2: 8a 00 mov (%eax),%al 2a4: 84 c0 test %al,%al 2a6: 75 e5 jne 28d <strchr+0xe> if(*s == c) return (char*)s; return 0; 2a8: b8 00 00 00 00 mov $0x0,%eax } 2ad: c9 leave 2ae: c3 ret 000002af <gets>: char* gets(char *buf, int max) { 2af: 55 push %ebp 2b0: 89 e5 mov %esp,%ebp 2b2: 83 ec 18 sub $0x18,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 2b5: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 2bc: eb 41 jmp 2ff <gets+0x50> cc = read(0, &c, 1); 2be: 83 ec 04 sub $0x4,%esp 2c1: 6a 01 push $0x1 2c3: 8d 45 ef lea -0x11(%ebp),%eax 2c6: 50 push %eax 2c7: 6a 00 push $0x0 2c9: e8 3d 01 00 00 call 40b <read> 2ce: 83 c4 10 add $0x10,%esp 2d1: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 2d4: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 2d8: 7f 02 jg 2dc <gets+0x2d> break; 2da: eb 2c jmp 308 <gets+0x59> buf[i++] = c; 2dc: 8b 45 f4 mov -0xc(%ebp),%eax 2df: 8d 50 01 lea 0x1(%eax),%edx 2e2: 89 55 f4 mov %edx,-0xc(%ebp) 2e5: 89 c2 mov %eax,%edx 2e7: 8b 45 08 mov 0x8(%ebp),%eax 2ea: 01 c2 add %eax,%edx 2ec: 8a 45 ef mov -0x11(%ebp),%al 2ef: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 2f1: 8a 45 ef mov -0x11(%ebp),%al 2f4: 3c 0a cmp $0xa,%al 2f6: 74 10 je 308 <gets+0x59> 2f8: 8a 45 ef mov -0x11(%ebp),%al 2fb: 3c 0d cmp $0xd,%al 2fd: 74 09 je 308 <gets+0x59> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 2ff: 8b 45 f4 mov -0xc(%ebp),%eax 302: 40 inc %eax 303: 3b 45 0c cmp 0xc(%ebp),%eax 306: 7c b6 jl 2be <gets+0xf> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 308: 8b 55 f4 mov -0xc(%ebp),%edx 30b: 8b 45 08 mov 0x8(%ebp),%eax 30e: 01 d0 add %edx,%eax 310: c6 00 00 movb $0x0,(%eax) return buf; 313: 8b 45 08 mov 0x8(%ebp),%eax } 316: c9 leave 317: c3 ret 00000318 <stat>: int stat(char *n, struct stat *st) { 318: 55 push %ebp 319: 89 e5 mov %esp,%ebp 31b: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 31e: 83 ec 08 sub $0x8,%esp 321: 6a 00 push $0x0 323: ff 75 08 pushl 0x8(%ebp) 326: e8 08 01 00 00 call 433 <open> 32b: 83 c4 10 add $0x10,%esp 32e: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 331: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 335: 79 07 jns 33e <stat+0x26> return -1; 337: b8 ff ff ff ff mov $0xffffffff,%eax 33c: eb 25 jmp 363 <stat+0x4b> r = fstat(fd, st); 33e: 83 ec 08 sub $0x8,%esp 341: ff 75 0c pushl 0xc(%ebp) 344: ff 75 f4 pushl -0xc(%ebp) 347: e8 ff 00 00 00 call 44b <fstat> 34c: 83 c4 10 add $0x10,%esp 34f: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 352: 83 ec 0c sub $0xc,%esp 355: ff 75 f4 pushl -0xc(%ebp) 358: e8 be 00 00 00 call 41b <close> 35d: 83 c4 10 add $0x10,%esp return r; 360: 8b 45 f0 mov -0x10(%ebp),%eax } 363: c9 leave 364: c3 ret 00000365 <atoi>: int atoi(const char *s) { 365: 55 push %ebp 366: 89 e5 mov %esp,%ebp 368: 83 ec 10 sub $0x10,%esp int n; n = 0; 36b: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while('0' <= *s && *s <= '9') 372: eb 24 jmp 398 <atoi+0x33> n = n*10 + *s++ - '0'; 374: 8b 55 fc mov -0x4(%ebp),%edx 377: 89 d0 mov %edx,%eax 379: c1 e0 02 shl $0x2,%eax 37c: 01 d0 add %edx,%eax 37e: 01 c0 add %eax,%eax 380: 89 c1 mov %eax,%ecx 382: 8b 45 08 mov 0x8(%ebp),%eax 385: 8d 50 01 lea 0x1(%eax),%edx 388: 89 55 08 mov %edx,0x8(%ebp) 38b: 8a 00 mov (%eax),%al 38d: 0f be c0 movsbl %al,%eax 390: 01 c8 add %ecx,%eax 392: 83 e8 30 sub $0x30,%eax 395: 89 45 fc mov %eax,-0x4(%ebp) atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 398: 8b 45 08 mov 0x8(%ebp),%eax 39b: 8a 00 mov (%eax),%al 39d: 3c 2f cmp $0x2f,%al 39f: 7e 09 jle 3aa <atoi+0x45> 3a1: 8b 45 08 mov 0x8(%ebp),%eax 3a4: 8a 00 mov (%eax),%al 3a6: 3c 39 cmp $0x39,%al 3a8: 7e ca jle 374 <atoi+0xf> n = n*10 + *s++ - '0'; return n; 3aa: 8b 45 fc mov -0x4(%ebp),%eax } 3ad: c9 leave 3ae: c3 ret 000003af <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 3af: 55 push %ebp 3b0: 89 e5 mov %esp,%ebp 3b2: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 3b5: 8b 45 08 mov 0x8(%ebp),%eax 3b8: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 3bb: 8b 45 0c mov 0xc(%ebp),%eax 3be: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 3c1: eb 16 jmp 3d9 <memmove+0x2a> *dst++ = *src++; 3c3: 8b 45 fc mov -0x4(%ebp),%eax 3c6: 8d 50 01 lea 0x1(%eax),%edx 3c9: 89 55 fc mov %edx,-0x4(%ebp) 3cc: 8b 55 f8 mov -0x8(%ebp),%edx 3cf: 8d 4a 01 lea 0x1(%edx),%ecx 3d2: 89 4d f8 mov %ecx,-0x8(%ebp) 3d5: 8a 12 mov (%edx),%dl 3d7: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 3d9: 8b 45 10 mov 0x10(%ebp),%eax 3dc: 8d 50 ff lea -0x1(%eax),%edx 3df: 89 55 10 mov %edx,0x10(%ebp) 3e2: 85 c0 test %eax,%eax 3e4: 7f dd jg 3c3 <memmove+0x14> *dst++ = *src++; return vdst; 3e6: 8b 45 08 mov 0x8(%ebp),%eax } 3e9: c9 leave 3ea: c3 ret 000003eb <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 3eb: b8 01 00 00 00 mov $0x1,%eax 3f0: cd 40 int $0x40 3f2: c3 ret 000003f3 <exit>: SYSCALL(exit) 3f3: b8 02 00 00 00 mov $0x2,%eax 3f8: cd 40 int $0x40 3fa: c3 ret 000003fb <wait>: SYSCALL(wait) 3fb: b8 03 00 00 00 mov $0x3,%eax 400: cd 40 int $0x40 402: c3 ret 00000403 <pipe>: SYSCALL(pipe) 403: b8 04 00 00 00 mov $0x4,%eax 408: cd 40 int $0x40 40a: c3 ret 0000040b <read>: SYSCALL(read) 40b: b8 05 00 00 00 mov $0x5,%eax 410: cd 40 int $0x40 412: c3 ret 00000413 <write>: SYSCALL(write) 413: b8 10 00 00 00 mov $0x10,%eax 418: cd 40 int $0x40 41a: c3 ret 0000041b <close>: SYSCALL(close) 41b: b8 15 00 00 00 mov $0x15,%eax 420: cd 40 int $0x40 422: c3 ret 00000423 <kill>: SYSCALL(kill) 423: b8 06 00 00 00 mov $0x6,%eax 428: cd 40 int $0x40 42a: c3 ret 0000042b <exec>: SYSCALL(exec) 42b: b8 07 00 00 00 mov $0x7,%eax 430: cd 40 int $0x40 432: c3 ret 00000433 <open>: SYSCALL(open) 433: b8 0f 00 00 00 mov $0xf,%eax 438: cd 40 int $0x40 43a: c3 ret 0000043b <mknod>: SYSCALL(mknod) 43b: b8 11 00 00 00 mov $0x11,%eax 440: cd 40 int $0x40 442: c3 ret 00000443 <unlink>: SYSCALL(unlink) 443: b8 12 00 00 00 mov $0x12,%eax 448: cd 40 int $0x40 44a: c3 ret 0000044b <fstat>: SYSCALL(fstat) 44b: b8 08 00 00 00 mov $0x8,%eax 450: cd 40 int $0x40 452: c3 ret 00000453 <link>: SYSCALL(link) 453: b8 13 00 00 00 mov $0x13,%eax 458: cd 40 int $0x40 45a: c3 ret 0000045b <mkdir>: SYSCALL(mkdir) 45b: b8 14 00 00 00 mov $0x14,%eax 460: cd 40 int $0x40 462: c3 ret 00000463 <chdir>: SYSCALL(chdir) 463: b8 09 00 00 00 mov $0x9,%eax 468: cd 40 int $0x40 46a: c3 ret 0000046b <dup>: SYSCALL(dup) 46b: b8 0a 00 00 00 mov $0xa,%eax 470: cd 40 int $0x40 472: c3 ret 00000473 <getpid>: SYSCALL(getpid) 473: b8 0b 00 00 00 mov $0xb,%eax 478: cd 40 int $0x40 47a: c3 ret 0000047b <sbrk>: SYSCALL(sbrk) 47b: b8 0c 00 00 00 mov $0xc,%eax 480: cd 40 int $0x40 482: c3 ret 00000483 <sleep>: SYSCALL(sleep) 483: b8 0d 00 00 00 mov $0xd,%eax 488: cd 40 int $0x40 48a: c3 ret 0000048b <uptime>: SYSCALL(uptime) 48b: b8 0e 00 00 00 mov $0xe,%eax 490: cd 40 int $0x40 492: c3 ret 00000493 <getCallCount>: SYSCALL(getCallCount) 493: b8 16 00 00 00 mov $0x16,%eax 498: cd 40 int $0x40 49a: c3 ret 0000049b <myMemory>: SYSCALL(myMemory) 49b: b8 17 00 00 00 mov $0x17,%eax 4a0: cd 40 int $0x40 4a2: c3 ret 000004a3 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 4a3: 55 push %ebp 4a4: 89 e5 mov %esp,%ebp 4a6: 83 ec 18 sub $0x18,%esp 4a9: 8b 45 0c mov 0xc(%ebp),%eax 4ac: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 4af: 83 ec 04 sub $0x4,%esp 4b2: 6a 01 push $0x1 4b4: 8d 45 f4 lea -0xc(%ebp),%eax 4b7: 50 push %eax 4b8: ff 75 08 pushl 0x8(%ebp) 4bb: e8 53 ff ff ff call 413 <write> 4c0: 83 c4 10 add $0x10,%esp } 4c3: c9 leave 4c4: c3 ret 000004c5 <printint>: static void printint(int fd, int xx, int base, int sgn) { 4c5: 55 push %ebp 4c6: 89 e5 mov %esp,%ebp 4c8: 53 push %ebx 4c9: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 4cc: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 4d3: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 4d7: 74 17 je 4f0 <printint+0x2b> 4d9: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 4dd: 79 11 jns 4f0 <printint+0x2b> neg = 1; 4df: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 4e6: 8b 45 0c mov 0xc(%ebp),%eax 4e9: f7 d8 neg %eax 4eb: 89 45 ec mov %eax,-0x14(%ebp) 4ee: eb 06 jmp 4f6 <printint+0x31> } else { x = xx; 4f0: 8b 45 0c mov 0xc(%ebp),%eax 4f3: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 4f6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 4fd: 8b 4d f4 mov -0xc(%ebp),%ecx 500: 8d 41 01 lea 0x1(%ecx),%eax 503: 89 45 f4 mov %eax,-0xc(%ebp) 506: 8b 5d 10 mov 0x10(%ebp),%ebx 509: 8b 45 ec mov -0x14(%ebp),%eax 50c: ba 00 00 00 00 mov $0x0,%edx 511: f7 f3 div %ebx 513: 89 d0 mov %edx,%eax 515: 8a 80 cc 0b 00 00 mov 0xbcc(%eax),%al 51b: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 51f: 8b 5d 10 mov 0x10(%ebp),%ebx 522: 8b 45 ec mov -0x14(%ebp),%eax 525: ba 00 00 00 00 mov $0x0,%edx 52a: f7 f3 div %ebx 52c: 89 45 ec mov %eax,-0x14(%ebp) 52f: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 533: 75 c8 jne 4fd <printint+0x38> if(neg) 535: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 539: 74 0e je 549 <printint+0x84> buf[i++] = '-'; 53b: 8b 45 f4 mov -0xc(%ebp),%eax 53e: 8d 50 01 lea 0x1(%eax),%edx 541: 89 55 f4 mov %edx,-0xc(%ebp) 544: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 549: eb 1c jmp 567 <printint+0xa2> putc(fd, buf[i]); 54b: 8d 55 dc lea -0x24(%ebp),%edx 54e: 8b 45 f4 mov -0xc(%ebp),%eax 551: 01 d0 add %edx,%eax 553: 8a 00 mov (%eax),%al 555: 0f be c0 movsbl %al,%eax 558: 83 ec 08 sub $0x8,%esp 55b: 50 push %eax 55c: ff 75 08 pushl 0x8(%ebp) 55f: e8 3f ff ff ff call 4a3 <putc> 564: 83 c4 10 add $0x10,%esp buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 567: ff 4d f4 decl -0xc(%ebp) 56a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 56e: 79 db jns 54b <printint+0x86> putc(fd, buf[i]); } 570: 8b 5d fc mov -0x4(%ebp),%ebx 573: c9 leave 574: c3 ret 00000575 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 575: 55 push %ebp 576: 89 e5 mov %esp,%ebp 578: 83 ec 28 sub $0x28,%esp char *s; int c, i, state; uint *ap; state = 0; 57b: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 582: 8d 45 0c lea 0xc(%ebp),%eax 585: 83 c0 04 add $0x4,%eax 588: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 58b: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 592: e9 54 01 00 00 jmp 6eb <printf+0x176> c = fmt[i] & 0xff; 597: 8b 55 0c mov 0xc(%ebp),%edx 59a: 8b 45 f0 mov -0x10(%ebp),%eax 59d: 01 d0 add %edx,%eax 59f: 8a 00 mov (%eax),%al 5a1: 0f be c0 movsbl %al,%eax 5a4: 25 ff 00 00 00 and $0xff,%eax 5a9: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 5ac: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 5b0: 75 2c jne 5de <printf+0x69> if(c == '%'){ 5b2: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 5b6: 75 0c jne 5c4 <printf+0x4f> state = '%'; 5b8: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 5bf: e9 24 01 00 00 jmp 6e8 <printf+0x173> } else { putc(fd, c); 5c4: 8b 45 e4 mov -0x1c(%ebp),%eax 5c7: 0f be c0 movsbl %al,%eax 5ca: 83 ec 08 sub $0x8,%esp 5cd: 50 push %eax 5ce: ff 75 08 pushl 0x8(%ebp) 5d1: e8 cd fe ff ff call 4a3 <putc> 5d6: 83 c4 10 add $0x10,%esp 5d9: e9 0a 01 00 00 jmp 6e8 <printf+0x173> } } else if(state == '%'){ 5de: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 5e2: 0f 85 00 01 00 00 jne 6e8 <printf+0x173> if(c == 'd'){ 5e8: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 5ec: 75 1e jne 60c <printf+0x97> printint(fd, *ap, 10, 1); 5ee: 8b 45 e8 mov -0x18(%ebp),%eax 5f1: 8b 00 mov (%eax),%eax 5f3: 6a 01 push $0x1 5f5: 6a 0a push $0xa 5f7: 50 push %eax 5f8: ff 75 08 pushl 0x8(%ebp) 5fb: e8 c5 fe ff ff call 4c5 <printint> 600: 83 c4 10 add $0x10,%esp ap++; 603: 83 45 e8 04 addl $0x4,-0x18(%ebp) 607: e9 d5 00 00 00 jmp 6e1 <printf+0x16c> } else if(c == 'x' || c == 'p'){ 60c: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 610: 74 06 je 618 <printf+0xa3> 612: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 616: 75 1e jne 636 <printf+0xc1> printint(fd, *ap, 16, 0); 618: 8b 45 e8 mov -0x18(%ebp),%eax 61b: 8b 00 mov (%eax),%eax 61d: 6a 00 push $0x0 61f: 6a 10 push $0x10 621: 50 push %eax 622: ff 75 08 pushl 0x8(%ebp) 625: e8 9b fe ff ff call 4c5 <printint> 62a: 83 c4 10 add $0x10,%esp ap++; 62d: 83 45 e8 04 addl $0x4,-0x18(%ebp) 631: e9 ab 00 00 00 jmp 6e1 <printf+0x16c> } else if(c == 's'){ 636: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 63a: 75 40 jne 67c <printf+0x107> s = (char*)*ap; 63c: 8b 45 e8 mov -0x18(%ebp),%eax 63f: 8b 00 mov (%eax),%eax 641: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 644: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 648: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 64c: 75 07 jne 655 <printf+0xe0> s = "(null)"; 64e: c7 45 f4 59 09 00 00 movl $0x959,-0xc(%ebp) while(*s != 0){ 655: eb 1a jmp 671 <printf+0xfc> putc(fd, *s); 657: 8b 45 f4 mov -0xc(%ebp),%eax 65a: 8a 00 mov (%eax),%al 65c: 0f be c0 movsbl %al,%eax 65f: 83 ec 08 sub $0x8,%esp 662: 50 push %eax 663: ff 75 08 pushl 0x8(%ebp) 666: e8 38 fe ff ff call 4a3 <putc> 66b: 83 c4 10 add $0x10,%esp s++; 66e: ff 45 f4 incl -0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 671: 8b 45 f4 mov -0xc(%ebp),%eax 674: 8a 00 mov (%eax),%al 676: 84 c0 test %al,%al 678: 75 dd jne 657 <printf+0xe2> 67a: eb 65 jmp 6e1 <printf+0x16c> putc(fd, *s); s++; } } else if(c == 'c'){ 67c: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 680: 75 1d jne 69f <printf+0x12a> putc(fd, *ap); 682: 8b 45 e8 mov -0x18(%ebp),%eax 685: 8b 00 mov (%eax),%eax 687: 0f be c0 movsbl %al,%eax 68a: 83 ec 08 sub $0x8,%esp 68d: 50 push %eax 68e: ff 75 08 pushl 0x8(%ebp) 691: e8 0d fe ff ff call 4a3 <putc> 696: 83 c4 10 add $0x10,%esp ap++; 699: 83 45 e8 04 addl $0x4,-0x18(%ebp) 69d: eb 42 jmp 6e1 <printf+0x16c> } else if(c == '%'){ 69f: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 6a3: 75 17 jne 6bc <printf+0x147> putc(fd, c); 6a5: 8b 45 e4 mov -0x1c(%ebp),%eax 6a8: 0f be c0 movsbl %al,%eax 6ab: 83 ec 08 sub $0x8,%esp 6ae: 50 push %eax 6af: ff 75 08 pushl 0x8(%ebp) 6b2: e8 ec fd ff ff call 4a3 <putc> 6b7: 83 c4 10 add $0x10,%esp 6ba: eb 25 jmp 6e1 <printf+0x16c> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 6bc: 83 ec 08 sub $0x8,%esp 6bf: 6a 25 push $0x25 6c1: ff 75 08 pushl 0x8(%ebp) 6c4: e8 da fd ff ff call 4a3 <putc> 6c9: 83 c4 10 add $0x10,%esp putc(fd, c); 6cc: 8b 45 e4 mov -0x1c(%ebp),%eax 6cf: 0f be c0 movsbl %al,%eax 6d2: 83 ec 08 sub $0x8,%esp 6d5: 50 push %eax 6d6: ff 75 08 pushl 0x8(%ebp) 6d9: e8 c5 fd ff ff call 4a3 <putc> 6de: 83 c4 10 add $0x10,%esp } state = 0; 6e1: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 6e8: ff 45 f0 incl -0x10(%ebp) 6eb: 8b 55 0c mov 0xc(%ebp),%edx 6ee: 8b 45 f0 mov -0x10(%ebp),%eax 6f1: 01 d0 add %edx,%eax 6f3: 8a 00 mov (%eax),%al 6f5: 84 c0 test %al,%al 6f7: 0f 85 9a fe ff ff jne 597 <printf+0x22> putc(fd, c); } state = 0; } } } 6fd: c9 leave 6fe: c3 ret 000006ff <free>: static Header base; static Header *freep; void free(void *ap) { 6ff: 55 push %ebp 700: 89 e5 mov %esp,%ebp 702: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 705: 8b 45 08 mov 0x8(%ebp),%eax 708: 83 e8 08 sub $0x8,%eax 70b: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 70e: a1 e8 0b 00 00 mov 0xbe8,%eax 713: 89 45 fc mov %eax,-0x4(%ebp) 716: eb 24 jmp 73c <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 718: 8b 45 fc mov -0x4(%ebp),%eax 71b: 8b 00 mov (%eax),%eax 71d: 3b 45 fc cmp -0x4(%ebp),%eax 720: 77 12 ja 734 <free+0x35> 722: 8b 45 f8 mov -0x8(%ebp),%eax 725: 3b 45 fc cmp -0x4(%ebp),%eax 728: 77 24 ja 74e <free+0x4f> 72a: 8b 45 fc mov -0x4(%ebp),%eax 72d: 8b 00 mov (%eax),%eax 72f: 3b 45 f8 cmp -0x8(%ebp),%eax 732: 77 1a ja 74e <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 734: 8b 45 fc mov -0x4(%ebp),%eax 737: 8b 00 mov (%eax),%eax 739: 89 45 fc mov %eax,-0x4(%ebp) 73c: 8b 45 f8 mov -0x8(%ebp),%eax 73f: 3b 45 fc cmp -0x4(%ebp),%eax 742: 76 d4 jbe 718 <free+0x19> 744: 8b 45 fc mov -0x4(%ebp),%eax 747: 8b 00 mov (%eax),%eax 749: 3b 45 f8 cmp -0x8(%ebp),%eax 74c: 76 ca jbe 718 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 74e: 8b 45 f8 mov -0x8(%ebp),%eax 751: 8b 40 04 mov 0x4(%eax),%eax 754: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 75b: 8b 45 f8 mov -0x8(%ebp),%eax 75e: 01 c2 add %eax,%edx 760: 8b 45 fc mov -0x4(%ebp),%eax 763: 8b 00 mov (%eax),%eax 765: 39 c2 cmp %eax,%edx 767: 75 24 jne 78d <free+0x8e> bp->s.size += p->s.ptr->s.size; 769: 8b 45 f8 mov -0x8(%ebp),%eax 76c: 8b 50 04 mov 0x4(%eax),%edx 76f: 8b 45 fc mov -0x4(%ebp),%eax 772: 8b 00 mov (%eax),%eax 774: 8b 40 04 mov 0x4(%eax),%eax 777: 01 c2 add %eax,%edx 779: 8b 45 f8 mov -0x8(%ebp),%eax 77c: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 77f: 8b 45 fc mov -0x4(%ebp),%eax 782: 8b 00 mov (%eax),%eax 784: 8b 10 mov (%eax),%edx 786: 8b 45 f8 mov -0x8(%ebp),%eax 789: 89 10 mov %edx,(%eax) 78b: eb 0a jmp 797 <free+0x98> } else bp->s.ptr = p->s.ptr; 78d: 8b 45 fc mov -0x4(%ebp),%eax 790: 8b 10 mov (%eax),%edx 792: 8b 45 f8 mov -0x8(%ebp),%eax 795: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 797: 8b 45 fc mov -0x4(%ebp),%eax 79a: 8b 40 04 mov 0x4(%eax),%eax 79d: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 7a4: 8b 45 fc mov -0x4(%ebp),%eax 7a7: 01 d0 add %edx,%eax 7a9: 3b 45 f8 cmp -0x8(%ebp),%eax 7ac: 75 20 jne 7ce <free+0xcf> p->s.size += bp->s.size; 7ae: 8b 45 fc mov -0x4(%ebp),%eax 7b1: 8b 50 04 mov 0x4(%eax),%edx 7b4: 8b 45 f8 mov -0x8(%ebp),%eax 7b7: 8b 40 04 mov 0x4(%eax),%eax 7ba: 01 c2 add %eax,%edx 7bc: 8b 45 fc mov -0x4(%ebp),%eax 7bf: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 7c2: 8b 45 f8 mov -0x8(%ebp),%eax 7c5: 8b 10 mov (%eax),%edx 7c7: 8b 45 fc mov -0x4(%ebp),%eax 7ca: 89 10 mov %edx,(%eax) 7cc: eb 08 jmp 7d6 <free+0xd7> } else p->s.ptr = bp; 7ce: 8b 45 fc mov -0x4(%ebp),%eax 7d1: 8b 55 f8 mov -0x8(%ebp),%edx 7d4: 89 10 mov %edx,(%eax) freep = p; 7d6: 8b 45 fc mov -0x4(%ebp),%eax 7d9: a3 e8 0b 00 00 mov %eax,0xbe8 } 7de: c9 leave 7df: c3 ret 000007e0 <morecore>: static Header* morecore(uint nu) { 7e0: 55 push %ebp 7e1: 89 e5 mov %esp,%ebp 7e3: 83 ec 18 sub $0x18,%esp char *p; Header *hp; if(nu < 4096) 7e6: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 7ed: 77 07 ja 7f6 <morecore+0x16> nu = 4096; 7ef: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 7f6: 8b 45 08 mov 0x8(%ebp),%eax 7f9: c1 e0 03 shl $0x3,%eax 7fc: 83 ec 0c sub $0xc,%esp 7ff: 50 push %eax 800: e8 76 fc ff ff call 47b <sbrk> 805: 83 c4 10 add $0x10,%esp 808: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 80b: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 80f: 75 07 jne 818 <morecore+0x38> return 0; 811: b8 00 00 00 00 mov $0x0,%eax 816: eb 26 jmp 83e <morecore+0x5e> hp = (Header*)p; 818: 8b 45 f4 mov -0xc(%ebp),%eax 81b: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 81e: 8b 45 f0 mov -0x10(%ebp),%eax 821: 8b 55 08 mov 0x8(%ebp),%edx 824: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 827: 8b 45 f0 mov -0x10(%ebp),%eax 82a: 83 c0 08 add $0x8,%eax 82d: 83 ec 0c sub $0xc,%esp 830: 50 push %eax 831: e8 c9 fe ff ff call 6ff <free> 836: 83 c4 10 add $0x10,%esp return freep; 839: a1 e8 0b 00 00 mov 0xbe8,%eax } 83e: c9 leave 83f: c3 ret 00000840 <malloc>: void* malloc(uint nbytes) { 840: 55 push %ebp 841: 89 e5 mov %esp,%ebp 843: 83 ec 18 sub $0x18,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 846: 8b 45 08 mov 0x8(%ebp),%eax 849: 83 c0 07 add $0x7,%eax 84c: c1 e8 03 shr $0x3,%eax 84f: 40 inc %eax 850: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 853: a1 e8 0b 00 00 mov 0xbe8,%eax 858: 89 45 f0 mov %eax,-0x10(%ebp) 85b: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 85f: 75 23 jne 884 <malloc+0x44> base.s.ptr = freep = prevp = &base; 861: c7 45 f0 e0 0b 00 00 movl $0xbe0,-0x10(%ebp) 868: 8b 45 f0 mov -0x10(%ebp),%eax 86b: a3 e8 0b 00 00 mov %eax,0xbe8 870: a1 e8 0b 00 00 mov 0xbe8,%eax 875: a3 e0 0b 00 00 mov %eax,0xbe0 base.s.size = 0; 87a: c7 05 e4 0b 00 00 00 movl $0x0,0xbe4 881: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 884: 8b 45 f0 mov -0x10(%ebp),%eax 887: 8b 00 mov (%eax),%eax 889: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 88c: 8b 45 f4 mov -0xc(%ebp),%eax 88f: 8b 40 04 mov 0x4(%eax),%eax 892: 3b 45 ec cmp -0x14(%ebp),%eax 895: 72 4d jb 8e4 <malloc+0xa4> if(p->s.size == nunits) 897: 8b 45 f4 mov -0xc(%ebp),%eax 89a: 8b 40 04 mov 0x4(%eax),%eax 89d: 3b 45 ec cmp -0x14(%ebp),%eax 8a0: 75 0c jne 8ae <malloc+0x6e> prevp->s.ptr = p->s.ptr; 8a2: 8b 45 f4 mov -0xc(%ebp),%eax 8a5: 8b 10 mov (%eax),%edx 8a7: 8b 45 f0 mov -0x10(%ebp),%eax 8aa: 89 10 mov %edx,(%eax) 8ac: eb 26 jmp 8d4 <malloc+0x94> else { p->s.size -= nunits; 8ae: 8b 45 f4 mov -0xc(%ebp),%eax 8b1: 8b 40 04 mov 0x4(%eax),%eax 8b4: 2b 45 ec sub -0x14(%ebp),%eax 8b7: 89 c2 mov %eax,%edx 8b9: 8b 45 f4 mov -0xc(%ebp),%eax 8bc: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 8bf: 8b 45 f4 mov -0xc(%ebp),%eax 8c2: 8b 40 04 mov 0x4(%eax),%eax 8c5: c1 e0 03 shl $0x3,%eax 8c8: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 8cb: 8b 45 f4 mov -0xc(%ebp),%eax 8ce: 8b 55 ec mov -0x14(%ebp),%edx 8d1: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 8d4: 8b 45 f0 mov -0x10(%ebp),%eax 8d7: a3 e8 0b 00 00 mov %eax,0xbe8 return (void*)(p + 1); 8dc: 8b 45 f4 mov -0xc(%ebp),%eax 8df: 83 c0 08 add $0x8,%eax 8e2: eb 3b jmp 91f <malloc+0xdf> } if(p == freep) 8e4: a1 e8 0b 00 00 mov 0xbe8,%eax 8e9: 39 45 f4 cmp %eax,-0xc(%ebp) 8ec: 75 1e jne 90c <malloc+0xcc> if((p = morecore(nunits)) == 0) 8ee: 83 ec 0c sub $0xc,%esp 8f1: ff 75 ec pushl -0x14(%ebp) 8f4: e8 e7 fe ff ff call 7e0 <morecore> 8f9: 83 c4 10 add $0x10,%esp 8fc: 89 45 f4 mov %eax,-0xc(%ebp) 8ff: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 903: 75 07 jne 90c <malloc+0xcc> return 0; 905: b8 00 00 00 00 mov $0x0,%eax 90a: eb 13 jmp 91f <malloc+0xdf> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 90c: 8b 45 f4 mov -0xc(%ebp),%eax 90f: 89 45 f0 mov %eax,-0x10(%ebp) 912: 8b 45 f4 mov -0xc(%ebp),%eax 915: 8b 00 mov (%eax),%eax 917: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 91a: e9 6d ff ff ff jmp 88c <malloc+0x4c> } 91f: c9 leave 920: c3 ret
34.24612
60
0.418949
ac1a577a1463ccd66332e063390963638608cb37
405
asm
Assembly
oeis/272/A272095.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/272/A272095.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/272/A272095.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A272095: a(n) = Product_{k=0..n} binomial(n^2,k). ; Submitted by Jon Maiga ; 1,1,24,27216,1956864000,11593630125000000,7004354761049263478784000,515246658615545697034849051407876096,5368556637668593177532650186945239827409750982656,9038577429104951379916309583338181472480254559457860096000000000 mov $1,1 mov $2,$0 add $0,1 pow $2,2 lpb $0 sub $0,1 mov $3,$2 bin $3,$0 mul $1,$3 lpe mov $0,$1
25.3125
221
0.77037
4aec9400399b9840ba6ec79509437a3978c421e3
334
asm
Assembly
_anim/obj23.asm
vladjester2020/Sonic1TMR
22e749a2aab74cc725729e476d6252b071c12e42
[ "Apache-2.0" ]
null
null
null
_anim/obj23.asm
vladjester2020/Sonic1TMR
22e749a2aab74cc725729e476d6252b071c12e42
[ "Apache-2.0" ]
2
2019-06-13T14:26:59.000Z
2019-10-10T13:15:14.000Z
_anim/obj23.asm
vladjester2020/Sonic1TMR
22e749a2aab74cc725729e476d6252b071c12e42
[ "Apache-2.0" ]
null
null
null
; --------------------------------------------------------------------------- ; Animation script - missile that Buzz Bomber throws ; --------------------------------------------------------------------------- dc.w byte_9A2E-Ani_obj23 dc.w byte_9A32-Ani_obj23 byte_9A2E: dc.b 7, 0, 1, $FC byte_9A32: dc.b 1, 2, 3, $FF even
41.75
78
0.365269
af82bc8c258783a61026cd9f4c3ed8dc947c8273
33
asm
Assembly
projects/Kirbys_Dream_Land_2.windfish/configuration/macros/cbcall.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
68
2020-12-16T10:06:48.000Z
2022-03-29T19:54:01.000Z
projects/Kirbys_Dream_Land_2.windfish/configuration/macros/cbcall.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
62
2020-12-19T04:28:41.000Z
2021-02-15T22:18:16.000Z
projects/Kirbys_Dream_Land_2.windfish/configuration/macros/cbcall.asm
jverkoey/awaken
743755248996deb7181ae92f6e60be5656439c44
[ "Apache-2.0" ]
4
2021-01-17T03:51:22.000Z
2021-01-21T16:26:53.000Z
ld a, #1 ld hl, #2 call $05E5
11
11
0.515152
5d85e0bc87f7041206ecb232e5b477568e624332
280
asm
Assembly
libsrc/abc800/abc_cursor.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/abc800/abc_cursor.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/abc800/abc_cursor.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; ABC800 specific routines ; by Stefano Bodrato, Oct 2007 ; ; Set cursor shape ; ; void abc_cursor(unsigned char shape); ; ; ; $Id: abc_cursor.asm,v 1.1 2007/11/08 14:11:50 stefano Exp $ ; XLIB abc_cursor abc_cursor: ld a,11 out (56),a ld a,l ; FASTCALL out (57),a ret
13.333333
61
0.671429
019334f9c9708d196b6ee5fda21b84822146ca32
508
asm
Assembly
programs/oeis/045/A045756.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/045/A045756.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/045/A045756.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A045756: Expansion of e.g.f. (1-9*x)^(-1/9), 9-factorial numbers. ; 1,1,10,190,5320,196840,9054640,498005200,31872332800,2326680294400,190787784140800,17361688356812800,1736168835681280000,189242403089259520000,22330603564532623360000,2835986652695643166720000,385694184766607470673920000,55925656791158083247718400000,8612551145838344820148633600000,1403845836771650205684227276800000,241461483924723835377687091609600000 sub $0,1 mov $1,1 mov $2,1 lpb $0 sub $0,1 add $2,9 mul $1,$2 lpe mov $0,$1
39.076923
356
0.824803
bfbb3e1add5beca9691104bfc061c3a8a8ee9e12
459
asm
Assembly
src/pit.asm
ando23/sysa
b94a821f95b2a8ab9725ed81a19004470dff9b64
[ "MIT" ]
null
null
null
src/pit.asm
ando23/sysa
b94a821f95b2a8ab9725ed81a19004470dff9b64
[ "MIT" ]
null
null
null
src/pit.asm
ando23/sysa
b94a821f95b2a8ab9725ed81a19004470dff9b64
[ "MIT" ]
null
null
null
; Copyright 2022 Andreas Herzig ; Licence: MIT ; Info: https://wiki.osdev.org/PIT PIT_CHN0 equ 0x40 PIT_CHN1 equ 0x41 PIT_CHN2 equ 0x42 PIT_CMD equ 0x43 PIT_OS_FLAGS equ 0b00010110 ; xx...... channel ; ..xx.... access mode, 01=lobyte only ; ....xxx. operating mode, 3=square wave ; .......0 0=binary 1=BCD ; Initialise the Programmable Interrupt Timer init_pit: pushad pushfd cli OUTB PIT_CMD, PIT_OS_FLAGS sti popfd popad ret
13.909091
45
0.690632
658d080bfaa81515a502b5ca7e55c0d5825cbe8e
189
asm
Assembly
boot/boot_sector.asm
KDunc11/OS-Testing
50369dfef34c2e5d859d46fc9a7789e27f97b5b6
[ "MIT" ]
null
null
null
boot/boot_sector.asm
KDunc11/OS-Testing
50369dfef34c2e5d859d46fc9a7789e27f97b5b6
[ "MIT" ]
null
null
null
boot/boot_sector.asm
KDunc11/OS-Testing
50369dfef34c2e5d859d46fc9a7789e27f97b5b6
[ "MIT" ]
null
null
null
; Simple boot sector loop: jmp loop times 510-($-$$) db 0 ; paading 510 bytes of 0's dw 0xaa55 ; last two bytes of 512 bytes for the boot sector, indicating the end of the boot block
27
97
0.703704
9fc6f74ab535cec09fafa712933c84b1d773dcca
1,403
asm
Assembly
src/DSP2833x_ADC_cal.asm
RaphaelSquair/28335ModbusMaster
0f309b1979b6ed9059d5193b4e9185e8abfbaf60
[ "Apache-2.0" ]
15
2017-11-14T14:53:40.000Z
2022-03-28T01:20:38.000Z
src/DSP2833x_ADC_cal.asm
RaphaelSquair/28335ModbusMaster
0f309b1979b6ed9059d5193b4e9185e8abfbaf60
[ "Apache-2.0" ]
2
2019-10-01T15:30:00.000Z
2022-01-19T12:12:45.000Z
src/DSP2833x_ADC_cal.asm
RaphaelSquair/28335ModbusMaster
0f309b1979b6ed9059d5193b4e9185e8abfbaf60
[ "Apache-2.0" ]
16
2017-11-13T14:28:19.000Z
2022-03-24T01:28:25.000Z
;; TI File $Revision: /main/1 $ ;; Checkin $Date: July 30, 2007 10:29:23 $ ;;########################################################################### ;; ;; FILE: ADC_cal.asm ;; ;; TITLE: 2833x Boot Rom ADC Cal routine. ;; ;; Functions: ;; ;; _ADC_cal - Copies device specific calibration data into ADCREFSEL and ADCOFFTRIM registers ;; Notes: ;; ;;########################################################################### ;; $TI Release: DSP2833x/DSP2823x C/C++ Header Files V1.31 $ ;; $Release Date: August 4, 2009 $ ;;########################################################################### .def _ADC_cal .asg "0x711C", ADCREFSEL_LOC ;----------------------------------------------- ; _ADC_cal ;----------------------------------------------- ;----------------------------------------------- ; This is the ADC cal routine.This routine is programmed into ; reserved memory by the factory. 0xAAAA and 0xBBBB are place- ; holders for calibration data. ;The actual values programmed by TI are device specific. ; ; This function assumes that the clocks have been ; enabled to the ADC module. ;----------------------------------------------- .sect ".adc_cal" _ADC_cal MOVW DP, #ADCREFSEL_LOC >> 6 MOV @28, #0xAAAA ; actual value may not be 0xAAAA MOV @29, #0xBBBB ; actual value may not be 0xBBBB LRETR ;eof ----------
32.627907
98
0.453314
f431365654d2bc90c3d153ca36cab8cda111db59
5,884
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1614.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1614.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1614.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 %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x759d, %rsi lea addresses_normal_ht+0xf7dd, %rdi nop nop nop and $15941, %r11 mov $93, %rcx rep movsl sub $11141, %rcx lea addresses_normal_ht+0x1c00f, %rdx nop and $46830, %r13 mov (%rdx), %edi cmp %rsi, %rsi lea addresses_UC_ht+0xa63d, %rcx nop nop nop nop xor $1406, %r10 mov (%rcx), %r13w nop nop and %r10, %r10 lea addresses_UC_ht+0x9ae9, %rcx nop nop and $51140, %r10 mov $0x6162636465666768, %rdi movq %rdi, %xmm2 vmovups %ymm2, (%rcx) nop nop nop nop and $29413, %r10 lea addresses_UC_ht+0x523d, %rcx clflush (%rcx) nop nop dec %rsi movb (%rcx), %dl nop nop nop inc %rdx lea addresses_UC_ht+0x11a3d, %r13 xor %rcx, %rcx vmovups (%r13), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %rsi nop add $15153, %rdi lea addresses_WT_ht+0x1423d, %rdx nop xor $26225, %r13 mov $0x6162636465666768, %r10 movq %r10, (%rdx) cmp $51202, %r10 lea addresses_normal_ht+0x12efd, %r10 nop nop nop nop nop and $46379, %r13 mov $0x6162636465666768, %rdi movq %rdi, %xmm4 vmovups %ymm4, (%r10) cmp $64232, %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r8 push %rbp push %rbx push %rsi // Faulty Load lea addresses_PSE+0x423d, %rbx nop nop nop nop nop sub $21071, %rsi mov (%rbx), %r8w lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rsi pop %rbx pop %rbp pop %r8 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'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 */
43.585185
2,999
0.659755
e413f4f82fdb580c8068eb81c21fd280aa210a9d
1,317
asm
Assembly
programs/oeis/024/A024046.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/024/A024046.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/024/A024046.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A024046: a(n) = 4^n - n^10. ; 1,3,-1008,-58985,-1048320,-9764601,-60462080,-282458865,-1073676288,-3486522257,-9998951424,-25933230297,-61900587008,-137791382985,-288986219520,-575576648801,-1095216660480,-1998814031265,-3501747749888,-5856188350857,-9140488372224,-12281834467097,-8967736747008,28942232964015,218071595745280,1030532475201999,4362432531717120,17808507377387335,71761397271232512,287809668918411543,1152331014606846976,4610866390140407103,18445618173802708992,73785444715852942015,295145840801598766080,1180588862170057787799,4722362826711205150720,18889461122894208436935,75557857447702475430912,302231446763251208484943,1208925809128869174706176,4835703265035857388672303,19342813096753868673620992,77371252433724784867911015,309485009794147707786362880,1237940039251329645983108599,4951760157099100352113720320,19807040628513485266150157535,79228162514199412531435405312,316912650056977558107878189343,1267650600228131745246703205376,5070602400912798563562985208503,20282409603651525868841302228992,81129638414606506808318639631015,324518553658426515950636755655680,1298074214633706653837461963164399,5192296858534827325225007233105920,20769187434139310152088653859989135,83076749736557241625683734368115712,332306998946228967714835011769444743 mov $1,4 pow $1,$0 pow $0,10 sub $1,$0 mov $0,$1
146.333333
1,236
0.906606
5afe266baf9efd1fda4582deb4e8d30951e68b8f
912
asm
Assembly
src/SlimShader.Tests/Shaders/Sdk/Direct3D11/HDRToneMappingCS11/FinalPass_VS.asm
tgjones/slimshader
4fc64414b82fec8a41f8455037b3717e71907b89
[ "MIT" ]
125
2015-01-04T09:33:05.000Z
2022-03-13T05:08:50.000Z
src/SlimShader.Tests/Shaders/Sdk/Direct3D11/HDRToneMappingCS11/FinalPass_VS.asm
tgjones/slimshader
4fc64414b82fec8a41f8455037b3717e71907b89
[ "MIT" ]
1
2015-04-01T22:26:14.000Z
2015-04-02T12:57:18.000Z
src/SlimShader.Tests/Shaders/Sdk/Direct3D11/HDRToneMappingCS11/FinalPass_VS.asm
tgjones/slimshader
4fc64414b82fec8a41f8455037b3717e71907b89
[ "MIT" ]
36
2015-01-26T22:01:38.000Z
2022-01-26T04:35:56.000Z
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714 // // /// // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // POSITION 0 xyzw 0 NONE float xyzw // TEXCOORD 0 xy 1 NONE float xy // // // Output signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // SV_POSITION 0 xyzw 0 POS float xyzw // TEXCOORD 0 xy 1 NONE float xy // vs_5_0 dcl_globalFlags refactoringAllowed dcl_input v0.xyzw dcl_input v1.xy dcl_output_siv o0.xyzw, position dcl_output o1.xy mov o0.xyzw, v0.xyzw mov o1.xy, v1.xyxx ret // Approximately 3 instruction slots used
28.5
69
0.475877
e6626d1ab881969691a003cf4482c3f9eb4324e3
7,508
asm
Assembly
Transynther/x86/_processed/NONE/_un_xt_/i7-7700_9_0x48_notsx.log_21829_1877.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_un_xt_/i7-7700_9_0x48_notsx.log_21829_1877.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_un_xt_/i7-7700_9_0x48_notsx.log_21829_1877.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x13fff, %r15 nop nop cmp %rbp, %rbp mov $0x6162636465666768, %rsi movq %rsi, (%r15) nop xor $7994, %r12 lea addresses_WC_ht+0x115ff, %r10 nop nop nop nop add %r15, %r15 mov (%r10), %r11 nop nop nop nop nop add %r15, %r15 lea addresses_WT_ht+0x14ad5, %rsi lea addresses_A_ht+0x1d3cf, %rdi nop nop nop nop nop add %r12, %r12 mov $42, %rcx rep movsb nop and $37955, %r10 lea addresses_UC_ht+0x37ff, %rdi sub %r15, %r15 mov (%rdi), %bp nop nop and %rcx, %rcx lea addresses_normal_ht+0x597f, %rdi nop nop nop dec %r10 mov $0x6162636465666768, %rsi movq %rsi, %xmm1 movups %xmm1, (%rdi) nop nop nop add $59910, %rsi lea addresses_D_ht+0x3d1f, %r10 and $57379, %r12 mov (%r10), %esi nop nop nop and %r10, %r10 lea addresses_WC_ht+0x333f, %r12 cmp %rsi, %rsi movl $0x61626364, (%r12) nop nop nop nop sub $42842, %rsi lea addresses_A_ht+0x63ef, %rcx nop nop cmp %rdi, %rdi movw $0x6162, (%rcx) nop nop nop nop dec %r10 lea addresses_WT_ht+0xda6b, %rsi nop nop nop nop nop add %r10, %r10 mov $0x6162636465666768, %rdi movq %rdi, %xmm1 vmovups %ymm1, (%rsi) nop nop nop nop nop inc %r11 lea addresses_WT_ht+0x1db8b, %rsi lea addresses_D_ht+0x12aff, %rdi nop nop nop nop cmp $33031, %r15 mov $101, %rcx rep movsw nop nop nop add $43338, %r12 lea addresses_normal_ht+0x1a2ff, %rsi lea addresses_WC_ht+0x65ff, %rdi nop inc %r10 mov $20, %rcx rep movsl dec %r11 lea addresses_D_ht+0x16c5f, %r10 nop nop nop nop nop inc %r12 and $0xffffffffffffffc0, %r10 movaps (%r10), %xmm3 vpextrq $1, %xmm3, %r11 nop nop nop nop cmp $60903, %r10 lea addresses_normal_ht+0x1466f, %rsi lea addresses_WC_ht+0x77f, %rdi nop nop add %rbp, %rbp mov $9, %rcx rep movsw nop nop nop lfence lea addresses_UC_ht+0x58ff, %r12 nop nop nop nop nop cmp $11761, %r11 mov (%r12), %r15w nop nop nop nop nop mfence pop %rsi pop %rdi pop %rcx pop %rbp pop %r15 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %rax push %rdi // Faulty Load lea addresses_D+0x131ff, %rdi nop cmp %rax, %rax vmovups (%rdi), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $0, %xmm5, %r10 lea oracles, %rdi and $0xff, %r10 shlq $12, %r10 mov (%rdi,%r10,1), %r10 pop %rdi pop %rax pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_D', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 8}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 9}} {'dst': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 8}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 7}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 4}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WC_ht', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}} {'dst': {'same': True, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_D_ht', 'congruent': 4}} {'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC_ht', 'congruent': 8}} {'36': 21828, 'ff': 1} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
33.972851
2,999
0.658897
ce8bd82b21156fd8ad49bc4ebaa50f3f3ab1ff0c
1,875
asm
Assembly
programs/oeis/267/A267539.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/267/A267539.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/267/A267539.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A267539: Decimal representation of the middle column of the "Rule 143" elementary cellular automaton starting with a single ON (black) cell. ; 1,3,6,12,25,51,103,207,415,831,1663,3327,6655,13311,26623,53247,106495,212991,425983,851967,1703935,3407871,6815743,13631487,27262975,54525951,109051903,218103807,436207615,872415231,1744830463,3489660927,6979321855,13958643711,27917287423,55834574847,111669149695,223338299391,446676598783,893353197567,1786706395135,3573412790271,7146825580543,14293651161087,28587302322175,57174604644351,114349209288703,228698418577407,457396837154815,914793674309631,1829587348619263,3659174697238527,7318349394477055,14636698788954111,29273397577908223,58546795155816447,117093590311632895,234187180623265791,468374361246531583,936748722493063167,1873497444986126335,3746994889972252671,7493989779944505343,14987979559889010687,29975959119778021375,59951918239556042751,119903836479112085503,239807672958224171007,479615345916448342015,959230691832896684031,1918461383665793368063,3836922767331586736127,7673845534663173472255,15347691069326346944511,30695382138652693889023,61390764277305387778047,122781528554610775556095,245563057109221551112191,491126114218443102224383,982252228436886204448767,1964504456873772408897535,3929008913747544817795071,7858017827495089635590143,15716035654990179271180287,31432071309980358542360575,62864142619960717084721151,125728285239921434169442303,251456570479842868338884607,502913140959685736677769215,1005826281919371473355538431,2011652563838742946711076863,4023305127677485893422153727,8046610255354971786844307455,16093220510709943573688614911,32186441021419887147377229823,64372882042839774294754459647,128745764085679548589508919295,257491528171359097179017838591,514983056342718194358035677183,1029966112685436388716071354367 mov $1,2 pow $1,$0 mul $1,13 sub $1,10 div $1,8 add $1,1 mov $0,$1
170.454545
1,663
0.9136
b246e35e91f42fdd95f7bbd4cc059f4d994e972a
1,133
asm
Assembly
_build/dispatcher/jmp_ippsHMACMessage_rmf_5374eb2b.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsHMACMessage_rmf_5374eb2b.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsHMACMessage_rmf_5374eb2b.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsHMACMessage_rmf:function extern n8_ippsHMACMessage_rmf:function extern y8_ippsHMACMessage_rmf:function extern e9_ippsHMACMessage_rmf:function extern l9_ippsHMACMessage_rmf:function extern n0_ippsHMACMessage_rmf:function extern k0_ippsHMACMessage_rmf:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsHMACMessage_rmf .Larraddr_ippsHMACMessage_rmf: dq m7_ippsHMACMessage_rmf dq n8_ippsHMACMessage_rmf dq y8_ippsHMACMessage_rmf dq e9_ippsHMACMessage_rmf dq l9_ippsHMACMessage_rmf dq n0_ippsHMACMessage_rmf dq k0_ippsHMACMessage_rmf segment .text global ippsHMACMessage_rmf:function (ippsHMACMessage_rmf.LEndippsHMACMessage_rmf - ippsHMACMessage_rmf) .Lin_ippsHMACMessage_rmf: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsHMACMessage_rmf: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsHMACMessage_rmf] mov r11, qword [r11+rax*8] jmp r11 .LEndippsHMACMessage_rmf:
29.051282
103
0.805825
6aafa20b698235713ba59b90b76eabb77d00bcee
338
asm
Assembly
pwnlib/shellcraft/templates/thumb/linux/echo.asm
mtdcr/pwntools
b784d3a6837dc683a4d3d775ed5b7752988e86f4
[ "MIT" ]
7
2017-07-11T01:12:02.000Z
2017-09-21T23:39:54.000Z
pwnlib/shellcraft/templates/thumb/linux/echo.asm
mtdcr/pwntools
b784d3a6837dc683a4d3d775ed5b7752988e86f4
[ "MIT" ]
null
null
null
pwnlib/shellcraft/templates/thumb/linux/echo.asm
mtdcr/pwntools
b784d3a6837dc683a4d3d775ed5b7752988e86f4
[ "MIT" ]
6
2017-09-07T02:31:11.000Z
2021-07-05T16:59:18.000Z
<% from pwnlib.shellcraft import thumb %> <%page args="string, sock = '1'"/> <%docstring> Writes a string to a file descriptor Example: >>> run_assembly(shellcraft.echo('hello\n', 1)).recvline() 'hello\n' </%docstring> ${thumb.pushstr(string, append_null = False)} ${thumb.linux.syscall('SYS_write', sock, 'sp', len(string))}
22.533333
62
0.671598
091bc6dbdb64774bb575fc7d73155cada232b186
1,013
asm
Assembly
programs/oeis/191/A191698.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/191/A191698.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/191/A191698.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A191698: a(n) = (122n^3 + 140n^2 + 45n + 3n(-1)^n)/8. ; 0,38,204,585,1280,2370,3960,6125,8976,12582,17060,22473,28944,36530,45360,55485,67040,80070,94716,111017,129120,149058,170984,194925,221040,249350,280020,313065,348656,386802,427680,471293,517824,567270,619820,675465,734400,796610,862296,931437,1004240,1080678,1160964,1245065,1333200,1425330,1521680,1622205,1727136,1836422,1950300,2068713,2191904,2319810,2452680,2590445,2733360,2881350,3034676,3193257,3357360,3526898,3702144,3883005,4069760,4262310,4460940,4665545,4876416,5093442,5316920,5546733,5783184,6026150,6275940,6532425,6795920,7066290,7343856,7628477,7920480,8219718,8526524,8840745,9162720,9492290,9829800,10175085,10528496,10889862,11259540,11637353,12023664,12418290,12821600,13233405,13654080,14083430,14521836,14969097 mov $3,2 add $3,$0 mov $4,$0 mov $5,$0 div $5,2 add $5,2 sub $3,$5 mul $4,$5 mov $6,3 add $6,$3 mul $6,$4 mov $1,$6 mov $7,$0 mul $7,$0 mov $2,$7 mul $2,15 add $1,$2 mul $7,$0 mov $2,$7 mul $2,15 add $1,$2 mov $0,$1
38.961538
739
0.767029
229bd1c9e4445a294953bd5f315f2828fd7f18aa
1,364
asm
Assembly
_inc/Debug list - LZ.asm
NatsumiFox/AMPS-Sonic-1-2005
ac8730799f1b96291358c77a4b64529de94ce8a4
[ "Apache-2.0" ]
2
2020-04-09T19:36:35.000Z
2021-01-05T14:20:17.000Z
_inc/Debug list - LZ.asm
NatsumiFox/AMPS-Sonic-1-2005
ac8730799f1b96291358c77a4b64529de94ce8a4
[ "Apache-2.0" ]
null
null
null
_inc/Debug list - LZ.asm
NatsumiFox/AMPS-Sonic-1-2005
ac8730799f1b96291358c77a4b64529de94ce8a4
[ "Apache-2.0" ]
1
2020-06-17T14:16:35.000Z
2020-06-17T14:16:35.000Z
; --------------------------------------------------------------------------- ; Debug list - Labyrinth ; --------------------------------------------------------------------------- dc.w $19 dc.l Map_obj25+$25000000 dc.b 0, 0, $27, $B2 dc.l Map_obj26+$26000000 dc.b 0, 0, 6, $80 dc.l Map_obj41+$41000000 dc.b 0, 0, 5, $23 dc.l Map_obj2C+$2C000000 dc.b 8, 0, $24, $86 dc.l Map_obj2D+$2D000000 dc.b 0, 2, $84, $A6 dc.l Map_obj16+$16000000 dc.b 0, 0, 3, $CC dc.l Map_obj16+$16000000 dc.b 2, 3, 3, $CC dc.l Map_obj33+$33000000 dc.b 0, 0, $43, $DE dc.l Map_obj32+$32000000 dc.b 0, 0, 5, $13 dc.l Map_obj36+$36000000 dc.b 0, 0, 5, $1B dc.l Map_obj52a+$52000000 dc.b 4, 0, $43, $BC dc.l Map_obj61+$61000000 dc.b 1, 0, $43, $E6 dc.l Map_obj61+$61000000 dc.b $13, 1, $43, $E6 dc.l Map_obj61+$61000000 dc.b 5, 0, $43, $E6 dc.l Map_obj62+$62000000 dc.b 0, 0, $44, $3E dc.l Map_obj61+$61000000 dc.b $27, 2, $43, $E6 dc.l Map_obj61+$61000000 dc.b $30, 3, $43, $E6 dc.l Map_obj63+$63000000 dc.b $7F, 0, 3, $F6 dc.l Map_obj60+$60000000 dc.b 0, 0, 4, $67 dc.l Map_obj64+$64000000 dc.b $84, $13, $83, $48 dc.l Map_obj65+$65000000 dc.b 2, 2, $C2, $59 dc.l Map_obj65+$65000000 dc.b 9, 9, $C2, $59 dc.l Map_obj0B+$B000000 dc.b 0, 0, $43, $DE dc.l Map_obj0C+$C000000 dc.b 2, 0, $43, $28 dc.l Map_obj79+$79000000 dc.b 1, 0, 7, $A0 even
24.8
77
0.548387
2237407672bb6add4e4e6ac8a53aabd78ba0f349
571
asm
Assembly
data/baseStats/raikou.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
null
null
null
data/baseStats/raikou.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
null
null
null
data/baseStats/raikou.asm
adhi-thirumala/EvoYellow
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
[ "Unlicense" ]
null
null
null
db DEX_RAIKOU ; pokedex id db 90 ; base hp db 85 ; base attack db 75 ; base defense db 115 ; base speed db 107 ; base special db ELECTRIC ; species type 1 db ELECTRIC ; species type 2 db 3 ; catch rate db 216 ; base exp yield INCBIN "pic/ymon/raikou.pic",0,1 ; 55, sprite dimensions dw RaikouPicFront dw RaikouPicBack ; attacks known at lvl 0 db BITE db LEER db 0 db 0 db 5 ; growth rate ; learnset tmlearn 6,8 tmlearn 10,15 tmlearn 20,24 tmlearn 25,28,31,32 tmlearn 33,34,39 tmlearn 44,45 tmlearn 50,51,54,55 db Bank(RaikouPicFront) ; padding
19.689655
57
0.709282
5bf88600b9a8b2266887f74690885a2768202bbf
405
asm
Assembly
programs/oeis/060/A060145.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/060/A060145.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/060/A060145.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A060145: a(n) = floor(n/tau) - floor(n/(1 + tau)). ; 0,0,1,0,1,2,1,2,1,2,3,2,3,4,3,4,3,4,5,4,5,4,5,6,5,6,7,6,7,6,7,8,7,8,9,8,9,8,9,10,9,10,9,10,11,10,11,12,11,12,11,12,13,12,13,12,13,14,13,14,15,14,15,14,15,16,15,16,17,16,17,16,17,18,17,18,17,18,19,18,19,20,19,20,19,20,21,20,21,22,21,22,21,22,23,22,23,22,23,24 trn $0,1 seq $0,339765 ; a(n) = 2*floor(n*phi) - 3*n, where phi = (1+sqrt(5))/2. add $0,1
57.857143
260
0.582716
ab9c40bd9bacbbba06e82441815300552b717e49
2,335
asm
Assembly
EserciziMips/6.2-Gioco.asm
AntoAndGar/MIPS
776bbf3ca1d9a3184f469a11b5230d4d03622826
[ "MIT" ]
null
null
null
EserciziMips/6.2-Gioco.asm
AntoAndGar/MIPS
776bbf3ca1d9a3184f469a11b5230d4d03622826
[ "MIT" ]
null
null
null
EserciziMips/6.2-Gioco.asm
AntoAndGar/MIPS
776bbf3ca1d9a3184f469a11b5230d4d03622826
[ "MIT" ]
null
null
null
# Nella battaglia virtuale STUDENT BATTLE la milizia A composta da 100 informatici si posiziona ad una certa distanza dalla milizia B di 100 sociologhi. # Gli informatici hanno un mortaio con cui sparare delle bombe di colore che colpiscono 10 persone e un elaboratore MIPS; # mentre la milizia dei sociologhi dispone di libri di guerra e di una imponenente bomba ad acqua fredda che può colpire 100 persone. # Il generale comanda alla truppa degli informatici di muoversi ogni due minuti di dieci metri dalla distanza di 123 metri iniziali per evitare di essere colpiti # in pieno dalla bomba ad acqua dei sociologhi e nel contempo chiede ai suoi capitani di realizzare un programma MIPS per determinare, in tempi rapidi, # la velocità necessaria per far percorrere alle bombe di colore la giusta distanza (supponendo che il mortaio abbia una inclinazione fissa di 45°) al variare dei propri spostamenti. # Il calcolo della distanza della traiettoria deve essere realizzato con la funzione GITTATA (vo^2/g). # NB: g=9,823m/s^2 # Esempio: # Distanza:123 metri # Calcolo velocità:... # Numero vittime sociologhi:90 # ... # Ditanza:133 Calcolo velocità:... # Numero vittime sociologhi:80 # ... # fino ad esaurimento dei sociologhi # PS: per rendere il gioco interessante usare la syscall random per determinare degli spostamenti generici. .text .globl main main: lw $t2, n_sociologhi loop: beqz $t2, fine la $a0, dist li $v0, 4 syscall lw $a0, pos li $v0, 1 syscall move $t0, $a0 la $a0, capo li $v0, 4 syscall la $a0, vel li $v0, 4 syscall move $a0, $t0 jal GITTATA mtc1 $v0, $f12 li $v0, 2 syscall la $a0, capo li $v0, 4 syscall subi $t2, $t2, 10 la $a0, n_vittime li $v0, 4 syscall move $a0, $t2 li $v0, 1 syscall la $a0, capo li $v0, 4 syscall li $a1, 15 #Here you set $a1 to the max bound. li $v0, 42 #generates the random number. syscall add $t0, $t0, $a0 sw $t0, pos j loop fine: li $v0, 10 syscall GITTATA: mtc1 $a0, $f0 cvt.s.w $f0, $f0 l.s $f1, g mul.s $f2, $f0, $f1 sqrt.s $f3, $f2 mfc1 $v0, $f3 jr $ra .data #n_informatici: .word 100 n_sociologhi: .word 100 pos: .word 123 g: .float 9.823 dist: .asciiz "Distanza: " vel: .asciiz "Calcolo velocita': " n_vittime: .asciiz "Numero vittime sociologhi: " capo: .asciiz "\n"
23.585859
182
0.706638
41799ba2ea3de859bf1adefe8773480e1d065bd2
438
asm
Assembly
tests/sjasmplus_regressions/define.asm
cizo2000/sjasmplus
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
[ "BSD-3-Clause" ]
220
2016-10-22T19:44:39.000Z
2022-03-29T20:57:04.000Z
tests/sjasmplus_regressions/define.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
153
2018-05-07T10:31:23.000Z
2022-03-30T04:35:59.000Z
tests/sjasmplus_regressions/define.asm
ped7g/sjasmplus
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
[ "BSD-3-Clause" ]
51
2016-05-12T21:27:36.000Z
2022-03-27T15:16:16.000Z
device zxspectrum128 org #8000 DEFINE Scalar db 1 DEFARRAY Array,db 2,db 3,db 4 Scalar Array[3] Array[2] Array[1] Array[0] Array ; original test has invalid syntax of DEFARRAY (by Docs definition), when "fixed": DEFARRAY Array2 db 2,db 3,db 4 Array2[3] Array2[2] Array2[1] Array2[0] Array2
19.909091
82
0.497717
0e62bbd578220dd15df44d0a949bd77160500e3f
450
asm
Assembly
programs/oeis/034/A034214.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/034/A034214.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/034/A034214.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A034214: Number of ternary codes of length 2 with n words. ; 1,1,2,4,5,5,4,2,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 trn $1,$0 add $1,6 mov $2,$0 mov $0,$1 sub $2,4 mov $4,$2 lpb $0 mov $3,8 mov $0,$3 mul $0,2 add $2,7 bin $4,2 add $4,3 div $0,$4 clr $3,$2 lpe mov $4,2 add $0,$4 add $4,$0 mov $1,$4 sub $1,4 mov $0,$1
17.307692
169
0.526667
22a09cbb288d3284c5353eb7c8853cbe9de1c350
4,648
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1723.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_1723.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_1723.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 %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0xef71, %rsi lea addresses_D_ht+0x15b55, %rdi nop add %rdx, %rdx mov $89, %rcx rep movsq nop nop sub $19321, %rbx lea addresses_D_ht+0x141c5, %rsi lea addresses_WC_ht+0x6c55, %rdi nop nop nop and %rdx, %rdx mov $62, %rcx rep movsb nop nop nop cmp $39843, %rdx lea addresses_UC_ht+0x1ad55, %rsi lea addresses_A_ht+0x1cb95, %rdi inc %rax mov $80, %rcx rep movsw nop cmp %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %rax push %rbx push %rdi // Faulty Load lea addresses_WC+0x1d655, %rax nop nop cmp $27282, %r11 movb (%rax), %bl lea oracles, %r14 and $0xff, %rbx shlq $12, %rbx mov (%r14,%rbx,1), %rbx pop %rdi pop %rbx pop %rax pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
54.682353
2,999
0.663511
4931e5009a96a201b47878c398552628304944a5
233
asm
Assembly
programs/oeis/016/A016892.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016892.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016892.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016892: (5n+3)^8. ; 6561,16777216,815730721,11019960576,78310985281,377801998336,1406408618241,4347792138496,11688200277601,28179280429056,62259690411361,128063081718016,248155780267521,457163239653376 mul $0,5 add $0,3 pow $0,8
33.285714
183
0.832618
d96361a9853a5c1549e5ae1dc56b6586faf313cd
8,712
asm
Assembly
15. MATRIX ADDITION.asm
rng70/Assembly-Programming
38c60807b944b49e52f189930c5bf1beadf80d74
[ "MIT" ]
null
null
null
15. MATRIX ADDITION.asm
rng70/Assembly-Programming
38c60807b944b49e52f189930c5bf1beadf80d74
[ "MIT" ]
null
null
null
15. MATRIX ADDITION.asm
rng70/Assembly-Programming
38c60807b944b49e52f189930c5bf1beadf80d74
[ "MIT" ]
null
null
null
; THIS SIMPLE PROGRAM IS FOR ADDING TWO 2x2 MATRIX ; IF TWO 2x2 MATRIX IS PROVIDED THEN IT CALCULATE THEIR SUR ; FOR EXAMPLE IF ; 2 -1 ; 1 0 ; AND ; 1 -2 ; 0 1 ; IS GIVEN THEN IT SHOW THE FOLLOWIN RESLUT ; 2 -1 ; 1 0 ; 3 -1 ; 1 -2 + ; 0 1 = ; 1 -1 .MODEL SMALLL .STACK 100H .DATA SIZE DW 2 ROW DW 2 COL DW 2 CURRENT_MATRIX DB ? MATRIX1 DW 2 DUP (?) DW 2 DUP (?) MATRIX2 DW 2 DUP (?) DW 2 DUP (?) RESULT DW 2 DUP (?) DW 2 DUP (?) CLEAR DB 0AH, 0DH, '$' MSG1 DB ' ENTER FIRST MATRIX: ', 0AH, 0DH, '$' MSG2 DB 0AH, 0DH, ' ENTER SECOND MATRIX: ', 0AH, 0DH, '$' MSG3 DB 0AH, 0DH, ' RESULTANT MATRIX IS: ', 0AH, 0DH, '$' .CODE OUTDEC PROC ; PROCEDURE FOR DECIMAL OUTPUT ; ALGORITHM: ; IF AX < 0 ; THEN ; PRINT A MINUS SIGN ; REPLACE AX BY IT'S 2's COMPLEMENT ; THEN ; GET THE DIGITS IN AX's DECIMAL REPRESENTATION ; CONVERT THE DIGITS TO CHARACTERS AND PRINT ; PRINTS AX AS A SIGNED INTEGER PUSH AX PUSH BX PUSH CX PUSH DX ; CHECKING FOR SIGN TO PRINT OR AX, AX JGE @END_IF1 ; IF AX IS LESS THAN ZERO (AX<0) PUSH AX MOV DL, '-' MOV AH, 2 INT 21H POP AX ; TAKE 2's COMPLEMENT NEG AX ; JUMP HERE @END_IF1: ; PRINT IN DECIMAL ; CX COUNTS DIGITS XOR CX, CX ; SET THE DIVISOR MOV BX, 10D @REPEAT: XOR DX, DX ; NOW DIVIDE AX BY BX ; AX HAS QUOTIENT AND DX HAS REMAINDER DIV BX PUSH DX INC CX ; CHECK THAT IF AX = 0 OR AX, AX JNE @REPEAT ; CONVERT THE DIGITS TO CHARACTER AND PRINT MOV AH, 2 @PRINT_LOOP: POP DX OR DL, 30H ; CONVERTING TO CHARACTER INT 21H LOOP @PRINT_LOOP POP DX POP CX POP BX POP AX RET OUTDEC ENDP INDEC PROC ; PROCEDURE FOR DECIMAL INPUT ; ALGORITHM: ; TOTAL = 0 ; READ AN ASCII DIGIT ; REPEAT ; CONVERT CHARACTER TO IT's BINARY VALUE ; TOTAL = TOTAL*10 + VALUE ; READ A CHARACTER ; UNTIL CHARACTER IS A CARRIAGE RETURN OR WHITE SPACE @BEGIN: ; SAVE THE REGISTERS PUSH BX PUSH CX PUSH DX ; BX HOLDS TOTAL XOR BX, BX ; CX HOLDS SIGN XOR CX, CX ; CHECK THE SIGN MOV AH, 1 INT 21H ; TRACK THE SIGN CMP AL, '-' JE @MINUS CMP AL, '+' JE @PLUS JMP @REPEAT_2 @MINUS: MOV CX, 1 @PLUS: ; READ A CHARACTER INT 21H @REPEAT_2: ; CHECKING IF IT IS >= 0 CMP AL, 20H JE @EXIT CMP AL, 0DH JE @EXIT CMP AL, '0' JNGE @NOT_DIGIT CMP AL, '9' JNLE @NOT_DIGIT ; CONVERT THE CHARACTER TO DIGIT AND AX, 000FH PUSH AX ; CALCULATE THE TOTAL MOV AX, 10 MUL BX POP BX ADD BX, AX ; READ AGAIN MOV AH, 1 INT 21H ;CMP AL, 0DH JMP @REPEAT_2 JE @EXIT NEG AX @EXIT: MOV AX, BX OR CX, CX JE @EXIT_1 NEG AX @EXIT_1: POP DX POP CX POP BX RET @NOT_DIGIT: MOV AH, 1 INT 21H JMP @REPEAT_2 INDEC ENDP OUTPUTMATRIX PROC ; STORE REGISTERS PUSH AX PUSH BX PUSH CX PUSH DX MOV CX, ROW MOV SI, 0 @ROW: MOV BX, 0 @COL: CMP BX, 4 JE END_PRINTING_OUTPUT MOV AX, RESULT[SI+BX] CALL OUTDEC MOV DL, ' ' MOV AH, 2 INT 21H ADD BX, 2 JMP @COL END_PRINTING_OUTPUT: ADD SI, 4 ; PRINT A NEW LINE HERE PUSH AX PUSH BX PUSH CX PUSH DX LEA DX, CLEAR MOV AH, 9 INT 21H POP DX POP CX POP BX POP AX LOOP @ROW ; RESTORE REGISTERS POP DX POP CX POP BX POP AX RET OUTPUTMATRIX ENDP INPUTMATRIX PROC ; STORE REGISTERS PUSH AX PUSH BX PUSH CX PUSH DX ; CHECK HOW MANY TIMES INPUT TO TAKE MOV CX, ROW MOV SI, 0 @@ROW: MOV BX, 0 @@COL: MOV AX, 4 CMP BX, AX JE END_TAKING_INPUT CALL INDEC CMP CURRENT_MATRIX, 2 JE @MATRIX2 MOV MATRIX1[SI+BX], AX JMP @NEXT @MATRIX2: MOV MATRIX2[SI+BX], AX @NEXT: ADD BX, 2 JMP @@COL END_TAKING_INPUT: ADD SI, 4 ; PRINT A NEW LINE HERE PUSH AX PUSH BX PUSH CX PUSH DX LEA DX, CLEAR MOV AH, 9 INT 21H POP DX POP CX POP BX POP AX LOOP @@ROW POP DX POP CX POP BX POP AX ; RESTORE REGISTERS FINISHED RET INPUTMATRIX ENDP MATRIXADDITION PROC ; STORE REGISTERS PUSH AX PUSH BX PUSH CX PUSH DX MOV CX, ROW MOV SI, 0 @ROW1: MOV BX, 0 @COL1: MOV AX, COL IMUL SIZE CMP BX, AX JE END_COL MOV AX, MATRIX1[SI+BX] ADD AX, MATRIX2[SI+BX] MOV RESULT[SI+BX], AX ADD BX, 2 JMP @COL1 END_COL: ADD SI, 4 LOOP @ROW1 ; RESTORE REGISTERS POP DX POP CX POP BX POP AX RET MATRIXADDITION ENDP MAIN PROC ; INITIALIZE DS MOV AX, @DATA MOV DS, AX LEA DX, MSG1 MOV AH, 9 INT 21H MOV CURRENT_MATRIX, 1 CALL INPUTMATRIX LEA DX, MSG2 MOV AH, 9 INT 21H MOV CURRENT_MATRIX, 2 CALL INPUTMATRIX ; CALL MATRIX ADDITION IN THIS POSITION CALL MATRIXADDITION LEA DX, MSG3 MOV AH, 9 INT 21H CALL OUTPUTMATRIX ; DOS EXIT MOV AX, 4CH INT 21H MAIN ENDP END MAIN
22.806283
74
0.339991
c23775774598eab947232f2bc839e0be663d2d90
329
asm
Assembly
programs/oeis/172/A172242.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/172/A172242.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/172/A172242.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A172242: Number of 10-D hypercubes in an n-dimensional hypercube. ; 1,22,264,2288,16016,96096,512512,2489344,11202048,47297536,189190144,722362368,2648662016,9372188672,32133218304,107110727680,348109864960,1105760747520,3440144547840,10501493882880,31504481648640 mov $1,-2 pow $1,$0 mov $2,-11 bin $2,$0 mul $1,$2 mov $0,$1
32.9
198
0.790274
6519661986472da841f856091df69de3f1c96343
493
asm
Assembly
programs/oeis/047/A047388.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/047/A047388.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/047/A047388.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A047388: Numbers that are congruent to {0, 1, 2, 5} mod 7. ; 0,1,2,5,7,8,9,12,14,15,16,19,21,22,23,26,28,29,30,33,35,36,37,40,42,43,44,47,49,50,51,54,56,57,58,61,63,64,65,68,70,71,72,75,77,78,79,82,84,85,86,89,91,92,93,96,98,99,100,103,105,106,107,110,112,113,114,117,119,120,121,124,126,127,128,131,133,134,135,138,140,141,142,145,147,148,149,152,154,155,156,159,161,162,163,166,168,169,170,173 seq $0,47269 ; Numbers that are congruent to {0, 1, 2, 5} mod 6. add $2,$0 div $2,6 add $0,$2
61.625
336
0.673428
6f170b3cb88530c858f8d34f55c23e84fec6b9ff
3,000
asm
Assembly
SlnBin/Stub/pe32/Emulator.asm
bytecode-77/peunion
82fd13a9bf69a0ca30ec9fc7edda2f1211885de3
[ "BSD-2-Clause", "BSD-3-Clause" ]
387
2018-06-08T22:33:27.000Z
2022-03-30T00:25:56.000Z
SlnBin/Stub/pe32/Emulator.asm
willjgit/pe-union
49ac5bb478057ee791934ffe3736975a3e6ab7d9
[ "BSD-2-Clause", "BSD-3-Clause" ]
20
2018-05-26T12:49:25.000Z
2022-02-06T14:34:54.000Z
SlnBin/Stub/pe32/Emulator.asm
willjgit/pe-union
49ac5bb478057ee791934ffe3736975a3e6ab7d9
[ "BSD-2-Clause", "BSD-3-Clause" ]
97
2018-09-11T23:31:51.000Z
2022-03-10T05:54:55.000Z
proc DetectEmulator local Memory:DWORD local String[MAX_PATH + 1]:BYTE local ComputerName[MAX_PATH + 1]:BYTE local ComputerNameLength:DWORD local ExecutablePath[MAX_PATH + 1]:BYTE local ExecutableFileName[MAX_PATH + 1]:BYTE ; -------------------------------------------------------------------------- ; Allocating 100 MB of memory must work cinvoke malloc, 100 * 1024 * 1024 test eax, eax jz .emulator mov [Memory], eax ; Actually writing to memory is required to test the allocation cinvoke memset, [Memory], 0, 100 * 1024 * 1024 cinvoke free, [Memory] ; -------------------------------------------------------------------------- ; SetErrorMode return value must match previous value invoke SetErrorMode, 1024 invoke SetErrorMode, 0 cmp eax, 1024 jne .emulator ; -------------------------------------------------------------------------- ; VirtualAllocExNuma must work invoke VirtualAllocExNuma, -1, NULL, 1000, MEM_RESERVE or MEM_COMMIT, PAGE_READWRITE, 0 test eax, eax jz .emulator ; -------------------------------------------------------------------------- ; Get computer name mov [ComputerNameLength], MAX_PATH lea eax, [ComputerName] lea ebx, [ComputerNameLength] invoke GetComputerNameA, eax, ebx test eax, eax jz @f ; Computer name is not "NfZtFbPfH" lea eax, [String] lodstra 'NfZtFbPfH' lea ebx, [ComputerName] cinvoke strcmp, eax, ebx test eax, eax jz .emulator ; Computer name is not "ELICZ" lea eax, [String] lodstra 'ELICZ' lea ebx, [ComputerName] cinvoke strcmp, eax, ebx test eax, eax jz .emulator ; Computer name is not "tz" lea eax, [String] lodstra 'tz' lea ebx, [ComputerName] cinvoke strcmp, eax, ebx test eax, eax jz .emulator ; Computer name is not "MAIN" lea eax, [String] lodstra 'MAIN' lea ebx, [ComputerName] cinvoke strcmp, eax, ebx test eax, eax jz .emulator @@: ; -------------------------------------------------------------------------- ; Get executable path lea eax, [ExecutablePath] invoke GetModuleFileNameA, NULL, eax, MAX_PATH cmp eax, 0 jle @f ; Get executable filename lea eax, [ExecutablePath] invoke PathFindFileNameA, eax lea ebx, [ExecutableFileName] invoke strcpy, ebx, eax ; Executable path is not "C:\[...]\mwsmpl.exe" lea eax, [String] lodstra 'C:\Documents and Settings\Administrator\My Documents\mwsmpl.exe' lea ebx, [ExecutablePath] cinvoke strcmpi, eax, ebx test eax, eax jz .emulator ; Executable path is not "C:\SELF.EXE" lea eax, [String] lodstra 'C:\SELF.EXE' lea ebx, [ExecutablePath] cinvoke strcmpi, eax, ebx test eax, eax jz .emulator ; Executable filename is not "myapp.exe" lea eax, [String] lodstra 'myapp.exe' lea ebx, [ExecutableFileName] cinvoke strcmpi, eax, ebx test eax, eax jz .emulator @@: ; -------------------------------------------------------------------------- ; No emulator detected xor eax, eax ret .emulator: ; Running in emulator invoke ExitProcess, 0 ret endp
23.4375
88
0.602667
bd6f4f869adc7097321cb31d74dbd0f75b16047a
314
asm
Assembly
sprite/sprite.asm
Admiral-Enigma/C64-playground
9ca935cb349925035169642514b51e2655f4d2b8
[ "MIT" ]
null
null
null
sprite/sprite.asm
Admiral-Enigma/C64-playground
9ca935cb349925035169642514b51e2655f4d2b8
[ "MIT" ]
null
null
null
sprite/sprite.asm
Admiral-Enigma/C64-playground
9ca935cb349925035169642514b51e2655f4d2b8
[ "MIT" ]
null
null
null
processor 6502 org $1000 check: jsr $ffe1 beq end lda #$80 sta $07f8 lda #$01 sta $d015 lda #$80 ;128 pixels sta $d000 ;X sta $d001 ;Y jmp check end: rts ;LOADING ASSETS org $2000 incbin "customsprite.prg"
11.214286
30
0.468153
2099beab81071ca21d35abeb38c96defbd087a97
600
asm
Assembly
boot.asm
thet2mmy/os1
5ff2c9220222bf5b242d1b42bf6c95cc24bb197b
[ "BSD-2-Clause" ]
null
null
null
boot.asm
thet2mmy/os1
5ff2c9220222bf5b242d1b42bf6c95cc24bb197b
[ "BSD-2-Clause" ]
null
null
null
boot.asm
thet2mmy/os1
5ff2c9220222bf5b242d1b42bf6c95cc24bb197b
[ "BSD-2-Clause" ]
null
null
null
; thank you Ciro Santilli on github for this really simple ; bootloader; i have adapted it for OS_1 ; adapted from here: ; https://github.com/cirosantilli/x86-bare-metal-examples/blob/1f6af9021283dc01f2247efbb6aa9217363fbf07/nasm/bios_disk_load.asm org 0x7C00 start: jmp boot_begin boot_begin: mov ah,0xE mov al,'.' int 0x10 mov al,0xD int 0x10 mov al,0xA int 0x10 ; load stage2 from disk mov ah, 0x02 mov al, 1 mov dl, 0x80 mov ch, 0 mov dh, 0 mov cl, 2 mov bx, begin int 0x13 ; jump to it jmp begin times ((0x200 - 2) - ($ - $$)) db 0x00 dw 0xAA55 %include 'os_1.asm'
15.789474
127
0.705
bd616ee9c609301ddac985d5d397bdef9a6cfa62
8,095
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_1414.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_1414.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_1414.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 %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x10df1, %r15 nop nop nop nop nop xor %rdx, %rdx movb $0x61, (%r15) nop nop nop nop nop dec %r10 lea addresses_WC_ht+0x1ce71, %r8 nop nop nop xor %rax, %rax movups (%r8), %xmm7 vpextrq $0, %xmm7, %rdx cmp %rdx, %rdx lea addresses_normal_ht+0x167f9, %r15 mfence movb $0x61, (%r15) nop nop nop nop nop sub %rax, %rax lea addresses_WT_ht+0x41f1, %rax and %r10, %r10 mov $0x6162636465666768, %rbx movq %rbx, %xmm4 vmovups %ymm4, (%rax) nop nop nop nop inc %rax lea addresses_D_ht+0xd3c3, %rsi lea addresses_UC_ht+0x5c51, %rdi cmp %rbx, %rbx mov $104, %rcx rep movsb nop and %rsi, %rsi lea addresses_normal_ht+0x65f1, %rsi nop nop nop add $56182, %r15 mov $0x6162636465666768, %r9 movq %r9, %xmm7 vmovups %ymm7, (%rsi) inc %rsi lea addresses_D_ht+0x15f1, %rsi lea addresses_A_ht+0x1cd31, %rdi nop nop nop nop nop sub %r15, %r15 mov $117, %rcx rep movsl nop nop nop cmp $51550, %r10 lea addresses_UC_ht+0x7e92, %rsi nop sub $27274, %rax mov (%rsi), %bx nop nop nop nop nop cmp $20347, %r9 lea addresses_normal_ht+0x1b171, %rsi lea addresses_UC_ht+0x15b69, %rdi nop nop nop nop nop xor $54560, %r10 mov $90, %rcx rep movsw nop nop nop nop nop cmp %r9, %r9 lea addresses_A_ht+0x9269, %rsi lea addresses_normal_ht+0x3801, %rdi clflush (%rsi) nop nop nop nop nop cmp %r15, %r15 mov $94, %rcx rep movsb sub $20035, %r9 lea addresses_D_ht+0x7351, %rsi lea addresses_WC_ht+0x16131, %rdi nop nop and %r10, %r10 mov $10, %rcx rep movsq nop nop nop cmp %rsi, %rsi lea addresses_WC_ht+0x1a9f1, %rsi inc %r9 mov (%rsi), %r10d nop and $13172, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r14 push %r8 push %rbx push %rcx // Store lea addresses_RW+0x83f1, %r11 nop sub $44929, %r14 movl $0x51525354, (%r11) nop nop add $56359, %r12 // Store lea addresses_A+0x105f1, %rcx clflush (%rcx) nop nop nop nop sub $27618, %rbx movb $0x51, (%rcx) and $19055, %rcx // Store lea addresses_D+0xc5f1, %r8 clflush (%r8) nop nop nop nop nop sub %rcx, %rcx mov $0x5152535455565758, %r14 movq %r14, %xmm1 movups %xmm1, (%r8) nop nop nop nop nop cmp $39442, %r11 // Load lea addresses_D+0x1d5f1, %r14 nop nop nop nop sub $63662, %rcx mov (%r14), %ebx nop nop and %r11, %r11 // Faulty Load lea addresses_UC+0x65f1, %rbx xor %r13, %r13 movb (%rbx), %cl lea oracles, %rbx and $0xff, %rcx shlq $12, %rcx mov (%rbx,%rcx,1), %rcx pop %rcx pop %rbx pop %r8 pop %r14 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
31.870079
2,999
0.655713
7652981eba41c202f6d8e1140ad2c56435b785de
284
asm
Assembly
programs/oeis/093/A093718.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/093/A093718.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/093/A093718.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A093718: a(n) = (n mod 3)^(n mod 2). ; 1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2,1,1,1,0,1,2 mov $1,$0 mod $0,2 mod $1,3 pow $1,$0
35.5
205
0.496479
d533cd22aa13fb8e7692d3171f269074e98347ab
388
asm
Assembly
programs/oeis/236/A236283.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/236/A236283.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/236/A236283.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A236283: The number of orbits of triples of {1,2,...,n} under the action of the dihedral group of order 2n. ; 1,4,5,10,13,20,25,34,41,52,61,74,85,100,113,130,145,164,181,202,221,244,265,290,313,340,365,394,421,452,481,514,545,580,613,650,685,724,761,802,841,884,925,970,1013,1060,1105,1154,1201,1252 mov $1,$0 add $1,$0 add $1,2 div $1,4 mul $1,3 mov $2,$0 bin $2,2 add $1,$2 add $1,1
29.846154
191
0.680412
64d6092e1e0a7b84cf4cf3bb4fbe6c7abe11cc29
337
asm
Assembly
programs/oeis/075/A075354.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/075/A075354.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/075/A075354.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A075354: Final term of n-th group in A075352. ; 1,2,4,6,9,12,16,20,25,30,36,42,48,55,62,70,78,87,96,106,116,127,138,150,162,174,187,200,214,228,243,258,274,290,307,324,342,360,379,398,417,437,457,478,499,521,543,566,589,613,637,662,687,713,739,766,793 add $0,1 cal $0,75353 ; Initial term of n-th group in A075352. mov $1,$0 sub $1,1
42.125
205
0.700297
69c5eaedc795ae7d5886f4e984e50ba18adf8c81
13,075
asm
Assembly
vp8/encoder/x86/sad_ssse3.asm
CM-Archive/android_external_libvpx
76e0247ec867fcc232fc79f21e9bf85d3c3a5a3f
[ "BSD-3-Clause" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
vp8/encoder/x86/sad_ssse3.asm
CM-Archive/android_external_libvpx
76e0247ec867fcc232fc79f21e9bf85d3c3a5a3f
[ "BSD-3-Clause" ]
null
null
null
vp8/encoder/x86/sad_ssse3.asm
CM-Archive/android_external_libvpx
76e0247ec867fcc232fc79f21e9bf85d3c3a5a3f
[ "BSD-3-Clause" ]
4
2015-09-16T11:40:39.000Z
2019-06-10T01:08:46.000Z
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing project authors may ; be found in the AUTHORS file in the root of the source tree. ; %include "vpx_ports/x86_abi_support.asm" %macro PROCESS_16X2X3 1 %if %1 movdqa xmm0, XMMWORD PTR [rsi] lddqu xmm5, XMMWORD PTR [rdi] lddqu xmm6, XMMWORD PTR [rdi+1] lddqu xmm7, XMMWORD PTR [rdi+2] psadbw xmm5, xmm0 psadbw xmm6, xmm0 psadbw xmm7, xmm0 %else movdqa xmm0, XMMWORD PTR [rsi] lddqu xmm1, XMMWORD PTR [rdi] lddqu xmm2, XMMWORD PTR [rdi+1] lddqu xmm3, XMMWORD PTR [rdi+2] psadbw xmm1, xmm0 psadbw xmm2, xmm0 psadbw xmm3, xmm0 paddw xmm5, xmm1 paddw xmm6, xmm2 paddw xmm7, xmm3 %endif movdqa xmm0, XMMWORD PTR [rsi+rax] lddqu xmm1, XMMWORD PTR [rdi+rdx] lddqu xmm2, XMMWORD PTR [rdi+rdx+1] lddqu xmm3, XMMWORD PTR [rdi+rdx+2] lea rsi, [rsi+rax*2] lea rdi, [rdi+rdx*2] psadbw xmm1, xmm0 psadbw xmm2, xmm0 psadbw xmm3, xmm0 paddw xmm5, xmm1 paddw xmm6, xmm2 paddw xmm7, xmm3 %endmacro %macro PROCESS_16X2X3_OFFSET 2 %if %1 movdqa xmm0, XMMWORD PTR [rsi] movdqa xmm4, XMMWORD PTR [rdi] movdqa xmm7, XMMWORD PTR [rdi+16] movdqa xmm5, xmm7 palignr xmm5, xmm4, %2 movdqa xmm6, xmm7 palignr xmm6, xmm4, (%2+1) palignr xmm7, xmm4, (%2+2) psadbw xmm5, xmm0 psadbw xmm6, xmm0 psadbw xmm7, xmm0 %else movdqa xmm0, XMMWORD PTR [rsi] movdqa xmm4, XMMWORD PTR [rdi] movdqa xmm3, XMMWORD PTR [rdi+16] movdqa xmm1, xmm3 palignr xmm1, xmm4, %2 movdqa xmm2, xmm3 palignr xmm2, xmm4, (%2+1) palignr xmm3, xmm4, (%2+2) psadbw xmm1, xmm0 psadbw xmm2, xmm0 psadbw xmm3, xmm0 paddw xmm5, xmm1 paddw xmm6, xmm2 paddw xmm7, xmm3 %endif movdqa xmm0, XMMWORD PTR [rsi+rax] movdqa xmm4, XMMWORD PTR [rdi+rdx] movdqa xmm3, XMMWORD PTR [rdi+rdx+16] movdqa xmm1, xmm3 palignr xmm1, xmm4, %2 movdqa xmm2, xmm3 palignr xmm2, xmm4, (%2+1) palignr xmm3, xmm4, (%2+2) lea rsi, [rsi+rax*2] lea rdi, [rdi+rdx*2] psadbw xmm1, xmm0 psadbw xmm2, xmm0 psadbw xmm3, xmm0 paddw xmm5, xmm1 paddw xmm6, xmm2 paddw xmm7, xmm3 %endmacro %macro PROCESS_16X16X3_OFFSET 2 %2_aligned_by_%1: sub rdi, %1 PROCESS_16X2X3_OFFSET 1, %1 PROCESS_16X2X3_OFFSET 0, %1 PROCESS_16X2X3_OFFSET 0, %1 PROCESS_16X2X3_OFFSET 0, %1 PROCESS_16X2X3_OFFSET 0, %1 PROCESS_16X2X3_OFFSET 0, %1 PROCESS_16X2X3_OFFSET 0, %1 PROCESS_16X2X3_OFFSET 0, %1 jmp %2_store_off %endmacro %macro PROCESS_16X8X3_OFFSET 2 %2_aligned_by_%1: sub rdi, %1 PROCESS_16X2X3_OFFSET 1, %1 PROCESS_16X2X3_OFFSET 0, %1 PROCESS_16X2X3_OFFSET 0, %1 PROCESS_16X2X3_OFFSET 0, %1 jmp %2_store_off %endmacro ;void int vp8_sad16x16x3_ssse3( ; unsigned char *src_ptr, ; int src_stride, ; unsigned char *ref_ptr, ; int ref_stride, ; int *results) global sym(vp8_sad16x16x3_ssse3) sym(vp8_sad16x16x3_ssse3): push rbp mov rbp, rsp SHADOW_ARGS_TO_STACK 5 push rsi push rdi push rcx ; end prolog mov rsi, arg(0) ;src_ptr mov rdi, arg(2) ;ref_ptr mov rdx, 0xf and rdx, rdi jmp vp8_sad16x16x3_ssse3_skiptable vp8_sad16x16x3_ssse3_jumptable: dd vp8_sad16x16x3_ssse3_aligned_by_0 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_1 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_2 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_3 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_4 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_5 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_6 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_7 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_8 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_9 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_10 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_11 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_12 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_13 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_14 - vp8_sad16x16x3_ssse3_do_jump dd vp8_sad16x16x3_ssse3_aligned_by_15 - vp8_sad16x16x3_ssse3_do_jump vp8_sad16x16x3_ssse3_skiptable: call vp8_sad16x16x3_ssse3_do_jump vp8_sad16x16x3_ssse3_do_jump: pop rcx ; get the address of do_jump mov rax, vp8_sad16x16x3_ssse3_jumptable - vp8_sad16x16x3_ssse3_do_jump add rax, rcx ; get the absolute address of vp8_sad16x16x3_ssse3_jumptable movsxd rax, dword [rax + 4*rdx] ; get the 32 bit offset from the jumptable add rcx, rax movsxd rax, dword ptr arg(1) ;src_stride movsxd rdx, dword ptr arg(3) ;ref_stride jmp rcx PROCESS_16X16X3_OFFSET 0, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 1, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 2, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 3, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 4, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 5, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 6, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 7, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 8, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 9, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 10, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 11, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 12, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 13, vp8_sad16x16x3_ssse3 PROCESS_16X16X3_OFFSET 14, vp8_sad16x16x3_ssse3 vp8_sad16x16x3_ssse3_aligned_by_15: PROCESS_16X2X3 1 PROCESS_16X2X3 0 PROCESS_16X2X3 0 PROCESS_16X2X3 0 PROCESS_16X2X3 0 PROCESS_16X2X3 0 PROCESS_16X2X3 0 PROCESS_16X2X3 0 vp8_sad16x16x3_ssse3_store_off: mov rdi, arg(4) ;Results movq xmm0, xmm5 psrldq xmm5, 8 paddw xmm0, xmm5 movd [rdi], xmm0 ;- movq xmm0, xmm6 psrldq xmm6, 8 paddw xmm0, xmm6 movd [rdi+4], xmm0 ;- movq xmm0, xmm7 psrldq xmm7, 8 paddw xmm0, xmm7 movd [rdi+8], xmm0 ; begin epilog pop rcx pop rdi pop rsi UNSHADOW_ARGS pop rbp ret ;void int vp8_sad16x8x3_ssse3( ; unsigned char *src_ptr, ; int src_stride, ; unsigned char *ref_ptr, ; int ref_stride, ; int *results) global sym(vp8_sad16x8x3_ssse3) sym(vp8_sad16x8x3_ssse3): push rbp mov rbp, rsp SHADOW_ARGS_TO_STACK 5 push rsi push rdi push rcx ; end prolog mov rsi, arg(0) ;src_ptr mov rdi, arg(2) ;ref_ptr mov rdx, 0xf and rdx, rdi jmp vp8_sad16x8x3_ssse3_skiptable vp8_sad16x8x3_ssse3_jumptable: dd vp8_sad16x8x3_ssse3_aligned_by_0 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_1 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_2 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_3 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_4 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_5 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_6 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_7 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_8 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_9 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_10 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_11 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_12 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_13 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_14 - vp8_sad16x8x3_ssse3_do_jump dd vp8_sad16x8x3_ssse3_aligned_by_15 - vp8_sad16x8x3_ssse3_do_jump vp8_sad16x8x3_ssse3_skiptable: call vp8_sad16x8x3_ssse3_do_jump vp8_sad16x8x3_ssse3_do_jump: pop rcx ; get the address of do_jump mov rax, vp8_sad16x8x3_ssse3_jumptable - vp8_sad16x8x3_ssse3_do_jump add rax, rcx ; get the absolute address of vp8_sad16x8x3_ssse3_jumptable movsxd rax, dword [rax + 4*rdx] ; get the 32 bit offset from the jumptable add rcx, rax movsxd rax, dword ptr arg(1) ;src_stride movsxd rdx, dword ptr arg(3) ;ref_stride jmp rcx PROCESS_16X8X3_OFFSET 0, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 1, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 2, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 3, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 4, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 5, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 6, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 7, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 8, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 9, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 10, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 11, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 12, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 13, vp8_sad16x8x3_ssse3 PROCESS_16X8X3_OFFSET 14, vp8_sad16x8x3_ssse3 vp8_sad16x8x3_ssse3_aligned_by_15: PROCESS_16X2X3 1 PROCESS_16X2X3 0 PROCESS_16X2X3 0 PROCESS_16X2X3 0 vp8_sad16x8x3_ssse3_store_off: mov rdi, arg(4) ;Results movq xmm0, xmm5 psrldq xmm5, 8 paddw xmm0, xmm5 movd [rdi], xmm0 ;- movq xmm0, xmm6 psrldq xmm6, 8 paddw xmm0, xmm6 movd [rdi+4], xmm0 ;- movq xmm0, xmm7 psrldq xmm7, 8 paddw xmm0, xmm7 movd [rdi+8], xmm0 ; begin epilog pop rcx pop rdi pop rsi UNSHADOW_ARGS pop rbp ret
35.626703
95
0.569254
15f55aa0bb5e31c50646ff99269cd27b62001204
967
asm
Assembly
spel64/memory.asm
sub1to/spel64
f83689c29294f9882c3f4ceea5504021584c423e
[ "MIT" ]
4
2019-11-06T17:41:02.000Z
2021-05-20T01:39:22.000Z
spel64/memory.asm
sub1to/spel64
f83689c29294f9882c3f4ceea5504021584c423e
[ "MIT" ]
null
null
null
spel64/memory.asm
sub1to/spel64
f83689c29294f9882c3f4ceea5504021584c423e
[ "MIT" ]
2
2020-03-01T16:21:29.000Z
2021-11-28T00:00:18.000Z
.DATA .CODE PUBLIC _memcpy PUBLIC _zeromem PUBLIC _memset _memcpy PROC push rsi push rdi push r8 cld ; clear directional flag mov rsi, rdx ; source mov rdi, rcx ; dest ; Move 8 bytes at a time mov rcx, r8 shr rcx, 3 ; Divide length by 8 rep movsq ; Move remainder 1 byte at a time pop rcx and rcx, 7 ; Get remainder of the division rep movsb pop rdi pop rsi ret _memcpy ENDP _zeromem PROC push rdi push rdx cld ; clear directional flag mov rdi, rcx ; dest xor rax, rax ; val ; Move 8 bytes at a time mov rcx, rdx shr rcx, 3 ; Divide length by 8 rep stosq ; Move remainder 1 byte at a time pop rcx and rcx, 7 ; Get remainder of the division rep stosb pop rdi ret _zeromem ENDP _memset PROC push rdi cld ; clear directional flag xor rax, rax mov al, dl ; val mov rdi, rcx ; dest mov rcx, r8 ; len rep stosb pop rdi ret _memset ENDP END
13.246575
45
0.640124
2f6c772a666fa30ec9d7938100b47f1e5064ebaf
46,320
asm
Assembly
echo.asm
spencer-hann/xv6-pdx
551aa7b91057ac3db95a9d3a5e6257a8867bb3c0
[ "MIT-0" ]
1
2019-05-13T05:36:44.000Z
2019-05-13T05:36:44.000Z
echo.asm
spencer-hann/xv6-pdx
551aa7b91057ac3db95a9d3a5e6257a8867bb3c0
[ "MIT-0" ]
null
null
null
echo.asm
spencer-hann/xv6-pdx
551aa7b91057ac3db95a9d3a5e6257a8867bb3c0
[ "MIT-0" ]
1
2021-01-24T00:20:58.000Z
2021-01-24T00:20:58.000Z
_echo: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 53 push %ebx e: 51 push %ecx f: 83 ec 10 sub $0x10,%esp 12: 89 cb mov %ecx,%ebx int i; for(i = 1; i < argc; i++) 14: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 1b: eb 3c jmp 59 <main+0x59> printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n"); 1d: 8b 45 f4 mov -0xc(%ebp),%eax 20: 83 c0 01 add $0x1,%eax 23: 3b 03 cmp (%ebx),%eax 25: 7d 07 jge 2e <main+0x2e> 27: ba fc 08 00 00 mov $0x8fc,%edx 2c: eb 05 jmp 33 <main+0x33> 2e: ba fe 08 00 00 mov $0x8fe,%edx 33: 8b 45 f4 mov -0xc(%ebp),%eax 36: 8d 0c 85 00 00 00 00 lea 0x0(,%eax,4),%ecx 3d: 8b 43 04 mov 0x4(%ebx),%eax 40: 01 c8 add %ecx,%eax 42: 8b 00 mov (%eax),%eax 44: 52 push %edx 45: 50 push %eax 46: 68 00 09 00 00 push $0x900 4b: 6a 01 push $0x1 4d: e8 f4 04 00 00 call 546 <printf> 52: 83 c4 10 add $0x10,%esp int main(int argc, char *argv[]) { int i; for(i = 1; i < argc; i++) 55: 83 45 f4 01 addl $0x1,-0xc(%ebp) 59: 8b 45 f4 mov -0xc(%ebp),%eax 5c: 3b 03 cmp (%ebx),%eax 5e: 7c bd jl 1d <main+0x1d> printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n"); exit(); 60: e8 2a 03 00 00 call 38f <exit> 00000065 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 65: 55 push %ebp 66: 89 e5 mov %esp,%ebp 68: 57 push %edi 69: 53 push %ebx asm volatile("cld; rep stosb" : 6a: 8b 4d 08 mov 0x8(%ebp),%ecx 6d: 8b 55 10 mov 0x10(%ebp),%edx 70: 8b 45 0c mov 0xc(%ebp),%eax 73: 89 cb mov %ecx,%ebx 75: 89 df mov %ebx,%edi 77: 89 d1 mov %edx,%ecx 79: fc cld 7a: f3 aa rep stos %al,%es:(%edi) 7c: 89 ca mov %ecx,%edx 7e: 89 fb mov %edi,%ebx 80: 89 5d 08 mov %ebx,0x8(%ebp) 83: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 86: 90 nop 87: 5b pop %ebx 88: 5f pop %edi 89: 5d pop %ebp 8a: c3 ret 0000008b <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 8b: 55 push %ebp 8c: 89 e5 mov %esp,%ebp 8e: 83 ec 10 sub $0x10,%esp char *os; os = s; 91: 8b 45 08 mov 0x8(%ebp),%eax 94: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 97: 90 nop 98: 8b 45 08 mov 0x8(%ebp),%eax 9b: 8d 50 01 lea 0x1(%eax),%edx 9e: 89 55 08 mov %edx,0x8(%ebp) a1: 8b 55 0c mov 0xc(%ebp),%edx a4: 8d 4a 01 lea 0x1(%edx),%ecx a7: 89 4d 0c mov %ecx,0xc(%ebp) aa: 0f b6 12 movzbl (%edx),%edx ad: 88 10 mov %dl,(%eax) af: 0f b6 00 movzbl (%eax),%eax b2: 84 c0 test %al,%al b4: 75 e2 jne 98 <strcpy+0xd> ; return os; b6: 8b 45 fc mov -0x4(%ebp),%eax } b9: c9 leave ba: c3 ret 000000bb <strcmp>: int strcmp(const char *p, const char *q) { bb: 55 push %ebp bc: 89 e5 mov %esp,%ebp while(*p && *p == *q) be: eb 08 jmp c8 <strcmp+0xd> p++, q++; c0: 83 45 08 01 addl $0x1,0x8(%ebp) c4: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) c8: 8b 45 08 mov 0x8(%ebp),%eax cb: 0f b6 00 movzbl (%eax),%eax ce: 84 c0 test %al,%al d0: 74 10 je e2 <strcmp+0x27> d2: 8b 45 08 mov 0x8(%ebp),%eax d5: 0f b6 10 movzbl (%eax),%edx d8: 8b 45 0c mov 0xc(%ebp),%eax db: 0f b6 00 movzbl (%eax),%eax de: 38 c2 cmp %al,%dl e0: 74 de je c0 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; e2: 8b 45 08 mov 0x8(%ebp),%eax e5: 0f b6 00 movzbl (%eax),%eax e8: 0f b6 d0 movzbl %al,%edx eb: 8b 45 0c mov 0xc(%ebp),%eax ee: 0f b6 00 movzbl (%eax),%eax f1: 0f b6 c0 movzbl %al,%eax f4: 29 c2 sub %eax,%edx f6: 89 d0 mov %edx,%eax } f8: 5d pop %ebp f9: c3 ret 000000fa <strlen>: uint strlen(char *s) { fa: 55 push %ebp fb: 89 e5 mov %esp,%ebp fd: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 100: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 107: eb 04 jmp 10d <strlen+0x13> 109: 83 45 fc 01 addl $0x1,-0x4(%ebp) 10d: 8b 55 fc mov -0x4(%ebp),%edx 110: 8b 45 08 mov 0x8(%ebp),%eax 113: 01 d0 add %edx,%eax 115: 0f b6 00 movzbl (%eax),%eax 118: 84 c0 test %al,%al 11a: 75 ed jne 109 <strlen+0xf> ; return n; 11c: 8b 45 fc mov -0x4(%ebp),%eax } 11f: c9 leave 120: c3 ret 00000121 <memset>: void* memset(void *dst, int c, uint n) { 121: 55 push %ebp 122: 89 e5 mov %esp,%ebp stosb(dst, c, n); 124: 8b 45 10 mov 0x10(%ebp),%eax 127: 50 push %eax 128: ff 75 0c pushl 0xc(%ebp) 12b: ff 75 08 pushl 0x8(%ebp) 12e: e8 32 ff ff ff call 65 <stosb> 133: 83 c4 0c add $0xc,%esp return dst; 136: 8b 45 08 mov 0x8(%ebp),%eax } 139: c9 leave 13a: c3 ret 0000013b <strchr>: char* strchr(const char *s, char c) { 13b: 55 push %ebp 13c: 89 e5 mov %esp,%ebp 13e: 83 ec 04 sub $0x4,%esp 141: 8b 45 0c mov 0xc(%ebp),%eax 144: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 147: eb 14 jmp 15d <strchr+0x22> if(*s == c) 149: 8b 45 08 mov 0x8(%ebp),%eax 14c: 0f b6 00 movzbl (%eax),%eax 14f: 3a 45 fc cmp -0x4(%ebp),%al 152: 75 05 jne 159 <strchr+0x1e> return (char*)s; 154: 8b 45 08 mov 0x8(%ebp),%eax 157: eb 13 jmp 16c <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 159: 83 45 08 01 addl $0x1,0x8(%ebp) 15d: 8b 45 08 mov 0x8(%ebp),%eax 160: 0f b6 00 movzbl (%eax),%eax 163: 84 c0 test %al,%al 165: 75 e2 jne 149 <strchr+0xe> if(*s == c) return (char*)s; return 0; 167: b8 00 00 00 00 mov $0x0,%eax } 16c: c9 leave 16d: c3 ret 0000016e <gets>: char* gets(char *buf, int max) { 16e: 55 push %ebp 16f: 89 e5 mov %esp,%ebp 171: 83 ec 18 sub $0x18,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 174: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 17b: eb 42 jmp 1bf <gets+0x51> cc = read(0, &c, 1); 17d: 83 ec 04 sub $0x4,%esp 180: 6a 01 push $0x1 182: 8d 45 ef lea -0x11(%ebp),%eax 185: 50 push %eax 186: 6a 00 push $0x0 188: e8 1a 02 00 00 call 3a7 <read> 18d: 83 c4 10 add $0x10,%esp 190: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 193: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 197: 7e 33 jle 1cc <gets+0x5e> break; buf[i++] = c; 199: 8b 45 f4 mov -0xc(%ebp),%eax 19c: 8d 50 01 lea 0x1(%eax),%edx 19f: 89 55 f4 mov %edx,-0xc(%ebp) 1a2: 89 c2 mov %eax,%edx 1a4: 8b 45 08 mov 0x8(%ebp),%eax 1a7: 01 c2 add %eax,%edx 1a9: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1ad: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 1af: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1b3: 3c 0a cmp $0xa,%al 1b5: 74 16 je 1cd <gets+0x5f> 1b7: 0f b6 45 ef movzbl -0x11(%ebp),%eax 1bb: 3c 0d cmp $0xd,%al 1bd: 74 0e je 1cd <gets+0x5f> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 1bf: 8b 45 f4 mov -0xc(%ebp),%eax 1c2: 83 c0 01 add $0x1,%eax 1c5: 3b 45 0c cmp 0xc(%ebp),%eax 1c8: 7c b3 jl 17d <gets+0xf> 1ca: eb 01 jmp 1cd <gets+0x5f> cc = read(0, &c, 1); if(cc < 1) break; 1cc: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 1cd: 8b 55 f4 mov -0xc(%ebp),%edx 1d0: 8b 45 08 mov 0x8(%ebp),%eax 1d3: 01 d0 add %edx,%eax 1d5: c6 00 00 movb $0x0,(%eax) return buf; 1d8: 8b 45 08 mov 0x8(%ebp),%eax } 1db: c9 leave 1dc: c3 ret 000001dd <stat>: int stat(char *n, struct stat *st) { 1dd: 55 push %ebp 1de: 89 e5 mov %esp,%ebp 1e0: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 1e3: 83 ec 08 sub $0x8,%esp 1e6: 6a 00 push $0x0 1e8: ff 75 08 pushl 0x8(%ebp) 1eb: e8 df 01 00 00 call 3cf <open> 1f0: 83 c4 10 add $0x10,%esp 1f3: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 1f6: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 1fa: 79 07 jns 203 <stat+0x26> return -1; 1fc: b8 ff ff ff ff mov $0xffffffff,%eax 201: eb 25 jmp 228 <stat+0x4b> r = fstat(fd, st); 203: 83 ec 08 sub $0x8,%esp 206: ff 75 0c pushl 0xc(%ebp) 209: ff 75 f4 pushl -0xc(%ebp) 20c: e8 d6 01 00 00 call 3e7 <fstat> 211: 83 c4 10 add $0x10,%esp 214: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 217: 83 ec 0c sub $0xc,%esp 21a: ff 75 f4 pushl -0xc(%ebp) 21d: e8 95 01 00 00 call 3b7 <close> 222: 83 c4 10 add $0x10,%esp return r; 225: 8b 45 f0 mov -0x10(%ebp),%eax } 228: c9 leave 229: c3 ret 0000022a <atoi>: int atoi(const char *s) { 22a: 55 push %ebp 22b: 89 e5 mov %esp,%ebp 22d: 83 ec 10 sub $0x10,%esp int n, sign; n = 0; 230: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while (*s == ' ') s++; 237: eb 04 jmp 23d <atoi+0x13> 239: 83 45 08 01 addl $0x1,0x8(%ebp) 23d: 8b 45 08 mov 0x8(%ebp),%eax 240: 0f b6 00 movzbl (%eax),%eax 243: 3c 20 cmp $0x20,%al 245: 74 f2 je 239 <atoi+0xf> sign = (*s == '-') ? -1 : 1; 247: 8b 45 08 mov 0x8(%ebp),%eax 24a: 0f b6 00 movzbl (%eax),%eax 24d: 3c 2d cmp $0x2d,%al 24f: 75 07 jne 258 <atoi+0x2e> 251: b8 ff ff ff ff mov $0xffffffff,%eax 256: eb 05 jmp 25d <atoi+0x33> 258: b8 01 00 00 00 mov $0x1,%eax 25d: 89 45 f8 mov %eax,-0x8(%ebp) if (*s == '+' || *s == '-') 260: 8b 45 08 mov 0x8(%ebp),%eax 263: 0f b6 00 movzbl (%eax),%eax 266: 3c 2b cmp $0x2b,%al 268: 74 0a je 274 <atoi+0x4a> 26a: 8b 45 08 mov 0x8(%ebp),%eax 26d: 0f b6 00 movzbl (%eax),%eax 270: 3c 2d cmp $0x2d,%al 272: 75 2b jne 29f <atoi+0x75> s++; 274: 83 45 08 01 addl $0x1,0x8(%ebp) while('0' <= *s && *s <= '9') 278: eb 25 jmp 29f <atoi+0x75> n = n*10 + *s++ - '0'; 27a: 8b 55 fc mov -0x4(%ebp),%edx 27d: 89 d0 mov %edx,%eax 27f: c1 e0 02 shl $0x2,%eax 282: 01 d0 add %edx,%eax 284: 01 c0 add %eax,%eax 286: 89 c1 mov %eax,%ecx 288: 8b 45 08 mov 0x8(%ebp),%eax 28b: 8d 50 01 lea 0x1(%eax),%edx 28e: 89 55 08 mov %edx,0x8(%ebp) 291: 0f b6 00 movzbl (%eax),%eax 294: 0f be c0 movsbl %al,%eax 297: 01 c8 add %ecx,%eax 299: 83 e8 30 sub $0x30,%eax 29c: 89 45 fc mov %eax,-0x4(%ebp) n = 0; while (*s == ' ') s++; sign = (*s == '-') ? -1 : 1; if (*s == '+' || *s == '-') s++; while('0' <= *s && *s <= '9') 29f: 8b 45 08 mov 0x8(%ebp),%eax 2a2: 0f b6 00 movzbl (%eax),%eax 2a5: 3c 2f cmp $0x2f,%al 2a7: 7e 0a jle 2b3 <atoi+0x89> 2a9: 8b 45 08 mov 0x8(%ebp),%eax 2ac: 0f b6 00 movzbl (%eax),%eax 2af: 3c 39 cmp $0x39,%al 2b1: 7e c7 jle 27a <atoi+0x50> n = n*10 + *s++ - '0'; return sign*n; 2b3: 8b 45 f8 mov -0x8(%ebp),%eax 2b6: 0f af 45 fc imul -0x4(%ebp),%eax } 2ba: c9 leave 2bb: c3 ret 000002bc <atoo>: int atoo(const char *s) { 2bc: 55 push %ebp 2bd: 89 e5 mov %esp,%ebp 2bf: 83 ec 10 sub $0x10,%esp int n, sign; n = 0; 2c2: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while (*s == ' ') s++; 2c9: eb 04 jmp 2cf <atoo+0x13> 2cb: 83 45 08 01 addl $0x1,0x8(%ebp) 2cf: 8b 45 08 mov 0x8(%ebp),%eax 2d2: 0f b6 00 movzbl (%eax),%eax 2d5: 3c 20 cmp $0x20,%al 2d7: 74 f2 je 2cb <atoo+0xf> sign = (*s == '-') ? -1 : 1; 2d9: 8b 45 08 mov 0x8(%ebp),%eax 2dc: 0f b6 00 movzbl (%eax),%eax 2df: 3c 2d cmp $0x2d,%al 2e1: 75 07 jne 2ea <atoo+0x2e> 2e3: b8 ff ff ff ff mov $0xffffffff,%eax 2e8: eb 05 jmp 2ef <atoo+0x33> 2ea: b8 01 00 00 00 mov $0x1,%eax 2ef: 89 45 f8 mov %eax,-0x8(%ebp) if (*s == '+' || *s == '-') 2f2: 8b 45 08 mov 0x8(%ebp),%eax 2f5: 0f b6 00 movzbl (%eax),%eax 2f8: 3c 2b cmp $0x2b,%al 2fa: 74 0a je 306 <atoo+0x4a> 2fc: 8b 45 08 mov 0x8(%ebp),%eax 2ff: 0f b6 00 movzbl (%eax),%eax 302: 3c 2d cmp $0x2d,%al 304: 75 27 jne 32d <atoo+0x71> s++; 306: 83 45 08 01 addl $0x1,0x8(%ebp) while('0' <= *s && *s <= '7') 30a: eb 21 jmp 32d <atoo+0x71> n = n*8 + *s++ - '0'; 30c: 8b 45 fc mov -0x4(%ebp),%eax 30f: 8d 0c c5 00 00 00 00 lea 0x0(,%eax,8),%ecx 316: 8b 45 08 mov 0x8(%ebp),%eax 319: 8d 50 01 lea 0x1(%eax),%edx 31c: 89 55 08 mov %edx,0x8(%ebp) 31f: 0f b6 00 movzbl (%eax),%eax 322: 0f be c0 movsbl %al,%eax 325: 01 c8 add %ecx,%eax 327: 83 e8 30 sub $0x30,%eax 32a: 89 45 fc mov %eax,-0x4(%ebp) n = 0; while (*s == ' ') s++; sign = (*s == '-') ? -1 : 1; if (*s == '+' || *s == '-') s++; while('0' <= *s && *s <= '7') 32d: 8b 45 08 mov 0x8(%ebp),%eax 330: 0f b6 00 movzbl (%eax),%eax 333: 3c 2f cmp $0x2f,%al 335: 7e 0a jle 341 <atoo+0x85> 337: 8b 45 08 mov 0x8(%ebp),%eax 33a: 0f b6 00 movzbl (%eax),%eax 33d: 3c 37 cmp $0x37,%al 33f: 7e cb jle 30c <atoo+0x50> n = n*8 + *s++ - '0'; return sign*n; 341: 8b 45 f8 mov -0x8(%ebp),%eax 344: 0f af 45 fc imul -0x4(%ebp),%eax } 348: c9 leave 349: c3 ret 0000034a <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 34a: 55 push %ebp 34b: 89 e5 mov %esp,%ebp 34d: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 350: 8b 45 08 mov 0x8(%ebp),%eax 353: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 356: 8b 45 0c mov 0xc(%ebp),%eax 359: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 35c: eb 17 jmp 375 <memmove+0x2b> *dst++ = *src++; 35e: 8b 45 fc mov -0x4(%ebp),%eax 361: 8d 50 01 lea 0x1(%eax),%edx 364: 89 55 fc mov %edx,-0x4(%ebp) 367: 8b 55 f8 mov -0x8(%ebp),%edx 36a: 8d 4a 01 lea 0x1(%edx),%ecx 36d: 89 4d f8 mov %ecx,-0x8(%ebp) 370: 0f b6 12 movzbl (%edx),%edx 373: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 375: 8b 45 10 mov 0x10(%ebp),%eax 378: 8d 50 ff lea -0x1(%eax),%edx 37b: 89 55 10 mov %edx,0x10(%ebp) 37e: 85 c0 test %eax,%eax 380: 7f dc jg 35e <memmove+0x14> *dst++ = *src++; return vdst; 382: 8b 45 08 mov 0x8(%ebp),%eax } 385: c9 leave 386: c3 ret 00000387 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 387: b8 01 00 00 00 mov $0x1,%eax 38c: cd 40 int $0x40 38e: c3 ret 0000038f <exit>: SYSCALL(exit) 38f: b8 02 00 00 00 mov $0x2,%eax 394: cd 40 int $0x40 396: c3 ret 00000397 <wait>: SYSCALL(wait) 397: b8 03 00 00 00 mov $0x3,%eax 39c: cd 40 int $0x40 39e: c3 ret 0000039f <pipe>: SYSCALL(pipe) 39f: b8 04 00 00 00 mov $0x4,%eax 3a4: cd 40 int $0x40 3a6: c3 ret 000003a7 <read>: SYSCALL(read) 3a7: b8 05 00 00 00 mov $0x5,%eax 3ac: cd 40 int $0x40 3ae: c3 ret 000003af <write>: SYSCALL(write) 3af: b8 10 00 00 00 mov $0x10,%eax 3b4: cd 40 int $0x40 3b6: c3 ret 000003b7 <close>: SYSCALL(close) 3b7: b8 15 00 00 00 mov $0x15,%eax 3bc: cd 40 int $0x40 3be: c3 ret 000003bf <kill>: SYSCALL(kill) 3bf: b8 06 00 00 00 mov $0x6,%eax 3c4: cd 40 int $0x40 3c6: c3 ret 000003c7 <exec>: SYSCALL(exec) 3c7: b8 07 00 00 00 mov $0x7,%eax 3cc: cd 40 int $0x40 3ce: c3 ret 000003cf <open>: SYSCALL(open) 3cf: b8 0f 00 00 00 mov $0xf,%eax 3d4: cd 40 int $0x40 3d6: c3 ret 000003d7 <mknod>: SYSCALL(mknod) 3d7: b8 11 00 00 00 mov $0x11,%eax 3dc: cd 40 int $0x40 3de: c3 ret 000003df <unlink>: SYSCALL(unlink) 3df: b8 12 00 00 00 mov $0x12,%eax 3e4: cd 40 int $0x40 3e6: c3 ret 000003e7 <fstat>: SYSCALL(fstat) 3e7: b8 08 00 00 00 mov $0x8,%eax 3ec: cd 40 int $0x40 3ee: c3 ret 000003ef <link>: SYSCALL(link) 3ef: b8 13 00 00 00 mov $0x13,%eax 3f4: cd 40 int $0x40 3f6: c3 ret 000003f7 <mkdir>: SYSCALL(mkdir) 3f7: b8 14 00 00 00 mov $0x14,%eax 3fc: cd 40 int $0x40 3fe: c3 ret 000003ff <chdir>: SYSCALL(chdir) 3ff: b8 09 00 00 00 mov $0x9,%eax 404: cd 40 int $0x40 406: c3 ret 00000407 <dup>: SYSCALL(dup) 407: b8 0a 00 00 00 mov $0xa,%eax 40c: cd 40 int $0x40 40e: c3 ret 0000040f <getpid>: SYSCALL(getpid) 40f: b8 0b 00 00 00 mov $0xb,%eax 414: cd 40 int $0x40 416: c3 ret 00000417 <sbrk>: SYSCALL(sbrk) 417: b8 0c 00 00 00 mov $0xc,%eax 41c: cd 40 int $0x40 41e: c3 ret 0000041f <sleep>: SYSCALL(sleep) 41f: b8 0d 00 00 00 mov $0xd,%eax 424: cd 40 int $0x40 426: c3 ret 00000427 <uptime>: SYSCALL(uptime) 427: b8 0e 00 00 00 mov $0xe,%eax 42c: cd 40 int $0x40 42e: c3 ret 0000042f <halt>: SYSCALL(halt) 42f: b8 16 00 00 00 mov $0x16,%eax 434: cd 40 int $0x40 436: c3 ret 00000437 <date>: SYSCALL(date) 437: b8 17 00 00 00 mov $0x17,%eax 43c: cd 40 int $0x40 43e: c3 ret 0000043f <getuid>: SYSCALL(getuid) 43f: b8 18 00 00 00 mov $0x18,%eax 444: cd 40 int $0x40 446: c3 ret 00000447 <getgid>: SYSCALL(getgid) 447: b8 19 00 00 00 mov $0x19,%eax 44c: cd 40 int $0x40 44e: c3 ret 0000044f <getppid>: SYSCALL(getppid) 44f: b8 1a 00 00 00 mov $0x1a,%eax 454: cd 40 int $0x40 456: c3 ret 00000457 <setuid>: SYSCALL(setuid) 457: b8 1b 00 00 00 mov $0x1b,%eax 45c: cd 40 int $0x40 45e: c3 ret 0000045f <setgid>: SYSCALL(setgid) 45f: b8 1c 00 00 00 mov $0x1c,%eax 464: cd 40 int $0x40 466: c3 ret 00000467 <getprocs>: SYSCALL(getprocs) 467: b8 1d 00 00 00 mov $0x1d,%eax 46c: cd 40 int $0x40 46e: c3 ret 0000046f <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 46f: 55 push %ebp 470: 89 e5 mov %esp,%ebp 472: 83 ec 18 sub $0x18,%esp 475: 8b 45 0c mov 0xc(%ebp),%eax 478: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 47b: 83 ec 04 sub $0x4,%esp 47e: 6a 01 push $0x1 480: 8d 45 f4 lea -0xc(%ebp),%eax 483: 50 push %eax 484: ff 75 08 pushl 0x8(%ebp) 487: e8 23 ff ff ff call 3af <write> 48c: 83 c4 10 add $0x10,%esp } 48f: 90 nop 490: c9 leave 491: c3 ret 00000492 <printint>: static void printint(int fd, int xx, int base, int sgn) { 492: 55 push %ebp 493: 89 e5 mov %esp,%ebp 495: 53 push %ebx 496: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 499: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 4a0: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 4a4: 74 17 je 4bd <printint+0x2b> 4a6: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 4aa: 79 11 jns 4bd <printint+0x2b> neg = 1; 4ac: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 4b3: 8b 45 0c mov 0xc(%ebp),%eax 4b6: f7 d8 neg %eax 4b8: 89 45 ec mov %eax,-0x14(%ebp) 4bb: eb 06 jmp 4c3 <printint+0x31> } else { x = xx; 4bd: 8b 45 0c mov 0xc(%ebp),%eax 4c0: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 4c3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 4ca: 8b 4d f4 mov -0xc(%ebp),%ecx 4cd: 8d 41 01 lea 0x1(%ecx),%eax 4d0: 89 45 f4 mov %eax,-0xc(%ebp) 4d3: 8b 5d 10 mov 0x10(%ebp),%ebx 4d6: 8b 45 ec mov -0x14(%ebp),%eax 4d9: ba 00 00 00 00 mov $0x0,%edx 4de: f7 f3 div %ebx 4e0: 89 d0 mov %edx,%eax 4e2: 0f b6 80 78 0b 00 00 movzbl 0xb78(%eax),%eax 4e9: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 4ed: 8b 5d 10 mov 0x10(%ebp),%ebx 4f0: 8b 45 ec mov -0x14(%ebp),%eax 4f3: ba 00 00 00 00 mov $0x0,%edx 4f8: f7 f3 div %ebx 4fa: 89 45 ec mov %eax,-0x14(%ebp) 4fd: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 501: 75 c7 jne 4ca <printint+0x38> if(neg) 503: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 507: 74 2d je 536 <printint+0xa4> buf[i++] = '-'; 509: 8b 45 f4 mov -0xc(%ebp),%eax 50c: 8d 50 01 lea 0x1(%eax),%edx 50f: 89 55 f4 mov %edx,-0xc(%ebp) 512: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 517: eb 1d jmp 536 <printint+0xa4> putc(fd, buf[i]); 519: 8d 55 dc lea -0x24(%ebp),%edx 51c: 8b 45 f4 mov -0xc(%ebp),%eax 51f: 01 d0 add %edx,%eax 521: 0f b6 00 movzbl (%eax),%eax 524: 0f be c0 movsbl %al,%eax 527: 83 ec 08 sub $0x8,%esp 52a: 50 push %eax 52b: ff 75 08 pushl 0x8(%ebp) 52e: e8 3c ff ff ff call 46f <putc> 533: 83 c4 10 add $0x10,%esp buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 536: 83 6d f4 01 subl $0x1,-0xc(%ebp) 53a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 53e: 79 d9 jns 519 <printint+0x87> putc(fd, buf[i]); } 540: 90 nop 541: 8b 5d fc mov -0x4(%ebp),%ebx 544: c9 leave 545: c3 ret 00000546 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 546: 55 push %ebp 547: 89 e5 mov %esp,%ebp 549: 83 ec 28 sub $0x28,%esp char *s; int c, i, state; uint *ap; state = 0; 54c: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 553: 8d 45 0c lea 0xc(%ebp),%eax 556: 83 c0 04 add $0x4,%eax 559: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 55c: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 563: e9 59 01 00 00 jmp 6c1 <printf+0x17b> c = fmt[i] & 0xff; 568: 8b 55 0c mov 0xc(%ebp),%edx 56b: 8b 45 f0 mov -0x10(%ebp),%eax 56e: 01 d0 add %edx,%eax 570: 0f b6 00 movzbl (%eax),%eax 573: 0f be c0 movsbl %al,%eax 576: 25 ff 00 00 00 and $0xff,%eax 57b: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 57e: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 582: 75 2c jne 5b0 <printf+0x6a> if(c == '%'){ 584: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 588: 75 0c jne 596 <printf+0x50> state = '%'; 58a: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 591: e9 27 01 00 00 jmp 6bd <printf+0x177> } else { putc(fd, c); 596: 8b 45 e4 mov -0x1c(%ebp),%eax 599: 0f be c0 movsbl %al,%eax 59c: 83 ec 08 sub $0x8,%esp 59f: 50 push %eax 5a0: ff 75 08 pushl 0x8(%ebp) 5a3: e8 c7 fe ff ff call 46f <putc> 5a8: 83 c4 10 add $0x10,%esp 5ab: e9 0d 01 00 00 jmp 6bd <printf+0x177> } } else if(state == '%'){ 5b0: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 5b4: 0f 85 03 01 00 00 jne 6bd <printf+0x177> if(c == 'd'){ 5ba: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 5be: 75 1e jne 5de <printf+0x98> printint(fd, *ap, 10, 1); 5c0: 8b 45 e8 mov -0x18(%ebp),%eax 5c3: 8b 00 mov (%eax),%eax 5c5: 6a 01 push $0x1 5c7: 6a 0a push $0xa 5c9: 50 push %eax 5ca: ff 75 08 pushl 0x8(%ebp) 5cd: e8 c0 fe ff ff call 492 <printint> 5d2: 83 c4 10 add $0x10,%esp ap++; 5d5: 83 45 e8 04 addl $0x4,-0x18(%ebp) 5d9: e9 d8 00 00 00 jmp 6b6 <printf+0x170> } else if(c == 'x' || c == 'p'){ 5de: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 5e2: 74 06 je 5ea <printf+0xa4> 5e4: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 5e8: 75 1e jne 608 <printf+0xc2> printint(fd, *ap, 16, 0); 5ea: 8b 45 e8 mov -0x18(%ebp),%eax 5ed: 8b 00 mov (%eax),%eax 5ef: 6a 00 push $0x0 5f1: 6a 10 push $0x10 5f3: 50 push %eax 5f4: ff 75 08 pushl 0x8(%ebp) 5f7: e8 96 fe ff ff call 492 <printint> 5fc: 83 c4 10 add $0x10,%esp ap++; 5ff: 83 45 e8 04 addl $0x4,-0x18(%ebp) 603: e9 ae 00 00 00 jmp 6b6 <printf+0x170> } else if(c == 's'){ 608: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 60c: 75 43 jne 651 <printf+0x10b> s = (char*)*ap; 60e: 8b 45 e8 mov -0x18(%ebp),%eax 611: 8b 00 mov (%eax),%eax 613: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 616: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 61a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 61e: 75 25 jne 645 <printf+0xff> s = "(null)"; 620: c7 45 f4 05 09 00 00 movl $0x905,-0xc(%ebp) while(*s != 0){ 627: eb 1c jmp 645 <printf+0xff> putc(fd, *s); 629: 8b 45 f4 mov -0xc(%ebp),%eax 62c: 0f b6 00 movzbl (%eax),%eax 62f: 0f be c0 movsbl %al,%eax 632: 83 ec 08 sub $0x8,%esp 635: 50 push %eax 636: ff 75 08 pushl 0x8(%ebp) 639: e8 31 fe ff ff call 46f <putc> 63e: 83 c4 10 add $0x10,%esp s++; 641: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 645: 8b 45 f4 mov -0xc(%ebp),%eax 648: 0f b6 00 movzbl (%eax),%eax 64b: 84 c0 test %al,%al 64d: 75 da jne 629 <printf+0xe3> 64f: eb 65 jmp 6b6 <printf+0x170> putc(fd, *s); s++; } } else if(c == 'c'){ 651: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 655: 75 1d jne 674 <printf+0x12e> putc(fd, *ap); 657: 8b 45 e8 mov -0x18(%ebp),%eax 65a: 8b 00 mov (%eax),%eax 65c: 0f be c0 movsbl %al,%eax 65f: 83 ec 08 sub $0x8,%esp 662: 50 push %eax 663: ff 75 08 pushl 0x8(%ebp) 666: e8 04 fe ff ff call 46f <putc> 66b: 83 c4 10 add $0x10,%esp ap++; 66e: 83 45 e8 04 addl $0x4,-0x18(%ebp) 672: eb 42 jmp 6b6 <printf+0x170> } else if(c == '%'){ 674: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 678: 75 17 jne 691 <printf+0x14b> putc(fd, c); 67a: 8b 45 e4 mov -0x1c(%ebp),%eax 67d: 0f be c0 movsbl %al,%eax 680: 83 ec 08 sub $0x8,%esp 683: 50 push %eax 684: ff 75 08 pushl 0x8(%ebp) 687: e8 e3 fd ff ff call 46f <putc> 68c: 83 c4 10 add $0x10,%esp 68f: eb 25 jmp 6b6 <printf+0x170> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 691: 83 ec 08 sub $0x8,%esp 694: 6a 25 push $0x25 696: ff 75 08 pushl 0x8(%ebp) 699: e8 d1 fd ff ff call 46f <putc> 69e: 83 c4 10 add $0x10,%esp putc(fd, c); 6a1: 8b 45 e4 mov -0x1c(%ebp),%eax 6a4: 0f be c0 movsbl %al,%eax 6a7: 83 ec 08 sub $0x8,%esp 6aa: 50 push %eax 6ab: ff 75 08 pushl 0x8(%ebp) 6ae: e8 bc fd ff ff call 46f <putc> 6b3: 83 c4 10 add $0x10,%esp } state = 0; 6b6: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 6bd: 83 45 f0 01 addl $0x1,-0x10(%ebp) 6c1: 8b 55 0c mov 0xc(%ebp),%edx 6c4: 8b 45 f0 mov -0x10(%ebp),%eax 6c7: 01 d0 add %edx,%eax 6c9: 0f b6 00 movzbl (%eax),%eax 6cc: 84 c0 test %al,%al 6ce: 0f 85 94 fe ff ff jne 568 <printf+0x22> putc(fd, c); } state = 0; } } } 6d4: 90 nop 6d5: c9 leave 6d6: c3 ret 000006d7 <free>: static Header base; static Header *freep; void free(void *ap) { 6d7: 55 push %ebp 6d8: 89 e5 mov %esp,%ebp 6da: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 6dd: 8b 45 08 mov 0x8(%ebp),%eax 6e0: 83 e8 08 sub $0x8,%eax 6e3: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6e6: a1 94 0b 00 00 mov 0xb94,%eax 6eb: 89 45 fc mov %eax,-0x4(%ebp) 6ee: eb 24 jmp 714 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 6f0: 8b 45 fc mov -0x4(%ebp),%eax 6f3: 8b 00 mov (%eax),%eax 6f5: 3b 45 fc cmp -0x4(%ebp),%eax 6f8: 77 12 ja 70c <free+0x35> 6fa: 8b 45 f8 mov -0x8(%ebp),%eax 6fd: 3b 45 fc cmp -0x4(%ebp),%eax 700: 77 24 ja 726 <free+0x4f> 702: 8b 45 fc mov -0x4(%ebp),%eax 705: 8b 00 mov (%eax),%eax 707: 3b 45 f8 cmp -0x8(%ebp),%eax 70a: 77 1a ja 726 <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 70c: 8b 45 fc mov -0x4(%ebp),%eax 70f: 8b 00 mov (%eax),%eax 711: 89 45 fc mov %eax,-0x4(%ebp) 714: 8b 45 f8 mov -0x8(%ebp),%eax 717: 3b 45 fc cmp -0x4(%ebp),%eax 71a: 76 d4 jbe 6f0 <free+0x19> 71c: 8b 45 fc mov -0x4(%ebp),%eax 71f: 8b 00 mov (%eax),%eax 721: 3b 45 f8 cmp -0x8(%ebp),%eax 724: 76 ca jbe 6f0 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ 726: 8b 45 f8 mov -0x8(%ebp),%eax 729: 8b 40 04 mov 0x4(%eax),%eax 72c: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 733: 8b 45 f8 mov -0x8(%ebp),%eax 736: 01 c2 add %eax,%edx 738: 8b 45 fc mov -0x4(%ebp),%eax 73b: 8b 00 mov (%eax),%eax 73d: 39 c2 cmp %eax,%edx 73f: 75 24 jne 765 <free+0x8e> bp->s.size += p->s.ptr->s.size; 741: 8b 45 f8 mov -0x8(%ebp),%eax 744: 8b 50 04 mov 0x4(%eax),%edx 747: 8b 45 fc mov -0x4(%ebp),%eax 74a: 8b 00 mov (%eax),%eax 74c: 8b 40 04 mov 0x4(%eax),%eax 74f: 01 c2 add %eax,%edx 751: 8b 45 f8 mov -0x8(%ebp),%eax 754: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; 757: 8b 45 fc mov -0x4(%ebp),%eax 75a: 8b 00 mov (%eax),%eax 75c: 8b 10 mov (%eax),%edx 75e: 8b 45 f8 mov -0x8(%ebp),%eax 761: 89 10 mov %edx,(%eax) 763: eb 0a jmp 76f <free+0x98> } else bp->s.ptr = p->s.ptr; 765: 8b 45 fc mov -0x4(%ebp),%eax 768: 8b 10 mov (%eax),%edx 76a: 8b 45 f8 mov -0x8(%ebp),%eax 76d: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ 76f: 8b 45 fc mov -0x4(%ebp),%eax 772: 8b 40 04 mov 0x4(%eax),%eax 775: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx 77c: 8b 45 fc mov -0x4(%ebp),%eax 77f: 01 d0 add %edx,%eax 781: 3b 45 f8 cmp -0x8(%ebp),%eax 784: 75 20 jne 7a6 <free+0xcf> p->s.size += bp->s.size; 786: 8b 45 fc mov -0x4(%ebp),%eax 789: 8b 50 04 mov 0x4(%eax),%edx 78c: 8b 45 f8 mov -0x8(%ebp),%eax 78f: 8b 40 04 mov 0x4(%eax),%eax 792: 01 c2 add %eax,%edx 794: 8b 45 fc mov -0x4(%ebp),%eax 797: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 79a: 8b 45 f8 mov -0x8(%ebp),%eax 79d: 8b 10 mov (%eax),%edx 79f: 8b 45 fc mov -0x4(%ebp),%eax 7a2: 89 10 mov %edx,(%eax) 7a4: eb 08 jmp 7ae <free+0xd7> } else p->s.ptr = bp; 7a6: 8b 45 fc mov -0x4(%ebp),%eax 7a9: 8b 55 f8 mov -0x8(%ebp),%edx 7ac: 89 10 mov %edx,(%eax) freep = p; 7ae: 8b 45 fc mov -0x4(%ebp),%eax 7b1: a3 94 0b 00 00 mov %eax,0xb94 } 7b6: 90 nop 7b7: c9 leave 7b8: c3 ret 000007b9 <morecore>: static Header* morecore(uint nu) { 7b9: 55 push %ebp 7ba: 89 e5 mov %esp,%ebp 7bc: 83 ec 18 sub $0x18,%esp char *p; Header *hp; if(nu < 4096) 7bf: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) 7c6: 77 07 ja 7cf <morecore+0x16> nu = 4096; 7c8: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); 7cf: 8b 45 08 mov 0x8(%ebp),%eax 7d2: c1 e0 03 shl $0x3,%eax 7d5: 83 ec 0c sub $0xc,%esp 7d8: 50 push %eax 7d9: e8 39 fc ff ff call 417 <sbrk> 7de: 83 c4 10 add $0x10,%esp 7e1: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) 7e4: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) 7e8: 75 07 jne 7f1 <morecore+0x38> return 0; 7ea: b8 00 00 00 00 mov $0x0,%eax 7ef: eb 26 jmp 817 <morecore+0x5e> hp = (Header*)p; 7f1: 8b 45 f4 mov -0xc(%ebp),%eax 7f4: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; 7f7: 8b 45 f0 mov -0x10(%ebp),%eax 7fa: 8b 55 08 mov 0x8(%ebp),%edx 7fd: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); 800: 8b 45 f0 mov -0x10(%ebp),%eax 803: 83 c0 08 add $0x8,%eax 806: 83 ec 0c sub $0xc,%esp 809: 50 push %eax 80a: e8 c8 fe ff ff call 6d7 <free> 80f: 83 c4 10 add $0x10,%esp return freep; 812: a1 94 0b 00 00 mov 0xb94,%eax } 817: c9 leave 818: c3 ret 00000819 <malloc>: void* malloc(uint nbytes) { 819: 55 push %ebp 81a: 89 e5 mov %esp,%ebp 81c: 83 ec 18 sub $0x18,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 81f: 8b 45 08 mov 0x8(%ebp),%eax 822: 83 c0 07 add $0x7,%eax 825: c1 e8 03 shr $0x3,%eax 828: 83 c0 01 add $0x1,%eax 82b: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ 82e: a1 94 0b 00 00 mov 0xb94,%eax 833: 89 45 f0 mov %eax,-0x10(%ebp) 836: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 83a: 75 23 jne 85f <malloc+0x46> base.s.ptr = freep = prevp = &base; 83c: c7 45 f0 8c 0b 00 00 movl $0xb8c,-0x10(%ebp) 843: 8b 45 f0 mov -0x10(%ebp),%eax 846: a3 94 0b 00 00 mov %eax,0xb94 84b: a1 94 0b 00 00 mov 0xb94,%eax 850: a3 8c 0b 00 00 mov %eax,0xb8c base.s.size = 0; 855: c7 05 90 0b 00 00 00 movl $0x0,0xb90 85c: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 85f: 8b 45 f0 mov -0x10(%ebp),%eax 862: 8b 00 mov (%eax),%eax 864: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ 867: 8b 45 f4 mov -0xc(%ebp),%eax 86a: 8b 40 04 mov 0x4(%eax),%eax 86d: 3b 45 ec cmp -0x14(%ebp),%eax 870: 72 4d jb 8bf <malloc+0xa6> if(p->s.size == nunits) 872: 8b 45 f4 mov -0xc(%ebp),%eax 875: 8b 40 04 mov 0x4(%eax),%eax 878: 3b 45 ec cmp -0x14(%ebp),%eax 87b: 75 0c jne 889 <malloc+0x70> prevp->s.ptr = p->s.ptr; 87d: 8b 45 f4 mov -0xc(%ebp),%eax 880: 8b 10 mov (%eax),%edx 882: 8b 45 f0 mov -0x10(%ebp),%eax 885: 89 10 mov %edx,(%eax) 887: eb 26 jmp 8af <malloc+0x96> else { p->s.size -= nunits; 889: 8b 45 f4 mov -0xc(%ebp),%eax 88c: 8b 40 04 mov 0x4(%eax),%eax 88f: 2b 45 ec sub -0x14(%ebp),%eax 892: 89 c2 mov %eax,%edx 894: 8b 45 f4 mov -0xc(%ebp),%eax 897: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; 89a: 8b 45 f4 mov -0xc(%ebp),%eax 89d: 8b 40 04 mov 0x4(%eax),%eax 8a0: c1 e0 03 shl $0x3,%eax 8a3: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; 8a6: 8b 45 f4 mov -0xc(%ebp),%eax 8a9: 8b 55 ec mov -0x14(%ebp),%edx 8ac: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; 8af: 8b 45 f0 mov -0x10(%ebp),%eax 8b2: a3 94 0b 00 00 mov %eax,0xb94 return (void*)(p + 1); 8b7: 8b 45 f4 mov -0xc(%ebp),%eax 8ba: 83 c0 08 add $0x8,%eax 8bd: eb 3b jmp 8fa <malloc+0xe1> } if(p == freep) 8bf: a1 94 0b 00 00 mov 0xb94,%eax 8c4: 39 45 f4 cmp %eax,-0xc(%ebp) 8c7: 75 1e jne 8e7 <malloc+0xce> if((p = morecore(nunits)) == 0) 8c9: 83 ec 0c sub $0xc,%esp 8cc: ff 75 ec pushl -0x14(%ebp) 8cf: e8 e5 fe ff ff call 7b9 <morecore> 8d4: 83 c4 10 add $0x10,%esp 8d7: 89 45 f4 mov %eax,-0xc(%ebp) 8da: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8de: 75 07 jne 8e7 <malloc+0xce> return 0; 8e0: b8 00 00 00 00 mov $0x0,%eax 8e5: eb 13 jmp 8fa <malloc+0xe1> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 8e7: 8b 45 f4 mov -0xc(%ebp),%eax 8ea: 89 45 f0 mov %eax,-0x10(%ebp) 8ed: 8b 45 f4 mov -0xc(%ebp),%eax 8f0: 8b 00 mov (%eax),%eax 8f2: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } 8f5: e9 6d ff ff ff jmp 867 <malloc+0x4e> } 8fa: c9 leave 8fb: c3 ret
34.438662
60
0.418415
b708a4e0b304579743aeb70d030b644b634b5673
355
asm
Assembly
pwnlib/shellcraft/templates/i386/linux/i386_to_amd64.asm
alexpark07/pwntools
c86022e844c8264ba4c35ed1dd5d55f1c76be90b
[ "MIT" ]
1
2015-04-21T11:30:28.000Z
2015-04-21T11:30:28.000Z
pwnlib/shellcraft/templates/i386/linux/i386_to_amd64.asm
sigma-random/pwntools
ff0736201223a3456407726f6217e69a98c2de9a
[ "MIT" ]
null
null
null
pwnlib/shellcraft/templates/i386/linux/i386_to_amd64.asm
sigma-random/pwntools
ff0736201223a3456407726f6217e69a98c2de9a
[ "MIT" ]
null
null
null
<% from pwnlib.shellcraft import common %> <%docstring>Returns code to switch from i386 to amd64 mode.</%docstring> <% helper, end = common.label("helper"), common.label("end") %> [bits 32] push 0x33 ; This is the segment we want to go to call $+4 ${helper}: db 0xc0 add dword [esp], ${end} - ${helper} jmp far [esp] ${end}: [bits 64]
27.307692
72
0.633803
47525558bf67f3a709c748c1c87999644f084d8a
76
asm
Assembly
src/main/fragment/mos6502-common/vwum1=pwuz2_derefidx_vbuyy_minus_vwuc1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vwum1=pwuz2_derefidx_vbuyy_minus_vwuc1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vwum1=pwuz2_derefidx_vbuyy_minus_vwuc1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda ({z2}),y sec sbc #<{c1} sta {m1} iny lda ({z2}),y sbc #>{c1} sta {m1}+1
8.444444
12
0.513158
64843b19f58696563601e31616cac3b5cecb9b70
590
asm
Assembly
002-assembly/common-mmx.asm
dingjingmaster/learn-kernel
befb4ef7ff56145d268e79fe1d18a5c11433c11a
[ "MIT" ]
null
null
null
002-assembly/common-mmx.asm
dingjingmaster/learn-kernel
befb4ef7ff56145d268e79fe1d18a5c11433c11a
[ "MIT" ]
null
null
null
002-assembly/common-mmx.asm
dingjingmaster/learn-kernel
befb4ef7ff56145d268e79fe1d18a5c11433c11a
[ "MIT" ]
null
null
null
######################################################## # FileName : common-mmx.asm # Author : DingJing # Mail : dingjing@live.cn # Created Time : 2022年01月06日 星期四 11时56分53秒 ######################################################## .data w1: .word 1, 2, 3, 4 w5: .word 5, 6, 7, 8 result: .quad 0 .text .global _main _main: movq w1(%rip), %mm0 # move quadword w1-w4 to MM0 movq w5(%rip), %mm1 # move quadword w5-w8 to MM1 paddsw %mm1, %mm0 # add packed signed words movq %mm0, result(%rip) # move data to result movq $60, %rax xorq %rdi, %rdi syscall .end
22.692308
56
0.508475
6f8626ed0be0cc6d4f39c2a66175da618509642d
821
asm
Assembly
programs/oeis/168/A168010.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/168/A168010.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/168/A168010.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A168010: a(n) = Sum of all numbers of divisors of all numbers k such that n^2 <= k < (n+1)^2. ; 5,15,25,39,47,67,75,95,105,129,129,163,167,191,205,229,231,269,267,299,313,337,341,379,387,409,427,459,445,505,497,529,553,573,571,627,625,657,661,711,687,757,743,783,805,821,831,885,875,913,929,961,961,1011,1011,1043,1067,1095,1079,1159,1153,1171,1209,1227,1233,1289,1281,1331,1319,1389,1347,1431,1435,1447,1487,1507,1515,1579,1547,1615,1619,1651,1643,1721,1717,1753,1745,1821,1777,1867,1849,1899,1905,1945,1945,2017,1999,2039,2045,2101 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq $0,168011 ; a(n) = Sum of all numbers of divisors of all numbers < (n+1)^2. mul $0,2 mov $2,$3 mul $2,$0 add $1,$2 mov $4,$0 lpe min $5,1 mul $5,$4 sub $1,$5 sub $1,10 div $1,2 add $1,5 mov $0,$1
32.84
439
0.668697
b5e2a081622f1b12f67ec1ce75fbed96087ca523
1,758
asm
Assembly
masm(msdos)/menu2.asm
GioProyects/ensamblador
c5f42eb3661fa359885f8050495ed46f36a6bbf0
[ "MIT" ]
null
null
null
masm(msdos)/menu2.asm
GioProyects/ensamblador
c5f42eb3661fa359885f8050495ed46f36a6bbf0
[ "MIT" ]
null
null
null
masm(msdos)/menu2.asm
GioProyects/ensamblador
c5f42eb3661fa359885f8050495ed46f36a6bbf0
[ "MIT" ]
null
null
null
.model small .stack 100 .data toprow equ 00 botrow equ 07 lefcol equ 16 col db 00 row db 00 count db ? lines db 7 attrib db ? ninteen db 1 menu db 0c9h,17 dup(0cdh),0bbh db 0bah,'1.-Adress Record ',0bah db 0bah,'2.-Delete Record ',0bah db 0bah,'3.-Enter Order ',0bah db 0bah,'4.-Print Record ',0bah db 0bah,'5.-Adress Record ',0bah db 0bah,'6.-Update Account',0bah db 0bah,'7.-View Account',0bah db 0c8h,17 dup(0cdh),0bch prompt db 'to select an item use up/down arrow' db ' and pressed enter' db 10,13,09,'Press enter to exit' .code main proc far mov ax,@data mov ds,ax mov es,ax call limpiar_pantalla call menu_desplegar call salida main endp opcion_inverso proc near mov ah,00h mov al,row lea si,menu+1 add si,ax opcion_inverso endp limpiar_pantalla proc near mov ax,0600h mov bh,07h ;color rojo(4) sobre blanco(7) mov cx,0000 mov dx,184fh int 10h ret limpiar_pantalla endp salida proc near mov ax,4c00h int 21h ret salida endp menu_desplegar proc near ;mov row,toprow mov lines,09 lea si,menu b90: mov count,19 mov col,lefcol repetir: call posicion_cursor mov ah,09h mov al,[si] mov bh,0 ;pagina mov bl,17h ;atributo fondo cafe,con azul mov cx,01 int 10h inc col inc si dec count jnz repetir inc row dec lines jnz b90 ret menu_desplegar endp posicion_cursor proc near mov ah,02h mov bh,00 mov dh,row mov dl,col int 10h ret posicion_cursor endp end
17.938776
51
0.587031
e9264b233e52977c7d5175c1d75b2b4d5d520a83
459
asm
Assembly
programs/oeis/047/A047262.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/047/A047262.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/047/A047262.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A047262: Numbers that are congruent to {0, 2, 4, 5} mod 6. ; 0,2,4,5,6,8,10,11,12,14,16,17,18,20,22,23,24,26,28,29,30,32,34,35,36,38,40,41,42,44,46,47,48,50,52,53,54,56,58,59,60,62,64,65,66,68,70,71,72,74,76,77,78,80,82,83,84,86,88,89,90,92,94,95,96,98,100,101,102,104,106,107,108,110,112,113,114,116,118,119,120,122,124,125,126,128,130,131,132,134,136,137,138,140,142,143,144,146,148,149 mov $1,$0 div $1,2 add $1,$0 dif $0,2 mod $0,2 add $1,$0 mov $0,$1
41.727273
329
0.660131
e2395c1a4b34e0fd1a3a1e51d3269498d5fed4c0
5,690
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_2167.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_2167.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_2167.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 %r14 push %r8 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x11ad9, %r11 clflush (%r11) nop nop and $27150, %r14 mov (%r11), %bp nop nop nop add $14562, %r9 lea addresses_WT_ht+0x1e5ad, %rdx and %rbp, %rbp movb $0x61, (%rdx) nop nop nop nop nop xor %rbp, %rbp lea addresses_normal_ht+0x1b0ed, %r8 nop nop nop nop nop add $18449, %r9 mov $0x6162636465666768, %rbp movq %rbp, (%r8) nop cmp %r8, %r8 lea addresses_UC_ht+0x155ed, %rbp nop nop nop nop nop and $18163, %r13 movb $0x61, (%rbp) nop nop nop nop cmp %r14, %r14 lea addresses_D_ht+0x12841, %rsi lea addresses_A_ht+0xac0c, %rdi nop nop nop and %r13, %r13 mov $103, %rcx rep movsb nop nop cmp %r9, %r9 lea addresses_D_ht+0xb5ed, %rsi lea addresses_A_ht+0x11ced, %rdi nop nop sub %r8, %r8 mov $40, %rcx rep movsl nop add %rcx, %rcx lea addresses_UC_ht+0x889c, %r8 nop nop and %rdi, %rdi mov (%r8), %ecx nop nop nop nop nop add %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r8 push %r9 push %rax push %rcx push %rdx // Faulty Load lea addresses_normal+0x1cded, %r11 nop nop nop add $51356, %rax movaps (%r11), %xmm2 vpextrq $0, %xmm2, %r9 lea oracles, %rdx and $0xff, %r9 shlq $12, %r9 mov (%rdx,%r9,1), %r9 pop %rdx pop %rcx pop %rax pop %r9 pop %r8 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_normal', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, '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 */
39.241379
2,999
0.658348
3bfafa764f43b3b51ecaae5b0b9edccad364d052
703
asm
Assembly
oeis/133/A133673.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/133/A133673.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/133/A133673.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A133673: a(n) = n*L(n) + (n-1)*L(n-1) where L(n) is the Lucas number. ; 7,18,40,83,163,311,579,1060,1914,3419,6053,10637,18575,32262,55772,96019,164711,281635,480171,816536,1385262,2345083,3962185,6682393,11251543,18916026,31756624,53243795,89160619,149135759,249187923,415946572,693648930,1155732827,1924033517,3200555429,5320029791,8836815150,14668515716,24333231571,40341318767,66842022523,110690384955,183206923328,303078867798,501141866491,828258369169,1368293945905,2259483660199,3729602661474,6153842722168,10150026839507,16735207418035,27583153569767 add $0,2 mov $3,$0 lpb $0 sub $0,1 add $1,1 mov $2,$1 sub $3,2 add $3,$0 add $1,$3 mov $3,$2 add $3,4 lpe add $1,1 mov $0,$1
39.055556
488
0.768137
57634ff7dbb688daebdd3ca2706b4ba9e9c753a4
417
asm
Assembly
audio/music/aftertherivalfight.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
audio/music/aftertherivalfight.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
null
null
null
audio/music/aftertherivalfight.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
2
2021-08-11T19:47:07.000Z
2022-01-01T07:07:56.000Z
Music_AfterTheRivalFight: musicheader 4, 1, Music_AfterTheRivalFight_Ch1 musicheader 1, 2, Music_AfterTheRivalFight_Ch2 musicheader 1, 3, Music_AfterTheRivalFight_Ch3 musicheader 1, 4, Music_AfterTheRivalFight_Ch4 Music_AfterTheRivalFight_Ch1: Music_AfterTheRivalFight_Ch2: Music_AfterTheRivalFight_Ch3: Music_AfterTheRivalFight_Ch4: endchannel ; Duplicate of nothing.asm because of references upon replacement
32.076923
65
0.8753
57f7d85f33d20e2199e081a5326b9309b0265852
4,444
asm
Assembly
testc/cputest/f6f7.asm
krismuad/TOWNSEMU
49c098ecb4686a506a208e01271ed135c0c3c482
[ "BSD-3-Clause" ]
124
2020-03-17T05:49:47.000Z
2022-03-27T00:11:33.000Z
testc/cputest/f6f7.asm
krismuad/TOWNSEMU
49c098ecb4686a506a208e01271ed135c0c3c482
[ "BSD-3-Clause" ]
40
2020-05-24T12:50:43.000Z
2022-02-22T05:32:18.000Z
testc/cputest/f6f7.asm
krismuad/TOWNSEMU
49c098ecb4686a506a208e01271ed135c0c3c482
[ "BSD-3-Clause" ]
11
2020-05-26T17:52:04.000Z
2021-07-31T01:07:31.000Z
.386p ASSUME CS:CODE PUBLIC TEST_F6 PUBLIC TEST_F7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EFLAGS_CF EQU 00001H EFLAGS_PF EQU 00004H EFLAGS_AF EQU 00010H EFLAGS_ZF EQU 00040H EFLAGS_SF EQU 00080H EFLAGS_TRAP EQU 00100H EFLAGS_IF EQU 00200H EFLAGS_DF EQU 00400H EFLAGS_OF EQU 00800H EFLAGS_IOPL EQU 03000H EFLAGS_NF EQU 04000H EFLAGS_RF EQU 10000H EFLAGS_VF EQU 20000H EFLAGS_ALIGN_CHECK EQU 40000H ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CODE SEGMENT ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; case I486_OPCODE_F6_TEST_NOT_NEG_MUL_IMUL_DIV_IDIV: //=0xF6 ; case I486_OPCODE_F7_TEST_NOT_NEG_MUL_IMUL_DIV_IDIV: //=0xF7, ; void TEST_F6(unsigned int res[],unsigned int eax,unsigned int edx) TEST_F6 PROC PUSH EBP ; [EBP]=PrevEBP, [EBP+4]=EIP, [EIP+8]=ResultPtr, [EIP+12]=EAX, [EIP+16]=EDX MOV EBP,ESP PUSHAD MOV EDI,[EBP+8] MOV EAX,[EBP+12] MOV EDX,[EBP+16] AND EAX,0FFH AND EDX,0FFH PUSH EDX PUSH EAX NOT DL PUSHFD POP EBX AND EBX,0 MOV [EDI],EDX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EDX,[ESP+4]; NEG DL PUSHFD POP EBX AND EBX,EFLAGS_CF+EFLAGS_OF+EFLAGS_SF+EFLAGS_ZF+EFLAGS_PF MOV [EDI],EDX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EDX,[ESP+4]; MUL DL PUSHFD POP EBX AND EBX,EFLAGS_CF+EFLAGS_OF MOV [EDI],EAX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EDX,[ESP+4]; IMUL DL PUSHFD POP EBX AND EBX,EFLAGS_CF+EFLAGS_OF MOV [EDI],EAX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EDX,[ESP+4]; OR DL,4 ; Force it to be >=4 AND AH,3 ; Force it to be <4 DIV DL PUSHFD POP EBX AND EBX,0 MOV [EDI],EAX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EDX,[ESP+4]; OR DL,4 ; Force it to be >=4 AND DL,7FH AND AH,3 ; Force it to be <4 IDIV DL PUSHFD POP EBX AND EBX,0 MOV [EDI],EAX MOV [EDI+4],EBX LEA EDI,[EDI+8] POP EAX POP EDX POPAD POP EBP RET TEST_F6 ENDP ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; void TEST_F7(unsigned int res[],unsigned int eax,unsigned int edx) TEST_F7 PROC PUSH EBP ; [EBP]=PrevEBP, [EBP+4]=EIP, [EIP+8]=ResultPtr, [EIP+12]=EAX, [EIP+16]=EDX MOV EBP,ESP PUSHAD MOV EDI,[EBP+8] MOV EAX,[EBP+12] MOV EDX,[EBP+16] PUSH EDX PUSH EAX NOT EDX PUSHFD POP EBX AND EBX,0 MOV [EDI],EDX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EDX,[ESP+4]; NEG EDX PUSHFD POP EBX AND EBX,EFLAGS_CF+EFLAGS_OF+EFLAGS_SF+EFLAGS_ZF+EFLAGS_PF MOV [EDI],EDX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EDX,[ESP+4]; MUL EDX PUSHFD POP EBX AND EBX,EFLAGS_CF+EFLAGS_OF MOV [EDI],EAX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EDX,[ESP+4]; IMUL EDX PUSHFD POP EBX AND EBX,EFLAGS_CF+EFLAGS_OF MOV [EDI],EAX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EBX,[ESP+4]; XOR EDX,EDX OR EBX,1 ; Force it to be non-zero DIV EBX PUSHFD POP EBX AND EBX,0 MOV [EDI],EAX MOV [EDI+4],EBX LEA EDI,[EDI+8] MOV EAX,[ESP] MOV EBX,[ESP+4]; XOR EDX,EDX OR EBX,1 ; Force it to be non-zero, no IDIV overflow for 0x80000000 OR EAX,1 ; No -0x80000000 to avoid overflow CDQ IDIV EBX PUSHFD POP EBX AND EBX,0 MOV [EDI],EAX MOV [EDI+4],EBX LEA EDI,[EDI+8] POP EAX POP EDX POPAD POP EBP RET TEST_F7 ENDP ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; CODE ENDS END
18.065041
97
0.468947
b35e3c95a0240bb395618f73ec58a2432313055e
2,707
asm
Assembly
_maps/Collapsing Ledge.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
9
2021-01-15T13:47:53.000Z
2022-01-17T15:33:55.000Z
_maps/Collapsing Ledge.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
7
2021-01-14T02:18:48.000Z
2021-03-24T15:44:30.000Z
_maps/Collapsing Ledge.asm
kodishmediacenter/msu-md-sonic
3aa7c5e8add9660df2cd0eceaa214e7d59f2415c
[ "CC0-1.0" ]
2
2021-01-14T13:14:26.000Z
2021-01-29T17:46:04.000Z
; --------------------------------------------------------------------------- ; Sprite mappings - GHZ collapsing ledge ; --------------------------------------------------------------------------- Map_Ledge_internal: dc.w @left-Map_Ledge_internal dc.w @right-Map_Ledge_internal dc.w @leftsmash-Map_Ledge_internal dc.w @rightsmash-Map_Ledge_internal @left: dc.b $10 dc.b $C8, $E, 0, $57, $10 ; ledge facing left dc.b $D0, $D, 0, $63, $F0 dc.b $E0, $D, 0, $6B, $10 dc.b $E0, $D, 0, $73, $F0 dc.b $D8, 6, 0, $7B, $E0 dc.b $D8, 6, 0, $81, $D0 dc.b $F0, $D, 0, $87, $10 dc.b $F0, $D, 0, $8F, $F0 dc.b $F0, 5, 0, $97, $E0 dc.b $F0, 5, 0, $9B, $D0 dc.b 0, $D, 0, $9F, $10 dc.b 0, 5, 0, $A7, 0 dc.b 0, $D, 0, $AB, $E0 dc.b 0, 5, 0, $B3, $D0 dc.b $10, $D, 0, $AB, $10 dc.b $10, 5, 0, $B7, 0 @right: dc.b $10 dc.b $C8, $E, 0, $57, $10 ; ledge facing right dc.b $D0, $D, 0, $63, $F0 dc.b $E0, $D, 0, $6B, $10 dc.b $E0, $D, 0, $73, $F0 dc.b $D8, 6, 0, $7B, $E0 dc.b $D8, 6, 0, $BB, $D0 dc.b $F0, $D, 0, $87, $10 dc.b $F0, $D, 0, $8F, $F0 dc.b $F0, 5, 0, $97, $E0 dc.b $F0, 5, 0, $C1, $D0 dc.b 0, $D, 0, $9F, $10 dc.b 0, 5, 0, $A7, 0 dc.b 0, $D, 0, $AB, $E0 dc.b 0, 5, 0, $B7, $D0 dc.b $10, $D, 0, $AB, $10 dc.b $10, 5, 0, $B7, 0 @leftsmash: dc.b $19 dc.b $C8, 6, 0, $5D, $20 ; ledge facing left in pieces dc.b $C8, 6, 0, $57, $10 dc.b $D0, 5, 0, $67, 0 dc.b $D0, 5, 0, $63, $F0 dc.b $E0, 5, 0, $6F, $20 dc.b $E0, 5, 0, $6B, $10 dc.b $E0, 5, 0, $77, 0 dc.b $E0, 5, 0, $73, $F0 dc.b $D8, 6, 0, $7B, $E0 dc.b $D8, 6, 0, $81, $D0 dc.b $F0, 5, 0, $8B, $20 dc.b $F0, 5, 0, $87, $10 dc.b $F0, 5, 0, $93, 0 dc.b $F0, 5, 0, $8F, $F0 dc.b $F0, 5, 0, $97, $E0 dc.b $F0, 5, 0, $9B, $D0 dc.b 0, 5, 0, $8B, $20 dc.b 0, 5, 0, $8B, $10 dc.b 0, 5, 0, $A7, 0 dc.b 0, 5, 0, $AB, $F0 dc.b 0, 5, 0, $AB, $E0 dc.b 0, 5, 0, $B3, $D0 dc.b $10, 5, 0, $AB, $20 dc.b $10, 5, 0, $AB, $10 dc.b $10, 5, 0, $B7, 0 @rightsmash: dc.b $19 dc.b $C8, 6, 0, $5D, $20 ; ledge facing right in pieces dc.b $C8, 6, 0, $57, $10 dc.b $D0, 5, 0, $67, 0 dc.b $D0, 5, 0, $63, $F0 dc.b $E0, 5, 0, $6F, $20 dc.b $E0, 5, 0, $6B, $10 dc.b $E0, 5, 0, $77, 0 dc.b $E0, 5, 0, $73, $F0 dc.b $D8, 6, 0, $7B, $E0 dc.b $D8, 6, 0, $BB, $D0 dc.b $F0, 5, 0, $8B, $20 dc.b $F0, 5, 0, $87, $10 dc.b $F0, 5, 0, $93, 0 dc.b $F0, 5, 0, $8F, $F0 dc.b $F0, 5, 0, $97, $E0 dc.b $F0, 5, 0, $C1, $D0 dc.b 0, 5, 0, $8B, $20 dc.b 0, 5, 0, $8B, $10 dc.b 0, 5, 0, $A7, 0 dc.b 0, 5, 0, $AB, $F0 dc.b 0, 5, 0, $AB, $E0 dc.b 0, 5, 0, $B7, $D0 dc.b $10, 5, 0, $AB, $20 dc.b $10, 5, 0, $AB, $10 dc.b $10, 5, 0, $B7, 0 even
28.494737
77
0.428519
edbc6b4436783e4467c5f578a520fd6d7e195689
7,595
asm
Assembly
Transynther/x86/_processed/US/_ht_st_zr_un_/i9-9900K_12_0xa0_notsx.log_21571_1463.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_ht_st_zr_un_/i9-9900K_12_0xa0_notsx.log_21571_1463.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_ht_st_zr_un_/i9-9900K_12_0xa0_notsx.log_21571_1463.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x13063, %r10 nop nop nop sub %rdi, %rdi mov (%r10), %edx nop nop sub %r13, %r13 lea addresses_A_ht+0xb8c3, %r12 nop nop nop nop nop sub %r9, %r9 mov (%r12), %r13d xor $11058, %r10 lea addresses_UC_ht+0x3663, %rsi lea addresses_A_ht+0x102f3, %rdi clflush (%rdi) nop nop nop nop nop and $32806, %r9 mov $41, %rcx rep movsb nop nop nop nop dec %r9 lea addresses_A_ht+0x1bae3, %rsi lea addresses_WC_ht+0x39bb, %rdi nop nop sub $13477, %r9 mov $118, %rcx rep movsq nop nop cmp %rdx, %rdx lea addresses_WC_ht+0x1d6e3, %rsi nop dec %rdx mov (%rsi), %r9d nop nop sub $62598, %rsi lea addresses_WT_ht+0x74e3, %rsi nop nop nop nop inc %r12 mov $0x6162636465666768, %r9 movq %r9, %xmm2 movups %xmm2, (%rsi) nop nop nop nop add %r13, %r13 lea addresses_A_ht+0xce63, %rsi lea addresses_D_ht+0x4143, %rdi nop nop nop cmp %rdx, %rdx mov $118, %rcx rep movsw nop cmp $50549, %r12 lea addresses_WC_ht+0x164d3, %rsi lea addresses_normal_ht+0x1aae3, %rdi nop nop xor $8372, %r13 mov $9, %rcx rep movsq nop nop nop nop dec %r9 lea addresses_UC_ht+0x3c23, %rcx nop nop nop nop and %r10, %r10 mov (%rcx), %si nop nop nop and %rsi, %rsi lea addresses_D_ht+0x11887, %r13 sub $46340, %rcx mov (%r13), %r12 nop nop nop nop nop inc %rcx lea addresses_normal_ht+0x1971b, %rsi lea addresses_D_ht+0x181a3, %rdi nop nop nop nop nop and $60856, %r10 mov $43, %rcx rep movsl nop nop nop nop nop inc %r12 lea addresses_UC_ht+0x4ae3, %r10 nop nop cmp %r13, %r13 movb (%r10), %dl nop nop sub $25821, %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %r15 push %rbp push %rbx push %rsi // Store lea addresses_UC+0xc5c3, %r12 xor %rbp, %rbp movb $0x51, (%r12) nop nop nop inc %rsi // Store lea addresses_US+0x503, %rbx nop nop nop nop nop xor %r15, %r15 mov $0x5152535455565758, %rsi movq %rsi, %xmm3 movntdq %xmm3, (%rbx) nop nop nop nop nop xor $1576, %r10 // Faulty Load lea addresses_US+0x1aae3, %r12 nop nop nop dec %r10 movups (%r12), %xmm5 vpextrq $1, %xmm5, %r15 lea oracles, %r12 and $0xff, %r15 shlq $12, %r15 mov (%r12,%r15,1), %r15 pop %rsi pop %rbx pop %rbp pop %r15 pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 4}} [Faulty Load] {'src': {'type': 'addresses_US', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 4, 'NT': True, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 6}} {'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': True}} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': True}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'} {'08': 3, 'e8': 1, '48': 2442, '44': 13090, '45': 5853, 'b7': 1, '75': 3, '56': 2, '00': 176} 00 44 45 44 45 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 45 44 44 44 45 44 48 44 45 44 45 44 44 44 48 44 44 48 44 44 44 44 44 44 44 45 44 45 44 44 44 48 45 44 44 44 44 48 44 44 45 48 44 45 45 44 44 45 44 00 44 45 44 44 48 44 44 48 44 44 44 45 45 44 44 44 45 44 44 44 00 48 44 44 44 44 48 44 44 44 00 44 44 48 44 44 48 44 44 44 48 45 44 44 45 44 45 00 45 45 44 44 44 44 44 44 44 45 44 44 44 44 48 45 45 45 44 48 44 48 48 44 48 44 45 48 44 44 44 44 44 45 44 44 44 44 44 44 44 44 45 48 44 44 44 44 48 44 44 44 48 45 45 44 48 44 45 45 45 45 44 44 44 44 45 44 44 48 44 45 44 45 45 44 44 44 44 45 45 44 45 44 45 44 44 45 44 45 45 44 44 44 45 44 44 44 45 44 45 45 44 44 44 44 48 44 48 44 48 45 44 44 48 44 45 44 45 45 44 44 48 44 45 44 44 44 44 44 44 44 44 44 44 44 44 44 45 45 44 44 45 45 44 45 48 48 44 44 48 00 44 45 44 44 44 45 48 44 48 44 45 44 44 45 45 45 48 45 44 44 44 44 45 45 45 44 45 48 44 48 44 44 44 44 44 44 44 44 44 48 48 45 44 44 44 48 44 44 44 45 44 44 44 44 45 44 44 44 44 48 44 44 45 48 44 44 45 44 45 48 45 48 44 44 44 45 45 48 44 44 44 44 44 00 44 44 45 48 44 44 44 44 44 48 44 45 44 44 44 45 44 44 44 44 44 44 45 44 44 44 44 44 44 44 45 48 00 44 44 44 44 44 44 45 44 44 45 44 44 45 44 45 44 45 45 44 44 44 45 44 44 44 44 44 00 48 45 44 45 48 44 44 44 44 44 44 44 48 44 48 45 48 48 44 48 44 00 44 45 45 44 44 44 44 44 44 00 45 44 44 45 48 44 44 44 45 48 44 48 44 44 44 45 44 44 48 44 44 44 48 45 44 44 44 44 48 45 44 44 45 44 44 45 48 48 45 44 45 44 45 44 45 44 45 45 48 48 45 44 48 44 45 48 45 45 44 45 44 44 48 48 44 44 44 44 48 44 48 44 44 44 44 44 45 44 45 44 44 44 45 44 45 44 45 44 45 45 45 44 44 44 44 44 44 48 45 45 44 45 44 44 44 44 48 48 44 44 44 44 48 44 44 45 44 45 44 45 48 44 44 45 44 44 45 48 44 45 44 44 44 45 44 44 44 44 44 45 44 44 00 44 44 44 44 44 44 45 48 44 44 44 45 44 44 45 44 45 44 48 48 44 45 44 44 45 44 44 44 48 44 45 44 45 44 44 45 44 44 44 44 44 44 44 44 48 44 44 45 44 45 44 44 44 44 45 44 44 48 48 44 45 44 44 45 44 44 44 44 44 45 44 44 48 48 44 44 44 44 44 44 48 44 44 44 45 44 44 45 45 44 45 44 44 44 44 45 44 48 44 45 44 44 44 44 44 44 48 45 44 48 44 44 44 44 44 44 44 45 44 44 45 44 44 48 48 44 44 44 44 44 45 44 44 44 44 44 44 44 45 44 44 45 45 44 44 44 44 45 44 44 44 44 44 45 44 44 45 44 45 48 44 45 45 48 45 45 44 44 44 44 45 44 48 44 45 44 44 45 48 45 44 44 45 48 45 00 44 44 44 48 48 44 45 44 44 45 44 44 44 45 44 45 45 48 45 44 45 00 48 45 48 44 44 44 45 44 44 44 44 44 44 44 44 44 44 45 44 45 44 45 44 44 45 45 48 44 48 44 48 44 44 44 44 44 44 44 45 44 44 44 44 48 45 48 44 44 44 48 44 44 44 48 44 44 44 45 44 44 44 44 48 44 44 44 44 00 45 44 44 45 44 44 45 45 44 45 44 44 44 45 45 44 44 44 44 44 45 45 44 44 45 45 44 45 44 44 44 44 48 44 45 48 44 44 48 45 44 44 45 44 45 44 45 44 44 45 44 48 44 45 44 44 45 44 45 48 44 45 44 45 44 48 44 00 44 44 44 45 44 44 44 44 44 44 48 44 45 44 44 44 45 00 44 44 44 45 44 45 44 48 44 44 44 44 45 48 44 45 45 45 44 45 44 48 44 44 44 45 48 48 44 48 44 48 45 44 44 45 45 44 44 48 48 44 44 48 45 */
32.457265
2,999
0.653983
9ef3b7c769b427f3a92fb82f32c7bb9be6f8a99c
694,121
asm
Assembly
kernel.asm
Nazariy995/xv6
972970f59b952ff10a3b20966fc3e044f052ebd8
[ "MIT-0" ]
null
null
null
kernel.asm
Nazariy995/xv6
972970f59b952ff10a3b20966fc3e044f052ebd8
[ "MIT-0" ]
null
null
null
kernel.asm
Nazariy995/xv6
972970f59b952ff10a3b20966fc3e044f052ebd8
[ "MIT-0" ]
null
null
null
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # Entering xv6 on boot processor, with paging off. .globl entry entry: # Turn on page size extension for 4Mbyte pages movl %cr4, %eax 8010000c: 0f 20 e0 mov %cr4,%eax orl $(CR4_PSE), %eax 8010000f: 83 c8 10 or $0x10,%eax movl %eax, %cr4 80100012: 0f 22 e0 mov %eax,%cr4 # Set page directory movl $(V2P_WO(entrypgdir)), %eax 80100015: b8 00 a0 10 00 mov $0x10a000,%eax movl %eax, %cr3 8010001a: 0f 22 d8 mov %eax,%cr3 # Turn on paging. movl %cr0, %eax 8010001d: 0f 20 c0 mov %cr0,%eax orl $(CR0_PG|CR0_WP), %eax 80100020: 0d 00 00 01 80 or $0x80010000,%eax movl %eax, %cr0 80100025: 0f 22 c0 mov %eax,%cr0 # Set up the stack pointer. movl $(stack + KSTACKSIZE), %esp 80100028: bc 50 c6 10 80 mov $0x8010c650,%esp # Jump to main(), and switch to executing at # high addresses. The indirect call is needed because # the assembler produces a PC-relative instruction # for a direct jump. mov $main, %eax 8010002d: b8 8f 38 10 80 mov $0x8010388f,%eax jmp *%eax 80100032: ff e0 jmp *%eax 80100034 <binit>: struct buf head; } bcache; void binit(void) { 80100034: 55 push %ebp 80100035: 89 e5 mov %esp,%ebp 80100037: 83 ec 18 sub $0x18,%esp struct buf *b; initlock(&bcache.lock, "bcache"); 8010003a: 83 ec 08 sub $0x8,%esp 8010003d: 68 50 85 10 80 push $0x80108550 80100042: 68 60 c6 10 80 push $0x8010c660 80100047: e8 bc 4f 00 00 call 80105008 <initlock> 8010004c: 83 c4 10 add $0x10,%esp //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; 8010004f: c7 05 70 05 11 80 64 movl $0x80110564,0x80110570 80100056: 05 11 80 bcache.head.next = &bcache.head; 80100059: c7 05 74 05 11 80 64 movl $0x80110564,0x80110574 80100060: 05 11 80 for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 80100063: c7 45 f4 94 c6 10 80 movl $0x8010c694,-0xc(%ebp) 8010006a: eb 3a jmp 801000a6 <binit+0x72> b->next = bcache.head.next; 8010006c: 8b 15 74 05 11 80 mov 0x80110574,%edx 80100072: 8b 45 f4 mov -0xc(%ebp),%eax 80100075: 89 50 10 mov %edx,0x10(%eax) b->prev = &bcache.head; 80100078: 8b 45 f4 mov -0xc(%ebp),%eax 8010007b: c7 40 0c 64 05 11 80 movl $0x80110564,0xc(%eax) b->dev = -1; 80100082: 8b 45 f4 mov -0xc(%ebp),%eax 80100085: c7 40 04 ff ff ff ff movl $0xffffffff,0x4(%eax) bcache.head.next->prev = b; 8010008c: a1 74 05 11 80 mov 0x80110574,%eax 80100091: 8b 55 f4 mov -0xc(%ebp),%edx 80100094: 89 50 0c mov %edx,0xc(%eax) bcache.head.next = b; 80100097: 8b 45 f4 mov -0xc(%ebp),%eax 8010009a: a3 74 05 11 80 mov %eax,0x80110574 //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; bcache.head.next = &bcache.head; for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 8010009f: 81 45 f4 18 02 00 00 addl $0x218,-0xc(%ebp) 801000a6: b8 64 05 11 80 mov $0x80110564,%eax 801000ab: 39 45 f4 cmp %eax,-0xc(%ebp) 801000ae: 72 bc jb 8010006c <binit+0x38> b->prev = &bcache.head; b->dev = -1; bcache.head.next->prev = b; bcache.head.next = b; } } 801000b0: 90 nop 801000b1: c9 leave 801000b2: c3 ret 801000b3 <bget>: // Look through buffer cache for block on device dev. // If not found, allocate a buffer. // In either case, return B_BUSY buffer. static struct buf* bget(uint dev, uint blockno) { 801000b3: 55 push %ebp 801000b4: 89 e5 mov %esp,%ebp 801000b6: 83 ec 18 sub $0x18,%esp struct buf *b; acquire(&bcache.lock); 801000b9: 83 ec 0c sub $0xc,%esp 801000bc: 68 60 c6 10 80 push $0x8010c660 801000c1: e8 64 4f 00 00 call 8010502a <acquire> 801000c6: 83 c4 10 add $0x10,%esp loop: // Is the block already cached? for(b = bcache.head.next; b != &bcache.head; b = b->next){ 801000c9: a1 74 05 11 80 mov 0x80110574,%eax 801000ce: 89 45 f4 mov %eax,-0xc(%ebp) 801000d1: eb 67 jmp 8010013a <bget+0x87> if(b->dev == dev && b->blockno == blockno){ 801000d3: 8b 45 f4 mov -0xc(%ebp),%eax 801000d6: 8b 40 04 mov 0x4(%eax),%eax 801000d9: 3b 45 08 cmp 0x8(%ebp),%eax 801000dc: 75 53 jne 80100131 <bget+0x7e> 801000de: 8b 45 f4 mov -0xc(%ebp),%eax 801000e1: 8b 40 08 mov 0x8(%eax),%eax 801000e4: 3b 45 0c cmp 0xc(%ebp),%eax 801000e7: 75 48 jne 80100131 <bget+0x7e> if(!(b->flags & B_BUSY)){ 801000e9: 8b 45 f4 mov -0xc(%ebp),%eax 801000ec: 8b 00 mov (%eax),%eax 801000ee: 83 e0 01 and $0x1,%eax 801000f1: 85 c0 test %eax,%eax 801000f3: 75 27 jne 8010011c <bget+0x69> b->flags |= B_BUSY; 801000f5: 8b 45 f4 mov -0xc(%ebp),%eax 801000f8: 8b 00 mov (%eax),%eax 801000fa: 83 c8 01 or $0x1,%eax 801000fd: 89 c2 mov %eax,%edx 801000ff: 8b 45 f4 mov -0xc(%ebp),%eax 80100102: 89 10 mov %edx,(%eax) release(&bcache.lock); 80100104: 83 ec 0c sub $0xc,%esp 80100107: 68 60 c6 10 80 push $0x8010c660 8010010c: e8 80 4f 00 00 call 80105091 <release> 80100111: 83 c4 10 add $0x10,%esp return b; 80100114: 8b 45 f4 mov -0xc(%ebp),%eax 80100117: e9 98 00 00 00 jmp 801001b4 <bget+0x101> } sleep(b, &bcache.lock); 8010011c: 83 ec 08 sub $0x8,%esp 8010011f: 68 60 c6 10 80 push $0x8010c660 80100124: ff 75 f4 pushl -0xc(%ebp) 80100127: e8 05 4c 00 00 call 80104d31 <sleep> 8010012c: 83 c4 10 add $0x10,%esp goto loop; 8010012f: eb 98 jmp 801000c9 <bget+0x16> acquire(&bcache.lock); loop: // Is the block already cached? for(b = bcache.head.next; b != &bcache.head; b = b->next){ 80100131: 8b 45 f4 mov -0xc(%ebp),%eax 80100134: 8b 40 10 mov 0x10(%eax),%eax 80100137: 89 45 f4 mov %eax,-0xc(%ebp) 8010013a: 81 7d f4 64 05 11 80 cmpl $0x80110564,-0xc(%ebp) 80100141: 75 90 jne 801000d3 <bget+0x20> } // Not cached; recycle some non-busy and clean buffer. // "clean" because B_DIRTY and !B_BUSY means log.c // hasn't yet committed the changes to the buffer. for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100143: a1 70 05 11 80 mov 0x80110570,%eax 80100148: 89 45 f4 mov %eax,-0xc(%ebp) 8010014b: eb 51 jmp 8010019e <bget+0xeb> if((b->flags & B_BUSY) == 0 && (b->flags & B_DIRTY) == 0){ 8010014d: 8b 45 f4 mov -0xc(%ebp),%eax 80100150: 8b 00 mov (%eax),%eax 80100152: 83 e0 01 and $0x1,%eax 80100155: 85 c0 test %eax,%eax 80100157: 75 3c jne 80100195 <bget+0xe2> 80100159: 8b 45 f4 mov -0xc(%ebp),%eax 8010015c: 8b 00 mov (%eax),%eax 8010015e: 83 e0 04 and $0x4,%eax 80100161: 85 c0 test %eax,%eax 80100163: 75 30 jne 80100195 <bget+0xe2> b->dev = dev; 80100165: 8b 45 f4 mov -0xc(%ebp),%eax 80100168: 8b 55 08 mov 0x8(%ebp),%edx 8010016b: 89 50 04 mov %edx,0x4(%eax) b->blockno = blockno; 8010016e: 8b 45 f4 mov -0xc(%ebp),%eax 80100171: 8b 55 0c mov 0xc(%ebp),%edx 80100174: 89 50 08 mov %edx,0x8(%eax) b->flags = B_BUSY; 80100177: 8b 45 f4 mov -0xc(%ebp),%eax 8010017a: c7 00 01 00 00 00 movl $0x1,(%eax) release(&bcache.lock); 80100180: 83 ec 0c sub $0xc,%esp 80100183: 68 60 c6 10 80 push $0x8010c660 80100188: e8 04 4f 00 00 call 80105091 <release> 8010018d: 83 c4 10 add $0x10,%esp return b; 80100190: 8b 45 f4 mov -0xc(%ebp),%eax 80100193: eb 1f jmp 801001b4 <bget+0x101> } // Not cached; recycle some non-busy and clean buffer. // "clean" because B_DIRTY and !B_BUSY means log.c // hasn't yet committed the changes to the buffer. for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100195: 8b 45 f4 mov -0xc(%ebp),%eax 80100198: 8b 40 0c mov 0xc(%eax),%eax 8010019b: 89 45 f4 mov %eax,-0xc(%ebp) 8010019e: 81 7d f4 64 05 11 80 cmpl $0x80110564,-0xc(%ebp) 801001a5: 75 a6 jne 8010014d <bget+0x9a> b->flags = B_BUSY; release(&bcache.lock); return b; } } panic("bget: no buffers"); 801001a7: 83 ec 0c sub $0xc,%esp 801001aa: 68 57 85 10 80 push $0x80108557 801001af: e8 b2 03 00 00 call 80100566 <panic> } 801001b4: c9 leave 801001b5: c3 ret 801001b6 <bread>: // Return a B_BUSY buf with the contents of the indicated block. struct buf* bread(uint dev, uint blockno) { 801001b6: 55 push %ebp 801001b7: 89 e5 mov %esp,%ebp 801001b9: 83 ec 18 sub $0x18,%esp struct buf *b; b = bget(dev, blockno); 801001bc: 83 ec 08 sub $0x8,%esp 801001bf: ff 75 0c pushl 0xc(%ebp) 801001c2: ff 75 08 pushl 0x8(%ebp) 801001c5: e8 e9 fe ff ff call 801000b3 <bget> 801001ca: 83 c4 10 add $0x10,%esp 801001cd: 89 45 f4 mov %eax,-0xc(%ebp) if(!(b->flags & B_VALID)) { 801001d0: 8b 45 f4 mov -0xc(%ebp),%eax 801001d3: 8b 00 mov (%eax),%eax 801001d5: 83 e0 02 and $0x2,%eax 801001d8: 85 c0 test %eax,%eax 801001da: 75 0e jne 801001ea <bread+0x34> iderw(b); 801001dc: 83 ec 0c sub $0xc,%esp 801001df: ff 75 f4 pushl -0xc(%ebp) 801001e2: e8 26 27 00 00 call 8010290d <iderw> 801001e7: 83 c4 10 add $0x10,%esp } return b; 801001ea: 8b 45 f4 mov -0xc(%ebp),%eax } 801001ed: c9 leave 801001ee: c3 ret 801001ef <bwrite>: // Write b's contents to disk. Must be B_BUSY. void bwrite(struct buf *b) { 801001ef: 55 push %ebp 801001f0: 89 e5 mov %esp,%ebp 801001f2: 83 ec 08 sub $0x8,%esp if((b->flags & B_BUSY) == 0) 801001f5: 8b 45 08 mov 0x8(%ebp),%eax 801001f8: 8b 00 mov (%eax),%eax 801001fa: 83 e0 01 and $0x1,%eax 801001fd: 85 c0 test %eax,%eax 801001ff: 75 0d jne 8010020e <bwrite+0x1f> panic("bwrite"); 80100201: 83 ec 0c sub $0xc,%esp 80100204: 68 68 85 10 80 push $0x80108568 80100209: e8 58 03 00 00 call 80100566 <panic> b->flags |= B_DIRTY; 8010020e: 8b 45 08 mov 0x8(%ebp),%eax 80100211: 8b 00 mov (%eax),%eax 80100213: 83 c8 04 or $0x4,%eax 80100216: 89 c2 mov %eax,%edx 80100218: 8b 45 08 mov 0x8(%ebp),%eax 8010021b: 89 10 mov %edx,(%eax) iderw(b); 8010021d: 83 ec 0c sub $0xc,%esp 80100220: ff 75 08 pushl 0x8(%ebp) 80100223: e8 e5 26 00 00 call 8010290d <iderw> 80100228: 83 c4 10 add $0x10,%esp } 8010022b: 90 nop 8010022c: c9 leave 8010022d: c3 ret 8010022e <brelse>: // Release a B_BUSY buffer. // Move to the head of the MRU list. void brelse(struct buf *b) { 8010022e: 55 push %ebp 8010022f: 89 e5 mov %esp,%ebp 80100231: 83 ec 08 sub $0x8,%esp if((b->flags & B_BUSY) == 0) 80100234: 8b 45 08 mov 0x8(%ebp),%eax 80100237: 8b 00 mov (%eax),%eax 80100239: 83 e0 01 and $0x1,%eax 8010023c: 85 c0 test %eax,%eax 8010023e: 75 0d jne 8010024d <brelse+0x1f> panic("brelse"); 80100240: 83 ec 0c sub $0xc,%esp 80100243: 68 6f 85 10 80 push $0x8010856f 80100248: e8 19 03 00 00 call 80100566 <panic> acquire(&bcache.lock); 8010024d: 83 ec 0c sub $0xc,%esp 80100250: 68 60 c6 10 80 push $0x8010c660 80100255: e8 d0 4d 00 00 call 8010502a <acquire> 8010025a: 83 c4 10 add $0x10,%esp b->next->prev = b->prev; 8010025d: 8b 45 08 mov 0x8(%ebp),%eax 80100260: 8b 40 10 mov 0x10(%eax),%eax 80100263: 8b 55 08 mov 0x8(%ebp),%edx 80100266: 8b 52 0c mov 0xc(%edx),%edx 80100269: 89 50 0c mov %edx,0xc(%eax) b->prev->next = b->next; 8010026c: 8b 45 08 mov 0x8(%ebp),%eax 8010026f: 8b 40 0c mov 0xc(%eax),%eax 80100272: 8b 55 08 mov 0x8(%ebp),%edx 80100275: 8b 52 10 mov 0x10(%edx),%edx 80100278: 89 50 10 mov %edx,0x10(%eax) b->next = bcache.head.next; 8010027b: 8b 15 74 05 11 80 mov 0x80110574,%edx 80100281: 8b 45 08 mov 0x8(%ebp),%eax 80100284: 89 50 10 mov %edx,0x10(%eax) b->prev = &bcache.head; 80100287: 8b 45 08 mov 0x8(%ebp),%eax 8010028a: c7 40 0c 64 05 11 80 movl $0x80110564,0xc(%eax) bcache.head.next->prev = b; 80100291: a1 74 05 11 80 mov 0x80110574,%eax 80100296: 8b 55 08 mov 0x8(%ebp),%edx 80100299: 89 50 0c mov %edx,0xc(%eax) bcache.head.next = b; 8010029c: 8b 45 08 mov 0x8(%ebp),%eax 8010029f: a3 74 05 11 80 mov %eax,0x80110574 b->flags &= ~B_BUSY; 801002a4: 8b 45 08 mov 0x8(%ebp),%eax 801002a7: 8b 00 mov (%eax),%eax 801002a9: 83 e0 fe and $0xfffffffe,%eax 801002ac: 89 c2 mov %eax,%edx 801002ae: 8b 45 08 mov 0x8(%ebp),%eax 801002b1: 89 10 mov %edx,(%eax) wakeup(b); 801002b3: 83 ec 0c sub $0xc,%esp 801002b6: ff 75 08 pushl 0x8(%ebp) 801002b9: e8 5e 4b 00 00 call 80104e1c <wakeup> 801002be: 83 c4 10 add $0x10,%esp release(&bcache.lock); 801002c1: 83 ec 0c sub $0xc,%esp 801002c4: 68 60 c6 10 80 push $0x8010c660 801002c9: e8 c3 4d 00 00 call 80105091 <release> 801002ce: 83 c4 10 add $0x10,%esp } 801002d1: 90 nop 801002d2: c9 leave 801002d3: c3 ret 801002d4 <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 801002d4: 55 push %ebp 801002d5: 89 e5 mov %esp,%ebp 801002d7: 83 ec 14 sub $0x14,%esp 801002da: 8b 45 08 mov 0x8(%ebp),%eax 801002dd: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801002e1: 0f b7 45 ec movzwl -0x14(%ebp),%eax 801002e5: 89 c2 mov %eax,%edx 801002e7: ec in (%dx),%al 801002e8: 88 45 ff mov %al,-0x1(%ebp) return data; 801002eb: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 801002ef: c9 leave 801002f0: c3 ret 801002f1 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 801002f1: 55 push %ebp 801002f2: 89 e5 mov %esp,%ebp 801002f4: 83 ec 08 sub $0x8,%esp 801002f7: 8b 55 08 mov 0x8(%ebp),%edx 801002fa: 8b 45 0c mov 0xc(%ebp),%eax 801002fd: 66 89 55 fc mov %dx,-0x4(%ebp) 80100301: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80100304: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80100308: 0f b7 55 fc movzwl -0x4(%ebp),%edx 8010030c: ee out %al,(%dx) } 8010030d: 90 nop 8010030e: c9 leave 8010030f: c3 ret 80100310 <cli>: asm volatile("movw %0, %%gs" : : "r" (v)); } static inline void cli(void) { 80100310: 55 push %ebp 80100311: 89 e5 mov %esp,%ebp asm volatile("cli"); 80100313: fa cli } 80100314: 90 nop 80100315: 5d pop %ebp 80100316: c3 ret 80100317 <printint>: int locking; } cons; static void printint(int xx, int base, int sign) { 80100317: 55 push %ebp 80100318: 89 e5 mov %esp,%ebp 8010031a: 53 push %ebx 8010031b: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789abcdef"; char buf[16]; int i; uint x; if(sign && (sign = xx < 0)) 8010031e: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100322: 74 1c je 80100340 <printint+0x29> 80100324: 8b 45 08 mov 0x8(%ebp),%eax 80100327: c1 e8 1f shr $0x1f,%eax 8010032a: 0f b6 c0 movzbl %al,%eax 8010032d: 89 45 10 mov %eax,0x10(%ebp) 80100330: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100334: 74 0a je 80100340 <printint+0x29> x = -xx; 80100336: 8b 45 08 mov 0x8(%ebp),%eax 80100339: f7 d8 neg %eax 8010033b: 89 45 f0 mov %eax,-0x10(%ebp) 8010033e: eb 06 jmp 80100346 <printint+0x2f> else x = xx; 80100340: 8b 45 08 mov 0x8(%ebp),%eax 80100343: 89 45 f0 mov %eax,-0x10(%ebp) i = 0; 80100346: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 8010034d: 8b 4d f4 mov -0xc(%ebp),%ecx 80100350: 8d 41 01 lea 0x1(%ecx),%eax 80100353: 89 45 f4 mov %eax,-0xc(%ebp) 80100356: 8b 5d 0c mov 0xc(%ebp),%ebx 80100359: 8b 45 f0 mov -0x10(%ebp),%eax 8010035c: ba 00 00 00 00 mov $0x0,%edx 80100361: f7 f3 div %ebx 80100363: 89 d0 mov %edx,%eax 80100365: 0f b6 80 04 90 10 80 movzbl -0x7fef6ffc(%eax),%eax 8010036c: 88 44 0d e0 mov %al,-0x20(%ebp,%ecx,1) }while((x /= base) != 0); 80100370: 8b 5d 0c mov 0xc(%ebp),%ebx 80100373: 8b 45 f0 mov -0x10(%ebp),%eax 80100376: ba 00 00 00 00 mov $0x0,%edx 8010037b: f7 f3 div %ebx 8010037d: 89 45 f0 mov %eax,-0x10(%ebp) 80100380: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80100384: 75 c7 jne 8010034d <printint+0x36> if(sign) 80100386: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 8010038a: 74 2a je 801003b6 <printint+0x9f> buf[i++] = '-'; 8010038c: 8b 45 f4 mov -0xc(%ebp),%eax 8010038f: 8d 50 01 lea 0x1(%eax),%edx 80100392: 89 55 f4 mov %edx,-0xc(%ebp) 80100395: c6 44 05 e0 2d movb $0x2d,-0x20(%ebp,%eax,1) while(--i >= 0) 8010039a: eb 1a jmp 801003b6 <printint+0x9f> consputc(buf[i]); 8010039c: 8d 55 e0 lea -0x20(%ebp),%edx 8010039f: 8b 45 f4 mov -0xc(%ebp),%eax 801003a2: 01 d0 add %edx,%eax 801003a4: 0f b6 00 movzbl (%eax),%eax 801003a7: 0f be c0 movsbl %al,%eax 801003aa: 83 ec 0c sub $0xc,%esp 801003ad: 50 push %eax 801003ae: e8 df 03 00 00 call 80100792 <consputc> 801003b3: 83 c4 10 add $0x10,%esp }while((x /= base) != 0); if(sign) buf[i++] = '-'; while(--i >= 0) 801003b6: 83 6d f4 01 subl $0x1,-0xc(%ebp) 801003ba: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801003be: 79 dc jns 8010039c <printint+0x85> consputc(buf[i]); } 801003c0: 90 nop 801003c1: 8b 5d fc mov -0x4(%ebp),%ebx 801003c4: c9 leave 801003c5: c3 ret 801003c6 <cprintf>: //PAGEBREAK: 50 // Print to the console. only understands %d, %x, %p, %s. void cprintf(char *fmt, ...) { 801003c6: 55 push %ebp 801003c7: 89 e5 mov %esp,%ebp 801003c9: 83 ec 28 sub $0x28,%esp int i, c, locking; uint *argp; char *s; locking = cons.locking; 801003cc: a1 f4 b5 10 80 mov 0x8010b5f4,%eax 801003d1: 89 45 e8 mov %eax,-0x18(%ebp) if(locking) 801003d4: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 801003d8: 74 10 je 801003ea <cprintf+0x24> acquire(&cons.lock); 801003da: 83 ec 0c sub $0xc,%esp 801003dd: 68 c0 b5 10 80 push $0x8010b5c0 801003e2: e8 43 4c 00 00 call 8010502a <acquire> 801003e7: 83 c4 10 add $0x10,%esp if (fmt == 0) 801003ea: 8b 45 08 mov 0x8(%ebp),%eax 801003ed: 85 c0 test %eax,%eax 801003ef: 75 0d jne 801003fe <cprintf+0x38> panic("null fmt"); 801003f1: 83 ec 0c sub $0xc,%esp 801003f4: 68 76 85 10 80 push $0x80108576 801003f9: e8 68 01 00 00 call 80100566 <panic> argp = (uint*)(void*)(&fmt + 1); 801003fe: 8d 45 0c lea 0xc(%ebp),%eax 80100401: 89 45 f0 mov %eax,-0x10(%ebp) for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100404: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010040b: e9 1a 01 00 00 jmp 8010052a <cprintf+0x164> if(c != '%'){ 80100410: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 80100414: 74 13 je 80100429 <cprintf+0x63> consputc(c); 80100416: 83 ec 0c sub $0xc,%esp 80100419: ff 75 e4 pushl -0x1c(%ebp) 8010041c: e8 71 03 00 00 call 80100792 <consputc> 80100421: 83 c4 10 add $0x10,%esp continue; 80100424: e9 fd 00 00 00 jmp 80100526 <cprintf+0x160> } c = fmt[++i] & 0xff; 80100429: 8b 55 08 mov 0x8(%ebp),%edx 8010042c: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100430: 8b 45 f4 mov -0xc(%ebp),%eax 80100433: 01 d0 add %edx,%eax 80100435: 0f b6 00 movzbl (%eax),%eax 80100438: 0f be c0 movsbl %al,%eax 8010043b: 25 ff 00 00 00 and $0xff,%eax 80100440: 89 45 e4 mov %eax,-0x1c(%ebp) if(c == 0) 80100443: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 80100447: 0f 84 ff 00 00 00 je 8010054c <cprintf+0x186> break; switch(c){ 8010044d: 8b 45 e4 mov -0x1c(%ebp),%eax 80100450: 83 f8 70 cmp $0x70,%eax 80100453: 74 47 je 8010049c <cprintf+0xd6> 80100455: 83 f8 70 cmp $0x70,%eax 80100458: 7f 13 jg 8010046d <cprintf+0xa7> 8010045a: 83 f8 25 cmp $0x25,%eax 8010045d: 0f 84 98 00 00 00 je 801004fb <cprintf+0x135> 80100463: 83 f8 64 cmp $0x64,%eax 80100466: 74 14 je 8010047c <cprintf+0xb6> 80100468: e9 9d 00 00 00 jmp 8010050a <cprintf+0x144> 8010046d: 83 f8 73 cmp $0x73,%eax 80100470: 74 47 je 801004b9 <cprintf+0xf3> 80100472: 83 f8 78 cmp $0x78,%eax 80100475: 74 25 je 8010049c <cprintf+0xd6> 80100477: e9 8e 00 00 00 jmp 8010050a <cprintf+0x144> case 'd': printint(*argp++, 10, 1); 8010047c: 8b 45 f0 mov -0x10(%ebp),%eax 8010047f: 8d 50 04 lea 0x4(%eax),%edx 80100482: 89 55 f0 mov %edx,-0x10(%ebp) 80100485: 8b 00 mov (%eax),%eax 80100487: 83 ec 04 sub $0x4,%esp 8010048a: 6a 01 push $0x1 8010048c: 6a 0a push $0xa 8010048e: 50 push %eax 8010048f: e8 83 fe ff ff call 80100317 <printint> 80100494: 83 c4 10 add $0x10,%esp break; 80100497: e9 8a 00 00 00 jmp 80100526 <cprintf+0x160> case 'x': case 'p': printint(*argp++, 16, 0); 8010049c: 8b 45 f0 mov -0x10(%ebp),%eax 8010049f: 8d 50 04 lea 0x4(%eax),%edx 801004a2: 89 55 f0 mov %edx,-0x10(%ebp) 801004a5: 8b 00 mov (%eax),%eax 801004a7: 83 ec 04 sub $0x4,%esp 801004aa: 6a 00 push $0x0 801004ac: 6a 10 push $0x10 801004ae: 50 push %eax 801004af: e8 63 fe ff ff call 80100317 <printint> 801004b4: 83 c4 10 add $0x10,%esp break; 801004b7: eb 6d jmp 80100526 <cprintf+0x160> case 's': if((s = (char*)*argp++) == 0) 801004b9: 8b 45 f0 mov -0x10(%ebp),%eax 801004bc: 8d 50 04 lea 0x4(%eax),%edx 801004bf: 89 55 f0 mov %edx,-0x10(%ebp) 801004c2: 8b 00 mov (%eax),%eax 801004c4: 89 45 ec mov %eax,-0x14(%ebp) 801004c7: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 801004cb: 75 22 jne 801004ef <cprintf+0x129> s = "(null)"; 801004cd: c7 45 ec 7f 85 10 80 movl $0x8010857f,-0x14(%ebp) for(; *s; s++) 801004d4: eb 19 jmp 801004ef <cprintf+0x129> consputc(*s); 801004d6: 8b 45 ec mov -0x14(%ebp),%eax 801004d9: 0f b6 00 movzbl (%eax),%eax 801004dc: 0f be c0 movsbl %al,%eax 801004df: 83 ec 0c sub $0xc,%esp 801004e2: 50 push %eax 801004e3: e8 aa 02 00 00 call 80100792 <consputc> 801004e8: 83 c4 10 add $0x10,%esp printint(*argp++, 16, 0); break; case 's': if((s = (char*)*argp++) == 0) s = "(null)"; for(; *s; s++) 801004eb: 83 45 ec 01 addl $0x1,-0x14(%ebp) 801004ef: 8b 45 ec mov -0x14(%ebp),%eax 801004f2: 0f b6 00 movzbl (%eax),%eax 801004f5: 84 c0 test %al,%al 801004f7: 75 dd jne 801004d6 <cprintf+0x110> consputc(*s); break; 801004f9: eb 2b jmp 80100526 <cprintf+0x160> case '%': consputc('%'); 801004fb: 83 ec 0c sub $0xc,%esp 801004fe: 6a 25 push $0x25 80100500: e8 8d 02 00 00 call 80100792 <consputc> 80100505: 83 c4 10 add $0x10,%esp break; 80100508: eb 1c jmp 80100526 <cprintf+0x160> default: // Print unknown % sequence to draw attention. consputc('%'); 8010050a: 83 ec 0c sub $0xc,%esp 8010050d: 6a 25 push $0x25 8010050f: e8 7e 02 00 00 call 80100792 <consputc> 80100514: 83 c4 10 add $0x10,%esp consputc(c); 80100517: 83 ec 0c sub $0xc,%esp 8010051a: ff 75 e4 pushl -0x1c(%ebp) 8010051d: e8 70 02 00 00 call 80100792 <consputc> 80100522: 83 c4 10 add $0x10,%esp break; 80100525: 90 nop if (fmt == 0) panic("null fmt"); argp = (uint*)(void*)(&fmt + 1); for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100526: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010052a: 8b 55 08 mov 0x8(%ebp),%edx 8010052d: 8b 45 f4 mov -0xc(%ebp),%eax 80100530: 01 d0 add %edx,%eax 80100532: 0f b6 00 movzbl (%eax),%eax 80100535: 0f be c0 movsbl %al,%eax 80100538: 25 ff 00 00 00 and $0xff,%eax 8010053d: 89 45 e4 mov %eax,-0x1c(%ebp) 80100540: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 80100544: 0f 85 c6 fe ff ff jne 80100410 <cprintf+0x4a> 8010054a: eb 01 jmp 8010054d <cprintf+0x187> consputc(c); continue; } c = fmt[++i] & 0xff; if(c == 0) break; 8010054c: 90 nop consputc(c); break; } } if(locking) 8010054d: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80100551: 74 10 je 80100563 <cprintf+0x19d> release(&cons.lock); 80100553: 83 ec 0c sub $0xc,%esp 80100556: 68 c0 b5 10 80 push $0x8010b5c0 8010055b: e8 31 4b 00 00 call 80105091 <release> 80100560: 83 c4 10 add $0x10,%esp } 80100563: 90 nop 80100564: c9 leave 80100565: c3 ret 80100566 <panic>: void panic(char *s) { 80100566: 55 push %ebp 80100567: 89 e5 mov %esp,%ebp 80100569: 83 ec 38 sub $0x38,%esp int i; uint pcs[10]; cli(); 8010056c: e8 9f fd ff ff call 80100310 <cli> cons.locking = 0; 80100571: c7 05 f4 b5 10 80 00 movl $0x0,0x8010b5f4 80100578: 00 00 00 cprintf("cpu%d: panic: ", cpu->id); 8010057b: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80100581: 0f b6 00 movzbl (%eax),%eax 80100584: 0f b6 c0 movzbl %al,%eax 80100587: 83 ec 08 sub $0x8,%esp 8010058a: 50 push %eax 8010058b: 68 86 85 10 80 push $0x80108586 80100590: e8 31 fe ff ff call 801003c6 <cprintf> 80100595: 83 c4 10 add $0x10,%esp cprintf(s); 80100598: 8b 45 08 mov 0x8(%ebp),%eax 8010059b: 83 ec 0c sub $0xc,%esp 8010059e: 50 push %eax 8010059f: e8 22 fe ff ff call 801003c6 <cprintf> 801005a4: 83 c4 10 add $0x10,%esp cprintf("\n"); 801005a7: 83 ec 0c sub $0xc,%esp 801005aa: 68 95 85 10 80 push $0x80108595 801005af: e8 12 fe ff ff call 801003c6 <cprintf> 801005b4: 83 c4 10 add $0x10,%esp getcallerpcs(&s, pcs); 801005b7: 83 ec 08 sub $0x8,%esp 801005ba: 8d 45 cc lea -0x34(%ebp),%eax 801005bd: 50 push %eax 801005be: 8d 45 08 lea 0x8(%ebp),%eax 801005c1: 50 push %eax 801005c2: e8 1c 4b 00 00 call 801050e3 <getcallerpcs> 801005c7: 83 c4 10 add $0x10,%esp for(i=0; i<10; i++) 801005ca: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801005d1: eb 1c jmp 801005ef <panic+0x89> cprintf(" %p", pcs[i]); 801005d3: 8b 45 f4 mov -0xc(%ebp),%eax 801005d6: 8b 44 85 cc mov -0x34(%ebp,%eax,4),%eax 801005da: 83 ec 08 sub $0x8,%esp 801005dd: 50 push %eax 801005de: 68 97 85 10 80 push $0x80108597 801005e3: e8 de fd ff ff call 801003c6 <cprintf> 801005e8: 83 c4 10 add $0x10,%esp cons.locking = 0; cprintf("cpu%d: panic: ", cpu->id); cprintf(s); cprintf("\n"); getcallerpcs(&s, pcs); for(i=0; i<10; i++) 801005eb: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801005ef: 83 7d f4 09 cmpl $0x9,-0xc(%ebp) 801005f3: 7e de jle 801005d3 <panic+0x6d> cprintf(" %p", pcs[i]); panicked = 1; // freeze other CPU 801005f5: c7 05 a0 b5 10 80 01 movl $0x1,0x8010b5a0 801005fc: 00 00 00 for(;;) ; 801005ff: eb fe jmp 801005ff <panic+0x99> 80100601 <cgaputc>: #define CRTPORT 0x3d4 static ushort *crt = (ushort*)P2V(0xb8000); // CGA memory static void cgaputc(int c) { 80100601: 55 push %ebp 80100602: 89 e5 mov %esp,%ebp 80100604: 83 ec 18 sub $0x18,%esp int pos; // Cursor position: col + 80*row. outb(CRTPORT, 14); 80100607: 6a 0e push $0xe 80100609: 68 d4 03 00 00 push $0x3d4 8010060e: e8 de fc ff ff call 801002f1 <outb> 80100613: 83 c4 08 add $0x8,%esp pos = inb(CRTPORT+1) << 8; 80100616: 68 d5 03 00 00 push $0x3d5 8010061b: e8 b4 fc ff ff call 801002d4 <inb> 80100620: 83 c4 04 add $0x4,%esp 80100623: 0f b6 c0 movzbl %al,%eax 80100626: c1 e0 08 shl $0x8,%eax 80100629: 89 45 f4 mov %eax,-0xc(%ebp) outb(CRTPORT, 15); 8010062c: 6a 0f push $0xf 8010062e: 68 d4 03 00 00 push $0x3d4 80100633: e8 b9 fc ff ff call 801002f1 <outb> 80100638: 83 c4 08 add $0x8,%esp pos |= inb(CRTPORT+1); 8010063b: 68 d5 03 00 00 push $0x3d5 80100640: e8 8f fc ff ff call 801002d4 <inb> 80100645: 83 c4 04 add $0x4,%esp 80100648: 0f b6 c0 movzbl %al,%eax 8010064b: 09 45 f4 or %eax,-0xc(%ebp) if(c == '\n') 8010064e: 83 7d 08 0a cmpl $0xa,0x8(%ebp) 80100652: 75 30 jne 80100684 <cgaputc+0x83> pos += 80 - pos%80; 80100654: 8b 4d f4 mov -0xc(%ebp),%ecx 80100657: ba 67 66 66 66 mov $0x66666667,%edx 8010065c: 89 c8 mov %ecx,%eax 8010065e: f7 ea imul %edx 80100660: c1 fa 05 sar $0x5,%edx 80100663: 89 c8 mov %ecx,%eax 80100665: c1 f8 1f sar $0x1f,%eax 80100668: 29 c2 sub %eax,%edx 8010066a: 89 d0 mov %edx,%eax 8010066c: c1 e0 02 shl $0x2,%eax 8010066f: 01 d0 add %edx,%eax 80100671: c1 e0 04 shl $0x4,%eax 80100674: 29 c1 sub %eax,%ecx 80100676: 89 ca mov %ecx,%edx 80100678: b8 50 00 00 00 mov $0x50,%eax 8010067d: 29 d0 sub %edx,%eax 8010067f: 01 45 f4 add %eax,-0xc(%ebp) 80100682: eb 34 jmp 801006b8 <cgaputc+0xb7> else if(c == BACKSPACE){ 80100684: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp) 8010068b: 75 0c jne 80100699 <cgaputc+0x98> if(pos > 0) --pos; 8010068d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80100691: 7e 25 jle 801006b8 <cgaputc+0xb7> 80100693: 83 6d f4 01 subl $0x1,-0xc(%ebp) 80100697: eb 1f jmp 801006b8 <cgaputc+0xb7> } else crt[pos++] = (c&0xff) | 0x0700; // black on white 80100699: 8b 0d 00 90 10 80 mov 0x80109000,%ecx 8010069f: 8b 45 f4 mov -0xc(%ebp),%eax 801006a2: 8d 50 01 lea 0x1(%eax),%edx 801006a5: 89 55 f4 mov %edx,-0xc(%ebp) 801006a8: 01 c0 add %eax,%eax 801006aa: 01 c8 add %ecx,%eax 801006ac: 8b 55 08 mov 0x8(%ebp),%edx 801006af: 0f b6 d2 movzbl %dl,%edx 801006b2: 80 ce 07 or $0x7,%dh 801006b5: 66 89 10 mov %dx,(%eax) if(pos < 0 || pos > 25*80) 801006b8: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801006bc: 78 09 js 801006c7 <cgaputc+0xc6> 801006be: 81 7d f4 d0 07 00 00 cmpl $0x7d0,-0xc(%ebp) 801006c5: 7e 0d jle 801006d4 <cgaputc+0xd3> panic("pos under/overflow"); 801006c7: 83 ec 0c sub $0xc,%esp 801006ca: 68 9b 85 10 80 push $0x8010859b 801006cf: e8 92 fe ff ff call 80100566 <panic> if((pos/80) >= 24){ // Scroll up. 801006d4: 81 7d f4 7f 07 00 00 cmpl $0x77f,-0xc(%ebp) 801006db: 7e 4c jle 80100729 <cgaputc+0x128> memmove(crt, crt+80, sizeof(crt[0])*23*80); 801006dd: a1 00 90 10 80 mov 0x80109000,%eax 801006e2: 8d 90 a0 00 00 00 lea 0xa0(%eax),%edx 801006e8: a1 00 90 10 80 mov 0x80109000,%eax 801006ed: 83 ec 04 sub $0x4,%esp 801006f0: 68 60 0e 00 00 push $0xe60 801006f5: 52 push %edx 801006f6: 50 push %eax 801006f7: e8 50 4c 00 00 call 8010534c <memmove> 801006fc: 83 c4 10 add $0x10,%esp pos -= 80; 801006ff: 83 6d f4 50 subl $0x50,-0xc(%ebp) memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); 80100703: b8 80 07 00 00 mov $0x780,%eax 80100708: 2b 45 f4 sub -0xc(%ebp),%eax 8010070b: 8d 14 00 lea (%eax,%eax,1),%edx 8010070e: a1 00 90 10 80 mov 0x80109000,%eax 80100713: 8b 4d f4 mov -0xc(%ebp),%ecx 80100716: 01 c9 add %ecx,%ecx 80100718: 01 c8 add %ecx,%eax 8010071a: 83 ec 04 sub $0x4,%esp 8010071d: 52 push %edx 8010071e: 6a 00 push $0x0 80100720: 50 push %eax 80100721: e8 67 4b 00 00 call 8010528d <memset> 80100726: 83 c4 10 add $0x10,%esp } outb(CRTPORT, 14); 80100729: 83 ec 08 sub $0x8,%esp 8010072c: 6a 0e push $0xe 8010072e: 68 d4 03 00 00 push $0x3d4 80100733: e8 b9 fb ff ff call 801002f1 <outb> 80100738: 83 c4 10 add $0x10,%esp outb(CRTPORT+1, pos>>8); 8010073b: 8b 45 f4 mov -0xc(%ebp),%eax 8010073e: c1 f8 08 sar $0x8,%eax 80100741: 0f b6 c0 movzbl %al,%eax 80100744: 83 ec 08 sub $0x8,%esp 80100747: 50 push %eax 80100748: 68 d5 03 00 00 push $0x3d5 8010074d: e8 9f fb ff ff call 801002f1 <outb> 80100752: 83 c4 10 add $0x10,%esp outb(CRTPORT, 15); 80100755: 83 ec 08 sub $0x8,%esp 80100758: 6a 0f push $0xf 8010075a: 68 d4 03 00 00 push $0x3d4 8010075f: e8 8d fb ff ff call 801002f1 <outb> 80100764: 83 c4 10 add $0x10,%esp outb(CRTPORT+1, pos); 80100767: 8b 45 f4 mov -0xc(%ebp),%eax 8010076a: 0f b6 c0 movzbl %al,%eax 8010076d: 83 ec 08 sub $0x8,%esp 80100770: 50 push %eax 80100771: 68 d5 03 00 00 push $0x3d5 80100776: e8 76 fb ff ff call 801002f1 <outb> 8010077b: 83 c4 10 add $0x10,%esp crt[pos] = ' ' | 0x0700; 8010077e: a1 00 90 10 80 mov 0x80109000,%eax 80100783: 8b 55 f4 mov -0xc(%ebp),%edx 80100786: 01 d2 add %edx,%edx 80100788: 01 d0 add %edx,%eax 8010078a: 66 c7 00 20 07 movw $0x720,(%eax) } 8010078f: 90 nop 80100790: c9 leave 80100791: c3 ret 80100792 <consputc>: void consputc(int c) { 80100792: 55 push %ebp 80100793: 89 e5 mov %esp,%ebp 80100795: 83 ec 08 sub $0x8,%esp if(panicked){ 80100798: a1 a0 b5 10 80 mov 0x8010b5a0,%eax 8010079d: 85 c0 test %eax,%eax 8010079f: 74 07 je 801007a8 <consputc+0x16> cli(); 801007a1: e8 6a fb ff ff call 80100310 <cli> for(;;) ; 801007a6: eb fe jmp 801007a6 <consputc+0x14> } if(c == BACKSPACE){ 801007a8: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp) 801007af: 75 29 jne 801007da <consputc+0x48> uartputc('\b'); uartputc(' '); uartputc('\b'); 801007b1: 83 ec 0c sub $0xc,%esp 801007b4: 6a 08 push $0x8 801007b6: e8 1c 64 00 00 call 80106bd7 <uartputc> 801007bb: 83 c4 10 add $0x10,%esp 801007be: 83 ec 0c sub $0xc,%esp 801007c1: 6a 20 push $0x20 801007c3: e8 0f 64 00 00 call 80106bd7 <uartputc> 801007c8: 83 c4 10 add $0x10,%esp 801007cb: 83 ec 0c sub $0xc,%esp 801007ce: 6a 08 push $0x8 801007d0: e8 02 64 00 00 call 80106bd7 <uartputc> 801007d5: 83 c4 10 add $0x10,%esp 801007d8: eb 0e jmp 801007e8 <consputc+0x56> } else uartputc(c); 801007da: 83 ec 0c sub $0xc,%esp 801007dd: ff 75 08 pushl 0x8(%ebp) 801007e0: e8 f2 63 00 00 call 80106bd7 <uartputc> 801007e5: 83 c4 10 add $0x10,%esp cgaputc(c); 801007e8: 83 ec 0c sub $0xc,%esp 801007eb: ff 75 08 pushl 0x8(%ebp) 801007ee: e8 0e fe ff ff call 80100601 <cgaputc> 801007f3: 83 c4 10 add $0x10,%esp } 801007f6: 90 nop 801007f7: c9 leave 801007f8: c3 ret 801007f9 <consoleintr>: #define C(x) ((x)-'@') // Control-x void consoleintr(int (*getc)(void)) { 801007f9: 55 push %ebp 801007fa: 89 e5 mov %esp,%ebp 801007fc: 83 ec 18 sub $0x18,%esp int c, doprocdump = 0; 801007ff: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) acquire(&cons.lock); 80100806: 83 ec 0c sub $0xc,%esp 80100809: 68 c0 b5 10 80 push $0x8010b5c0 8010080e: e8 17 48 00 00 call 8010502a <acquire> 80100813: 83 c4 10 add $0x10,%esp while((c = getc()) >= 0){ 80100816: e9 44 01 00 00 jmp 8010095f <consoleintr+0x166> switch(c){ 8010081b: 8b 45 f0 mov -0x10(%ebp),%eax 8010081e: 83 f8 10 cmp $0x10,%eax 80100821: 74 1e je 80100841 <consoleintr+0x48> 80100823: 83 f8 10 cmp $0x10,%eax 80100826: 7f 0a jg 80100832 <consoleintr+0x39> 80100828: 83 f8 08 cmp $0x8,%eax 8010082b: 74 6b je 80100898 <consoleintr+0x9f> 8010082d: e9 9b 00 00 00 jmp 801008cd <consoleintr+0xd4> 80100832: 83 f8 15 cmp $0x15,%eax 80100835: 74 33 je 8010086a <consoleintr+0x71> 80100837: 83 f8 7f cmp $0x7f,%eax 8010083a: 74 5c je 80100898 <consoleintr+0x9f> 8010083c: e9 8c 00 00 00 jmp 801008cd <consoleintr+0xd4> case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later 80100841: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) break; 80100848: e9 12 01 00 00 jmp 8010095f <consoleintr+0x166> case C('U'): // Kill line. while(input.e != input.w && input.buf[(input.e-1) % INPUT_BUF] != '\n'){ input.e--; 8010084d: a1 08 08 11 80 mov 0x80110808,%eax 80100852: 83 e8 01 sub $0x1,%eax 80100855: a3 08 08 11 80 mov %eax,0x80110808 consputc(BACKSPACE); 8010085a: 83 ec 0c sub $0xc,%esp 8010085d: 68 00 01 00 00 push $0x100 80100862: e8 2b ff ff ff call 80100792 <consputc> 80100867: 83 c4 10 add $0x10,%esp switch(c){ case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later break; case C('U'): // Kill line. while(input.e != input.w && 8010086a: 8b 15 08 08 11 80 mov 0x80110808,%edx 80100870: a1 04 08 11 80 mov 0x80110804,%eax 80100875: 39 c2 cmp %eax,%edx 80100877: 0f 84 e2 00 00 00 je 8010095f <consoleintr+0x166> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ 8010087d: a1 08 08 11 80 mov 0x80110808,%eax 80100882: 83 e8 01 sub $0x1,%eax 80100885: 83 e0 7f and $0x7f,%eax 80100888: 0f b6 80 80 07 11 80 movzbl -0x7feef880(%eax),%eax switch(c){ case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later break; case C('U'): // Kill line. while(input.e != input.w && 8010088f: 3c 0a cmp $0xa,%al 80100891: 75 ba jne 8010084d <consoleintr+0x54> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ input.e--; consputc(BACKSPACE); } break; 80100893: e9 c7 00 00 00 jmp 8010095f <consoleintr+0x166> case C('H'): case '\x7f': // Backspace if(input.e != input.w){ 80100898: 8b 15 08 08 11 80 mov 0x80110808,%edx 8010089e: a1 04 08 11 80 mov 0x80110804,%eax 801008a3: 39 c2 cmp %eax,%edx 801008a5: 0f 84 b4 00 00 00 je 8010095f <consoleintr+0x166> input.e--; 801008ab: a1 08 08 11 80 mov 0x80110808,%eax 801008b0: 83 e8 01 sub $0x1,%eax 801008b3: a3 08 08 11 80 mov %eax,0x80110808 consputc(BACKSPACE); 801008b8: 83 ec 0c sub $0xc,%esp 801008bb: 68 00 01 00 00 push $0x100 801008c0: e8 cd fe ff ff call 80100792 <consputc> 801008c5: 83 c4 10 add $0x10,%esp } break; 801008c8: e9 92 00 00 00 jmp 8010095f <consoleintr+0x166> default: if(c != 0 && input.e-input.r < INPUT_BUF){ 801008cd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801008d1: 0f 84 87 00 00 00 je 8010095e <consoleintr+0x165> 801008d7: 8b 15 08 08 11 80 mov 0x80110808,%edx 801008dd: a1 00 08 11 80 mov 0x80110800,%eax 801008e2: 29 c2 sub %eax,%edx 801008e4: 89 d0 mov %edx,%eax 801008e6: 83 f8 7f cmp $0x7f,%eax 801008e9: 77 73 ja 8010095e <consoleintr+0x165> c = (c == '\r') ? '\n' : c; 801008eb: 83 7d f0 0d cmpl $0xd,-0x10(%ebp) 801008ef: 74 05 je 801008f6 <consoleintr+0xfd> 801008f1: 8b 45 f0 mov -0x10(%ebp),%eax 801008f4: eb 05 jmp 801008fb <consoleintr+0x102> 801008f6: b8 0a 00 00 00 mov $0xa,%eax 801008fb: 89 45 f0 mov %eax,-0x10(%ebp) input.buf[input.e++ % INPUT_BUF] = c; 801008fe: a1 08 08 11 80 mov 0x80110808,%eax 80100903: 8d 50 01 lea 0x1(%eax),%edx 80100906: 89 15 08 08 11 80 mov %edx,0x80110808 8010090c: 83 e0 7f and $0x7f,%eax 8010090f: 8b 55 f0 mov -0x10(%ebp),%edx 80100912: 88 90 80 07 11 80 mov %dl,-0x7feef880(%eax) consputc(c); 80100918: 83 ec 0c sub $0xc,%esp 8010091b: ff 75 f0 pushl -0x10(%ebp) 8010091e: e8 6f fe ff ff call 80100792 <consputc> 80100923: 83 c4 10 add $0x10,%esp if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ 80100926: 83 7d f0 0a cmpl $0xa,-0x10(%ebp) 8010092a: 74 18 je 80100944 <consoleintr+0x14b> 8010092c: 83 7d f0 04 cmpl $0x4,-0x10(%ebp) 80100930: 74 12 je 80100944 <consoleintr+0x14b> 80100932: a1 08 08 11 80 mov 0x80110808,%eax 80100937: 8b 15 00 08 11 80 mov 0x80110800,%edx 8010093d: 83 ea 80 sub $0xffffff80,%edx 80100940: 39 d0 cmp %edx,%eax 80100942: 75 1a jne 8010095e <consoleintr+0x165> input.w = input.e; 80100944: a1 08 08 11 80 mov 0x80110808,%eax 80100949: a3 04 08 11 80 mov %eax,0x80110804 wakeup(&input.r); 8010094e: 83 ec 0c sub $0xc,%esp 80100951: 68 00 08 11 80 push $0x80110800 80100956: e8 c1 44 00 00 call 80104e1c <wakeup> 8010095b: 83 c4 10 add $0x10,%esp } } break; 8010095e: 90 nop consoleintr(int (*getc)(void)) { int c, doprocdump = 0; acquire(&cons.lock); while((c = getc()) >= 0){ 8010095f: 8b 45 08 mov 0x8(%ebp),%eax 80100962: ff d0 call *%eax 80100964: 89 45 f0 mov %eax,-0x10(%ebp) 80100967: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010096b: 0f 89 aa fe ff ff jns 8010081b <consoleintr+0x22> } } break; } } release(&cons.lock); 80100971: 83 ec 0c sub $0xc,%esp 80100974: 68 c0 b5 10 80 push $0x8010b5c0 80100979: e8 13 47 00 00 call 80105091 <release> 8010097e: 83 c4 10 add $0x10,%esp if(doprocdump) { 80100981: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80100985: 74 05 je 8010098c <consoleintr+0x193> procdump(); // now call procdump() wo. cons.lock held 80100987: e8 4b 45 00 00 call 80104ed7 <procdump> } } 8010098c: 90 nop 8010098d: c9 leave 8010098e: c3 ret 8010098f <consoleread>: int consoleread(struct inode *ip, char *dst, int n) { 8010098f: 55 push %ebp 80100990: 89 e5 mov %esp,%ebp 80100992: 83 ec 18 sub $0x18,%esp uint target; int c; iunlock(ip); 80100995: 83 ec 0c sub $0xc,%esp 80100998: ff 75 08 pushl 0x8(%ebp) 8010099b: e8 28 11 00 00 call 80101ac8 <iunlock> 801009a0: 83 c4 10 add $0x10,%esp target = n; 801009a3: 8b 45 10 mov 0x10(%ebp),%eax 801009a6: 89 45 f4 mov %eax,-0xc(%ebp) acquire(&cons.lock); 801009a9: 83 ec 0c sub $0xc,%esp 801009ac: 68 c0 b5 10 80 push $0x8010b5c0 801009b1: e8 74 46 00 00 call 8010502a <acquire> 801009b6: 83 c4 10 add $0x10,%esp while(n > 0){ 801009b9: e9 ac 00 00 00 jmp 80100a6a <consoleread+0xdb> while(input.r == input.w){ if(proc->killed){ 801009be: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801009c4: 8b 40 24 mov 0x24(%eax),%eax 801009c7: 85 c0 test %eax,%eax 801009c9: 74 28 je 801009f3 <consoleread+0x64> release(&cons.lock); 801009cb: 83 ec 0c sub $0xc,%esp 801009ce: 68 c0 b5 10 80 push $0x8010b5c0 801009d3: e8 b9 46 00 00 call 80105091 <release> 801009d8: 83 c4 10 add $0x10,%esp ilock(ip); 801009db: 83 ec 0c sub $0xc,%esp 801009de: ff 75 08 pushl 0x8(%ebp) 801009e1: e8 84 0f 00 00 call 8010196a <ilock> 801009e6: 83 c4 10 add $0x10,%esp return -1; 801009e9: b8 ff ff ff ff mov $0xffffffff,%eax 801009ee: e9 ab 00 00 00 jmp 80100a9e <consoleread+0x10f> } sleep(&input.r, &cons.lock); 801009f3: 83 ec 08 sub $0x8,%esp 801009f6: 68 c0 b5 10 80 push $0x8010b5c0 801009fb: 68 00 08 11 80 push $0x80110800 80100a00: e8 2c 43 00 00 call 80104d31 <sleep> 80100a05: 83 c4 10 add $0x10,%esp iunlock(ip); target = n; acquire(&cons.lock); while(n > 0){ while(input.r == input.w){ 80100a08: 8b 15 00 08 11 80 mov 0x80110800,%edx 80100a0e: a1 04 08 11 80 mov 0x80110804,%eax 80100a13: 39 c2 cmp %eax,%edx 80100a15: 74 a7 je 801009be <consoleread+0x2f> ilock(ip); return -1; } sleep(&input.r, &cons.lock); } c = input.buf[input.r++ % INPUT_BUF]; 80100a17: a1 00 08 11 80 mov 0x80110800,%eax 80100a1c: 8d 50 01 lea 0x1(%eax),%edx 80100a1f: 89 15 00 08 11 80 mov %edx,0x80110800 80100a25: 83 e0 7f and $0x7f,%eax 80100a28: 0f b6 80 80 07 11 80 movzbl -0x7feef880(%eax),%eax 80100a2f: 0f be c0 movsbl %al,%eax 80100a32: 89 45 f0 mov %eax,-0x10(%ebp) if(c == C('D')){ // EOF 80100a35: 83 7d f0 04 cmpl $0x4,-0x10(%ebp) 80100a39: 75 17 jne 80100a52 <consoleread+0xc3> if(n < target){ 80100a3b: 8b 45 10 mov 0x10(%ebp),%eax 80100a3e: 3b 45 f4 cmp -0xc(%ebp),%eax 80100a41: 73 2f jae 80100a72 <consoleread+0xe3> // Save ^D for next time, to make sure // caller gets a 0-byte result. input.r--; 80100a43: a1 00 08 11 80 mov 0x80110800,%eax 80100a48: 83 e8 01 sub $0x1,%eax 80100a4b: a3 00 08 11 80 mov %eax,0x80110800 } break; 80100a50: eb 20 jmp 80100a72 <consoleread+0xe3> } *dst++ = c; 80100a52: 8b 45 0c mov 0xc(%ebp),%eax 80100a55: 8d 50 01 lea 0x1(%eax),%edx 80100a58: 89 55 0c mov %edx,0xc(%ebp) 80100a5b: 8b 55 f0 mov -0x10(%ebp),%edx 80100a5e: 88 10 mov %dl,(%eax) --n; 80100a60: 83 6d 10 01 subl $0x1,0x10(%ebp) if(c == '\n') 80100a64: 83 7d f0 0a cmpl $0xa,-0x10(%ebp) 80100a68: 74 0b je 80100a75 <consoleread+0xe6> int c; iunlock(ip); target = n; acquire(&cons.lock); while(n > 0){ 80100a6a: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100a6e: 7f 98 jg 80100a08 <consoleread+0x79> 80100a70: eb 04 jmp 80100a76 <consoleread+0xe7> if(n < target){ // Save ^D for next time, to make sure // caller gets a 0-byte result. input.r--; } break; 80100a72: 90 nop 80100a73: eb 01 jmp 80100a76 <consoleread+0xe7> } *dst++ = c; --n; if(c == '\n') break; 80100a75: 90 nop } release(&cons.lock); 80100a76: 83 ec 0c sub $0xc,%esp 80100a79: 68 c0 b5 10 80 push $0x8010b5c0 80100a7e: e8 0e 46 00 00 call 80105091 <release> 80100a83: 83 c4 10 add $0x10,%esp ilock(ip); 80100a86: 83 ec 0c sub $0xc,%esp 80100a89: ff 75 08 pushl 0x8(%ebp) 80100a8c: e8 d9 0e 00 00 call 8010196a <ilock> 80100a91: 83 c4 10 add $0x10,%esp return target - n; 80100a94: 8b 45 10 mov 0x10(%ebp),%eax 80100a97: 8b 55 f4 mov -0xc(%ebp),%edx 80100a9a: 29 c2 sub %eax,%edx 80100a9c: 89 d0 mov %edx,%eax } 80100a9e: c9 leave 80100a9f: c3 ret 80100aa0 <consolewrite>: int consolewrite(struct inode *ip, char *buf, int n) { 80100aa0: 55 push %ebp 80100aa1: 89 e5 mov %esp,%ebp 80100aa3: 83 ec 18 sub $0x18,%esp int i; iunlock(ip); 80100aa6: 83 ec 0c sub $0xc,%esp 80100aa9: ff 75 08 pushl 0x8(%ebp) 80100aac: e8 17 10 00 00 call 80101ac8 <iunlock> 80100ab1: 83 c4 10 add $0x10,%esp acquire(&cons.lock); 80100ab4: 83 ec 0c sub $0xc,%esp 80100ab7: 68 c0 b5 10 80 push $0x8010b5c0 80100abc: e8 69 45 00 00 call 8010502a <acquire> 80100ac1: 83 c4 10 add $0x10,%esp for(i = 0; i < n; i++) 80100ac4: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80100acb: eb 21 jmp 80100aee <consolewrite+0x4e> consputc(buf[i] & 0xff); 80100acd: 8b 55 f4 mov -0xc(%ebp),%edx 80100ad0: 8b 45 0c mov 0xc(%ebp),%eax 80100ad3: 01 d0 add %edx,%eax 80100ad5: 0f b6 00 movzbl (%eax),%eax 80100ad8: 0f be c0 movsbl %al,%eax 80100adb: 0f b6 c0 movzbl %al,%eax 80100ade: 83 ec 0c sub $0xc,%esp 80100ae1: 50 push %eax 80100ae2: e8 ab fc ff ff call 80100792 <consputc> 80100ae7: 83 c4 10 add $0x10,%esp { int i; iunlock(ip); acquire(&cons.lock); for(i = 0; i < n; i++) 80100aea: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100aee: 8b 45 f4 mov -0xc(%ebp),%eax 80100af1: 3b 45 10 cmp 0x10(%ebp),%eax 80100af4: 7c d7 jl 80100acd <consolewrite+0x2d> consputc(buf[i] & 0xff); release(&cons.lock); 80100af6: 83 ec 0c sub $0xc,%esp 80100af9: 68 c0 b5 10 80 push $0x8010b5c0 80100afe: e8 8e 45 00 00 call 80105091 <release> 80100b03: 83 c4 10 add $0x10,%esp ilock(ip); 80100b06: 83 ec 0c sub $0xc,%esp 80100b09: ff 75 08 pushl 0x8(%ebp) 80100b0c: e8 59 0e 00 00 call 8010196a <ilock> 80100b11: 83 c4 10 add $0x10,%esp return n; 80100b14: 8b 45 10 mov 0x10(%ebp),%eax } 80100b17: c9 leave 80100b18: c3 ret 80100b19 <consoleinit>: void consoleinit(void) { 80100b19: 55 push %ebp 80100b1a: 89 e5 mov %esp,%ebp 80100b1c: 83 ec 08 sub $0x8,%esp initlock(&cons.lock, "console"); 80100b1f: 83 ec 08 sub $0x8,%esp 80100b22: 68 ae 85 10 80 push $0x801085ae 80100b27: 68 c0 b5 10 80 push $0x8010b5c0 80100b2c: e8 d7 44 00 00 call 80105008 <initlock> 80100b31: 83 c4 10 add $0x10,%esp devsw[CONSOLE].write = consolewrite; 80100b34: c7 05 cc 11 11 80 a0 movl $0x80100aa0,0x801111cc 80100b3b: 0a 10 80 devsw[CONSOLE].read = consoleread; 80100b3e: c7 05 c8 11 11 80 8f movl $0x8010098f,0x801111c8 80100b45: 09 10 80 cons.locking = 1; 80100b48: c7 05 f4 b5 10 80 01 movl $0x1,0x8010b5f4 80100b4f: 00 00 00 picenable(IRQ_KBD); 80100b52: 83 ec 0c sub $0xc,%esp 80100b55: 6a 01 push $0x1 80100b57: e8 cf 33 00 00 call 80103f2b <picenable> 80100b5c: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_KBD, 0); 80100b5f: 83 ec 08 sub $0x8,%esp 80100b62: 6a 00 push $0x0 80100b64: 6a 01 push $0x1 80100b66: e8 6f 1f 00 00 call 80102ada <ioapicenable> 80100b6b: 83 c4 10 add $0x10,%esp } 80100b6e: 90 nop 80100b6f: c9 leave 80100b70: c3 ret 80100b71 <exec>: #include "x86.h" #include "elf.h" int exec(char *path, char **argv) { 80100b71: 55 push %ebp 80100b72: 89 e5 mov %esp,%ebp 80100b74: 81 ec 18 01 00 00 sub $0x118,%esp struct elfhdr elf; struct inode *ip; struct proghdr ph; pde_t *pgdir, *oldpgdir; begin_op(); 80100b7a: e8 ce 29 00 00 call 8010354d <begin_op> if((ip = namei(path)) == 0){ 80100b7f: 83 ec 0c sub $0xc,%esp 80100b82: ff 75 08 pushl 0x8(%ebp) 80100b85: e8 9e 19 00 00 call 80102528 <namei> 80100b8a: 83 c4 10 add $0x10,%esp 80100b8d: 89 45 d8 mov %eax,-0x28(%ebp) 80100b90: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80100b94: 75 0f jne 80100ba5 <exec+0x34> end_op(); 80100b96: e8 3e 2a 00 00 call 801035d9 <end_op> return -1; 80100b9b: b8 ff ff ff ff mov $0xffffffff,%eax 80100ba0: e9 ce 03 00 00 jmp 80100f73 <exec+0x402> } ilock(ip); 80100ba5: 83 ec 0c sub $0xc,%esp 80100ba8: ff 75 d8 pushl -0x28(%ebp) 80100bab: e8 ba 0d 00 00 call 8010196a <ilock> 80100bb0: 83 c4 10 add $0x10,%esp pgdir = 0; 80100bb3: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) < sizeof(elf)) 80100bba: 6a 34 push $0x34 80100bbc: 6a 00 push $0x0 80100bbe: 8d 85 0c ff ff ff lea -0xf4(%ebp),%eax 80100bc4: 50 push %eax 80100bc5: ff 75 d8 pushl -0x28(%ebp) 80100bc8: e8 0b 13 00 00 call 80101ed8 <readi> 80100bcd: 83 c4 10 add $0x10,%esp 80100bd0: 83 f8 33 cmp $0x33,%eax 80100bd3: 0f 86 49 03 00 00 jbe 80100f22 <exec+0x3b1> goto bad; if(elf.magic != ELF_MAGIC) 80100bd9: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax 80100bdf: 3d 7f 45 4c 46 cmp $0x464c457f,%eax 80100be4: 0f 85 3b 03 00 00 jne 80100f25 <exec+0x3b4> goto bad; if((pgdir = setupkvm()) == 0) 80100bea: e8 3d 71 00 00 call 80107d2c <setupkvm> 80100bef: 89 45 d4 mov %eax,-0x2c(%ebp) 80100bf2: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 80100bf6: 0f 84 2c 03 00 00 je 80100f28 <exec+0x3b7> goto bad; // Load program into memory. sz = 0; 80100bfc: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100c03: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) 80100c0a: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax 80100c10: 89 45 e8 mov %eax,-0x18(%ebp) 80100c13: e9 ab 00 00 00 jmp 80100cc3 <exec+0x152> if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) 80100c18: 8b 45 e8 mov -0x18(%ebp),%eax 80100c1b: 6a 20 push $0x20 80100c1d: 50 push %eax 80100c1e: 8d 85 ec fe ff ff lea -0x114(%ebp),%eax 80100c24: 50 push %eax 80100c25: ff 75 d8 pushl -0x28(%ebp) 80100c28: e8 ab 12 00 00 call 80101ed8 <readi> 80100c2d: 83 c4 10 add $0x10,%esp 80100c30: 83 f8 20 cmp $0x20,%eax 80100c33: 0f 85 f2 02 00 00 jne 80100f2b <exec+0x3ba> goto bad; if(ph.type != ELF_PROG_LOAD) 80100c39: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax 80100c3f: 83 f8 01 cmp $0x1,%eax 80100c42: 75 71 jne 80100cb5 <exec+0x144> continue; if(ph.memsz < ph.filesz) 80100c44: 8b 95 00 ff ff ff mov -0x100(%ebp),%edx 80100c4a: 8b 85 fc fe ff ff mov -0x104(%ebp),%eax 80100c50: 39 c2 cmp %eax,%edx 80100c52: 0f 82 d6 02 00 00 jb 80100f2e <exec+0x3bd> goto bad; if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) 80100c58: 8b 95 f4 fe ff ff mov -0x10c(%ebp),%edx 80100c5e: 8b 85 00 ff ff ff mov -0x100(%ebp),%eax 80100c64: 01 d0 add %edx,%eax 80100c66: 83 ec 04 sub $0x4,%esp 80100c69: 50 push %eax 80100c6a: ff 75 e0 pushl -0x20(%ebp) 80100c6d: ff 75 d4 pushl -0x2c(%ebp) 80100c70: e8 5e 74 00 00 call 801080d3 <allocuvm> 80100c75: 83 c4 10 add $0x10,%esp 80100c78: 89 45 e0 mov %eax,-0x20(%ebp) 80100c7b: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80100c7f: 0f 84 ac 02 00 00 je 80100f31 <exec+0x3c0> goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) 80100c85: 8b 95 fc fe ff ff mov -0x104(%ebp),%edx 80100c8b: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax 80100c91: 8b 8d f4 fe ff ff mov -0x10c(%ebp),%ecx 80100c97: 83 ec 0c sub $0xc,%esp 80100c9a: 52 push %edx 80100c9b: 50 push %eax 80100c9c: ff 75 d8 pushl -0x28(%ebp) 80100c9f: 51 push %ecx 80100ca0: ff 75 d4 pushl -0x2c(%ebp) 80100ca3: e8 54 73 00 00 call 80107ffc <loaduvm> 80100ca8: 83 c4 20 add $0x20,%esp 80100cab: 85 c0 test %eax,%eax 80100cad: 0f 88 81 02 00 00 js 80100f34 <exec+0x3c3> 80100cb3: eb 01 jmp 80100cb6 <exec+0x145> sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) goto bad; if(ph.type != ELF_PROG_LOAD) continue; 80100cb5: 90 nop if((pgdir = setupkvm()) == 0) goto bad; // Load program into memory. sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100cb6: 83 45 ec 01 addl $0x1,-0x14(%ebp) 80100cba: 8b 45 e8 mov -0x18(%ebp),%eax 80100cbd: 83 c0 20 add $0x20,%eax 80100cc0: 89 45 e8 mov %eax,-0x18(%ebp) 80100cc3: 0f b7 85 38 ff ff ff movzwl -0xc8(%ebp),%eax 80100cca: 0f b7 c0 movzwl %ax,%eax 80100ccd: 3b 45 ec cmp -0x14(%ebp),%eax 80100cd0: 0f 8f 42 ff ff ff jg 80100c18 <exec+0xa7> if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) goto bad; } iunlockput(ip); 80100cd6: 83 ec 0c sub $0xc,%esp 80100cd9: ff 75 d8 pushl -0x28(%ebp) 80100cdc: e8 49 0f 00 00 call 80101c2a <iunlockput> 80100ce1: 83 c4 10 add $0x10,%esp end_op(); 80100ce4: e8 f0 28 00 00 call 801035d9 <end_op> ip = 0; 80100ce9: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); 80100cf0: 8b 45 e0 mov -0x20(%ebp),%eax 80100cf3: 05 ff 0f 00 00 add $0xfff,%eax 80100cf8: 25 00 f0 ff ff and $0xfffff000,%eax 80100cfd: 89 45 e0 mov %eax,-0x20(%ebp) if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) 80100d00: 8b 45 e0 mov -0x20(%ebp),%eax 80100d03: 05 00 20 00 00 add $0x2000,%eax 80100d08: 83 ec 04 sub $0x4,%esp 80100d0b: 50 push %eax 80100d0c: ff 75 e0 pushl -0x20(%ebp) 80100d0f: ff 75 d4 pushl -0x2c(%ebp) 80100d12: e8 bc 73 00 00 call 801080d3 <allocuvm> 80100d17: 83 c4 10 add $0x10,%esp 80100d1a: 89 45 e0 mov %eax,-0x20(%ebp) 80100d1d: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80100d21: 0f 84 10 02 00 00 je 80100f37 <exec+0x3c6> goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100d27: 8b 45 e0 mov -0x20(%ebp),%eax 80100d2a: 2d 00 20 00 00 sub $0x2000,%eax 80100d2f: 83 ec 08 sub $0x8,%esp 80100d32: 50 push %eax 80100d33: ff 75 d4 pushl -0x2c(%ebp) 80100d36: e8 be 75 00 00 call 801082f9 <clearpteu> 80100d3b: 83 c4 10 add $0x10,%esp sp = sz; 80100d3e: 8b 45 e0 mov -0x20(%ebp),%eax 80100d41: 89 45 dc mov %eax,-0x24(%ebp) // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100d44: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80100d4b: e9 96 00 00 00 jmp 80100de6 <exec+0x275> if(argc >= MAXARG) 80100d50: 83 7d e4 1f cmpl $0x1f,-0x1c(%ebp) 80100d54: 0f 87 e0 01 00 00 ja 80100f3a <exec+0x3c9> goto bad; sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100d5a: 8b 45 e4 mov -0x1c(%ebp),%eax 80100d5d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100d64: 8b 45 0c mov 0xc(%ebp),%eax 80100d67: 01 d0 add %edx,%eax 80100d69: 8b 00 mov (%eax),%eax 80100d6b: 83 ec 0c sub $0xc,%esp 80100d6e: 50 push %eax 80100d6f: e8 66 47 00 00 call 801054da <strlen> 80100d74: 83 c4 10 add $0x10,%esp 80100d77: 89 c2 mov %eax,%edx 80100d79: 8b 45 dc mov -0x24(%ebp),%eax 80100d7c: 29 d0 sub %edx,%eax 80100d7e: 83 e8 01 sub $0x1,%eax 80100d81: 83 e0 fc and $0xfffffffc,%eax 80100d84: 89 45 dc mov %eax,-0x24(%ebp) if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100d87: 8b 45 e4 mov -0x1c(%ebp),%eax 80100d8a: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100d91: 8b 45 0c mov 0xc(%ebp),%eax 80100d94: 01 d0 add %edx,%eax 80100d96: 8b 00 mov (%eax),%eax 80100d98: 83 ec 0c sub $0xc,%esp 80100d9b: 50 push %eax 80100d9c: e8 39 47 00 00 call 801054da <strlen> 80100da1: 83 c4 10 add $0x10,%esp 80100da4: 83 c0 01 add $0x1,%eax 80100da7: 89 c1 mov %eax,%ecx 80100da9: 8b 45 e4 mov -0x1c(%ebp),%eax 80100dac: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100db3: 8b 45 0c mov 0xc(%ebp),%eax 80100db6: 01 d0 add %edx,%eax 80100db8: 8b 00 mov (%eax),%eax 80100dba: 51 push %ecx 80100dbb: 50 push %eax 80100dbc: ff 75 dc pushl -0x24(%ebp) 80100dbf: ff 75 d4 pushl -0x2c(%ebp) 80100dc2: e8 e9 76 00 00 call 801084b0 <copyout> 80100dc7: 83 c4 10 add $0x10,%esp 80100dca: 85 c0 test %eax,%eax 80100dcc: 0f 88 6b 01 00 00 js 80100f3d <exec+0x3cc> goto bad; ustack[3+argc] = sp; 80100dd2: 8b 45 e4 mov -0x1c(%ebp),%eax 80100dd5: 8d 50 03 lea 0x3(%eax),%edx 80100dd8: 8b 45 dc mov -0x24(%ebp),%eax 80100ddb: 89 84 95 40 ff ff ff mov %eax,-0xc0(%ebp,%edx,4) goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100de2: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 80100de6: 8b 45 e4 mov -0x1c(%ebp),%eax 80100de9: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100df0: 8b 45 0c mov 0xc(%ebp),%eax 80100df3: 01 d0 add %edx,%eax 80100df5: 8b 00 mov (%eax),%eax 80100df7: 85 c0 test %eax,%eax 80100df9: 0f 85 51 ff ff ff jne 80100d50 <exec+0x1df> sp = (sp - (strlen(argv[argc]) + 1)) & ~3; if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) goto bad; ustack[3+argc] = sp; } ustack[3+argc] = 0; 80100dff: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e02: 83 c0 03 add $0x3,%eax 80100e05: c7 84 85 40 ff ff ff movl $0x0,-0xc0(%ebp,%eax,4) 80100e0c: 00 00 00 00 ustack[0] = 0xffffffff; // fake return PC 80100e10: c7 85 40 ff ff ff ff movl $0xffffffff,-0xc0(%ebp) 80100e17: ff ff ff ustack[1] = argc; 80100e1a: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e1d: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) ustack[2] = sp - (argc+1)*4; // argv pointer 80100e23: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e26: 83 c0 01 add $0x1,%eax 80100e29: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100e30: 8b 45 dc mov -0x24(%ebp),%eax 80100e33: 29 d0 sub %edx,%eax 80100e35: 89 85 48 ff ff ff mov %eax,-0xb8(%ebp) sp -= (3+argc+1) * 4; 80100e3b: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e3e: 83 c0 04 add $0x4,%eax 80100e41: c1 e0 02 shl $0x2,%eax 80100e44: 29 45 dc sub %eax,-0x24(%ebp) if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100e47: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e4a: 83 c0 04 add $0x4,%eax 80100e4d: c1 e0 02 shl $0x2,%eax 80100e50: 50 push %eax 80100e51: 8d 85 40 ff ff ff lea -0xc0(%ebp),%eax 80100e57: 50 push %eax 80100e58: ff 75 dc pushl -0x24(%ebp) 80100e5b: ff 75 d4 pushl -0x2c(%ebp) 80100e5e: e8 4d 76 00 00 call 801084b0 <copyout> 80100e63: 83 c4 10 add $0x10,%esp 80100e66: 85 c0 test %eax,%eax 80100e68: 0f 88 d2 00 00 00 js 80100f40 <exec+0x3cf> goto bad; // Save program name for debugging. for(last=s=path; *s; s++) 80100e6e: 8b 45 08 mov 0x8(%ebp),%eax 80100e71: 89 45 f4 mov %eax,-0xc(%ebp) 80100e74: 8b 45 f4 mov -0xc(%ebp),%eax 80100e77: 89 45 f0 mov %eax,-0x10(%ebp) 80100e7a: eb 17 jmp 80100e93 <exec+0x322> if(*s == '/') 80100e7c: 8b 45 f4 mov -0xc(%ebp),%eax 80100e7f: 0f b6 00 movzbl (%eax),%eax 80100e82: 3c 2f cmp $0x2f,%al 80100e84: 75 09 jne 80100e8f <exec+0x31e> last = s+1; 80100e86: 8b 45 f4 mov -0xc(%ebp),%eax 80100e89: 83 c0 01 add $0x1,%eax 80100e8c: 89 45 f0 mov %eax,-0x10(%ebp) sp -= (3+argc+1) * 4; if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) goto bad; // Save program name for debugging. for(last=s=path; *s; s++) 80100e8f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100e93: 8b 45 f4 mov -0xc(%ebp),%eax 80100e96: 0f b6 00 movzbl (%eax),%eax 80100e99: 84 c0 test %al,%al 80100e9b: 75 df jne 80100e7c <exec+0x30b> if(*s == '/') last = s+1; safestrcpy(proc->name, last, sizeof(proc->name)); 80100e9d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ea3: 83 c0 6c add $0x6c,%eax 80100ea6: 83 ec 04 sub $0x4,%esp 80100ea9: 6a 10 push $0x10 80100eab: ff 75 f0 pushl -0x10(%ebp) 80100eae: 50 push %eax 80100eaf: e8 dc 45 00 00 call 80105490 <safestrcpy> 80100eb4: 83 c4 10 add $0x10,%esp // Commit to the user image. oldpgdir = proc->pgdir; 80100eb7: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ebd: 8b 40 04 mov 0x4(%eax),%eax 80100ec0: 89 45 d0 mov %eax,-0x30(%ebp) proc->pgdir = pgdir; 80100ec3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ec9: 8b 55 d4 mov -0x2c(%ebp),%edx 80100ecc: 89 50 04 mov %edx,0x4(%eax) proc->sz = sz; 80100ecf: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ed5: 8b 55 e0 mov -0x20(%ebp),%edx 80100ed8: 89 10 mov %edx,(%eax) proc->tf->eip = elf.entry; // main 80100eda: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ee0: 8b 40 18 mov 0x18(%eax),%eax 80100ee3: 8b 95 24 ff ff ff mov -0xdc(%ebp),%edx 80100ee9: 89 50 38 mov %edx,0x38(%eax) proc->tf->esp = sp; 80100eec: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ef2: 8b 40 18 mov 0x18(%eax),%eax 80100ef5: 8b 55 dc mov -0x24(%ebp),%edx 80100ef8: 89 50 44 mov %edx,0x44(%eax) switchuvm(proc); 80100efb: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100f01: 83 ec 0c sub $0xc,%esp 80100f04: 50 push %eax 80100f05: e8 09 6f 00 00 call 80107e13 <switchuvm> 80100f0a: 83 c4 10 add $0x10,%esp freevm(oldpgdir); 80100f0d: 83 ec 0c sub $0xc,%esp 80100f10: ff 75 d0 pushl -0x30(%ebp) 80100f13: e8 41 73 00 00 call 80108259 <freevm> 80100f18: 83 c4 10 add $0x10,%esp return 0; 80100f1b: b8 00 00 00 00 mov $0x0,%eax 80100f20: eb 51 jmp 80100f73 <exec+0x402> ilock(ip); pgdir = 0; // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) < sizeof(elf)) goto bad; 80100f22: 90 nop 80100f23: eb 1c jmp 80100f41 <exec+0x3d0> if(elf.magic != ELF_MAGIC) goto bad; 80100f25: 90 nop 80100f26: eb 19 jmp 80100f41 <exec+0x3d0> if((pgdir = setupkvm()) == 0) goto bad; 80100f28: 90 nop 80100f29: eb 16 jmp 80100f41 <exec+0x3d0> // Load program into memory. sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) goto bad; 80100f2b: 90 nop 80100f2c: eb 13 jmp 80100f41 <exec+0x3d0> if(ph.type != ELF_PROG_LOAD) continue; if(ph.memsz < ph.filesz) goto bad; 80100f2e: 90 nop 80100f2f: eb 10 jmp 80100f41 <exec+0x3d0> if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) goto bad; 80100f31: 90 nop 80100f32: eb 0d jmp 80100f41 <exec+0x3d0> if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) goto bad; 80100f34: 90 nop 80100f35: eb 0a jmp 80100f41 <exec+0x3d0> // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) goto bad; 80100f37: 90 nop 80100f38: eb 07 jmp 80100f41 <exec+0x3d0> sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { if(argc >= MAXARG) goto bad; 80100f3a: 90 nop 80100f3b: eb 04 jmp 80100f41 <exec+0x3d0> sp = (sp - (strlen(argv[argc]) + 1)) & ~3; if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) goto bad; 80100f3d: 90 nop 80100f3e: eb 01 jmp 80100f41 <exec+0x3d0> ustack[1] = argc; ustack[2] = sp - (argc+1)*4; // argv pointer sp -= (3+argc+1) * 4; if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) goto bad; 80100f40: 90 nop switchuvm(proc); freevm(oldpgdir); return 0; bad: if(pgdir) 80100f41: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 80100f45: 74 0e je 80100f55 <exec+0x3e4> freevm(pgdir); 80100f47: 83 ec 0c sub $0xc,%esp 80100f4a: ff 75 d4 pushl -0x2c(%ebp) 80100f4d: e8 07 73 00 00 call 80108259 <freevm> 80100f52: 83 c4 10 add $0x10,%esp if(ip){ 80100f55: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80100f59: 74 13 je 80100f6e <exec+0x3fd> iunlockput(ip); 80100f5b: 83 ec 0c sub $0xc,%esp 80100f5e: ff 75 d8 pushl -0x28(%ebp) 80100f61: e8 c4 0c 00 00 call 80101c2a <iunlockput> 80100f66: 83 c4 10 add $0x10,%esp end_op(); 80100f69: e8 6b 26 00 00 call 801035d9 <end_op> } return -1; 80100f6e: b8 ff ff ff ff mov $0xffffffff,%eax } 80100f73: c9 leave 80100f74: c3 ret 80100f75 <fileinit>: struct file file[NFILE]; } ftable; void fileinit(void) { 80100f75: 55 push %ebp 80100f76: 89 e5 mov %esp,%ebp 80100f78: 83 ec 08 sub $0x8,%esp initlock(&ftable.lock, "ftable"); 80100f7b: 83 ec 08 sub $0x8,%esp 80100f7e: 68 b6 85 10 80 push $0x801085b6 80100f83: 68 20 08 11 80 push $0x80110820 80100f88: e8 7b 40 00 00 call 80105008 <initlock> 80100f8d: 83 c4 10 add $0x10,%esp } 80100f90: 90 nop 80100f91: c9 leave 80100f92: c3 ret 80100f93 <filealloc>: // Allocate a file structure. struct file* filealloc(void) { 80100f93: 55 push %ebp 80100f94: 89 e5 mov %esp,%ebp 80100f96: 83 ec 18 sub $0x18,%esp struct file *f; acquire(&ftable.lock); 80100f99: 83 ec 0c sub $0xc,%esp 80100f9c: 68 20 08 11 80 push $0x80110820 80100fa1: e8 84 40 00 00 call 8010502a <acquire> 80100fa6: 83 c4 10 add $0x10,%esp for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100fa9: c7 45 f4 54 08 11 80 movl $0x80110854,-0xc(%ebp) 80100fb0: eb 2d jmp 80100fdf <filealloc+0x4c> if(f->ref == 0){ 80100fb2: 8b 45 f4 mov -0xc(%ebp),%eax 80100fb5: 8b 40 04 mov 0x4(%eax),%eax 80100fb8: 85 c0 test %eax,%eax 80100fba: 75 1f jne 80100fdb <filealloc+0x48> f->ref = 1; 80100fbc: 8b 45 f4 mov -0xc(%ebp),%eax 80100fbf: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax) release(&ftable.lock); 80100fc6: 83 ec 0c sub $0xc,%esp 80100fc9: 68 20 08 11 80 push $0x80110820 80100fce: e8 be 40 00 00 call 80105091 <release> 80100fd3: 83 c4 10 add $0x10,%esp return f; 80100fd6: 8b 45 f4 mov -0xc(%ebp),%eax 80100fd9: eb 23 jmp 80100ffe <filealloc+0x6b> filealloc(void) { struct file *f; acquire(&ftable.lock); for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100fdb: 83 45 f4 18 addl $0x18,-0xc(%ebp) 80100fdf: b8 b4 11 11 80 mov $0x801111b4,%eax 80100fe4: 39 45 f4 cmp %eax,-0xc(%ebp) 80100fe7: 72 c9 jb 80100fb2 <filealloc+0x1f> f->ref = 1; release(&ftable.lock); return f; } } release(&ftable.lock); 80100fe9: 83 ec 0c sub $0xc,%esp 80100fec: 68 20 08 11 80 push $0x80110820 80100ff1: e8 9b 40 00 00 call 80105091 <release> 80100ff6: 83 c4 10 add $0x10,%esp return 0; 80100ff9: b8 00 00 00 00 mov $0x0,%eax } 80100ffe: c9 leave 80100fff: c3 ret 80101000 <filedup>: // Increment ref count for file f. struct file* filedup(struct file *f) { 80101000: 55 push %ebp 80101001: 89 e5 mov %esp,%ebp 80101003: 83 ec 08 sub $0x8,%esp acquire(&ftable.lock); 80101006: 83 ec 0c sub $0xc,%esp 80101009: 68 20 08 11 80 push $0x80110820 8010100e: e8 17 40 00 00 call 8010502a <acquire> 80101013: 83 c4 10 add $0x10,%esp if(f->ref < 1) 80101016: 8b 45 08 mov 0x8(%ebp),%eax 80101019: 8b 40 04 mov 0x4(%eax),%eax 8010101c: 85 c0 test %eax,%eax 8010101e: 7f 0d jg 8010102d <filedup+0x2d> panic("filedup"); 80101020: 83 ec 0c sub $0xc,%esp 80101023: 68 bd 85 10 80 push $0x801085bd 80101028: e8 39 f5 ff ff call 80100566 <panic> f->ref++; 8010102d: 8b 45 08 mov 0x8(%ebp),%eax 80101030: 8b 40 04 mov 0x4(%eax),%eax 80101033: 8d 50 01 lea 0x1(%eax),%edx 80101036: 8b 45 08 mov 0x8(%ebp),%eax 80101039: 89 50 04 mov %edx,0x4(%eax) release(&ftable.lock); 8010103c: 83 ec 0c sub $0xc,%esp 8010103f: 68 20 08 11 80 push $0x80110820 80101044: e8 48 40 00 00 call 80105091 <release> 80101049: 83 c4 10 add $0x10,%esp return f; 8010104c: 8b 45 08 mov 0x8(%ebp),%eax } 8010104f: c9 leave 80101050: c3 ret 80101051 <fileclose>: // Close file f. (Decrement ref count, close when reaches 0.) void fileclose(struct file *f) { 80101051: 55 push %ebp 80101052: 89 e5 mov %esp,%ebp 80101054: 83 ec 28 sub $0x28,%esp struct file ff; acquire(&ftable.lock); 80101057: 83 ec 0c sub $0xc,%esp 8010105a: 68 20 08 11 80 push $0x80110820 8010105f: e8 c6 3f 00 00 call 8010502a <acquire> 80101064: 83 c4 10 add $0x10,%esp if(f->ref < 1) 80101067: 8b 45 08 mov 0x8(%ebp),%eax 8010106a: 8b 40 04 mov 0x4(%eax),%eax 8010106d: 85 c0 test %eax,%eax 8010106f: 7f 0d jg 8010107e <fileclose+0x2d> panic("fileclose"); 80101071: 83 ec 0c sub $0xc,%esp 80101074: 68 c5 85 10 80 push $0x801085c5 80101079: e8 e8 f4 ff ff call 80100566 <panic> if(--f->ref > 0){ 8010107e: 8b 45 08 mov 0x8(%ebp),%eax 80101081: 8b 40 04 mov 0x4(%eax),%eax 80101084: 8d 50 ff lea -0x1(%eax),%edx 80101087: 8b 45 08 mov 0x8(%ebp),%eax 8010108a: 89 50 04 mov %edx,0x4(%eax) 8010108d: 8b 45 08 mov 0x8(%ebp),%eax 80101090: 8b 40 04 mov 0x4(%eax),%eax 80101093: 85 c0 test %eax,%eax 80101095: 7e 15 jle 801010ac <fileclose+0x5b> release(&ftable.lock); 80101097: 83 ec 0c sub $0xc,%esp 8010109a: 68 20 08 11 80 push $0x80110820 8010109f: e8 ed 3f 00 00 call 80105091 <release> 801010a4: 83 c4 10 add $0x10,%esp 801010a7: e9 8b 00 00 00 jmp 80101137 <fileclose+0xe6> return; } ff = *f; 801010ac: 8b 45 08 mov 0x8(%ebp),%eax 801010af: 8b 10 mov (%eax),%edx 801010b1: 89 55 e0 mov %edx,-0x20(%ebp) 801010b4: 8b 50 04 mov 0x4(%eax),%edx 801010b7: 89 55 e4 mov %edx,-0x1c(%ebp) 801010ba: 8b 50 08 mov 0x8(%eax),%edx 801010bd: 89 55 e8 mov %edx,-0x18(%ebp) 801010c0: 8b 50 0c mov 0xc(%eax),%edx 801010c3: 89 55 ec mov %edx,-0x14(%ebp) 801010c6: 8b 50 10 mov 0x10(%eax),%edx 801010c9: 89 55 f0 mov %edx,-0x10(%ebp) 801010cc: 8b 40 14 mov 0x14(%eax),%eax 801010cf: 89 45 f4 mov %eax,-0xc(%ebp) f->ref = 0; 801010d2: 8b 45 08 mov 0x8(%ebp),%eax 801010d5: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) f->type = FD_NONE; 801010dc: 8b 45 08 mov 0x8(%ebp),%eax 801010df: c7 00 00 00 00 00 movl $0x0,(%eax) release(&ftable.lock); 801010e5: 83 ec 0c sub $0xc,%esp 801010e8: 68 20 08 11 80 push $0x80110820 801010ed: e8 9f 3f 00 00 call 80105091 <release> 801010f2: 83 c4 10 add $0x10,%esp if(ff.type == FD_PIPE) 801010f5: 8b 45 e0 mov -0x20(%ebp),%eax 801010f8: 83 f8 01 cmp $0x1,%eax 801010fb: 75 19 jne 80101116 <fileclose+0xc5> pipeclose(ff.pipe, ff.writable); 801010fd: 0f b6 45 e9 movzbl -0x17(%ebp),%eax 80101101: 0f be d0 movsbl %al,%edx 80101104: 8b 45 ec mov -0x14(%ebp),%eax 80101107: 83 ec 08 sub $0x8,%esp 8010110a: 52 push %edx 8010110b: 50 push %eax 8010110c: e8 83 30 00 00 call 80104194 <pipeclose> 80101111: 83 c4 10 add $0x10,%esp 80101114: eb 21 jmp 80101137 <fileclose+0xe6> else if(ff.type == FD_INODE){ 80101116: 8b 45 e0 mov -0x20(%ebp),%eax 80101119: 83 f8 02 cmp $0x2,%eax 8010111c: 75 19 jne 80101137 <fileclose+0xe6> begin_op(); 8010111e: e8 2a 24 00 00 call 8010354d <begin_op> iput(ff.ip); 80101123: 8b 45 f0 mov -0x10(%ebp),%eax 80101126: 83 ec 0c sub $0xc,%esp 80101129: 50 push %eax 8010112a: e8 0b 0a 00 00 call 80101b3a <iput> 8010112f: 83 c4 10 add $0x10,%esp end_op(); 80101132: e8 a2 24 00 00 call 801035d9 <end_op> } } 80101137: c9 leave 80101138: c3 ret 80101139 <filestat>: // Get metadata about file f. int filestat(struct file *f, struct stat *st) { 80101139: 55 push %ebp 8010113a: 89 e5 mov %esp,%ebp 8010113c: 83 ec 08 sub $0x8,%esp if(f->type == FD_INODE){ 8010113f: 8b 45 08 mov 0x8(%ebp),%eax 80101142: 8b 00 mov (%eax),%eax 80101144: 83 f8 02 cmp $0x2,%eax 80101147: 75 40 jne 80101189 <filestat+0x50> ilock(f->ip); 80101149: 8b 45 08 mov 0x8(%ebp),%eax 8010114c: 8b 40 10 mov 0x10(%eax),%eax 8010114f: 83 ec 0c sub $0xc,%esp 80101152: 50 push %eax 80101153: e8 12 08 00 00 call 8010196a <ilock> 80101158: 83 c4 10 add $0x10,%esp stati(f->ip, st); 8010115b: 8b 45 08 mov 0x8(%ebp),%eax 8010115e: 8b 40 10 mov 0x10(%eax),%eax 80101161: 83 ec 08 sub $0x8,%esp 80101164: ff 75 0c pushl 0xc(%ebp) 80101167: 50 push %eax 80101168: e8 25 0d 00 00 call 80101e92 <stati> 8010116d: 83 c4 10 add $0x10,%esp iunlock(f->ip); 80101170: 8b 45 08 mov 0x8(%ebp),%eax 80101173: 8b 40 10 mov 0x10(%eax),%eax 80101176: 83 ec 0c sub $0xc,%esp 80101179: 50 push %eax 8010117a: e8 49 09 00 00 call 80101ac8 <iunlock> 8010117f: 83 c4 10 add $0x10,%esp return 0; 80101182: b8 00 00 00 00 mov $0x0,%eax 80101187: eb 05 jmp 8010118e <filestat+0x55> } return -1; 80101189: b8 ff ff ff ff mov $0xffffffff,%eax } 8010118e: c9 leave 8010118f: c3 ret 80101190 <fileread>: // Read from file f. int fileread(struct file *f, char *addr, int n) { 80101190: 55 push %ebp 80101191: 89 e5 mov %esp,%ebp 80101193: 83 ec 18 sub $0x18,%esp int r; if(f->readable == 0) 80101196: 8b 45 08 mov 0x8(%ebp),%eax 80101199: 0f b6 40 08 movzbl 0x8(%eax),%eax 8010119d: 84 c0 test %al,%al 8010119f: 75 0a jne 801011ab <fileread+0x1b> return -1; 801011a1: b8 ff ff ff ff mov $0xffffffff,%eax 801011a6: e9 9b 00 00 00 jmp 80101246 <fileread+0xb6> if(f->type == FD_PIPE) 801011ab: 8b 45 08 mov 0x8(%ebp),%eax 801011ae: 8b 00 mov (%eax),%eax 801011b0: 83 f8 01 cmp $0x1,%eax 801011b3: 75 1a jne 801011cf <fileread+0x3f> return piperead(f->pipe, addr, n); 801011b5: 8b 45 08 mov 0x8(%ebp),%eax 801011b8: 8b 40 0c mov 0xc(%eax),%eax 801011bb: 83 ec 04 sub $0x4,%esp 801011be: ff 75 10 pushl 0x10(%ebp) 801011c1: ff 75 0c pushl 0xc(%ebp) 801011c4: 50 push %eax 801011c5: e8 72 31 00 00 call 8010433c <piperead> 801011ca: 83 c4 10 add $0x10,%esp 801011cd: eb 77 jmp 80101246 <fileread+0xb6> if(f->type == FD_INODE){ 801011cf: 8b 45 08 mov 0x8(%ebp),%eax 801011d2: 8b 00 mov (%eax),%eax 801011d4: 83 f8 02 cmp $0x2,%eax 801011d7: 75 60 jne 80101239 <fileread+0xa9> ilock(f->ip); 801011d9: 8b 45 08 mov 0x8(%ebp),%eax 801011dc: 8b 40 10 mov 0x10(%eax),%eax 801011df: 83 ec 0c sub $0xc,%esp 801011e2: 50 push %eax 801011e3: e8 82 07 00 00 call 8010196a <ilock> 801011e8: 83 c4 10 add $0x10,%esp if((r = readi(f->ip, addr, f->off, n)) > 0) 801011eb: 8b 4d 10 mov 0x10(%ebp),%ecx 801011ee: 8b 45 08 mov 0x8(%ebp),%eax 801011f1: 8b 50 14 mov 0x14(%eax),%edx 801011f4: 8b 45 08 mov 0x8(%ebp),%eax 801011f7: 8b 40 10 mov 0x10(%eax),%eax 801011fa: 51 push %ecx 801011fb: 52 push %edx 801011fc: ff 75 0c pushl 0xc(%ebp) 801011ff: 50 push %eax 80101200: e8 d3 0c 00 00 call 80101ed8 <readi> 80101205: 83 c4 10 add $0x10,%esp 80101208: 89 45 f4 mov %eax,-0xc(%ebp) 8010120b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010120f: 7e 11 jle 80101222 <fileread+0x92> f->off += r; 80101211: 8b 45 08 mov 0x8(%ebp),%eax 80101214: 8b 50 14 mov 0x14(%eax),%edx 80101217: 8b 45 f4 mov -0xc(%ebp),%eax 8010121a: 01 c2 add %eax,%edx 8010121c: 8b 45 08 mov 0x8(%ebp),%eax 8010121f: 89 50 14 mov %edx,0x14(%eax) iunlock(f->ip); 80101222: 8b 45 08 mov 0x8(%ebp),%eax 80101225: 8b 40 10 mov 0x10(%eax),%eax 80101228: 83 ec 0c sub $0xc,%esp 8010122b: 50 push %eax 8010122c: e8 97 08 00 00 call 80101ac8 <iunlock> 80101231: 83 c4 10 add $0x10,%esp return r; 80101234: 8b 45 f4 mov -0xc(%ebp),%eax 80101237: eb 0d jmp 80101246 <fileread+0xb6> } panic("fileread"); 80101239: 83 ec 0c sub $0xc,%esp 8010123c: 68 cf 85 10 80 push $0x801085cf 80101241: e8 20 f3 ff ff call 80100566 <panic> } 80101246: c9 leave 80101247: c3 ret 80101248 <filewrite>: //PAGEBREAK! // Write to file f. int filewrite(struct file *f, char *addr, int n) { 80101248: 55 push %ebp 80101249: 89 e5 mov %esp,%ebp 8010124b: 53 push %ebx 8010124c: 83 ec 14 sub $0x14,%esp int r; if(f->writable == 0) 8010124f: 8b 45 08 mov 0x8(%ebp),%eax 80101252: 0f b6 40 09 movzbl 0x9(%eax),%eax 80101256: 84 c0 test %al,%al 80101258: 75 0a jne 80101264 <filewrite+0x1c> return -1; 8010125a: b8 ff ff ff ff mov $0xffffffff,%eax 8010125f: e9 1b 01 00 00 jmp 8010137f <filewrite+0x137> if(f->type == FD_PIPE) 80101264: 8b 45 08 mov 0x8(%ebp),%eax 80101267: 8b 00 mov (%eax),%eax 80101269: 83 f8 01 cmp $0x1,%eax 8010126c: 75 1d jne 8010128b <filewrite+0x43> return pipewrite(f->pipe, addr, n); 8010126e: 8b 45 08 mov 0x8(%ebp),%eax 80101271: 8b 40 0c mov 0xc(%eax),%eax 80101274: 83 ec 04 sub $0x4,%esp 80101277: ff 75 10 pushl 0x10(%ebp) 8010127a: ff 75 0c pushl 0xc(%ebp) 8010127d: 50 push %eax 8010127e: e8 bb 2f 00 00 call 8010423e <pipewrite> 80101283: 83 c4 10 add $0x10,%esp 80101286: e9 f4 00 00 00 jmp 8010137f <filewrite+0x137> if(f->type == FD_INODE){ 8010128b: 8b 45 08 mov 0x8(%ebp),%eax 8010128e: 8b 00 mov (%eax),%eax 80101290: 83 f8 02 cmp $0x2,%eax 80101293: 0f 85 d9 00 00 00 jne 80101372 <filewrite+0x12a> // the maximum log transaction size, including // i-node, indirect block, allocation blocks, // and 2 blocks of slop for non-aligned writes. // this really belongs lower down, since writei() // might be writing a device like the console. int max = ((LOGSIZE-1-1-2) / 2) * 512; 80101299: c7 45 ec 00 1a 00 00 movl $0x1a00,-0x14(%ebp) int i = 0; 801012a0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) while(i < n){ 801012a7: e9 a3 00 00 00 jmp 8010134f <filewrite+0x107> int n1 = n - i; 801012ac: 8b 45 10 mov 0x10(%ebp),%eax 801012af: 2b 45 f4 sub -0xc(%ebp),%eax 801012b2: 89 45 f0 mov %eax,-0x10(%ebp) if(n1 > max) 801012b5: 8b 45 f0 mov -0x10(%ebp),%eax 801012b8: 3b 45 ec cmp -0x14(%ebp),%eax 801012bb: 7e 06 jle 801012c3 <filewrite+0x7b> n1 = max; 801012bd: 8b 45 ec mov -0x14(%ebp),%eax 801012c0: 89 45 f0 mov %eax,-0x10(%ebp) begin_op(); 801012c3: e8 85 22 00 00 call 8010354d <begin_op> ilock(f->ip); 801012c8: 8b 45 08 mov 0x8(%ebp),%eax 801012cb: 8b 40 10 mov 0x10(%eax),%eax 801012ce: 83 ec 0c sub $0xc,%esp 801012d1: 50 push %eax 801012d2: e8 93 06 00 00 call 8010196a <ilock> 801012d7: 83 c4 10 add $0x10,%esp if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) 801012da: 8b 4d f0 mov -0x10(%ebp),%ecx 801012dd: 8b 45 08 mov 0x8(%ebp),%eax 801012e0: 8b 50 14 mov 0x14(%eax),%edx 801012e3: 8b 5d f4 mov -0xc(%ebp),%ebx 801012e6: 8b 45 0c mov 0xc(%ebp),%eax 801012e9: 01 c3 add %eax,%ebx 801012eb: 8b 45 08 mov 0x8(%ebp),%eax 801012ee: 8b 40 10 mov 0x10(%eax),%eax 801012f1: 51 push %ecx 801012f2: 52 push %edx 801012f3: 53 push %ebx 801012f4: 50 push %eax 801012f5: e8 35 0d 00 00 call 8010202f <writei> 801012fa: 83 c4 10 add $0x10,%esp 801012fd: 89 45 e8 mov %eax,-0x18(%ebp) 80101300: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80101304: 7e 11 jle 80101317 <filewrite+0xcf> f->off += r; 80101306: 8b 45 08 mov 0x8(%ebp),%eax 80101309: 8b 50 14 mov 0x14(%eax),%edx 8010130c: 8b 45 e8 mov -0x18(%ebp),%eax 8010130f: 01 c2 add %eax,%edx 80101311: 8b 45 08 mov 0x8(%ebp),%eax 80101314: 89 50 14 mov %edx,0x14(%eax) iunlock(f->ip); 80101317: 8b 45 08 mov 0x8(%ebp),%eax 8010131a: 8b 40 10 mov 0x10(%eax),%eax 8010131d: 83 ec 0c sub $0xc,%esp 80101320: 50 push %eax 80101321: e8 a2 07 00 00 call 80101ac8 <iunlock> 80101326: 83 c4 10 add $0x10,%esp end_op(); 80101329: e8 ab 22 00 00 call 801035d9 <end_op> if(r < 0) 8010132e: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80101332: 78 29 js 8010135d <filewrite+0x115> break; if(r != n1) 80101334: 8b 45 e8 mov -0x18(%ebp),%eax 80101337: 3b 45 f0 cmp -0x10(%ebp),%eax 8010133a: 74 0d je 80101349 <filewrite+0x101> panic("short filewrite"); 8010133c: 83 ec 0c sub $0xc,%esp 8010133f: 68 d8 85 10 80 push $0x801085d8 80101344: e8 1d f2 ff ff call 80100566 <panic> i += r; 80101349: 8b 45 e8 mov -0x18(%ebp),%eax 8010134c: 01 45 f4 add %eax,-0xc(%ebp) // and 2 blocks of slop for non-aligned writes. // this really belongs lower down, since writei() // might be writing a device like the console. int max = ((LOGSIZE-1-1-2) / 2) * 512; int i = 0; while(i < n){ 8010134f: 8b 45 f4 mov -0xc(%ebp),%eax 80101352: 3b 45 10 cmp 0x10(%ebp),%eax 80101355: 0f 8c 51 ff ff ff jl 801012ac <filewrite+0x64> 8010135b: eb 01 jmp 8010135e <filewrite+0x116> f->off += r; iunlock(f->ip); end_op(); if(r < 0) break; 8010135d: 90 nop if(r != n1) panic("short filewrite"); i += r; } return i == n ? n : -1; 8010135e: 8b 45 f4 mov -0xc(%ebp),%eax 80101361: 3b 45 10 cmp 0x10(%ebp),%eax 80101364: 75 05 jne 8010136b <filewrite+0x123> 80101366: 8b 45 10 mov 0x10(%ebp),%eax 80101369: eb 14 jmp 8010137f <filewrite+0x137> 8010136b: b8 ff ff ff ff mov $0xffffffff,%eax 80101370: eb 0d jmp 8010137f <filewrite+0x137> } panic("filewrite"); 80101372: 83 ec 0c sub $0xc,%esp 80101375: 68 e8 85 10 80 push $0x801085e8 8010137a: e8 e7 f1 ff ff call 80100566 <panic> } 8010137f: 8b 5d fc mov -0x4(%ebp),%ebx 80101382: c9 leave 80101383: c3 ret 80101384 <readsb>: struct superblock sb; // there should be one per dev, but we run with one dev // Read the super block. void readsb(int dev, struct superblock *sb) { 80101384: 55 push %ebp 80101385: 89 e5 mov %esp,%ebp 80101387: 83 ec 18 sub $0x18,%esp struct buf *bp; bp = bread(dev, 1); 8010138a: 8b 45 08 mov 0x8(%ebp),%eax 8010138d: 83 ec 08 sub $0x8,%esp 80101390: 6a 01 push $0x1 80101392: 50 push %eax 80101393: e8 1e ee ff ff call 801001b6 <bread> 80101398: 83 c4 10 add $0x10,%esp 8010139b: 89 45 f4 mov %eax,-0xc(%ebp) memmove(sb, bp->data, sizeof(*sb)); 8010139e: 8b 45 f4 mov -0xc(%ebp),%eax 801013a1: 83 c0 18 add $0x18,%eax 801013a4: 83 ec 04 sub $0x4,%esp 801013a7: 6a 1c push $0x1c 801013a9: 50 push %eax 801013aa: ff 75 0c pushl 0xc(%ebp) 801013ad: e8 9a 3f 00 00 call 8010534c <memmove> 801013b2: 83 c4 10 add $0x10,%esp brelse(bp); 801013b5: 83 ec 0c sub $0xc,%esp 801013b8: ff 75 f4 pushl -0xc(%ebp) 801013bb: e8 6e ee ff ff call 8010022e <brelse> 801013c0: 83 c4 10 add $0x10,%esp } 801013c3: 90 nop 801013c4: c9 leave 801013c5: c3 ret 801013c6 <bzero>: // Zero a block. static void bzero(int dev, int bno) { 801013c6: 55 push %ebp 801013c7: 89 e5 mov %esp,%ebp 801013c9: 83 ec 18 sub $0x18,%esp struct buf *bp; bp = bread(dev, bno); 801013cc: 8b 55 0c mov 0xc(%ebp),%edx 801013cf: 8b 45 08 mov 0x8(%ebp),%eax 801013d2: 83 ec 08 sub $0x8,%esp 801013d5: 52 push %edx 801013d6: 50 push %eax 801013d7: e8 da ed ff ff call 801001b6 <bread> 801013dc: 83 c4 10 add $0x10,%esp 801013df: 89 45 f4 mov %eax,-0xc(%ebp) memset(bp->data, 0, BSIZE); 801013e2: 8b 45 f4 mov -0xc(%ebp),%eax 801013e5: 83 c0 18 add $0x18,%eax 801013e8: 83 ec 04 sub $0x4,%esp 801013eb: 68 00 02 00 00 push $0x200 801013f0: 6a 00 push $0x0 801013f2: 50 push %eax 801013f3: e8 95 3e 00 00 call 8010528d <memset> 801013f8: 83 c4 10 add $0x10,%esp log_write(bp); 801013fb: 83 ec 0c sub $0xc,%esp 801013fe: ff 75 f4 pushl -0xc(%ebp) 80101401: e8 7f 23 00 00 call 80103785 <log_write> 80101406: 83 c4 10 add $0x10,%esp brelse(bp); 80101409: 83 ec 0c sub $0xc,%esp 8010140c: ff 75 f4 pushl -0xc(%ebp) 8010140f: e8 1a ee ff ff call 8010022e <brelse> 80101414: 83 c4 10 add $0x10,%esp } 80101417: 90 nop 80101418: c9 leave 80101419: c3 ret 8010141a <balloc>: // Blocks. // Allocate a zeroed disk block. static uint balloc(uint dev) { 8010141a: 55 push %ebp 8010141b: 89 e5 mov %esp,%ebp 8010141d: 83 ec 18 sub $0x18,%esp int b, bi, m; struct buf *bp; bp = 0; 80101420: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) for(b = 0; b < sb.size; b += BPB){ 80101427: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010142e: e9 13 01 00 00 jmp 80101546 <balloc+0x12c> bp = bread(dev, BBLOCK(b, sb)); 80101433: 8b 45 f4 mov -0xc(%ebp),%eax 80101436: 8d 90 ff 0f 00 00 lea 0xfff(%eax),%edx 8010143c: 85 c0 test %eax,%eax 8010143e: 0f 48 c2 cmovs %edx,%eax 80101441: c1 f8 0c sar $0xc,%eax 80101444: 89 c2 mov %eax,%edx 80101446: a1 38 12 11 80 mov 0x80111238,%eax 8010144b: 01 d0 add %edx,%eax 8010144d: 83 ec 08 sub $0x8,%esp 80101450: 50 push %eax 80101451: ff 75 08 pushl 0x8(%ebp) 80101454: e8 5d ed ff ff call 801001b6 <bread> 80101459: 83 c4 10 add $0x10,%esp 8010145c: 89 45 ec mov %eax,-0x14(%ebp) for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 8010145f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80101466: e9 a6 00 00 00 jmp 80101511 <balloc+0xf7> m = 1 << (bi % 8); 8010146b: 8b 45 f0 mov -0x10(%ebp),%eax 8010146e: 99 cltd 8010146f: c1 ea 1d shr $0x1d,%edx 80101472: 01 d0 add %edx,%eax 80101474: 83 e0 07 and $0x7,%eax 80101477: 29 d0 sub %edx,%eax 80101479: ba 01 00 00 00 mov $0x1,%edx 8010147e: 89 c1 mov %eax,%ecx 80101480: d3 e2 shl %cl,%edx 80101482: 89 d0 mov %edx,%eax 80101484: 89 45 e8 mov %eax,-0x18(%ebp) if((bp->data[bi/8] & m) == 0){ // Is block free? 80101487: 8b 45 f0 mov -0x10(%ebp),%eax 8010148a: 8d 50 07 lea 0x7(%eax),%edx 8010148d: 85 c0 test %eax,%eax 8010148f: 0f 48 c2 cmovs %edx,%eax 80101492: c1 f8 03 sar $0x3,%eax 80101495: 89 c2 mov %eax,%edx 80101497: 8b 45 ec mov -0x14(%ebp),%eax 8010149a: 0f b6 44 10 18 movzbl 0x18(%eax,%edx,1),%eax 8010149f: 0f b6 c0 movzbl %al,%eax 801014a2: 23 45 e8 and -0x18(%ebp),%eax 801014a5: 85 c0 test %eax,%eax 801014a7: 75 64 jne 8010150d <balloc+0xf3> bp->data[bi/8] |= m; // Mark block in use. 801014a9: 8b 45 f0 mov -0x10(%ebp),%eax 801014ac: 8d 50 07 lea 0x7(%eax),%edx 801014af: 85 c0 test %eax,%eax 801014b1: 0f 48 c2 cmovs %edx,%eax 801014b4: c1 f8 03 sar $0x3,%eax 801014b7: 8b 55 ec mov -0x14(%ebp),%edx 801014ba: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx 801014bf: 89 d1 mov %edx,%ecx 801014c1: 8b 55 e8 mov -0x18(%ebp),%edx 801014c4: 09 ca or %ecx,%edx 801014c6: 89 d1 mov %edx,%ecx 801014c8: 8b 55 ec mov -0x14(%ebp),%edx 801014cb: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1) log_write(bp); 801014cf: 83 ec 0c sub $0xc,%esp 801014d2: ff 75 ec pushl -0x14(%ebp) 801014d5: e8 ab 22 00 00 call 80103785 <log_write> 801014da: 83 c4 10 add $0x10,%esp brelse(bp); 801014dd: 83 ec 0c sub $0xc,%esp 801014e0: ff 75 ec pushl -0x14(%ebp) 801014e3: e8 46 ed ff ff call 8010022e <brelse> 801014e8: 83 c4 10 add $0x10,%esp bzero(dev, b + bi); 801014eb: 8b 55 f4 mov -0xc(%ebp),%edx 801014ee: 8b 45 f0 mov -0x10(%ebp),%eax 801014f1: 01 c2 add %eax,%edx 801014f3: 8b 45 08 mov 0x8(%ebp),%eax 801014f6: 83 ec 08 sub $0x8,%esp 801014f9: 52 push %edx 801014fa: 50 push %eax 801014fb: e8 c6 fe ff ff call 801013c6 <bzero> 80101500: 83 c4 10 add $0x10,%esp return b + bi; 80101503: 8b 55 f4 mov -0xc(%ebp),%edx 80101506: 8b 45 f0 mov -0x10(%ebp),%eax 80101509: 01 d0 add %edx,%eax 8010150b: eb 57 jmp 80101564 <balloc+0x14a> struct buf *bp; bp = 0; for(b = 0; b < sb.size; b += BPB){ bp = bread(dev, BBLOCK(b, sb)); for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 8010150d: 83 45 f0 01 addl $0x1,-0x10(%ebp) 80101511: 81 7d f0 ff 0f 00 00 cmpl $0xfff,-0x10(%ebp) 80101518: 7f 17 jg 80101531 <balloc+0x117> 8010151a: 8b 55 f4 mov -0xc(%ebp),%edx 8010151d: 8b 45 f0 mov -0x10(%ebp),%eax 80101520: 01 d0 add %edx,%eax 80101522: 89 c2 mov %eax,%edx 80101524: a1 20 12 11 80 mov 0x80111220,%eax 80101529: 39 c2 cmp %eax,%edx 8010152b: 0f 82 3a ff ff ff jb 8010146b <balloc+0x51> brelse(bp); bzero(dev, b + bi); return b + bi; } } brelse(bp); 80101531: 83 ec 0c sub $0xc,%esp 80101534: ff 75 ec pushl -0x14(%ebp) 80101537: e8 f2 ec ff ff call 8010022e <brelse> 8010153c: 83 c4 10 add $0x10,%esp { int b, bi, m; struct buf *bp; bp = 0; for(b = 0; b < sb.size; b += BPB){ 8010153f: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80101546: 8b 15 20 12 11 80 mov 0x80111220,%edx 8010154c: 8b 45 f4 mov -0xc(%ebp),%eax 8010154f: 39 c2 cmp %eax,%edx 80101551: 0f 87 dc fe ff ff ja 80101433 <balloc+0x19> return b + bi; } } brelse(bp); } panic("balloc: out of blocks"); 80101557: 83 ec 0c sub $0xc,%esp 8010155a: 68 f4 85 10 80 push $0x801085f4 8010155f: e8 02 f0 ff ff call 80100566 <panic> } 80101564: c9 leave 80101565: c3 ret 80101566 <bfree>: // Free a disk block. static void bfree(int dev, uint b) { 80101566: 55 push %ebp 80101567: 89 e5 mov %esp,%ebp 80101569: 83 ec 18 sub $0x18,%esp struct buf *bp; int bi, m; readsb(dev, &sb); 8010156c: 83 ec 08 sub $0x8,%esp 8010156f: 68 20 12 11 80 push $0x80111220 80101574: ff 75 08 pushl 0x8(%ebp) 80101577: e8 08 fe ff ff call 80101384 <readsb> 8010157c: 83 c4 10 add $0x10,%esp bp = bread(dev, BBLOCK(b, sb)); 8010157f: 8b 45 0c mov 0xc(%ebp),%eax 80101582: c1 e8 0c shr $0xc,%eax 80101585: 89 c2 mov %eax,%edx 80101587: a1 38 12 11 80 mov 0x80111238,%eax 8010158c: 01 c2 add %eax,%edx 8010158e: 8b 45 08 mov 0x8(%ebp),%eax 80101591: 83 ec 08 sub $0x8,%esp 80101594: 52 push %edx 80101595: 50 push %eax 80101596: e8 1b ec ff ff call 801001b6 <bread> 8010159b: 83 c4 10 add $0x10,%esp 8010159e: 89 45 f4 mov %eax,-0xc(%ebp) bi = b % BPB; 801015a1: 8b 45 0c mov 0xc(%ebp),%eax 801015a4: 25 ff 0f 00 00 and $0xfff,%eax 801015a9: 89 45 f0 mov %eax,-0x10(%ebp) m = 1 << (bi % 8); 801015ac: 8b 45 f0 mov -0x10(%ebp),%eax 801015af: 99 cltd 801015b0: c1 ea 1d shr $0x1d,%edx 801015b3: 01 d0 add %edx,%eax 801015b5: 83 e0 07 and $0x7,%eax 801015b8: 29 d0 sub %edx,%eax 801015ba: ba 01 00 00 00 mov $0x1,%edx 801015bf: 89 c1 mov %eax,%ecx 801015c1: d3 e2 shl %cl,%edx 801015c3: 89 d0 mov %edx,%eax 801015c5: 89 45 ec mov %eax,-0x14(%ebp) if((bp->data[bi/8] & m) == 0) 801015c8: 8b 45 f0 mov -0x10(%ebp),%eax 801015cb: 8d 50 07 lea 0x7(%eax),%edx 801015ce: 85 c0 test %eax,%eax 801015d0: 0f 48 c2 cmovs %edx,%eax 801015d3: c1 f8 03 sar $0x3,%eax 801015d6: 89 c2 mov %eax,%edx 801015d8: 8b 45 f4 mov -0xc(%ebp),%eax 801015db: 0f b6 44 10 18 movzbl 0x18(%eax,%edx,1),%eax 801015e0: 0f b6 c0 movzbl %al,%eax 801015e3: 23 45 ec and -0x14(%ebp),%eax 801015e6: 85 c0 test %eax,%eax 801015e8: 75 0d jne 801015f7 <bfree+0x91> panic("freeing free block"); 801015ea: 83 ec 0c sub $0xc,%esp 801015ed: 68 0a 86 10 80 push $0x8010860a 801015f2: e8 6f ef ff ff call 80100566 <panic> bp->data[bi/8] &= ~m; 801015f7: 8b 45 f0 mov -0x10(%ebp),%eax 801015fa: 8d 50 07 lea 0x7(%eax),%edx 801015fd: 85 c0 test %eax,%eax 801015ff: 0f 48 c2 cmovs %edx,%eax 80101602: c1 f8 03 sar $0x3,%eax 80101605: 8b 55 f4 mov -0xc(%ebp),%edx 80101608: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx 8010160d: 89 d1 mov %edx,%ecx 8010160f: 8b 55 ec mov -0x14(%ebp),%edx 80101612: f7 d2 not %edx 80101614: 21 ca and %ecx,%edx 80101616: 89 d1 mov %edx,%ecx 80101618: 8b 55 f4 mov -0xc(%ebp),%edx 8010161b: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1) log_write(bp); 8010161f: 83 ec 0c sub $0xc,%esp 80101622: ff 75 f4 pushl -0xc(%ebp) 80101625: e8 5b 21 00 00 call 80103785 <log_write> 8010162a: 83 c4 10 add $0x10,%esp brelse(bp); 8010162d: 83 ec 0c sub $0xc,%esp 80101630: ff 75 f4 pushl -0xc(%ebp) 80101633: e8 f6 eb ff ff call 8010022e <brelse> 80101638: 83 c4 10 add $0x10,%esp } 8010163b: 90 nop 8010163c: c9 leave 8010163d: c3 ret 8010163e <iinit>: struct inode inode[NINODE]; } icache; void iinit(int dev) { 8010163e: 55 push %ebp 8010163f: 89 e5 mov %esp,%ebp 80101641: 57 push %edi 80101642: 56 push %esi 80101643: 53 push %ebx 80101644: 83 ec 1c sub $0x1c,%esp initlock(&icache.lock, "icache"); 80101647: 83 ec 08 sub $0x8,%esp 8010164a: 68 1d 86 10 80 push $0x8010861d 8010164f: 68 40 12 11 80 push $0x80111240 80101654: e8 af 39 00 00 call 80105008 <initlock> 80101659: 83 c4 10 add $0x10,%esp readsb(dev, &sb); 8010165c: 83 ec 08 sub $0x8,%esp 8010165f: 68 20 12 11 80 push $0x80111220 80101664: ff 75 08 pushl 0x8(%ebp) 80101667: e8 18 fd ff ff call 80101384 <readsb> 8010166c: 83 c4 10 add $0x10,%esp cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d inodestart %d bmap start %d\n", sb.size, 8010166f: a1 38 12 11 80 mov 0x80111238,%eax 80101674: 89 45 e4 mov %eax,-0x1c(%ebp) 80101677: 8b 3d 34 12 11 80 mov 0x80111234,%edi 8010167d: 8b 35 30 12 11 80 mov 0x80111230,%esi 80101683: 8b 1d 2c 12 11 80 mov 0x8011122c,%ebx 80101689: 8b 0d 28 12 11 80 mov 0x80111228,%ecx 8010168f: 8b 15 24 12 11 80 mov 0x80111224,%edx 80101695: a1 20 12 11 80 mov 0x80111220,%eax 8010169a: ff 75 e4 pushl -0x1c(%ebp) 8010169d: 57 push %edi 8010169e: 56 push %esi 8010169f: 53 push %ebx 801016a0: 51 push %ecx 801016a1: 52 push %edx 801016a2: 50 push %eax 801016a3: 68 24 86 10 80 push $0x80108624 801016a8: e8 19 ed ff ff call 801003c6 <cprintf> 801016ad: 83 c4 20 add $0x20,%esp sb.nblocks, sb.ninodes, sb.nlog, sb.logstart, sb.inodestart, sb.bmapstart); } 801016b0: 90 nop 801016b1: 8d 65 f4 lea -0xc(%ebp),%esp 801016b4: 5b pop %ebx 801016b5: 5e pop %esi 801016b6: 5f pop %edi 801016b7: 5d pop %ebp 801016b8: c3 ret 801016b9 <ialloc>: //PAGEBREAK! // Allocate a new inode with the given type on device dev. // A free inode has a type of zero. struct inode* ialloc(uint dev, short type) { 801016b9: 55 push %ebp 801016ba: 89 e5 mov %esp,%ebp 801016bc: 83 ec 28 sub $0x28,%esp 801016bf: 8b 45 0c mov 0xc(%ebp),%eax 801016c2: 66 89 45 e4 mov %ax,-0x1c(%ebp) int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 801016c6: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 801016cd: e9 9e 00 00 00 jmp 80101770 <ialloc+0xb7> bp = bread(dev, IBLOCK(inum, sb)); 801016d2: 8b 45 f4 mov -0xc(%ebp),%eax 801016d5: c1 e8 03 shr $0x3,%eax 801016d8: 89 c2 mov %eax,%edx 801016da: a1 34 12 11 80 mov 0x80111234,%eax 801016df: 01 d0 add %edx,%eax 801016e1: 83 ec 08 sub $0x8,%esp 801016e4: 50 push %eax 801016e5: ff 75 08 pushl 0x8(%ebp) 801016e8: e8 c9 ea ff ff call 801001b6 <bread> 801016ed: 83 c4 10 add $0x10,%esp 801016f0: 89 45 f0 mov %eax,-0x10(%ebp) dip = (struct dinode*)bp->data + inum%IPB; 801016f3: 8b 45 f0 mov -0x10(%ebp),%eax 801016f6: 8d 50 18 lea 0x18(%eax),%edx 801016f9: 8b 45 f4 mov -0xc(%ebp),%eax 801016fc: 83 e0 07 and $0x7,%eax 801016ff: c1 e0 06 shl $0x6,%eax 80101702: 01 d0 add %edx,%eax 80101704: 89 45 ec mov %eax,-0x14(%ebp) if(dip->type == 0){ // a free inode 80101707: 8b 45 ec mov -0x14(%ebp),%eax 8010170a: 0f b7 00 movzwl (%eax),%eax 8010170d: 66 85 c0 test %ax,%ax 80101710: 75 4c jne 8010175e <ialloc+0xa5> memset(dip, 0, sizeof(*dip)); 80101712: 83 ec 04 sub $0x4,%esp 80101715: 6a 40 push $0x40 80101717: 6a 00 push $0x0 80101719: ff 75 ec pushl -0x14(%ebp) 8010171c: e8 6c 3b 00 00 call 8010528d <memset> 80101721: 83 c4 10 add $0x10,%esp dip->type = type; 80101724: 8b 45 ec mov -0x14(%ebp),%eax 80101727: 0f b7 55 e4 movzwl -0x1c(%ebp),%edx 8010172b: 66 89 10 mov %dx,(%eax) log_write(bp); // mark it allocated on the disk 8010172e: 83 ec 0c sub $0xc,%esp 80101731: ff 75 f0 pushl -0x10(%ebp) 80101734: e8 4c 20 00 00 call 80103785 <log_write> 80101739: 83 c4 10 add $0x10,%esp brelse(bp); 8010173c: 83 ec 0c sub $0xc,%esp 8010173f: ff 75 f0 pushl -0x10(%ebp) 80101742: e8 e7 ea ff ff call 8010022e <brelse> 80101747: 83 c4 10 add $0x10,%esp return iget(dev, inum); 8010174a: 8b 45 f4 mov -0xc(%ebp),%eax 8010174d: 83 ec 08 sub $0x8,%esp 80101750: 50 push %eax 80101751: ff 75 08 pushl 0x8(%ebp) 80101754: e8 f8 00 00 00 call 80101851 <iget> 80101759: 83 c4 10 add $0x10,%esp 8010175c: eb 30 jmp 8010178e <ialloc+0xd5> } brelse(bp); 8010175e: 83 ec 0c sub $0xc,%esp 80101761: ff 75 f0 pushl -0x10(%ebp) 80101764: e8 c5 ea ff ff call 8010022e <brelse> 80101769: 83 c4 10 add $0x10,%esp { int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 8010176c: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80101770: 8b 15 28 12 11 80 mov 0x80111228,%edx 80101776: 8b 45 f4 mov -0xc(%ebp),%eax 80101779: 39 c2 cmp %eax,%edx 8010177b: 0f 87 51 ff ff ff ja 801016d2 <ialloc+0x19> brelse(bp); return iget(dev, inum); } brelse(bp); } panic("ialloc: no inodes"); 80101781: 83 ec 0c sub $0xc,%esp 80101784: 68 77 86 10 80 push $0x80108677 80101789: e8 d8 ed ff ff call 80100566 <panic> } 8010178e: c9 leave 8010178f: c3 ret 80101790 <iupdate>: // Copy a modified in-memory inode to disk. void iupdate(struct inode *ip) { 80101790: 55 push %ebp 80101791: 89 e5 mov %esp,%ebp 80101793: 83 ec 18 sub $0x18,%esp struct buf *bp; struct dinode *dip; bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 80101796: 8b 45 08 mov 0x8(%ebp),%eax 80101799: 8b 40 04 mov 0x4(%eax),%eax 8010179c: c1 e8 03 shr $0x3,%eax 8010179f: 89 c2 mov %eax,%edx 801017a1: a1 34 12 11 80 mov 0x80111234,%eax 801017a6: 01 c2 add %eax,%edx 801017a8: 8b 45 08 mov 0x8(%ebp),%eax 801017ab: 8b 00 mov (%eax),%eax 801017ad: 83 ec 08 sub $0x8,%esp 801017b0: 52 push %edx 801017b1: 50 push %eax 801017b2: e8 ff e9 ff ff call 801001b6 <bread> 801017b7: 83 c4 10 add $0x10,%esp 801017ba: 89 45 f4 mov %eax,-0xc(%ebp) dip = (struct dinode*)bp->data + ip->inum%IPB; 801017bd: 8b 45 f4 mov -0xc(%ebp),%eax 801017c0: 8d 50 18 lea 0x18(%eax),%edx 801017c3: 8b 45 08 mov 0x8(%ebp),%eax 801017c6: 8b 40 04 mov 0x4(%eax),%eax 801017c9: 83 e0 07 and $0x7,%eax 801017cc: c1 e0 06 shl $0x6,%eax 801017cf: 01 d0 add %edx,%eax 801017d1: 89 45 f0 mov %eax,-0x10(%ebp) dip->type = ip->type; 801017d4: 8b 45 08 mov 0x8(%ebp),%eax 801017d7: 0f b7 50 10 movzwl 0x10(%eax),%edx 801017db: 8b 45 f0 mov -0x10(%ebp),%eax 801017de: 66 89 10 mov %dx,(%eax) dip->major = ip->major; 801017e1: 8b 45 08 mov 0x8(%ebp),%eax 801017e4: 0f b7 50 12 movzwl 0x12(%eax),%edx 801017e8: 8b 45 f0 mov -0x10(%ebp),%eax 801017eb: 66 89 50 02 mov %dx,0x2(%eax) dip->minor = ip->minor; 801017ef: 8b 45 08 mov 0x8(%ebp),%eax 801017f2: 0f b7 50 14 movzwl 0x14(%eax),%edx 801017f6: 8b 45 f0 mov -0x10(%ebp),%eax 801017f9: 66 89 50 04 mov %dx,0x4(%eax) dip->nlink = ip->nlink; 801017fd: 8b 45 08 mov 0x8(%ebp),%eax 80101800: 0f b7 50 16 movzwl 0x16(%eax),%edx 80101804: 8b 45 f0 mov -0x10(%ebp),%eax 80101807: 66 89 50 06 mov %dx,0x6(%eax) dip->size = ip->size; 8010180b: 8b 45 08 mov 0x8(%ebp),%eax 8010180e: 8b 50 18 mov 0x18(%eax),%edx 80101811: 8b 45 f0 mov -0x10(%ebp),%eax 80101814: 89 50 08 mov %edx,0x8(%eax) memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 80101817: 8b 45 08 mov 0x8(%ebp),%eax 8010181a: 8d 50 1c lea 0x1c(%eax),%edx 8010181d: 8b 45 f0 mov -0x10(%ebp),%eax 80101820: 83 c0 0c add $0xc,%eax 80101823: 83 ec 04 sub $0x4,%esp 80101826: 6a 34 push $0x34 80101828: 52 push %edx 80101829: 50 push %eax 8010182a: e8 1d 3b 00 00 call 8010534c <memmove> 8010182f: 83 c4 10 add $0x10,%esp log_write(bp); 80101832: 83 ec 0c sub $0xc,%esp 80101835: ff 75 f4 pushl -0xc(%ebp) 80101838: e8 48 1f 00 00 call 80103785 <log_write> 8010183d: 83 c4 10 add $0x10,%esp brelse(bp); 80101840: 83 ec 0c sub $0xc,%esp 80101843: ff 75 f4 pushl -0xc(%ebp) 80101846: e8 e3 e9 ff ff call 8010022e <brelse> 8010184b: 83 c4 10 add $0x10,%esp } 8010184e: 90 nop 8010184f: c9 leave 80101850: c3 ret 80101851 <iget>: // Find the inode with number inum on device dev // and return the in-memory copy. Does not lock // the inode and does not read it from disk. static struct inode* iget(uint dev, uint inum) { 80101851: 55 push %ebp 80101852: 89 e5 mov %esp,%ebp 80101854: 83 ec 18 sub $0x18,%esp struct inode *ip, *empty; acquire(&icache.lock); 80101857: 83 ec 0c sub $0xc,%esp 8010185a: 68 40 12 11 80 push $0x80111240 8010185f: e8 c6 37 00 00 call 8010502a <acquire> 80101864: 83 c4 10 add $0x10,%esp // Is the inode already cached? empty = 0; 80101867: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 8010186e: c7 45 f4 74 12 11 80 movl $0x80111274,-0xc(%ebp) 80101875: eb 5d jmp 801018d4 <iget+0x83> if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 80101877: 8b 45 f4 mov -0xc(%ebp),%eax 8010187a: 8b 40 08 mov 0x8(%eax),%eax 8010187d: 85 c0 test %eax,%eax 8010187f: 7e 39 jle 801018ba <iget+0x69> 80101881: 8b 45 f4 mov -0xc(%ebp),%eax 80101884: 8b 00 mov (%eax),%eax 80101886: 3b 45 08 cmp 0x8(%ebp),%eax 80101889: 75 2f jne 801018ba <iget+0x69> 8010188b: 8b 45 f4 mov -0xc(%ebp),%eax 8010188e: 8b 40 04 mov 0x4(%eax),%eax 80101891: 3b 45 0c cmp 0xc(%ebp),%eax 80101894: 75 24 jne 801018ba <iget+0x69> ip->ref++; 80101896: 8b 45 f4 mov -0xc(%ebp),%eax 80101899: 8b 40 08 mov 0x8(%eax),%eax 8010189c: 8d 50 01 lea 0x1(%eax),%edx 8010189f: 8b 45 f4 mov -0xc(%ebp),%eax 801018a2: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 801018a5: 83 ec 0c sub $0xc,%esp 801018a8: 68 40 12 11 80 push $0x80111240 801018ad: e8 df 37 00 00 call 80105091 <release> 801018b2: 83 c4 10 add $0x10,%esp return ip; 801018b5: 8b 45 f4 mov -0xc(%ebp),%eax 801018b8: eb 74 jmp 8010192e <iget+0xdd> } if(empty == 0 && ip->ref == 0) // Remember empty slot. 801018ba: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801018be: 75 10 jne 801018d0 <iget+0x7f> 801018c0: 8b 45 f4 mov -0xc(%ebp),%eax 801018c3: 8b 40 08 mov 0x8(%eax),%eax 801018c6: 85 c0 test %eax,%eax 801018c8: 75 06 jne 801018d0 <iget+0x7f> empty = ip; 801018ca: 8b 45 f4 mov -0xc(%ebp),%eax 801018cd: 89 45 f0 mov %eax,-0x10(%ebp) acquire(&icache.lock); // Is the inode already cached? empty = 0; for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 801018d0: 83 45 f4 50 addl $0x50,-0xc(%ebp) 801018d4: 81 7d f4 14 22 11 80 cmpl $0x80112214,-0xc(%ebp) 801018db: 72 9a jb 80101877 <iget+0x26> if(empty == 0 && ip->ref == 0) // Remember empty slot. empty = ip; } // Recycle an inode cache entry. if(empty == 0) 801018dd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801018e1: 75 0d jne 801018f0 <iget+0x9f> panic("iget: no inodes"); 801018e3: 83 ec 0c sub $0xc,%esp 801018e6: 68 89 86 10 80 push $0x80108689 801018eb: e8 76 ec ff ff call 80100566 <panic> ip = empty; 801018f0: 8b 45 f0 mov -0x10(%ebp),%eax 801018f3: 89 45 f4 mov %eax,-0xc(%ebp) ip->dev = dev; 801018f6: 8b 45 f4 mov -0xc(%ebp),%eax 801018f9: 8b 55 08 mov 0x8(%ebp),%edx 801018fc: 89 10 mov %edx,(%eax) ip->inum = inum; 801018fe: 8b 45 f4 mov -0xc(%ebp),%eax 80101901: 8b 55 0c mov 0xc(%ebp),%edx 80101904: 89 50 04 mov %edx,0x4(%eax) ip->ref = 1; 80101907: 8b 45 f4 mov -0xc(%ebp),%eax 8010190a: c7 40 08 01 00 00 00 movl $0x1,0x8(%eax) ip->flags = 0; 80101911: 8b 45 f4 mov -0xc(%ebp),%eax 80101914: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) release(&icache.lock); 8010191b: 83 ec 0c sub $0xc,%esp 8010191e: 68 40 12 11 80 push $0x80111240 80101923: e8 69 37 00 00 call 80105091 <release> 80101928: 83 c4 10 add $0x10,%esp return ip; 8010192b: 8b 45 f4 mov -0xc(%ebp),%eax } 8010192e: c9 leave 8010192f: c3 ret 80101930 <idup>: // Increment reference count for ip. // Returns ip to enable ip = idup(ip1) idiom. struct inode* idup(struct inode *ip) { 80101930: 55 push %ebp 80101931: 89 e5 mov %esp,%ebp 80101933: 83 ec 08 sub $0x8,%esp acquire(&icache.lock); 80101936: 83 ec 0c sub $0xc,%esp 80101939: 68 40 12 11 80 push $0x80111240 8010193e: e8 e7 36 00 00 call 8010502a <acquire> 80101943: 83 c4 10 add $0x10,%esp ip->ref++; 80101946: 8b 45 08 mov 0x8(%ebp),%eax 80101949: 8b 40 08 mov 0x8(%eax),%eax 8010194c: 8d 50 01 lea 0x1(%eax),%edx 8010194f: 8b 45 08 mov 0x8(%ebp),%eax 80101952: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 80101955: 83 ec 0c sub $0xc,%esp 80101958: 68 40 12 11 80 push $0x80111240 8010195d: e8 2f 37 00 00 call 80105091 <release> 80101962: 83 c4 10 add $0x10,%esp return ip; 80101965: 8b 45 08 mov 0x8(%ebp),%eax } 80101968: c9 leave 80101969: c3 ret 8010196a <ilock>: // Lock the given inode. // Reads the inode from disk if necessary. void ilock(struct inode *ip) { 8010196a: 55 push %ebp 8010196b: 89 e5 mov %esp,%ebp 8010196d: 83 ec 18 sub $0x18,%esp struct buf *bp; struct dinode *dip; if(ip == 0 || ip->ref < 1) 80101970: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80101974: 74 0a je 80101980 <ilock+0x16> 80101976: 8b 45 08 mov 0x8(%ebp),%eax 80101979: 8b 40 08 mov 0x8(%eax),%eax 8010197c: 85 c0 test %eax,%eax 8010197e: 7f 0d jg 8010198d <ilock+0x23> panic("ilock"); 80101980: 83 ec 0c sub $0xc,%esp 80101983: 68 99 86 10 80 push $0x80108699 80101988: e8 d9 eb ff ff call 80100566 <panic> acquire(&icache.lock); 8010198d: 83 ec 0c sub $0xc,%esp 80101990: 68 40 12 11 80 push $0x80111240 80101995: e8 90 36 00 00 call 8010502a <acquire> 8010199a: 83 c4 10 add $0x10,%esp while(ip->flags & I_BUSY) 8010199d: eb 13 jmp 801019b2 <ilock+0x48> sleep(ip, &icache.lock); 8010199f: 83 ec 08 sub $0x8,%esp 801019a2: 68 40 12 11 80 push $0x80111240 801019a7: ff 75 08 pushl 0x8(%ebp) 801019aa: e8 82 33 00 00 call 80104d31 <sleep> 801019af: 83 c4 10 add $0x10,%esp if(ip == 0 || ip->ref < 1) panic("ilock"); acquire(&icache.lock); while(ip->flags & I_BUSY) 801019b2: 8b 45 08 mov 0x8(%ebp),%eax 801019b5: 8b 40 0c mov 0xc(%eax),%eax 801019b8: 83 e0 01 and $0x1,%eax 801019bb: 85 c0 test %eax,%eax 801019bd: 75 e0 jne 8010199f <ilock+0x35> sleep(ip, &icache.lock); ip->flags |= I_BUSY; 801019bf: 8b 45 08 mov 0x8(%ebp),%eax 801019c2: 8b 40 0c mov 0xc(%eax),%eax 801019c5: 83 c8 01 or $0x1,%eax 801019c8: 89 c2 mov %eax,%edx 801019ca: 8b 45 08 mov 0x8(%ebp),%eax 801019cd: 89 50 0c mov %edx,0xc(%eax) release(&icache.lock); 801019d0: 83 ec 0c sub $0xc,%esp 801019d3: 68 40 12 11 80 push $0x80111240 801019d8: e8 b4 36 00 00 call 80105091 <release> 801019dd: 83 c4 10 add $0x10,%esp if(!(ip->flags & I_VALID)){ 801019e0: 8b 45 08 mov 0x8(%ebp),%eax 801019e3: 8b 40 0c mov 0xc(%eax),%eax 801019e6: 83 e0 02 and $0x2,%eax 801019e9: 85 c0 test %eax,%eax 801019eb: 0f 85 d4 00 00 00 jne 80101ac5 <ilock+0x15b> bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801019f1: 8b 45 08 mov 0x8(%ebp),%eax 801019f4: 8b 40 04 mov 0x4(%eax),%eax 801019f7: c1 e8 03 shr $0x3,%eax 801019fa: 89 c2 mov %eax,%edx 801019fc: a1 34 12 11 80 mov 0x80111234,%eax 80101a01: 01 c2 add %eax,%edx 80101a03: 8b 45 08 mov 0x8(%ebp),%eax 80101a06: 8b 00 mov (%eax),%eax 80101a08: 83 ec 08 sub $0x8,%esp 80101a0b: 52 push %edx 80101a0c: 50 push %eax 80101a0d: e8 a4 e7 ff ff call 801001b6 <bread> 80101a12: 83 c4 10 add $0x10,%esp 80101a15: 89 45 f4 mov %eax,-0xc(%ebp) dip = (struct dinode*)bp->data + ip->inum%IPB; 80101a18: 8b 45 f4 mov -0xc(%ebp),%eax 80101a1b: 8d 50 18 lea 0x18(%eax),%edx 80101a1e: 8b 45 08 mov 0x8(%ebp),%eax 80101a21: 8b 40 04 mov 0x4(%eax),%eax 80101a24: 83 e0 07 and $0x7,%eax 80101a27: c1 e0 06 shl $0x6,%eax 80101a2a: 01 d0 add %edx,%eax 80101a2c: 89 45 f0 mov %eax,-0x10(%ebp) ip->type = dip->type; 80101a2f: 8b 45 f0 mov -0x10(%ebp),%eax 80101a32: 0f b7 10 movzwl (%eax),%edx 80101a35: 8b 45 08 mov 0x8(%ebp),%eax 80101a38: 66 89 50 10 mov %dx,0x10(%eax) ip->major = dip->major; 80101a3c: 8b 45 f0 mov -0x10(%ebp),%eax 80101a3f: 0f b7 50 02 movzwl 0x2(%eax),%edx 80101a43: 8b 45 08 mov 0x8(%ebp),%eax 80101a46: 66 89 50 12 mov %dx,0x12(%eax) ip->minor = dip->minor; 80101a4a: 8b 45 f0 mov -0x10(%ebp),%eax 80101a4d: 0f b7 50 04 movzwl 0x4(%eax),%edx 80101a51: 8b 45 08 mov 0x8(%ebp),%eax 80101a54: 66 89 50 14 mov %dx,0x14(%eax) ip->nlink = dip->nlink; 80101a58: 8b 45 f0 mov -0x10(%ebp),%eax 80101a5b: 0f b7 50 06 movzwl 0x6(%eax),%edx 80101a5f: 8b 45 08 mov 0x8(%ebp),%eax 80101a62: 66 89 50 16 mov %dx,0x16(%eax) ip->size = dip->size; 80101a66: 8b 45 f0 mov -0x10(%ebp),%eax 80101a69: 8b 50 08 mov 0x8(%eax),%edx 80101a6c: 8b 45 08 mov 0x8(%ebp),%eax 80101a6f: 89 50 18 mov %edx,0x18(%eax) memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 80101a72: 8b 45 f0 mov -0x10(%ebp),%eax 80101a75: 8d 50 0c lea 0xc(%eax),%edx 80101a78: 8b 45 08 mov 0x8(%ebp),%eax 80101a7b: 83 c0 1c add $0x1c,%eax 80101a7e: 83 ec 04 sub $0x4,%esp 80101a81: 6a 34 push $0x34 80101a83: 52 push %edx 80101a84: 50 push %eax 80101a85: e8 c2 38 00 00 call 8010534c <memmove> 80101a8a: 83 c4 10 add $0x10,%esp brelse(bp); 80101a8d: 83 ec 0c sub $0xc,%esp 80101a90: ff 75 f4 pushl -0xc(%ebp) 80101a93: e8 96 e7 ff ff call 8010022e <brelse> 80101a98: 83 c4 10 add $0x10,%esp ip->flags |= I_VALID; 80101a9b: 8b 45 08 mov 0x8(%ebp),%eax 80101a9e: 8b 40 0c mov 0xc(%eax),%eax 80101aa1: 83 c8 02 or $0x2,%eax 80101aa4: 89 c2 mov %eax,%edx 80101aa6: 8b 45 08 mov 0x8(%ebp),%eax 80101aa9: 89 50 0c mov %edx,0xc(%eax) if(ip->type == 0) 80101aac: 8b 45 08 mov 0x8(%ebp),%eax 80101aaf: 0f b7 40 10 movzwl 0x10(%eax),%eax 80101ab3: 66 85 c0 test %ax,%ax 80101ab6: 75 0d jne 80101ac5 <ilock+0x15b> panic("ilock: no type"); 80101ab8: 83 ec 0c sub $0xc,%esp 80101abb: 68 9f 86 10 80 push $0x8010869f 80101ac0: e8 a1 ea ff ff call 80100566 <panic> } } 80101ac5: 90 nop 80101ac6: c9 leave 80101ac7: c3 ret 80101ac8 <iunlock>: // Unlock the given inode. void iunlock(struct inode *ip) { 80101ac8: 55 push %ebp 80101ac9: 89 e5 mov %esp,%ebp 80101acb: 83 ec 08 sub $0x8,%esp if(ip == 0 || !(ip->flags & I_BUSY) || ip->ref < 1) 80101ace: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80101ad2: 74 17 je 80101aeb <iunlock+0x23> 80101ad4: 8b 45 08 mov 0x8(%ebp),%eax 80101ad7: 8b 40 0c mov 0xc(%eax),%eax 80101ada: 83 e0 01 and $0x1,%eax 80101add: 85 c0 test %eax,%eax 80101adf: 74 0a je 80101aeb <iunlock+0x23> 80101ae1: 8b 45 08 mov 0x8(%ebp),%eax 80101ae4: 8b 40 08 mov 0x8(%eax),%eax 80101ae7: 85 c0 test %eax,%eax 80101ae9: 7f 0d jg 80101af8 <iunlock+0x30> panic("iunlock"); 80101aeb: 83 ec 0c sub $0xc,%esp 80101aee: 68 ae 86 10 80 push $0x801086ae 80101af3: e8 6e ea ff ff call 80100566 <panic> acquire(&icache.lock); 80101af8: 83 ec 0c sub $0xc,%esp 80101afb: 68 40 12 11 80 push $0x80111240 80101b00: e8 25 35 00 00 call 8010502a <acquire> 80101b05: 83 c4 10 add $0x10,%esp ip->flags &= ~I_BUSY; 80101b08: 8b 45 08 mov 0x8(%ebp),%eax 80101b0b: 8b 40 0c mov 0xc(%eax),%eax 80101b0e: 83 e0 fe and $0xfffffffe,%eax 80101b11: 89 c2 mov %eax,%edx 80101b13: 8b 45 08 mov 0x8(%ebp),%eax 80101b16: 89 50 0c mov %edx,0xc(%eax) wakeup(ip); 80101b19: 83 ec 0c sub $0xc,%esp 80101b1c: ff 75 08 pushl 0x8(%ebp) 80101b1f: e8 f8 32 00 00 call 80104e1c <wakeup> 80101b24: 83 c4 10 add $0x10,%esp release(&icache.lock); 80101b27: 83 ec 0c sub $0xc,%esp 80101b2a: 68 40 12 11 80 push $0x80111240 80101b2f: e8 5d 35 00 00 call 80105091 <release> 80101b34: 83 c4 10 add $0x10,%esp } 80101b37: 90 nop 80101b38: c9 leave 80101b39: c3 ret 80101b3a <iput>: // to it, free the inode (and its content) on disk. // All calls to iput() must be inside a transaction in // case it has to free the inode. void iput(struct inode *ip) { 80101b3a: 55 push %ebp 80101b3b: 89 e5 mov %esp,%ebp 80101b3d: 83 ec 08 sub $0x8,%esp acquire(&icache.lock); 80101b40: 83 ec 0c sub $0xc,%esp 80101b43: 68 40 12 11 80 push $0x80111240 80101b48: e8 dd 34 00 00 call 8010502a <acquire> 80101b4d: 83 c4 10 add $0x10,%esp if(ip->ref == 1 && (ip->flags & I_VALID) && ip->nlink == 0){ 80101b50: 8b 45 08 mov 0x8(%ebp),%eax 80101b53: 8b 40 08 mov 0x8(%eax),%eax 80101b56: 83 f8 01 cmp $0x1,%eax 80101b59: 0f 85 a9 00 00 00 jne 80101c08 <iput+0xce> 80101b5f: 8b 45 08 mov 0x8(%ebp),%eax 80101b62: 8b 40 0c mov 0xc(%eax),%eax 80101b65: 83 e0 02 and $0x2,%eax 80101b68: 85 c0 test %eax,%eax 80101b6a: 0f 84 98 00 00 00 je 80101c08 <iput+0xce> 80101b70: 8b 45 08 mov 0x8(%ebp),%eax 80101b73: 0f b7 40 16 movzwl 0x16(%eax),%eax 80101b77: 66 85 c0 test %ax,%ax 80101b7a: 0f 85 88 00 00 00 jne 80101c08 <iput+0xce> // inode has no links and no other references: truncate and free. if(ip->flags & I_BUSY) 80101b80: 8b 45 08 mov 0x8(%ebp),%eax 80101b83: 8b 40 0c mov 0xc(%eax),%eax 80101b86: 83 e0 01 and $0x1,%eax 80101b89: 85 c0 test %eax,%eax 80101b8b: 74 0d je 80101b9a <iput+0x60> panic("iput busy"); 80101b8d: 83 ec 0c sub $0xc,%esp 80101b90: 68 b6 86 10 80 push $0x801086b6 80101b95: e8 cc e9 ff ff call 80100566 <panic> ip->flags |= I_BUSY; 80101b9a: 8b 45 08 mov 0x8(%ebp),%eax 80101b9d: 8b 40 0c mov 0xc(%eax),%eax 80101ba0: 83 c8 01 or $0x1,%eax 80101ba3: 89 c2 mov %eax,%edx 80101ba5: 8b 45 08 mov 0x8(%ebp),%eax 80101ba8: 89 50 0c mov %edx,0xc(%eax) release(&icache.lock); 80101bab: 83 ec 0c sub $0xc,%esp 80101bae: 68 40 12 11 80 push $0x80111240 80101bb3: e8 d9 34 00 00 call 80105091 <release> 80101bb8: 83 c4 10 add $0x10,%esp itrunc(ip); 80101bbb: 83 ec 0c sub $0xc,%esp 80101bbe: ff 75 08 pushl 0x8(%ebp) 80101bc1: e8 a8 01 00 00 call 80101d6e <itrunc> 80101bc6: 83 c4 10 add $0x10,%esp ip->type = 0; 80101bc9: 8b 45 08 mov 0x8(%ebp),%eax 80101bcc: 66 c7 40 10 00 00 movw $0x0,0x10(%eax) iupdate(ip); 80101bd2: 83 ec 0c sub $0xc,%esp 80101bd5: ff 75 08 pushl 0x8(%ebp) 80101bd8: e8 b3 fb ff ff call 80101790 <iupdate> 80101bdd: 83 c4 10 add $0x10,%esp acquire(&icache.lock); 80101be0: 83 ec 0c sub $0xc,%esp 80101be3: 68 40 12 11 80 push $0x80111240 80101be8: e8 3d 34 00 00 call 8010502a <acquire> 80101bed: 83 c4 10 add $0x10,%esp ip->flags = 0; 80101bf0: 8b 45 08 mov 0x8(%ebp),%eax 80101bf3: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) wakeup(ip); 80101bfa: 83 ec 0c sub $0xc,%esp 80101bfd: ff 75 08 pushl 0x8(%ebp) 80101c00: e8 17 32 00 00 call 80104e1c <wakeup> 80101c05: 83 c4 10 add $0x10,%esp } ip->ref--; 80101c08: 8b 45 08 mov 0x8(%ebp),%eax 80101c0b: 8b 40 08 mov 0x8(%eax),%eax 80101c0e: 8d 50 ff lea -0x1(%eax),%edx 80101c11: 8b 45 08 mov 0x8(%ebp),%eax 80101c14: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 80101c17: 83 ec 0c sub $0xc,%esp 80101c1a: 68 40 12 11 80 push $0x80111240 80101c1f: e8 6d 34 00 00 call 80105091 <release> 80101c24: 83 c4 10 add $0x10,%esp } 80101c27: 90 nop 80101c28: c9 leave 80101c29: c3 ret 80101c2a <iunlockput>: // Common idiom: unlock, then put. void iunlockput(struct inode *ip) { 80101c2a: 55 push %ebp 80101c2b: 89 e5 mov %esp,%ebp 80101c2d: 83 ec 08 sub $0x8,%esp iunlock(ip); 80101c30: 83 ec 0c sub $0xc,%esp 80101c33: ff 75 08 pushl 0x8(%ebp) 80101c36: e8 8d fe ff ff call 80101ac8 <iunlock> 80101c3b: 83 c4 10 add $0x10,%esp iput(ip); 80101c3e: 83 ec 0c sub $0xc,%esp 80101c41: ff 75 08 pushl 0x8(%ebp) 80101c44: e8 f1 fe ff ff call 80101b3a <iput> 80101c49: 83 c4 10 add $0x10,%esp } 80101c4c: 90 nop 80101c4d: c9 leave 80101c4e: c3 ret 80101c4f <bmap>: // Return the disk block address of the nth block in inode ip. // If there is no such block, bmap allocates one. static uint bmap(struct inode *ip, uint bn) { 80101c4f: 55 push %ebp 80101c50: 89 e5 mov %esp,%ebp 80101c52: 53 push %ebx 80101c53: 83 ec 14 sub $0x14,%esp uint addr, *a; struct buf *bp; if(bn < NDIRECT){ 80101c56: 83 7d 0c 0b cmpl $0xb,0xc(%ebp) 80101c5a: 77 42 ja 80101c9e <bmap+0x4f> if((addr = ip->addrs[bn]) == 0) 80101c5c: 8b 45 08 mov 0x8(%ebp),%eax 80101c5f: 8b 55 0c mov 0xc(%ebp),%edx 80101c62: 83 c2 04 add $0x4,%edx 80101c65: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101c69: 89 45 f4 mov %eax,-0xc(%ebp) 80101c6c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101c70: 75 24 jne 80101c96 <bmap+0x47> ip->addrs[bn] = addr = balloc(ip->dev); 80101c72: 8b 45 08 mov 0x8(%ebp),%eax 80101c75: 8b 00 mov (%eax),%eax 80101c77: 83 ec 0c sub $0xc,%esp 80101c7a: 50 push %eax 80101c7b: e8 9a f7 ff ff call 8010141a <balloc> 80101c80: 83 c4 10 add $0x10,%esp 80101c83: 89 45 f4 mov %eax,-0xc(%ebp) 80101c86: 8b 45 08 mov 0x8(%ebp),%eax 80101c89: 8b 55 0c mov 0xc(%ebp),%edx 80101c8c: 8d 4a 04 lea 0x4(%edx),%ecx 80101c8f: 8b 55 f4 mov -0xc(%ebp),%edx 80101c92: 89 54 88 0c mov %edx,0xc(%eax,%ecx,4) return addr; 80101c96: 8b 45 f4 mov -0xc(%ebp),%eax 80101c99: e9 cb 00 00 00 jmp 80101d69 <bmap+0x11a> } bn -= NDIRECT; 80101c9e: 83 6d 0c 0c subl $0xc,0xc(%ebp) if(bn < NINDIRECT){ 80101ca2: 83 7d 0c 7f cmpl $0x7f,0xc(%ebp) 80101ca6: 0f 87 b0 00 00 00 ja 80101d5c <bmap+0x10d> // Load indirect block, allocating if necessary. if((addr = ip->addrs[NDIRECT]) == 0) 80101cac: 8b 45 08 mov 0x8(%ebp),%eax 80101caf: 8b 40 4c mov 0x4c(%eax),%eax 80101cb2: 89 45 f4 mov %eax,-0xc(%ebp) 80101cb5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101cb9: 75 1d jne 80101cd8 <bmap+0x89> ip->addrs[NDIRECT] = addr = balloc(ip->dev); 80101cbb: 8b 45 08 mov 0x8(%ebp),%eax 80101cbe: 8b 00 mov (%eax),%eax 80101cc0: 83 ec 0c sub $0xc,%esp 80101cc3: 50 push %eax 80101cc4: e8 51 f7 ff ff call 8010141a <balloc> 80101cc9: 83 c4 10 add $0x10,%esp 80101ccc: 89 45 f4 mov %eax,-0xc(%ebp) 80101ccf: 8b 45 08 mov 0x8(%ebp),%eax 80101cd2: 8b 55 f4 mov -0xc(%ebp),%edx 80101cd5: 89 50 4c mov %edx,0x4c(%eax) bp = bread(ip->dev, addr); 80101cd8: 8b 45 08 mov 0x8(%ebp),%eax 80101cdb: 8b 00 mov (%eax),%eax 80101cdd: 83 ec 08 sub $0x8,%esp 80101ce0: ff 75 f4 pushl -0xc(%ebp) 80101ce3: 50 push %eax 80101ce4: e8 cd e4 ff ff call 801001b6 <bread> 80101ce9: 83 c4 10 add $0x10,%esp 80101cec: 89 45 f0 mov %eax,-0x10(%ebp) a = (uint*)bp->data; 80101cef: 8b 45 f0 mov -0x10(%ebp),%eax 80101cf2: 83 c0 18 add $0x18,%eax 80101cf5: 89 45 ec mov %eax,-0x14(%ebp) if((addr = a[bn]) == 0){ 80101cf8: 8b 45 0c mov 0xc(%ebp),%eax 80101cfb: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101d02: 8b 45 ec mov -0x14(%ebp),%eax 80101d05: 01 d0 add %edx,%eax 80101d07: 8b 00 mov (%eax),%eax 80101d09: 89 45 f4 mov %eax,-0xc(%ebp) 80101d0c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101d10: 75 37 jne 80101d49 <bmap+0xfa> a[bn] = addr = balloc(ip->dev); 80101d12: 8b 45 0c mov 0xc(%ebp),%eax 80101d15: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101d1c: 8b 45 ec mov -0x14(%ebp),%eax 80101d1f: 8d 1c 02 lea (%edx,%eax,1),%ebx 80101d22: 8b 45 08 mov 0x8(%ebp),%eax 80101d25: 8b 00 mov (%eax),%eax 80101d27: 83 ec 0c sub $0xc,%esp 80101d2a: 50 push %eax 80101d2b: e8 ea f6 ff ff call 8010141a <balloc> 80101d30: 83 c4 10 add $0x10,%esp 80101d33: 89 45 f4 mov %eax,-0xc(%ebp) 80101d36: 8b 45 f4 mov -0xc(%ebp),%eax 80101d39: 89 03 mov %eax,(%ebx) log_write(bp); 80101d3b: 83 ec 0c sub $0xc,%esp 80101d3e: ff 75 f0 pushl -0x10(%ebp) 80101d41: e8 3f 1a 00 00 call 80103785 <log_write> 80101d46: 83 c4 10 add $0x10,%esp } brelse(bp); 80101d49: 83 ec 0c sub $0xc,%esp 80101d4c: ff 75 f0 pushl -0x10(%ebp) 80101d4f: e8 da e4 ff ff call 8010022e <brelse> 80101d54: 83 c4 10 add $0x10,%esp return addr; 80101d57: 8b 45 f4 mov -0xc(%ebp),%eax 80101d5a: eb 0d jmp 80101d69 <bmap+0x11a> } panic("bmap: out of range"); 80101d5c: 83 ec 0c sub $0xc,%esp 80101d5f: 68 c0 86 10 80 push $0x801086c0 80101d64: e8 fd e7 ff ff call 80100566 <panic> } 80101d69: 8b 5d fc mov -0x4(%ebp),%ebx 80101d6c: c9 leave 80101d6d: c3 ret 80101d6e <itrunc>: // to it (no directory entries referring to it) // and has no in-memory reference to it (is // not an open file or current directory). static void itrunc(struct inode *ip) { 80101d6e: 55 push %ebp 80101d6f: 89 e5 mov %esp,%ebp 80101d71: 83 ec 18 sub $0x18,%esp int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101d74: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80101d7b: eb 45 jmp 80101dc2 <itrunc+0x54> if(ip->addrs[i]){ 80101d7d: 8b 45 08 mov 0x8(%ebp),%eax 80101d80: 8b 55 f4 mov -0xc(%ebp),%edx 80101d83: 83 c2 04 add $0x4,%edx 80101d86: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101d8a: 85 c0 test %eax,%eax 80101d8c: 74 30 je 80101dbe <itrunc+0x50> bfree(ip->dev, ip->addrs[i]); 80101d8e: 8b 45 08 mov 0x8(%ebp),%eax 80101d91: 8b 55 f4 mov -0xc(%ebp),%edx 80101d94: 83 c2 04 add $0x4,%edx 80101d97: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101d9b: 8b 55 08 mov 0x8(%ebp),%edx 80101d9e: 8b 12 mov (%edx),%edx 80101da0: 83 ec 08 sub $0x8,%esp 80101da3: 50 push %eax 80101da4: 52 push %edx 80101da5: e8 bc f7 ff ff call 80101566 <bfree> 80101daa: 83 c4 10 add $0x10,%esp ip->addrs[i] = 0; 80101dad: 8b 45 08 mov 0x8(%ebp),%eax 80101db0: 8b 55 f4 mov -0xc(%ebp),%edx 80101db3: 83 c2 04 add $0x4,%edx 80101db6: c7 44 90 0c 00 00 00 movl $0x0,0xc(%eax,%edx,4) 80101dbd: 00 { int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101dbe: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80101dc2: 83 7d f4 0b cmpl $0xb,-0xc(%ebp) 80101dc6: 7e b5 jle 80101d7d <itrunc+0xf> bfree(ip->dev, ip->addrs[i]); ip->addrs[i] = 0; } } if(ip->addrs[NDIRECT]){ 80101dc8: 8b 45 08 mov 0x8(%ebp),%eax 80101dcb: 8b 40 4c mov 0x4c(%eax),%eax 80101dce: 85 c0 test %eax,%eax 80101dd0: 0f 84 a1 00 00 00 je 80101e77 <itrunc+0x109> bp = bread(ip->dev, ip->addrs[NDIRECT]); 80101dd6: 8b 45 08 mov 0x8(%ebp),%eax 80101dd9: 8b 50 4c mov 0x4c(%eax),%edx 80101ddc: 8b 45 08 mov 0x8(%ebp),%eax 80101ddf: 8b 00 mov (%eax),%eax 80101de1: 83 ec 08 sub $0x8,%esp 80101de4: 52 push %edx 80101de5: 50 push %eax 80101de6: e8 cb e3 ff ff call 801001b6 <bread> 80101deb: 83 c4 10 add $0x10,%esp 80101dee: 89 45 ec mov %eax,-0x14(%ebp) a = (uint*)bp->data; 80101df1: 8b 45 ec mov -0x14(%ebp),%eax 80101df4: 83 c0 18 add $0x18,%eax 80101df7: 89 45 e8 mov %eax,-0x18(%ebp) for(j = 0; j < NINDIRECT; j++){ 80101dfa: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80101e01: eb 3c jmp 80101e3f <itrunc+0xd1> if(a[j]) 80101e03: 8b 45 f0 mov -0x10(%ebp),%eax 80101e06: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101e0d: 8b 45 e8 mov -0x18(%ebp),%eax 80101e10: 01 d0 add %edx,%eax 80101e12: 8b 00 mov (%eax),%eax 80101e14: 85 c0 test %eax,%eax 80101e16: 74 23 je 80101e3b <itrunc+0xcd> bfree(ip->dev, a[j]); 80101e18: 8b 45 f0 mov -0x10(%ebp),%eax 80101e1b: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101e22: 8b 45 e8 mov -0x18(%ebp),%eax 80101e25: 01 d0 add %edx,%eax 80101e27: 8b 00 mov (%eax),%eax 80101e29: 8b 55 08 mov 0x8(%ebp),%edx 80101e2c: 8b 12 mov (%edx),%edx 80101e2e: 83 ec 08 sub $0x8,%esp 80101e31: 50 push %eax 80101e32: 52 push %edx 80101e33: e8 2e f7 ff ff call 80101566 <bfree> 80101e38: 83 c4 10 add $0x10,%esp } if(ip->addrs[NDIRECT]){ bp = bread(ip->dev, ip->addrs[NDIRECT]); a = (uint*)bp->data; for(j = 0; j < NINDIRECT; j++){ 80101e3b: 83 45 f0 01 addl $0x1,-0x10(%ebp) 80101e3f: 8b 45 f0 mov -0x10(%ebp),%eax 80101e42: 83 f8 7f cmp $0x7f,%eax 80101e45: 76 bc jbe 80101e03 <itrunc+0x95> if(a[j]) bfree(ip->dev, a[j]); } brelse(bp); 80101e47: 83 ec 0c sub $0xc,%esp 80101e4a: ff 75 ec pushl -0x14(%ebp) 80101e4d: e8 dc e3 ff ff call 8010022e <brelse> 80101e52: 83 c4 10 add $0x10,%esp bfree(ip->dev, ip->addrs[NDIRECT]); 80101e55: 8b 45 08 mov 0x8(%ebp),%eax 80101e58: 8b 40 4c mov 0x4c(%eax),%eax 80101e5b: 8b 55 08 mov 0x8(%ebp),%edx 80101e5e: 8b 12 mov (%edx),%edx 80101e60: 83 ec 08 sub $0x8,%esp 80101e63: 50 push %eax 80101e64: 52 push %edx 80101e65: e8 fc f6 ff ff call 80101566 <bfree> 80101e6a: 83 c4 10 add $0x10,%esp ip->addrs[NDIRECT] = 0; 80101e6d: 8b 45 08 mov 0x8(%ebp),%eax 80101e70: c7 40 4c 00 00 00 00 movl $0x0,0x4c(%eax) } ip->size = 0; 80101e77: 8b 45 08 mov 0x8(%ebp),%eax 80101e7a: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) iupdate(ip); 80101e81: 83 ec 0c sub $0xc,%esp 80101e84: ff 75 08 pushl 0x8(%ebp) 80101e87: e8 04 f9 ff ff call 80101790 <iupdate> 80101e8c: 83 c4 10 add $0x10,%esp } 80101e8f: 90 nop 80101e90: c9 leave 80101e91: c3 ret 80101e92 <stati>: // Copy stat information from inode. void stati(struct inode *ip, struct stat *st) { 80101e92: 55 push %ebp 80101e93: 89 e5 mov %esp,%ebp st->dev = ip->dev; 80101e95: 8b 45 08 mov 0x8(%ebp),%eax 80101e98: 8b 00 mov (%eax),%eax 80101e9a: 89 c2 mov %eax,%edx 80101e9c: 8b 45 0c mov 0xc(%ebp),%eax 80101e9f: 89 50 04 mov %edx,0x4(%eax) st->ino = ip->inum; 80101ea2: 8b 45 08 mov 0x8(%ebp),%eax 80101ea5: 8b 50 04 mov 0x4(%eax),%edx 80101ea8: 8b 45 0c mov 0xc(%ebp),%eax 80101eab: 89 50 08 mov %edx,0x8(%eax) st->type = ip->type; 80101eae: 8b 45 08 mov 0x8(%ebp),%eax 80101eb1: 0f b7 50 10 movzwl 0x10(%eax),%edx 80101eb5: 8b 45 0c mov 0xc(%ebp),%eax 80101eb8: 66 89 10 mov %dx,(%eax) st->nlink = ip->nlink; 80101ebb: 8b 45 08 mov 0x8(%ebp),%eax 80101ebe: 0f b7 50 16 movzwl 0x16(%eax),%edx 80101ec2: 8b 45 0c mov 0xc(%ebp),%eax 80101ec5: 66 89 50 0c mov %dx,0xc(%eax) st->size = ip->size; 80101ec9: 8b 45 08 mov 0x8(%ebp),%eax 80101ecc: 8b 50 18 mov 0x18(%eax),%edx 80101ecf: 8b 45 0c mov 0xc(%ebp),%eax 80101ed2: 89 50 10 mov %edx,0x10(%eax) } 80101ed5: 90 nop 80101ed6: 5d pop %ebp 80101ed7: c3 ret 80101ed8 <readi>: //PAGEBREAK! // Read data from inode. int readi(struct inode *ip, char *dst, uint off, uint n) { 80101ed8: 55 push %ebp 80101ed9: 89 e5 mov %esp,%ebp 80101edb: 83 ec 18 sub $0x18,%esp uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101ede: 8b 45 08 mov 0x8(%ebp),%eax 80101ee1: 0f b7 40 10 movzwl 0x10(%eax),%eax 80101ee5: 66 83 f8 03 cmp $0x3,%ax 80101ee9: 75 5c jne 80101f47 <readi+0x6f> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) 80101eeb: 8b 45 08 mov 0x8(%ebp),%eax 80101eee: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101ef2: 66 85 c0 test %ax,%ax 80101ef5: 78 20 js 80101f17 <readi+0x3f> 80101ef7: 8b 45 08 mov 0x8(%ebp),%eax 80101efa: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101efe: 66 83 f8 09 cmp $0x9,%ax 80101f02: 7f 13 jg 80101f17 <readi+0x3f> 80101f04: 8b 45 08 mov 0x8(%ebp),%eax 80101f07: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101f0b: 98 cwtl 80101f0c: 8b 04 c5 c0 11 11 80 mov -0x7feeee40(,%eax,8),%eax 80101f13: 85 c0 test %eax,%eax 80101f15: 75 0a jne 80101f21 <readi+0x49> return -1; 80101f17: b8 ff ff ff ff mov $0xffffffff,%eax 80101f1c: e9 0c 01 00 00 jmp 8010202d <readi+0x155> return devsw[ip->major].read(ip, dst, n); 80101f21: 8b 45 08 mov 0x8(%ebp),%eax 80101f24: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101f28: 98 cwtl 80101f29: 8b 04 c5 c0 11 11 80 mov -0x7feeee40(,%eax,8),%eax 80101f30: 8b 55 14 mov 0x14(%ebp),%edx 80101f33: 83 ec 04 sub $0x4,%esp 80101f36: 52 push %edx 80101f37: ff 75 0c pushl 0xc(%ebp) 80101f3a: ff 75 08 pushl 0x8(%ebp) 80101f3d: ff d0 call *%eax 80101f3f: 83 c4 10 add $0x10,%esp 80101f42: e9 e6 00 00 00 jmp 8010202d <readi+0x155> } if(off > ip->size || off + n < off) 80101f47: 8b 45 08 mov 0x8(%ebp),%eax 80101f4a: 8b 40 18 mov 0x18(%eax),%eax 80101f4d: 3b 45 10 cmp 0x10(%ebp),%eax 80101f50: 72 0d jb 80101f5f <readi+0x87> 80101f52: 8b 55 10 mov 0x10(%ebp),%edx 80101f55: 8b 45 14 mov 0x14(%ebp),%eax 80101f58: 01 d0 add %edx,%eax 80101f5a: 3b 45 10 cmp 0x10(%ebp),%eax 80101f5d: 73 0a jae 80101f69 <readi+0x91> return -1; 80101f5f: b8 ff ff ff ff mov $0xffffffff,%eax 80101f64: e9 c4 00 00 00 jmp 8010202d <readi+0x155> if(off + n > ip->size) 80101f69: 8b 55 10 mov 0x10(%ebp),%edx 80101f6c: 8b 45 14 mov 0x14(%ebp),%eax 80101f6f: 01 c2 add %eax,%edx 80101f71: 8b 45 08 mov 0x8(%ebp),%eax 80101f74: 8b 40 18 mov 0x18(%eax),%eax 80101f77: 39 c2 cmp %eax,%edx 80101f79: 76 0c jbe 80101f87 <readi+0xaf> n = ip->size - off; 80101f7b: 8b 45 08 mov 0x8(%ebp),%eax 80101f7e: 8b 40 18 mov 0x18(%eax),%eax 80101f81: 2b 45 10 sub 0x10(%ebp),%eax 80101f84: 89 45 14 mov %eax,0x14(%ebp) for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101f87: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80101f8e: e9 8b 00 00 00 jmp 8010201e <readi+0x146> bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101f93: 8b 45 10 mov 0x10(%ebp),%eax 80101f96: c1 e8 09 shr $0x9,%eax 80101f99: 83 ec 08 sub $0x8,%esp 80101f9c: 50 push %eax 80101f9d: ff 75 08 pushl 0x8(%ebp) 80101fa0: e8 aa fc ff ff call 80101c4f <bmap> 80101fa5: 83 c4 10 add $0x10,%esp 80101fa8: 89 c2 mov %eax,%edx 80101faa: 8b 45 08 mov 0x8(%ebp),%eax 80101fad: 8b 00 mov (%eax),%eax 80101faf: 83 ec 08 sub $0x8,%esp 80101fb2: 52 push %edx 80101fb3: 50 push %eax 80101fb4: e8 fd e1 ff ff call 801001b6 <bread> 80101fb9: 83 c4 10 add $0x10,%esp 80101fbc: 89 45 f0 mov %eax,-0x10(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 80101fbf: 8b 45 10 mov 0x10(%ebp),%eax 80101fc2: 25 ff 01 00 00 and $0x1ff,%eax 80101fc7: ba 00 02 00 00 mov $0x200,%edx 80101fcc: 29 c2 sub %eax,%edx 80101fce: 8b 45 14 mov 0x14(%ebp),%eax 80101fd1: 2b 45 f4 sub -0xc(%ebp),%eax 80101fd4: 39 c2 cmp %eax,%edx 80101fd6: 0f 46 c2 cmovbe %edx,%eax 80101fd9: 89 45 ec mov %eax,-0x14(%ebp) memmove(dst, bp->data + off%BSIZE, m); 80101fdc: 8b 45 f0 mov -0x10(%ebp),%eax 80101fdf: 8d 50 18 lea 0x18(%eax),%edx 80101fe2: 8b 45 10 mov 0x10(%ebp),%eax 80101fe5: 25 ff 01 00 00 and $0x1ff,%eax 80101fea: 01 d0 add %edx,%eax 80101fec: 83 ec 04 sub $0x4,%esp 80101fef: ff 75 ec pushl -0x14(%ebp) 80101ff2: 50 push %eax 80101ff3: ff 75 0c pushl 0xc(%ebp) 80101ff6: e8 51 33 00 00 call 8010534c <memmove> 80101ffb: 83 c4 10 add $0x10,%esp brelse(bp); 80101ffe: 83 ec 0c sub $0xc,%esp 80102001: ff 75 f0 pushl -0x10(%ebp) 80102004: e8 25 e2 ff ff call 8010022e <brelse> 80102009: 83 c4 10 add $0x10,%esp if(off > ip->size || off + n < off) return -1; if(off + n > ip->size) n = ip->size - off; for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 8010200c: 8b 45 ec mov -0x14(%ebp),%eax 8010200f: 01 45 f4 add %eax,-0xc(%ebp) 80102012: 8b 45 ec mov -0x14(%ebp),%eax 80102015: 01 45 10 add %eax,0x10(%ebp) 80102018: 8b 45 ec mov -0x14(%ebp),%eax 8010201b: 01 45 0c add %eax,0xc(%ebp) 8010201e: 8b 45 f4 mov -0xc(%ebp),%eax 80102021: 3b 45 14 cmp 0x14(%ebp),%eax 80102024: 0f 82 69 ff ff ff jb 80101f93 <readi+0xbb> bp = bread(ip->dev, bmap(ip, off/BSIZE)); m = min(n - tot, BSIZE - off%BSIZE); memmove(dst, bp->data + off%BSIZE, m); brelse(bp); } return n; 8010202a: 8b 45 14 mov 0x14(%ebp),%eax } 8010202d: c9 leave 8010202e: c3 ret 8010202f <writei>: // PAGEBREAK! // Write data to inode. int writei(struct inode *ip, char *src, uint off, uint n) { 8010202f: 55 push %ebp 80102030: 89 e5 mov %esp,%ebp 80102032: 83 ec 18 sub $0x18,%esp uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80102035: 8b 45 08 mov 0x8(%ebp),%eax 80102038: 0f b7 40 10 movzwl 0x10(%eax),%eax 8010203c: 66 83 f8 03 cmp $0x3,%ax 80102040: 75 5c jne 8010209e <writei+0x6f> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) 80102042: 8b 45 08 mov 0x8(%ebp),%eax 80102045: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102049: 66 85 c0 test %ax,%ax 8010204c: 78 20 js 8010206e <writei+0x3f> 8010204e: 8b 45 08 mov 0x8(%ebp),%eax 80102051: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102055: 66 83 f8 09 cmp $0x9,%ax 80102059: 7f 13 jg 8010206e <writei+0x3f> 8010205b: 8b 45 08 mov 0x8(%ebp),%eax 8010205e: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102062: 98 cwtl 80102063: 8b 04 c5 c4 11 11 80 mov -0x7feeee3c(,%eax,8),%eax 8010206a: 85 c0 test %eax,%eax 8010206c: 75 0a jne 80102078 <writei+0x49> return -1; 8010206e: b8 ff ff ff ff mov $0xffffffff,%eax 80102073: e9 3d 01 00 00 jmp 801021b5 <writei+0x186> return devsw[ip->major].write(ip, src, n); 80102078: 8b 45 08 mov 0x8(%ebp),%eax 8010207b: 0f b7 40 12 movzwl 0x12(%eax),%eax 8010207f: 98 cwtl 80102080: 8b 04 c5 c4 11 11 80 mov -0x7feeee3c(,%eax,8),%eax 80102087: 8b 55 14 mov 0x14(%ebp),%edx 8010208a: 83 ec 04 sub $0x4,%esp 8010208d: 52 push %edx 8010208e: ff 75 0c pushl 0xc(%ebp) 80102091: ff 75 08 pushl 0x8(%ebp) 80102094: ff d0 call *%eax 80102096: 83 c4 10 add $0x10,%esp 80102099: e9 17 01 00 00 jmp 801021b5 <writei+0x186> } if(off > ip->size || off + n < off) 8010209e: 8b 45 08 mov 0x8(%ebp),%eax 801020a1: 8b 40 18 mov 0x18(%eax),%eax 801020a4: 3b 45 10 cmp 0x10(%ebp),%eax 801020a7: 72 0d jb 801020b6 <writei+0x87> 801020a9: 8b 55 10 mov 0x10(%ebp),%edx 801020ac: 8b 45 14 mov 0x14(%ebp),%eax 801020af: 01 d0 add %edx,%eax 801020b1: 3b 45 10 cmp 0x10(%ebp),%eax 801020b4: 73 0a jae 801020c0 <writei+0x91> return -1; 801020b6: b8 ff ff ff ff mov $0xffffffff,%eax 801020bb: e9 f5 00 00 00 jmp 801021b5 <writei+0x186> if(off + n > MAXFILE*BSIZE) 801020c0: 8b 55 10 mov 0x10(%ebp),%edx 801020c3: 8b 45 14 mov 0x14(%ebp),%eax 801020c6: 01 d0 add %edx,%eax 801020c8: 3d 00 18 01 00 cmp $0x11800,%eax 801020cd: 76 0a jbe 801020d9 <writei+0xaa> return -1; 801020cf: b8 ff ff ff ff mov $0xffffffff,%eax 801020d4: e9 dc 00 00 00 jmp 801021b5 <writei+0x186> for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 801020d9: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801020e0: e9 99 00 00 00 jmp 8010217e <writei+0x14f> bp = bread(ip->dev, bmap(ip, off/BSIZE)); 801020e5: 8b 45 10 mov 0x10(%ebp),%eax 801020e8: c1 e8 09 shr $0x9,%eax 801020eb: 83 ec 08 sub $0x8,%esp 801020ee: 50 push %eax 801020ef: ff 75 08 pushl 0x8(%ebp) 801020f2: e8 58 fb ff ff call 80101c4f <bmap> 801020f7: 83 c4 10 add $0x10,%esp 801020fa: 89 c2 mov %eax,%edx 801020fc: 8b 45 08 mov 0x8(%ebp),%eax 801020ff: 8b 00 mov (%eax),%eax 80102101: 83 ec 08 sub $0x8,%esp 80102104: 52 push %edx 80102105: 50 push %eax 80102106: e8 ab e0 ff ff call 801001b6 <bread> 8010210b: 83 c4 10 add $0x10,%esp 8010210e: 89 45 f0 mov %eax,-0x10(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 80102111: 8b 45 10 mov 0x10(%ebp),%eax 80102114: 25 ff 01 00 00 and $0x1ff,%eax 80102119: ba 00 02 00 00 mov $0x200,%edx 8010211e: 29 c2 sub %eax,%edx 80102120: 8b 45 14 mov 0x14(%ebp),%eax 80102123: 2b 45 f4 sub -0xc(%ebp),%eax 80102126: 39 c2 cmp %eax,%edx 80102128: 0f 46 c2 cmovbe %edx,%eax 8010212b: 89 45 ec mov %eax,-0x14(%ebp) memmove(bp->data + off%BSIZE, src, m); 8010212e: 8b 45 f0 mov -0x10(%ebp),%eax 80102131: 8d 50 18 lea 0x18(%eax),%edx 80102134: 8b 45 10 mov 0x10(%ebp),%eax 80102137: 25 ff 01 00 00 and $0x1ff,%eax 8010213c: 01 d0 add %edx,%eax 8010213e: 83 ec 04 sub $0x4,%esp 80102141: ff 75 ec pushl -0x14(%ebp) 80102144: ff 75 0c pushl 0xc(%ebp) 80102147: 50 push %eax 80102148: e8 ff 31 00 00 call 8010534c <memmove> 8010214d: 83 c4 10 add $0x10,%esp log_write(bp); 80102150: 83 ec 0c sub $0xc,%esp 80102153: ff 75 f0 pushl -0x10(%ebp) 80102156: e8 2a 16 00 00 call 80103785 <log_write> 8010215b: 83 c4 10 add $0x10,%esp brelse(bp); 8010215e: 83 ec 0c sub $0xc,%esp 80102161: ff 75 f0 pushl -0x10(%ebp) 80102164: e8 c5 e0 ff ff call 8010022e <brelse> 80102169: 83 c4 10 add $0x10,%esp if(off > ip->size || off + n < off) return -1; if(off + n > MAXFILE*BSIZE) return -1; for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 8010216c: 8b 45 ec mov -0x14(%ebp),%eax 8010216f: 01 45 f4 add %eax,-0xc(%ebp) 80102172: 8b 45 ec mov -0x14(%ebp),%eax 80102175: 01 45 10 add %eax,0x10(%ebp) 80102178: 8b 45 ec mov -0x14(%ebp),%eax 8010217b: 01 45 0c add %eax,0xc(%ebp) 8010217e: 8b 45 f4 mov -0xc(%ebp),%eax 80102181: 3b 45 14 cmp 0x14(%ebp),%eax 80102184: 0f 82 5b ff ff ff jb 801020e5 <writei+0xb6> memmove(bp->data + off%BSIZE, src, m); log_write(bp); brelse(bp); } if(n > 0 && off > ip->size){ 8010218a: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 8010218e: 74 22 je 801021b2 <writei+0x183> 80102190: 8b 45 08 mov 0x8(%ebp),%eax 80102193: 8b 40 18 mov 0x18(%eax),%eax 80102196: 3b 45 10 cmp 0x10(%ebp),%eax 80102199: 73 17 jae 801021b2 <writei+0x183> ip->size = off; 8010219b: 8b 45 08 mov 0x8(%ebp),%eax 8010219e: 8b 55 10 mov 0x10(%ebp),%edx 801021a1: 89 50 18 mov %edx,0x18(%eax) iupdate(ip); 801021a4: 83 ec 0c sub $0xc,%esp 801021a7: ff 75 08 pushl 0x8(%ebp) 801021aa: e8 e1 f5 ff ff call 80101790 <iupdate> 801021af: 83 c4 10 add $0x10,%esp } return n; 801021b2: 8b 45 14 mov 0x14(%ebp),%eax } 801021b5: c9 leave 801021b6: c3 ret 801021b7 <namecmp>: //PAGEBREAK! // Directories int namecmp(const char *s, const char *t) { 801021b7: 55 push %ebp 801021b8: 89 e5 mov %esp,%ebp 801021ba: 83 ec 08 sub $0x8,%esp return strncmp(s, t, DIRSIZ); 801021bd: 83 ec 04 sub $0x4,%esp 801021c0: 6a 0e push $0xe 801021c2: ff 75 0c pushl 0xc(%ebp) 801021c5: ff 75 08 pushl 0x8(%ebp) 801021c8: e8 15 32 00 00 call 801053e2 <strncmp> 801021cd: 83 c4 10 add $0x10,%esp } 801021d0: c9 leave 801021d1: c3 ret 801021d2 <dirlookup>: // Look for a directory entry in a directory. // If found, set *poff to byte offset of entry. struct inode* dirlookup(struct inode *dp, char *name, uint *poff) { 801021d2: 55 push %ebp 801021d3: 89 e5 mov %esp,%ebp 801021d5: 83 ec 28 sub $0x28,%esp uint off, inum; struct dirent de; if(dp->type != T_DIR) 801021d8: 8b 45 08 mov 0x8(%ebp),%eax 801021db: 0f b7 40 10 movzwl 0x10(%eax),%eax 801021df: 66 83 f8 01 cmp $0x1,%ax 801021e3: 74 0d je 801021f2 <dirlookup+0x20> panic("dirlookup not DIR"); 801021e5: 83 ec 0c sub $0xc,%esp 801021e8: 68 d3 86 10 80 push $0x801086d3 801021ed: e8 74 e3 ff ff call 80100566 <panic> for(off = 0; off < dp->size; off += sizeof(de)){ 801021f2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801021f9: eb 7b jmp 80102276 <dirlookup+0xa4> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 801021fb: 6a 10 push $0x10 801021fd: ff 75 f4 pushl -0xc(%ebp) 80102200: 8d 45 e0 lea -0x20(%ebp),%eax 80102203: 50 push %eax 80102204: ff 75 08 pushl 0x8(%ebp) 80102207: e8 cc fc ff ff call 80101ed8 <readi> 8010220c: 83 c4 10 add $0x10,%esp 8010220f: 83 f8 10 cmp $0x10,%eax 80102212: 74 0d je 80102221 <dirlookup+0x4f> panic("dirlink read"); 80102214: 83 ec 0c sub $0xc,%esp 80102217: 68 e5 86 10 80 push $0x801086e5 8010221c: e8 45 e3 ff ff call 80100566 <panic> if(de.inum == 0) 80102221: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 80102225: 66 85 c0 test %ax,%ax 80102228: 74 47 je 80102271 <dirlookup+0x9f> continue; if(namecmp(name, de.name) == 0){ 8010222a: 83 ec 08 sub $0x8,%esp 8010222d: 8d 45 e0 lea -0x20(%ebp),%eax 80102230: 83 c0 02 add $0x2,%eax 80102233: 50 push %eax 80102234: ff 75 0c pushl 0xc(%ebp) 80102237: e8 7b ff ff ff call 801021b7 <namecmp> 8010223c: 83 c4 10 add $0x10,%esp 8010223f: 85 c0 test %eax,%eax 80102241: 75 2f jne 80102272 <dirlookup+0xa0> // entry matches path element if(poff) 80102243: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80102247: 74 08 je 80102251 <dirlookup+0x7f> *poff = off; 80102249: 8b 45 10 mov 0x10(%ebp),%eax 8010224c: 8b 55 f4 mov -0xc(%ebp),%edx 8010224f: 89 10 mov %edx,(%eax) inum = de.inum; 80102251: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 80102255: 0f b7 c0 movzwl %ax,%eax 80102258: 89 45 f0 mov %eax,-0x10(%ebp) return iget(dp->dev, inum); 8010225b: 8b 45 08 mov 0x8(%ebp),%eax 8010225e: 8b 00 mov (%eax),%eax 80102260: 83 ec 08 sub $0x8,%esp 80102263: ff 75 f0 pushl -0x10(%ebp) 80102266: 50 push %eax 80102267: e8 e5 f5 ff ff call 80101851 <iget> 8010226c: 83 c4 10 add $0x10,%esp 8010226f: eb 19 jmp 8010228a <dirlookup+0xb8> for(off = 0; off < dp->size; off += sizeof(de)){ if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlink read"); if(de.inum == 0) continue; 80102271: 90 nop struct dirent de; if(dp->type != T_DIR) panic("dirlookup not DIR"); for(off = 0; off < dp->size; off += sizeof(de)){ 80102272: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80102276: 8b 45 08 mov 0x8(%ebp),%eax 80102279: 8b 40 18 mov 0x18(%eax),%eax 8010227c: 3b 45 f4 cmp -0xc(%ebp),%eax 8010227f: 0f 87 76 ff ff ff ja 801021fb <dirlookup+0x29> inum = de.inum; return iget(dp->dev, inum); } } return 0; 80102285: b8 00 00 00 00 mov $0x0,%eax } 8010228a: c9 leave 8010228b: c3 ret 8010228c <dirlink>: // Write a new directory entry (name, inum) into the directory dp. int dirlink(struct inode *dp, char *name, uint inum) { 8010228c: 55 push %ebp 8010228d: 89 e5 mov %esp,%ebp 8010228f: 83 ec 28 sub $0x28,%esp int off; struct dirent de; struct inode *ip; // Check that name is not present. if((ip = dirlookup(dp, name, 0)) != 0){ 80102292: 83 ec 04 sub $0x4,%esp 80102295: 6a 00 push $0x0 80102297: ff 75 0c pushl 0xc(%ebp) 8010229a: ff 75 08 pushl 0x8(%ebp) 8010229d: e8 30 ff ff ff call 801021d2 <dirlookup> 801022a2: 83 c4 10 add $0x10,%esp 801022a5: 89 45 f0 mov %eax,-0x10(%ebp) 801022a8: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801022ac: 74 18 je 801022c6 <dirlink+0x3a> iput(ip); 801022ae: 83 ec 0c sub $0xc,%esp 801022b1: ff 75 f0 pushl -0x10(%ebp) 801022b4: e8 81 f8 ff ff call 80101b3a <iput> 801022b9: 83 c4 10 add $0x10,%esp return -1; 801022bc: b8 ff ff ff ff mov $0xffffffff,%eax 801022c1: e9 9c 00 00 00 jmp 80102362 <dirlink+0xd6> } // Look for an empty dirent. for(off = 0; off < dp->size; off += sizeof(de)){ 801022c6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801022cd: eb 39 jmp 80102308 <dirlink+0x7c> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 801022cf: 8b 45 f4 mov -0xc(%ebp),%eax 801022d2: 6a 10 push $0x10 801022d4: 50 push %eax 801022d5: 8d 45 e0 lea -0x20(%ebp),%eax 801022d8: 50 push %eax 801022d9: ff 75 08 pushl 0x8(%ebp) 801022dc: e8 f7 fb ff ff call 80101ed8 <readi> 801022e1: 83 c4 10 add $0x10,%esp 801022e4: 83 f8 10 cmp $0x10,%eax 801022e7: 74 0d je 801022f6 <dirlink+0x6a> panic("dirlink read"); 801022e9: 83 ec 0c sub $0xc,%esp 801022ec: 68 e5 86 10 80 push $0x801086e5 801022f1: e8 70 e2 ff ff call 80100566 <panic> if(de.inum == 0) 801022f6: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 801022fa: 66 85 c0 test %ax,%ax 801022fd: 74 18 je 80102317 <dirlink+0x8b> iput(ip); return -1; } // Look for an empty dirent. for(off = 0; off < dp->size; off += sizeof(de)){ 801022ff: 8b 45 f4 mov -0xc(%ebp),%eax 80102302: 83 c0 10 add $0x10,%eax 80102305: 89 45 f4 mov %eax,-0xc(%ebp) 80102308: 8b 45 08 mov 0x8(%ebp),%eax 8010230b: 8b 50 18 mov 0x18(%eax),%edx 8010230e: 8b 45 f4 mov -0xc(%ebp),%eax 80102311: 39 c2 cmp %eax,%edx 80102313: 77 ba ja 801022cf <dirlink+0x43> 80102315: eb 01 jmp 80102318 <dirlink+0x8c> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlink read"); if(de.inum == 0) break; 80102317: 90 nop } strncpy(de.name, name, DIRSIZ); 80102318: 83 ec 04 sub $0x4,%esp 8010231b: 6a 0e push $0xe 8010231d: ff 75 0c pushl 0xc(%ebp) 80102320: 8d 45 e0 lea -0x20(%ebp),%eax 80102323: 83 c0 02 add $0x2,%eax 80102326: 50 push %eax 80102327: e8 0c 31 00 00 call 80105438 <strncpy> 8010232c: 83 c4 10 add $0x10,%esp de.inum = inum; 8010232f: 8b 45 10 mov 0x10(%ebp),%eax 80102332: 66 89 45 e0 mov %ax,-0x20(%ebp) if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80102336: 8b 45 f4 mov -0xc(%ebp),%eax 80102339: 6a 10 push $0x10 8010233b: 50 push %eax 8010233c: 8d 45 e0 lea -0x20(%ebp),%eax 8010233f: 50 push %eax 80102340: ff 75 08 pushl 0x8(%ebp) 80102343: e8 e7 fc ff ff call 8010202f <writei> 80102348: 83 c4 10 add $0x10,%esp 8010234b: 83 f8 10 cmp $0x10,%eax 8010234e: 74 0d je 8010235d <dirlink+0xd1> panic("dirlink"); 80102350: 83 ec 0c sub $0xc,%esp 80102353: 68 f2 86 10 80 push $0x801086f2 80102358: e8 09 e2 ff ff call 80100566 <panic> return 0; 8010235d: b8 00 00 00 00 mov $0x0,%eax } 80102362: c9 leave 80102363: c3 ret 80102364 <skipelem>: // skipelem("a", name) = "", setting name = "a" // skipelem("", name) = skipelem("////", name) = 0 // static char* skipelem(char *path, char *name) { 80102364: 55 push %ebp 80102365: 89 e5 mov %esp,%ebp 80102367: 83 ec 18 sub $0x18,%esp char *s; int len; while(*path == '/') 8010236a: eb 04 jmp 80102370 <skipelem+0xc> path++; 8010236c: 83 45 08 01 addl $0x1,0x8(%ebp) skipelem(char *path, char *name) { char *s; int len; while(*path == '/') 80102370: 8b 45 08 mov 0x8(%ebp),%eax 80102373: 0f b6 00 movzbl (%eax),%eax 80102376: 3c 2f cmp $0x2f,%al 80102378: 74 f2 je 8010236c <skipelem+0x8> path++; if(*path == 0) 8010237a: 8b 45 08 mov 0x8(%ebp),%eax 8010237d: 0f b6 00 movzbl (%eax),%eax 80102380: 84 c0 test %al,%al 80102382: 75 07 jne 8010238b <skipelem+0x27> return 0; 80102384: b8 00 00 00 00 mov $0x0,%eax 80102389: eb 7b jmp 80102406 <skipelem+0xa2> s = path; 8010238b: 8b 45 08 mov 0x8(%ebp),%eax 8010238e: 89 45 f4 mov %eax,-0xc(%ebp) while(*path != '/' && *path != 0) 80102391: eb 04 jmp 80102397 <skipelem+0x33> path++; 80102393: 83 45 08 01 addl $0x1,0x8(%ebp) while(*path == '/') path++; if(*path == 0) return 0; s = path; while(*path != '/' && *path != 0) 80102397: 8b 45 08 mov 0x8(%ebp),%eax 8010239a: 0f b6 00 movzbl (%eax),%eax 8010239d: 3c 2f cmp $0x2f,%al 8010239f: 74 0a je 801023ab <skipelem+0x47> 801023a1: 8b 45 08 mov 0x8(%ebp),%eax 801023a4: 0f b6 00 movzbl (%eax),%eax 801023a7: 84 c0 test %al,%al 801023a9: 75 e8 jne 80102393 <skipelem+0x2f> path++; len = path - s; 801023ab: 8b 55 08 mov 0x8(%ebp),%edx 801023ae: 8b 45 f4 mov -0xc(%ebp),%eax 801023b1: 29 c2 sub %eax,%edx 801023b3: 89 d0 mov %edx,%eax 801023b5: 89 45 f0 mov %eax,-0x10(%ebp) if(len >= DIRSIZ) 801023b8: 83 7d f0 0d cmpl $0xd,-0x10(%ebp) 801023bc: 7e 15 jle 801023d3 <skipelem+0x6f> memmove(name, s, DIRSIZ); 801023be: 83 ec 04 sub $0x4,%esp 801023c1: 6a 0e push $0xe 801023c3: ff 75 f4 pushl -0xc(%ebp) 801023c6: ff 75 0c pushl 0xc(%ebp) 801023c9: e8 7e 2f 00 00 call 8010534c <memmove> 801023ce: 83 c4 10 add $0x10,%esp 801023d1: eb 26 jmp 801023f9 <skipelem+0x95> else { memmove(name, s, len); 801023d3: 8b 45 f0 mov -0x10(%ebp),%eax 801023d6: 83 ec 04 sub $0x4,%esp 801023d9: 50 push %eax 801023da: ff 75 f4 pushl -0xc(%ebp) 801023dd: ff 75 0c pushl 0xc(%ebp) 801023e0: e8 67 2f 00 00 call 8010534c <memmove> 801023e5: 83 c4 10 add $0x10,%esp name[len] = 0; 801023e8: 8b 55 f0 mov -0x10(%ebp),%edx 801023eb: 8b 45 0c mov 0xc(%ebp),%eax 801023ee: 01 d0 add %edx,%eax 801023f0: c6 00 00 movb $0x0,(%eax) } while(*path == '/') 801023f3: eb 04 jmp 801023f9 <skipelem+0x95> path++; 801023f5: 83 45 08 01 addl $0x1,0x8(%ebp) memmove(name, s, DIRSIZ); else { memmove(name, s, len); name[len] = 0; } while(*path == '/') 801023f9: 8b 45 08 mov 0x8(%ebp),%eax 801023fc: 0f b6 00 movzbl (%eax),%eax 801023ff: 3c 2f cmp $0x2f,%al 80102401: 74 f2 je 801023f5 <skipelem+0x91> path++; return path; 80102403: 8b 45 08 mov 0x8(%ebp),%eax } 80102406: c9 leave 80102407: c3 ret 80102408 <namex>: // If parent != 0, return the inode for the parent and copy the final // path element into name, which must have room for DIRSIZ bytes. // Must be called inside a transaction since it calls iput(). static struct inode* namex(char *path, int nameiparent, char *name) { 80102408: 55 push %ebp 80102409: 89 e5 mov %esp,%ebp 8010240b: 83 ec 18 sub $0x18,%esp struct inode *ip, *next; if(*path == '/') 8010240e: 8b 45 08 mov 0x8(%ebp),%eax 80102411: 0f b6 00 movzbl (%eax),%eax 80102414: 3c 2f cmp $0x2f,%al 80102416: 75 17 jne 8010242f <namex+0x27> ip = iget(ROOTDEV, ROOTINO); 80102418: 83 ec 08 sub $0x8,%esp 8010241b: 6a 01 push $0x1 8010241d: 6a 01 push $0x1 8010241f: e8 2d f4 ff ff call 80101851 <iget> 80102424: 83 c4 10 add $0x10,%esp 80102427: 89 45 f4 mov %eax,-0xc(%ebp) 8010242a: e9 bb 00 00 00 jmp 801024ea <namex+0xe2> else ip = idup(proc->cwd); 8010242f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80102435: 8b 40 68 mov 0x68(%eax),%eax 80102438: 83 ec 0c sub $0xc,%esp 8010243b: 50 push %eax 8010243c: e8 ef f4 ff ff call 80101930 <idup> 80102441: 83 c4 10 add $0x10,%esp 80102444: 89 45 f4 mov %eax,-0xc(%ebp) while((path = skipelem(path, name)) != 0){ 80102447: e9 9e 00 00 00 jmp 801024ea <namex+0xe2> ilock(ip); 8010244c: 83 ec 0c sub $0xc,%esp 8010244f: ff 75 f4 pushl -0xc(%ebp) 80102452: e8 13 f5 ff ff call 8010196a <ilock> 80102457: 83 c4 10 add $0x10,%esp if(ip->type != T_DIR){ 8010245a: 8b 45 f4 mov -0xc(%ebp),%eax 8010245d: 0f b7 40 10 movzwl 0x10(%eax),%eax 80102461: 66 83 f8 01 cmp $0x1,%ax 80102465: 74 18 je 8010247f <namex+0x77> iunlockput(ip); 80102467: 83 ec 0c sub $0xc,%esp 8010246a: ff 75 f4 pushl -0xc(%ebp) 8010246d: e8 b8 f7 ff ff call 80101c2a <iunlockput> 80102472: 83 c4 10 add $0x10,%esp return 0; 80102475: b8 00 00 00 00 mov $0x0,%eax 8010247a: e9 a7 00 00 00 jmp 80102526 <namex+0x11e> } if(nameiparent && *path == '\0'){ 8010247f: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80102483: 74 20 je 801024a5 <namex+0x9d> 80102485: 8b 45 08 mov 0x8(%ebp),%eax 80102488: 0f b6 00 movzbl (%eax),%eax 8010248b: 84 c0 test %al,%al 8010248d: 75 16 jne 801024a5 <namex+0x9d> // Stop one level early. iunlock(ip); 8010248f: 83 ec 0c sub $0xc,%esp 80102492: ff 75 f4 pushl -0xc(%ebp) 80102495: e8 2e f6 ff ff call 80101ac8 <iunlock> 8010249a: 83 c4 10 add $0x10,%esp return ip; 8010249d: 8b 45 f4 mov -0xc(%ebp),%eax 801024a0: e9 81 00 00 00 jmp 80102526 <namex+0x11e> } if((next = dirlookup(ip, name, 0)) == 0){ 801024a5: 83 ec 04 sub $0x4,%esp 801024a8: 6a 00 push $0x0 801024aa: ff 75 10 pushl 0x10(%ebp) 801024ad: ff 75 f4 pushl -0xc(%ebp) 801024b0: e8 1d fd ff ff call 801021d2 <dirlookup> 801024b5: 83 c4 10 add $0x10,%esp 801024b8: 89 45 f0 mov %eax,-0x10(%ebp) 801024bb: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801024bf: 75 15 jne 801024d6 <namex+0xce> iunlockput(ip); 801024c1: 83 ec 0c sub $0xc,%esp 801024c4: ff 75 f4 pushl -0xc(%ebp) 801024c7: e8 5e f7 ff ff call 80101c2a <iunlockput> 801024cc: 83 c4 10 add $0x10,%esp return 0; 801024cf: b8 00 00 00 00 mov $0x0,%eax 801024d4: eb 50 jmp 80102526 <namex+0x11e> } iunlockput(ip); 801024d6: 83 ec 0c sub $0xc,%esp 801024d9: ff 75 f4 pushl -0xc(%ebp) 801024dc: e8 49 f7 ff ff call 80101c2a <iunlockput> 801024e1: 83 c4 10 add $0x10,%esp ip = next; 801024e4: 8b 45 f0 mov -0x10(%ebp),%eax 801024e7: 89 45 f4 mov %eax,-0xc(%ebp) if(*path == '/') ip = iget(ROOTDEV, ROOTINO); else ip = idup(proc->cwd); while((path = skipelem(path, name)) != 0){ 801024ea: 83 ec 08 sub $0x8,%esp 801024ed: ff 75 10 pushl 0x10(%ebp) 801024f0: ff 75 08 pushl 0x8(%ebp) 801024f3: e8 6c fe ff ff call 80102364 <skipelem> 801024f8: 83 c4 10 add $0x10,%esp 801024fb: 89 45 08 mov %eax,0x8(%ebp) 801024fe: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80102502: 0f 85 44 ff ff ff jne 8010244c <namex+0x44> return 0; } iunlockput(ip); ip = next; } if(nameiparent){ 80102508: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 8010250c: 74 15 je 80102523 <namex+0x11b> iput(ip); 8010250e: 83 ec 0c sub $0xc,%esp 80102511: ff 75 f4 pushl -0xc(%ebp) 80102514: e8 21 f6 ff ff call 80101b3a <iput> 80102519: 83 c4 10 add $0x10,%esp return 0; 8010251c: b8 00 00 00 00 mov $0x0,%eax 80102521: eb 03 jmp 80102526 <namex+0x11e> } return ip; 80102523: 8b 45 f4 mov -0xc(%ebp),%eax } 80102526: c9 leave 80102527: c3 ret 80102528 <namei>: struct inode* namei(char *path) { 80102528: 55 push %ebp 80102529: 89 e5 mov %esp,%ebp 8010252b: 83 ec 18 sub $0x18,%esp char name[DIRSIZ]; return namex(path, 0, name); 8010252e: 83 ec 04 sub $0x4,%esp 80102531: 8d 45 ea lea -0x16(%ebp),%eax 80102534: 50 push %eax 80102535: 6a 00 push $0x0 80102537: ff 75 08 pushl 0x8(%ebp) 8010253a: e8 c9 fe ff ff call 80102408 <namex> 8010253f: 83 c4 10 add $0x10,%esp } 80102542: c9 leave 80102543: c3 ret 80102544 <nameiparent>: struct inode* nameiparent(char *path, char *name) { 80102544: 55 push %ebp 80102545: 89 e5 mov %esp,%ebp 80102547: 83 ec 08 sub $0x8,%esp return namex(path, 1, name); 8010254a: 83 ec 04 sub $0x4,%esp 8010254d: ff 75 0c pushl 0xc(%ebp) 80102550: 6a 01 push $0x1 80102552: ff 75 08 pushl 0x8(%ebp) 80102555: e8 ae fe ff ff call 80102408 <namex> 8010255a: 83 c4 10 add $0x10,%esp } 8010255d: c9 leave 8010255e: c3 ret 8010255f <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 8010255f: 55 push %ebp 80102560: 89 e5 mov %esp,%ebp 80102562: 83 ec 14 sub $0x14,%esp 80102565: 8b 45 08 mov 0x8(%ebp),%eax 80102568: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010256c: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102570: 89 c2 mov %eax,%edx 80102572: ec in (%dx),%al 80102573: 88 45 ff mov %al,-0x1(%ebp) return data; 80102576: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 8010257a: c9 leave 8010257b: c3 ret 8010257c <insl>: static inline void insl(int port, void *addr, int cnt) { 8010257c: 55 push %ebp 8010257d: 89 e5 mov %esp,%ebp 8010257f: 57 push %edi 80102580: 53 push %ebx asm volatile("cld; rep insl" : 80102581: 8b 55 08 mov 0x8(%ebp),%edx 80102584: 8b 4d 0c mov 0xc(%ebp),%ecx 80102587: 8b 45 10 mov 0x10(%ebp),%eax 8010258a: 89 cb mov %ecx,%ebx 8010258c: 89 df mov %ebx,%edi 8010258e: 89 c1 mov %eax,%ecx 80102590: fc cld 80102591: f3 6d rep insl (%dx),%es:(%edi) 80102593: 89 c8 mov %ecx,%eax 80102595: 89 fb mov %edi,%ebx 80102597: 89 5d 0c mov %ebx,0xc(%ebp) 8010259a: 89 45 10 mov %eax,0x10(%ebp) "=D" (addr), "=c" (cnt) : "d" (port), "0" (addr), "1" (cnt) : "memory", "cc"); } 8010259d: 90 nop 8010259e: 5b pop %ebx 8010259f: 5f pop %edi 801025a0: 5d pop %ebp 801025a1: c3 ret 801025a2 <outb>: static inline void outb(ushort port, uchar data) { 801025a2: 55 push %ebp 801025a3: 89 e5 mov %esp,%ebp 801025a5: 83 ec 08 sub $0x8,%esp 801025a8: 8b 55 08 mov 0x8(%ebp),%edx 801025ab: 8b 45 0c mov 0xc(%ebp),%eax 801025ae: 66 89 55 fc mov %dx,-0x4(%ebp) 801025b2: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801025b5: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 801025b9: 0f b7 55 fc movzwl -0x4(%ebp),%edx 801025bd: ee out %al,(%dx) } 801025be: 90 nop 801025bf: c9 leave 801025c0: c3 ret 801025c1 <outsl>: asm volatile("out %0,%1" : : "a" (data), "d" (port)); } static inline void outsl(int port, const void *addr, int cnt) { 801025c1: 55 push %ebp 801025c2: 89 e5 mov %esp,%ebp 801025c4: 56 push %esi 801025c5: 53 push %ebx asm volatile("cld; rep outsl" : 801025c6: 8b 55 08 mov 0x8(%ebp),%edx 801025c9: 8b 4d 0c mov 0xc(%ebp),%ecx 801025cc: 8b 45 10 mov 0x10(%ebp),%eax 801025cf: 89 cb mov %ecx,%ebx 801025d1: 89 de mov %ebx,%esi 801025d3: 89 c1 mov %eax,%ecx 801025d5: fc cld 801025d6: f3 6f rep outsl %ds:(%esi),(%dx) 801025d8: 89 c8 mov %ecx,%eax 801025da: 89 f3 mov %esi,%ebx 801025dc: 89 5d 0c mov %ebx,0xc(%ebp) 801025df: 89 45 10 mov %eax,0x10(%ebp) "=S" (addr), "=c" (cnt) : "d" (port), "0" (addr), "1" (cnt) : "cc"); } 801025e2: 90 nop 801025e3: 5b pop %ebx 801025e4: 5e pop %esi 801025e5: 5d pop %ebp 801025e6: c3 ret 801025e7 <idewait>: static void idestart(struct buf*); // Wait for IDE disk to become ready. static int idewait(int checkerr) { 801025e7: 55 push %ebp 801025e8: 89 e5 mov %esp,%ebp 801025ea: 83 ec 10 sub $0x10,%esp int r; while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 801025ed: 90 nop 801025ee: 68 f7 01 00 00 push $0x1f7 801025f3: e8 67 ff ff ff call 8010255f <inb> 801025f8: 83 c4 04 add $0x4,%esp 801025fb: 0f b6 c0 movzbl %al,%eax 801025fe: 89 45 fc mov %eax,-0x4(%ebp) 80102601: 8b 45 fc mov -0x4(%ebp),%eax 80102604: 25 c0 00 00 00 and $0xc0,%eax 80102609: 83 f8 40 cmp $0x40,%eax 8010260c: 75 e0 jne 801025ee <idewait+0x7> ; if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0) 8010260e: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80102612: 74 11 je 80102625 <idewait+0x3e> 80102614: 8b 45 fc mov -0x4(%ebp),%eax 80102617: 83 e0 21 and $0x21,%eax 8010261a: 85 c0 test %eax,%eax 8010261c: 74 07 je 80102625 <idewait+0x3e> return -1; 8010261e: b8 ff ff ff ff mov $0xffffffff,%eax 80102623: eb 05 jmp 8010262a <idewait+0x43> return 0; 80102625: b8 00 00 00 00 mov $0x0,%eax } 8010262a: c9 leave 8010262b: c3 ret 8010262c <ideinit>: void ideinit(void) { 8010262c: 55 push %ebp 8010262d: 89 e5 mov %esp,%ebp 8010262f: 83 ec 18 sub $0x18,%esp int i; initlock(&idelock, "ide"); 80102632: 83 ec 08 sub $0x8,%esp 80102635: 68 fa 86 10 80 push $0x801086fa 8010263a: 68 00 b6 10 80 push $0x8010b600 8010263f: e8 c4 29 00 00 call 80105008 <initlock> 80102644: 83 c4 10 add $0x10,%esp picenable(IRQ_IDE); 80102647: 83 ec 0c sub $0xc,%esp 8010264a: 6a 0e push $0xe 8010264c: e8 da 18 00 00 call 80103f2b <picenable> 80102651: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_IDE, ncpu - 1); 80102654: a1 40 29 11 80 mov 0x80112940,%eax 80102659: 83 e8 01 sub $0x1,%eax 8010265c: 83 ec 08 sub $0x8,%esp 8010265f: 50 push %eax 80102660: 6a 0e push $0xe 80102662: e8 73 04 00 00 call 80102ada <ioapicenable> 80102667: 83 c4 10 add $0x10,%esp idewait(0); 8010266a: 83 ec 0c sub $0xc,%esp 8010266d: 6a 00 push $0x0 8010266f: e8 73 ff ff ff call 801025e7 <idewait> 80102674: 83 c4 10 add $0x10,%esp // Check if disk 1 is present outb(0x1f6, 0xe0 | (1<<4)); 80102677: 83 ec 08 sub $0x8,%esp 8010267a: 68 f0 00 00 00 push $0xf0 8010267f: 68 f6 01 00 00 push $0x1f6 80102684: e8 19 ff ff ff call 801025a2 <outb> 80102689: 83 c4 10 add $0x10,%esp for(i=0; i<1000; i++){ 8010268c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80102693: eb 24 jmp 801026b9 <ideinit+0x8d> if(inb(0x1f7) != 0){ 80102695: 83 ec 0c sub $0xc,%esp 80102698: 68 f7 01 00 00 push $0x1f7 8010269d: e8 bd fe ff ff call 8010255f <inb> 801026a2: 83 c4 10 add $0x10,%esp 801026a5: 84 c0 test %al,%al 801026a7: 74 0c je 801026b5 <ideinit+0x89> havedisk1 = 1; 801026a9: c7 05 38 b6 10 80 01 movl $0x1,0x8010b638 801026b0: 00 00 00 break; 801026b3: eb 0d jmp 801026c2 <ideinit+0x96> ioapicenable(IRQ_IDE, ncpu - 1); idewait(0); // Check if disk 1 is present outb(0x1f6, 0xe0 | (1<<4)); for(i=0; i<1000; i++){ 801026b5: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801026b9: 81 7d f4 e7 03 00 00 cmpl $0x3e7,-0xc(%ebp) 801026c0: 7e d3 jle 80102695 <ideinit+0x69> break; } } // Switch back to disk 0. outb(0x1f6, 0xe0 | (0<<4)); 801026c2: 83 ec 08 sub $0x8,%esp 801026c5: 68 e0 00 00 00 push $0xe0 801026ca: 68 f6 01 00 00 push $0x1f6 801026cf: e8 ce fe ff ff call 801025a2 <outb> 801026d4: 83 c4 10 add $0x10,%esp } 801026d7: 90 nop 801026d8: c9 leave 801026d9: c3 ret 801026da <idestart>: // Start the request for b. Caller must hold idelock. static void idestart(struct buf *b) { 801026da: 55 push %ebp 801026db: 89 e5 mov %esp,%ebp 801026dd: 83 ec 18 sub $0x18,%esp if(b == 0) 801026e0: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801026e4: 75 0d jne 801026f3 <idestart+0x19> panic("idestart"); 801026e6: 83 ec 0c sub $0xc,%esp 801026e9: 68 fe 86 10 80 push $0x801086fe 801026ee: e8 73 de ff ff call 80100566 <panic> if(b->blockno >= FSSIZE) 801026f3: 8b 45 08 mov 0x8(%ebp),%eax 801026f6: 8b 40 08 mov 0x8(%eax),%eax 801026f9: 3d e7 03 00 00 cmp $0x3e7,%eax 801026fe: 76 0d jbe 8010270d <idestart+0x33> panic("incorrect blockno"); 80102700: 83 ec 0c sub $0xc,%esp 80102703: 68 07 87 10 80 push $0x80108707 80102708: e8 59 de ff ff call 80100566 <panic> int sector_per_block = BSIZE/SECTOR_SIZE; 8010270d: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) int sector = b->blockno * sector_per_block; 80102714: 8b 45 08 mov 0x8(%ebp),%eax 80102717: 8b 50 08 mov 0x8(%eax),%edx 8010271a: 8b 45 f4 mov -0xc(%ebp),%eax 8010271d: 0f af c2 imul %edx,%eax 80102720: 89 45 f0 mov %eax,-0x10(%ebp) if (sector_per_block > 7) panic("idestart"); 80102723: 83 7d f4 07 cmpl $0x7,-0xc(%ebp) 80102727: 7e 0d jle 80102736 <idestart+0x5c> 80102729: 83 ec 0c sub $0xc,%esp 8010272c: 68 fe 86 10 80 push $0x801086fe 80102731: e8 30 de ff ff call 80100566 <panic> idewait(0); 80102736: 83 ec 0c sub $0xc,%esp 80102739: 6a 00 push $0x0 8010273b: e8 a7 fe ff ff call 801025e7 <idewait> 80102740: 83 c4 10 add $0x10,%esp outb(0x3f6, 0); // generate interrupt 80102743: 83 ec 08 sub $0x8,%esp 80102746: 6a 00 push $0x0 80102748: 68 f6 03 00 00 push $0x3f6 8010274d: e8 50 fe ff ff call 801025a2 <outb> 80102752: 83 c4 10 add $0x10,%esp outb(0x1f2, sector_per_block); // number of sectors 80102755: 8b 45 f4 mov -0xc(%ebp),%eax 80102758: 0f b6 c0 movzbl %al,%eax 8010275b: 83 ec 08 sub $0x8,%esp 8010275e: 50 push %eax 8010275f: 68 f2 01 00 00 push $0x1f2 80102764: e8 39 fe ff ff call 801025a2 <outb> 80102769: 83 c4 10 add $0x10,%esp outb(0x1f3, sector & 0xff); 8010276c: 8b 45 f0 mov -0x10(%ebp),%eax 8010276f: 0f b6 c0 movzbl %al,%eax 80102772: 83 ec 08 sub $0x8,%esp 80102775: 50 push %eax 80102776: 68 f3 01 00 00 push $0x1f3 8010277b: e8 22 fe ff ff call 801025a2 <outb> 80102780: 83 c4 10 add $0x10,%esp outb(0x1f4, (sector >> 8) & 0xff); 80102783: 8b 45 f0 mov -0x10(%ebp),%eax 80102786: c1 f8 08 sar $0x8,%eax 80102789: 0f b6 c0 movzbl %al,%eax 8010278c: 83 ec 08 sub $0x8,%esp 8010278f: 50 push %eax 80102790: 68 f4 01 00 00 push $0x1f4 80102795: e8 08 fe ff ff call 801025a2 <outb> 8010279a: 83 c4 10 add $0x10,%esp outb(0x1f5, (sector >> 16) & 0xff); 8010279d: 8b 45 f0 mov -0x10(%ebp),%eax 801027a0: c1 f8 10 sar $0x10,%eax 801027a3: 0f b6 c0 movzbl %al,%eax 801027a6: 83 ec 08 sub $0x8,%esp 801027a9: 50 push %eax 801027aa: 68 f5 01 00 00 push $0x1f5 801027af: e8 ee fd ff ff call 801025a2 <outb> 801027b4: 83 c4 10 add $0x10,%esp outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); 801027b7: 8b 45 08 mov 0x8(%ebp),%eax 801027ba: 8b 40 04 mov 0x4(%eax),%eax 801027bd: 83 e0 01 and $0x1,%eax 801027c0: c1 e0 04 shl $0x4,%eax 801027c3: 89 c2 mov %eax,%edx 801027c5: 8b 45 f0 mov -0x10(%ebp),%eax 801027c8: c1 f8 18 sar $0x18,%eax 801027cb: 83 e0 0f and $0xf,%eax 801027ce: 09 d0 or %edx,%eax 801027d0: 83 c8 e0 or $0xffffffe0,%eax 801027d3: 0f b6 c0 movzbl %al,%eax 801027d6: 83 ec 08 sub $0x8,%esp 801027d9: 50 push %eax 801027da: 68 f6 01 00 00 push $0x1f6 801027df: e8 be fd ff ff call 801025a2 <outb> 801027e4: 83 c4 10 add $0x10,%esp if(b->flags & B_DIRTY){ 801027e7: 8b 45 08 mov 0x8(%ebp),%eax 801027ea: 8b 00 mov (%eax),%eax 801027ec: 83 e0 04 and $0x4,%eax 801027ef: 85 c0 test %eax,%eax 801027f1: 74 30 je 80102823 <idestart+0x149> outb(0x1f7, IDE_CMD_WRITE); 801027f3: 83 ec 08 sub $0x8,%esp 801027f6: 6a 30 push $0x30 801027f8: 68 f7 01 00 00 push $0x1f7 801027fd: e8 a0 fd ff ff call 801025a2 <outb> 80102802: 83 c4 10 add $0x10,%esp outsl(0x1f0, b->data, BSIZE/4); 80102805: 8b 45 08 mov 0x8(%ebp),%eax 80102808: 83 c0 18 add $0x18,%eax 8010280b: 83 ec 04 sub $0x4,%esp 8010280e: 68 80 00 00 00 push $0x80 80102813: 50 push %eax 80102814: 68 f0 01 00 00 push $0x1f0 80102819: e8 a3 fd ff ff call 801025c1 <outsl> 8010281e: 83 c4 10 add $0x10,%esp } else { outb(0x1f7, IDE_CMD_READ); } } 80102821: eb 12 jmp 80102835 <idestart+0x15b> outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); if(b->flags & B_DIRTY){ outb(0x1f7, IDE_CMD_WRITE); outsl(0x1f0, b->data, BSIZE/4); } else { outb(0x1f7, IDE_CMD_READ); 80102823: 83 ec 08 sub $0x8,%esp 80102826: 6a 20 push $0x20 80102828: 68 f7 01 00 00 push $0x1f7 8010282d: e8 70 fd ff ff call 801025a2 <outb> 80102832: 83 c4 10 add $0x10,%esp } } 80102835: 90 nop 80102836: c9 leave 80102837: c3 ret 80102838 <ideintr>: // Interrupt handler. void ideintr(void) { 80102838: 55 push %ebp 80102839: 89 e5 mov %esp,%ebp 8010283b: 83 ec 18 sub $0x18,%esp struct buf *b; // First queued buffer is the active request. acquire(&idelock); 8010283e: 83 ec 0c sub $0xc,%esp 80102841: 68 00 b6 10 80 push $0x8010b600 80102846: e8 df 27 00 00 call 8010502a <acquire> 8010284b: 83 c4 10 add $0x10,%esp if((b = idequeue) == 0){ 8010284e: a1 34 b6 10 80 mov 0x8010b634,%eax 80102853: 89 45 f4 mov %eax,-0xc(%ebp) 80102856: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010285a: 75 15 jne 80102871 <ideintr+0x39> release(&idelock); 8010285c: 83 ec 0c sub $0xc,%esp 8010285f: 68 00 b6 10 80 push $0x8010b600 80102864: e8 28 28 00 00 call 80105091 <release> 80102869: 83 c4 10 add $0x10,%esp // cprintf("spurious IDE interrupt\n"); return; 8010286c: e9 9a 00 00 00 jmp 8010290b <ideintr+0xd3> } idequeue = b->qnext; 80102871: 8b 45 f4 mov -0xc(%ebp),%eax 80102874: 8b 40 14 mov 0x14(%eax),%eax 80102877: a3 34 b6 10 80 mov %eax,0x8010b634 // Read data if needed. if(!(b->flags & B_DIRTY) && idewait(1) >= 0) 8010287c: 8b 45 f4 mov -0xc(%ebp),%eax 8010287f: 8b 00 mov (%eax),%eax 80102881: 83 e0 04 and $0x4,%eax 80102884: 85 c0 test %eax,%eax 80102886: 75 2d jne 801028b5 <ideintr+0x7d> 80102888: 83 ec 0c sub $0xc,%esp 8010288b: 6a 01 push $0x1 8010288d: e8 55 fd ff ff call 801025e7 <idewait> 80102892: 83 c4 10 add $0x10,%esp 80102895: 85 c0 test %eax,%eax 80102897: 78 1c js 801028b5 <ideintr+0x7d> insl(0x1f0, b->data, BSIZE/4); 80102899: 8b 45 f4 mov -0xc(%ebp),%eax 8010289c: 83 c0 18 add $0x18,%eax 8010289f: 83 ec 04 sub $0x4,%esp 801028a2: 68 80 00 00 00 push $0x80 801028a7: 50 push %eax 801028a8: 68 f0 01 00 00 push $0x1f0 801028ad: e8 ca fc ff ff call 8010257c <insl> 801028b2: 83 c4 10 add $0x10,%esp // Wake process waiting for this buf. b->flags |= B_VALID; 801028b5: 8b 45 f4 mov -0xc(%ebp),%eax 801028b8: 8b 00 mov (%eax),%eax 801028ba: 83 c8 02 or $0x2,%eax 801028bd: 89 c2 mov %eax,%edx 801028bf: 8b 45 f4 mov -0xc(%ebp),%eax 801028c2: 89 10 mov %edx,(%eax) b->flags &= ~B_DIRTY; 801028c4: 8b 45 f4 mov -0xc(%ebp),%eax 801028c7: 8b 00 mov (%eax),%eax 801028c9: 83 e0 fb and $0xfffffffb,%eax 801028cc: 89 c2 mov %eax,%edx 801028ce: 8b 45 f4 mov -0xc(%ebp),%eax 801028d1: 89 10 mov %edx,(%eax) wakeup(b); 801028d3: 83 ec 0c sub $0xc,%esp 801028d6: ff 75 f4 pushl -0xc(%ebp) 801028d9: e8 3e 25 00 00 call 80104e1c <wakeup> 801028de: 83 c4 10 add $0x10,%esp // Start disk on next buf in queue. if(idequeue != 0) 801028e1: a1 34 b6 10 80 mov 0x8010b634,%eax 801028e6: 85 c0 test %eax,%eax 801028e8: 74 11 je 801028fb <ideintr+0xc3> idestart(idequeue); 801028ea: a1 34 b6 10 80 mov 0x8010b634,%eax 801028ef: 83 ec 0c sub $0xc,%esp 801028f2: 50 push %eax 801028f3: e8 e2 fd ff ff call 801026da <idestart> 801028f8: 83 c4 10 add $0x10,%esp release(&idelock); 801028fb: 83 ec 0c sub $0xc,%esp 801028fe: 68 00 b6 10 80 push $0x8010b600 80102903: e8 89 27 00 00 call 80105091 <release> 80102908: 83 c4 10 add $0x10,%esp } 8010290b: c9 leave 8010290c: c3 ret 8010290d <iderw>: // Sync buf with disk. // If B_DIRTY is set, write buf to disk, clear B_DIRTY, set B_VALID. // Else if B_VALID is not set, read buf from disk, set B_VALID. void iderw(struct buf *b) { 8010290d: 55 push %ebp 8010290e: 89 e5 mov %esp,%ebp 80102910: 83 ec 18 sub $0x18,%esp struct buf **pp; if(!(b->flags & B_BUSY)) 80102913: 8b 45 08 mov 0x8(%ebp),%eax 80102916: 8b 00 mov (%eax),%eax 80102918: 83 e0 01 and $0x1,%eax 8010291b: 85 c0 test %eax,%eax 8010291d: 75 0d jne 8010292c <iderw+0x1f> panic("iderw: buf not busy"); 8010291f: 83 ec 0c sub $0xc,%esp 80102922: 68 19 87 10 80 push $0x80108719 80102927: e8 3a dc ff ff call 80100566 <panic> if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) 8010292c: 8b 45 08 mov 0x8(%ebp),%eax 8010292f: 8b 00 mov (%eax),%eax 80102931: 83 e0 06 and $0x6,%eax 80102934: 83 f8 02 cmp $0x2,%eax 80102937: 75 0d jne 80102946 <iderw+0x39> panic("iderw: nothing to do"); 80102939: 83 ec 0c sub $0xc,%esp 8010293c: 68 2d 87 10 80 push $0x8010872d 80102941: e8 20 dc ff ff call 80100566 <panic> if(b->dev != 0 && !havedisk1) 80102946: 8b 45 08 mov 0x8(%ebp),%eax 80102949: 8b 40 04 mov 0x4(%eax),%eax 8010294c: 85 c0 test %eax,%eax 8010294e: 74 16 je 80102966 <iderw+0x59> 80102950: a1 38 b6 10 80 mov 0x8010b638,%eax 80102955: 85 c0 test %eax,%eax 80102957: 75 0d jne 80102966 <iderw+0x59> panic("iderw: ide disk 1 not present"); 80102959: 83 ec 0c sub $0xc,%esp 8010295c: 68 42 87 10 80 push $0x80108742 80102961: e8 00 dc ff ff call 80100566 <panic> acquire(&idelock); //DOC:acquire-lock 80102966: 83 ec 0c sub $0xc,%esp 80102969: 68 00 b6 10 80 push $0x8010b600 8010296e: e8 b7 26 00 00 call 8010502a <acquire> 80102973: 83 c4 10 add $0x10,%esp // Append b to idequeue. b->qnext = 0; 80102976: 8b 45 08 mov 0x8(%ebp),%eax 80102979: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 80102980: c7 45 f4 34 b6 10 80 movl $0x8010b634,-0xc(%ebp) 80102987: eb 0b jmp 80102994 <iderw+0x87> 80102989: 8b 45 f4 mov -0xc(%ebp),%eax 8010298c: 8b 00 mov (%eax),%eax 8010298e: 83 c0 14 add $0x14,%eax 80102991: 89 45 f4 mov %eax,-0xc(%ebp) 80102994: 8b 45 f4 mov -0xc(%ebp),%eax 80102997: 8b 00 mov (%eax),%eax 80102999: 85 c0 test %eax,%eax 8010299b: 75 ec jne 80102989 <iderw+0x7c> ; *pp = b; 8010299d: 8b 45 f4 mov -0xc(%ebp),%eax 801029a0: 8b 55 08 mov 0x8(%ebp),%edx 801029a3: 89 10 mov %edx,(%eax) // Start disk if necessary. if(idequeue == b) 801029a5: a1 34 b6 10 80 mov 0x8010b634,%eax 801029aa: 3b 45 08 cmp 0x8(%ebp),%eax 801029ad: 75 23 jne 801029d2 <iderw+0xc5> idestart(b); 801029af: 83 ec 0c sub $0xc,%esp 801029b2: ff 75 08 pushl 0x8(%ebp) 801029b5: e8 20 fd ff ff call 801026da <idestart> 801029ba: 83 c4 10 add $0x10,%esp // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 801029bd: eb 13 jmp 801029d2 <iderw+0xc5> sleep(b, &idelock); 801029bf: 83 ec 08 sub $0x8,%esp 801029c2: 68 00 b6 10 80 push $0x8010b600 801029c7: ff 75 08 pushl 0x8(%ebp) 801029ca: e8 62 23 00 00 call 80104d31 <sleep> 801029cf: 83 c4 10 add $0x10,%esp // Start disk if necessary. if(idequeue == b) idestart(b); // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 801029d2: 8b 45 08 mov 0x8(%ebp),%eax 801029d5: 8b 00 mov (%eax),%eax 801029d7: 83 e0 06 and $0x6,%eax 801029da: 83 f8 02 cmp $0x2,%eax 801029dd: 75 e0 jne 801029bf <iderw+0xb2> sleep(b, &idelock); } release(&idelock); 801029df: 83 ec 0c sub $0xc,%esp 801029e2: 68 00 b6 10 80 push $0x8010b600 801029e7: e8 a5 26 00 00 call 80105091 <release> 801029ec: 83 c4 10 add $0x10,%esp } 801029ef: 90 nop 801029f0: c9 leave 801029f1: c3 ret 801029f2 <ioapicread>: uint data; }; static uint ioapicread(int reg) { 801029f2: 55 push %ebp 801029f3: 89 e5 mov %esp,%ebp ioapic->reg = reg; 801029f5: a1 14 22 11 80 mov 0x80112214,%eax 801029fa: 8b 55 08 mov 0x8(%ebp),%edx 801029fd: 89 10 mov %edx,(%eax) return ioapic->data; 801029ff: a1 14 22 11 80 mov 0x80112214,%eax 80102a04: 8b 40 10 mov 0x10(%eax),%eax } 80102a07: 5d pop %ebp 80102a08: c3 ret 80102a09 <ioapicwrite>: static void ioapicwrite(int reg, uint data) { 80102a09: 55 push %ebp 80102a0a: 89 e5 mov %esp,%ebp ioapic->reg = reg; 80102a0c: a1 14 22 11 80 mov 0x80112214,%eax 80102a11: 8b 55 08 mov 0x8(%ebp),%edx 80102a14: 89 10 mov %edx,(%eax) ioapic->data = data; 80102a16: a1 14 22 11 80 mov 0x80112214,%eax 80102a1b: 8b 55 0c mov 0xc(%ebp),%edx 80102a1e: 89 50 10 mov %edx,0x10(%eax) } 80102a21: 90 nop 80102a22: 5d pop %ebp 80102a23: c3 ret 80102a24 <ioapicinit>: void ioapicinit(void) { 80102a24: 55 push %ebp 80102a25: 89 e5 mov %esp,%ebp 80102a27: 83 ec 18 sub $0x18,%esp int i, id, maxintr; if(!ismp) 80102a2a: a1 44 23 11 80 mov 0x80112344,%eax 80102a2f: 85 c0 test %eax,%eax 80102a31: 0f 84 a0 00 00 00 je 80102ad7 <ioapicinit+0xb3> return; ioapic = (volatile struct ioapic*)IOAPIC; 80102a37: c7 05 14 22 11 80 00 movl $0xfec00000,0x80112214 80102a3e: 00 c0 fe maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; 80102a41: 6a 01 push $0x1 80102a43: e8 aa ff ff ff call 801029f2 <ioapicread> 80102a48: 83 c4 04 add $0x4,%esp 80102a4b: c1 e8 10 shr $0x10,%eax 80102a4e: 25 ff 00 00 00 and $0xff,%eax 80102a53: 89 45 f0 mov %eax,-0x10(%ebp) id = ioapicread(REG_ID) >> 24; 80102a56: 6a 00 push $0x0 80102a58: e8 95 ff ff ff call 801029f2 <ioapicread> 80102a5d: 83 c4 04 add $0x4,%esp 80102a60: c1 e8 18 shr $0x18,%eax 80102a63: 89 45 ec mov %eax,-0x14(%ebp) if(id != ioapicid) 80102a66: 0f b6 05 40 23 11 80 movzbl 0x80112340,%eax 80102a6d: 0f b6 c0 movzbl %al,%eax 80102a70: 3b 45 ec cmp -0x14(%ebp),%eax 80102a73: 74 10 je 80102a85 <ioapicinit+0x61> cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); 80102a75: 83 ec 0c sub $0xc,%esp 80102a78: 68 60 87 10 80 push $0x80108760 80102a7d: e8 44 d9 ff ff call 801003c6 <cprintf> 80102a82: 83 c4 10 add $0x10,%esp // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ 80102a85: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80102a8c: eb 3f jmp 80102acd <ioapicinit+0xa9> ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); 80102a8e: 8b 45 f4 mov -0xc(%ebp),%eax 80102a91: 83 c0 20 add $0x20,%eax 80102a94: 0d 00 00 01 00 or $0x10000,%eax 80102a99: 89 c2 mov %eax,%edx 80102a9b: 8b 45 f4 mov -0xc(%ebp),%eax 80102a9e: 83 c0 08 add $0x8,%eax 80102aa1: 01 c0 add %eax,%eax 80102aa3: 83 ec 08 sub $0x8,%esp 80102aa6: 52 push %edx 80102aa7: 50 push %eax 80102aa8: e8 5c ff ff ff call 80102a09 <ioapicwrite> 80102aad: 83 c4 10 add $0x10,%esp ioapicwrite(REG_TABLE+2*i+1, 0); 80102ab0: 8b 45 f4 mov -0xc(%ebp),%eax 80102ab3: 83 c0 08 add $0x8,%eax 80102ab6: 01 c0 add %eax,%eax 80102ab8: 83 c0 01 add $0x1,%eax 80102abb: 83 ec 08 sub $0x8,%esp 80102abe: 6a 00 push $0x0 80102ac0: 50 push %eax 80102ac1: e8 43 ff ff ff call 80102a09 <ioapicwrite> 80102ac6: 83 c4 10 add $0x10,%esp if(id != ioapicid) cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ 80102ac9: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80102acd: 8b 45 f4 mov -0xc(%ebp),%eax 80102ad0: 3b 45 f0 cmp -0x10(%ebp),%eax 80102ad3: 7e b9 jle 80102a8e <ioapicinit+0x6a> 80102ad5: eb 01 jmp 80102ad8 <ioapicinit+0xb4> ioapicinit(void) { int i, id, maxintr; if(!ismp) return; 80102ad7: 90 nop // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); ioapicwrite(REG_TABLE+2*i+1, 0); } } 80102ad8: c9 leave 80102ad9: c3 ret 80102ada <ioapicenable>: void ioapicenable(int irq, int cpunum) { 80102ada: 55 push %ebp 80102adb: 89 e5 mov %esp,%ebp if(!ismp) 80102add: a1 44 23 11 80 mov 0x80112344,%eax 80102ae2: 85 c0 test %eax,%eax 80102ae4: 74 39 je 80102b1f <ioapicenable+0x45> return; // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); 80102ae6: 8b 45 08 mov 0x8(%ebp),%eax 80102ae9: 83 c0 20 add $0x20,%eax 80102aec: 89 c2 mov %eax,%edx 80102aee: 8b 45 08 mov 0x8(%ebp),%eax 80102af1: 83 c0 08 add $0x8,%eax 80102af4: 01 c0 add %eax,%eax 80102af6: 52 push %edx 80102af7: 50 push %eax 80102af8: e8 0c ff ff ff call 80102a09 <ioapicwrite> 80102afd: 83 c4 08 add $0x8,%esp ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 80102b00: 8b 45 0c mov 0xc(%ebp),%eax 80102b03: c1 e0 18 shl $0x18,%eax 80102b06: 89 c2 mov %eax,%edx 80102b08: 8b 45 08 mov 0x8(%ebp),%eax 80102b0b: 83 c0 08 add $0x8,%eax 80102b0e: 01 c0 add %eax,%eax 80102b10: 83 c0 01 add $0x1,%eax 80102b13: 52 push %edx 80102b14: 50 push %eax 80102b15: e8 ef fe ff ff call 80102a09 <ioapicwrite> 80102b1a: 83 c4 08 add $0x8,%esp 80102b1d: eb 01 jmp 80102b20 <ioapicenable+0x46> void ioapicenable(int irq, int cpunum) { if(!ismp) return; 80102b1f: 90 nop // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); } 80102b20: c9 leave 80102b21: c3 ret 80102b22 <v2p>: #define KERNBASE 0x80000000 // First kernel virtual address #define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked #ifndef __ASSEMBLER__ static inline uint v2p(void *a) { return ((uint) (a)) - KERNBASE; } 80102b22: 55 push %ebp 80102b23: 89 e5 mov %esp,%ebp 80102b25: 8b 45 08 mov 0x8(%ebp),%eax 80102b28: 05 00 00 00 80 add $0x80000000,%eax 80102b2d: 5d pop %ebp 80102b2e: c3 ret 80102b2f <kinit1>: // the pages mapped by entrypgdir on free list. // 2. main() calls kinit2() with the rest of the physical pages // after installing a full page table that maps them on all cores. void kinit1(void *vstart, void *vend) { 80102b2f: 55 push %ebp 80102b30: 89 e5 mov %esp,%ebp 80102b32: 83 ec 08 sub $0x8,%esp initlock(&kmem.lock, "kmem"); 80102b35: 83 ec 08 sub $0x8,%esp 80102b38: 68 92 87 10 80 push $0x80108792 80102b3d: 68 20 22 11 80 push $0x80112220 80102b42: e8 c1 24 00 00 call 80105008 <initlock> 80102b47: 83 c4 10 add $0x10,%esp kmem.use_lock = 0; 80102b4a: c7 05 54 22 11 80 00 movl $0x0,0x80112254 80102b51: 00 00 00 freerange(vstart, vend); 80102b54: 83 ec 08 sub $0x8,%esp 80102b57: ff 75 0c pushl 0xc(%ebp) 80102b5a: ff 75 08 pushl 0x8(%ebp) 80102b5d: e8 2a 00 00 00 call 80102b8c <freerange> 80102b62: 83 c4 10 add $0x10,%esp } 80102b65: 90 nop 80102b66: c9 leave 80102b67: c3 ret 80102b68 <kinit2>: void kinit2(void *vstart, void *vend) { 80102b68: 55 push %ebp 80102b69: 89 e5 mov %esp,%ebp 80102b6b: 83 ec 08 sub $0x8,%esp freerange(vstart, vend); 80102b6e: 83 ec 08 sub $0x8,%esp 80102b71: ff 75 0c pushl 0xc(%ebp) 80102b74: ff 75 08 pushl 0x8(%ebp) 80102b77: e8 10 00 00 00 call 80102b8c <freerange> 80102b7c: 83 c4 10 add $0x10,%esp kmem.use_lock = 1; 80102b7f: c7 05 54 22 11 80 01 movl $0x1,0x80112254 80102b86: 00 00 00 } 80102b89: 90 nop 80102b8a: c9 leave 80102b8b: c3 ret 80102b8c <freerange>: void freerange(void *vstart, void *vend) { 80102b8c: 55 push %ebp 80102b8d: 89 e5 mov %esp,%ebp 80102b8f: 83 ec 18 sub $0x18,%esp char *p; p = (char*)PGROUNDUP((uint)vstart); 80102b92: 8b 45 08 mov 0x8(%ebp),%eax 80102b95: 05 ff 0f 00 00 add $0xfff,%eax 80102b9a: 25 00 f0 ff ff and $0xfffff000,%eax 80102b9f: 89 45 f4 mov %eax,-0xc(%ebp) for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102ba2: eb 15 jmp 80102bb9 <freerange+0x2d> kfree(p); 80102ba4: 83 ec 0c sub $0xc,%esp 80102ba7: ff 75 f4 pushl -0xc(%ebp) 80102baa: e8 1a 00 00 00 call 80102bc9 <kfree> 80102baf: 83 c4 10 add $0x10,%esp void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102bb2: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80102bb9: 8b 45 f4 mov -0xc(%ebp),%eax 80102bbc: 05 00 10 00 00 add $0x1000,%eax 80102bc1: 3b 45 0c cmp 0xc(%ebp),%eax 80102bc4: 76 de jbe 80102ba4 <freerange+0x18> kfree(p); } 80102bc6: 90 nop 80102bc7: c9 leave 80102bc8: c3 ret 80102bc9 <kfree>: // which normally should have been returned by a // call to kalloc(). (The exception is when // initializing the allocator; see kinit above.) void kfree(char *v) { 80102bc9: 55 push %ebp 80102bca: 89 e5 mov %esp,%ebp 80102bcc: 83 ec 18 sub $0x18,%esp struct run *r; if((uint)v % PGSIZE || v < end || v2p(v) >= PHYSTOP) 80102bcf: 8b 45 08 mov 0x8(%ebp),%eax 80102bd2: 25 ff 0f 00 00 and $0xfff,%eax 80102bd7: 85 c0 test %eax,%eax 80102bd9: 75 1b jne 80102bf6 <kfree+0x2d> 80102bdb: 81 7d 08 3c 8f 11 80 cmpl $0x80118f3c,0x8(%ebp) 80102be2: 72 12 jb 80102bf6 <kfree+0x2d> 80102be4: ff 75 08 pushl 0x8(%ebp) 80102be7: e8 36 ff ff ff call 80102b22 <v2p> 80102bec: 83 c4 04 add $0x4,%esp 80102bef: 3d ff ff ff 0d cmp $0xdffffff,%eax 80102bf4: 76 0d jbe 80102c03 <kfree+0x3a> panic("kfree"); 80102bf6: 83 ec 0c sub $0xc,%esp 80102bf9: 68 97 87 10 80 push $0x80108797 80102bfe: e8 63 d9 ff ff call 80100566 <panic> // Fill with junk to catch dangling refs. memset(v, 1, PGSIZE); 80102c03: 83 ec 04 sub $0x4,%esp 80102c06: 68 00 10 00 00 push $0x1000 80102c0b: 6a 01 push $0x1 80102c0d: ff 75 08 pushl 0x8(%ebp) 80102c10: e8 78 26 00 00 call 8010528d <memset> 80102c15: 83 c4 10 add $0x10,%esp if(kmem.use_lock) 80102c18: a1 54 22 11 80 mov 0x80112254,%eax 80102c1d: 85 c0 test %eax,%eax 80102c1f: 74 10 je 80102c31 <kfree+0x68> acquire(&kmem.lock); 80102c21: 83 ec 0c sub $0xc,%esp 80102c24: 68 20 22 11 80 push $0x80112220 80102c29: e8 fc 23 00 00 call 8010502a <acquire> 80102c2e: 83 c4 10 add $0x10,%esp r = (struct run*)v; 80102c31: 8b 45 08 mov 0x8(%ebp),%eax 80102c34: 89 45 f4 mov %eax,-0xc(%ebp) r->next = kmem.freelist; 80102c37: 8b 15 58 22 11 80 mov 0x80112258,%edx 80102c3d: 8b 45 f4 mov -0xc(%ebp),%eax 80102c40: 89 10 mov %edx,(%eax) kmem.freelist = r; 80102c42: 8b 45 f4 mov -0xc(%ebp),%eax 80102c45: a3 58 22 11 80 mov %eax,0x80112258 if(kmem.use_lock) 80102c4a: a1 54 22 11 80 mov 0x80112254,%eax 80102c4f: 85 c0 test %eax,%eax 80102c51: 74 10 je 80102c63 <kfree+0x9a> release(&kmem.lock); 80102c53: 83 ec 0c sub $0xc,%esp 80102c56: 68 20 22 11 80 push $0x80112220 80102c5b: e8 31 24 00 00 call 80105091 <release> 80102c60: 83 c4 10 add $0x10,%esp } 80102c63: 90 nop 80102c64: c9 leave 80102c65: c3 ret 80102c66 <kalloc>: // Allocate one 4096-byte page of physical memory. // Returns a pointer that the kernel can use. // Returns 0 if the memory cannot be allocated. char* kalloc(void) { 80102c66: 55 push %ebp 80102c67: 89 e5 mov %esp,%ebp 80102c69: 83 ec 18 sub $0x18,%esp struct run *r; if(kmem.use_lock) 80102c6c: a1 54 22 11 80 mov 0x80112254,%eax 80102c71: 85 c0 test %eax,%eax 80102c73: 74 10 je 80102c85 <kalloc+0x1f> acquire(&kmem.lock); 80102c75: 83 ec 0c sub $0xc,%esp 80102c78: 68 20 22 11 80 push $0x80112220 80102c7d: e8 a8 23 00 00 call 8010502a <acquire> 80102c82: 83 c4 10 add $0x10,%esp r = kmem.freelist; 80102c85: a1 58 22 11 80 mov 0x80112258,%eax 80102c8a: 89 45 f4 mov %eax,-0xc(%ebp) if(r) 80102c8d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80102c91: 74 0a je 80102c9d <kalloc+0x37> kmem.freelist = r->next; 80102c93: 8b 45 f4 mov -0xc(%ebp),%eax 80102c96: 8b 00 mov (%eax),%eax 80102c98: a3 58 22 11 80 mov %eax,0x80112258 if(kmem.use_lock) 80102c9d: a1 54 22 11 80 mov 0x80112254,%eax 80102ca2: 85 c0 test %eax,%eax 80102ca4: 74 10 je 80102cb6 <kalloc+0x50> release(&kmem.lock); 80102ca6: 83 ec 0c sub $0xc,%esp 80102ca9: 68 20 22 11 80 push $0x80112220 80102cae: e8 de 23 00 00 call 80105091 <release> 80102cb3: 83 c4 10 add $0x10,%esp return (char*)r; 80102cb6: 8b 45 f4 mov -0xc(%ebp),%eax } 80102cb9: c9 leave 80102cba: c3 ret 80102cbb <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80102cbb: 55 push %ebp 80102cbc: 89 e5 mov %esp,%ebp 80102cbe: 83 ec 14 sub $0x14,%esp 80102cc1: 8b 45 08 mov 0x8(%ebp),%eax 80102cc4: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102cc8: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102ccc: 89 c2 mov %eax,%edx 80102cce: ec in (%dx),%al 80102ccf: 88 45 ff mov %al,-0x1(%ebp) return data; 80102cd2: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80102cd6: c9 leave 80102cd7: c3 ret 80102cd8 <kbdgetc>: #include "defs.h" #include "kbd.h" int kbdgetc(void) { 80102cd8: 55 push %ebp 80102cd9: 89 e5 mov %esp,%ebp 80102cdb: 83 ec 10 sub $0x10,%esp static uchar *charcode[4] = { normalmap, shiftmap, ctlmap, ctlmap }; uint st, data, c; st = inb(KBSTATP); 80102cde: 6a 64 push $0x64 80102ce0: e8 d6 ff ff ff call 80102cbb <inb> 80102ce5: 83 c4 04 add $0x4,%esp 80102ce8: 0f b6 c0 movzbl %al,%eax 80102ceb: 89 45 f4 mov %eax,-0xc(%ebp) if((st & KBS_DIB) == 0) 80102cee: 8b 45 f4 mov -0xc(%ebp),%eax 80102cf1: 83 e0 01 and $0x1,%eax 80102cf4: 85 c0 test %eax,%eax 80102cf6: 75 0a jne 80102d02 <kbdgetc+0x2a> return -1; 80102cf8: b8 ff ff ff ff mov $0xffffffff,%eax 80102cfd: e9 23 01 00 00 jmp 80102e25 <kbdgetc+0x14d> data = inb(KBDATAP); 80102d02: 6a 60 push $0x60 80102d04: e8 b2 ff ff ff call 80102cbb <inb> 80102d09: 83 c4 04 add $0x4,%esp 80102d0c: 0f b6 c0 movzbl %al,%eax 80102d0f: 89 45 fc mov %eax,-0x4(%ebp) if(data == 0xE0){ 80102d12: 81 7d fc e0 00 00 00 cmpl $0xe0,-0x4(%ebp) 80102d19: 75 17 jne 80102d32 <kbdgetc+0x5a> shift |= E0ESC; 80102d1b: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d20: 83 c8 40 or $0x40,%eax 80102d23: a3 3c b6 10 80 mov %eax,0x8010b63c return 0; 80102d28: b8 00 00 00 00 mov $0x0,%eax 80102d2d: e9 f3 00 00 00 jmp 80102e25 <kbdgetc+0x14d> } else if(data & 0x80){ 80102d32: 8b 45 fc mov -0x4(%ebp),%eax 80102d35: 25 80 00 00 00 and $0x80,%eax 80102d3a: 85 c0 test %eax,%eax 80102d3c: 74 45 je 80102d83 <kbdgetc+0xab> // Key released data = (shift & E0ESC ? data : data & 0x7F); 80102d3e: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d43: 83 e0 40 and $0x40,%eax 80102d46: 85 c0 test %eax,%eax 80102d48: 75 08 jne 80102d52 <kbdgetc+0x7a> 80102d4a: 8b 45 fc mov -0x4(%ebp),%eax 80102d4d: 83 e0 7f and $0x7f,%eax 80102d50: eb 03 jmp 80102d55 <kbdgetc+0x7d> 80102d52: 8b 45 fc mov -0x4(%ebp),%eax 80102d55: 89 45 fc mov %eax,-0x4(%ebp) shift &= ~(shiftcode[data] | E0ESC); 80102d58: 8b 45 fc mov -0x4(%ebp),%eax 80102d5b: 05 20 90 10 80 add $0x80109020,%eax 80102d60: 0f b6 00 movzbl (%eax),%eax 80102d63: 83 c8 40 or $0x40,%eax 80102d66: 0f b6 c0 movzbl %al,%eax 80102d69: f7 d0 not %eax 80102d6b: 89 c2 mov %eax,%edx 80102d6d: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d72: 21 d0 and %edx,%eax 80102d74: a3 3c b6 10 80 mov %eax,0x8010b63c return 0; 80102d79: b8 00 00 00 00 mov $0x0,%eax 80102d7e: e9 a2 00 00 00 jmp 80102e25 <kbdgetc+0x14d> } else if(shift & E0ESC){ 80102d83: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d88: 83 e0 40 and $0x40,%eax 80102d8b: 85 c0 test %eax,%eax 80102d8d: 74 14 je 80102da3 <kbdgetc+0xcb> // Last character was an E0 escape; or with 0x80 data |= 0x80; 80102d8f: 81 4d fc 80 00 00 00 orl $0x80,-0x4(%ebp) shift &= ~E0ESC; 80102d96: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102d9b: 83 e0 bf and $0xffffffbf,%eax 80102d9e: a3 3c b6 10 80 mov %eax,0x8010b63c } shift |= shiftcode[data]; 80102da3: 8b 45 fc mov -0x4(%ebp),%eax 80102da6: 05 20 90 10 80 add $0x80109020,%eax 80102dab: 0f b6 00 movzbl (%eax),%eax 80102dae: 0f b6 d0 movzbl %al,%edx 80102db1: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102db6: 09 d0 or %edx,%eax 80102db8: a3 3c b6 10 80 mov %eax,0x8010b63c shift ^= togglecode[data]; 80102dbd: 8b 45 fc mov -0x4(%ebp),%eax 80102dc0: 05 20 91 10 80 add $0x80109120,%eax 80102dc5: 0f b6 00 movzbl (%eax),%eax 80102dc8: 0f b6 d0 movzbl %al,%edx 80102dcb: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102dd0: 31 d0 xor %edx,%eax 80102dd2: a3 3c b6 10 80 mov %eax,0x8010b63c c = charcode[shift & (CTL | SHIFT)][data]; 80102dd7: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102ddc: 83 e0 03 and $0x3,%eax 80102ddf: 8b 14 85 20 95 10 80 mov -0x7fef6ae0(,%eax,4),%edx 80102de6: 8b 45 fc mov -0x4(%ebp),%eax 80102de9: 01 d0 add %edx,%eax 80102deb: 0f b6 00 movzbl (%eax),%eax 80102dee: 0f b6 c0 movzbl %al,%eax 80102df1: 89 45 f8 mov %eax,-0x8(%ebp) if(shift & CAPSLOCK){ 80102df4: a1 3c b6 10 80 mov 0x8010b63c,%eax 80102df9: 83 e0 08 and $0x8,%eax 80102dfc: 85 c0 test %eax,%eax 80102dfe: 74 22 je 80102e22 <kbdgetc+0x14a> if('a' <= c && c <= 'z') 80102e00: 83 7d f8 60 cmpl $0x60,-0x8(%ebp) 80102e04: 76 0c jbe 80102e12 <kbdgetc+0x13a> 80102e06: 83 7d f8 7a cmpl $0x7a,-0x8(%ebp) 80102e0a: 77 06 ja 80102e12 <kbdgetc+0x13a> c += 'A' - 'a'; 80102e0c: 83 6d f8 20 subl $0x20,-0x8(%ebp) 80102e10: eb 10 jmp 80102e22 <kbdgetc+0x14a> else if('A' <= c && c <= 'Z') 80102e12: 83 7d f8 40 cmpl $0x40,-0x8(%ebp) 80102e16: 76 0a jbe 80102e22 <kbdgetc+0x14a> 80102e18: 83 7d f8 5a cmpl $0x5a,-0x8(%ebp) 80102e1c: 77 04 ja 80102e22 <kbdgetc+0x14a> c += 'a' - 'A'; 80102e1e: 83 45 f8 20 addl $0x20,-0x8(%ebp) } return c; 80102e22: 8b 45 f8 mov -0x8(%ebp),%eax } 80102e25: c9 leave 80102e26: c3 ret 80102e27 <kbdintr>: void kbdintr(void) { 80102e27: 55 push %ebp 80102e28: 89 e5 mov %esp,%ebp 80102e2a: 83 ec 08 sub $0x8,%esp consoleintr(kbdgetc); 80102e2d: 83 ec 0c sub $0xc,%esp 80102e30: 68 d8 2c 10 80 push $0x80102cd8 80102e35: e8 bf d9 ff ff call 801007f9 <consoleintr> 80102e3a: 83 c4 10 add $0x10,%esp } 80102e3d: 90 nop 80102e3e: c9 leave 80102e3f: c3 ret 80102e40 <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80102e40: 55 push %ebp 80102e41: 89 e5 mov %esp,%ebp 80102e43: 83 ec 14 sub $0x14,%esp 80102e46: 8b 45 08 mov 0x8(%ebp),%eax 80102e49: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102e4d: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102e51: 89 c2 mov %eax,%edx 80102e53: ec in (%dx),%al 80102e54: 88 45 ff mov %al,-0x1(%ebp) return data; 80102e57: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80102e5b: c9 leave 80102e5c: c3 ret 80102e5d <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80102e5d: 55 push %ebp 80102e5e: 89 e5 mov %esp,%ebp 80102e60: 83 ec 08 sub $0x8,%esp 80102e63: 8b 55 08 mov 0x8(%ebp),%edx 80102e66: 8b 45 0c mov 0xc(%ebp),%eax 80102e69: 66 89 55 fc mov %dx,-0x4(%ebp) 80102e6d: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102e70: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80102e74: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80102e78: ee out %al,(%dx) } 80102e79: 90 nop 80102e7a: c9 leave 80102e7b: c3 ret 80102e7c <readeflags>: asm volatile("ltr %0" : : "r" (sel)); } static inline uint readeflags(void) { 80102e7c: 55 push %ebp 80102e7d: 89 e5 mov %esp,%ebp 80102e7f: 83 ec 10 sub $0x10,%esp uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80102e82: 9c pushf 80102e83: 58 pop %eax 80102e84: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80102e87: 8b 45 fc mov -0x4(%ebp),%eax } 80102e8a: c9 leave 80102e8b: c3 ret 80102e8c <lapicw>: volatile uint *lapic; // Initialized in mp.c static void lapicw(int index, int value) { 80102e8c: 55 push %ebp 80102e8d: 89 e5 mov %esp,%ebp lapic[index] = value; 80102e8f: a1 5c 22 11 80 mov 0x8011225c,%eax 80102e94: 8b 55 08 mov 0x8(%ebp),%edx 80102e97: c1 e2 02 shl $0x2,%edx 80102e9a: 01 c2 add %eax,%edx 80102e9c: 8b 45 0c mov 0xc(%ebp),%eax 80102e9f: 89 02 mov %eax,(%edx) lapic[ID]; // wait for write to finish, by reading 80102ea1: a1 5c 22 11 80 mov 0x8011225c,%eax 80102ea6: 83 c0 20 add $0x20,%eax 80102ea9: 8b 00 mov (%eax),%eax } 80102eab: 90 nop 80102eac: 5d pop %ebp 80102ead: c3 ret 80102eae <lapicinit>: //PAGEBREAK! void lapicinit(void) { 80102eae: 55 push %ebp 80102eaf: 89 e5 mov %esp,%ebp if(!lapic) 80102eb1: a1 5c 22 11 80 mov 0x8011225c,%eax 80102eb6: 85 c0 test %eax,%eax 80102eb8: 0f 84 0b 01 00 00 je 80102fc9 <lapicinit+0x11b> return; // Enable local APIC; set spurious interrupt vector. lapicw(SVR, ENABLE | (T_IRQ0 + IRQ_SPURIOUS)); 80102ebe: 68 3f 01 00 00 push $0x13f 80102ec3: 6a 3c push $0x3c 80102ec5: e8 c2 ff ff ff call 80102e8c <lapicw> 80102eca: 83 c4 08 add $0x8,%esp // The timer repeatedly counts down at bus frequency // from lapic[TICR] and then issues an interrupt. // If xv6 cared more about precise timekeeping, // TICR would be calibrated using an external time source. lapicw(TDCR, X1); 80102ecd: 6a 0b push $0xb 80102ecf: 68 f8 00 00 00 push $0xf8 80102ed4: e8 b3 ff ff ff call 80102e8c <lapicw> 80102ed9: 83 c4 08 add $0x8,%esp lapicw(TIMER, PERIODIC | (T_IRQ0 + IRQ_TIMER)); 80102edc: 68 20 00 02 00 push $0x20020 80102ee1: 68 c8 00 00 00 push $0xc8 80102ee6: e8 a1 ff ff ff call 80102e8c <lapicw> 80102eeb: 83 c4 08 add $0x8,%esp lapicw(TICR, 10000000); 80102eee: 68 80 96 98 00 push $0x989680 80102ef3: 68 e0 00 00 00 push $0xe0 80102ef8: e8 8f ff ff ff call 80102e8c <lapicw> 80102efd: 83 c4 08 add $0x8,%esp // Disable logical interrupt lines. lapicw(LINT0, MASKED); 80102f00: 68 00 00 01 00 push $0x10000 80102f05: 68 d4 00 00 00 push $0xd4 80102f0a: e8 7d ff ff ff call 80102e8c <lapicw> 80102f0f: 83 c4 08 add $0x8,%esp lapicw(LINT1, MASKED); 80102f12: 68 00 00 01 00 push $0x10000 80102f17: 68 d8 00 00 00 push $0xd8 80102f1c: e8 6b ff ff ff call 80102e8c <lapicw> 80102f21: 83 c4 08 add $0x8,%esp // Disable performance counter overflow interrupts // on machines that provide that interrupt entry. if(((lapic[VER]>>16) & 0xFF) >= 4) 80102f24: a1 5c 22 11 80 mov 0x8011225c,%eax 80102f29: 83 c0 30 add $0x30,%eax 80102f2c: 8b 00 mov (%eax),%eax 80102f2e: c1 e8 10 shr $0x10,%eax 80102f31: 0f b6 c0 movzbl %al,%eax 80102f34: 83 f8 03 cmp $0x3,%eax 80102f37: 76 12 jbe 80102f4b <lapicinit+0x9d> lapicw(PCINT, MASKED); 80102f39: 68 00 00 01 00 push $0x10000 80102f3e: 68 d0 00 00 00 push $0xd0 80102f43: e8 44 ff ff ff call 80102e8c <lapicw> 80102f48: 83 c4 08 add $0x8,%esp // Map error interrupt to IRQ_ERROR. lapicw(ERROR, T_IRQ0 + IRQ_ERROR); 80102f4b: 6a 33 push $0x33 80102f4d: 68 dc 00 00 00 push $0xdc 80102f52: e8 35 ff ff ff call 80102e8c <lapicw> 80102f57: 83 c4 08 add $0x8,%esp // Clear error status register (requires back-to-back writes). lapicw(ESR, 0); 80102f5a: 6a 00 push $0x0 80102f5c: 68 a0 00 00 00 push $0xa0 80102f61: e8 26 ff ff ff call 80102e8c <lapicw> 80102f66: 83 c4 08 add $0x8,%esp lapicw(ESR, 0); 80102f69: 6a 00 push $0x0 80102f6b: 68 a0 00 00 00 push $0xa0 80102f70: e8 17 ff ff ff call 80102e8c <lapicw> 80102f75: 83 c4 08 add $0x8,%esp // Ack any outstanding interrupts. lapicw(EOI, 0); 80102f78: 6a 00 push $0x0 80102f7a: 6a 2c push $0x2c 80102f7c: e8 0b ff ff ff call 80102e8c <lapicw> 80102f81: 83 c4 08 add $0x8,%esp // Send an Init Level De-Assert to synchronise arbitration ID's. lapicw(ICRHI, 0); 80102f84: 6a 00 push $0x0 80102f86: 68 c4 00 00 00 push $0xc4 80102f8b: e8 fc fe ff ff call 80102e8c <lapicw> 80102f90: 83 c4 08 add $0x8,%esp lapicw(ICRLO, BCAST | INIT | LEVEL); 80102f93: 68 00 85 08 00 push $0x88500 80102f98: 68 c0 00 00 00 push $0xc0 80102f9d: e8 ea fe ff ff call 80102e8c <lapicw> 80102fa2: 83 c4 08 add $0x8,%esp while(lapic[ICRLO] & DELIVS) 80102fa5: 90 nop 80102fa6: a1 5c 22 11 80 mov 0x8011225c,%eax 80102fab: 05 00 03 00 00 add $0x300,%eax 80102fb0: 8b 00 mov (%eax),%eax 80102fb2: 25 00 10 00 00 and $0x1000,%eax 80102fb7: 85 c0 test %eax,%eax 80102fb9: 75 eb jne 80102fa6 <lapicinit+0xf8> ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); 80102fbb: 6a 00 push $0x0 80102fbd: 6a 20 push $0x20 80102fbf: e8 c8 fe ff ff call 80102e8c <lapicw> 80102fc4: 83 c4 08 add $0x8,%esp 80102fc7: eb 01 jmp 80102fca <lapicinit+0x11c> void lapicinit(void) { if(!lapic) return; 80102fc9: 90 nop while(lapic[ICRLO] & DELIVS) ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); } 80102fca: c9 leave 80102fcb: c3 ret 80102fcc <cpunum>: int cpunum(void) { 80102fcc: 55 push %ebp 80102fcd: 89 e5 mov %esp,%ebp 80102fcf: 83 ec 08 sub $0x8,%esp // Cannot call cpu when interrupts are enabled: // result not guaranteed to last long enough to be used! // Would prefer to panic but even printing is chancy here: // almost everything, including cprintf and panic, calls cpu, // often indirectly through acquire and release. if(readeflags()&FL_IF){ 80102fd2: e8 a5 fe ff ff call 80102e7c <readeflags> 80102fd7: 25 00 02 00 00 and $0x200,%eax 80102fdc: 85 c0 test %eax,%eax 80102fde: 74 26 je 80103006 <cpunum+0x3a> static int n; if(n++ == 0) 80102fe0: a1 40 b6 10 80 mov 0x8010b640,%eax 80102fe5: 8d 50 01 lea 0x1(%eax),%edx 80102fe8: 89 15 40 b6 10 80 mov %edx,0x8010b640 80102fee: 85 c0 test %eax,%eax 80102ff0: 75 14 jne 80103006 <cpunum+0x3a> cprintf("cpu called from %x with interrupts enabled\n", 80102ff2: 8b 45 04 mov 0x4(%ebp),%eax 80102ff5: 83 ec 08 sub $0x8,%esp 80102ff8: 50 push %eax 80102ff9: 68 a0 87 10 80 push $0x801087a0 80102ffe: e8 c3 d3 ff ff call 801003c6 <cprintf> 80103003: 83 c4 10 add $0x10,%esp __builtin_return_address(0)); } if(lapic) 80103006: a1 5c 22 11 80 mov 0x8011225c,%eax 8010300b: 85 c0 test %eax,%eax 8010300d: 74 0f je 8010301e <cpunum+0x52> return lapic[ID]>>24; 8010300f: a1 5c 22 11 80 mov 0x8011225c,%eax 80103014: 83 c0 20 add $0x20,%eax 80103017: 8b 00 mov (%eax),%eax 80103019: c1 e8 18 shr $0x18,%eax 8010301c: eb 05 jmp 80103023 <cpunum+0x57> return 0; 8010301e: b8 00 00 00 00 mov $0x0,%eax } 80103023: c9 leave 80103024: c3 ret 80103025 <lapiceoi>: // Acknowledge interrupt. void lapiceoi(void) { 80103025: 55 push %ebp 80103026: 89 e5 mov %esp,%ebp if(lapic) 80103028: a1 5c 22 11 80 mov 0x8011225c,%eax 8010302d: 85 c0 test %eax,%eax 8010302f: 74 0c je 8010303d <lapiceoi+0x18> lapicw(EOI, 0); 80103031: 6a 00 push $0x0 80103033: 6a 2c push $0x2c 80103035: e8 52 fe ff ff call 80102e8c <lapicw> 8010303a: 83 c4 08 add $0x8,%esp } 8010303d: 90 nop 8010303e: c9 leave 8010303f: c3 ret 80103040 <microdelay>: // Spin for a given number of microseconds. // On real hardware would want to tune this dynamically. void microdelay(int us) { 80103040: 55 push %ebp 80103041: 89 e5 mov %esp,%ebp } 80103043: 90 nop 80103044: 5d pop %ebp 80103045: c3 ret 80103046 <lapicstartap>: // Start additional processor running entry code at addr. // See Appendix B of MultiProcessor Specification. void lapicstartap(uchar apicid, uint addr) { 80103046: 55 push %ebp 80103047: 89 e5 mov %esp,%ebp 80103049: 83 ec 14 sub $0x14,%esp 8010304c: 8b 45 08 mov 0x8(%ebp),%eax 8010304f: 88 45 ec mov %al,-0x14(%ebp) ushort *wrv; // "The BSP must initialize CMOS shutdown code to 0AH // and the warm reset vector (DWORD based at 40:67) to point at // the AP startup code prior to the [universal startup algorithm]." outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code 80103052: 6a 0f push $0xf 80103054: 6a 70 push $0x70 80103056: e8 02 fe ff ff call 80102e5d <outb> 8010305b: 83 c4 08 add $0x8,%esp outb(CMOS_PORT+1, 0x0A); 8010305e: 6a 0a push $0xa 80103060: 6a 71 push $0x71 80103062: e8 f6 fd ff ff call 80102e5d <outb> 80103067: 83 c4 08 add $0x8,%esp wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector 8010306a: c7 45 f8 67 04 00 80 movl $0x80000467,-0x8(%ebp) wrv[0] = 0; 80103071: 8b 45 f8 mov -0x8(%ebp),%eax 80103074: 66 c7 00 00 00 movw $0x0,(%eax) wrv[1] = addr >> 4; 80103079: 8b 45 f8 mov -0x8(%ebp),%eax 8010307c: 83 c0 02 add $0x2,%eax 8010307f: 8b 55 0c mov 0xc(%ebp),%edx 80103082: c1 ea 04 shr $0x4,%edx 80103085: 66 89 10 mov %dx,(%eax) // "Universal startup algorithm." // Send INIT (level-triggered) interrupt to reset other CPU. lapicw(ICRHI, apicid<<24); 80103088: 0f b6 45 ec movzbl -0x14(%ebp),%eax 8010308c: c1 e0 18 shl $0x18,%eax 8010308f: 50 push %eax 80103090: 68 c4 00 00 00 push $0xc4 80103095: e8 f2 fd ff ff call 80102e8c <lapicw> 8010309a: 83 c4 08 add $0x8,%esp lapicw(ICRLO, INIT | LEVEL | ASSERT); 8010309d: 68 00 c5 00 00 push $0xc500 801030a2: 68 c0 00 00 00 push $0xc0 801030a7: e8 e0 fd ff ff call 80102e8c <lapicw> 801030ac: 83 c4 08 add $0x8,%esp microdelay(200); 801030af: 68 c8 00 00 00 push $0xc8 801030b4: e8 87 ff ff ff call 80103040 <microdelay> 801030b9: 83 c4 04 add $0x4,%esp lapicw(ICRLO, INIT | LEVEL); 801030bc: 68 00 85 00 00 push $0x8500 801030c1: 68 c0 00 00 00 push $0xc0 801030c6: e8 c1 fd ff ff call 80102e8c <lapicw> 801030cb: 83 c4 08 add $0x8,%esp microdelay(100); // should be 10ms, but too slow in Bochs! 801030ce: 6a 64 push $0x64 801030d0: e8 6b ff ff ff call 80103040 <microdelay> 801030d5: 83 c4 04 add $0x4,%esp // Send startup IPI (twice!) to enter code. // Regular hardware is supposed to only accept a STARTUP // when it is in the halted state due to an INIT. So the second // should be ignored, but it is part of the official Intel algorithm. // Bochs complains about the second one. Too bad for Bochs. for(i = 0; i < 2; i++){ 801030d8: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 801030df: eb 3d jmp 8010311e <lapicstartap+0xd8> lapicw(ICRHI, apicid<<24); 801030e1: 0f b6 45 ec movzbl -0x14(%ebp),%eax 801030e5: c1 e0 18 shl $0x18,%eax 801030e8: 50 push %eax 801030e9: 68 c4 00 00 00 push $0xc4 801030ee: e8 99 fd ff ff call 80102e8c <lapicw> 801030f3: 83 c4 08 add $0x8,%esp lapicw(ICRLO, STARTUP | (addr>>12)); 801030f6: 8b 45 0c mov 0xc(%ebp),%eax 801030f9: c1 e8 0c shr $0xc,%eax 801030fc: 80 cc 06 or $0x6,%ah 801030ff: 50 push %eax 80103100: 68 c0 00 00 00 push $0xc0 80103105: e8 82 fd ff ff call 80102e8c <lapicw> 8010310a: 83 c4 08 add $0x8,%esp microdelay(200); 8010310d: 68 c8 00 00 00 push $0xc8 80103112: e8 29 ff ff ff call 80103040 <microdelay> 80103117: 83 c4 04 add $0x4,%esp // Send startup IPI (twice!) to enter code. // Regular hardware is supposed to only accept a STARTUP // when it is in the halted state due to an INIT. So the second // should be ignored, but it is part of the official Intel algorithm. // Bochs complains about the second one. Too bad for Bochs. for(i = 0; i < 2; i++){ 8010311a: 83 45 fc 01 addl $0x1,-0x4(%ebp) 8010311e: 83 7d fc 01 cmpl $0x1,-0x4(%ebp) 80103122: 7e bd jle 801030e1 <lapicstartap+0x9b> lapicw(ICRHI, apicid<<24); lapicw(ICRLO, STARTUP | (addr>>12)); microdelay(200); } } 80103124: 90 nop 80103125: c9 leave 80103126: c3 ret 80103127 <cmos_read>: #define DAY 0x07 #define MONTH 0x08 #define YEAR 0x09 static uint cmos_read(uint reg) { 80103127: 55 push %ebp 80103128: 89 e5 mov %esp,%ebp outb(CMOS_PORT, reg); 8010312a: 8b 45 08 mov 0x8(%ebp),%eax 8010312d: 0f b6 c0 movzbl %al,%eax 80103130: 50 push %eax 80103131: 6a 70 push $0x70 80103133: e8 25 fd ff ff call 80102e5d <outb> 80103138: 83 c4 08 add $0x8,%esp microdelay(200); 8010313b: 68 c8 00 00 00 push $0xc8 80103140: e8 fb fe ff ff call 80103040 <microdelay> 80103145: 83 c4 04 add $0x4,%esp return inb(CMOS_RETURN); 80103148: 6a 71 push $0x71 8010314a: e8 f1 fc ff ff call 80102e40 <inb> 8010314f: 83 c4 04 add $0x4,%esp 80103152: 0f b6 c0 movzbl %al,%eax } 80103155: c9 leave 80103156: c3 ret 80103157 <fill_rtcdate>: static void fill_rtcdate(struct rtcdate *r) { 80103157: 55 push %ebp 80103158: 89 e5 mov %esp,%ebp r->second = cmos_read(SECS); 8010315a: 6a 00 push $0x0 8010315c: e8 c6 ff ff ff call 80103127 <cmos_read> 80103161: 83 c4 04 add $0x4,%esp 80103164: 89 c2 mov %eax,%edx 80103166: 8b 45 08 mov 0x8(%ebp),%eax 80103169: 89 10 mov %edx,(%eax) r->minute = cmos_read(MINS); 8010316b: 6a 02 push $0x2 8010316d: e8 b5 ff ff ff call 80103127 <cmos_read> 80103172: 83 c4 04 add $0x4,%esp 80103175: 89 c2 mov %eax,%edx 80103177: 8b 45 08 mov 0x8(%ebp),%eax 8010317a: 89 50 04 mov %edx,0x4(%eax) r->hour = cmos_read(HOURS); 8010317d: 6a 04 push $0x4 8010317f: e8 a3 ff ff ff call 80103127 <cmos_read> 80103184: 83 c4 04 add $0x4,%esp 80103187: 89 c2 mov %eax,%edx 80103189: 8b 45 08 mov 0x8(%ebp),%eax 8010318c: 89 50 08 mov %edx,0x8(%eax) r->day = cmos_read(DAY); 8010318f: 6a 07 push $0x7 80103191: e8 91 ff ff ff call 80103127 <cmos_read> 80103196: 83 c4 04 add $0x4,%esp 80103199: 89 c2 mov %eax,%edx 8010319b: 8b 45 08 mov 0x8(%ebp),%eax 8010319e: 89 50 0c mov %edx,0xc(%eax) r->month = cmos_read(MONTH); 801031a1: 6a 08 push $0x8 801031a3: e8 7f ff ff ff call 80103127 <cmos_read> 801031a8: 83 c4 04 add $0x4,%esp 801031ab: 89 c2 mov %eax,%edx 801031ad: 8b 45 08 mov 0x8(%ebp),%eax 801031b0: 89 50 10 mov %edx,0x10(%eax) r->year = cmos_read(YEAR); 801031b3: 6a 09 push $0x9 801031b5: e8 6d ff ff ff call 80103127 <cmos_read> 801031ba: 83 c4 04 add $0x4,%esp 801031bd: 89 c2 mov %eax,%edx 801031bf: 8b 45 08 mov 0x8(%ebp),%eax 801031c2: 89 50 14 mov %edx,0x14(%eax) } 801031c5: 90 nop 801031c6: c9 leave 801031c7: c3 ret 801031c8 <cmostime>: // qemu seems to use 24-hour GWT and the values are BCD encoded void cmostime(struct rtcdate *r) { 801031c8: 55 push %ebp 801031c9: 89 e5 mov %esp,%ebp 801031cb: 83 ec 48 sub $0x48,%esp struct rtcdate t1, t2; int sb, bcd; sb = cmos_read(CMOS_STATB); 801031ce: 6a 0b push $0xb 801031d0: e8 52 ff ff ff call 80103127 <cmos_read> 801031d5: 83 c4 04 add $0x4,%esp 801031d8: 89 45 f4 mov %eax,-0xc(%ebp) bcd = (sb & (1 << 2)) == 0; 801031db: 8b 45 f4 mov -0xc(%ebp),%eax 801031de: 83 e0 04 and $0x4,%eax 801031e1: 85 c0 test %eax,%eax 801031e3: 0f 94 c0 sete %al 801031e6: 0f b6 c0 movzbl %al,%eax 801031e9: 89 45 f0 mov %eax,-0x10(%ebp) // make sure CMOS doesn't modify time while we read it for (;;) { fill_rtcdate(&t1); 801031ec: 8d 45 d8 lea -0x28(%ebp),%eax 801031ef: 50 push %eax 801031f0: e8 62 ff ff ff call 80103157 <fill_rtcdate> 801031f5: 83 c4 04 add $0x4,%esp if (cmos_read(CMOS_STATA) & CMOS_UIP) 801031f8: 6a 0a push $0xa 801031fa: e8 28 ff ff ff call 80103127 <cmos_read> 801031ff: 83 c4 04 add $0x4,%esp 80103202: 25 80 00 00 00 and $0x80,%eax 80103207: 85 c0 test %eax,%eax 80103209: 75 27 jne 80103232 <cmostime+0x6a> continue; fill_rtcdate(&t2); 8010320b: 8d 45 c0 lea -0x40(%ebp),%eax 8010320e: 50 push %eax 8010320f: e8 43 ff ff ff call 80103157 <fill_rtcdate> 80103214: 83 c4 04 add $0x4,%esp if (memcmp(&t1, &t2, sizeof(t1)) == 0) 80103217: 83 ec 04 sub $0x4,%esp 8010321a: 6a 18 push $0x18 8010321c: 8d 45 c0 lea -0x40(%ebp),%eax 8010321f: 50 push %eax 80103220: 8d 45 d8 lea -0x28(%ebp),%eax 80103223: 50 push %eax 80103224: e8 cb 20 00 00 call 801052f4 <memcmp> 80103229: 83 c4 10 add $0x10,%esp 8010322c: 85 c0 test %eax,%eax 8010322e: 74 05 je 80103235 <cmostime+0x6d> 80103230: eb ba jmp 801031ec <cmostime+0x24> // make sure CMOS doesn't modify time while we read it for (;;) { fill_rtcdate(&t1); if (cmos_read(CMOS_STATA) & CMOS_UIP) continue; 80103232: 90 nop fill_rtcdate(&t2); if (memcmp(&t1, &t2, sizeof(t1)) == 0) break; } 80103233: eb b7 jmp 801031ec <cmostime+0x24> fill_rtcdate(&t1); if (cmos_read(CMOS_STATA) & CMOS_UIP) continue; fill_rtcdate(&t2); if (memcmp(&t1, &t2, sizeof(t1)) == 0) break; 80103235: 90 nop } // convert if (bcd) { 80103236: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010323a: 0f 84 b4 00 00 00 je 801032f4 <cmostime+0x12c> #define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) CONV(second); 80103240: 8b 45 d8 mov -0x28(%ebp),%eax 80103243: c1 e8 04 shr $0x4,%eax 80103246: 89 c2 mov %eax,%edx 80103248: 89 d0 mov %edx,%eax 8010324a: c1 e0 02 shl $0x2,%eax 8010324d: 01 d0 add %edx,%eax 8010324f: 01 c0 add %eax,%eax 80103251: 89 c2 mov %eax,%edx 80103253: 8b 45 d8 mov -0x28(%ebp),%eax 80103256: 83 e0 0f and $0xf,%eax 80103259: 01 d0 add %edx,%eax 8010325b: 89 45 d8 mov %eax,-0x28(%ebp) CONV(minute); 8010325e: 8b 45 dc mov -0x24(%ebp),%eax 80103261: c1 e8 04 shr $0x4,%eax 80103264: 89 c2 mov %eax,%edx 80103266: 89 d0 mov %edx,%eax 80103268: c1 e0 02 shl $0x2,%eax 8010326b: 01 d0 add %edx,%eax 8010326d: 01 c0 add %eax,%eax 8010326f: 89 c2 mov %eax,%edx 80103271: 8b 45 dc mov -0x24(%ebp),%eax 80103274: 83 e0 0f and $0xf,%eax 80103277: 01 d0 add %edx,%eax 80103279: 89 45 dc mov %eax,-0x24(%ebp) CONV(hour ); 8010327c: 8b 45 e0 mov -0x20(%ebp),%eax 8010327f: c1 e8 04 shr $0x4,%eax 80103282: 89 c2 mov %eax,%edx 80103284: 89 d0 mov %edx,%eax 80103286: c1 e0 02 shl $0x2,%eax 80103289: 01 d0 add %edx,%eax 8010328b: 01 c0 add %eax,%eax 8010328d: 89 c2 mov %eax,%edx 8010328f: 8b 45 e0 mov -0x20(%ebp),%eax 80103292: 83 e0 0f and $0xf,%eax 80103295: 01 d0 add %edx,%eax 80103297: 89 45 e0 mov %eax,-0x20(%ebp) CONV(day ); 8010329a: 8b 45 e4 mov -0x1c(%ebp),%eax 8010329d: c1 e8 04 shr $0x4,%eax 801032a0: 89 c2 mov %eax,%edx 801032a2: 89 d0 mov %edx,%eax 801032a4: c1 e0 02 shl $0x2,%eax 801032a7: 01 d0 add %edx,%eax 801032a9: 01 c0 add %eax,%eax 801032ab: 89 c2 mov %eax,%edx 801032ad: 8b 45 e4 mov -0x1c(%ebp),%eax 801032b0: 83 e0 0f and $0xf,%eax 801032b3: 01 d0 add %edx,%eax 801032b5: 89 45 e4 mov %eax,-0x1c(%ebp) CONV(month ); 801032b8: 8b 45 e8 mov -0x18(%ebp),%eax 801032bb: c1 e8 04 shr $0x4,%eax 801032be: 89 c2 mov %eax,%edx 801032c0: 89 d0 mov %edx,%eax 801032c2: c1 e0 02 shl $0x2,%eax 801032c5: 01 d0 add %edx,%eax 801032c7: 01 c0 add %eax,%eax 801032c9: 89 c2 mov %eax,%edx 801032cb: 8b 45 e8 mov -0x18(%ebp),%eax 801032ce: 83 e0 0f and $0xf,%eax 801032d1: 01 d0 add %edx,%eax 801032d3: 89 45 e8 mov %eax,-0x18(%ebp) CONV(year ); 801032d6: 8b 45 ec mov -0x14(%ebp),%eax 801032d9: c1 e8 04 shr $0x4,%eax 801032dc: 89 c2 mov %eax,%edx 801032de: 89 d0 mov %edx,%eax 801032e0: c1 e0 02 shl $0x2,%eax 801032e3: 01 d0 add %edx,%eax 801032e5: 01 c0 add %eax,%eax 801032e7: 89 c2 mov %eax,%edx 801032e9: 8b 45 ec mov -0x14(%ebp),%eax 801032ec: 83 e0 0f and $0xf,%eax 801032ef: 01 d0 add %edx,%eax 801032f1: 89 45 ec mov %eax,-0x14(%ebp) #undef CONV } *r = t1; 801032f4: 8b 45 08 mov 0x8(%ebp),%eax 801032f7: 8b 55 d8 mov -0x28(%ebp),%edx 801032fa: 89 10 mov %edx,(%eax) 801032fc: 8b 55 dc mov -0x24(%ebp),%edx 801032ff: 89 50 04 mov %edx,0x4(%eax) 80103302: 8b 55 e0 mov -0x20(%ebp),%edx 80103305: 89 50 08 mov %edx,0x8(%eax) 80103308: 8b 55 e4 mov -0x1c(%ebp),%edx 8010330b: 89 50 0c mov %edx,0xc(%eax) 8010330e: 8b 55 e8 mov -0x18(%ebp),%edx 80103311: 89 50 10 mov %edx,0x10(%eax) 80103314: 8b 55 ec mov -0x14(%ebp),%edx 80103317: 89 50 14 mov %edx,0x14(%eax) r->year += 2000; 8010331a: 8b 45 08 mov 0x8(%ebp),%eax 8010331d: 8b 40 14 mov 0x14(%eax),%eax 80103320: 8d 90 d0 07 00 00 lea 0x7d0(%eax),%edx 80103326: 8b 45 08 mov 0x8(%ebp),%eax 80103329: 89 50 14 mov %edx,0x14(%eax) } 8010332c: 90 nop 8010332d: c9 leave 8010332e: c3 ret 8010332f <initlog>: static void recover_from_log(void); static void commit(); void initlog(int dev) { 8010332f: 55 push %ebp 80103330: 89 e5 mov %esp,%ebp 80103332: 83 ec 28 sub $0x28,%esp if (sizeof(struct logheader) >= BSIZE) panic("initlog: too big logheader"); struct superblock sb; initlock(&log.lock, "log"); 80103335: 83 ec 08 sub $0x8,%esp 80103338: 68 cc 87 10 80 push $0x801087cc 8010333d: 68 60 22 11 80 push $0x80112260 80103342: e8 c1 1c 00 00 call 80105008 <initlock> 80103347: 83 c4 10 add $0x10,%esp readsb(dev, &sb); 8010334a: 83 ec 08 sub $0x8,%esp 8010334d: 8d 45 dc lea -0x24(%ebp),%eax 80103350: 50 push %eax 80103351: ff 75 08 pushl 0x8(%ebp) 80103354: e8 2b e0 ff ff call 80101384 <readsb> 80103359: 83 c4 10 add $0x10,%esp log.start = sb.logstart; 8010335c: 8b 45 ec mov -0x14(%ebp),%eax 8010335f: a3 94 22 11 80 mov %eax,0x80112294 log.size = sb.nlog; 80103364: 8b 45 e8 mov -0x18(%ebp),%eax 80103367: a3 98 22 11 80 mov %eax,0x80112298 log.dev = dev; 8010336c: 8b 45 08 mov 0x8(%ebp),%eax 8010336f: a3 a4 22 11 80 mov %eax,0x801122a4 recover_from_log(); 80103374: e8 b2 01 00 00 call 8010352b <recover_from_log> } 80103379: 90 nop 8010337a: c9 leave 8010337b: c3 ret 8010337c <install_trans>: // Copy committed blocks from log to their home location static void install_trans(void) { 8010337c: 55 push %ebp 8010337d: 89 e5 mov %esp,%ebp 8010337f: 83 ec 18 sub $0x18,%esp int tail; for (tail = 0; tail < log.lh.n; tail++) { 80103382: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80103389: e9 95 00 00 00 jmp 80103423 <install_trans+0xa7> struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block 8010338e: 8b 15 94 22 11 80 mov 0x80112294,%edx 80103394: 8b 45 f4 mov -0xc(%ebp),%eax 80103397: 01 d0 add %edx,%eax 80103399: 83 c0 01 add $0x1,%eax 8010339c: 89 c2 mov %eax,%edx 8010339e: a1 a4 22 11 80 mov 0x801122a4,%eax 801033a3: 83 ec 08 sub $0x8,%esp 801033a6: 52 push %edx 801033a7: 50 push %eax 801033a8: e8 09 ce ff ff call 801001b6 <bread> 801033ad: 83 c4 10 add $0x10,%esp 801033b0: 89 45 f0 mov %eax,-0x10(%ebp) struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 801033b3: 8b 45 f4 mov -0xc(%ebp),%eax 801033b6: 83 c0 10 add $0x10,%eax 801033b9: 8b 04 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%eax 801033c0: 89 c2 mov %eax,%edx 801033c2: a1 a4 22 11 80 mov 0x801122a4,%eax 801033c7: 83 ec 08 sub $0x8,%esp 801033ca: 52 push %edx 801033cb: 50 push %eax 801033cc: e8 e5 cd ff ff call 801001b6 <bread> 801033d1: 83 c4 10 add $0x10,%esp 801033d4: 89 45 ec mov %eax,-0x14(%ebp) memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst 801033d7: 8b 45 f0 mov -0x10(%ebp),%eax 801033da: 8d 50 18 lea 0x18(%eax),%edx 801033dd: 8b 45 ec mov -0x14(%ebp),%eax 801033e0: 83 c0 18 add $0x18,%eax 801033e3: 83 ec 04 sub $0x4,%esp 801033e6: 68 00 02 00 00 push $0x200 801033eb: 52 push %edx 801033ec: 50 push %eax 801033ed: e8 5a 1f 00 00 call 8010534c <memmove> 801033f2: 83 c4 10 add $0x10,%esp bwrite(dbuf); // write dst to disk 801033f5: 83 ec 0c sub $0xc,%esp 801033f8: ff 75 ec pushl -0x14(%ebp) 801033fb: e8 ef cd ff ff call 801001ef <bwrite> 80103400: 83 c4 10 add $0x10,%esp brelse(lbuf); 80103403: 83 ec 0c sub $0xc,%esp 80103406: ff 75 f0 pushl -0x10(%ebp) 80103409: e8 20 ce ff ff call 8010022e <brelse> 8010340e: 83 c4 10 add $0x10,%esp brelse(dbuf); 80103411: 83 ec 0c sub $0xc,%esp 80103414: ff 75 ec pushl -0x14(%ebp) 80103417: e8 12 ce ff ff call 8010022e <brelse> 8010341c: 83 c4 10 add $0x10,%esp static void install_trans(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 8010341f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103423: a1 a8 22 11 80 mov 0x801122a8,%eax 80103428: 3b 45 f4 cmp -0xc(%ebp),%eax 8010342b: 0f 8f 5d ff ff ff jg 8010338e <install_trans+0x12> memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst bwrite(dbuf); // write dst to disk brelse(lbuf); brelse(dbuf); } } 80103431: 90 nop 80103432: c9 leave 80103433: c3 ret 80103434 <read_head>: // Read the log header from disk into the in-memory log header static void read_head(void) { 80103434: 55 push %ebp 80103435: 89 e5 mov %esp,%ebp 80103437: 83 ec 18 sub $0x18,%esp struct buf *buf = bread(log.dev, log.start); 8010343a: a1 94 22 11 80 mov 0x80112294,%eax 8010343f: 89 c2 mov %eax,%edx 80103441: a1 a4 22 11 80 mov 0x801122a4,%eax 80103446: 83 ec 08 sub $0x8,%esp 80103449: 52 push %edx 8010344a: 50 push %eax 8010344b: e8 66 cd ff ff call 801001b6 <bread> 80103450: 83 c4 10 add $0x10,%esp 80103453: 89 45 f0 mov %eax,-0x10(%ebp) struct logheader *lh = (struct logheader *) (buf->data); 80103456: 8b 45 f0 mov -0x10(%ebp),%eax 80103459: 83 c0 18 add $0x18,%eax 8010345c: 89 45 ec mov %eax,-0x14(%ebp) int i; log.lh.n = lh->n; 8010345f: 8b 45 ec mov -0x14(%ebp),%eax 80103462: 8b 00 mov (%eax),%eax 80103464: a3 a8 22 11 80 mov %eax,0x801122a8 for (i = 0; i < log.lh.n; i++) { 80103469: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80103470: eb 1b jmp 8010348d <read_head+0x59> log.lh.block[i] = lh->block[i]; 80103472: 8b 45 ec mov -0x14(%ebp),%eax 80103475: 8b 55 f4 mov -0xc(%ebp),%edx 80103478: 8b 44 90 04 mov 0x4(%eax,%edx,4),%eax 8010347c: 8b 55 f4 mov -0xc(%ebp),%edx 8010347f: 83 c2 10 add $0x10,%edx 80103482: 89 04 95 6c 22 11 80 mov %eax,-0x7feedd94(,%edx,4) { struct buf *buf = bread(log.dev, log.start); struct logheader *lh = (struct logheader *) (buf->data); int i; log.lh.n = lh->n; for (i = 0; i < log.lh.n; i++) { 80103489: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010348d: a1 a8 22 11 80 mov 0x801122a8,%eax 80103492: 3b 45 f4 cmp -0xc(%ebp),%eax 80103495: 7f db jg 80103472 <read_head+0x3e> log.lh.block[i] = lh->block[i]; } brelse(buf); 80103497: 83 ec 0c sub $0xc,%esp 8010349a: ff 75 f0 pushl -0x10(%ebp) 8010349d: e8 8c cd ff ff call 8010022e <brelse> 801034a2: 83 c4 10 add $0x10,%esp } 801034a5: 90 nop 801034a6: c9 leave 801034a7: c3 ret 801034a8 <write_head>: // Write in-memory log header to disk. // This is the true point at which the // current transaction commits. static void write_head(void) { 801034a8: 55 push %ebp 801034a9: 89 e5 mov %esp,%ebp 801034ab: 83 ec 18 sub $0x18,%esp struct buf *buf = bread(log.dev, log.start); 801034ae: a1 94 22 11 80 mov 0x80112294,%eax 801034b3: 89 c2 mov %eax,%edx 801034b5: a1 a4 22 11 80 mov 0x801122a4,%eax 801034ba: 83 ec 08 sub $0x8,%esp 801034bd: 52 push %edx 801034be: 50 push %eax 801034bf: e8 f2 cc ff ff call 801001b6 <bread> 801034c4: 83 c4 10 add $0x10,%esp 801034c7: 89 45 f0 mov %eax,-0x10(%ebp) struct logheader *hb = (struct logheader *) (buf->data); 801034ca: 8b 45 f0 mov -0x10(%ebp),%eax 801034cd: 83 c0 18 add $0x18,%eax 801034d0: 89 45 ec mov %eax,-0x14(%ebp) int i; hb->n = log.lh.n; 801034d3: 8b 15 a8 22 11 80 mov 0x801122a8,%edx 801034d9: 8b 45 ec mov -0x14(%ebp),%eax 801034dc: 89 10 mov %edx,(%eax) for (i = 0; i < log.lh.n; i++) { 801034de: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801034e5: eb 1b jmp 80103502 <write_head+0x5a> hb->block[i] = log.lh.block[i]; 801034e7: 8b 45 f4 mov -0xc(%ebp),%eax 801034ea: 83 c0 10 add $0x10,%eax 801034ed: 8b 0c 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%ecx 801034f4: 8b 45 ec mov -0x14(%ebp),%eax 801034f7: 8b 55 f4 mov -0xc(%ebp),%edx 801034fa: 89 4c 90 04 mov %ecx,0x4(%eax,%edx,4) { struct buf *buf = bread(log.dev, log.start); struct logheader *hb = (struct logheader *) (buf->data); int i; hb->n = log.lh.n; for (i = 0; i < log.lh.n; i++) { 801034fe: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103502: a1 a8 22 11 80 mov 0x801122a8,%eax 80103507: 3b 45 f4 cmp -0xc(%ebp),%eax 8010350a: 7f db jg 801034e7 <write_head+0x3f> hb->block[i] = log.lh.block[i]; } bwrite(buf); 8010350c: 83 ec 0c sub $0xc,%esp 8010350f: ff 75 f0 pushl -0x10(%ebp) 80103512: e8 d8 cc ff ff call 801001ef <bwrite> 80103517: 83 c4 10 add $0x10,%esp brelse(buf); 8010351a: 83 ec 0c sub $0xc,%esp 8010351d: ff 75 f0 pushl -0x10(%ebp) 80103520: e8 09 cd ff ff call 8010022e <brelse> 80103525: 83 c4 10 add $0x10,%esp } 80103528: 90 nop 80103529: c9 leave 8010352a: c3 ret 8010352b <recover_from_log>: static void recover_from_log(void) { 8010352b: 55 push %ebp 8010352c: 89 e5 mov %esp,%ebp 8010352e: 83 ec 08 sub $0x8,%esp read_head(); 80103531: e8 fe fe ff ff call 80103434 <read_head> install_trans(); // if committed, copy from log to disk 80103536: e8 41 fe ff ff call 8010337c <install_trans> log.lh.n = 0; 8010353b: c7 05 a8 22 11 80 00 movl $0x0,0x801122a8 80103542: 00 00 00 write_head(); // clear the log 80103545: e8 5e ff ff ff call 801034a8 <write_head> } 8010354a: 90 nop 8010354b: c9 leave 8010354c: c3 ret 8010354d <begin_op>: // called at the start of each FS system call. void begin_op(void) { 8010354d: 55 push %ebp 8010354e: 89 e5 mov %esp,%ebp 80103550: 83 ec 08 sub $0x8,%esp acquire(&log.lock); 80103553: 83 ec 0c sub $0xc,%esp 80103556: 68 60 22 11 80 push $0x80112260 8010355b: e8 ca 1a 00 00 call 8010502a <acquire> 80103560: 83 c4 10 add $0x10,%esp while(1){ if(log.committing){ 80103563: a1 a0 22 11 80 mov 0x801122a0,%eax 80103568: 85 c0 test %eax,%eax 8010356a: 74 17 je 80103583 <begin_op+0x36> sleep(&log, &log.lock); 8010356c: 83 ec 08 sub $0x8,%esp 8010356f: 68 60 22 11 80 push $0x80112260 80103574: 68 60 22 11 80 push $0x80112260 80103579: e8 b3 17 00 00 call 80104d31 <sleep> 8010357e: 83 c4 10 add $0x10,%esp 80103581: eb e0 jmp 80103563 <begin_op+0x16> } else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){ 80103583: 8b 0d a8 22 11 80 mov 0x801122a8,%ecx 80103589: a1 9c 22 11 80 mov 0x8011229c,%eax 8010358e: 8d 50 01 lea 0x1(%eax),%edx 80103591: 89 d0 mov %edx,%eax 80103593: c1 e0 02 shl $0x2,%eax 80103596: 01 d0 add %edx,%eax 80103598: 01 c0 add %eax,%eax 8010359a: 01 c8 add %ecx,%eax 8010359c: 83 f8 1e cmp $0x1e,%eax 8010359f: 7e 17 jle 801035b8 <begin_op+0x6b> // this op might exhaust log space; wait for commit. sleep(&log, &log.lock); 801035a1: 83 ec 08 sub $0x8,%esp 801035a4: 68 60 22 11 80 push $0x80112260 801035a9: 68 60 22 11 80 push $0x80112260 801035ae: e8 7e 17 00 00 call 80104d31 <sleep> 801035b3: 83 c4 10 add $0x10,%esp 801035b6: eb ab jmp 80103563 <begin_op+0x16> } else { log.outstanding += 1; 801035b8: a1 9c 22 11 80 mov 0x8011229c,%eax 801035bd: 83 c0 01 add $0x1,%eax 801035c0: a3 9c 22 11 80 mov %eax,0x8011229c release(&log.lock); 801035c5: 83 ec 0c sub $0xc,%esp 801035c8: 68 60 22 11 80 push $0x80112260 801035cd: e8 bf 1a 00 00 call 80105091 <release> 801035d2: 83 c4 10 add $0x10,%esp break; 801035d5: 90 nop } } } 801035d6: 90 nop 801035d7: c9 leave 801035d8: c3 ret 801035d9 <end_op>: // called at the end of each FS system call. // commits if this was the last outstanding operation. void end_op(void) { 801035d9: 55 push %ebp 801035da: 89 e5 mov %esp,%ebp 801035dc: 83 ec 18 sub $0x18,%esp int do_commit = 0; 801035df: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) acquire(&log.lock); 801035e6: 83 ec 0c sub $0xc,%esp 801035e9: 68 60 22 11 80 push $0x80112260 801035ee: e8 37 1a 00 00 call 8010502a <acquire> 801035f3: 83 c4 10 add $0x10,%esp log.outstanding -= 1; 801035f6: a1 9c 22 11 80 mov 0x8011229c,%eax 801035fb: 83 e8 01 sub $0x1,%eax 801035fe: a3 9c 22 11 80 mov %eax,0x8011229c if(log.committing) 80103603: a1 a0 22 11 80 mov 0x801122a0,%eax 80103608: 85 c0 test %eax,%eax 8010360a: 74 0d je 80103619 <end_op+0x40> panic("log.committing"); 8010360c: 83 ec 0c sub $0xc,%esp 8010360f: 68 d0 87 10 80 push $0x801087d0 80103614: e8 4d cf ff ff call 80100566 <panic> if(log.outstanding == 0){ 80103619: a1 9c 22 11 80 mov 0x8011229c,%eax 8010361e: 85 c0 test %eax,%eax 80103620: 75 13 jne 80103635 <end_op+0x5c> do_commit = 1; 80103622: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) log.committing = 1; 80103629: c7 05 a0 22 11 80 01 movl $0x1,0x801122a0 80103630: 00 00 00 80103633: eb 10 jmp 80103645 <end_op+0x6c> } else { // begin_op() may be waiting for log space. wakeup(&log); 80103635: 83 ec 0c sub $0xc,%esp 80103638: 68 60 22 11 80 push $0x80112260 8010363d: e8 da 17 00 00 call 80104e1c <wakeup> 80103642: 83 c4 10 add $0x10,%esp } release(&log.lock); 80103645: 83 ec 0c sub $0xc,%esp 80103648: 68 60 22 11 80 push $0x80112260 8010364d: e8 3f 1a 00 00 call 80105091 <release> 80103652: 83 c4 10 add $0x10,%esp if(do_commit){ 80103655: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80103659: 74 3f je 8010369a <end_op+0xc1> // call commit w/o holding locks, since not allowed // to sleep with locks. commit(); 8010365b: e8 f5 00 00 00 call 80103755 <commit> acquire(&log.lock); 80103660: 83 ec 0c sub $0xc,%esp 80103663: 68 60 22 11 80 push $0x80112260 80103668: e8 bd 19 00 00 call 8010502a <acquire> 8010366d: 83 c4 10 add $0x10,%esp log.committing = 0; 80103670: c7 05 a0 22 11 80 00 movl $0x0,0x801122a0 80103677: 00 00 00 wakeup(&log); 8010367a: 83 ec 0c sub $0xc,%esp 8010367d: 68 60 22 11 80 push $0x80112260 80103682: e8 95 17 00 00 call 80104e1c <wakeup> 80103687: 83 c4 10 add $0x10,%esp release(&log.lock); 8010368a: 83 ec 0c sub $0xc,%esp 8010368d: 68 60 22 11 80 push $0x80112260 80103692: e8 fa 19 00 00 call 80105091 <release> 80103697: 83 c4 10 add $0x10,%esp } } 8010369a: 90 nop 8010369b: c9 leave 8010369c: c3 ret 8010369d <write_log>: // Copy modified blocks from cache to log. static void write_log(void) { 8010369d: 55 push %ebp 8010369e: 89 e5 mov %esp,%ebp 801036a0: 83 ec 18 sub $0x18,%esp int tail; for (tail = 0; tail < log.lh.n; tail++) { 801036a3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801036aa: e9 95 00 00 00 jmp 80103744 <write_log+0xa7> struct buf *to = bread(log.dev, log.start+tail+1); // log block 801036af: 8b 15 94 22 11 80 mov 0x80112294,%edx 801036b5: 8b 45 f4 mov -0xc(%ebp),%eax 801036b8: 01 d0 add %edx,%eax 801036ba: 83 c0 01 add $0x1,%eax 801036bd: 89 c2 mov %eax,%edx 801036bf: a1 a4 22 11 80 mov 0x801122a4,%eax 801036c4: 83 ec 08 sub $0x8,%esp 801036c7: 52 push %edx 801036c8: 50 push %eax 801036c9: e8 e8 ca ff ff call 801001b6 <bread> 801036ce: 83 c4 10 add $0x10,%esp 801036d1: 89 45 f0 mov %eax,-0x10(%ebp) struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 801036d4: 8b 45 f4 mov -0xc(%ebp),%eax 801036d7: 83 c0 10 add $0x10,%eax 801036da: 8b 04 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%eax 801036e1: 89 c2 mov %eax,%edx 801036e3: a1 a4 22 11 80 mov 0x801122a4,%eax 801036e8: 83 ec 08 sub $0x8,%esp 801036eb: 52 push %edx 801036ec: 50 push %eax 801036ed: e8 c4 ca ff ff call 801001b6 <bread> 801036f2: 83 c4 10 add $0x10,%esp 801036f5: 89 45 ec mov %eax,-0x14(%ebp) memmove(to->data, from->data, BSIZE); 801036f8: 8b 45 ec mov -0x14(%ebp),%eax 801036fb: 8d 50 18 lea 0x18(%eax),%edx 801036fe: 8b 45 f0 mov -0x10(%ebp),%eax 80103701: 83 c0 18 add $0x18,%eax 80103704: 83 ec 04 sub $0x4,%esp 80103707: 68 00 02 00 00 push $0x200 8010370c: 52 push %edx 8010370d: 50 push %eax 8010370e: e8 39 1c 00 00 call 8010534c <memmove> 80103713: 83 c4 10 add $0x10,%esp bwrite(to); // write the log 80103716: 83 ec 0c sub $0xc,%esp 80103719: ff 75 f0 pushl -0x10(%ebp) 8010371c: e8 ce ca ff ff call 801001ef <bwrite> 80103721: 83 c4 10 add $0x10,%esp brelse(from); 80103724: 83 ec 0c sub $0xc,%esp 80103727: ff 75 ec pushl -0x14(%ebp) 8010372a: e8 ff ca ff ff call 8010022e <brelse> 8010372f: 83 c4 10 add $0x10,%esp brelse(to); 80103732: 83 ec 0c sub $0xc,%esp 80103735: ff 75 f0 pushl -0x10(%ebp) 80103738: e8 f1 ca ff ff call 8010022e <brelse> 8010373d: 83 c4 10 add $0x10,%esp static void write_log(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 80103740: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103744: a1 a8 22 11 80 mov 0x801122a8,%eax 80103749: 3b 45 f4 cmp -0xc(%ebp),%eax 8010374c: 0f 8f 5d ff ff ff jg 801036af <write_log+0x12> memmove(to->data, from->data, BSIZE); bwrite(to); // write the log brelse(from); brelse(to); } } 80103752: 90 nop 80103753: c9 leave 80103754: c3 ret 80103755 <commit>: static void commit() { 80103755: 55 push %ebp 80103756: 89 e5 mov %esp,%ebp 80103758: 83 ec 08 sub $0x8,%esp if (log.lh.n > 0) { 8010375b: a1 a8 22 11 80 mov 0x801122a8,%eax 80103760: 85 c0 test %eax,%eax 80103762: 7e 1e jle 80103782 <commit+0x2d> write_log(); // Write modified blocks from cache to log 80103764: e8 34 ff ff ff call 8010369d <write_log> write_head(); // Write header to disk -- the real commit 80103769: e8 3a fd ff ff call 801034a8 <write_head> install_trans(); // Now install writes to home locations 8010376e: e8 09 fc ff ff call 8010337c <install_trans> log.lh.n = 0; 80103773: c7 05 a8 22 11 80 00 movl $0x0,0x801122a8 8010377a: 00 00 00 write_head(); // Erase the transaction from the log 8010377d: e8 26 fd ff ff call 801034a8 <write_head> } } 80103782: 90 nop 80103783: c9 leave 80103784: c3 ret 80103785 <log_write>: // modify bp->data[] // log_write(bp) // brelse(bp) void log_write(struct buf *b) { 80103785: 55 push %ebp 80103786: 89 e5 mov %esp,%ebp 80103788: 83 ec 18 sub $0x18,%esp int i; if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 8010378b: a1 a8 22 11 80 mov 0x801122a8,%eax 80103790: 83 f8 1d cmp $0x1d,%eax 80103793: 7f 12 jg 801037a7 <log_write+0x22> 80103795: a1 a8 22 11 80 mov 0x801122a8,%eax 8010379a: 8b 15 98 22 11 80 mov 0x80112298,%edx 801037a0: 83 ea 01 sub $0x1,%edx 801037a3: 39 d0 cmp %edx,%eax 801037a5: 7c 0d jl 801037b4 <log_write+0x2f> panic("too big a transaction"); 801037a7: 83 ec 0c sub $0xc,%esp 801037aa: 68 df 87 10 80 push $0x801087df 801037af: e8 b2 cd ff ff call 80100566 <panic> if (log.outstanding < 1) 801037b4: a1 9c 22 11 80 mov 0x8011229c,%eax 801037b9: 85 c0 test %eax,%eax 801037bb: 7f 0d jg 801037ca <log_write+0x45> panic("log_write outside of trans"); 801037bd: 83 ec 0c sub $0xc,%esp 801037c0: 68 f5 87 10 80 push $0x801087f5 801037c5: e8 9c cd ff ff call 80100566 <panic> acquire(&log.lock); 801037ca: 83 ec 0c sub $0xc,%esp 801037cd: 68 60 22 11 80 push $0x80112260 801037d2: e8 53 18 00 00 call 8010502a <acquire> 801037d7: 83 c4 10 add $0x10,%esp for (i = 0; i < log.lh.n; i++) { 801037da: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801037e1: eb 1d jmp 80103800 <log_write+0x7b> if (log.lh.block[i] == b->blockno) // log absorbtion 801037e3: 8b 45 f4 mov -0xc(%ebp),%eax 801037e6: 83 c0 10 add $0x10,%eax 801037e9: 8b 04 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%eax 801037f0: 89 c2 mov %eax,%edx 801037f2: 8b 45 08 mov 0x8(%ebp),%eax 801037f5: 8b 40 08 mov 0x8(%eax),%eax 801037f8: 39 c2 cmp %eax,%edx 801037fa: 74 10 je 8010380c <log_write+0x87> panic("too big a transaction"); if (log.outstanding < 1) panic("log_write outside of trans"); acquire(&log.lock); for (i = 0; i < log.lh.n; i++) { 801037fc: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103800: a1 a8 22 11 80 mov 0x801122a8,%eax 80103805: 3b 45 f4 cmp -0xc(%ebp),%eax 80103808: 7f d9 jg 801037e3 <log_write+0x5e> 8010380a: eb 01 jmp 8010380d <log_write+0x88> if (log.lh.block[i] == b->blockno) // log absorbtion break; 8010380c: 90 nop } log.lh.block[i] = b->blockno; 8010380d: 8b 45 08 mov 0x8(%ebp),%eax 80103810: 8b 40 08 mov 0x8(%eax),%eax 80103813: 89 c2 mov %eax,%edx 80103815: 8b 45 f4 mov -0xc(%ebp),%eax 80103818: 83 c0 10 add $0x10,%eax 8010381b: 89 14 85 6c 22 11 80 mov %edx,-0x7feedd94(,%eax,4) if (i == log.lh.n) 80103822: a1 a8 22 11 80 mov 0x801122a8,%eax 80103827: 3b 45 f4 cmp -0xc(%ebp),%eax 8010382a: 75 0d jne 80103839 <log_write+0xb4> log.lh.n++; 8010382c: a1 a8 22 11 80 mov 0x801122a8,%eax 80103831: 83 c0 01 add $0x1,%eax 80103834: a3 a8 22 11 80 mov %eax,0x801122a8 b->flags |= B_DIRTY; // prevent eviction 80103839: 8b 45 08 mov 0x8(%ebp),%eax 8010383c: 8b 00 mov (%eax),%eax 8010383e: 83 c8 04 or $0x4,%eax 80103841: 89 c2 mov %eax,%edx 80103843: 8b 45 08 mov 0x8(%ebp),%eax 80103846: 89 10 mov %edx,(%eax) release(&log.lock); 80103848: 83 ec 0c sub $0xc,%esp 8010384b: 68 60 22 11 80 push $0x80112260 80103850: e8 3c 18 00 00 call 80105091 <release> 80103855: 83 c4 10 add $0x10,%esp } 80103858: 90 nop 80103859: c9 leave 8010385a: c3 ret 8010385b <v2p>: 8010385b: 55 push %ebp 8010385c: 89 e5 mov %esp,%ebp 8010385e: 8b 45 08 mov 0x8(%ebp),%eax 80103861: 05 00 00 00 80 add $0x80000000,%eax 80103866: 5d pop %ebp 80103867: c3 ret 80103868 <p2v>: static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); } 80103868: 55 push %ebp 80103869: 89 e5 mov %esp,%ebp 8010386b: 8b 45 08 mov 0x8(%ebp),%eax 8010386e: 05 00 00 00 80 add $0x80000000,%eax 80103873: 5d pop %ebp 80103874: c3 ret 80103875 <xchg>: asm volatile("sti"); } static inline uint xchg(volatile uint *addr, uint newval) { 80103875: 55 push %ebp 80103876: 89 e5 mov %esp,%ebp 80103878: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 8010387b: 8b 55 08 mov 0x8(%ebp),%edx 8010387e: 8b 45 0c mov 0xc(%ebp),%eax 80103881: 8b 4d 08 mov 0x8(%ebp),%ecx 80103884: f0 87 02 lock xchg %eax,(%edx) 80103887: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; 8010388a: 8b 45 fc mov -0x4(%ebp),%eax } 8010388d: c9 leave 8010388e: c3 ret 8010388f <main>: // Bootstrap processor starts running C code here. // Allocate a real stack and switch to it, first // doing some setup required for memory allocator to work. int main(void) { 8010388f: 8d 4c 24 04 lea 0x4(%esp),%ecx 80103893: 83 e4 f0 and $0xfffffff0,%esp 80103896: ff 71 fc pushl -0x4(%ecx) 80103899: 55 push %ebp 8010389a: 89 e5 mov %esp,%ebp 8010389c: 51 push %ecx 8010389d: 83 ec 04 sub $0x4,%esp kinit1(end, P2V(4*1024*1024)); // phys page allocator 801038a0: 83 ec 08 sub $0x8,%esp 801038a3: 68 00 00 40 80 push $0x80400000 801038a8: 68 3c 8f 11 80 push $0x80118f3c 801038ad: e8 7d f2 ff ff call 80102b2f <kinit1> 801038b2: 83 c4 10 add $0x10,%esp kvmalloc(); // kernel page table 801038b5: e8 24 45 00 00 call 80107dde <kvmalloc> mpinit(); // collect info about this machine 801038ba: e8 43 04 00 00 call 80103d02 <mpinit> lapicinit(); 801038bf: e8 ea f5 ff ff call 80102eae <lapicinit> seginit(); // set up segments 801038c4: e8 be 3e 00 00 call 80107787 <seginit> cprintf("\ncpu%d: starting xv6\n\n", cpu->id); 801038c9: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801038cf: 0f b6 00 movzbl (%eax),%eax 801038d2: 0f b6 c0 movzbl %al,%eax 801038d5: 83 ec 08 sub $0x8,%esp 801038d8: 50 push %eax 801038d9: 68 10 88 10 80 push $0x80108810 801038de: e8 e3 ca ff ff call 801003c6 <cprintf> 801038e3: 83 c4 10 add $0x10,%esp picinit(); // interrupt controller 801038e6: e8 6d 06 00 00 call 80103f58 <picinit> ioapicinit(); // another interrupt controller 801038eb: e8 34 f1 ff ff call 80102a24 <ioapicinit> consoleinit(); // I/O devices & their interrupts 801038f0: e8 24 d2 ff ff call 80100b19 <consoleinit> uartinit(); // serial port 801038f5: e8 e9 31 00 00 call 80106ae3 <uartinit> pinit(); // process table 801038fa: e8 56 0b 00 00 call 80104455 <pinit> tvinit(); // trap vectors 801038ff: e8 a9 2d 00 00 call 801066ad <tvinit> binit(); // buffer cache 80103904: e8 2b c7 ff ff call 80100034 <binit> fileinit(); // file table 80103909: e8 67 d6 ff ff call 80100f75 <fileinit> ideinit(); // disk 8010390e: e8 19 ed ff ff call 8010262c <ideinit> if(!ismp) 80103913: a1 44 23 11 80 mov 0x80112344,%eax 80103918: 85 c0 test %eax,%eax 8010391a: 75 05 jne 80103921 <main+0x92> timerinit(); // uniprocessor timer 8010391c: e8 e9 2c 00 00 call 8010660a <timerinit> startothers(); // start other processors 80103921: e8 7f 00 00 00 call 801039a5 <startothers> kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers() 80103926: 83 ec 08 sub $0x8,%esp 80103929: 68 00 00 00 8e push $0x8e000000 8010392e: 68 00 00 40 80 push $0x80400000 80103933: e8 30 f2 ff ff call 80102b68 <kinit2> 80103938: 83 c4 10 add $0x10,%esp userinit(); // first user process 8010393b: e8 39 0c 00 00 call 80104579 <userinit> // Finish setting up this processor in mpmain. mpmain(); 80103940: e8 1a 00 00 00 call 8010395f <mpmain> 80103945 <mpenter>: } // Other CPUs jump here from entryother.S. static void mpenter(void) { 80103945: 55 push %ebp 80103946: 89 e5 mov %esp,%ebp 80103948: 83 ec 08 sub $0x8,%esp switchkvm(); 8010394b: e8 a6 44 00 00 call 80107df6 <switchkvm> seginit(); 80103950: e8 32 3e 00 00 call 80107787 <seginit> lapicinit(); 80103955: e8 54 f5 ff ff call 80102eae <lapicinit> mpmain(); 8010395a: e8 00 00 00 00 call 8010395f <mpmain> 8010395f <mpmain>: } // Common CPU setup code. static void mpmain(void) { 8010395f: 55 push %ebp 80103960: 89 e5 mov %esp,%ebp 80103962: 83 ec 08 sub $0x8,%esp cprintf("cpu%d: starting\n", cpu->id); 80103965: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010396b: 0f b6 00 movzbl (%eax),%eax 8010396e: 0f b6 c0 movzbl %al,%eax 80103971: 83 ec 08 sub $0x8,%esp 80103974: 50 push %eax 80103975: 68 27 88 10 80 push $0x80108827 8010397a: e8 47 ca ff ff call 801003c6 <cprintf> 8010397f: 83 c4 10 add $0x10,%esp idtinit(); // load idt register 80103982: e8 9c 2e 00 00 call 80106823 <idtinit> xchg(&cpu->started, 1); // tell startothers() we're up 80103987: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010398d: 05 a8 00 00 00 add $0xa8,%eax 80103992: 83 ec 08 sub $0x8,%esp 80103995: 6a 01 push $0x1 80103997: 50 push %eax 80103998: e8 d8 fe ff ff call 80103875 <xchg> 8010399d: 83 c4 10 add $0x10,%esp scheduler(); // start running processes 801039a0: e8 7f 11 00 00 call 80104b24 <scheduler> 801039a5 <startothers>: pde_t entrypgdir[]; // For entry.S // Start the non-boot (AP) processors. static void startothers(void) { 801039a5: 55 push %ebp 801039a6: 89 e5 mov %esp,%ebp 801039a8: 53 push %ebx 801039a9: 83 ec 14 sub $0x14,%esp char *stack; // Write entry code to unused memory at 0x7000. // The linker has placed the image of entryother.S in // _binary_entryother_start. code = p2v(0x7000); 801039ac: 68 00 70 00 00 push $0x7000 801039b1: e8 b2 fe ff ff call 80103868 <p2v> 801039b6: 83 c4 04 add $0x4,%esp 801039b9: 89 45 f0 mov %eax,-0x10(%ebp) memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); 801039bc: b8 8a 00 00 00 mov $0x8a,%eax 801039c1: 83 ec 04 sub $0x4,%esp 801039c4: 50 push %eax 801039c5: 68 0c b5 10 80 push $0x8010b50c 801039ca: ff 75 f0 pushl -0x10(%ebp) 801039cd: e8 7a 19 00 00 call 8010534c <memmove> 801039d2: 83 c4 10 add $0x10,%esp for(c = cpus; c < cpus+ncpu; c++){ 801039d5: c7 45 f4 60 23 11 80 movl $0x80112360,-0xc(%ebp) 801039dc: e9 90 00 00 00 jmp 80103a71 <startothers+0xcc> if(c == cpus+cpunum()) // We've started already. 801039e1: e8 e6 f5 ff ff call 80102fcc <cpunum> 801039e6: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 801039ec: 05 60 23 11 80 add $0x80112360,%eax 801039f1: 3b 45 f4 cmp -0xc(%ebp),%eax 801039f4: 74 73 je 80103a69 <startothers+0xc4> continue; // Tell entryother.S what stack to use, where to enter, and what // pgdir to use. We cannot use kpgdir yet, because the AP processor // is running in low memory, so we use entrypgdir for the APs too. stack = kalloc(); 801039f6: e8 6b f2 ff ff call 80102c66 <kalloc> 801039fb: 89 45 ec mov %eax,-0x14(%ebp) *(void**)(code-4) = stack + KSTACKSIZE; 801039fe: 8b 45 f0 mov -0x10(%ebp),%eax 80103a01: 83 e8 04 sub $0x4,%eax 80103a04: 8b 55 ec mov -0x14(%ebp),%edx 80103a07: 81 c2 00 10 00 00 add $0x1000,%edx 80103a0d: 89 10 mov %edx,(%eax) *(void**)(code-8) = mpenter; 80103a0f: 8b 45 f0 mov -0x10(%ebp),%eax 80103a12: 83 e8 08 sub $0x8,%eax 80103a15: c7 00 45 39 10 80 movl $0x80103945,(%eax) *(int**)(code-12) = (void *) v2p(entrypgdir); 80103a1b: 8b 45 f0 mov -0x10(%ebp),%eax 80103a1e: 8d 58 f4 lea -0xc(%eax),%ebx 80103a21: 83 ec 0c sub $0xc,%esp 80103a24: 68 00 a0 10 80 push $0x8010a000 80103a29: e8 2d fe ff ff call 8010385b <v2p> 80103a2e: 83 c4 10 add $0x10,%esp 80103a31: 89 03 mov %eax,(%ebx) lapicstartap(c->id, v2p(code)); 80103a33: 83 ec 0c sub $0xc,%esp 80103a36: ff 75 f0 pushl -0x10(%ebp) 80103a39: e8 1d fe ff ff call 8010385b <v2p> 80103a3e: 83 c4 10 add $0x10,%esp 80103a41: 89 c2 mov %eax,%edx 80103a43: 8b 45 f4 mov -0xc(%ebp),%eax 80103a46: 0f b6 00 movzbl (%eax),%eax 80103a49: 0f b6 c0 movzbl %al,%eax 80103a4c: 83 ec 08 sub $0x8,%esp 80103a4f: 52 push %edx 80103a50: 50 push %eax 80103a51: e8 f0 f5 ff ff call 80103046 <lapicstartap> 80103a56: 83 c4 10 add $0x10,%esp // wait for cpu to finish mpmain() while(c->started == 0) 80103a59: 90 nop 80103a5a: 8b 45 f4 mov -0xc(%ebp),%eax 80103a5d: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax 80103a63: 85 c0 test %eax,%eax 80103a65: 74 f3 je 80103a5a <startothers+0xb5> 80103a67: eb 01 jmp 80103a6a <startothers+0xc5> code = p2v(0x7000); memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); for(c = cpus; c < cpus+ncpu; c++){ if(c == cpus+cpunum()) // We've started already. continue; 80103a69: 90 nop // The linker has placed the image of entryother.S in // _binary_entryother_start. code = p2v(0x7000); memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); for(c = cpus; c < cpus+ncpu; c++){ 80103a6a: 81 45 f4 bc 00 00 00 addl $0xbc,-0xc(%ebp) 80103a71: a1 40 29 11 80 mov 0x80112940,%eax 80103a76: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103a7c: 05 60 23 11 80 add $0x80112360,%eax 80103a81: 3b 45 f4 cmp -0xc(%ebp),%eax 80103a84: 0f 87 57 ff ff ff ja 801039e1 <startothers+0x3c> // wait for cpu to finish mpmain() while(c->started == 0) ; } } 80103a8a: 90 nop 80103a8b: 8b 5d fc mov -0x4(%ebp),%ebx 80103a8e: c9 leave 80103a8f: c3 ret 80103a90 <p2v>: 80103a90: 55 push %ebp 80103a91: 89 e5 mov %esp,%ebp 80103a93: 8b 45 08 mov 0x8(%ebp),%eax 80103a96: 05 00 00 00 80 add $0x80000000,%eax 80103a9b: 5d pop %ebp 80103a9c: c3 ret 80103a9d <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80103a9d: 55 push %ebp 80103a9e: 89 e5 mov %esp,%ebp 80103aa0: 83 ec 14 sub $0x14,%esp 80103aa3: 8b 45 08 mov 0x8(%ebp),%eax 80103aa6: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80103aaa: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80103aae: 89 c2 mov %eax,%edx 80103ab0: ec in (%dx),%al 80103ab1: 88 45 ff mov %al,-0x1(%ebp) return data; 80103ab4: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80103ab8: c9 leave 80103ab9: c3 ret 80103aba <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80103aba: 55 push %ebp 80103abb: 89 e5 mov %esp,%ebp 80103abd: 83 ec 08 sub $0x8,%esp 80103ac0: 8b 55 08 mov 0x8(%ebp),%edx 80103ac3: 8b 45 0c mov 0xc(%ebp),%eax 80103ac6: 66 89 55 fc mov %dx,-0x4(%ebp) 80103aca: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103acd: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80103ad1: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80103ad5: ee out %al,(%dx) } 80103ad6: 90 nop 80103ad7: c9 leave 80103ad8: c3 ret 80103ad9 <mpbcpu>: int ncpu; uchar ioapicid; int mpbcpu(void) { 80103ad9: 55 push %ebp 80103ada: 89 e5 mov %esp,%ebp return bcpu-cpus; 80103adc: a1 44 b6 10 80 mov 0x8010b644,%eax 80103ae1: 89 c2 mov %eax,%edx 80103ae3: b8 60 23 11 80 mov $0x80112360,%eax 80103ae8: 29 c2 sub %eax,%edx 80103aea: 89 d0 mov %edx,%eax 80103aec: c1 f8 02 sar $0x2,%eax 80103aef: 69 c0 cf 46 7d 67 imul $0x677d46cf,%eax,%eax } 80103af5: 5d pop %ebp 80103af6: c3 ret 80103af7 <sum>: static uchar sum(uchar *addr, int len) { 80103af7: 55 push %ebp 80103af8: 89 e5 mov %esp,%ebp 80103afa: 83 ec 10 sub $0x10,%esp int i, sum; sum = 0; 80103afd: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp) for(i=0; i<len; i++) 80103b04: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80103b0b: eb 15 jmp 80103b22 <sum+0x2b> sum += addr[i]; 80103b0d: 8b 55 fc mov -0x4(%ebp),%edx 80103b10: 8b 45 08 mov 0x8(%ebp),%eax 80103b13: 01 d0 add %edx,%eax 80103b15: 0f b6 00 movzbl (%eax),%eax 80103b18: 0f b6 c0 movzbl %al,%eax 80103b1b: 01 45 f8 add %eax,-0x8(%ebp) sum(uchar *addr, int len) { int i, sum; sum = 0; for(i=0; i<len; i++) 80103b1e: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80103b22: 8b 45 fc mov -0x4(%ebp),%eax 80103b25: 3b 45 0c cmp 0xc(%ebp),%eax 80103b28: 7c e3 jl 80103b0d <sum+0x16> sum += addr[i]; return sum; 80103b2a: 8b 45 f8 mov -0x8(%ebp),%eax } 80103b2d: c9 leave 80103b2e: c3 ret 80103b2f <mpsearch1>: // Look for an MP structure in the len bytes at addr. static struct mp* mpsearch1(uint a, int len) { 80103b2f: 55 push %ebp 80103b30: 89 e5 mov %esp,%ebp 80103b32: 83 ec 18 sub $0x18,%esp uchar *e, *p, *addr; addr = p2v(a); 80103b35: ff 75 08 pushl 0x8(%ebp) 80103b38: e8 53 ff ff ff call 80103a90 <p2v> 80103b3d: 83 c4 04 add $0x4,%esp 80103b40: 89 45 f0 mov %eax,-0x10(%ebp) e = addr+len; 80103b43: 8b 55 0c mov 0xc(%ebp),%edx 80103b46: 8b 45 f0 mov -0x10(%ebp),%eax 80103b49: 01 d0 add %edx,%eax 80103b4b: 89 45 ec mov %eax,-0x14(%ebp) for(p = addr; p < e; p += sizeof(struct mp)) 80103b4e: 8b 45 f0 mov -0x10(%ebp),%eax 80103b51: 89 45 f4 mov %eax,-0xc(%ebp) 80103b54: eb 36 jmp 80103b8c <mpsearch1+0x5d> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 80103b56: 83 ec 04 sub $0x4,%esp 80103b59: 6a 04 push $0x4 80103b5b: 68 38 88 10 80 push $0x80108838 80103b60: ff 75 f4 pushl -0xc(%ebp) 80103b63: e8 8c 17 00 00 call 801052f4 <memcmp> 80103b68: 83 c4 10 add $0x10,%esp 80103b6b: 85 c0 test %eax,%eax 80103b6d: 75 19 jne 80103b88 <mpsearch1+0x59> 80103b6f: 83 ec 08 sub $0x8,%esp 80103b72: 6a 10 push $0x10 80103b74: ff 75 f4 pushl -0xc(%ebp) 80103b77: e8 7b ff ff ff call 80103af7 <sum> 80103b7c: 83 c4 10 add $0x10,%esp 80103b7f: 84 c0 test %al,%al 80103b81: 75 05 jne 80103b88 <mpsearch1+0x59> return (struct mp*)p; 80103b83: 8b 45 f4 mov -0xc(%ebp),%eax 80103b86: eb 11 jmp 80103b99 <mpsearch1+0x6a> { uchar *e, *p, *addr; addr = p2v(a); e = addr+len; for(p = addr; p < e; p += sizeof(struct mp)) 80103b88: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80103b8c: 8b 45 f4 mov -0xc(%ebp),%eax 80103b8f: 3b 45 ec cmp -0x14(%ebp),%eax 80103b92: 72 c2 jb 80103b56 <mpsearch1+0x27> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) return (struct mp*)p; return 0; 80103b94: b8 00 00 00 00 mov $0x0,%eax } 80103b99: c9 leave 80103b9a: c3 ret 80103b9b <mpsearch>: // 1) in the first KB of the EBDA; // 2) in the last KB of system base memory; // 3) in the BIOS ROM between 0xE0000 and 0xFFFFF. static struct mp* mpsearch(void) { 80103b9b: 55 push %ebp 80103b9c: 89 e5 mov %esp,%ebp 80103b9e: 83 ec 18 sub $0x18,%esp uchar *bda; uint p; struct mp *mp; bda = (uchar *) P2V(0x400); 80103ba1: c7 45 f4 00 04 00 80 movl $0x80000400,-0xc(%ebp) if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){ 80103ba8: 8b 45 f4 mov -0xc(%ebp),%eax 80103bab: 83 c0 0f add $0xf,%eax 80103bae: 0f b6 00 movzbl (%eax),%eax 80103bb1: 0f b6 c0 movzbl %al,%eax 80103bb4: c1 e0 08 shl $0x8,%eax 80103bb7: 89 c2 mov %eax,%edx 80103bb9: 8b 45 f4 mov -0xc(%ebp),%eax 80103bbc: 83 c0 0e add $0xe,%eax 80103bbf: 0f b6 00 movzbl (%eax),%eax 80103bc2: 0f b6 c0 movzbl %al,%eax 80103bc5: 09 d0 or %edx,%eax 80103bc7: c1 e0 04 shl $0x4,%eax 80103bca: 89 45 f0 mov %eax,-0x10(%ebp) 80103bcd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80103bd1: 74 21 je 80103bf4 <mpsearch+0x59> if((mp = mpsearch1(p, 1024))) 80103bd3: 83 ec 08 sub $0x8,%esp 80103bd6: 68 00 04 00 00 push $0x400 80103bdb: ff 75 f0 pushl -0x10(%ebp) 80103bde: e8 4c ff ff ff call 80103b2f <mpsearch1> 80103be3: 83 c4 10 add $0x10,%esp 80103be6: 89 45 ec mov %eax,-0x14(%ebp) 80103be9: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80103bed: 74 51 je 80103c40 <mpsearch+0xa5> return mp; 80103bef: 8b 45 ec mov -0x14(%ebp),%eax 80103bf2: eb 61 jmp 80103c55 <mpsearch+0xba> } else { p = ((bda[0x14]<<8)|bda[0x13])*1024; 80103bf4: 8b 45 f4 mov -0xc(%ebp),%eax 80103bf7: 83 c0 14 add $0x14,%eax 80103bfa: 0f b6 00 movzbl (%eax),%eax 80103bfd: 0f b6 c0 movzbl %al,%eax 80103c00: c1 e0 08 shl $0x8,%eax 80103c03: 89 c2 mov %eax,%edx 80103c05: 8b 45 f4 mov -0xc(%ebp),%eax 80103c08: 83 c0 13 add $0x13,%eax 80103c0b: 0f b6 00 movzbl (%eax),%eax 80103c0e: 0f b6 c0 movzbl %al,%eax 80103c11: 09 d0 or %edx,%eax 80103c13: c1 e0 0a shl $0xa,%eax 80103c16: 89 45 f0 mov %eax,-0x10(%ebp) if((mp = mpsearch1(p-1024, 1024))) 80103c19: 8b 45 f0 mov -0x10(%ebp),%eax 80103c1c: 2d 00 04 00 00 sub $0x400,%eax 80103c21: 83 ec 08 sub $0x8,%esp 80103c24: 68 00 04 00 00 push $0x400 80103c29: 50 push %eax 80103c2a: e8 00 ff ff ff call 80103b2f <mpsearch1> 80103c2f: 83 c4 10 add $0x10,%esp 80103c32: 89 45 ec mov %eax,-0x14(%ebp) 80103c35: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80103c39: 74 05 je 80103c40 <mpsearch+0xa5> return mp; 80103c3b: 8b 45 ec mov -0x14(%ebp),%eax 80103c3e: eb 15 jmp 80103c55 <mpsearch+0xba> } return mpsearch1(0xF0000, 0x10000); 80103c40: 83 ec 08 sub $0x8,%esp 80103c43: 68 00 00 01 00 push $0x10000 80103c48: 68 00 00 0f 00 push $0xf0000 80103c4d: e8 dd fe ff ff call 80103b2f <mpsearch1> 80103c52: 83 c4 10 add $0x10,%esp } 80103c55: c9 leave 80103c56: c3 ret 80103c57 <mpconfig>: // Check for correct signature, calculate the checksum and, // if correct, check the version. // To do: check extended table checksum. static struct mpconf* mpconfig(struct mp **pmp) { 80103c57: 55 push %ebp 80103c58: 89 e5 mov %esp,%ebp 80103c5a: 83 ec 18 sub $0x18,%esp struct mpconf *conf; struct mp *mp; if((mp = mpsearch()) == 0 || mp->physaddr == 0) 80103c5d: e8 39 ff ff ff call 80103b9b <mpsearch> 80103c62: 89 45 f4 mov %eax,-0xc(%ebp) 80103c65: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80103c69: 74 0a je 80103c75 <mpconfig+0x1e> 80103c6b: 8b 45 f4 mov -0xc(%ebp),%eax 80103c6e: 8b 40 04 mov 0x4(%eax),%eax 80103c71: 85 c0 test %eax,%eax 80103c73: 75 0a jne 80103c7f <mpconfig+0x28> return 0; 80103c75: b8 00 00 00 00 mov $0x0,%eax 80103c7a: e9 81 00 00 00 jmp 80103d00 <mpconfig+0xa9> conf = (struct mpconf*) p2v((uint) mp->physaddr); 80103c7f: 8b 45 f4 mov -0xc(%ebp),%eax 80103c82: 8b 40 04 mov 0x4(%eax),%eax 80103c85: 83 ec 0c sub $0xc,%esp 80103c88: 50 push %eax 80103c89: e8 02 fe ff ff call 80103a90 <p2v> 80103c8e: 83 c4 10 add $0x10,%esp 80103c91: 89 45 f0 mov %eax,-0x10(%ebp) if(memcmp(conf, "PCMP", 4) != 0) 80103c94: 83 ec 04 sub $0x4,%esp 80103c97: 6a 04 push $0x4 80103c99: 68 3d 88 10 80 push $0x8010883d 80103c9e: ff 75 f0 pushl -0x10(%ebp) 80103ca1: e8 4e 16 00 00 call 801052f4 <memcmp> 80103ca6: 83 c4 10 add $0x10,%esp 80103ca9: 85 c0 test %eax,%eax 80103cab: 74 07 je 80103cb4 <mpconfig+0x5d> return 0; 80103cad: b8 00 00 00 00 mov $0x0,%eax 80103cb2: eb 4c jmp 80103d00 <mpconfig+0xa9> if(conf->version != 1 && conf->version != 4) 80103cb4: 8b 45 f0 mov -0x10(%ebp),%eax 80103cb7: 0f b6 40 06 movzbl 0x6(%eax),%eax 80103cbb: 3c 01 cmp $0x1,%al 80103cbd: 74 12 je 80103cd1 <mpconfig+0x7a> 80103cbf: 8b 45 f0 mov -0x10(%ebp),%eax 80103cc2: 0f b6 40 06 movzbl 0x6(%eax),%eax 80103cc6: 3c 04 cmp $0x4,%al 80103cc8: 74 07 je 80103cd1 <mpconfig+0x7a> return 0; 80103cca: b8 00 00 00 00 mov $0x0,%eax 80103ccf: eb 2f jmp 80103d00 <mpconfig+0xa9> if(sum((uchar*)conf, conf->length) != 0) 80103cd1: 8b 45 f0 mov -0x10(%ebp),%eax 80103cd4: 0f b7 40 04 movzwl 0x4(%eax),%eax 80103cd8: 0f b7 c0 movzwl %ax,%eax 80103cdb: 83 ec 08 sub $0x8,%esp 80103cde: 50 push %eax 80103cdf: ff 75 f0 pushl -0x10(%ebp) 80103ce2: e8 10 fe ff ff call 80103af7 <sum> 80103ce7: 83 c4 10 add $0x10,%esp 80103cea: 84 c0 test %al,%al 80103cec: 74 07 je 80103cf5 <mpconfig+0x9e> return 0; 80103cee: b8 00 00 00 00 mov $0x0,%eax 80103cf3: eb 0b jmp 80103d00 <mpconfig+0xa9> *pmp = mp; 80103cf5: 8b 45 08 mov 0x8(%ebp),%eax 80103cf8: 8b 55 f4 mov -0xc(%ebp),%edx 80103cfb: 89 10 mov %edx,(%eax) return conf; 80103cfd: 8b 45 f0 mov -0x10(%ebp),%eax } 80103d00: c9 leave 80103d01: c3 ret 80103d02 <mpinit>: void mpinit(void) { 80103d02: 55 push %ebp 80103d03: 89 e5 mov %esp,%ebp 80103d05: 83 ec 28 sub $0x28,%esp struct mp *mp; struct mpconf *conf; struct mpproc *proc; struct mpioapic *ioapic; bcpu = &cpus[0]; 80103d08: c7 05 44 b6 10 80 60 movl $0x80112360,0x8010b644 80103d0f: 23 11 80 if((conf = mpconfig(&mp)) == 0) 80103d12: 83 ec 0c sub $0xc,%esp 80103d15: 8d 45 e0 lea -0x20(%ebp),%eax 80103d18: 50 push %eax 80103d19: e8 39 ff ff ff call 80103c57 <mpconfig> 80103d1e: 83 c4 10 add $0x10,%esp 80103d21: 89 45 f0 mov %eax,-0x10(%ebp) 80103d24: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80103d28: 0f 84 96 01 00 00 je 80103ec4 <mpinit+0x1c2> return; ismp = 1; 80103d2e: c7 05 44 23 11 80 01 movl $0x1,0x80112344 80103d35: 00 00 00 lapic = (uint*)conf->lapicaddr; 80103d38: 8b 45 f0 mov -0x10(%ebp),%eax 80103d3b: 8b 40 24 mov 0x24(%eax),%eax 80103d3e: a3 5c 22 11 80 mov %eax,0x8011225c for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103d43: 8b 45 f0 mov -0x10(%ebp),%eax 80103d46: 83 c0 2c add $0x2c,%eax 80103d49: 89 45 f4 mov %eax,-0xc(%ebp) 80103d4c: 8b 45 f0 mov -0x10(%ebp),%eax 80103d4f: 0f b7 40 04 movzwl 0x4(%eax),%eax 80103d53: 0f b7 d0 movzwl %ax,%edx 80103d56: 8b 45 f0 mov -0x10(%ebp),%eax 80103d59: 01 d0 add %edx,%eax 80103d5b: 89 45 ec mov %eax,-0x14(%ebp) 80103d5e: e9 f2 00 00 00 jmp 80103e55 <mpinit+0x153> switch(*p){ 80103d63: 8b 45 f4 mov -0xc(%ebp),%eax 80103d66: 0f b6 00 movzbl (%eax),%eax 80103d69: 0f b6 c0 movzbl %al,%eax 80103d6c: 83 f8 04 cmp $0x4,%eax 80103d6f: 0f 87 bc 00 00 00 ja 80103e31 <mpinit+0x12f> 80103d75: 8b 04 85 80 88 10 80 mov -0x7fef7780(,%eax,4),%eax 80103d7c: ff e0 jmp *%eax case MPPROC: proc = (struct mpproc*)p; 80103d7e: 8b 45 f4 mov -0xc(%ebp),%eax 80103d81: 89 45 e8 mov %eax,-0x18(%ebp) if(ncpu != proc->apicid){ 80103d84: 8b 45 e8 mov -0x18(%ebp),%eax 80103d87: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103d8b: 0f b6 d0 movzbl %al,%edx 80103d8e: a1 40 29 11 80 mov 0x80112940,%eax 80103d93: 39 c2 cmp %eax,%edx 80103d95: 74 2b je 80103dc2 <mpinit+0xc0> cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid); 80103d97: 8b 45 e8 mov -0x18(%ebp),%eax 80103d9a: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103d9e: 0f b6 d0 movzbl %al,%edx 80103da1: a1 40 29 11 80 mov 0x80112940,%eax 80103da6: 83 ec 04 sub $0x4,%esp 80103da9: 52 push %edx 80103daa: 50 push %eax 80103dab: 68 42 88 10 80 push $0x80108842 80103db0: e8 11 c6 ff ff call 801003c6 <cprintf> 80103db5: 83 c4 10 add $0x10,%esp ismp = 0; 80103db8: c7 05 44 23 11 80 00 movl $0x0,0x80112344 80103dbf: 00 00 00 } if(proc->flags & MPBOOT) 80103dc2: 8b 45 e8 mov -0x18(%ebp),%eax 80103dc5: 0f b6 40 03 movzbl 0x3(%eax),%eax 80103dc9: 0f b6 c0 movzbl %al,%eax 80103dcc: 83 e0 02 and $0x2,%eax 80103dcf: 85 c0 test %eax,%eax 80103dd1: 74 15 je 80103de8 <mpinit+0xe6> bcpu = &cpus[ncpu]; 80103dd3: a1 40 29 11 80 mov 0x80112940,%eax 80103dd8: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103dde: 05 60 23 11 80 add $0x80112360,%eax 80103de3: a3 44 b6 10 80 mov %eax,0x8010b644 cpus[ncpu].id = ncpu; 80103de8: a1 40 29 11 80 mov 0x80112940,%eax 80103ded: 8b 15 40 29 11 80 mov 0x80112940,%edx 80103df3: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103df9: 05 60 23 11 80 add $0x80112360,%eax 80103dfe: 88 10 mov %dl,(%eax) ncpu++; 80103e00: a1 40 29 11 80 mov 0x80112940,%eax 80103e05: 83 c0 01 add $0x1,%eax 80103e08: a3 40 29 11 80 mov %eax,0x80112940 p += sizeof(struct mpproc); 80103e0d: 83 45 f4 14 addl $0x14,-0xc(%ebp) continue; 80103e11: eb 42 jmp 80103e55 <mpinit+0x153> case MPIOAPIC: ioapic = (struct mpioapic*)p; 80103e13: 8b 45 f4 mov -0xc(%ebp),%eax 80103e16: 89 45 e4 mov %eax,-0x1c(%ebp) ioapicid = ioapic->apicno; 80103e19: 8b 45 e4 mov -0x1c(%ebp),%eax 80103e1c: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103e20: a2 40 23 11 80 mov %al,0x80112340 p += sizeof(struct mpioapic); 80103e25: 83 45 f4 08 addl $0x8,-0xc(%ebp) continue; 80103e29: eb 2a jmp 80103e55 <mpinit+0x153> case MPBUS: case MPIOINTR: case MPLINTR: p += 8; 80103e2b: 83 45 f4 08 addl $0x8,-0xc(%ebp) continue; 80103e2f: eb 24 jmp 80103e55 <mpinit+0x153> default: cprintf("mpinit: unknown config type %x\n", *p); 80103e31: 8b 45 f4 mov -0xc(%ebp),%eax 80103e34: 0f b6 00 movzbl (%eax),%eax 80103e37: 0f b6 c0 movzbl %al,%eax 80103e3a: 83 ec 08 sub $0x8,%esp 80103e3d: 50 push %eax 80103e3e: 68 60 88 10 80 push $0x80108860 80103e43: e8 7e c5 ff ff call 801003c6 <cprintf> 80103e48: 83 c4 10 add $0x10,%esp ismp = 0; 80103e4b: c7 05 44 23 11 80 00 movl $0x0,0x80112344 80103e52: 00 00 00 bcpu = &cpus[0]; if((conf = mpconfig(&mp)) == 0) return; ismp = 1; lapic = (uint*)conf->lapicaddr; for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103e55: 8b 45 f4 mov -0xc(%ebp),%eax 80103e58: 3b 45 ec cmp -0x14(%ebp),%eax 80103e5b: 0f 82 02 ff ff ff jb 80103d63 <mpinit+0x61> default: cprintf("mpinit: unknown config type %x\n", *p); ismp = 0; } } if(!ismp){ 80103e61: a1 44 23 11 80 mov 0x80112344,%eax 80103e66: 85 c0 test %eax,%eax 80103e68: 75 1d jne 80103e87 <mpinit+0x185> // Didn't like what we found; fall back to no MP. ncpu = 1; 80103e6a: c7 05 40 29 11 80 01 movl $0x1,0x80112940 80103e71: 00 00 00 lapic = 0; 80103e74: c7 05 5c 22 11 80 00 movl $0x0,0x8011225c 80103e7b: 00 00 00 ioapicid = 0; 80103e7e: c6 05 40 23 11 80 00 movb $0x0,0x80112340 return; 80103e85: eb 3e jmp 80103ec5 <mpinit+0x1c3> } if(mp->imcrp){ 80103e87: 8b 45 e0 mov -0x20(%ebp),%eax 80103e8a: 0f b6 40 0c movzbl 0xc(%eax),%eax 80103e8e: 84 c0 test %al,%al 80103e90: 74 33 je 80103ec5 <mpinit+0x1c3> // Bochs doesn't support IMCR, so this doesn't run on Bochs. // But it would on real hardware. outb(0x22, 0x70); // Select IMCR 80103e92: 83 ec 08 sub $0x8,%esp 80103e95: 6a 70 push $0x70 80103e97: 6a 22 push $0x22 80103e99: e8 1c fc ff ff call 80103aba <outb> 80103e9e: 83 c4 10 add $0x10,%esp outb(0x23, inb(0x23) | 1); // Mask external interrupts. 80103ea1: 83 ec 0c sub $0xc,%esp 80103ea4: 6a 23 push $0x23 80103ea6: e8 f2 fb ff ff call 80103a9d <inb> 80103eab: 83 c4 10 add $0x10,%esp 80103eae: 83 c8 01 or $0x1,%eax 80103eb1: 0f b6 c0 movzbl %al,%eax 80103eb4: 83 ec 08 sub $0x8,%esp 80103eb7: 50 push %eax 80103eb8: 6a 23 push $0x23 80103eba: e8 fb fb ff ff call 80103aba <outb> 80103ebf: 83 c4 10 add $0x10,%esp 80103ec2: eb 01 jmp 80103ec5 <mpinit+0x1c3> struct mpproc *proc; struct mpioapic *ioapic; bcpu = &cpus[0]; if((conf = mpconfig(&mp)) == 0) return; 80103ec4: 90 nop // Bochs doesn't support IMCR, so this doesn't run on Bochs. // But it would on real hardware. outb(0x22, 0x70); // Select IMCR outb(0x23, inb(0x23) | 1); // Mask external interrupts. } } 80103ec5: c9 leave 80103ec6: c3 ret 80103ec7 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80103ec7: 55 push %ebp 80103ec8: 89 e5 mov %esp,%ebp 80103eca: 83 ec 08 sub $0x8,%esp 80103ecd: 8b 55 08 mov 0x8(%ebp),%edx 80103ed0: 8b 45 0c mov 0xc(%ebp),%eax 80103ed3: 66 89 55 fc mov %dx,-0x4(%ebp) 80103ed7: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103eda: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80103ede: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80103ee2: ee out %al,(%dx) } 80103ee3: 90 nop 80103ee4: c9 leave 80103ee5: c3 ret 80103ee6 <picsetmask>: // Initial IRQ mask has interrupt 2 enabled (for slave 8259A). static ushort irqmask = 0xFFFF & ~(1<<IRQ_SLAVE); static void picsetmask(ushort mask) { 80103ee6: 55 push %ebp 80103ee7: 89 e5 mov %esp,%ebp 80103ee9: 83 ec 04 sub $0x4,%esp 80103eec: 8b 45 08 mov 0x8(%ebp),%eax 80103eef: 66 89 45 fc mov %ax,-0x4(%ebp) irqmask = mask; 80103ef3: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103ef7: 66 a3 00 b0 10 80 mov %ax,0x8010b000 outb(IO_PIC1+1, mask); 80103efd: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103f01: 0f b6 c0 movzbl %al,%eax 80103f04: 50 push %eax 80103f05: 6a 21 push $0x21 80103f07: e8 bb ff ff ff call 80103ec7 <outb> 80103f0c: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, mask >> 8); 80103f0f: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103f13: 66 c1 e8 08 shr $0x8,%ax 80103f17: 0f b6 c0 movzbl %al,%eax 80103f1a: 50 push %eax 80103f1b: 68 a1 00 00 00 push $0xa1 80103f20: e8 a2 ff ff ff call 80103ec7 <outb> 80103f25: 83 c4 08 add $0x8,%esp } 80103f28: 90 nop 80103f29: c9 leave 80103f2a: c3 ret 80103f2b <picenable>: void picenable(int irq) { 80103f2b: 55 push %ebp 80103f2c: 89 e5 mov %esp,%ebp picsetmask(irqmask & ~(1<<irq)); 80103f2e: 8b 45 08 mov 0x8(%ebp),%eax 80103f31: ba 01 00 00 00 mov $0x1,%edx 80103f36: 89 c1 mov %eax,%ecx 80103f38: d3 e2 shl %cl,%edx 80103f3a: 89 d0 mov %edx,%eax 80103f3c: f7 d0 not %eax 80103f3e: 89 c2 mov %eax,%edx 80103f40: 0f b7 05 00 b0 10 80 movzwl 0x8010b000,%eax 80103f47: 21 d0 and %edx,%eax 80103f49: 0f b7 c0 movzwl %ax,%eax 80103f4c: 50 push %eax 80103f4d: e8 94 ff ff ff call 80103ee6 <picsetmask> 80103f52: 83 c4 04 add $0x4,%esp } 80103f55: 90 nop 80103f56: c9 leave 80103f57: c3 ret 80103f58 <picinit>: // Initialize the 8259A interrupt controllers. void picinit(void) { 80103f58: 55 push %ebp 80103f59: 89 e5 mov %esp,%ebp // mask all interrupts outb(IO_PIC1+1, 0xFF); 80103f5b: 68 ff 00 00 00 push $0xff 80103f60: 6a 21 push $0x21 80103f62: e8 60 ff ff ff call 80103ec7 <outb> 80103f67: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, 0xFF); 80103f6a: 68 ff 00 00 00 push $0xff 80103f6f: 68 a1 00 00 00 push $0xa1 80103f74: e8 4e ff ff ff call 80103ec7 <outb> 80103f79: 83 c4 08 add $0x8,%esp // ICW1: 0001g0hi // g: 0 = edge triggering, 1 = level triggering // h: 0 = cascaded PICs, 1 = master only // i: 0 = no ICW4, 1 = ICW4 required outb(IO_PIC1, 0x11); 80103f7c: 6a 11 push $0x11 80103f7e: 6a 20 push $0x20 80103f80: e8 42 ff ff ff call 80103ec7 <outb> 80103f85: 83 c4 08 add $0x8,%esp // ICW2: Vector offset outb(IO_PIC1+1, T_IRQ0); 80103f88: 6a 20 push $0x20 80103f8a: 6a 21 push $0x21 80103f8c: e8 36 ff ff ff call 80103ec7 <outb> 80103f91: 83 c4 08 add $0x8,%esp // ICW3: (master PIC) bit mask of IR lines connected to slaves // (slave PIC) 3-bit # of slave's connection to master outb(IO_PIC1+1, 1<<IRQ_SLAVE); 80103f94: 6a 04 push $0x4 80103f96: 6a 21 push $0x21 80103f98: e8 2a ff ff ff call 80103ec7 <outb> 80103f9d: 83 c4 08 add $0x8,%esp // m: 0 = slave PIC, 1 = master PIC // (ignored when b is 0, as the master/slave role // can be hardwired). // a: 1 = Automatic EOI mode // p: 0 = MCS-80/85 mode, 1 = intel x86 mode outb(IO_PIC1+1, 0x3); 80103fa0: 6a 03 push $0x3 80103fa2: 6a 21 push $0x21 80103fa4: e8 1e ff ff ff call 80103ec7 <outb> 80103fa9: 83 c4 08 add $0x8,%esp // Set up slave (8259A-2) outb(IO_PIC2, 0x11); // ICW1 80103fac: 6a 11 push $0x11 80103fae: 68 a0 00 00 00 push $0xa0 80103fb3: e8 0f ff ff ff call 80103ec7 <outb> 80103fb8: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, T_IRQ0 + 8); // ICW2 80103fbb: 6a 28 push $0x28 80103fbd: 68 a1 00 00 00 push $0xa1 80103fc2: e8 00 ff ff ff call 80103ec7 <outb> 80103fc7: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, IRQ_SLAVE); // ICW3 80103fca: 6a 02 push $0x2 80103fcc: 68 a1 00 00 00 push $0xa1 80103fd1: e8 f1 fe ff ff call 80103ec7 <outb> 80103fd6: 83 c4 08 add $0x8,%esp // NB Automatic EOI mode doesn't tend to work on the slave. // Linux source code says it's "to be investigated". outb(IO_PIC2+1, 0x3); // ICW4 80103fd9: 6a 03 push $0x3 80103fdb: 68 a1 00 00 00 push $0xa1 80103fe0: e8 e2 fe ff ff call 80103ec7 <outb> 80103fe5: 83 c4 08 add $0x8,%esp // OCW3: 0ef01prs // ef: 0x = NOP, 10 = clear specific mask, 11 = set specific mask // p: 0 = no polling, 1 = polling mode // rs: 0x = NOP, 10 = read IRR, 11 = read ISR outb(IO_PIC1, 0x68); // clear specific mask 80103fe8: 6a 68 push $0x68 80103fea: 6a 20 push $0x20 80103fec: e8 d6 fe ff ff call 80103ec7 <outb> 80103ff1: 83 c4 08 add $0x8,%esp outb(IO_PIC1, 0x0a); // read IRR by default 80103ff4: 6a 0a push $0xa 80103ff6: 6a 20 push $0x20 80103ff8: e8 ca fe ff ff call 80103ec7 <outb> 80103ffd: 83 c4 08 add $0x8,%esp outb(IO_PIC2, 0x68); // OCW3 80104000: 6a 68 push $0x68 80104002: 68 a0 00 00 00 push $0xa0 80104007: e8 bb fe ff ff call 80103ec7 <outb> 8010400c: 83 c4 08 add $0x8,%esp outb(IO_PIC2, 0x0a); // OCW3 8010400f: 6a 0a push $0xa 80104011: 68 a0 00 00 00 push $0xa0 80104016: e8 ac fe ff ff call 80103ec7 <outb> 8010401b: 83 c4 08 add $0x8,%esp if(irqmask != 0xFFFF) 8010401e: 0f b7 05 00 b0 10 80 movzwl 0x8010b000,%eax 80104025: 66 83 f8 ff cmp $0xffff,%ax 80104029: 74 13 je 8010403e <picinit+0xe6> picsetmask(irqmask); 8010402b: 0f b7 05 00 b0 10 80 movzwl 0x8010b000,%eax 80104032: 0f b7 c0 movzwl %ax,%eax 80104035: 50 push %eax 80104036: e8 ab fe ff ff call 80103ee6 <picsetmask> 8010403b: 83 c4 04 add $0x4,%esp } 8010403e: 90 nop 8010403f: c9 leave 80104040: c3 ret 80104041 <pipealloc>: int writeopen; // write fd is still open }; int pipealloc(struct file **f0, struct file **f1) { 80104041: 55 push %ebp 80104042: 89 e5 mov %esp,%ebp 80104044: 83 ec 18 sub $0x18,%esp struct pipe *p; p = 0; 80104047: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) *f0 = *f1 = 0; 8010404e: 8b 45 0c mov 0xc(%ebp),%eax 80104051: c7 00 00 00 00 00 movl $0x0,(%eax) 80104057: 8b 45 0c mov 0xc(%ebp),%eax 8010405a: 8b 10 mov (%eax),%edx 8010405c: 8b 45 08 mov 0x8(%ebp),%eax 8010405f: 89 10 mov %edx,(%eax) if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) 80104061: e8 2d cf ff ff call 80100f93 <filealloc> 80104066: 89 c2 mov %eax,%edx 80104068: 8b 45 08 mov 0x8(%ebp),%eax 8010406b: 89 10 mov %edx,(%eax) 8010406d: 8b 45 08 mov 0x8(%ebp),%eax 80104070: 8b 00 mov (%eax),%eax 80104072: 85 c0 test %eax,%eax 80104074: 0f 84 cb 00 00 00 je 80104145 <pipealloc+0x104> 8010407a: e8 14 cf ff ff call 80100f93 <filealloc> 8010407f: 89 c2 mov %eax,%edx 80104081: 8b 45 0c mov 0xc(%ebp),%eax 80104084: 89 10 mov %edx,(%eax) 80104086: 8b 45 0c mov 0xc(%ebp),%eax 80104089: 8b 00 mov (%eax),%eax 8010408b: 85 c0 test %eax,%eax 8010408d: 0f 84 b2 00 00 00 je 80104145 <pipealloc+0x104> goto bad; if((p = (struct pipe*)kalloc()) == 0) 80104093: e8 ce eb ff ff call 80102c66 <kalloc> 80104098: 89 45 f4 mov %eax,-0xc(%ebp) 8010409b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010409f: 0f 84 9f 00 00 00 je 80104144 <pipealloc+0x103> goto bad; p->readopen = 1; 801040a5: 8b 45 f4 mov -0xc(%ebp),%eax 801040a8: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax) 801040af: 00 00 00 p->writeopen = 1; 801040b2: 8b 45 f4 mov -0xc(%ebp),%eax 801040b5: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax) 801040bc: 00 00 00 p->nwrite = 0; 801040bf: 8b 45 f4 mov -0xc(%ebp),%eax 801040c2: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax) 801040c9: 00 00 00 p->nread = 0; 801040cc: 8b 45 f4 mov -0xc(%ebp),%eax 801040cf: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax) 801040d6: 00 00 00 initlock(&p->lock, "pipe"); 801040d9: 8b 45 f4 mov -0xc(%ebp),%eax 801040dc: 83 ec 08 sub $0x8,%esp 801040df: 68 94 88 10 80 push $0x80108894 801040e4: 50 push %eax 801040e5: e8 1e 0f 00 00 call 80105008 <initlock> 801040ea: 83 c4 10 add $0x10,%esp (*f0)->type = FD_PIPE; 801040ed: 8b 45 08 mov 0x8(%ebp),%eax 801040f0: 8b 00 mov (%eax),%eax 801040f2: c7 00 01 00 00 00 movl $0x1,(%eax) (*f0)->readable = 1; 801040f8: 8b 45 08 mov 0x8(%ebp),%eax 801040fb: 8b 00 mov (%eax),%eax 801040fd: c6 40 08 01 movb $0x1,0x8(%eax) (*f0)->writable = 0; 80104101: 8b 45 08 mov 0x8(%ebp),%eax 80104104: 8b 00 mov (%eax),%eax 80104106: c6 40 09 00 movb $0x0,0x9(%eax) (*f0)->pipe = p; 8010410a: 8b 45 08 mov 0x8(%ebp),%eax 8010410d: 8b 00 mov (%eax),%eax 8010410f: 8b 55 f4 mov -0xc(%ebp),%edx 80104112: 89 50 0c mov %edx,0xc(%eax) (*f1)->type = FD_PIPE; 80104115: 8b 45 0c mov 0xc(%ebp),%eax 80104118: 8b 00 mov (%eax),%eax 8010411a: c7 00 01 00 00 00 movl $0x1,(%eax) (*f1)->readable = 0; 80104120: 8b 45 0c mov 0xc(%ebp),%eax 80104123: 8b 00 mov (%eax),%eax 80104125: c6 40 08 00 movb $0x0,0x8(%eax) (*f1)->writable = 1; 80104129: 8b 45 0c mov 0xc(%ebp),%eax 8010412c: 8b 00 mov (%eax),%eax 8010412e: c6 40 09 01 movb $0x1,0x9(%eax) (*f1)->pipe = p; 80104132: 8b 45 0c mov 0xc(%ebp),%eax 80104135: 8b 00 mov (%eax),%eax 80104137: 8b 55 f4 mov -0xc(%ebp),%edx 8010413a: 89 50 0c mov %edx,0xc(%eax) return 0; 8010413d: b8 00 00 00 00 mov $0x0,%eax 80104142: eb 4e jmp 80104192 <pipealloc+0x151> p = 0; *f0 = *f1 = 0; if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) goto bad; if((p = (struct pipe*)kalloc()) == 0) goto bad; 80104144: 90 nop (*f1)->pipe = p; return 0; //PAGEBREAK: 20 bad: if(p) 80104145: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80104149: 74 0e je 80104159 <pipealloc+0x118> kfree((char*)p); 8010414b: 83 ec 0c sub $0xc,%esp 8010414e: ff 75 f4 pushl -0xc(%ebp) 80104151: e8 73 ea ff ff call 80102bc9 <kfree> 80104156: 83 c4 10 add $0x10,%esp if(*f0) 80104159: 8b 45 08 mov 0x8(%ebp),%eax 8010415c: 8b 00 mov (%eax),%eax 8010415e: 85 c0 test %eax,%eax 80104160: 74 11 je 80104173 <pipealloc+0x132> fileclose(*f0); 80104162: 8b 45 08 mov 0x8(%ebp),%eax 80104165: 8b 00 mov (%eax),%eax 80104167: 83 ec 0c sub $0xc,%esp 8010416a: 50 push %eax 8010416b: e8 e1 ce ff ff call 80101051 <fileclose> 80104170: 83 c4 10 add $0x10,%esp if(*f1) 80104173: 8b 45 0c mov 0xc(%ebp),%eax 80104176: 8b 00 mov (%eax),%eax 80104178: 85 c0 test %eax,%eax 8010417a: 74 11 je 8010418d <pipealloc+0x14c> fileclose(*f1); 8010417c: 8b 45 0c mov 0xc(%ebp),%eax 8010417f: 8b 00 mov (%eax),%eax 80104181: 83 ec 0c sub $0xc,%esp 80104184: 50 push %eax 80104185: e8 c7 ce ff ff call 80101051 <fileclose> 8010418a: 83 c4 10 add $0x10,%esp return -1; 8010418d: b8 ff ff ff ff mov $0xffffffff,%eax } 80104192: c9 leave 80104193: c3 ret 80104194 <pipeclose>: void pipeclose(struct pipe *p, int writable) { 80104194: 55 push %ebp 80104195: 89 e5 mov %esp,%ebp 80104197: 83 ec 08 sub $0x8,%esp acquire(&p->lock); 8010419a: 8b 45 08 mov 0x8(%ebp),%eax 8010419d: 83 ec 0c sub $0xc,%esp 801041a0: 50 push %eax 801041a1: e8 84 0e 00 00 call 8010502a <acquire> 801041a6: 83 c4 10 add $0x10,%esp if(writable){ 801041a9: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 801041ad: 74 23 je 801041d2 <pipeclose+0x3e> p->writeopen = 0; 801041af: 8b 45 08 mov 0x8(%ebp),%eax 801041b2: c7 80 40 02 00 00 00 movl $0x0,0x240(%eax) 801041b9: 00 00 00 wakeup(&p->nread); 801041bc: 8b 45 08 mov 0x8(%ebp),%eax 801041bf: 05 34 02 00 00 add $0x234,%eax 801041c4: 83 ec 0c sub $0xc,%esp 801041c7: 50 push %eax 801041c8: e8 4f 0c 00 00 call 80104e1c <wakeup> 801041cd: 83 c4 10 add $0x10,%esp 801041d0: eb 21 jmp 801041f3 <pipeclose+0x5f> } else { p->readopen = 0; 801041d2: 8b 45 08 mov 0x8(%ebp),%eax 801041d5: c7 80 3c 02 00 00 00 movl $0x0,0x23c(%eax) 801041dc: 00 00 00 wakeup(&p->nwrite); 801041df: 8b 45 08 mov 0x8(%ebp),%eax 801041e2: 05 38 02 00 00 add $0x238,%eax 801041e7: 83 ec 0c sub $0xc,%esp 801041ea: 50 push %eax 801041eb: e8 2c 0c 00 00 call 80104e1c <wakeup> 801041f0: 83 c4 10 add $0x10,%esp } if(p->readopen == 0 && p->writeopen == 0){ 801041f3: 8b 45 08 mov 0x8(%ebp),%eax 801041f6: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax 801041fc: 85 c0 test %eax,%eax 801041fe: 75 2c jne 8010422c <pipeclose+0x98> 80104200: 8b 45 08 mov 0x8(%ebp),%eax 80104203: 8b 80 40 02 00 00 mov 0x240(%eax),%eax 80104209: 85 c0 test %eax,%eax 8010420b: 75 1f jne 8010422c <pipeclose+0x98> release(&p->lock); 8010420d: 8b 45 08 mov 0x8(%ebp),%eax 80104210: 83 ec 0c sub $0xc,%esp 80104213: 50 push %eax 80104214: e8 78 0e 00 00 call 80105091 <release> 80104219: 83 c4 10 add $0x10,%esp kfree((char*)p); 8010421c: 83 ec 0c sub $0xc,%esp 8010421f: ff 75 08 pushl 0x8(%ebp) 80104222: e8 a2 e9 ff ff call 80102bc9 <kfree> 80104227: 83 c4 10 add $0x10,%esp 8010422a: eb 0f jmp 8010423b <pipeclose+0xa7> } else release(&p->lock); 8010422c: 8b 45 08 mov 0x8(%ebp),%eax 8010422f: 83 ec 0c sub $0xc,%esp 80104232: 50 push %eax 80104233: e8 59 0e 00 00 call 80105091 <release> 80104238: 83 c4 10 add $0x10,%esp } 8010423b: 90 nop 8010423c: c9 leave 8010423d: c3 ret 8010423e <pipewrite>: //PAGEBREAK: 40 int pipewrite(struct pipe *p, char *addr, int n) { 8010423e: 55 push %ebp 8010423f: 89 e5 mov %esp,%ebp 80104241: 83 ec 18 sub $0x18,%esp int i; acquire(&p->lock); 80104244: 8b 45 08 mov 0x8(%ebp),%eax 80104247: 83 ec 0c sub $0xc,%esp 8010424a: 50 push %eax 8010424b: e8 da 0d 00 00 call 8010502a <acquire> 80104250: 83 c4 10 add $0x10,%esp for(i = 0; i < n; i++){ 80104253: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010425a: e9 ad 00 00 00 jmp 8010430c <pipewrite+0xce> while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full if(p->readopen == 0 || proc->killed){ 8010425f: 8b 45 08 mov 0x8(%ebp),%eax 80104262: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax 80104268: 85 c0 test %eax,%eax 8010426a: 74 0d je 80104279 <pipewrite+0x3b> 8010426c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104272: 8b 40 24 mov 0x24(%eax),%eax 80104275: 85 c0 test %eax,%eax 80104277: 74 19 je 80104292 <pipewrite+0x54> release(&p->lock); 80104279: 8b 45 08 mov 0x8(%ebp),%eax 8010427c: 83 ec 0c sub $0xc,%esp 8010427f: 50 push %eax 80104280: e8 0c 0e 00 00 call 80105091 <release> 80104285: 83 c4 10 add $0x10,%esp return -1; 80104288: b8 ff ff ff ff mov $0xffffffff,%eax 8010428d: e9 a8 00 00 00 jmp 8010433a <pipewrite+0xfc> } wakeup(&p->nread); 80104292: 8b 45 08 mov 0x8(%ebp),%eax 80104295: 05 34 02 00 00 add $0x234,%eax 8010429a: 83 ec 0c sub $0xc,%esp 8010429d: 50 push %eax 8010429e: e8 79 0b 00 00 call 80104e1c <wakeup> 801042a3: 83 c4 10 add $0x10,%esp sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 801042a6: 8b 45 08 mov 0x8(%ebp),%eax 801042a9: 8b 55 08 mov 0x8(%ebp),%edx 801042ac: 81 c2 38 02 00 00 add $0x238,%edx 801042b2: 83 ec 08 sub $0x8,%esp 801042b5: 50 push %eax 801042b6: 52 push %edx 801042b7: e8 75 0a 00 00 call 80104d31 <sleep> 801042bc: 83 c4 10 add $0x10,%esp { int i; acquire(&p->lock); for(i = 0; i < n; i++){ while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 801042bf: 8b 45 08 mov 0x8(%ebp),%eax 801042c2: 8b 90 38 02 00 00 mov 0x238(%eax),%edx 801042c8: 8b 45 08 mov 0x8(%ebp),%eax 801042cb: 8b 80 34 02 00 00 mov 0x234(%eax),%eax 801042d1: 05 00 02 00 00 add $0x200,%eax 801042d6: 39 c2 cmp %eax,%edx 801042d8: 74 85 je 8010425f <pipewrite+0x21> return -1; } wakeup(&p->nread); sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep } p->data[p->nwrite++ % PIPESIZE] = addr[i]; 801042da: 8b 45 08 mov 0x8(%ebp),%eax 801042dd: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801042e3: 8d 48 01 lea 0x1(%eax),%ecx 801042e6: 8b 55 08 mov 0x8(%ebp),%edx 801042e9: 89 8a 38 02 00 00 mov %ecx,0x238(%edx) 801042ef: 25 ff 01 00 00 and $0x1ff,%eax 801042f4: 89 c1 mov %eax,%ecx 801042f6: 8b 55 f4 mov -0xc(%ebp),%edx 801042f9: 8b 45 0c mov 0xc(%ebp),%eax 801042fc: 01 d0 add %edx,%eax 801042fe: 0f b6 10 movzbl (%eax),%edx 80104301: 8b 45 08 mov 0x8(%ebp),%eax 80104304: 88 54 08 34 mov %dl,0x34(%eax,%ecx,1) pipewrite(struct pipe *p, char *addr, int n) { int i; acquire(&p->lock); for(i = 0; i < n; i++){ 80104308: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010430c: 8b 45 f4 mov -0xc(%ebp),%eax 8010430f: 3b 45 10 cmp 0x10(%ebp),%eax 80104312: 7c ab jl 801042bf <pipewrite+0x81> wakeup(&p->nread); sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep } p->data[p->nwrite++ % PIPESIZE] = addr[i]; } wakeup(&p->nread); //DOC: pipewrite-wakeup1 80104314: 8b 45 08 mov 0x8(%ebp),%eax 80104317: 05 34 02 00 00 add $0x234,%eax 8010431c: 83 ec 0c sub $0xc,%esp 8010431f: 50 push %eax 80104320: e8 f7 0a 00 00 call 80104e1c <wakeup> 80104325: 83 c4 10 add $0x10,%esp release(&p->lock); 80104328: 8b 45 08 mov 0x8(%ebp),%eax 8010432b: 83 ec 0c sub $0xc,%esp 8010432e: 50 push %eax 8010432f: e8 5d 0d 00 00 call 80105091 <release> 80104334: 83 c4 10 add $0x10,%esp return n; 80104337: 8b 45 10 mov 0x10(%ebp),%eax } 8010433a: c9 leave 8010433b: c3 ret 8010433c <piperead>: int piperead(struct pipe *p, char *addr, int n) { 8010433c: 55 push %ebp 8010433d: 89 e5 mov %esp,%ebp 8010433f: 53 push %ebx 80104340: 83 ec 14 sub $0x14,%esp int i; acquire(&p->lock); 80104343: 8b 45 08 mov 0x8(%ebp),%eax 80104346: 83 ec 0c sub $0xc,%esp 80104349: 50 push %eax 8010434a: e8 db 0c 00 00 call 8010502a <acquire> 8010434f: 83 c4 10 add $0x10,%esp while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 80104352: eb 3f jmp 80104393 <piperead+0x57> if(proc->killed){ 80104354: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010435a: 8b 40 24 mov 0x24(%eax),%eax 8010435d: 85 c0 test %eax,%eax 8010435f: 74 19 je 8010437a <piperead+0x3e> release(&p->lock); 80104361: 8b 45 08 mov 0x8(%ebp),%eax 80104364: 83 ec 0c sub $0xc,%esp 80104367: 50 push %eax 80104368: e8 24 0d 00 00 call 80105091 <release> 8010436d: 83 c4 10 add $0x10,%esp return -1; 80104370: b8 ff ff ff ff mov $0xffffffff,%eax 80104375: e9 bf 00 00 00 jmp 80104439 <piperead+0xfd> } sleep(&p->nread, &p->lock); //DOC: piperead-sleep 8010437a: 8b 45 08 mov 0x8(%ebp),%eax 8010437d: 8b 55 08 mov 0x8(%ebp),%edx 80104380: 81 c2 34 02 00 00 add $0x234,%edx 80104386: 83 ec 08 sub $0x8,%esp 80104389: 50 push %eax 8010438a: 52 push %edx 8010438b: e8 a1 09 00 00 call 80104d31 <sleep> 80104390: 83 c4 10 add $0x10,%esp piperead(struct pipe *p, char *addr, int n) { int i; acquire(&p->lock); while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 80104393: 8b 45 08 mov 0x8(%ebp),%eax 80104396: 8b 90 34 02 00 00 mov 0x234(%eax),%edx 8010439c: 8b 45 08 mov 0x8(%ebp),%eax 8010439f: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801043a5: 39 c2 cmp %eax,%edx 801043a7: 75 0d jne 801043b6 <piperead+0x7a> 801043a9: 8b 45 08 mov 0x8(%ebp),%eax 801043ac: 8b 80 40 02 00 00 mov 0x240(%eax),%eax 801043b2: 85 c0 test %eax,%eax 801043b4: 75 9e jne 80104354 <piperead+0x18> release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep } for(i = 0; i < n; i++){ //DOC: piperead-copy 801043b6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801043bd: eb 49 jmp 80104408 <piperead+0xcc> if(p->nread == p->nwrite) 801043bf: 8b 45 08 mov 0x8(%ebp),%eax 801043c2: 8b 90 34 02 00 00 mov 0x234(%eax),%edx 801043c8: 8b 45 08 mov 0x8(%ebp),%eax 801043cb: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801043d1: 39 c2 cmp %eax,%edx 801043d3: 74 3d je 80104412 <piperead+0xd6> break; addr[i] = p->data[p->nread++ % PIPESIZE]; 801043d5: 8b 55 f4 mov -0xc(%ebp),%edx 801043d8: 8b 45 0c mov 0xc(%ebp),%eax 801043db: 8d 1c 02 lea (%edx,%eax,1),%ebx 801043de: 8b 45 08 mov 0x8(%ebp),%eax 801043e1: 8b 80 34 02 00 00 mov 0x234(%eax),%eax 801043e7: 8d 48 01 lea 0x1(%eax),%ecx 801043ea: 8b 55 08 mov 0x8(%ebp),%edx 801043ed: 89 8a 34 02 00 00 mov %ecx,0x234(%edx) 801043f3: 25 ff 01 00 00 and $0x1ff,%eax 801043f8: 89 c2 mov %eax,%edx 801043fa: 8b 45 08 mov 0x8(%ebp),%eax 801043fd: 0f b6 44 10 34 movzbl 0x34(%eax,%edx,1),%eax 80104402: 88 03 mov %al,(%ebx) release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep } for(i = 0; i < n; i++){ //DOC: piperead-copy 80104404: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80104408: 8b 45 f4 mov -0xc(%ebp),%eax 8010440b: 3b 45 10 cmp 0x10(%ebp),%eax 8010440e: 7c af jl 801043bf <piperead+0x83> 80104410: eb 01 jmp 80104413 <piperead+0xd7> if(p->nread == p->nwrite) break; 80104412: 90 nop addr[i] = p->data[p->nread++ % PIPESIZE]; } wakeup(&p->nwrite); //DOC: piperead-wakeup 80104413: 8b 45 08 mov 0x8(%ebp),%eax 80104416: 05 38 02 00 00 add $0x238,%eax 8010441b: 83 ec 0c sub $0xc,%esp 8010441e: 50 push %eax 8010441f: e8 f8 09 00 00 call 80104e1c <wakeup> 80104424: 83 c4 10 add $0x10,%esp release(&p->lock); 80104427: 8b 45 08 mov 0x8(%ebp),%eax 8010442a: 83 ec 0c sub $0xc,%esp 8010442d: 50 push %eax 8010442e: e8 5e 0c 00 00 call 80105091 <release> 80104433: 83 c4 10 add $0x10,%esp return i; 80104436: 8b 45 f4 mov -0xc(%ebp),%eax } 80104439: 8b 5d fc mov -0x4(%ebp),%ebx 8010443c: c9 leave 8010443d: c3 ret 8010443e <readeflags>: asm volatile("ltr %0" : : "r" (sel)); } static inline uint readeflags(void) { 8010443e: 55 push %ebp 8010443f: 89 e5 mov %esp,%ebp 80104441: 83 ec 10 sub $0x10,%esp uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80104444: 9c pushf 80104445: 58 pop %eax 80104446: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80104449: 8b 45 fc mov -0x4(%ebp),%eax } 8010444c: c9 leave 8010444d: c3 ret 8010444e <sti>: asm volatile("cli"); } static inline void sti(void) { 8010444e: 55 push %ebp 8010444f: 89 e5 mov %esp,%ebp asm volatile("sti"); 80104451: fb sti } 80104452: 90 nop 80104453: 5d pop %ebp 80104454: c3 ret 80104455 <pinit>: extern void trapret(void); static void wakeup1(void *chan); void pinit(void) { 80104455: 55 push %ebp 80104456: 89 e5 mov %esp,%ebp 80104458: 83 ec 08 sub $0x8,%esp initlock(&ptable.lock, "ptable"); 8010445b: 83 ec 08 sub $0x8,%esp 8010445e: 68 99 88 10 80 push $0x80108899 80104463: 68 60 29 11 80 push $0x80112960 80104468: e8 9b 0b 00 00 call 80105008 <initlock> 8010446d: 83 c4 10 add $0x10,%esp } 80104470: 90 nop 80104471: c9 leave 80104472: c3 ret 80104473 <allocproc>: // If found, change state to EMBRYO and initialize // state required to run in the kernel. // Otherwise return 0. static struct proc* allocproc(void) { 80104473: 55 push %ebp 80104474: 89 e5 mov %esp,%ebp 80104476: 83 ec 18 sub $0x18,%esp struct proc *p; char *sp; acquire(&ptable.lock); 80104479: 83 ec 0c sub $0xc,%esp 8010447c: 68 60 29 11 80 push $0x80112960 80104481: e8 a4 0b 00 00 call 8010502a <acquire> 80104486: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104489: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 80104490: eb 0e jmp 801044a0 <allocproc+0x2d> if(p->state == UNUSED) 80104492: 8b 45 f4 mov -0xc(%ebp),%eax 80104495: 8b 40 0c mov 0xc(%eax),%eax 80104498: 85 c0 test %eax,%eax 8010449a: 74 27 je 801044c3 <allocproc+0x50> { struct proc *p; char *sp; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 8010449c: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 801044a0: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 801044a7: 72 e9 jb 80104492 <allocproc+0x1f> if(p->state == UNUSED) goto found; release(&ptable.lock); 801044a9: 83 ec 0c sub $0xc,%esp 801044ac: 68 60 29 11 80 push $0x80112960 801044b1: e8 db 0b 00 00 call 80105091 <release> 801044b6: 83 c4 10 add $0x10,%esp return 0; 801044b9: b8 00 00 00 00 mov $0x0,%eax 801044be: e9 b4 00 00 00 jmp 80104577 <allocproc+0x104> char *sp; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) if(p->state == UNUSED) goto found; 801044c3: 90 nop release(&ptable.lock); return 0; found: p->state = EMBRYO; 801044c4: 8b 45 f4 mov -0xc(%ebp),%eax 801044c7: c7 40 0c 01 00 00 00 movl $0x1,0xc(%eax) p->pid = nextpid++; 801044ce: a1 04 b0 10 80 mov 0x8010b004,%eax 801044d3: 8d 50 01 lea 0x1(%eax),%edx 801044d6: 89 15 04 b0 10 80 mov %edx,0x8010b004 801044dc: 8b 55 f4 mov -0xc(%ebp),%edx 801044df: 89 42 10 mov %eax,0x10(%edx) release(&ptable.lock); 801044e2: 83 ec 0c sub $0xc,%esp 801044e5: 68 60 29 11 80 push $0x80112960 801044ea: e8 a2 0b 00 00 call 80105091 <release> 801044ef: 83 c4 10 add $0x10,%esp // Allocate kernel stack. if((p->kstack = kalloc()) == 0){ 801044f2: e8 6f e7 ff ff call 80102c66 <kalloc> 801044f7: 89 c2 mov %eax,%edx 801044f9: 8b 45 f4 mov -0xc(%ebp),%eax 801044fc: 89 50 08 mov %edx,0x8(%eax) 801044ff: 8b 45 f4 mov -0xc(%ebp),%eax 80104502: 8b 40 08 mov 0x8(%eax),%eax 80104505: 85 c0 test %eax,%eax 80104507: 75 11 jne 8010451a <allocproc+0xa7> p->state = UNUSED; 80104509: 8b 45 f4 mov -0xc(%ebp),%eax 8010450c: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) return 0; 80104513: b8 00 00 00 00 mov $0x0,%eax 80104518: eb 5d jmp 80104577 <allocproc+0x104> } sp = p->kstack + KSTACKSIZE; 8010451a: 8b 45 f4 mov -0xc(%ebp),%eax 8010451d: 8b 40 08 mov 0x8(%eax),%eax 80104520: 05 00 10 00 00 add $0x1000,%eax 80104525: 89 45 f0 mov %eax,-0x10(%ebp) // Leave room for trap frame. sp -= sizeof *p->tf; 80104528: 83 6d f0 4c subl $0x4c,-0x10(%ebp) p->tf = (struct trapframe*)sp; 8010452c: 8b 45 f4 mov -0xc(%ebp),%eax 8010452f: 8b 55 f0 mov -0x10(%ebp),%edx 80104532: 89 50 18 mov %edx,0x18(%eax) // Set up new context to start executing at forkret, // which returns to trapret. sp -= 4; 80104535: 83 6d f0 04 subl $0x4,-0x10(%ebp) *(uint*)sp = (uint)trapret; 80104539: ba 67 66 10 80 mov $0x80106667,%edx 8010453e: 8b 45 f0 mov -0x10(%ebp),%eax 80104541: 89 10 mov %edx,(%eax) sp -= sizeof *p->context; 80104543: 83 6d f0 14 subl $0x14,-0x10(%ebp) p->context = (struct context*)sp; 80104547: 8b 45 f4 mov -0xc(%ebp),%eax 8010454a: 8b 55 f0 mov -0x10(%ebp),%edx 8010454d: 89 50 1c mov %edx,0x1c(%eax) memset(p->context, 0, sizeof *p->context); 80104550: 8b 45 f4 mov -0xc(%ebp),%eax 80104553: 8b 40 1c mov 0x1c(%eax),%eax 80104556: 83 ec 04 sub $0x4,%esp 80104559: 6a 14 push $0x14 8010455b: 6a 00 push $0x0 8010455d: 50 push %eax 8010455e: e8 2a 0d 00 00 call 8010528d <memset> 80104563: 83 c4 10 add $0x10,%esp p->context->eip = (uint)forkret; 80104566: 8b 45 f4 mov -0xc(%ebp),%eax 80104569: 8b 40 1c mov 0x1c(%eax),%eax 8010456c: ba eb 4c 10 80 mov $0x80104ceb,%edx 80104571: 89 50 10 mov %edx,0x10(%eax) return p; 80104574: 8b 45 f4 mov -0xc(%ebp),%eax } 80104577: c9 leave 80104578: c3 ret 80104579 <userinit>: //PAGEBREAK: 32 // Set up first user process. void userinit(void) { 80104579: 55 push %ebp 8010457a: 89 e5 mov %esp,%ebp 8010457c: 83 ec 18 sub $0x18,%esp struct proc *p; extern char _binary_initcode_start[], _binary_initcode_size[]; p = allocproc(); 8010457f: e8 ef fe ff ff call 80104473 <allocproc> 80104584: 89 45 f4 mov %eax,-0xc(%ebp) initproc = p; 80104587: 8b 45 f4 mov -0xc(%ebp),%eax 8010458a: a3 48 b6 10 80 mov %eax,0x8010b648 if((p->pgdir = setupkvm()) == 0) 8010458f: e8 98 37 00 00 call 80107d2c <setupkvm> 80104594: 89 c2 mov %eax,%edx 80104596: 8b 45 f4 mov -0xc(%ebp),%eax 80104599: 89 50 04 mov %edx,0x4(%eax) 8010459c: 8b 45 f4 mov -0xc(%ebp),%eax 8010459f: 8b 40 04 mov 0x4(%eax),%eax 801045a2: 85 c0 test %eax,%eax 801045a4: 75 0d jne 801045b3 <userinit+0x3a> panic("userinit: out of memory?"); 801045a6: 83 ec 0c sub $0xc,%esp 801045a9: 68 a0 88 10 80 push $0x801088a0 801045ae: e8 b3 bf ff ff call 80100566 <panic> inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); 801045b3: ba 2c 00 00 00 mov $0x2c,%edx 801045b8: 8b 45 f4 mov -0xc(%ebp),%eax 801045bb: 8b 40 04 mov 0x4(%eax),%eax 801045be: 83 ec 04 sub $0x4,%esp 801045c1: 52 push %edx 801045c2: 68 e0 b4 10 80 push $0x8010b4e0 801045c7: 50 push %eax 801045c8: e8 b9 39 00 00 call 80107f86 <inituvm> 801045cd: 83 c4 10 add $0x10,%esp p->sz = PGSIZE; 801045d0: 8b 45 f4 mov -0xc(%ebp),%eax 801045d3: c7 00 00 10 00 00 movl $0x1000,(%eax) memset(p->tf, 0, sizeof(*p->tf)); 801045d9: 8b 45 f4 mov -0xc(%ebp),%eax 801045dc: 8b 40 18 mov 0x18(%eax),%eax 801045df: 83 ec 04 sub $0x4,%esp 801045e2: 6a 4c push $0x4c 801045e4: 6a 00 push $0x0 801045e6: 50 push %eax 801045e7: e8 a1 0c 00 00 call 8010528d <memset> 801045ec: 83 c4 10 add $0x10,%esp p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 801045ef: 8b 45 f4 mov -0xc(%ebp),%eax 801045f2: 8b 40 18 mov 0x18(%eax),%eax 801045f5: 66 c7 40 3c 23 00 movw $0x23,0x3c(%eax) p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 801045fb: 8b 45 f4 mov -0xc(%ebp),%eax 801045fe: 8b 40 18 mov 0x18(%eax),%eax 80104601: 66 c7 40 2c 2b 00 movw $0x2b,0x2c(%eax) p->tf->es = p->tf->ds; 80104607: 8b 45 f4 mov -0xc(%ebp),%eax 8010460a: 8b 40 18 mov 0x18(%eax),%eax 8010460d: 8b 55 f4 mov -0xc(%ebp),%edx 80104610: 8b 52 18 mov 0x18(%edx),%edx 80104613: 0f b7 52 2c movzwl 0x2c(%edx),%edx 80104617: 66 89 50 28 mov %dx,0x28(%eax) p->tf->ss = p->tf->ds; 8010461b: 8b 45 f4 mov -0xc(%ebp),%eax 8010461e: 8b 40 18 mov 0x18(%eax),%eax 80104621: 8b 55 f4 mov -0xc(%ebp),%edx 80104624: 8b 52 18 mov 0x18(%edx),%edx 80104627: 0f b7 52 2c movzwl 0x2c(%edx),%edx 8010462b: 66 89 50 48 mov %dx,0x48(%eax) p->tf->eflags = FL_IF; 8010462f: 8b 45 f4 mov -0xc(%ebp),%eax 80104632: 8b 40 18 mov 0x18(%eax),%eax 80104635: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax) p->tf->esp = PGSIZE; 8010463c: 8b 45 f4 mov -0xc(%ebp),%eax 8010463f: 8b 40 18 mov 0x18(%eax),%eax 80104642: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax) p->tf->eip = 0; // beginning of initcode.S 80104649: 8b 45 f4 mov -0xc(%ebp),%eax 8010464c: 8b 40 18 mov 0x18(%eax),%eax 8010464f: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) safestrcpy(p->name, "initcode", sizeof(p->name)); 80104656: 8b 45 f4 mov -0xc(%ebp),%eax 80104659: 83 c0 6c add $0x6c,%eax 8010465c: 83 ec 04 sub $0x4,%esp 8010465f: 6a 10 push $0x10 80104661: 68 b9 88 10 80 push $0x801088b9 80104666: 50 push %eax 80104667: e8 24 0e 00 00 call 80105490 <safestrcpy> 8010466c: 83 c4 10 add $0x10,%esp p->cwd = namei("/"); 8010466f: 83 ec 0c sub $0xc,%esp 80104672: 68 c2 88 10 80 push $0x801088c2 80104677: e8 ac de ff ff call 80102528 <namei> 8010467c: 83 c4 10 add $0x10,%esp 8010467f: 89 c2 mov %eax,%edx 80104681: 8b 45 f4 mov -0xc(%ebp),%eax 80104684: 89 50 68 mov %edx,0x68(%eax) p->state = RUNNABLE; 80104687: 8b 45 f4 mov -0xc(%ebp),%eax 8010468a: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) } 80104691: 90 nop 80104692: c9 leave 80104693: c3 ret 80104694 <growproc>: // Grow current process's memory by n bytes. // Return 0 on success, -1 on failure. int growproc(int n) { 80104694: 55 push %ebp 80104695: 89 e5 mov %esp,%ebp 80104697: 83 ec 18 sub $0x18,%esp uint sz; sz = proc->sz; 8010469a: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801046a0: 8b 00 mov (%eax),%eax 801046a2: 89 45 f4 mov %eax,-0xc(%ebp) if(n > 0){ 801046a5: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801046a9: 7e 31 jle 801046dc <growproc+0x48> if((sz = allocuvm(proc->pgdir, sz, sz + n)) == 0) 801046ab: 8b 55 08 mov 0x8(%ebp),%edx 801046ae: 8b 45 f4 mov -0xc(%ebp),%eax 801046b1: 01 c2 add %eax,%edx 801046b3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801046b9: 8b 40 04 mov 0x4(%eax),%eax 801046bc: 83 ec 04 sub $0x4,%esp 801046bf: 52 push %edx 801046c0: ff 75 f4 pushl -0xc(%ebp) 801046c3: 50 push %eax 801046c4: e8 0a 3a 00 00 call 801080d3 <allocuvm> 801046c9: 83 c4 10 add $0x10,%esp 801046cc: 89 45 f4 mov %eax,-0xc(%ebp) 801046cf: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801046d3: 75 3e jne 80104713 <growproc+0x7f> return -1; 801046d5: b8 ff ff ff ff mov $0xffffffff,%eax 801046da: eb 59 jmp 80104735 <growproc+0xa1> } else if(n < 0){ 801046dc: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801046e0: 79 31 jns 80104713 <growproc+0x7f> if((sz = deallocuvm(proc->pgdir, sz, sz + n)) == 0) 801046e2: 8b 55 08 mov 0x8(%ebp),%edx 801046e5: 8b 45 f4 mov -0xc(%ebp),%eax 801046e8: 01 c2 add %eax,%edx 801046ea: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801046f0: 8b 40 04 mov 0x4(%eax),%eax 801046f3: 83 ec 04 sub $0x4,%esp 801046f6: 52 push %edx 801046f7: ff 75 f4 pushl -0xc(%ebp) 801046fa: 50 push %eax 801046fb: e8 9c 3a 00 00 call 8010819c <deallocuvm> 80104700: 83 c4 10 add $0x10,%esp 80104703: 89 45 f4 mov %eax,-0xc(%ebp) 80104706: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010470a: 75 07 jne 80104713 <growproc+0x7f> return -1; 8010470c: b8 ff ff ff ff mov $0xffffffff,%eax 80104711: eb 22 jmp 80104735 <growproc+0xa1> } proc->sz = sz; 80104713: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104719: 8b 55 f4 mov -0xc(%ebp),%edx 8010471c: 89 10 mov %edx,(%eax) switchuvm(proc); 8010471e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104724: 83 ec 0c sub $0xc,%esp 80104727: 50 push %eax 80104728: e8 e6 36 00 00 call 80107e13 <switchuvm> 8010472d: 83 c4 10 add $0x10,%esp return 0; 80104730: b8 00 00 00 00 mov $0x0,%eax } 80104735: c9 leave 80104736: c3 ret 80104737 <fork>: // Create a new process copying p as the parent. // Sets up stack to return as if from system call. // Caller must set state of returned proc to RUNNABLE. int fork(void) { 80104737: 55 push %ebp 80104738: 89 e5 mov %esp,%ebp 8010473a: 57 push %edi 8010473b: 56 push %esi 8010473c: 53 push %ebx 8010473d: 83 ec 1c sub $0x1c,%esp int i, pid; struct proc *np; // Allocate process. if((np = allocproc()) == 0) 80104740: e8 2e fd ff ff call 80104473 <allocproc> 80104745: 89 45 e0 mov %eax,-0x20(%ebp) 80104748: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 8010474c: 75 0a jne 80104758 <fork+0x21> return -1; 8010474e: b8 ff ff ff ff mov $0xffffffff,%eax 80104753: e9 68 01 00 00 jmp 801048c0 <fork+0x189> // Copy process state from p. if((np->pgdir = copyuvm(proc->pgdir, proc->sz)) == 0){ 80104758: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010475e: 8b 10 mov (%eax),%edx 80104760: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104766: 8b 40 04 mov 0x4(%eax),%eax 80104769: 83 ec 08 sub $0x8,%esp 8010476c: 52 push %edx 8010476d: 50 push %eax 8010476e: e8 c7 3b 00 00 call 8010833a <copyuvm> 80104773: 83 c4 10 add $0x10,%esp 80104776: 89 c2 mov %eax,%edx 80104778: 8b 45 e0 mov -0x20(%ebp),%eax 8010477b: 89 50 04 mov %edx,0x4(%eax) 8010477e: 8b 45 e0 mov -0x20(%ebp),%eax 80104781: 8b 40 04 mov 0x4(%eax),%eax 80104784: 85 c0 test %eax,%eax 80104786: 75 30 jne 801047b8 <fork+0x81> kfree(np->kstack); 80104788: 8b 45 e0 mov -0x20(%ebp),%eax 8010478b: 8b 40 08 mov 0x8(%eax),%eax 8010478e: 83 ec 0c sub $0xc,%esp 80104791: 50 push %eax 80104792: e8 32 e4 ff ff call 80102bc9 <kfree> 80104797: 83 c4 10 add $0x10,%esp np->kstack = 0; 8010479a: 8b 45 e0 mov -0x20(%ebp),%eax 8010479d: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) np->state = UNUSED; 801047a4: 8b 45 e0 mov -0x20(%ebp),%eax 801047a7: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) return -1; 801047ae: b8 ff ff ff ff mov $0xffffffff,%eax 801047b3: e9 08 01 00 00 jmp 801048c0 <fork+0x189> } np->sz = proc->sz; 801047b8: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801047be: 8b 10 mov (%eax),%edx 801047c0: 8b 45 e0 mov -0x20(%ebp),%eax 801047c3: 89 10 mov %edx,(%eax) np->parent = proc; 801047c5: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 801047cc: 8b 45 e0 mov -0x20(%ebp),%eax 801047cf: 89 50 14 mov %edx,0x14(%eax) *np->tf = *proc->tf; 801047d2: 8b 45 e0 mov -0x20(%ebp),%eax 801047d5: 8b 50 18 mov 0x18(%eax),%edx 801047d8: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801047de: 8b 40 18 mov 0x18(%eax),%eax 801047e1: 89 c3 mov %eax,%ebx 801047e3: b8 13 00 00 00 mov $0x13,%eax 801047e8: 89 d7 mov %edx,%edi 801047ea: 89 de mov %ebx,%esi 801047ec: 89 c1 mov %eax,%ecx 801047ee: f3 a5 rep movsl %ds:(%esi),%es:(%edi) // Clear %eax so that fork returns 0 in the child. np->tf->eax = 0; 801047f0: 8b 45 e0 mov -0x20(%ebp),%eax 801047f3: 8b 40 18 mov 0x18(%eax),%eax 801047f6: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) for(i = 0; i < NOFILE; i++) 801047fd: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80104804: eb 43 jmp 80104849 <fork+0x112> if(proc->ofile[i]) 80104806: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010480c: 8b 55 e4 mov -0x1c(%ebp),%edx 8010480f: 83 c2 08 add $0x8,%edx 80104812: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104816: 85 c0 test %eax,%eax 80104818: 74 2b je 80104845 <fork+0x10e> np->ofile[i] = filedup(proc->ofile[i]); 8010481a: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104820: 8b 55 e4 mov -0x1c(%ebp),%edx 80104823: 83 c2 08 add $0x8,%edx 80104826: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 8010482a: 83 ec 0c sub $0xc,%esp 8010482d: 50 push %eax 8010482e: e8 cd c7 ff ff call 80101000 <filedup> 80104833: 83 c4 10 add $0x10,%esp 80104836: 89 c1 mov %eax,%ecx 80104838: 8b 45 e0 mov -0x20(%ebp),%eax 8010483b: 8b 55 e4 mov -0x1c(%ebp),%edx 8010483e: 83 c2 08 add $0x8,%edx 80104841: 89 4c 90 08 mov %ecx,0x8(%eax,%edx,4) *np->tf = *proc->tf; // Clear %eax so that fork returns 0 in the child. np->tf->eax = 0; for(i = 0; i < NOFILE; i++) 80104845: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 80104849: 83 7d e4 0f cmpl $0xf,-0x1c(%ebp) 8010484d: 7e b7 jle 80104806 <fork+0xcf> if(proc->ofile[i]) np->ofile[i] = filedup(proc->ofile[i]); np->cwd = idup(proc->cwd); 8010484f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104855: 8b 40 68 mov 0x68(%eax),%eax 80104858: 83 ec 0c sub $0xc,%esp 8010485b: 50 push %eax 8010485c: e8 cf d0 ff ff call 80101930 <idup> 80104861: 83 c4 10 add $0x10,%esp 80104864: 89 c2 mov %eax,%edx 80104866: 8b 45 e0 mov -0x20(%ebp),%eax 80104869: 89 50 68 mov %edx,0x68(%eax) safestrcpy(np->name, proc->name, sizeof(proc->name)); 8010486c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104872: 8d 50 6c lea 0x6c(%eax),%edx 80104875: 8b 45 e0 mov -0x20(%ebp),%eax 80104878: 83 c0 6c add $0x6c,%eax 8010487b: 83 ec 04 sub $0x4,%esp 8010487e: 6a 10 push $0x10 80104880: 52 push %edx 80104881: 50 push %eax 80104882: e8 09 0c 00 00 call 80105490 <safestrcpy> 80104887: 83 c4 10 add $0x10,%esp pid = np->pid; 8010488a: 8b 45 e0 mov -0x20(%ebp),%eax 8010488d: 8b 40 10 mov 0x10(%eax),%eax 80104890: 89 45 dc mov %eax,-0x24(%ebp) // lock to force the compiler to emit the np->state write last. acquire(&ptable.lock); 80104893: 83 ec 0c sub $0xc,%esp 80104896: 68 60 29 11 80 push $0x80112960 8010489b: e8 8a 07 00 00 call 8010502a <acquire> 801048a0: 83 c4 10 add $0x10,%esp np->state = RUNNABLE; 801048a3: 8b 45 e0 mov -0x20(%ebp),%eax 801048a6: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 801048ad: 83 ec 0c sub $0xc,%esp 801048b0: 68 60 29 11 80 push $0x80112960 801048b5: e8 d7 07 00 00 call 80105091 <release> 801048ba: 83 c4 10 add $0x10,%esp return pid; 801048bd: 8b 45 dc mov -0x24(%ebp),%eax } 801048c0: 8d 65 f4 lea -0xc(%ebp),%esp 801048c3: 5b pop %ebx 801048c4: 5e pop %esi 801048c5: 5f pop %edi 801048c6: 5d pop %ebp 801048c7: c3 ret 801048c8 <exit>: // Exit the current process. Does not return. // An exited process remains in the zombie state // until its parent calls wait() to find out it exited. void exit(void) { 801048c8: 55 push %ebp 801048c9: 89 e5 mov %esp,%ebp 801048cb: 83 ec 18 sub $0x18,%esp struct proc *p; int fd; if(proc == initproc) 801048ce: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 801048d5: a1 48 b6 10 80 mov 0x8010b648,%eax 801048da: 39 c2 cmp %eax,%edx 801048dc: 75 0d jne 801048eb <exit+0x23> panic("init exiting"); 801048de: 83 ec 0c sub $0xc,%esp 801048e1: 68 c4 88 10 80 push $0x801088c4 801048e6: e8 7b bc ff ff call 80100566 <panic> // Close all open files. for(fd = 0; fd < NOFILE; fd++){ 801048eb: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 801048f2: eb 48 jmp 8010493c <exit+0x74> if(proc->ofile[fd]){ 801048f4: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801048fa: 8b 55 f0 mov -0x10(%ebp),%edx 801048fd: 83 c2 08 add $0x8,%edx 80104900: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104904: 85 c0 test %eax,%eax 80104906: 74 30 je 80104938 <exit+0x70> fileclose(proc->ofile[fd]); 80104908: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010490e: 8b 55 f0 mov -0x10(%ebp),%edx 80104911: 83 c2 08 add $0x8,%edx 80104914: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104918: 83 ec 0c sub $0xc,%esp 8010491b: 50 push %eax 8010491c: e8 30 c7 ff ff call 80101051 <fileclose> 80104921: 83 c4 10 add $0x10,%esp proc->ofile[fd] = 0; 80104924: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010492a: 8b 55 f0 mov -0x10(%ebp),%edx 8010492d: 83 c2 08 add $0x8,%edx 80104930: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 80104937: 00 if(proc == initproc) panic("init exiting"); // Close all open files. for(fd = 0; fd < NOFILE; fd++){ 80104938: 83 45 f0 01 addl $0x1,-0x10(%ebp) 8010493c: 83 7d f0 0f cmpl $0xf,-0x10(%ebp) 80104940: 7e b2 jle 801048f4 <exit+0x2c> fileclose(proc->ofile[fd]); proc->ofile[fd] = 0; } } begin_op(); 80104942: e8 06 ec ff ff call 8010354d <begin_op> iput(proc->cwd); 80104947: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010494d: 8b 40 68 mov 0x68(%eax),%eax 80104950: 83 ec 0c sub $0xc,%esp 80104953: 50 push %eax 80104954: e8 e1 d1 ff ff call 80101b3a <iput> 80104959: 83 c4 10 add $0x10,%esp end_op(); 8010495c: e8 78 ec ff ff call 801035d9 <end_op> proc->cwd = 0; 80104961: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104967: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax) acquire(&ptable.lock); 8010496e: 83 ec 0c sub $0xc,%esp 80104971: 68 60 29 11 80 push $0x80112960 80104976: e8 af 06 00 00 call 8010502a <acquire> 8010497b: 83 c4 10 add $0x10,%esp // Parent might be sleeping in wait(). wakeup1(proc->parent); 8010497e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104984: 8b 40 14 mov 0x14(%eax),%eax 80104987: 83 ec 0c sub $0xc,%esp 8010498a: 50 push %eax 8010498b: e8 4d 04 00 00 call 80104ddd <wakeup1> 80104990: 83 c4 10 add $0x10,%esp // Pass abandoned children to init. for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104993: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 8010499a: eb 3c jmp 801049d8 <exit+0x110> if(p->parent == proc){ 8010499c: 8b 45 f4 mov -0xc(%ebp),%eax 8010499f: 8b 50 14 mov 0x14(%eax),%edx 801049a2: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801049a8: 39 c2 cmp %eax,%edx 801049aa: 75 28 jne 801049d4 <exit+0x10c> p->parent = initproc; 801049ac: 8b 15 48 b6 10 80 mov 0x8010b648,%edx 801049b2: 8b 45 f4 mov -0xc(%ebp),%eax 801049b5: 89 50 14 mov %edx,0x14(%eax) if(p->state == ZOMBIE) 801049b8: 8b 45 f4 mov -0xc(%ebp),%eax 801049bb: 8b 40 0c mov 0xc(%eax),%eax 801049be: 83 f8 05 cmp $0x5,%eax 801049c1: 75 11 jne 801049d4 <exit+0x10c> wakeup1(initproc); 801049c3: a1 48 b6 10 80 mov 0x8010b648,%eax 801049c8: 83 ec 0c sub $0xc,%esp 801049cb: 50 push %eax 801049cc: e8 0c 04 00 00 call 80104ddd <wakeup1> 801049d1: 83 c4 10 add $0x10,%esp // Parent might be sleeping in wait(). wakeup1(proc->parent); // Pass abandoned children to init. for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 801049d4: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 801049d8: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 801049df: 72 bb jb 8010499c <exit+0xd4> wakeup1(initproc); } } // Jump into the scheduler, never to return. proc->state = ZOMBIE; 801049e1: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801049e7: c7 40 0c 05 00 00 00 movl $0x5,0xc(%eax) sched(); 801049ee: e8 01 02 00 00 call 80104bf4 <sched> panic("zombie exit"); 801049f3: 83 ec 0c sub $0xc,%esp 801049f6: 68 d1 88 10 80 push $0x801088d1 801049fb: e8 66 bb ff ff call 80100566 <panic> 80104a00 <wait>: // Wait for a child process to exit and return its pid. // Return -1 if this process has no children. int wait(void) { 80104a00: 55 push %ebp 80104a01: 89 e5 mov %esp,%ebp 80104a03: 83 ec 18 sub $0x18,%esp struct proc *p; int havekids, pid; acquire(&ptable.lock); 80104a06: 83 ec 0c sub $0xc,%esp 80104a09: 68 60 29 11 80 push $0x80112960 80104a0e: e8 17 06 00 00 call 8010502a <acquire> 80104a13: 83 c4 10 add $0x10,%esp for(;;){ // Scan through table looking for zombie children. havekids = 0; 80104a16: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104a1d: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 80104a24: e9 a6 00 00 00 jmp 80104acf <wait+0xcf> if(p->parent != proc) 80104a29: 8b 45 f4 mov -0xc(%ebp),%eax 80104a2c: 8b 50 14 mov 0x14(%eax),%edx 80104a2f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104a35: 39 c2 cmp %eax,%edx 80104a37: 0f 85 8d 00 00 00 jne 80104aca <wait+0xca> continue; havekids = 1; 80104a3d: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) if(p->state == ZOMBIE){ 80104a44: 8b 45 f4 mov -0xc(%ebp),%eax 80104a47: 8b 40 0c mov 0xc(%eax),%eax 80104a4a: 83 f8 05 cmp $0x5,%eax 80104a4d: 75 7c jne 80104acb <wait+0xcb> // Found one. pid = p->pid; 80104a4f: 8b 45 f4 mov -0xc(%ebp),%eax 80104a52: 8b 40 10 mov 0x10(%eax),%eax 80104a55: 89 45 ec mov %eax,-0x14(%ebp) kfree(p->kstack); 80104a58: 8b 45 f4 mov -0xc(%ebp),%eax 80104a5b: 8b 40 08 mov 0x8(%eax),%eax 80104a5e: 83 ec 0c sub $0xc,%esp 80104a61: 50 push %eax 80104a62: e8 62 e1 ff ff call 80102bc9 <kfree> 80104a67: 83 c4 10 add $0x10,%esp p->kstack = 0; 80104a6a: 8b 45 f4 mov -0xc(%ebp),%eax 80104a6d: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) freevm(p->pgdir); 80104a74: 8b 45 f4 mov -0xc(%ebp),%eax 80104a77: 8b 40 04 mov 0x4(%eax),%eax 80104a7a: 83 ec 0c sub $0xc,%esp 80104a7d: 50 push %eax 80104a7e: e8 d6 37 00 00 call 80108259 <freevm> 80104a83: 83 c4 10 add $0x10,%esp p->state = UNUSED; 80104a86: 8b 45 f4 mov -0xc(%ebp),%eax 80104a89: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) p->pid = 0; 80104a90: 8b 45 f4 mov -0xc(%ebp),%eax 80104a93: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) p->parent = 0; 80104a9a: 8b 45 f4 mov -0xc(%ebp),%eax 80104a9d: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) p->name[0] = 0; 80104aa4: 8b 45 f4 mov -0xc(%ebp),%eax 80104aa7: c6 40 6c 00 movb $0x0,0x6c(%eax) p->killed = 0; 80104aab: 8b 45 f4 mov -0xc(%ebp),%eax 80104aae: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) release(&ptable.lock); 80104ab5: 83 ec 0c sub $0xc,%esp 80104ab8: 68 60 29 11 80 push $0x80112960 80104abd: e8 cf 05 00 00 call 80105091 <release> 80104ac2: 83 c4 10 add $0x10,%esp return pid; 80104ac5: 8b 45 ec mov -0x14(%ebp),%eax 80104ac8: eb 58 jmp 80104b22 <wait+0x122> for(;;){ // Scan through table looking for zombie children. havekids = 0; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ if(p->parent != proc) continue; 80104aca: 90 nop acquire(&ptable.lock); for(;;){ // Scan through table looking for zombie children. havekids = 0; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104acb: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 80104acf: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 80104ad6: 0f 82 4d ff ff ff jb 80104a29 <wait+0x29> return pid; } } // No point waiting if we don't have any children. if(!havekids || proc->killed){ 80104adc: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80104ae0: 74 0d je 80104aef <wait+0xef> 80104ae2: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104ae8: 8b 40 24 mov 0x24(%eax),%eax 80104aeb: 85 c0 test %eax,%eax 80104aed: 74 17 je 80104b06 <wait+0x106> release(&ptable.lock); 80104aef: 83 ec 0c sub $0xc,%esp 80104af2: 68 60 29 11 80 push $0x80112960 80104af7: e8 95 05 00 00 call 80105091 <release> 80104afc: 83 c4 10 add $0x10,%esp return -1; 80104aff: b8 ff ff ff ff mov $0xffffffff,%eax 80104b04: eb 1c jmp 80104b22 <wait+0x122> } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(proc, &ptable.lock); //DOC: wait-sleep 80104b06: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104b0c: 83 ec 08 sub $0x8,%esp 80104b0f: 68 60 29 11 80 push $0x80112960 80104b14: 50 push %eax 80104b15: e8 17 02 00 00 call 80104d31 <sleep> 80104b1a: 83 c4 10 add $0x10,%esp } 80104b1d: e9 f4 fe ff ff jmp 80104a16 <wait+0x16> } 80104b22: c9 leave 80104b23: c3 ret 80104b24 <scheduler>: // - swtch to start running that process // - eventually that process transfers control // via swtch back to the scheduler. void scheduler(void) { 80104b24: 55 push %ebp 80104b25: 89 e5 mov %esp,%ebp 80104b27: 83 ec 18 sub $0x18,%esp cprintf("Start scheduler"); 80104b2a: 83 ec 0c sub $0xc,%esp 80104b2d: 68 dd 88 10 80 push $0x801088dd 80104b32: e8 8f b8 ff ff call 801003c6 <cprintf> 80104b37: 83 c4 10 add $0x10,%esp struct proc *p; for(;;){ // Enable interrupts on this processor. sti(); 80104b3a: e8 0f f9 ff ff call 8010444e <sti> // Loop over process table looking for process to run. acquire(&ptable.lock); 80104b3f: 83 ec 0c sub $0xc,%esp 80104b42: 68 60 29 11 80 push $0x80112960 80104b47: e8 de 04 00 00 call 8010502a <acquire> 80104b4c: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104b4f: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 80104b56: eb 7a jmp 80104bd2 <scheduler+0xae> if(p->state != RUNNABLE) 80104b58: 8b 45 f4 mov -0xc(%ebp),%eax 80104b5b: 8b 40 0c mov 0xc(%eax),%eax 80104b5e: 83 f8 03 cmp $0x3,%eax 80104b61: 75 6a jne 80104bcd <scheduler+0xa9> continue; cprintf("Process %d ran for 100ms\n", p->pid); 80104b63: 8b 45 f4 mov -0xc(%ebp),%eax 80104b66: 8b 40 10 mov 0x10(%eax),%eax 80104b69: 83 ec 08 sub $0x8,%esp 80104b6c: 50 push %eax 80104b6d: 68 ed 88 10 80 push $0x801088ed 80104b72: e8 4f b8 ff ff call 801003c6 <cprintf> 80104b77: 83 c4 10 add $0x10,%esp // Switch to chosen process. It is the process's job // to release ptable.lock and then reacquire it // before jumping back to us. proc = p; 80104b7a: 8b 45 f4 mov -0xc(%ebp),%eax 80104b7d: 65 a3 04 00 00 00 mov %eax,%gs:0x4 switchuvm(p); 80104b83: 83 ec 0c sub $0xc,%esp 80104b86: ff 75 f4 pushl -0xc(%ebp) 80104b89: e8 85 32 00 00 call 80107e13 <switchuvm> 80104b8e: 83 c4 10 add $0x10,%esp p->state = RUNNING; 80104b91: 8b 45 f4 mov -0xc(%ebp),%eax 80104b94: c7 40 0c 04 00 00 00 movl $0x4,0xc(%eax) swtch(&cpu->scheduler, proc->context); 80104b9b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104ba1: 8b 40 1c mov 0x1c(%eax),%eax 80104ba4: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80104bab: 83 c2 04 add $0x4,%edx 80104bae: 83 ec 08 sub $0x8,%esp 80104bb1: 50 push %eax 80104bb2: 52 push %edx 80104bb3: e8 49 09 00 00 call 80105501 <swtch> 80104bb8: 83 c4 10 add $0x10,%esp switchkvm(); 80104bbb: e8 36 32 00 00 call 80107df6 <switchkvm> // Process is done running for now. // It should have changed its p->state before coming back. proc = 0; 80104bc0: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4 80104bc7: 00 00 00 00 80104bcb: eb 01 jmp 80104bce <scheduler+0xaa> // Loop over process table looking for process to run. acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ if(p->state != RUNNABLE) continue; 80104bcd: 90 nop // Enable interrupts on this processor. sti(); // Loop over process table looking for process to run. acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104bce: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 80104bd2: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 80104bd9: 0f 82 79 ff ff ff jb 80104b58 <scheduler+0x34> // Process is done running for now. // It should have changed its p->state before coming back. proc = 0; } release(&ptable.lock); 80104bdf: 83 ec 0c sub $0xc,%esp 80104be2: 68 60 29 11 80 push $0x80112960 80104be7: e8 a5 04 00 00 call 80105091 <release> 80104bec: 83 c4 10 add $0x10,%esp } 80104bef: e9 46 ff ff ff jmp 80104b3a <scheduler+0x16> 80104bf4 <sched>: // Enter scheduler. Must hold only ptable.lock // and have changed proc->state. void sched(void) { 80104bf4: 55 push %ebp 80104bf5: 89 e5 mov %esp,%ebp 80104bf7: 83 ec 18 sub $0x18,%esp int intena; if(!holding(&ptable.lock)) 80104bfa: 83 ec 0c sub $0xc,%esp 80104bfd: 68 60 29 11 80 push $0x80112960 80104c02: e8 56 05 00 00 call 8010515d <holding> 80104c07: 83 c4 10 add $0x10,%esp 80104c0a: 85 c0 test %eax,%eax 80104c0c: 75 0d jne 80104c1b <sched+0x27> panic("sched ptable.lock"); 80104c0e: 83 ec 0c sub $0xc,%esp 80104c11: 68 07 89 10 80 push $0x80108907 80104c16: e8 4b b9 ff ff call 80100566 <panic> if(cpu->ncli != 1) 80104c1b: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104c21: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 80104c27: 83 f8 01 cmp $0x1,%eax 80104c2a: 74 0d je 80104c39 <sched+0x45> panic("sched locks"); 80104c2c: 83 ec 0c sub $0xc,%esp 80104c2f: 68 19 89 10 80 push $0x80108919 80104c34: e8 2d b9 ff ff call 80100566 <panic> if(proc->state == RUNNING) 80104c39: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104c3f: 8b 40 0c mov 0xc(%eax),%eax 80104c42: 83 f8 04 cmp $0x4,%eax 80104c45: 75 0d jne 80104c54 <sched+0x60> panic("sched running"); 80104c47: 83 ec 0c sub $0xc,%esp 80104c4a: 68 25 89 10 80 push $0x80108925 80104c4f: e8 12 b9 ff ff call 80100566 <panic> if(readeflags()&FL_IF) 80104c54: e8 e5 f7 ff ff call 8010443e <readeflags> 80104c59: 25 00 02 00 00 and $0x200,%eax 80104c5e: 85 c0 test %eax,%eax 80104c60: 74 0d je 80104c6f <sched+0x7b> panic("sched interruptible"); 80104c62: 83 ec 0c sub $0xc,%esp 80104c65: 68 33 89 10 80 push $0x80108933 80104c6a: e8 f7 b8 ff ff call 80100566 <panic> intena = cpu->intena; 80104c6f: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104c75: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax 80104c7b: 89 45 f4 mov %eax,-0xc(%ebp) swtch(&proc->context, cpu->scheduler); 80104c7e: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104c84: 8b 40 04 mov 0x4(%eax),%eax 80104c87: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 80104c8e: 83 c2 1c add $0x1c,%edx 80104c91: 83 ec 08 sub $0x8,%esp 80104c94: 50 push %eax 80104c95: 52 push %edx 80104c96: e8 66 08 00 00 call 80105501 <swtch> 80104c9b: 83 c4 10 add $0x10,%esp cpu->intena = intena; 80104c9e: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104ca4: 8b 55 f4 mov -0xc(%ebp),%edx 80104ca7: 89 90 b0 00 00 00 mov %edx,0xb0(%eax) } 80104cad: 90 nop 80104cae: c9 leave 80104caf: c3 ret 80104cb0 <yield>: // Give up the CPU for one scheduling round. void yield(void) { 80104cb0: 55 push %ebp 80104cb1: 89 e5 mov %esp,%ebp 80104cb3: 83 ec 08 sub $0x8,%esp acquire(&ptable.lock); //DOC: yieldlock 80104cb6: 83 ec 0c sub $0xc,%esp 80104cb9: 68 60 29 11 80 push $0x80112960 80104cbe: e8 67 03 00 00 call 8010502a <acquire> 80104cc3: 83 c4 10 add $0x10,%esp proc->state = RUNNABLE; 80104cc6: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104ccc: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) sched(); 80104cd3: e8 1c ff ff ff call 80104bf4 <sched> release(&ptable.lock); 80104cd8: 83 ec 0c sub $0xc,%esp 80104cdb: 68 60 29 11 80 push $0x80112960 80104ce0: e8 ac 03 00 00 call 80105091 <release> 80104ce5: 83 c4 10 add $0x10,%esp } 80104ce8: 90 nop 80104ce9: c9 leave 80104cea: c3 ret 80104ceb <forkret>: // A fork child's very first scheduling by scheduler() // will swtch here. "Return" to user space. void forkret(void) { 80104ceb: 55 push %ebp 80104cec: 89 e5 mov %esp,%ebp 80104cee: 83 ec 08 sub $0x8,%esp static int first = 1; // Still holding ptable.lock from scheduler. release(&ptable.lock); 80104cf1: 83 ec 0c sub $0xc,%esp 80104cf4: 68 60 29 11 80 push $0x80112960 80104cf9: e8 93 03 00 00 call 80105091 <release> 80104cfe: 83 c4 10 add $0x10,%esp if (first) { 80104d01: a1 08 b0 10 80 mov 0x8010b008,%eax 80104d06: 85 c0 test %eax,%eax 80104d08: 74 24 je 80104d2e <forkret+0x43> // Some initialization functions must be run in the context // of a regular process (e.g., they call sleep), and thus cannot // be run from main(). first = 0; 80104d0a: c7 05 08 b0 10 80 00 movl $0x0,0x8010b008 80104d11: 00 00 00 iinit(ROOTDEV); 80104d14: 83 ec 0c sub $0xc,%esp 80104d17: 6a 01 push $0x1 80104d19: e8 20 c9 ff ff call 8010163e <iinit> 80104d1e: 83 c4 10 add $0x10,%esp initlog(ROOTDEV); 80104d21: 83 ec 0c sub $0xc,%esp 80104d24: 6a 01 push $0x1 80104d26: e8 04 e6 ff ff call 8010332f <initlog> 80104d2b: 83 c4 10 add $0x10,%esp } // Return to "caller", actually trapret (see allocproc). } 80104d2e: 90 nop 80104d2f: c9 leave 80104d30: c3 ret 80104d31 <sleep>: // Atomically release lock and sleep on chan. // Reacquires lock when awakened. void sleep(void *chan, struct spinlock *lk) { 80104d31: 55 push %ebp 80104d32: 89 e5 mov %esp,%ebp 80104d34: 83 ec 08 sub $0x8,%esp if(proc == 0) 80104d37: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104d3d: 85 c0 test %eax,%eax 80104d3f: 75 0d jne 80104d4e <sleep+0x1d> panic("sleep"); 80104d41: 83 ec 0c sub $0xc,%esp 80104d44: 68 47 89 10 80 push $0x80108947 80104d49: e8 18 b8 ff ff call 80100566 <panic> if(lk == 0) 80104d4e: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80104d52: 75 0d jne 80104d61 <sleep+0x30> panic("sleep without lk"); 80104d54: 83 ec 0c sub $0xc,%esp 80104d57: 68 4d 89 10 80 push $0x8010894d 80104d5c: e8 05 b8 ff ff call 80100566 <panic> // change p->state and then call sched. // Once we hold ptable.lock, we can be // guaranteed that we won't miss any wakeup // (wakeup runs with ptable.lock locked), // so it's okay to release lk. if(lk != &ptable.lock){ //DOC: sleeplock0 80104d61: 81 7d 0c 60 29 11 80 cmpl $0x80112960,0xc(%ebp) 80104d68: 74 1e je 80104d88 <sleep+0x57> acquire(&ptable.lock); //DOC: sleeplock1 80104d6a: 83 ec 0c sub $0xc,%esp 80104d6d: 68 60 29 11 80 push $0x80112960 80104d72: e8 b3 02 00 00 call 8010502a <acquire> 80104d77: 83 c4 10 add $0x10,%esp release(lk); 80104d7a: 83 ec 0c sub $0xc,%esp 80104d7d: ff 75 0c pushl 0xc(%ebp) 80104d80: e8 0c 03 00 00 call 80105091 <release> 80104d85: 83 c4 10 add $0x10,%esp } // Go to sleep. proc->chan = chan; 80104d88: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104d8e: 8b 55 08 mov 0x8(%ebp),%edx 80104d91: 89 50 20 mov %edx,0x20(%eax) proc->state = SLEEPING; 80104d94: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104d9a: c7 40 0c 02 00 00 00 movl $0x2,0xc(%eax) sched(); 80104da1: e8 4e fe ff ff call 80104bf4 <sched> // Tidy up. proc->chan = 0; 80104da6: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104dac: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) // Reacquire original lock. if(lk != &ptable.lock){ //DOC: sleeplock2 80104db3: 81 7d 0c 60 29 11 80 cmpl $0x80112960,0xc(%ebp) 80104dba: 74 1e je 80104dda <sleep+0xa9> release(&ptable.lock); 80104dbc: 83 ec 0c sub $0xc,%esp 80104dbf: 68 60 29 11 80 push $0x80112960 80104dc4: e8 c8 02 00 00 call 80105091 <release> 80104dc9: 83 c4 10 add $0x10,%esp acquire(lk); 80104dcc: 83 ec 0c sub $0xc,%esp 80104dcf: ff 75 0c pushl 0xc(%ebp) 80104dd2: e8 53 02 00 00 call 8010502a <acquire> 80104dd7: 83 c4 10 add $0x10,%esp } } 80104dda: 90 nop 80104ddb: c9 leave 80104ddc: c3 ret 80104ddd <wakeup1>: //PAGEBREAK! // Wake up all processes sleeping on chan. // The ptable lock must be held. static void wakeup1(void *chan) { 80104ddd: 55 push %ebp 80104dde: 89 e5 mov %esp,%ebp 80104de0: 83 ec 10 sub $0x10,%esp struct proc *p; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104de3: c7 45 fc 94 29 11 80 movl $0x80112994,-0x4(%ebp) 80104dea: eb 24 jmp 80104e10 <wakeup1+0x33> if(p->state == SLEEPING && p->chan == chan) 80104dec: 8b 45 fc mov -0x4(%ebp),%eax 80104def: 8b 40 0c mov 0xc(%eax),%eax 80104df2: 83 f8 02 cmp $0x2,%eax 80104df5: 75 15 jne 80104e0c <wakeup1+0x2f> 80104df7: 8b 45 fc mov -0x4(%ebp),%eax 80104dfa: 8b 40 20 mov 0x20(%eax),%eax 80104dfd: 3b 45 08 cmp 0x8(%ebp),%eax 80104e00: 75 0a jne 80104e0c <wakeup1+0x2f> p->state = RUNNABLE; 80104e02: 8b 45 fc mov -0x4(%ebp),%eax 80104e05: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) static void wakeup1(void *chan) { struct proc *p; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104e0c: 83 45 fc 7c addl $0x7c,-0x4(%ebp) 80104e10: 81 7d fc 94 48 11 80 cmpl $0x80114894,-0x4(%ebp) 80104e17: 72 d3 jb 80104dec <wakeup1+0xf> if(p->state == SLEEPING && p->chan == chan) p->state = RUNNABLE; } 80104e19: 90 nop 80104e1a: c9 leave 80104e1b: c3 ret 80104e1c <wakeup>: // Wake up all processes sleeping on chan. void wakeup(void *chan) { 80104e1c: 55 push %ebp 80104e1d: 89 e5 mov %esp,%ebp 80104e1f: 83 ec 08 sub $0x8,%esp acquire(&ptable.lock); 80104e22: 83 ec 0c sub $0xc,%esp 80104e25: 68 60 29 11 80 push $0x80112960 80104e2a: e8 fb 01 00 00 call 8010502a <acquire> 80104e2f: 83 c4 10 add $0x10,%esp wakeup1(chan); 80104e32: 83 ec 0c sub $0xc,%esp 80104e35: ff 75 08 pushl 0x8(%ebp) 80104e38: e8 a0 ff ff ff call 80104ddd <wakeup1> 80104e3d: 83 c4 10 add $0x10,%esp release(&ptable.lock); 80104e40: 83 ec 0c sub $0xc,%esp 80104e43: 68 60 29 11 80 push $0x80112960 80104e48: e8 44 02 00 00 call 80105091 <release> 80104e4d: 83 c4 10 add $0x10,%esp } 80104e50: 90 nop 80104e51: c9 leave 80104e52: c3 ret 80104e53 <kill>: // Kill the process with the given pid. // Process won't exit until it returns // to user space (see trap in trap.c). int kill(int pid) { 80104e53: 55 push %ebp 80104e54: 89 e5 mov %esp,%ebp 80104e56: 83 ec 18 sub $0x18,%esp struct proc *p; acquire(&ptable.lock); 80104e59: 83 ec 0c sub $0xc,%esp 80104e5c: 68 60 29 11 80 push $0x80112960 80104e61: e8 c4 01 00 00 call 8010502a <acquire> 80104e66: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104e69: c7 45 f4 94 29 11 80 movl $0x80112994,-0xc(%ebp) 80104e70: eb 45 jmp 80104eb7 <kill+0x64> if(p->pid == pid){ 80104e72: 8b 45 f4 mov -0xc(%ebp),%eax 80104e75: 8b 40 10 mov 0x10(%eax),%eax 80104e78: 3b 45 08 cmp 0x8(%ebp),%eax 80104e7b: 75 36 jne 80104eb3 <kill+0x60> p->killed = 1; 80104e7d: 8b 45 f4 mov -0xc(%ebp),%eax 80104e80: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) // Wake process from sleep if necessary. if(p->state == SLEEPING) 80104e87: 8b 45 f4 mov -0xc(%ebp),%eax 80104e8a: 8b 40 0c mov 0xc(%eax),%eax 80104e8d: 83 f8 02 cmp $0x2,%eax 80104e90: 75 0a jne 80104e9c <kill+0x49> p->state = RUNNABLE; 80104e92: 8b 45 f4 mov -0xc(%ebp),%eax 80104e95: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 80104e9c: 83 ec 0c sub $0xc,%esp 80104e9f: 68 60 29 11 80 push $0x80112960 80104ea4: e8 e8 01 00 00 call 80105091 <release> 80104ea9: 83 c4 10 add $0x10,%esp return 0; 80104eac: b8 00 00 00 00 mov $0x0,%eax 80104eb1: eb 22 jmp 80104ed5 <kill+0x82> kill(int pid) { struct proc *p; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104eb3: 83 45 f4 7c addl $0x7c,-0xc(%ebp) 80104eb7: 81 7d f4 94 48 11 80 cmpl $0x80114894,-0xc(%ebp) 80104ebe: 72 b2 jb 80104e72 <kill+0x1f> p->state = RUNNABLE; release(&ptable.lock); return 0; } } release(&ptable.lock); 80104ec0: 83 ec 0c sub $0xc,%esp 80104ec3: 68 60 29 11 80 push $0x80112960 80104ec8: e8 c4 01 00 00 call 80105091 <release> 80104ecd: 83 c4 10 add $0x10,%esp return -1; 80104ed0: b8 ff ff ff ff mov $0xffffffff,%eax } 80104ed5: c9 leave 80104ed6: c3 ret 80104ed7 <procdump>: // Print a process listing to console. For debugging. // Runs when user types ^P on console. // No lock to avoid wedging a stuck machine further. void procdump(void) { 80104ed7: 55 push %ebp 80104ed8: 89 e5 mov %esp,%ebp 80104eda: 83 ec 48 sub $0x48,%esp int i; struct proc *p; char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104edd: c7 45 f0 94 29 11 80 movl $0x80112994,-0x10(%ebp) 80104ee4: e9 d7 00 00 00 jmp 80104fc0 <procdump+0xe9> if(p->state == UNUSED) 80104ee9: 8b 45 f0 mov -0x10(%ebp),%eax 80104eec: 8b 40 0c mov 0xc(%eax),%eax 80104eef: 85 c0 test %eax,%eax 80104ef1: 0f 84 c4 00 00 00 je 80104fbb <procdump+0xe4> continue; if(p->state >= 0 && p->state < NELEM(states) && states[p->state]) 80104ef7: 8b 45 f0 mov -0x10(%ebp),%eax 80104efa: 8b 40 0c mov 0xc(%eax),%eax 80104efd: 83 f8 05 cmp $0x5,%eax 80104f00: 77 23 ja 80104f25 <procdump+0x4e> 80104f02: 8b 45 f0 mov -0x10(%ebp),%eax 80104f05: 8b 40 0c mov 0xc(%eax),%eax 80104f08: 8b 04 85 0c b0 10 80 mov -0x7fef4ff4(,%eax,4),%eax 80104f0f: 85 c0 test %eax,%eax 80104f11: 74 12 je 80104f25 <procdump+0x4e> state = states[p->state]; 80104f13: 8b 45 f0 mov -0x10(%ebp),%eax 80104f16: 8b 40 0c mov 0xc(%eax),%eax 80104f19: 8b 04 85 0c b0 10 80 mov -0x7fef4ff4(,%eax,4),%eax 80104f20: 89 45 ec mov %eax,-0x14(%ebp) 80104f23: eb 07 jmp 80104f2c <procdump+0x55> else state = "???"; 80104f25: c7 45 ec 5e 89 10 80 movl $0x8010895e,-0x14(%ebp) cprintf("%d %s %s", p->pid, state, p->name); 80104f2c: 8b 45 f0 mov -0x10(%ebp),%eax 80104f2f: 8d 50 6c lea 0x6c(%eax),%edx 80104f32: 8b 45 f0 mov -0x10(%ebp),%eax 80104f35: 8b 40 10 mov 0x10(%eax),%eax 80104f38: 52 push %edx 80104f39: ff 75 ec pushl -0x14(%ebp) 80104f3c: 50 push %eax 80104f3d: 68 62 89 10 80 push $0x80108962 80104f42: e8 7f b4 ff ff call 801003c6 <cprintf> 80104f47: 83 c4 10 add $0x10,%esp if(p->state == SLEEPING){ 80104f4a: 8b 45 f0 mov -0x10(%ebp),%eax 80104f4d: 8b 40 0c mov 0xc(%eax),%eax 80104f50: 83 f8 02 cmp $0x2,%eax 80104f53: 75 54 jne 80104fa9 <procdump+0xd2> getcallerpcs((uint*)p->context->ebp+2, pc); 80104f55: 8b 45 f0 mov -0x10(%ebp),%eax 80104f58: 8b 40 1c mov 0x1c(%eax),%eax 80104f5b: 8b 40 0c mov 0xc(%eax),%eax 80104f5e: 83 c0 08 add $0x8,%eax 80104f61: 89 c2 mov %eax,%edx 80104f63: 83 ec 08 sub $0x8,%esp 80104f66: 8d 45 c4 lea -0x3c(%ebp),%eax 80104f69: 50 push %eax 80104f6a: 52 push %edx 80104f6b: e8 73 01 00 00 call 801050e3 <getcallerpcs> 80104f70: 83 c4 10 add $0x10,%esp for(i=0; i<10 && pc[i] != 0; i++) 80104f73: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80104f7a: eb 1c jmp 80104f98 <procdump+0xc1> cprintf(" %p", pc[i]); 80104f7c: 8b 45 f4 mov -0xc(%ebp),%eax 80104f7f: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax 80104f83: 83 ec 08 sub $0x8,%esp 80104f86: 50 push %eax 80104f87: 68 6b 89 10 80 push $0x8010896b 80104f8c: e8 35 b4 ff ff call 801003c6 <cprintf> 80104f91: 83 c4 10 add $0x10,%esp else state = "???"; cprintf("%d %s %s", p->pid, state, p->name); if(p->state == SLEEPING){ getcallerpcs((uint*)p->context->ebp+2, pc); for(i=0; i<10 && pc[i] != 0; i++) 80104f94: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80104f98: 83 7d f4 09 cmpl $0x9,-0xc(%ebp) 80104f9c: 7f 0b jg 80104fa9 <procdump+0xd2> 80104f9e: 8b 45 f4 mov -0xc(%ebp),%eax 80104fa1: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax 80104fa5: 85 c0 test %eax,%eax 80104fa7: 75 d3 jne 80104f7c <procdump+0xa5> cprintf(" %p", pc[i]); } cprintf("\n"); 80104fa9: 83 ec 0c sub $0xc,%esp 80104fac: 68 6f 89 10 80 push $0x8010896f 80104fb1: e8 10 b4 ff ff call 801003c6 <cprintf> 80104fb6: 83 c4 10 add $0x10,%esp 80104fb9: eb 01 jmp 80104fbc <procdump+0xe5> char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ if(p->state == UNUSED) continue; 80104fbb: 90 nop int i; struct proc *p; char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104fbc: 83 45 f0 7c addl $0x7c,-0x10(%ebp) 80104fc0: 81 7d f0 94 48 11 80 cmpl $0x80114894,-0x10(%ebp) 80104fc7: 0f 82 1c ff ff ff jb 80104ee9 <procdump+0x12> for(i=0; i<10 && pc[i] != 0; i++) cprintf(" %p", pc[i]); } cprintf("\n"); } } 80104fcd: 90 nop 80104fce: c9 leave 80104fcf: c3 ret 80104fd0 <readeflags>: asm volatile("ltr %0" : : "r" (sel)); } static inline uint readeflags(void) { 80104fd0: 55 push %ebp 80104fd1: 89 e5 mov %esp,%ebp 80104fd3: 83 ec 10 sub $0x10,%esp uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80104fd6: 9c pushf 80104fd7: 58 pop %eax 80104fd8: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80104fdb: 8b 45 fc mov -0x4(%ebp),%eax } 80104fde: c9 leave 80104fdf: c3 ret 80104fe0 <cli>: asm volatile("movw %0, %%gs" : : "r" (v)); } static inline void cli(void) { 80104fe0: 55 push %ebp 80104fe1: 89 e5 mov %esp,%ebp asm volatile("cli"); 80104fe3: fa cli } 80104fe4: 90 nop 80104fe5: 5d pop %ebp 80104fe6: c3 ret 80104fe7 <sti>: static inline void sti(void) { 80104fe7: 55 push %ebp 80104fe8: 89 e5 mov %esp,%ebp asm volatile("sti"); 80104fea: fb sti } 80104feb: 90 nop 80104fec: 5d pop %ebp 80104fed: c3 ret 80104fee <xchg>: static inline uint xchg(volatile uint *addr, uint newval) { 80104fee: 55 push %ebp 80104fef: 89 e5 mov %esp,%ebp 80104ff1: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 80104ff4: 8b 55 08 mov 0x8(%ebp),%edx 80104ff7: 8b 45 0c mov 0xc(%ebp),%eax 80104ffa: 8b 4d 08 mov 0x8(%ebp),%ecx 80104ffd: f0 87 02 lock xchg %eax,(%edx) 80105000: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; 80105003: 8b 45 fc mov -0x4(%ebp),%eax } 80105006: c9 leave 80105007: c3 ret 80105008 <initlock>: #include "proc.h" #include "spinlock.h" void initlock(struct spinlock *lk, char *name) { 80105008: 55 push %ebp 80105009: 89 e5 mov %esp,%ebp lk->name = name; 8010500b: 8b 45 08 mov 0x8(%ebp),%eax 8010500e: 8b 55 0c mov 0xc(%ebp),%edx 80105011: 89 50 04 mov %edx,0x4(%eax) lk->locked = 0; 80105014: 8b 45 08 mov 0x8(%ebp),%eax 80105017: c7 00 00 00 00 00 movl $0x0,(%eax) lk->cpu = 0; 8010501d: 8b 45 08 mov 0x8(%ebp),%eax 80105020: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } 80105027: 90 nop 80105028: 5d pop %ebp 80105029: c3 ret 8010502a <acquire>: // Loops (spins) until the lock is acquired. // Holding a lock for a long time may cause // other CPUs to waste time spinning to acquire it. void acquire(struct spinlock *lk) { 8010502a: 55 push %ebp 8010502b: 89 e5 mov %esp,%ebp 8010502d: 83 ec 08 sub $0x8,%esp pushcli(); // disable interrupts to avoid deadlock. 80105030: e8 52 01 00 00 call 80105187 <pushcli> if(holding(lk)) 80105035: 8b 45 08 mov 0x8(%ebp),%eax 80105038: 83 ec 0c sub $0xc,%esp 8010503b: 50 push %eax 8010503c: e8 1c 01 00 00 call 8010515d <holding> 80105041: 83 c4 10 add $0x10,%esp 80105044: 85 c0 test %eax,%eax 80105046: 74 0d je 80105055 <acquire+0x2b> panic("acquire"); 80105048: 83 ec 0c sub $0xc,%esp 8010504b: 68 9b 89 10 80 push $0x8010899b 80105050: e8 11 b5 ff ff call 80100566 <panic> // The xchg is atomic. // It also serializes, so that reads after acquire are not // reordered before it. while(xchg(&lk->locked, 1) != 0) 80105055: 90 nop 80105056: 8b 45 08 mov 0x8(%ebp),%eax 80105059: 83 ec 08 sub $0x8,%esp 8010505c: 6a 01 push $0x1 8010505e: 50 push %eax 8010505f: e8 8a ff ff ff call 80104fee <xchg> 80105064: 83 c4 10 add $0x10,%esp 80105067: 85 c0 test %eax,%eax 80105069: 75 eb jne 80105056 <acquire+0x2c> ; // Record info about lock acquisition for debugging. lk->cpu = cpu; 8010506b: 8b 45 08 mov 0x8(%ebp),%eax 8010506e: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80105075: 89 50 08 mov %edx,0x8(%eax) getcallerpcs(&lk, lk->pcs); 80105078: 8b 45 08 mov 0x8(%ebp),%eax 8010507b: 83 c0 0c add $0xc,%eax 8010507e: 83 ec 08 sub $0x8,%esp 80105081: 50 push %eax 80105082: 8d 45 08 lea 0x8(%ebp),%eax 80105085: 50 push %eax 80105086: e8 58 00 00 00 call 801050e3 <getcallerpcs> 8010508b: 83 c4 10 add $0x10,%esp } 8010508e: 90 nop 8010508f: c9 leave 80105090: c3 ret 80105091 <release>: // Release the lock. void release(struct spinlock *lk) { 80105091: 55 push %ebp 80105092: 89 e5 mov %esp,%ebp 80105094: 83 ec 08 sub $0x8,%esp if(!holding(lk)) 80105097: 83 ec 0c sub $0xc,%esp 8010509a: ff 75 08 pushl 0x8(%ebp) 8010509d: e8 bb 00 00 00 call 8010515d <holding> 801050a2: 83 c4 10 add $0x10,%esp 801050a5: 85 c0 test %eax,%eax 801050a7: 75 0d jne 801050b6 <release+0x25> panic("release"); 801050a9: 83 ec 0c sub $0xc,%esp 801050ac: 68 a3 89 10 80 push $0x801089a3 801050b1: e8 b0 b4 ff ff call 80100566 <panic> lk->pcs[0] = 0; 801050b6: 8b 45 08 mov 0x8(%ebp),%eax 801050b9: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) lk->cpu = 0; 801050c0: 8b 45 08 mov 0x8(%ebp),%eax 801050c3: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) // But the 2007 Intel 64 Architecture Memory Ordering White // Paper says that Intel 64 and IA-32 will not move a load // after a store. So lock->locked = 0 would work here. // The xchg being asm volatile ensures gcc emits it after // the above assignments (and after the critical section). xchg(&lk->locked, 0); 801050ca: 8b 45 08 mov 0x8(%ebp),%eax 801050cd: 83 ec 08 sub $0x8,%esp 801050d0: 6a 00 push $0x0 801050d2: 50 push %eax 801050d3: e8 16 ff ff ff call 80104fee <xchg> 801050d8: 83 c4 10 add $0x10,%esp popcli(); 801050db: e8 ec 00 00 00 call 801051cc <popcli> } 801050e0: 90 nop 801050e1: c9 leave 801050e2: c3 ret 801050e3 <getcallerpcs>: // Record the current call stack in pcs[] by following the %ebp chain. void getcallerpcs(void *v, uint pcs[]) { 801050e3: 55 push %ebp 801050e4: 89 e5 mov %esp,%ebp 801050e6: 83 ec 10 sub $0x10,%esp uint *ebp; int i; ebp = (uint*)v - 2; 801050e9: 8b 45 08 mov 0x8(%ebp),%eax 801050ec: 83 e8 08 sub $0x8,%eax 801050ef: 89 45 fc mov %eax,-0x4(%ebp) for(i = 0; i < 10; i++){ 801050f2: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp) 801050f9: eb 38 jmp 80105133 <getcallerpcs+0x50> if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 801050fb: 83 7d fc 00 cmpl $0x0,-0x4(%ebp) 801050ff: 74 53 je 80105154 <getcallerpcs+0x71> 80105101: 81 7d fc ff ff ff 7f cmpl $0x7fffffff,-0x4(%ebp) 80105108: 76 4a jbe 80105154 <getcallerpcs+0x71> 8010510a: 83 7d fc ff cmpl $0xffffffff,-0x4(%ebp) 8010510e: 74 44 je 80105154 <getcallerpcs+0x71> break; pcs[i] = ebp[1]; // saved %eip 80105110: 8b 45 f8 mov -0x8(%ebp),%eax 80105113: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 8010511a: 8b 45 0c mov 0xc(%ebp),%eax 8010511d: 01 c2 add %eax,%edx 8010511f: 8b 45 fc mov -0x4(%ebp),%eax 80105122: 8b 40 04 mov 0x4(%eax),%eax 80105125: 89 02 mov %eax,(%edx) ebp = (uint*)ebp[0]; // saved %ebp 80105127: 8b 45 fc mov -0x4(%ebp),%eax 8010512a: 8b 00 mov (%eax),%eax 8010512c: 89 45 fc mov %eax,-0x4(%ebp) { uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 8010512f: 83 45 f8 01 addl $0x1,-0x8(%ebp) 80105133: 83 7d f8 09 cmpl $0x9,-0x8(%ebp) 80105137: 7e c2 jle 801050fb <getcallerpcs+0x18> if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) 80105139: eb 19 jmp 80105154 <getcallerpcs+0x71> pcs[i] = 0; 8010513b: 8b 45 f8 mov -0x8(%ebp),%eax 8010513e: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80105145: 8b 45 0c mov 0xc(%ebp),%eax 80105148: 01 d0 add %edx,%eax 8010514a: c7 00 00 00 00 00 movl $0x0,(%eax) if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) 80105150: 83 45 f8 01 addl $0x1,-0x8(%ebp) 80105154: 83 7d f8 09 cmpl $0x9,-0x8(%ebp) 80105158: 7e e1 jle 8010513b <getcallerpcs+0x58> pcs[i] = 0; } 8010515a: 90 nop 8010515b: c9 leave 8010515c: c3 ret 8010515d <holding>: // Check whether this cpu is holding the lock. int holding(struct spinlock *lock) { 8010515d: 55 push %ebp 8010515e: 89 e5 mov %esp,%ebp return lock->locked && lock->cpu == cpu; 80105160: 8b 45 08 mov 0x8(%ebp),%eax 80105163: 8b 00 mov (%eax),%eax 80105165: 85 c0 test %eax,%eax 80105167: 74 17 je 80105180 <holding+0x23> 80105169: 8b 45 08 mov 0x8(%ebp),%eax 8010516c: 8b 50 08 mov 0x8(%eax),%edx 8010516f: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80105175: 39 c2 cmp %eax,%edx 80105177: 75 07 jne 80105180 <holding+0x23> 80105179: b8 01 00 00 00 mov $0x1,%eax 8010517e: eb 05 jmp 80105185 <holding+0x28> 80105180: b8 00 00 00 00 mov $0x0,%eax } 80105185: 5d pop %ebp 80105186: c3 ret 80105187 <pushcli>: // it takes two popcli to undo two pushcli. Also, if interrupts // are off, then pushcli, popcli leaves them off. void pushcli(void) { 80105187: 55 push %ebp 80105188: 89 e5 mov %esp,%ebp 8010518a: 83 ec 10 sub $0x10,%esp int eflags; eflags = readeflags(); 8010518d: e8 3e fe ff ff call 80104fd0 <readeflags> 80105192: 89 45 fc mov %eax,-0x4(%ebp) cli(); 80105195: e8 46 fe ff ff call 80104fe0 <cli> if(cpu->ncli++ == 0) 8010519a: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 801051a1: 8b 82 ac 00 00 00 mov 0xac(%edx),%eax 801051a7: 8d 48 01 lea 0x1(%eax),%ecx 801051aa: 89 8a ac 00 00 00 mov %ecx,0xac(%edx) 801051b0: 85 c0 test %eax,%eax 801051b2: 75 15 jne 801051c9 <pushcli+0x42> cpu->intena = eflags & FL_IF; 801051b4: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801051ba: 8b 55 fc mov -0x4(%ebp),%edx 801051bd: 81 e2 00 02 00 00 and $0x200,%edx 801051c3: 89 90 b0 00 00 00 mov %edx,0xb0(%eax) } 801051c9: 90 nop 801051ca: c9 leave 801051cb: c3 ret 801051cc <popcli>: void popcli(void) { 801051cc: 55 push %ebp 801051cd: 89 e5 mov %esp,%ebp 801051cf: 83 ec 08 sub $0x8,%esp if(readeflags()&FL_IF) 801051d2: e8 f9 fd ff ff call 80104fd0 <readeflags> 801051d7: 25 00 02 00 00 and $0x200,%eax 801051dc: 85 c0 test %eax,%eax 801051de: 74 0d je 801051ed <popcli+0x21> panic("popcli - interruptible"); 801051e0: 83 ec 0c sub $0xc,%esp 801051e3: 68 ab 89 10 80 push $0x801089ab 801051e8: e8 79 b3 ff ff call 80100566 <panic> if(--cpu->ncli < 0) 801051ed: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801051f3: 8b 90 ac 00 00 00 mov 0xac(%eax),%edx 801051f9: 83 ea 01 sub $0x1,%edx 801051fc: 89 90 ac 00 00 00 mov %edx,0xac(%eax) 80105202: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 80105208: 85 c0 test %eax,%eax 8010520a: 79 0d jns 80105219 <popcli+0x4d> panic("popcli"); 8010520c: 83 ec 0c sub $0xc,%esp 8010520f: 68 c2 89 10 80 push $0x801089c2 80105214: e8 4d b3 ff ff call 80100566 <panic> if(cpu->ncli == 0 && cpu->intena) 80105219: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010521f: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 80105225: 85 c0 test %eax,%eax 80105227: 75 15 jne 8010523e <popcli+0x72> 80105229: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010522f: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax 80105235: 85 c0 test %eax,%eax 80105237: 74 05 je 8010523e <popcli+0x72> sti(); 80105239: e8 a9 fd ff ff call 80104fe7 <sti> } 8010523e: 90 nop 8010523f: c9 leave 80105240: c3 ret 80105241 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 80105241: 55 push %ebp 80105242: 89 e5 mov %esp,%ebp 80105244: 57 push %edi 80105245: 53 push %ebx asm volatile("cld; rep stosb" : 80105246: 8b 4d 08 mov 0x8(%ebp),%ecx 80105249: 8b 55 10 mov 0x10(%ebp),%edx 8010524c: 8b 45 0c mov 0xc(%ebp),%eax 8010524f: 89 cb mov %ecx,%ebx 80105251: 89 df mov %ebx,%edi 80105253: 89 d1 mov %edx,%ecx 80105255: fc cld 80105256: f3 aa rep stos %al,%es:(%edi) 80105258: 89 ca mov %ecx,%edx 8010525a: 89 fb mov %edi,%ebx 8010525c: 89 5d 08 mov %ebx,0x8(%ebp) 8010525f: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 80105262: 90 nop 80105263: 5b pop %ebx 80105264: 5f pop %edi 80105265: 5d pop %ebp 80105266: c3 ret 80105267 <stosl>: static inline void stosl(void *addr, int data, int cnt) { 80105267: 55 push %ebp 80105268: 89 e5 mov %esp,%ebp 8010526a: 57 push %edi 8010526b: 53 push %ebx asm volatile("cld; rep stosl" : 8010526c: 8b 4d 08 mov 0x8(%ebp),%ecx 8010526f: 8b 55 10 mov 0x10(%ebp),%edx 80105272: 8b 45 0c mov 0xc(%ebp),%eax 80105275: 89 cb mov %ecx,%ebx 80105277: 89 df mov %ebx,%edi 80105279: 89 d1 mov %edx,%ecx 8010527b: fc cld 8010527c: f3 ab rep stos %eax,%es:(%edi) 8010527e: 89 ca mov %ecx,%edx 80105280: 89 fb mov %edi,%ebx 80105282: 89 5d 08 mov %ebx,0x8(%ebp) 80105285: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 80105288: 90 nop 80105289: 5b pop %ebx 8010528a: 5f pop %edi 8010528b: 5d pop %ebp 8010528c: c3 ret 8010528d <memset>: #include "types.h" #include "x86.h" void* memset(void *dst, int c, uint n) { 8010528d: 55 push %ebp 8010528e: 89 e5 mov %esp,%ebp if ((int)dst%4 == 0 && n%4 == 0){ 80105290: 8b 45 08 mov 0x8(%ebp),%eax 80105293: 83 e0 03 and $0x3,%eax 80105296: 85 c0 test %eax,%eax 80105298: 75 43 jne 801052dd <memset+0x50> 8010529a: 8b 45 10 mov 0x10(%ebp),%eax 8010529d: 83 e0 03 and $0x3,%eax 801052a0: 85 c0 test %eax,%eax 801052a2: 75 39 jne 801052dd <memset+0x50> c &= 0xFF; 801052a4: 81 65 0c ff 00 00 00 andl $0xff,0xc(%ebp) stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 801052ab: 8b 45 10 mov 0x10(%ebp),%eax 801052ae: c1 e8 02 shr $0x2,%eax 801052b1: 89 c1 mov %eax,%ecx 801052b3: 8b 45 0c mov 0xc(%ebp),%eax 801052b6: c1 e0 18 shl $0x18,%eax 801052b9: 89 c2 mov %eax,%edx 801052bb: 8b 45 0c mov 0xc(%ebp),%eax 801052be: c1 e0 10 shl $0x10,%eax 801052c1: 09 c2 or %eax,%edx 801052c3: 8b 45 0c mov 0xc(%ebp),%eax 801052c6: c1 e0 08 shl $0x8,%eax 801052c9: 09 d0 or %edx,%eax 801052cb: 0b 45 0c or 0xc(%ebp),%eax 801052ce: 51 push %ecx 801052cf: 50 push %eax 801052d0: ff 75 08 pushl 0x8(%ebp) 801052d3: e8 8f ff ff ff call 80105267 <stosl> 801052d8: 83 c4 0c add $0xc,%esp 801052db: eb 12 jmp 801052ef <memset+0x62> } else stosb(dst, c, n); 801052dd: 8b 45 10 mov 0x10(%ebp),%eax 801052e0: 50 push %eax 801052e1: ff 75 0c pushl 0xc(%ebp) 801052e4: ff 75 08 pushl 0x8(%ebp) 801052e7: e8 55 ff ff ff call 80105241 <stosb> 801052ec: 83 c4 0c add $0xc,%esp return dst; 801052ef: 8b 45 08 mov 0x8(%ebp),%eax } 801052f2: c9 leave 801052f3: c3 ret 801052f4 <memcmp>: int memcmp(const void *v1, const void *v2, uint n) { 801052f4: 55 push %ebp 801052f5: 89 e5 mov %esp,%ebp 801052f7: 83 ec 10 sub $0x10,%esp const uchar *s1, *s2; s1 = v1; 801052fa: 8b 45 08 mov 0x8(%ebp),%eax 801052fd: 89 45 fc mov %eax,-0x4(%ebp) s2 = v2; 80105300: 8b 45 0c mov 0xc(%ebp),%eax 80105303: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0){ 80105306: eb 30 jmp 80105338 <memcmp+0x44> if(*s1 != *s2) 80105308: 8b 45 fc mov -0x4(%ebp),%eax 8010530b: 0f b6 10 movzbl (%eax),%edx 8010530e: 8b 45 f8 mov -0x8(%ebp),%eax 80105311: 0f b6 00 movzbl (%eax),%eax 80105314: 38 c2 cmp %al,%dl 80105316: 74 18 je 80105330 <memcmp+0x3c> return *s1 - *s2; 80105318: 8b 45 fc mov -0x4(%ebp),%eax 8010531b: 0f b6 00 movzbl (%eax),%eax 8010531e: 0f b6 d0 movzbl %al,%edx 80105321: 8b 45 f8 mov -0x8(%ebp),%eax 80105324: 0f b6 00 movzbl (%eax),%eax 80105327: 0f b6 c0 movzbl %al,%eax 8010532a: 29 c2 sub %eax,%edx 8010532c: 89 d0 mov %edx,%eax 8010532e: eb 1a jmp 8010534a <memcmp+0x56> s1++, s2++; 80105330: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80105334: 83 45 f8 01 addl $0x1,-0x8(%ebp) { const uchar *s1, *s2; s1 = v1; s2 = v2; while(n-- > 0){ 80105338: 8b 45 10 mov 0x10(%ebp),%eax 8010533b: 8d 50 ff lea -0x1(%eax),%edx 8010533e: 89 55 10 mov %edx,0x10(%ebp) 80105341: 85 c0 test %eax,%eax 80105343: 75 c3 jne 80105308 <memcmp+0x14> if(*s1 != *s2) return *s1 - *s2; s1++, s2++; } return 0; 80105345: b8 00 00 00 00 mov $0x0,%eax } 8010534a: c9 leave 8010534b: c3 ret 8010534c <memmove>: void* memmove(void *dst, const void *src, uint n) { 8010534c: 55 push %ebp 8010534d: 89 e5 mov %esp,%ebp 8010534f: 83 ec 10 sub $0x10,%esp const char *s; char *d; s = src; 80105352: 8b 45 0c mov 0xc(%ebp),%eax 80105355: 89 45 fc mov %eax,-0x4(%ebp) d = dst; 80105358: 8b 45 08 mov 0x8(%ebp),%eax 8010535b: 89 45 f8 mov %eax,-0x8(%ebp) if(s < d && s + n > d){ 8010535e: 8b 45 fc mov -0x4(%ebp),%eax 80105361: 3b 45 f8 cmp -0x8(%ebp),%eax 80105364: 73 54 jae 801053ba <memmove+0x6e> 80105366: 8b 55 fc mov -0x4(%ebp),%edx 80105369: 8b 45 10 mov 0x10(%ebp),%eax 8010536c: 01 d0 add %edx,%eax 8010536e: 3b 45 f8 cmp -0x8(%ebp),%eax 80105371: 76 47 jbe 801053ba <memmove+0x6e> s += n; 80105373: 8b 45 10 mov 0x10(%ebp),%eax 80105376: 01 45 fc add %eax,-0x4(%ebp) d += n; 80105379: 8b 45 10 mov 0x10(%ebp),%eax 8010537c: 01 45 f8 add %eax,-0x8(%ebp) while(n-- > 0) 8010537f: eb 13 jmp 80105394 <memmove+0x48> *--d = *--s; 80105381: 83 6d f8 01 subl $0x1,-0x8(%ebp) 80105385: 83 6d fc 01 subl $0x1,-0x4(%ebp) 80105389: 8b 45 fc mov -0x4(%ebp),%eax 8010538c: 0f b6 10 movzbl (%eax),%edx 8010538f: 8b 45 f8 mov -0x8(%ebp),%eax 80105392: 88 10 mov %dl,(%eax) s = src; d = dst; if(s < d && s + n > d){ s += n; d += n; while(n-- > 0) 80105394: 8b 45 10 mov 0x10(%ebp),%eax 80105397: 8d 50 ff lea -0x1(%eax),%edx 8010539a: 89 55 10 mov %edx,0x10(%ebp) 8010539d: 85 c0 test %eax,%eax 8010539f: 75 e0 jne 80105381 <memmove+0x35> const char *s; char *d; s = src; d = dst; if(s < d && s + n > d){ 801053a1: eb 24 jmp 801053c7 <memmove+0x7b> d += n; while(n-- > 0) *--d = *--s; } else while(n-- > 0) *d++ = *s++; 801053a3: 8b 45 f8 mov -0x8(%ebp),%eax 801053a6: 8d 50 01 lea 0x1(%eax),%edx 801053a9: 89 55 f8 mov %edx,-0x8(%ebp) 801053ac: 8b 55 fc mov -0x4(%ebp),%edx 801053af: 8d 4a 01 lea 0x1(%edx),%ecx 801053b2: 89 4d fc mov %ecx,-0x4(%ebp) 801053b5: 0f b6 12 movzbl (%edx),%edx 801053b8: 88 10 mov %dl,(%eax) s += n; d += n; while(n-- > 0) *--d = *--s; } else while(n-- > 0) 801053ba: 8b 45 10 mov 0x10(%ebp),%eax 801053bd: 8d 50 ff lea -0x1(%eax),%edx 801053c0: 89 55 10 mov %edx,0x10(%ebp) 801053c3: 85 c0 test %eax,%eax 801053c5: 75 dc jne 801053a3 <memmove+0x57> *d++ = *s++; return dst; 801053c7: 8b 45 08 mov 0x8(%ebp),%eax } 801053ca: c9 leave 801053cb: c3 ret 801053cc <memcpy>: // memcpy exists to placate GCC. Use memmove. void* memcpy(void *dst, const void *src, uint n) { 801053cc: 55 push %ebp 801053cd: 89 e5 mov %esp,%ebp return memmove(dst, src, n); 801053cf: ff 75 10 pushl 0x10(%ebp) 801053d2: ff 75 0c pushl 0xc(%ebp) 801053d5: ff 75 08 pushl 0x8(%ebp) 801053d8: e8 6f ff ff ff call 8010534c <memmove> 801053dd: 83 c4 0c add $0xc,%esp } 801053e0: c9 leave 801053e1: c3 ret 801053e2 <strncmp>: int strncmp(const char *p, const char *q, uint n) { 801053e2: 55 push %ebp 801053e3: 89 e5 mov %esp,%ebp while(n > 0 && *p && *p == *q) 801053e5: eb 0c jmp 801053f3 <strncmp+0x11> n--, p++, q++; 801053e7: 83 6d 10 01 subl $0x1,0x10(%ebp) 801053eb: 83 45 08 01 addl $0x1,0x8(%ebp) 801053ef: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strncmp(const char *p, const char *q, uint n) { while(n > 0 && *p && *p == *q) 801053f3: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801053f7: 74 1a je 80105413 <strncmp+0x31> 801053f9: 8b 45 08 mov 0x8(%ebp),%eax 801053fc: 0f b6 00 movzbl (%eax),%eax 801053ff: 84 c0 test %al,%al 80105401: 74 10 je 80105413 <strncmp+0x31> 80105403: 8b 45 08 mov 0x8(%ebp),%eax 80105406: 0f b6 10 movzbl (%eax),%edx 80105409: 8b 45 0c mov 0xc(%ebp),%eax 8010540c: 0f b6 00 movzbl (%eax),%eax 8010540f: 38 c2 cmp %al,%dl 80105411: 74 d4 je 801053e7 <strncmp+0x5> n--, p++, q++; if(n == 0) 80105413: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105417: 75 07 jne 80105420 <strncmp+0x3e> return 0; 80105419: b8 00 00 00 00 mov $0x0,%eax 8010541e: eb 16 jmp 80105436 <strncmp+0x54> return (uchar)*p - (uchar)*q; 80105420: 8b 45 08 mov 0x8(%ebp),%eax 80105423: 0f b6 00 movzbl (%eax),%eax 80105426: 0f b6 d0 movzbl %al,%edx 80105429: 8b 45 0c mov 0xc(%ebp),%eax 8010542c: 0f b6 00 movzbl (%eax),%eax 8010542f: 0f b6 c0 movzbl %al,%eax 80105432: 29 c2 sub %eax,%edx 80105434: 89 d0 mov %edx,%eax } 80105436: 5d pop %ebp 80105437: c3 ret 80105438 <strncpy>: char* strncpy(char *s, const char *t, int n) { 80105438: 55 push %ebp 80105439: 89 e5 mov %esp,%ebp 8010543b: 83 ec 10 sub $0x10,%esp char *os; os = s; 8010543e: 8b 45 08 mov 0x8(%ebp),%eax 80105441: 89 45 fc mov %eax,-0x4(%ebp) while(n-- > 0 && (*s++ = *t++) != 0) 80105444: 90 nop 80105445: 8b 45 10 mov 0x10(%ebp),%eax 80105448: 8d 50 ff lea -0x1(%eax),%edx 8010544b: 89 55 10 mov %edx,0x10(%ebp) 8010544e: 85 c0 test %eax,%eax 80105450: 7e 2c jle 8010547e <strncpy+0x46> 80105452: 8b 45 08 mov 0x8(%ebp),%eax 80105455: 8d 50 01 lea 0x1(%eax),%edx 80105458: 89 55 08 mov %edx,0x8(%ebp) 8010545b: 8b 55 0c mov 0xc(%ebp),%edx 8010545e: 8d 4a 01 lea 0x1(%edx),%ecx 80105461: 89 4d 0c mov %ecx,0xc(%ebp) 80105464: 0f b6 12 movzbl (%edx),%edx 80105467: 88 10 mov %dl,(%eax) 80105469: 0f b6 00 movzbl (%eax),%eax 8010546c: 84 c0 test %al,%al 8010546e: 75 d5 jne 80105445 <strncpy+0xd> ; while(n-- > 0) 80105470: eb 0c jmp 8010547e <strncpy+0x46> *s++ = 0; 80105472: 8b 45 08 mov 0x8(%ebp),%eax 80105475: 8d 50 01 lea 0x1(%eax),%edx 80105478: 89 55 08 mov %edx,0x8(%ebp) 8010547b: c6 00 00 movb $0x0,(%eax) char *os; os = s; while(n-- > 0 && (*s++ = *t++) != 0) ; while(n-- > 0) 8010547e: 8b 45 10 mov 0x10(%ebp),%eax 80105481: 8d 50 ff lea -0x1(%eax),%edx 80105484: 89 55 10 mov %edx,0x10(%ebp) 80105487: 85 c0 test %eax,%eax 80105489: 7f e7 jg 80105472 <strncpy+0x3a> *s++ = 0; return os; 8010548b: 8b 45 fc mov -0x4(%ebp),%eax } 8010548e: c9 leave 8010548f: c3 ret 80105490 <safestrcpy>: // Like strncpy but guaranteed to NUL-terminate. char* safestrcpy(char *s, const char *t, int n) { 80105490: 55 push %ebp 80105491: 89 e5 mov %esp,%ebp 80105493: 83 ec 10 sub $0x10,%esp char *os; os = s; 80105496: 8b 45 08 mov 0x8(%ebp),%eax 80105499: 89 45 fc mov %eax,-0x4(%ebp) if(n <= 0) 8010549c: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801054a0: 7f 05 jg 801054a7 <safestrcpy+0x17> return os; 801054a2: 8b 45 fc mov -0x4(%ebp),%eax 801054a5: eb 31 jmp 801054d8 <safestrcpy+0x48> while(--n > 0 && (*s++ = *t++) != 0) 801054a7: 83 6d 10 01 subl $0x1,0x10(%ebp) 801054ab: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801054af: 7e 1e jle 801054cf <safestrcpy+0x3f> 801054b1: 8b 45 08 mov 0x8(%ebp),%eax 801054b4: 8d 50 01 lea 0x1(%eax),%edx 801054b7: 89 55 08 mov %edx,0x8(%ebp) 801054ba: 8b 55 0c mov 0xc(%ebp),%edx 801054bd: 8d 4a 01 lea 0x1(%edx),%ecx 801054c0: 89 4d 0c mov %ecx,0xc(%ebp) 801054c3: 0f b6 12 movzbl (%edx),%edx 801054c6: 88 10 mov %dl,(%eax) 801054c8: 0f b6 00 movzbl (%eax),%eax 801054cb: 84 c0 test %al,%al 801054cd: 75 d8 jne 801054a7 <safestrcpy+0x17> ; *s = 0; 801054cf: 8b 45 08 mov 0x8(%ebp),%eax 801054d2: c6 00 00 movb $0x0,(%eax) return os; 801054d5: 8b 45 fc mov -0x4(%ebp),%eax } 801054d8: c9 leave 801054d9: c3 ret 801054da <strlen>: int strlen(const char *s) { 801054da: 55 push %ebp 801054db: 89 e5 mov %esp,%ebp 801054dd: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 801054e0: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 801054e7: eb 04 jmp 801054ed <strlen+0x13> 801054e9: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801054ed: 8b 55 fc mov -0x4(%ebp),%edx 801054f0: 8b 45 08 mov 0x8(%ebp),%eax 801054f3: 01 d0 add %edx,%eax 801054f5: 0f b6 00 movzbl (%eax),%eax 801054f8: 84 c0 test %al,%al 801054fa: 75 ed jne 801054e9 <strlen+0xf> ; return n; 801054fc: 8b 45 fc mov -0x4(%ebp),%eax } 801054ff: c9 leave 80105500: c3 ret 80105501 <swtch>: # Save current register context in old # and then load register context from new. .globl swtch swtch: movl 4(%esp), %eax 80105501: 8b 44 24 04 mov 0x4(%esp),%eax movl 8(%esp), %edx 80105505: 8b 54 24 08 mov 0x8(%esp),%edx # Save old callee-save registers pushl %ebp 80105509: 55 push %ebp pushl %ebx 8010550a: 53 push %ebx pushl %esi 8010550b: 56 push %esi pushl %edi 8010550c: 57 push %edi # Switch stacks movl %esp, (%eax) 8010550d: 89 20 mov %esp,(%eax) movl %edx, %esp 8010550f: 89 d4 mov %edx,%esp # Load new callee-save registers popl %edi 80105511: 5f pop %edi popl %esi 80105512: 5e pop %esi popl %ebx 80105513: 5b pop %ebx popl %ebp 80105514: 5d pop %ebp ret 80105515: c3 ret 80105516 <fetchint>: // to a saved program counter, and then the first argument. // Fetch the int at addr from the current process. int fetchint(uint addr, int *ip) { 80105516: 55 push %ebp 80105517: 89 e5 mov %esp,%ebp if(addr >= proc->sz || addr+4 > proc->sz) 80105519: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010551f: 8b 00 mov (%eax),%eax 80105521: 3b 45 08 cmp 0x8(%ebp),%eax 80105524: 76 12 jbe 80105538 <fetchint+0x22> 80105526: 8b 45 08 mov 0x8(%ebp),%eax 80105529: 8d 50 04 lea 0x4(%eax),%edx 8010552c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105532: 8b 00 mov (%eax),%eax 80105534: 39 c2 cmp %eax,%edx 80105536: 76 07 jbe 8010553f <fetchint+0x29> return -1; 80105538: b8 ff ff ff ff mov $0xffffffff,%eax 8010553d: eb 0f jmp 8010554e <fetchint+0x38> *ip = *(int*)(addr); 8010553f: 8b 45 08 mov 0x8(%ebp),%eax 80105542: 8b 10 mov (%eax),%edx 80105544: 8b 45 0c mov 0xc(%ebp),%eax 80105547: 89 10 mov %edx,(%eax) return 0; 80105549: b8 00 00 00 00 mov $0x0,%eax } 8010554e: 5d pop %ebp 8010554f: c3 ret 80105550 <fetchstr>: // Fetch the nul-terminated string at addr from the current process. // Doesn't actually copy the string - just sets *pp to point at it. // Returns length of string, not including nul. int fetchstr(uint addr, char **pp) { 80105550: 55 push %ebp 80105551: 89 e5 mov %esp,%ebp 80105553: 83 ec 10 sub $0x10,%esp char *s, *ep; if(addr >= proc->sz) 80105556: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010555c: 8b 00 mov (%eax),%eax 8010555e: 3b 45 08 cmp 0x8(%ebp),%eax 80105561: 77 07 ja 8010556a <fetchstr+0x1a> return -1; 80105563: b8 ff ff ff ff mov $0xffffffff,%eax 80105568: eb 46 jmp 801055b0 <fetchstr+0x60> *pp = (char*)addr; 8010556a: 8b 55 08 mov 0x8(%ebp),%edx 8010556d: 8b 45 0c mov 0xc(%ebp),%eax 80105570: 89 10 mov %edx,(%eax) ep = (char*)proc->sz; 80105572: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105578: 8b 00 mov (%eax),%eax 8010557a: 89 45 f8 mov %eax,-0x8(%ebp) for(s = *pp; s < ep; s++) 8010557d: 8b 45 0c mov 0xc(%ebp),%eax 80105580: 8b 00 mov (%eax),%eax 80105582: 89 45 fc mov %eax,-0x4(%ebp) 80105585: eb 1c jmp 801055a3 <fetchstr+0x53> if(*s == 0) 80105587: 8b 45 fc mov -0x4(%ebp),%eax 8010558a: 0f b6 00 movzbl (%eax),%eax 8010558d: 84 c0 test %al,%al 8010558f: 75 0e jne 8010559f <fetchstr+0x4f> return s - *pp; 80105591: 8b 55 fc mov -0x4(%ebp),%edx 80105594: 8b 45 0c mov 0xc(%ebp),%eax 80105597: 8b 00 mov (%eax),%eax 80105599: 29 c2 sub %eax,%edx 8010559b: 89 d0 mov %edx,%eax 8010559d: eb 11 jmp 801055b0 <fetchstr+0x60> if(addr >= proc->sz) return -1; *pp = (char*)addr; ep = (char*)proc->sz; for(s = *pp; s < ep; s++) 8010559f: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801055a3: 8b 45 fc mov -0x4(%ebp),%eax 801055a6: 3b 45 f8 cmp -0x8(%ebp),%eax 801055a9: 72 dc jb 80105587 <fetchstr+0x37> if(*s == 0) return s - *pp; return -1; 801055ab: b8 ff ff ff ff mov $0xffffffff,%eax } 801055b0: c9 leave 801055b1: c3 ret 801055b2 <argint>: // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { 801055b2: 55 push %ebp 801055b3: 89 e5 mov %esp,%ebp return fetchint(proc->tf->esp + 4 + 4*n, ip); 801055b5: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801055bb: 8b 40 18 mov 0x18(%eax),%eax 801055be: 8b 40 44 mov 0x44(%eax),%eax 801055c1: 8b 55 08 mov 0x8(%ebp),%edx 801055c4: c1 e2 02 shl $0x2,%edx 801055c7: 01 d0 add %edx,%eax 801055c9: 83 c0 04 add $0x4,%eax 801055cc: ff 75 0c pushl 0xc(%ebp) 801055cf: 50 push %eax 801055d0: e8 41 ff ff ff call 80105516 <fetchint> 801055d5: 83 c4 08 add $0x8,%esp } 801055d8: c9 leave 801055d9: c3 ret 801055da <argptr>: // Fetch the nth word-sized system call argument as a pointer // to a block of memory of size n bytes. Check that the pointer // lies within the process address space. int argptr(int n, char **pp, int size) { 801055da: 55 push %ebp 801055db: 89 e5 mov %esp,%ebp 801055dd: 83 ec 10 sub $0x10,%esp int i; if(argint(n, &i) < 0) 801055e0: 8d 45 fc lea -0x4(%ebp),%eax 801055e3: 50 push %eax 801055e4: ff 75 08 pushl 0x8(%ebp) 801055e7: e8 c6 ff ff ff call 801055b2 <argint> 801055ec: 83 c4 08 add $0x8,%esp 801055ef: 85 c0 test %eax,%eax 801055f1: 79 07 jns 801055fa <argptr+0x20> return -1; 801055f3: b8 ff ff ff ff mov $0xffffffff,%eax 801055f8: eb 3b jmp 80105635 <argptr+0x5b> if((uint)i >= proc->sz || (uint)i+size > proc->sz) 801055fa: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105600: 8b 00 mov (%eax),%eax 80105602: 8b 55 fc mov -0x4(%ebp),%edx 80105605: 39 d0 cmp %edx,%eax 80105607: 76 16 jbe 8010561f <argptr+0x45> 80105609: 8b 45 fc mov -0x4(%ebp),%eax 8010560c: 89 c2 mov %eax,%edx 8010560e: 8b 45 10 mov 0x10(%ebp),%eax 80105611: 01 c2 add %eax,%edx 80105613: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105619: 8b 00 mov (%eax),%eax 8010561b: 39 c2 cmp %eax,%edx 8010561d: 76 07 jbe 80105626 <argptr+0x4c> return -1; 8010561f: b8 ff ff ff ff mov $0xffffffff,%eax 80105624: eb 0f jmp 80105635 <argptr+0x5b> *pp = (char*)i; 80105626: 8b 45 fc mov -0x4(%ebp),%eax 80105629: 89 c2 mov %eax,%edx 8010562b: 8b 45 0c mov 0xc(%ebp),%eax 8010562e: 89 10 mov %edx,(%eax) return 0; 80105630: b8 00 00 00 00 mov $0x0,%eax } 80105635: c9 leave 80105636: c3 ret 80105637 <argstr>: // Check that the pointer is valid and the string is nul-terminated. // (There is no shared writable memory, so the string can't change // between this check and being used by the kernel.) int argstr(int n, char **pp) { 80105637: 55 push %ebp 80105638: 89 e5 mov %esp,%ebp 8010563a: 83 ec 10 sub $0x10,%esp int addr; if(argint(n, &addr) < 0) 8010563d: 8d 45 fc lea -0x4(%ebp),%eax 80105640: 50 push %eax 80105641: ff 75 08 pushl 0x8(%ebp) 80105644: e8 69 ff ff ff call 801055b2 <argint> 80105649: 83 c4 08 add $0x8,%esp 8010564c: 85 c0 test %eax,%eax 8010564e: 79 07 jns 80105657 <argstr+0x20> return -1; 80105650: b8 ff ff ff ff mov $0xffffffff,%eax 80105655: eb 0f jmp 80105666 <argstr+0x2f> return fetchstr(addr, pp); 80105657: 8b 45 fc mov -0x4(%ebp),%eax 8010565a: ff 75 0c pushl 0xc(%ebp) 8010565d: 50 push %eax 8010565e: e8 ed fe ff ff call 80105550 <fetchstr> 80105663: 83 c4 08 add $0x8,%esp } 80105666: c9 leave 80105667: c3 ret 80105668 <syscall>: [SYS_close] sys_close, }; void syscall(void) { 80105668: 55 push %ebp 80105669: 89 e5 mov %esp,%ebp 8010566b: 53 push %ebx 8010566c: 83 ec 14 sub $0x14,%esp int num; num = proc->tf->eax; 8010566f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105675: 8b 40 18 mov 0x18(%eax),%eax 80105678: 8b 40 1c mov 0x1c(%eax),%eax 8010567b: 89 45 f4 mov %eax,-0xc(%ebp) if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { 8010567e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105682: 7e 30 jle 801056b4 <syscall+0x4c> 80105684: 8b 45 f4 mov -0xc(%ebp),%eax 80105687: 83 f8 15 cmp $0x15,%eax 8010568a: 77 28 ja 801056b4 <syscall+0x4c> 8010568c: 8b 45 f4 mov -0xc(%ebp),%eax 8010568f: 8b 04 85 40 b0 10 80 mov -0x7fef4fc0(,%eax,4),%eax 80105696: 85 c0 test %eax,%eax 80105698: 74 1a je 801056b4 <syscall+0x4c> proc->tf->eax = syscalls[num](); 8010569a: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801056a0: 8b 58 18 mov 0x18(%eax),%ebx 801056a3: 8b 45 f4 mov -0xc(%ebp),%eax 801056a6: 8b 04 85 40 b0 10 80 mov -0x7fef4fc0(,%eax,4),%eax 801056ad: ff d0 call *%eax 801056af: 89 43 1c mov %eax,0x1c(%ebx) 801056b2: eb 34 jmp 801056e8 <syscall+0x80> } else { cprintf("%d %s: unknown sys call %d\n", proc->pid, proc->name, num); 801056b4: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801056ba: 8d 50 6c lea 0x6c(%eax),%edx 801056bd: 65 a1 04 00 00 00 mov %gs:0x4,%eax num = proc->tf->eax; if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { proc->tf->eax = syscalls[num](); } else { cprintf("%d %s: unknown sys call %d\n", 801056c3: 8b 40 10 mov 0x10(%eax),%eax 801056c6: ff 75 f4 pushl -0xc(%ebp) 801056c9: 52 push %edx 801056ca: 50 push %eax 801056cb: 68 c9 89 10 80 push $0x801089c9 801056d0: e8 f1 ac ff ff call 801003c6 <cprintf> 801056d5: 83 c4 10 add $0x10,%esp proc->pid, proc->name, num); proc->tf->eax = -1; 801056d8: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801056de: 8b 40 18 mov 0x18(%eax),%eax 801056e1: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax) } } 801056e8: 90 nop 801056e9: 8b 5d fc mov -0x4(%ebp),%ebx 801056ec: c9 leave 801056ed: c3 ret 801056ee <argfd>: // Fetch the nth word-sized system call argument as a file descriptor // and return both the descriptor and the corresponding struct file. static int argfd(int n, int *pfd, struct file **pf) { 801056ee: 55 push %ebp 801056ef: 89 e5 mov %esp,%ebp 801056f1: 83 ec 18 sub $0x18,%esp int fd; struct file *f; if(argint(n, &fd) < 0) 801056f4: 83 ec 08 sub $0x8,%esp 801056f7: 8d 45 f0 lea -0x10(%ebp),%eax 801056fa: 50 push %eax 801056fb: ff 75 08 pushl 0x8(%ebp) 801056fe: e8 af fe ff ff call 801055b2 <argint> 80105703: 83 c4 10 add $0x10,%esp 80105706: 85 c0 test %eax,%eax 80105708: 79 07 jns 80105711 <argfd+0x23> return -1; 8010570a: b8 ff ff ff ff mov $0xffffffff,%eax 8010570f: eb 50 jmp 80105761 <argfd+0x73> if(fd < 0 || fd >= NOFILE || (f=proc->ofile[fd]) == 0) 80105711: 8b 45 f0 mov -0x10(%ebp),%eax 80105714: 85 c0 test %eax,%eax 80105716: 78 21 js 80105739 <argfd+0x4b> 80105718: 8b 45 f0 mov -0x10(%ebp),%eax 8010571b: 83 f8 0f cmp $0xf,%eax 8010571e: 7f 19 jg 80105739 <argfd+0x4b> 80105720: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105726: 8b 55 f0 mov -0x10(%ebp),%edx 80105729: 83 c2 08 add $0x8,%edx 8010572c: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80105730: 89 45 f4 mov %eax,-0xc(%ebp) 80105733: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105737: 75 07 jne 80105740 <argfd+0x52> return -1; 80105739: b8 ff ff ff ff mov $0xffffffff,%eax 8010573e: eb 21 jmp 80105761 <argfd+0x73> if(pfd) 80105740: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80105744: 74 08 je 8010574e <argfd+0x60> *pfd = fd; 80105746: 8b 55 f0 mov -0x10(%ebp),%edx 80105749: 8b 45 0c mov 0xc(%ebp),%eax 8010574c: 89 10 mov %edx,(%eax) if(pf) 8010574e: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105752: 74 08 je 8010575c <argfd+0x6e> *pf = f; 80105754: 8b 45 10 mov 0x10(%ebp),%eax 80105757: 8b 55 f4 mov -0xc(%ebp),%edx 8010575a: 89 10 mov %edx,(%eax) return 0; 8010575c: b8 00 00 00 00 mov $0x0,%eax } 80105761: c9 leave 80105762: c3 ret 80105763 <fdalloc>: // Allocate a file descriptor for the given file. // Takes over file reference from caller on success. static int fdalloc(struct file *f) { 80105763: 55 push %ebp 80105764: 89 e5 mov %esp,%ebp 80105766: 83 ec 10 sub $0x10,%esp int fd; for(fd = 0; fd < NOFILE; fd++){ 80105769: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80105770: eb 30 jmp 801057a2 <fdalloc+0x3f> if(proc->ofile[fd] == 0){ 80105772: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105778: 8b 55 fc mov -0x4(%ebp),%edx 8010577b: 83 c2 08 add $0x8,%edx 8010577e: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80105782: 85 c0 test %eax,%eax 80105784: 75 18 jne 8010579e <fdalloc+0x3b> proc->ofile[fd] = f; 80105786: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010578c: 8b 55 fc mov -0x4(%ebp),%edx 8010578f: 8d 4a 08 lea 0x8(%edx),%ecx 80105792: 8b 55 08 mov 0x8(%ebp),%edx 80105795: 89 54 88 08 mov %edx,0x8(%eax,%ecx,4) return fd; 80105799: 8b 45 fc mov -0x4(%ebp),%eax 8010579c: eb 0f jmp 801057ad <fdalloc+0x4a> static int fdalloc(struct file *f) { int fd; for(fd = 0; fd < NOFILE; fd++){ 8010579e: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801057a2: 83 7d fc 0f cmpl $0xf,-0x4(%ebp) 801057a6: 7e ca jle 80105772 <fdalloc+0xf> if(proc->ofile[fd] == 0){ proc->ofile[fd] = f; return fd; } } return -1; 801057a8: b8 ff ff ff ff mov $0xffffffff,%eax } 801057ad: c9 leave 801057ae: c3 ret 801057af <sys_dup>: int sys_dup(void) { 801057af: 55 push %ebp 801057b0: 89 e5 mov %esp,%ebp 801057b2: 83 ec 18 sub $0x18,%esp struct file *f; int fd; if(argfd(0, 0, &f) < 0) 801057b5: 83 ec 04 sub $0x4,%esp 801057b8: 8d 45 f0 lea -0x10(%ebp),%eax 801057bb: 50 push %eax 801057bc: 6a 00 push $0x0 801057be: 6a 00 push $0x0 801057c0: e8 29 ff ff ff call 801056ee <argfd> 801057c5: 83 c4 10 add $0x10,%esp 801057c8: 85 c0 test %eax,%eax 801057ca: 79 07 jns 801057d3 <sys_dup+0x24> return -1; 801057cc: b8 ff ff ff ff mov $0xffffffff,%eax 801057d1: eb 31 jmp 80105804 <sys_dup+0x55> if((fd=fdalloc(f)) < 0) 801057d3: 8b 45 f0 mov -0x10(%ebp),%eax 801057d6: 83 ec 0c sub $0xc,%esp 801057d9: 50 push %eax 801057da: e8 84 ff ff ff call 80105763 <fdalloc> 801057df: 83 c4 10 add $0x10,%esp 801057e2: 89 45 f4 mov %eax,-0xc(%ebp) 801057e5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801057e9: 79 07 jns 801057f2 <sys_dup+0x43> return -1; 801057eb: b8 ff ff ff ff mov $0xffffffff,%eax 801057f0: eb 12 jmp 80105804 <sys_dup+0x55> filedup(f); 801057f2: 8b 45 f0 mov -0x10(%ebp),%eax 801057f5: 83 ec 0c sub $0xc,%esp 801057f8: 50 push %eax 801057f9: e8 02 b8 ff ff call 80101000 <filedup> 801057fe: 83 c4 10 add $0x10,%esp return fd; 80105801: 8b 45 f4 mov -0xc(%ebp),%eax } 80105804: c9 leave 80105805: c3 ret 80105806 <sys_read>: int sys_read(void) { 80105806: 55 push %ebp 80105807: 89 e5 mov %esp,%ebp 80105809: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 8010580c: 83 ec 04 sub $0x4,%esp 8010580f: 8d 45 f4 lea -0xc(%ebp),%eax 80105812: 50 push %eax 80105813: 6a 00 push $0x0 80105815: 6a 00 push $0x0 80105817: e8 d2 fe ff ff call 801056ee <argfd> 8010581c: 83 c4 10 add $0x10,%esp 8010581f: 85 c0 test %eax,%eax 80105821: 78 2e js 80105851 <sys_read+0x4b> 80105823: 83 ec 08 sub $0x8,%esp 80105826: 8d 45 f0 lea -0x10(%ebp),%eax 80105829: 50 push %eax 8010582a: 6a 02 push $0x2 8010582c: e8 81 fd ff ff call 801055b2 <argint> 80105831: 83 c4 10 add $0x10,%esp 80105834: 85 c0 test %eax,%eax 80105836: 78 19 js 80105851 <sys_read+0x4b> 80105838: 8b 45 f0 mov -0x10(%ebp),%eax 8010583b: 83 ec 04 sub $0x4,%esp 8010583e: 50 push %eax 8010583f: 8d 45 ec lea -0x14(%ebp),%eax 80105842: 50 push %eax 80105843: 6a 01 push $0x1 80105845: e8 90 fd ff ff call 801055da <argptr> 8010584a: 83 c4 10 add $0x10,%esp 8010584d: 85 c0 test %eax,%eax 8010584f: 79 07 jns 80105858 <sys_read+0x52> return -1; 80105851: b8 ff ff ff ff mov $0xffffffff,%eax 80105856: eb 17 jmp 8010586f <sys_read+0x69> return fileread(f, p, n); 80105858: 8b 4d f0 mov -0x10(%ebp),%ecx 8010585b: 8b 55 ec mov -0x14(%ebp),%edx 8010585e: 8b 45 f4 mov -0xc(%ebp),%eax 80105861: 83 ec 04 sub $0x4,%esp 80105864: 51 push %ecx 80105865: 52 push %edx 80105866: 50 push %eax 80105867: e8 24 b9 ff ff call 80101190 <fileread> 8010586c: 83 c4 10 add $0x10,%esp } 8010586f: c9 leave 80105870: c3 ret 80105871 <sys_write>: int sys_write(void) { 80105871: 55 push %ebp 80105872: 89 e5 mov %esp,%ebp 80105874: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80105877: 83 ec 04 sub $0x4,%esp 8010587a: 8d 45 f4 lea -0xc(%ebp),%eax 8010587d: 50 push %eax 8010587e: 6a 00 push $0x0 80105880: 6a 00 push $0x0 80105882: e8 67 fe ff ff call 801056ee <argfd> 80105887: 83 c4 10 add $0x10,%esp 8010588a: 85 c0 test %eax,%eax 8010588c: 78 2e js 801058bc <sys_write+0x4b> 8010588e: 83 ec 08 sub $0x8,%esp 80105891: 8d 45 f0 lea -0x10(%ebp),%eax 80105894: 50 push %eax 80105895: 6a 02 push $0x2 80105897: e8 16 fd ff ff call 801055b2 <argint> 8010589c: 83 c4 10 add $0x10,%esp 8010589f: 85 c0 test %eax,%eax 801058a1: 78 19 js 801058bc <sys_write+0x4b> 801058a3: 8b 45 f0 mov -0x10(%ebp),%eax 801058a6: 83 ec 04 sub $0x4,%esp 801058a9: 50 push %eax 801058aa: 8d 45 ec lea -0x14(%ebp),%eax 801058ad: 50 push %eax 801058ae: 6a 01 push $0x1 801058b0: e8 25 fd ff ff call 801055da <argptr> 801058b5: 83 c4 10 add $0x10,%esp 801058b8: 85 c0 test %eax,%eax 801058ba: 79 07 jns 801058c3 <sys_write+0x52> return -1; 801058bc: b8 ff ff ff ff mov $0xffffffff,%eax 801058c1: eb 17 jmp 801058da <sys_write+0x69> return filewrite(f, p, n); 801058c3: 8b 4d f0 mov -0x10(%ebp),%ecx 801058c6: 8b 55 ec mov -0x14(%ebp),%edx 801058c9: 8b 45 f4 mov -0xc(%ebp),%eax 801058cc: 83 ec 04 sub $0x4,%esp 801058cf: 51 push %ecx 801058d0: 52 push %edx 801058d1: 50 push %eax 801058d2: e8 71 b9 ff ff call 80101248 <filewrite> 801058d7: 83 c4 10 add $0x10,%esp } 801058da: c9 leave 801058db: c3 ret 801058dc <sys_close>: int sys_close(void) { 801058dc: 55 push %ebp 801058dd: 89 e5 mov %esp,%ebp 801058df: 83 ec 18 sub $0x18,%esp int fd; struct file *f; if(argfd(0, &fd, &f) < 0) 801058e2: 83 ec 04 sub $0x4,%esp 801058e5: 8d 45 f0 lea -0x10(%ebp),%eax 801058e8: 50 push %eax 801058e9: 8d 45 f4 lea -0xc(%ebp),%eax 801058ec: 50 push %eax 801058ed: 6a 00 push $0x0 801058ef: e8 fa fd ff ff call 801056ee <argfd> 801058f4: 83 c4 10 add $0x10,%esp 801058f7: 85 c0 test %eax,%eax 801058f9: 79 07 jns 80105902 <sys_close+0x26> return -1; 801058fb: b8 ff ff ff ff mov $0xffffffff,%eax 80105900: eb 28 jmp 8010592a <sys_close+0x4e> proc->ofile[fd] = 0; 80105902: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105908: 8b 55 f4 mov -0xc(%ebp),%edx 8010590b: 83 c2 08 add $0x8,%edx 8010590e: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 80105915: 00 fileclose(f); 80105916: 8b 45 f0 mov -0x10(%ebp),%eax 80105919: 83 ec 0c sub $0xc,%esp 8010591c: 50 push %eax 8010591d: e8 2f b7 ff ff call 80101051 <fileclose> 80105922: 83 c4 10 add $0x10,%esp return 0; 80105925: b8 00 00 00 00 mov $0x0,%eax } 8010592a: c9 leave 8010592b: c3 ret 8010592c <sys_fstat>: int sys_fstat(void) { 8010592c: 55 push %ebp 8010592d: 89 e5 mov %esp,%ebp 8010592f: 83 ec 18 sub $0x18,%esp struct file *f; struct stat *st; if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 80105932: 83 ec 04 sub $0x4,%esp 80105935: 8d 45 f4 lea -0xc(%ebp),%eax 80105938: 50 push %eax 80105939: 6a 00 push $0x0 8010593b: 6a 00 push $0x0 8010593d: e8 ac fd ff ff call 801056ee <argfd> 80105942: 83 c4 10 add $0x10,%esp 80105945: 85 c0 test %eax,%eax 80105947: 78 17 js 80105960 <sys_fstat+0x34> 80105949: 83 ec 04 sub $0x4,%esp 8010594c: 6a 14 push $0x14 8010594e: 8d 45 f0 lea -0x10(%ebp),%eax 80105951: 50 push %eax 80105952: 6a 01 push $0x1 80105954: e8 81 fc ff ff call 801055da <argptr> 80105959: 83 c4 10 add $0x10,%esp 8010595c: 85 c0 test %eax,%eax 8010595e: 79 07 jns 80105967 <sys_fstat+0x3b> return -1; 80105960: b8 ff ff ff ff mov $0xffffffff,%eax 80105965: eb 13 jmp 8010597a <sys_fstat+0x4e> return filestat(f, st); 80105967: 8b 55 f0 mov -0x10(%ebp),%edx 8010596a: 8b 45 f4 mov -0xc(%ebp),%eax 8010596d: 83 ec 08 sub $0x8,%esp 80105970: 52 push %edx 80105971: 50 push %eax 80105972: e8 c2 b7 ff ff call 80101139 <filestat> 80105977: 83 c4 10 add $0x10,%esp } 8010597a: c9 leave 8010597b: c3 ret 8010597c <sys_link>: // Create the path new as a link to the same inode as old. int sys_link(void) { 8010597c: 55 push %ebp 8010597d: 89 e5 mov %esp,%ebp 8010597f: 83 ec 28 sub $0x28,%esp char name[DIRSIZ], *new, *old; struct inode *dp, *ip; if(argstr(0, &old) < 0 || argstr(1, &new) < 0) 80105982: 83 ec 08 sub $0x8,%esp 80105985: 8d 45 d8 lea -0x28(%ebp),%eax 80105988: 50 push %eax 80105989: 6a 00 push $0x0 8010598b: e8 a7 fc ff ff call 80105637 <argstr> 80105990: 83 c4 10 add $0x10,%esp 80105993: 85 c0 test %eax,%eax 80105995: 78 15 js 801059ac <sys_link+0x30> 80105997: 83 ec 08 sub $0x8,%esp 8010599a: 8d 45 dc lea -0x24(%ebp),%eax 8010599d: 50 push %eax 8010599e: 6a 01 push $0x1 801059a0: e8 92 fc ff ff call 80105637 <argstr> 801059a5: 83 c4 10 add $0x10,%esp 801059a8: 85 c0 test %eax,%eax 801059aa: 79 0a jns 801059b6 <sys_link+0x3a> return -1; 801059ac: b8 ff ff ff ff mov $0xffffffff,%eax 801059b1: e9 68 01 00 00 jmp 80105b1e <sys_link+0x1a2> begin_op(); 801059b6: e8 92 db ff ff call 8010354d <begin_op> if((ip = namei(old)) == 0){ 801059bb: 8b 45 d8 mov -0x28(%ebp),%eax 801059be: 83 ec 0c sub $0xc,%esp 801059c1: 50 push %eax 801059c2: e8 61 cb ff ff call 80102528 <namei> 801059c7: 83 c4 10 add $0x10,%esp 801059ca: 89 45 f4 mov %eax,-0xc(%ebp) 801059cd: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801059d1: 75 0f jne 801059e2 <sys_link+0x66> end_op(); 801059d3: e8 01 dc ff ff call 801035d9 <end_op> return -1; 801059d8: b8 ff ff ff ff mov $0xffffffff,%eax 801059dd: e9 3c 01 00 00 jmp 80105b1e <sys_link+0x1a2> } ilock(ip); 801059e2: 83 ec 0c sub $0xc,%esp 801059e5: ff 75 f4 pushl -0xc(%ebp) 801059e8: e8 7d bf ff ff call 8010196a <ilock> 801059ed: 83 c4 10 add $0x10,%esp if(ip->type == T_DIR){ 801059f0: 8b 45 f4 mov -0xc(%ebp),%eax 801059f3: 0f b7 40 10 movzwl 0x10(%eax),%eax 801059f7: 66 83 f8 01 cmp $0x1,%ax 801059fb: 75 1d jne 80105a1a <sys_link+0x9e> iunlockput(ip); 801059fd: 83 ec 0c sub $0xc,%esp 80105a00: ff 75 f4 pushl -0xc(%ebp) 80105a03: e8 22 c2 ff ff call 80101c2a <iunlockput> 80105a08: 83 c4 10 add $0x10,%esp end_op(); 80105a0b: e8 c9 db ff ff call 801035d9 <end_op> return -1; 80105a10: b8 ff ff ff ff mov $0xffffffff,%eax 80105a15: e9 04 01 00 00 jmp 80105b1e <sys_link+0x1a2> } ip->nlink++; 80105a1a: 8b 45 f4 mov -0xc(%ebp),%eax 80105a1d: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105a21: 83 c0 01 add $0x1,%eax 80105a24: 89 c2 mov %eax,%edx 80105a26: 8b 45 f4 mov -0xc(%ebp),%eax 80105a29: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105a2d: 83 ec 0c sub $0xc,%esp 80105a30: ff 75 f4 pushl -0xc(%ebp) 80105a33: e8 58 bd ff ff call 80101790 <iupdate> 80105a38: 83 c4 10 add $0x10,%esp iunlock(ip); 80105a3b: 83 ec 0c sub $0xc,%esp 80105a3e: ff 75 f4 pushl -0xc(%ebp) 80105a41: e8 82 c0 ff ff call 80101ac8 <iunlock> 80105a46: 83 c4 10 add $0x10,%esp if((dp = nameiparent(new, name)) == 0) 80105a49: 8b 45 dc mov -0x24(%ebp),%eax 80105a4c: 83 ec 08 sub $0x8,%esp 80105a4f: 8d 55 e2 lea -0x1e(%ebp),%edx 80105a52: 52 push %edx 80105a53: 50 push %eax 80105a54: e8 eb ca ff ff call 80102544 <nameiparent> 80105a59: 83 c4 10 add $0x10,%esp 80105a5c: 89 45 f0 mov %eax,-0x10(%ebp) 80105a5f: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105a63: 74 71 je 80105ad6 <sys_link+0x15a> goto bad; ilock(dp); 80105a65: 83 ec 0c sub $0xc,%esp 80105a68: ff 75 f0 pushl -0x10(%ebp) 80105a6b: e8 fa be ff ff call 8010196a <ilock> 80105a70: 83 c4 10 add $0x10,%esp if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ 80105a73: 8b 45 f0 mov -0x10(%ebp),%eax 80105a76: 8b 10 mov (%eax),%edx 80105a78: 8b 45 f4 mov -0xc(%ebp),%eax 80105a7b: 8b 00 mov (%eax),%eax 80105a7d: 39 c2 cmp %eax,%edx 80105a7f: 75 1d jne 80105a9e <sys_link+0x122> 80105a81: 8b 45 f4 mov -0xc(%ebp),%eax 80105a84: 8b 40 04 mov 0x4(%eax),%eax 80105a87: 83 ec 04 sub $0x4,%esp 80105a8a: 50 push %eax 80105a8b: 8d 45 e2 lea -0x1e(%ebp),%eax 80105a8e: 50 push %eax 80105a8f: ff 75 f0 pushl -0x10(%ebp) 80105a92: e8 f5 c7 ff ff call 8010228c <dirlink> 80105a97: 83 c4 10 add $0x10,%esp 80105a9a: 85 c0 test %eax,%eax 80105a9c: 79 10 jns 80105aae <sys_link+0x132> iunlockput(dp); 80105a9e: 83 ec 0c sub $0xc,%esp 80105aa1: ff 75 f0 pushl -0x10(%ebp) 80105aa4: e8 81 c1 ff ff call 80101c2a <iunlockput> 80105aa9: 83 c4 10 add $0x10,%esp goto bad; 80105aac: eb 29 jmp 80105ad7 <sys_link+0x15b> } iunlockput(dp); 80105aae: 83 ec 0c sub $0xc,%esp 80105ab1: ff 75 f0 pushl -0x10(%ebp) 80105ab4: e8 71 c1 ff ff call 80101c2a <iunlockput> 80105ab9: 83 c4 10 add $0x10,%esp iput(ip); 80105abc: 83 ec 0c sub $0xc,%esp 80105abf: ff 75 f4 pushl -0xc(%ebp) 80105ac2: e8 73 c0 ff ff call 80101b3a <iput> 80105ac7: 83 c4 10 add $0x10,%esp end_op(); 80105aca: e8 0a db ff ff call 801035d9 <end_op> return 0; 80105acf: b8 00 00 00 00 mov $0x0,%eax 80105ad4: eb 48 jmp 80105b1e <sys_link+0x1a2> ip->nlink++; iupdate(ip); iunlock(ip); if((dp = nameiparent(new, name)) == 0) goto bad; 80105ad6: 90 nop end_op(); return 0; bad: ilock(ip); 80105ad7: 83 ec 0c sub $0xc,%esp 80105ada: ff 75 f4 pushl -0xc(%ebp) 80105add: e8 88 be ff ff call 8010196a <ilock> 80105ae2: 83 c4 10 add $0x10,%esp ip->nlink--; 80105ae5: 8b 45 f4 mov -0xc(%ebp),%eax 80105ae8: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105aec: 83 e8 01 sub $0x1,%eax 80105aef: 89 c2 mov %eax,%edx 80105af1: 8b 45 f4 mov -0xc(%ebp),%eax 80105af4: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105af8: 83 ec 0c sub $0xc,%esp 80105afb: ff 75 f4 pushl -0xc(%ebp) 80105afe: e8 8d bc ff ff call 80101790 <iupdate> 80105b03: 83 c4 10 add $0x10,%esp iunlockput(ip); 80105b06: 83 ec 0c sub $0xc,%esp 80105b09: ff 75 f4 pushl -0xc(%ebp) 80105b0c: e8 19 c1 ff ff call 80101c2a <iunlockput> 80105b11: 83 c4 10 add $0x10,%esp end_op(); 80105b14: e8 c0 da ff ff call 801035d9 <end_op> return -1; 80105b19: b8 ff ff ff ff mov $0xffffffff,%eax } 80105b1e: c9 leave 80105b1f: c3 ret 80105b20 <isdirempty>: // Is the directory dp empty except for "." and ".." ? static int isdirempty(struct inode *dp) { 80105b20: 55 push %ebp 80105b21: 89 e5 mov %esp,%ebp 80105b23: 83 ec 28 sub $0x28,%esp int off; struct dirent de; for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80105b26: c7 45 f4 20 00 00 00 movl $0x20,-0xc(%ebp) 80105b2d: eb 40 jmp 80105b6f <isdirempty+0x4f> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80105b2f: 8b 45 f4 mov -0xc(%ebp),%eax 80105b32: 6a 10 push $0x10 80105b34: 50 push %eax 80105b35: 8d 45 e4 lea -0x1c(%ebp),%eax 80105b38: 50 push %eax 80105b39: ff 75 08 pushl 0x8(%ebp) 80105b3c: e8 97 c3 ff ff call 80101ed8 <readi> 80105b41: 83 c4 10 add $0x10,%esp 80105b44: 83 f8 10 cmp $0x10,%eax 80105b47: 74 0d je 80105b56 <isdirempty+0x36> panic("isdirempty: readi"); 80105b49: 83 ec 0c sub $0xc,%esp 80105b4c: 68 e5 89 10 80 push $0x801089e5 80105b51: e8 10 aa ff ff call 80100566 <panic> if(de.inum != 0) 80105b56: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax 80105b5a: 66 85 c0 test %ax,%ax 80105b5d: 74 07 je 80105b66 <isdirempty+0x46> return 0; 80105b5f: b8 00 00 00 00 mov $0x0,%eax 80105b64: eb 1b jmp 80105b81 <isdirempty+0x61> isdirempty(struct inode *dp) { int off; struct dirent de; for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80105b66: 8b 45 f4 mov -0xc(%ebp),%eax 80105b69: 83 c0 10 add $0x10,%eax 80105b6c: 89 45 f4 mov %eax,-0xc(%ebp) 80105b6f: 8b 45 08 mov 0x8(%ebp),%eax 80105b72: 8b 50 18 mov 0x18(%eax),%edx 80105b75: 8b 45 f4 mov -0xc(%ebp),%eax 80105b78: 39 c2 cmp %eax,%edx 80105b7a: 77 b3 ja 80105b2f <isdirempty+0xf> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("isdirempty: readi"); if(de.inum != 0) return 0; } return 1; 80105b7c: b8 01 00 00 00 mov $0x1,%eax } 80105b81: c9 leave 80105b82: c3 ret 80105b83 <sys_unlink>: //PAGEBREAK! int sys_unlink(void) { 80105b83: 55 push %ebp 80105b84: 89 e5 mov %esp,%ebp 80105b86: 83 ec 38 sub $0x38,%esp struct inode *ip, *dp; struct dirent de; char name[DIRSIZ], *path; uint off; if(argstr(0, &path) < 0) 80105b89: 83 ec 08 sub $0x8,%esp 80105b8c: 8d 45 cc lea -0x34(%ebp),%eax 80105b8f: 50 push %eax 80105b90: 6a 00 push $0x0 80105b92: e8 a0 fa ff ff call 80105637 <argstr> 80105b97: 83 c4 10 add $0x10,%esp 80105b9a: 85 c0 test %eax,%eax 80105b9c: 79 0a jns 80105ba8 <sys_unlink+0x25> return -1; 80105b9e: b8 ff ff ff ff mov $0xffffffff,%eax 80105ba3: e9 bc 01 00 00 jmp 80105d64 <sys_unlink+0x1e1> begin_op(); 80105ba8: e8 a0 d9 ff ff call 8010354d <begin_op> if((dp = nameiparent(path, name)) == 0){ 80105bad: 8b 45 cc mov -0x34(%ebp),%eax 80105bb0: 83 ec 08 sub $0x8,%esp 80105bb3: 8d 55 d2 lea -0x2e(%ebp),%edx 80105bb6: 52 push %edx 80105bb7: 50 push %eax 80105bb8: e8 87 c9 ff ff call 80102544 <nameiparent> 80105bbd: 83 c4 10 add $0x10,%esp 80105bc0: 89 45 f4 mov %eax,-0xc(%ebp) 80105bc3: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105bc7: 75 0f jne 80105bd8 <sys_unlink+0x55> end_op(); 80105bc9: e8 0b da ff ff call 801035d9 <end_op> return -1; 80105bce: b8 ff ff ff ff mov $0xffffffff,%eax 80105bd3: e9 8c 01 00 00 jmp 80105d64 <sys_unlink+0x1e1> } ilock(dp); 80105bd8: 83 ec 0c sub $0xc,%esp 80105bdb: ff 75 f4 pushl -0xc(%ebp) 80105bde: e8 87 bd ff ff call 8010196a <ilock> 80105be3: 83 c4 10 add $0x10,%esp // Cannot unlink "." or "..". if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) 80105be6: 83 ec 08 sub $0x8,%esp 80105be9: 68 f7 89 10 80 push $0x801089f7 80105bee: 8d 45 d2 lea -0x2e(%ebp),%eax 80105bf1: 50 push %eax 80105bf2: e8 c0 c5 ff ff call 801021b7 <namecmp> 80105bf7: 83 c4 10 add $0x10,%esp 80105bfa: 85 c0 test %eax,%eax 80105bfc: 0f 84 4a 01 00 00 je 80105d4c <sys_unlink+0x1c9> 80105c02: 83 ec 08 sub $0x8,%esp 80105c05: 68 f9 89 10 80 push $0x801089f9 80105c0a: 8d 45 d2 lea -0x2e(%ebp),%eax 80105c0d: 50 push %eax 80105c0e: e8 a4 c5 ff ff call 801021b7 <namecmp> 80105c13: 83 c4 10 add $0x10,%esp 80105c16: 85 c0 test %eax,%eax 80105c18: 0f 84 2e 01 00 00 je 80105d4c <sys_unlink+0x1c9> goto bad; if((ip = dirlookup(dp, name, &off)) == 0) 80105c1e: 83 ec 04 sub $0x4,%esp 80105c21: 8d 45 c8 lea -0x38(%ebp),%eax 80105c24: 50 push %eax 80105c25: 8d 45 d2 lea -0x2e(%ebp),%eax 80105c28: 50 push %eax 80105c29: ff 75 f4 pushl -0xc(%ebp) 80105c2c: e8 a1 c5 ff ff call 801021d2 <dirlookup> 80105c31: 83 c4 10 add $0x10,%esp 80105c34: 89 45 f0 mov %eax,-0x10(%ebp) 80105c37: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105c3b: 0f 84 0a 01 00 00 je 80105d4b <sys_unlink+0x1c8> goto bad; ilock(ip); 80105c41: 83 ec 0c sub $0xc,%esp 80105c44: ff 75 f0 pushl -0x10(%ebp) 80105c47: e8 1e bd ff ff call 8010196a <ilock> 80105c4c: 83 c4 10 add $0x10,%esp if(ip->nlink < 1) 80105c4f: 8b 45 f0 mov -0x10(%ebp),%eax 80105c52: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105c56: 66 85 c0 test %ax,%ax 80105c59: 7f 0d jg 80105c68 <sys_unlink+0xe5> panic("unlink: nlink < 1"); 80105c5b: 83 ec 0c sub $0xc,%esp 80105c5e: 68 fc 89 10 80 push $0x801089fc 80105c63: e8 fe a8 ff ff call 80100566 <panic> if(ip->type == T_DIR && !isdirempty(ip)){ 80105c68: 8b 45 f0 mov -0x10(%ebp),%eax 80105c6b: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105c6f: 66 83 f8 01 cmp $0x1,%ax 80105c73: 75 25 jne 80105c9a <sys_unlink+0x117> 80105c75: 83 ec 0c sub $0xc,%esp 80105c78: ff 75 f0 pushl -0x10(%ebp) 80105c7b: e8 a0 fe ff ff call 80105b20 <isdirempty> 80105c80: 83 c4 10 add $0x10,%esp 80105c83: 85 c0 test %eax,%eax 80105c85: 75 13 jne 80105c9a <sys_unlink+0x117> iunlockput(ip); 80105c87: 83 ec 0c sub $0xc,%esp 80105c8a: ff 75 f0 pushl -0x10(%ebp) 80105c8d: e8 98 bf ff ff call 80101c2a <iunlockput> 80105c92: 83 c4 10 add $0x10,%esp goto bad; 80105c95: e9 b2 00 00 00 jmp 80105d4c <sys_unlink+0x1c9> } memset(&de, 0, sizeof(de)); 80105c9a: 83 ec 04 sub $0x4,%esp 80105c9d: 6a 10 push $0x10 80105c9f: 6a 00 push $0x0 80105ca1: 8d 45 e0 lea -0x20(%ebp),%eax 80105ca4: 50 push %eax 80105ca5: e8 e3 f5 ff ff call 8010528d <memset> 80105caa: 83 c4 10 add $0x10,%esp if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80105cad: 8b 45 c8 mov -0x38(%ebp),%eax 80105cb0: 6a 10 push $0x10 80105cb2: 50 push %eax 80105cb3: 8d 45 e0 lea -0x20(%ebp),%eax 80105cb6: 50 push %eax 80105cb7: ff 75 f4 pushl -0xc(%ebp) 80105cba: e8 70 c3 ff ff call 8010202f <writei> 80105cbf: 83 c4 10 add $0x10,%esp 80105cc2: 83 f8 10 cmp $0x10,%eax 80105cc5: 74 0d je 80105cd4 <sys_unlink+0x151> panic("unlink: writei"); 80105cc7: 83 ec 0c sub $0xc,%esp 80105cca: 68 0e 8a 10 80 push $0x80108a0e 80105ccf: e8 92 a8 ff ff call 80100566 <panic> if(ip->type == T_DIR){ 80105cd4: 8b 45 f0 mov -0x10(%ebp),%eax 80105cd7: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105cdb: 66 83 f8 01 cmp $0x1,%ax 80105cdf: 75 21 jne 80105d02 <sys_unlink+0x17f> dp->nlink--; 80105ce1: 8b 45 f4 mov -0xc(%ebp),%eax 80105ce4: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105ce8: 83 e8 01 sub $0x1,%eax 80105ceb: 89 c2 mov %eax,%edx 80105ced: 8b 45 f4 mov -0xc(%ebp),%eax 80105cf0: 66 89 50 16 mov %dx,0x16(%eax) iupdate(dp); 80105cf4: 83 ec 0c sub $0xc,%esp 80105cf7: ff 75 f4 pushl -0xc(%ebp) 80105cfa: e8 91 ba ff ff call 80101790 <iupdate> 80105cff: 83 c4 10 add $0x10,%esp } iunlockput(dp); 80105d02: 83 ec 0c sub $0xc,%esp 80105d05: ff 75 f4 pushl -0xc(%ebp) 80105d08: e8 1d bf ff ff call 80101c2a <iunlockput> 80105d0d: 83 c4 10 add $0x10,%esp ip->nlink--; 80105d10: 8b 45 f0 mov -0x10(%ebp),%eax 80105d13: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105d17: 83 e8 01 sub $0x1,%eax 80105d1a: 89 c2 mov %eax,%edx 80105d1c: 8b 45 f0 mov -0x10(%ebp),%eax 80105d1f: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105d23: 83 ec 0c sub $0xc,%esp 80105d26: ff 75 f0 pushl -0x10(%ebp) 80105d29: e8 62 ba ff ff call 80101790 <iupdate> 80105d2e: 83 c4 10 add $0x10,%esp iunlockput(ip); 80105d31: 83 ec 0c sub $0xc,%esp 80105d34: ff 75 f0 pushl -0x10(%ebp) 80105d37: e8 ee be ff ff call 80101c2a <iunlockput> 80105d3c: 83 c4 10 add $0x10,%esp end_op(); 80105d3f: e8 95 d8 ff ff call 801035d9 <end_op> return 0; 80105d44: b8 00 00 00 00 mov $0x0,%eax 80105d49: eb 19 jmp 80105d64 <sys_unlink+0x1e1> // Cannot unlink "." or "..". if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) goto bad; if((ip = dirlookup(dp, name, &off)) == 0) goto bad; 80105d4b: 90 nop end_op(); return 0; bad: iunlockput(dp); 80105d4c: 83 ec 0c sub $0xc,%esp 80105d4f: ff 75 f4 pushl -0xc(%ebp) 80105d52: e8 d3 be ff ff call 80101c2a <iunlockput> 80105d57: 83 c4 10 add $0x10,%esp end_op(); 80105d5a: e8 7a d8 ff ff call 801035d9 <end_op> return -1; 80105d5f: b8 ff ff ff ff mov $0xffffffff,%eax } 80105d64: c9 leave 80105d65: c3 ret 80105d66 <create>: static struct inode* create(char *path, short type, short major, short minor) { 80105d66: 55 push %ebp 80105d67: 89 e5 mov %esp,%ebp 80105d69: 83 ec 38 sub $0x38,%esp 80105d6c: 8b 4d 0c mov 0xc(%ebp),%ecx 80105d6f: 8b 55 10 mov 0x10(%ebp),%edx 80105d72: 8b 45 14 mov 0x14(%ebp),%eax 80105d75: 66 89 4d d4 mov %cx,-0x2c(%ebp) 80105d79: 66 89 55 d0 mov %dx,-0x30(%ebp) 80105d7d: 66 89 45 cc mov %ax,-0x34(%ebp) uint off; struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) 80105d81: 83 ec 08 sub $0x8,%esp 80105d84: 8d 45 de lea -0x22(%ebp),%eax 80105d87: 50 push %eax 80105d88: ff 75 08 pushl 0x8(%ebp) 80105d8b: e8 b4 c7 ff ff call 80102544 <nameiparent> 80105d90: 83 c4 10 add $0x10,%esp 80105d93: 89 45 f4 mov %eax,-0xc(%ebp) 80105d96: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105d9a: 75 0a jne 80105da6 <create+0x40> return 0; 80105d9c: b8 00 00 00 00 mov $0x0,%eax 80105da1: e9 90 01 00 00 jmp 80105f36 <create+0x1d0> ilock(dp); 80105da6: 83 ec 0c sub $0xc,%esp 80105da9: ff 75 f4 pushl -0xc(%ebp) 80105dac: e8 b9 bb ff ff call 8010196a <ilock> 80105db1: 83 c4 10 add $0x10,%esp if((ip = dirlookup(dp, name, &off)) != 0){ 80105db4: 83 ec 04 sub $0x4,%esp 80105db7: 8d 45 ec lea -0x14(%ebp),%eax 80105dba: 50 push %eax 80105dbb: 8d 45 de lea -0x22(%ebp),%eax 80105dbe: 50 push %eax 80105dbf: ff 75 f4 pushl -0xc(%ebp) 80105dc2: e8 0b c4 ff ff call 801021d2 <dirlookup> 80105dc7: 83 c4 10 add $0x10,%esp 80105dca: 89 45 f0 mov %eax,-0x10(%ebp) 80105dcd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105dd1: 74 50 je 80105e23 <create+0xbd> iunlockput(dp); 80105dd3: 83 ec 0c sub $0xc,%esp 80105dd6: ff 75 f4 pushl -0xc(%ebp) 80105dd9: e8 4c be ff ff call 80101c2a <iunlockput> 80105dde: 83 c4 10 add $0x10,%esp ilock(ip); 80105de1: 83 ec 0c sub $0xc,%esp 80105de4: ff 75 f0 pushl -0x10(%ebp) 80105de7: e8 7e bb ff ff call 8010196a <ilock> 80105dec: 83 c4 10 add $0x10,%esp if(type == T_FILE && ip->type == T_FILE) 80105def: 66 83 7d d4 02 cmpw $0x2,-0x2c(%ebp) 80105df4: 75 15 jne 80105e0b <create+0xa5> 80105df6: 8b 45 f0 mov -0x10(%ebp),%eax 80105df9: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105dfd: 66 83 f8 02 cmp $0x2,%ax 80105e01: 75 08 jne 80105e0b <create+0xa5> return ip; 80105e03: 8b 45 f0 mov -0x10(%ebp),%eax 80105e06: e9 2b 01 00 00 jmp 80105f36 <create+0x1d0> iunlockput(ip); 80105e0b: 83 ec 0c sub $0xc,%esp 80105e0e: ff 75 f0 pushl -0x10(%ebp) 80105e11: e8 14 be ff ff call 80101c2a <iunlockput> 80105e16: 83 c4 10 add $0x10,%esp return 0; 80105e19: b8 00 00 00 00 mov $0x0,%eax 80105e1e: e9 13 01 00 00 jmp 80105f36 <create+0x1d0> } if((ip = ialloc(dp->dev, type)) == 0) 80105e23: 0f bf 55 d4 movswl -0x2c(%ebp),%edx 80105e27: 8b 45 f4 mov -0xc(%ebp),%eax 80105e2a: 8b 00 mov (%eax),%eax 80105e2c: 83 ec 08 sub $0x8,%esp 80105e2f: 52 push %edx 80105e30: 50 push %eax 80105e31: e8 83 b8 ff ff call 801016b9 <ialloc> 80105e36: 83 c4 10 add $0x10,%esp 80105e39: 89 45 f0 mov %eax,-0x10(%ebp) 80105e3c: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105e40: 75 0d jne 80105e4f <create+0xe9> panic("create: ialloc"); 80105e42: 83 ec 0c sub $0xc,%esp 80105e45: 68 1d 8a 10 80 push $0x80108a1d 80105e4a: e8 17 a7 ff ff call 80100566 <panic> ilock(ip); 80105e4f: 83 ec 0c sub $0xc,%esp 80105e52: ff 75 f0 pushl -0x10(%ebp) 80105e55: e8 10 bb ff ff call 8010196a <ilock> 80105e5a: 83 c4 10 add $0x10,%esp ip->major = major; 80105e5d: 8b 45 f0 mov -0x10(%ebp),%eax 80105e60: 0f b7 55 d0 movzwl -0x30(%ebp),%edx 80105e64: 66 89 50 12 mov %dx,0x12(%eax) ip->minor = minor; 80105e68: 8b 45 f0 mov -0x10(%ebp),%eax 80105e6b: 0f b7 55 cc movzwl -0x34(%ebp),%edx 80105e6f: 66 89 50 14 mov %dx,0x14(%eax) ip->nlink = 1; 80105e73: 8b 45 f0 mov -0x10(%ebp),%eax 80105e76: 66 c7 40 16 01 00 movw $0x1,0x16(%eax) iupdate(ip); 80105e7c: 83 ec 0c sub $0xc,%esp 80105e7f: ff 75 f0 pushl -0x10(%ebp) 80105e82: e8 09 b9 ff ff call 80101790 <iupdate> 80105e87: 83 c4 10 add $0x10,%esp if(type == T_DIR){ // Create . and .. entries. 80105e8a: 66 83 7d d4 01 cmpw $0x1,-0x2c(%ebp) 80105e8f: 75 6a jne 80105efb <create+0x195> dp->nlink++; // for ".." 80105e91: 8b 45 f4 mov -0xc(%ebp),%eax 80105e94: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105e98: 83 c0 01 add $0x1,%eax 80105e9b: 89 c2 mov %eax,%edx 80105e9d: 8b 45 f4 mov -0xc(%ebp),%eax 80105ea0: 66 89 50 16 mov %dx,0x16(%eax) iupdate(dp); 80105ea4: 83 ec 0c sub $0xc,%esp 80105ea7: ff 75 f4 pushl -0xc(%ebp) 80105eaa: e8 e1 b8 ff ff call 80101790 <iupdate> 80105eaf: 83 c4 10 add $0x10,%esp // No ip->nlink++ for ".": avoid cyclic ref count. if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0) 80105eb2: 8b 45 f0 mov -0x10(%ebp),%eax 80105eb5: 8b 40 04 mov 0x4(%eax),%eax 80105eb8: 83 ec 04 sub $0x4,%esp 80105ebb: 50 push %eax 80105ebc: 68 f7 89 10 80 push $0x801089f7 80105ec1: ff 75 f0 pushl -0x10(%ebp) 80105ec4: e8 c3 c3 ff ff call 8010228c <dirlink> 80105ec9: 83 c4 10 add $0x10,%esp 80105ecc: 85 c0 test %eax,%eax 80105ece: 78 1e js 80105eee <create+0x188> 80105ed0: 8b 45 f4 mov -0xc(%ebp),%eax 80105ed3: 8b 40 04 mov 0x4(%eax),%eax 80105ed6: 83 ec 04 sub $0x4,%esp 80105ed9: 50 push %eax 80105eda: 68 f9 89 10 80 push $0x801089f9 80105edf: ff 75 f0 pushl -0x10(%ebp) 80105ee2: e8 a5 c3 ff ff call 8010228c <dirlink> 80105ee7: 83 c4 10 add $0x10,%esp 80105eea: 85 c0 test %eax,%eax 80105eec: 79 0d jns 80105efb <create+0x195> panic("create dots"); 80105eee: 83 ec 0c sub $0xc,%esp 80105ef1: 68 2c 8a 10 80 push $0x80108a2c 80105ef6: e8 6b a6 ff ff call 80100566 <panic> } if(dirlink(dp, name, ip->inum) < 0) 80105efb: 8b 45 f0 mov -0x10(%ebp),%eax 80105efe: 8b 40 04 mov 0x4(%eax),%eax 80105f01: 83 ec 04 sub $0x4,%esp 80105f04: 50 push %eax 80105f05: 8d 45 de lea -0x22(%ebp),%eax 80105f08: 50 push %eax 80105f09: ff 75 f4 pushl -0xc(%ebp) 80105f0c: e8 7b c3 ff ff call 8010228c <dirlink> 80105f11: 83 c4 10 add $0x10,%esp 80105f14: 85 c0 test %eax,%eax 80105f16: 79 0d jns 80105f25 <create+0x1bf> panic("create: dirlink"); 80105f18: 83 ec 0c sub $0xc,%esp 80105f1b: 68 38 8a 10 80 push $0x80108a38 80105f20: e8 41 a6 ff ff call 80100566 <panic> iunlockput(dp); 80105f25: 83 ec 0c sub $0xc,%esp 80105f28: ff 75 f4 pushl -0xc(%ebp) 80105f2b: e8 fa bc ff ff call 80101c2a <iunlockput> 80105f30: 83 c4 10 add $0x10,%esp return ip; 80105f33: 8b 45 f0 mov -0x10(%ebp),%eax } 80105f36: c9 leave 80105f37: c3 ret 80105f38 <sys_open>: int sys_open(void) { 80105f38: 55 push %ebp 80105f39: 89 e5 mov %esp,%ebp 80105f3b: 83 ec 28 sub $0x28,%esp char *path; int fd, omode; struct file *f; struct inode *ip; if(argstr(0, &path) < 0 || argint(1, &omode) < 0) 80105f3e: 83 ec 08 sub $0x8,%esp 80105f41: 8d 45 e8 lea -0x18(%ebp),%eax 80105f44: 50 push %eax 80105f45: 6a 00 push $0x0 80105f47: e8 eb f6 ff ff call 80105637 <argstr> 80105f4c: 83 c4 10 add $0x10,%esp 80105f4f: 85 c0 test %eax,%eax 80105f51: 78 15 js 80105f68 <sys_open+0x30> 80105f53: 83 ec 08 sub $0x8,%esp 80105f56: 8d 45 e4 lea -0x1c(%ebp),%eax 80105f59: 50 push %eax 80105f5a: 6a 01 push $0x1 80105f5c: e8 51 f6 ff ff call 801055b2 <argint> 80105f61: 83 c4 10 add $0x10,%esp 80105f64: 85 c0 test %eax,%eax 80105f66: 79 0a jns 80105f72 <sys_open+0x3a> return -1; 80105f68: b8 ff ff ff ff mov $0xffffffff,%eax 80105f6d: e9 61 01 00 00 jmp 801060d3 <sys_open+0x19b> begin_op(); 80105f72: e8 d6 d5 ff ff call 8010354d <begin_op> if(omode & O_CREATE){ 80105f77: 8b 45 e4 mov -0x1c(%ebp),%eax 80105f7a: 25 00 02 00 00 and $0x200,%eax 80105f7f: 85 c0 test %eax,%eax 80105f81: 74 2a je 80105fad <sys_open+0x75> ip = create(path, T_FILE, 0, 0); 80105f83: 8b 45 e8 mov -0x18(%ebp),%eax 80105f86: 6a 00 push $0x0 80105f88: 6a 00 push $0x0 80105f8a: 6a 02 push $0x2 80105f8c: 50 push %eax 80105f8d: e8 d4 fd ff ff call 80105d66 <create> 80105f92: 83 c4 10 add $0x10,%esp 80105f95: 89 45 f4 mov %eax,-0xc(%ebp) if(ip == 0){ 80105f98: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105f9c: 75 75 jne 80106013 <sys_open+0xdb> end_op(); 80105f9e: e8 36 d6 ff ff call 801035d9 <end_op> return -1; 80105fa3: b8 ff ff ff ff mov $0xffffffff,%eax 80105fa8: e9 26 01 00 00 jmp 801060d3 <sys_open+0x19b> } } else { if((ip = namei(path)) == 0){ 80105fad: 8b 45 e8 mov -0x18(%ebp),%eax 80105fb0: 83 ec 0c sub $0xc,%esp 80105fb3: 50 push %eax 80105fb4: e8 6f c5 ff ff call 80102528 <namei> 80105fb9: 83 c4 10 add $0x10,%esp 80105fbc: 89 45 f4 mov %eax,-0xc(%ebp) 80105fbf: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105fc3: 75 0f jne 80105fd4 <sys_open+0x9c> end_op(); 80105fc5: e8 0f d6 ff ff call 801035d9 <end_op> return -1; 80105fca: b8 ff ff ff ff mov $0xffffffff,%eax 80105fcf: e9 ff 00 00 00 jmp 801060d3 <sys_open+0x19b> } ilock(ip); 80105fd4: 83 ec 0c sub $0xc,%esp 80105fd7: ff 75 f4 pushl -0xc(%ebp) 80105fda: e8 8b b9 ff ff call 8010196a <ilock> 80105fdf: 83 c4 10 add $0x10,%esp if(ip->type == T_DIR && omode != O_RDONLY){ 80105fe2: 8b 45 f4 mov -0xc(%ebp),%eax 80105fe5: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105fe9: 66 83 f8 01 cmp $0x1,%ax 80105fed: 75 24 jne 80106013 <sys_open+0xdb> 80105fef: 8b 45 e4 mov -0x1c(%ebp),%eax 80105ff2: 85 c0 test %eax,%eax 80105ff4: 74 1d je 80106013 <sys_open+0xdb> iunlockput(ip); 80105ff6: 83 ec 0c sub $0xc,%esp 80105ff9: ff 75 f4 pushl -0xc(%ebp) 80105ffc: e8 29 bc ff ff call 80101c2a <iunlockput> 80106001: 83 c4 10 add $0x10,%esp end_op(); 80106004: e8 d0 d5 ff ff call 801035d9 <end_op> return -1; 80106009: b8 ff ff ff ff mov $0xffffffff,%eax 8010600e: e9 c0 00 00 00 jmp 801060d3 <sys_open+0x19b> } } if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){ 80106013: e8 7b af ff ff call 80100f93 <filealloc> 80106018: 89 45 f0 mov %eax,-0x10(%ebp) 8010601b: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010601f: 74 17 je 80106038 <sys_open+0x100> 80106021: 83 ec 0c sub $0xc,%esp 80106024: ff 75 f0 pushl -0x10(%ebp) 80106027: e8 37 f7 ff ff call 80105763 <fdalloc> 8010602c: 83 c4 10 add $0x10,%esp 8010602f: 89 45 ec mov %eax,-0x14(%ebp) 80106032: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80106036: 79 2e jns 80106066 <sys_open+0x12e> if(f) 80106038: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010603c: 74 0e je 8010604c <sys_open+0x114> fileclose(f); 8010603e: 83 ec 0c sub $0xc,%esp 80106041: ff 75 f0 pushl -0x10(%ebp) 80106044: e8 08 b0 ff ff call 80101051 <fileclose> 80106049: 83 c4 10 add $0x10,%esp iunlockput(ip); 8010604c: 83 ec 0c sub $0xc,%esp 8010604f: ff 75 f4 pushl -0xc(%ebp) 80106052: e8 d3 bb ff ff call 80101c2a <iunlockput> 80106057: 83 c4 10 add $0x10,%esp end_op(); 8010605a: e8 7a d5 ff ff call 801035d9 <end_op> return -1; 8010605f: b8 ff ff ff ff mov $0xffffffff,%eax 80106064: eb 6d jmp 801060d3 <sys_open+0x19b> } iunlock(ip); 80106066: 83 ec 0c sub $0xc,%esp 80106069: ff 75 f4 pushl -0xc(%ebp) 8010606c: e8 57 ba ff ff call 80101ac8 <iunlock> 80106071: 83 c4 10 add $0x10,%esp end_op(); 80106074: e8 60 d5 ff ff call 801035d9 <end_op> f->type = FD_INODE; 80106079: 8b 45 f0 mov -0x10(%ebp),%eax 8010607c: c7 00 02 00 00 00 movl $0x2,(%eax) f->ip = ip; 80106082: 8b 45 f0 mov -0x10(%ebp),%eax 80106085: 8b 55 f4 mov -0xc(%ebp),%edx 80106088: 89 50 10 mov %edx,0x10(%eax) f->off = 0; 8010608b: 8b 45 f0 mov -0x10(%ebp),%eax 8010608e: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) f->readable = !(omode & O_WRONLY); 80106095: 8b 45 e4 mov -0x1c(%ebp),%eax 80106098: 83 e0 01 and $0x1,%eax 8010609b: 85 c0 test %eax,%eax 8010609d: 0f 94 c0 sete %al 801060a0: 89 c2 mov %eax,%edx 801060a2: 8b 45 f0 mov -0x10(%ebp),%eax 801060a5: 88 50 08 mov %dl,0x8(%eax) f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 801060a8: 8b 45 e4 mov -0x1c(%ebp),%eax 801060ab: 83 e0 01 and $0x1,%eax 801060ae: 85 c0 test %eax,%eax 801060b0: 75 0a jne 801060bc <sys_open+0x184> 801060b2: 8b 45 e4 mov -0x1c(%ebp),%eax 801060b5: 83 e0 02 and $0x2,%eax 801060b8: 85 c0 test %eax,%eax 801060ba: 74 07 je 801060c3 <sys_open+0x18b> 801060bc: b8 01 00 00 00 mov $0x1,%eax 801060c1: eb 05 jmp 801060c8 <sys_open+0x190> 801060c3: b8 00 00 00 00 mov $0x0,%eax 801060c8: 89 c2 mov %eax,%edx 801060ca: 8b 45 f0 mov -0x10(%ebp),%eax 801060cd: 88 50 09 mov %dl,0x9(%eax) return fd; 801060d0: 8b 45 ec mov -0x14(%ebp),%eax } 801060d3: c9 leave 801060d4: c3 ret 801060d5 <sys_mkdir>: int sys_mkdir(void) { 801060d5: 55 push %ebp 801060d6: 89 e5 mov %esp,%ebp 801060d8: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 801060db: e8 6d d4 ff ff call 8010354d <begin_op> if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ 801060e0: 83 ec 08 sub $0x8,%esp 801060e3: 8d 45 f0 lea -0x10(%ebp),%eax 801060e6: 50 push %eax 801060e7: 6a 00 push $0x0 801060e9: e8 49 f5 ff ff call 80105637 <argstr> 801060ee: 83 c4 10 add $0x10,%esp 801060f1: 85 c0 test %eax,%eax 801060f3: 78 1b js 80106110 <sys_mkdir+0x3b> 801060f5: 8b 45 f0 mov -0x10(%ebp),%eax 801060f8: 6a 00 push $0x0 801060fa: 6a 00 push $0x0 801060fc: 6a 01 push $0x1 801060fe: 50 push %eax 801060ff: e8 62 fc ff ff call 80105d66 <create> 80106104: 83 c4 10 add $0x10,%esp 80106107: 89 45 f4 mov %eax,-0xc(%ebp) 8010610a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010610e: 75 0c jne 8010611c <sys_mkdir+0x47> end_op(); 80106110: e8 c4 d4 ff ff call 801035d9 <end_op> return -1; 80106115: b8 ff ff ff ff mov $0xffffffff,%eax 8010611a: eb 18 jmp 80106134 <sys_mkdir+0x5f> } iunlockput(ip); 8010611c: 83 ec 0c sub $0xc,%esp 8010611f: ff 75 f4 pushl -0xc(%ebp) 80106122: e8 03 bb ff ff call 80101c2a <iunlockput> 80106127: 83 c4 10 add $0x10,%esp end_op(); 8010612a: e8 aa d4 ff ff call 801035d9 <end_op> return 0; 8010612f: b8 00 00 00 00 mov $0x0,%eax } 80106134: c9 leave 80106135: c3 ret 80106136 <sys_mknod>: int sys_mknod(void) { 80106136: 55 push %ebp 80106137: 89 e5 mov %esp,%ebp 80106139: 83 ec 28 sub $0x28,%esp struct inode *ip; char *path; int len; int major, minor; begin_op(); 8010613c: e8 0c d4 ff ff call 8010354d <begin_op> if((len=argstr(0, &path)) < 0 || 80106141: 83 ec 08 sub $0x8,%esp 80106144: 8d 45 ec lea -0x14(%ebp),%eax 80106147: 50 push %eax 80106148: 6a 00 push $0x0 8010614a: e8 e8 f4 ff ff call 80105637 <argstr> 8010614f: 83 c4 10 add $0x10,%esp 80106152: 89 45 f4 mov %eax,-0xc(%ebp) 80106155: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106159: 78 4f js 801061aa <sys_mknod+0x74> argint(1, &major) < 0 || 8010615b: 83 ec 08 sub $0x8,%esp 8010615e: 8d 45 e8 lea -0x18(%ebp),%eax 80106161: 50 push %eax 80106162: 6a 01 push $0x1 80106164: e8 49 f4 ff ff call 801055b2 <argint> 80106169: 83 c4 10 add $0x10,%esp char *path; int len; int major, minor; begin_op(); if((len=argstr(0, &path)) < 0 || 8010616c: 85 c0 test %eax,%eax 8010616e: 78 3a js 801061aa <sys_mknod+0x74> argint(1, &major) < 0 || argint(2, &minor) < 0 || 80106170: 83 ec 08 sub $0x8,%esp 80106173: 8d 45 e4 lea -0x1c(%ebp),%eax 80106176: 50 push %eax 80106177: 6a 02 push $0x2 80106179: e8 34 f4 ff ff call 801055b2 <argint> 8010617e: 83 c4 10 add $0x10,%esp int len; int major, minor; begin_op(); if((len=argstr(0, &path)) < 0 || argint(1, &major) < 0 || 80106181: 85 c0 test %eax,%eax 80106183: 78 25 js 801061aa <sys_mknod+0x74> argint(2, &minor) < 0 || (ip = create(path, T_DEV, major, minor)) == 0){ 80106185: 8b 45 e4 mov -0x1c(%ebp),%eax 80106188: 0f bf c8 movswl %ax,%ecx 8010618b: 8b 45 e8 mov -0x18(%ebp),%eax 8010618e: 0f bf d0 movswl %ax,%edx 80106191: 8b 45 ec mov -0x14(%ebp),%eax int major, minor; begin_op(); if((len=argstr(0, &path)) < 0 || argint(1, &major) < 0 || argint(2, &minor) < 0 || 80106194: 51 push %ecx 80106195: 52 push %edx 80106196: 6a 03 push $0x3 80106198: 50 push %eax 80106199: e8 c8 fb ff ff call 80105d66 <create> 8010619e: 83 c4 10 add $0x10,%esp 801061a1: 89 45 f0 mov %eax,-0x10(%ebp) 801061a4: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801061a8: 75 0c jne 801061b6 <sys_mknod+0x80> (ip = create(path, T_DEV, major, minor)) == 0){ end_op(); 801061aa: e8 2a d4 ff ff call 801035d9 <end_op> return -1; 801061af: b8 ff ff ff ff mov $0xffffffff,%eax 801061b4: eb 18 jmp 801061ce <sys_mknod+0x98> } iunlockput(ip); 801061b6: 83 ec 0c sub $0xc,%esp 801061b9: ff 75 f0 pushl -0x10(%ebp) 801061bc: e8 69 ba ff ff call 80101c2a <iunlockput> 801061c1: 83 c4 10 add $0x10,%esp end_op(); 801061c4: e8 10 d4 ff ff call 801035d9 <end_op> return 0; 801061c9: b8 00 00 00 00 mov $0x0,%eax } 801061ce: c9 leave 801061cf: c3 ret 801061d0 <sys_chdir>: int sys_chdir(void) { 801061d0: 55 push %ebp 801061d1: 89 e5 mov %esp,%ebp 801061d3: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 801061d6: e8 72 d3 ff ff call 8010354d <begin_op> if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ 801061db: 83 ec 08 sub $0x8,%esp 801061de: 8d 45 f0 lea -0x10(%ebp),%eax 801061e1: 50 push %eax 801061e2: 6a 00 push $0x0 801061e4: e8 4e f4 ff ff call 80105637 <argstr> 801061e9: 83 c4 10 add $0x10,%esp 801061ec: 85 c0 test %eax,%eax 801061ee: 78 18 js 80106208 <sys_chdir+0x38> 801061f0: 8b 45 f0 mov -0x10(%ebp),%eax 801061f3: 83 ec 0c sub $0xc,%esp 801061f6: 50 push %eax 801061f7: e8 2c c3 ff ff call 80102528 <namei> 801061fc: 83 c4 10 add $0x10,%esp 801061ff: 89 45 f4 mov %eax,-0xc(%ebp) 80106202: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106206: 75 0c jne 80106214 <sys_chdir+0x44> end_op(); 80106208: e8 cc d3 ff ff call 801035d9 <end_op> return -1; 8010620d: b8 ff ff ff ff mov $0xffffffff,%eax 80106212: eb 6e jmp 80106282 <sys_chdir+0xb2> } ilock(ip); 80106214: 83 ec 0c sub $0xc,%esp 80106217: ff 75 f4 pushl -0xc(%ebp) 8010621a: e8 4b b7 ff ff call 8010196a <ilock> 8010621f: 83 c4 10 add $0x10,%esp if(ip->type != T_DIR){ 80106222: 8b 45 f4 mov -0xc(%ebp),%eax 80106225: 0f b7 40 10 movzwl 0x10(%eax),%eax 80106229: 66 83 f8 01 cmp $0x1,%ax 8010622d: 74 1a je 80106249 <sys_chdir+0x79> iunlockput(ip); 8010622f: 83 ec 0c sub $0xc,%esp 80106232: ff 75 f4 pushl -0xc(%ebp) 80106235: e8 f0 b9 ff ff call 80101c2a <iunlockput> 8010623a: 83 c4 10 add $0x10,%esp end_op(); 8010623d: e8 97 d3 ff ff call 801035d9 <end_op> return -1; 80106242: b8 ff ff ff ff mov $0xffffffff,%eax 80106247: eb 39 jmp 80106282 <sys_chdir+0xb2> } iunlock(ip); 80106249: 83 ec 0c sub $0xc,%esp 8010624c: ff 75 f4 pushl -0xc(%ebp) 8010624f: e8 74 b8 ff ff call 80101ac8 <iunlock> 80106254: 83 c4 10 add $0x10,%esp iput(proc->cwd); 80106257: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010625d: 8b 40 68 mov 0x68(%eax),%eax 80106260: 83 ec 0c sub $0xc,%esp 80106263: 50 push %eax 80106264: e8 d1 b8 ff ff call 80101b3a <iput> 80106269: 83 c4 10 add $0x10,%esp end_op(); 8010626c: e8 68 d3 ff ff call 801035d9 <end_op> proc->cwd = ip; 80106271: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106277: 8b 55 f4 mov -0xc(%ebp),%edx 8010627a: 89 50 68 mov %edx,0x68(%eax) return 0; 8010627d: b8 00 00 00 00 mov $0x0,%eax } 80106282: c9 leave 80106283: c3 ret 80106284 <sys_exec>: int sys_exec(void) { 80106284: 55 push %ebp 80106285: 89 e5 mov %esp,%ebp 80106287: 81 ec 98 00 00 00 sub $0x98,%esp char *path, *argv[MAXARG]; int i; uint uargv, uarg; if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ 8010628d: 83 ec 08 sub $0x8,%esp 80106290: 8d 45 f0 lea -0x10(%ebp),%eax 80106293: 50 push %eax 80106294: 6a 00 push $0x0 80106296: e8 9c f3 ff ff call 80105637 <argstr> 8010629b: 83 c4 10 add $0x10,%esp 8010629e: 85 c0 test %eax,%eax 801062a0: 78 18 js 801062ba <sys_exec+0x36> 801062a2: 83 ec 08 sub $0x8,%esp 801062a5: 8d 85 6c ff ff ff lea -0x94(%ebp),%eax 801062ab: 50 push %eax 801062ac: 6a 01 push $0x1 801062ae: e8 ff f2 ff ff call 801055b2 <argint> 801062b3: 83 c4 10 add $0x10,%esp 801062b6: 85 c0 test %eax,%eax 801062b8: 79 0a jns 801062c4 <sys_exec+0x40> return -1; 801062ba: b8 ff ff ff ff mov $0xffffffff,%eax 801062bf: e9 c6 00 00 00 jmp 8010638a <sys_exec+0x106> } memset(argv, 0, sizeof(argv)); 801062c4: 83 ec 04 sub $0x4,%esp 801062c7: 68 80 00 00 00 push $0x80 801062cc: 6a 00 push $0x0 801062ce: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax 801062d4: 50 push %eax 801062d5: e8 b3 ef ff ff call 8010528d <memset> 801062da: 83 c4 10 add $0x10,%esp for(i=0;; i++){ 801062dd: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if(i >= NELEM(argv)) 801062e4: 8b 45 f4 mov -0xc(%ebp),%eax 801062e7: 83 f8 1f cmp $0x1f,%eax 801062ea: 76 0a jbe 801062f6 <sys_exec+0x72> return -1; 801062ec: b8 ff ff ff ff mov $0xffffffff,%eax 801062f1: e9 94 00 00 00 jmp 8010638a <sys_exec+0x106> if(fetchint(uargv+4*i, (int*)&uarg) < 0) 801062f6: 8b 45 f4 mov -0xc(%ebp),%eax 801062f9: c1 e0 02 shl $0x2,%eax 801062fc: 89 c2 mov %eax,%edx 801062fe: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax 80106304: 01 c2 add %eax,%edx 80106306: 83 ec 08 sub $0x8,%esp 80106309: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax 8010630f: 50 push %eax 80106310: 52 push %edx 80106311: e8 00 f2 ff ff call 80105516 <fetchint> 80106316: 83 c4 10 add $0x10,%esp 80106319: 85 c0 test %eax,%eax 8010631b: 79 07 jns 80106324 <sys_exec+0xa0> return -1; 8010631d: b8 ff ff ff ff mov $0xffffffff,%eax 80106322: eb 66 jmp 8010638a <sys_exec+0x106> if(uarg == 0){ 80106324: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax 8010632a: 85 c0 test %eax,%eax 8010632c: 75 27 jne 80106355 <sys_exec+0xd1> argv[i] = 0; 8010632e: 8b 45 f4 mov -0xc(%ebp),%eax 80106331: c7 84 85 70 ff ff ff movl $0x0,-0x90(%ebp,%eax,4) 80106338: 00 00 00 00 break; 8010633c: 90 nop } if(fetchstr(uarg, &argv[i]) < 0) return -1; } return exec(path, argv); 8010633d: 8b 45 f0 mov -0x10(%ebp),%eax 80106340: 83 ec 08 sub $0x8,%esp 80106343: 8d 95 70 ff ff ff lea -0x90(%ebp),%edx 80106349: 52 push %edx 8010634a: 50 push %eax 8010634b: e8 21 a8 ff ff call 80100b71 <exec> 80106350: 83 c4 10 add $0x10,%esp 80106353: eb 35 jmp 8010638a <sys_exec+0x106> return -1; if(uarg == 0){ argv[i] = 0; break; } if(fetchstr(uarg, &argv[i]) < 0) 80106355: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax 8010635b: 8b 55 f4 mov -0xc(%ebp),%edx 8010635e: c1 e2 02 shl $0x2,%edx 80106361: 01 c2 add %eax,%edx 80106363: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax 80106369: 83 ec 08 sub $0x8,%esp 8010636c: 52 push %edx 8010636d: 50 push %eax 8010636e: e8 dd f1 ff ff call 80105550 <fetchstr> 80106373: 83 c4 10 add $0x10,%esp 80106376: 85 c0 test %eax,%eax 80106378: 79 07 jns 80106381 <sys_exec+0xfd> return -1; 8010637a: b8 ff ff ff ff mov $0xffffffff,%eax 8010637f: eb 09 jmp 8010638a <sys_exec+0x106> if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ return -1; } memset(argv, 0, sizeof(argv)); for(i=0;; i++){ 80106381: 83 45 f4 01 addl $0x1,-0xc(%ebp) argv[i] = 0; break; } if(fetchstr(uarg, &argv[i]) < 0) return -1; } 80106385: e9 5a ff ff ff jmp 801062e4 <sys_exec+0x60> return exec(path, argv); } 8010638a: c9 leave 8010638b: c3 ret 8010638c <sys_pipe>: int sys_pipe(void) { 8010638c: 55 push %ebp 8010638d: 89 e5 mov %esp,%ebp 8010638f: 83 ec 28 sub $0x28,%esp int *fd; struct file *rf, *wf; int fd0, fd1; if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) 80106392: 83 ec 04 sub $0x4,%esp 80106395: 6a 08 push $0x8 80106397: 8d 45 ec lea -0x14(%ebp),%eax 8010639a: 50 push %eax 8010639b: 6a 00 push $0x0 8010639d: e8 38 f2 ff ff call 801055da <argptr> 801063a2: 83 c4 10 add $0x10,%esp 801063a5: 85 c0 test %eax,%eax 801063a7: 79 0a jns 801063b3 <sys_pipe+0x27> return -1; 801063a9: b8 ff ff ff ff mov $0xffffffff,%eax 801063ae: e9 af 00 00 00 jmp 80106462 <sys_pipe+0xd6> if(pipealloc(&rf, &wf) < 0) 801063b3: 83 ec 08 sub $0x8,%esp 801063b6: 8d 45 e4 lea -0x1c(%ebp),%eax 801063b9: 50 push %eax 801063ba: 8d 45 e8 lea -0x18(%ebp),%eax 801063bd: 50 push %eax 801063be: e8 7e dc ff ff call 80104041 <pipealloc> 801063c3: 83 c4 10 add $0x10,%esp 801063c6: 85 c0 test %eax,%eax 801063c8: 79 0a jns 801063d4 <sys_pipe+0x48> return -1; 801063ca: b8 ff ff ff ff mov $0xffffffff,%eax 801063cf: e9 8e 00 00 00 jmp 80106462 <sys_pipe+0xd6> fd0 = -1; 801063d4: c7 45 f4 ff ff ff ff movl $0xffffffff,-0xc(%ebp) if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ 801063db: 8b 45 e8 mov -0x18(%ebp),%eax 801063de: 83 ec 0c sub $0xc,%esp 801063e1: 50 push %eax 801063e2: e8 7c f3 ff ff call 80105763 <fdalloc> 801063e7: 83 c4 10 add $0x10,%esp 801063ea: 89 45 f4 mov %eax,-0xc(%ebp) 801063ed: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801063f1: 78 18 js 8010640b <sys_pipe+0x7f> 801063f3: 8b 45 e4 mov -0x1c(%ebp),%eax 801063f6: 83 ec 0c sub $0xc,%esp 801063f9: 50 push %eax 801063fa: e8 64 f3 ff ff call 80105763 <fdalloc> 801063ff: 83 c4 10 add $0x10,%esp 80106402: 89 45 f0 mov %eax,-0x10(%ebp) 80106405: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80106409: 79 3f jns 8010644a <sys_pipe+0xbe> if(fd0 >= 0) 8010640b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010640f: 78 14 js 80106425 <sys_pipe+0x99> proc->ofile[fd0] = 0; 80106411: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106417: 8b 55 f4 mov -0xc(%ebp),%edx 8010641a: 83 c2 08 add $0x8,%edx 8010641d: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 80106424: 00 fileclose(rf); 80106425: 8b 45 e8 mov -0x18(%ebp),%eax 80106428: 83 ec 0c sub $0xc,%esp 8010642b: 50 push %eax 8010642c: e8 20 ac ff ff call 80101051 <fileclose> 80106431: 83 c4 10 add $0x10,%esp fileclose(wf); 80106434: 8b 45 e4 mov -0x1c(%ebp),%eax 80106437: 83 ec 0c sub $0xc,%esp 8010643a: 50 push %eax 8010643b: e8 11 ac ff ff call 80101051 <fileclose> 80106440: 83 c4 10 add $0x10,%esp return -1; 80106443: b8 ff ff ff ff mov $0xffffffff,%eax 80106448: eb 18 jmp 80106462 <sys_pipe+0xd6> } fd[0] = fd0; 8010644a: 8b 45 ec mov -0x14(%ebp),%eax 8010644d: 8b 55 f4 mov -0xc(%ebp),%edx 80106450: 89 10 mov %edx,(%eax) fd[1] = fd1; 80106452: 8b 45 ec mov -0x14(%ebp),%eax 80106455: 8d 50 04 lea 0x4(%eax),%edx 80106458: 8b 45 f0 mov -0x10(%ebp),%eax 8010645b: 89 02 mov %eax,(%edx) return 0; 8010645d: b8 00 00 00 00 mov $0x0,%eax } 80106462: c9 leave 80106463: c3 ret 80106464 <sys_fork>: #include "mmu.h" #include "proc.h" int sys_fork(void) { 80106464: 55 push %ebp 80106465: 89 e5 mov %esp,%ebp 80106467: 83 ec 08 sub $0x8,%esp return fork(); 8010646a: e8 c8 e2 ff ff call 80104737 <fork> } 8010646f: c9 leave 80106470: c3 ret 80106471 <sys_exit>: int sys_exit(void) { 80106471: 55 push %ebp 80106472: 89 e5 mov %esp,%ebp 80106474: 83 ec 08 sub $0x8,%esp exit(); 80106477: e8 4c e4 ff ff call 801048c8 <exit> return 0; // not reached 8010647c: b8 00 00 00 00 mov $0x0,%eax } 80106481: c9 leave 80106482: c3 ret 80106483 <sys_wait>: int sys_wait(void) { 80106483: 55 push %ebp 80106484: 89 e5 mov %esp,%ebp 80106486: 83 ec 08 sub $0x8,%esp return wait(); 80106489: e8 72 e5 ff ff call 80104a00 <wait> } 8010648e: c9 leave 8010648f: c3 ret 80106490 <sys_kill>: int sys_kill(void) { 80106490: 55 push %ebp 80106491: 89 e5 mov %esp,%ebp 80106493: 83 ec 18 sub $0x18,%esp int pid; if(argint(0, &pid) < 0) 80106496: 83 ec 08 sub $0x8,%esp 80106499: 8d 45 f4 lea -0xc(%ebp),%eax 8010649c: 50 push %eax 8010649d: 6a 00 push $0x0 8010649f: e8 0e f1 ff ff call 801055b2 <argint> 801064a4: 83 c4 10 add $0x10,%esp 801064a7: 85 c0 test %eax,%eax 801064a9: 79 07 jns 801064b2 <sys_kill+0x22> return -1; 801064ab: b8 ff ff ff ff mov $0xffffffff,%eax 801064b0: eb 0f jmp 801064c1 <sys_kill+0x31> return kill(pid); 801064b2: 8b 45 f4 mov -0xc(%ebp),%eax 801064b5: 83 ec 0c sub $0xc,%esp 801064b8: 50 push %eax 801064b9: e8 95 e9 ff ff call 80104e53 <kill> 801064be: 83 c4 10 add $0x10,%esp } 801064c1: c9 leave 801064c2: c3 ret 801064c3 <sys_getpid>: int sys_getpid(void) { 801064c3: 55 push %ebp 801064c4: 89 e5 mov %esp,%ebp return proc->pid; 801064c6: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801064cc: 8b 40 10 mov 0x10(%eax),%eax } 801064cf: 5d pop %ebp 801064d0: c3 ret 801064d1 <sys_sbrk>: int sys_sbrk(void) { 801064d1: 55 push %ebp 801064d2: 89 e5 mov %esp,%ebp 801064d4: 83 ec 18 sub $0x18,%esp int addr; int n; if(argint(0, &n) < 0) 801064d7: 83 ec 08 sub $0x8,%esp 801064da: 8d 45 f0 lea -0x10(%ebp),%eax 801064dd: 50 push %eax 801064de: 6a 00 push $0x0 801064e0: e8 cd f0 ff ff call 801055b2 <argint> 801064e5: 83 c4 10 add $0x10,%esp 801064e8: 85 c0 test %eax,%eax 801064ea: 79 07 jns 801064f3 <sys_sbrk+0x22> return -1; 801064ec: b8 ff ff ff ff mov $0xffffffff,%eax 801064f1: eb 28 jmp 8010651b <sys_sbrk+0x4a> addr = proc->sz; 801064f3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801064f9: 8b 00 mov (%eax),%eax 801064fb: 89 45 f4 mov %eax,-0xc(%ebp) if(growproc(n) < 0) 801064fe: 8b 45 f0 mov -0x10(%ebp),%eax 80106501: 83 ec 0c sub $0xc,%esp 80106504: 50 push %eax 80106505: e8 8a e1 ff ff call 80104694 <growproc> 8010650a: 83 c4 10 add $0x10,%esp 8010650d: 85 c0 test %eax,%eax 8010650f: 79 07 jns 80106518 <sys_sbrk+0x47> return -1; 80106511: b8 ff ff ff ff mov $0xffffffff,%eax 80106516: eb 03 jmp 8010651b <sys_sbrk+0x4a> return addr; 80106518: 8b 45 f4 mov -0xc(%ebp),%eax } 8010651b: c9 leave 8010651c: c3 ret 8010651d <sys_sleep>: int sys_sleep(void) { 8010651d: 55 push %ebp 8010651e: 89 e5 mov %esp,%ebp 80106520: 83 ec 18 sub $0x18,%esp int n; uint ticks0; if(argint(0, &n) < 0) 80106523: 83 ec 08 sub $0x8,%esp 80106526: 8d 45 f0 lea -0x10(%ebp),%eax 80106529: 50 push %eax 8010652a: 6a 00 push $0x0 8010652c: e8 81 f0 ff ff call 801055b2 <argint> 80106531: 83 c4 10 add $0x10,%esp 80106534: 85 c0 test %eax,%eax 80106536: 79 07 jns 8010653f <sys_sleep+0x22> return -1; 80106538: b8 ff ff ff ff mov $0xffffffff,%eax 8010653d: eb 77 jmp 801065b6 <sys_sleep+0x99> acquire(&tickslock); 8010653f: 83 ec 0c sub $0xc,%esp 80106542: 68 a0 86 11 80 push $0x801186a0 80106547: e8 de ea ff ff call 8010502a <acquire> 8010654c: 83 c4 10 add $0x10,%esp ticks0 = ticks; 8010654f: a1 e0 8e 11 80 mov 0x80118ee0,%eax 80106554: 89 45 f4 mov %eax,-0xc(%ebp) while(ticks - ticks0 < n){ 80106557: eb 39 jmp 80106592 <sys_sleep+0x75> if(proc->killed){ 80106559: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010655f: 8b 40 24 mov 0x24(%eax),%eax 80106562: 85 c0 test %eax,%eax 80106564: 74 17 je 8010657d <sys_sleep+0x60> release(&tickslock); 80106566: 83 ec 0c sub $0xc,%esp 80106569: 68 a0 86 11 80 push $0x801186a0 8010656e: e8 1e eb ff ff call 80105091 <release> 80106573: 83 c4 10 add $0x10,%esp return -1; 80106576: b8 ff ff ff ff mov $0xffffffff,%eax 8010657b: eb 39 jmp 801065b6 <sys_sleep+0x99> } sleep(&ticks, &tickslock); 8010657d: 83 ec 08 sub $0x8,%esp 80106580: 68 a0 86 11 80 push $0x801186a0 80106585: 68 e0 8e 11 80 push $0x80118ee0 8010658a: e8 a2 e7 ff ff call 80104d31 <sleep> 8010658f: 83 c4 10 add $0x10,%esp if(argint(0, &n) < 0) return -1; acquire(&tickslock); ticks0 = ticks; while(ticks - ticks0 < n){ 80106592: a1 e0 8e 11 80 mov 0x80118ee0,%eax 80106597: 2b 45 f4 sub -0xc(%ebp),%eax 8010659a: 8b 55 f0 mov -0x10(%ebp),%edx 8010659d: 39 d0 cmp %edx,%eax 8010659f: 72 b8 jb 80106559 <sys_sleep+0x3c> release(&tickslock); return -1; } sleep(&ticks, &tickslock); } release(&tickslock); 801065a1: 83 ec 0c sub $0xc,%esp 801065a4: 68 a0 86 11 80 push $0x801186a0 801065a9: e8 e3 ea ff ff call 80105091 <release> 801065ae: 83 c4 10 add $0x10,%esp return 0; 801065b1: b8 00 00 00 00 mov $0x0,%eax } 801065b6: c9 leave 801065b7: c3 ret 801065b8 <sys_uptime>: // return how many clock tick interrupts have occurred // since start. int sys_uptime(void) { 801065b8: 55 push %ebp 801065b9: 89 e5 mov %esp,%ebp 801065bb: 83 ec 18 sub $0x18,%esp uint xticks; acquire(&tickslock); 801065be: 83 ec 0c sub $0xc,%esp 801065c1: 68 a0 86 11 80 push $0x801186a0 801065c6: e8 5f ea ff ff call 8010502a <acquire> 801065cb: 83 c4 10 add $0x10,%esp xticks = ticks; 801065ce: a1 e0 8e 11 80 mov 0x80118ee0,%eax 801065d3: 89 45 f4 mov %eax,-0xc(%ebp) release(&tickslock); 801065d6: 83 ec 0c sub $0xc,%esp 801065d9: 68 a0 86 11 80 push $0x801186a0 801065de: e8 ae ea ff ff call 80105091 <release> 801065e3: 83 c4 10 add $0x10,%esp return xticks; 801065e6: 8b 45 f4 mov -0xc(%ebp),%eax } 801065e9: c9 leave 801065ea: c3 ret 801065eb <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 801065eb: 55 push %ebp 801065ec: 89 e5 mov %esp,%ebp 801065ee: 83 ec 08 sub $0x8,%esp 801065f1: 8b 55 08 mov 0x8(%ebp),%edx 801065f4: 8b 45 0c mov 0xc(%ebp),%eax 801065f7: 66 89 55 fc mov %dx,-0x4(%ebp) 801065fb: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801065fe: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80106602: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80106606: ee out %al,(%dx) } 80106607: 90 nop 80106608: c9 leave 80106609: c3 ret 8010660a <timerinit>: #define TIMER_RATEGEN 0x04 // mode 2, rate generator #define TIMER_16BIT 0x30 // r/w counter 16 bits, LSB first void timerinit(void) { 8010660a: 55 push %ebp 8010660b: 89 e5 mov %esp,%ebp 8010660d: 83 ec 08 sub $0x8,%esp // Interrupt 100 times/sec. outb(TIMER_MODE, TIMER_SEL0 | TIMER_RATEGEN | TIMER_16BIT); 80106610: 6a 34 push $0x34 80106612: 6a 43 push $0x43 80106614: e8 d2 ff ff ff call 801065eb <outb> 80106619: 83 c4 08 add $0x8,%esp outb(IO_TIMER1, TIMER_DIV(100) % 256); 8010661c: 68 9c 00 00 00 push $0x9c 80106621: 6a 40 push $0x40 80106623: e8 c3 ff ff ff call 801065eb <outb> 80106628: 83 c4 08 add $0x8,%esp outb(IO_TIMER1, TIMER_DIV(100) / 256); 8010662b: 6a 2e push $0x2e 8010662d: 6a 40 push $0x40 8010662f: e8 b7 ff ff ff call 801065eb <outb> 80106634: 83 c4 08 add $0x8,%esp picenable(IRQ_TIMER); 80106637: 83 ec 0c sub $0xc,%esp 8010663a: 6a 00 push $0x0 8010663c: e8 ea d8 ff ff call 80103f2b <picenable> 80106641: 83 c4 10 add $0x10,%esp } 80106644: 90 nop 80106645: c9 leave 80106646: c3 ret 80106647 <alltraps>: # vectors.S sends all traps here. .globl alltraps alltraps: # Build trap frame. pushl %ds 80106647: 1e push %ds pushl %es 80106648: 06 push %es pushl %fs 80106649: 0f a0 push %fs pushl %gs 8010664b: 0f a8 push %gs pushal 8010664d: 60 pusha # Set up data and per-cpu segments. movw $(SEG_KDATA<<3), %ax 8010664e: 66 b8 10 00 mov $0x10,%ax movw %ax, %ds 80106652: 8e d8 mov %eax,%ds movw %ax, %es 80106654: 8e c0 mov %eax,%es movw $(SEG_KCPU<<3), %ax 80106656: 66 b8 18 00 mov $0x18,%ax movw %ax, %fs 8010665a: 8e e0 mov %eax,%fs movw %ax, %gs 8010665c: 8e e8 mov %eax,%gs # Call trap(tf), where tf=%esp pushl %esp 8010665e: 54 push %esp call trap 8010665f: e8 d7 01 00 00 call 8010683b <trap> addl $4, %esp 80106664: 83 c4 04 add $0x4,%esp 80106667 <trapret>: # Return falls through to trapret... .globl trapret trapret: popal 80106667: 61 popa popl %gs 80106668: 0f a9 pop %gs popl %fs 8010666a: 0f a1 pop %fs popl %es 8010666c: 07 pop %es popl %ds 8010666d: 1f pop %ds addl $0x8, %esp # trapno and errcode 8010666e: 83 c4 08 add $0x8,%esp iret 80106671: cf iret 80106672 <lidt>: struct gatedesc; static inline void lidt(struct gatedesc *p, int size) { 80106672: 55 push %ebp 80106673: 89 e5 mov %esp,%ebp 80106675: 83 ec 10 sub $0x10,%esp volatile ushort pd[3]; pd[0] = size-1; 80106678: 8b 45 0c mov 0xc(%ebp),%eax 8010667b: 83 e8 01 sub $0x1,%eax 8010667e: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 80106682: 8b 45 08 mov 0x8(%ebp),%eax 80106685: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 80106689: 8b 45 08 mov 0x8(%ebp),%eax 8010668c: c1 e8 10 shr $0x10,%eax 8010668f: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lidt (%0)" : : "r" (pd)); 80106693: 8d 45 fa lea -0x6(%ebp),%eax 80106696: 0f 01 18 lidtl (%eax) } 80106699: 90 nop 8010669a: c9 leave 8010669b: c3 ret 8010669c <rcr2>: return result; } static inline uint rcr2(void) { 8010669c: 55 push %ebp 8010669d: 89 e5 mov %esp,%ebp 8010669f: 83 ec 10 sub $0x10,%esp uint val; asm volatile("movl %%cr2,%0" : "=r" (val)); 801066a2: 0f 20 d0 mov %cr2,%eax 801066a5: 89 45 fc mov %eax,-0x4(%ebp) return val; 801066a8: 8b 45 fc mov -0x4(%ebp),%eax } 801066ab: c9 leave 801066ac: c3 ret 801066ad <tvinit>: struct spinlock tickslock; uint ticks; void tvinit(void) { 801066ad: 55 push %ebp 801066ae: 89 e5 mov %esp,%ebp 801066b0: 83 ec 18 sub $0x18,%esp int i; for(i = 0; i < 256; i++) 801066b3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801066ba: e9 c3 00 00 00 jmp 80106782 <tvinit+0xd5> SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); 801066bf: 8b 45 f4 mov -0xc(%ebp),%eax 801066c2: 8b 04 85 98 b0 10 80 mov -0x7fef4f68(,%eax,4),%eax 801066c9: 89 c2 mov %eax,%edx 801066cb: 8b 45 f4 mov -0xc(%ebp),%eax 801066ce: 66 89 14 c5 e0 86 11 mov %dx,-0x7fee7920(,%eax,8) 801066d5: 80 801066d6: 8b 45 f4 mov -0xc(%ebp),%eax 801066d9: 66 c7 04 c5 e2 86 11 movw $0x8,-0x7fee791e(,%eax,8) 801066e0: 80 08 00 801066e3: 8b 45 f4 mov -0xc(%ebp),%eax 801066e6: 0f b6 14 c5 e4 86 11 movzbl -0x7fee791c(,%eax,8),%edx 801066ed: 80 801066ee: 83 e2 e0 and $0xffffffe0,%edx 801066f1: 88 14 c5 e4 86 11 80 mov %dl,-0x7fee791c(,%eax,8) 801066f8: 8b 45 f4 mov -0xc(%ebp),%eax 801066fb: 0f b6 14 c5 e4 86 11 movzbl -0x7fee791c(,%eax,8),%edx 80106702: 80 80106703: 83 e2 1f and $0x1f,%edx 80106706: 88 14 c5 e4 86 11 80 mov %dl,-0x7fee791c(,%eax,8) 8010670d: 8b 45 f4 mov -0xc(%ebp),%eax 80106710: 0f b6 14 c5 e5 86 11 movzbl -0x7fee791b(,%eax,8),%edx 80106717: 80 80106718: 83 e2 f0 and $0xfffffff0,%edx 8010671b: 83 ca 0e or $0xe,%edx 8010671e: 88 14 c5 e5 86 11 80 mov %dl,-0x7fee791b(,%eax,8) 80106725: 8b 45 f4 mov -0xc(%ebp),%eax 80106728: 0f b6 14 c5 e5 86 11 movzbl -0x7fee791b(,%eax,8),%edx 8010672f: 80 80106730: 83 e2 ef and $0xffffffef,%edx 80106733: 88 14 c5 e5 86 11 80 mov %dl,-0x7fee791b(,%eax,8) 8010673a: 8b 45 f4 mov -0xc(%ebp),%eax 8010673d: 0f b6 14 c5 e5 86 11 movzbl -0x7fee791b(,%eax,8),%edx 80106744: 80 80106745: 83 e2 9f and $0xffffff9f,%edx 80106748: 88 14 c5 e5 86 11 80 mov %dl,-0x7fee791b(,%eax,8) 8010674f: 8b 45 f4 mov -0xc(%ebp),%eax 80106752: 0f b6 14 c5 e5 86 11 movzbl -0x7fee791b(,%eax,8),%edx 80106759: 80 8010675a: 83 ca 80 or $0xffffff80,%edx 8010675d: 88 14 c5 e5 86 11 80 mov %dl,-0x7fee791b(,%eax,8) 80106764: 8b 45 f4 mov -0xc(%ebp),%eax 80106767: 8b 04 85 98 b0 10 80 mov -0x7fef4f68(,%eax,4),%eax 8010676e: c1 e8 10 shr $0x10,%eax 80106771: 89 c2 mov %eax,%edx 80106773: 8b 45 f4 mov -0xc(%ebp),%eax 80106776: 66 89 14 c5 e6 86 11 mov %dx,-0x7fee791a(,%eax,8) 8010677d: 80 void tvinit(void) { int i; for(i = 0; i < 256; i++) 8010677e: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80106782: 81 7d f4 ff 00 00 00 cmpl $0xff,-0xc(%ebp) 80106789: 0f 8e 30 ff ff ff jle 801066bf <tvinit+0x12> SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 8010678f: a1 98 b1 10 80 mov 0x8010b198,%eax 80106794: 66 a3 e0 88 11 80 mov %ax,0x801188e0 8010679a: 66 c7 05 e2 88 11 80 movw $0x8,0x801188e2 801067a1: 08 00 801067a3: 0f b6 05 e4 88 11 80 movzbl 0x801188e4,%eax 801067aa: 83 e0 e0 and $0xffffffe0,%eax 801067ad: a2 e4 88 11 80 mov %al,0x801188e4 801067b2: 0f b6 05 e4 88 11 80 movzbl 0x801188e4,%eax 801067b9: 83 e0 1f and $0x1f,%eax 801067bc: a2 e4 88 11 80 mov %al,0x801188e4 801067c1: 0f b6 05 e5 88 11 80 movzbl 0x801188e5,%eax 801067c8: 83 c8 0f or $0xf,%eax 801067cb: a2 e5 88 11 80 mov %al,0x801188e5 801067d0: 0f b6 05 e5 88 11 80 movzbl 0x801188e5,%eax 801067d7: 83 e0 ef and $0xffffffef,%eax 801067da: a2 e5 88 11 80 mov %al,0x801188e5 801067df: 0f b6 05 e5 88 11 80 movzbl 0x801188e5,%eax 801067e6: 83 c8 60 or $0x60,%eax 801067e9: a2 e5 88 11 80 mov %al,0x801188e5 801067ee: 0f b6 05 e5 88 11 80 movzbl 0x801188e5,%eax 801067f5: 83 c8 80 or $0xffffff80,%eax 801067f8: a2 e5 88 11 80 mov %al,0x801188e5 801067fd: a1 98 b1 10 80 mov 0x8010b198,%eax 80106802: c1 e8 10 shr $0x10,%eax 80106805: 66 a3 e6 88 11 80 mov %ax,0x801188e6 initlock(&tickslock, "time"); 8010680b: 83 ec 08 sub $0x8,%esp 8010680e: 68 48 8a 10 80 push $0x80108a48 80106813: 68 a0 86 11 80 push $0x801186a0 80106818: e8 eb e7 ff ff call 80105008 <initlock> 8010681d: 83 c4 10 add $0x10,%esp } 80106820: 90 nop 80106821: c9 leave 80106822: c3 ret 80106823 <idtinit>: void idtinit(void) { 80106823: 55 push %ebp 80106824: 89 e5 mov %esp,%ebp lidt(idt, sizeof(idt)); 80106826: 68 00 08 00 00 push $0x800 8010682b: 68 e0 86 11 80 push $0x801186e0 80106830: e8 3d fe ff ff call 80106672 <lidt> 80106835: 83 c4 08 add $0x8,%esp } 80106838: 90 nop 80106839: c9 leave 8010683a: c3 ret 8010683b <trap>: //PAGEBREAK: 41 void trap(struct trapframe *tf) { 8010683b: 55 push %ebp 8010683c: 89 e5 mov %esp,%ebp 8010683e: 57 push %edi 8010683f: 56 push %esi 80106840: 53 push %ebx 80106841: 83 ec 1c sub $0x1c,%esp if(tf->trapno == T_SYSCALL){ 80106844: 8b 45 08 mov 0x8(%ebp),%eax 80106847: 8b 40 30 mov 0x30(%eax),%eax 8010684a: 83 f8 40 cmp $0x40,%eax 8010684d: 75 3e jne 8010688d <trap+0x52> if(proc->killed) 8010684f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106855: 8b 40 24 mov 0x24(%eax),%eax 80106858: 85 c0 test %eax,%eax 8010685a: 74 05 je 80106861 <trap+0x26> exit(); 8010685c: e8 67 e0 ff ff call 801048c8 <exit> proc->tf = tf; 80106861: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106867: 8b 55 08 mov 0x8(%ebp),%edx 8010686a: 89 50 18 mov %edx,0x18(%eax) syscall(); 8010686d: e8 f6 ed ff ff call 80105668 <syscall> if(proc->killed) 80106872: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106878: 8b 40 24 mov 0x24(%eax),%eax 8010687b: 85 c0 test %eax,%eax 8010687d: 0f 84 1b 02 00 00 je 80106a9e <trap+0x263> exit(); 80106883: e8 40 e0 ff ff call 801048c8 <exit> return; 80106888: e9 11 02 00 00 jmp 80106a9e <trap+0x263> } switch(tf->trapno){ 8010688d: 8b 45 08 mov 0x8(%ebp),%eax 80106890: 8b 40 30 mov 0x30(%eax),%eax 80106893: 83 e8 20 sub $0x20,%eax 80106896: 83 f8 1f cmp $0x1f,%eax 80106899: 0f 87 c0 00 00 00 ja 8010695f <trap+0x124> 8010689f: 8b 04 85 f0 8a 10 80 mov -0x7fef7510(,%eax,4),%eax 801068a6: ff e0 jmp *%eax case T_IRQ0 + IRQ_TIMER: if(cpu->id == 0){ 801068a8: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801068ae: 0f b6 00 movzbl (%eax),%eax 801068b1: 84 c0 test %al,%al 801068b3: 75 3d jne 801068f2 <trap+0xb7> acquire(&tickslock); 801068b5: 83 ec 0c sub $0xc,%esp 801068b8: 68 a0 86 11 80 push $0x801186a0 801068bd: e8 68 e7 ff ff call 8010502a <acquire> 801068c2: 83 c4 10 add $0x10,%esp ticks++; 801068c5: a1 e0 8e 11 80 mov 0x80118ee0,%eax 801068ca: 83 c0 01 add $0x1,%eax 801068cd: a3 e0 8e 11 80 mov %eax,0x80118ee0 wakeup(&ticks); 801068d2: 83 ec 0c sub $0xc,%esp 801068d5: 68 e0 8e 11 80 push $0x80118ee0 801068da: e8 3d e5 ff ff call 80104e1c <wakeup> 801068df: 83 c4 10 add $0x10,%esp release(&tickslock); 801068e2: 83 ec 0c sub $0xc,%esp 801068e5: 68 a0 86 11 80 push $0x801186a0 801068ea: e8 a2 e7 ff ff call 80105091 <release> 801068ef: 83 c4 10 add $0x10,%esp } lapiceoi(); 801068f2: e8 2e c7 ff ff call 80103025 <lapiceoi> break; 801068f7: e9 1c 01 00 00 jmp 80106a18 <trap+0x1dd> case T_IRQ0 + IRQ_IDE: ideintr(); 801068fc: e8 37 bf ff ff call 80102838 <ideintr> lapiceoi(); 80106901: e8 1f c7 ff ff call 80103025 <lapiceoi> break; 80106906: e9 0d 01 00 00 jmp 80106a18 <trap+0x1dd> case T_IRQ0 + IRQ_IDE+1: // Bochs generates spurious IDE1 interrupts. break; case T_IRQ0 + IRQ_KBD: kbdintr(); 8010690b: e8 17 c5 ff ff call 80102e27 <kbdintr> lapiceoi(); 80106910: e8 10 c7 ff ff call 80103025 <lapiceoi> break; 80106915: e9 fe 00 00 00 jmp 80106a18 <trap+0x1dd> case T_IRQ0 + IRQ_COM1: uartintr(); 8010691a: e8 60 03 00 00 call 80106c7f <uartintr> lapiceoi(); 8010691f: e8 01 c7 ff ff call 80103025 <lapiceoi> break; 80106924: e9 ef 00 00 00 jmp 80106a18 <trap+0x1dd> case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106929: 8b 45 08 mov 0x8(%ebp),%eax 8010692c: 8b 48 38 mov 0x38(%eax),%ecx cpu->id, tf->cs, tf->eip); 8010692f: 8b 45 08 mov 0x8(%ebp),%eax 80106932: 0f b7 40 3c movzwl 0x3c(%eax),%eax uartintr(); lapiceoi(); break; case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106936: 0f b7 d0 movzwl %ax,%edx cpu->id, tf->cs, tf->eip); 80106939: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010693f: 0f b6 00 movzbl (%eax),%eax uartintr(); lapiceoi(); break; case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106942: 0f b6 c0 movzbl %al,%eax 80106945: 51 push %ecx 80106946: 52 push %edx 80106947: 50 push %eax 80106948: 68 50 8a 10 80 push $0x80108a50 8010694d: e8 74 9a ff ff call 801003c6 <cprintf> 80106952: 83 c4 10 add $0x10,%esp cpu->id, tf->cs, tf->eip); lapiceoi(); 80106955: e8 cb c6 ff ff call 80103025 <lapiceoi> break; 8010695a: e9 b9 00 00 00 jmp 80106a18 <trap+0x1dd> //PAGEBREAK: 13 default: if(proc == 0 || (tf->cs&3) == 0){ 8010695f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106965: 85 c0 test %eax,%eax 80106967: 74 11 je 8010697a <trap+0x13f> 80106969: 8b 45 08 mov 0x8(%ebp),%eax 8010696c: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106970: 0f b7 c0 movzwl %ax,%eax 80106973: 83 e0 03 and $0x3,%eax 80106976: 85 c0 test %eax,%eax 80106978: 75 40 jne 801069ba <trap+0x17f> // In kernel, it must be our mistake. cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 8010697a: e8 1d fd ff ff call 8010669c <rcr2> 8010697f: 89 c3 mov %eax,%ebx 80106981: 8b 45 08 mov 0x8(%ebp),%eax 80106984: 8b 48 38 mov 0x38(%eax),%ecx tf->trapno, cpu->id, tf->eip, rcr2()); 80106987: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010698d: 0f b6 00 movzbl (%eax),%eax //PAGEBREAK: 13 default: if(proc == 0 || (tf->cs&3) == 0){ // In kernel, it must be our mistake. cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 80106990: 0f b6 d0 movzbl %al,%edx 80106993: 8b 45 08 mov 0x8(%ebp),%eax 80106996: 8b 40 30 mov 0x30(%eax),%eax 80106999: 83 ec 0c sub $0xc,%esp 8010699c: 53 push %ebx 8010699d: 51 push %ecx 8010699e: 52 push %edx 8010699f: 50 push %eax 801069a0: 68 74 8a 10 80 push $0x80108a74 801069a5: e8 1c 9a ff ff call 801003c6 <cprintf> 801069aa: 83 c4 20 add $0x20,%esp tf->trapno, cpu->id, tf->eip, rcr2()); panic("trap"); 801069ad: 83 ec 0c sub $0xc,%esp 801069b0: 68 a6 8a 10 80 push $0x80108aa6 801069b5: e8 ac 9b ff ff call 80100566 <panic> } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 801069ba: e8 dd fc ff ff call 8010669c <rcr2> 801069bf: 89 45 e4 mov %eax,-0x1c(%ebp) 801069c2: 8b 45 08 mov 0x8(%ebp),%eax 801069c5: 8b 70 38 mov 0x38(%eax),%esi "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, 801069c8: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801069ce: 0f b6 00 movzbl (%eax),%eax cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", tf->trapno, cpu->id, tf->eip, rcr2()); panic("trap"); } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 801069d1: 0f b6 d8 movzbl %al,%ebx 801069d4: 8b 45 08 mov 0x8(%ebp),%eax 801069d7: 8b 48 34 mov 0x34(%eax),%ecx 801069da: 8b 45 08 mov 0x8(%ebp),%eax 801069dd: 8b 50 30 mov 0x30(%eax),%edx "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, 801069e0: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801069e6: 8d 78 6c lea 0x6c(%eax),%edi 801069e9: 65 a1 04 00 00 00 mov %gs:0x4,%eax cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", tf->trapno, cpu->id, tf->eip, rcr2()); panic("trap"); } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 801069ef: 8b 40 10 mov 0x10(%eax),%eax 801069f2: ff 75 e4 pushl -0x1c(%ebp) 801069f5: 56 push %esi 801069f6: 53 push %ebx 801069f7: 51 push %ecx 801069f8: 52 push %edx 801069f9: 57 push %edi 801069fa: 50 push %eax 801069fb: 68 ac 8a 10 80 push $0x80108aac 80106a00: e8 c1 99 ff ff call 801003c6 <cprintf> 80106a05: 83 c4 20 add $0x20,%esp "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, rcr2()); proc->killed = 1; 80106a08: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a0e: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) 80106a15: eb 01 jmp 80106a18 <trap+0x1dd> ideintr(); lapiceoi(); break; case T_IRQ0 + IRQ_IDE+1: // Bochs generates spurious IDE1 interrupts. break; 80106a17: 90 nop } // Force process exit if it has been killed and is in user space. // (If it is still executing in the kernel, let it keep running // until it gets to the regular system call return.) if(proc && proc->killed && (tf->cs&3) == DPL_USER) 80106a18: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a1e: 85 c0 test %eax,%eax 80106a20: 74 24 je 80106a46 <trap+0x20b> 80106a22: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a28: 8b 40 24 mov 0x24(%eax),%eax 80106a2b: 85 c0 test %eax,%eax 80106a2d: 74 17 je 80106a46 <trap+0x20b> 80106a2f: 8b 45 08 mov 0x8(%ebp),%eax 80106a32: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106a36: 0f b7 c0 movzwl %ax,%eax 80106a39: 83 e0 03 and $0x3,%eax 80106a3c: 83 f8 03 cmp $0x3,%eax 80106a3f: 75 05 jne 80106a46 <trap+0x20b> exit(); 80106a41: e8 82 de ff ff call 801048c8 <exit> // Force process to give up CPU on clock tick. // If interrupts were on while locks held, would need to check nlock. if(proc && proc->state == RUNNING && tf->trapno == T_IRQ0+IRQ_TIMER) 80106a46: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a4c: 85 c0 test %eax,%eax 80106a4e: 74 1e je 80106a6e <trap+0x233> 80106a50: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a56: 8b 40 0c mov 0xc(%eax),%eax 80106a59: 83 f8 04 cmp $0x4,%eax 80106a5c: 75 10 jne 80106a6e <trap+0x233> 80106a5e: 8b 45 08 mov 0x8(%ebp),%eax 80106a61: 8b 40 30 mov 0x30(%eax),%eax 80106a64: 83 f8 20 cmp $0x20,%eax 80106a67: 75 05 jne 80106a6e <trap+0x233> yield(); 80106a69: e8 42 e2 ff ff call 80104cb0 <yield> // Check if the process has been killed since we yielded if(proc && proc->killed && (tf->cs&3) == DPL_USER) 80106a6e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a74: 85 c0 test %eax,%eax 80106a76: 74 27 je 80106a9f <trap+0x264> 80106a78: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a7e: 8b 40 24 mov 0x24(%eax),%eax 80106a81: 85 c0 test %eax,%eax 80106a83: 74 1a je 80106a9f <trap+0x264> 80106a85: 8b 45 08 mov 0x8(%ebp),%eax 80106a88: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106a8c: 0f b7 c0 movzwl %ax,%eax 80106a8f: 83 e0 03 and $0x3,%eax 80106a92: 83 f8 03 cmp $0x3,%eax 80106a95: 75 08 jne 80106a9f <trap+0x264> exit(); 80106a97: e8 2c de ff ff call 801048c8 <exit> 80106a9c: eb 01 jmp 80106a9f <trap+0x264> exit(); proc->tf = tf; syscall(); if(proc->killed) exit(); return; 80106a9e: 90 nop yield(); // Check if the process has been killed since we yielded if(proc && proc->killed && (tf->cs&3) == DPL_USER) exit(); } 80106a9f: 8d 65 f4 lea -0xc(%ebp),%esp 80106aa2: 5b pop %ebx 80106aa3: 5e pop %esi 80106aa4: 5f pop %edi 80106aa5: 5d pop %ebp 80106aa6: c3 ret 80106aa7 <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80106aa7: 55 push %ebp 80106aa8: 89 e5 mov %esp,%ebp 80106aaa: 83 ec 14 sub $0x14,%esp 80106aad: 8b 45 08 mov 0x8(%ebp),%eax 80106ab0: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80106ab4: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80106ab8: 89 c2 mov %eax,%edx 80106aba: ec in (%dx),%al 80106abb: 88 45 ff mov %al,-0x1(%ebp) return data; 80106abe: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80106ac2: c9 leave 80106ac3: c3 ret 80106ac4 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80106ac4: 55 push %ebp 80106ac5: 89 e5 mov %esp,%ebp 80106ac7: 83 ec 08 sub $0x8,%esp 80106aca: 8b 55 08 mov 0x8(%ebp),%edx 80106acd: 8b 45 0c mov 0xc(%ebp),%eax 80106ad0: 66 89 55 fc mov %dx,-0x4(%ebp) 80106ad4: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80106ad7: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80106adb: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80106adf: ee out %al,(%dx) } 80106ae0: 90 nop 80106ae1: c9 leave 80106ae2: c3 ret 80106ae3 <uartinit>: static int uart; // is there a uart? void uartinit(void) { 80106ae3: 55 push %ebp 80106ae4: 89 e5 mov %esp,%ebp 80106ae6: 83 ec 18 sub $0x18,%esp char *p; // Turn off the FIFO outb(COM1+2, 0); 80106ae9: 6a 00 push $0x0 80106aeb: 68 fa 03 00 00 push $0x3fa 80106af0: e8 cf ff ff ff call 80106ac4 <outb> 80106af5: 83 c4 08 add $0x8,%esp // 9600 baud, 8 data bits, 1 stop bit, parity off. outb(COM1+3, 0x80); // Unlock divisor 80106af8: 68 80 00 00 00 push $0x80 80106afd: 68 fb 03 00 00 push $0x3fb 80106b02: e8 bd ff ff ff call 80106ac4 <outb> 80106b07: 83 c4 08 add $0x8,%esp outb(COM1+0, 115200/9600); 80106b0a: 6a 0c push $0xc 80106b0c: 68 f8 03 00 00 push $0x3f8 80106b11: e8 ae ff ff ff call 80106ac4 <outb> 80106b16: 83 c4 08 add $0x8,%esp outb(COM1+1, 0); 80106b19: 6a 00 push $0x0 80106b1b: 68 f9 03 00 00 push $0x3f9 80106b20: e8 9f ff ff ff call 80106ac4 <outb> 80106b25: 83 c4 08 add $0x8,%esp outb(COM1+3, 0x03); // Lock divisor, 8 data bits. 80106b28: 6a 03 push $0x3 80106b2a: 68 fb 03 00 00 push $0x3fb 80106b2f: e8 90 ff ff ff call 80106ac4 <outb> 80106b34: 83 c4 08 add $0x8,%esp outb(COM1+4, 0); 80106b37: 6a 00 push $0x0 80106b39: 68 fc 03 00 00 push $0x3fc 80106b3e: e8 81 ff ff ff call 80106ac4 <outb> 80106b43: 83 c4 08 add $0x8,%esp outb(COM1+1, 0x01); // Enable receive interrupts. 80106b46: 6a 01 push $0x1 80106b48: 68 f9 03 00 00 push $0x3f9 80106b4d: e8 72 ff ff ff call 80106ac4 <outb> 80106b52: 83 c4 08 add $0x8,%esp // If status is 0xFF, no serial port. if(inb(COM1+5) == 0xFF) 80106b55: 68 fd 03 00 00 push $0x3fd 80106b5a: e8 48 ff ff ff call 80106aa7 <inb> 80106b5f: 83 c4 04 add $0x4,%esp 80106b62: 3c ff cmp $0xff,%al 80106b64: 74 6e je 80106bd4 <uartinit+0xf1> return; uart = 1; 80106b66: c7 05 4c b6 10 80 01 movl $0x1,0x8010b64c 80106b6d: 00 00 00 // Acknowledge pre-existing interrupt conditions; // enable interrupts. inb(COM1+2); 80106b70: 68 fa 03 00 00 push $0x3fa 80106b75: e8 2d ff ff ff call 80106aa7 <inb> 80106b7a: 83 c4 04 add $0x4,%esp inb(COM1+0); 80106b7d: 68 f8 03 00 00 push $0x3f8 80106b82: e8 20 ff ff ff call 80106aa7 <inb> 80106b87: 83 c4 04 add $0x4,%esp picenable(IRQ_COM1); 80106b8a: 83 ec 0c sub $0xc,%esp 80106b8d: 6a 04 push $0x4 80106b8f: e8 97 d3 ff ff call 80103f2b <picenable> 80106b94: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_COM1, 0); 80106b97: 83 ec 08 sub $0x8,%esp 80106b9a: 6a 00 push $0x0 80106b9c: 6a 04 push $0x4 80106b9e: e8 37 bf ff ff call 80102ada <ioapicenable> 80106ba3: 83 c4 10 add $0x10,%esp // Announce that we're here. for(p="xv6...\n"; *p; p++) 80106ba6: c7 45 f4 70 8b 10 80 movl $0x80108b70,-0xc(%ebp) 80106bad: eb 19 jmp 80106bc8 <uartinit+0xe5> uartputc(*p); 80106baf: 8b 45 f4 mov -0xc(%ebp),%eax 80106bb2: 0f b6 00 movzbl (%eax),%eax 80106bb5: 0f be c0 movsbl %al,%eax 80106bb8: 83 ec 0c sub $0xc,%esp 80106bbb: 50 push %eax 80106bbc: e8 16 00 00 00 call 80106bd7 <uartputc> 80106bc1: 83 c4 10 add $0x10,%esp inb(COM1+0); picenable(IRQ_COM1); ioapicenable(IRQ_COM1, 0); // Announce that we're here. for(p="xv6...\n"; *p; p++) 80106bc4: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80106bc8: 8b 45 f4 mov -0xc(%ebp),%eax 80106bcb: 0f b6 00 movzbl (%eax),%eax 80106bce: 84 c0 test %al,%al 80106bd0: 75 dd jne 80106baf <uartinit+0xcc> 80106bd2: eb 01 jmp 80106bd5 <uartinit+0xf2> outb(COM1+4, 0); outb(COM1+1, 0x01); // Enable receive interrupts. // If status is 0xFF, no serial port. if(inb(COM1+5) == 0xFF) return; 80106bd4: 90 nop ioapicenable(IRQ_COM1, 0); // Announce that we're here. for(p="xv6...\n"; *p; p++) uartputc(*p); } 80106bd5: c9 leave 80106bd6: c3 ret 80106bd7 <uartputc>: void uartputc(int c) { 80106bd7: 55 push %ebp 80106bd8: 89 e5 mov %esp,%ebp 80106bda: 83 ec 18 sub $0x18,%esp int i; if(!uart) 80106bdd: a1 4c b6 10 80 mov 0x8010b64c,%eax 80106be2: 85 c0 test %eax,%eax 80106be4: 74 53 je 80106c39 <uartputc+0x62> return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 80106be6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80106bed: eb 11 jmp 80106c00 <uartputc+0x29> microdelay(10); 80106bef: 83 ec 0c sub $0xc,%esp 80106bf2: 6a 0a push $0xa 80106bf4: e8 47 c4 ff ff call 80103040 <microdelay> 80106bf9: 83 c4 10 add $0x10,%esp { int i; if(!uart) return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 80106bfc: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80106c00: 83 7d f4 7f cmpl $0x7f,-0xc(%ebp) 80106c04: 7f 1a jg 80106c20 <uartputc+0x49> 80106c06: 83 ec 0c sub $0xc,%esp 80106c09: 68 fd 03 00 00 push $0x3fd 80106c0e: e8 94 fe ff ff call 80106aa7 <inb> 80106c13: 83 c4 10 add $0x10,%esp 80106c16: 0f b6 c0 movzbl %al,%eax 80106c19: 83 e0 20 and $0x20,%eax 80106c1c: 85 c0 test %eax,%eax 80106c1e: 74 cf je 80106bef <uartputc+0x18> microdelay(10); outb(COM1+0, c); 80106c20: 8b 45 08 mov 0x8(%ebp),%eax 80106c23: 0f b6 c0 movzbl %al,%eax 80106c26: 83 ec 08 sub $0x8,%esp 80106c29: 50 push %eax 80106c2a: 68 f8 03 00 00 push $0x3f8 80106c2f: e8 90 fe ff ff call 80106ac4 <outb> 80106c34: 83 c4 10 add $0x10,%esp 80106c37: eb 01 jmp 80106c3a <uartputc+0x63> uartputc(int c) { int i; if(!uart) return; 80106c39: 90 nop for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) microdelay(10); outb(COM1+0, c); } 80106c3a: c9 leave 80106c3b: c3 ret 80106c3c <uartgetc>: static int uartgetc(void) { 80106c3c: 55 push %ebp 80106c3d: 89 e5 mov %esp,%ebp if(!uart) 80106c3f: a1 4c b6 10 80 mov 0x8010b64c,%eax 80106c44: 85 c0 test %eax,%eax 80106c46: 75 07 jne 80106c4f <uartgetc+0x13> return -1; 80106c48: b8 ff ff ff ff mov $0xffffffff,%eax 80106c4d: eb 2e jmp 80106c7d <uartgetc+0x41> if(!(inb(COM1+5) & 0x01)) 80106c4f: 68 fd 03 00 00 push $0x3fd 80106c54: e8 4e fe ff ff call 80106aa7 <inb> 80106c59: 83 c4 04 add $0x4,%esp 80106c5c: 0f b6 c0 movzbl %al,%eax 80106c5f: 83 e0 01 and $0x1,%eax 80106c62: 85 c0 test %eax,%eax 80106c64: 75 07 jne 80106c6d <uartgetc+0x31> return -1; 80106c66: b8 ff ff ff ff mov $0xffffffff,%eax 80106c6b: eb 10 jmp 80106c7d <uartgetc+0x41> return inb(COM1+0); 80106c6d: 68 f8 03 00 00 push $0x3f8 80106c72: e8 30 fe ff ff call 80106aa7 <inb> 80106c77: 83 c4 04 add $0x4,%esp 80106c7a: 0f b6 c0 movzbl %al,%eax } 80106c7d: c9 leave 80106c7e: c3 ret 80106c7f <uartintr>: void uartintr(void) { 80106c7f: 55 push %ebp 80106c80: 89 e5 mov %esp,%ebp 80106c82: 83 ec 08 sub $0x8,%esp consoleintr(uartgetc); 80106c85: 83 ec 0c sub $0xc,%esp 80106c88: 68 3c 6c 10 80 push $0x80106c3c 80106c8d: e8 67 9b ff ff call 801007f9 <consoleintr> 80106c92: 83 c4 10 add $0x10,%esp } 80106c95: 90 nop 80106c96: c9 leave 80106c97: c3 ret 80106c98 <vector0>: # generated by vectors.pl - do not edit # handlers .globl alltraps .globl vector0 vector0: pushl $0 80106c98: 6a 00 push $0x0 pushl $0 80106c9a: 6a 00 push $0x0 jmp alltraps 80106c9c: e9 a6 f9 ff ff jmp 80106647 <alltraps> 80106ca1 <vector1>: .globl vector1 vector1: pushl $0 80106ca1: 6a 00 push $0x0 pushl $1 80106ca3: 6a 01 push $0x1 jmp alltraps 80106ca5: e9 9d f9 ff ff jmp 80106647 <alltraps> 80106caa <vector2>: .globl vector2 vector2: pushl $0 80106caa: 6a 00 push $0x0 pushl $2 80106cac: 6a 02 push $0x2 jmp alltraps 80106cae: e9 94 f9 ff ff jmp 80106647 <alltraps> 80106cb3 <vector3>: .globl vector3 vector3: pushl $0 80106cb3: 6a 00 push $0x0 pushl $3 80106cb5: 6a 03 push $0x3 jmp alltraps 80106cb7: e9 8b f9 ff ff jmp 80106647 <alltraps> 80106cbc <vector4>: .globl vector4 vector4: pushl $0 80106cbc: 6a 00 push $0x0 pushl $4 80106cbe: 6a 04 push $0x4 jmp alltraps 80106cc0: e9 82 f9 ff ff jmp 80106647 <alltraps> 80106cc5 <vector5>: .globl vector5 vector5: pushl $0 80106cc5: 6a 00 push $0x0 pushl $5 80106cc7: 6a 05 push $0x5 jmp alltraps 80106cc9: e9 79 f9 ff ff jmp 80106647 <alltraps> 80106cce <vector6>: .globl vector6 vector6: pushl $0 80106cce: 6a 00 push $0x0 pushl $6 80106cd0: 6a 06 push $0x6 jmp alltraps 80106cd2: e9 70 f9 ff ff jmp 80106647 <alltraps> 80106cd7 <vector7>: .globl vector7 vector7: pushl $0 80106cd7: 6a 00 push $0x0 pushl $7 80106cd9: 6a 07 push $0x7 jmp alltraps 80106cdb: e9 67 f9 ff ff jmp 80106647 <alltraps> 80106ce0 <vector8>: .globl vector8 vector8: pushl $8 80106ce0: 6a 08 push $0x8 jmp alltraps 80106ce2: e9 60 f9 ff ff jmp 80106647 <alltraps> 80106ce7 <vector9>: .globl vector9 vector9: pushl $0 80106ce7: 6a 00 push $0x0 pushl $9 80106ce9: 6a 09 push $0x9 jmp alltraps 80106ceb: e9 57 f9 ff ff jmp 80106647 <alltraps> 80106cf0 <vector10>: .globl vector10 vector10: pushl $10 80106cf0: 6a 0a push $0xa jmp alltraps 80106cf2: e9 50 f9 ff ff jmp 80106647 <alltraps> 80106cf7 <vector11>: .globl vector11 vector11: pushl $11 80106cf7: 6a 0b push $0xb jmp alltraps 80106cf9: e9 49 f9 ff ff jmp 80106647 <alltraps> 80106cfe <vector12>: .globl vector12 vector12: pushl $12 80106cfe: 6a 0c push $0xc jmp alltraps 80106d00: e9 42 f9 ff ff jmp 80106647 <alltraps> 80106d05 <vector13>: .globl vector13 vector13: pushl $13 80106d05: 6a 0d push $0xd jmp alltraps 80106d07: e9 3b f9 ff ff jmp 80106647 <alltraps> 80106d0c <vector14>: .globl vector14 vector14: pushl $14 80106d0c: 6a 0e push $0xe jmp alltraps 80106d0e: e9 34 f9 ff ff jmp 80106647 <alltraps> 80106d13 <vector15>: .globl vector15 vector15: pushl $0 80106d13: 6a 00 push $0x0 pushl $15 80106d15: 6a 0f push $0xf jmp alltraps 80106d17: e9 2b f9 ff ff jmp 80106647 <alltraps> 80106d1c <vector16>: .globl vector16 vector16: pushl $0 80106d1c: 6a 00 push $0x0 pushl $16 80106d1e: 6a 10 push $0x10 jmp alltraps 80106d20: e9 22 f9 ff ff jmp 80106647 <alltraps> 80106d25 <vector17>: .globl vector17 vector17: pushl $17 80106d25: 6a 11 push $0x11 jmp alltraps 80106d27: e9 1b f9 ff ff jmp 80106647 <alltraps> 80106d2c <vector18>: .globl vector18 vector18: pushl $0 80106d2c: 6a 00 push $0x0 pushl $18 80106d2e: 6a 12 push $0x12 jmp alltraps 80106d30: e9 12 f9 ff ff jmp 80106647 <alltraps> 80106d35 <vector19>: .globl vector19 vector19: pushl $0 80106d35: 6a 00 push $0x0 pushl $19 80106d37: 6a 13 push $0x13 jmp alltraps 80106d39: e9 09 f9 ff ff jmp 80106647 <alltraps> 80106d3e <vector20>: .globl vector20 vector20: pushl $0 80106d3e: 6a 00 push $0x0 pushl $20 80106d40: 6a 14 push $0x14 jmp alltraps 80106d42: e9 00 f9 ff ff jmp 80106647 <alltraps> 80106d47 <vector21>: .globl vector21 vector21: pushl $0 80106d47: 6a 00 push $0x0 pushl $21 80106d49: 6a 15 push $0x15 jmp alltraps 80106d4b: e9 f7 f8 ff ff jmp 80106647 <alltraps> 80106d50 <vector22>: .globl vector22 vector22: pushl $0 80106d50: 6a 00 push $0x0 pushl $22 80106d52: 6a 16 push $0x16 jmp alltraps 80106d54: e9 ee f8 ff ff jmp 80106647 <alltraps> 80106d59 <vector23>: .globl vector23 vector23: pushl $0 80106d59: 6a 00 push $0x0 pushl $23 80106d5b: 6a 17 push $0x17 jmp alltraps 80106d5d: e9 e5 f8 ff ff jmp 80106647 <alltraps> 80106d62 <vector24>: .globl vector24 vector24: pushl $0 80106d62: 6a 00 push $0x0 pushl $24 80106d64: 6a 18 push $0x18 jmp alltraps 80106d66: e9 dc f8 ff ff jmp 80106647 <alltraps> 80106d6b <vector25>: .globl vector25 vector25: pushl $0 80106d6b: 6a 00 push $0x0 pushl $25 80106d6d: 6a 19 push $0x19 jmp alltraps 80106d6f: e9 d3 f8 ff ff jmp 80106647 <alltraps> 80106d74 <vector26>: .globl vector26 vector26: pushl $0 80106d74: 6a 00 push $0x0 pushl $26 80106d76: 6a 1a push $0x1a jmp alltraps 80106d78: e9 ca f8 ff ff jmp 80106647 <alltraps> 80106d7d <vector27>: .globl vector27 vector27: pushl $0 80106d7d: 6a 00 push $0x0 pushl $27 80106d7f: 6a 1b push $0x1b jmp alltraps 80106d81: e9 c1 f8 ff ff jmp 80106647 <alltraps> 80106d86 <vector28>: .globl vector28 vector28: pushl $0 80106d86: 6a 00 push $0x0 pushl $28 80106d88: 6a 1c push $0x1c jmp alltraps 80106d8a: e9 b8 f8 ff ff jmp 80106647 <alltraps> 80106d8f <vector29>: .globl vector29 vector29: pushl $0 80106d8f: 6a 00 push $0x0 pushl $29 80106d91: 6a 1d push $0x1d jmp alltraps 80106d93: e9 af f8 ff ff jmp 80106647 <alltraps> 80106d98 <vector30>: .globl vector30 vector30: pushl $0 80106d98: 6a 00 push $0x0 pushl $30 80106d9a: 6a 1e push $0x1e jmp alltraps 80106d9c: e9 a6 f8 ff ff jmp 80106647 <alltraps> 80106da1 <vector31>: .globl vector31 vector31: pushl $0 80106da1: 6a 00 push $0x0 pushl $31 80106da3: 6a 1f push $0x1f jmp alltraps 80106da5: e9 9d f8 ff ff jmp 80106647 <alltraps> 80106daa <vector32>: .globl vector32 vector32: pushl $0 80106daa: 6a 00 push $0x0 pushl $32 80106dac: 6a 20 push $0x20 jmp alltraps 80106dae: e9 94 f8 ff ff jmp 80106647 <alltraps> 80106db3 <vector33>: .globl vector33 vector33: pushl $0 80106db3: 6a 00 push $0x0 pushl $33 80106db5: 6a 21 push $0x21 jmp alltraps 80106db7: e9 8b f8 ff ff jmp 80106647 <alltraps> 80106dbc <vector34>: .globl vector34 vector34: pushl $0 80106dbc: 6a 00 push $0x0 pushl $34 80106dbe: 6a 22 push $0x22 jmp alltraps 80106dc0: e9 82 f8 ff ff jmp 80106647 <alltraps> 80106dc5 <vector35>: .globl vector35 vector35: pushl $0 80106dc5: 6a 00 push $0x0 pushl $35 80106dc7: 6a 23 push $0x23 jmp alltraps 80106dc9: e9 79 f8 ff ff jmp 80106647 <alltraps> 80106dce <vector36>: .globl vector36 vector36: pushl $0 80106dce: 6a 00 push $0x0 pushl $36 80106dd0: 6a 24 push $0x24 jmp alltraps 80106dd2: e9 70 f8 ff ff jmp 80106647 <alltraps> 80106dd7 <vector37>: .globl vector37 vector37: pushl $0 80106dd7: 6a 00 push $0x0 pushl $37 80106dd9: 6a 25 push $0x25 jmp alltraps 80106ddb: e9 67 f8 ff ff jmp 80106647 <alltraps> 80106de0 <vector38>: .globl vector38 vector38: pushl $0 80106de0: 6a 00 push $0x0 pushl $38 80106de2: 6a 26 push $0x26 jmp alltraps 80106de4: e9 5e f8 ff ff jmp 80106647 <alltraps> 80106de9 <vector39>: .globl vector39 vector39: pushl $0 80106de9: 6a 00 push $0x0 pushl $39 80106deb: 6a 27 push $0x27 jmp alltraps 80106ded: e9 55 f8 ff ff jmp 80106647 <alltraps> 80106df2 <vector40>: .globl vector40 vector40: pushl $0 80106df2: 6a 00 push $0x0 pushl $40 80106df4: 6a 28 push $0x28 jmp alltraps 80106df6: e9 4c f8 ff ff jmp 80106647 <alltraps> 80106dfb <vector41>: .globl vector41 vector41: pushl $0 80106dfb: 6a 00 push $0x0 pushl $41 80106dfd: 6a 29 push $0x29 jmp alltraps 80106dff: e9 43 f8 ff ff jmp 80106647 <alltraps> 80106e04 <vector42>: .globl vector42 vector42: pushl $0 80106e04: 6a 00 push $0x0 pushl $42 80106e06: 6a 2a push $0x2a jmp alltraps 80106e08: e9 3a f8 ff ff jmp 80106647 <alltraps> 80106e0d <vector43>: .globl vector43 vector43: pushl $0 80106e0d: 6a 00 push $0x0 pushl $43 80106e0f: 6a 2b push $0x2b jmp alltraps 80106e11: e9 31 f8 ff ff jmp 80106647 <alltraps> 80106e16 <vector44>: .globl vector44 vector44: pushl $0 80106e16: 6a 00 push $0x0 pushl $44 80106e18: 6a 2c push $0x2c jmp alltraps 80106e1a: e9 28 f8 ff ff jmp 80106647 <alltraps> 80106e1f <vector45>: .globl vector45 vector45: pushl $0 80106e1f: 6a 00 push $0x0 pushl $45 80106e21: 6a 2d push $0x2d jmp alltraps 80106e23: e9 1f f8 ff ff jmp 80106647 <alltraps> 80106e28 <vector46>: .globl vector46 vector46: pushl $0 80106e28: 6a 00 push $0x0 pushl $46 80106e2a: 6a 2e push $0x2e jmp alltraps 80106e2c: e9 16 f8 ff ff jmp 80106647 <alltraps> 80106e31 <vector47>: .globl vector47 vector47: pushl $0 80106e31: 6a 00 push $0x0 pushl $47 80106e33: 6a 2f push $0x2f jmp alltraps 80106e35: e9 0d f8 ff ff jmp 80106647 <alltraps> 80106e3a <vector48>: .globl vector48 vector48: pushl $0 80106e3a: 6a 00 push $0x0 pushl $48 80106e3c: 6a 30 push $0x30 jmp alltraps 80106e3e: e9 04 f8 ff ff jmp 80106647 <alltraps> 80106e43 <vector49>: .globl vector49 vector49: pushl $0 80106e43: 6a 00 push $0x0 pushl $49 80106e45: 6a 31 push $0x31 jmp alltraps 80106e47: e9 fb f7 ff ff jmp 80106647 <alltraps> 80106e4c <vector50>: .globl vector50 vector50: pushl $0 80106e4c: 6a 00 push $0x0 pushl $50 80106e4e: 6a 32 push $0x32 jmp alltraps 80106e50: e9 f2 f7 ff ff jmp 80106647 <alltraps> 80106e55 <vector51>: .globl vector51 vector51: pushl $0 80106e55: 6a 00 push $0x0 pushl $51 80106e57: 6a 33 push $0x33 jmp alltraps 80106e59: e9 e9 f7 ff ff jmp 80106647 <alltraps> 80106e5e <vector52>: .globl vector52 vector52: pushl $0 80106e5e: 6a 00 push $0x0 pushl $52 80106e60: 6a 34 push $0x34 jmp alltraps 80106e62: e9 e0 f7 ff ff jmp 80106647 <alltraps> 80106e67 <vector53>: .globl vector53 vector53: pushl $0 80106e67: 6a 00 push $0x0 pushl $53 80106e69: 6a 35 push $0x35 jmp alltraps 80106e6b: e9 d7 f7 ff ff jmp 80106647 <alltraps> 80106e70 <vector54>: .globl vector54 vector54: pushl $0 80106e70: 6a 00 push $0x0 pushl $54 80106e72: 6a 36 push $0x36 jmp alltraps 80106e74: e9 ce f7 ff ff jmp 80106647 <alltraps> 80106e79 <vector55>: .globl vector55 vector55: pushl $0 80106e79: 6a 00 push $0x0 pushl $55 80106e7b: 6a 37 push $0x37 jmp alltraps 80106e7d: e9 c5 f7 ff ff jmp 80106647 <alltraps> 80106e82 <vector56>: .globl vector56 vector56: pushl $0 80106e82: 6a 00 push $0x0 pushl $56 80106e84: 6a 38 push $0x38 jmp alltraps 80106e86: e9 bc f7 ff ff jmp 80106647 <alltraps> 80106e8b <vector57>: .globl vector57 vector57: pushl $0 80106e8b: 6a 00 push $0x0 pushl $57 80106e8d: 6a 39 push $0x39 jmp alltraps 80106e8f: e9 b3 f7 ff ff jmp 80106647 <alltraps> 80106e94 <vector58>: .globl vector58 vector58: pushl $0 80106e94: 6a 00 push $0x0 pushl $58 80106e96: 6a 3a push $0x3a jmp alltraps 80106e98: e9 aa f7 ff ff jmp 80106647 <alltraps> 80106e9d <vector59>: .globl vector59 vector59: pushl $0 80106e9d: 6a 00 push $0x0 pushl $59 80106e9f: 6a 3b push $0x3b jmp alltraps 80106ea1: e9 a1 f7 ff ff jmp 80106647 <alltraps> 80106ea6 <vector60>: .globl vector60 vector60: pushl $0 80106ea6: 6a 00 push $0x0 pushl $60 80106ea8: 6a 3c push $0x3c jmp alltraps 80106eaa: e9 98 f7 ff ff jmp 80106647 <alltraps> 80106eaf <vector61>: .globl vector61 vector61: pushl $0 80106eaf: 6a 00 push $0x0 pushl $61 80106eb1: 6a 3d push $0x3d jmp alltraps 80106eb3: e9 8f f7 ff ff jmp 80106647 <alltraps> 80106eb8 <vector62>: .globl vector62 vector62: pushl $0 80106eb8: 6a 00 push $0x0 pushl $62 80106eba: 6a 3e push $0x3e jmp alltraps 80106ebc: e9 86 f7 ff ff jmp 80106647 <alltraps> 80106ec1 <vector63>: .globl vector63 vector63: pushl $0 80106ec1: 6a 00 push $0x0 pushl $63 80106ec3: 6a 3f push $0x3f jmp alltraps 80106ec5: e9 7d f7 ff ff jmp 80106647 <alltraps> 80106eca <vector64>: .globl vector64 vector64: pushl $0 80106eca: 6a 00 push $0x0 pushl $64 80106ecc: 6a 40 push $0x40 jmp alltraps 80106ece: e9 74 f7 ff ff jmp 80106647 <alltraps> 80106ed3 <vector65>: .globl vector65 vector65: pushl $0 80106ed3: 6a 00 push $0x0 pushl $65 80106ed5: 6a 41 push $0x41 jmp alltraps 80106ed7: e9 6b f7 ff ff jmp 80106647 <alltraps> 80106edc <vector66>: .globl vector66 vector66: pushl $0 80106edc: 6a 00 push $0x0 pushl $66 80106ede: 6a 42 push $0x42 jmp alltraps 80106ee0: e9 62 f7 ff ff jmp 80106647 <alltraps> 80106ee5 <vector67>: .globl vector67 vector67: pushl $0 80106ee5: 6a 00 push $0x0 pushl $67 80106ee7: 6a 43 push $0x43 jmp alltraps 80106ee9: e9 59 f7 ff ff jmp 80106647 <alltraps> 80106eee <vector68>: .globl vector68 vector68: pushl $0 80106eee: 6a 00 push $0x0 pushl $68 80106ef0: 6a 44 push $0x44 jmp alltraps 80106ef2: e9 50 f7 ff ff jmp 80106647 <alltraps> 80106ef7 <vector69>: .globl vector69 vector69: pushl $0 80106ef7: 6a 00 push $0x0 pushl $69 80106ef9: 6a 45 push $0x45 jmp alltraps 80106efb: e9 47 f7 ff ff jmp 80106647 <alltraps> 80106f00 <vector70>: .globl vector70 vector70: pushl $0 80106f00: 6a 00 push $0x0 pushl $70 80106f02: 6a 46 push $0x46 jmp alltraps 80106f04: e9 3e f7 ff ff jmp 80106647 <alltraps> 80106f09 <vector71>: .globl vector71 vector71: pushl $0 80106f09: 6a 00 push $0x0 pushl $71 80106f0b: 6a 47 push $0x47 jmp alltraps 80106f0d: e9 35 f7 ff ff jmp 80106647 <alltraps> 80106f12 <vector72>: .globl vector72 vector72: pushl $0 80106f12: 6a 00 push $0x0 pushl $72 80106f14: 6a 48 push $0x48 jmp alltraps 80106f16: e9 2c f7 ff ff jmp 80106647 <alltraps> 80106f1b <vector73>: .globl vector73 vector73: pushl $0 80106f1b: 6a 00 push $0x0 pushl $73 80106f1d: 6a 49 push $0x49 jmp alltraps 80106f1f: e9 23 f7 ff ff jmp 80106647 <alltraps> 80106f24 <vector74>: .globl vector74 vector74: pushl $0 80106f24: 6a 00 push $0x0 pushl $74 80106f26: 6a 4a push $0x4a jmp alltraps 80106f28: e9 1a f7 ff ff jmp 80106647 <alltraps> 80106f2d <vector75>: .globl vector75 vector75: pushl $0 80106f2d: 6a 00 push $0x0 pushl $75 80106f2f: 6a 4b push $0x4b jmp alltraps 80106f31: e9 11 f7 ff ff jmp 80106647 <alltraps> 80106f36 <vector76>: .globl vector76 vector76: pushl $0 80106f36: 6a 00 push $0x0 pushl $76 80106f38: 6a 4c push $0x4c jmp alltraps 80106f3a: e9 08 f7 ff ff jmp 80106647 <alltraps> 80106f3f <vector77>: .globl vector77 vector77: pushl $0 80106f3f: 6a 00 push $0x0 pushl $77 80106f41: 6a 4d push $0x4d jmp alltraps 80106f43: e9 ff f6 ff ff jmp 80106647 <alltraps> 80106f48 <vector78>: .globl vector78 vector78: pushl $0 80106f48: 6a 00 push $0x0 pushl $78 80106f4a: 6a 4e push $0x4e jmp alltraps 80106f4c: e9 f6 f6 ff ff jmp 80106647 <alltraps> 80106f51 <vector79>: .globl vector79 vector79: pushl $0 80106f51: 6a 00 push $0x0 pushl $79 80106f53: 6a 4f push $0x4f jmp alltraps 80106f55: e9 ed f6 ff ff jmp 80106647 <alltraps> 80106f5a <vector80>: .globl vector80 vector80: pushl $0 80106f5a: 6a 00 push $0x0 pushl $80 80106f5c: 6a 50 push $0x50 jmp alltraps 80106f5e: e9 e4 f6 ff ff jmp 80106647 <alltraps> 80106f63 <vector81>: .globl vector81 vector81: pushl $0 80106f63: 6a 00 push $0x0 pushl $81 80106f65: 6a 51 push $0x51 jmp alltraps 80106f67: e9 db f6 ff ff jmp 80106647 <alltraps> 80106f6c <vector82>: .globl vector82 vector82: pushl $0 80106f6c: 6a 00 push $0x0 pushl $82 80106f6e: 6a 52 push $0x52 jmp alltraps 80106f70: e9 d2 f6 ff ff jmp 80106647 <alltraps> 80106f75 <vector83>: .globl vector83 vector83: pushl $0 80106f75: 6a 00 push $0x0 pushl $83 80106f77: 6a 53 push $0x53 jmp alltraps 80106f79: e9 c9 f6 ff ff jmp 80106647 <alltraps> 80106f7e <vector84>: .globl vector84 vector84: pushl $0 80106f7e: 6a 00 push $0x0 pushl $84 80106f80: 6a 54 push $0x54 jmp alltraps 80106f82: e9 c0 f6 ff ff jmp 80106647 <alltraps> 80106f87 <vector85>: .globl vector85 vector85: pushl $0 80106f87: 6a 00 push $0x0 pushl $85 80106f89: 6a 55 push $0x55 jmp alltraps 80106f8b: e9 b7 f6 ff ff jmp 80106647 <alltraps> 80106f90 <vector86>: .globl vector86 vector86: pushl $0 80106f90: 6a 00 push $0x0 pushl $86 80106f92: 6a 56 push $0x56 jmp alltraps 80106f94: e9 ae f6 ff ff jmp 80106647 <alltraps> 80106f99 <vector87>: .globl vector87 vector87: pushl $0 80106f99: 6a 00 push $0x0 pushl $87 80106f9b: 6a 57 push $0x57 jmp alltraps 80106f9d: e9 a5 f6 ff ff jmp 80106647 <alltraps> 80106fa2 <vector88>: .globl vector88 vector88: pushl $0 80106fa2: 6a 00 push $0x0 pushl $88 80106fa4: 6a 58 push $0x58 jmp alltraps 80106fa6: e9 9c f6 ff ff jmp 80106647 <alltraps> 80106fab <vector89>: .globl vector89 vector89: pushl $0 80106fab: 6a 00 push $0x0 pushl $89 80106fad: 6a 59 push $0x59 jmp alltraps 80106faf: e9 93 f6 ff ff jmp 80106647 <alltraps> 80106fb4 <vector90>: .globl vector90 vector90: pushl $0 80106fb4: 6a 00 push $0x0 pushl $90 80106fb6: 6a 5a push $0x5a jmp alltraps 80106fb8: e9 8a f6 ff ff jmp 80106647 <alltraps> 80106fbd <vector91>: .globl vector91 vector91: pushl $0 80106fbd: 6a 00 push $0x0 pushl $91 80106fbf: 6a 5b push $0x5b jmp alltraps 80106fc1: e9 81 f6 ff ff jmp 80106647 <alltraps> 80106fc6 <vector92>: .globl vector92 vector92: pushl $0 80106fc6: 6a 00 push $0x0 pushl $92 80106fc8: 6a 5c push $0x5c jmp alltraps 80106fca: e9 78 f6 ff ff jmp 80106647 <alltraps> 80106fcf <vector93>: .globl vector93 vector93: pushl $0 80106fcf: 6a 00 push $0x0 pushl $93 80106fd1: 6a 5d push $0x5d jmp alltraps 80106fd3: e9 6f f6 ff ff jmp 80106647 <alltraps> 80106fd8 <vector94>: .globl vector94 vector94: pushl $0 80106fd8: 6a 00 push $0x0 pushl $94 80106fda: 6a 5e push $0x5e jmp alltraps 80106fdc: e9 66 f6 ff ff jmp 80106647 <alltraps> 80106fe1 <vector95>: .globl vector95 vector95: pushl $0 80106fe1: 6a 00 push $0x0 pushl $95 80106fe3: 6a 5f push $0x5f jmp alltraps 80106fe5: e9 5d f6 ff ff jmp 80106647 <alltraps> 80106fea <vector96>: .globl vector96 vector96: pushl $0 80106fea: 6a 00 push $0x0 pushl $96 80106fec: 6a 60 push $0x60 jmp alltraps 80106fee: e9 54 f6 ff ff jmp 80106647 <alltraps> 80106ff3 <vector97>: .globl vector97 vector97: pushl $0 80106ff3: 6a 00 push $0x0 pushl $97 80106ff5: 6a 61 push $0x61 jmp alltraps 80106ff7: e9 4b f6 ff ff jmp 80106647 <alltraps> 80106ffc <vector98>: .globl vector98 vector98: pushl $0 80106ffc: 6a 00 push $0x0 pushl $98 80106ffe: 6a 62 push $0x62 jmp alltraps 80107000: e9 42 f6 ff ff jmp 80106647 <alltraps> 80107005 <vector99>: .globl vector99 vector99: pushl $0 80107005: 6a 00 push $0x0 pushl $99 80107007: 6a 63 push $0x63 jmp alltraps 80107009: e9 39 f6 ff ff jmp 80106647 <alltraps> 8010700e <vector100>: .globl vector100 vector100: pushl $0 8010700e: 6a 00 push $0x0 pushl $100 80107010: 6a 64 push $0x64 jmp alltraps 80107012: e9 30 f6 ff ff jmp 80106647 <alltraps> 80107017 <vector101>: .globl vector101 vector101: pushl $0 80107017: 6a 00 push $0x0 pushl $101 80107019: 6a 65 push $0x65 jmp alltraps 8010701b: e9 27 f6 ff ff jmp 80106647 <alltraps> 80107020 <vector102>: .globl vector102 vector102: pushl $0 80107020: 6a 00 push $0x0 pushl $102 80107022: 6a 66 push $0x66 jmp alltraps 80107024: e9 1e f6 ff ff jmp 80106647 <alltraps> 80107029 <vector103>: .globl vector103 vector103: pushl $0 80107029: 6a 00 push $0x0 pushl $103 8010702b: 6a 67 push $0x67 jmp alltraps 8010702d: e9 15 f6 ff ff jmp 80106647 <alltraps> 80107032 <vector104>: .globl vector104 vector104: pushl $0 80107032: 6a 00 push $0x0 pushl $104 80107034: 6a 68 push $0x68 jmp alltraps 80107036: e9 0c f6 ff ff jmp 80106647 <alltraps> 8010703b <vector105>: .globl vector105 vector105: pushl $0 8010703b: 6a 00 push $0x0 pushl $105 8010703d: 6a 69 push $0x69 jmp alltraps 8010703f: e9 03 f6 ff ff jmp 80106647 <alltraps> 80107044 <vector106>: .globl vector106 vector106: pushl $0 80107044: 6a 00 push $0x0 pushl $106 80107046: 6a 6a push $0x6a jmp alltraps 80107048: e9 fa f5 ff ff jmp 80106647 <alltraps> 8010704d <vector107>: .globl vector107 vector107: pushl $0 8010704d: 6a 00 push $0x0 pushl $107 8010704f: 6a 6b push $0x6b jmp alltraps 80107051: e9 f1 f5 ff ff jmp 80106647 <alltraps> 80107056 <vector108>: .globl vector108 vector108: pushl $0 80107056: 6a 00 push $0x0 pushl $108 80107058: 6a 6c push $0x6c jmp alltraps 8010705a: e9 e8 f5 ff ff jmp 80106647 <alltraps> 8010705f <vector109>: .globl vector109 vector109: pushl $0 8010705f: 6a 00 push $0x0 pushl $109 80107061: 6a 6d push $0x6d jmp alltraps 80107063: e9 df f5 ff ff jmp 80106647 <alltraps> 80107068 <vector110>: .globl vector110 vector110: pushl $0 80107068: 6a 00 push $0x0 pushl $110 8010706a: 6a 6e push $0x6e jmp alltraps 8010706c: e9 d6 f5 ff ff jmp 80106647 <alltraps> 80107071 <vector111>: .globl vector111 vector111: pushl $0 80107071: 6a 00 push $0x0 pushl $111 80107073: 6a 6f push $0x6f jmp alltraps 80107075: e9 cd f5 ff ff jmp 80106647 <alltraps> 8010707a <vector112>: .globl vector112 vector112: pushl $0 8010707a: 6a 00 push $0x0 pushl $112 8010707c: 6a 70 push $0x70 jmp alltraps 8010707e: e9 c4 f5 ff ff jmp 80106647 <alltraps> 80107083 <vector113>: .globl vector113 vector113: pushl $0 80107083: 6a 00 push $0x0 pushl $113 80107085: 6a 71 push $0x71 jmp alltraps 80107087: e9 bb f5 ff ff jmp 80106647 <alltraps> 8010708c <vector114>: .globl vector114 vector114: pushl $0 8010708c: 6a 00 push $0x0 pushl $114 8010708e: 6a 72 push $0x72 jmp alltraps 80107090: e9 b2 f5 ff ff jmp 80106647 <alltraps> 80107095 <vector115>: .globl vector115 vector115: pushl $0 80107095: 6a 00 push $0x0 pushl $115 80107097: 6a 73 push $0x73 jmp alltraps 80107099: e9 a9 f5 ff ff jmp 80106647 <alltraps> 8010709e <vector116>: .globl vector116 vector116: pushl $0 8010709e: 6a 00 push $0x0 pushl $116 801070a0: 6a 74 push $0x74 jmp alltraps 801070a2: e9 a0 f5 ff ff jmp 80106647 <alltraps> 801070a7 <vector117>: .globl vector117 vector117: pushl $0 801070a7: 6a 00 push $0x0 pushl $117 801070a9: 6a 75 push $0x75 jmp alltraps 801070ab: e9 97 f5 ff ff jmp 80106647 <alltraps> 801070b0 <vector118>: .globl vector118 vector118: pushl $0 801070b0: 6a 00 push $0x0 pushl $118 801070b2: 6a 76 push $0x76 jmp alltraps 801070b4: e9 8e f5 ff ff jmp 80106647 <alltraps> 801070b9 <vector119>: .globl vector119 vector119: pushl $0 801070b9: 6a 00 push $0x0 pushl $119 801070bb: 6a 77 push $0x77 jmp alltraps 801070bd: e9 85 f5 ff ff jmp 80106647 <alltraps> 801070c2 <vector120>: .globl vector120 vector120: pushl $0 801070c2: 6a 00 push $0x0 pushl $120 801070c4: 6a 78 push $0x78 jmp alltraps 801070c6: e9 7c f5 ff ff jmp 80106647 <alltraps> 801070cb <vector121>: .globl vector121 vector121: pushl $0 801070cb: 6a 00 push $0x0 pushl $121 801070cd: 6a 79 push $0x79 jmp alltraps 801070cf: e9 73 f5 ff ff jmp 80106647 <alltraps> 801070d4 <vector122>: .globl vector122 vector122: pushl $0 801070d4: 6a 00 push $0x0 pushl $122 801070d6: 6a 7a push $0x7a jmp alltraps 801070d8: e9 6a f5 ff ff jmp 80106647 <alltraps> 801070dd <vector123>: .globl vector123 vector123: pushl $0 801070dd: 6a 00 push $0x0 pushl $123 801070df: 6a 7b push $0x7b jmp alltraps 801070e1: e9 61 f5 ff ff jmp 80106647 <alltraps> 801070e6 <vector124>: .globl vector124 vector124: pushl $0 801070e6: 6a 00 push $0x0 pushl $124 801070e8: 6a 7c push $0x7c jmp alltraps 801070ea: e9 58 f5 ff ff jmp 80106647 <alltraps> 801070ef <vector125>: .globl vector125 vector125: pushl $0 801070ef: 6a 00 push $0x0 pushl $125 801070f1: 6a 7d push $0x7d jmp alltraps 801070f3: e9 4f f5 ff ff jmp 80106647 <alltraps> 801070f8 <vector126>: .globl vector126 vector126: pushl $0 801070f8: 6a 00 push $0x0 pushl $126 801070fa: 6a 7e push $0x7e jmp alltraps 801070fc: e9 46 f5 ff ff jmp 80106647 <alltraps> 80107101 <vector127>: .globl vector127 vector127: pushl $0 80107101: 6a 00 push $0x0 pushl $127 80107103: 6a 7f push $0x7f jmp alltraps 80107105: e9 3d f5 ff ff jmp 80106647 <alltraps> 8010710a <vector128>: .globl vector128 vector128: pushl $0 8010710a: 6a 00 push $0x0 pushl $128 8010710c: 68 80 00 00 00 push $0x80 jmp alltraps 80107111: e9 31 f5 ff ff jmp 80106647 <alltraps> 80107116 <vector129>: .globl vector129 vector129: pushl $0 80107116: 6a 00 push $0x0 pushl $129 80107118: 68 81 00 00 00 push $0x81 jmp alltraps 8010711d: e9 25 f5 ff ff jmp 80106647 <alltraps> 80107122 <vector130>: .globl vector130 vector130: pushl $0 80107122: 6a 00 push $0x0 pushl $130 80107124: 68 82 00 00 00 push $0x82 jmp alltraps 80107129: e9 19 f5 ff ff jmp 80106647 <alltraps> 8010712e <vector131>: .globl vector131 vector131: pushl $0 8010712e: 6a 00 push $0x0 pushl $131 80107130: 68 83 00 00 00 push $0x83 jmp alltraps 80107135: e9 0d f5 ff ff jmp 80106647 <alltraps> 8010713a <vector132>: .globl vector132 vector132: pushl $0 8010713a: 6a 00 push $0x0 pushl $132 8010713c: 68 84 00 00 00 push $0x84 jmp alltraps 80107141: e9 01 f5 ff ff jmp 80106647 <alltraps> 80107146 <vector133>: .globl vector133 vector133: pushl $0 80107146: 6a 00 push $0x0 pushl $133 80107148: 68 85 00 00 00 push $0x85 jmp alltraps 8010714d: e9 f5 f4 ff ff jmp 80106647 <alltraps> 80107152 <vector134>: .globl vector134 vector134: pushl $0 80107152: 6a 00 push $0x0 pushl $134 80107154: 68 86 00 00 00 push $0x86 jmp alltraps 80107159: e9 e9 f4 ff ff jmp 80106647 <alltraps> 8010715e <vector135>: .globl vector135 vector135: pushl $0 8010715e: 6a 00 push $0x0 pushl $135 80107160: 68 87 00 00 00 push $0x87 jmp alltraps 80107165: e9 dd f4 ff ff jmp 80106647 <alltraps> 8010716a <vector136>: .globl vector136 vector136: pushl $0 8010716a: 6a 00 push $0x0 pushl $136 8010716c: 68 88 00 00 00 push $0x88 jmp alltraps 80107171: e9 d1 f4 ff ff jmp 80106647 <alltraps> 80107176 <vector137>: .globl vector137 vector137: pushl $0 80107176: 6a 00 push $0x0 pushl $137 80107178: 68 89 00 00 00 push $0x89 jmp alltraps 8010717d: e9 c5 f4 ff ff jmp 80106647 <alltraps> 80107182 <vector138>: .globl vector138 vector138: pushl $0 80107182: 6a 00 push $0x0 pushl $138 80107184: 68 8a 00 00 00 push $0x8a jmp alltraps 80107189: e9 b9 f4 ff ff jmp 80106647 <alltraps> 8010718e <vector139>: .globl vector139 vector139: pushl $0 8010718e: 6a 00 push $0x0 pushl $139 80107190: 68 8b 00 00 00 push $0x8b jmp alltraps 80107195: e9 ad f4 ff ff jmp 80106647 <alltraps> 8010719a <vector140>: .globl vector140 vector140: pushl $0 8010719a: 6a 00 push $0x0 pushl $140 8010719c: 68 8c 00 00 00 push $0x8c jmp alltraps 801071a1: e9 a1 f4 ff ff jmp 80106647 <alltraps> 801071a6 <vector141>: .globl vector141 vector141: pushl $0 801071a6: 6a 00 push $0x0 pushl $141 801071a8: 68 8d 00 00 00 push $0x8d jmp alltraps 801071ad: e9 95 f4 ff ff jmp 80106647 <alltraps> 801071b2 <vector142>: .globl vector142 vector142: pushl $0 801071b2: 6a 00 push $0x0 pushl $142 801071b4: 68 8e 00 00 00 push $0x8e jmp alltraps 801071b9: e9 89 f4 ff ff jmp 80106647 <alltraps> 801071be <vector143>: .globl vector143 vector143: pushl $0 801071be: 6a 00 push $0x0 pushl $143 801071c0: 68 8f 00 00 00 push $0x8f jmp alltraps 801071c5: e9 7d f4 ff ff jmp 80106647 <alltraps> 801071ca <vector144>: .globl vector144 vector144: pushl $0 801071ca: 6a 00 push $0x0 pushl $144 801071cc: 68 90 00 00 00 push $0x90 jmp alltraps 801071d1: e9 71 f4 ff ff jmp 80106647 <alltraps> 801071d6 <vector145>: .globl vector145 vector145: pushl $0 801071d6: 6a 00 push $0x0 pushl $145 801071d8: 68 91 00 00 00 push $0x91 jmp alltraps 801071dd: e9 65 f4 ff ff jmp 80106647 <alltraps> 801071e2 <vector146>: .globl vector146 vector146: pushl $0 801071e2: 6a 00 push $0x0 pushl $146 801071e4: 68 92 00 00 00 push $0x92 jmp alltraps 801071e9: e9 59 f4 ff ff jmp 80106647 <alltraps> 801071ee <vector147>: .globl vector147 vector147: pushl $0 801071ee: 6a 00 push $0x0 pushl $147 801071f0: 68 93 00 00 00 push $0x93 jmp alltraps 801071f5: e9 4d f4 ff ff jmp 80106647 <alltraps> 801071fa <vector148>: .globl vector148 vector148: pushl $0 801071fa: 6a 00 push $0x0 pushl $148 801071fc: 68 94 00 00 00 push $0x94 jmp alltraps 80107201: e9 41 f4 ff ff jmp 80106647 <alltraps> 80107206 <vector149>: .globl vector149 vector149: pushl $0 80107206: 6a 00 push $0x0 pushl $149 80107208: 68 95 00 00 00 push $0x95 jmp alltraps 8010720d: e9 35 f4 ff ff jmp 80106647 <alltraps> 80107212 <vector150>: .globl vector150 vector150: pushl $0 80107212: 6a 00 push $0x0 pushl $150 80107214: 68 96 00 00 00 push $0x96 jmp alltraps 80107219: e9 29 f4 ff ff jmp 80106647 <alltraps> 8010721e <vector151>: .globl vector151 vector151: pushl $0 8010721e: 6a 00 push $0x0 pushl $151 80107220: 68 97 00 00 00 push $0x97 jmp alltraps 80107225: e9 1d f4 ff ff jmp 80106647 <alltraps> 8010722a <vector152>: .globl vector152 vector152: pushl $0 8010722a: 6a 00 push $0x0 pushl $152 8010722c: 68 98 00 00 00 push $0x98 jmp alltraps 80107231: e9 11 f4 ff ff jmp 80106647 <alltraps> 80107236 <vector153>: .globl vector153 vector153: pushl $0 80107236: 6a 00 push $0x0 pushl $153 80107238: 68 99 00 00 00 push $0x99 jmp alltraps 8010723d: e9 05 f4 ff ff jmp 80106647 <alltraps> 80107242 <vector154>: .globl vector154 vector154: pushl $0 80107242: 6a 00 push $0x0 pushl $154 80107244: 68 9a 00 00 00 push $0x9a jmp alltraps 80107249: e9 f9 f3 ff ff jmp 80106647 <alltraps> 8010724e <vector155>: .globl vector155 vector155: pushl $0 8010724e: 6a 00 push $0x0 pushl $155 80107250: 68 9b 00 00 00 push $0x9b jmp alltraps 80107255: e9 ed f3 ff ff jmp 80106647 <alltraps> 8010725a <vector156>: .globl vector156 vector156: pushl $0 8010725a: 6a 00 push $0x0 pushl $156 8010725c: 68 9c 00 00 00 push $0x9c jmp alltraps 80107261: e9 e1 f3 ff ff jmp 80106647 <alltraps> 80107266 <vector157>: .globl vector157 vector157: pushl $0 80107266: 6a 00 push $0x0 pushl $157 80107268: 68 9d 00 00 00 push $0x9d jmp alltraps 8010726d: e9 d5 f3 ff ff jmp 80106647 <alltraps> 80107272 <vector158>: .globl vector158 vector158: pushl $0 80107272: 6a 00 push $0x0 pushl $158 80107274: 68 9e 00 00 00 push $0x9e jmp alltraps 80107279: e9 c9 f3 ff ff jmp 80106647 <alltraps> 8010727e <vector159>: .globl vector159 vector159: pushl $0 8010727e: 6a 00 push $0x0 pushl $159 80107280: 68 9f 00 00 00 push $0x9f jmp alltraps 80107285: e9 bd f3 ff ff jmp 80106647 <alltraps> 8010728a <vector160>: .globl vector160 vector160: pushl $0 8010728a: 6a 00 push $0x0 pushl $160 8010728c: 68 a0 00 00 00 push $0xa0 jmp alltraps 80107291: e9 b1 f3 ff ff jmp 80106647 <alltraps> 80107296 <vector161>: .globl vector161 vector161: pushl $0 80107296: 6a 00 push $0x0 pushl $161 80107298: 68 a1 00 00 00 push $0xa1 jmp alltraps 8010729d: e9 a5 f3 ff ff jmp 80106647 <alltraps> 801072a2 <vector162>: .globl vector162 vector162: pushl $0 801072a2: 6a 00 push $0x0 pushl $162 801072a4: 68 a2 00 00 00 push $0xa2 jmp alltraps 801072a9: e9 99 f3 ff ff jmp 80106647 <alltraps> 801072ae <vector163>: .globl vector163 vector163: pushl $0 801072ae: 6a 00 push $0x0 pushl $163 801072b0: 68 a3 00 00 00 push $0xa3 jmp alltraps 801072b5: e9 8d f3 ff ff jmp 80106647 <alltraps> 801072ba <vector164>: .globl vector164 vector164: pushl $0 801072ba: 6a 00 push $0x0 pushl $164 801072bc: 68 a4 00 00 00 push $0xa4 jmp alltraps 801072c1: e9 81 f3 ff ff jmp 80106647 <alltraps> 801072c6 <vector165>: .globl vector165 vector165: pushl $0 801072c6: 6a 00 push $0x0 pushl $165 801072c8: 68 a5 00 00 00 push $0xa5 jmp alltraps 801072cd: e9 75 f3 ff ff jmp 80106647 <alltraps> 801072d2 <vector166>: .globl vector166 vector166: pushl $0 801072d2: 6a 00 push $0x0 pushl $166 801072d4: 68 a6 00 00 00 push $0xa6 jmp alltraps 801072d9: e9 69 f3 ff ff jmp 80106647 <alltraps> 801072de <vector167>: .globl vector167 vector167: pushl $0 801072de: 6a 00 push $0x0 pushl $167 801072e0: 68 a7 00 00 00 push $0xa7 jmp alltraps 801072e5: e9 5d f3 ff ff jmp 80106647 <alltraps> 801072ea <vector168>: .globl vector168 vector168: pushl $0 801072ea: 6a 00 push $0x0 pushl $168 801072ec: 68 a8 00 00 00 push $0xa8 jmp alltraps 801072f1: e9 51 f3 ff ff jmp 80106647 <alltraps> 801072f6 <vector169>: .globl vector169 vector169: pushl $0 801072f6: 6a 00 push $0x0 pushl $169 801072f8: 68 a9 00 00 00 push $0xa9 jmp alltraps 801072fd: e9 45 f3 ff ff jmp 80106647 <alltraps> 80107302 <vector170>: .globl vector170 vector170: pushl $0 80107302: 6a 00 push $0x0 pushl $170 80107304: 68 aa 00 00 00 push $0xaa jmp alltraps 80107309: e9 39 f3 ff ff jmp 80106647 <alltraps> 8010730e <vector171>: .globl vector171 vector171: pushl $0 8010730e: 6a 00 push $0x0 pushl $171 80107310: 68 ab 00 00 00 push $0xab jmp alltraps 80107315: e9 2d f3 ff ff jmp 80106647 <alltraps> 8010731a <vector172>: .globl vector172 vector172: pushl $0 8010731a: 6a 00 push $0x0 pushl $172 8010731c: 68 ac 00 00 00 push $0xac jmp alltraps 80107321: e9 21 f3 ff ff jmp 80106647 <alltraps> 80107326 <vector173>: .globl vector173 vector173: pushl $0 80107326: 6a 00 push $0x0 pushl $173 80107328: 68 ad 00 00 00 push $0xad jmp alltraps 8010732d: e9 15 f3 ff ff jmp 80106647 <alltraps> 80107332 <vector174>: .globl vector174 vector174: pushl $0 80107332: 6a 00 push $0x0 pushl $174 80107334: 68 ae 00 00 00 push $0xae jmp alltraps 80107339: e9 09 f3 ff ff jmp 80106647 <alltraps> 8010733e <vector175>: .globl vector175 vector175: pushl $0 8010733e: 6a 00 push $0x0 pushl $175 80107340: 68 af 00 00 00 push $0xaf jmp alltraps 80107345: e9 fd f2 ff ff jmp 80106647 <alltraps> 8010734a <vector176>: .globl vector176 vector176: pushl $0 8010734a: 6a 00 push $0x0 pushl $176 8010734c: 68 b0 00 00 00 push $0xb0 jmp alltraps 80107351: e9 f1 f2 ff ff jmp 80106647 <alltraps> 80107356 <vector177>: .globl vector177 vector177: pushl $0 80107356: 6a 00 push $0x0 pushl $177 80107358: 68 b1 00 00 00 push $0xb1 jmp alltraps 8010735d: e9 e5 f2 ff ff jmp 80106647 <alltraps> 80107362 <vector178>: .globl vector178 vector178: pushl $0 80107362: 6a 00 push $0x0 pushl $178 80107364: 68 b2 00 00 00 push $0xb2 jmp alltraps 80107369: e9 d9 f2 ff ff jmp 80106647 <alltraps> 8010736e <vector179>: .globl vector179 vector179: pushl $0 8010736e: 6a 00 push $0x0 pushl $179 80107370: 68 b3 00 00 00 push $0xb3 jmp alltraps 80107375: e9 cd f2 ff ff jmp 80106647 <alltraps> 8010737a <vector180>: .globl vector180 vector180: pushl $0 8010737a: 6a 00 push $0x0 pushl $180 8010737c: 68 b4 00 00 00 push $0xb4 jmp alltraps 80107381: e9 c1 f2 ff ff jmp 80106647 <alltraps> 80107386 <vector181>: .globl vector181 vector181: pushl $0 80107386: 6a 00 push $0x0 pushl $181 80107388: 68 b5 00 00 00 push $0xb5 jmp alltraps 8010738d: e9 b5 f2 ff ff jmp 80106647 <alltraps> 80107392 <vector182>: .globl vector182 vector182: pushl $0 80107392: 6a 00 push $0x0 pushl $182 80107394: 68 b6 00 00 00 push $0xb6 jmp alltraps 80107399: e9 a9 f2 ff ff jmp 80106647 <alltraps> 8010739e <vector183>: .globl vector183 vector183: pushl $0 8010739e: 6a 00 push $0x0 pushl $183 801073a0: 68 b7 00 00 00 push $0xb7 jmp alltraps 801073a5: e9 9d f2 ff ff jmp 80106647 <alltraps> 801073aa <vector184>: .globl vector184 vector184: pushl $0 801073aa: 6a 00 push $0x0 pushl $184 801073ac: 68 b8 00 00 00 push $0xb8 jmp alltraps 801073b1: e9 91 f2 ff ff jmp 80106647 <alltraps> 801073b6 <vector185>: .globl vector185 vector185: pushl $0 801073b6: 6a 00 push $0x0 pushl $185 801073b8: 68 b9 00 00 00 push $0xb9 jmp alltraps 801073bd: e9 85 f2 ff ff jmp 80106647 <alltraps> 801073c2 <vector186>: .globl vector186 vector186: pushl $0 801073c2: 6a 00 push $0x0 pushl $186 801073c4: 68 ba 00 00 00 push $0xba jmp alltraps 801073c9: e9 79 f2 ff ff jmp 80106647 <alltraps> 801073ce <vector187>: .globl vector187 vector187: pushl $0 801073ce: 6a 00 push $0x0 pushl $187 801073d0: 68 bb 00 00 00 push $0xbb jmp alltraps 801073d5: e9 6d f2 ff ff jmp 80106647 <alltraps> 801073da <vector188>: .globl vector188 vector188: pushl $0 801073da: 6a 00 push $0x0 pushl $188 801073dc: 68 bc 00 00 00 push $0xbc jmp alltraps 801073e1: e9 61 f2 ff ff jmp 80106647 <alltraps> 801073e6 <vector189>: .globl vector189 vector189: pushl $0 801073e6: 6a 00 push $0x0 pushl $189 801073e8: 68 bd 00 00 00 push $0xbd jmp alltraps 801073ed: e9 55 f2 ff ff jmp 80106647 <alltraps> 801073f2 <vector190>: .globl vector190 vector190: pushl $0 801073f2: 6a 00 push $0x0 pushl $190 801073f4: 68 be 00 00 00 push $0xbe jmp alltraps 801073f9: e9 49 f2 ff ff jmp 80106647 <alltraps> 801073fe <vector191>: .globl vector191 vector191: pushl $0 801073fe: 6a 00 push $0x0 pushl $191 80107400: 68 bf 00 00 00 push $0xbf jmp alltraps 80107405: e9 3d f2 ff ff jmp 80106647 <alltraps> 8010740a <vector192>: .globl vector192 vector192: pushl $0 8010740a: 6a 00 push $0x0 pushl $192 8010740c: 68 c0 00 00 00 push $0xc0 jmp alltraps 80107411: e9 31 f2 ff ff jmp 80106647 <alltraps> 80107416 <vector193>: .globl vector193 vector193: pushl $0 80107416: 6a 00 push $0x0 pushl $193 80107418: 68 c1 00 00 00 push $0xc1 jmp alltraps 8010741d: e9 25 f2 ff ff jmp 80106647 <alltraps> 80107422 <vector194>: .globl vector194 vector194: pushl $0 80107422: 6a 00 push $0x0 pushl $194 80107424: 68 c2 00 00 00 push $0xc2 jmp alltraps 80107429: e9 19 f2 ff ff jmp 80106647 <alltraps> 8010742e <vector195>: .globl vector195 vector195: pushl $0 8010742e: 6a 00 push $0x0 pushl $195 80107430: 68 c3 00 00 00 push $0xc3 jmp alltraps 80107435: e9 0d f2 ff ff jmp 80106647 <alltraps> 8010743a <vector196>: .globl vector196 vector196: pushl $0 8010743a: 6a 00 push $0x0 pushl $196 8010743c: 68 c4 00 00 00 push $0xc4 jmp alltraps 80107441: e9 01 f2 ff ff jmp 80106647 <alltraps> 80107446 <vector197>: .globl vector197 vector197: pushl $0 80107446: 6a 00 push $0x0 pushl $197 80107448: 68 c5 00 00 00 push $0xc5 jmp alltraps 8010744d: e9 f5 f1 ff ff jmp 80106647 <alltraps> 80107452 <vector198>: .globl vector198 vector198: pushl $0 80107452: 6a 00 push $0x0 pushl $198 80107454: 68 c6 00 00 00 push $0xc6 jmp alltraps 80107459: e9 e9 f1 ff ff jmp 80106647 <alltraps> 8010745e <vector199>: .globl vector199 vector199: pushl $0 8010745e: 6a 00 push $0x0 pushl $199 80107460: 68 c7 00 00 00 push $0xc7 jmp alltraps 80107465: e9 dd f1 ff ff jmp 80106647 <alltraps> 8010746a <vector200>: .globl vector200 vector200: pushl $0 8010746a: 6a 00 push $0x0 pushl $200 8010746c: 68 c8 00 00 00 push $0xc8 jmp alltraps 80107471: e9 d1 f1 ff ff jmp 80106647 <alltraps> 80107476 <vector201>: .globl vector201 vector201: pushl $0 80107476: 6a 00 push $0x0 pushl $201 80107478: 68 c9 00 00 00 push $0xc9 jmp alltraps 8010747d: e9 c5 f1 ff ff jmp 80106647 <alltraps> 80107482 <vector202>: .globl vector202 vector202: pushl $0 80107482: 6a 00 push $0x0 pushl $202 80107484: 68 ca 00 00 00 push $0xca jmp alltraps 80107489: e9 b9 f1 ff ff jmp 80106647 <alltraps> 8010748e <vector203>: .globl vector203 vector203: pushl $0 8010748e: 6a 00 push $0x0 pushl $203 80107490: 68 cb 00 00 00 push $0xcb jmp alltraps 80107495: e9 ad f1 ff ff jmp 80106647 <alltraps> 8010749a <vector204>: .globl vector204 vector204: pushl $0 8010749a: 6a 00 push $0x0 pushl $204 8010749c: 68 cc 00 00 00 push $0xcc jmp alltraps 801074a1: e9 a1 f1 ff ff jmp 80106647 <alltraps> 801074a6 <vector205>: .globl vector205 vector205: pushl $0 801074a6: 6a 00 push $0x0 pushl $205 801074a8: 68 cd 00 00 00 push $0xcd jmp alltraps 801074ad: e9 95 f1 ff ff jmp 80106647 <alltraps> 801074b2 <vector206>: .globl vector206 vector206: pushl $0 801074b2: 6a 00 push $0x0 pushl $206 801074b4: 68 ce 00 00 00 push $0xce jmp alltraps 801074b9: e9 89 f1 ff ff jmp 80106647 <alltraps> 801074be <vector207>: .globl vector207 vector207: pushl $0 801074be: 6a 00 push $0x0 pushl $207 801074c0: 68 cf 00 00 00 push $0xcf jmp alltraps 801074c5: e9 7d f1 ff ff jmp 80106647 <alltraps> 801074ca <vector208>: .globl vector208 vector208: pushl $0 801074ca: 6a 00 push $0x0 pushl $208 801074cc: 68 d0 00 00 00 push $0xd0 jmp alltraps 801074d1: e9 71 f1 ff ff jmp 80106647 <alltraps> 801074d6 <vector209>: .globl vector209 vector209: pushl $0 801074d6: 6a 00 push $0x0 pushl $209 801074d8: 68 d1 00 00 00 push $0xd1 jmp alltraps 801074dd: e9 65 f1 ff ff jmp 80106647 <alltraps> 801074e2 <vector210>: .globl vector210 vector210: pushl $0 801074e2: 6a 00 push $0x0 pushl $210 801074e4: 68 d2 00 00 00 push $0xd2 jmp alltraps 801074e9: e9 59 f1 ff ff jmp 80106647 <alltraps> 801074ee <vector211>: .globl vector211 vector211: pushl $0 801074ee: 6a 00 push $0x0 pushl $211 801074f0: 68 d3 00 00 00 push $0xd3 jmp alltraps 801074f5: e9 4d f1 ff ff jmp 80106647 <alltraps> 801074fa <vector212>: .globl vector212 vector212: pushl $0 801074fa: 6a 00 push $0x0 pushl $212 801074fc: 68 d4 00 00 00 push $0xd4 jmp alltraps 80107501: e9 41 f1 ff ff jmp 80106647 <alltraps> 80107506 <vector213>: .globl vector213 vector213: pushl $0 80107506: 6a 00 push $0x0 pushl $213 80107508: 68 d5 00 00 00 push $0xd5 jmp alltraps 8010750d: e9 35 f1 ff ff jmp 80106647 <alltraps> 80107512 <vector214>: .globl vector214 vector214: pushl $0 80107512: 6a 00 push $0x0 pushl $214 80107514: 68 d6 00 00 00 push $0xd6 jmp alltraps 80107519: e9 29 f1 ff ff jmp 80106647 <alltraps> 8010751e <vector215>: .globl vector215 vector215: pushl $0 8010751e: 6a 00 push $0x0 pushl $215 80107520: 68 d7 00 00 00 push $0xd7 jmp alltraps 80107525: e9 1d f1 ff ff jmp 80106647 <alltraps> 8010752a <vector216>: .globl vector216 vector216: pushl $0 8010752a: 6a 00 push $0x0 pushl $216 8010752c: 68 d8 00 00 00 push $0xd8 jmp alltraps 80107531: e9 11 f1 ff ff jmp 80106647 <alltraps> 80107536 <vector217>: .globl vector217 vector217: pushl $0 80107536: 6a 00 push $0x0 pushl $217 80107538: 68 d9 00 00 00 push $0xd9 jmp alltraps 8010753d: e9 05 f1 ff ff jmp 80106647 <alltraps> 80107542 <vector218>: .globl vector218 vector218: pushl $0 80107542: 6a 00 push $0x0 pushl $218 80107544: 68 da 00 00 00 push $0xda jmp alltraps 80107549: e9 f9 f0 ff ff jmp 80106647 <alltraps> 8010754e <vector219>: .globl vector219 vector219: pushl $0 8010754e: 6a 00 push $0x0 pushl $219 80107550: 68 db 00 00 00 push $0xdb jmp alltraps 80107555: e9 ed f0 ff ff jmp 80106647 <alltraps> 8010755a <vector220>: .globl vector220 vector220: pushl $0 8010755a: 6a 00 push $0x0 pushl $220 8010755c: 68 dc 00 00 00 push $0xdc jmp alltraps 80107561: e9 e1 f0 ff ff jmp 80106647 <alltraps> 80107566 <vector221>: .globl vector221 vector221: pushl $0 80107566: 6a 00 push $0x0 pushl $221 80107568: 68 dd 00 00 00 push $0xdd jmp alltraps 8010756d: e9 d5 f0 ff ff jmp 80106647 <alltraps> 80107572 <vector222>: .globl vector222 vector222: pushl $0 80107572: 6a 00 push $0x0 pushl $222 80107574: 68 de 00 00 00 push $0xde jmp alltraps 80107579: e9 c9 f0 ff ff jmp 80106647 <alltraps> 8010757e <vector223>: .globl vector223 vector223: pushl $0 8010757e: 6a 00 push $0x0 pushl $223 80107580: 68 df 00 00 00 push $0xdf jmp alltraps 80107585: e9 bd f0 ff ff jmp 80106647 <alltraps> 8010758a <vector224>: .globl vector224 vector224: pushl $0 8010758a: 6a 00 push $0x0 pushl $224 8010758c: 68 e0 00 00 00 push $0xe0 jmp alltraps 80107591: e9 b1 f0 ff ff jmp 80106647 <alltraps> 80107596 <vector225>: .globl vector225 vector225: pushl $0 80107596: 6a 00 push $0x0 pushl $225 80107598: 68 e1 00 00 00 push $0xe1 jmp alltraps 8010759d: e9 a5 f0 ff ff jmp 80106647 <alltraps> 801075a2 <vector226>: .globl vector226 vector226: pushl $0 801075a2: 6a 00 push $0x0 pushl $226 801075a4: 68 e2 00 00 00 push $0xe2 jmp alltraps 801075a9: e9 99 f0 ff ff jmp 80106647 <alltraps> 801075ae <vector227>: .globl vector227 vector227: pushl $0 801075ae: 6a 00 push $0x0 pushl $227 801075b0: 68 e3 00 00 00 push $0xe3 jmp alltraps 801075b5: e9 8d f0 ff ff jmp 80106647 <alltraps> 801075ba <vector228>: .globl vector228 vector228: pushl $0 801075ba: 6a 00 push $0x0 pushl $228 801075bc: 68 e4 00 00 00 push $0xe4 jmp alltraps 801075c1: e9 81 f0 ff ff jmp 80106647 <alltraps> 801075c6 <vector229>: .globl vector229 vector229: pushl $0 801075c6: 6a 00 push $0x0 pushl $229 801075c8: 68 e5 00 00 00 push $0xe5 jmp alltraps 801075cd: e9 75 f0 ff ff jmp 80106647 <alltraps> 801075d2 <vector230>: .globl vector230 vector230: pushl $0 801075d2: 6a 00 push $0x0 pushl $230 801075d4: 68 e6 00 00 00 push $0xe6 jmp alltraps 801075d9: e9 69 f0 ff ff jmp 80106647 <alltraps> 801075de <vector231>: .globl vector231 vector231: pushl $0 801075de: 6a 00 push $0x0 pushl $231 801075e0: 68 e7 00 00 00 push $0xe7 jmp alltraps 801075e5: e9 5d f0 ff ff jmp 80106647 <alltraps> 801075ea <vector232>: .globl vector232 vector232: pushl $0 801075ea: 6a 00 push $0x0 pushl $232 801075ec: 68 e8 00 00 00 push $0xe8 jmp alltraps 801075f1: e9 51 f0 ff ff jmp 80106647 <alltraps> 801075f6 <vector233>: .globl vector233 vector233: pushl $0 801075f6: 6a 00 push $0x0 pushl $233 801075f8: 68 e9 00 00 00 push $0xe9 jmp alltraps 801075fd: e9 45 f0 ff ff jmp 80106647 <alltraps> 80107602 <vector234>: .globl vector234 vector234: pushl $0 80107602: 6a 00 push $0x0 pushl $234 80107604: 68 ea 00 00 00 push $0xea jmp alltraps 80107609: e9 39 f0 ff ff jmp 80106647 <alltraps> 8010760e <vector235>: .globl vector235 vector235: pushl $0 8010760e: 6a 00 push $0x0 pushl $235 80107610: 68 eb 00 00 00 push $0xeb jmp alltraps 80107615: e9 2d f0 ff ff jmp 80106647 <alltraps> 8010761a <vector236>: .globl vector236 vector236: pushl $0 8010761a: 6a 00 push $0x0 pushl $236 8010761c: 68 ec 00 00 00 push $0xec jmp alltraps 80107621: e9 21 f0 ff ff jmp 80106647 <alltraps> 80107626 <vector237>: .globl vector237 vector237: pushl $0 80107626: 6a 00 push $0x0 pushl $237 80107628: 68 ed 00 00 00 push $0xed jmp alltraps 8010762d: e9 15 f0 ff ff jmp 80106647 <alltraps> 80107632 <vector238>: .globl vector238 vector238: pushl $0 80107632: 6a 00 push $0x0 pushl $238 80107634: 68 ee 00 00 00 push $0xee jmp alltraps 80107639: e9 09 f0 ff ff jmp 80106647 <alltraps> 8010763e <vector239>: .globl vector239 vector239: pushl $0 8010763e: 6a 00 push $0x0 pushl $239 80107640: 68 ef 00 00 00 push $0xef jmp alltraps 80107645: e9 fd ef ff ff jmp 80106647 <alltraps> 8010764a <vector240>: .globl vector240 vector240: pushl $0 8010764a: 6a 00 push $0x0 pushl $240 8010764c: 68 f0 00 00 00 push $0xf0 jmp alltraps 80107651: e9 f1 ef ff ff jmp 80106647 <alltraps> 80107656 <vector241>: .globl vector241 vector241: pushl $0 80107656: 6a 00 push $0x0 pushl $241 80107658: 68 f1 00 00 00 push $0xf1 jmp alltraps 8010765d: e9 e5 ef ff ff jmp 80106647 <alltraps> 80107662 <vector242>: .globl vector242 vector242: pushl $0 80107662: 6a 00 push $0x0 pushl $242 80107664: 68 f2 00 00 00 push $0xf2 jmp alltraps 80107669: e9 d9 ef ff ff jmp 80106647 <alltraps> 8010766e <vector243>: .globl vector243 vector243: pushl $0 8010766e: 6a 00 push $0x0 pushl $243 80107670: 68 f3 00 00 00 push $0xf3 jmp alltraps 80107675: e9 cd ef ff ff jmp 80106647 <alltraps> 8010767a <vector244>: .globl vector244 vector244: pushl $0 8010767a: 6a 00 push $0x0 pushl $244 8010767c: 68 f4 00 00 00 push $0xf4 jmp alltraps 80107681: e9 c1 ef ff ff jmp 80106647 <alltraps> 80107686 <vector245>: .globl vector245 vector245: pushl $0 80107686: 6a 00 push $0x0 pushl $245 80107688: 68 f5 00 00 00 push $0xf5 jmp alltraps 8010768d: e9 b5 ef ff ff jmp 80106647 <alltraps> 80107692 <vector246>: .globl vector246 vector246: pushl $0 80107692: 6a 00 push $0x0 pushl $246 80107694: 68 f6 00 00 00 push $0xf6 jmp alltraps 80107699: e9 a9 ef ff ff jmp 80106647 <alltraps> 8010769e <vector247>: .globl vector247 vector247: pushl $0 8010769e: 6a 00 push $0x0 pushl $247 801076a0: 68 f7 00 00 00 push $0xf7 jmp alltraps 801076a5: e9 9d ef ff ff jmp 80106647 <alltraps> 801076aa <vector248>: .globl vector248 vector248: pushl $0 801076aa: 6a 00 push $0x0 pushl $248 801076ac: 68 f8 00 00 00 push $0xf8 jmp alltraps 801076b1: e9 91 ef ff ff jmp 80106647 <alltraps> 801076b6 <vector249>: .globl vector249 vector249: pushl $0 801076b6: 6a 00 push $0x0 pushl $249 801076b8: 68 f9 00 00 00 push $0xf9 jmp alltraps 801076bd: e9 85 ef ff ff jmp 80106647 <alltraps> 801076c2 <vector250>: .globl vector250 vector250: pushl $0 801076c2: 6a 00 push $0x0 pushl $250 801076c4: 68 fa 00 00 00 push $0xfa jmp alltraps 801076c9: e9 79 ef ff ff jmp 80106647 <alltraps> 801076ce <vector251>: .globl vector251 vector251: pushl $0 801076ce: 6a 00 push $0x0 pushl $251 801076d0: 68 fb 00 00 00 push $0xfb jmp alltraps 801076d5: e9 6d ef ff ff jmp 80106647 <alltraps> 801076da <vector252>: .globl vector252 vector252: pushl $0 801076da: 6a 00 push $0x0 pushl $252 801076dc: 68 fc 00 00 00 push $0xfc jmp alltraps 801076e1: e9 61 ef ff ff jmp 80106647 <alltraps> 801076e6 <vector253>: .globl vector253 vector253: pushl $0 801076e6: 6a 00 push $0x0 pushl $253 801076e8: 68 fd 00 00 00 push $0xfd jmp alltraps 801076ed: e9 55 ef ff ff jmp 80106647 <alltraps> 801076f2 <vector254>: .globl vector254 vector254: pushl $0 801076f2: 6a 00 push $0x0 pushl $254 801076f4: 68 fe 00 00 00 push $0xfe jmp alltraps 801076f9: e9 49 ef ff ff jmp 80106647 <alltraps> 801076fe <vector255>: .globl vector255 vector255: pushl $0 801076fe: 6a 00 push $0x0 pushl $255 80107700: 68 ff 00 00 00 push $0xff jmp alltraps 80107705: e9 3d ef ff ff jmp 80106647 <alltraps> 8010770a <lgdt>: struct segdesc; static inline void lgdt(struct segdesc *p, int size) { 8010770a: 55 push %ebp 8010770b: 89 e5 mov %esp,%ebp 8010770d: 83 ec 10 sub $0x10,%esp volatile ushort pd[3]; pd[0] = size-1; 80107710: 8b 45 0c mov 0xc(%ebp),%eax 80107713: 83 e8 01 sub $0x1,%eax 80107716: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 8010771a: 8b 45 08 mov 0x8(%ebp),%eax 8010771d: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 80107721: 8b 45 08 mov 0x8(%ebp),%eax 80107724: c1 e8 10 shr $0x10,%eax 80107727: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lgdt (%0)" : : "r" (pd)); 8010772b: 8d 45 fa lea -0x6(%ebp),%eax 8010772e: 0f 01 10 lgdtl (%eax) } 80107731: 90 nop 80107732: c9 leave 80107733: c3 ret 80107734 <ltr>: asm volatile("lidt (%0)" : : "r" (pd)); } static inline void ltr(ushort sel) { 80107734: 55 push %ebp 80107735: 89 e5 mov %esp,%ebp 80107737: 83 ec 04 sub $0x4,%esp 8010773a: 8b 45 08 mov 0x8(%ebp),%eax 8010773d: 66 89 45 fc mov %ax,-0x4(%ebp) asm volatile("ltr %0" : : "r" (sel)); 80107741: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80107745: 0f 00 d8 ltr %ax } 80107748: 90 nop 80107749: c9 leave 8010774a: c3 ret 8010774b <loadgs>: return eflags; } static inline void loadgs(ushort v) { 8010774b: 55 push %ebp 8010774c: 89 e5 mov %esp,%ebp 8010774e: 83 ec 04 sub $0x4,%esp 80107751: 8b 45 08 mov 0x8(%ebp),%eax 80107754: 66 89 45 fc mov %ax,-0x4(%ebp) asm volatile("movw %0, %%gs" : : "r" (v)); 80107758: 0f b7 45 fc movzwl -0x4(%ebp),%eax 8010775c: 8e e8 mov %eax,%gs } 8010775e: 90 nop 8010775f: c9 leave 80107760: c3 ret 80107761 <lcr3>: return val; } static inline void lcr3(uint val) { 80107761: 55 push %ebp 80107762: 89 e5 mov %esp,%ebp asm volatile("movl %0,%%cr3" : : "r" (val)); 80107764: 8b 45 08 mov 0x8(%ebp),%eax 80107767: 0f 22 d8 mov %eax,%cr3 } 8010776a: 90 nop 8010776b: 5d pop %ebp 8010776c: c3 ret 8010776d <v2p>: #define KERNBASE 0x80000000 // First kernel virtual address #define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked #ifndef __ASSEMBLER__ static inline uint v2p(void *a) { return ((uint) (a)) - KERNBASE; } 8010776d: 55 push %ebp 8010776e: 89 e5 mov %esp,%ebp 80107770: 8b 45 08 mov 0x8(%ebp),%eax 80107773: 05 00 00 00 80 add $0x80000000,%eax 80107778: 5d pop %ebp 80107779: c3 ret 8010777a <p2v>: static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); } 8010777a: 55 push %ebp 8010777b: 89 e5 mov %esp,%ebp 8010777d: 8b 45 08 mov 0x8(%ebp),%eax 80107780: 05 00 00 00 80 add $0x80000000,%eax 80107785: 5d pop %ebp 80107786: c3 ret 80107787 <seginit>: // Set up CPU's kernel segment descriptors. // Run once on entry on each CPU. void seginit(void) { 80107787: 55 push %ebp 80107788: 89 e5 mov %esp,%ebp 8010778a: 53 push %ebx 8010778b: 83 ec 14 sub $0x14,%esp // Map "logical" addresses to virtual addresses using identity map. // Cannot share a CODE descriptor for both kernel and user // because it would have to have DPL_USR, but the CPU forbids // an interrupt from CPL=0 to DPL=3. c = &cpus[cpunum()]; 8010778e: e8 39 b8 ff ff call 80102fcc <cpunum> 80107793: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80107799: 05 60 23 11 80 add $0x80112360,%eax 8010779e: 89 45 f4 mov %eax,-0xc(%ebp) c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 801077a1: 8b 45 f4 mov -0xc(%ebp),%eax 801077a4: 66 c7 40 78 ff ff movw $0xffff,0x78(%eax) 801077aa: 8b 45 f4 mov -0xc(%ebp),%eax 801077ad: 66 c7 40 7a 00 00 movw $0x0,0x7a(%eax) 801077b3: 8b 45 f4 mov -0xc(%ebp),%eax 801077b6: c6 40 7c 00 movb $0x0,0x7c(%eax) 801077ba: 8b 45 f4 mov -0xc(%ebp),%eax 801077bd: 0f b6 50 7d movzbl 0x7d(%eax),%edx 801077c1: 83 e2 f0 and $0xfffffff0,%edx 801077c4: 83 ca 0a or $0xa,%edx 801077c7: 88 50 7d mov %dl,0x7d(%eax) 801077ca: 8b 45 f4 mov -0xc(%ebp),%eax 801077cd: 0f b6 50 7d movzbl 0x7d(%eax),%edx 801077d1: 83 ca 10 or $0x10,%edx 801077d4: 88 50 7d mov %dl,0x7d(%eax) 801077d7: 8b 45 f4 mov -0xc(%ebp),%eax 801077da: 0f b6 50 7d movzbl 0x7d(%eax),%edx 801077de: 83 e2 9f and $0xffffff9f,%edx 801077e1: 88 50 7d mov %dl,0x7d(%eax) 801077e4: 8b 45 f4 mov -0xc(%ebp),%eax 801077e7: 0f b6 50 7d movzbl 0x7d(%eax),%edx 801077eb: 83 ca 80 or $0xffffff80,%edx 801077ee: 88 50 7d mov %dl,0x7d(%eax) 801077f1: 8b 45 f4 mov -0xc(%ebp),%eax 801077f4: 0f b6 50 7e movzbl 0x7e(%eax),%edx 801077f8: 83 ca 0f or $0xf,%edx 801077fb: 88 50 7e mov %dl,0x7e(%eax) 801077fe: 8b 45 f4 mov -0xc(%ebp),%eax 80107801: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107805: 83 e2 ef and $0xffffffef,%edx 80107808: 88 50 7e mov %dl,0x7e(%eax) 8010780b: 8b 45 f4 mov -0xc(%ebp),%eax 8010780e: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107812: 83 e2 df and $0xffffffdf,%edx 80107815: 88 50 7e mov %dl,0x7e(%eax) 80107818: 8b 45 f4 mov -0xc(%ebp),%eax 8010781b: 0f b6 50 7e movzbl 0x7e(%eax),%edx 8010781f: 83 ca 40 or $0x40,%edx 80107822: 88 50 7e mov %dl,0x7e(%eax) 80107825: 8b 45 f4 mov -0xc(%ebp),%eax 80107828: 0f b6 50 7e movzbl 0x7e(%eax),%edx 8010782c: 83 ca 80 or $0xffffff80,%edx 8010782f: 88 50 7e mov %dl,0x7e(%eax) 80107832: 8b 45 f4 mov -0xc(%ebp),%eax 80107835: c6 40 7f 00 movb $0x0,0x7f(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 80107839: 8b 45 f4 mov -0xc(%ebp),%eax 8010783c: 66 c7 80 80 00 00 00 movw $0xffff,0x80(%eax) 80107843: ff ff 80107845: 8b 45 f4 mov -0xc(%ebp),%eax 80107848: 66 c7 80 82 00 00 00 movw $0x0,0x82(%eax) 8010784f: 00 00 80107851: 8b 45 f4 mov -0xc(%ebp),%eax 80107854: c6 80 84 00 00 00 00 movb $0x0,0x84(%eax) 8010785b: 8b 45 f4 mov -0xc(%ebp),%eax 8010785e: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 80107865: 83 e2 f0 and $0xfffffff0,%edx 80107868: 83 ca 02 or $0x2,%edx 8010786b: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107871: 8b 45 f4 mov -0xc(%ebp),%eax 80107874: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 8010787b: 83 ca 10 or $0x10,%edx 8010787e: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107884: 8b 45 f4 mov -0xc(%ebp),%eax 80107887: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 8010788e: 83 e2 9f and $0xffffff9f,%edx 80107891: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107897: 8b 45 f4 mov -0xc(%ebp),%eax 8010789a: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 801078a1: 83 ca 80 or $0xffffff80,%edx 801078a4: 88 90 85 00 00 00 mov %dl,0x85(%eax) 801078aa: 8b 45 f4 mov -0xc(%ebp),%eax 801078ad: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 801078b4: 83 ca 0f or $0xf,%edx 801078b7: 88 90 86 00 00 00 mov %dl,0x86(%eax) 801078bd: 8b 45 f4 mov -0xc(%ebp),%eax 801078c0: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 801078c7: 83 e2 ef and $0xffffffef,%edx 801078ca: 88 90 86 00 00 00 mov %dl,0x86(%eax) 801078d0: 8b 45 f4 mov -0xc(%ebp),%eax 801078d3: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 801078da: 83 e2 df and $0xffffffdf,%edx 801078dd: 88 90 86 00 00 00 mov %dl,0x86(%eax) 801078e3: 8b 45 f4 mov -0xc(%ebp),%eax 801078e6: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 801078ed: 83 ca 40 or $0x40,%edx 801078f0: 88 90 86 00 00 00 mov %dl,0x86(%eax) 801078f6: 8b 45 f4 mov -0xc(%ebp),%eax 801078f9: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107900: 83 ca 80 or $0xffffff80,%edx 80107903: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107909: 8b 45 f4 mov -0xc(%ebp),%eax 8010790c: c6 80 87 00 00 00 00 movb $0x0,0x87(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80107913: 8b 45 f4 mov -0xc(%ebp),%eax 80107916: 66 c7 80 90 00 00 00 movw $0xffff,0x90(%eax) 8010791d: ff ff 8010791f: 8b 45 f4 mov -0xc(%ebp),%eax 80107922: 66 c7 80 92 00 00 00 movw $0x0,0x92(%eax) 80107929: 00 00 8010792b: 8b 45 f4 mov -0xc(%ebp),%eax 8010792e: c6 80 94 00 00 00 00 movb $0x0,0x94(%eax) 80107935: 8b 45 f4 mov -0xc(%ebp),%eax 80107938: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 8010793f: 83 e2 f0 and $0xfffffff0,%edx 80107942: 83 ca 0a or $0xa,%edx 80107945: 88 90 95 00 00 00 mov %dl,0x95(%eax) 8010794b: 8b 45 f4 mov -0xc(%ebp),%eax 8010794e: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107955: 83 ca 10 or $0x10,%edx 80107958: 88 90 95 00 00 00 mov %dl,0x95(%eax) 8010795e: 8b 45 f4 mov -0xc(%ebp),%eax 80107961: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107968: 83 ca 60 or $0x60,%edx 8010796b: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107971: 8b 45 f4 mov -0xc(%ebp),%eax 80107974: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 8010797b: 83 ca 80 or $0xffffff80,%edx 8010797e: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107984: 8b 45 f4 mov -0xc(%ebp),%eax 80107987: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 8010798e: 83 ca 0f or $0xf,%edx 80107991: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107997: 8b 45 f4 mov -0xc(%ebp),%eax 8010799a: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 801079a1: 83 e2 ef and $0xffffffef,%edx 801079a4: 88 90 96 00 00 00 mov %dl,0x96(%eax) 801079aa: 8b 45 f4 mov -0xc(%ebp),%eax 801079ad: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 801079b4: 83 e2 df and $0xffffffdf,%edx 801079b7: 88 90 96 00 00 00 mov %dl,0x96(%eax) 801079bd: 8b 45 f4 mov -0xc(%ebp),%eax 801079c0: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 801079c7: 83 ca 40 or $0x40,%edx 801079ca: 88 90 96 00 00 00 mov %dl,0x96(%eax) 801079d0: 8b 45 f4 mov -0xc(%ebp),%eax 801079d3: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 801079da: 83 ca 80 or $0xffffff80,%edx 801079dd: 88 90 96 00 00 00 mov %dl,0x96(%eax) 801079e3: 8b 45 f4 mov -0xc(%ebp),%eax 801079e6: c6 80 97 00 00 00 00 movb $0x0,0x97(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 801079ed: 8b 45 f4 mov -0xc(%ebp),%eax 801079f0: 66 c7 80 98 00 00 00 movw $0xffff,0x98(%eax) 801079f7: ff ff 801079f9: 8b 45 f4 mov -0xc(%ebp),%eax 801079fc: 66 c7 80 9a 00 00 00 movw $0x0,0x9a(%eax) 80107a03: 00 00 80107a05: 8b 45 f4 mov -0xc(%ebp),%eax 80107a08: c6 80 9c 00 00 00 00 movb $0x0,0x9c(%eax) 80107a0f: 8b 45 f4 mov -0xc(%ebp),%eax 80107a12: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107a19: 83 e2 f0 and $0xfffffff0,%edx 80107a1c: 83 ca 02 or $0x2,%edx 80107a1f: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107a25: 8b 45 f4 mov -0xc(%ebp),%eax 80107a28: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107a2f: 83 ca 10 or $0x10,%edx 80107a32: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107a38: 8b 45 f4 mov -0xc(%ebp),%eax 80107a3b: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107a42: 83 ca 60 or $0x60,%edx 80107a45: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107a4b: 8b 45 f4 mov -0xc(%ebp),%eax 80107a4e: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107a55: 83 ca 80 or $0xffffff80,%edx 80107a58: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107a5e: 8b 45 f4 mov -0xc(%ebp),%eax 80107a61: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107a68: 83 ca 0f or $0xf,%edx 80107a6b: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107a71: 8b 45 f4 mov -0xc(%ebp),%eax 80107a74: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107a7b: 83 e2 ef and $0xffffffef,%edx 80107a7e: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107a84: 8b 45 f4 mov -0xc(%ebp),%eax 80107a87: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107a8e: 83 e2 df and $0xffffffdf,%edx 80107a91: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107a97: 8b 45 f4 mov -0xc(%ebp),%eax 80107a9a: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107aa1: 83 ca 40 or $0x40,%edx 80107aa4: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107aaa: 8b 45 f4 mov -0xc(%ebp),%eax 80107aad: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107ab4: 83 ca 80 or $0xffffff80,%edx 80107ab7: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107abd: 8b 45 f4 mov -0xc(%ebp),%eax 80107ac0: c6 80 9f 00 00 00 00 movb $0x0,0x9f(%eax) // Map cpu, and curproc c->gdt[SEG_KCPU] = SEG(STA_W, &c->cpu, 8, 0); 80107ac7: 8b 45 f4 mov -0xc(%ebp),%eax 80107aca: 05 b4 00 00 00 add $0xb4,%eax 80107acf: 89 c3 mov %eax,%ebx 80107ad1: 8b 45 f4 mov -0xc(%ebp),%eax 80107ad4: 05 b4 00 00 00 add $0xb4,%eax 80107ad9: c1 e8 10 shr $0x10,%eax 80107adc: 89 c2 mov %eax,%edx 80107ade: 8b 45 f4 mov -0xc(%ebp),%eax 80107ae1: 05 b4 00 00 00 add $0xb4,%eax 80107ae6: c1 e8 18 shr $0x18,%eax 80107ae9: 89 c1 mov %eax,%ecx 80107aeb: 8b 45 f4 mov -0xc(%ebp),%eax 80107aee: 66 c7 80 88 00 00 00 movw $0x0,0x88(%eax) 80107af5: 00 00 80107af7: 8b 45 f4 mov -0xc(%ebp),%eax 80107afa: 66 89 98 8a 00 00 00 mov %bx,0x8a(%eax) 80107b01: 8b 45 f4 mov -0xc(%ebp),%eax 80107b04: 88 90 8c 00 00 00 mov %dl,0x8c(%eax) 80107b0a: 8b 45 f4 mov -0xc(%ebp),%eax 80107b0d: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107b14: 83 e2 f0 and $0xfffffff0,%edx 80107b17: 83 ca 02 or $0x2,%edx 80107b1a: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107b20: 8b 45 f4 mov -0xc(%ebp),%eax 80107b23: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107b2a: 83 ca 10 or $0x10,%edx 80107b2d: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107b33: 8b 45 f4 mov -0xc(%ebp),%eax 80107b36: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107b3d: 83 e2 9f and $0xffffff9f,%edx 80107b40: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107b46: 8b 45 f4 mov -0xc(%ebp),%eax 80107b49: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107b50: 83 ca 80 or $0xffffff80,%edx 80107b53: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107b59: 8b 45 f4 mov -0xc(%ebp),%eax 80107b5c: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107b63: 83 e2 f0 and $0xfffffff0,%edx 80107b66: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107b6c: 8b 45 f4 mov -0xc(%ebp),%eax 80107b6f: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107b76: 83 e2 ef and $0xffffffef,%edx 80107b79: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107b7f: 8b 45 f4 mov -0xc(%ebp),%eax 80107b82: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107b89: 83 e2 df and $0xffffffdf,%edx 80107b8c: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107b92: 8b 45 f4 mov -0xc(%ebp),%eax 80107b95: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107b9c: 83 ca 40 or $0x40,%edx 80107b9f: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107ba5: 8b 45 f4 mov -0xc(%ebp),%eax 80107ba8: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107baf: 83 ca 80 or $0xffffff80,%edx 80107bb2: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107bb8: 8b 45 f4 mov -0xc(%ebp),%eax 80107bbb: 88 88 8f 00 00 00 mov %cl,0x8f(%eax) lgdt(c->gdt, sizeof(c->gdt)); 80107bc1: 8b 45 f4 mov -0xc(%ebp),%eax 80107bc4: 83 c0 70 add $0x70,%eax 80107bc7: 83 ec 08 sub $0x8,%esp 80107bca: 6a 38 push $0x38 80107bcc: 50 push %eax 80107bcd: e8 38 fb ff ff call 8010770a <lgdt> 80107bd2: 83 c4 10 add $0x10,%esp loadgs(SEG_KCPU << 3); 80107bd5: 83 ec 0c sub $0xc,%esp 80107bd8: 6a 18 push $0x18 80107bda: e8 6c fb ff ff call 8010774b <loadgs> 80107bdf: 83 c4 10 add $0x10,%esp // Initialize cpu-local storage. cpu = c; 80107be2: 8b 45 f4 mov -0xc(%ebp),%eax 80107be5: 65 a3 00 00 00 00 mov %eax,%gs:0x0 proc = 0; 80107beb: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4 80107bf2: 00 00 00 00 } 80107bf6: 90 nop 80107bf7: 8b 5d fc mov -0x4(%ebp),%ebx 80107bfa: c9 leave 80107bfb: c3 ret 80107bfc <walkpgdir>: // Return the address of the PTE in page table pgdir // that corresponds to virtual address va. If alloc!=0, // create any required page table pages. static pte_t * walkpgdir(pde_t *pgdir, const void *va, int alloc) { 80107bfc: 55 push %ebp 80107bfd: 89 e5 mov %esp,%ebp 80107bff: 83 ec 18 sub $0x18,%esp pde_t *pde; pte_t *pgtab; pde = &pgdir[PDX(va)]; 80107c02: 8b 45 0c mov 0xc(%ebp),%eax 80107c05: c1 e8 16 shr $0x16,%eax 80107c08: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80107c0f: 8b 45 08 mov 0x8(%ebp),%eax 80107c12: 01 d0 add %edx,%eax 80107c14: 89 45 f0 mov %eax,-0x10(%ebp) if(*pde & PTE_P){ 80107c17: 8b 45 f0 mov -0x10(%ebp),%eax 80107c1a: 8b 00 mov (%eax),%eax 80107c1c: 83 e0 01 and $0x1,%eax 80107c1f: 85 c0 test %eax,%eax 80107c21: 74 18 je 80107c3b <walkpgdir+0x3f> pgtab = (pte_t*)p2v(PTE_ADDR(*pde)); 80107c23: 8b 45 f0 mov -0x10(%ebp),%eax 80107c26: 8b 00 mov (%eax),%eax 80107c28: 25 00 f0 ff ff and $0xfffff000,%eax 80107c2d: 50 push %eax 80107c2e: e8 47 fb ff ff call 8010777a <p2v> 80107c33: 83 c4 04 add $0x4,%esp 80107c36: 89 45 f4 mov %eax,-0xc(%ebp) 80107c39: eb 48 jmp 80107c83 <walkpgdir+0x87> } else { if(!alloc || (pgtab = (pte_t*)kalloc()) == 0) 80107c3b: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80107c3f: 74 0e je 80107c4f <walkpgdir+0x53> 80107c41: e8 20 b0 ff ff call 80102c66 <kalloc> 80107c46: 89 45 f4 mov %eax,-0xc(%ebp) 80107c49: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80107c4d: 75 07 jne 80107c56 <walkpgdir+0x5a> return 0; 80107c4f: b8 00 00 00 00 mov $0x0,%eax 80107c54: eb 44 jmp 80107c9a <walkpgdir+0x9e> // Make sure all those PTE_P bits are zero. memset(pgtab, 0, PGSIZE); 80107c56: 83 ec 04 sub $0x4,%esp 80107c59: 68 00 10 00 00 push $0x1000 80107c5e: 6a 00 push $0x0 80107c60: ff 75 f4 pushl -0xc(%ebp) 80107c63: e8 25 d6 ff ff call 8010528d <memset> 80107c68: 83 c4 10 add $0x10,%esp // The permissions here are overly generous, but they can // be further restricted by the permissions in the page table // entries, if necessary. *pde = v2p(pgtab) | PTE_P | PTE_W | PTE_U; 80107c6b: 83 ec 0c sub $0xc,%esp 80107c6e: ff 75 f4 pushl -0xc(%ebp) 80107c71: e8 f7 fa ff ff call 8010776d <v2p> 80107c76: 83 c4 10 add $0x10,%esp 80107c79: 83 c8 07 or $0x7,%eax 80107c7c: 89 c2 mov %eax,%edx 80107c7e: 8b 45 f0 mov -0x10(%ebp),%eax 80107c81: 89 10 mov %edx,(%eax) } return &pgtab[PTX(va)]; 80107c83: 8b 45 0c mov 0xc(%ebp),%eax 80107c86: c1 e8 0c shr $0xc,%eax 80107c89: 25 ff 03 00 00 and $0x3ff,%eax 80107c8e: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80107c95: 8b 45 f4 mov -0xc(%ebp),%eax 80107c98: 01 d0 add %edx,%eax } 80107c9a: c9 leave 80107c9b: c3 ret 80107c9c <mappages>: // Create PTEs for virtual addresses starting at va that refer to // physical addresses starting at pa. va and size might not // be page-aligned. static int mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm) { 80107c9c: 55 push %ebp 80107c9d: 89 e5 mov %esp,%ebp 80107c9f: 83 ec 18 sub $0x18,%esp char *a, *last; pte_t *pte; a = (char*)PGROUNDDOWN((uint)va); 80107ca2: 8b 45 0c mov 0xc(%ebp),%eax 80107ca5: 25 00 f0 ff ff and $0xfffff000,%eax 80107caa: 89 45 f4 mov %eax,-0xc(%ebp) last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 80107cad: 8b 55 0c mov 0xc(%ebp),%edx 80107cb0: 8b 45 10 mov 0x10(%ebp),%eax 80107cb3: 01 d0 add %edx,%eax 80107cb5: 83 e8 01 sub $0x1,%eax 80107cb8: 25 00 f0 ff ff and $0xfffff000,%eax 80107cbd: 89 45 f0 mov %eax,-0x10(%ebp) for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) 80107cc0: 83 ec 04 sub $0x4,%esp 80107cc3: 6a 01 push $0x1 80107cc5: ff 75 f4 pushl -0xc(%ebp) 80107cc8: ff 75 08 pushl 0x8(%ebp) 80107ccb: e8 2c ff ff ff call 80107bfc <walkpgdir> 80107cd0: 83 c4 10 add $0x10,%esp 80107cd3: 89 45 ec mov %eax,-0x14(%ebp) 80107cd6: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80107cda: 75 07 jne 80107ce3 <mappages+0x47> return -1; 80107cdc: b8 ff ff ff ff mov $0xffffffff,%eax 80107ce1: eb 47 jmp 80107d2a <mappages+0x8e> if(*pte & PTE_P) 80107ce3: 8b 45 ec mov -0x14(%ebp),%eax 80107ce6: 8b 00 mov (%eax),%eax 80107ce8: 83 e0 01 and $0x1,%eax 80107ceb: 85 c0 test %eax,%eax 80107ced: 74 0d je 80107cfc <mappages+0x60> panic("remap"); 80107cef: 83 ec 0c sub $0xc,%esp 80107cf2: 68 78 8b 10 80 push $0x80108b78 80107cf7: e8 6a 88 ff ff call 80100566 <panic> *pte = pa | perm | PTE_P; 80107cfc: 8b 45 18 mov 0x18(%ebp),%eax 80107cff: 0b 45 14 or 0x14(%ebp),%eax 80107d02: 83 c8 01 or $0x1,%eax 80107d05: 89 c2 mov %eax,%edx 80107d07: 8b 45 ec mov -0x14(%ebp),%eax 80107d0a: 89 10 mov %edx,(%eax) if(a == last) 80107d0c: 8b 45 f4 mov -0xc(%ebp),%eax 80107d0f: 3b 45 f0 cmp -0x10(%ebp),%eax 80107d12: 74 10 je 80107d24 <mappages+0x88> break; a += PGSIZE; 80107d14: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) pa += PGSIZE; 80107d1b: 81 45 14 00 10 00 00 addl $0x1000,0x14(%ebp) } 80107d22: eb 9c jmp 80107cc0 <mappages+0x24> return -1; if(*pte & PTE_P) panic("remap"); *pte = pa | perm | PTE_P; if(a == last) break; 80107d24: 90 nop a += PGSIZE; pa += PGSIZE; } return 0; 80107d25: b8 00 00 00 00 mov $0x0,%eax } 80107d2a: c9 leave 80107d2b: c3 ret 80107d2c <setupkvm>: }; // Set up kernel part of a page table. pde_t* setupkvm(void) { 80107d2c: 55 push %ebp 80107d2d: 89 e5 mov %esp,%ebp 80107d2f: 53 push %ebx 80107d30: 83 ec 14 sub $0x14,%esp pde_t *pgdir; struct kmap *k; if((pgdir = (pde_t*)kalloc()) == 0) 80107d33: e8 2e af ff ff call 80102c66 <kalloc> 80107d38: 89 45 f0 mov %eax,-0x10(%ebp) 80107d3b: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80107d3f: 75 0a jne 80107d4b <setupkvm+0x1f> return 0; 80107d41: b8 00 00 00 00 mov $0x0,%eax 80107d46: e9 8e 00 00 00 jmp 80107dd9 <setupkvm+0xad> memset(pgdir, 0, PGSIZE); 80107d4b: 83 ec 04 sub $0x4,%esp 80107d4e: 68 00 10 00 00 push $0x1000 80107d53: 6a 00 push $0x0 80107d55: ff 75 f0 pushl -0x10(%ebp) 80107d58: e8 30 d5 ff ff call 8010528d <memset> 80107d5d: 83 c4 10 add $0x10,%esp if (p2v(PHYSTOP) > (void*)DEVSPACE) 80107d60: 83 ec 0c sub $0xc,%esp 80107d63: 68 00 00 00 0e push $0xe000000 80107d68: e8 0d fa ff ff call 8010777a <p2v> 80107d6d: 83 c4 10 add $0x10,%esp 80107d70: 3d 00 00 00 fe cmp $0xfe000000,%eax 80107d75: 76 0d jbe 80107d84 <setupkvm+0x58> panic("PHYSTOP too high"); 80107d77: 83 ec 0c sub $0xc,%esp 80107d7a: 68 7e 8b 10 80 push $0x80108b7e 80107d7f: e8 e2 87 ff ff call 80100566 <panic> for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80107d84: c7 45 f4 a0 b4 10 80 movl $0x8010b4a0,-0xc(%ebp) 80107d8b: eb 40 jmp 80107dcd <setupkvm+0xa1> if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 80107d8d: 8b 45 f4 mov -0xc(%ebp),%eax 80107d90: 8b 48 0c mov 0xc(%eax),%ecx (uint)k->phys_start, k->perm) < 0) 80107d93: 8b 45 f4 mov -0xc(%ebp),%eax 80107d96: 8b 50 04 mov 0x4(%eax),%edx return 0; memset(pgdir, 0, PGSIZE); if (p2v(PHYSTOP) > (void*)DEVSPACE) panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 80107d99: 8b 45 f4 mov -0xc(%ebp),%eax 80107d9c: 8b 58 08 mov 0x8(%eax),%ebx 80107d9f: 8b 45 f4 mov -0xc(%ebp),%eax 80107da2: 8b 40 04 mov 0x4(%eax),%eax 80107da5: 29 c3 sub %eax,%ebx 80107da7: 8b 45 f4 mov -0xc(%ebp),%eax 80107daa: 8b 00 mov (%eax),%eax 80107dac: 83 ec 0c sub $0xc,%esp 80107daf: 51 push %ecx 80107db0: 52 push %edx 80107db1: 53 push %ebx 80107db2: 50 push %eax 80107db3: ff 75 f0 pushl -0x10(%ebp) 80107db6: e8 e1 fe ff ff call 80107c9c <mappages> 80107dbb: 83 c4 20 add $0x20,%esp 80107dbe: 85 c0 test %eax,%eax 80107dc0: 79 07 jns 80107dc9 <setupkvm+0x9d> (uint)k->phys_start, k->perm) < 0) return 0; 80107dc2: b8 00 00 00 00 mov $0x0,%eax 80107dc7: eb 10 jmp 80107dd9 <setupkvm+0xad> if((pgdir = (pde_t*)kalloc()) == 0) return 0; memset(pgdir, 0, PGSIZE); if (p2v(PHYSTOP) > (void*)DEVSPACE) panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80107dc9: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80107dcd: 81 7d f4 e0 b4 10 80 cmpl $0x8010b4e0,-0xc(%ebp) 80107dd4: 72 b7 jb 80107d8d <setupkvm+0x61> if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, (uint)k->phys_start, k->perm) < 0) return 0; return pgdir; 80107dd6: 8b 45 f0 mov -0x10(%ebp),%eax } 80107dd9: 8b 5d fc mov -0x4(%ebp),%ebx 80107ddc: c9 leave 80107ddd: c3 ret 80107dde <kvmalloc>: // Allocate one page table for the machine for the kernel address // space for scheduler processes. void kvmalloc(void) { 80107dde: 55 push %ebp 80107ddf: 89 e5 mov %esp,%ebp 80107de1: 83 ec 08 sub $0x8,%esp kpgdir = setupkvm(); 80107de4: e8 43 ff ff ff call 80107d2c <setupkvm> 80107de9: a3 38 8f 11 80 mov %eax,0x80118f38 switchkvm(); 80107dee: e8 03 00 00 00 call 80107df6 <switchkvm> } 80107df3: 90 nop 80107df4: c9 leave 80107df5: c3 ret 80107df6 <switchkvm>: // Switch h/w page table register to the kernel-only page table, // for when no process is running. void switchkvm(void) { 80107df6: 55 push %ebp 80107df7: 89 e5 mov %esp,%ebp lcr3(v2p(kpgdir)); // switch to the kernel page table 80107df9: a1 38 8f 11 80 mov 0x80118f38,%eax 80107dfe: 50 push %eax 80107dff: e8 69 f9 ff ff call 8010776d <v2p> 80107e04: 83 c4 04 add $0x4,%esp 80107e07: 50 push %eax 80107e08: e8 54 f9 ff ff call 80107761 <lcr3> 80107e0d: 83 c4 04 add $0x4,%esp } 80107e10: 90 nop 80107e11: c9 leave 80107e12: c3 ret 80107e13 <switchuvm>: // Switch TSS and h/w page table to correspond to process p. void switchuvm(struct proc *p) { 80107e13: 55 push %ebp 80107e14: 89 e5 mov %esp,%ebp 80107e16: 56 push %esi 80107e17: 53 push %ebx pushcli(); 80107e18: e8 6a d3 ff ff call 80105187 <pushcli> cpu->gdt[SEG_TSS] = SEG16(STS_T32A, &cpu->ts, sizeof(cpu->ts)-1, 0); 80107e1d: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80107e23: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80107e2a: 83 c2 08 add $0x8,%edx 80107e2d: 89 d6 mov %edx,%esi 80107e2f: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80107e36: 83 c2 08 add $0x8,%edx 80107e39: c1 ea 10 shr $0x10,%edx 80107e3c: 89 d3 mov %edx,%ebx 80107e3e: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80107e45: 83 c2 08 add $0x8,%edx 80107e48: c1 ea 18 shr $0x18,%edx 80107e4b: 89 d1 mov %edx,%ecx 80107e4d: 66 c7 80 a0 00 00 00 movw $0x67,0xa0(%eax) 80107e54: 67 00 80107e56: 66 89 b0 a2 00 00 00 mov %si,0xa2(%eax) 80107e5d: 88 98 a4 00 00 00 mov %bl,0xa4(%eax) 80107e63: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107e6a: 83 e2 f0 and $0xfffffff0,%edx 80107e6d: 83 ca 09 or $0x9,%edx 80107e70: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80107e76: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107e7d: 83 ca 10 or $0x10,%edx 80107e80: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80107e86: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107e8d: 83 e2 9f and $0xffffff9f,%edx 80107e90: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80107e96: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107e9d: 83 ca 80 or $0xffffff80,%edx 80107ea0: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80107ea6: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107ead: 83 e2 f0 and $0xfffffff0,%edx 80107eb0: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107eb6: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107ebd: 83 e2 ef and $0xffffffef,%edx 80107ec0: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107ec6: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107ecd: 83 e2 df and $0xffffffdf,%edx 80107ed0: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107ed6: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107edd: 83 ca 40 or $0x40,%edx 80107ee0: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107ee6: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80107eed: 83 e2 7f and $0x7f,%edx 80107ef0: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80107ef6: 88 88 a7 00 00 00 mov %cl,0xa7(%eax) cpu->gdt[SEG_TSS].s = 0; 80107efc: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80107f02: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107f09: 83 e2 ef and $0xffffffef,%edx 80107f0c: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) cpu->ts.ss0 = SEG_KDATA << 3; 80107f12: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80107f18: 66 c7 40 10 10 00 movw $0x10,0x10(%eax) cpu->ts.esp0 = (uint)proc->kstack + KSTACKSIZE; 80107f1e: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80107f24: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 80107f2b: 8b 52 08 mov 0x8(%edx),%edx 80107f2e: 81 c2 00 10 00 00 add $0x1000,%edx 80107f34: 89 50 0c mov %edx,0xc(%eax) ltr(SEG_TSS << 3); 80107f37: 83 ec 0c sub $0xc,%esp 80107f3a: 6a 30 push $0x30 80107f3c: e8 f3 f7 ff ff call 80107734 <ltr> 80107f41: 83 c4 10 add $0x10,%esp if(p->pgdir == 0) 80107f44: 8b 45 08 mov 0x8(%ebp),%eax 80107f47: 8b 40 04 mov 0x4(%eax),%eax 80107f4a: 85 c0 test %eax,%eax 80107f4c: 75 0d jne 80107f5b <switchuvm+0x148> panic("switchuvm: no pgdir"); 80107f4e: 83 ec 0c sub $0xc,%esp 80107f51: 68 8f 8b 10 80 push $0x80108b8f 80107f56: e8 0b 86 ff ff call 80100566 <panic> lcr3(v2p(p->pgdir)); // switch to new address space 80107f5b: 8b 45 08 mov 0x8(%ebp),%eax 80107f5e: 8b 40 04 mov 0x4(%eax),%eax 80107f61: 83 ec 0c sub $0xc,%esp 80107f64: 50 push %eax 80107f65: e8 03 f8 ff ff call 8010776d <v2p> 80107f6a: 83 c4 10 add $0x10,%esp 80107f6d: 83 ec 0c sub $0xc,%esp 80107f70: 50 push %eax 80107f71: e8 eb f7 ff ff call 80107761 <lcr3> 80107f76: 83 c4 10 add $0x10,%esp popcli(); 80107f79: e8 4e d2 ff ff call 801051cc <popcli> } 80107f7e: 90 nop 80107f7f: 8d 65 f8 lea -0x8(%ebp),%esp 80107f82: 5b pop %ebx 80107f83: 5e pop %esi 80107f84: 5d pop %ebp 80107f85: c3 ret 80107f86 <inituvm>: // Load the initcode into address 0 of pgdir. // sz must be less than a page. void inituvm(pde_t *pgdir, char *init, uint sz) { 80107f86: 55 push %ebp 80107f87: 89 e5 mov %esp,%ebp 80107f89: 83 ec 18 sub $0x18,%esp char *mem; if(sz >= PGSIZE) 80107f8c: 81 7d 10 ff 0f 00 00 cmpl $0xfff,0x10(%ebp) 80107f93: 76 0d jbe 80107fa2 <inituvm+0x1c> panic("inituvm: more than a page"); 80107f95: 83 ec 0c sub $0xc,%esp 80107f98: 68 a3 8b 10 80 push $0x80108ba3 80107f9d: e8 c4 85 ff ff call 80100566 <panic> mem = kalloc(); 80107fa2: e8 bf ac ff ff call 80102c66 <kalloc> 80107fa7: 89 45 f4 mov %eax,-0xc(%ebp) memset(mem, 0, PGSIZE); 80107faa: 83 ec 04 sub $0x4,%esp 80107fad: 68 00 10 00 00 push $0x1000 80107fb2: 6a 00 push $0x0 80107fb4: ff 75 f4 pushl -0xc(%ebp) 80107fb7: e8 d1 d2 ff ff call 8010528d <memset> 80107fbc: 83 c4 10 add $0x10,%esp mappages(pgdir, 0, PGSIZE, v2p(mem), PTE_W|PTE_U); 80107fbf: 83 ec 0c sub $0xc,%esp 80107fc2: ff 75 f4 pushl -0xc(%ebp) 80107fc5: e8 a3 f7 ff ff call 8010776d <v2p> 80107fca: 83 c4 10 add $0x10,%esp 80107fcd: 83 ec 0c sub $0xc,%esp 80107fd0: 6a 06 push $0x6 80107fd2: 50 push %eax 80107fd3: 68 00 10 00 00 push $0x1000 80107fd8: 6a 00 push $0x0 80107fda: ff 75 08 pushl 0x8(%ebp) 80107fdd: e8 ba fc ff ff call 80107c9c <mappages> 80107fe2: 83 c4 20 add $0x20,%esp memmove(mem, init, sz); 80107fe5: 83 ec 04 sub $0x4,%esp 80107fe8: ff 75 10 pushl 0x10(%ebp) 80107feb: ff 75 0c pushl 0xc(%ebp) 80107fee: ff 75 f4 pushl -0xc(%ebp) 80107ff1: e8 56 d3 ff ff call 8010534c <memmove> 80107ff6: 83 c4 10 add $0x10,%esp } 80107ff9: 90 nop 80107ffa: c9 leave 80107ffb: c3 ret 80107ffc <loaduvm>: // Load a program segment into pgdir. addr must be page-aligned // and the pages from addr to addr+sz must already be mapped. int loaduvm(pde_t *pgdir, char *addr, struct inode *ip, uint offset, uint sz) { 80107ffc: 55 push %ebp 80107ffd: 89 e5 mov %esp,%ebp 80107fff: 53 push %ebx 80108000: 83 ec 14 sub $0x14,%esp uint i, pa, n; pte_t *pte; if((uint) addr % PGSIZE != 0) 80108003: 8b 45 0c mov 0xc(%ebp),%eax 80108006: 25 ff 0f 00 00 and $0xfff,%eax 8010800b: 85 c0 test %eax,%eax 8010800d: 74 0d je 8010801c <loaduvm+0x20> panic("loaduvm: addr must be page aligned"); 8010800f: 83 ec 0c sub $0xc,%esp 80108012: 68 c0 8b 10 80 push $0x80108bc0 80108017: e8 4a 85 ff ff call 80100566 <panic> for(i = 0; i < sz; i += PGSIZE){ 8010801c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80108023: e9 95 00 00 00 jmp 801080bd <loaduvm+0xc1> if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) 80108028: 8b 55 0c mov 0xc(%ebp),%edx 8010802b: 8b 45 f4 mov -0xc(%ebp),%eax 8010802e: 01 d0 add %edx,%eax 80108030: 83 ec 04 sub $0x4,%esp 80108033: 6a 00 push $0x0 80108035: 50 push %eax 80108036: ff 75 08 pushl 0x8(%ebp) 80108039: e8 be fb ff ff call 80107bfc <walkpgdir> 8010803e: 83 c4 10 add $0x10,%esp 80108041: 89 45 ec mov %eax,-0x14(%ebp) 80108044: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80108048: 75 0d jne 80108057 <loaduvm+0x5b> panic("loaduvm: address should exist"); 8010804a: 83 ec 0c sub $0xc,%esp 8010804d: 68 e3 8b 10 80 push $0x80108be3 80108052: e8 0f 85 ff ff call 80100566 <panic> pa = PTE_ADDR(*pte); 80108057: 8b 45 ec mov -0x14(%ebp),%eax 8010805a: 8b 00 mov (%eax),%eax 8010805c: 25 00 f0 ff ff and $0xfffff000,%eax 80108061: 89 45 e8 mov %eax,-0x18(%ebp) if(sz - i < PGSIZE) 80108064: 8b 45 18 mov 0x18(%ebp),%eax 80108067: 2b 45 f4 sub -0xc(%ebp),%eax 8010806a: 3d ff 0f 00 00 cmp $0xfff,%eax 8010806f: 77 0b ja 8010807c <loaduvm+0x80> n = sz - i; 80108071: 8b 45 18 mov 0x18(%ebp),%eax 80108074: 2b 45 f4 sub -0xc(%ebp),%eax 80108077: 89 45 f0 mov %eax,-0x10(%ebp) 8010807a: eb 07 jmp 80108083 <loaduvm+0x87> else n = PGSIZE; 8010807c: c7 45 f0 00 10 00 00 movl $0x1000,-0x10(%ebp) if(readi(ip, p2v(pa), offset+i, n) != n) 80108083: 8b 55 14 mov 0x14(%ebp),%edx 80108086: 8b 45 f4 mov -0xc(%ebp),%eax 80108089: 8d 1c 02 lea (%edx,%eax,1),%ebx 8010808c: 83 ec 0c sub $0xc,%esp 8010808f: ff 75 e8 pushl -0x18(%ebp) 80108092: e8 e3 f6 ff ff call 8010777a <p2v> 80108097: 83 c4 10 add $0x10,%esp 8010809a: ff 75 f0 pushl -0x10(%ebp) 8010809d: 53 push %ebx 8010809e: 50 push %eax 8010809f: ff 75 10 pushl 0x10(%ebp) 801080a2: e8 31 9e ff ff call 80101ed8 <readi> 801080a7: 83 c4 10 add $0x10,%esp 801080aa: 3b 45 f0 cmp -0x10(%ebp),%eax 801080ad: 74 07 je 801080b6 <loaduvm+0xba> return -1; 801080af: b8 ff ff ff ff mov $0xffffffff,%eax 801080b4: eb 18 jmp 801080ce <loaduvm+0xd2> uint i, pa, n; pte_t *pte; if((uint) addr % PGSIZE != 0) panic("loaduvm: addr must be page aligned"); for(i = 0; i < sz; i += PGSIZE){ 801080b6: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 801080bd: 8b 45 f4 mov -0xc(%ebp),%eax 801080c0: 3b 45 18 cmp 0x18(%ebp),%eax 801080c3: 0f 82 5f ff ff ff jb 80108028 <loaduvm+0x2c> else n = PGSIZE; if(readi(ip, p2v(pa), offset+i, n) != n) return -1; } return 0; 801080c9: b8 00 00 00 00 mov $0x0,%eax } 801080ce: 8b 5d fc mov -0x4(%ebp),%ebx 801080d1: c9 leave 801080d2: c3 ret 801080d3 <allocuvm>: // Allocate page tables and physical memory to grow process from oldsz to // newsz, which need not be page aligned. Returns new size or 0 on error. int allocuvm(pde_t *pgdir, uint oldsz, uint newsz) { 801080d3: 55 push %ebp 801080d4: 89 e5 mov %esp,%ebp 801080d6: 83 ec 18 sub $0x18,%esp char *mem; uint a; if(newsz >= KERNBASE) 801080d9: 8b 45 10 mov 0x10(%ebp),%eax 801080dc: 85 c0 test %eax,%eax 801080de: 79 0a jns 801080ea <allocuvm+0x17> return 0; 801080e0: b8 00 00 00 00 mov $0x0,%eax 801080e5: e9 b0 00 00 00 jmp 8010819a <allocuvm+0xc7> if(newsz < oldsz) 801080ea: 8b 45 10 mov 0x10(%ebp),%eax 801080ed: 3b 45 0c cmp 0xc(%ebp),%eax 801080f0: 73 08 jae 801080fa <allocuvm+0x27> return oldsz; 801080f2: 8b 45 0c mov 0xc(%ebp),%eax 801080f5: e9 a0 00 00 00 jmp 8010819a <allocuvm+0xc7> a = PGROUNDUP(oldsz); 801080fa: 8b 45 0c mov 0xc(%ebp),%eax 801080fd: 05 ff 0f 00 00 add $0xfff,%eax 80108102: 25 00 f0 ff ff and $0xfffff000,%eax 80108107: 89 45 f4 mov %eax,-0xc(%ebp) for(; a < newsz; a += PGSIZE){ 8010810a: eb 7f jmp 8010818b <allocuvm+0xb8> mem = kalloc(); 8010810c: e8 55 ab ff ff call 80102c66 <kalloc> 80108111: 89 45 f0 mov %eax,-0x10(%ebp) if(mem == 0){ 80108114: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80108118: 75 2b jne 80108145 <allocuvm+0x72> cprintf("allocuvm out of memory\n"); 8010811a: 83 ec 0c sub $0xc,%esp 8010811d: 68 01 8c 10 80 push $0x80108c01 80108122: e8 9f 82 ff ff call 801003c6 <cprintf> 80108127: 83 c4 10 add $0x10,%esp deallocuvm(pgdir, newsz, oldsz); 8010812a: 83 ec 04 sub $0x4,%esp 8010812d: ff 75 0c pushl 0xc(%ebp) 80108130: ff 75 10 pushl 0x10(%ebp) 80108133: ff 75 08 pushl 0x8(%ebp) 80108136: e8 61 00 00 00 call 8010819c <deallocuvm> 8010813b: 83 c4 10 add $0x10,%esp return 0; 8010813e: b8 00 00 00 00 mov $0x0,%eax 80108143: eb 55 jmp 8010819a <allocuvm+0xc7> } memset(mem, 0, PGSIZE); 80108145: 83 ec 04 sub $0x4,%esp 80108148: 68 00 10 00 00 push $0x1000 8010814d: 6a 00 push $0x0 8010814f: ff 75 f0 pushl -0x10(%ebp) 80108152: e8 36 d1 ff ff call 8010528d <memset> 80108157: 83 c4 10 add $0x10,%esp mappages(pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U); 8010815a: 83 ec 0c sub $0xc,%esp 8010815d: ff 75 f0 pushl -0x10(%ebp) 80108160: e8 08 f6 ff ff call 8010776d <v2p> 80108165: 83 c4 10 add $0x10,%esp 80108168: 89 c2 mov %eax,%edx 8010816a: 8b 45 f4 mov -0xc(%ebp),%eax 8010816d: 83 ec 0c sub $0xc,%esp 80108170: 6a 06 push $0x6 80108172: 52 push %edx 80108173: 68 00 10 00 00 push $0x1000 80108178: 50 push %eax 80108179: ff 75 08 pushl 0x8(%ebp) 8010817c: e8 1b fb ff ff call 80107c9c <mappages> 80108181: 83 c4 20 add $0x20,%esp return 0; if(newsz < oldsz) return oldsz; a = PGROUNDUP(oldsz); for(; a < newsz; a += PGSIZE){ 80108184: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 8010818b: 8b 45 f4 mov -0xc(%ebp),%eax 8010818e: 3b 45 10 cmp 0x10(%ebp),%eax 80108191: 0f 82 75 ff ff ff jb 8010810c <allocuvm+0x39> return 0; } memset(mem, 0, PGSIZE); mappages(pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U); } return newsz; 80108197: 8b 45 10 mov 0x10(%ebp),%eax } 8010819a: c9 leave 8010819b: c3 ret 8010819c <deallocuvm>: // newsz. oldsz and newsz need not be page-aligned, nor does newsz // need to be less than oldsz. oldsz can be larger than the actual // process size. Returns the new process size. int deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) { 8010819c: 55 push %ebp 8010819d: 89 e5 mov %esp,%ebp 8010819f: 83 ec 18 sub $0x18,%esp pte_t *pte; uint a, pa; if(newsz >= oldsz) 801081a2: 8b 45 10 mov 0x10(%ebp),%eax 801081a5: 3b 45 0c cmp 0xc(%ebp),%eax 801081a8: 72 08 jb 801081b2 <deallocuvm+0x16> return oldsz; 801081aa: 8b 45 0c mov 0xc(%ebp),%eax 801081ad: e9 a5 00 00 00 jmp 80108257 <deallocuvm+0xbb> a = PGROUNDUP(newsz); 801081b2: 8b 45 10 mov 0x10(%ebp),%eax 801081b5: 05 ff 0f 00 00 add $0xfff,%eax 801081ba: 25 00 f0 ff ff and $0xfffff000,%eax 801081bf: 89 45 f4 mov %eax,-0xc(%ebp) for(; a < oldsz; a += PGSIZE){ 801081c2: e9 81 00 00 00 jmp 80108248 <deallocuvm+0xac> pte = walkpgdir(pgdir, (char*)a, 0); 801081c7: 8b 45 f4 mov -0xc(%ebp),%eax 801081ca: 83 ec 04 sub $0x4,%esp 801081cd: 6a 00 push $0x0 801081cf: 50 push %eax 801081d0: ff 75 08 pushl 0x8(%ebp) 801081d3: e8 24 fa ff ff call 80107bfc <walkpgdir> 801081d8: 83 c4 10 add $0x10,%esp 801081db: 89 45 f0 mov %eax,-0x10(%ebp) if(!pte) 801081de: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801081e2: 75 09 jne 801081ed <deallocuvm+0x51> a += (NPTENTRIES - 1) * PGSIZE; 801081e4: 81 45 f4 00 f0 3f 00 addl $0x3ff000,-0xc(%ebp) 801081eb: eb 54 jmp 80108241 <deallocuvm+0xa5> else if((*pte & PTE_P) != 0){ 801081ed: 8b 45 f0 mov -0x10(%ebp),%eax 801081f0: 8b 00 mov (%eax),%eax 801081f2: 83 e0 01 and $0x1,%eax 801081f5: 85 c0 test %eax,%eax 801081f7: 74 48 je 80108241 <deallocuvm+0xa5> pa = PTE_ADDR(*pte); 801081f9: 8b 45 f0 mov -0x10(%ebp),%eax 801081fc: 8b 00 mov (%eax),%eax 801081fe: 25 00 f0 ff ff and $0xfffff000,%eax 80108203: 89 45 ec mov %eax,-0x14(%ebp) if(pa == 0) 80108206: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 8010820a: 75 0d jne 80108219 <deallocuvm+0x7d> panic("kfree"); 8010820c: 83 ec 0c sub $0xc,%esp 8010820f: 68 19 8c 10 80 push $0x80108c19 80108214: e8 4d 83 ff ff call 80100566 <panic> char *v = p2v(pa); 80108219: 83 ec 0c sub $0xc,%esp 8010821c: ff 75 ec pushl -0x14(%ebp) 8010821f: e8 56 f5 ff ff call 8010777a <p2v> 80108224: 83 c4 10 add $0x10,%esp 80108227: 89 45 e8 mov %eax,-0x18(%ebp) kfree(v); 8010822a: 83 ec 0c sub $0xc,%esp 8010822d: ff 75 e8 pushl -0x18(%ebp) 80108230: e8 94 a9 ff ff call 80102bc9 <kfree> 80108235: 83 c4 10 add $0x10,%esp *pte = 0; 80108238: 8b 45 f0 mov -0x10(%ebp),%eax 8010823b: c7 00 00 00 00 00 movl $0x0,(%eax) if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); for(; a < oldsz; a += PGSIZE){ 80108241: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80108248: 8b 45 f4 mov -0xc(%ebp),%eax 8010824b: 3b 45 0c cmp 0xc(%ebp),%eax 8010824e: 0f 82 73 ff ff ff jb 801081c7 <deallocuvm+0x2b> char *v = p2v(pa); kfree(v); *pte = 0; } } return newsz; 80108254: 8b 45 10 mov 0x10(%ebp),%eax } 80108257: c9 leave 80108258: c3 ret 80108259 <freevm>: // Free a page table and all the physical memory pages // in the user part. void freevm(pde_t *pgdir) { 80108259: 55 push %ebp 8010825a: 89 e5 mov %esp,%ebp 8010825c: 83 ec 18 sub $0x18,%esp uint i; if(pgdir == 0) 8010825f: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80108263: 75 0d jne 80108272 <freevm+0x19> panic("freevm: no pgdir"); 80108265: 83 ec 0c sub $0xc,%esp 80108268: 68 1f 8c 10 80 push $0x80108c1f 8010826d: e8 f4 82 ff ff call 80100566 <panic> deallocuvm(pgdir, KERNBASE, 0); 80108272: 83 ec 04 sub $0x4,%esp 80108275: 6a 00 push $0x0 80108277: 68 00 00 00 80 push $0x80000000 8010827c: ff 75 08 pushl 0x8(%ebp) 8010827f: e8 18 ff ff ff call 8010819c <deallocuvm> 80108284: 83 c4 10 add $0x10,%esp for(i = 0; i < NPDENTRIES; i++){ 80108287: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010828e: eb 4f jmp 801082df <freevm+0x86> if(pgdir[i] & PTE_P){ 80108290: 8b 45 f4 mov -0xc(%ebp),%eax 80108293: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 8010829a: 8b 45 08 mov 0x8(%ebp),%eax 8010829d: 01 d0 add %edx,%eax 8010829f: 8b 00 mov (%eax),%eax 801082a1: 83 e0 01 and $0x1,%eax 801082a4: 85 c0 test %eax,%eax 801082a6: 74 33 je 801082db <freevm+0x82> char * v = p2v(PTE_ADDR(pgdir[i])); 801082a8: 8b 45 f4 mov -0xc(%ebp),%eax 801082ab: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 801082b2: 8b 45 08 mov 0x8(%ebp),%eax 801082b5: 01 d0 add %edx,%eax 801082b7: 8b 00 mov (%eax),%eax 801082b9: 25 00 f0 ff ff and $0xfffff000,%eax 801082be: 83 ec 0c sub $0xc,%esp 801082c1: 50 push %eax 801082c2: e8 b3 f4 ff ff call 8010777a <p2v> 801082c7: 83 c4 10 add $0x10,%esp 801082ca: 89 45 f0 mov %eax,-0x10(%ebp) kfree(v); 801082cd: 83 ec 0c sub $0xc,%esp 801082d0: ff 75 f0 pushl -0x10(%ebp) 801082d3: e8 f1 a8 ff ff call 80102bc9 <kfree> 801082d8: 83 c4 10 add $0x10,%esp uint i; if(pgdir == 0) panic("freevm: no pgdir"); deallocuvm(pgdir, KERNBASE, 0); for(i = 0; i < NPDENTRIES; i++){ 801082db: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801082df: 81 7d f4 ff 03 00 00 cmpl $0x3ff,-0xc(%ebp) 801082e6: 76 a8 jbe 80108290 <freevm+0x37> if(pgdir[i] & PTE_P){ char * v = p2v(PTE_ADDR(pgdir[i])); kfree(v); } } kfree((char*)pgdir); 801082e8: 83 ec 0c sub $0xc,%esp 801082eb: ff 75 08 pushl 0x8(%ebp) 801082ee: e8 d6 a8 ff ff call 80102bc9 <kfree> 801082f3: 83 c4 10 add $0x10,%esp } 801082f6: 90 nop 801082f7: c9 leave 801082f8: c3 ret 801082f9 <clearpteu>: // Clear PTE_U on a page. Used to create an inaccessible // page beneath the user stack. void clearpteu(pde_t *pgdir, char *uva) { 801082f9: 55 push %ebp 801082fa: 89 e5 mov %esp,%ebp 801082fc: 83 ec 18 sub $0x18,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 801082ff: 83 ec 04 sub $0x4,%esp 80108302: 6a 00 push $0x0 80108304: ff 75 0c pushl 0xc(%ebp) 80108307: ff 75 08 pushl 0x8(%ebp) 8010830a: e8 ed f8 ff ff call 80107bfc <walkpgdir> 8010830f: 83 c4 10 add $0x10,%esp 80108312: 89 45 f4 mov %eax,-0xc(%ebp) if(pte == 0) 80108315: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80108319: 75 0d jne 80108328 <clearpteu+0x2f> panic("clearpteu"); 8010831b: 83 ec 0c sub $0xc,%esp 8010831e: 68 30 8c 10 80 push $0x80108c30 80108323: e8 3e 82 ff ff call 80100566 <panic> *pte &= ~PTE_U; 80108328: 8b 45 f4 mov -0xc(%ebp),%eax 8010832b: 8b 00 mov (%eax),%eax 8010832d: 83 e0 fb and $0xfffffffb,%eax 80108330: 89 c2 mov %eax,%edx 80108332: 8b 45 f4 mov -0xc(%ebp),%eax 80108335: 89 10 mov %edx,(%eax) } 80108337: 90 nop 80108338: c9 leave 80108339: c3 ret 8010833a <copyuvm>: // Given a parent process's page table, create a copy // of it for a child. pde_t* copyuvm(pde_t *pgdir, uint sz) { 8010833a: 55 push %ebp 8010833b: 89 e5 mov %esp,%ebp 8010833d: 53 push %ebx 8010833e: 83 ec 24 sub $0x24,%esp pde_t *d; pte_t *pte; uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) 80108341: e8 e6 f9 ff ff call 80107d2c <setupkvm> 80108346: 89 45 f0 mov %eax,-0x10(%ebp) 80108349: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010834d: 75 0a jne 80108359 <copyuvm+0x1f> return 0; 8010834f: b8 00 00 00 00 mov $0x0,%eax 80108354: e9 f8 00 00 00 jmp 80108451 <copyuvm+0x117> for(i = 0; i < sz; i += PGSIZE){ 80108359: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80108360: e9 c4 00 00 00 jmp 80108429 <copyuvm+0xef> if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) 80108365: 8b 45 f4 mov -0xc(%ebp),%eax 80108368: 83 ec 04 sub $0x4,%esp 8010836b: 6a 00 push $0x0 8010836d: 50 push %eax 8010836e: ff 75 08 pushl 0x8(%ebp) 80108371: e8 86 f8 ff ff call 80107bfc <walkpgdir> 80108376: 83 c4 10 add $0x10,%esp 80108379: 89 45 ec mov %eax,-0x14(%ebp) 8010837c: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80108380: 75 0d jne 8010838f <copyuvm+0x55> panic("copyuvm: pte should exist"); 80108382: 83 ec 0c sub $0xc,%esp 80108385: 68 3a 8c 10 80 push $0x80108c3a 8010838a: e8 d7 81 ff ff call 80100566 <panic> if(!(*pte & PTE_P)) 8010838f: 8b 45 ec mov -0x14(%ebp),%eax 80108392: 8b 00 mov (%eax),%eax 80108394: 83 e0 01 and $0x1,%eax 80108397: 85 c0 test %eax,%eax 80108399: 75 0d jne 801083a8 <copyuvm+0x6e> panic("copyuvm: page not present"); 8010839b: 83 ec 0c sub $0xc,%esp 8010839e: 68 54 8c 10 80 push $0x80108c54 801083a3: e8 be 81 ff ff call 80100566 <panic> pa = PTE_ADDR(*pte); 801083a8: 8b 45 ec mov -0x14(%ebp),%eax 801083ab: 8b 00 mov (%eax),%eax 801083ad: 25 00 f0 ff ff and $0xfffff000,%eax 801083b2: 89 45 e8 mov %eax,-0x18(%ebp) flags = PTE_FLAGS(*pte); 801083b5: 8b 45 ec mov -0x14(%ebp),%eax 801083b8: 8b 00 mov (%eax),%eax 801083ba: 25 ff 0f 00 00 and $0xfff,%eax 801083bf: 89 45 e4 mov %eax,-0x1c(%ebp) if((mem = kalloc()) == 0) 801083c2: e8 9f a8 ff ff call 80102c66 <kalloc> 801083c7: 89 45 e0 mov %eax,-0x20(%ebp) 801083ca: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 801083ce: 74 6a je 8010843a <copyuvm+0x100> goto bad; memmove(mem, (char*)p2v(pa), PGSIZE); 801083d0: 83 ec 0c sub $0xc,%esp 801083d3: ff 75 e8 pushl -0x18(%ebp) 801083d6: e8 9f f3 ff ff call 8010777a <p2v> 801083db: 83 c4 10 add $0x10,%esp 801083de: 83 ec 04 sub $0x4,%esp 801083e1: 68 00 10 00 00 push $0x1000 801083e6: 50 push %eax 801083e7: ff 75 e0 pushl -0x20(%ebp) 801083ea: e8 5d cf ff ff call 8010534c <memmove> 801083ef: 83 c4 10 add $0x10,%esp if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) 801083f2: 8b 5d e4 mov -0x1c(%ebp),%ebx 801083f5: 83 ec 0c sub $0xc,%esp 801083f8: ff 75 e0 pushl -0x20(%ebp) 801083fb: e8 6d f3 ff ff call 8010776d <v2p> 80108400: 83 c4 10 add $0x10,%esp 80108403: 89 c2 mov %eax,%edx 80108405: 8b 45 f4 mov -0xc(%ebp),%eax 80108408: 83 ec 0c sub $0xc,%esp 8010840b: 53 push %ebx 8010840c: 52 push %edx 8010840d: 68 00 10 00 00 push $0x1000 80108412: 50 push %eax 80108413: ff 75 f0 pushl -0x10(%ebp) 80108416: e8 81 f8 ff ff call 80107c9c <mappages> 8010841b: 83 c4 20 add $0x20,%esp 8010841e: 85 c0 test %eax,%eax 80108420: 78 1b js 8010843d <copyuvm+0x103> uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) return 0; for(i = 0; i < sz; i += PGSIZE){ 80108422: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80108429: 8b 45 f4 mov -0xc(%ebp),%eax 8010842c: 3b 45 0c cmp 0xc(%ebp),%eax 8010842f: 0f 82 30 ff ff ff jb 80108365 <copyuvm+0x2b> goto bad; memmove(mem, (char*)p2v(pa), PGSIZE); if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) goto bad; } return d; 80108435: 8b 45 f0 mov -0x10(%ebp),%eax 80108438: eb 17 jmp 80108451 <copyuvm+0x117> if(!(*pte & PTE_P)) panic("copyuvm: page not present"); pa = PTE_ADDR(*pte); flags = PTE_FLAGS(*pte); if((mem = kalloc()) == 0) goto bad; 8010843a: 90 nop 8010843b: eb 01 jmp 8010843e <copyuvm+0x104> memmove(mem, (char*)p2v(pa), PGSIZE); if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) goto bad; 8010843d: 90 nop } return d; bad: freevm(d); 8010843e: 83 ec 0c sub $0xc,%esp 80108441: ff 75 f0 pushl -0x10(%ebp) 80108444: e8 10 fe ff ff call 80108259 <freevm> 80108449: 83 c4 10 add $0x10,%esp return 0; 8010844c: b8 00 00 00 00 mov $0x0,%eax } 80108451: 8b 5d fc mov -0x4(%ebp),%ebx 80108454: c9 leave 80108455: c3 ret 80108456 <uva2ka>: //PAGEBREAK! // Map user virtual address to kernel address. char* uva2ka(pde_t *pgdir, char *uva) { 80108456: 55 push %ebp 80108457: 89 e5 mov %esp,%ebp 80108459: 83 ec 18 sub $0x18,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 8010845c: 83 ec 04 sub $0x4,%esp 8010845f: 6a 00 push $0x0 80108461: ff 75 0c pushl 0xc(%ebp) 80108464: ff 75 08 pushl 0x8(%ebp) 80108467: e8 90 f7 ff ff call 80107bfc <walkpgdir> 8010846c: 83 c4 10 add $0x10,%esp 8010846f: 89 45 f4 mov %eax,-0xc(%ebp) if((*pte & PTE_P) == 0) 80108472: 8b 45 f4 mov -0xc(%ebp),%eax 80108475: 8b 00 mov (%eax),%eax 80108477: 83 e0 01 and $0x1,%eax 8010847a: 85 c0 test %eax,%eax 8010847c: 75 07 jne 80108485 <uva2ka+0x2f> return 0; 8010847e: b8 00 00 00 00 mov $0x0,%eax 80108483: eb 29 jmp 801084ae <uva2ka+0x58> if((*pte & PTE_U) == 0) 80108485: 8b 45 f4 mov -0xc(%ebp),%eax 80108488: 8b 00 mov (%eax),%eax 8010848a: 83 e0 04 and $0x4,%eax 8010848d: 85 c0 test %eax,%eax 8010848f: 75 07 jne 80108498 <uva2ka+0x42> return 0; 80108491: b8 00 00 00 00 mov $0x0,%eax 80108496: eb 16 jmp 801084ae <uva2ka+0x58> return (char*)p2v(PTE_ADDR(*pte)); 80108498: 8b 45 f4 mov -0xc(%ebp),%eax 8010849b: 8b 00 mov (%eax),%eax 8010849d: 25 00 f0 ff ff and $0xfffff000,%eax 801084a2: 83 ec 0c sub $0xc,%esp 801084a5: 50 push %eax 801084a6: e8 cf f2 ff ff call 8010777a <p2v> 801084ab: 83 c4 10 add $0x10,%esp } 801084ae: c9 leave 801084af: c3 ret 801084b0 <copyout>: // Copy len bytes from p to user address va in page table pgdir. // Most useful when pgdir is not the current page table. // uva2ka ensures this only works for PTE_U pages. int copyout(pde_t *pgdir, uint va, void *p, uint len) { 801084b0: 55 push %ebp 801084b1: 89 e5 mov %esp,%ebp 801084b3: 83 ec 18 sub $0x18,%esp char *buf, *pa0; uint n, va0; buf = (char*)p; 801084b6: 8b 45 10 mov 0x10(%ebp),%eax 801084b9: 89 45 f4 mov %eax,-0xc(%ebp) while(len > 0){ 801084bc: eb 7f jmp 8010853d <copyout+0x8d> va0 = (uint)PGROUNDDOWN(va); 801084be: 8b 45 0c mov 0xc(%ebp),%eax 801084c1: 25 00 f0 ff ff and $0xfffff000,%eax 801084c6: 89 45 ec mov %eax,-0x14(%ebp) pa0 = uva2ka(pgdir, (char*)va0); 801084c9: 8b 45 ec mov -0x14(%ebp),%eax 801084cc: 83 ec 08 sub $0x8,%esp 801084cf: 50 push %eax 801084d0: ff 75 08 pushl 0x8(%ebp) 801084d3: e8 7e ff ff ff call 80108456 <uva2ka> 801084d8: 83 c4 10 add $0x10,%esp 801084db: 89 45 e8 mov %eax,-0x18(%ebp) if(pa0 == 0) 801084de: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 801084e2: 75 07 jne 801084eb <copyout+0x3b> return -1; 801084e4: b8 ff ff ff ff mov $0xffffffff,%eax 801084e9: eb 61 jmp 8010854c <copyout+0x9c> n = PGSIZE - (va - va0); 801084eb: 8b 45 ec mov -0x14(%ebp),%eax 801084ee: 2b 45 0c sub 0xc(%ebp),%eax 801084f1: 05 00 10 00 00 add $0x1000,%eax 801084f6: 89 45 f0 mov %eax,-0x10(%ebp) if(n > len) 801084f9: 8b 45 f0 mov -0x10(%ebp),%eax 801084fc: 3b 45 14 cmp 0x14(%ebp),%eax 801084ff: 76 06 jbe 80108507 <copyout+0x57> n = len; 80108501: 8b 45 14 mov 0x14(%ebp),%eax 80108504: 89 45 f0 mov %eax,-0x10(%ebp) memmove(pa0 + (va - va0), buf, n); 80108507: 8b 45 0c mov 0xc(%ebp),%eax 8010850a: 2b 45 ec sub -0x14(%ebp),%eax 8010850d: 89 c2 mov %eax,%edx 8010850f: 8b 45 e8 mov -0x18(%ebp),%eax 80108512: 01 d0 add %edx,%eax 80108514: 83 ec 04 sub $0x4,%esp 80108517: ff 75 f0 pushl -0x10(%ebp) 8010851a: ff 75 f4 pushl -0xc(%ebp) 8010851d: 50 push %eax 8010851e: e8 29 ce ff ff call 8010534c <memmove> 80108523: 83 c4 10 add $0x10,%esp len -= n; 80108526: 8b 45 f0 mov -0x10(%ebp),%eax 80108529: 29 45 14 sub %eax,0x14(%ebp) buf += n; 8010852c: 8b 45 f0 mov -0x10(%ebp),%eax 8010852f: 01 45 f4 add %eax,-0xc(%ebp) va = va0 + PGSIZE; 80108532: 8b 45 ec mov -0x14(%ebp),%eax 80108535: 05 00 10 00 00 add $0x1000,%eax 8010853a: 89 45 0c mov %eax,0xc(%ebp) { char *buf, *pa0; uint n, va0; buf = (char*)p; while(len > 0){ 8010853d: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 80108541: 0f 85 77 ff ff ff jne 801084be <copyout+0xe> memmove(pa0 + (va - va0), buf, n); len -= n; buf += n; va = va0 + PGSIZE; } return 0; 80108547: b8 00 00 00 00 mov $0x0,%eax } 8010854c: c9 leave 8010854d: c3 ret
37.950847
105
0.527954
387ed9bb39bcd0f37a25c82a8e9fa1d72dd6b74c
1,200
asm
Assembly
arch/x86/src/cpu/isr/interrupt.asm
0x1C1B/jatos
413a1c8aa158a049dbc940d1a1b99f18725bac9e
[ "MIT" ]
1
2021-09-09T01:43:51.000Z
2021-09-09T01:43:51.000Z
arch/x86/src/cpu/isr/interrupt.asm
gfunkmonk/jatos
413a1c8aa158a049dbc940d1a1b99f18725bac9e
[ "MIT" ]
null
null
null
arch/x86/src/cpu/isr/interrupt.asm
gfunkmonk/jatos
413a1c8aa158a049dbc940d1a1b99f18725bac9e
[ "MIT" ]
2
2020-06-11T01:58:02.000Z
2021-09-09T01:43:51.000Z
bits 32 section .text extern isr_prehandler %macro EXC_CODELESS 1 global isr%1 isr%1: cli push 0x00 ; Dummy error code push %1 ; Interrupt number jmp isr_prehandler ; Call first stage interrupt handler %endmacro %macro EXC_CODE 1 global isr%1 isr%1: cli ; Error code pushed automatically push %1 ; Interrupt number jmp isr_prehandler ; Call first stage interrupt handler %endmacro EXC_CODELESS 0 EXC_CODELESS 1 EXC_CODELESS 2 EXC_CODELESS 3 EXC_CODELESS 4 EXC_CODELESS 5 EXC_CODELESS 6 EXC_CODELESS 7 EXC_CODE 8 EXC_CODELESS 9 EXC_CODE 10 EXC_CODE 11 EXC_CODE 12 EXC_CODE 13 EXC_CODE 14 EXC_CODELESS 15 EXC_CODELESS 16 EXC_CODELESS 17 EXC_CODELESS 18 EXC_CODELESS 19 EXC_CODELESS 20 EXC_CODELESS 21 EXC_CODELESS 22 EXC_CODELESS 23 EXC_CODELESS 24 EXC_CODELESS 25 EXC_CODELESS 26 EXC_CODELESS 27 EXC_CODELESS 28 EXC_CODELESS 29 EXC_CODELESS 30 EXC_CODELESS 31 %macro IRQ 1 global isr%1 isr%1: cli push byte 0x00 push byte %1 jmp isr_prehandler ; Call first stage interrupt handler %endmacro IRQ 32 IRQ 33 IRQ 34 IRQ 35 IRQ 36 IRQ 37 IRQ 38 IRQ 39 IRQ 40 IRQ 41 IRQ 42 IRQ 43 IRQ 44 IRQ 45 IRQ 46 IRQ 47
12.5
57
0.749167
905d1d60842f2e8277340898f1c6dc9500a17c31
2,623
asm
Assembly
programs/oeis/160/A160767.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/160/A160767.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/160/A160767.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A160767: Expansion of (1+12*x+28*x^2+12*x^3+x^4)/(1-x)^5. ; 1,17,103,367,971,2131,4117,7253,11917,18541,27611,39667,55303,75167,99961,130441,167417,211753,264367,326231,398371,481867,577853,687517,812101,952901,1111267,1288603,1486367,1706071,1949281,2217617,2512753,2836417,3190391,3576511,3996667,4452803,4946917,5481061,6057341,6677917,7345003,8060867,8827831,9648271,10524617,11459353,12455017,13514201,14639551,15833767,17099603,18439867,19857421,21355181,22936117,24603253,26359667,28208491,30152911,32196167,34341553,36592417,38952161,41424241,44012167,46719503,49549867,52506931,55594421,58816117,62175853,65677517,69325051,73122451,77073767,81183103,85454617,89892521,94501081,99284617,104247503,109394167,114729091,120256811,125981917,131909053,138042917,144388261,150949891,157732667,164741503,171981367,179457281,187174321,195137617,203352353,211823767,220557151,229557851,238831267,248382853,258218117,268342621,278761981,289481867,300508003,311846167,323502191,335481961,347791417,360436553,373423417,386758111,400446791,414495667,428911003,443699117,458866381,474419221,490364117,506707603,523456267,540616751,558195751,576200017,594636353,613511617,632832721,652606631,672840367,693541003,714715667,736371541,758515861,781155917,804299053,827952667,852124211,876821191,902051167,927821753,954140617,981015481,1008454121,1036464367,1065054103,1094231267,1124003851,1154379901,1185367517,1216974853,1249210117,1282081571,1315597531,1349766367,1384596503,1420096417,1456274641,1493139761,1530700417,1568965303,1607943167,1647642811,1688073091,1729242917,1771161253,1813837117,1857279581,1901497771,1946500867,1992298103,2038898767,2086312201,2134547801,2183615017,2233523353,2284282367,2335901671,2388390931,2441759867,2496018253,2551175917,2607242741,2664228661,2722143667,2780997803,2840801167,2901563911,2963296241,3026008417,3089710753,3154413617,3220127431,3286862671,3354629867,3423439603,3493302517,3564229301,3636230701,3709317517,3783500603,3858790867,3935199271,4012736831,4091414617,4171243753,4252235417,4334400841,4417751311,4502298167,4588052803,4675026667,4763231261,4852678141,4943378917,5035345253,5128588867,5223121531,5318955071,5416101367,5514572353,5614380017,5715536401,5818053601,5921943767,6027219103,6133891867,6241974371,6351478981,6462418117,6574804253,6688649917,6803967691,6920770211,7039070167,7158880303,7280213417,7403082361,7527500041,7653479417,7781033503,7910175367,8040918131,8173274971,8307259117,8442883853,8580162517,8719108501 lpb $0 add $2,$0 sub $0,1 lpe add $1,$2 mov $3,$2 lpb $2 sub $2,1 add $3,2 lpe add $3,1 mov $0,$3 lpb $3 add $1,$0 sub $3,1 lpe
131.15
2,421
0.867709
1496e6fd9e0285f9dbe616e27c4aed734ddee21b
753
asm
Assembly
AssemblyLanguage_Lab/ASB_LAB_6/Lab6/scr/ins13.asm
strawberrylin/Hust_CS_Lab
2a93d9cdc9bb6d981f9bfa3865af4ffd235a39e1
[ "MIT" ]
1
2018-09-27T07:30:59.000Z
2018-09-27T07:30:59.000Z
AssemblyLanguage_Lab/ASB_LAB_6/scr/ins13.asm
strawberrylin/Hust_CS_Lab
2a93d9cdc9bb6d981f9bfa3865af4ffd235a39e1
[ "MIT" ]
null
null
null
AssemblyLanguage_Lab/ASB_LAB_6/scr/ins13.asm
strawberrylin/Hust_CS_Lab
2a93d9cdc9bb6d981f9bfa3865af4ffd235a39e1
[ "MIT" ]
null
null
null
.386 code segment use16 assume cs:code,ss:stack OLD_INT DW ?,? ;新中断处理程序 NEW01H: cmp al, 'a' je newb cmp al, 'A' je newb cmp al, 'b' je newa cmp al, 'B' je newa jmp dword ptr OLD_INT newa: push bp mov bp, sp mov dl, 42h mov ah, 2 int 21h pop bp iret newb: push bp mov bp, sp mov dl, 41h mov ah, 2 int 21h pop bp iret ;初始化(安装新中断矢量并常驻内存)程序 start: xor ax, ax mov ds, ax mov ax, ds:[21h*4] mov OLD_INT, AX MOV AX, ds:[21h*4+2] mov OLD_INT+2, ax CLI mov word ptr ds:[21h*4], offset NEW01H mov ds:[01h*4+2], cs STI mov dx, offset start+15 mov cl, 4 shr dx, cl add dx, 10h mov al, 0 mov ah, 31h int 21h code ends stack segment use16 stack db 200 dup(0) stack ends end start
14.207547
40
0.614874
ccdcac274762b8f7c120061027baa00e6863f300
2,604
asm
Assembly
programs/oeis/157/A157442.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/157/A157442.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/157/A157442.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A157442: a(n) = 14641*n^2 - 24684*n + 10405. ; 362,19601,68122,145925,253010,389377,555026,749957,974170,1227665,1510442,1822501,2163842,2534465,2934370,3363557,3822026,4309777,4826810,5373125,5948722,6553601,7187762,7851205,8543930,9265937,10017226,10797797,11607650,12446785,13315202,14212901,15139882,16096145,17081690,18096517,19140626,20214017,21316690,22448645,23609882,24800401,26020202,27269285,28547650,29855297,31192226,32558437,33953930,35378705,36832762,38316101,39828722,41370625,42941810,44542277,46172026,47831057,49519370,51236965,52983842,54760001,56565442,58400165,60264170,62157457,64080026,66031877,68013010,70023425,72063122,74132101,76230362,78357905,80514730,82700837,84916226,87160897,89434850,91738085,94070602,96432401,98823482,101243845,103693490,106172417,108680626,111218117,113784890,116380945,119006282,121660901,124344802,127057985,129800450,132572197,135373226,138203537,141063130,143952005,146870162,149817601,152794322,155800325,158835610,161900177,164994026,168117157,171269570,174451265,177662242,180902501,184172042,187470865,190798970,194156357,197543026,200958977,204404210,207878725,211382522,214915601,218477962,222069605,225690530,229340737,233020226,236728997,240467050,244234385,248031002,251856901,255712082,259596545,263510290,267453317,271425626,275427217,279458090,283518245,287607682,291726401,295874402,300051685,304258250,308494097,312759226,317053637,321377330,325730305,330112562,334524101,338964922,343435025,347934410,352463077,357021026,361608257,366224770,370870565,375545642,380250001,384983642,389746565,394538770,399360257,404211026,409091077,414000410,418939025,423906922,428904101,433930562,438986305,444071330,449185637,454329226,459502097,464704250,469935685,475196402,480486401,485805682,491154245,496532090,501939217,507375626,512841317,518336290,523860545,529414082,534996901,540609002,546250385,551921050,557620997,563350226,569108737,574896530,580713605,586559962,592435601,598340522,604274725,610238210,616230977,622253026,628304357,634384970,640494865,646634042,652802501,659000242,665227265,671483570,677769157,684084026,690428177,696801610,703204325,709636322,716097601,722588162,729108005,735657130,742235537,748843226,755480197,762146450,768841985,775566802,782320901,789104282,795916945,802758890,809630117,816530626,823460417,830419490,837407845,844425482,851472401,858548602,865654085,872788850,879952897,887146226,894368837,901620730,908901905 mul $0,121 add $0,5 mov $2,$0 mov $0,6 add $2,4 lpb $0 sub $0,1 mov $1,$2 add $1,1 mov $2,$1 lpe add $3,4 add $1,$3 pow $1,2 sub $1,361 div $1,121 mul $1,121 add $1,362
118.363636
2,378
0.864439
b554c03a50eb6bd6110de36b8670a796332ed525
17,021
asm
Assembly
Dot6502MiniConsole/SamplePrograms/calculator.asm
terjew/Dot6502
c69ba93a34635f394bcef43b2f5a4679145c2f7f
[ "MIT" ]
4
2020-11-20T10:38:13.000Z
2020-11-29T23:26:14.000Z
Dot6502MiniConsole/SamplePrograms/calculator.asm
terjew/Dot6502
c69ba93a34635f394bcef43b2f5a4679145c2f7f
[ "MIT" ]
null
null
null
Dot6502MiniConsole/SamplePrograms/calculator.asm
terjew/Dot6502
c69ba93a34635f394bcef43b2f5a4679145c2f7f
[ "MIT" ]
1
2021-09-29T11:53:41.000Z
2021-09-29T11:53:41.000Z
; Calculator for 6502asm.com, Version 1.02, 2015.JUL.08 by Sid Liu ; It is slow in the 6502 emulator by JavaScript. ; The left top flash point is a busy indicator. ; The calculator supports keys: 'C', 'c', '0', '1', ..., '9', '+', '-' and '='. main: cld jsr display ; comparison loop for well response getch_main: inc $fd lda $ff cmp #67 ; 'C' for clear beq store_main cmp #99 ; 'c' for clear beq store_main cmp #43 ; '+' beq store_main cmp #45 ; '-' beq store_main cmp #61 ; '=' beq store_main cmp #48 ; '0' bmi getch_main cmp #57 ; '9' beq store_main bpl getch_main store_main: sta key_main ; clear key lda #0 sta $ff ; clear operand 2 by 'C' or 'c' lda key_main cmp #67 beq clear_main cmp #99 beq clear_main jmp operate_main clear_main: jsr clear lda #61 sta _operator1 lda #0 sta still_main sta standby_main jsr display jmp getch_main ; operate operand 1 and operand 2 operate_main: lda key_main cmp #43 ; '+' bne next1_main sta _operator2 lda just_main bne jump1_main jsr operate lda #1 sta standby_main sta just_main jump1_main: jmp getch_main next1_main: lda key_main cmp #45 ; '-' bne next2_main sta _operator2 lda just_main bne jump2_main jsr operate lda #1 sta standby_main sta just_main jump2_main: jmp getch_main next2_main: lda key_main cmp #61 ; '=' bne replace_main sta _operator2 lda just_main bne jump3_main jsr operate lda #61 sta _operator1 lda #1 sta standby_main sta just_main jump3_main: jmp getch_main replace_main: lda standby_main beq full_main jsr move jsr clear lda #0 sta standby_main jmp append_main ; whether full of digits full_main: jsr length lda $00 cmp #5 bne next3_main jmp getch_main next3_main: lda still_main beq append_main ; shift digits ldx #3 shift_main: clc lda _operand2,x stx tmp_main ldy tmp_main iny clc sta _operand2,y dex txa bpl shift_main ; append digit append_main: lda #1 sta still_main lda #0 sta just_main lda key_main sta _operand2 ; replace '0' with 's' ldx #4 loop_main: lda _operand2,x cmp #48 beq space_main cmp #115 beq next4_main jmp display_main space_main: lda #115 sta _operand2,x next4_main: dex beq display_main ; "XXXXY" bpl loop_main display_main: jsr display jmp getch_main ; global variables _operand1: dcb 48,115,115,115,115 ; 's' for space _operator1: dcb 61 ; '=' _operand2: dcb 48,115,115,115,115 _operator2: dcb 115 ; local variables key_main: dcb 0 tmp_main: dcb 0 still_main: dcb 0 ; boolean, still editing flag standby_main: dcb 0 ; boolean, preparing to move and clear flag just_main: dcb 0 ; boolean, just operator key flag operate: ; operate operand 1 and operand 2 lda _operator1 cmp #43 ; '+' beq add_operate cmp #45 ; '-' beq sub_operate jmp end_operate add_operate: jsr add jsr display jmp end_operate sub_operate: jsr sub jsr display end_operate: rts add: ; add operand 1 and operand 2 ldx #0 ldy #0 sty carry_add loop1_add: clc lda _operand2,x cmp #115 beq space1_add sec sbc #48 sta digit_add jmp next1_add space1_add: lda #0 sta digit_add next1_add: clc lda _operand1,x cmp #115 beq space2_add sec sbc #48 jmp next2_add space2_add: lda #0 next2_add: clc adc digit_add clc adc carry_add ldy #0 sty carry_add cmp #10 bmi ascii_add sec sbc #10 ldy #1 sty carry_add ascii_add: clc adc #48 clc sta _operand2,x inx cpx #5 bmi loop1_add ; replace '0' with 's' ldx #4 loop2_add: lda _operand2,x cmp #48 bne end_add lda #115 sta _operand2,x dex beq end_add ; "XXXXY" bpl loop2_add end_add: rts ; local variables digit_add: dcb 0 carry_add: dcb 0 sub: ; sub operand 1 and operand 2 ldx #0 ldy #0 sty borrow_sub loop1_sub: clc lda _operand2,x cmp #115 beq space1_sub sec sbc #48 sta digit_sub jmp next1_sub space1_sub: lda #0 sta digit_sub next1_sub: clc lda _operand1,x cmp #115 beq space2_sub sec sbc #48 jmp next2_sub space2_sub: lda #0 next2_sub: sec sbc digit_sub sec sbc borrow_sub ldy #0 sty borrow_sub cmp #0 bpl ascii_sub clc adc #10 ldy #1 sty borrow_sub ascii_sub: clc adc #48 clc sta _operand2,x inx cpx #5 bmi loop1_sub ; replace '0' with 's' ldx #4 loop2_sub: lda _operand2,x cmp #48 bne end_sub lda #115 sta _operand2,x dex beq end_sub ; "XXXXY" bpl loop2_sub end_sub: rts ; local variables digit_sub: dcb 0 borrow_sub: dcb 0 length: ; compute the length of operand 2 ; input void; output $00; ldx #0 loop_length: cpx #5 beq end_length clc lda _operand2,x inx cmp #115 bne loop_length dex end_length: stx $00 rts move: ; move operand 2 to operand 1 ; move operator 2 to operator 1 ldx #4 loop_move: clc lda _operand2,x sta _operand1,x dex bpl loop_move ; move operator 2 to operator 1 lda _operator2 sta _operator1 rts clear: ; clear operand 2 lda #4 sta count_clear loop_clear: lda #115 ldx count_clear clc sta _operand2,x dec count_clear lda count_clear cmp #1 bpl loop_clear lda #48 sta _operand2 rts ; local variables count_clear: dcb 0 display: ; display operand 2 lda #4 sta count_display loop_display: lda count_display sta $00 inc $00 lda #6 sta $01 jsr cmul lda #32 sec sbc $02 sta $00 ; 32-(count+1)*6 lda #22 sta $01 ldx count_display clc lda _operand2,x sta $02 jsr draw dec count_display lda count_display bpl loop_display rts ; local variables count_display: dcb 0 draw: ; draw a digit ; input char x $00, char y $01,char digit $02; output void; lda $00 sta x_draw lda $01 sta y_draw lda $02 cmp #115 bne digital_draw lda #$ff ; -1 for space sta value_draw jmp init_draw digital_draw: sec sbc #48 sta value_draw init_draw: lda #0 sta i_draw sta j_draw loop_draw: ; converse white lda i_draw cmp #0 bne converse_draw lda #1 sta $00 sta $01 lda #$01 sta $02 jsr pixel ; converse black converse_draw: lda i_draw cmp #3 bne start_draw lda #1 sta $00 sta $01 lda #$00 sta $02 jsr pixel start_draw: lda value_draw sta $00 bmi black_draw lda #9 sta $01 jsr cmul lda $02 clc adc j_draw tay clc lda font_draw,y ; byte=[font+value*9+j] sta byte_draw lda #1 sta mask_draw ldx i_draw shift_draw: beq and_draw asl mask_draw dex jmp shift_draw and_draw: lda mask_draw and byte_draw beq black_draw white_draw: lda #$01 sta color_draw jmp pixel_draw black_draw: lda #$00 sta color_draw pixel_draw: lda i_draw clc adc x_draw sta $00 lda j_draw clc adc y_draw sta $01 lda color_draw sta $02 jsr pixel ; increase for next step inc i_draw lda i_draw cmp #5 bpl next_draw jmp loop_draw next_draw: lda #0 sta i_draw inc j_draw lda j_draw cmp #9 bpl end_draw jmp loop_draw end_draw: rts ; local variables x_draw: dcb 0 y_draw: dcb 0 value_draw: dcb 0 i_draw: dcb 0 j_draw: dcb 0 mask_draw: dcb 0 byte_draw: dcb 0 color_draw: dcb 0 font_draw: ; '0'~'9', 5x9 dcb $0e,$11,$11,$13,$15,$19,$11,$11,$0e dcb $04,$06,$04,$04,$04,$04,$04,$04,$0e dcb $0e,$11,$10,$10,$08,$04,$02,$01,$1f dcb $0e,$11,$10,$10,$0e,$10,$10,$11,$0e dcb $08,$0c,$0a,$09,$09,$09,$1f,$08,$08 dcb $1f,$01,$01,$01,$0f,$10,$10,$11,$0e dcb $0e,$11,$01,$01,$0f,$11,$11,$11,$0e dcb $1f,$11,$10,$10,$08,$08,$08,$04,$04 dcb $0e,$11,$11,$11,$0e,$11,$11,$11,$0e dcb $0e,$11,$11,$11,$1e,$10,$10,$10,$0e pixel: ; draw a pixel ; pixel page memory address, m=512+y*32+x ; (or m0=y%8*32+x, m1=2+y/8) ; color: $00 is black, $01 is white ; input char x $00,y $01,color $02; output void; effect $60, $61 lda $00 sta x_pixel lda $01 sta y_pixel lda $02 sta color_pixel lda y_pixel sta $00 lda #8 sta $01 jsr cmod lda $02 sta $00 lda #32 sta $01 jsr cmul lda $02 clc adc x_pixel sta $60 ; m0 lda y_pixel sta $00 lda #8 sta $01 jsr cdiv lda $02 clc adc #2 sta $61 ; m1 ldy #0 lda color_pixel clc sta ($60),y rts ; local variables x_pixel: dcb 0 y_pixel: dcb 0 color_pixel: dcb 0 cmod: ; char modulus ; c=a%b=a-a/b*b ; input char a $00,b $01; output char c $02; LDA $00 STA a_cmod JSR cdiv LDA $02 STA $00 JSR cmul LDA $02 STA p_cmod LDA a_cmod SEC SBC p_cmod STA $02 RTS a_cmod: DCB 0 p_cmod: DCB 0 ; p=a/b*b cmul: ; char multiply ; c=a*b ; input char a $00,b $01; output char c $02; LDA #0 LDX $01 loop_cmul: BEQ take_cmul CLC ADC $00 DEX JMP loop_cmul take_cmul: STA $02 RTS cdiv: ; char divide ; c=a/b ; input char a $00,b $01; output char c $02; LDA #0 LDX #0 CLC loop_cdiv: CMP $00 BEQ take2_cdiv BPL take1_cdiv ADC $01 BCS take2_cdiv INX JMP loop_cdiv take1_cdiv: DEX take2_cdiv: STX $02 RTS
25.030882
79
0.349392
febb3f2484c829f5398e035a962ffbd746c652b0
8,760
asm
Assembly
Transynther/x86/_processed/US/_ht_st_zr_un_sm_/i9-9900K_12_0xa0.log_21829_1644.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_ht_st_zr_un_sm_/i9-9900K_12_0xa0.log_21829_1644.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_ht_st_zr_un_sm_/i9-9900K_12_0xa0.log_21829_1644.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x8b83, %rdi nop nop nop nop nop and $8779, %r8 movups (%rdi), %xmm0 vpextrq $1, %xmm0, %r15 nop nop nop nop xor %r9, %r9 lea addresses_A_ht+0x1cf43, %rbx sub $48716, %r12 movb $0x61, (%rbx) xor $5317, %r15 lea addresses_UC_ht+0x1c4a3, %r12 nop nop nop nop nop xor %r10, %r10 movb $0x61, (%r12) nop nop cmp %r9, %r9 lea addresses_WT_ht+0x3363, %r10 clflush (%r10) nop nop nop add $22944, %r8 mov $0x6162636465666768, %rbx movq %rbx, %xmm0 vmovups %ymm0, (%r10) nop nop nop nop nop add $16630, %r9 lea addresses_normal_ht+0x1bcdf, %r9 nop nop nop nop cmp $16700, %r10 mov $0x6162636465666768, %r15 movq %r15, %xmm7 and $0xffffffffffffffc0, %r9 vmovntdq %ymm7, (%r9) nop nop inc %r10 lea addresses_normal_ht+0x2743, %rsi lea addresses_normal_ht+0x1e643, %rdi nop nop and %r8, %r8 mov $6, %rcx rep movsw nop nop nop nop nop xor %r8, %r8 lea addresses_D_ht+0x4e05, %r9 inc %r8 mov $0x6162636465666768, %rbx movq %rbx, %xmm0 vmovups %ymm0, (%r9) nop nop nop cmp %r12, %r12 lea addresses_normal_ht+0x18cc3, %rsi clflush (%rsi) nop nop nop nop sub $7054, %r9 movb (%rsi), %r10b xor $23524, %rcx lea addresses_WT_ht+0x1b043, %rsi lea addresses_A_ht+0x3c83, %rdi clflush (%rsi) clflush (%rdi) nop nop nop nop sub %r9, %r9 mov $86, %rcx rep movsw nop nop add $22855, %rcx lea addresses_D_ht+0x10143, %rsi lea addresses_WC_ht+0x22db, %rdi nop nop nop nop nop dec %r12 mov $40, %rcx rep movsw nop cmp $10912, %r10 lea addresses_WC_ht+0x12f17, %rsi lea addresses_WT_ht+0x1a3, %rdi nop nop nop nop nop add %r10, %r10 mov $53, %rcx rep movsb nop nop nop nop nop sub %r12, %r12 lea addresses_WT_ht+0x6e03, %r15 nop nop nop nop nop cmp %rdi, %rdi movb $0x61, (%r15) and %rdi, %rdi lea addresses_WT_ht+0x13483, %r12 cmp %r8, %r8 movl $0x61626364, (%r12) nop nop nop nop nop sub %rbx, %rbx pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %rbp push %rbx push %rcx push %rdi push %rsi // Store lea addresses_PSE+0x6943, %rcx clflush (%rcx) nop nop nop xor $47963, %rbx movb $0x51, (%rcx) nop nop nop nop nop sub %rbp, %rbp // Load lea addresses_US+0x136f3, %rbx nop nop nop nop nop cmp $51480, %r10 mov (%rbx), %rbp nop cmp %rsi, %rsi // Store lea addresses_normal+0xfbc3, %r12 nop nop add $48249, %rdi movw $0x5152, (%r12) nop nop cmp $14387, %rdi // Store mov $0x5ec060000000523, %rsi nop nop dec %rcx mov $0x5152535455565758, %r12 movq %r12, %xmm7 vmovaps %ymm7, (%rsi) nop nop nop add %r10, %r10 // Store lea addresses_US+0x9343, %r12 clflush (%r12) xor $50207, %r10 movb $0x51, (%r12) nop nop add %rcx, %rcx // Faulty Load lea addresses_US+0x9343, %rbx clflush (%rbx) nop add %r10, %r10 vmovups (%rbx), %ymm3 vextracti128 $1, %ymm3, %xmm3 vpextrq $1, %xmm3, %rsi lea oracles, %rbx and $0xff, %rsi shlq $12, %rsi mov (%rbx,%rsi,1), %rsi pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 7, 'type': 'addresses_normal', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_NC', 'AVXalign': True, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 1}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 2, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32}} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}} {'08': 3, '49': 19487, '58': 1, '00': 2336, '72': 2} 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 00 00 00 49 49 00 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 00 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 00 49 49 49 00 00 49 49 49 49 49 49 00 49 49 00 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 00 49 49 49 00 49 49 49 49 00 49 49 49 00 49 49 49 49 00 49 49 49 00 49 00 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 00 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 00 49 49 00 49 49 49 49 00 49 49 49 49 49 00 49 49 00 49 00 49 49 49 49 49 49 49 00 49 49 49 00 00 00 49 49 49 49 49 49 49 49 49 49 49 00 49 49 00 00 49 49 49 00 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 00 49 49 49 49 00 49 49 49 49 00 49 49 49 49 49 49 49 49 00 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 00 49 49 49 00 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 00 00 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 00 49 49 49 49 49 00 49 00 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 00 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 00 49 00 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 00 00 49 49 49 49 49 49 49 00 49 49 49 49 49 00 49 49 49 00 00 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 00 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 00 49 49 49 00 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 00 00 49 49 49 49 49 */
30.311419
2,999
0.653767
57f19f466e454292e966cfae7689d08e6977fb19
575
asm
Assembly
programs/oeis/203/A203230.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/203/A203230.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/203/A203230.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A203230: (n-1)-st elementary symmetric function of the first n terms of A010684. ; 1,4,7,24,33,108,135,432,513,1620,1863,5832,6561,20412,22599,69984,76545,236196,255879,787320,846369,2598156,2775303,8503056,9034497,27634932,29229255,89282088,94065057,286978140,301327047,918330048 mov $4,$0 add $4,1 mov $5,$0 lpb $4,1 mov $0,$5 sub $4,1 sub $0,$4 mov $3,$0 add $3,$0 add $0,1 mov $6,3 lpb $0,1 sub $0,1 mov $2,2 add $2,$3 sub $6,1 mov $3,$6 mov $6,$2 mul $6,3 lpe mov $6,$3 div $6,9 mul $6,2 add $6,1 add $1,$6 lpe
19.166667
199
0.617391
1d63af44af0ab676537305f5dd64ca7ad83c046e
472
asm
Assembly
oeis/060/A060582.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/060/A060582.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/060/A060582.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A060582: If the final digit of n in base 3 is the same as a([n/3]) then this digit, otherwise a(n)= mod 3-sum of these two digits, with a(0)=0. ; 0,2,1,1,0,2,2,1,0,2,1,0,0,2,1,1,0,2,1,0,2,2,1,0,0,2,1,1,0,2,2,1,0,0,2,1,0,2,1,1,0,2,2,1,0,2,1,0,0,2,1,1,0,2,2,1,0,0,2,1,1,0,2,1,0,2,2,1,0,0,2,1,0,2,1,1,0,2,2,1,0,2,1,0,0,2,1,1,0,2,1,0,2,2,1,0,0,2,1,0 seq $0,65361 ; Rebase n from 3 to 2. Replace 3^k with 2^k in ternary expansion of n. mul $0,2 add $1,$0 mod $1,3 mov $0,$1
52.444444
201
0.59322
5e2c9678b7cac76c1cd6364bbf9c0c813bc6d100
337
asm
Assembly
wof/lcs/base/320.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
wof/lcs/base/320.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
wof/lcs/base/320.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 00166E addq.w #1, ($320,A5) [base+32C] 001672 rts [base+320] 01A69A move.w D0, ($320,A5) [base+32C] 01A69E rts 01EA30 beq $1eada [base+320] 021CF0 move.w D0, ($320,A5) [base+32C] 021CF4 lea ($2f1c,A5), A0 copyright zengfr site:http://github.com/zengfr/romhack
28.083333
54
0.673591
b5fc1c7f421e9c1a2bfab7f8452b46b47f84ab08
15,696
asm
Assembly
sk/music-optimized/Competition Menu.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
sk/music-optimized/Competition Menu.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
sk/music-optimized/Competition Menu.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Snd_2PMenu_Header: smpsHeaderStartSong 3, 1 smpsHeaderVoice Snd_2PMenu_Voices smpsHeaderChan $06, $03 smpsHeaderTempo $01, $4A smpsHeaderDAC Snd_2PMenu_DAC smpsHeaderFM Snd_2PMenu_FM1, $00, $03 smpsHeaderFM Snd_2PMenu_FM2, $00, $00 ; Previously this transpose was -$C, causing a note to underflow smpsHeaderFM Snd_2PMenu_FM3, $00, $05 smpsHeaderFM Snd_2PMenu_FM4, $00, $05 smpsHeaderFM Snd_2PMenu_FM5, $00, $05 smpsHeaderPSG Snd_2PMenu_PSG1, $E8, $00, $00, sTone_0F smpsHeaderPSG Snd_2PMenu_PSG2, $E8, $01, $00, sTone_0F smpsHeaderPSG Snd_2PMenu_PSG3, $2E, $00, $00, sTone_0D ; FM1 Data Snd_2PMenu_FM1: smpsSetvoice $00 Snd_2PMenu_Loop03: dc.b nE3, $06, nRst, $1E, nE3, $06, nD3, $12, nB2, $06, nRst, nA2 dc.b nRst, nRst, nRst smpsLoop $00, $08, Snd_2PMenu_Loop03 dc.b nE3, $06, nRst, $36, nB2, $06, nD3, $12, nE3, $06, nRst, nFs3 dc.b $06, nRst, $2A, nCs3, $06, nCs3, nE3, nFs3, nRst, $18, nB2, $06 dc.b nRst, $36, nFs2, $06, nA2, $12, nB2, $06, nRst, nB2, $06, nRst dc.b $24, nD2, $06, nD3, nRst, nCs3, nRst, nB2, nRst, nA2, nRst, nE2 dc.b $06, nRst, $36, nB1, $06, nD2, nB1, nE2, nB1, nRst, nFs2, $06 dc.b nRst, $2A, nCs2, $06, nCs2, nE2, nFs2, $1E, nB2, $06, nRst, $36 dc.b nFs2, $06, nA2, $12, nB2, $06, nRst, nB2, $06, nRst, $12, nRst dc.b $0C, nB2, nA2, nRst, nRst, nRst Snd_2PMenu_Loop04: dc.b nE3, $06, nRst, $1E, nE3, $06, nD3, $12, nB2, $06, nRst, nA2 dc.b nRst, nRst, nRst smpsLoop $00, $08, Snd_2PMenu_Loop04 smpsJump Snd_2PMenu_Loop03 ; FM2 Data Snd_2PMenu_FM2: smpsCall Snd_2PMenu_Call03 smpsSetvoice $06 dc.b nG7, $60, nRst smpsSetvoice $07 dc.b nE4, $0D smpsFMAlterVol $08 dc.b nE4, $0B, nRst, $48 smpsFMAlterVol $F8 dc.b nE4, $0D smpsFMAlterVol $08 dc.b nE4, $0B, nRst, $48 smpsFMAlterVol $F8 smpsSetvoice $06 dc.b nG7, $60, nRst smpsSetvoice $07 dc.b nE4, $0D smpsFMAlterVol $08 dc.b nE4, $0B, nRst, $48 smpsFMAlterVol $F8 dc.b nE4, $0D smpsFMAlterVol $08 dc.b nE4, $0B, nRst, $48 smpsFMAlterVol $F8 smpsCall Snd_2PMenu_Call03 smpsJump Snd_2PMenu_FM2 Snd_2PMenu_Call03: smpsSetvoice $06 dc.b nC3, $60, nRst smpsSetvoice $07 dc.b nE4, $0D smpsFMAlterVol $08 dc.b nE4, $0B, nRst, $48 smpsFMAlterVol $F8 dc.b nRst, $60 smpsSetvoice $06 dc.b nRst, $06, nC3, $5A, nRst, $60 smpsSetvoice $07 dc.b nE4, $0D smpsFMAlterVol $08 dc.b nE4, $0B, nRst, $48 smpsFMAlterVol $F8 dc.b nRst, $60 smpsReturn ; FM3 Data Snd_2PMenu_FM3: smpsPan panLeft, $00 smpsAlterNote $01 Snd_2PMenu_Jump01: smpsCall Snd_2PMenu_Call02 smpsSetvoice $02 dc.b nG3, $60, nA3, $24, nE3, $3C, nA3, $60, nA3, nG3, $60, nA3 dc.b $24, nE3, $3C, nA3, $60, nA3, $48, nCs4, $18 smpsCall Snd_2PMenu_Call02 smpsJump Snd_2PMenu_Jump01 Snd_2PMenu_Call02: smpsSetvoice $03 dc.b nRst, $24, nA3, $3C, smpsNoAttack, $3C smpsSetvoice $01 smpsNoteFill $06 dc.b nG5, $06, nG5 smpsFMAlterVol $10 dc.b nG5, nRst smpsFMAlterVol $F0 dc.b nA5, nRst smpsNoteFill $00 smpsSetvoice $03 dc.b nA3, $60, smpsNoAttack, $54 smpsSetvoice $05 smpsModSet $01, $01, $03, $06 dc.b nE5, $12 smpsModOff smpsSetvoice $03 dc.b nRst, $1E, nA3, $3C, smpsNoAttack, $3C smpsSetvoice $01 smpsNoteFill $06 dc.b nG5, $06, nG5 smpsFMAlterVol $10 dc.b nG5, nRst smpsFMAlterVol $F0 dc.b nA5, nRst smpsNoteFill $00 smpsSetvoice $03 dc.b nA3, $60, smpsNoAttack, $60 smpsReturn ; FM4 Data Snd_2PMenu_FM4: smpsPan panRight, $00 Snd_2PMenu_Jump00: smpsCall Snd_2PMenu_Call01 smpsSetvoice $02 dc.b nB3, $60, nE4, nD4, nD4, nB3, $60, nE4, nCs4, nD4, $48, nE4 dc.b $18 smpsCall Snd_2PMenu_Call01 smpsJump Snd_2PMenu_Jump00 Snd_2PMenu_Call01: smpsSetvoice $03 dc.b nRst, $24, nB3, $3C, smpsNoAttack, $3C smpsSetvoice $01 smpsNoteFill $06 dc.b nG4, $06, nG4 smpsFMAlterVol $10 dc.b nG4, nRst smpsFMAlterVol $F0 dc.b nA4, nRst smpsNoteFill $00 smpsSetvoice $03 dc.b nB3, $60, smpsNoAttack, $54 smpsSetvoice $05 smpsModSet $01, $01, $03, $06 dc.b nG5, $12 smpsModOff smpsSetvoice $03 dc.b nRst, $1E, nB3, $3C, smpsNoAttack, $3C smpsSetvoice $01 smpsNoteFill $06 dc.b nG4, $06, nG4 smpsFMAlterVol $10 dc.b nG4, nRst smpsFMAlterVol $F0 dc.b nA4, nRst smpsNoteFill $00 smpsSetvoice $03 dc.b nB3, $60, smpsNoAttack, $60 smpsReturn ; FM5 Data Snd_2PMenu_FM5: smpsCall Snd_2PMenu_Call00 smpsSetvoice $02 dc.b nD4, $3C, nG4, $12, nA4, nA4, $60, nA4, nA4, nD4, $3C, nG4 dc.b $12, nA4, nA4, $60, nE4, nA4, $48, nCs5, $18 smpsCall Snd_2PMenu_Call00 smpsJump Snd_2PMenu_FM5 Snd_2PMenu_Call00: smpsSetvoice $03 dc.b nRst, $24, nD4, $3C, smpsNoAttack, $60, nE4, smpsNoAttack, nE4 smpsLoop $00, $02, Snd_2PMenu_Call00 smpsReturn ; PSG1 Data Snd_2PMenu_PSG1: dc.b nRst, $01 smpsAlterNote $FF ; PSG2 Data Snd_2PMenu_PSG2: smpsPSGvoice sTone_1F Snd_2PMenu_Jump03: smpsCall Snd_2PMenu_Call08 smpsCall Snd_2PMenu_Call08 dc.b nRst, $60, nRst, nRst, nRst, $18, nD5, nE5, $03, nFs5, $15, nD5 dc.b $18, nG4, $03, nA4, $2D, nRst, $30, nRst, $18, nA4, $12, nG4 dc.b $06, nFs4, $18, nA4, nE4, $24, nRst, $3C, nRst, $60 smpsCall Snd_2PMenu_Call08 Snd_2PMenu_Loop05: dc.b nRst, $18, nD5, $0C, nB4, $06, nRst, nG4, $0C, nB4, $06, nRst dc.b nD5, $0C, nB4, $06, nRst smpsLoop $00, $02, Snd_2PMenu_Loop05 dc.b nRst, $18, nE5, $0C, nB4, $06, nRst, nG4, $0C, nB4, $06, nRst dc.b nE5, $0C, nB4, $06, nRst, nRst, $60 smpsJump Snd_2PMenu_Jump03 Snd_2PMenu_Call08: dc.b nRst, $18, nD5, $0C, nB4, $06, nRst, nG4, $0C, nB4, $06, nRst dc.b nD5, $0C, nB4, $06, nRst smpsLoop $00, $02, Snd_2PMenu_Call08 Snd_2PMenu_Loop06: dc.b nRst, $18, nE5, $0C, nB4, $06, nRst, nG4, $0C, nB4, $06, nRst dc.b nE5, $0C, nB4, $06, nRst smpsLoop $00, $02, Snd_2PMenu_Loop06 smpsReturn ; PSG3 Data Snd_2PMenu_PSG3: smpsPSGform $E7 smpsPSGvoice sTone_1E Snd_2PMenu_Jump02: smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call05 smpsCall Snd_2PMenu_Call06 smpsCall Snd_2PMenu_Call05 smpsCall Snd_2PMenu_Call07 smpsCall Snd_2PMenu_Call07 smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call05 smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call07 smpsCall Snd_2PMenu_Call06 smpsCall Snd_2PMenu_Call06 smpsCall Snd_2PMenu_Call05 smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call07 smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call07 smpsCall Snd_2PMenu_Call06 smpsCall Snd_2PMenu_Call04 smpsCall Snd_2PMenu_Call07 smpsJump Snd_2PMenu_Jump02 Snd_2PMenu_Call04: smpsPSGvoice sTone_1E smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF, $0C smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF, (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF, (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $FE smpsPSGvoice sTone_27 dc.b (nMaxPSG1-$2E)&$FF, $06, nRst smpsReturn Snd_2PMenu_Call05: smpsPSGvoice sTone_1E smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF, $0C smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF, (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF, (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF, $06, (nMaxPSG1-$2E)&$FF smpsReturn Snd_2PMenu_Call06: smpsPSGvoice sTone_1E smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF, $0C smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF, (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF, (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF, $06 smpsPSGvoice sTone_27 dc.b (nMaxPSG1-$2E)&$FF smpsReturn Snd_2PMenu_Call07: smpsPSGvoice sTone_1E smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF, $0C smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF, (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $FE dc.b (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $02 dc.b (nMaxPSG1-$2E)&$FF, (nMaxPSG1-$2E)&$FF smpsPSGAlterVol $FE smpsPSGvoice sTone_27 dc.b (nMaxPSG1-$2E)&$FF smpsReturn ; DAC Data Snd_2PMenu_DAC: dc.b dKickS3, $06, nRst, nRst, nRst, dSnareS3, nRst, nRst, dKickS3, dKickS3, nRst, dKickS3 dc.b nRst, dSnareS3, nRst, nRst, nRst smpsLoop $00, $03, Snd_2PMenu_DAC dc.b dKickS3, nRst, nRst, nRst, dSnareS3, nRst, nRst, dKickS3, dKickS3, nRst, dKickS3, nRst dc.b dSnareS3, nRst, dSnareS3, dSnareS3 Snd_2PMenu_Loop00: dc.b dKickS3, $06, nRst, nRst, nRst, dSnareS3, nRst, nRst, dKickS3, dKickS3, nRst, dKickS3 dc.b nRst, dSnareS3, nRst, nRst, nRst smpsLoop $00, $03, Snd_2PMenu_Loop00 dc.b dKickS3, nRst, dSnareS3, nRst, dSnareS3, nRst, nRst, dKickS3, dKickS3, nRst, dSnareS3, dSnareS3 dc.b dSnareS3, nRst, dSnareS3, dSnareS3 Snd_2PMenu_Loop01: dc.b dKickS3, nRst, nRst, nRst, dSnareS3, nRst, nRst, dKickS3, dKickS3, nRst, dKickS3, nRst dc.b dSnareS3, nRst, dKickS3, nRst smpsLoop $00, $03, Snd_2PMenu_Loop01 dc.b dKickS3, nRst, nRst, nRst, dSnareS3, nRst, nRst, dKickS3, dKickS3, nRst, dKickS3, nRst dc.b dSnareS3, nRst, dSnareS3, dSnareS3 smpsLoop $01, $02, Snd_2PMenu_Loop01 Snd_2PMenu_Loop02: dc.b dKickS3, $06, nRst, nRst, nRst, dSnareS3, nRst, nRst, dKickS3, dKickS3, nRst, dKickS3 dc.b nRst, dSnareS3, nRst, nRst, nRst smpsLoop $00, $03, Snd_2PMenu_Loop02 dc.b dKickS3, nRst, nRst, nRst, dSnareS3, nRst, nRst, dKickS3, dKickS3, nRst, dKickS3, nRst dc.b dSnareS3, nRst, dSnareS3, dSnareS3 smpsLoop $01, $02, Snd_2PMenu_Loop02 smpsJump Snd_2PMenu_DAC Snd_2PMenu_Voices: ; Voice $00 ; $00 ; $27, $33, $30, $21, $DF, $DF, $9F, $9F, $07, $06, $09, $06 ; $07, $06, $06, $08, $20, $10, $10, $0F, $19, $37, $10, $84 smpsVcAlgorithm $00 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $02, $03, $03, $02 smpsVcCoarseFreq $01, $00, $03, $07 smpsVcRateScale $02, $02, $03, $03 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $06, $09, $06, $07 smpsVcDecayRate2 $08, $06, $06, $07 smpsVcDecayLevel $00, $01, $01, $02 smpsVcReleaseRate $0F, $00, $00, $00 smpsVcTotalLevel $84, $10, $37, $19 ; Voice $01 ; $05 ; $30, $52, $01, $31, $51, $53, $52, $53, $05, $00, $00, $00 ; $00, $00, $00, $00, $1F, $0F, $0F, $0F, $0C, $90, $90, $90 smpsVcAlgorithm $05 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $03, $00, $05, $03 smpsVcCoarseFreq $01, $01, $02, $00 smpsVcRateScale $01, $01, $01, $01 smpsVcAttackRate $13, $12, $13, $11 smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $00, $00, $00, $05 smpsVcDecayRate2 $00, $00, $00, $00 smpsVcDecayLevel $00, $00, $00, $01 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $90, $90, $90, $0C ; Voice $02 ; $2E ; $05, $77, $58, $02, $1F, $1F, $14, $14, $00, $00, $00, $00 ; $08, $0B, $09, $06, $0F, $0F, $0F, $0F, $18, $90, $90, $90 smpsVcAlgorithm $06 smpsVcFeedback $05 smpsVcUnusedBits $00 smpsVcDetune $00, $05, $07, $00 smpsVcCoarseFreq $02, $08, $07, $05 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $14, $14, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $00, $00, $00, $00 smpsVcDecayRate2 $06, $09, $0B, $08 smpsVcDecayLevel $00, $00, $00, $00 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $90, $90, $90, $18 ; Voice $03 ; $2C ; $71, $62, $31, $32, $5F, $54, $5F, $5F, $00, $09, $00, $09 ; $00, $03, $00, $03, $0F, $8F, $0F, $AF, $16, $8B, $11, $8B smpsVcAlgorithm $04 smpsVcFeedback $05 smpsVcUnusedBits $00 smpsVcDetune $03, $03, $06, $07 smpsVcCoarseFreq $02, $01, $02, $01 smpsVcRateScale $01, $01, $01, $01 smpsVcAttackRate $1F, $1F, $14, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $09, $00, $09, $00 smpsVcDecayRate2 $03, $00, $03, $00 smpsVcDecayLevel $0A, $00, $08, $00 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $8B, $11, $8B, $16 ; Voice $04 ; $03 ; $02, $02, $02, $02, $1F, $1F, $1F, $1F, $08, $08, $00, $0E ; $00, $00, $00, $05, $3F, $3F, $0F, $7F, $81, $20, $1D, $82 smpsVcAlgorithm $03 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $00, $00, $00, $00 smpsVcCoarseFreq $02, $02, $02, $02 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $0E, $00, $08, $08 smpsVcDecayRate2 $05, $00, $00, $00 smpsVcDecayLevel $07, $00, $03, $03 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $82, $1D, $20, $81 ; Voice $05 ; $04 ; $22, $02, $21, $02, $18, $0B, $19, $08, $00, $05, $04, $00 ; $00, $00, $00, $00, $0F, $FF, $4F, $0F, $20, $90, $20, $88 smpsVcAlgorithm $04 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $00, $02, $00, $02 smpsVcCoarseFreq $02, $01, $02, $02 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $08, $19, $0B, $18 smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $00, $04, $05, $00 smpsVcDecayRate2 $00, $00, $00, $00 smpsVcDecayLevel $00, $04, $0F, $00 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $88, $20, $90, $20 ; Voice $06 ; $00 ; $38, $1C, $1E, $1F, $1F, $1F, $1F, $1F, $00, $00, $00, $0C ; $00, $00, $00, $0C, $0F, $0F, $0F, $1F, $00, $3D, $00, $88 smpsVcAlgorithm $00 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $01, $01, $01, $03 smpsVcCoarseFreq $0F, $0E, $0C, $08 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $0C, $00, $00, $00 smpsVcDecayRate2 $0C, $00, $00, $00 smpsVcDecayLevel $01, $00, $00, $00 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $88, $00, $3D, $00 ; Voice $07 ; $00 ; $70, $30, $13, $01, $1F, $1F, $0E, $1F, $00, $0B, $0E, $00 ; $08, $01, $10, $12, $0F, $1F, $FF, $0F, $15, $1E, $94, $00 smpsVcAlgorithm $00 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $00, $01, $03, $07 smpsVcCoarseFreq $01, $03, $00, $00 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $1F, $0E, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $00, $0E, $0B, $00 smpsVcDecayRate2 $12, $10, $01, $08 smpsVcDecayLevel $00, $0F, $01, $00 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $94, $1E, $15
31.266932
110
0.606715
762c953c85283b61fa887e59728c178eaec654a7
6,247
asm
Assembly
ffmpeg/libavfilter/x86/vf_gblur.asm
qinjidong/EasyMPlayer
76a8d052dd7a2d5f1916fdc32b07088d127ee5da
[ "Apache-2.0" ]
13
2019-04-12T08:38:51.000Z
2021-12-14T09:58:01.000Z
ffmpeg/libavfilter/x86/vf_gblur.asm
qinjidong/EasyMPlayer
76a8d052dd7a2d5f1916fdc32b07088d127ee5da
[ "Apache-2.0" ]
null
null
null
ffmpeg/libavfilter/x86/vf_gblur.asm
qinjidong/EasyMPlayer
76a8d052dd7a2d5f1916fdc32b07088d127ee5da
[ "Apache-2.0" ]
7
2019-04-12T08:38:54.000Z
2021-12-08T07:34:00.000Z
;***************************************************************************** ;* x86-optimized functions for gblur filter ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under the terms of the GNU Lesser General Public ;* License as published by the Free Software Foundation; either ;* version 2.1 of the License, or (at your option) any later version. ;* ;* FFmpeg is distributed in the hope that it will be useful, ;* but WITHOUT ANY WARRANTY; without even the implied warranty of ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;* Lesser General Public License for more details. ;* ;* You should have received a copy of the GNU Lesser General Public ;* License along with FFmpeg; if not, write to the Free Software ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;****************************************************************************** %include "libavutil/x86/x86util.asm" SECTION .text ; void ff_horiz_slice_sse4(float *ptr, int width, int height, int steps, ; float nu, float bscale) %macro HORIZ_SLICE 0 %if UNIX64 cglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, x, y, step, stride, remain %else cglobal horiz_slice, 4, 9, 9, ptr, width, height, steps, nu, bscale, x, y, step, stride, remain %endif %if WIN64 movss m0, num movss m1, bscalem DEFINE_ARGS ptr, width, height, steps, x, y, step, stride, remain %endif movsxdifnidn widthq, widthd mulss m2, m0, m0 ; nu ^ 2 mulss m3, m2, m0 ; nu ^ 3 mulss m4, m3, m0 ; nu ^ 4 xor xq, xq xor yd, yd mov strideq, widthq ; stride = width * 4 shl strideq, 2 ; w = w - ((w - 1) & 3) mov remainq, widthq sub remainq, 1 and remainq, 3 sub widthq, remainq shufps m0, m0, 0 shufps m2, m2, 0 shufps m3, m3, 0 shufps m4, m4, 0 .loop_y: xor stepd, stepd .loop_step: ; p0 *= bscale mulss m5, m1, [ptrq + xq * 4] movss [ptrq + xq * 4], m5 inc xq ; filter rightwards ; Here we are vectorizing the c version by 4 ; for (x = 1; x < width; x++) ; ptr[x] += nu * ptr[x - 1]; ; let p0 stands for ptr[x-1], the data from last loop ; and [p1,p2,p3,p4] be the vector data for this loop. ; Unrolling the loop, we get: ; p1' = p1 + p0*nu ; p2' = p2 + p1*nu + p0*nu^2 ; p3' = p3 + p2*nu + p1*nu^2 + p0*nu^3 ; p4' = p4 + p3*nu + p2*nu^2 + p1*nu^3 + p0*nu^4 ; so we can do it in simd: ; [p1',p2',p3',p4'] = [p1,p2,p3,p4] + [p0,p1,p2,p3]*nu + ; [0,p0,p1,p2]*nu^2 + [0,0,p0,p1]*nu^3 + ; [0,0,0,p0]*nu^4 .loop_x: movu m6, [ptrq + xq * 4] ; s = [p1,p2,p3,p4] pslldq m7, m6, 4 ; [0, p1,p2,p3] movss m7, m5 ; [p0,p1,p2,p3] FMULADD_PS m6, m7, m0, m6, m8 ; s += [p0,p1,p2,p3] * nu pslldq m7, 4 ; [0,p0,p1,p2] FMULADD_PS m6, m7, m2, m6, m8 ; s += [0,p0,p1,p2] * nu^2 pslldq m7, 4 FMULADD_PS m6, m7, m3, m6, m8 ; s += [0,0,p0,p1] * nu^3 pslldq m7, 4 FMULADD_PS m6, m7, m4, m6, m8 ; s += [0,0,0,p0] * nu^4 movu [ptrq + xq * 4], m6 shufps m5, m6, m6, q3333 add xq, 4 cmp xq, widthq jl .loop_x add widthq, remainq cmp xq, widthq je .end_scalar .loop_scalar: ; ptr[x] += nu * ptr[x-1] movss m5, [ptrq + 4*xq - 4] mulss m5, m0 addss m5, [ptrq + 4*xq] movss [ptrq + 4*xq], m5 inc xq cmp xq, widthq jl .loop_scalar .end_scalar: ; ptr[width - 1] *= bscale dec xq mulss m5, m1, [ptrq + 4*xq] movss [ptrq + 4*xq], m5 shufps m5, m5, 0 ; filter leftwards ; for (; x > 0; x--) ; ptr[x - 1] += nu * ptr[x]; ; The idea here is basically the same as filter rightwards. ; But we need to take care as the data layout is different. ; Let p0 stands for the ptr[x], which is the data from last loop. ; The way we do it in simd as below: ; [p-4', p-3', p-2', p-1'] = [p-4, p-3, p-2, p-1] ; + [p-3, p-2, p-1, p0] * nu ; + [p-2, p-1, p0, 0] * nu^2 ; + [p-1, p0, 0, 0] * nu^3 ; + [p0, 0, 0, 0] * nu^4 .loop_x_back: sub xq, 4 movu m6, [ptrq + xq * 4] ; s = [p-4, p-3, p-2, p-1] psrldq m7, m6, 4 ; [p-3, p-2, p-1, 0 ] blendps m7, m5, 0x8 ; [p-3, p-2, p-1, p0 ] FMULADD_PS m6, m7, m0, m6, m8 ; s+= [p-3, p-2, p-1, p0 ] * nu psrldq m7, 4 ; FMULADD_PS m6, m7, m2, m6, m8 ; s+= [p-2, p-1, p0, 0] * nu^2 psrldq m7, 4 FMULADD_PS m6, m7, m3, m6, m8 ; s+= [p-1, p0, 0, 0] * nu^3 psrldq m7, 4 FMULADD_PS m6, m7, m4, m6, m8 ; s+= [p0, 0, 0, 0] * nu^4 movu [ptrq + xq * 4], m6 shufps m5, m6, m6, 0 ; m5 = [p-4', p-4', p-4', p-4'] cmp xq, remainq jg .loop_x_back cmp xq, 0 je .end_scalar_back .loop_scalar_back: ; ptr[x-1] += nu * ptr[x] movss m5, [ptrq + 4*xq] mulss m5, m0 addss m5, [ptrq + 4*xq - 4] movss [ptrq + 4*xq - 4], m5 dec xq cmp xq, 0 jg .loop_scalar_back .end_scalar_back: ; reset aligned width for next line sub widthq, remainq inc stepd cmp stepd, stepsd jl .loop_step add ptrq, strideq inc yd cmp yd, heightd jl .loop_y RET %endmacro %if ARCH_X86_64 INIT_XMM sse4 HORIZ_SLICE INIT_XMM avx2 HORIZ_SLICE %endif
33.586022
95
0.466624